diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 28daf259a..cc1d6d0a5 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -16,5 +16,5 @@ blank_issues_enabled: false contact_links: - name: Community Support - url: https://github.com/agentic-spring-ai/agentic-spring-ai/discussions + url: https://github.com/agentic-ai-java/argi/discussions about: Please ask and answer questions here. diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 913e72dd3..d7be26ac0 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -30,7 +30,7 @@ permissions: contents: read jobs: format: - if: (github.repository == 'agentic-spring-ai/agentic-spring-ai') + if: (github.repository == 'agentic-ai-java/argi') runs-on: ubuntu-22.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -38,7 +38,7 @@ jobs: - run: make tools - run: make format-check check-style: - if: (github.repository == 'agentic-spring-ai/agentic-spring-ai') + if: (github.repository == 'agentic-ai-java/argi') runs-on: ubuntu-22.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -46,7 +46,7 @@ jobs: - run: make tools - run: make checkstyle-check test: - if: (github.repository == 'agentic-spring-ai/agentic-spring-ai') + if: (github.repository == 'agentic-ai-java/argi') runs-on: ubuntu-22.04 needs: [format, check-style] steps: @@ -55,7 +55,7 @@ jobs: - run: make tools - run: make test jdk-compatibility: - if: (github.repository == 'agentic-spring-ai/agentic-spring-ai') + if: (github.repository == 'agentic-ai-java/argi') runs-on: ubuntu-22.04 strategy: fail-fast: false @@ -68,7 +68,7 @@ jobs: java-version: ${{ matrix.java }} - run: ./mvnw -B -DskipTests compile api-compatibility: - if: (github.repository == 'agentic-spring-ai/agentic-spring-ai') + if: (github.repository == 'agentic-ai-java/argi') runs-on: ubuntu-22.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -77,19 +77,19 @@ jobs: - uses: ./tools/github-actions/setup-deps - run: make compatibility-check extensions-compatibility: - if: (github.repository == 'agentic-spring-ai/agentic-spring-ai') + if: (github.repository == 'agentic-ai-java/argi') runs-on: ubuntu-22.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: ./tools/github-actions/setup-deps - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: - repository: agentic-spring-ai/agentic-spring-ai-extensions + repository: agentic-ai-java/argi-extensions ref: 8f311b8caa584cd415ea338617a79499725f95f0 - path: .ci/agentic-spring-ai-extensions - - run: tools/scripts/verify-extensions-compatibility.sh .ci/agentic-spring-ai-extensions + path: .ci/argi-extensions + - run: tools/scripts/verify-extensions-compatibility.sh .ci/argi-extensions build: - if: (github.repository == 'agentic-spring-ai/agentic-spring-ai') + if: (github.repository == 'agentic-ai-java/argi') runs-on: ubuntu-22.04 needs: [format, check-style, test, jdk-compatibility, api-compatibility, extensions-compatibility] steps: @@ -97,20 +97,20 @@ jobs: - uses: ./tools/github-actions/setup-deps - run: corepack enable - run: corepack prepare pnpm@10.5.1 --activate - - run: pnpm --dir agentic-ai-studio/agent-chat-ui install --frozen-lockfile - - run: pnpm --dir agentic-ai-studio/agent-chat-ui audit --prod - - run: pnpm --dir agentic-ai-studio/agent-chat-ui run format:check - - run: pnpm --dir agentic-ai-studio/agent-chat-ui run lint - - run: pnpm --dir agentic-ai-studio/agent-chat-ui exec tsc --noEmit - - run: pnpm --dir agentic-ai-studio/agent-chat-ui run test - - run: pnpm --dir agentic-ai-studio/agent-chat-ui run build:static + - run: pnpm --dir argi-studio/agent-chat-ui install --frozen-lockfile + - run: pnpm --dir argi-studio/agent-chat-ui audit --prod + - run: pnpm --dir argi-studio/agent-chat-ui run format:check + - run: pnpm --dir argi-studio/agent-chat-ui run lint + - run: pnpm --dir argi-studio/agent-chat-ui exec tsc --noEmit + - run: pnpm --dir argi-studio/agent-chat-ui run test + - run: pnpm --dir argi-studio/agent-chat-ui run build:static - run: make tools - run: make build - name: Verify packaged Studio UI shell: bash run: | - studio_jar="$(find agentic-ai-studio/target -maxdepth 1 \ - -name 'agentic-spring-ai-studio-*.jar' \ + studio_jar="$(find argi-studio/target -maxdepth 1 \ + -name 'argi-studio-*.jar' \ ! -name '*-sources.jar' ! -name '*-javadoc.jar' -print -quit)" test -n "$studio_jar" jar tf "$studio_jar" | grep -q 'META-INF/resources/chatui/index.html' diff --git a/.github/workflows/issue-and-pr.yml b/.github/workflows/issue-and-pr.yml deleted file mode 100644 index 0ff5a301d..000000000 --- a/.github/workflows/issue-and-pr.yml +++ /dev/null @@ -1,35 +0,0 @@ -# -# Copyright 2024-2026 the original author or authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -name: 🫡 Issue and PullRequest Command -on: - issue_comment: - types: - - created -jobs: - actbot: - if: (github.repository == 'agentic-spring-ai/agentic-spring-ai') - runs-on: ubuntu-22.04 - permissions: - pull-requests: write - contents: read - issues: write - steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - uses: springaialibaba/infra@6a10230a282aa7b379e24df108131cc5a946bc5e - name: Actbot Action - with: - token: ${{ secrets.GITHUB_TOKEN }} - dingTalkToken: ${{ secrets.DINGTALK_TOKEN }} diff --git a/.github/workflows/license-check.yml b/.github/workflows/license-check.yml index 2dd7deff4..9f35919c5 100644 --- a/.github/workflows/license-check.yml +++ b/.github/workflows/license-check.yml @@ -26,7 +26,7 @@ concurrency: cancel-in-progress: true jobs: license-check: - if: (github.repository == 'agentic-spring-ai/agentic-spring-ai') + if: (github.repository == 'agentic-ai-java/argi') runs-on: ubuntu-22.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 022e5b72b..8b4d15ff0 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -28,7 +28,7 @@ permissions: contents: read jobs: linter: - if: (github.repository == 'agentic-spring-ai/agentic-spring-ai') + if: (github.repository == 'agentic-ai-java/argi') runs-on: ubuntu-22.04 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 diff --git a/.gitignore b/.gitignore index 696df6ef7..27c1cd9f2 100644 --- a/.gitignore +++ b/.gitignore @@ -35,6 +35,7 @@ target/ # node_modules **/node_modules +.pnpm-store/ # windows os /extensions/ diff --git a/AGENTS.md b/AGENTS.md index f047e4717..02b8b02b6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,12 +1,12 @@ -# AGENTS.md - AI Assistant Guide for Agentic AI +# AGENTS.md - AI Assistant Guide for ARGI -This file provides guidance for AI assistants working with the Agentic AI codebase. +This file provides guidance for AI assistants working with the ARGI codebase. ## Project Overview -Agentic AI is a production-ready framework for building agents, workflows, and multi-agent applications. It is forked from Spring AI Alibaba and focuses on stateful agent runtime capabilities: graph orchestration, persistence, context engineering, and human-in-the-loop support. It also supports the multi-model integration capabilities provided by Spring AI. +ARGI (Agent Runtime and Graph Intelligence, pronounced "AR-jee") is a production-ready framework for building agents, workflows, and multi-agent applications. It is forked from Spring AI Alibaba and focuses on stateful agent runtime capabilities: graph orchestration, persistence, context engineering, and human-in-the-loop support. It also supports the multi-model integration capabilities provided by Spring AI. -> **Naming:** the product display name is *Agentic AI*. Published Maven coordinates (`io.github.agentic-spring-ai:*`), Java packages (`io.github.agentic.spring.ai`), configuration prefixes (`spring.ai.alibaba.*`), class names (`SpringAiAlibaba*`), the `Saa*` prefix, and metric names remain compatibility contracts. Do not rename them without a deprecation cycle. +> **Naming:** the product display name is *ARGI*. Published Maven coordinates use `io.github.agentic-ai:argi-*`, Java packages use `io.github.agentic.ai`, configuration prefixes use `argi.*`, and framework-specific public class names use the `Argi*` prefix. **Key Features:** @@ -20,24 +20,24 @@ Agentic AI is a production-ready framework for building agents, workflows, and m ## Repository Structure ``` -agentic-spring-ai/ -├── agentic-ai-agent-framework/ # Multi-agent framework (Sequential, Parallel, Routing, etc.) -├── agentic-ai-graph-core/ # Runtime providing persistence, workflow orchestration, state mgmt -├── agentic-ai-studio/ # Embedded UI for debugging agents visually -├── agentic-ai-bom/ # Bill of Materials for dependency management +argi/ +├── argi-agent-framework/ # Multi-agent framework (Sequential, Parallel, Routing, etc.) +├── argi-graph-core/ # Runtime providing persistence, workflow orchestration, state mgmt +├── argi-studio/ # Embedded UI for debugging agents visually +├── argi-bom/ # Bill of Materials for dependency management ├── spring-boot-starters/ # Spring Boot Starters -│ ├── agentic-ai-starter-builtin-nodes/ # Built-in workflow nodes -│ └── agentic-ai-starter-graph-observation/ # Observability +│ ├── argi-starter-builtin-nodes/ # Built-in workflow nodes +│ └── argi-starter-graph-observation/ # Observability ├── tools/ # Build and linting tools └── docs/ # Documentation ``` This repository holds the core only. Optional integrations live in separate repositories: -- [Extensions](https://github.com/agentic-spring-ai/agentic-spring-ai-extensions) - model and document contracts, A2A Nacos, config Nacos, AgentScope, JDBC/Redis/MongoDB graph persistence, the Docker code executor, and the tool-call sandbox. -- [Examples](https://github.com/agentic-spring-ai/examples/tree/main/examples) - chatbot, multi-agent, and graph engineering samples. +- [Extensions](https://github.com/agentic-ai-java/argi-extensions) - model and document contracts, A2A Nacos, config Nacos, AgentScope, JDBC/Redis/MongoDB graph persistence, the Docker code executor, and the tool-call sandbox. +- [Examples](https://github.com/agentic-ai-java/argi-examples/tree/main/examples) - chatbot, multi-agent, and graph engineering samples. -Since `2.1.0` the core no longer imports the Extensions BOM. Applications that use optional integrations must import both `agentic-spring-ai-bom` and the matching Extensions BOM. +Since `2.1.0` the core no longer imports the Extensions BOM. Applications that use optional integrations must import both `argi-bom` and the matching Extensions BOM. ## Build System @@ -54,7 +54,7 @@ Since `2.1.0` the core no longer imports the Extensions BOM. Applications that u ./mvnw -B package -DskipTests=true # Build a specific module -./mvnw -pl :agentic-spring-ai-agent-framework -B package -DskipTests=true +./mvnw -pl :argi-agent-framework -B package -DskipTests=true # Clean project ./mvnw clean @@ -86,7 +86,7 @@ make licenses-check ### General Guidelines -- Follow **Spring AI Alibaba** standard code formatting. +- Follow the repository's existing Java formatting and Checkstyle rules. - Use **Apache 2.0** license headers for all Java files. - **Java 17** features are encouraged (records, switch expressions, text blocks). - Avoid `System.out.println` - use SLF4J logging. @@ -141,12 +141,12 @@ The project uses `make` for linting tasks: 1. **JDK Version**: Project targets JDK 17. Use appropriate language features. 2. **Spring Boot**: Uses Spring Boot 4.1.1 with Spring AI 2.0.1. The `jakarta.*` namespace applies throughout; there is no `javax.*` code. -3. **Dependencies**: Check `agentic-spring-ai-bom` or parent pom for version management. +3. **Dependencies**: Check `argi-bom` or parent pom for version management. 4. **Makefile**: Use the Makefile in the root for project maintenance tasks (linting, license checks). -5. **Structure**: When adding new features, prefer creating or updating modules within `agentic-ai-agent-framework` or `spring-boot-starters` depending on the scope. +5. **Structure**: When adding new features, prefer creating or updating modules within `argi-agent-framework` or `spring-boot-starters` depending on the scope. ## Important Links -- **Issues**: [https://github.com/agentic-spring-ai/agentic-spring-ai/issues](https://github.com/agentic-spring-ai/agentic-spring-ai/issues) -- **Source**: [https://github.com/agentic-spring-ai/agentic-spring-ai](https://github.com/agentic-spring-ai/agentic-spring-ai) +- **Issues**: [https://github.com/agentic-ai-java/argi/issues](https://github.com/agentic-ai-java/argi/issues) +- **Source**: [https://github.com/agentic-ai-java/argi](https://github.com/agentic-ai-java/argi) - **Contributing**: [CONTRIBUTING.md](CONTRIBUTING.md) diff --git a/CODE_OF_CONDUCT-zh.md b/CODE_OF_CONDUCT-zh.md index cbdf64a6d..89ca1a5bf 100644 --- a/CODE_OF_CONDUCT-zh.md +++ b/CODE_OF_CONDUCT-zh.md @@ -2,7 +2,7 @@ ## 我们的承诺 -Agentic AI 社区致力于提供开放、友好、尊重他人的协作环境。无论背景、经验、身份、观点或使用场景如何,所有参与者都应受到尊重。 +ARGI 社区致力于提供开放、友好、尊重他人的协作环境。无论背景、经验、身份、观点或使用场景如何,所有参与者都应受到尊重。 ## 期望行为 diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 2aa22c8f3..fa02b2f1e 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -2,7 +2,7 @@ ## Our Commitment -The Agentic AI community is committed to providing an open, welcoming, and respectful collaboration environment. Every participant should be treated with respect, regardless of background, experience, identity, viewpoint, or use case. +The ARGI community is committed to providing an open, welcoming, and respectful collaboration environment. Every participant should be treated with respect, regardless of background, experience, identity, viewpoint, or use case. ## Expected Behavior diff --git a/CONTRIBUTING-zh.md b/CONTRIBUTING-zh.md index 1c99f72cf..81fc8376d 100644 --- a/CONTRIBUTING-zh.md +++ b/CONTRIBUTING-zh.md @@ -1,14 +1,14 @@ ## 如何贡献 -## 感谢你为 Agentic AI 贡献! +## 感谢你为 ARGI 贡献! -Agentic AI 从开源建设以来,受到了很多社区同学的关注。社区的每一个 Issue ,每一个 PR,都是对整个项目的帮助,都在为建设更好用的 Spring AI 添砖加瓦。 +ARGI 从开源建设以来,受到了很多社区同学的关注。社区的每一个 Issue ,每一个 PR,都是对整个项目的帮助,都在为建设更好用的 Spring AI 添砖加瓦。 我们真心地感谢为这个项目提出过 Issue 和 PR 的开发者。我们希望有更多社区的开发者加入进来,一起把项目做好。 ## 贡献流程 -在贡献代码之前,请您稍微花一些时间了解为 Agentic AI 贡献代码的流程。 +在贡献代码之前,请您稍微花一些时间了解为 ARGI 贡献代码的流程。 ### 贡献什么? @@ -18,32 +18,32 @@ Agentic AI 从开源建设以来,受到了很多社区同学的关注。社区 ### 从哪里入手? -如果您是初次贡献,可以先从 [good first issue](https://github.com/agentic-spring-ai/agentic-spring-ai/labels/good%20first%20issue) 和 [help wanted](https://github.com/agentic-spring-ai/agentic-spring-ai/labels/help%20wanted) 中认领一个比较简单的任务。 +如果您是初次贡献,可以先从 [good first issue](https://github.com/agentic-ai-java/argi/labels/good%20first%20issue) 和 [help wanted](https://github.com/agentic-ai-java/argi/labels/help%20wanted) 中认领一个比较简单的任务。 ### Fork 仓库,并将其 Clone 到本地 -- 点击 [本项目](https://github.com/agentic-spring-ai/agentic-spring-ai) 右上角的 `Fork` 图标 将 agentic-spring-ai/agentic-spring-ai  fork 到自己的空间。 -- 将自己账号下的 agentic-spring-ai 仓库 clone 到本地,例如我的账号是 `chickenlj`,那就是执行 `git clone https://github.com/chickenlj/agentic-spring-ai.git` 进行 clone 操作。 +- 点击 [本项目](https://github.com/agentic-ai-java/argi) 右上角的 `Fork` 图标 将 agentic-ai-java/argi  fork 到自己的空间。 +- 将自己账号下的 argi 仓库 clone 到本地,例如我的账号是 `chickenlj`,那就是执行 `git clone https://github.com/chickenlj/argi.git` 进行 clone 操作。 ### 配置 Github 信息 - 在自己的机器执行 `git config --list` ,查看 git 的全局用户名和邮箱。 - 检查显示的 user.name 和 user.email 是不是与自己 github 的用户名和邮箱相匹配。 -- 如果公司内部有自己的 gitlab 或者使用了其他商业化的 gitlab,则可能会出现不匹配的情况。这时候,你需要为 agentic-spring-ai 项目单独设置用户名和邮箱。 +- 如果公司内部有自己的 gitlab 或者使用了其他商业化的 gitlab,则可能会出现不匹配的情况。这时候,你需要为 argi 项目单独设置用户名和邮箱。 - 设置用户名和邮箱的方式请参考 github 官方文档,[设置用户名](https://help.github.com/articles/setting-your-username-in-git/#setting-your-git-username-for-a-single-repository),[设置邮箱](https://help.github.com/articles/setting-your-commit-email-address-in-git/)。 ### Merge 最新代码 fork 出来的代码后,原仓库 main 分支可能出现了新的提交,这时候为了避免提交的 PR 和 Main 中的提交出现冲突,需要及时 merge main 分支。 -- 在你本机的 agentic-spring-ai 目录下,执行 `git remote add upstream https://github.com/agentic-spring-ai/agentic-spring-ai` 将原始仓库地址配置为 upstream。 -- 在你本机的 agentic-spring-ai 目录下,执行 `git fetch upstream` 从 upstream 拉取更新。 -- 在你本机的 agentic-spring-ai 目录下,执行 `git checkout main` 切换到 main 分支。 -- 在你本机的 agentic-spring-ai 目录下,执行 `git rebase upstream/main` rebase 最新代码。 +- 在你本机的 argi 目录下,执行 `git remote add upstream https://github.com/agentic-ai-java/argi` 将原始仓库地址配置为 upstream。 +- 在你本机的 argi 目录下,执行 `git fetch upstream` 从 upstream 拉取更新。 +- 在你本机的 argi 目录下,执行 `git checkout main` 切换到 main 分支。 +- 在你本机的 argi 目录下,执行 `git rebase upstream/main` rebase 最新代码。 -### 配置 Spring AI Alibaba 标准的代码格式 +### 配置代码格式 -Agentic AI 从 Spring AI Alibaba Fork 而来,在代码规范方面直接沿用了 Spring AI Alibaba 的项目规范,在正式开始之前请参考相关代码格式规范说明,提交代码前需要先配置好代码格式规范。 +开发前请在 IDE 中配置本仓库的 Java 格式规范,并在提交代码前运行格式与 Checkstyle 检查。 ### 开发 @@ -55,7 +55,7 @@ Agentic AI 从 Spring AI Alibaba Fork 而来,在代码规范方面直接沿用 ### 本地Checkstyle -为了减少一些不必要的代码风格问题,Agentic AI 提供了本地 Checkstyle 检查功能。可以在项目根目录下执行 `mvn checkstyle:check` 命令来检查代码风格是否符合规范。 +为了减少一些不必要的代码风格问题,ARGI 提供了本地 Checkstyle 检查功能。可以在项目根目录下执行 `mvn checkstyle:check` 命令来检查代码风格是否符合规范。 ### 删除未使用的导入 @@ -76,4 +76,4 @@ Commit 规范: git commit -m "类型(模块): 空格 符合规范的提交信息 ### 提交 PR -提交 PR,根据 `Pull request template` 写明修改点和实现的功能,等待 code review 和 合并,成为 Agentic AI Contributor,为更好用的 Agentic AI 做出贡献。 +提交 PR,根据 `Pull request template` 写明修改点和实现的功能,等待 code review 和 合并,成为 ARGI Contributor,为更好用的 ARGI 做出贡献。 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d44f2952d..64e6f4539 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,15 +2,15 @@ [中文版本](./CONTRIBUTING-zh.md) -## Thank you for contributing to Agentic AI! +## Thank you for contributing to ARGI! -Since its open-source inception, Agentic AI has received attention from many community members. Every Issue and PR from the community helps the entire project and contributes to building a better Spring AI. +Since its open-source inception, ARGI has received attention from many community members. Every Issue and PR from the community helps the entire project and contributes to building a better Spring AI. We sincerely thank the developers who have submitted Issues and PRs for this project. We hope more community developers will join us to make this project even better. ## Contribution Process -Before contributing code, please take a moment to understand the process of contributing to Agentic AI. +Before contributing code, please take a moment to understand the process of contributing to ARGI. ### What to Contribute? @@ -20,32 +20,32 @@ For more complex changes, we suggest first adding a Feature tag in an Issue with ### Where to Start? -If you are a first-time contributor, you can claim a relatively simple task from [good first issue](https://github.com/agentic-spring-ai/agentic-spring-ai/labels/good%20first%20issue) or [help wanted](https://github.com/agentic-spring-ai/agentic-spring-ai/labels/help%20wanted). +If you are a first-time contributor, you can claim a relatively simple task from [good first issue](https://github.com/agentic-ai-java/argi/labels/good%20first%20issue) or [help wanted](https://github.com/agentic-ai-java/argi/labels/help%20wanted). ### Fork the Repository and Clone it Locally -- Click the `Fork` icon in the upper right corner of [this project](https://github.com/agentic-spring-ai/agentic-spring-ai) to fork agentic-spring-ai/agentic-spring-ai to your own space. -- Clone the agentic-spring-ai repository from your account to your local machine. For example, if my account is `chickenlj`, I would execute `git clone https://github.com/chickenlj/agentic-spring-ai.git` to clone it. +- Click the `Fork` icon in the upper right corner of [this project](https://github.com/agentic-ai-java/argi) to fork agentic-ai-java/argi to your own space. +- Clone the argi repository from your account to your local machine. For example, if my account is `chickenlj`, I would execute `git clone https://github.com/chickenlj/argi.git` to clone it. ### Configure Github Information - Execute `git config --list` on your machine to check git's global username and email. - Verify that the displayed user.name and user.email match your github username and email. -- If your company has its own gitlab or uses other commercial gitlab solutions, there might be a mismatch. In this case, you need to set a separate username and email for the agentic-spring-ai project. +- If your company has its own gitlab or uses other commercial gitlab solutions, there might be a mismatch. In this case, you need to set a separate username and email for the argi project. - For instructions on setting your username and email, please refer to the official github documentation: [Setting your username](https://help.github.com/articles/setting-your-username-in-git/#setting-your-git-username-for-a-single-repository) and [Setting your email](https://help.github.com/articles/setting-your-commit-email-address-in-git/). ### Merge Latest Code After forking the repository, new commits may have appeared in the original repository's main branch. To avoid conflicts between your PR and the commits in the main branch, you need to regularly merge from the main branch. -- In your local agentic-spring-ai directory, execute `git remote add upstream https://github.com/agentic-spring-ai/agentic-spring-ai` to add the original repository address as the remote upstream. -- In your local agentic-spring-ai directory, execute `git fetch upstream` to fetch the remote updates to your local machine. -- In your local agentic-spring-ai directory, execute `git checkout main` to switch to the main branch. -- In your local agentic-spring-ai directory, execute `git rebase upstream/main` to rebase the latest code. +- In your local argi directory, execute `git remote add upstream https://github.com/agentic-ai-java/argi` to add the original repository address as the remote upstream. +- In your local argi directory, execute `git fetch upstream` to fetch the remote updates to your local machine. +- In your local argi directory, execute `git checkout main` to switch to the main branch. +- In your local argi directory, execute `git rebase upstream/main` to rebase the latest code. -### Configure Spring AI Alibaba Standard Code Format +### Configure Code Format -Agentic AI was forked from Spring AI Alibaba and directly follows the Spring AI Alibaba project's code standards. Before you start, please refer to the relevant code format specification instructions. You need to configure the code format standards properly before submitting your code. +Before you start, configure your IDE to use the repository's Java formatting rules. Run the formatting and Checkstyle checks before submitting code. ### Development @@ -57,7 +57,7 @@ After completing development in your local environment, it's strongly recommende ### Local Checkstyle -To reduce unnecessary code style issues, Agentic AI provides a local Checkstyle check feature. You can run `mvn checkstyle:check` in the project's root directory to verify if your code style complies with the standards. +To reduce unnecessary code style issues, ARGI provides a local Checkstyle check feature. You can run `mvn checkstyle:check` in the project's root directory to verify if your code style complies with the standards. ### Remove Unused Imports @@ -86,4 +86,4 @@ For instance: `feat(docs): update contribute-zh` ### Submit PR -Submit your PR, explain the modifications and implemented features according to the `Pull request template`, and wait for code review and merging. Become an Agentic AI Contributor and make a contribution to a better Agentic AI. +Submit your PR, explain the modifications and implemented features according to the `Pull request template`, and wait for code review and merging. Become an ARGI Contributor and make a contribution to a better ARGI. diff --git a/LICENSE b/LICENSE index 3c363e623..3d26b9f97 100644 --- a/LICENSE +++ b/LICENSE @@ -206,7 +206,7 @@ Spring AI Alibaba includes a number of submodules with separate copyright notice and license terms. Your use of these submodules is subject to the terms and conditions of the following licenses. -For the module agentic-ai-graph-core, it has files originally from a project located at https://github.com/bsorrentino/langgraph4j, licensed under the terms of the: +For the module argi-graph-core, it has files originally from a project located at https://github.com/bsorrentino/langgraph4j, licensed under the terms of the: MIT License diff --git a/README-zh.md b/README-zh.md index a3ce10912..ae21e926f 100644 --- a/README-zh.md +++ b/README-zh.md @@ -1,26 +1,26 @@
- - Agentic AI logo + + ARGI logo -

Agentic AI

+

ARGI

面向 Java 应用的有状态智能体运行时。

图工作流 · ReAct Agent · 上下文工程 · 人工介入 · 多智能体编排

- 文档 · - 快速开始 · - 示例 · + 文档 · + 快速开始 · + 示例 · English

License - Version + Version Java 17+

--- -Agentic AI 是面向 Java 开发者的智能体应用框架,用于构建 Agent、工作流和多智能体应用。项目 Fork 自 Spring AI Alibaba,提供上下文工程、人工介入、图工作流和分布式 Agent-to-Agent(A2A)协作能力。 +ARGI 是 **Agent Runtime and Graph Intelligence** 的缩写,读作 **“AR-jee”**(`/ˈɑːr.dʒiː/`)。它是面向 Java 开发者的智能体应用框架,用于构建 Agent、工作流和多智能体应用。项目 Fork 自 Spring AI Alibaba,提供上下文工程、人工介入、图工作流和分布式 Agent-to-Agent(A2A)协作能力。 ## 核心能力 @@ -36,51 +36,50 @@ Agentic AI 是面向 Java 开发者的智能体应用框架,用于构建 Agent 环境要求:JDK 17 或更高版本、Maven 3.9.1 或更高版本。框架构建使用 Maven Wrapper,独立示例使用本机 Maven。 ```shell -git clone --depth=1 https://github.com/agentic-spring-ai/agentic-spring-ai.git -cd agentic-spring-ai +git clone --depth=1 https://github.com/agentic-ai-java/argi.git +cd argi # Install the local development modules. ./mvnw -DskipTests install -# Configure the DashScope API key and run the chatbot example. +# 配置任一受支持的模型提供商后运行 chatbot 示例。 cd .. -git clone --depth=1 https://github.com/agentic-spring-ai/examples.git -cd examples -export AI_DASHSCOPE_API_KEY=your-api-key +git clone --depth=1 https://github.com/agentic-ai-java/argi-examples.git +cd argi-examples mvn -f examples/chatbot/pom.xml spring-boot:run ``` -示例还需要对应版本的 Extensions BOM 和模型 Starter,依赖准备方式见[示例说明](https://github.com/agentic-spring-ai/examples/tree/main/examples#环境与依赖)。 +示例还需要对应版本的 Extensions BOM 和模型 Starter,依赖准备方式见[示例说明](https://github.com/agentic-ai-java/argi-examples/tree/main/examples#环境与依赖)。 -启动后访问 [http://localhost:8080/chatui/index.html](http://localhost:8080/chatui/index.html)。其他模型的配置方式请参阅[快速开始](https://agentic-spring-ai.github.io/website/docs/quick-start)。 +启动后访问 [http://localhost:8080/chatui/index.html](http://localhost:8080/chatui/index.html)。其他模型的配置方式请参阅[快速开始](https://agentic-ai-java.github.io/argi-website/docs/quick-start)。 ## 项目模块 | 模块 | 说明 | | --- | --- | -| [Agent Framework](agentic-ai-agent-framework) | 智能体开发与多智能体编排 | -| [Graph Core](agentic-ai-graph-core) | 状态管理、持久化和工作流运行时 | -| [Studio](agentic-ai-studio) | Agent 可视化调试界面 | -| [Sandbox](https://github.com/agentic-spring-ai/agentic-spring-ai-extensions/tree/main/sandbox/agentic-spring-ai-sandbox) | 工具调用的可选隔离执行环境,由 Extensions 维护 | +| [Agent Framework](argi-agent-framework) | 智能体开发与多智能体编排 | +| [Graph Core](argi-graph-core) | 状态管理、持久化和工作流运行时 | +| [Studio](argi-studio) | Agent 可视化调试界面 | +| [Sandbox](https://github.com/agentic-ai-java/argi-extensions/tree/main/sandbox/argi-sandbox) | 工具调用的可选隔离执行环境,由 Extensions 维护 | | [Spring Boot Starters](spring-boot-starters) | 内置图节点和图可观测性 | -| [Extensions](https://github.com/agentic-spring-ai/agentic-spring-ai-extensions) | 模型与文档契约、A2A、Nacos、AgentScope、存储等可选扩展 | -| [Examples](https://github.com/agentic-spring-ai/examples/tree/main/examples) | Chatbot、多智能体、图工程和文档示例 | +| [Extensions](https://github.com/agentic-ai-java/argi-extensions) | 模型与文档契约、A2A、Nacos、AgentScope、存储等可选扩展 | +| [Examples](https://github.com/agentic-ai-java/argi-examples/tree/main/examples) | Chatbot、多智能体、图工程和文档示例 | ## 文档 -- [项目概览](https://agentic-spring-ai.github.io/website/docs/overview) -- [快速开始](https://agentic-spring-ai.github.io/website/docs/quick-start) -- [Agent Framework 教程](https://agentic-spring-ai.github.io/website/docs/frameworks/agent-framework/tutorials/agents) -- [Graph Core 快速开始](https://agentic-spring-ai.github.io/website/docs/frameworks/graph-core/quick-start) -- [示例项目](https://github.com/agentic-spring-ai/examples/tree/main/examples) -- [模型厂商相关示例](https://github.com/agentic-spring-ai/agentic-spring-ai-extensions/tree/main/examples) +- [项目概览](https://agentic-ai-java.github.io/argi-website/docs/overview) +- [快速开始](https://agentic-ai-java.github.io/argi-website/docs/quick-start) +- [Agent Framework 教程](https://agentic-ai-java.github.io/argi-website/docs/frameworks/agent-framework/tutorials/agents) +- [Graph Core 快速开始](https://agentic-ai-java.github.io/argi-website/docs/frameworks/graph-core/quick-start) +- [示例项目](https://github.com/agentic-ai-java/argi-examples/tree/main/examples) +- [模型厂商相关示例](https://github.com/agentic-ai-java/argi-extensions/tree/main/examples) ## 参与贡献 -提交代码前请阅读[贡献指南](CONTRIBUTING-zh.md)。问题和建议可通过 [GitHub Issues](https://github.com/agentic-spring-ai/agentic-spring-ai/issues) 反馈。 +提交代码前请阅读[贡献指南](CONTRIBUTING-zh.md)。问题和建议可通过 [GitHub Issues](https://github.com/agentic-ai-java/argi/issues) 反馈。 - - contributors + + contributors ## 许可证 diff --git a/README.md b/README.md index fab687da5..35ffe77d9 100644 --- a/README.md +++ b/README.md @@ -1,26 +1,26 @@
- - Agentic AI logo + + ARGI logo -

Agentic AI

+

ARGI

Stateful agent runtime for Java applications.

Graph workflows · ReAct agents · Context engineering · Human-in-the-loop · Multi-agent orchestration

- Documentation · - Quick Start · - Examples · + Documentation · + Quick Start · + Examples · 简体中文

License - Version + Version Java 17+

--- -Agentic AI is a framework for Java developers building agents, workflows, and multi-agent applications. Forked from Spring AI Alibaba, it provides context engineering, human-in-the-loop, graph workflows, and distributed Agent-to-Agent (A2A) collaboration. +ARGI stands for **Agent Runtime and Graph Intelligence** and is pronounced **"AR-jee"** (`/ˈɑːr.dʒiː/`). It is a framework for Java developers building agents, workflows, and multi-agent applications. Forked from Spring AI Alibaba, it provides context engineering, human-in-the-loop, graph workflows, and distributed Agent-to-Agent (A2A) collaboration. ## Features @@ -36,53 +36,52 @@ Agentic AI is a framework for Java developers building agents, workflows, and mu Requirements: JDK 17 or later and Maven 3.9.1 or later. Build the framework with its Maven Wrapper and run the standalone examples with your local Maven installation. ```shell -git clone --depth=1 https://github.com/agentic-spring-ai/agentic-spring-ai.git -cd agentic-spring-ai +git clone --depth=1 https://github.com/agentic-ai-java/argi.git +cd argi # Install the local development modules. ./mvnw -DskipTests install -# Configure the DashScope API key and run the chatbot example. +# Configure any supported model provider and run the chatbot example. cd .. -git clone --depth=1 https://github.com/agentic-spring-ai/examples.git -cd examples -export AI_DASHSCOPE_API_KEY=your-api-key +git clone --depth=1 https://github.com/agentic-ai-java/argi-examples.git +cd argi-examples mvn -f examples/chatbot/pom.xml spring-boot:run ``` -The examples also require the matching Extensions BOM and provider starters. See the [example setup](https://github.com/agentic-spring-ai/examples/tree/main/examples#环境与依赖). +The examples also require the matching Extensions BOM and provider starters. See the [example setup](https://github.com/agentic-ai-java/argi-examples/tree/main/examples#环境与依赖). -Open [http://localhost:8080/chatui/index.html](http://localhost:8080/chatui/index.html). See the [Quick Start](https://agentic-spring-ai.github.io/website/en/docs/quick-start) for other model providers. +Open [http://localhost:8080/chatui/index.html](http://localhost:8080/chatui/index.html). See the [Quick Start](https://agentic-ai-java.github.io/argi-website/en/docs/quick-start) for other model providers. ## Modules | Module | Description | | --- | --- | -| [Agent Framework](agentic-ai-agent-framework) | Agent development and multi-agent orchestration | -| [Graph Core](agentic-ai-graph-core) | State management, persistence, and workflow runtime | -| [Studio](agentic-ai-studio) | Visual debugging UI for agents | -| [Sandbox](https://github.com/agentic-spring-ai/agentic-spring-ai-extensions/tree/main/sandbox/agentic-spring-ai-sandbox) | Optional isolated execution environment for tool calls, maintained in Extensions | +| [Agent Framework](argi-agent-framework) | Agent development and multi-agent orchestration | +| [Graph Core](argi-graph-core) | State management, persistence, and workflow runtime | +| [Studio](argi-studio) | Visual debugging UI for agents | +| [Sandbox](https://github.com/agentic-ai-java/argi-extensions/tree/main/sandbox/argi-sandbox) | Optional isolated execution environment for tool calls, maintained in Extensions | | [Spring Boot Starters](spring-boot-starters) | Built-in graph nodes and graph observability | -| [Extensions](https://github.com/agentic-spring-ai/agentic-spring-ai-extensions) | Model and document contracts, A2A, Nacos, AgentScope, storage, and other optional integrations | -| [Examples](https://github.com/agentic-spring-ai/examples/tree/main/examples) | Chatbot, multi-agent, graph engineering, and documentation examples | +| [Extensions](https://github.com/agentic-ai-java/argi-extensions) | Model and document contracts, A2A, Nacos, AgentScope, storage, and other optional integrations | +| [Examples](https://github.com/agentic-ai-java/argi-examples/tree/main/examples) | Chatbot, multi-agent, graph engineering, and documentation examples | ## Documentation -- [Overview](https://agentic-spring-ai.github.io/website/en/docs/overview) -- [Quick Start](https://agentic-spring-ai.github.io/website/en/docs/quick-start) -- [Agent Framework tutorials](https://agentic-spring-ai.github.io/website/en/docs/frameworks/agent-framework/tutorials/agents) -- [Graph Core Quick Start](https://agentic-spring-ai.github.io/website/en/docs/frameworks/graph-core/quick-start) -- [Examples](https://github.com/agentic-spring-ai/examples/tree/main/examples) -- [Provider-specific examples](https://github.com/agentic-spring-ai/agentic-spring-ai-extensions/tree/main/examples) +- [Overview](https://agentic-ai-java.github.io/argi-website/en/docs/overview) +- [Quick Start](https://agentic-ai-java.github.io/argi-website/en/docs/quick-start) +- [Agent Framework tutorials](https://agentic-ai-java.github.io/argi-website/en/docs/frameworks/agent-framework/tutorials/agents) +- [Graph Core Quick Start](https://agentic-ai-java.github.io/argi-website/en/docs/frameworks/graph-core/quick-start) +- [Examples](https://github.com/agentic-ai-java/argi-examples/tree/main/examples) +- [Provider-specific examples](https://github.com/agentic-ai-java/argi-extensions/tree/main/examples) ## Contributing -Read the [contribution guide](CONTRIBUTING.md) before submitting changes. Report problems and suggestions through [GitHub Issues](https://github.com/agentic-spring-ai/agentic-spring-ai/issues). +Read the [contribution guide](CONTRIBUTING.md) before submitting changes. Report problems and suggestions through [GitHub Issues](https://github.com/agentic-ai-java/argi/issues). - - contributors + + contributors ## License -Agentic AI is available under the [Apache License 2.0](LICENSE). +ARGI is available under the [Apache License 2.0](LICENSE). diff --git a/SECURITY-zh.md b/SECURITY-zh.md index b7508f84f..d0620ab15 100644 --- a/SECURITY-zh.md +++ b/SECURITY-zh.md @@ -2,7 +2,7 @@ ## 报告安全问题 -如果你发现 Agentic AI 存在安全漏洞或潜在风险,请不要在公开 Issue、Discussion 或 Pull Request 中披露细节。 +如果你发现 ARGI 存在安全漏洞或潜在风险,请不要在公开 Issue、Discussion 或 Pull Request 中披露细节。 请使用根目录 [`pom.xml`](pom.xml) 中列出的项目维护者 GitHub 主页公开联系方式, 先请求建立私密报告渠道;在维护者确认私密渠道前,请勿发送漏洞细节。 diff --git a/SECURITY.md b/SECURITY.md index 588b7ba44..589bfd135 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,7 +2,7 @@ ## Reporting a Security Issue -If you discover a security vulnerability or potential risk in Agentic AI, please do not disclose details in a public Issue, Discussion, or Pull Request. +If you discover a security vulnerability or potential risk in ARGI, please do not disclose details in a public Issue, Discussion, or Pull Request. Contact one of the project maintainers listed in [`pom.xml`](pom.xml) using the public contact information on their GitHub profile, and ask to establish a diff --git a/agentic-ai-agent-framework/README.md b/agentic-ai-agent-framework/README.md deleted file mode 100644 index 8101a6497..000000000 --- a/agentic-ai-agent-framework/README.md +++ /dev/null @@ -1,45 +0,0 @@ -# Agentic AI Agent Framework - -## What's Agent Framework - -Agentic AI Agent Framework is created for Java developers to quickly and easily building, orchestrating, and deploying AI agents. This framework is built upon the ReactAgent concept which features a Reasoning-Acting loop while at the same time supports multi-agent orchestration. - -## Core Features -* **ReactAgent** -* **Multi-Agent Orchestration** -* **Context Engineering** -* **Human In The Loop** -* **A2A** -* **Rich Model, Tool and MCP Support** - -## Model Call Error Handling - -By default, exceptions caught during a synchronous model call or synchronous -streaming setup are converted into an `AssistantMessage` prefixed with -`Exception:`. To propagate those exceptions instead, opt in when building an agent: - -```java -ReactAgent agent = ReactAgent.builder() - .name("assistant") - .model(chatModel) - .throwOnModelError(true) - .build(); -``` - -`throwOnModelError` defaults to `false` and is also available on -`AgentLlmNode.builder()`. When enabled, model interceptors receive the original -exception with its type and cause intact; graph execution may wrap it while -preserving the cause chain. This allows applications to distinguish model failures -from normal responses without parsing error text. - -This setting does not add retries or change tool exception handling. Errors emitted -by a streaming publisher after setup continue to propagate in either mode, including -errors after partial output. Existing retry interceptors can still retry or wrap -exceptions according to their own configuration. - -## Related Projects -Agentic AI Agent Framework depends on the following projects: - -* agentic-ai-graph-core: [https://github.com/agentic-spring-ai/agentic-spring-ai/tree/main/agentic-ai-graph-core](https://github.com/agentic-spring-ai/agentic-spring-ai/tree/main/agentic-ai-graph-core) -* spring-ai-extensions: [https://github.com/agentic-spring-ai/agentic-spring-ai-extensions](https://github.com/agentic-spring-ai/agentic-spring-ai-extensions) -* spring-ai: [https://github.com/spring-projects/spring-ai](https://github.com/spring-projects/spring-ai) diff --git a/agentic-ai-agent-framework/pom.xml b/agentic-ai-agent-framework/pom.xml deleted file mode 100644 index c9e6957b5..000000000 --- a/agentic-ai-agent-framework/pom.xml +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - 4.0.0 - - - io.github.agentic-spring-ai - agentic-spring-ai - ${revision} - ../pom.xml - - - agentic-spring-ai-agent-framework - jar - Agentic AI Agent Framework - A library for building stateful, multi-agents applications with LLMs - https://github.com/agentic-spring-ai/agentic-spring-ai - - git://github.com/agentic-spring-ai/agentic-spring-ai.git - git@github.com:agentic-spring-ai/agentic-spring-ai.git - https://github.com/agentic-spring-ai/agentic-spring-ai - - - - - io.github.agentic-spring-ai - agentic-spring-ai-graph-core - ${project.parent.version} - - - - io.github.a2asdk - a2a-java-sdk-client - - - - org.apache.commons - commons-collections4 - ${commons-collections4.version} - - - - com.vladsch.flexmark - flexmark-html2md-converter - 0.64.8 - - - - org.apache.httpcomponents.client5 - httpclient5 - - - - org.yaml - snakeyaml - - - - com.github.ben-manes.caffeine - caffeine - - - - org.junit.jupiter - junit-jupiter - test - - - - org.springframework.boot - spring-boot-starter-test - test - - - - org.springframework.ai - spring-ai-starter-model-openai - test - - - - org.springframework.ai - spring-ai-starter-model-deepseek - test - - - - - org.graalvm.polyglot - polyglot - ${graalvm.polyglot.version} - test - - - org.graalvm.polyglot - python-community - ${graalvm.polyglot.version} - pom - test - - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - ${maven-javadoc-plugin.version} - - - - - - - diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/model/TaskTool.java b/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/model/TaskTool.java deleted file mode 100644 index cef52e0a4..000000000 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/model/TaskTool.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph.agent.extension.tools.model; - -import io.github.agentic.spring.ai.graph.agent.ReactAgent; - -import org.springframework.ai.chat.messages.AssistantMessage; -import org.springframework.ai.chat.model.ToolContext; -import org.springframework.ai.tool.ToolCallback; -import org.springframework.ai.tool.function.FunctionToolCallback; - -import java.util.Map; -import java.util.function.BiFunction; - -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; - -/** - * Tool that enables invoking subagents to handle complex, isolated tasks. - * - * This tool allows the main agent to delegate work to specialized subagents, - * each with their own context and capabilities. - */ -public class TaskTool implements BiFunction { - - private final Map subAgents; - - public TaskTool(Map subAgents) { - this.subAgents = subAgents; - } - - @Override - public String apply(TaskRequest request, ToolContext toolContext) { - // Validate subagent type - if (!subAgents.containsKey(request.subagentType)) { - return "Error: invoked agent of type " + request.subagentType + - ", the only allowed types are " + subAgents.keySet(); - } - - // Get the subagent - ReactAgent subAgent = subAgents.get(request.subagentType); - - try { - // Invoke the subagent with the task description - AssistantMessage result = subAgent.call(request.description); - - // Return the subagent's response - return result.getText(); - } - catch (Exception e) { - return "Error executing subagent task: " + e.getMessage(); - } - } - - /** - * Create a ToolCallback for the task tool. - */ - public static ToolCallback createTaskToolCallback(Map subAgents, String description) { - return FunctionToolCallback.builder("task", new TaskTool(subAgents)) - .description(description) - .inputType(TaskRequest.class) - .build(); - } - - /** - * Request structure for the task tool. - */ - public static class TaskRequest { - - @JsonProperty(required = true) - @JsonPropertyDescription("Detailed description of the task to be performed by the subagent") - public String description; - - @JsonProperty(required = true, value = "subagent_type") - @JsonPropertyDescription("The type of subagent to use for this task") - public String subagentType; - - public TaskRequest() { - } - - public TaskRequest(String description, String subagentType) { - this.description = description; - this.subagentType = subagentType; - } - } -} - diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/renderer/SaaStTemplateRenderer.java b/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/renderer/SaaStTemplateRenderer.java deleted file mode 100644 index 87da5f6c4..000000000 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/renderer/SaaStTemplateRenderer.java +++ /dev/null @@ -1,649 +0,0 @@ -/* - * Copyright 2024-2025 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph.agent.renderer; - -import org.springframework.ai.template.TemplateRenderer; -import org.springframework.ai.template.ValidationMode; - -import org.springframework.util.Assert; - -import java.util.HashSet; -import java.util.Map; -import java.util.Set; - -import org.antlr.runtime.Token; -import org.antlr.runtime.TokenStream; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.stringtemplate.v4.ST; -import org.stringtemplate.v4.STGroup; -import org.stringtemplate.v4.compiler.Compiler; -import org.stringtemplate.v4.compiler.STLexer; - -public class SaaStTemplateRenderer implements TemplateRenderer { - - private static final Logger logger = LoggerFactory.getLogger(SaaStTemplateRenderer.class); - - private static final String VALIDATION_MESSAGE = "Not all variables were replaced in the template. Missing variable names are: %s."; - - private static final char DEFAULT_START_DELIMITER_TOKEN = '{'; - - private static final char DEFAULT_END_DELIMITER_TOKEN = '}'; - - private static final String DEFAULT_START_DELIMITER_STRING = "{"; - - private static final String DEFAULT_END_DELIMITER_STRING = "}"; - - private static final ValidationMode DEFAULT_VALIDATION_MODE = ValidationMode.THROW; - - private static final boolean DEFAULT_VALIDATE_ST_FUNCTIONS = false; - - // Use uncommon characters as temporary delimiters for string-based delimiter conversion - private static final char TEMP_START_DELIMITER = '\u0001'; - - private static final char TEMP_END_DELIMITER = '\u0002'; - - private final char startDelimiterToken; - - private final char endDelimiterToken; - - private final String startDelimiterString; - - private final String endDelimiterString; - - private final boolean useStringDelimiters; - - private final ValidationMode validationMode; - - private final boolean validateStFunctions; - - /** - * Constructs a new {@code SaaStTemplateRenderer} with the specified delimiter tokens, - * validation mode, and function validation flag. - * @param startDelimiterToken the character used to denote the start of a template - * variable (e.g., '{') - * @param endDelimiterToken the character used to denote the end of a template - * variable (e.g., '}') - * @param validationMode the mode to use for template variable validation; must not be - * null - * @param validateStFunctions whether to validate StringTemplate functions in the - * template - */ - public SaaStTemplateRenderer(char startDelimiterToken, char endDelimiterToken, ValidationMode validationMode, - boolean validateStFunctions) { - Assert.notNull(validationMode, "validationMode cannot be null"); - this.startDelimiterToken = startDelimiterToken; - this.endDelimiterToken = endDelimiterToken; - this.startDelimiterString = String.valueOf(startDelimiterToken); - this.endDelimiterString = String.valueOf(endDelimiterToken); - this.useStringDelimiters = false; - this.validationMode = validationMode; - this.validateStFunctions = validateStFunctions; - } - - /** - * Constructs a new {@code SaaStTemplateRenderer} with the specified string delimiter tokens, - * validation mode, and function validation flag. - *

- * This constructor supports multi-character delimiters (e.g., "{{" and "}}"), which is - * useful for avoiding conflicts with JSON content or other text that uses single-character - * delimiters. - * @param startDelimiterString the string used to denote the start of a template - * variable (e.g., "{{") - * @param endDelimiterString the string used to denote the end of a template - * variable (e.g., "}}") - * @param validationMode the mode to use for template variable validation; must not be - * null - * @param validateStFunctions whether to validate StringTemplate functions in the - * template - */ - public SaaStTemplateRenderer(String startDelimiterString, String endDelimiterString, ValidationMode validationMode, - boolean validateStFunctions) { - Assert.notNull(validationMode, "validationMode cannot be null"); - Assert.hasText(startDelimiterString, "startDelimiterString cannot be null or empty"); - Assert.hasText(endDelimiterString, "endDelimiterString cannot be null or empty"); - this.startDelimiterString = startDelimiterString; - this.endDelimiterString = endDelimiterString; - this.useStringDelimiters = true; - // For string delimiters, we use temporary single-char delimiters internally - this.startDelimiterToken = TEMP_START_DELIMITER; - this.endDelimiterToken = TEMP_END_DELIMITER; - this.validationMode = validationMode; - this.validateStFunctions = validateStFunctions; - } - - @Override - public String apply(String template, Map variables) { - Assert.hasText(template, "template cannot be null or empty"); - Assert.notNull(variables, "variables cannot be null"); - Assert.noNullElements(variables.keySet(), "variables keys cannot be null"); - - ST st = createST(template); - for (Map.Entry entry : variables.entrySet()) { - st.add(entry.getKey(), entry.getValue()); - } - if (this.validationMode != ValidationMode.NONE) { - validate(st, variables); - } - String result = st.render(); - // Restore protected JSON content in the result - if (!this.useStringDelimiters) { - result = restoreJsonContentInResult(result); - } - return result; - } - - private ST createST(String template) { - try { - String processedTemplate = template; - // If using string delimiters, convert them to single-char delimiters for ST - if (this.useStringDelimiters) { - processedTemplate = convertStringDelimitersToChar(template); - } - else { - // For single-char delimiters, protect JSON content to avoid conflicts - processedTemplate = protectJsonContent(template); - } - STGroup group = new STGroup(this.startDelimiterToken, this.endDelimiterToken); - group.setListener(new Slf4jStErrorListener(logger)); - return new ST(group, processedTemplate); - } - catch (Exception ex) { - throw new IllegalArgumentException("The template string is not valid.", ex); - } - } - - // Temporary placeholders for JSON braces - private static final String JSON_OPEN_PLACEHOLDER = "\uE000"; - private static final String JSON_CLOSE_PLACEHOLDER = "\uE001"; - - /** - * Protects JSON content in templates when using single-character delimiters. - * This method identifies JSON objects/arrays and replaces their braces with placeholders - * to prevent StringTemplate from treating them as template variables. - * @param template the original template - * @return template with JSON braces protected - */ - private String protectJsonContent(String template) { - StringBuilder result = new StringBuilder(); - int i = 0; - int len = template.length(); - - while (i < len) { - // Look for potential JSON start: { followed by quote or whitespace+quote - int braceIdx = template.indexOf(this.startDelimiterToken, i); - if (braceIdx == -1) { - result.append(template.substring(i)); - break; - } - - // Append text before the brace - result.append(template.substring(i, braceIdx)); - - // Check if this is a template variable or JSON content - int afterBrace = braceIdx + 1; - if (afterBrace < len) { - char nextChar = template.charAt(afterBrace); - // If followed by a valid identifier start (letter, underscore, $), it's a template variable - boolean isTemplateVar = (Character.isLetter(nextChar) || nextChar == '_' || nextChar == '$'); - - if (!isTemplateVar) { - // Check if it looks like JSON: { followed by quote, whitespace+quote, or other JSON chars - boolean looksLikeJson = false; - if (nextChar == '"' || nextChar == '\'' || nextChar == '[' || nextChar == '{') { - looksLikeJson = true; - } - else if (Character.isWhitespace(nextChar)) { - // Check if whitespace is followed by a quote (JSON-like) - int nextNonWhitespace = afterBrace + 1; - while (nextNonWhitespace < len && Character.isWhitespace(template.charAt(nextNonWhitespace))) { - nextNonWhitespace++; - } - if (nextNonWhitespace < len) { - char afterWhitespace = template.charAt(nextNonWhitespace); - if (afterWhitespace == '"' || afterWhitespace == '\'' || afterWhitespace == '[') { - looksLikeJson = true; - } - } - } - - if (looksLikeJson) { - // This looks like JSON, find the matching closing brace - int closeBraceIdx = findMatchingJsonBrace(template, afterBrace); - if (closeBraceIdx != -1) { - // Replace JSON braces with placeholders - result.append(JSON_OPEN_PLACEHOLDER); - result.append(template.substring(afterBrace, closeBraceIdx)); - result.append(JSON_CLOSE_PLACEHOLDER); - i = closeBraceIdx + 1; - continue; - } - } - } - } - - // Not JSON, keep as-is (it's a template variable) - result.append(this.startDelimiterToken); - i = braceIdx + 1; - } - - return result.toString(); - } - - /** - * Finds the matching closing brace for a JSON object/array, handling nested structures. - * @param template the template string - * @param startPos the position after the opening brace - * @return the index of the matching closing brace, or -1 if not found - */ - private int findMatchingJsonBrace(String template, int startPos) { - int depth = 1; - int i = startPos; - int len = template.length(); - boolean inString = false; - char stringChar = 0; - - while (i < len && depth > 0) { - char ch = template.charAt(i); - - // Handle string literals - if (!inString && (ch == '"' || ch == '\'')) { - inString = true; - stringChar = ch; - } - else if (inString && ch == stringChar) { - // Check if it's escaped - if (i == 0 || template.charAt(i - 1) != '\\') { - inString = false; - stringChar = 0; - } - } - - if (!inString) { - if (ch == this.startDelimiterToken) { - depth++; - } - else if (ch == this.endDelimiterToken) { - depth--; - if (depth == 0) { - return i; - } - } - } - - i++; - } - - return -1; - } - - /** - * Restores protected JSON content in the rendered result by replacing placeholders back to braces. - * @param result the rendered result string - * @return result with JSON braces restored - */ - private String restoreJsonContentInResult(String result) { - return result.replace(JSON_OPEN_PLACEHOLDER, String.valueOf(this.startDelimiterToken)) - .replace(JSON_CLOSE_PLACEHOLDER, String.valueOf(this.endDelimiterToken)); - } - - /** - * Converts string-based delimiters (e.g., "{{" and "}}") to single-character delimiters - * for StringTemplate processing. This allows support for multi-character delimiters while - * working with StringTemplate V4's char-based API. - *

- * The conversion uses a pattern matching approach to identify template variables while - * avoiding conflicts with literal text that might contain the delimiter strings. - * This method handles StringTemplate expressions including: - *

    - *
  • Simple variables: {{name}}
  • - *
  • Property access: {{user.name}}
  • - *
  • Function calls: {{first(items)}}
  • - *
  • Conditional expressions: {{name ?: "default"}}
  • - *
  • List operations: {{items; separator=", "}}
  • - *
- * @param template the original template with string delimiters - * @return the template with converted single-character delimiters - */ - private String convertStringDelimitersToChar(String template) { - StringBuilder result = new StringBuilder(); - int i = 0; - int len = template.length(); - int startLen = this.startDelimiterString.length(); - int endLen = this.endDelimiterString.length(); - - while (i < len) { - // Look for start delimiter - int startIdx = template.indexOf(this.startDelimiterString, i); - if (startIdx == -1) { - // No more start delimiters, append the rest - result.append(template.substring(i)); - break; - } - - // Append text before the start delimiter - result.append(template.substring(i, startIdx)); - - // Check if this is a valid template variable start - // A valid start should be followed by an identifier or StringTemplate expression - int afterStart = startIdx + startLen; - if (afterStart < len) { - char nextChar = template.charAt(afterStart); - // Check if next character is a valid identifier start (letter, underscore, $, or whitespace for expressions) - // Also allow whitespace after delimiter for expressions like "{{ name }}" - if (Character.isLetter(nextChar) || nextChar == '_' || nextChar == '$' - || Character.isWhitespace(nextChar)) { - // This looks like a template variable, find the matching end delimiter - // We need to handle nested delimiters and balanced matching - int endIdx = findMatchingEndDelimiter(template, afterStart, startLen, endLen); - if (endIdx != -1) { - // Found matching end delimiter - // Extract the variable content - String variableContent = template.substring(afterStart, endIdx); - // Trim whitespace if needed, but preserve internal structure - variableContent = variableContent.trim(); - // Convert to single-char delimiter format - result.append(this.startDelimiterToken); - result.append(variableContent); - result.append(this.endDelimiterToken); - i = endIdx + endLen; - continue; - } - } - } - - // Not a valid template variable, keep the original delimiter as-is - result.append(this.startDelimiterString); - i = startIdx + startLen; - } - - return result.toString(); - } - - /** - * Finds the matching end delimiter for a template expression, handling nested delimiters - * and balanced matching. - * @param template the template string - * @param startPos the position after the start delimiter - * @param startLen the length of the start delimiter string - * @param endLen the length of the end delimiter string - * @return the index of the matching end delimiter, or -1 if not found - */ - private int findMatchingEndDelimiter(String template, int startPos, int startLen, int endLen) { - int depth = 1; // We've already found one start delimiter - int i = startPos; - int len = template.length(); - boolean inString = false; - char stringChar = 0; - - while (i < len) { - // Check for string delimiters (single or double quotes) - if (!inString) { - char ch = template.charAt(i); - if (ch == '"' || ch == '\'') { - inString = true; - stringChar = ch; - i++; - continue; - } - } - else { - char ch = template.charAt(i); - if (ch == stringChar && (i == 0 || template.charAt(i - 1) != '\\')) { - inString = false; - stringChar = 0; - i++; - continue; - } - i++; - continue; - } - - // Check for nested start delimiter - if (i + startLen <= len) { - String potentialStart = template.substring(i, i + startLen); - if (potentialStart.equals(this.startDelimiterString)) { - depth++; - i += startLen; - continue; - } - } - - // Check for end delimiter - if (i + endLen <= len) { - String potentialEnd = template.substring(i, i + endLen); - if (potentialEnd.equals(this.endDelimiterString)) { - depth--; - if (depth == 0) { - return i; - } - i += endLen; - continue; - } - } - - i++; - } - - return -1; // No matching end delimiter found - } - - /** - * Validates that all required template variables are provided in the model. Returns - * the set of missing variables for further handling or logging. - * @param st the StringTemplate instance - * @param templateVariables the provided variables - * @return set of missing variable names, or empty set if none are missing - */ - private Set validate(ST st, Map templateVariables) { - Set templateTokens = getInputVariables(st); - Set modelKeys = templateVariables.keySet(); - Set missingVariables = new HashSet<>(templateTokens); - missingVariables.removeAll(modelKeys); - - if (!missingVariables.isEmpty()) { - if (this.validationMode == ValidationMode.WARN) { - logger.warn(VALIDATION_MESSAGE.formatted(missingVariables)); - } - else if (this.validationMode == ValidationMode.THROW) { - throw new IllegalStateException(VALIDATION_MESSAGE.formatted(missingVariables)); - } - } - return missingVariables; - } - - private Set getInputVariables(ST st) { - TokenStream tokens = st.impl.tokens; - Set inputVariables = new HashSet<>(); - boolean isInsideList = false; - - for (int i = 0; i < tokens.size(); i++) { - Token token = tokens.get(i); - - // Handle list variables with option (e.g., {items; separator=", "}) - if (token.getType() == STLexer.LDELIM && i + 1 < tokens.size() - && tokens.get(i + 1).getType() == STLexer.ID) { - if (i + 2 < tokens.size() && tokens.get(i + 2).getType() == STLexer.COLON) { - String text = tokens.get(i + 1).getText(); - if (!org.stringtemplate.v4.compiler.Compiler.funcs.containsKey(text) || this.validateStFunctions) { - inputVariables.add(text); - isInsideList = true; - } - } - } - else if (token.getType() == STLexer.RDELIM) { - isInsideList = false; - } - // Handle regular variables - only add IDs that are at the start of an - // expression - else if (!isInsideList && token.getType() == STLexer.ID) { - // Check if this ID is a function call - boolean isFunctionCall = (i + 1 < tokens.size() && tokens.get(i + 1).getType() == STLexer.LPAREN); - - // Check if this ID is at the beginning of an expression (not a property - // access) - boolean isAfterDot = (i > 0 && tokens.get(i - 1).getType() == STLexer.DOT); - - // Only add IDs that are: - // 1. Not function calls - // 2. Not property values (not preceded by a dot) - // 3. Either not built-in functions or we're validating functions - if (!isFunctionCall && !isAfterDot) { - String varName = token.getText(); - if (!Compiler.funcs.containsKey(varName) || this.validateStFunctions) { - inputVariables.add(varName); - } - } - } - } - return inputVariables; - } - - public static SaaStTemplateRenderer.Builder builder() { - return new SaaStTemplateRenderer.Builder(); - } - - /** - * Builder for configuring and creating {@link SaaStTemplateRenderer} instances. - */ - public static final class Builder { - - private char startDelimiterToken = DEFAULT_START_DELIMITER_TOKEN; - - private char endDelimiterToken = DEFAULT_END_DELIMITER_TOKEN; - - private String startDelimiterString = DEFAULT_START_DELIMITER_STRING; - - private String endDelimiterString = DEFAULT_END_DELIMITER_STRING; - - private boolean useStringDelimiters = false; - - private ValidationMode validationMode = DEFAULT_VALIDATION_MODE; - - private boolean validateStFunctions = DEFAULT_VALIDATE_ST_FUNCTIONS; - - private Builder() { - } - - /** - * Sets the character used as the start delimiter for template expressions. - * Default is '{'. - * @param startDelimiterToken The start delimiter character. - * @return This builder instance for chaining. - */ - public SaaStTemplateRenderer.Builder startDelimiterToken(char startDelimiterToken) { - this.startDelimiterToken = startDelimiterToken; - this.startDelimiterString = String.valueOf(startDelimiterToken); - this.useStringDelimiters = false; - return this; - } - - /** - * Sets the character used as the end delimiter for template expressions. Default - * is '}'. - * @param endDelimiterToken The end delimiter character. - * @return This builder instance for chaining. - */ - public SaaStTemplateRenderer.Builder endDelimiterToken(char endDelimiterToken) { - this.endDelimiterToken = endDelimiterToken; - this.endDelimiterString = String.valueOf(endDelimiterToken); - this.useStringDelimiters = false; - return this; - } - - /** - * Sets the string used as the start delimiter for template expressions. - * This allows using multi-character delimiters (e.g., "{{") which is useful - * for avoiding conflicts with JSON content or other text that uses single-character - * delimiters. - *

- * When string delimiters are set, they take precedence over character delimiters. - * @param startDelimiterString The start delimiter string (e.g., "{{"). - * @return This builder instance for chaining. - */ - public SaaStTemplateRenderer.Builder startDelimiter(String startDelimiterString) { - Assert.hasText(startDelimiterString, "startDelimiterString cannot be null or empty"); - this.startDelimiterString = startDelimiterString; - this.useStringDelimiters = true; - return this; - } - - /** - * Sets the string used as the end delimiter for template expressions. - * This allows using multi-character delimiters (e.g., "}}") which is useful - * for avoiding conflicts with JSON content or other text that uses single-character - * delimiters. - *

- * When string delimiters are set, they take precedence over character delimiters. - * @param endDelimiterString The end delimiter string (e.g., "}}"). - * @return This builder instance for chaining. - */ - public SaaStTemplateRenderer.Builder endDelimiter(String endDelimiterString) { - Assert.hasText(endDelimiterString, "endDelimiterString cannot be null or empty"); - this.endDelimiterString = endDelimiterString; - this.useStringDelimiters = true; - return this; - } - - /** - * Sets the validation mode to control behavior when the provided variables do not - * match the variables required by the template. Default is - * {@link ValidationMode#THROW}. - * @param validationMode The desired validation mode. - * @return This builder instance for chaining. - */ - public SaaStTemplateRenderer.Builder validationMode(ValidationMode validationMode) { - this.validationMode = validationMode; - return this; - } - - /** - * Configures the renderer to support StringTemplate's built-in functions during - * validation. - *

- * When enabled (set to true), identifiers in the template that match known ST - * function names (e.g., "first", "rest", "length") will not be treated as - * required input variables during validation. - *

- * When disabled (default, false), these identifiers are treated like regular - * variables and must be provided in the input map if validation is enabled - * ({@link ValidationMode#WARN} or {@link ValidationMode#THROW}). - * @return This builder instance for chaining. - */ - public SaaStTemplateRenderer.Builder validateStFunctions() { - this.validateStFunctions = true; - return this; - } - - /** - * Builds and returns a new {@link SaaStTemplateRenderer} instance with the - * configured settings. - * @return A configured {@link SaaStTemplateRenderer}. - */ - public SaaStTemplateRenderer build() { - if (this.useStringDelimiters) { - return new SaaStTemplateRenderer(this.startDelimiterString, this.endDelimiterString, this.validationMode, - this.validateStFunctions); - } - else { - return new SaaStTemplateRenderer(this.startDelimiterToken, this.endDelimiterToken, this.validationMode, - this.validateStFunctions); - } - } - - } - -} diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/TaskTool.java b/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/TaskTool.java deleted file mode 100644 index cd1db7a85..000000000 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/TaskTool.java +++ /dev/null @@ -1,205 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph.agent.tools.task; - -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import com.fasterxml.jackson.annotation.JsonClassDescription; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyDescription; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.ai.chat.messages.AssistantMessage; -import org.springframework.ai.chat.model.ToolContext; -import org.springframework.ai.tool.ToolCallback; -import org.springframework.ai.tool.function.FunctionToolCallback; -import org.springframework.util.Assert; -import org.springframework.util.CollectionUtils; -import org.springframework.util.StringUtils; - -import java.util.HashMap; -import java.util.Map; -import java.util.UUID; -import java.util.function.BiFunction; - -/** - * Tool that enables invoking sub-agents to handle complex, isolated tasks. - *

- * Inspired by spring ai TaskTool, this allows the main agent to delegate - * work to specialized sub-agents, each with their own context and capabilities. - * Supports both synchronous and background execution. - */ -public class TaskTool implements BiFunction { - - private static final Logger logger = LoggerFactory.getLogger(TaskTool.class); - - // @formatter:off - public static final String DEFAULT_DESCRIPTION = """ - Launch a specialized sub-agent to handle complex, multi-step tasks autonomously. - - Use this tool when: - - The task requires exploring codebases, researching, or multi-step execution - - You need to delegate to an agent with specific expertise (e.g., Explore, general-purpose) - - The task would consume too much context if done directly - - Available sub-agent types and their capabilities: - %s - - Parameters: - - description: Short (3-5 word) summary of what the agent will do - - prompt: The detailed task for the sub-agent to perform - - subagent_type: The type of specialized agent to use (required) - - run_in_background: Set to true to run asynchronously; use TaskOutput tool to retrieve results later - - When run_in_background=true, returns a task_id. Use the TaskOutput tool with that task_id to get results. - """; - // @formatter:on - - private final Map subAgents; - - private final TaskRepository taskRepository; - - public TaskTool(Map subAgents, TaskRepository taskRepository) { - Assert.notEmpty(subAgents, "subAgents must not be empty"); - Assert.notNull(taskRepository, "taskRepository must not be null"); - this.subAgents = Map.copyOf(subAgents); - this.taskRepository = taskRepository; - } - - @Override - public String apply(Request request, ToolContext toolContext) { - String subagentType = request.subagentType(); - if (!StringUtils.hasText(subagentType)) { - return "Error: subagent_type is required"; - } - - if (!subAgents.containsKey(subagentType)) { - return "Error: Unknown subagent type: " + subagentType + ". Allowed types: " + subAgents.keySet(); - } - - ReactAgent subAgent = subAgents.get(subagentType); - String prompt = request.prompt(); - if (!StringUtils.hasText(prompt)) { - return "Error: prompt is required"; - } - - if (Boolean.TRUE.equals(request.runInBackground())) { - String taskId = "task_" + UUID.randomUUID(); - this.taskRepository.putTask(taskId, () -> executeSubAgent(subAgent, prompt)); - return String.format( - "task_id: %s%n%nBackground task started. Use TaskOutput tool with task_id='%s' to retrieve results.", - taskId, taskId); - } - - return executeSubAgent(subAgent, prompt); - } - - private String executeSubAgent(ReactAgent subAgent, String prompt) { - try { - AssistantMessage result = subAgent.call(prompt); - return result != null ? result.getText() : "Sub-agent returned empty response"; - } - catch (Exception e) { - logger.warn("Sub-agent execution failed: {}", e.getMessage()); - return "Error executing sub-agent: " + e.getMessage(); - } - } - - /** - * Request structure for the Task tool. - */ - @JsonClassDescription("Request to launch a sub-agent task") - public record Request( - @JsonProperty(required = true) - @JsonPropertyDescription("Short (3-5 word) description of what the agent will do") - String description, - - @JsonProperty(required = true) - @JsonPropertyDescription("The detailed task for the sub-agent to perform") - String prompt, - - @JsonProperty(required = true, value = "subagent_type") - @JsonPropertyDescription("The type of specialized agent to use") - String subagentType, - - @JsonProperty(value = "run_in_background") - @JsonPropertyDescription("Set to true to run in background; use TaskOutput to retrieve results") - Boolean runInBackground) { - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - - private final Map subAgents = new HashMap<>(); - - private TaskRepository taskRepository = new DefaultTaskRepository(); - - private String name = "Task"; - - private String description; - - public Builder subAgent(String type, ReactAgent agent) { - Assert.hasText(type, "type must not be empty"); - Assert.notNull(agent, "agent must not be null"); - this.subAgents.put(type, agent); - return this; - } - - public Builder subAgents(Map agents) { - if (!CollectionUtils.isEmpty(agents)) { - this.subAgents.putAll(agents); - } - return this; - } - - public Builder taskRepository(TaskRepository taskRepository) { - Assert.notNull(taskRepository, "taskRepository must not be null"); - this.taskRepository = taskRepository; - return this; - } - - public Builder withName(String name) { - this.name = name != null ? name : "Task"; - return this; - } - - public Builder withDescription(String description) { - this.description = description; - return this; - } - - public ToolCallback build() { - Assert.notEmpty(this.subAgents, "At least one sub-agent must be configured"); - - String desc = this.description; - if (!StringUtils.hasText(desc)) { - String agentList = this.subAgents.entrySet().stream() - .map(e -> "- " + e.getKey() + ": " + e.getValue().description()) - .reduce("", (a, b) -> a + b + "\n"); - desc = DEFAULT_DESCRIPTION.formatted(agentList); - } - - TaskTool taskTool = new TaskTool(this.subAgents, this.taskRepository); - return FunctionToolCallback.builder(this.name, taskTool) - .description(desc) - .inputType(Request.class) - .build(); - } - } - -} diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/renderer/SaaStTemplateRendererTest.java b/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/renderer/SaaStTemplateRendererTest.java deleted file mode 100644 index ff97e2e5e..000000000 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/renderer/SaaStTemplateRendererTest.java +++ /dev/null @@ -1,425 +0,0 @@ -/* - * Copyright 2024-2025 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph.agent.renderer; - -import org.junit.jupiter.api.Test; -import org.springframework.ai.template.ValidationMode; - -import java.util.Map; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertThrows; -import static org.junit.jupiter.api.Assertions.assertTrue; - -/** - * Unit tests for {@link SaaStTemplateRenderer}. - * - * @author Spring AI Alibaba - */ -class SaaStTemplateRendererTest { - - @Test - void testBasicCharDelimiter() { - SaaStTemplateRenderer renderer = SaaStTemplateRenderer.builder() - .startDelimiterToken('{') - .endDelimiterToken('}') - .validationMode(ValidationMode.NONE) - .build(); - - String template = "Hello {name}!"; - Map variables = Map.of("name", "World"); - - String result = renderer.apply(template, variables); - assertEquals("Hello World!", result); - } - - @Test - void testStringDelimiter() { - SaaStTemplateRenderer renderer = SaaStTemplateRenderer.builder() - .startDelimiter("{{") - .endDelimiter("}}") - .validationMode(ValidationMode.NONE) - .build(); - - String template = "Hello {{name}}!"; - Map variables = Map.of("name", "World"); - - String result = renderer.apply(template, variables); - assertEquals("Hello World!", result); - } - - @Test - void testJsonContentWithStringDelimiter() { - // 测试使用多字符 delimiter 来避免与 JSON 内容冲突 - SaaStTemplateRenderer renderer = SaaStTemplateRenderer.builder() - .startDelimiter("{{") - .endDelimiter("}}") - .validationMode(ValidationMode.NONE) - .build(); - - String template = """ - 请处理以下 JSON 数据:{"name": "test", "value": 123} - 用户信息:{{userName}} - 数据内容:{{jsonData}} - """; - - Map variables = Map.of( - "userName", "张三", - "jsonData", "{\"key\": \"value\"}" - ); - - String result = renderer.apply(template, variables); - - // 验证 JSON 中的 {} 没有被替换 - assertTrue(result.contains("{\"name\": \"test\", \"value\": 123}")); - // 验证模板变量被正确替换 - assertTrue(result.contains("用户信息:张三")); - assertTrue(result.contains("数据内容:{\"key\": \"value\"}")); - } - - @Test - void testJsonContentConflictWithSingleCharDelimiter() { - // 测试单字符 delimiter 与 JSON 内容冲突的情况 - // 实现应该能够自动识别并保护 JSON 内容,避免与模板变量冲突 - SaaStTemplateRenderer renderer = SaaStTemplateRenderer.builder() - .startDelimiterToken('{') - .endDelimiterToken('}') - .validationMode(ValidationMode.NONE) - .build(); - - String template = """ - 请处理以下 JSON 数据:{"name": "test", "value": 123} - 用户信息:{userName} - """; - - Map variables = Map.of("userName", "张三"); - - // 实现应该能够识别 JSON 内容并保护它,同时正确替换模板变量 - String result = renderer.apply(template, variables); - - // 验证 JSON 内容被保护(没有被误替换) - assertTrue(result.contains("{\"name\": \"test\", \"value\": 123}")); - // 验证模板变量被正确替换 - assertTrue(result.contains("用户信息:张三")); - } - - @Test - void testComplexJsonWithStringDelimiter() { - // 测试复杂的 JSON 内容与模板变量混合 - SaaStTemplateRenderer renderer = SaaStTemplateRenderer.builder() - .startDelimiter("{{") - .endDelimiter("}}") - .validationMode(ValidationMode.NONE) - .build(); - - String template = """ - { - "request": { - "user": "{{userName}}", - "data": {"key": "value", "count": {{count}}}, - "metadata": {"type": "test", "nested": {"level": 2}} - }, - "response": "{{responseText}}" - } - """; - - Map variables = Map.of( - "userName", "Alice", - "count", "42", - "responseText", "Success" - ); - - String result = renderer.apply(template, variables); - - // 验证变量被正确替换 - assertTrue(result.contains("\"user\": \"Alice\"")); - assertTrue(result.contains("\"count\": 42")); - assertTrue(result.contains("\"response\": \"Success\"")); - // 验证 JSON 结构中的普通 {} 没有被误替换 - assertTrue(result.contains("\"metadata\": {\"type\": \"test\"")); - } - - @Test - void testNestedDelimiters() { - // 测试嵌套的 delimiter - SaaStTemplateRenderer renderer = SaaStTemplateRenderer.builder() - .startDelimiter("{{") - .endDelimiter("}}") - .validationMode(ValidationMode.NONE) - .build(); - - String template = "Outer: {{outer}}, Inner JSON: {\"key\": \"{{value}}\"}"; - Map variables = Map.of( - "outer", "OUTER_VALUE", - "value", "VALUE" - ); - - String result = renderer.apply(template, variables); - assertTrue(result.contains("Outer: OUTER_VALUE")); - assertTrue(result.contains("\"key\": \"VALUE\"")); - } - - @Test - void testPropertyAccess() { - // 测试属性访问 - SaaStTemplateRenderer renderer = SaaStTemplateRenderer.builder() - .startDelimiter("{{") - .endDelimiter("}}") - .validationMode(ValidationMode.NONE) - .build(); - - Map user = Map.of("name", "John", "age", 30); - String template = "User: {{user.name}}, Age: {{user.age}}"; - Map variables = Map.of("user", user); - - String result = renderer.apply(template, variables); - assertTrue(result.contains("User: John")); - assertTrue(result.contains("Age: 30")); - } - - @Test - void testMultipleVariables() { - SaaStTemplateRenderer renderer = SaaStTemplateRenderer.builder() - .startDelimiter("{{") - .endDelimiter("}}") - .validationMode(ValidationMode.NONE) - .build(); - - String template = "{{greeting}} {{name}}, today is {{day}}"; - Map variables = Map.of( - "greeting", "Hello", - "name", "Alice", - "day", "Monday" - ); - - String result = renderer.apply(template, variables); - assertEquals("Hello Alice, today is Monday", result); - } - - @Test - void testValidationModeThrow() { - SaaStTemplateRenderer renderer = SaaStTemplateRenderer.builder() - .startDelimiter("{{") - .endDelimiter("}}") - .validationMode(ValidationMode.THROW) - .build(); - - String template = "Hello {{name}}, missing: {{missing}}"; - Map variables = Map.of("name", "World"); - - assertThrows(IllegalStateException.class, () -> { - renderer.apply(template, variables); - }); - } - - @Test - void testValidationModeWarn() { - SaaStTemplateRenderer renderer = SaaStTemplateRenderer.builder() - .startDelimiter("{{") - .endDelimiter("}}") - .validationMode(ValidationMode.WARN) - .build(); - - String template = "Hello {{name}}, missing: {{missing}}"; - Map variables = Map.of("name", "World"); - - // Should not throw, but log warning - String result = renderer.apply(template, variables); - assertTrue(result.contains("Hello World")); - } - - @Test - void testValidationModeNone() { - SaaStTemplateRenderer renderer = SaaStTemplateRenderer.builder() - .startDelimiter("{{") - .endDelimiter("}}") - .validationMode(ValidationMode.NONE) - .build(); - - String template = "Hello {{name}}, missing: {{missing}}"; - Map variables = Map.of("name", "World"); - - // Should not throw - String result = renderer.apply(template, variables); - assertTrue(result.contains("Hello World")); - } - - @Test - void testJsonArrayWithStringDelimiter() { - // 测试包含 JSON 数组的情况 - SaaStTemplateRenderer renderer = SaaStTemplateRenderer.builder() - .startDelimiter("{{") - .endDelimiter("}}") - .validationMode(ValidationMode.NONE) - .build(); - - String template = """ - { - "items": [{"id": 1, "name": "item1"}, {"id": 2, "name": "item2"}], - "user": "{{userName}}", - "count": {{count}} - } - """; - - Map variables = Map.of( - "userName", "Bob", - "count", "10" - ); - - String result = renderer.apply(template, variables); - - // 验证 JSON 数组中的 {} 没有被误替换 - assertTrue(result.contains("\"items\": [{\"id\": 1")); - // 验证模板变量被正确替换 - assertTrue(result.contains("\"user\": \"Bob\"")); - assertTrue(result.contains("\"count\": 10")); - } - - @Test - void testMixedContent() { - // 测试混合内容:既有 JSON,又有普通文本和模板变量 - SaaStTemplateRenderer renderer = SaaStTemplateRenderer.builder() - .startDelimiter("{{") - .endDelimiter("}}") - .validationMode(ValidationMode.NONE) - .build(); - - String template = """ - 用户 {{userName}} 提交了以下数据: - {"type": "request", "data": {"key": "value"}} - 处理结果:{{result}} - 时间:{{timestamp}} - """; - - Map variables = Map.of( - "userName", "Charlie", - "result", "Success", - "timestamp", "2024-01-01" - ); - - String result = renderer.apply(template, variables); - - // 验证所有变量都被替换 - assertTrue(result.contains("用户 Charlie 提交了以下数据:")); - assertTrue(result.contains("处理结果:Success")); - assertTrue(result.contains("时间:2024-01-01")); - // 验证 JSON 内容保持不变 - assertTrue(result.contains("{\"type\": \"request\"")); - } - - @Test - void testBuilderWithCharDelimiters() { - // 测试 Builder 使用 char delimiter - SaaStTemplateRenderer renderer = SaaStTemplateRenderer.builder() - .startDelimiterToken('<') - .endDelimiterToken('>') - .validationMode(ValidationMode.NONE) - .build(); - - String template = "Hello !"; - Map variables = Map.of("name", "World"); - - String result = renderer.apply(template, variables); - assertEquals("Hello World!", result); - } - - @Test - void testBuilderWithStringDelimiters() { - // 测试 Builder 使用 String delimiter - SaaStTemplateRenderer renderer = SaaStTemplateRenderer.builder() - .startDelimiter("<<") - .endDelimiter(">>") - .validationMode(ValidationMode.NONE) - .build(); - - String template = "Hello <>!"; - Map variables = Map.of("name", "World"); - - String result = renderer.apply(template, variables); - assertEquals("Hello World!", result); - } - - @Test - void testEmptyTemplate() { - SaaStTemplateRenderer renderer = SaaStTemplateRenderer.builder() - .startDelimiter("{{") - .endDelimiter("}}") - .validationMode(ValidationMode.NONE) - .build(); - - String template = ""; - Map variables = Map.of(); - - assertThrows(IllegalArgumentException.class, () -> { - renderer.apply(template, variables); - }); - } - - @Test - void testNullVariables() { - SaaStTemplateRenderer renderer = SaaStTemplateRenderer.builder() - .startDelimiter("{{") - .endDelimiter("}}") - .validationMode(ValidationMode.NONE) - .build(); - - String template = "Hello {{name}}!"; - - assertThrows(IllegalArgumentException.class, () -> { - renderer.apply(template, null); - }); - } - - @Test - void testComplexNestedJson() { - // 测试复杂的嵌套 JSON 结构 - SaaStTemplateRenderer renderer = SaaStTemplateRenderer.builder() - .startDelimiter("{{") - .endDelimiter("}}") - .validationMode(ValidationMode.NONE) - .build(); - - String template = """ - { - "level1": { - "level2": { - "level3": { - "value": "{{value}}", - "items": [{"a": 1}, {"b": 2}] - } - }, - "user": "{{userName}}" - } - } - """; - - Map variables = Map.of( - "value", "test", - "userName", "User" - ); - - String result = renderer.apply(template, variables); - - // 验证深层嵌套的变量被替换 - assertTrue(result.contains("\"value\": \"test\"")); - assertTrue(result.contains("\"user\": \"User\"")); - // 验证 JSON 结构完整 - assertTrue(result.contains("\"level3\": {")); - assertTrue(result.contains("\"items\": [{\"a\": 1}")); - } - -} - diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/PoetTool.java b/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/PoetTool.java deleted file mode 100644 index 25660e87d..000000000 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/PoetTool.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph.agent.tools; - -import org.springframework.ai.chat.model.ToolContext; -import org.springframework.ai.tool.ToolCallback; -import org.springframework.ai.tool.annotation.ToolParam; -import org.springframework.ai.tool.function.FunctionToolCallback; - -import java.util.function.BiFunction; - -public class PoetTool implements BiFunction { - public int count = 0; - - public PoetTool() { - } - - @Override - public String apply( - @ToolParam(description = "The original user query that triggered this tool call") String originalUserQuery, - ToolContext toolContext) { - count++; - System.out.println("Poet tool called : " + originalUserQuery); - return "在城市的缝隙里, \n" + "一束光悄悄发芽, \n" + "穿过钢筋水泥的沉默, \n" + "在风中轻轻说话。 \n" + "\n" + "夜色如墨,却不再黑, \n" - + "星星点亮了每一个角落, \n" + "我站在时间的边缘, \n" + "等一朵云,轻轻落下"; - } - - public static ToolCallback createPoetToolCallback() { - return FunctionToolCallback.builder("poem", new PoetTool()) - .description("用来写诗的工具") - .inputType(String.class) - .build(); - } - - public static ToolCallback createPoetToolCallback(String name, PoetTool poetTool) { - return FunctionToolCallback.builder(name, poetTool) - .description("用来写诗的工具") - .inputType(String.class) - .build(); - } - -} diff --git a/agentic-ai-agent-framework/src/test/resources/logback-test.xml b/agentic-ai-agent-framework/src/test/resources/logback-test.xml deleted file mode 100644 index 340307c98..000000000 --- a/agentic-ai-agent-framework/src/test/resources/logback-test.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n - - - - - - - - - - - diff --git a/agentic-ai-bom/pom.xml b/agentic-ai-bom/pom.xml deleted file mode 100644 index 3fc03d688..000000000 --- a/agentic-ai-bom/pom.xml +++ /dev/null @@ -1,531 +0,0 @@ - - - - 4.0.0 - - io.github.agentic-spring-ai - agentic-spring-ai-bom - ${revision} - - pom - - Agentic AI Bom - https://github.com/agentic-spring-ai/agentic-spring-ai - Bill of Materials POM (BOM) for the Agentic AI modules - - - - https://github.com/agentic-spring-ai/agentic-spring-ai - git://github.com/agentic-spring-ai/agentic-spring-ai.git - git@github.com:agentic-spring-ai/agentic-spring-ai.git - - - - Github Issues - https://github.com/agentic-spring-ai/agentic-spring-ai/issues - - - Github Actions - https://github.com/agentic-spring-ai/agentic-spring-ai/actions - - - - Apache 2.0 - https://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - yuluo-yx - yuluo-yx - https://github.com/yuluo-yx - - - Aias00 - Aias00 - https://github.com/Aias00 - - - - - 2.1.0-dev - - - 3.16.0 - 3.6.0 - 3.6.0 - 3.12.0 - 3.4.0 - 0.8.15 - 1.8.0 - 3.1.4 - 2.2.3 - 3.7.0 - 3.5.0 - 4.0.0-M16 - 3.4.5 - 3.5.1 - 0.0.48 - - - 0.11.0 - - - - - - io.github.agentic-spring-ai - agentic-spring-ai-starter-graph-observation - ${project.version} - - - io.github.agentic-spring-ai - agentic-spring-ai-starter-builtin-nodes - ${project.version} - - - - io.github.agentic-spring-ai - agentic-spring-ai-agent-framework - ${project.version} - - - - io.github.agentic-spring-ai - agentic-spring-ai-graph-core - ${project.version} - - - - - io.github.agentic-spring-ai - agentic-spring-ai-studio - ${project.version} - - - - - - - - - - io.spring.javaformat - spring-javaformat-maven-plugin - ${spring-javaformat-maven-plugin.version} - - true - - - - validate - true - - validate - - - - - - org.apache.maven.plugins - maven-site-plugin - ${maven-site-plugin.version} - - - org.apache.maven.plugins - maven-compiler-plugin - ${maven-compiler-plugin.version} - - ${java.version} - - -parameters - - - - - org.apache.maven.plugins - maven-surefire-plugin - ${maven-surefire-plugin.version} - - ${surefireArgLine} - - - - org.apache.maven.plugins - maven-jar-plugin - ${maven-jar-plugin.version} - - - - ${project.artifactId} - ${project.version} - - - - - - org.codehaus.mojo - flatten-maven-plugin - ${flatten-maven-plugin.version} - - - flatten - process-resources - - flatten - - - true - ossrh - - remove - expand - remove - keep - keep - resolve - - - - - clean - clean - - clean - - - - - - com.diffplug.spotless - spotless-maven-plugin - 2.46.1 - - - - - - - - spotless-apply - - apply - - process-sources - - - - - org.apache.maven.plugins - maven-deploy-plugin - ${maven-deploy-plugin.version} - - - - - - - license - - false - - - - - com.mycila - license-maven-plugin - 4.6 - - - validate - - check - - - - - - the original author or authors. - - 2024 - - true - - -

com/mycila/maven/plugin/license/templates/APACHE-2.txt
- - **/.antlr/** - **/aot.factories - **/.sdkmanrc - **/*.adoc - **/*.puml - **/pom.xml - **/*.properties - **/*.yaml - **/*.yml - **/*.map - **/*.html - **/*.xhtml - **/*.jsp - **/*.js - **/*.css - **/*.txt - **/*.xjb - **/*.ftl - **/*.xsd - **/*.xml - **/*.sh - **/generated/** - **/Dockerfile - - - - - - - - - - - javadoc - - false - - - - - org.apache.maven.plugins - maven-javadoc-plugin - ${maven-javadoc-plugin.version} - - - org.springframework.ai.sample.*,org.springframework.ai.testcontainers.service.connection.* - - - ${project.basedir}/spring-ai-docs/src/main/javadoc/overview.html - - false - none - - true - - - - generate-javadocs - package - - jar - - - - generate-aggregate-javadocs - package - - aggregate - - - - - - - - - integration-tests - - false - - - - - org.apache.maven.plugins - maven-failsafe-plugin - ${maven-failsafe-plugin.version} - - - - integration-test - verify - - - - - - - - - test-coverage - - - - org.jacoco - jacoco-maven-plugin - ${jacoco-maven-plugin.version} - - - prepare-agent - - prepare-agent - - - - report - - report - - - - - - - - - release - - 3.2.8 - 1.7.0 - - - - - org.apache.maven.plugins - maven-source-plugin - ${maven-source-plugin.version} - - - package - - jar-no-fork - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - ${maven-javadoc-plugin.version} - - none - - - - package - - jar - - - - - - org.apache.maven.plugins - maven-gpg-plugin - ${maven-gpg-plugin.version} - - - verify - - sign - - - - - - org.codehaus.mojo - flatten-maven-plugin - ${flatten-maven-plugin.version} - - true - resolveCiFriendliesOnly - - - - flatten - process-resources - - flatten - - - - flatten.clean - clean - - clean - - - - - - org.sonatype.central - central-publishing-maven-plugin - ${central.publishing.maven.version} - true - - central - true - published - - - - - - - - central - https://central.sonatype.com/repository/maven-snapshots - - - - - - - - spring-milestones - Spring Milestones - https://repo.spring.io/milestone - - false - - - - snapshots - https://central.sonatype.com/repository/maven-snapshots/ - - false - - - true - always - - - - sonatype-snapshots - Sonatype Snapshot Repository - https://oss.sonatype.org/content/repositories/snapshots - - false - - - true - always - - - - - diff --git a/agentic-ai-graph-core/README.md b/agentic-ai-graph-core/README.md deleted file mode 100644 index d7009e57c..000000000 --- a/agentic-ai-graph-core/README.md +++ /dev/null @@ -1,91 +0,0 @@ -# Agentic AI Graph - -## What's Agentic AI Graph - -Agentic AI Graph is a **workflow and multi-agent framework** for Java developers to build complex applications composed of multiple AI models or steps. - -Agentic AI Graph serves as the underlying core engine of the Agent Framework. It provides atomic components for building intelligent agents with interruptible and orchestratable capabilities, offering high flexibility but also relatively high learning costs. In contrast, the Agent Framework is built atop Graph, abstracting away the underlying complexities through concepts like ReactAgent and SequentialAgent. - -Please check [the documentation](https://java2ai.com/docs/frameworks/graph-core/quick-start) on official website for more details - -## Core Concepts & Classes - -Graph is deeply integrated with the Spring Boot ecosystem, providing a declarative API to orchestrate workflows. This allows developers to abstract each step of an AI application as a node (Node) and connect these nodes in the form of a directed graph (Graph) to create a customizable execution flow. Compared to traditional single-agent (one-turn Q&A) solutions, Agentic AI Graph supports more complex multi-step task flows, helping to address the issue of a **single large model being insufficient for complex tasks**. - -The core of the framework includes: **StateGraph** (the state graph for defining nodes and edges), **Node** (node, encapsulating a specific operation or model call), **Edge** (edge, representing transitions between nodes), and **OverAllState** (global state, carrying shared data throughout the flow). These designs make it convenient to manage state and control flow in the workflow. - -1. StateGraph - The main class for defining a workflow. - Lets you add nodes (addNode) and edges (addEdge, addConditionalEdges). - Supports conditional routing, subgraphs, and validation. - Can be compiled into a CompiledGraph for execution. -2. Node - Represents a single step in the workflow (e.g., a model call, a data transformation). - Nodes can be asynchronous and can encapsulate LLM calls or custom logic. -3. Edge - Represents transitions between nodes. - Can be conditional, with logic to determine the next node based on the current state. -4. OverAllState - A serializable, central state object that holds all workflow data. - Supports key-based strategies for merging/updating state. - Used for checkpointing, resuming, and passing data between nodes. -5. CompiledGraph - The executable form of a StateGraph. - Handles the actual execution, state transitions, and streaming of results. - Supports interruption, parallel nodes, and checkpointing. -6. InterruptableAction - Interface for actions that can interrupt graph execution. - Provides two hook points: `interrupt()` (before execution) and `interruptAfter()` (after execution). - Useful for human-in-the-loop scenarios, approval workflows, and multi-turn conversations. - -## How It's Used (Typical Flow) -- Define StateGraph: In a Spring configuration, you define a StateGraph bean, add nodes (each encapsulating a model call or logic), and connect them with edges. -- Configure State: Use an OverAllStateFactory to define the initial state and key strategies. -- Execution: The graph is compiled and executed, with state flowing through nodes and edges, and conditional logic determining the path. -- Integration: Typically exposed via a REST controller or service in a Spring Boot app. - -## Interruption Support - -Agentic AI Graph supports interrupting workflow execution at specific points, enabling human-in-the-loop scenarios. - -### InterruptableAction Interface - -```java -public interface InterruptableAction { - // Called BEFORE node execution - can prevent execution - Optional interrupt(String nodeId, OverAllState state, RunnableConfig config); - - // Called AFTER node execution - can inspect results and interrupt - default Optional interruptAfter(String nodeId, OverAllState state, - Map actionResult, RunnableConfig config) { - return Optional.empty(); - } -} -``` - -### Example Usage - -```java -public class ReviewAction implements AsyncNodeActionWithConfig, InterruptableAction { - - @Override - public CompletableFuture> apply(OverAllState state, RunnableConfig config) { - return CompletableFuture.completedFuture(Map.of("result", "generated_content")); - } - - @Override - public Optional interrupt(String nodeId, OverAllState state, RunnableConfig config) { - return Optional.empty(); // Don't interrupt before execution - } - - @Override - public Optional interruptAfter(String nodeId, OverAllState state, - Map actionResult, RunnableConfig config) { - // Interrupt after execution for human review - return Optional.of(InterruptionMetadata.builder(nodeId, state) - .addMetadata("reason", "needs_review") - .addMetadata("content", actionResult.get("result")) - .build()); - } -} -``` diff --git a/agentic-ai-graph-core/pom.xml b/agentic-ai-graph-core/pom.xml deleted file mode 100644 index a39de1053..000000000 --- a/agentic-ai-graph-core/pom.xml +++ /dev/null @@ -1,217 +0,0 @@ - - - - 4.0.0 - - - io.github.agentic-spring-ai - agentic-spring-ai - ${revision} - ../pom.xml - - - agentic-spring-ai-graph-core - jar - Agentic AI Graph Core - A library for building stateful, multi-agents applications with LLMs - https://github.com/agentic-spring-ai/agentic-spring-ai - - git://github.com/agentic-spring-ai/agentic-spring-ai.git - git@github.com:agentic-spring-ai/agentic-spring-ai.git - https://github.com/agentic-spring-ai/agentic-spring-ai - - - - - com.fasterxml.jackson.core - jackson-databind - - - com.fasterxml.jackson.datatype - jackson-datatype-jsr310 - - - com.fasterxml.jackson.datatype - jackson-datatype-jdk8 - - - - org.postgresql - postgresql - true - - - - com.oracle.database.jdbc - ojdbc11 - true - - - com.oracle.database.jdbc - ojdbc-provider-jackson-oson - true - - - - com.mysql - mysql-connector-j - true - - - - io.projectreactor - reactor-core - - - - org.springframework.ai - spring-ai-commons - - - - org.springframework.ai - spring-ai-deepseek - true - - - - org.springframework.ai - spring-ai-client-chat - - - - org.slf4j - slf4j-api - - - - org.springframework.boot - spring-boot-starter-test - test - - - - org.slf4j - slf4j-jdk14 - test - - - - org.redisson - redisson - ${redisson.version} - true - - - - - org.mongodb - mongodb-driver-sync - true - - - - io.opentelemetry - opentelemetry-context - - - - - junit - junit - test - - - - org.junit.platform - junit-platform-launcher - test - - - - org.junit.vintage - junit-vintage-engine - test - - - - - org.testcontainers - testcontainers - test - - - - org.testcontainers - testcontainers-junit-jupiter - test - - - - org.testcontainers - testcontainers-postgresql - test - - - - org.testcontainers - testcontainers-mysql - test - - - - org.testcontainers - testcontainers-oracle-free - test - - - - - com.h2database - h2 - test - - - - - com.zaxxer - HikariCP - test - - - - - - - - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - - - - - - - diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/GraphResponse.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/GraphResponse.java deleted file mode 100644 index 302d4bfc4..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/GraphResponse.java +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph; - -import com.fasterxml.jackson.annotation.JsonIgnore; - -import reactor.core.publisher.Flux; - -import java.io.Serializable; -import java.util.Collections; -import java.util.HashMap; -import java.util.Map; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; -import java.util.function.Supplier; - -import static java.util.concurrent.CompletableFuture.completedFuture; - -/** - * Represents a graph element in the Flux. - * - * @param the type of the data element - */ -public class GraphResponse implements Serializable { - - private static final Map EMPTY_METADATA = Collections.emptyMap(); - - @JsonIgnore - CompletableFuture output; - - Object resultValue; - - Map metadata = EMPTY_METADATA; - - /** - * Lazy continuation of the graph execution. Executors emit a marker response - * carrying the next execution step instead of recursively nesting it with - * {@code concatWith(Flux.defer(...))}; {@link io.github.agentic.spring.ai.graph.GraphRunner} - * expands these markers iteratively so the reactive operator depth stays constant - * regardless of how many nodes execute (see issue #4594). Markers are internal and - * never emitted to downstream consumers. - */ - @JsonIgnore - transient Supplier>> continuation; - - public GraphResponse(){} - - public GraphResponse(CompletableFuture data, Object resultValue) { - this(data, resultValue, EMPTY_METADATA); - } - - public GraphResponse(CompletableFuture data, Object resultValue, Map metadata) { - this.output = data; - this.resultValue = resultValue; - this.metadata = metadata.isEmpty() ? EMPTY_METADATA : new HashMap<>(metadata); - } - - public static GraphResponse of(CompletableFuture data) { - return new GraphResponse<>(data, null); - } - - public static GraphResponse of(CompletableFuture data, Map metadata) { - return new GraphResponse<>(data, null, metadata); - } - - public static GraphResponse of(E data) { - return new GraphResponse<>(completedFuture(data), null); - } - - public static GraphResponse of(E data, Map metadata) { - return new GraphResponse<>(completedFuture(data), null, metadata); - } - - public static GraphResponse done() { - return new GraphResponse<>(null, null); - } - - public static GraphResponse done(Object resultValue) { - return new GraphResponse<>(null, resultValue); - } - - public static GraphResponse done(Object resultValue, Map metadata) { - return new GraphResponse<>(null, resultValue, metadata); - } - - public static GraphResponse error(Throwable exception) { - CompletableFuture future = new CompletableFuture<>(); - future.completeExceptionally(exception); - return GraphResponse.of(future); - } - - public static GraphResponse error(Throwable exception, Map metadata) { - CompletableFuture future = new CompletableFuture<>(); - future.completeExceptionally(exception); - return GraphResponse.of(future, metadata); - } - - /** - * Creates an internal marker response carrying the next execution step. The supplier - * is invoked lazily by the runner-level driver once all elements preceding the marker - * have been emitted, preserving the ordering semantics of the previous recursive - * {@code concatWith(Flux.defer(...))} chaining without growing the operator chain. - * @param continuation supplier of the next execution step - * @param the type of the data element - * @return a continuation marker response - */ - public static GraphResponse continueWith(Supplier>> continuation) { - GraphResponse response = new GraphResponse<>(null, null); - response.continuation = continuation; - return response; - } - - public CompletableFuture getOutput() { - return output; - } - - public Optional resultValue() { - return resultValue == null ? Optional.empty() : Optional.of(resultValue); - } - - @JsonIgnore - public boolean isDone() { - return output == null; - } - - @JsonIgnore - public Supplier>> getContinuation() { - return continuation; - } - - @JsonIgnore - public boolean hasContinuation() { - return continuation != null; - } - - @JsonIgnore - public boolean isError() { - return output != null && output.isCompletedExceptionally(); - } - - /** - * Add metadata with key and value. - * @param key the metadata key - * @param value the metadata value - */ - public void addMetadata(String key, Object value) { - if (this.metadata.isEmpty()) { - this.metadata = new HashMap<>(); - } - this.metadata.put(key, value); - } - - /** - * Get metadata value by key. - * @param key the metadata key - * @return the metadata value, or null if not found - */ - public Object getMetadata(String key) { - return this.metadata.get(key); - } - - /** - * Get metadata value by key with type casting. - * @param key the metadata key - * @param type the expected type class - * @param the expected type - * @return the metadata value cast to the expected type, or null if not found or - * cannot be cast - */ - @SuppressWarnings("unchecked") - public T getMetadata(String key, Class type) { - Object value = this.metadata.get(key); - if (value != null && type.isAssignableFrom(value.getClass())) { - return (T) value; - } - return null; - } - - /** - * Get all metadata as an immutable map. - * @return a copy of all metadata - */ - @JsonIgnore - public Map getAllMetadata() { - return new HashMap<>(this.metadata); - } - - /** - * Check if metadata contains the specified key. - * @param key the metadata key - * @return true if the key exists, false otherwise - */ - public boolean hasMetadata(String key) { - return this.metadata.containsKey(key); - } - - /** - * Remove metadata by key. - * @param key the metadata key - * @return the previous value associated with the key, or null if no mapping existed - */ - public Object removeMetadata(String key) { - if (this.metadata.isEmpty()) { - return null; - } - Object removed = this.metadata.remove(key); - if (this.metadata.isEmpty()) { - this.metadata = EMPTY_METADATA; - } - return removed; - } - - - -} diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/package-info.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/package-info.java deleted file mode 100644 index a0448ada8..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/package-info.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Defines the core interfaces and classes for actions that constitute the building blocks - * of a graph. Actions in this context represent the executable logic associated with - * graph nodes and the conditional logic that determines transitions along graph edges. - * They operate on an {@link io.github.agentic.spring.ai.graph.OverAllState} and can optionally - * interact with a {@link io.github.agentic.spring.ai.graph.RunnableConfig}. - * - *

- * This package provides a clear separation between synchronous and asynchronous - * operations, allowing for flexible graph construction that can accommodate various - * execution models. - *

- * - *

Key Components:

- *
    - *
  • {@link io.github.agentic.spring.ai.graph.action.NodeAction}: Represents a synchronous - * operation performed at a node. It takes the current agent state and returns a - * {@link java.util.Map} representing updates to the state.
  • - *
  • {@link io.github.agentic.spring.ai.graph.action.NodeActionWithConfig}: Similar to - * {@code NodeAction}, but also accepts a - * {@link io.github.agentic.spring.ai.graph.RunnableConfig} parameter, allowing for more - * configurable node behavior at runtime.
  • - *
  • {@link io.github.agentic.spring.ai.graph.action.EdgeAction}: Defines synchronous - * conditional logic for an edge. It evaluates the current agent state and returns a - * {@link java.lang.String} indicating the name of the next node to transition to, or a - * special value to end the graph.
  • - *
  • {@link io.github.agentic.spring.ai.graph.action.CommandAction}: Represents a synchronous - * action that evaluates the agent state and a - * {@link io.github.agentic.spring.ai.graph.RunnableConfig} to produce a - * {@link io.github.agentic.spring.ai.graph.action.Command}. This command encapsulates both - * potential state updates and the next node to transition to, offering a structured way - * to define node outcomes.
  • - *
  • {@link io.github.agentic.spring.ai.graph.action.AsyncNodeAction}: An asynchronous - * counterpart to {@code NodeAction}. It allows for non-blocking operations at nodes, - * returning a {@link java.util.concurrent.CompletableFuture} that will eventually provide - * the {@link java.util.Map} of state updates. This is suitable for I/O-bound tasks or - * long-running computations.
  • - *
  • {@link io.github.agentic.spring.ai.graph.action.AsyncEdgeAction}: The asynchronous version - * of {@code EdgeAction}. It provides a non-blocking way to determine the next path in the - * graph, returning a {@link java.util.concurrent.CompletableFuture} with the name of the - * next node or an indication to end.
  • - *
- * - *

- * Implementations of these interfaces are fundamental to defining the behavior and flow - * of control within a stateful agent graph constructed using Graph. - *

- * - */ -package io.github.agentic.spring.ai.graph.action; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/checkpoint/savers/h2/CreateOption.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/checkpoint/savers/h2/CreateOption.java deleted file mode 100644 index 38f2b1785..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/checkpoint/savers/h2/CreateOption.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph.checkpoint.savers.h2; - -/** - * Options which configure the creation of database schema objects, such as - * tables and indexes. - *

- * Replacement: add artifact - * {@code io.github.agentic-spring-ai:agentic-spring-ai-graph-persistence-jdbc} - * and use - * {@code io.github.agentic.spring.ai.graph.persistence.jdbc.h2.CreateOption}. - * - * @deprecated since 2.1.0 for removal. Use the replacement artifact and FQCN - * listed above. - */ -@Deprecated(since = "2.1.0", forRemoval = true) -public enum CreateOption { - - /** No attempt is made to create the schema object. */ - CREATE_NONE, - - /** An existing schema object is reused, otherwise it is created. */ - CREATE_IF_NOT_EXISTS, - - /** An existing schema object is dropped and replaced with a new one. */ - CREATE_OR_REPLACE -} diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/checkpoint/savers/mysql/CreateOption.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/checkpoint/savers/mysql/CreateOption.java deleted file mode 100644 index a9ffc6cbe..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/checkpoint/savers/mysql/CreateOption.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph.checkpoint.savers.mysql; - -/** - * Options which configure the creation of database schema objects, such as - * tables and indexes. - *

- * Replacement: add artifact - * {@code io.github.agentic-spring-ai:agentic-spring-ai-graph-persistence-jdbc} - * and use - * {@code io.github.agentic.spring.ai.graph.persistence.jdbc.mysql.CreateOption}. - * - * @deprecated since 2.1.0 for removal. Use the replacement artifact and FQCN - * listed above. - */ -@Deprecated(since = "2.1.0", forRemoval = true) -public enum CreateOption { - - /** No attempt is made to create the schema object. */ - CREATE_NONE, - - /** An existing schema object is reused, otherwise it is created. */ - CREATE_IF_NOT_EXISTS, - - /** An existing schema object is dropped and replaced with a new one. */ - CREATE_OR_REPLACE -} diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/checkpoint/savers/oracle/CreateOption.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/checkpoint/savers/oracle/CreateOption.java deleted file mode 100644 index 127d61809..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/checkpoint/savers/oracle/CreateOption.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.github.agentic.spring.ai.graph.checkpoint.savers.oracle; - -/** - * Options which configure the creation of database schema objects, such as - * tables and indexes. - *

- * Replacement: add artifact - * {@code io.github.agentic-spring-ai:agentic-spring-ai-graph-persistence-jdbc} - * and use - * {@code io.github.agentic.spring.ai.graph.persistence.jdbc.oracle.CreateOption}. - * - * @deprecated since 2.1.0 for removal. Use the replacement artifact and FQCN - * listed above. - */ -@Deprecated(since = "2.1.0", forRemoval = true) -public enum CreateOption { - - /** No attempt is made to create the schema object. */ - CREATE_NONE, - - /** An existing schema object is reused, otherwise it is created. */ - CREATE_IF_NOT_EXISTS, - - /** An existing schema object is dropped and replaced with a new one. */ - CREATE_OR_REPLACE -} diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/checkpoint/savers/postgresql/CreateOption.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/checkpoint/savers/postgresql/CreateOption.java deleted file mode 100644 index 0717068a0..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/checkpoint/savers/postgresql/CreateOption.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph.checkpoint.savers.postgresql; - -/** - * Options which configure the creation of database schema objects, such as - * tables and indexes. - *

- * Replacement: add artifact - * {@code io.github.agentic-spring-ai:agentic-spring-ai-graph-persistence-jdbc} - * and use - * {@code io.github.agentic.spring.ai.graph.persistence.jdbc.postgresql.CreateOption}. - * - * @deprecated since 2.1.0 for removal. Use the replacement artifact and FQCN - * listed above. - */ -@Deprecated(since = "2.1.0", forRemoval = true) -public enum CreateOption { - - /** No attempt is made to create the schema object. */ - CREATE_NONE, - - /** An existing schema object is reused, otherwise it is created. */ - CREATE_IF_NOT_EXISTS, - - /** An existing schema object is dropped and replaced with a new one. */ - CREATE_OR_REPLACE -} diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/internal/node/SubCompiledGraphNode.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/internal/node/SubCompiledGraphNode.java deleted file mode 100644 index a11b68258..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/internal/node/SubCompiledGraphNode.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.github.agentic.spring.ai.graph.internal.node; - -import io.github.agentic.spring.ai.graph.CompiledGraph; -import io.github.agentic.spring.ai.graph.KeyStrategy; -import io.github.agentic.spring.ai.graph.StateGraph; -import io.github.agentic.spring.ai.graph.SubGraphNode; -import io.github.agentic.spring.ai.graph.state.strategy.ReplaceStrategy; - -import java.util.Map; -import java.util.Objects; - -import static io.github.agentic.spring.ai.graph.internal.node.ResumableSubGraphAction.outputKeyToParent; - -public class SubCompiledGraphNode extends Node implements SubGraphNode { - private final CompiledGraph subGraph; - private final String id; - - public SubCompiledGraphNode(String id, CompiledGraph subGraph) { - super(Objects.requireNonNull(id, "id cannot be null"), - (config) -> new SubCompiledGraphNodeAction(id, config, subGraph)); - this.subGraph = subGraph; - this.id = id; - } - - public StateGraph subGraph() { - return subGraph.stateGraph; - } - - @Override - public Map keyStrategies() { - return Map.of(outputKeyToParent(id), new ReplaceStrategy()); - } - -} diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/observation/GraphMetricsGenerator.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/observation/GraphMetricsGenerator.java deleted file mode 100644 index b09f27a86..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/observation/GraphMetricsGenerator.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph.observation; - -import io.github.agentic.spring.ai.graph.observation.edge.GraphEdgeObservationContext; -import io.github.agentic.spring.ai.graph.observation.graph.GraphObservationContext; -import io.github.agentic.spring.ai.graph.observation.metric.SpringAiAlibabaObservationMetricAttributes; -import io.github.agentic.spring.ai.graph.observation.metric.SpringAiAlibabaObservationMetricNames; -import io.github.agentic.spring.ai.graph.observation.node.GraphNodeObservationContext; -import io.micrometer.common.KeyValue; -import io.micrometer.core.instrument.Counter; -import io.micrometer.core.instrument.MeterRegistry; -import io.micrometer.core.instrument.Tag; -import io.micrometer.observation.Observation; - -import java.util.ArrayList; -import java.util.List; - -/** - * Utility class for generating metrics from graph observation contexts. Creates counters - * for graph nodes, edges, and overall graph operations. Supports success/failure tracking - * and custom tagging for metric aggregation. - * - * @author XiaoYunTao - * @since 2025/6/28 - */ -public class GraphMetricsGenerator { - - private static final String DESCRIPTION = "Counts the number of times a graph is used"; - - private GraphMetricsGenerator() { - } - - /** - * Generates metrics for a graph node observation context. Creates a counter with - * node-specific tags and success/failure tracking. - * @param context the node observation context - * @param meterRegistry the meter registry for metric registration - * @param isSuccess whether the node operation was successful - */ - public static void generate(GraphNodeObservationContext context, MeterRegistry meterRegistry, boolean isSuccess) { - Counter.builder(SpringAiAlibabaObservationMetricNames.GRAPH_NODE.value()) - .tag(SpringAiAlibabaObservationMetricAttributes.GRAPH_NODE_NAME.value(), context.getNodeName()) - .tag(SpringAiAlibabaObservationMetricAttributes.GRAPH_NODE_SUCCESS.value(), String.valueOf(isSuccess)) - .description(DESCRIPTION) - .tags(createTags(context)) - .register(meterRegistry) - .increment(); - } - - /** - * Generates metrics for a graph observation context. Creates a counter with - * graph-specific tags and success/failure tracking. - * @param context the graph observation context - * @param meterRegistry the meter registry for metric registration - * @param isSuccess whether the graph operation was successful - */ - public static void generate(GraphObservationContext context, MeterRegistry meterRegistry, boolean isSuccess) { - Counter.builder(SpringAiAlibabaObservationMetricNames.GRAPH.value()) - .tag(SpringAiAlibabaObservationMetricAttributes.GRAPH_NAME.value(), context.getGraphName()) - .tag(SpringAiAlibabaObservationMetricAttributes.GRAPH_SUCCESS.value(), String.valueOf(isSuccess)) - .description(DESCRIPTION) - .tags(createTags(context)) - .register(meterRegistry) - .increment(); - } - - /** - * Generates metrics for a graph edge observation context. Creates a counter with - * edge-specific tags and success/failure tracking. - * @param context the edge observation context - * @param meterRegistry the meter registry for metric registration - * @param isSuccess whether the edge operation was successful - */ - public static void generate(GraphEdgeObservationContext context, MeterRegistry meterRegistry, boolean isSuccess) { - Counter.builder(SpringAiAlibabaObservationMetricNames.GRAPH_EDGE.value()) - .tag(SpringAiAlibabaObservationMetricAttributes.GRAPH_EDGE_NAME.value(), context.getGraphEdgeName()) - .tag(SpringAiAlibabaObservationMetricAttributes.GRAPH_EDGE_SUCCESS.value(), String.valueOf(isSuccess)) - .description(DESCRIPTION) - .tags(createTags(context)) - .register(meterRegistry) - .increment(); - } - - /** - * Creates tags from the low cardinality key-values of an observation context. - * Converts KeyValue objects to Tag objects for metric registration. - * @param context the observation context containing key-values - * @return a list of tags created from the context's key-values - */ - private static List createTags(Observation.Context context) { - List tags = new ArrayList<>(); - for (KeyValue keyValue : context.getLowCardinalityKeyValues()) { - tags.add(Tag.of(keyValue.getKey(), keyValue.getValue())); - } - return tags; - } - -} diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/observation/SpringAiAlibabaKind.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/observation/SpringAiAlibabaKind.java deleted file mode 100644 index 06a174c44..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/observation/SpringAiAlibabaKind.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph.observation; - -/** - * Enumeration defining the types of AI operations in Spring AI Alibaba. Provides - * standardized identifiers for different graph-related observation kinds. Used for - * categorizing and filtering observation metrics and traces. - * - * @author XiaoYunTao - * @since 2025/6/28 - */ -public enum SpringAiAlibabaKind { - - /** - * Represents a complete graph operation. - */ - GRAPH("graph"), - - /** - * Represents a graph node operation. - */ - GRAPH_NODE("graph_node"), - - /** - * Represents a graph edge operation. - */ - GRAPH_EDGE("graph_edge"); - - private final String value; - - /** - * Constructs a new SpringAiAlibabaKind with the specified value. - * @param value the string representation of this kind - */ - SpringAiAlibabaKind(String value) { - this.value = value; - } - - /** - * Gets the string value of this kind. - * @return the string representation of this kind - */ - public String getValue() { - return this.value; - } - -} diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/observation/metric/SpringAiAlibabaObservationMetricAttributes.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/observation/metric/SpringAiAlibabaObservationMetricAttributes.java deleted file mode 100644 index ce1c66a14..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/observation/metric/SpringAiAlibabaObservationMetricAttributes.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph.observation.metric; - -/** - * Enumeration defining metric attributes for Spring AI Alibaba graph - * observations. - * Provides standardized attribute names for graph, node, and edge metrics. Used - * for - * tagging and categorizing observation metrics in monitoring systems. - * - * @author XiaoYunTao - * @since 2025/6/28 - */ -public enum SpringAiAlibabaObservationMetricAttributes { - - /** - * Attribute for the name of a graph operation. - */ - GRAPH_NAME("spring.ai.alibaba.graph.name"), - - /** - * Attribute indicating the success status of a graph operation. - */ - GRAPH_SUCCESS("spring.ai.alibaba.graph.success"), - - /** - * Attribute for the name of a graph node operation. - */ - GRAPH_NODE_NAME("spring.ai.alibaba.graph.node.name"), - - /** - * Attribute indicating the success status of a graph node operation. - */ - GRAPH_NODE_SUCCESS("spring.ai.alibaba.graph.node.success"), - - /** - * Attribute for the name of a graph edge operation. - */ - GRAPH_EDGE_NAME("spring.ai.alibaba.graph.edge.name"), - - /** - * Attribute indicating the success status of a graph edge operation. - */ - GRAPH_EDGE_SUCCESS("spring.ai.alibaba.graph.edge.success"), - - /** - * Attribute for Generative AI Prompt. - */ - GEN_AI_PROMPT("gen_ai.prompt"), - - /** - * Attribute for Generative AI Completion. - */ - GEN_AI_COMPLETION("gen_ai.completion"), - - /** - * Attribute for Langfuse Input. - */ - LANGFUSE_INPUT("langfuse.observation.input"), - - /** - * Attribute for Langfuse Output. - */ - LANGFUSE_OUTPUT("langfuse.observation.output"); - - private final String value; - - /** - * Constructs a new SpringAiAlibabaObservationMetricAttributes with the - * specified - * value. - * - * @param value the string representation of this attribute - */ - SpringAiAlibabaObservationMetricAttributes(String value) { - this.value = value; - } - - /** - * Gets the string value of this attribute. - * - * @return the string representation of this attribute - */ - public String value() { - return value; - } - -} diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/observation/metric/SpringAiAlibabaObservationMetricNames.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/observation/metric/SpringAiAlibabaObservationMetricNames.java deleted file mode 100644 index 25a4991b3..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/observation/metric/SpringAiAlibabaObservationMetricNames.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph.observation.metric; - -/** - * Enumeration defining metric names for Spring AI Alibaba graph observations. Provides - * standardized metric names for graph, node, and edge operations. Used for identifying - * and categorizing different types of observation metrics. - * - * @author XiaoYunTao - * @since 2025/6/28 - */ -public enum SpringAiAlibabaObservationMetricNames { - - /** - * Metric name for graph operations. - */ - GRAPH("spring.ai.alibaba.graph"), - - /** - * Metric name for graph node operations. - */ - GRAPH_NODE("spring.ai.alibaba.graph.node"), - - /** - * Metric name for graph edge operations. - */ - GRAPH_EDGE("spring.ai.alibaba.graph.edge"); - - private final String value; - - /** - * Constructs a new SpringAiAlibabaObservationMetricNames with the specified value. - * @param value the string representation of this metric name - */ - SpringAiAlibabaObservationMetricNames(String value) { - this.value = value; - } - - /** - * Gets the string value of this metric name. - * @return the string representation of this metric name - */ - public String value() { - return value; - } - -} diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/package-info.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/package-info.java deleted file mode 100644 index 34125c3d8..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/package-info.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * The {@code io.github.agentic.spring.ai.graph} package provides classes and interfaces for - * building stateful, multi-agent applications with LLMs. It includes core components such - * as {@link io.github.agentic.spring.ai.graph.StateGraph}, - * {@link io.github.agentic.spring.ai.graph.CompiledGraph}, - * {@link io.github.agentic.spring.ai.graph.internal.node.Node}, and - * {@link io.github.agentic.spring.ai.graph.internal.edge.Edge}, which facilitate the creation - * and management of state graphs. - * - *

- * Key classes and interfaces: - *

- *
    - *
  • {@link io.github.agentic.spring.ai.graph.StateGraph} - Represents a state graph with nodes - * and edges.
  • - *
  • {@link io.github.agentic.spring.ai.graph.CompiledGraph} - Represents a compiled state - * graph ready for execution.
  • - *
  • {@link io.github.agentic.spring.ai.graph.internal.node.Node} - Represents a node in the - * graph with a unique identifier and an associated action.
  • - *
  • {@link io.github.agentic.spring.ai.graph.internal.edge.Edge} - Represents an edge in the - * graph with a source ID and a target value.
  • - *
- * - *

- * Utility classes: - *

- *
    - *
  • {@link io.github.agentic.spring.ai.graph.utils.CollectionsUtils} - Provides utility - * methods for creating collections.
  • - *
- * - *

- * Exception classes: - *

- *
    - *
  • {@link io.github.agentic.spring.ai.graph.exception.GraphStateException} - Exception thrown - * when there is an error related to the state of a graph.
  • - *
- */ -package io.github.agentic.spring.ai.graph; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/serializer/plain_text/jackson/StreamingOutputSerializer.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/serializer/plain_text/jackson/StreamingOutputSerializer.java deleted file mode 100644 index 2725768db..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/serializer/plain_text/jackson/StreamingOutputSerializer.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph.serializer.plain_text.jackson; - -import io.github.agentic.spring.ai.graph.streaming.OutputType; -import io.github.agentic.spring.ai.graph.streaming.StreamingOutput; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonToken; -import com.fasterxml.jackson.core.type.WritableTypeId; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.jsontype.TypeSerializer; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import org.springframework.ai.chat.messages.Message; - -import java.io.IOException; - -/** - * Custom serializer for StreamingOutput that skips the originData field. - * Supports serialization of outputType and message fields. - */ -public class StreamingOutputSerializer extends StdSerializer { - - public StreamingOutputSerializer() { - super(StreamingOutput.class); - } - - @Override - public void serialize(StreamingOutput value, JsonGenerator gen, SerializerProvider provider) throws IOException { - gen.writeStartObject(); - serializeFields(value, gen, provider); - gen.writeEndObject(); - } - - @Override - public void serializeWithType(StreamingOutput value, JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer) throws IOException { - WritableTypeId typeIdDef = typeSer.writeTypePrefix(gen, typeSer.typeId(value, JsonToken.START_OBJECT)); - serializeFields(value, gen, provider); - typeSer.writeTypeSuffix(gen, typeIdDef); - } - - private void serializeFields(StreamingOutput value, JsonGenerator gen, SerializerProvider provider) throws IOException { - gen.writeStringField("node", value.node()); - gen.writeStringField("agent", value.agent()); - gen.writeObjectField("state", value.state()); - gen.writeBooleanField("subGraph", value.isSubGraph()); - - // Serialize message if present - Message message = value.message(); - if (message != null) { - gen.writeObjectField("message", message); - } - - // Serialize outputType if present - OutputType outputType = value.getOutputType(); - if (outputType != null) { - gen.writeStringField("outputType", outputType.name()); - } - - // Only serialize chunk field, skip originData - if (value.chunk() != null) { - gen.writeStringField("chunk", value.chunk()); - } - } -} - diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/serializer/std/StreamingOutputSerializer.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/serializer/std/StreamingOutputSerializer.java deleted file mode 100644 index 0fbaa4315..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/serializer/std/StreamingOutputSerializer.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph.serializer.std; - -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.streaming.OutputType; -import io.github.agentic.spring.ai.graph.streaming.StreamingOutput; -import org.springframework.ai.chat.messages.Message; - -import java.io.IOException; -import java.io.ObjectInput; -import java.io.ObjectOutput; - -public class StreamingOutputSerializer implements NullableObjectSerializer { - - private final MessageSerializer messageSerializer = new MessageSerializer(); - - @Override - public void write(StreamingOutput object, ObjectOutput out) throws IOException { - // Write base NodeOutput fields - writeNullableUTF(object.node(), out); - writeNullableUTF(object.agent(), out); - writeNullableObject(object.state(), out); - out.writeBoolean(object.isSubGraph()); - - // Write StreamingOutput specific fields - writeNullableUTF(object.chunk(), out); - - // Write message using MessageSerializer if present - Message message = object.message(); - if (message != null) { - out.writeByte(1); - messageSerializer.write(message, out); - } else { - out.writeByte(0); - } - - // Write outputType if present - if (object.getOutputType() != null) { - out.writeByte(1); - writeNullableUTF(object.getOutputType().name(), out); - } else { - out.writeByte(0); - } - } - - @Override - @SuppressWarnings("unchecked") - public StreamingOutput read(ObjectInput in) throws IOException, ClassNotFoundException { - // Read base NodeOutput fields - String node = readNullableUTF(in).orElse(null); - String agent = readNullableUTF(in).orElse(null); - OverAllState state = (OverAllState) readNullableObject(in).orElse(null); - boolean subGraph = in.readBoolean(); - - // Read StreamingOutput specific fields - String chunk = readNullableUTF(in).orElse(null); - - // Read message using MessageSerializer if present - Message message = null; - byte hasMessage = in.readByte(); - if (hasMessage == 1) { - message = messageSerializer.read(in); - } - - // Read outputType if present - OutputType outputType = null; - byte hasOutputType = in.readByte(); - if (hasOutputType == 1) { - String outputTypeStr = readNullableUTF(in).orElse(null); - if (outputTypeStr != null) { - try { - outputType = OutputType.valueOf(outputTypeStr); - } catch (IllegalArgumentException e) { - // If enum value is not found, outputType remains null - } - } - } - - // Create StreamingOutput with all available fields - // Prefer constructor with message if message is present - StreamingOutput output; - if (message != null) { - output = new StreamingOutput<>(message, node, agent, state, outputType); - } else { - // Fallback to deprecated constructor with chunk (for backward compatibility) - output = new StreamingOutput<>(chunk, node, agent, state); - } - - output.setSubGraph(subGraph); - return output; - } - -} - diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/serializer/std/package-info.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/serializer/std/package-info.java deleted file mode 100644 index 8eaa40f33..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/serializer/std/package-info.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * This package contains implementations of the - * {@link io.github.agentic.spring.ai.graph.serializer.Serializer} interface that utilize Java's - * built-in serialization mechanism. - * - * @see io.github.agentic.spring.ai.graph.serializer.Serializer - * @see java.io.Serializable - */ -package io.github.agentic.spring.ai.graph.serializer.std; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/state/package-info.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/state/package-info.java deleted file mode 100644 index 420307ca3..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/state/package-info.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Provides classes and interfaces for managing the state of agents in the Spring AI - * Alibaba framework. - *

- * This package includes: - *

    - *
  • AgentState - Represents the state of an agent with a map of data.
  • - *
  • {@link io.github.agentic.spring.ai.graph.state.AgentStateFactory} - A factory interface - * for creating instances of AgentState.
  • - *
  • AppendableValue - Represents a value that can be appended to and provides various - * utility methods.
  • - *
- */ -package io.github.agentic.spring.ai.graph.state; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/store/stores/RedisStore.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/store/stores/RedisStore.java deleted file mode 100644 index 290f43034..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/store/stores/RedisStore.java +++ /dev/null @@ -1,305 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph.store.stores; - -import io.github.agentic.spring.ai.graph.store.NamespaceListRequest; -import io.github.agentic.spring.ai.graph.store.StoreItem; -import io.github.agentic.spring.ai.graph.store.StoreSearchRequest; -import io.github.agentic.spring.ai.graph.store.StoreSearchResult; -import io.github.agentic.spring.ai.graph.store.constant.StoreConstant; -import com.fasterxml.jackson.databind.ObjectMapper; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; -import java.util.Optional; -import java.util.Set; -import java.util.concurrent.locks.ReadWriteLock; -import java.util.concurrent.locks.ReentrantReadWriteLock; -import java.util.stream.Collectors; - -/** - * Redis-like implementation of the Store interface using in-memory storage. - *

- * This implementation simulates Redis behavior using a ConcurrentHashMap for environments - * where actual Redis dependencies are not available. For production use with actual - * Redis, replace this with a proper Redis client implementation. - *

- * - * @author Spring AI Alibaba - * @since 1.0.0.3 - */ -public class RedisStore extends BaseStore { - - private final Map redisLikeStorage; - - private final ObjectMapper objectMapper; - - private final String keyPrefix; - - private final List readableKeyPrefixes; - - private final ReadWriteLock lock = new ReentrantReadWriteLock(); - - /** - * Constructor with default key prefix. - */ - public RedisStore() { - this(StoreConstant.REDIS_KEY_PREFIX, List.of(StoreConstant.LEGACY_REDIS_KEY_PREFIX)); - } - - /** - * Constructor with custom key prefix. - * @param keyPrefix Redis key prefix - */ - public RedisStore(String keyPrefix) { - this(keyPrefix, List.of()); - } - - private RedisStore(String keyPrefix, List fallbackKeyPrefixes) { - this.redisLikeStorage = new HashMap<>(); - this.keyPrefix = keyPrefix; - List prefixes = new ArrayList<>(); - prefixes.add(keyPrefix); - fallbackKeyPrefixes.stream().filter(prefix -> !prefix.equals(keyPrefix)).forEach(prefixes::add); - this.readableKeyPrefixes = List.copyOf(prefixes); - this.objectMapper = new ObjectMapper(); - this.objectMapper.findAndRegisterModules(); - } - - @Override - public void putItem(StoreItem item) { - validatePutItem(item); - - lock.writeLock().lock(); - try { - String storeKey = createStoreKey(item.getNamespace(), item.getKey()); - String redisKey = keyPrefix + storeKey; - String itemJson = objectMapper.writeValueAsString(item); - redisLikeStorage.put(redisKey, itemJson); - readableKeyPrefixes.stream() - .filter(prefix -> !prefix.equals(keyPrefix)) - .forEach(prefix -> redisLikeStorage.remove(prefix + storeKey)); - } - catch (Exception e) { - throw new RuntimeException("Failed to store item in Redis-like storage", e); - } - finally { - lock.writeLock().unlock(); - } - } - - @Override - public Optional getItem(List namespace, String key) { - validateGetItem(namespace, key); - - lock.readLock().lock(); - try { - String storeKey = createStoreKey(namespace, key); - String value = readableKeyPrefixes.stream() - .map(prefix -> redisLikeStorage.get(prefix + storeKey)) - .filter(java.util.Objects::nonNull) - .findFirst() - .orElse(null); - - if (value == null) { - return Optional.empty(); - } - - StoreItem item = objectMapper.readValue(value, StoreItem.class); - return Optional.of(item); - } - catch (Exception e) { - throw new RuntimeException("Failed to retrieve item from Redis-like storage", e); - } - finally { - lock.readLock().unlock(); - } - } - - @Override - public boolean deleteItem(List namespace, String key) { - validateDeleteItem(namespace, key); - - lock.writeLock().lock(); - try { - String storeKey = createStoreKey(namespace, key); - boolean deleted = false; - for (String prefix : readableKeyPrefixes) { - deleted |= redisLikeStorage.remove(prefix + storeKey) != null; - } - return deleted; - } - finally { - lock.writeLock().unlock(); - } - } - - @Override - public StoreSearchResult searchItems(StoreSearchRequest searchRequest) { - validateSearchItems(searchRequest); - - lock.readLock().lock(); - try { - List allItems = getAllItems(); - - // Apply filters - List filteredItems = allItems.stream() - .filter(item -> matchesSearchCriteria(item, searchRequest)) - .collect(Collectors.toList()); - - // Sort items - if (!searchRequest.getSortFields().isEmpty()) { - filteredItems.sort(createComparator(searchRequest)); - } - - long totalCount = filteredItems.size(); - - // Apply pagination - int offset = searchRequest.getOffset(); - int limit = searchRequest.getLimit(); - - if (offset >= filteredItems.size()) { - return StoreSearchResult.of(Collections.emptyList(), totalCount, offset, limit); - } - - int endIndex = Math.min(offset + limit, filteredItems.size()); - List resultItems = filteredItems.subList(offset, endIndex); - - return StoreSearchResult.of(resultItems, totalCount, offset, limit); - } - finally { - lock.readLock().unlock(); - } - } - - @Override - public List listNamespaces(NamespaceListRequest namespaceRequest) { - validateListNamespaces(namespaceRequest); - - lock.readLock().lock(); - try { - Set namespaceSet = new HashSet<>(); - List prefixFilter = namespaceRequest.getNamespace(); - - List allItems = getAllItems(); - - for (StoreItem item : allItems) { - List itemNamespace = item.getNamespace(); - - // Check if namespace starts with prefix filter - if (!prefixFilter.isEmpty() && !startsWithPrefix(itemNamespace, prefixFilter)) { - continue; - } - - // Generate all possible namespace paths up to maxDepth - int maxDepth = namespaceRequest.getMaxDepth(); - int depth = (maxDepth == -1) ? itemNamespace.size() : Math.min(maxDepth, itemNamespace.size()); - - for (int i = 1; i <= depth; i++) { - String namespacePath = String.join("/", itemNamespace.subList(0, i)); - namespaceSet.add(namespacePath); - } - } - - List namespaces = new ArrayList<>(namespaceSet); - Collections.sort(namespaces); - - // Apply pagination - int offset = namespaceRequest.getOffset(); - int limit = namespaceRequest.getLimit(); - - if (offset >= namespaces.size()) { - return Collections.emptyList(); - } - - int endIndex = Math.min(offset + limit, namespaces.size()); - return namespaces.subList(offset, endIndex); - } - finally { - lock.readLock().unlock(); - } - } - - @Override - public void clear() { - lock.writeLock().lock(); - try { - Set keysToRemove = redisLikeStorage.keySet().stream().filter(this::hasReadablePrefix) - .collect(Collectors.toSet()); - keysToRemove.forEach(redisLikeStorage::remove); - } - finally { - lock.writeLock().unlock(); - } - } - - @Override - public long size() { - lock.readLock().lock(); - try { - return redisLikeStorage.keySet().stream().map(this::logicalKey).flatMap(Optional::stream).distinct().count(); - } - finally { - lock.readLock().unlock(); - } - } - - @Override - public boolean isEmpty() { - return size() == 0; - } - - /** - * Get all items from the primary and fallback key prefixes. - * @return list of all items - */ - private List getAllItems() { - Map items = new LinkedHashMap<>(); - - for (String prefix : readableKeyPrefixes) { - for (Map.Entry entry : redisLikeStorage.entrySet()) { - if (entry.getKey().startsWith(prefix)) { - try { - String storeKey = entry.getKey().substring(prefix.length()); - items.putIfAbsent(storeKey, objectMapper.readValue(entry.getValue(), StoreItem.class)); - } - catch (Exception e) { - // Skip invalid items - } - } - } - } - - return new ArrayList<>(items.values()); - } - - private boolean hasReadablePrefix(String redisKey) { - return readableKeyPrefixes.stream().anyMatch(redisKey::startsWith); - } - - private Optional logicalKey(String redisKey) { - return readableKeyPrefixes.stream() - .filter(redisKey::startsWith) - .findFirst() - .map(prefix -> redisKey.substring(prefix.length())); - } - -} diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/utils/CodeUtils.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/utils/CodeUtils.java deleted file mode 100644 index 11e3a6278..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/utils/CodeUtils.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph.utils; - -/** - * @author HeYQ - * @since 2025-06-01 20:35 - */ - -public class CodeUtils { - - public static String getExecutableForLanguage(String language) throws Exception { - return switch (language) { - case "python3", "python" -> language; - case "shell", "bash", "sh", "powershell" -> "sh"; - case "nodejs" -> "node"; - case "java" -> "java"; - default -> throw new Exception("Language not recognized in code execution:" + language); - }; - } - - public static String getFileExtForLanguage(String language) throws Exception { - return switch (language) { - case "python3", "python" -> "py"; - case "shell", "bash", "sh", "powershell" -> "sh"; - case "nodejs" -> "js"; - case "java" -> "java"; - default -> throw new Exception("Language not recognized in code execution:" + language); - }; - } - -} diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/utils/FileUtils.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/utils/FileUtils.java deleted file mode 100644 index bb4ded2f4..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/utils/FileUtils.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.github.agentic.spring.ai.graph.utils; - -import java.io.IOException; -import java.net.URL; -import java.nio.file.Files; -import java.nio.file.Path; - -/** - * @author HeYQ - * @since 2024-11-28 11:47 - */ -public class FileUtils { - - private FileUtils() { - throw new IllegalStateException("Utility class"); - } - - public static void writeCodeToFile(String workDir, String filename, String code) { - try { - if (code == null) { - throw new IllegalArgumentException("Code must not be null"); - } - Path filepath = Path.of(workDir, filename); - // ensure the parent directory exists - Path fileDir = filepath.getParent(); - if (fileDir != null && !Files.exists(fileDir)) { - Files.createDirectories(fileDir); - } - // write the code to the file - Files.writeString(filepath, code); - } - catch (IOException e) { - throw new RuntimeException(e); - } - } - - /** - * Deletes the file specified by the filename from the provided working directory. - * @param workDir The working directory where the file to be deleted is located. - * @param filename The name of the file to be deleted. - */ - public static void deleteFile(String workDir, String filename) { - try { - Path filepath = Path.of(workDir, filename); - Files.deleteIfExists(filepath); - } - catch (IOException e) { - throw new RuntimeException(e); - } - } - - /** - * Copies all JAR files from the resources/lib directory to the specified working - * directory. - * @param workDir The target working directory where the JAR files will be copied. - */ - public static void copyResourceJarToWorkDir(String workDir) { - try { - // Get the JAR files from resources/lib directory - ClassLoader classLoader = FileUtils.class.getClassLoader(); - URL libUrl = classLoader.getResource("lib"); - if (libUrl == null) { - throw new RuntimeException("Could not find lib directory in resources"); - } - - // Create target directory if it doesn't exist - Path targetDir = Path.of(workDir); - if (!Files.exists(targetDir)) { - Files.createDirectories(targetDir); - } - - // Get all JAR files from lib directory - Path libPath = Path.of(libUrl.toURI()); - try (var stream = Files.walk(libPath)) { - stream.filter(path -> path.toString().endsWith(".jar")).forEach(jarPath -> { - try { - Path targetPath = targetDir.resolve(jarPath.getFileName()); - Files.copy(jarPath, targetPath, java.nio.file.StandardCopyOption.REPLACE_EXISTING); - } - catch (IOException e) { - throw new RuntimeException("Failed to copy JAR file: " + jarPath, e); - } - }); - } - } - catch (Exception e) { - throw new RuntimeException("Failed to copy JAR files to working directory", e); - } - } - - /** - * Deletes all JAR files from the specified working directory. - * @param workDir The working directory from which the JAR files will be deleted. - */ - public static void deleteResourceJarFromWorkDir(String workDir) { - try { - Path workDirPath = Path.of(workDir); - if (Files.exists(workDirPath)) { - try (var stream = Files.walk(workDirPath)) { - stream.filter(path -> path.toString().endsWith(".jar")).forEach(jarPath -> { - try { - Files.deleteIfExists(jarPath); - } - catch (IOException e) { - throw new RuntimeException("Failed to delete JAR file: " + jarPath, e); - } - }); - } - } - } - catch (IOException e) { - throw new RuntimeException("Failed to delete JAR files from working directory", e); - } - } - -} diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/utils/Messageutils.java b/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/utils/Messageutils.java deleted file mode 100644 index f8378811e..000000000 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/utils/Messageutils.java +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph.utils; - -import org.springframework.ai.chat.messages.AssistantMessage; -import org.springframework.ai.chat.messages.Message; -import org.springframework.ai.chat.messages.SystemMessage; -import org.springframework.ai.chat.messages.UserMessage; - -import org.springframework.util.StringUtils; - -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; - -public class Messageutils { - - private static final ObjectMapper objectMapper = new ObjectMapper(); - - /** - * Generic method to convert various types of messages to Message list - * Supported types: - * 1. String - converted to UserMessage - * 2. Map (e.g. {"role": "user", "text": "test"}) - create corresponding Message based on role - * 3. Spring AI Message - use directly - * 4. List - recursively process each element in the list - */ - public static List convertToMessages(Object value) { - List result = new ArrayList<>(); - - if (value == null) { - return result; - } - - if (value instanceof List) { - List list = (List) value; - if (list.isEmpty()) { - return result; - } - - for (Object item : list) { - result.addAll(convertToMessages(item)); - } - } - else if (value instanceof Message) { - // If it's already a Spring AI Message, add it directly - result.add((Message) value); - } - else if (value instanceof String) { - // If it's a string, convert to UserMessage - String text = (String) value; - if (StringUtils.hasLength(text)) { - result.add(new UserMessage(text)); - } - } - else if (value instanceof Map) { - // If it's a Map, attempt to parse as Message - Map map = (Map) value; - Message message = convertMapToMessage(map); - if (message != null) { - result.add(message); - } - } - else { - // For other types, attempt conversion through JSON serialization/deserialization - try { - String json = objectMapper.writeValueAsString(value); - JsonNode jsonNode = objectMapper.readTree(json); - if (jsonNode.isObject()) { - Message message = convertJsonNodeToMessage(jsonNode); - if (message != null) { - result.add(message); - } - } - } - catch (Exception e) { - // If conversion fails, treat it as a string - String text = value.toString(); - if (StringUtils.hasLength(text)) { - result.add(new UserMessage(text)); - } - } - } - - return result; - } - - /** - * Convert Map to Message - */ - public static Message convertMapToMessage(Map map) { - if (map == null || map.isEmpty()) { - return null; - } - - Object roleObj = map.get("role"); - Object textObj = map.get("text"); - Object contentObj = map.get("content"); - - // Prioritize content, then text - String content = null; - if (contentObj != null) { - content = contentObj.toString(); - } - else if (textObj != null) { - content = textObj.toString(); - } - - if (!StringUtils.hasLength(content)) { - return null; - } - - String role = roleObj != null ? roleObj.toString().toLowerCase() : "user"; - - switch (role) { - case "system": - return new SystemMessage(content); - case "assistant": - return new AssistantMessage(content); - case "user": - default: - return new UserMessage(content); - } - } - - /** - * Convert JsonNode to Message - */ - public static Message convertJsonNodeToMessage(JsonNode jsonNode) { - if (jsonNode == null || !jsonNode.isObject()) { - return null; - } - - JsonNode roleNode = jsonNode.get("role"); - JsonNode textNode = jsonNode.get("text"); - JsonNode contentNode = jsonNode.get("content"); - - // Prioritize content, then text - String content = null; - if (contentNode != null && contentNode.isTextual()) { - content = contentNode.asText(); - } - else if (textNode != null && textNode.isTextual()) { - content = textNode.asText(); - } - - if (!StringUtils.hasLength(content)) { - return null; - } - - String role = roleNode != null && roleNode.isTextual() ? roleNode.asText().toLowerCase() : "user"; - - return switch (role) { - case "system" -> new SystemMessage(content); - case "assistant" -> new AssistantMessage(content); - case "user" -> new UserMessage(content); - default -> new UserMessage(content); - }; - } -} diff --git a/agentic-ai-graph-core/src/test/java/io/github/agentic/spring/ai/graph/compatibility/MigratedPersistenceDeprecationTests.java b/agentic-ai-graph-core/src/test/java/io/github/agentic/spring/ai/graph/compatibility/MigratedPersistenceDeprecationTests.java deleted file mode 100644 index d92abde3d..000000000 --- a/agentic-ai-graph-core/src/test/java/io/github/agentic/spring/ai/graph/compatibility/MigratedPersistenceDeprecationTests.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph.compatibility; - -import io.github.agentic.spring.ai.graph.checkpoint.BaseCheckpointSaver; -import io.github.agentic.spring.ai.graph.checkpoint.savers.h2.H2Saver; -import io.github.agentic.spring.ai.graph.checkpoint.savers.jdbc.AbstractJdbcCheckpointSaver; -import io.github.agentic.spring.ai.graph.checkpoint.savers.mongo.MongoSaver; -import io.github.agentic.spring.ai.graph.checkpoint.savers.mysql.MysqlSaver; -import io.github.agentic.spring.ai.graph.checkpoint.savers.oracle.OracleSaver; -import io.github.agentic.spring.ai.graph.checkpoint.savers.postgresql.PostgresSaver; -import io.github.agentic.spring.ai.graph.checkpoint.savers.redis.RedisSaver; -import io.github.agentic.spring.ai.graph.store.Store; -import io.github.agentic.spring.ai.graph.store.stores.DatabaseStore; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertNotNull; -import static org.junit.jupiter.api.Assertions.assertSame; -import static org.junit.jupiter.api.Assertions.assertTrue; - -class MigratedPersistenceDeprecationTests { - - @Test - void jdbcCheckpointSaverCompatibilityTypesAreDeprecatedForRemoval() { - assertDeprecatedForRemoval(AbstractJdbcCheckpointSaver.class); - assertDeprecatedForRemoval(H2Saver.class); - assertDeprecatedForRemoval(MysqlSaver.class); - assertDeprecatedForRemoval(OracleSaver.class); - assertDeprecatedForRemoval(PostgresSaver.class); - assertDeprecatedForRemoval(io.github.agentic.spring.ai.graph.checkpoint.savers.h2.CreateOption.class); - assertDeprecatedForRemoval(io.github.agentic.spring.ai.graph.checkpoint.savers.mysql.CreateOption.class); - assertDeprecatedForRemoval(io.github.agentic.spring.ai.graph.checkpoint.savers.oracle.CreateOption.class); - assertDeprecatedForRemoval(io.github.agentic.spring.ai.graph.checkpoint.savers.postgresql.CreateOption.class); - - Class h2Type = H2Saver.class; - Class mysqlType = MysqlSaver.class; - Class oracleType = OracleSaver.class; - Class postgresType = PostgresSaver.class; - assertSame(H2Saver.class, h2Type); - assertSame(MysqlSaver.class, mysqlType); - assertSame(OracleSaver.class, oracleType); - assertSame(PostgresSaver.class, postgresType); - assertEquals("CREATE_IF_NOT_EXISTS", - io.github.agentic.spring.ai.graph.checkpoint.savers.h2.CreateOption.CREATE_IF_NOT_EXISTS.name()); - } - - @Test - void databaseStoreCompatibilityTypeIsDeprecatedForRemoval() { - assertDeprecatedForRemoval(DatabaseStore.class); - - Class storeType = DatabaseStore.class; - assertSame(DatabaseStore.class, storeType); - } - - @Test - void redisAndMongoSaverCompatibilityTypesAreDeprecatedForRemoval() { - assertDeprecatedForRemoval(RedisSaver.class); - assertDeprecatedForRemoval(MongoSaver.class); - - Class redisType = RedisSaver.class; - Class mongoType = MongoSaver.class; - assertSame(RedisSaver.class, redisType); - assertSame(MongoSaver.class, mongoType); - } - - private static void assertDeprecatedForRemoval(Class type) { - Deprecated deprecated = type.getAnnotation(Deprecated.class); - assertNotNull(deprecated, () -> type.getName() + " must be deprecated"); - assertEquals("2.1.0", deprecated.since(), () -> type.getName() + " must declare since=2.1.0"); - assertTrue(deprecated.forRemoval(), () -> type.getName() + " must be marked for removal"); - } - -} diff --git a/agentic-ai-graph-core/src/test/java/io/github/agentic/spring/ai/graph/store/stores/RedisStoreTest.java b/agentic-ai-graph-core/src/test/java/io/github/agentic/spring/ai/graph/store/stores/RedisStoreTest.java deleted file mode 100644 index 3bcc945ab..000000000 --- a/agentic-ai-graph-core/src/test/java/io/github/agentic/spring/ai/graph/store/stores/RedisStoreTest.java +++ /dev/null @@ -1,317 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.graph.store.stores; - -import io.github.agentic.spring.ai.graph.store.NamespaceListRequest; -import io.github.agentic.spring.ai.graph.store.StoreItem; -import io.github.agentic.spring.ai.graph.store.StoreSearchRequest; -import io.github.agentic.spring.ai.graph.store.StoreSearchResult; -import com.fasterxml.jackson.databind.ObjectMapper; - -import java.lang.reflect.Field; -import java.util.List; -import java.util.Map; -import java.util.Optional; - -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Test; - -import static org.assertj.core.api.Assertions.assertThat; -import static org.junit.jupiter.api.Assertions.assertThrows; - -/** - * Unit tests for RedisStore implementation. - * - * @author Spring AI Alibaba - */ -class RedisStoreTest { - - private static final String LEGACY_PREFIX = "spring:ai:alibaba:store:"; - - private RedisStore redisStore; - - @BeforeEach - void setUp() { - redisStore = new RedisStore(); - } - - @Test - void testPutAndGetItem() { - // Given - List namespace = List.of("users", "user123"); - String key = "preferences"; - Map value = Map.of("theme", "dark", "language", "en-US"); - StoreItem item = StoreItem.of(namespace, key, value); - - // When - redisStore.putItem(item); - Optional retrieved = redisStore.getItem(namespace, key); - - // Then - assertThat(retrieved).isPresent(); - assertThat(retrieved.get().getNamespace()).isEqualTo(namespace); - assertThat(retrieved.get().getKey()).isEqualTo(key); - assertThat(retrieved.get().getValue()).isEqualTo(value); - } - - @Test - void defaultStoreWritesItemsWithAgenticPrefix() throws Exception { - redisStore.putItem(StoreItem.of(List.of("users", "user123"), "preferences", Map.of("theme", "dark"))); - - assertThat(storage().keySet()).allMatch(key -> key.startsWith("agentic:spring:ai:store:")); - } - - @Test - void defaultStoreReadsLegacyPrefixedItems() throws Exception { - StoreItem legacyItem = StoreItem.of(List.of("users", "legacy"), "preferences", Map.of("theme", "dark")); - putRawItem(LEGACY_PREFIX, legacyItem); - - assertThat(redisStore.getItem(legacyItem.getNamespace(), legacyItem.getKey())).isPresent(); - assertThat(redisStore.searchItems(StoreSearchRequest.builder().build()).getItems()).hasSize(1); - assertThat(redisStore.listNamespaces(NamespaceListRequest.builder().build())).contains("users", "users/legacy"); - assertThat(redisStore.size()).isEqualTo(1); - } - - @Test - void updatingLegacyItemMigratesItToAgenticPrefix() throws Exception { - List namespace = List.of("users", "legacy"); - String key = "preferences"; - putRawItem(LEGACY_PREFIX, StoreItem.of(namespace, key, Map.of("theme", "light"))); - - redisStore.putItem(StoreItem.of(namespace, key, Map.of("theme", "dark"))); - - assertThat(redisStore.getItem(namespace, key)).get().extracting(StoreItem::getValue) - .isEqualTo(Map.of("theme", "dark")); - assertThat(storage().keySet()).noneMatch(redisKey -> redisKey.startsWith(LEGACY_PREFIX)); - assertThat(redisStore.size()).isEqualTo(1); - } - - @Test - void deleteAndClearRemoveLegacyPrefixedItems() throws Exception { - StoreItem deletedItem = StoreItem.of(List.of("users", "legacy"), "deleted", Map.of("value", 1)); - StoreItem clearedItem = StoreItem.of(List.of("users", "legacy"), "cleared", Map.of("value", 2)); - putRawItem(LEGACY_PREFIX, deletedItem); - putRawItem(LEGACY_PREFIX, clearedItem); - - assertThat(redisStore.deleteItem(deletedItem.getNamespace(), deletedItem.getKey())).isTrue(); - assertThat(redisStore.getItem(deletedItem.getNamespace(), deletedItem.getKey())).isEmpty(); - - redisStore.clear(); - assertThat(redisStore.isEmpty()).isTrue(); - assertThat(storage()).isEmpty(); - } - - @Test - void testDeleteItem() { - // Given - List namespace = List.of("test", "namespace"); - String key = "test_key"; - Map value = Map.of("data", "test_value"); - StoreItem item = StoreItem.of(namespace, key, value); - - redisStore.putItem(item); - assertThat(redisStore.getItem(namespace, key)).isPresent(); - - // When - boolean deleted = redisStore.deleteItem(namespace, key); - - // Then - assertThat(deleted).isTrue(); - assertThat(redisStore.getItem(namespace, key)).isEmpty(); - assertThat(redisStore.deleteItem(namespace, key)).isFalse(); // Already deleted - } - - @Test - void testSearchItems() { - // Given - setupTestData(); - - // When - search all items - StoreSearchRequest request = StoreSearchRequest.builder().build(); - StoreSearchResult result = redisStore.searchItems(request); - - // Then - assertThat(result.getItems()).hasSize(3); - assertThat(result.getTotalCount()).isEqualTo(3); - } - - @Test - void testListNamespaces() { - // Given - setupTestData(); - - // When - NamespaceListRequest request = NamespaceListRequest.builder().build(); - List namespaces = redisStore.listNamespaces(request); - - // Then - assertThat(namespaces).hasSize(6); - assertThat(namespaces).containsExactlyInAnyOrder("users", "users/admin", "users/user1", - "users/user1/preferences", "users/user2", "users/user2/preferences"); - } - - @Test - void testValidationErrors() { - // Test null item - assertThrows(IllegalArgumentException.class, () -> redisStore.putItem(null)); - - // Test null namespace - assertThrows(IllegalArgumentException.class, () -> redisStore.getItem(null, "key")); - - // Test null key - assertThrows(IllegalArgumentException.class, () -> redisStore.getItem(List.of("namespace"), null)); - - // Test empty key - assertThrows(IllegalArgumentException.class, () -> redisStore.getItem(List.of("namespace"), "")); - - // Test null search request - assertThrows(IllegalArgumentException.class, () -> redisStore.searchItems(null)); - - // Test null namespace request - assertThrows(IllegalArgumentException.class, () -> redisStore.listNamespaces(null)); - } - - @Test - void testSizeAndClear() { - // Given - assertThat(redisStore.isEmpty()).isTrue(); - assertThat(redisStore.size()).isEqualTo(0); - - setupTestData(); - - // When - assertThat(redisStore.isEmpty()).isFalse(); - assertThat(redisStore.size()).isEqualTo(3); - - redisStore.clear(); - - // Then - assertThat(redisStore.isEmpty()).isTrue(); - assertThat(redisStore.size()).isEqualTo(0); - } - - @Test - void testSearchByNamespace() { - // Given - setupTestData(); - - // When - StoreSearchRequest request = StoreSearchRequest.builder().namespace(List.of("users", "user1")).build(); - StoreSearchResult result = redisStore.searchItems(request); - - // Then - assertThat(result.getItems()).hasSize(1); - List namespace = result.getItems().get(0).getNamespace(); - assertThat(namespace).hasSize(3); - assertThat(namespace.get(0)).isEqualTo("users"); - assertThat(namespace.get(1)).isEqualTo("user1"); - assertThat(namespace.get(2)).isEqualTo("preferences"); - } - - @Test - void testSearchByQuery() { - // Given - setupTestData(); - - // When - StoreSearchRequest request = StoreSearchRequest.builder().query("Administrator").build(); - StoreSearchResult result = redisStore.searchItems(request); - - // Then - assertThat(result.getItems()).hasSize(1); - assertThat(result.getItems().get(0).getValue().get("name")).isEqualTo("Administrator"); - } - - @Test - void testSearchWithFilters() { - // Given - setupTestData(); - - // When - StoreSearchRequest request = StoreSearchRequest.builder().filter(Map.of("theme", "dark")).build(); - StoreSearchResult result = redisStore.searchItems(request); - - // Then - assertThat(result.getItems()).hasSize(1); - assertThat(result.getItems().get(0).getValue().get("theme")).isEqualTo("dark"); - } - - @Test - void testPagination() { - // Given - setupTestData(); - - // When - StoreSearchRequest request = StoreSearchRequest.builder().offset(1).limit(1).build(); - StoreSearchResult result = redisStore.searchItems(request); - - // Then - assertThat(result.getItems()).hasSize(1); - assertThat(result.getOffset()).isEqualTo(1); - assertThat(result.getLimit()).isEqualTo(1); - assertThat(result.getTotalCount()).isEqualTo(3); - } - - @Test - void testUpdateExistingItem() { - // Given - List namespace = List.of("test"); - String key = "updatable_item"; - Map originalValue = Map.of("version", 1); - StoreItem originalItem = StoreItem.of(namespace, key, originalValue); - - redisStore.putItem(originalItem); - - // When - update the same item - Map updatedValue = Map.of("version", 2, "updated", true); - StoreItem updatedItem = StoreItem.of(namespace, key, updatedValue); - redisStore.putItem(updatedItem); - - // Then - Optional retrieved = redisStore.getItem(namespace, key); - assertThat(retrieved).isPresent(); - assertThat(retrieved.get().getValue()).isEqualTo(updatedValue); - assertThat(redisStore.size()).isEqualTo(1); // Should still be 1 item - } - - private void setupTestData() { - // User admin data - redisStore.putItem( - StoreItem.of(List.of("users", "admin"), "profile", Map.of("name", "Administrator", "role", "admin"))); - - // User1 preferences - redisStore.putItem(StoreItem.of(List.of("users", "user1", "preferences"), "ui_settings", - Map.of("theme", "dark", "language", "en-US"))); - - // User2 preferences - redisStore.putItem(StoreItem.of(List.of("users", "user2", "preferences"), "ui_settings", - Map.of("theme", "light", "language", "zh-CN"))); - } - - @SuppressWarnings("unchecked") - private Map storage() throws Exception { - Field storageField = RedisStore.class.getDeclaredField("redisLikeStorage"); - storageField.setAccessible(true); - return (Map) storageField.get(redisStore); - } - - private void putRawItem(String prefix, StoreItem item) throws Exception { - ObjectMapper objectMapper = new ObjectMapper().findAndRegisterModules(); - storage().put(prefix + redisStore.createStoreKey(item.getNamespace(), item.getKey()), - objectMapper.writeValueAsString(item)); - } - -} diff --git a/agentic-ai-graph-core/src/test/resources/logging.properties b/agentic-ai-graph-core/src/test/resources/logging.properties deleted file mode 100644 index 2a11d3771..000000000 --- a/agentic-ai-graph-core/src/test/resources/logging.properties +++ /dev/null @@ -1,31 +0,0 @@ -# Set the default logging level to INFO -.level = SEVERE - -# Specify the handlers that will handle the log messages -handlers = java.util.logging.ConsoleHandler - -# Configure the ConsoleHandler -java.util.logging.ConsoleHandler.level = ALL -java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter - -# Configure the FileHandler -java.util.logging.FileHandler.pattern = log.txt -java.util.logging.FileHandler.limit = 0 -java.util.logging.FileHandler.count = 1 -java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter - -# Set the logging level for the FileHandler to ALL -java.util.logging.FileHandler.level = ALL - -# Configure the SimpleFormatter to include date, source, logger name, level, and message -# java.util.logging.SimpleFormatter.format = %1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS %4$s %2$s %5$s%6$s%n -java.util.logging.SimpleFormatter.format=%5$s %6$s%n -# %1$tF: Date in ISO 8601 format (e.g., 2023-10-05). -# %1$tT: Time in 24-hour format (e.g., 12:34:56). -# %4$s: Log level (e.g., INFO). -# %3$s: Method name (e.g., main). -# %5$s: Log message. -# %6$s: Thrown exception (if any). -# %n: Newline. - -io.github.agentic.spring.ai.graph.level = FINEST diff --git a/agentic-ai-studio/README.md b/agentic-ai-studio/README.md deleted file mode 100644 index b34546372..000000000 --- a/agentic-ai-studio/README.md +++ /dev/null @@ -1,111 +0,0 @@ -# Agent Chat UI - -Agent Chat UI provides a visualized way for developers to chat with any Agentic AI developed Agents. - -## Quick Experience - -> Go to the [examples](../examples) directory to experience real world usage. - -1. Start backend agent - -Go to the `src/test/java` directory, start the backend agent by running `StudioApplication`. -The unified application supports both **Graph** (e.g. `simple_workflow`) and **Agent** (e.g. `single_agent`, `research_agent`) APIs. - -2. Then, start the chat ui - -```shell -corepack enable -pnpm install --frozen-lockfile -pnpm dev -``` - -3. Chat with agent - -Visit `http://localhost:3000`. - -### Embedded mode - -The ui can work in a embedded mode with any of your Spring Boot applications. - -Just add the following dependency to your agent project: - -```xml - - io.github.agentic-spring-ai - agentic-spring-ai-studio - 2.1.0-dev - -``` - -Run your agent, visit `http://localhost:{your-port}/chatui/index.html`, and now you can chat with your agent. - -Studio keeps static UI assets public, but all Studio API endpoints fail closed until a backend token is configured: - -```properties -spring.ai.alibaba.agent.studio.execution.auth-token=change-me -``` - -The embedded static UI does not read this value from build-time environment variables. Open the UI -configuration panel and set `Execution Token`; the browser stores it in `sessionStorage` for the -current tab session and sends it as `X-Agentic-Studio-Token` on discovery, execution, and thread requests. - -Checkpoint keys created by older Studio versions used only `threadId`. Migrate known legacy threads -before accepting traffic after an upgrade; runtime reads intentionally do not fall back to unscoped -keys because that would permit cross-user access: - -```java -saver.migrateLegacyThread( - RunnableConfig.builder().threadId(threadId).build(), - RunnableConfig.builder().threadId(threadId) - .addMetadata(RunnableConfig.APP_NAME_METADATA_KEY, appName) - .addMetadata(RunnableConfig.USER_ID_METADATA_KEY, userId) - .build()); -``` - -Build the static UI before packaging the Maven project: - -```shell -cd agent-chat-ui -pnpm install --frozen-lockfile -pnpm run build:static -cd .. -../mvnw -pl :agentic-spring-ai-studio -am -DskipTests package -``` - -### Standalone mode - -First, clone the repository, - -```bash -git clone https://github.com/agentic-spring-ai/agentic-spring-ai.git - -cd agentic-spring-ai/agentic-ai-studio/agent-chat-ui -``` - -Install dependencies: - -```bash -pnpm install -# or -# npm install -``` - -Run the app: - -```bash -pnpm dev -# or -# npm run dev -``` - -The app will be available at `http://localhost:3000`. - -By default, the UI connects to your backend Agent at `http://localhost:8080`, you can change the address at `.env.development` file. - -```properties -# .env.development -NEXT_PUBLIC_API_URL=http://localhost:8080 -# The agent to call in the backend application, backend application should register agent as required, check examples for how to configure. -NEXT_PUBLIC_APP_NAME=research_agent -NEXT_PUBLIC_USER_ID=user-001 -``` diff --git a/agentic-ai-studio/agent-chat-ui/README.md b/agentic-ai-studio/agent-chat-ui/README.md deleted file mode 100644 index 1bd3799c2..000000000 --- a/agentic-ai-studio/agent-chat-ui/README.md +++ /dev/null @@ -1,65 +0,0 @@ -# Agent Chat UI - -Agent Chat UI provides a visual way for developers to chat with Agentic AI agents. - -## 🚀 How to use - -### Embedded mode - -The ui can work in a embedded mode with any of your Spring Boot applications. - -Just add the following dependency to your agent project: - -```xml - - io.github.agentic-spring-ai - agentic-spring-ai-studio - 2.1.0-dev - -``` - -Run your agent, visit `http:localhost:{your-port}/chatui/index.html`, and now you can chat with you agent. - -### Standalone mode - -First, clone the repository, - -```bash -git clone https://github.com/agentic-spring-ai/agentic-spring-ai.git - -cd agentic-spring-ai/agentic-ai-studio/agent-chat-ui -``` - -Install dependencies: - -```bash -pnpm install -# or -# npm install -``` - -Run the app: - -```bash -pnpm dev -# or -# npm run dev -``` - -The app will be available at `http://localhost:3000`. - -By default, the UI connects to your backend Agent at `http://localhost:8080`, you can change the address at `.env.development` file. - -```properties -# .env.development -NEXT_PUBLIC_API_URL=http://localhost:8080 -# The agent to call in the backend application, backend application should register agent as required, check examples for how to configure. -NEXT_PUBLIC_APP_NAME=research_agent -NEXT_PUBLIC_USER_ID=user-001 -``` - -## Build and deploy - -```shell -pnpm run deploy # This will build and copy static files to src/main/resources -``` diff --git a/agentic-ai-studio/agent-chat-ui/public/logo.svg b/agentic-ai-studio/agent-chat-ui/public/logo.svg deleted file mode 100644 index 310262ec1..000000000 --- a/agentic-ai-studio/agent-chat-ui/public/logo.svg +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - AAI - - - - - - - - - - - Agentic AI - - - - - - - diff --git a/agentic-ai-studio/agent-chat-ui/src/components/icons/saa-logo.tsx b/agentic-ai-studio/agent-chat-ui/src/components/icons/saa-logo.tsx deleted file mode 100644 index b9a779f61..000000000 --- a/agentic-ai-studio/agent-chat-ui/src/components/icons/saa-logo.tsx +++ /dev/null @@ -1,125 +0,0 @@ -export function SAALogoSVG({ - className, - width, - height, -}: { - width?: number; - height?: number; - className?: string; -}) { - return ( - - - - - - - - - - - - - - - - Spring - - - - AI - - - - - - Alibaba - - - - - - - - ); -} diff --git a/agentic-ai-studio/pom.xml b/agentic-ai-studio/pom.xml deleted file mode 100644 index ec9a446e5..000000000 --- a/agentic-ai-studio/pom.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - - 4.0.0 - - io.github.agentic-spring-ai - agentic-spring-ai - ${revision} - ../pom.xml - - - agentic-spring-ai-studio - jar - Agentic AI Studio - The studio library that is designed to be used inside Agentic AI project. - https://github.com/agentic-spring-ai/agentic-spring-ai - - git://github.com/agentic-spring-ai/agentic-spring-ai.git - git@github.com:agentic-spring-ai/agentic-spring-ai.git - https://github.com/agentic-spring-ai/agentic-spring-ai - - - - false - - - - - org.springframework.ai - spring-ai-starter-mcp-client - test - - - - com.networknt - json-schema-validator - 1.5.7 - test - - - - io.github.agentic-spring-ai - agentic-spring-ai-agent-framework - ${project.parent.version} - - - - org.springframework.boot - spring-boot-starter-web - - - - org.springframework.boot - spring-boot-starter - - - - org.springframework.boot - spring-boot-configuration-processor - true - - - - org.springframework.boot - spring-boot-autoconfigure-processor - true - - - - com.github.ben-manes.caffeine - caffeine - - - - jakarta.servlet - jakarta.servlet-api - provided - - - - org.junit.jupiter - junit-jupiter - test - - - - org.springframework.boot - spring-boot-starter-test - test - - - - - - - - maven-resources-plugin - 3.5.0 - - - copy-agent-chat-ui - - copy-resources - - process-resources - - ${project.build.outputDirectory}/META-INF/resources/chatui - - - agent-chat-ui/out - false - - - - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - - - - generate-openapi - - http://localhost:8080/v3/api-docs.yaml - - - - - org.springdoc - springdoc-openapi-maven-plugin - ${springdoc-openapi-maven-plugin.version} - - ${studio.openapi.api-docs-url} - openapi.yaml - ${project.basedir}/src/main/resources - - - - generate-openapi - - generate - - generate-resources - - - - - - - - - diff --git a/agentic-ai-studio/src/main/java/io/github/agentic/spring/ai/agent/studio/SaaStudioWebModuleAutoConfiguration.java b/agentic-ai-studio/src/main/java/io/github/agentic/spring/ai/agent/studio/SaaStudioWebModuleAutoConfiguration.java deleted file mode 100644 index a6ea12429..000000000 --- a/agentic-ai-studio/src/main/java/io/github/agentic/spring/ai/agent/studio/SaaStudioWebModuleAutoConfiguration.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.agent.studio; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import org.springframework.context.annotation.ComponentScan; -import org.springframework.context.annotation.Configuration; - -@Configuration -@ComponentScan(basePackages = "io.github.agentic.spring.ai.agent.studio") -public class SaaStudioWebModuleAutoConfiguration { - - private static final Logger log = LoggerFactory.getLogger(SaaStudioWebModuleAutoConfiguration.class); - - public SaaStudioWebModuleAutoConfiguration() { - log.info("Agentic AI Studio module loaded"); - } -} diff --git a/agentic-ai-studio/src/main/java/io/github/agentic/spring/ai/agent/studio/dto/GraphResponse.java b/agentic-ai-studio/src/main/java/io/github/agentic/spring/ai/agent/studio/dto/GraphResponse.java deleted file mode 100644 index 47f5c67f5..000000000 --- a/agentic-ai-studio/src/main/java/io/github/agentic/spring/ai/agent/studio/dto/GraphResponse.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.github.agentic.spring.ai.agent.studio.dto; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * DTO for graph representation response. Contains the graph diagram in Mermaid or DOT format - * for UI visualization. - */ -public class GraphResponse { - - @JsonProperty("dotSrc") - public String dotSrc; - - @JsonProperty("mermaidSrc") - public String mermaidSrc; - - /** - * Constructs a GraphResponse with Mermaid source (preferred for UI). - * - * @param mermaidSrc The graph source in Mermaid format. - */ - public GraphResponse(String mermaidSrc, boolean useMermaid) { - if (useMermaid) { - this.mermaidSrc = mermaidSrc; - this.dotSrc = null; - } - else { - this.dotSrc = mermaidSrc; - this.mermaidSrc = null; - } - } - - /** - * Constructs a GraphResponse with DOT source (legacy). - * - * @param dotSrc The graph source string (e.g., in DOT format). - */ - public GraphResponse(String dotSrc) { - this.dotSrc = dotSrc; - this.mermaidSrc = null; - } - - public GraphResponse() { - } - - public String getDotSrc() { - return dotSrc; - } - - public String getMermaidSrc() { - return mermaidSrc; - } -} diff --git a/agentic-ai-studio/src/main/java/io/github/agentic/spring/ai/agent/studio/utils/FileUtils.java b/agentic-ai-studio/src/main/java/io/github/agentic/spring/ai/agent/studio/utils/FileUtils.java deleted file mode 100644 index 080d1e0b6..000000000 --- a/agentic-ai-studio/src/main/java/io/github/agentic/spring/ai/agent/studio/utils/FileUtils.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.agent.studio.utils; - -import java.io.IOException; -import java.nio.file.Files; -import java.nio.file.Path; -import java.util.List; -import java.util.logging.Logger; - -public class FileUtils { - - private static final Logger logger = Logger.getLogger(FileUtils.class.getName()); - - public static void createFileIfNotExists(Path outputPath) throws IOException { - if (!Files.exists(outputPath)) { - Files.createFile(outputPath); - } - } - - public static List readLines(Path outputPath) throws IOException { - return Files.readAllLines(outputPath); - } - -} - - diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/404.html b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/404.html deleted file mode 100644 index f314d6651..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/404.html +++ /dev/null @@ -1 +0,0 @@ -404: This page could not be found.Agent Chat

404

This page could not be found.

\ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/02c5145a.219b3b017214f8c4.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/02c5145a.219b3b017214f8c4.js deleted file mode 100644 index ee56f2e10..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/02c5145a.219b3b017214f8c4.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9760],{69981:(t,e,a)=>{a.d(e,{DA:()=>S,FA:()=>D,Zk:()=>f,aP:()=>ek,lC:()=>x,nM:()=>M,nq:()=>eb});var l=a(5663),r=a(82142),i=a(29278),n=a(13892),s=a(69301),h=a(98999),o=a(91158),d=a(70668),c=a(99788);async function g(t){let e=t.getElementsByTagName("img");if(!e||0===e.length)return;let a=!y(t);await Promise.all([...e].map(t=>new Promise(e=>{function l(){if(t.style.display="flex",t.style.flexDirection="column",a){let e=(0,s.D7)().fontSize?(0,s.D7)().fontSize:window.getComputedStyle(document.body).fontSize,[a=s.UI.fontSize]=(0,n.I5)(e),l=5*a+"px";t.style.minWidth=l,t.style.maxWidth=l}else t.style.width="100%";e(t)}(0,o.K)(l,"setupImage"),setTimeout(()=>{t.complete&&l()}),t.addEventListener("error",l),t.addEventListener("load",l)})))}function y(t){return 3===t.nodeType?t.textContent?.trim()!=="":1===t.nodeType&&"img"!==t.tagName.toLowerCase()&&[...t.childNodes].some(y)}(0,o.K)(g,"configureLabelImages"),(0,o.K)(y,"hasTextBesidesImages");var p=(0,o.K)(async(t,e,a)=>{let l=(0,s.D7)(),i=t.insert("g").attr("class",a??"node default").attr("id",e.domId||e.id),h=i.insert("g").attr("class","label").attr("style",(0,n.KL)(e.labelStyle)),o=[{text:"string"==typeof e.label?e.label:e.label?.[0]??"",cssClass:"c4-name"},{text:e.stereotype,cssClass:"c4-type"},...(e.description??[]).map(t=>({text:t,cssClass:"c4-descr"}))].filter(t=>t.text),c=e.width?Math.max(e.width-2*(e.padding??0),32):(0,s.D7)().flowchart?.wrappingWidth??200,g=l.c4?.wrap??!0?c:1/0,y=await Promise.all(o.map(async t=>{let a=h.append("g").attr("class",t.cssClass),i=await (0,r.GZ)(a,(0,s.jZ)((0,n.Sm)(t.text??""),l),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:g,style:e.labelStyle},l);return(0,d.Ltv)(i).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),(0,d.Ltv)(i).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:a,box:a.node().getBBox()}})),p=Math.max(...y.map(({box:t})=>t.width),0),f=0;for(let{el:t,box:e}of y)t.attr("transform",`translate(${p/2-e.x-e.width/2}, ${f-e.y})`),f+=e.height+3;let u=y.length>0?f-3:0;return h.insert("rect",":first-child"),h.attr("transform",`translate(${-p/2}, ${-u/2})`),{shapeSvg:i,bbox:h.node().getBBox(),halfPadding:(e.padding??0)/2,label:h}},"c4LabelHelper"),f=(0,o.K)(async(t,e,a)=>{let l,i,h;if(void 0!==e.stereotype)return p(t,e,a);let o=e.useHtmlLabels||(0,s._3)((0,s.D7)()?.htmlLabels);l=a||"node default";let c=t.insert("g").attr("class",l).attr("id",e.domId||e.id),y=c.insert("g").attr("class","label").attr("style",(0,n.KL)(e.labelStyle));i=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];let f=!!e.icon||!!e.img,u="markdown"===e.labelType,x=await (0,r.GZ)(y,(0,s.jZ)((0,n.Sm)(i),(0,s.D7)()),{useHtmlLabels:o,width:e.width||e.wrappingWidth||(0,s.D7)().flowchart?.wrappingWidth,classes:u?"markdown-node-label":"",style:e.labelStyle,addSvgBackground:f,markdown:u},(0,s.D7)()),w=(e?.padding??0)/2;if(o){let t=x.children[0],e=(0,d.Ltv)(x);await g(t),h=await r.lT.measure(()=>t.getBoundingClientRect()),e.attr("width",h.width),e.attr("height",h.height)}else h=await r.lT.measure(()=>x.getBBox());return o?y.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):y.attr("transform","translate(0, "+-h.height/2+")"),e.centerLabel&&y.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),y.insert("rect",":first-child"),{shapeSvg:c,bbox:h,halfPadding:w,label:y}},"labelHelper"),u=(0,o.K)(async(t,e,a)=>{let l,i=a.useHtmlLabels??(0,s.E)((0,s.D7)()),h=t.insert("g").attr("class","label").attr("style",a.labelStyle||""),o=await (0,r.GZ)(h,(0,s.jZ)((0,n.Sm)(e),(0,s.D7)()),{useHtmlLabels:i,width:a.width||(0,s.D7)()?.flowchart?.wrappingWidth,style:a.labelStyle,addSvgBackground:!!a.icon||!!a.img}),c=a.padding/2;if((0,s.E)((0,s.D7)())){let t=o.children[0],e=(0,d.Ltv)(o);l=await r.lT.measure(()=>t.getBoundingClientRect()),e.attr("width",l.width),e.attr("height",l.height)}else l=await r.lT.measure(()=>o.getBBox());return i?h.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"):h.attr("transform","translate(0, "+-l.height/2+")"),a.centerLabel&&h.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),h.insert("rect",":first-child"),{shapeSvg:t,bbox:l,halfPadding:c,label:h}},"insertLabel"),x=(0,o.K)((t,e,a)=>{if(a){t.width=a.width,t.height=a.height;return}let l=e.node().getBBox();t.width=l.width,t.height=l.height},"updateNodeBounds"),w=(0,o.K)((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function m(t){let e=t.map((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`);return e.push("Z"),e.join(" ")}function $(t,e,a,l,r,i){let n=[],s=a-t,h=2*Math.PI/(s/i),o=e+(l-e)/2;for(let e=0;e<=50;e++){let a=t+e/50*s,l=o+r*Math.sin(h*(a-t));n.push({x:a,y:l})}return n}function b(t,e,a,l,r,i){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;r"path"===t.tagName),a=document.createElementNS("http://www.w3.org/2000/svg","path"),l=e.map(t=>t.getAttribute("d")).filter(t=>null!==t).join(" ");a.setAttribute("d",l);let r=e.find(t=>"none"!==t.getAttribute("fill")),i=e.find(t=>"none"!==t.getAttribute("stroke")),n=(0,o.K)((t,e)=>t?.getAttribute(e)??void 0,"getAttr");r&&Object.entries({fill:n(r,"fill"),"fill-opacity":n(r,"fill-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)}),i&&Object.entries({stroke:n(i,"stroke"),"stroke-width":n(i,"stroke-width")??"1","stroke-opacity":n(i,"stroke-opacity")??"1"}).forEach(([t,e])=>{e&&a.setAttribute(t,e)});let s=document.createElementNS("http://www.w3.org/2000/svg","g");return s.appendChild(a),s}(0,o.K)(m,"createPathFromPoints"),(0,o.K)($,"generateFullSineWavePoints"),(0,o.K)(b,"generateCirclePoints"),(0,o.K)(k,"mergePaths");var M=(0,o.K)((t,e)=>{var a,l,r=t.x,i=t.y,n=e.x-r,s=e.y-i,h=t.width/2,o=t.height/2;return Math.abs(s)*h>Math.abs(n)*o?(s<0&&(o=-o),a=0===s?0:o*n/s,l=o):(n<0&&(h=-h),a=h,l=0===n?0:h*s/n),{x:r+a,y:i+l}},"intersectRect"),D=(0,o.K)((t,e,a,l,r)=>["M",t+r,e,"H",t+a-r,"A",r,r,"0 0 1",t+a,e+r,"V",e+l-r,"A",r,r,"0 0 1",t+a-r,e+l,"H",t+r,"A",r,r,"0 0 1",t,e+l-r,"V",e+r,"A",r,r,"0 0 1",t+r,e,"Z"].join(" "),"createRoundedRectPathD"),S=(0,o.K)(async(t,e,a,l=!1,i=!1)=>{let n=e||"";"object"==typeof n&&(n=n[0]);let h=(0,s.D7)(),o=(0,s.E)(h);return await (0,r.GZ)(t,n,{style:a,isTitle:l,useHtmlLabels:o,markdown:!1,isNode:i,width:1/0},h)},"createLabel");function A(t,e,a,l){var r=t.x,i=t.y,n=r-l.x,s=i-l.y,h=Math.sqrt(e*e*s*s+a*a*n*n),o=Math.abs(e*a*n/h);l.xMath.abs(g)&&1e-6>Math.abs(y)&&C(g,y))return;let p=r*d-o*i;if(0===p)return;let f=Math.abs(p/2),u=i*c-d*n;return{x:u<0?(u-f)/p:(u+f)/p,y:(u=o*n-r*c)<0?(u-f)/p:(u+f)/p}}}function C(t,e){return t*e>0}function N(t,e,a){let l=t.x,r=t.y,i=[],n=1/0,s=1/0;"function"==typeof e.forEach?e.forEach(function(t){n=Math.min(n,t.x),s=Math.min(s,t.y)}):(n=Math.min(n,e.x),s=Math.min(s,e.y));let h=l-t.width/2-n,o=r-t.height/2-s;for(let l=0;l1&&i.sort(function(t,e){let l=t.x-a.x,r=t.y-a.y,i=Math.sqrt(l*l+r*r),n=e.x-a.x,s=e.y-a.y,h=Math.sqrt(n*n+s*s);return iy,":first-child");return p.attr("class","anchor").attr("style",(0,n.KL)(o)),x(e,p),e.intersect=function(t){return h.R.info("Circle intersect",e,1,t),B.circle(e,1,t)},s}function R(t,e,a,l,r,i,n){let s=Math.atan2(l-e,a-t),h=Math.sqrt(((a-t)/2/r)**2+((l-e)/2/i)**2);if(h>1)throw Error("The given radii are too small to create an arc between the points.");let o=Math.sqrt(1-h**2),d=(t+a)/2+o*i*Math.sin(s)*(n?-1:1),c=(e+l)/2-o*r*Math.cos(s)*(n?-1:1),g=Math.atan2((e-c)/i,(t-d)/r),y=Math.atan2((l-c)/i,(a-d)/r)-g;n&&y<0&&(y+=2*Math.PI),!n&&y>0&&(y-=2*Math.PI);let p=[];for(let t=0;t<20;t++){let e=g+t/19*y,a=d+r*Math.cos(e),l=c+i*Math.sin(e);p.push({x:a,y:l})}return p}function F(t,e,a){let[l,r]=[e,a].sort((t,e)=>e-t);return r*(1-Math.sqrt(1-(t/l/2)**2))}async function P(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,h=(0,o.K)(t=>t+s,"calcTotalHeight"),d=(0,o.K)(t=>{let e=t/2;return[e/(2.5+t/50),e]},"calcEllipseRadius"),{shapeSvg:g,bbox:y}=await f(t,e,w(e)),p=h(e?.height?e?.height:y.height),[u,$]=d(p),b=F(p,u,$),k=(e?.width?e?.width:y.width)+2*n+b-b,{cssStyles:M}=e,D=[{x:k/2,y:-p/2},{x:-k/2,y:-p/2},...R(-k/2,-p/2,-k/2,p/2,u,$,!1),{x:k/2,y:p/2},...R(k/2,p/2,k/2,-p/2,u,$,!0)],S=c.A.svg(g),A=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let K=m(D),v=S.path(K,A),C=g.insert(()=>v,":first-child");return C.attr("class","basic label-container outer-path"),M&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",M),r&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",r),C.attr("transform",`translate(${u/2}, 0)`),x(e,C),e.intersect=function(t){return B.polygon(e,D,t)},g}async function G(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s,label:h}=await f(t,e,w(e)),d=a?.nodeBorder??a?.lineColor??"currentColor",g=e.padding??12,y=Math.max(s.width+2*g,e.width??0,80),p=Math.max(Math.min(.08*y,12),5),u=Math.max(s.height+2*g+p,e.height??0),m=-u/2+p,$=u/2,b=.72*y,k=`M${-y/2},${m} L${-b/2},${$} A${b/2},${p} 0 0 0 ${b/2},${$} L${y/2},${m} A${y/2},${p} 0 0 0 ${-y/2},${m} Z`,{cssStyles:M}=e,D=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=c.A.svg(n).path(k,(0,l.Fr)(e,{}));D.node()?.appendChild(t),M&&D.attr("style",M)}else D.append("path").attr("d",k).attr("style",i);D.append("ellipse").attr("cx",0).attr("cy",m).attr("rx",y/2).attr("ry",p).attr("style",`fill:none;stroke:${d};stroke-width:1px`),x(e,D);let S=m+($-m)/2;h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${S-s.height/2-(s.y-(s.top??0))})`);let A=(0,o.K)((t,e,a)=>Array.from({length:13},(l,r)=>{let i=Math.PI-r*Math.PI/12;return{x:t*Math.cos(i),y:e+a*p*Math.sin(i)}}),"arc"),K=[...A(y/2,m,-1),...A(b/2,$,1).reverse()];return e.intersect=function(t){return B.polygon(e,K,t)},n}async function X(t,e){let a,{themeVariables:r}=(0,s.D7)(),i=r.clusterBkg,h=r.clusterBorder,{nodeStyles:o}=(0,l.GX)(e),{shapeSvg:d,bbox:g}=await f(t,e,w(e)),y=e.padding??8,p=g.height,u=Math.max(g.width+2*y,80,e?.width??0),m=Math.max(p+8+20+2*y,e?.height??0),$=-u/2,b=-m/2,k=d.select(".label");if(k&&(e.useHtmlLabels??(0,s.E)((0,s.D7)())?k.attr("transform",`translate(${-g.width/2}, ${-g.height/2+-14})`):k.attr("transform",`translate(0, ${-g.height/2+-14})`)),"handDrawn"===e.look){let t=c.A.svg(d),r=(0,l.Fr)(e,{fill:i,stroke:h,fillStyle:"solid"}),s=t.path(D($,b,u,m,8),r);(a=d.insert(()=>s,":first-child")).attr("class","basic label-container collapsed-group").attr("style",(0,n.KL)(e.cssStyles))}else(a=d.insert("rect",":first-child")).attr("class","basic label-container collapsed-group").attr("style",o).attr("rx",8).attr("ry",8).attr("x",$).attr("y",b).attr("width",u).attr("height",m).attr("fill",i).attr("stroke",h);let M=b+y+p+8;d.append("line").attr("class","collapsed-separator").attr("x1",$+8).attr("y1",M).attr("x2",$+u-8).attr("y2",M).attr("stroke",h).attr("stroke-dasharray","3, 3");let S=M+10;for(let t=-1;t<=1;t++)d.append("circle").attr("class","collapsed-indicator").attr("cx",10*t).attr("cy",S).attr("r",2.5).attr("fill",h);return x(e,a),e.calcIntersect=function(t,e){return B.rect(t,e)},e.intersect=function(t){return B.rect(e,t)},d}function I(t,e,a,l){return t.insert("polygon",":first-child").attr("points",l.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+a/2+")")}(0,o.K)(L,"anchor"),(0,o.K)(R,"generateArcPoints"),(0,o.K)(F,"calculateArcSagitta"),(0,o.K)(P,"bowTieRect"),(0,o.K)(G,"bucket"),(0,o.K)(X,"collapsedGroup"),(0,o.K)(I,"insertPolygonShape");var T=["right","left","up","down"],W="point",E=(0,o.K)(t=>{let e=new Set;for(let a of t)switch(a){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(a)}return e},"expandAndDeduplicateDirections"),H=(0,o.K)(t=>T.filter(e=>t.has(e)).join("|")||W,"getDirectionKey"),j={"right|left|up|down":(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:0,y:0},{x:e,y:0},{x:l/2,y:2*a},{x:l-e,y:0},{x:l,y:0},{x:l,y:-t/3},{x:l+2*a,y:-t/2},{x:l,y:-2*t/3},{x:l,y:-t},{x:l-e,y:-t},{x:l/2,y:-t-2*a},{x:e,y:-t},{x:0,y:-t},{x:0,y:-2*t/3},{x:-2*a,y:-t/2},{x:0,y:-t/3}],"right|left|up|down"),"right|left|up":(0,o.K)(({height:t,midpoint:e,width:a})=>[{x:e,y:0},{x:a-e,y:0},{x:a,y:-t/2},{x:a-e,y:-t},{x:e,y:-t},{x:0,y:-t/2}],"right|left|up"),"right|left|down":(0,o.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:e,y:-t},{x:a-e,y:-t},{x:a,y:0}],"right|left|down"),"right|up|down":(0,o.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:a,y:-e},{x:a,y:-t+e},{x:0,y:-t}],"right|up|down"),"left|up|down":(0,o.K)(({height:t,midpoint:e,width:a})=>[{x:a,y:0},{x:0,y:-e},{x:0,y:-t+e},{x:a,y:-t}],"left|up|down"),"right|left":(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:0},{x:e,y:-a},{x:l-e,y:-a},{x:l-e,y:0},{x:l,y:-t/2},{x:l-e,y:-t},{x:l-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t},{x:0,y:-t/2}],"right|left"),"up|down":(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:l/2,y:0},{x:0,y:-a},{x:e,y:-a},{x:e,y:-t+a},{x:0,y:-t+a},{x:l/2,y:-t},{x:l,y:-t+a},{x:l-e,y:-t+a},{x:l-e,y:-a},{x:l,y:-a}],"up|down"),"right|up":(0,o.K)(({height:t,midpoint:e,width:a})=>[{x:0,y:0},{x:a,y:-e},{x:0,y:-t}],"right|up"),"right|down":(0,o.K)(({height:t,width:e})=>[{x:0,y:0},{x:e,y:0},{x:0,y:-t}],"right|down"),"left|up":(0,o.K)(({height:t,midpoint:e,width:a})=>[{x:a,y:0},{x:0,y:-e},{x:a,y:-t}],"left|up"),"left|down":(0,o.K)(({height:t,width:e})=>[{x:e,y:0},{x:0,y:0},{x:e,y:-t}],"left|down"),right:(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:-a},{x:e,y:-a},{x:l-e,y:-a},{x:l-e,y:0},{x:l,y:-t/2},{x:l-e,y:-t},{x:l-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t+a}],"right"),left:(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:0},{x:e,y:-a},{x:l-e,y:-a},{x:l-e,y:-t+a},{x:e,y:-t+a},{x:e,y:-t},{x:0,y:-t/2}],"left"),up:(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:e,y:-a},{x:e,y:-t+a},{x:0,y:-t+a},{x:l/2,y:-t},{x:l,y:-t+a},{x:l-e,y:-t+a},{x:l-e,y:-a}],"up"),down:(0,o.K)(({height:t,midpoint:e,padding:a,width:l})=>[{x:l/2,y:0},{x:0,y:-a},{x:e,y:-a},{x:e,y:-t+a},{x:l-e,y:-t+a},{x:l-e,y:-a},{x:l,y:-a}],"down"),[W]:()=>[{x:0,y:0}]},q=(0,o.K)((t,e,a,l)=>{let r=E(t),i=(a.padding??0)/2,n=e.height+4*i,s=n/2,h=l??e.width+2*s+2*i;return(j[H(r)]??j[W])({height:n,midpoint:s,padding:i,width:h})},"getArrowPoints");async function _(t,e){let{shapeSvg:a,bbox:l}=await f(t,e,w(e)),r=e.padding??0,i=l.height+2*r,n=i/2,s=l.width+2*n+r,h=e.width??0,o=e.positioned&&(e.widthInColumns??1)>1&&h>s?h:s,d=q(e.directions??[],l,e,o),c=I(a,o,i,d);return c.attr("style",e.style??null),x(e,c),e.intersect=function(t){return B.polygon(e,d,t)},a}async function z(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s,label:h}=await f(t,e,w(e)),o=a?.nodeBorder??a?.lineColor??"currentColor",d=e.padding??12,g=Math.max(s.width+2*d,e.width??0,90),y=Math.max(s.height+2*d+18,e.height??0),p=-y/2,{cssStyles:u}=e,m=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=c.A.svg(n).path(D(-g/2,p,g,y,12),(0,l.Fr)(e,{}));m.node()?.appendChild(t),u&&m.attr("style",u)}else m.append("rect").attr("x",-g/2).attr("y",p).attr("width",g).attr("height",y).attr("rx",12).attr("ry",12).attr("style",i);m.append("line").attr("x1",-g/2).attr("y1",p+18).attr("x2",g/2).attr("y2",p+18).attr("style",`stroke:${o};stroke-width:1px`);for(let t=0;t<3;t++)m.append("circle").attr("cx",-g/2+12+9*t).attr("cy",p+9).attr("r",2.5).attr("style",`fill:${o};stroke:none`);m.append("rect").attr("class","browser-address-bar").attr("x",-g/2+44).attr("y",p+4).attr("width",Math.max(g-56,10)).attr("height",10).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${o};stroke-width:1px;opacity:0.6`),x(e,m);let $=p+18+(y-18)/2;return h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${$-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return B.rect(e,t)},n}async function Z(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s="neo"===e.look?28:n,h="neo"===e.look?24:n,{shapeSvg:o,bbox:d}=await f(t,e,w(e)),g=(e?.width??d.width)+("neo"===e.look?2*s:s+12),y=(e?.height??d.height)+("neo"===e.look?2*h:h),p=-y,u=[{x:12,y:p},{x:g,y:p},{x:g,y:0},{x:0,y:0},{x:0,y:p+12},{x:12,y:p}],{cssStyles:$}=e;if("handDrawn"===e.look){let t=c.A.svg(o),r=(0,l.Fr)(e,{}),i=m(u),n=t.path(i,r);a=o.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${y/2})`),$&&a.attr("style",$)}else a=I(o,g,y,u);return i&&a.attr("style",i),x(e,a),e.intersect=function(t){return B.polygon(e,u,t)},o}function O(t,e){let{nodeStyles:a}=(0,l.GX)(e);e.label="";let r=t.insert("g").attr("class",w(e)).attr("id",e.domId??e.id),{cssStyles:i}=e,n=Math.max(28,e.width??0),s=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}],h=c.A.svg(r),o=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(o.roughness=0,o.fillStyle="solid");let d=m(s),g=h.path(d,o),y=r.insert(()=>g,":first-child");return i&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",i),a&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",a),e.width=28,e.height=28,e.intersect=function(t){return B.polygon(e,s,t)},r}async function V(t,e,a){let r,{labelStyles:i,nodeStyles:s}=(0,l.GX)(e);e.labelStyle=i;let{shapeSvg:o,bbox:d,halfPadding:g}=await f(t,e,w(e)),y=a?.padding??g,p="neo"===e.look?d.width/2+32:d.width/2+y,{cssStyles:u}=e;if("handDrawn"===e.look){let t=c.A.svg(o),a=(0,l.Fr)(e,{}),i=t.circle(0,0,2*p,a);(r=o.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,n.KL)(u))}else r=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",s).attr("r",p).attr("cx",0).attr("cy",0);return x(e,r),e.calcIntersect=function(t,e){let a=t.width/2;return B.circle(t,a,e)},e.intersect=function(t){return h.R.info("Circle intersect",e,p,t),B.circle(e,p,t)},o}async function Y(t,e){let a=["node",e.cssClasses,e.class].filter(Boolean).join(" "),{shapeSvg:l,bbox:r,halfPadding:i}=await f(t,e,a),n=l.insert("rect",":first-child"),s=e.padding??0,h=e.positioned?e.width??0:r.width+s,o=e.positioned?e.height??0:r.height+s,d=e.positioned?-h/2:-r.width/2-i,c=e.positioned?-o/2:-r.height/2-i;return n.attr("class","basic cluster composite label-container").attr("style",e.style??null).attr("rx",e.rx??null).attr("ry",e.ry??null).attr("x",d).attr("y",c).attr("width",h).attr("height",o),x(e,n),e.intersect=function(t){return B.rect(e,t)},l}async function U(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s,label:h}=await f(t,e,w(e)),o=a?.nodeBorder??a?.lineColor??"currentColor",d=e.padding??12,g=Math.max(s.width+2*d,e.width??0,90),y=Math.max(s.height+2*d+20,e.height??0),p=-y/2,{cssStyles:u}=e,m=n.insert("g",":first-child").attr("class","basic label-container");if("handDrawn"===e.look){let t=c.A.svg(n).path(D(-g/2,p,g,y,12),(0,l.Fr)(e,{}));m.node()?.appendChild(t),u&&m.attr("style",u)}else m.append("rect").attr("x",-g/2).attr("y",p).attr("width",g).attr("height",y).attr("rx",12).attr("ry",12).attr("style",i);m.append("text").attr("x",-g/2+12).attr("y",p+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${o}`).text(">_"),x(e,m);let $=p+20+(y-20)/2;return h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${$-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return B.rect(e,t)},n}function J(t){let e=Math.cos(Math.PI/4),a=Math.sin(Math.PI/4),l=2*t,r={x:l/2*e,y:l/2*a},i={x:-(l/2)*e,y:l/2*a},n={x:-(l/2)*e,y:-(l/2)*a},s={x:l/2*e,y:-(l/2)*a};return`M ${i.x},${i.y} L ${s.x},${s.y} - M ${r.x},${r.y} L ${n.x},${n.y}`}function Q(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a,e.label="";let i=t.insert("g").attr("class",w(e)).attr("id",e.domId??e.id),n=Math.max(30,e?.width??0),{cssStyles:s}=e,o=c.A.svg(i),d=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");let g=o.circle(0,0,2*n,d),y=J(n),p=o.path(y,d),f=i.insert(()=>g,":first-child");return f.insert(()=>p),f.attr("class","outer-path"),s&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",s),r&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",r),x(e,f),e.intersect=function(t){return h.R.info("crossedCircle intersect",e,{radius:n,point:t}),B.circle(e,n,t)},i}function tt(t,e,a,l=100,r=0,i=180){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;rA,":first-child").attr("stroke-opacity",0),K.insert(()=>D,":first-child"),K.attr("class","text"),p&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",p),r&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",r),K.attr("transform",`translate(${y}, 0)`),s.attr("transform",`translate(${-d/2+y-(n.x-(n.left??0))},${-g/2+(e.padding??0)/2-(n.y-(n.top??0))})`),x(e,K),e.intersect=function(t){return B.polygon(e,$,t)},i}function ta(t,e,a,l=100,r=0,i=180){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;rA,":first-child").attr("stroke-opacity",0),K.insert(()=>D,":first-child"),K.attr("class","text"),p&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",p),r&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",r),K.attr("transform",`translate(${-y}, 0)`),s.attr("transform",`translate(${-d/2+(e.padding??0)/2-(n.x-(n.left??0))},${-g/2+(e.padding??0)/2-(n.y-(n.top??0))})`),x(e,K),e.intersect=function(t){return B.polygon(e,$,t)},i}function tr(t,e,a,l=100,r=0,i=180){let n=[],s=r*Math.PI/180,h=(i*Math.PI/180-s)/(l-1);for(let r=0;rC,":first-child").attr("stroke-opacity",0),N.insert(()=>S,":first-child"),N.insert(()=>K,":first-child"),N.attr("class","text"),p&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",p),r&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",r),N.attr("transform",`translate(${y-y/4}, 0)`),s.attr("transform",`translate(${-d/2+(e.padding??0)/2-(n.x-(n.left??0))},${-g/2+(e.padding??0)/2-(n.y-(n.top??0))})`),x(e,N),e.intersect=function(t){return B.polygon(e,b,t)},i}async function tn(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,{shapeSvg:h,bbox:o}=await f(t,e,w(e)),d=Math.max(20,(o.width+2*n)*1.25,e?.width??0),g=Math.max(5,o.height+2*s,e?.height??0),y=g/2,{cssStyles:p}=e,u=c.A.svg(h),$=(0,l.Fr)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let k=d-y,M=g/4,D=[{x:k,y:0},{x:M,y:0},{x:0,y:g/2},{x:M,y:g},{x:k,y:g},...b(-k,-g/2,y,50,270,90)],S=m(D),A=u.path(S,$),K=h.insert(()=>A,":first-child");return K.attr("class","basic label-container outer-path"),p&&"handDrawn"!==e.look&&K.selectChildren("path").attr("style",p),r&&"handDrawn"!==e.look&&K.selectChildren("path").attr("style",r),K.attr("transform",`translate(${-d/2}, ${-g/2})`),x(e,K),e.intersect=function(t){return B.polygon(e,D,t)},h}async function ts(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await f(t,e,w(e)),h=e.padding??20,o=Math.max(n.width+2*h,e.width??0,100),d=Math.min(Math.max(.23*o,16),56),g=.27*d,y=Math.max(n.height+2*h,e.height?e.height-(2*d-g):0),p=Math.min(.177*o,.45*y),u=y+2*d-g,m=-u/2,$=m+2*d-g,k=i.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:M}=e;if("handDrawn"===e.look){let t=c.A.svg(i),a=(0,l.Fr)(e,{}),r=t.path(D(-o/2,$,o,y,p),a),n=t.circle(0,m+d,2*d,a);k.insert(()=>n,":first-child"),k.insert(()=>r,":first-child"),M&&k.attr("style",M)}else k.append("rect").attr("x",-o/2).attr("y",$).attr("width",o).attr("height",y).attr("rx",p).attr("ry",p).attr("style",r),k.append("circle").attr("cx",0).attr("cy",m+d).attr("r",d).attr("style",r);x(e,k);let S=$+y/2;s.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${S-n.height/2-(n.y-(n.top??0))})`);let A=m+d,K=180*Math.asin(Math.min(1,($-A)/d))/Math.PI,v=[...b(0,-A,d,24,180+K,-K),...b(-(-o/2+p),-($+p),p,12,90,0),...b(-(-o/2+p),-(u/2-p),p,12,360,270),...b(-(o/2-p),-(u/2-p),p,12,270,180),...b(-(o/2-p),-($+p),p,12,180,90)];return e.intersect=function(t){return B.polygon(e,v,t)},i}(0,o.K)(_,"block_arrow"),(0,o.K)(z,"browser"),(0,o.K)(Z,"card"),(0,o.K)(O,"choice"),(0,o.K)(V,"circle"),(0,o.K)(Y,"composite"),(0,o.K)(U,"consoleWindow"),(0,o.K)(J,"createLine"),(0,o.K)(Q,"crossedCircle"),(0,o.K)(tt,"generateCirclePoints"),(0,o.K)(te,"curlyBraceLeft"),(0,o.K)(ta,"generateCirclePoints"),(0,o.K)(tl,"curlyBraceRight"),(0,o.K)(tr,"generateCirclePoints"),(0,o.K)(ti,"curlyBraces"),(0,o.K)(tn,"curvedTrapezoid"),(0,o.K)(ts,"person");var th=(0,o.K)((t,e,a,l,r,i)=>`M${t},${e+i} a${r},${i} 0,0,0 ${a},0 a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l}`,"createCylinderPathD"),to=(0,o.K)((t,e,a,l,r,i)=>`M${t},${e+i} M${t+a},${e+i} a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l}`,"createOuterCylinderPathD"),td=(0,o.K)((t,e,a,l,r,i)=>`M${t-a/2},${-l/2} a${r},${i} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function tc(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let s=e.padding??0,h="neo"===e.look?24:s,o="neo"===e.look?24:s,d=e.width??0;e.width&&(e.width=e.width-o,e.width<8&&(e.width=8)),e.height&&(e.height=e.height-h-d/2/(2.5+d/50)*3,e.height<8&&(e.height=8));let{shapeSvg:g,bbox:y,label:p}=await f(t,e,w(e)),u=Math.max(e.width??0,y.width)+o,m=u/2,$=m/(2.5+u/50),b=Math.max(e.height??0,y.height)+h+$,{cssStyles:k}=e;if("handDrawn"===e.look){let t=c.A.svg(g),r=to(0,0,u,b,m,$),i=td(0,$,u,b,m,$),n=(0,l.Fr)(e,{}),s=t.path(r,n),h=t.path(i,(0,l.Fr)(e,{fill:"none"}));a=g.insert(()=>h,":first-child"),(a=g.insert(()=>s,":first-child")).attr("class","basic label-container"),k&&a.attr("style",k)}else{let t=th(0,0,u,b,m,$);a=g.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,n.KL)(k)).attr("style",i)}return a.attr("label-offset-y",$),a.attr("transform",`translate(${-u/2}, ${-(b/2+$)})`),x(e,a),p.attr("transform",`translate(${-(y.width/2)-(y.x-(y.left??0))}, ${-(y.height/2)+(e.padding??0)/1.5-(y.y-(y.top??0))})`),e.intersect=function(t){let a=B.rect(e,t),l=a.x-(e.x??0);if(0!=m&&(Math.abs(l)<(e.width??0)/2||Math.abs(l)==(e.width??0)/2&&Math.abs(a.y-(e.y??0))>(e.height??0)/2-$)){let r=$*$*(1-l*l/(m*m));r>0&&(r=Math.sqrt(r)),r=$-r,t.y-(e.y??0)>0&&(r=-r),a.y+=r}return a},g}async function tg(t,e,a){let r,{labelStyles:i,nodeStyles:s}=(0,l.GX)(e);e.labelStyle=i;let{shapeSvg:h,bbox:o}=await f(t,e,w(e)),d=Math.max(o.width+2*a.labelPaddingX,e?.width||0),g=Math.max(o.height+2*a.labelPaddingY,e?.height||0),y=-d/2,p=-g/2,{rx:u,ry:m}=e,{cssStyles:$}=e;if(a?.rx&&a.ry&&(u=a.rx,m=a.ry),"handDrawn"===e.look){let t=c.A.svg(h),a=(0,l.Fr)(e,{}),i=u||m?t.path(D(y,p,d,g,u||0),a):t.rectangle(y,p,d,g,a);(r=h.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,n.KL)($))}else(r=h.insert("rect",":first-child")).attr("class","basic label-container").attr("style",s).attr("rx",(0,n.KL)(u)).attr("ry",(0,n.KL)(m)).attr("x",y).attr("y",p).attr("width",d).attr("height",g);return x(e,r,"handDrawn"===e.look?void 0:{width:d,height:g}),e.calcIntersect=function(t,e){return B.rect(t,e)},e.intersect=function(t){return B.rect(e,t)},h}async function ty(t,e){let{cssClasses:a,labelPaddingX:r,labelPaddingY:i,padding:n,width:s,height:h}=e,o=await tg(t,e,{rx:0,ry:0,classes:a??"",labelPaddingX:r??(n??0)*2,labelPaddingY:i??n??0});if("handDrawn"===e.look){let t=c.A.svg(o),a=(0,l.Fr)(e,{}),r=o.select(".basic.label-container > path:nth-child(2)"),i=r.node();if(!i)return o;let n=null;return i instanceof SVGGraphicsElement&&(n=i.getBBox(),o.insert(()=>t.line(n.x,n.y,n.x+n.width,n.y,a),".basic.label-container g.label"),o.insert(()=>t.line(n.x,n.y+n.height,n.x+n.width,n.y+n.height,a),".basic.label-container g.label"),r.remove()),o}let d=o.select(".basic.label-container"),g=(Number(d.attr("width"))||s)??0,y=(Number(d.attr("height"))||h)??0;return g>0&&y>0&&d.attr("stroke-dasharray",`${g} ${y}`),o}async function tp(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?16:e.padding??0,{shapeSvg:s,bbox:h,label:o}=await f(t,e,w(e)),d=h.width+i,g=h.height+n,y=.2*g,p=-d/2,u=-g/2-y/2,{cssStyles:m}=e,$=c.A.svg(s),b=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=$.polygon([{x:p,y:u+y},{x:-p,y:u+y},{x:-p,y:-u},{x:p,y:-u},{x:p,y:u},{x:-p,y:u},{x:-p,y:u+y}].map(t=>[t.x,t.y]),b),M=s.insert(()=>k,":first-child");return M.attr("class","basic label-container outer-path"),m&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",m),r&&"handDrawn"!==e.look&&M.selectAll("path").attr("style",r),o.attr("transform",`translate(${p+(e.padding??0)/2-(h.x-(h.left??0))}, ${u+y+(e.padding??0)/2-(h.y-(h.top??0))})`),x(e,M),e.intersect=function(t){return B.rect(e,t)},s}async function tf(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e),s="neo"===e.look?12:5;e.labelStyle=r;let o=e.padding??0,d="neo"===e.look?16:o,{shapeSvg:g,bbox:y}=await f(t,e,w(e)),p=(e?.width?e?.width/2:y.width/2)+(d??0),u=p-s,{cssStyles:m}=e;if("handDrawn"===e.look){let t=c.A.svg(g),r=(0,l.Fr)(e,{roughness:.2,strokeWidth:2.5}),i=(0,l.Fr)(e,{roughness:.2,strokeWidth:1.5}),s=t.circle(0,0,2*p,r),h=t.circle(0,0,2*u,i);(a=g.insert("g",":first-child")).attr("class",(0,n.KL)(e.cssClasses)).attr("style",(0,n.KL)(m)),a.node()?.appendChild(s),a.node()?.appendChild(h)}else{let t=(a=g.insert("g",":first-child")).insert("circle",":first-child"),e=a.insert("circle");a.attr("class","basic label-container").attr("style",i),t.attr("class","outer-circle").attr("style",i).attr("r",p).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",i).attr("r",u).attr("cx",0).attr("cy",0)}return x(e,a),e.intersect=function(t){return h.R.info("DoubleCircle intersect",e,p,t),B.circle(e,p,t)},g}function tu(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.label="",e.labelStyle=r;let n=t.insert("g").attr("class",w(e)).attr("id",e.domId??e.id),{cssStyles:s}=e,o=c.A.svg(n),{nodeBorder:d}=a,g=(0,l.Fr)(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(g.roughness=0);let y=o.circle(0,0,14,g),p=n.insert(()=>y,":first-child");return p.selectAll("path").attr("style",`fill: ${d} !important;`),s&&s.length>0&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",s),i&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",i),x(e,p),e.intersect=function(t){return h.R.info("filledCircle intersect",e,{radius:7,point:t}),B.circle(e,7,t)},n}async function tx(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?2*i:i;(e.width||e.height)&&(e.height=e?.height??0,e.height<10&&(e.height=10),e.width=(e?.width??0)-n-n/2,e.width<10&&(e.width=10));let{shapeSvg:s,bbox:o,label:d}=await f(t,e,w(e)),g=(e?.width?e?.width:o.width)+(n??0),y=e?.height?e?.height:g+o.height,p=[{x:0,y:-y},{x:y,y:-y},{x:y/2,y:0}],{cssStyles:u}=e,$=c.A.svg(s),b=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");let k=m(p),M=$.path(k,b),D=s.insert(()=>M,":first-child").attr("transform",`translate(${-y/2}, ${y/2})`).attr("class","outer-path");return u&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",u),r&&"handDrawn"!==e.look&&D.selectChildren("path").attr("style",r),e.width=g,e.height=y,x(e,D),d.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-y/2+(e.padding??0)/2+(o.y-(o.top??0))})`),e.intersect=function(t){return h.R.info("Triangle intersect",e,p,t),B.polygon(e,p,t)},s}async function tw(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s,label:h}=await f(t,e,w(e)),o=e.padding??12,d=Math.max(s.width+2*o,e.width??0,90),g=s.height+2*o,y=Math.max(Math.min(.16*g,14),8),p=Math.max(g+y,e.height??0),u=p-y,m=Math.max(.38*d,28),$=-p/2,b=[{x:-d/2,y:$},{x:-d/2+m,y:$},{x:-d/2+m,y:$+y},{x:d/2,y:$+y},{x:d/2,y:p/2},{x:-d/2,y:p/2}],k=[`M${b[0].x},${b[0].y}`,...b.slice(1).map(t=>`L${t.x},${t.y}`),"Z"].join(" "),{cssStyles:M}=e;if("handDrawn"===e.look){let t=c.A.svg(n).path(k,(0,l.Fr)(e,{}));a=n.insert(()=>t,":first-child").attr("class","basic label-container"),M&&a.attr("style",M)}else a=n.insert("path",":first-child").attr("d",k).attr("class","basic label-container").attr("style",i);return"handDrawn"===e.look?x(e,a):x(e,a,{width:d,height:p}),h.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${$+y+u/2-s.height/2-(s.y-(s.top??0))})`),e.intersect=function(t){return B.polygon(e,b,t)},n}function tm(t,e,{dir:a,config:{state:r,themeVariables:i}}){let{nodeStyles:n}=(0,l.GX)(e);e.label="";let s=t.insert("g").attr("class",w(e)).attr("id",e.domId??e.id),{cssStyles:h}=e,o=Math.max(70,e?.width??0),d=Math.max(10,e?.height??0);"LR"===a&&(o=Math.max(10,e?.width??0),d=Math.max(70,e?.height??0));let g=-1*o/2,y=-1*d/2,p=c.A.svg(s),f=(0,l.Fr)(e,{stroke:i.lineColor,fill:i.lineColor});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");let u=p.rectangle(g,y,o,d,f),m=s.insert(()=>u,":first-child");h&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",h),n&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",n),x(e,m);let $=r?.padding??0;return e.width&&e.height&&(e.width+=$/2||0,e.height+=$/2||0),e.intersect=function(t){return B.rect(e,t)},s}async function t$(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.height=(e?.height??0)-2*n,e.height<10&&(e.height=10),e.width=(e?.width??0)-2*i,e.width<15&&(e.width=15));let{shapeSvg:s,bbox:o}=await f(t,e,w(e)),d=(e?.width?e?.width:Math.max(15,o.width))+2*i,g=(e?.height?e?.height:Math.max(10,o.height))+2*n,y=g/2,{cssStyles:p}=e,u=c.A.svg(s),$=(0,l.Fr)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let k=[{x:-d/2,y:-g/2},{x:d/2-y,y:-g/2},...b(-d/2+y,0,y,50,90,270),{x:d/2-y,y:g/2},{x:-d/2,y:g/2}],M=m(k),D=u.path(M,$),S=s.insert(()=>D,":first-child");return S.attr("class","basic label-container outer-path"),p&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",p),r&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",r),x(e,S),e.intersect=function(t){return h.R.info("Pill intersect",e,{radius:y,point:t}),B.polygon(e,k,t)},s}(0,o.K)(tc,"cylinder"),(0,o.K)(tg,"drawRect"),(0,o.K)(ty,"datastore"),(0,o.K)(tp,"dividedRectangle"),(0,o.K)(tf,"doublecircle"),(0,o.K)(tu,"filledCircle"),(0,o.K)(tx,"flippedTriangle"),(0,o.K)(tw,"folder"),(0,o.K)(tm,"forkJoin"),(0,o.K)(t$,"halfRoundedRectangle");var tb=(0,o.K)((t,e,a,l,r)=>`M${t+r},${e} L${t+a-r},${e} L${t+a},${e-l/2} L${t+a-r},${e-l} L${t+r},${e-l} L${t},${e-l/2} Z`,"createHexagonPathD");async function tk(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e),n="neo"===e.look?3.5:4;e.labelStyle=r;let s=e.padding??0,h="neo"===e.look?70:s,o="neo"===e.look?32:s;if(e.width||e.height){let t=e.height??0;e.width=(e?.width??0)-t/n*2-o,e.height=(e.height??0)-h}let{shapeSvg:d,bbox:g}=await f(t,e,w(e)),y=(e?.height?e?.height:g.height)+h,p=y/n,u=(e?.width?e?.width:g.width)+2*p+o,m=[{x:p,y:0},{x:u-p,y:0},{x:u,y:-y/2},{x:u-p,y:-y},{x:p,y:-y},{x:0,y:-y/2}],{cssStyles:$}=e;if("handDrawn"===e.look){let t=c.A.svg(d),r=(0,l.Fr)(e,{}),i=tb(0,0,u,y,p),n=t.path(i,r);a=d.insert(()=>n,":first-child").attr("transform",`translate(${-u/2}, ${y/2})`),$&&a.attr("style",$)}else a=I(d,u,y,m);return i&&a.attr("style",i),e.width=u,e.height=y,x(e,a),e.intersect=function(t){return B.polygon(e,m,t)},d}async function tM(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.label="",e.labelStyle=a;let{shapeSvg:i}=await f(t,e,w(e)),n=Math.max(30,e?.width??0),s=Math.max(30,e?.height??0),{cssStyles:o}=e,d=c.A.svg(i),g=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");let y=[{x:0,y:0},{x:n,y:0},{x:0,y:s},{x:n,y:s}],p=m(y),u=d.path(p,g),$=i.insert(()=>u,":first-child");return $.attr("class","basic label-container outer-path"),o&&"handDrawn"!==e.look&&$.selectChildren("path").attr("style",o),r&&"handDrawn"!==e.look&&$.selectChildren("path").attr("style",r),$.attr("transform",`translate(${-n/2}, ${-s/2})`),x(e,$),e.intersect=function(t){return h.R.info("Pill intersect",e,{points:y}),B.polygon(e,y,t)},i}async function tD(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:n}=(0,l.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,r?.wrappingWidth??0);let{shapeSvg:o,bbox:d,label:g}=await f(t,e,"icon-shape default"),y="t"===e.pos,{nodeBorder:p}=a,{stylesMap:u}=(0,l.WW)(e),w=-s/2,m=-s/2,$=8*!!e.label,b=c.A.svg(o),k=(0,l.Fr)(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=b.rectangle(w,m,s,s,k),D=Math.max(s,d.width),S=s+d.height+$,A=b.rectangle(-D/2,-S/2,D,S,{...k,fill:"transparent",stroke:"none"}),K=o.insert(()=>M,":first-child"),v=o.insert(()=>A);if(e.icon){let t=o.append("g");t.html(`${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}`);let a=t.node().getBBox(),l=a.width,r=a.height,n=a.x,h=a.y;t.attr("transform",`translate(${-l/2-n},${y?d.height/2+$/2-r/2-h:-d.height/2-$/2-r/2-h})`),t.attr("style",`color: ${u.get("stroke")??p};`)}return g.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${y?-S/2:S/2-d.height})`),K.attr("transform",`translate(0,${y?d.height/2+$/2:-d.height/2-$/2})`),x(e,v),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return B.rect(e,t);let a=e.x??0,l=e.y??0,r=e.height??0,i=[];return i=y?[{x:a-d.width/2,y:l-r/2},{x:a+d.width/2,y:l-r/2},{x:a+d.width/2,y:l-r/2+d.height+$},{x:a+s/2,y:l-r/2+d.height+$},{x:a+s/2,y:l+r/2},{x:a-s/2,y:l+r/2},{x:a-s/2,y:l-r/2+d.height+$},{x:a-d.width/2,y:l-r/2+d.height+$}]:[{x:a-s/2,y:l-r/2},{x:a+s/2,y:l-r/2},{x:a+s/2,y:l-r/2+s},{x:a+d.width/2,y:l-r/2+s},{x:a+d.width/2/2,y:l+r/2},{x:a-d.width/2,y:l+r/2},{x:a-d.width/2,y:l-r/2+s},{x:a-s/2,y:l-r/2+s}],B.polygon(e,i,t)},o}async function tS(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:n}=(0,l.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,r?.wrappingWidth??0);let{shapeSvg:o,bbox:d,label:g}=await f(t,e,"icon-shape default"),y=8*!!e.label,p="t"===e.pos,{nodeBorder:u,mainBkg:w}=a,{stylesMap:m}=(0,l.WW)(e),$=c.A.svg(o),b=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid"),b.stroke=m.get("fill")??w;let k=o.append("g");e.icon&&k.html(`${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}`);let M=k.node().getBBox(),D=M.width,S=M.height,A=M.x,K=M.y,v=Math.max(D,S)*Math.SQRT2+40,C=$.circle(0,0,v,b),N=Math.max(v,d.width),L=v+d.height+y,R=$.rectangle(-N/2,-L/2,N,L,{...b,fill:"transparent",stroke:"none"}),F=o.insert(()=>C,":first-child"),P=o.insert(()=>R);return k.attr("transform",`translate(${-D/2-A},${p?d.height/2+y/2-S/2-K:-d.height/2-y/2-S/2-K})`),k.attr("style",`color: ${m.get("stroke")??u};`),g.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-L/2:L/2-d.height})`),F.attr("transform",`translate(0,${p?d.height/2+y/2:-d.height/2-y/2})`),x(e,P),e.intersect=function(t){return h.R.info("iconSquare intersect",e,t),B.rect(e,t)},o}async function tA(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:n}=(0,l.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,r?.wrappingWidth??0);let{shapeSvg:o,bbox:d,halfPadding:g,label:y}=await f(t,e,"icon-shape default"),p="t"===e.pos,u=s+2*g,w=s+2*g,{nodeBorder:m,mainBkg:$}=a,{stylesMap:b}=(0,l.WW)(e),k=8*!!e.label,M=c.A.svg(o),S=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid"),S.stroke=b.get("fill")??$;let A=M.path(D(-w/2,-u/2,w,u,5),S),K=Math.max(w,d.width),v=u+d.height+k,C=M.rectangle(-K/2,-v/2,K,v,{...S,fill:"transparent",stroke:"none"}),N=o.insert(()=>A,":first-child").attr("class","icon-shape2"),L=o.insert(()=>C);if(e.icon){let t=o.append("g");t.html(`${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}`);let a=t.node().getBBox(),l=a.width,r=a.height,n=a.x,h=a.y;t.attr("transform",`translate(${-l/2-n},${p?d.height/2+k/2-r/2-h:-d.height/2-k/2-r/2-h})`),t.attr("style",`color: ${b.get("stroke")??m};`)}return y.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-v/2:v/2-d.height})`),N.attr("transform",`translate(0,${p?d.height/2+k/2:-d.height/2-k/2})`),x(e,L),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return B.rect(e,t);let a=e.x??0,l=e.y??0,r=e.height??0,i=[];return i=p?[{x:a-d.width/2,y:l-r/2},{x:a+d.width/2,y:l-r/2},{x:a+d.width/2,y:l-r/2+d.height+k},{x:a+w/2,y:l-r/2+d.height+k},{x:a+w/2,y:l+r/2},{x:a-w/2,y:l+r/2},{x:a-w/2,y:l-r/2+d.height+k},{x:a-d.width/2,y:l-r/2+d.height+k}]:[{x:a-w/2,y:l-r/2},{x:a+w/2,y:l-r/2},{x:a+w/2,y:l-r/2+u},{x:a+d.width/2,y:l-r/2+u},{x:a+d.width/2/2,y:l+r/2},{x:a-d.width/2,y:l+r/2},{x:a-d.width/2,y:l-r/2+u},{x:a-w/2,y:l-r/2+u}],B.polygon(e,i,t)},o}async function tK(t,e,{config:{themeVariables:a,flowchart:r}}){let{labelStyles:n}=(0,l.GX)(e);e.labelStyle=n;let s=Math.max(e.assetHeight??48,e.assetWidth??48);e.width=Math.max(s,r?.wrappingWidth??0);let{shapeSvg:o,bbox:d,halfPadding:g,label:y}=await f(t,e,"icon-shape default"),p="t"===e.pos,u=s+2*g,w=s+2*g,{nodeBorder:m,mainBkg:$}=a,{stylesMap:b}=(0,l.WW)(e),k=8*!!e.label,M=c.A.svg(o),S=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid"),S.stroke=b.get("fill")??$;let A=M.path(D(-w/2,-u/2,w,u,.1),S),K=Math.max(w,d.width),v=u+d.height+k,C=M.rectangle(-K/2,-v/2,K,v,{...S,fill:"transparent",stroke:"none"}),N=o.insert(()=>A,":first-child"),L=o.insert(()=>C);if(e.icon){let t=o.append("g");t.html(`${await (0,i.WY)(e.icon,{height:s,width:s,fallbackPrefix:""})}`);let a=t.node().getBBox(),l=a.width,r=a.height,n=a.x,h=a.y;t.attr("transform",`translate(${-l/2-n},${p?d.height/2+k/2-r/2-h:-d.height/2-k/2-r/2-h})`),t.attr("style",`color: ${b.get("stroke")??m};`)}return y.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${p?-v/2:v/2-d.height})`),N.attr("transform",`translate(0,${p?d.height/2+k/2:-d.height/2-k/2})`),x(e,L),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return B.rect(e,t);let a=e.x??0,l=e.y??0,r=e.height??0,i=[];return i=p?[{x:a-d.width/2,y:l-r/2},{x:a+d.width/2,y:l-r/2},{x:a+d.width/2,y:l-r/2+d.height+k},{x:a+w/2,y:l-r/2+d.height+k},{x:a+w/2,y:l+r/2},{x:a-w/2,y:l+r/2},{x:a-w/2,y:l-r/2+d.height+k},{x:a-d.width/2,y:l-r/2+d.height+k}]:[{x:a-w/2,y:l-r/2},{x:a+w/2,y:l-r/2},{x:a+w/2,y:l-r/2+u},{x:a+d.width/2,y:l-r/2+u},{x:a+d.width/2/2,y:l+r/2},{x:a-d.width/2,y:l+r/2},{x:a-d.width/2,y:l-r/2+u},{x:a-w/2,y:l-r/2+u}],B.polygon(e,i,t)},o}async function tv(t,e,{config:{flowchart:a}}){let r=new Image;r.src=e?.img??"",await r.decode();let i=Number(r.naturalWidth.toString().replace("px","")),n=Number(r.naturalHeight.toString().replace("px",""));e.imageAspectRatio=i/n;let{labelStyles:s}=(0,l.GX)(e);e.labelStyle=s;let o=a?.wrappingWidth;e.defaultWidth=a?.wrappingWidth;let d=Math.max(e.label?o??0:0,e?.assetWidth??i),g="on"===e.constraint&&e?.assetHeight?e.assetHeight*e.imageAspectRatio:d,y="on"===e.constraint?g/e.imageAspectRatio:e?.assetHeight??n;e.width=Math.max(g,o??0);let{shapeSvg:p,bbox:u,label:w}=await f(t,e,"image-shape default"),m="t"===e.pos,$=-g/2,b=8*!!e.label,k=c.A.svg(p),M=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=k.rectangle($,-y/2,g,y,M),S=Math.max(g,u.width),A=y+u.height+b,K=k.rectangle(-S/2,-A/2,S,A,{...M,fill:"none",stroke:"none"}),v=p.insert(()=>D,":first-child"),C=p.insert(()=>K);if(e.img){let t=p.append("image");t.attr("href",e.img),t.attr("width",g),t.attr("height",y),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-g/2},${m?A/2-y:-A/2})`)}return w.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${m?-y/2-u.height/2-b/2:y/2-u.height/2+b/2})`),v.attr("transform",`translate(0,${m?u.height/2+b/2:-u.height/2-b/2})`),x(e,C),e.intersect=function(t){if(h.R.info("iconSquare intersect",e,t),!e.label)return B.rect(e,t);let a=e.x??0,l=e.y??0,r=e.height??0,i=[];return i=m?[{x:a-u.width/2,y:l-r/2},{x:a+u.width/2,y:l-r/2},{x:a+u.width/2,y:l-r/2+u.height+b},{x:a+g/2,y:l-r/2+u.height+b},{x:a+g/2,y:l+r/2},{x:a-g/2,y:l+r/2},{x:a-g/2,y:l-r/2+u.height+b},{x:a-u.width/2,y:l-r/2+u.height+b}]:[{x:a-g/2,y:l-r/2},{x:a+g/2,y:l-r/2},{x:a+g/2,y:l-r/2+y},{x:a+u.width/2,y:l-r/2+y},{x:a+u.width/2/2,y:l+r/2},{x:a-u.width/2,y:l+r/2},{x:a-u.width/2,y:l-r/2+y},{x:a-g/2,y:l-r/2+y}],B.polygon(e,i,t)},p}async function tC(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:h,bbox:o}=await f(t,e,w(e)),d=Math.max(o.height+2*n,e.height??0),g=Math.max(o.width+2*s,(e.width??0)-d),y=[{x:0,y:0},{x:g,y:0},{x:g+3*d/6,y:-d},{x:-3*d/6,y:-d}],{cssStyles:p}=e;if("handDrawn"===e.look){let t=c.A.svg(h),r=(0,l.Fr)(e,{}),i=m(y),n=t.path(i,r);a=h.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${d/2})`),p&&a.attr("style",p)}else a=I(h,g,d,y);return i&&a.attr("style",i),e.width=g,e.height=d,x(e,a),e.intersect=function(t){return B.polygon(e,y,t)},h}async function tN(t,e){let{shapeSvg:a,bbox:l,label:r}=await f(t,e,"label"),i=a.insert("rect",":first-child");return i.attr("width",.1).attr("height",.1),a.attr("class","label edgeLabel"),r.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),x(e,i),e.intersect=function(t){return B.rect(e,t)},a}async function tB(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:h,bbox:o}=await f(t,e,w(e)),d=Math.max(o.height+n,e.height??0),g=Math.max(o.width+s,(e.width??0)-d),y=[{x:0,y:0},{x:g+3*d/6,y:0},{x:g,y:-d},{x:-(3*d)/6,y:-d}],{cssStyles:p}=e;if("handDrawn"===e.look){let t=c.A.svg(h),r=(0,l.Fr)(e,{}),i=m(y),n=t.path(i,r);a=h.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${d/2})`),p&&a.attr("style",p)}else a=I(h,g,d,y);return i&&a.attr("style",i),e.width=g,e.height=d,x(e,a),e.intersect=function(t){return B.polygon(e,y,t)},h}async function tL(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s="neo"===e.look?2*n:n,{shapeSvg:h,bbox:o}=await f(t,e,w(e)),d=Math.max(o.height+n,e.height??0),g=Math.max(o.width+s,(e.width??0)-d),y=[{x:-3*d/6,y:0},{x:g,y:0},{x:g+3*d/6,y:-d},{x:0,y:-d}],{cssStyles:p}=e;if("handDrawn"===e.look){let t=c.A.svg(h),r=(0,l.Fr)(e,{}),i=m(y),n=t.path(i,r);a=h.insert(()=>n,":first-child").attr("transform",`translate(${-g/2}, ${d/2})`),p&&a.attr("style",p)}else a=I(h,g,d,y);return i&&a.attr("style",i),e.width=g,e.height=d,x(e,a),e.intersect=function(t){return B.polygon(e,y,t)},h}function tR(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.label="",e.labelStyle=a;let i=t.insert("g").attr("class",w(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,s=Math.max(35,e?.width??0),o=Math.max(35,e?.height??0),d=[{x:s,y:0},{x:0,y:o+3.5},{x:s-14,y:o+3.5},{x:0,y:2*o},{x:s,y:o-3.5},{x:14,y:o-3.5}],g=c.A.svg(i),y=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(y.roughness=0,y.fillStyle="solid");let p=m(d),f=g.path(p,y),u=i.insert(()=>f,":first-child");return u.attr("class","outer-path"),n&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",n),r&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",r),u.attr("transform",`translate(-${s/2},${-o})`),x(e,u),e.intersect=function(t){return h.R.info("lightningBolt intersect",e,t),B.polygon(e,d,t)},i}(0,o.K)(tk,"hexagon"),(0,o.K)(tM,"hourglass"),(0,o.K)(tD,"icon"),(0,o.K)(tS,"iconCircle"),(0,o.K)(tA,"iconRounded"),(0,o.K)(tK,"iconSquare"),(0,o.K)(tv,"imageSquare"),(0,o.K)(tC,"inv_trapezoid"),(0,o.K)(tN,"labelRect"),(0,o.K)(tB,"lean_left"),(0,o.K)(tL,"lean_right"),(0,o.K)(tR,"lightningBolt");var tF=(0,o.K)((t,e,a,l,r,i,n)=>`M${t},${e+i} a${r},${i} 0,0,0 ${a},0 a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l} M${t},${e+i+n} a${r},${i} 0,0,0 ${a},0`,"createCylinderPathD"),tP=(0,o.K)((t,e,a,l,r,i,n)=>`M${t},${e+i} M${t+a},${e+i} a${r},${i} 0,0,0 ${-a},0 l0,${l} a${r},${i} 0,0,0 ${a},0 l0,${-l} M${t},${e+i+n} a${r},${i} 0,0,0 ${a},0`,"createOuterCylinderPathD"),tG=(0,o.K)((t,e,a,l,r,i)=>`M${t-a/2},${-l/2} a${r},${i} 0,0,0 ${a},0`,"createInnerCylinderPathD");async function tX(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let s=e.padding??0,h="neo"===e.look?16:s,o="neo"===e.look?24:s;if(e.width||e.height){let t=e.width??0;e.width=(e.width??0)-h,e.width<10&&(e.width=10),e.height=(e.height??0)-o-t/2/(2.5+t/50)*3,e.height<10&&(e.height=10)}let{shapeSvg:d,bbox:g,label:y}=await f(t,e,w(e)),p=(e?.width?e?.width:g.width)+2*h,u=p/2,m=u/(2.5+p/50),$=(e?.height?e?.height:g.height)+m+2*o,b=.1*$,{cssStyles:k}=e;if("handDrawn"===e.look){let t=c.A.svg(d),r=tP(0,0,p,$,u,m,b),i=tG(0,m,p,$,u,m),n=(0,l.Fr)(e,{}),s=t.path(r,n),h=t.path(i,n);d.insert(()=>h,":first-child").attr("class","line"),(a=d.insert(()=>s,":first-child")).attr("class","basic label-container"),k&&a.attr("style",k)}else{let t=tF(0,0,p,$,u,m,b);a=d.insert("path",":first-child").attr("d",t).attr("class","basic label-container outer-path").attr("style",(0,n.KL)(k)).attr("style",i)}return a.attr("label-offset-y",m),a.attr("transform",`translate(${-p/2}, ${-($/2+m)})`),x(e,a),y.attr("transform",`translate(${-(g.width/2)-(g.x-(g.left??0))}, ${-(g.height/2)+m-(g.y-(g.top??0))})`),e.intersect=function(t){let a=B.rect(e,t),l=a.x-(e.x??0);if(0!=u&&(Math.abs(l)<(e.width??0)/2||Math.abs(l)==(e.width??0)/2&&Math.abs(a.y-(e.y??0))>(e.height??0)/2-m)){let r=m*m*(1-l*l/(u*u));r>0&&(r=Math.sqrt(r)),r=m-r,t.y-(e.y??0)>0&&(r=-r),a.y+=r}return a},d}async function tI(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;if(e.width||e.height){let t=e.width;e.width=(t??0)*10/11-2*n,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10)}let{shapeSvg:h,bbox:o,label:d}=await f(t,e,w(e)),g=(e?.width?e?.width:o.width)+(n??0)*2,y=(e?.height?e?.height:o.height)+(s??0)*2,p="neo"===e.look?y/4:y/8,u=y+p,{cssStyles:m}=e,b=c.A.svg(h),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=[{x:-g/2-g/2*.1,y:-u/2},{x:-g/2-g/2*.1,y:u/2},...$(-g/2-g/2*.1,u/2,g/2+g/2*.1,u/2,p,.8),{x:g/2+g/2*.1,y:-u/2},{x:-g/2-g/2*.1,y:-u/2},{x:-g/2,y:-u/2},{x:-g/2,y:u/2*1.1},{x:-g/2,y:-u/2}],D=b.polygon(M.map(t=>[t.x,t.y]),k),S=h.insert(()=>D,":first-child");return S.attr("class","basic label-container outer-path"),m&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",m),r&&"handDrawn"!==e.look&&S.selectAll("path").attr("style",r),S.attr("transform",`translate(0,${-p/2})`),d.attr("transform",`translate(${-g/2+(e.padding??0)+g/2*.1/2-(o.x-(o.left??0))},${-y/2+(e.padding??0)-p/2-(o.y-(o.top??0))})`),x(e,S),e.intersect=function(t){return B.polygon(e,M,t)},h}async function tT(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,h="neo"===e.look?10:5;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*n-2*h,10),e.height=Math.max((e?.height??0)-2*s-2*h,10));let{shapeSvg:o,bbox:d,label:g}=await f(t,e,w(e)),y=(e?.width?e?.width:d.width)+2*n+2*h,p=(e?.height?e?.height:d.height)+2*s+2*h,u=y-2*h,$=p-2*h,b=-u/2,M=-$/2,{cssStyles:D}=e,S=c.A.svg(o),A=(0,l.Fr)(e,{}),K=[{x:b-h,y:M+h},{x:b-h,y:M+$+h},{x:b+u-h,y:M+$+h},{x:b+u-h,y:M+$},{x:b+u,y:M+$},{x:b+u,y:M+$-h},{x:b+u+h,y:M+$-h},{x:b+u+h,y:M-h},{x:b+h,y:M-h},{x:b+h,y:M},{x:b,y:M},{x:b,y:M+h}];"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let v=m(K),C=S.path(v,A),N=m([{x:b,y:M+h},{x:b+u-h,y:M+h},{x:b+u-h,y:M+$},{x:b+u,y:M+$},{x:b+u,y:M},{x:b,y:M}]),L=S.path(N,A);"handDrawn"!==e.look&&(C=k(C),L=k(L));let R=o.insert("g",":first-child");return R.insert(()=>C),R.insert(()=>L),R.attr("class","basic label-container outer-path"),D&&"handDrawn"!==e.look&&R.selectAll("path").attr("style",D),r&&"handDrawn"!==e.look&&R.selectAll("path").attr("style",r),g.attr("transform",`translate(${-(d.width/2)-h-(d.x-(d.left??0))}, ${-(d.height/2)+h-(d.y-(d.top??0))})`),x(e,R),e.intersect=function(t){return B.polygon(e,K,t)},o}async function tW(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await f(t,e,w(e)),h=e.padding??0,o="neo"===e.look?16:h,d="neo"===e.look?12:h,g=!0;(e.width||e.height)&&(g=!1,e.width=(e?.width??0)-2*o,e.height=(e?.height??0)-3*d);let y=Math.max(n.width,e?.width??0)+2*o,p=Math.max(n.height,e?.height??0)+3*d,u="neo"===e.look?p/4:p/8,b=p+(g?u/2:-u/2),k=-y/2,M=-b/2,{cssStyles:D}=e,S=$(k-10,M+b+10,k+y-10,M+b+10,u,.8),A=S?.[S.length-1],K=[{x:k-10,y:M+10},{x:k-10,y:M+b+10},...S,{x:k+y-10,y:A.y-10},{x:k+y,y:A.y-10},{x:k+y,y:A.y-20},{x:k+y+10,y:A.y-20},{x:k+y+10,y:M-10},{x:k+10,y:M-10},{x:k+10,y:M},{x:k,y:M},{x:k,y:M+10}],v=[{x:k,y:M+10},{x:k+y-10,y:M+10},{x:k+y-10,y:A.y-10},{x:k+y,y:A.y-10},{x:k+y,y:M},{x:k,y:M}],C=c.A.svg(i),N=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(N.roughness=0,N.fillStyle="solid");let L=m(K),R=C.path(L,N),F=m(v),P=C.path(F,N),G=i.insert(()=>R,":first-child");return G.insert(()=>P),G.attr("class","basic label-container outer-path"),D&&"handDrawn"!==e.look&&G.selectAll("path").attr("style",D),r&&"handDrawn"!==e.look&&G.selectAll("path").attr("style",r),G.attr("transform",`translate(0,${-u/2})`),s.attr("transform",`translate(${-(n.width/2)-10-(n.x-(n.left??0))}, ${-(n.height/2)+10-u/2-(n.y-(n.top??0))})`),x(e,G),e.intersect=function(t){return B.polygon(e,K,t)},i}async function tE(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r,e.useHtmlLabels||(0,s.E)((0,s.zj)())||(e.centerLabel=!0);let{shapeSvg:n,bbox:h,label:o}=await f(t,e,w(e)),d=Math.max(h.width+(e.padding??0)*2,e?.width??0),g=Math.max(h.height+(e.padding??0)*2,e?.height??0),{cssStyles:y}=e,p=c.A.svg(n),u=(0,l.Fr)(e,{fill:a.noteBkgColor,stroke:a.noteBorderColor});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let m=p.rectangle(-d/2,-g/2,d,g,u),$=n.insert(()=>m,":first-child");return $.attr("class","basic label-container outer-path"),o.attr("class","label noteLabel"),y&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",y),i&&"handDrawn"!==e.look&&$.selectAll("path").attr("style",i),o.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))}, ${-(h.height/2)-(h.y-(h.top??0))})`),x(e,$),e.intersect=function(t){return B.rect(e,t)},n}(0,o.K)(tX,"linedCylinder"),(0,o.K)(tI,"linedWaveEdgedRect"),(0,o.K)(tT,"multiRect"),(0,o.K)(tW,"multiWaveEdgedRectangle"),(0,o.K)(tE,"note");var tH=(0,o.K)((t,e,a)=>`M${t+a/2},${e} L${t+a},${e-a/2} L${t+a/2},${e-a} L${t},${e-a/2} Z`,"createDecisionBoxPathD");async function tj(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:n,bbox:s}=await f(t,e,w(e)),h=s.width+(e.padding??0)+(s.height+(e.padding??0)),o=[{x:h/2,y:0},{x:h,y:-h/2},{x:h/2,y:-h},{x:0,y:-h/2}],{cssStyles:d}=e;if("handDrawn"===e.look){let t=c.A.svg(n),r=(0,l.Fr)(e,{}),i=tH(0,0,h),s=t.path(i,r);a=n.insert(()=>s,":first-child").attr("transform",`translate(${-h/2+.5}, ${h/2})`),d&&a.attr("style",d)}else(a=I(n,h,h,o)).attr("transform",`translate(${-h/2+.5}, ${h/2})`);return i&&a.attr("style",i),x(e,a),e.calcIntersect=function(t,e){let a=t.width,l=B.polygon(t,[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}],e);return{x:l.x-.5,y:l.y-.5}},e.intersect=function(t){return this.calcIntersect(e,t)},n}async function tq(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?21:i??0,s="neo"===e.look?12:i??0,{shapeSvg:h,bbox:o,label:d}=await f(t,e,w(e)),g=o.width+("neo"===e.look?2*n:n),y=Math.max(o.height+("neo"===e.look?2*s:s),e.height??0),p=-Math.max(g,(e.width??0)-y/4)/2,u=-y/2,$=u/2,b=[{x:p+$,y:u},{x:p,y:0},{x:p+$,y:-u},{x:-p,y:-u},{x:-p,y:u}],{cssStyles:k}=e,M=c.A.svg(h),D=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(D.roughness=0,D.fillStyle="solid");let S=m(b),A=M.path(S,D),K=h.insert(()=>A,":first-child");return K.attr("class","basic label-container outer-path"),k&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",k),r&&"handDrawn"!==e.look&&K.selectAll("path").attr("style",r),K.attr("transform",`translate(${-$/2},0)`),d.attr("transform",`translate(${-$/2-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),x(e,K),e.intersect=function(t){return B.polygon(e,b,t)},h}async function t_(t,e){let a,r,i,{labelStyles:n,nodeStyles:o}=(0,l.GX)(e);e.labelStyle=n,a=e.cssClasses?"node "+e.cssClasses:"node default";let g=t.insert("g").attr("class",a).attr("id",e.domId||e.id),y=g.insert("g"),p=g.insert("g").attr("class","label").attr("style",o),f=e.description,u=e.label,w=await S(p,u,e.labelStyle,!0,!0),m={width:0,height:0};if((0,s.E)((0,s.D7)())){let t=w.children[0],e=(0,d.Ltv)(w);m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}h.R.info("Text 2",f);let $=f||[],b=w.getBBox(),k=await S(p,Array.isArray($)?$.join("
"):$,e.labelStyle,!0,!0),M=k.children[0],A=(0,d.Ltv)(k);m=M.getBoundingClientRect(),A.attr("width",m.width),A.attr("height",m.height);let K=(e.padding||0)/2;(0,d.Ltv)(k).attr("transform","translate( "+(m.width>b.width?0:(b.width-m.width)/2)+", "+(b.height+K+5)+")"),(0,d.Ltv)(w).attr("transform","translate( "+(m.width(h.R.debug("Rough node insert CXC",n),s),":first-child"),r=g.insert(()=>(h.R.debug("Rough node insert CXC",n),n),":first-child")}else r=y.insert("rect",":first-child"),i=y.insert("line"),r.attr("class","outer title-state").attr("style",o).attr("x",-m.width/2-K).attr("y",-m.height/2-K).attr("width",m.width+(e.padding||0)).attr("height",m.height+(e.padding||0)),i.attr("class","divider").attr("x1",-m.width/2-K).attr("x2",m.width/2+K).attr("y1",-m.height/2-K+b.height+K).attr("y2",-m.height/2-K+b.height+K);return x(e,r),e.intersect=function(t){return B.rect(e,t)},g}async function tz(t,e,{config:{themeVariables:a}}){let l=a?.radius??5,r={rx:l,ry:l,classes:"",labelPaddingX:(e?.padding??0)*1,labelPaddingY:(e?.padding??0)*1};return tg(t,e,r)}async function tZ(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,s="neo"===e.look?12:e.padding??0,{shapeSvg:h,bbox:o,label:d}=await f(t,e,w(e)),g=(e?.width??o.width)+2*i+("neo"===e.look?8:16),y=(e?.height??o.height)+2*s,p=g-8,u=8-g/2,m=-y/2,{cssStyles:$}=e,b=c.A.svg(h),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=b.polygon([{x:u,y:m},{x:u+p,y:m},{x:u+p,y:m+y},{x:u-8,y:m+y},{x:u-8,y:m},{x:u,y:m},{x:u,y:m+y}].map(t=>[t.x,t.y]),k),D=h.insert(()=>M,":first-child");return D.attr("class","basic label-container outer-path").attr("style",(0,n.KL)($)),r&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",r),$&&"handDrawn"!==e.look&&D.selectAll("path").attr("style",r),d.attr("transform",`translate(${4-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),x(e,D),e.intersect=function(t){return B.rect(e,t)},h}async function tO(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*n,10),e.height=Math.max((e?.height??0)/1.5-2*s,10));let{shapeSvg:h,bbox:o,label:d}=await f(t,e,w(e)),g=(e?.width?e?.width:o.width)+2*n,y=((e?.height?e?.height:o.height)+2*s)*1.5/1.5,p=-g/2,u=-y/2,{cssStyles:$}=e,b=c.A.svg(h),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=[{x:p,y:u},{x:p,y:u+y},{x:p+g,y:u+y},{x:p+g,y:u-y/2}],D=m(M),S=b.path(D,k),A=h.insert(()=>S,":first-child");return A.attr("class","basic label-container outer-path"),$&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",$),r&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",r),A.attr("transform",`translate(0, ${y/4})`),d.attr("transform",`translate(${-g/2+(e.padding??0)-(o.x-(o.left??0))}, ${-y/4+(e.padding??0)-(o.y-(o.top??0))})`),x(e,A),e.intersect=function(t){return B.polygon(e,M,t)},h}async function tV(t,e){let a=e.padding??0,l="neo"===e.look?16:2*a,r="neo"===e.look?12:a,i={rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??l,labelPaddingY:r};return tg(t,e,i)}async function tY(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?20:i,s="neo"===e.look?12:i,{shapeSvg:h,bbox:o}=await f(t,e,w(e)),d=o.height+("neo"===e.look?2*s:s),g=o.width+d/4+("neo"===e.look?2*n:n),y=d/2,{cssStyles:p}=e,u=c.A.svg(h),$=(0,l.Fr)(e,{});"handDrawn"!==e.look&&($.roughness=0,$.fillStyle="solid");let k=[{x:-g/2+y,y:-d/2},{x:g/2-y,y:-d/2},...b(-g/2+y,0,y,50,90,270),{x:g/2-y,y:d/2},...b(g/2-y,0,y,50,270,450)],M=m(k),D=u.path(M,$),S=h.insert(()=>D,":first-child");return S.attr("class","basic label-container outer-path"),p&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",p),r&&"handDrawn"!==e.look&&S.selectChildren("path").attr("style",r),x(e,S),e.intersect=function(t){return B.polygon(e,k,t)},h}async function tU(t,e){let a={rx:"neo"===e.look?3:5,ry:"neo"===e.look?3:5,classes:"flowchart-node"};return tg(t,e,a)}function tJ(t,e,{config:{themeVariables:a}}){let{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{cssStyles:n}=e,{lineColor:s,stateBorder:h,nodeBorder:o,nodeShadow:d}=a;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);let g=t.insert("g").attr("class","node default").attr("id",e.domId??e.id),y=c.A.svg(g),p=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");let f=y.circle(0,0,e.width,{...p,stroke:s,strokeWidth:2}),u=h??o,w=(e.width??0)*5/14,m=y.circle(0,0,w,{...p,fill:u,stroke:u,strokeWidth:2,fillStyle:"solid"}),$=g.insert(()=>f,":first-child");if($.insert(()=>m),"handDrawn"!==e.look&&$.attr("class","outer-path"),n&&$.selectAll("path").attr("style",n),i&&$.selectAll("path").attr("style",i),e.width<25&&d&&"handDrawn"!==e.look){let e=t.node()?.ownerSVGElement?.id??"",a=e?`${e}-drop-shadow-small`:"drop-shadow-small";$.attr("style",`filter:url(#${a})`)}return x(e,$),e.intersect=function(t){return B.circle(e,(e.width??0)/2,t)},g}function tQ(t,e,{config:{themeVariables:a}}){let r,{lineColor:i,nodeShadow:n}=a;(e.width||e.height)&&((e.width??0)<14&&(e.width=14),(e.height??0)<14&&(e.height=14)),e.width||(e.width=14),e.height||(e.height=14);let s=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);if("handDrawn"===e.look){let t=c.A.svg(s).circle(0,0,e.width,(0,l.ue)(i));(r=s.insert(()=>t)).attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14)}else(r=s.insert("circle",":first-child")).attr("class","state-start").attr("r",(e.width??7)/2).attr("width",e.width??14).attr("height",e.height??14);if(e.width<25&&n&&"handDrawn"!==e.look){let e=t.node()?.ownerSVGElement?.id??"",a=e?`${e}-drop-shadow-small`:"drop-shadow-small";r.attr("style",`filter:url(#${a})`)}return x(e,r),e.intersect=function(t){return B.circle(e,(e.width??7)/2,t)},s}async function t0(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e?.padding??8,s="neo"===e.look?28:i,h="neo"===e.look?12:i,{shapeSvg:o,bbox:d}=await f(t,e,w(e)),g=Math.max(d.width+16+s,e.width??0),y=Math.max(d.height+h,e.height??0),p=g-16,u=-g/2,m=-y/2,$=[{x:0,y:0},{x:p,y:0},{x:p,y:-y},{x:0,y:-y},{x:0,y:0},{x:-8,y:0},{x:p+8,y:0},{x:p+8,y:-y},{x:-8,y:-y},{x:-8,y:0}];if("handDrawn"===e.look){let t=c.A.svg(o),a=(0,l.Fr)(e,{}),r=t.rectangle(u,m,p+16,y,a),i=t.line(u+8,m,u+8,m+y,a),s=t.line(u+8+p,m,u+8+p,m+y,a);o.insert(()=>i,":first-child"),o.insert(()=>s,":first-child");let h=o.insert(()=>r,":first-child"),{cssStyles:d}=e;h.attr("class","basic label-container").attr("style",(0,n.KL)(d)),x(e,h)}else{let t=I(o,p,y,$);r&&t.attr("style",r),x(e,t)}return e.intersect=function(t){return B.polygon(e,$,t)},o}async function t2(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;(e.width||e.height)&&(e.height=Math.max((e?.height??0)-2*s,10),e.width=Math.max((e?.width??0)-2*n-.2*(e.height+2*s),10));let{shapeSvg:h,bbox:o}=await f(t,e,w(e)),d=(e?.height?e?.height:o.height)+2*s,g=.2*d,y=(e?.width?e?.width:o.width)+2*n+g-g,p=-y/2,u=-d/2,{cssStyles:$}=e,b=c.A.svg(h),k=(0,l.Fr)(e,{}),M=[{x:p-g/2,y:u},{x:p+y+g/2,y:u},{x:p+y+g/2,y:u+d},{x:p-g/2,y:u+d}];"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let D=m(M),S=b.path(D,k),A=m([{x:p+y-g/2,y:u+d},{x:p+y+g/2,y:u+d},{x:p+y+g/2,y:u+d-.2*d}]),K=b.path(A,{...k,fillStyle:"solid"}),v=h.insert(()=>K,":first-child");return v.insert(()=>S,":first-child"),v.attr("class","basic label-container outer-path"),$&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",$),r&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",r),x(e,v),e.intersect=function(t){return B.polygon(e,M,t)},h}async function t1(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,label:s}=await f(t,e,w(e)),h=Math.max(n.width+(e.padding??0)*2,e?.width??0),o=Math.max(n.height+(e.padding??0)*2,e?.height??0),d=o/8,g=.2*h,y=.2*o,p=o+d,{cssStyles:u}=e,b=c.A.svg(i),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=[{x:-h/2-h/2*.1,y:p/2},...$(-h/2-h/2*.1,p/2,h/2+h/2*.1,p/2,d,.8),{x:h/2+h/2*.1,y:-p/2},{x:-h/2-h/2*.1,y:-p/2}],D=-h/2+h/2*.1,S=-p/2-.4*y,A=[{x:D+h-g,y:(S+o)*1.3},{x:D+h,y:S+o-y},{x:D+h,y:(S+o)*.9},...$(D+h,(S+o)*1.25,D+h-g,(S+o)*1.3,-(.02*o),.5)],K=m(M),v=b.path(K,k),C=m(A),N=b.path(C,{...k,fillStyle:"solid"}),L=i.insert(()=>N,":first-child");return L.insert(()=>v,":first-child"),L.attr("class","basic label-container outer-path"),u&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",u),r&&"handDrawn"!==e.look&&L.selectAll("path").attr("style",r),L.attr("transform",`translate(0,${-d/2})`),s.attr("transform",`translate(${-h/2+(e.padding??0)-(n.x-(n.left??0))},${-o/2+(e.padding??0)-d/2-(n.y-(n.top??0))})`),x(e,L),e.intersect=function(t){return B.polygon(e,M,t)},i}async function t5(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n}=await f(t,e,w(e)),s=Math.max(n.width+(e.padding??0),e?.width||0),h=Math.max(n.height+(e.padding??0),e?.height||0),o=i.insert("rect",":first-child");return o.attr("class","text").attr("style",r).attr("rx",0).attr("ry",0).attr("x",-s/2).attr("y",-h/2).attr("width",s).attr("height",h),x(e,o),e.intersect=function(t){return B.rect(e,t)},i}(0,o.K)(tj,"question"),(0,o.K)(tq,"rect_left_inv_arrow"),(0,o.K)(t_,"rectWithTitle"),(0,o.K)(tz,"roundedRect"),(0,o.K)(tZ,"shadedProcess"),(0,o.K)(tO,"slopedRect"),(0,o.K)(tV,"squareRect"),(0,o.K)(tY,"stadium"),(0,o.K)(tU,"state"),(0,o.K)(tJ,"stateEnd"),(0,o.K)(tQ,"stateStart"),(0,o.K)(t0,"subroutine"),(0,o.K)(t2,"taggedRect"),(0,o.K)(t1,"taggedWaveEdgedRectangle"),(0,o.K)(t5,"text");var t8=(0,o.K)((t,e,a,l,r,i)=>`M${t},${e} - a${r},${i} 0,0,1 0,${-l} - l${a},0 - a${r},${i} 0,0,1 0,${l} - M${a},${-l} - a${r},${i} 0,0,0 0,${l} - l${-a},0`,"createCylinderPathD"),t4=(0,o.K)((t,e,a,l,r,i)=>`M${t},${e} M${t+a},${e} a${r},${i} 0,0,0 0,${-l} l${-a},0 a${r},${i} 0,0,0 0,${l} l${a},0`,"createOuterCylinderPathD"),t3=(0,o.K)((t,e,a,l,r,i)=>`M${t+a/2},${-l/2} a${r},${i} 0,0,0 0,${l}`,"createInnerCylinderPathD");async function t6(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let s=e.padding??0,h="neo"===e.look?12:s/2,o=e.height??0;e.height&&(e.height=e.height-h,e.height<5&&(e.height=5)),e.width&&(e.width=e.width-h-o/2/(2.5+o/50)*3,e.width<10&&(e.width=10));let{shapeSvg:d,bbox:g,label:y}=await f(t,e,w(e)),p=Math.max(e.height??0,g.height)+h,u=p/2,m=u/(2.5+p/50),$=Math.max(e.width??0,g.width)+m+h,{cssStyles:b}=e;if("handDrawn"===e.look){let t=c.A.svg(d),r=t4(0,0,$,p,m,u),i=t3(0,0,$,p,m,u),n=t.path(r,(0,l.Fr)(e,{})),s=t.path(i,(0,l.Fr)(e,{fill:"none"}));a=d.insert(()=>s,":first-child"),(a=d.insert(()=>n,":first-child")).attr("class","basic label-container"),b&&a.attr("style",b)}else{let t=t8(0,0,$,p,m,u);(a=d.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,n.KL)(b)).attr("style",i)).attr("class","basic label-container outer-path"),b&&a.selectAll("path").attr("style",b),i&&a.selectAll("path").attr("style",i)}return a.attr("label-offset-x",m),a.attr("transform",`translate(${-$/2}, ${p/2} )`),y.attr("transform",`translate(${-(g.width/2)-m-(g.x-(g.left??0))}, ${-(g.height/2)-(g.y-(g.top??0))})`),x(e,a),e.intersect=function(t){let a=B.rect(e,t),l=a.y-(e.y??0);if(0!=u&&(Math.abs(l)<(e.height??0)/2||Math.abs(l)==(e.height??0)/2&&Math.abs(a.x-(e.x??0))>(e.width??0)/2-m)){let r=m*m*(1-l*l/(u*u));0!=r&&(r=Math.sqrt(Math.abs(r))),r=m-r,t.x-(e.x??0)>0&&(r=-r),a.x+=r}return a},d}async function t7(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n=e.padding??0,s=(e.look,n),h="neo"===e.look?2*n:n,{shapeSvg:o,bbox:d}=await f(t,e,w(e)),g=Math.max(d.height+s,e.height??0),y=Math.max(d.width+h,(e.width??0)-g),p=[{x:-3*g/6,y:0},{x:y+3*g/6,y:0},{x:y,y:-g},{x:0,y:-g}],{cssStyles:u}=e;if("handDrawn"===e.look){let t=c.A.svg(o),r=(0,l.Fr)(e,{}),i=m(p),n=t.path(i,r);a=o.insert(()=>n,":first-child").attr("transform",`translate(${-y/2}, ${g/2})`),u&&a.attr("style",u)}else a=I(o,y,g,p);return i&&a.attr("style",i),e.width=y,e.height=g,x(e,a),e.intersect=function(t){return B.polygon(e,p,t)},o}async function t9(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i;(e.width||e.height)&&(e.height=(e.height??0)-2*s,e.height<5&&(e.height=5),e.width=(e.width??0)-2*n,e.width<15&&(e.width=15));let{shapeSvg:h,bbox:o}=await f(t,e,w(e)),d=(e?.width?e?.width:o.width)+2*n,g=(e?.height?e?.height:o.height)+2*s,{cssStyles:y}=e,p=c.A.svg(h),u=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(u.roughness=0,u.fillStyle="solid");let $=[{x:-d/2*.8,y:-g/2},{x:d/2*.8,y:-g/2},{x:d/2,y:-g/2*.6},{x:d/2,y:g/2},{x:-d/2,y:g/2},{x:-d/2,y:-g/2*.6}],b=m($),k=p.path(b,u),M=h.insert(()=>k,":first-child");return M.attr("class","basic label-container outer-path"),y&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",y),r&&"handDrawn"!==e.look&&M.selectChildren("path").attr("style",r),x(e,M),e.intersect=function(t){return B.polygon(e,$,t)},h}async function et(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?2*i:i;(e.width||e.height)&&(e.width=((e?.width??0)-n)/2,e.width<10&&(e.width=10),e.height=e?.height??0,e.height<10&&(e.height=10));let{shapeSvg:o,bbox:d,label:g}=await f(t,e,w(e)),y=(0,s._3)((0,s.D7)().flowchart?.htmlLabels),p=(e?.width?e?.width:d.width)+n,u=e?.height?e?.height:p+d.height,$=[{x:0,y:0},{x:u,y:0},{x:u/2,y:-u}],{cssStyles:b}=e,k=c.A.svg(o),M=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(M.roughness=0,M.fillStyle="solid");let D=m($),S=k.path(D,M),A=o.insert(()=>S,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`).attr("class","outer-path");return b&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",b),r&&"handDrawn"!==e.look&&A.selectChildren("path").attr("style",r),e.width=p,e.height=u,x(e,A),g.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${u/2-(d.height+(e.padding??0)/(y?2:1)-(d.y-(d.top??0)))})`),e.intersect=function(t){return h.R.info("Triangle intersect",e,$,t),B.polygon(e,$,t)},o}async function ee(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?12:i,h=!0;(e.width||e.height)&&(h=!1,e.width=(e?.width??0)-2*n,e.width<10&&(e.width=10),e.height=(e?.height??0)-2*s,e.height<10&&(e.height=10));let{shapeSvg:o,bbox:d,label:g}=await f(t,e,w(e)),y=(e?.width?e?.width:d.width)+(n??0)*2,p=(e?.height?e?.height:d.height)+(s??0)*2,u="neo"===e.look?p/4:p/8,b=p+(h?u:-u),{cssStyles:k}=e,M=14-y,D=M>0?M/2:0,S=c.A.svg(o),A=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let K=[{x:-y/2-D,y:b/2},...$(-y/2-D,b/2,y/2+D,b/2,u,.8),{x:y/2+D,y:-b/2},{x:-y/2-D,y:-b/2}],v=m(K),C=S.path(v,A),N=o.insert(()=>C,":first-child");return N.attr("class","basic label-container outer-path"),k&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",k),r&&"handDrawn"!==e.look&&N.selectAll("path").attr("style",r),N.attr("transform",`translate(0,${-u/2})`),g.attr("transform",`translate(${-y/2+(e.padding??0)-(d.x-(d.left??0))},${-p/2+(e.padding??0)-u-(d.y-(d.top??0))})`),x(e,N),e.intersect=function(t){return B.polygon(e,K,t)},o}async function ea(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i=e.padding??0,n="neo"===e.look?16:i,s="neo"===e.look?20:i;if(e.width||e.height){e.width=e?.width??0,e.width<20&&(e.width=20),e.height=e?.height??0,e.height<10&&(e.height=10);let t=Math.min(.2*e.height,e.height/4);e.height=Math.ceil(e.height-s-20/9*t),e.width=e.width-2*n}let{shapeSvg:h,bbox:o}=await f(t,e,w(e)),d=(e?.width?e?.width:o.width)+2*n,g=(e?.height?e?.height:o.height)+s,y=g/8,p=g+2*y,{cssStyles:u}=e,b=c.A.svg(h),k=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let M=[{x:-d/2,y:p/2},...$(-d/2,p/2,d/2,p/2,y,1),{x:d/2,y:-p/2},...$(d/2,-p/2,-d/2,-p/2,y,-1)],D=m(M),S=b.path(D,k),A=h.insert(()=>S,":first-child");return A.attr("class","basic label-container"),u&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",u),r&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",r),x(e,A),e.intersect=function(t){return B.polygon(e,M,t)},h}async function el(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let i="neo"===e.look?16:e.padding??0,n="neo"===e.look?12:e.padding??0;(e.width||e.height)&&(e.width=Math.max((e?.width??0)-2*i-10,10),e.height=Math.max((e?.height??0)-2*n-10,10));let{shapeSvg:s,bbox:h,label:o}=await f(t,e,w(e)),d=(e?.width?e?.width:h.width)+2*i+10,g=(e?.height?e?.height:h.height)+2*n+10,y=d-10,p=g-10,u=-y/2,m=-p/2,{cssStyles:$}=e,b=c.A.svg(s),k=(0,l.Fr)(e,{}),M=[{x:u-10,y:m-10},{x:u-10,y:m+p},{x:u+y,y:m+p},{x:u+y,y:m-10}],D=`M${u-10},${m-10} L${u+y},${m-10} L${u+y},${m+p} L${u-10},${m+p} L${u-10},${m-10} - M${u-10},${m} L${u+y},${m} - M${u},${m-10} L${u},${m+p}`;"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");let S=b.path(D,k),A=s.insert(()=>S,":first-child");return A.attr("transform","translate(5, 5)"),A.attr("class","basic label-container outer-path"),$&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",$),r&&"handDrawn"!==e.look&&A.selectAll("path").attr("style",r),o.attr("transform",`translate(${-(h.width/2)+5-(h.x-(h.left??0))}, ${-(h.height/2)+5-(h.y-(h.top??0))})`),x(e,A),e.intersect=function(t){return B.polygon(e,M,t)},s}(0,o.K)(t6,"tiltedCylinder"),(0,o.K)(t7,"trapezoid"),(0,o.K)(t9,"trapezoidalPentagon"),(0,o.K)(et,"triangle"),(0,o.K)(ee,"waveEdgedRectangle"),(0,o.K)(ea,"waveRectangle"),(0,o.K)(el,"windowPane");var er=new Set(["redux-color","redux-dark-color"]),ei=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function en(t,e){e.alias&&(e.label=e.alias);let{theme:a,themeVariables:r}=(0,s.zj)(),{rowEven:i,rowOdd:h,nodeBorder:o,borderColorArray:g}=r;if("handDrawn"===e.look){let{themeVariables:a}=(0,s.zj)(),{background:l}=a,r={...e,id:e.id+"-background",domId:(e.domId||e.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${l}`]};await en(t,r)}let y=(0,s.zj)();e.useHtmlLabels=y.htmlLabels;let p=y.er?.diagramPadding??10,f=y.er?.entityPadding??6,{cssStyles:u}=e,{labelStyles:m,nodeStyles:$}=(0,l.GX)(e);if(0===e.attributes.length&&e.label){let l={rx:0,ry:0,labelPaddingX:p,labelPaddingY:1.5*p,classes:""};(0,n.Un)(e.label,y)+2*l.labelPaddingX0){let t=M.width+2*p-(K+v+C+N);K+=t/F,v+=t/F,C>0&&(C+=t/F),N>0&&(N+=t/F)}let G=K+v+C+N,X=c.A.svg(k),I=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(I.roughness=0,I.fillStyle="solid");let T=0;A.length>0&&(T=A.reduce((t,e)=>t+(e?.rowHeight??0),0));let W=Math.max(P.width+2*p,e?.width||0,G),E=Math.max((T??0)+M.height,e?.height||0),H=-W/2,j=-E/2;if(k.selectAll("g:not(:first-child)").each((t,e,a)=>{let l=(0,d.Ltv)(a[e]),r=l.attr("transform"),i=0,n=0;if(r){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(r);t&&(i=parseFloat(t[1]),n=parseFloat(t[2]),l.attr("class").includes("attribute-name")?i+=K:l.attr("class").includes("attribute-keys")?i+=K+v:l.attr("class").includes("attribute-comment")&&(i+=K+v+C))}l.attr("transform",`translate(${H+p/2+i}, ${n+j+M.height+f/2})`)}),k.select(".name").attr("transform","translate("+-M.width/2+", "+(j+f/2)+")"),null!=a&&er.has(a)){let t=e.colorIndex??0;k.attr("data-color-id",`color-${t%g.length}`)}let q=X.rectangle(H,j,W,E,I),_=k.insert(()=>q,":first-child").attr("class","outer-path").attr("style",u.join(""));for(let[t,e]of(S.push(0),A.entries())){let a=(t+1)%2==0&&0!==e.yOffset,l=X.rectangle(H,M.height+j+e?.yOffset,W,e?.rowHeight,{...I,fill:a?i:h,stroke:o});k.insert(()=>l,"g.label").attr("style",u.join("")).attr("class",`row-rect-${a?"even":"odd"}`)}let z=eh(H,M.height+j,W+H,M.height+j,1e-4),Z=X.polygon(z.map(t=>[t.x,t.y]),I);if(k.insert(()=>Z).attr("class","divider"),z=eh(K+H,M.height+j,K+H,E+j,1e-4),Z=X.polygon(z.map(t=>[t.x,t.y]),I),k.insert(()=>Z).attr("class","divider"),L){let t=K+v+H;z=eh(t,M.height+j,t,E+j,1e-4),Z=X.polygon(z.map(t=>[t.x,t.y]),I),k.insert(()=>Z).attr("class","divider")}if(R){let t=K+v+C+H;z=eh(t,M.height+j,t,E+j,1e-4),Z=X.polygon(z.map(t=>[t.x,t.y]),I),k.insert(()=>Z).attr("class","divider")}for(let t of S){let e=M.height+j+t;z=eh(H,e,W+H,e,1e-4),Z=X.polygon(z.map(t=>[t.x,t.y]),I),k.insert(()=>Z).attr("class","divider")}if(x(e,_),$&&"handDrawn"!==e.look)if(null!=a&&ei.has(a))k.selectAll("path").attr("style",$);else{let t=$.split(";"),e=t?.filter(t=>t.includes("stroke"))?.map(t=>`${t}`).join("; ");k.selectAll("path").attr("style",e??""),k.selectAll(".row-rect-even path").attr("style",$)}return e.intersect=function(t){return B.rect(e,t)},k}async function es(t,e,a,l=0,i=0,h=[],o=""){let c=t.insert("g").attr("class",`label ${h.join(" ")}`).attr("transform",`translate(${l}, ${i})`).attr("style",o);e!==(0,s.QO)(e)&&(e=(e=(0,s.QO)(e)).replaceAll("<","<").replaceAll(">",">"));let g=c.node().appendChild(await (0,r.GZ)(c,e,{width:(0,n.Un)(e,a)+100,style:o,useHtmlLabels:a.htmlLabels},a));if(e.includes("<")||e.includes(">")){let t=g.children[0];for(t.textContent=t.textContent.replaceAll("<","<").replaceAll(">",">");t.childNodes[0];)(t=t.childNodes[0]).textContent=t.textContent.replaceAll("<","<").replaceAll(">",">")}let y=g.getBBox();if((0,s._3)(a.htmlLabels)){let t=g.children[0];t.style.textAlign="start";let e=(0,d.Ltv)(g);y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}return y}function eh(t,e,a,l,r){return t===a?[{x:t-r/2,y:e},{x:t+r/2,y:e},{x:a+r/2,y:l},{x:a-r/2,y:l}]:[{x:t,y:e-r/2},{x:t,y:e+r/2},{x:a,y:l+r/2},{x:a,y:l-r/2}]}async function eo(t,e,a,l,r=a.class.padding??12){let i=3*!l,n=t.insert("g").attr("class",w(e)).attr("id",e.domId||e.id),s=null,h=null,o=null,d=null,c=0,g=0,y=0;if(s=n.insert("g").attr("class","annotation-group text"),e.annotations.length>0){let t=e.annotations[0];await ed(s,{text:`\xab${t}\xbb`},0),c=s.node().getBBox().height}h=n.insert("g").attr("class","label-group text"),await ed(h,e,0,["font-weight: bolder"]);let p=h.node().getBBox();g=p.height,o=n.insert("g").attr("class","members-group text");let f=0;for(let t of e.members){let e=await ed(o,t,f,[t.parseClassifier()]);f+=e+i}(y=o.node().getBBox().height)<=0&&(y=r/2),d=n.insert("g").attr("class","methods-group text");let u=0;for(let t of e.methods){let e=await ed(d,t,u,[t.parseClassifier()]);u+=e+i}let x=n.node().getBBox();if(null!==s){let t=s.node().getBBox();s.attr("transform",`translate(${-t.width/2})`)}return h.attr("transform",`translate(${-p.width/2}, ${c})`),x=n.node().getBBox(),o.attr("transform",`translate(0, ${c+g+2*r})`),x=n.node().getBBox(),d.attr("transform",`translate(0, ${c+g+(y?y+4*r:2*r)})`),x=n.node().getBBox(),{shapeSvg:n,bbox:x}}async function ed(t,e,a,l=[]){let i,h=t.insert("g").attr("class","label").attr("style",l.join("; ")),o=(0,s.zj)(),c="useHtmlLabels"in e?e.useHtmlLabels:(0,s._3)(o.htmlLabels)??!0,y="";y="text"in e?e.text:e.label,!c&&y.startsWith("\\")&&(y=y.substring(1)),(0,s.Wi)(y)&&(c=!0);let p=await (0,r.GZ)(h,(0,s.oB)((0,n.Sm)(y)),{width:(0,n.Un)(y,o)+50,classes:"markdown-node-label",useHtmlLabels:c},o),f=1;if(c){let t=p.children[0],e=(0,d.Ltv)(p);f=t.innerHTML.split("
").length,t.innerHTML.includes("")&&(f+=t.innerHTML.split("").length-1),await g(t),i=t.getBoundingClientRect(),e.attr("width",i.width),e.attr("height",i.height)}else{l.includes("font-weight: bolder")&&(0,d.Ltv)(p).selectAll("tspan").attr("font-weight",""),f=p.children.length;let t=p.children[0];(""===p.textContent||p.textContent.includes(">"))&&(t.textContent=y[0]+y.substring(1).replaceAll(">",">").replaceAll("<","<").trim()," "===y[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))),"undefined"===t.textContent&&(t.textContent=""),i=p.getBBox()}return h.attr("transform","translate(0,"+(-i.height/(2*f)+a)+")"),i.height}async function ec(t,e){let a=(0,s.D7)(),{themeVariables:r}=a,{useGradient:i}=r,n=a.class.padding??12,h=e.useHtmlLabels??(0,s._3)(a.htmlLabels)??!0;e.annotations=e.annotations??[],e.members=e.members??[],e.methods=e.methods??[];let{shapeSvg:o,bbox:g}=await eo(t,e,a,h,n),{labelStyles:y,nodeStyles:p}=(0,l.GX)(e);e.labelStyle=y,e.cssStyles=e.styles||"";let f=e.styles?.join(";")||p||"";e.cssStyles||(e.cssStyles=f.replaceAll("!important","").split(";"));let u=0===e.members.length&&0===e.methods.length&&!a.class?.hideEmptyMembersBox,w=c.A.svg(o),m=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");let $=Math.max(e.width??0,g.width),b=Math.max(e.height??0,g.height),k=(e.height??0)>g.height;0===e.members.length&&0===e.methods.length?b+=n:e.members.length>0&&0===e.methods.length&&(b+=2*n);let M=-$/2,D=-b/2,S=u?2*n:0===e.members.length&&0===e.methods.length?-n:0;k&&(S=2*n);let A=w.rectangle(M-n,D-n-(u?n:0===e.members.length&&0===e.methods.length?-n/2:0),$+2*n,b+2*n+S,m),K=o.insert(()=>A,":first-child");K.attr("class","basic label-container outer-path");let v=K.node().getBBox(),C=o.select(".annotation-group").node().getBBox().height-(u?n/2:0)||0,N=o.select(".label-group").node().getBBox().height-(u?n/2:0)||0,L=o.select(".members-group").node().getBBox().height-(u?n/2:0)||0,R=(C+N+D+n-(D-n-(u?n:0===e.members.length&&0===e.methods.length?-n/2:0)))/2;if(o.selectAll(".text").each((t,l,r)=>{let i=(0,d.Ltv)(r[l]),s=i.attr("transform"),c=0;if(s){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(s);t&&(c=parseFloat(t[2]))}let g=c+D+n-(u?n:0===e.members.length&&0===e.methods.length?-n/2:0);if(i.attr("class").includes("methods-group")){let t=Math.max(L,n/2);g=k?Math.max(R,C+N+t+D+2*n+n)+2*n:C+N+t+D+4*n+n}0===e.members.length&&0===e.methods.length&&a.class?.hideEmptyMembersBox&&(g=e.annotations.length>0?c-n:c),h||(g-=4);let y=M;(i.attr("class").includes("label-group")||i.attr("class").includes("annotation-group"))&&(y=-i.node()?.getBBox().width/2||0,o.selectAll("text").each(function(t,e,a){"middle"===window.getComputedStyle(a[e]).textAnchor&&(y=0)})),i.attr("transform",`translate(${y}, ${g})`)}),e.members.length>0||e.methods.length>0||u){let t=C+N+D+n,a=w.line(v.x,t,v.x+v.width,t+.001,m);o.insert(()=>a).attr("class",`divider${"neo"===e.look&&!i?" neo-line":""}`).attr("style",f)}if(u||e.members.length>0||e.methods.length>0){let t=C+N+L+D+2*n+n,a=w.line(v.x,k?Math.max(R,t):t,v.x+v.width,(k?Math.max(R,t):t)+.001,m);o.insert(()=>a).attr("class",`divider${"neo"===e.look&&!i?" neo-line":""}`).attr("style",f)}if("handDrawn"!==e.look&&o.selectAll("path").attr("style",f),K.select(":nth-child(2)").attr("style",f),o.selectAll(".divider").select("path").attr("style",f),e.labelStyle?o.selectAll("span").attr("style",e.labelStyle):o.selectAll("span").attr("style",f),!h){let t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(f);if(e){let t=e[0].replace("color","fill");o.selectAll("tspan").attr("style",t)}else if(y){let e=t.exec(y);if(e){let t=e[0].replace("color","fill");o.selectAll("tspan").attr("style",t)}}}return x(e,K),e.intersect=function(t){return B.rect(e,t)},o}async function eg(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let n="verifyMethod"in e,h=w(e),o=(0,s.D7)(),{themeVariables:g}=o,{borderColorArray:y,requirementEdgeLabelBackground:p}=g,f="elk"===o.layout?"start":"center",u=t.insert("g").attr("class",h).attr("id",e.domId??e.id),m=a=n?await ey(u,`<<${e.type}>>`,0,e.labelStyle):await ey(u,"<<Element>>",0,e.labelStyle),$=await ey(u,e.name,m,e.labelStyle+"; font-weight: bold;");if(m+=$+20,n){let t=await ey(u,`${e.requirementId?`ID: ${e.requirementId}`:""}`,m,e.labelStyle,f);m+=t;let a=await ey(u,`${e.text?`Text: ${e.text}`:""}`,m,e.labelStyle,f);m+=a;let l=await ey(u,`${e.risk?`Risk: ${e.risk}`:""}`,m,e.labelStyle,f);m+=l,await ey(u,`${e.verifyMethod?`Verification: ${e.verifyMethod}`:""}`,m,e.labelStyle,f)}else{let t=await ey(u,`${e.type?`Type: ${e.type}`:""}`,m,e.labelStyle,f);m+=t,await ey(u,`${e.docRef?`Doc Ref: ${e.docRef}`:""}`,m,e.labelStyle,f)}let b=(u.node()?.getBBox().width??200)+20,k=(u.node()?.getBBox().height??200)+20,M=-b/2,D=-k/2,S=c.A.svg(u),A=(0,l.Fr)(e,{});"handDrawn"!==e.look&&(A.roughness=0,A.fillStyle="solid");let K=S.rectangle(M,D,b,k,A),v=u.insert(()=>K,":first-child");if(v.attr("class","basic label-container outer-path").attr("style",i),y?.length){let t=e.colorIndex??0;u.attr("data-color-id",`color-${t%y.length}`)}if(u.selectAll(".label").each((t,e,a)=>{let l=(0,d.Ltv)(a[e]),r=l.attr("transform"),i=0,n=0;if(r){let t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(r);t&&(i=parseFloat(t[1]),n=parseFloat(t[2]))}let s=n-k/2,h=M+10;(0===e||1===e)&&(h=i),l.attr("transform",`translate(${h}, ${s+20})`)}),m>a+$+20){let t,l=D+a+$+20;if("neo"===e.look){let e=[[M,l],[M+b,l],[M+b,l+.001],[M,l+.001]];t=S.polygon(e,A)}else t=S.line(M,l,M+b,l,A);u.insert(()=>t).attr("class","divider")}return x(e,v),e.intersect=function(t){return B.rect(e,t)},i&&"handDrawn"!==e.look&&(p||y?.length)&&u.selectAll("path").attr("style",i),u}async function ey(t,e,a,l="",i="center"){let h;if(""===e)return 0;let o=t.insert("g").attr("class","label").attr("style",l),c=(0,s.D7)(),g=c.htmlLabels??!0,y=await (0,r.GZ)(o,(0,s.oB)((0,n.Sm)(e)),{width:(0,n.Un)(e,c)+50,classes:"markdown-node-label",useHtmlLabels:g,style:l},c);if(g){let t=y.children[0],e=(0,d.Ltv)(y);"start"===i&&(0,d.Ltv)(t).style("text-align","left"),h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}else{let t=y.children[0];for(let e of t.children)l&&e.setAttribute("style",l);if("start"===i)for(let e of(t.setAttribute("text-anchor","start"),t.children))e.setAttribute("text-anchor","start");h=y.getBBox(),h.height+=6}return o.attr("transform",`translate(${-h.width/2},${-h.height/2+a})`),h.height}(0,o.K)(en,"erBox"),(0,o.K)(es,"addText"),(0,o.K)(eh,"lineToPolygon"),(0,o.K)(eo,"textHelper"),(0,o.K)(ed,"addText"),(0,o.K)(ec,"classBox"),(0,o.K)(eg,"requirementBox"),(0,o.K)(ey,"addText");var ep=(0,o.K)(t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function ef(t,e,{config:a}){let r,i,n,s,{labelStyles:h,nodeStyles:o}=(0,l.GX)(e);e.labelStyle=h||"";let d=e.width;e.width=(e.width??200)-10;let{shapeSvg:g,bbox:y,label:p}=await f(t,e,w(e)),m=e.padding||10,$="";"ticket"in e&&e.ticket&&a?.kanban?.ticketBaseUrl&&($=a?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket),r=g.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",$).attr("target","_blank"));let b={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};r?{label:i,bbox:n}=await u(r,"ticket"in e&&e.ticket||"",b):{label:i,bbox:n}=await u(g,"ticket"in e&&e.ticket||"",b);let{label:k,bbox:M}=await u(g,"assigned"in e&&e.assigned||"",b);e.width=d;let S=e?.width||0,A=Math.max(n.height,M.height)/2,K=Math.max(y.height+20,e?.height||0)+A,v=-S/2,C=-K/2;p.attr("transform","translate("+(m-S/2)+", "+(-A-y.height/2)+")"),i.attr("transform","translate("+(m-S/2)+", "+(-A+y.height/2)+")"),k.attr("transform","translate("+(m+S/2-M.width-20)+", "+(-A+y.height/2)+")");let{rx:N,ry:L}=e,{cssStyles:R}=e;if("handDrawn"===e.look){let t=c.A.svg(g),a=(0,l.Fr)(e,{}),r=N||L?t.path(D(v,C,S,K,N||0),a):t.rectangle(v,C,S,K,a);(s=g.insert(()=>r,":first-child")).attr("class","basic label-container").attr("style",R||null)}else{(s=g.insert("rect",":first-child")).attr("class","basic label-container __APA__").attr("style",o).attr("rx",N??5).attr("ry",L??5).attr("x",v).attr("y",C).attr("width",S).attr("height",K);let t="priority"in e&&e.priority;if(t){let e=g.append("line"),a=v+2,l=C+Math.floor((N??0)/2),r=C+K-Math.floor((N??0)/2);e.attr("x1",a).attr("y1",l).attr("x2",a).attr("y2",r).attr("stroke-width","4").attr("stroke",ep(t))}}return x(e,s),e.height=K,e.intersect=function(t){return B.rect(e,t)},g}async function eu(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:s,bbox:o,halfPadding:d,label:g}=await f(t,e,w(e)),y=o.width+10*d,p=o.height+8*d,u=.15*y,{cssStyles:m}=e,$=o.width+20,b=o.height+20,k=Math.max(y,$),M=Math.max(p,b);g.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`);let D=`M0 0 - a${u},${u} 1 0,0 ${.25*k},${-1*M*.1} - a${u},${u} 1 0,0 ${.25*k},0 - a${u},${u} 1 0,0 ${.25*k},0 - a${u},${u} 1 0,0 ${.25*k},${.1*M} - - a${u},${u} 1 0,0 ${.15*k},${.33*M} - a${.8*u},${.8*u} 1 0,0 0,${.34*M} - a${u},${u} 1 0,0 ${-1*k*.15},${.33*M} - - a${u},${u} 1 0,0 ${-1*k*.25},${.15*M} - a${u},${u} 1 0,0 ${-1*k*.25},0 - a${u},${u} 1 0,0 ${-1*k*.25},0 - a${u},${u} 1 0,0 ${-1*k*.25},${-1*M*.15} - - a${u},${u} 1 0,0 ${-1*k*.1},${-1*M*.33} - a${.8*u},${.8*u} 1 0,0 0,${-1*M*.34} - a${u},${u} 1 0,0 ${.1*k},${-1*M*.33} - H0 V0 Z`;if("handDrawn"===e.look){let t=c.A.svg(s),r=(0,l.Fr)(e,{}),i=t.path(D,r);(a=s.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,n.KL)(m))}else a=s.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",D);return a.attr("transform",`translate(${-k/2}, ${-M/2})`),x(e,a),e.calcIntersect=function(t,e){return B.rect(t,e)},e.intersect=function(t){return h.R.info("Bang intersect",e,t),B.rect(e,t)},s}async function ex(t,e){let a,{labelStyles:r,nodeStyles:i}=(0,l.GX)(e);e.labelStyle=r;let{shapeSvg:s,bbox:o,halfPadding:d,label:g}=await f(t,e,w(e)),y=o.width+2*d,p=o.height+2*d,u=.15*y,m=.25*y,$=.35*y,b=.2*y,{cssStyles:k}=e,M=`M0 0 - a${u},${u} 0 0,1 ${.25*y},${-1*y*.1} - a${$},${$} 1 0,1 ${.4*y},${-1*y*.1} - a${m},${m} 1 0,1 ${.35*y},${.2*y} - - a${u},${u} 1 0,1 ${.15*y},${.35*p} - a${b},${b} 1 0,1 ${-1*y*.15},${.65*p} - - a${m},${u} 1 0,1 ${-1*y*.25},${.15*y} - a${$},${$} 1 0,1 ${-1*y*.5},0 - a${u},${u} 1 0,1 ${-1*y*.25},${-1*y*.15} - - a${u},${u} 1 0,1 ${-1*y*.1},${-1*p*.35} - a${b},${b} 1 0,1 ${.1*y},${-1*p*.65} - H0 V0 Z`;if("handDrawn"===e.look){let t=c.A.svg(s),r=(0,l.Fr)(e,{}),i=t.path(M,r);(a=s.insert(()=>i,":first-child")).attr("class","basic label-container").attr("style",(0,n.KL)(k))}else a=s.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",M);return g.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),a.attr("transform",`translate(${-y/2}, ${-p/2})`),x(e,a),e.calcIntersect=function(t,e){return B.rect(t,e)},e.intersect=function(t){return h.R.info("Cloud intersect",e,t),B.rect(e,t)},s}async function ew(t,e){let{labelStyles:a,nodeStyles:r}=(0,l.GX)(e);e.labelStyle=a;let{shapeSvg:i,bbox:n,halfPadding:s,label:h}=await f(t,e,w(e)),o=n.width+8*s,d=n.height+2*s,c="neo"===e.look?` - M${-o/2} ${d/2-5} - v${-d+10} - q0,-5 5,-5 - h${o-10} - q5,0 5,5 - v${d-5} - H${-o/2} - Z - `:` - M${-o/2} ${d/2-5} - v${-d+10} - q0,-5 5,-5 - h${o-10} - q5,0 5,5 - v${d-10} - q0,5 -5,5 - h${-(o-10)} - q-5,0 -5,-5 - Z - `;if(!e.domId)throw Error(`defaultMindmapNode: node "${e.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let g=i.append("path").attr("id",e.domId).attr("class","node-bkg node-"+e.type).attr("style",r).attr("d",c);return i.append("line").attr("class","node-line-").attr("x1",-o/2).attr("y1",d/2).attr("x2",o/2).attr("y2",d/2),h.attr("transform",`translate(${-n.width/2}, ${-n.height/2})`),i.append(()=>h.node()),x(e,g),e.calcIntersect=function(t,e){return B.rect(t,e)},e.intersect=function(t){return B.rect(e,t)},i}async function em(t,e){let a={padding:e.padding??0};return V(t,e,a)}(0,o.K)(ef,"kanbanItem"),(0,o.K)(eu,"bang"),(0,o.K)(ex,"cloud"),(0,o.K)(ew,"defaultMindmapNode"),(0,o.K)(em,"mindmapCircle");var e$=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:tV},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:tz},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:tY},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:t0},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:tc},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:ty},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:tw},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:G},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:U},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:z},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:ts},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:V},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:eu},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:ex},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:tj},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:tk},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:tL},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:tB},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:t7},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:tC},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:tf},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:t5},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Z},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:tZ},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:tQ},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:tJ},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:tm},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:tM},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:te},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:tl},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:ti},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:tR},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:ee},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:t$},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:t6},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:tX},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:tn},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:tp},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:et},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:el},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:tu},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:t9},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:tx},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:tO},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:tW},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:tT},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:P},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Q},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:t1},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:t2},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:ea},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:tq},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:tI}],eb=(0,o.K)(()=>Object.fromEntries([...Object.entries({state:tU,choice:O,note:tE,composite:Y,rectWithTitle:t_,labelRect:tN,block_arrow:_,collapsedGroup:X,iconSquare:tK,iconCircle:tS,icon:tD,iconRounded:tA,imageSquare:tv,anchor:L,kanbanItem:ef,mindmapCircle:em,defaultMindmapNode:ew,classBox:ec,erBox:en,requirementBox:eg}),...e$.flatMap(t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map(e=>[e,t.handler]))]),"generateShapeMap")();function ek(t){return t in eb}(0,o.K)(ek,"isValidShape")}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/1161.69bf3db9f455907d.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/1161.69bf3db9f455907d.js deleted file mode 100644 index 77e002573..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/1161.69bf3db9f455907d.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1161],{31161:(t,e,i)=>{i.d(e,{diagram:()=>$});var s=i(94191),n=i(13892),a=i(69301);i(98999);var r=i(91158),h=i(99788),l=function(){var t=(0,r.K)(function(t,e,i,s){for(i=i||{},s=t.length;s--;i[t[s]]=e);return i},"o"),e=[1,4],i=[1,14],s=[1,12],n=[1,13],a=[6,7,8],h=[1,20],l=[1,18],o=[1,19],c=[6,7,11],u=[1,6,13,14],d=[1,23],y=[1,24],p=[1,6,7,11,13,14],g={trace:(0,r.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:(0,r.K)(function(t,e,i,s,n,a,r){var h=a.length-1;switch(n){case 6:case 7:return s;case 15:s.addNode(a[h-1].length,a[h].trim());break;case 16:s.addNode(0,a[h].trim())}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:i,7:[1,10],9:9,12:11,13:s,14:n},t(a,[2,3]),{1:[2,2]},t(a,[2,4]),t(a,[2,5]),{1:[2,6],6:i,12:15,13:s,14:n},{6:i,9:16,12:11,13:s,14:n},{6:h,7:l,10:17,11:o},t(c,[2,18],{14:[1,21]}),t(c,[2,16]),t(c,[2,17]),{6:h,7:l,10:22,11:o},{1:[2,7],6:i,12:15,13:s,14:n},t(u,[2,14],{7:d,11:y}),t(p,[2,8]),t(p,[2,9]),t(p,[2,10]),t(c,[2,15]),t(u,[2,13],{7:d,11:y}),t(p,[2,11]),t(p,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:(0,r.K)(function(t,e){if(e.recoverable)this.trace(t);else{var i=Error(t);throw i.hash=e,i}},"parseError"),parse:(0,r.K)(function(t){var e=this,i=[0],s=[],n=[null],a=[],h=this.table,l="",o=0,c=0,u=0,d=a.slice.call(arguments,1),y=Object.create(this.lexer),p={};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p[g]=this.yy[g]);y.setInput(t,p),p.lexer=y,p.parser=this,void 0===y.yylloc&&(y.yylloc={});var f=y.yylloc;a.push(f);var k=y.options&&y.options.ranges;function m(){var t;return"number"!=typeof(t=s.pop()||y.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.parseError?this.parseError=p.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,r.K)(function(t){i.length=i.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,r.K)(m,"lex");for(var w,x,_,b,v,S,K,$,I,E={};;){if(_=i[i.length-1],this.defaultActions[_]?b=this.defaultActions[_]:(null==w&&(w=m()),b=h[_]&&h[_][w]),void 0===b||!b.length||!b[0]){var A="";for(S in I=[],h[_])this.terminals_[S]&&S>2&&I.push("'"+this.terminals_[S]+"'");A=y.showPosition?"Parse error on line "+(o+1)+":\n"+y.showPosition()+"\nExpecting "+I.join(", ")+", got '"+(this.terminals_[w]||w)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==w?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(A,{text:y.match,token:this.terminals_[w]||w,line:y.yylineno,loc:f,expected:I})}if(b[0]instanceof Array&&b.length>1)throw Error("Parse Error: multiple actions possible at state: "+_+", token: "+w);switch(b[0]){case 1:i.push(w),n.push(y.yytext),a.push(y.yylloc),i.push(b[1]),w=null,x?(w=x,x=null):(c=y.yyleng,l=y.yytext,o=y.yylineno,f=y.yylloc,u>0&&u--);break;case 2:if(K=this.productions_[b[1]][1],E.$=n[n.length-K],E._$={first_line:a[a.length-(K||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(K||1)].first_column,last_column:a[a.length-1].last_column},k&&(E._$.range=[a[a.length-(K||1)].range[0],a[a.length-1].range[1]]),void 0!==(v=this.performAction.apply(E,[l,c,o,p,b[1],n,a].concat(d))))return v;K&&(i=i.slice(0,-1*K*2),n=n.slice(0,-1*K),a=a.slice(0,-1*K)),i.push(this.productions_[b[1]][0]),n.push(E.$),a.push(E._$),$=h[i[i.length-2]][i[i.length-1]],i.push($);break;case 3:return!0}}return!0},"parse")};function f(){this.yy={}}return g.lexer={EOF:1,parseError:(0,r.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,r.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,r.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,r.K)(function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===s.length?this.yylloc.first_column:0)+s[s.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,r.K)(function(){return this._more=!0,this},"more"),reject:(0,r.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,r.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,r.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,r.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,r.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,r.K)(function(t,e){var i,s,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var a in n)this[a]=n[a];return!1},"test_match"),next:(0,r.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,s,n=this._currentRules(),a=0;ae[0].length)){if(e=i,s=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,n[a])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,r.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,r.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,r.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,r.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,r.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,r.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,r.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,r.K)(function(t,e,i,s){switch(i){case 0:case 3:return 6;case 1:case 2:return 8;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}},(0,r.K)(f,"Parser"),f.prototype=g,g.Parser=f,new f}();l.parser=l;var o=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{(0,r.K)(this,"IshikawaDB")}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,(0,a.IU)()}getRoot(){return this.root}addNode(t,e){let i=a.Y2.sanitizeText(e,(0,a.D7)());if(!this.root){this.root={text:i,children:[]},this.stack=[{level:0,node:this.root}],(0,a.ke)(i);return}this.baseLevel??=t;let s=t-this.baseLevel+1;for(s<=0&&(s=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=s;)this.stack.pop();let n=this.stack[this.stack.length-1].node,r={text:i,children:[]};n.children.push(r),this.stack.push({level:s,node:r})}getAccTitle(){return(0,a.iN)()}setAccTitle(t){(0,a.SV)(t)}getAccDescription(){return(0,a.m7)()}setAccDescription(t){(0,a.EI)(t)}getDiagramTitle(){return(0,a.ab)()}setDiagramTitle(t){(0,a.ke)(t)}},c=82*Math.PI/180,u=Math.cos(c),d=Math.sin(c),y=(0,r.K)((t,e,i)=>{let s=t.node().getBBox(),n=s.width+2*e,r=s.height+2*e;(0,a.a$)(t,r,n,i),t.attr("viewBox",`${s.x-e} ${s.y-e} ${n} ${r}`)},"applyPaddedViewBox"),p=(0,r.K)((t,e,i,r)=>{let l=r.db.getRoot();if(!l)return;let o=(0,a.D7)(),{look:c,handDrawnSeed:u,themeVariables:d}=o,p=(0,n.I5)(o.fontSize)[0]??14,k="handDrawn"===c,m=l.children??[],w=o.ishikawa?.diagramPadding??20,_=o.ishikawa?.useMaxWidth??!1,b=(0,s.D)(e),v=b.append("g").attr("class","ishikawa"),S=k?h.A.svg(b.node()):void 0,$=S?{roughSvg:S,seed:u??0,lineColor:d?.lineColor??"#333",fillColor:d?.mainBkg??"#fff"}:void 0,I=`ishikawa-arrow-${e}`;k||v.append("defs").append("marker").attr("id",I).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let E=0,A=250,C=k?void 0:K(v,E,A,E,A,"ishikawa-spine");if(f(v,E,A,l.text,p,$),!m.length){k&&K(v,E,A,E,A,"ishikawa-spine",$),y(b,w,_);return}E-=20;let L=m.filter((t,e)=>e%2==0),M=m.filter((t,e)=>e%2==1),P=g(L),T=g(M),B=P.total+T.total,N=250,D=250;B>0&&(N=Math.max(75,500*(P.total/B)),D=Math.max(75,500*(T.total/B)));let O=2*p;N=Math.max(N,P.max*O),D=Math.max(D,T.max*O),A=Math.max(N,250),C&&C.attr("y1",A).attr("y2",A),v.select(".ishikawa-head-group").attr("transform",`translate(0,${A})`);let W=Math.ceil(m.length/2);for(let t=0;tMath.min(t,e.getBBox().x),1/0)}if(k)K(v,E,A,0,A,"ishikawa-spine",$);else{C.attr("x1",E);let t=`url(#${I})`;v.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",t)}y(b,w,_)},"draw"),g=(0,r.K)(t=>{let e=(0,r.K)(t=>t.children.reduce((t,i)=>t+1+e(i),0),"countDescendants");return t.reduce((t,i)=>{let s=e(i);return t.total+=s,t.max=Math.max(t.max,s),t},{total:0,max:0})},"sideStats"),f=(0,r.K)((t,e,i,s,n,a)=>{let r=Math.max(6,Math.floor(110/(.6*n))),h=t.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${e},${i})`),l=v(h,b(s,r),0,0,"ishikawa-head-label","start",n),o=l.node().getBBox(),c=Math.max(60,o.width+6),u=Math.max(40,2*o.height+40),d=`M 0 ${-u/2} L 0 ${u/2} Q ${2.4*c} 0 0 ${-u/2} Z`;if(a){let t=a.roughSvg.path(d,{roughness:1.5,seed:a.seed,fill:a.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:a.lineColor,strokeWidth:2});h.insert(()=>t,":first-child").attr("class","ishikawa-head")}else h.insert("path",":first-child").attr("class","ishikawa-head").attr("d",d);l.attr("transform",`translate(${(c-o.width)/2-o.x+3},${-o.y-o.height/2})`)},"drawHead"),k=(0,r.K)((t,e)=>{let i=[],s=[],n=(0,r.K)((t,a,r)=>{for(let h of -1===e?[...t].reverse():t){let t=i.length,e=h.children??[];i.push({depth:r,text:b(h.text,15),parentIndex:a,childCount:e.length}),r%2==0?(s.push(t),e.length&&n(e,t,r+1)):(e.length&&n(e,t,r+1),s.push(t))}},"walk");return n(t,-1,2),{entries:i,yOrder:s}},"flattenTree"),m=(0,r.K)((t,e,i,s,n,a,r)=>{let h=t.append("g").attr("class","ishikawa-label-group"),l=v(h,e,i,s+11*n,"ishikawa-label cause","middle",a).node().getBBox();if(r){let t=r.roughSvg.rectangle(l.x-20,l.y-2,l.width+40,l.height+4,{roughness:1.5,seed:r.seed,fill:r.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:r.lineColor,strokeWidth:2});h.insert(()=>t,":first-child").attr("class","ishikawa-label-box")}else h.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",l.x-20).attr("y",l.y-2).attr("width",l.width+40).attr("height",l.height+4)},"drawCauseLabel"),w=(0,r.K)((t,e,i,s,n,a)=>{let r=Math.sqrt(s*s+n*n);if(0===r)return;let h=s/r,l=n/r,o=-(6*l),c=6*h,u=`M ${e} ${i} L ${e-6*h*2+o} ${i-6*l*2+c} L ${e-6*h*2-o} ${i-6*l*2-c} Z`,d=a.roughSvg.path(u,{roughness:1,seed:a.seed,fill:a.lineColor,fillStyle:"solid",stroke:a.lineColor,strokeWidth:1});t.append(()=>d)},"drawArrowMarker"),x=(0,r.K)((t,e,i,s,n,a,r,h)=>{let l=e.children??[],o=a*(l.length?1:.2),c=d*o*n,y=i+-u*o,p=s+c;if(K(t,i,s,y,p,"ishikawa-branch",h),h&&w(t,i,s,i-y,s-p,h),m(t,e.text,y,p,n,r,h),!l.length)return;let{entries:g,yOrder:f}=k(l,n),x=g.length,_=Array(x);for(let[t,e]of f.entries())_[e]=s+(t+1)/(x+1)*c;let b=new Map;b.set(-1,{x0:i,y0:s,x1:y,y1:p,childCount:l.length,childrenDrawn:0});let $=-u,I=d*n,E=n<0?"ishikawa-label up":"ishikawa-label down";for(let[e,i]of g.entries()){let s=_[e],n=b.get(i.parentIndex),a=t.append("g").attr("class","ishikawa-sub-group"),l=0,o=0,c=0;if(i.depth%2==0){let t=n.y1-n.y0;l=S(n.x0,n.x1,t?(s-n.y0)/t:.5),o=s,c=l-(i.childCount>0?60+5*i.childCount:30),K(a,l,s,c,s,"ishikawa-sub-branch",h),h&&w(a,l,s,1,0,h),v(a,i.text,c,s,"ishikawa-label align","end",r)}else{let t=n.childrenDrawn++;c=(l=S(n.x0,n.x1,(n.childCount-t)/(n.childCount+1)))+(s-(o=n.y0))/I*$,K(a,l,o,c,s,"ishikawa-sub-branch",h),h&&w(a,l,o,l-c,o-s,h),v(a,i.text,c,s,E,"end",r)}i.childCount>0&&b.set(e,{x0:l,y0:o,x1:c,y1:s,childCount:i.childCount,childrenDrawn:0})}},"drawBranch"),_=(0,r.K)(t=>t.split(/|\n/),"splitLines"),b=(0,r.K)((t,e)=>{if(t.length<=e)return t;let i=[];for(let s of t.split(/\s+/)){let t=i.length-1;t>=0&&i[t].length+1+s.length<=e?i[t]+=" "+s:i.push(s)}return i.join("\n")},"wrapText"),v=(0,r.K)((t,e,i,s,n,a,r)=>{let h=_(e),l=1.05*r,o=t.append("text").attr("class",n).attr("text-anchor",a).attr("x",i).attr("y",s-(h.length-1)*l/2);for(let[t,e]of h.entries())o.append("tspan").attr("x",i).attr("dy",0===t?0:l).text(e);return o},"drawMultilineText"),S=(0,r.K)((t,e,i)=>t+(e-t)*i,"lerp"),K=(0,r.K)((t,e,i,s,n,a,r)=>{if(r){let h=r.roughSvg.line(e,i,s,n,{roughness:1.5,seed:r.seed,stroke:r.lineColor,strokeWidth:2});t.append(()=>h).attr("class",a);return}return t.append("line").attr("class",a).attr("x1",e).attr("y1",i).attr("x2",s).attr("y2",n)},"drawLine"),$={parser:l,get db(){return new o},renderer:{draw:p},styles:(0,r.K)(t=>` -.ishikawa .ishikawa-spine, -.ishikawa .ishikawa-branch, -.ishikawa .ishikawa-sub-branch { - stroke: ${t.lineColor}; - stroke-width: 2; - fill: none; -} - -.ishikawa .ishikawa-sub-branch { - stroke-width: 1; -} - -.ishikawa .ishikawa-arrow { - fill: ${t.lineColor}; -} - -.ishikawa .ishikawa-head { - fill: ${t.mainBkg}; - stroke: ${t.lineColor}; - stroke-width: 2; -} - -.ishikawa .ishikawa-label-box { - fill: ${t.mainBkg}; - stroke: ${t.lineColor}; - stroke-width: 2; -} - -.ishikawa text { - font-family: ${t.fontFamily}; - font-size: ${t.fontSize}; - fill: ${t.textColor}; -} - -.ishikawa .ishikawa-head-label { - font-weight: 600; - text-anchor: middle; - dominant-baseline: middle; - font-size: 14px; -} - -.ishikawa .ishikawa-label { - text-anchor: end; -} - -.ishikawa .ishikawa-label.cause { - text-anchor: middle; - dominant-baseline: middle; -} - -.ishikawa .ishikawa-label.align { - text-anchor: end; - dominant-baseline: middle; -} - -.ishikawa .ishikawa-label.up { - dominant-baseline: baseline; -} - -.ishikawa .ishikawa-label.down { - dominant-baseline: hanging; -} -`,"getStyles")}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/1331.eabb2f8646c750f7.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/1331.eabb2f8646c750f7.js deleted file mode 100644 index 2c1497360..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/1331.eabb2f8646c750f7.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1331],{24002:(e,t,s)=>{s.d(t,{P:()=>a});var i=s(69301),r=s(98999),n=s(91158),a=(0,n.K)((e,t,s,n)=>{e.attr("class",s);let{width:a,height:c,x:h,y:u}=l(e,t);(0,i.a$)(e,c,a,n);let y=o(h,u,a,c,t);e.attr("viewBox",y),r.R.debug(`viewBox configured: ${y} with padding: ${t}`)},"setupViewPortForSVG"),l=(0,n.K)((e,t)=>{let s=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+2*t,height:s.height+2*t,x:s.x,y:s.y}},"calculateDimensionsWithPadding"),o=(0,n.K)((e,t,s,i,r)=>`${e-r} ${t-r} ${s} ${i}`,"createViewBox")},31331:(e,t,s)=>{s.d(t,{diagram:()=>p});var i=s(74773),r=s(24002),n=s(33807);s(48734),s(11232),s(13031),s(69981),s(5663),s(82142),s(29278);var a=s(13892),l=s(69301),o=s(98999),c=s(91158),h=function(){var e=(0,c.K)(function(e,t,s,i){for(s=s||{},i=e.length;i--;s[e[i]]=t);return s},"o"),t=[1,3],s=[1,4],i=[1,5],r=[1,6],n=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],a=[1,22],l=[2,7],o=[1,26],h=[1,27],u=[1,28],y=[1,29],m=[1,33],d=[1,34],E=[1,35],p=[1,36],R=[1,37],g=[1,38],_=[1,24],f=[1,31],S=[1,32],I=[1,30],b=[1,39],T=[1,40],k=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],N=[1,61],q=[89,90],C=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],A=[27,29],L=[1,70],$=[1,71],v=[1,72],x=[1,73],w=[1,74],O=[1,75],D=[1,76],M=[1,83],F=[1,80],K=[1,84],P=[1,85],V=[1,86],U=[1,87],Y=[1,88],B=[1,89],Q=[1,90],H=[1,91],W=[1,92],j=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],z=[63,64],G=[1,101],X=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],J=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Z=[1,110],ee=[1,106],et=[1,107],es=[1,108],ei=[1,109],er=[1,111],en=[1,116],ea=[1,117],el=[1,114],eo=[1,115],ec={trace:(0,c.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:(0,c.K)(function(e,t,s,i,r,n,a){var l=n.length-1;switch(r){case 4:this.$=n[l].trim(),i.setAccTitle(this.$);break;case 5:case 6:this.$=n[l].trim(),i.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:i.setDirection("TB");break;case 18:i.setDirection("BT");break;case 19:i.setDirection("RL");break;case 20:i.setDirection("LR");break;case 21:i.addRequirement(n[l-3],n[l-4]);break;case 22:i.addRequirement(n[l-5],n[l-6]),i.setClass([n[l-5]],n[l-3]);break;case 23:i.setNewReqId(n[l-2]);break;case 24:i.setNewReqText(n[l-2]);break;case 25:i.setNewReqRisk(n[l-2]);break;case 26:i.setNewReqVerifyMethod(n[l-2]);break;case 29:this.$=i.RequirementType.REQUIREMENT;break;case 30:this.$=i.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=i.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=i.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=i.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=i.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=i.RiskLevel.LOW_RISK;break;case 36:this.$=i.RiskLevel.MED_RISK;break;case 37:this.$=i.RiskLevel.HIGH_RISK;break;case 38:this.$=i.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=i.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=i.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=i.VerifyType.VERIFY_TEST;break;case 42:i.addElement(n[l-3]);break;case 43:i.addElement(n[l-5]),i.setClass([n[l-5]],n[l-3]);break;case 44:i.setNewElementType(n[l-2]);break;case 45:i.setNewElementDocRef(n[l-2]);break;case 48:i.addRelationship(n[l-2],n[l],n[l-4]);break;case 49:i.addRelationship(n[l-2],n[l-4],n[l]);break;case 50:this.$=i.Relationships.CONTAINS;break;case 51:this.$=i.Relationships.COPIES;break;case 52:this.$=i.Relationships.DERIVES;break;case 53:this.$=i.Relationships.SATISFIES;break;case 54:this.$=i.Relationships.VERIFIES;break;case 55:this.$=i.Relationships.REFINES;break;case 56:this.$=i.Relationships.TRACES;break;case 57:this.$=n[l-2],i.defineClass(n[l-1],n[l]);break;case 58:i.setClass(n[l-1],n[l]);break;case 59:i.setClass([n[l-2]],n[l]);break;case 60:case 62:case 65:this.$=[n[l]];break;case 61:case 63:this.$=n[l-2].concat([n[l]]);break;case 64:this.$=n[l-2],i.setCssStyle(n[l-1],n[l]);break;case 66:n[l-2].push(n[l]),this.$=n[l-2];break;case 68:this.$=n[l-1]+n[l]}},"anonymous"),table:[{3:1,4:2,6:t,9:s,11:i,13:r},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:s,11:i,13:r},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(n,[2,6]),{3:12,4:2,6:t,9:s,11:i,13:r},{1:[2,2]},{4:17,5:a,7:13,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:h,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},e(n,[2,4]),e(n,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:a,7:42,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:h,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:43,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:h,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:44,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:h,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:45,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:h,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:46,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:h,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:47,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:h,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:48,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:h,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:49,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:h,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},{4:17,5:a,7:50,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:o,22:h,23:u,24:y,25:23,33:25,41:m,42:d,43:E,44:p,45:R,46:g,54:_,72:f,74:S,77:I,89:b,90:T},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(k,[2,17]),e(k,[2,18]),e(k,[2,19]),e(k,[2,20]),{30:60,33:62,75:N,89:b,90:T},{30:63,33:62,75:N,89:b,90:T},{30:64,33:62,75:N,89:b,90:T},e(q,[2,29]),e(q,[2,30]),e(q,[2,31]),e(q,[2,32]),e(q,[2,33]),e(q,[2,34]),e(C,[2,81]),e(C,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(A,[2,79]),e(A,[2,80]),{27:[1,67],29:[1,68]},e(A,[2,85]),e(A,[2,86]),{62:69,65:L,66:$,67:v,68:x,69:w,70:O,71:D},{62:77,65:L,66:$,67:v,68:x,69:w,70:O,71:D},{30:78,33:62,75:N,89:b,90:T},{73:79,75:M,76:F,78:81,79:82,80:K,81:P,82:V,83:U,84:Y,85:B,86:Q,87:H,88:W},e(j,[2,60]),e(j,[2,62]),{73:93,75:M,76:F,78:81,79:82,80:K,81:P,82:V,83:U,84:Y,85:B,86:Q,87:H,88:W},{30:94,33:62,75:N,76:F,89:b,90:T},{5:[1,95]},{30:96,33:62,75:N,89:b,90:T},{5:[1,97]},{30:98,33:62,75:N,89:b,90:T},{63:[1,99]},e(z,[2,50]),e(z,[2,51]),e(z,[2,52]),e(z,[2,53]),e(z,[2,54]),e(z,[2,55]),e(z,[2,56]),{64:[1,100]},e(k,[2,59],{76:F}),e(k,[2,64],{76:G}),{33:103,75:[1,102],89:b,90:T},e(X,[2,65],{79:104,75:M,80:K,81:P,82:V,83:U,84:Y,85:B,86:Q,87:H,88:W}),e(J,[2,67]),e(J,[2,69]),e(J,[2,70]),e(J,[2,71]),e(J,[2,72]),e(J,[2,73]),e(J,[2,74]),e(J,[2,75]),e(J,[2,76]),e(J,[2,77]),e(J,[2,78]),e(k,[2,57],{76:G}),e(k,[2,58],{76:F}),{5:Z,28:105,31:ee,34:et,36:es,38:ei,40:er},{27:[1,112],76:F},{5:en,40:ea,56:113,57:el,59:eo},{27:[1,118],76:F},{33:119,89:b,90:T},{33:120,89:b,90:T},{75:M,78:121,79:82,80:K,81:P,82:V,83:U,84:Y,85:B,86:Q,87:H,88:W},e(j,[2,61]),e(j,[2,63]),e(J,[2,68]),e(k,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:Z,28:126,31:ee,34:et,36:es,38:ei,40:er},e(k,[2,28]),{5:[1,127]},e(k,[2,42]),{32:[1,128]},{32:[1,129]},{5:en,40:ea,56:130,57:el,59:eo},e(k,[2,47]),{5:[1,131]},e(k,[2,48]),e(k,[2,49]),e(X,[2,66],{79:104,75:M,80:K,81:P,82:V,83:U,84:Y,85:B,86:Q,87:H,88:W}),{33:132,89:b,90:T},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(k,[2,27]),{5:Z,28:145,31:ee,34:et,36:es,38:ei,40:er},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(k,[2,46]),{5:en,40:ea,56:152,57:el,59:eo},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(k,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(k,[2,43]),{5:Z,28:159,31:ee,34:et,36:es,38:ei,40:er},{5:Z,28:160,31:ee,34:et,36:es,38:ei,40:er},{5:Z,28:161,31:ee,34:et,36:es,38:ei,40:er},{5:Z,28:162,31:ee,34:et,36:es,38:ei,40:er},{5:en,40:ea,56:163,57:el,59:eo},{5:en,40:ea,56:164,57:el,59:eo},e(k,[2,23]),e(k,[2,24]),e(k,[2,25]),e(k,[2,26]),e(k,[2,44]),e(k,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:(0,c.K)(function(e,t){if(t.recoverable)this.trace(e);else{var s=Error(e);throw s.hash=t,s}},"parseError"),parse:(0,c.K)(function(e){var t=this,s=[0],i=[],r=[null],n=[],a=this.table,l="",o=0,h=0,u=0,y=n.slice.call(arguments,1),m=Object.create(this.lexer),d={};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(d[E]=this.yy[E]);m.setInput(e,d),d.lexer=m,d.parser=this,void 0===m.yylloc&&(m.yylloc={});var p=m.yylloc;n.push(p);var R=m.options&&m.options.ranges;function g(){var e;return"number"!=typeof(e=i.pop()||m.lex()||1)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof d.parseError?this.parseError=d.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,c.K)(function(e){s.length=s.length-2*e,r.length=r.length-e,n.length=n.length-e},"popStack"),(0,c.K)(g,"lex");for(var _,f,S,I,b,T,k,N,q,C={};;){if(S=s[s.length-1],this.defaultActions[S]?I=this.defaultActions[S]:(null==_&&(_=g()),I=a[S]&&a[S][_]),void 0===I||!I.length||!I[0]){var A="";for(T in q=[],a[S])this.terminals_[T]&&T>2&&q.push("'"+this.terminals_[T]+"'");A=m.showPosition?"Parse error on line "+(o+1)+":\n"+m.showPosition()+"\nExpecting "+q.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==_?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(A,{text:m.match,token:this.terminals_[_]||_,line:m.yylineno,loc:p,expected:q})}if(I[0]instanceof Array&&I.length>1)throw Error("Parse Error: multiple actions possible at state: "+S+", token: "+_);switch(I[0]){case 1:s.push(_),r.push(m.yytext),n.push(m.yylloc),s.push(I[1]),_=null,f?(_=f,f=null):(h=m.yyleng,l=m.yytext,o=m.yylineno,p=m.yylloc,u>0&&u--);break;case 2:if(k=this.productions_[I[1]][1],C.$=r[r.length-k],C._$={first_line:n[n.length-(k||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(k||1)].first_column,last_column:n[n.length-1].last_column},R&&(C._$.range=[n[n.length-(k||1)].range[0],n[n.length-1].range[1]]),void 0!==(b=this.performAction.apply(C,[l,h,o,d,I[1],r,n].concat(y))))return b;k&&(s=s.slice(0,-1*k*2),r=r.slice(0,-1*k),n=n.slice(0,-1*k)),s.push(this.productions_[I[1]][0]),r.push(C.$),n.push(C._$),N=a[s[s.length-2]][s[s.length-1]],s.push(N);break;case 3:return!0}}return!0},"parse")};function eh(){this.yy={}}return ec.lexer={EOF:1,parseError:(0,c.K)(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},"parseError"),setInput:(0,c.K)(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,c.K)(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:(0,c.K)(function(e){var t=e.length,s=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:(0,c.K)(function(){return this._more=!0,this},"more"),reject:(0,c.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,c.K)(function(e){this.unput(this.match.slice(e))},"less"),pastInput:(0,c.K)(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,c.K)(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,c.K)(function(){var e=this.pastInput(),t=Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:(0,c.K)(function(e,t){var s,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],s=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack)for(var n in r)this[n]=r[n];return!1},"test_match"),next:(0,c.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var e,t,s,i,r=this._currentRules(),n=0;nt[0].length)){if(t=s,i=n,this.options.backtrack_lexer){if(!1!==(e=this.test_match(s,r[n])))return e;if(!this._backtrack)return!1;t=!1;continue}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,c.K)(function(){var e=this.next();return e||this.lex()},"lex"),begin:(0,c.K)(function(e){this.conditionStack.push(e)},"begin"),popState:(0,c.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,c.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,c.K)(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:(0,c.K)(function(e){this.begin(e)},"pushState"),stateStackSize:(0,c.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,c.K)(function(e,t,s,i){switch(s){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 58:case 65:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:case 14:case 15:case 56:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:case 68:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 57:case 64:this.begin("string");break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 66:return"qString";case 67:return t.yytext=t.yytext.trim(),89;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}},(0,c.K)(eh,"Parser"),eh.prototype=ec,ec.Parser=eh,new eh}();h.parser=h;var u=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=l.SV,this.getAccTitle=l.iN,this.setAccDescription=l.EI,this.getAccDescription=l.m7,this.setDiagramTitle=l.ke,this.getDiagramTitle=l.ab,this.getConfig=(0,c.K)(()=>(0,l.D7)().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{(0,c.K)(this,"RequirementDB")}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,t){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:t,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){void 0!==this.latestRequirement&&(this.latestRequirement.requirementId=e)}setNewReqText(e){void 0!==this.latestRequirement&&(this.latestRequirement.text=e)}setNewReqRisk(e){void 0!==this.latestRequirement&&(this.latestRequirement.risk=e)}setNewReqVerifyMethod(e){void 0!==this.latestRequirement&&(this.latestRequirement.verifyMethod=e)}addElement(e){return this.elements.has(e)||(this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),o.R.info("Added new element: ",e)),this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){void 0!==this.latestElement&&(this.latestElement.type=e)}setNewElementDocRef(e){void 0!==this.latestElement&&(this.latestElement.docRef=e)}addRelationship(e,t,s){this.relations.push({type:e,src:t,dst:s})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,(0,l.IU)()}setCssStyle(e,t){for(let s of e){let e=this.requirements.get(s)??this.elements.get(s);if(!t||!e)return;for(let s of t)s.includes(",")?e.cssStyles.push(...s.split(",")):e.cssStyles.push(s)}}setClass(e,t){for(let s of e){let e=this.requirements.get(s)??this.elements.get(s);if(e)for(let s of t){e.classes.push(s);let t=this.classes.get(s)?.styles;t&&e.cssStyles.push(...t)}}}defineClass(e,t){for(let s of e){let e=this.classes.get(s);void 0===e&&(e={id:s,styles:[],textStyles:[]},this.classes.set(s,e)),t&&t.forEach(function(t){if(/color/.exec(t)){let s=t.replace("fill","bgFill");e.textStyles.push(s)}e.styles.push(t)}),this.requirements.forEach(e=>{e.classes.includes(s)&&e.cssStyles.push(...t.flatMap(e=>e.split(",")))}),this.elements.forEach(e=>{e.classes.includes(s)&&e.cssStyles.push(...t.flatMap(e=>e.split(",")))})}}getClasses(){return this.classes}getData(){let e=(0,l.D7)(),t=[],s=[];for(let s of this.requirements.values())s.id=s.name,s.cssStyles=s.cssStyles,s.cssClasses=s.classes.join(" "),s.shape="requirementBox",s.look=e.look,s.colorIndex=t.length,t.push(s);for(let s of this.elements.values())s.shape="requirementBox",s.look=e.look,s.id=s.name,s.cssStyles=s.cssStyles,s.cssClasses=s.classes.join(" "),s.colorIndex=t.length,t.push(s);let i=0;for(let t of this.relations){let r=t.type===this.Relationships.CONTAINS,n={id:`${t.src}-${t.dst}-${i++}`,start:this.requirements.get(t.src)?.name??this.elements.get(t.src)?.name,end:this.requirements.get(t.dst)?.name??this.elements.get(t.dst)?.name,label:`<<${t.type}>>`,classes:"relationshipLine",style:["fill:none",r?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:r?"normal":"dashed",arrowTypeStart:r?"requirement_contains":"",arrowTypeEnd:r?"":"requirement_arrow",look:e.look,labelType:"markdown"};s.push(n)}return{nodes:t,edges:s,other:{},config:e,direction:this.getDirection()}}},y=(0,c.K)(e=>{let{themeVariables:t,look:s}=(0,l.zj)(),{bkgColorArray:i,borderColorArray:r}=t;if(!r?.length)return"";let n="";for(let t=0;t{let{look:t,themeVariables:s}=(0,l.zj)(),{requirementEdgeLabelBackground:i}=s;return` - ${y(e)} - marker { - fill: ${e.relationColor}; - stroke: ${e.relationColor}; - } - - marker.cross { - stroke: ${e.lineColor}; - } - - svg { - font-family: ${e.fontFamily}; - font-size: ${e.fontSize}; - } - - .reqBox { - fill: ${e.requirementBackground}; - fill-opacity: 1.0; - stroke: ${e.requirementBorderColor}; - stroke-width: ${e.requirementBorderSize}; - } - - .reqTitle, .reqLabel{ - fill: ${e.requirementTextColor}; - } - .reqLabelBox { - fill: ${e.relationLabelBackground}; - fill-opacity: 1.0; - } - - .req-title-line { - stroke: ${e.requirementBorderColor}; - stroke-width: ${e.requirementBorderSize}; - } - .relationshipLine { - stroke: ${e.relationColor}; - stroke-width: ${"neo"===t?e.strokeWidth:"1px"}; - } - .relationshipLabel { - fill: ${e.relationLabelColor}; - } - .edgeLabel { - background-color: ${e.edgeLabelBackground}; - } - .edgeLabel .label rect { - fill: ${e.edgeLabelBackground}; - } - .edgeLabel .label text { - fill: ${e.relationLabelColor}; - } - .divider { - stroke: ${e.nodeBorder}; - stroke-width: 1; - } - .label { - font-family: ${e.fontFamily}; - color: ${e.nodeTextColor||e.textColor}; - } - .label text,span { - fill: ${e.nodeTextColor||e.textColor}; - color: ${e.nodeTextColor||e.textColor}; - } - .labelBkg { - background-color: ${i??e.edgeLabelBackground}; - } - -`},"getStyles"),d={};(0,c.V)(d,{draw:()=>E});var E=(0,c.K)(async function(e,t,s,c){o.R.info("REF0:"),o.R.info("Drawing requirement diagram (unified)",t);let{securityLevel:h,state:u,layout:y,look:m}=(0,l.D7)(),d=c.db.getData(),E=(0,i.A)(t,h);d.type=c.type,d.layoutAlgorithm=(0,n.q7)(y),d.nodeSpacing=u?.nodeSpacing??50,d.rankSpacing=u?.rankSpacing??50,d.markers="neo"===m?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],d.diagramId=t,await (0,n.XX)(d,E),a._K.insertTitle(E,"requirementDiagramTitleText",u?.titleTopMargin??25,c.db.getDiagramTitle()),(0,r.P)(E,8,"requirementDiagram",u?.useMaxWidth??!0)},"draw"),p={parser:h,get db(){return new u},renderer:d,styles:m}},74773:(e,t,s)=>{s.d(t,{A:()=>n});var i=s(91158),r=s(70668),n=(0,i.K)((e,t)=>{let s;return"sandbox"===t&&(s=(0,r.Ltv)("#i"+e)),("sandbox"===t?(0,r.Ltv)(s.nodes()[0].contentDocument.body):(0,r.Ltv)("body")).select(`[id="${e}"]`)},"getDiagramElement")}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/1341.d7a3a3c0395b436b.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/1341.d7a3a3c0395b436b.js deleted file mode 100644 index 0e1a3b053..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/1341.d7a3a3c0395b436b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1341],{91341:(e,s,c)=>{c.d(s,{createInfoServices:()=>a.v});var a=c(56756);c(9448)}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/1363.40382452a688246c.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/1363.40382452a688246c.js deleted file mode 100644 index c9684d043..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/1363.40382452a688246c.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1363],{81363:(e,t,r)=>{r.d(t,{diagram:()=>l});var s=r(92440);r(3392),r(74773),r(24002),r(44115),r(33807),r(33332),r(48734),r(11232),r(13031),r(69981),r(5663),r(82142),r(29278),r(13892),r(69301),r(98999);var a=(0,r(91158).K)(e=>`${(0,s.tM)(e)} - .swimlane.cluster rect { - stroke: ${e.clusterBorder} !important; - } - [data-look="neo"].cluster rect { - filter: none; - } -`,"getStyles"),l=(0,s.ur)({defaultLayout:"swimlane",styles:a})}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/145.319dc2a103ad1b4c.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/145.319dc2a103ad1b4c.js deleted file mode 100644 index dbfae393e..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/145.319dc2a103ad1b4c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[145],{40145:(e,a,s)=>{s.d(a,{createRailroadEbnfServices:()=>c.W});var c=s(92042);s(9448)}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/1831.cd1ebb817d72dfcf.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/1831.cd1ebb817d72dfcf.js deleted file mode 100644 index 0ff764e37..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/1831.cd1ebb817d72dfcf.js +++ /dev/null @@ -1,104 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1831],{55716:(t,e,r)=>{r.d(e,{m:()=>a});var o=r(91158),a=class{constructor(t){this.init=t,this.records=this.init()}static{(0,o.K)(this,"ImperativeState")}reset(){this.records=this.init()}}},71831:(t,e,r)=>{r.d(e,{diagram:()=>tM});var o=r(55716),a=r(84492),i=r(13892),n=r(69301),s=r(98999),c=r(91158),d=r(89321),l=r(70668),h={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},$=n.UI.gitGraph,m=(0,c.K)(()=>(0,i.$t)({...$,...(0,n.zj)().gitGraph}),"getConfig"),g=new o.m(()=>{let t=m(),e=t.mainBranchName,r=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:r}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function p(){return(0,i.yT)({length:7})}function y(t,e){let r=Object.create(null);return t.reduce((t,o)=>{let a=e(o);return r[a]||(r[a]=!0,t.push(o)),t},[])}(0,c.K)(p,"getID"),(0,c.K)(y,"uniqBy");var f=(0,c.K)(function(t){g.records.direction=t},"setDirection"),x=(0,c.K)(function(t){s.R.debug("options str",t),t=(t=t?.trim())||"{}";try{g.records.options=JSON.parse(t)}catch(t){s.R.error("error while parsing gitGraph options",t.message)}},"setOptions"),u=(0,c.K)(function(){return g.records.options},"getOptions"),b=(0,c.K)(function(t){let e=t.msg,r=t.id,o=t.type,a=t.tags;s.R.info("commit",e,r,o,a),s.R.debug("Entering commit:",e,r,o,a);let i=m();r=n.Y2.sanitizeText(r,i),e=n.Y2.sanitizeText(e,i),a=a?.map(t=>n.Y2.sanitizeText(t,i));let c={id:r||g.records.seq+"-"+p(),message:e,seq:g.records.seq++,type:o??h.NORMAL,tags:a??[],parents:null==g.records.head?[]:[g.records.head.id],branch:g.records.currBranch};g.records.head=c,s.R.info("main branch",i.mainBranchName),g.records.commits.has(c.id)&&s.R.warn(`Commit ID ${c.id} already exists`),g.records.commits.set(c.id,c),g.records.branches.set(g.records.currBranch,c.id),s.R.debug("in pushCommit "+c.id)},"commit"),k=(0,c.K)(function(t){let e=t.name,r=t.order;if(e=n.Y2.sanitizeText(e,m()),g.records.branches.has(e))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);g.records.branches.set(e,null!=g.records.head?g.records.head.id:null),g.records.branchConfig.set(e,{name:e,order:r}),E(e),s.R.debug("in createBranch")},"branch"),B=(0,c.K)(t=>{let e=t.branch,r=t.id,o=t.type,a=t.tags,i=m();e=n.Y2.sanitizeText(e,i),r&&(r=n.Y2.sanitizeText(r,i));let c=g.records.branches.get(g.records.currBranch),d=g.records.branches.get(e),l=c?g.records.commits.get(c):void 0,$=d?g.records.commits.get(d):void 0;if(l&&$&&l.branch===e)throw Error(`Cannot merge branch '${e}' into itself.`);if(g.records.currBranch===e){let t=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},t}if(void 0===l||!l){let t=Error(`Incorrect usage of "merge". Current branch (${g.records.currBranch})has no commits`);throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},t}if(!g.records.branches.has(e)){let t=Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},t}if(void 0===$||!$){let t=Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},t}if(l===$){let t=Error('Incorrect usage of "merge". Both branches have same head');throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},t}if(r&&g.records.commits.has(r)){let t=Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom id");throw t.hash={text:`merge ${e} ${r} ${o} ${a?.join(" ")}`,token:`merge ${e} ${r} ${o} ${a?.join(" ")}`,expected:[`merge ${e} ${r}_UNIQUE ${o} ${a?.join(" ")}`]},t}let y={id:r||`${g.records.seq}-${p()}`,message:`merged branch ${e} into ${g.records.currBranch}`,seq:g.records.seq++,parents:null==g.records.head?[]:[g.records.head.id,d||""],branch:g.records.currBranch,type:h.MERGE,customType:o,customId:!!r,tags:a??[]};g.records.head=y,g.records.commits.set(y.id,y),g.records.branches.set(g.records.currBranch,y.id),s.R.debug(g.records.branches),s.R.debug("in mergeBranch")},"merge"),w=(0,c.K)(function(t){let e=t.id,r=t.targetId,o=t.tags,a=t.parent;s.R.debug("Entering cherryPick:",e,r,o);let i=m();if(e=n.Y2.sanitizeText(e,i),r=n.Y2.sanitizeText(r,i),o=o?.map(t=>n.Y2.sanitizeText(t,i)),a=n.Y2.sanitizeText(a,i),!e||!g.records.commits.has(e)){let t=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let c=g.records.commits.get(e);if(void 0===c||!c)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(a&&!(Array.isArray(c.parents)&&c.parents.includes(a)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let d=c.branch;if(c.type===h.MERGE&&!a)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!r||!g.records.commits.has(r)){if(d===g.records.currBranch){let t=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let t=g.records.branches.get(g.records.currBranch);if(void 0===t||!t){let t=Error(`Incorrect usage of "cherry-pick". Current branch (${g.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let i=g.records.commits.get(t);if(void 0===i||!i){let t=Error(`Incorrect usage of "cherry-pick". Current branch (${g.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let n={id:g.records.seq+"-"+p(),message:`cherry-picked ${c?.message} into ${g.records.currBranch}`,seq:g.records.seq++,parents:null==g.records.head?[]:[g.records.head.id,c.id],branch:g.records.currBranch,type:h.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${c.id}${c.type===h.MERGE?`|parent:${a}`:""}`]};g.records.head=n,g.records.commits.set(n.id,n),g.records.branches.set(g.records.currBranch,n.id),s.R.debug(g.records.branches),s.R.debug("in cherryPick")}},"cherryPick"),E=(0,c.K)(function(t){if(t=n.Y2.sanitizeText(t,m()),g.records.branches.has(t)){g.records.currBranch=t;let e=g.records.branches.get(g.records.currBranch);void 0!==e&&e?g.records.head=g.records.commits.get(e)??null:g.records.head=null}else{let e=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function T(t,e,r){let o=t.indexOf(e);-1===o?t.push(r):t.splice(o,1,r)}function C(t){let e=t.reduce((t,e)=>t.seq>e.seq?t:e,t[0]),r="";t.forEach(function(t){t===e?r+=" *":r+=" |"});let o=[r,e.id,e.seq];for(let t in g.records.branches)g.records.branches.get(t)===e.id&&o.push(t);if(s.R.debug(o.join(" ")),e.parents&&2==e.parents.length&&e.parents[0]&&e.parents[1]){let r=g.records.commits.get(e.parents[0]);T(t,e,r),e.parents[1]&&t.push(g.records.commits.get(e.parents[1]))}else if(0==e.parents.length)return;else if(e.parents[0]){let r=g.records.commits.get(e.parents[0]);T(t,e,r)}C(t=y(t,t=>t.id))}(0,c.K)(T,"upsert"),(0,c.K)(C,"prettyPrintCommitHistory");var L=(0,c.K)(function(){s.R.debug(g.records.commits),C([I()[0]])},"prettyPrint"),K=(0,c.K)(function(){g.reset(),(0,n.IU)()},"clear"),M=(0,c.K)(function(){return[...g.records.branchConfig.values()].map((t,e)=>null!==t.order&&void 0!==t.order?t:{...t,order:parseFloat(`0.${e}`)}).sort((t,e)=>(t.order??0)-(e.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),R=(0,c.K)(function(){return g.records.branches},"getBranches"),v=(0,c.K)(function(){return g.records.commits},"getCommits"),I=(0,c.K)(function(){let t=[...g.records.commits.values()];return t.forEach(function(t){s.R.debug(t.id)}),t.sort((t,e)=>t.seq-e.seq),t},"getCommitsArray"),P={commitType:h,getConfig:m,setDirection:f,setOptions:x,getOptions:u,commit:b,branch:k,merge:B,cherryPick:w,checkout:E,prettyPrint:L,clear:K,getBranchesAsObjArray:M,getBranches:R,getCommits:v,getCommitsArray:I,getCurrentBranch:(0,c.K)(function(){return g.records.currBranch},"getCurrentBranch"),getDirection:(0,c.K)(function(){return g.records.direction},"getDirection"),getHead:(0,c.K)(function(){return g.records.head},"getHead"),setAccTitle:n.SV,getAccTitle:n.iN,getAccDescription:n.m7,setAccDescription:n.EI,setDiagramTitle:n.ke,getDiagramTitle:n.ab},O=(0,c.K)((t,e)=>{for(let r of((0,a.S)(t,e),t.dir&&e.setDirection(t.dir),t.statements))A(r,e)},"populate"),A=(0,c.K)((t,e)=>{let r={Commit:(0,c.K)(t=>e.commit(G(t)),"Commit"),Branch:(0,c.K)(t=>e.branch(S(t)),"Branch"),Merge:(0,c.K)(t=>e.merge(H(t)),"Merge"),Checkout:(0,c.K)(t=>e.checkout(D(t)),"Checkout"),CherryPicking:(0,c.K)(t=>e.cherryPick(W(t)),"CherryPicking")}[t.$type];r?r(t):s.R.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),G=(0,c.K)(t=>({id:t.id,msg:t.message??"",type:void 0!==t.type?h[t.type]:h.NORMAL,tags:t.tags??void 0}),"parseCommit"),S=(0,c.K)(t=>({name:t.name,order:t.order??0}),"parseBranch"),H=(0,c.K)(t=>({branch:t.branch,id:t.id??"",type:void 0!==t.type?h[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),D=(0,c.K)(t=>t.branch,"parseCheckout"),W=(0,c.K)(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),q={parse:(0,c.K)(async t=>{let e=await (0,d.qg)("gitGraph",t);s.R.debug(e),O(e,P)},"parse")},_=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),z=new Set(["redux-color","redux-dark-color"]),Y=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),N=(0,c.K)((t,e,r=!1)=>r&&t>0?(t-1)%(e-1)+1:t%e,"calcColorIndex"),j=new Map,F=new Map,U=new Map,V=[],J=0,Q="LR",X=(0,c.K)(()=>{j.clear(),F.clear(),U.clear(),J=0,V=[],Q="LR"},"clear"),Z=(0,c.K)(t=>{let e=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof t?t.split(/\\n|\n|/gi):t).forEach(t=>{let r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=t.trim(),e.appendChild(r)}),e},"drawText"),tt=(0,c.K)(t=>{let e,r,o;return"BT"===Q?(r=(0,c.K)((t,e)=>t<=e,"comparisonFunc"),o=1/0):(r=(0,c.K)((t,e)=>t>=e,"comparisonFunc"),o=0),t.forEach(t=>{let a="TB"===Q||"BT"==Q?F.get(t)?.y:F.get(t)?.x;void 0!==a&&r(a,o)&&(e=t,o=a)}),e},"findClosestParent"),te=(0,c.K)(t=>{let e="",r=1/0;return t.forEach(t=>{let o=F.get(t).y;o<=r&&(e=t,r=o)}),e||void 0},"findClosestParentBT"),tr=(0,c.K)((t,e,r)=>{let o=r,a=r,i=[];t.forEach(t=>{let r=e.get(t);if(!r)throw Error(`Commit not found for key ${t}`);r.parents.length?a=Math.max(o=ta(r),a):i.push(r),ti(r,o)}),o=a,i.forEach(t=>{tn(t,o,r)}),t.forEach(t=>{let r=e.get(t);if(r?.parents.length){let t=te(r.parents);(o=F.get(t).y-40)<=a&&(a=o);let e=j.get(r.branch).pos,i=o-10;F.set(r.id,{x:e,y:i})}})},"setParallelBTPos"),to=(0,c.K)(t=>{let e=tt(t.parents.filter(t=>null!==t));if(!e)throw Error(`Closest parent not found for commit ${t.id}`);let r=F.get(e)?.y;if(void 0===r)throw Error(`Closest parent position not found for commit ${t.id}`);return r},"findClosestParentPos"),ta=(0,c.K)(t=>to(t)+40,"calculateCommitPosition"),ti=(0,c.K)((t,e)=>{let r=j.get(t.branch);if(!r)throw Error(`Branch not found for commit ${t.id}`);let o=r.pos,a=e+10;return F.set(t.id,{x:o,y:a}),{x:o,y:a}},"setCommitPosition"),tn=(0,c.K)((t,e,r)=>{let o=j.get(t.branch);if(!o)throw Error(`Branch not found for commit ${t.id}`);let a=o.pos;F.set(t.id,{x:a,y:e+r})},"setRootPosition"),ts=(0,c.K)((t,e,r,o,a,i)=>{let{theme:s}=(0,n.D7)(),c=_.has(s??""),d=z.has(s??""),l=Y.has(s??"");if(i===h.HIGHLIGHT)t.append("rect").attr("x",r.x-10+3*!!c).attr("y",r.y-10+3*!!c).attr("width",c?14:20).attr("height",c?14:20).attr("class",`commit ${e.id} commit-highlight${N(a,8,d)} ${o}-outer`),t.append("rect").attr("x",r.x-6+2*!!c).attr("y",r.y-6+2*!!c).attr("width",c?8:12).attr("height",c?8:12).attr("class",`commit ${e.id} commit${N(a,8,d)} ${o}-inner`);else if(i===h.CHERRY_PICK)t.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",c?7:10).attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",c?2.5:2.75).attr("fill",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",c?2.5:2.75).attr("fill",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`);else{let n=t.append("circle");if(n.attr("cx",r.x),n.attr("cy",r.y),n.attr("r",c?7:10),n.attr("class",`commit ${e.id} commit${N(a,8,d)}`),i===h.MERGE){let i=t.append("circle");i.attr("cx",r.x),i.attr("cy",r.y),i.attr("r",c?5:6),i.attr("class",`commit ${o} ${e.id} commit${N(a,8,d)}`)}if(i===h.REVERSE){let i=t.append("path"),n=c?4:5;i.attr("d",`M ${r.x-n},${r.y-n}L${r.x+n},${r.y+n}M${r.x-n},${r.y+n}L${r.x+n},${r.y-n}`).attr("class",`commit ${o} ${e.id} commit${N(a,8,d)}`)}}},"drawCommitBullet"),tc=(0,c.K)((t,e,r,o,a)=>{if(e.type!==h.CHERRY_PICK&&(e.customId&&e.type===h.MERGE||e.type!==h.MERGE)&&a.showCommitLabel){let i=t.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),s=i.append("text").attr("x",o).attr("y",r.y+25).attr("class","commit-label").text(e.id),c=s.node()?.getBBox();if(c&&(n.attr("x",r.posWithOffset-c.width/2-2).attr("y",r.y+13.5).attr("width",c.width+4).attr("height",c.height+4),"TB"===Q||"BT"===Q?(n.attr("x",r.x-(c.width+16+5)).attr("y",r.y-12),s.attr("x",r.x-(c.width+16)).attr("y",r.y+c.height-12)):s.attr("x",r.posWithOffset-c.width/2),a.rotateCommitLabel))if("TB"===Q||"BT"===Q)s.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),n.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{let t=-7.5-(c.width+10)/25*9.5,e=10+c.width/25*8.5;i.attr("transform","translate("+t+", "+e+") rotate(-45, "+o+", "+r.y+")")}}},"drawCommitLabel"),td=(0,c.K)((t,e,r,o)=>{if(e.tags.length>0){let a=0,i=0,n=0,s=[];for(let o of e.tags.reverse()){let e=t.insert("polygon"),c=t.append("circle"),d=t.append("text").attr("y",r.y-16-a).attr("class","tag-label").text(o),l=d.node()?.getBBox();if(!l)throw Error("Tag bbox not found");i=Math.max(i,l.width),n=Math.max(n,l.height),d.attr("x",r.posWithOffset-l.width/2),s.push({tag:d,hole:c,rect:e,yOffset:a}),a+=20}for(let{tag:t,hole:e,rect:a,yOffset:c}of s){let s=n/2,d=r.y-19.2-c;if(a.attr("class","tag-label-bkg").attr("points",` - ${o-i/2-2},${d+2} - ${o-i/2-2},${d-2} - ${r.posWithOffset-i/2-4},${d-s-2} - ${r.posWithOffset+i/2+4},${d-s-2} - ${r.posWithOffset+i/2+4},${d+s+2} - ${r.posWithOffset-i/2-4},${d+s+2}`),e.attr("cy",d).attr("cx",o-i/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"===Q||"BT"===Q){let n=o+c;a.attr("class","tag-label-bkg").attr("points",` - ${r.x},${n+2} - ${r.x},${n-2} - ${r.x+10},${n-s-2} - ${r.x+10+i+4},${n-s-2} - ${r.x+10+i+4},${n+s+2} - ${r.x+10},${n+s+2}`).attr("transform","translate(12,12) rotate(45, "+r.x+","+o+")"),e.attr("cx",r.x+2).attr("cy",n).attr("transform","translate(12,12) rotate(45, "+r.x+","+o+")"),t.attr("x",r.x+5).attr("y",n+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+o+")")}}}},"drawCommitTags"),tl=(0,c.K)(t=>{switch(t.customType??t.type){case h.NORMAL:return"commit-normal";case h.REVERSE:return"commit-reverse";case h.HIGHLIGHT:return"commit-highlight";case h.MERGE:return"commit-merge";case h.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),th=(0,c.K)((t,e,r,o)=>{let a={x:0,y:0};if(t.parents.length>0){let r=tt(t.parents);if(r){let i=o.get(r)??a;return"TB"===e?i.y+40:"BT"===e?(o.get(t.id)??a).y-40:i.x+40}}else if("TB"===e)return 30;else if("BT"===e)return(o.get(t.id)??a).y-40;return 0},"calculatePosition"),t$=(0,c.K)((t,e,r)=>{let o="BT"===Q&&r?e:e+10,a=j.get(t.branch)?.pos,i="TB"===Q||"BT"===Q?j.get(t.branch)?.pos:o;if(void 0===i||void 0===a)throw Error(`Position were undefined for commit ${t.id}`);let s=_.has((0,n.D7)().theme??"");return{x:i,y:"TB"===Q||"BT"===Q?o:a+(s?7:-2),posWithOffset:o}},"getCommitPosition"),tm=(0,c.K)((t,e,r,o)=>{let a=t.append("g").attr("class","commit-bullets"),i=t.append("g").attr("class","commit-labels"),n=30*("TB"===Q||"BT"===Q),s=[...e.keys()],d=o.parallelCommits??!1,l=s.sort((0,c.K)((t,r)=>{let o=e.get(t)?.seq,a=e.get(r)?.seq;return void 0!==o&&void 0!==a?o-a:0},"sortKeys"));"BT"===Q&&(d&&tr(l,e,n),l=l.reverse()),l.forEach(t=>{let s=e.get(t);if(!s)throw Error(`Commit not found for key ${t}`);d&&(n=th(s,Q,n,F));let c=t$(s,n,d);if(r){let t=tl(s),e=s.customType??s.type,r=j.get(s.branch)?.index??0;ts(a,s,c,t,r,e),tc(i,s,c,n,o),td(i,s,c,n)}"TB"===Q||"BT"===Q?F.set(s.id,{x:c.x,y:c.posWithOffset}):F.set(s.id,{x:c.posWithOffset,y:c.y}),(n="BT"===Q&&d?n+40:n+40+10)>J&&(J=n)})},"drawCommits"),tg=(0,c.K)((t,e,r,o,a)=>{let i=("TB"===Q||"BT"===Q?r.xt.branch===i,"isOnBranchToGetCurve"),s=(0,c.K)(r=>r.seq>t.seq&&r.seqs(t)&&n(t))},"shouldRerouteArrow"),tp=(0,c.K)((t,e,r=0)=>{let o=t+Math.abs(t-e)/2;if(r>5)return o;if(V.every(t=>Math.abs(t-o)>=10))return V.push(o),o;let a=Math.abs(t-e);return tp(t,e-a/5,r+1)},"findLane"),ty=(0,c.K)((t,e,r,o)=>{let a,{theme:i}=(0,n.D7)(),s=z.has(i??""),c=F.get(e.id),d=F.get(r.id);if(void 0===c||void 0===d)throw Error(`Commit positions not found for commits ${e.id} and ${r.id}`);let l=tg(e,r,c,d,o),$="",m="",g=0,p=0,y=j.get(r.branch)?.index;if(r.type===h.MERGE&&e.id!==r.parents[0]&&(y=j.get(e.branch)?.index),l){$="A 10 10, 0, 0, 0,",m="A 10 10, 0, 0, 1,",g=10,p=10;let t=c.yd.x&&($="A 20 20, 0, 0, 0,",m="A 20 20, 0, 0, 1,",g=20,p=20,a=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${c.x} ${c.y} L ${c.x} ${d.y-g} ${m} ${c.x-p} ${d.y} L ${d.x} ${d.y}`:`M ${c.x} ${c.y} L ${d.x+g} ${c.y} ${$} ${d.x} ${c.y+p} L ${d.x} ${d.y}`),c.x===d.x&&(a=`M ${c.x} ${c.y} L ${d.x} ${d.y}`)):"BT"===Q?(c.xd.x&&($="A 20 20, 0, 0, 0,",m="A 20 20, 0, 0, 1,",g=20,p=20,a=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${c.x} ${c.y} L ${c.x} ${d.y+g} ${$} ${c.x-p} ${d.y} L ${d.x} ${d.y}`:`M ${c.x} ${c.y} L ${d.x+g} ${c.y} ${m} ${d.x} ${c.y-p} L ${d.x} ${d.y}`),c.x===d.x&&(a=`M ${c.x} ${c.y} L ${d.x} ${d.y}`)):(c.yd.y&&(a=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${c.x} ${c.y} L ${d.x-g} ${c.y} ${$} ${d.x} ${c.y-p} L ${d.x} ${d.y}`:`M ${c.x} ${c.y} L ${c.x} ${d.y+g} ${m} ${c.x+p} ${d.y} L ${d.x} ${d.y}`),c.y===d.y&&(a=`M ${c.x} ${c.y} L ${d.x} ${d.y}`));if(void 0===a)throw Error("Line definition not found");t.append("path").attr("d",a).attr("class","arrow arrow"+N(y,8,s))},"drawArrow"),tf=(0,c.K)((t,e)=>{let r=t.append("g").attr("class","commit-arrows");[...e.keys()].forEach(t=>{let o=e.get(t);o.parents&&o.parents.length>0&&o.parents.forEach(t=>{ty(r,e.get(t),o,e)})})},"drawArrows"),tx=(0,c.K)((t,e,r,o)=>{let{look:a,theme:i,themeVariables:s}=(0,n.D7)(),{dropShadow:c,THEME_COLOR_LIMIT:d}=s,l=_.has(i??""),h=z.has(i??""),$=t.append("g");e.forEach((t,e)=>{let i=N(e,l?d:8,h),n=j.get(t.name)?.pos;if(void 0===n)throw Error(`Position not found for branch ${t.name}`);let s="TB"===Q||"BT"===Q?n:l?n+6+1:n-2,m=$.append("line");m.attr("x1",0),m.attr("y1",s),m.attr("x2",J),m.attr("y2",s),m.attr("class","branch branch"+i),"TB"===Q?(m.attr("y1",30),m.attr("x1",n),m.attr("y2",J),m.attr("x2",n)):"BT"===Q&&(m.attr("y1",J),m.attr("x1",n),m.attr("y2",30),m.attr("x2",n)),V.push(s);let g=Z(t.name),p=$.insert("rect"),y=$.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+i);y.node().appendChild(g);let f=g.getBBox(),x=4*!l,u=16*!!l,b=12*!!l;"neo"===a&&p.attr("data-look","neo"),p.attr("class","branchLabelBkg label"+i).attr("style","neo"===a?`filter:${l?`url(#${o}-drop-shadow)`:c}`:"").attr("rx",x).attr("ry",x).attr("x",-f.width-4-30*(!0===r.rotateCommitLabel)).attr("y",-f.height/2+10).attr("width",f.width+18+u).attr("height",f.height+4+b),y.attr("transform","translate("+(-f.width-14-30*(!0===r.rotateCommitLabel)+u/2)+", "+(s-f.height/2-2)+")"),"TB"===Q?(p.attr("x",n-f.width/2-10).attr("y",0),y.attr("transform","translate("+(n-f.width/2-5)+", 0)"),l&&(p.attr("transform",`translate(${-u/2-3}, ${-b-10})`),y.attr("transform","translate("+(n-f.width/2-5)+", "+(-(2*b)+7)+")"))):"BT"===Q?(p.attr("x",n-f.width/2-10).attr("y",J),y.attr("transform","translate("+(n-f.width/2-5)+", "+J+")"),l&&(p.attr("transform",`translate(${-u/2-3}, ${b+10})`),y.attr("transform","translate("+(n-f.width/2-5)+", "+(J+2*b+4)+")"))):p.attr("transform","translate(-19, "+(s-12-b/2)+")")})},"drawBranches"),tu=(0,c.K)(function(t,e,r,o,a){return j.set(t,{pos:e,index:r}),e+=50+40*!!a+("TB"===Q||"BT"===Q?o.width/2:0)},"setBranchPosition"),tb=(0,c.K)(function(t,e,r,o){X(),s.R.debug("in gitgraph renderer",t+"\n","id:",e,r);let a=o.db;if(!a.getConfig)return void s.R.error("getConfig method is not available on db");let c=a.getConfig(),d=c.rotateCommitLabel??!1;U=a.getCommits();let h=a.getBranchesAsObjArray();Q=a.getDirection();let $=(0,l.Ltv)(`[id="${e}"]`),{look:m,theme:g,themeVariables:p}=(0,n.D7)(),{useGradient:y,gradientStart:f,gradientStop:x,filterColor:u}=p;if(y){let t=$.append("defs").append("linearGradient").attr("id",e+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",f).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",x).attr("stop-opacity",1)}"neo"===m&&_.has(g??"")&&$.append("defs").append("filter").attr("id",e+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",u);let b=0;h.forEach((t,e)=>{let r=Z(t.name),o=$.append("g"),a=o.insert("g").attr("class","branchLabel"),i=a.insert("g").attr("class","label branch-label");i.node()?.appendChild(r);let n=r.getBBox();b=tu(t.name,b,e,n,d),i.remove(),a.remove(),o.remove()}),tm($,U,!1,c),c.showBranches&&tx($,h,c,e),tf($,U),tm($,U,!0,c),i._K.insertTitle($,"gitTitleText",c.titleTopMargin??0,a.getDiagramTitle()),(0,n.mj)(void 0,$,c.diagramPadding,c.useMaxWidth)},"draw"),tk=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),tB=new Set(["redux-color","redux-dark-color"]),tw=new Set(["neo","neo-dark"]),tE=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),tT=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),tC=(0,c.K)(t=>{let{svgId:e}=t,r="";if(t.useGradient&&e)for(let o=0;o{let{theme:e,themeVariables:r}=(0,n.zj)(),{borderColorArray:o}=r,a=tk.has(e);if(tw.has(e)){let e="";for(let r=0;r`${Array.from({length:t.THEME_COLOR_LIMIT},(t,e)=>e).map(e=>{let r=e%8;return` - .branch-label${e} { fill: ${t["gitBranchLabel"+r]}; } - .commit${e} { stroke: ${t["git"+r]}; fill: ${t["git"+r]}; } - .commit-highlight${e} { stroke: ${t["gitInv"+r]}; fill: ${t["gitInv"+r]}; } - .label${e} { fill: ${t["git"+r]}; } - .arrow${e} { stroke: ${t["git"+r]}; } - `}).join("\n")}`,"normalTheme"),tM={parser:q,db:P,renderer:{draw:tb},styles:(0,c.K)(t=>{let{theme:e}=(0,n.zj)(),r=tT.has(e);return` - .commit-id, - .commit-msg, - .branch-label { - fill: lightgrey; - color: lightgrey; - font-family: 'trebuchet ms', verdana, arial, sans-serif; - font-family: var(--mermaid-font-family); - } - - ${r?tL(t):tK(t)} - - .branch { - stroke-width: ${t.strokeWidth}; - stroke: ${t.commitLineColor??t.lineColor}; - stroke-dasharray: ${r?"4 2":"2"}; - } - .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${r?t.nodeBorder:t.commitLabelColor}; ${r?`font-weight:${t.noteFontWeight};`:""}} - .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${r?"transparent":t.commitLabelBackground}; opacity: ${r?"":.5}; } - .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};} - .tag-label-bkg { fill: ${r?t.mainBkg:t.tagLabelBackground}; stroke: ${r?t.nodeBorder:t.tagLabelBorder}; ${r?`filter:${t.dropShadow}`:""} } - .tag-hole { fill: ${t.textColor}; } - - .commit-merge { - stroke: ${r?t.mainBkg:t.primaryColor}; - fill: ${r?t.mainBkg:t.primaryColor}; - } - .commit-reverse { - stroke: ${r?t.mainBkg:t.primaryColor}; - fill: ${r?t.mainBkg:t.primaryColor}; - stroke-width: ${r?t.strokeWidth:3}; - } - .commit-highlight-outer { - } - .commit-highlight-inner { - stroke: ${r?t.mainBkg:t.primaryColor}; - fill: ${r?t.mainBkg:t.primaryColor}; - } - - .arrow { - /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */ - stroke-width: ${tk.has(e)?t.strokeWidth:8}; - stroke-linecap: round; - fill: none - } - .gitTitleText { - text-anchor: middle; - font-size: 18px; - fill: ${t.textColor}; - } -`},"getStyles")}},84492:(t,e,r)=>{function o(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}r.d(e,{S:()=>o}),(0,r(91158).K)(o,"populateCommonDb")}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/1962.a81a752546d4f646.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/1962.a81a752546d4f646.js deleted file mode 100644 index cf68b7ca1..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/1962.a81a752546d4f646.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1962],{91962:(e,r,a)=>{a.d(r,{diagram:()=>m});var t=a(46597),l=a(84492);a(94191),a(69301);var n=a(98999),i=a(91158),s=a(89321),p=(0,s.lz)().Railroad.parser.LangiumParser,o=(0,i.K)(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{let r=e.elements.map(o);return 1===r.length?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{let r=e.alternatives.map(o);return 1===r.length?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:o(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:o(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:o(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),d=(0,i.K)(e=>({name:e.name,definition:o(e.definition)}),"transformRule"),u=(0,i.K)(e=>{(0,l.S)(e,t.db),e.title&&t.db.setTitle(e.title),e.rules.map(e=>t.db.addRule(d(e)))},"populateDb"),m={parser:{parse:(0,i.K)(e=>{t.db.clear(),n.R.debug("[Railroad Parser] Starting Langium parse");let r=p.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new s.zg(r);let a=r.value;n.R.debug("[Railroad Parser] Parsed rules:",a.rules.length),u(a),n.R.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t.db}},db:t.db,renderer:t.U,styles:t.$}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2158.e9e9735d49fb2ef8.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2158.e9e9735d49fb2ef8.js deleted file mode 100644 index 233132a5a..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2158.e9e9735d49fb2ef8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2158],{92158:(e,s,a)=>{a.d(s,{createWardleyServices:()=>c.J});var c=a(19977);a(9448)}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2328.8b6dabf1d8eacebf.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2328.8b6dabf1d8eacebf.js deleted file mode 100644 index 1a47c3e0b..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2328.8b6dabf1d8eacebf.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2328],{33332:(t,e,n)=>{n.d(e,{CP:()=>d,Ck:()=>b,HT:()=>y,PB:()=>p,aC:()=>u,lC:()=>o,m:()=>h,tk:()=>l});var a=n(69301),r=n(91158),i=n(76162),s=n(70668),l=(0,r.K)((t,e)=>{let n=t.append("rect");if(n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),e.name&&n.attr("name",e.name),e.rx&&n.attr("rx",e.rx),e.ry&&n.attr("ry",e.ry),void 0!==e.attrs)for(let t in e.attrs)n.attr(t,e.attrs[t]);return e.class&&n.attr("class",e.class),n},"drawRect"),o=(0,r.K)((t,e)=>{l(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},"drawBackgroundRect"),h=(0,r.K)((t,e)=>{let n=e.text.replace(a.H1," "),r=t.append("text");r.attr("x",e.x),r.attr("y",e.y),r.attr("class","legend"),r.style("text-anchor",e.anchor),e.class&&r.attr("class",e.class);let i=r.append("tspan");return i.attr("x",e.x+2*e.textMargin),i.text(n),r},"drawText"),u=(0,r.K)((t,e,n,a)=>{let r=t.append("image");r.attr("x",e),r.attr("y",n);let s=(0,i.J)(a);r.attr("xlink:href",s)},"drawImage"),d=(0,r.K)((t,e,n,a)=>{let r=t.append("use");r.attr("x",e),r.attr("y",n);let s=(0,i.J)(a);r.attr("xlink:href",`#${s}`)},"drawEmbeddedImage"),p=(0,r.K)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),y=(0,r.K)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),b=(0,r.K)(()=>{let t=(0,s.Ltv)(".mermaidTooltip");return t.empty()&&(t=(0,s.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip")},52328:(t,e,n)=>{n.d(e,{diagram:()=>tq});var a,r=n(33332),i=n(69981);n(5663),n(82142),n(29278);var s=n(13892),l=n(69301),o=n(98999),h=n(91158),u=n(70668),d=function(){var t=(0,h.K)(function(t,e,n,a){for(n=n||{},a=t.length;a--;n[t[a]]=e);return n},"o"),e=[1,24],n=[1,25],a=[1,26],r=[1,27],i=[1,28],s=[1,63],l=[1,64],o=[1,65],u=[1,66],d=[1,67],p=[1,68],y=[1,69],b=[1,29],_=[1,30],f=[1,31],m=[1,32],g=[1,33],x=[1,34],E=[1,35],S=[1,36],T=[1,37],k=[1,38],C=[1,39],v=[1,40],O=[1,41],R=[1,42],w=[1,43],P=[1,44],D=[1,45],N=[1,46],K=[1,47],A=[1,48],L=[1,50],I=[1,51],M=[1,52],$=[1,53],B=[1,54],j=[1,55],Y=[1,56],U=[1,57],F=[1,58],z=[1,59],X=[1,60],q=[14,42],W=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Q=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],H=[1,82],V=[1,83],G=[1,84],Z=[1,85],J=[12,14,42],tt=[12,14,33,42],te=[12,14,33,42,76,77,79,80],tn=[12,33],ta=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],tr={trace:(0,h.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:(0,h.K)(function(t,e,n,a,r,i,s){var l=i.length-1;switch(r){case 3:a.setDirection("TB");break;case 4:a.setDirection("BT");break;case 5:a.setDirection("RL");break;case 6:a.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:a.setC4Type(i[l-3]);break;case 19:a.setTitle(i[l].substring(6)),this.$=i[l].substring(6);break;case 20:a.setAccDescription(i[l].substring(15)),this.$=i[l].substring(15);break;case 21:this.$=i[l].trim(),a.setTitle(this.$);break;case 22:case 23:this.$=i[l].trim(),a.setAccDescription(this.$);break;case 28:i[l].splice(2,0,"ENTERPRISE"),a.addPersonOrSystemBoundary(...i[l]),this.$=i[l];break;case 29:i[l].splice(2,0,"SYSTEM"),a.addPersonOrSystemBoundary(...i[l]),this.$=i[l];break;case 30:a.addPersonOrSystemBoundary(...i[l]),this.$=i[l];break;case 31:i[l].splice(2,0,"CONTAINER"),a.addContainerBoundary(...i[l]),this.$=i[l];break;case 32:a.addDeploymentNode("node",...i[l]),this.$=i[l];break;case 33:a.addDeploymentNode("nodeL",...i[l]),this.$=i[l];break;case 34:a.addDeploymentNode("nodeR",...i[l]),this.$=i[l];break;case 35:a.popBoundaryParseStack();break;case 39:a.addPersonOrSystem("person",...i[l]),this.$=i[l];break;case 40:a.addPersonOrSystem("external_person",...i[l]),this.$=i[l];break;case 41:a.addPersonOrSystem("system",...i[l]),this.$=i[l];break;case 42:a.addPersonOrSystem("system_db",...i[l]),this.$=i[l];break;case 43:a.addPersonOrSystem("system_queue",...i[l]),this.$=i[l];break;case 44:a.addPersonOrSystem("external_system",...i[l]),this.$=i[l];break;case 45:a.addPersonOrSystem("external_system_db",...i[l]),this.$=i[l];break;case 46:a.addPersonOrSystem("external_system_queue",...i[l]),this.$=i[l];break;case 47:a.addContainer("container",...i[l]),this.$=i[l];break;case 48:a.addContainer("container_db",...i[l]),this.$=i[l];break;case 49:a.addContainer("container_queue",...i[l]),this.$=i[l];break;case 50:a.addContainer("external_container",...i[l]),this.$=i[l];break;case 51:a.addContainer("external_container_db",...i[l]),this.$=i[l];break;case 52:a.addContainer("external_container_queue",...i[l]),this.$=i[l];break;case 53:a.addComponent("component",...i[l]),this.$=i[l];break;case 54:a.addComponent("component_db",...i[l]),this.$=i[l];break;case 55:a.addComponent("component_queue",...i[l]),this.$=i[l];break;case 56:a.addComponent("external_component",...i[l]),this.$=i[l];break;case 57:a.addComponent("external_component_db",...i[l]),this.$=i[l];break;case 58:a.addComponent("external_component_queue",...i[l]),this.$=i[l];break;case 60:a.addRel("rel",...i[l]),this.$=i[l];break;case 61:a.addRel("birel",...i[l]),this.$=i[l];break;case 62:a.addRel("rel_u",...i[l]),this.$=i[l];break;case 63:a.addRel("rel_d",...i[l]),this.$=i[l];break;case 64:a.addRel("rel_l",...i[l]),this.$=i[l];break;case 65:a.addRel("rel_r",...i[l]),this.$=i[l];break;case 66:a.addRel("rel_b",...i[l]),this.$=i[l];break;case 67:i[l].splice(0,1),a.addRel("rel",...i[l]),this.$=i[l];break;case 68:a.updateElStyle("update_el_style",...i[l]),this.$=i[l];break;case 69:a.updateRelStyle("update_rel_style",...i[l]),this.$=i[l];break;case 70:a.updateLayoutConfig("update_layout_config",...i[l]),this.$=i[l];break;case 71:this.$=[i[l]];break;case 72:i[l].unshift(i[l-1]),this.$=i[l];break;case 73:case 75:this.$=i[l].trim();break;case 74:let o={};o[i[l-1].trim()]=i[l].trim(),this.$=o;break;case 76:this.$=""}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:n,24:a,26:r,28:i,29:49,30:61,32:62,34:s,36:l,37:o,38:u,39:d,40:p,41:y,43:23,44:b,45:_,46:f,47:m,48:g,49:x,50:E,51:S,52:T,53:k,54:C,55:v,56:O,57:R,58:w,59:P,60:D,61:N,62:K,63:A,64:L,65:I,66:M,67:$,68:B,69:j,70:Y,71:U,72:F,73:z,74:X},{13:70,19:20,20:21,21:22,22:e,23:n,24:a,26:r,28:i,29:49,30:61,32:62,34:s,36:l,37:o,38:u,39:d,40:p,41:y,43:23,44:b,45:_,46:f,47:m,48:g,49:x,50:E,51:S,52:T,53:k,54:C,55:v,56:O,57:R,58:w,59:P,60:D,61:N,62:K,63:A,64:L,65:I,66:M,67:$,68:B,69:j,70:Y,71:U,72:F,73:z,74:X},{13:71,19:20,20:21,21:22,22:e,23:n,24:a,26:r,28:i,29:49,30:61,32:62,34:s,36:l,37:o,38:u,39:d,40:p,41:y,43:23,44:b,45:_,46:f,47:m,48:g,49:x,50:E,51:S,52:T,53:k,54:C,55:v,56:O,57:R,58:w,59:P,60:D,61:N,62:K,63:A,64:L,65:I,66:M,67:$,68:B,69:j,70:Y,71:U,72:F,73:z,74:X},{13:72,19:20,20:21,21:22,22:e,23:n,24:a,26:r,28:i,29:49,30:61,32:62,34:s,36:l,37:o,38:u,39:d,40:p,41:y,43:23,44:b,45:_,46:f,47:m,48:g,49:x,50:E,51:S,52:T,53:k,54:C,55:v,56:O,57:R,58:w,59:P,60:D,61:N,62:K,63:A,64:L,65:I,66:M,67:$,68:B,69:j,70:Y,71:U,72:F,73:z,74:X},{13:73,19:20,20:21,21:22,22:e,23:n,24:a,26:r,28:i,29:49,30:61,32:62,34:s,36:l,37:o,38:u,39:d,40:p,41:y,43:23,44:b,45:_,46:f,47:m,48:g,49:x,50:E,51:S,52:T,53:k,54:C,55:v,56:O,57:R,58:w,59:P,60:D,61:N,62:K,63:A,64:L,65:I,66:M,67:$,68:B,69:j,70:Y,71:U,72:F,73:z,74:X},{14:[1,74]},t(q,[2,13],{43:23,29:49,30:61,32:62,20:75,34:s,36:l,37:o,38:u,39:d,40:p,41:y,44:b,45:_,46:f,47:m,48:g,49:x,50:E,51:S,52:T,53:k,54:C,55:v,56:O,57:R,58:w,59:P,60:D,61:N,62:K,63:A,64:L,65:I,66:M,67:$,68:B,69:j,70:Y,71:U,72:F,73:z,74:X}),t(q,[2,14]),t(W,[2,16],{12:[1,76]}),t(q,[2,36],{12:[1,77]}),t(Q,[2,19]),t(Q,[2,20]),{25:[1,78]},{27:[1,79]},t(Q,[2,23]),{35:80,75:81,76:H,77:V,79:G,80:Z},{35:86,75:81,76:H,77:V,79:G,80:Z},{35:87,75:81,76:H,77:V,79:G,80:Z},{35:88,75:81,76:H,77:V,79:G,80:Z},{35:89,75:81,76:H,77:V,79:G,80:Z},{35:90,75:81,76:H,77:V,79:G,80:Z},{35:91,75:81,76:H,77:V,79:G,80:Z},{35:92,75:81,76:H,77:V,79:G,80:Z},{35:93,75:81,76:H,77:V,79:G,80:Z},{35:94,75:81,76:H,77:V,79:G,80:Z},{35:95,75:81,76:H,77:V,79:G,80:Z},{35:96,75:81,76:H,77:V,79:G,80:Z},{35:97,75:81,76:H,77:V,79:G,80:Z},{35:98,75:81,76:H,77:V,79:G,80:Z},{35:99,75:81,76:H,77:V,79:G,80:Z},{35:100,75:81,76:H,77:V,79:G,80:Z},{35:101,75:81,76:H,77:V,79:G,80:Z},{35:102,75:81,76:H,77:V,79:G,80:Z},{35:103,75:81,76:H,77:V,79:G,80:Z},{35:104,75:81,76:H,77:V,79:G,80:Z},t(J,[2,59]),{35:105,75:81,76:H,77:V,79:G,80:Z},{35:106,75:81,76:H,77:V,79:G,80:Z},{35:107,75:81,76:H,77:V,79:G,80:Z},{35:108,75:81,76:H,77:V,79:G,80:Z},{35:109,75:81,76:H,77:V,79:G,80:Z},{35:110,75:81,76:H,77:V,79:G,80:Z},{35:111,75:81,76:H,77:V,79:G,80:Z},{35:112,75:81,76:H,77:V,79:G,80:Z},{35:113,75:81,76:H,77:V,79:G,80:Z},{35:114,75:81,76:H,77:V,79:G,80:Z},{35:115,75:81,76:H,77:V,79:G,80:Z},{20:116,29:49,30:61,32:62,34:s,36:l,37:o,38:u,39:d,40:p,41:y,43:23,44:b,45:_,46:f,47:m,48:g,49:x,50:E,51:S,52:T,53:k,54:C,55:v,56:O,57:R,58:w,59:P,60:D,61:N,62:K,63:A,64:L,65:I,66:M,67:$,68:B,69:j,70:Y,71:U,72:F,73:z,74:X},{12:[1,118],33:[1,117]},{35:119,75:81,76:H,77:V,79:G,80:Z},{35:120,75:81,76:H,77:V,79:G,80:Z},{35:121,75:81,76:H,77:V,79:G,80:Z},{35:122,75:81,76:H,77:V,79:G,80:Z},{35:123,75:81,76:H,77:V,79:G,80:Z},{35:124,75:81,76:H,77:V,79:G,80:Z},{35:125,75:81,76:H,77:V,79:G,80:Z},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(q,[2,15]),t(W,[2,17],{21:22,19:130,22:e,23:n,24:a,26:r,28:i}),t(q,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:n,24:a,26:r,28:i,34:s,36:l,37:o,38:u,39:d,40:p,41:y,44:b,45:_,46:f,47:m,48:g,49:x,50:E,51:S,52:T,53:k,54:C,55:v,56:O,57:R,58:w,59:P,60:D,61:N,62:K,63:A,64:L,65:I,66:M,67:$,68:B,69:j,70:Y,71:U,72:F,73:z,74:X}),t(Q,[2,21]),t(Q,[2,22]),t(J,[2,39]),t(tt,[2,71],{75:81,35:132,76:H,77:V,79:G,80:Z}),t(te,[2,73]),{78:[1,133]},t(te,[2,75]),t(te,[2,76]),t(J,[2,40]),t(J,[2,41]),t(J,[2,42]),t(J,[2,43]),t(J,[2,44]),t(J,[2,45]),t(J,[2,46]),t(J,[2,47]),t(J,[2,48]),t(J,[2,49]),t(J,[2,50]),t(J,[2,51]),t(J,[2,52]),t(J,[2,53]),t(J,[2,54]),t(J,[2,55]),t(J,[2,56]),t(J,[2,57]),t(J,[2,58]),t(J,[2,60]),t(J,[2,61]),t(J,[2,62]),t(J,[2,63]),t(J,[2,64]),t(J,[2,65]),t(J,[2,66]),t(J,[2,67]),t(J,[2,68]),t(J,[2,69]),t(J,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(tn,[2,28]),t(tn,[2,29]),t(tn,[2,30]),t(tn,[2,31]),t(tn,[2,32]),t(tn,[2,33]),t(tn,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(W,[2,18]),t(q,[2,38]),t(tt,[2,72]),t(te,[2,74]),t(J,[2,24]),t(J,[2,35]),t(ta,[2,25]),t(ta,[2,26],{12:[1,138]}),t(ta,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:(0,h.K)(function(t,e){if(e.recoverable)this.trace(t);else{var n=Error(t);throw n.hash=e,n}},"parseError"),parse:(0,h.K)(function(t){var e=this,n=[0],a=[],r=[null],i=[],s=this.table,l="",o=0,u=0,d=0,p=i.slice.call(arguments,1),y=Object.create(this.lexer),b={};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(b[_]=this.yy[_]);y.setInput(t,b),b.lexer=y,b.parser=this,void 0===y.yylloc&&(y.yylloc={});var f=y.yylloc;i.push(f);var m=y.options&&y.options.ranges;function g(){var t;return"number"!=typeof(t=a.pop()||y.lex()||1)&&(t instanceof Array&&(t=(a=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof b.parseError?this.parseError=b.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,h.K)(function(t){n.length=n.length-2*t,r.length=r.length-t,i.length=i.length-t},"popStack"),(0,h.K)(g,"lex");for(var x,E,S,T,k,C,v,O,R,w={};;){if(S=n[n.length-1],this.defaultActions[S]?T=this.defaultActions[S]:(null==x&&(x=g()),T=s[S]&&s[S][x]),void 0===T||!T.length||!T[0]){var P="";for(C in R=[],s[S])this.terminals_[C]&&C>2&&R.push("'"+this.terminals_[C]+"'");P=y.showPosition?"Parse error on line "+(o+1)+":\n"+y.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(P,{text:y.match,token:this.terminals_[x]||x,line:y.yylineno,loc:f,expected:R})}if(T[0]instanceof Array&&T.length>1)throw Error("Parse Error: multiple actions possible at state: "+S+", token: "+x);switch(T[0]){case 1:n.push(x),r.push(y.yytext),i.push(y.yylloc),n.push(T[1]),x=null,E?(x=E,E=null):(u=y.yyleng,l=y.yytext,o=y.yylineno,f=y.yylloc,d>0&&d--);break;case 2:if(v=this.productions_[T[1]][1],w.$=r[r.length-v],w._$={first_line:i[i.length-(v||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(v||1)].first_column,last_column:i[i.length-1].last_column},m&&(w._$.range=[i[i.length-(v||1)].range[0],i[i.length-1].range[1]]),void 0!==(k=this.performAction.apply(w,[l,u,o,b,T[1],r,i].concat(p))))return k;v&&(n=n.slice(0,-1*v*2),r=r.slice(0,-1*v),i=i.slice(0,-1*v)),n.push(this.productions_[T[1]][0]),r.push(w.$),i.push(w._$),O=s[n[n.length-2]][n[n.length-1]],n.push(O);break;case 3:return!0}}return!0},"parse")};function ti(){this.yy={}}return tr.lexer={EOF:1,parseError:(0,h.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,h.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,h.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,h.K)(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===a.length?this.yylloc.first_column:0)+a[a.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,h.K)(function(){return this._more=!0,this},"more"),reject:(0,h.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,h.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,h.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,h.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,h.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,h.K)(function(t,e){var n,a,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(a=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var i in r)this[i]=r[i];return!1},"test_match"),next:(0,h.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,n,a,r=this._currentRules(),i=0;ie[0].length)){if(e=n,a=i,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[i])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[a]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,h.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,h.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,h.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,h.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,h.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,h.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,h.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,h.K)(function(t,e,n,a){switch(n){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 73:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 16:case 70:break;case 14:c;break;case 15:return 12;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:case 53:return this.begin("rel_u"),66;case 54:case 55:return this.begin("rel_d"),67;case 56:case 57:return this.begin("rel_l"),68;case 58:case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:case 79:this.popState(),this.popState();break;case 69:case 71:return 80;case 72:this.begin("string");break;case 74:case 80:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}},(0,h.K)(ti,"Parser"),ti.prototype=tr,tr.Parser=ti,new ti}();d.parser=d;var p=(0,h.K)(t=>(0,l.D7)()[t],"getRequiredConfig"),y=(0,h.K)((t,e)=>{for(let[n,a]of Object.entries(e))if(void 0!==a)if("object"==typeof a){let[e,n]=Object.entries(a)[0];t[e]=n}else t[n]=a},"assignAttributes"),b=(0,h.K)(()=>({alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}),"createGlobalBoundary"),_=[],f=[""],m="global",g="",x=[b()],E=[],S="",T=!1,k=4,C=2,v=(0,h.K)(function(){return a},"getC4Type"),O=(0,h.K)(function(t){a=(0,l.jZ)(t,(0,l.D7)())},"setC4Type"),R=(0,h.K)(function(t,e,n,a,r,i,s,l,o){if(null==t||null==e||null==n||null==a)return;let h={},u=E.find(t=>t.from===e&&t.to===n);if(u?h=u:E.push(h),h.type=t,h.from=e,h.to=n,h.label={text:a},null==r)h.techn={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];h[t]={text:e}}else h.techn={text:r};if(null==i)h.descr={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];h[t]={text:e}}else h.descr={text:i};y(h,{sprite:s,tags:l,link:o}),h.wrap=V()},"addRel"),w=(0,h.K)(function(t,e,n,a,r,i,s){if(null===e||null===n)return;let l={},o=_.find(t=>t.alias===e);if(o&&e===o.alias?l=o:(l.alias=e,_.push(l)),null==n?l.label={text:""}:l.label={text:n},null==a)l.descr={text:""};else if("object"==typeof a){let[t,e]=Object.entries(a)[0];l[t]={text:e}}else l.descr={text:a};y(l,{sprite:r,tags:i,link:s}),l.typeC4Shape={text:t},l.parentBoundary=m,l.wrap=V()},"addPersonOrSystem"),P=(0,h.K)(function(t,e,n,a,r,i,s,l){if(null===e||null===n)return;let o={},h=_.find(t=>t.alias===e);if(h&&e===h.alias?o=h:(o.alias=e,_.push(o)),null==n?o.label={text:""}:o.label={text:n},null==a)o.techn={text:""};else if("object"==typeof a){let[t,e]=Object.entries(a)[0];o[t]={text:e}}else o.techn={text:a};if(null==r)o.descr={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];o[t]={text:e}}else o.descr={text:r};y(o,{sprite:i,tags:s,link:l}),o.wrap=V(),o.typeC4Shape={text:t},o.parentBoundary=m},"addContainer"),D=(0,h.K)(function(t,e,n,a,r,i,s,l){if(null===e||null===n)return;let o={},h=_.find(t=>t.alias===e);if(h&&e===h.alias?o=h:(o.alias=e,_.push(o)),null==n?o.label={text:""}:o.label={text:n},null==a)o.techn={text:""};else if("object"==typeof a){let[t,e]=Object.entries(a)[0];o[t]={text:e}}else o.techn={text:a};if(null==r)o.descr={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];o[t]={text:e}}else o.descr={text:r};y(o,{sprite:i,tags:s,link:l}),o.wrap=V(),o.typeC4Shape={text:t},o.parentBoundary=m},"addComponent"),N=(0,h.K)(function(t,e,n,a,r){if(null===t||null===e)return;let i={},s=x.find(e=>e.alias===t);if(s&&t===s.alias?i=s:(i.alias=t,x.push(i)),null==e?i.label={text:""}:i.label={text:e},null==n)i.type={text:"system"};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];i[t]={text:e}}else i.type={text:n};y(i,{tags:a,link:r}),i.parentBoundary=m,i.wrap=V(),g=m,m=t,f.push(g)},"addPersonOrSystemBoundary"),K=(0,h.K)(function(t,e,n,a,r){if(null===t||null===e)return;let i={},s=x.find(e=>e.alias===t);if(s&&t===s.alias?i=s:(i.alias=t,x.push(i)),null==e?i.label={text:""}:i.label={text:e},null==n)i.type={text:"container"};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];i[t]={text:e}}else i.type={text:n};y(i,{tags:a,link:r}),i.parentBoundary=m,i.wrap=V(),g=m,m=t,f.push(g)},"addContainerBoundary"),A=(0,h.K)(function(t,e,n,a,r,i,s,l){if(null===e||null===n)return;let o={},h=x.find(t=>t.alias===e);if(h&&e===h.alias?o=h:(o.alias=e,x.push(o)),null==n?o.label={text:""}:o.label={text:n},null==a)o.type={text:"node"};else if("object"==typeof a){let[t,e]=Object.entries(a)[0];o[t]={text:e}}else o.type={text:a};if(null==r)o.descr={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];o[t]={text:e}}else o.descr={text:r};y(o,{tags:s,link:l}),o.nodeType=t,o.parentBoundary=m,o.wrap=V(),g=m,m=e,f.push(g)},"addDeploymentNode"),L=(0,h.K)(function(){m=g,f.pop(),g=f.pop(),f.push(g)},"popBoundaryParseStack"),I=(0,h.K)(function(t,e,n,a,r,i,s,l,o,h,u){let d=_.find(t=>t.alias===e);if(void 0!==d||void 0!==(d=x.find(t=>t.alias===e))){if(null!=n)if("object"==typeof n){let[t,e]=Object.entries(n)[0];d[t]=e}else d.bgColor=n;if(null!=a)if("object"==typeof a){let[t,e]=Object.entries(a)[0];d[t]=e}else d.fontColor=a;if(null!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];d[t]=e}else d.borderColor=r;if(null!=i)if("object"==typeof i){let[t,e]=Object.entries(i)[0];d[t]=e}else d.shadowing=i;if(null!=s)if("object"==typeof s){let[t,e]=Object.entries(s)[0];d[t]=e}else d.shape=s;if(null!=l)if("object"==typeof l){let[t,e]=Object.entries(l)[0];d[t]=e}else d.sprite=l;if(null!=o)if("object"==typeof o){let[t,e]=Object.entries(o)[0];d[t]=e}else d.techn=o;if(null!=h)if("object"==typeof h){let[t,e]=Object.entries(h)[0];d[t]=e}else d.legendText=h;if(null!=u)if("object"==typeof u){let[t,e]=Object.entries(u)[0];d[t]=e}else d.legendSprite=u}},"updateElStyle"),M=(0,h.K)(function(t,e,n,a,r,i,s){let l=E.find(t=>t.from===e&&t.to===n);if(void 0!==l){if(null!=a)if("object"==typeof a){let[t,e]=Object.entries(a)[0];l[t]=e}else l.textColor=a;if(null!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];l[t]=e}else l.lineColor=r;if(null!=i)if("object"==typeof i){let[t,e]=Object.entries(i)[0];l[t]=parseInt(e)}else l.offsetX=parseInt(i);if(null!=s)if("object"==typeof s){let[t,e]=Object.entries(s)[0];l[t]=parseInt(e)}else l.offsetY=parseInt(s)}},"updateRelStyle"),$=(0,h.K)(function(t,e,n){let a=k,r=C;a="object"==typeof e?parseInt(Object.values(e)[0]):parseInt(e),r="object"==typeof n?parseInt(Object.values(n)[0]):parseInt(n),a>=1&&(k=a),r>=1&&(C=r)},"updateLayoutConfig"),B=(0,h.K)(function(){return k},"getC4ShapeInRow"),j=(0,h.K)(function(){return C},"getC4BoundaryInRow"),Y=(0,h.K)(function(){return m},"getCurrentBoundaryParse"),U=(0,h.K)(function(){return g},"getParentBoundaryParse"),F=(0,h.K)(function(t){return null==t?_:_.filter(e=>e.parentBoundary===t)},"getC4ShapeArray"),z=(0,h.K)(function(t){return _.find(e=>e.alias===t)},"getC4Shape"),X=(0,h.K)(function(t){return Object.keys(F(t))},"getC4ShapeKeys"),q=(0,h.K)(function(t){return null==t?x:x.filter(e=>e.parentBoundary===t)},"getBoundaries"),W=(0,h.K)(function(){return E},"getRels"),Q=(0,h.K)(function(){return S},"getTitle"),H=(0,h.K)(function(t){T=t},"setWrap"),V=(0,h.K)(function(){return T},"autoWrap"),G=(0,h.K)(function(){_=[],x=[b()],g="",m="global",f=[""],E=[],f=[""],S="",T=!1,k=4,C=2},"clear"),Z=(0,h.K)(function(t){S=(0,l.jZ)(t,(0,l.D7)())},"setTitle"),J={addPersonOrSystem:w,addPersonOrSystemBoundary:N,addContainer:P,addContainerBoundary:K,addComponent:D,addDeploymentNode:A,popBoundaryParseStack:L,addRel:R,updateElStyle:I,updateRelStyle:M,updateLayoutConfig:$,autoWrap:V,setWrap:H,getC4ShapeArray:F,getC4Shape:z,getC4ShapeKeys:X,getBoundaries:q,getBoundarys:q,getCurrentBoundaryParse:Y,getParentBoundaryParse:U,getRels:W,getTitle:Q,getC4Type:v,getC4ShapeInRow:B,getC4BoundaryInRow:j,setAccTitle:l.SV,getAccTitle:l.iN,getAccDescription:l.m7,setAccDescription:l.EI,getConfig:(0,h.K)(()=>p("c4"),"getConfig"),clear:G,LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:Z,setC4Type:O},tt=(0,h.K)(function(t,e){return(0,r.tk)(t,e)},"drawRect"),te=(0,h.K)((t,e,n,a)=>{let r=t.append("g"),i=0;for(let t of e){let e=t.textColor?t.textColor:"#444444",s=t.lineColor?t.lineColor:"#444444",l=t.offsetX?parseInt(String(t.offsetX)):0,o=t.offsetY?parseInt(String(t.offsetY)):0;if(0===i){let e=r.append("line");e.attr("x1",t.startPoint.x),e.attr("y1",t.startPoint.y),e.attr("x2",t.endPoint.x),e.attr("y2",t.endPoint.y),e.attr("stroke-width","1"),e.attr("stroke",s),e.style("fill","none"),"rel_b"!==t.type&&e.attr("marker-end","url(#"+a+"-arrowhead)"),("birel"===t.type||"rel_b"===t.type)&&e.attr("marker-start","url(#"+a+"-arrowend)"),i=-1}else{let e=r.append("path");e.attr("fill","none").attr("stroke-width","1").attr("stroke",s).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",t.startPoint.x).replaceAll("starty",t.startPoint.y).replaceAll("controlx",t.startPoint.x+(t.endPoint.x-t.startPoint.x)/2-(t.endPoint.x-t.startPoint.x)/4).replaceAll("controly",t.startPoint.y+(t.endPoint.y-t.startPoint.y)/2).replaceAll("stopx",t.endPoint.x).replaceAll("stopy",t.endPoint.y)),"rel_b"!==t.type&&e.attr("marker-end","url(#"+a+"-arrowhead)"),("birel"===t.type||"rel_b"===t.type)&&e.attr("marker-start","url(#"+a+"-arrowend)")}let h=t.label.width,u=n.messageFont();th(n)(t.label.text,r,Math.min(t.startPoint.x,t.endPoint.x)+Math.abs(t.endPoint.x-t.startPoint.x)/2+l,Math.min(t.startPoint.y,t.endPoint.y)+Math.abs(t.endPoint.y-t.startPoint.y)/2+o,h,t.label.height,{fill:e},u),t.techn&&""!==t.techn.text&&(u=n.messageFont(),th(n)("["+t.techn.text+"]",r,Math.min(t.startPoint.x,t.endPoint.x)+Math.abs(t.endPoint.x-t.startPoint.x)/2+l,Math.min(t.startPoint.y,t.endPoint.y)+Math.abs(t.endPoint.y-t.startPoint.y)/2+n.messageFontSize+5+o,Math.max(h,t.techn.width),t.techn.height,{fill:e,"font-style":"italic"},u))}},"drawRels"),tn=(0,h.K)(function(t,e,n){let a=t.append("g"),r=e.bgColor?e.bgColor:"none",i=e.borderColor?e.borderColor:"#444444",s=e.fontColor?e.fontColor:"black",l={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(l={"stroke-width":1}),tt(a,{x:e.x,y:e.y,fill:r,stroke:i,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:l});let o=n.boundaryFont();o.fontWeight="bold",o.fontSize=o.fontSize+2,o.fontColor=s,th(n)(e.label.text,a,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},o),e.type&&""!==e.type.text&&((o=n.boundaryFont()).fontColor=s,th(n)(e.type.text,a,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},o)),e.descr&&""!==e.descr.text&&((o=n.boundaryFont()).fontSize=o.fontSize-2,o.fontColor=s,th(n)(e.descr.text,a,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},o))},"drawBoundary"),ta=(0,h.K)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),tr=(0,h.K)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),ti=(0,h.K)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),ts=(0,h.K)(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),tl=(0,h.K)(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),to=(0,h.K)(function(t,e){t.append("defs").append("marker").attr("id",e+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),tc=(0,h.K)(function(t,e){let n=t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);n.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),n.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),th=function(){function t(t,e,n,r,i,s,l){a(e.append("text").attr("x",n+i/2).attr("y",r+s/2+5).style("text-anchor","middle").text(t),l)}function e(t,e,n,r,i,s,o,h){let{fontSize:u,fontFamily:d,fontWeight:p}=h,y=t.split(l.Y2.lineBreakRegex);for(let t=0;t{if("sandbox"===e){let e=(0,u.Ltv)("#i"+t),n=e.node()?.contentDocument;if(!n)throw Error(`Sandbox iframe #i${t} is missing its content document`);return{root:(0,u.Ltv)(n.body),doc:n}}return{root:(0,u.Ltv)("body"),doc:document}},"getDiagramRoot"),tp=new Set(["system_queue","external_system_queue","container_queue","external_container_queue","component_queue","external_component_queue"]),ty=new Set(["system_db","external_system_db","container_db","external_container_db","component_db","external_component_db"]),tb={person:"person",box:"rounded",rounded:"rounded",cylinder:"cylinder",database:"cylinder",db:"cylinder",queue:"h-cyl",pipe:"h-cyl",component:"fr-rect"},t_=(0,h.K)(t=>t?tb[t.toLowerCase()]:void 0,"keywordShape"),tf=(0,h.K)(t=>{let e=t_(t.shape)??t_(t.sprite);if(e)return e;if(t.tags)for(let e of t.tags.split(",")){let t=t_(e.trim());if(t)return t}let n=t.typeC4Shape.text;return"person"===n||"external_person"===n?"person":ty.has(n)?"cylinder":tp.has(n)?"h-cyl":"rounded"},"resolveNodeShape"),tm={person:"Person",system:"Software System",container:"Container",component:"Component"},tg=(0,h.K)(t=>{let e=t.replace(/^external_/,"").replace(/_(db|queue)$/,"");return tm[e]??e.replace(/_/g," ")},"stereotypeLabel"),tx=(0,h.K)(t=>t.startsWith("external_"),"isExternal"),tE=(0,h.K)(t=>{let e=tg(t.typeC4Shape.text);return t.techn?.text?`[${e}: ${t.techn.text}]`:`[${e}]`},"stereotypeText"),tS=["person","system","system_db","system_queue","container","container_db","container_queue","component","component_db","component_queue"].flatMap(t=>[t,`external_${t}`]),tT=new Set(tS),tk=(0,h.K)(t=>tT.has(t),"isC4ElementType"),tC=(0,h.K)((t,e)=>{let n=t.typeC4Shape.text,a=t.bgColor??(tk(n)&&e[`${n}_bg_color`]),r=t.borderColor??(tk(n)&&e[`${n}_border_color`]),i=[];return a&&i.push(`fill:${a}`),r&&i.push(`stroke:${r}`),i.push(`color:${t.fontColor??"#FFFFFF"}`),i},"elementCssStyles"),tv=(0,h.K)((t,e,n,a,r)=>{let i=t.typeC4Shape.text,s=["c4-shape",`c4-${i}`];tx(i)&&s.push("c4-external");let l=tf(t),o=tC(t,e);return("rounded"===l||"fr-rect"===l)&&o.push("rx:12px","ry:12px"),{id:t.alias,label:t.label.text,stereotype:tE(t),description:t.descr?.text?[t.descr.text]:void 0,labelType:"string",isGroup:!1,shape:l,cssClasses:s.join(" "),cssStyles:o,padding:n,look:a,useHtmlLabels:!1,width:r}},"buildC4Node"),tO=0,tR=0,tw=4,tP=2;d.yy=J;var tD={},tN=class{static{(0,h.K)(this,"Bounds")}constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,tK(t.db.getConfig())}setData(t,e,n,a){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=a}updateVal(t,e,n,a){void 0===t[e]?t[e]=n:t[e]=a(n,t[e])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let e=this.nextData.stopx,n=this.data.widthLimit,a=this.nextData.startx===this.nextData.stopx?e+t.margin:e+2*t.margin,r=a+t.width,i=this.nextData.starty+2*t.margin,s=i+t.height;(a>=n||r>=n||this.nextData.cnt>tw)&&(a=this.nextData.startx+t.margin+tD.nextLinePaddingX,i=this.nextData.stopy+2*t.margin,this.nextData.stopx=r=a+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=s=i+t.height,this.nextData.cnt=1),t.x=a,t.y=i,this.updateVal(this.data,"startx",a,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",r,Math.max),this.updateVal(this.data,"stopy",s,Math.max),this.updateVal(this.nextData,"startx",a,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",r,Math.max),this.updateVal(this.nextData,"stopy",s,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},tK(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},tK=(0,h.K)(function(t){(0,l.hH)(tD,t),t?.fontFamily&&(tD.personFontFamily=tD.systemFontFamily=tD.messageFontFamily=t.fontFamily),t?.fontSize&&(tD.personFontSize=tD.systemFontSize=tD.messageFontSize=t.fontSize),t?.fontWeight&&(tD.personFontWeight=tD.systemFontWeight=tD.messageFontWeight=t.fontWeight)},"setConf"),tA=(0,h.K)(t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}),"boundaryFont"),tL=(0,h.K)(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont");function tI(t,e,n,a,r){let i=e[t];if(!i.width)if(n)i.text=(0,s.bH)(i.text,r,a),i.textLines=i.text.split(l.Y2.lineBreakRegex).length,i.width=r,i.height=(0,s.ru)(i.text,a);else{let t=i.text.split(l.Y2.lineBreakRegex);i.textLines=t.length;let e=0;for(let n of(i.height=0,i.width=0,t))i.width=Math.max((0,s.Un)(n,a),i.width),e=(0,s.ru)(n,a),i.height=i.height+e}return i}(0,h.K)(tI,"calcC4ShapeTextWH");var tM=(0,h.K)(function(t,e,n){let a=n.data.startx,r=n.data.starty;e.x=a,e.y=r,e.width=n.data.stopx-a,e.height=n.data.stopy-r,e.label.y=tD.c4ShapeMargin-35;let i=e.wrap&&tD.wrap,l=tA(tD);l.fontSize=l.fontSize+2,l.fontWeight="bold";let o=(0,s.Un)(e.label.text,l);tI("label",e,i,l,o),tu.drawBoundary(t,e,tD)},"drawBoundary"),t$=(0,h.K)(async function(t,e,n,a){let r=(0,l.D7)(),s=r.look??"classic",o={config:r},u=e.attr("id")??"",d=a.map(t=>n[Number(t)]),p=(0,h.K)(t=>{let e=t.shape?i.nq[t.shape]:void 0;if(!e)throw Error(`C4: no shape handler for "${t.shape}"`);return e},"shapeHandlerFor");for(let n of(await Promise.all(d.map(async t=>{let n=tv(t,tD,tD.c4ShapePadding,s,tD.width);n.domId=`${u}-${n.id}`;let a=await p(n)(e,n,o);t.width=n.width??tD.width,t.height=n.height??tD.height,t.margin=tD.c4ShapeMargin,a.remove()})),d))t.insert(n);await Promise.all(d.map(async t=>{let n=tv(t,tD,tD.c4ShapePadding,s,tD.width);n.domId=`${u}-${n.id}`,n.x=t.x+t.width/2,n.y=t.y+t.height/2;let a=e.append("g").attr("transform",`translate(${t.x+t.width/2}, ${t.y+t.height/2})`);await p(n)(a,n,o),t.intersect=n.intersect})),t.bumpLastMargin(tD.c4ShapeMargin)},"drawC4ShapeArray"),tB=class{static{(0,h.K)(this,"Point")}constructor(t,e){this.x=t,this.y=e}},tj=(0,h.K)(function(t,e){if(!t.intersect)throw Error(`C4 shape "${t.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);let{x:n,y:a}=t.intersect(e);return new tB(n,a)},"getIntersectPoint"),tY=(0,h.K)(function(t,e){let n={x:0,y:0};n.x=e.x+e.width/2,n.y=e.y+e.height/2;let a=tj(t,n);return n.x=t.x+t.width/2,n.y=t.y+t.height/2,{startPoint:a,endPoint:tj(e,n)}},"getIntersectPoints"),tU=(0,h.K)(function(t,e,n,a,r){let i=a.db.getC4Type(),l=0;for(let t of e){l+=1;let e=t.wrap&&tD.wrap,a=tL(tD);"C4Dynamic"===i&&(t.label.text=l+": "+t.label.text);let r=(0,s.Un)(t.label.text,a);tI("label",t,e,a,r),t.techn&&""!==t.techn.text&&(r=(0,s.Un)(t.techn.text,a),tI("techn",t,e,a,r)),t.descr&&""!==t.descr.text&&(r=(0,s.Un)(t.descr.text,a),tI("descr",t,e,a,r));let o=n(t.from),h=n(t.to);if(!o||!h)throw Error(`C4 rel "${t.from}" -> "${t.to}" references an unknown shape`);let u=tY(o,h);if(!u.startPoint||!u.endPoint)throw Error(`Could not calculate intersection points for rel "${t.from}" -> "${t.to}"`);t.startPoint=u.startPoint,t.endPoint=u.endPoint}tu.drawRels(t,e,tD,r)},"drawRels");async function tF(t,e,n,a,r){let i=r.db,s=new tN(r);for(let[l,o]of(s.data.widthLimit=n.data.widthLimit/Math.min(tP,a.length),a.entries())){let a=0;o.image={width:0,height:0,Y:0},o.sprite&&(o.image.width=48,o.image.height=48,o.image.Y=a,a=o.image.Y+o.image.height);let h=o.wrap&&tD.wrap,u=tA(tD);u.fontSize=u.fontSize+2,u.fontWeight="bold";let d=tI("label",o,h,u,s.data.widthLimit);if(d.Y=a+8,a=d.Y+d.height,o.type&&""!==o.type.text){o.type.text="["+o.type.text+"]";let t=tI("type",o,h,tA(tD),s.data.widthLimit);t.Y=a+5,a=t.Y+t.height}if(o.descr&&""!==o.descr.text){let t=tA(tD);t.fontSize=t.fontSize-2;let e=tI("descr",o,h,t,s.data.widthLimit);e.Y=a+20,a=e.Y+e.height}if(0==l||l%tP==0){let t=n.data.startx+tD.diagramMarginX,e=n.data.stopy+tD.diagramMarginY+a;s.setData(t,t,e,e)}else{let t=s.data.stopx!==s.data.startx?s.data.stopx+tD.diagramMarginX:s.data.startx,e=s.data.starty;s.setData(t,t,e,e)}s.name=o.alias;let p=i.getC4ShapeArray(o.alias),y=i.getC4ShapeKeys(o.alias);y.length>0&&await t$(s,t,p,y),e=o.alias;let b=i.getBoundaries(e);b.length>0&&await tF(t,e,s,b,r),"global"!==o.alias&&tM(t,o,s),n.data.stopy=Math.max(s.data.stopy+tD.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(s.data.stopx+tD.c4ShapeMargin,n.data.stopx),tO=Math.max(tO,n.data.stopx),tR=Math.max(tR,n.data.stopy)}}(0,h.K)(tF,"drawInsideBoundary");var tz={drawPersonOrSystemArray:t$,drawBoundary:tM,setConf:tK,draw:(0,h.K)(async function(t,e,n,a){tD=p("c4");let{root:r}=td(e,(0,l.D7)().securityLevel),i=a.db;i.setWrap(tD.wrap),tw=i.getC4ShapeInRow(),tP=i.getC4BoundaryInRow(),o.R.debug(`C:${JSON.stringify(tD,null,2)}`);let s=r.select(`[id="${e}"]`);tu.insertComputerIcon(s,e),tu.insertDatabaseIcon(s,e),tu.insertClockIcon(s,e);let h=new tN(a);h.setData(tD.diagramMarginX,tD.diagramMarginX,tD.diagramMarginY,tD.diagramMarginY),h.data.widthLimit=screen.availWidth,tO=tD.diagramMarginX,tR=tD.diagramMarginY;let u=i.getTitle(),d=i.getBoundaries("");await tF(s,"",h,d,a),tu.insertArrowHead(s,e),tu.insertArrowEnd(s,e),tu.insertArrowCrossHead(s,e),tu.insertArrowFilledHead(s,e),tU(s,i.getRels(),i.getC4Shape,a,e),h.data.stopx=tO,h.data.stopy=tR;let y=h.data,b=y.startx,_=y.starty,f=tR-_+2*tD.diagramMarginY,m=tO-b,g=m+2*tD.diagramMarginX;u&&s.append("text").text(u).attr("x",m/2-4*tD.diagramMarginX).attr("y",_+tD.diagramMarginY),(0,l.a$)(s,f,g,tD.useMaxWidth);let x=60*!!u;s.attr("viewBox",b-tD.diagramMarginX+" -"+(tD.diagramMarginY+x)+" "+g+" "+(f+x)),o.R.debug("models:",y)},"draw")},tX=(0,h.K)(()=>{let t=(0,l.D7)().c4??{},e=new CSSStyleSheet;for(let n of tS){let a=e.cssRules[e.insertRule(`.c4-shape.c4-${n} .label {}`,e.cssRules.length)],r=t[`${n}FontFamily`],i=t[`${n}FontSize`],s=t[`${n}FontWeight`];r&&a.style.setProperty("font-family",r),i&&a.style.setProperty("font-size","number"==typeof i?`${i}px`:i),s&&a.style.setProperty("font-weight",String(s))}return[...e.cssRules].filter(t=>t.style.length>0).map(t=>` ${t.cssText}`).join("\n")},"elementFontStyles"),tq={parser:d,db:J,renderer:tz,styles:(0,h.K)(t=>`.person { - stroke: ${t.personBorder}; - fill: ${t.personBkg}; - } -${tX()} - - /* The element font colour is set inline per element (default white); the - label text takes it via currentColor. */ - .c4-shape .label, - .c4-shape .label text { - color: inherit; - fill: currentColor; - } - /* Structurizr typography: bold name, smaller stereotype/type and description lines. */ - .c4-shape .label .c4-name { - font-weight: bold; - } - .c4-shape .label .c4-type { - font-size: 0.75em; - } - .c4-shape .label .c4-descr { - font-size: 0.82em; - } - .c4-shape .basic, - .c4-shape rect, - .c4-shape path, - .c4-shape circle, - .c4-shape ellipse, - .c4-shape line { - stroke-width: 2px; - } -`,"getStyles"),init:(0,h.K)(({c4:t,wrap:e})=>{tz.setConf(t),J.setWrap(e)},"init")}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2440.ee94f3cc365fddfe.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2440.ee94f3cc365fddfe.js deleted file mode 100644 index f92f03bcd..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2440.ee94f3cc365fddfe.js +++ /dev/null @@ -1,172 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2440],{3392:(t,e,s)=>{s.d(e,{o:()=>i});var i=(0,s(91158).K)(()=>` - /* Font Awesome icon styling - consolidated */ - .label-icon { - display: inline-block; - height: 1em; - overflow: visible; - vertical-align: -0.125em; - } - - .node .label-icon path { - fill: currentColor; - stroke: revert; - stroke-width: revert; - } -`,"getIconStyles")},24002:(t,e,s)=>{s.d(e,{P:()=>n});var i=s(69301),r=s(98999),a=s(91158),n=(0,a.K)((t,e,s,a)=>{t.attr("class",s);let{width:n,height:o,x:c,y:h}=u(t,e);(0,i.a$)(t,o,n,a);let d=l(c,h,n,o,e);t.attr("viewBox",d),r.R.debug(`viewBox configured: ${d} with padding: ${e}`)},"setupViewPortForSVG"),u=(0,a.K)((t,e)=>{let s=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+2*e,height:s.height+2*e,x:s.x,y:s.y}},"calculateDimensionsWithPadding"),l=(0,a.K)((t,e,s,i,r)=>`${t-r} ${e-r} ${s} ${i}`,"createViewBox")},33332:(t,e,s)=>{s.d(e,{CP:()=>h,Ck:()=>g,HT:()=>p,PB:()=>d,aC:()=>c,lC:()=>l,m:()=>o,tk:()=>u});var i=s(69301),r=s(91158),a=s(76162),n=s(70668),u=(0,r.K)((t,e)=>{let s=t.append("rect");if(s.attr("x",e.x),s.attr("y",e.y),s.attr("fill",e.fill),s.attr("stroke",e.stroke),s.attr("width",e.width),s.attr("height",e.height),e.name&&s.attr("name",e.name),e.rx&&s.attr("rx",e.rx),e.ry&&s.attr("ry",e.ry),void 0!==e.attrs)for(let t in e.attrs)s.attr(t,e.attrs[t]);return e.class&&s.attr("class",e.class),s},"drawRect"),l=(0,r.K)((t,e)=>{u(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},"drawBackgroundRect"),o=(0,r.K)((t,e)=>{let s=e.text.replace(i.H1," "),r=t.append("text");r.attr("x",e.x),r.attr("y",e.y),r.attr("class","legend"),r.style("text-anchor",e.anchor),e.class&&r.attr("class",e.class);let a=r.append("tspan");return a.attr("x",e.x+2*e.textMargin),a.text(s),r},"drawText"),c=(0,r.K)((t,e,s,i)=>{let r=t.append("image");r.attr("x",e),r.attr("y",s);let n=(0,a.J)(i);r.attr("xlink:href",n)},"drawImage"),h=(0,r.K)((t,e,s,i)=>{let r=t.append("use");r.attr("x",e),r.attr("y",s);let n=(0,a.J)(i);r.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),d=(0,r.K)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=(0,r.K)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),g=(0,r.K)(()=>{let t=(0,n.Ltv)(".mermaidTooltip");return t.empty()&&(t=(0,n.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip")},74773:(t,e,s)=>{s.d(e,{A:()=>a});var i=s(91158),r=s(70668),a=(0,i.K)((t,e)=>{let s;return"sandbox"===e&&(s=(0,r.Ltv)("#i"+t)),("sandbox"===e?(0,r.Ltv)(s.nodes()[0].contentDocument.body):(0,r.Ltv)("body")).select(`[id="${t}"]`)},"getDiagramElement")},82237:(t,e,s)=>{s.d(e,{A:()=>a});var i=s(25866),r=s(70897);let a=(t,e)=>i.A.lang.round(r.A.parse(t)[e])},92440:(t,e,s)=>{s.d(e,{AC:()=>T,tM:()=>C,ur:()=>D});var i=s(3392),r=s(74773),a=s(24002),n=s(44115),u=s(33807),l=s(33332),o=s(69981),c=s(13892),h=s(69301),d=s(98999),p=s(91158),g=s(70668),A=s(74574),b=s(82237),y=s(43500),k=class{constructor(){this.vertexCounter=0,this.config=(0,h.D7)(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=h.SV,this.setAccDescription=h.EI,this.setDiagramTitle=h.ke,this.getAccTitle=h.iN,this.getAccDescription=h.m7,this.getDiagramTitle=h.ab,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{(0,p.K)(this,"FlowDB")}sanitizeText(t){return h.Y2.sanitizeText(t,this.config)}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}setDiagramId(t){this.diagramId=t}lookUpDomId(t){for(let e of this.vertices.values())if(e.id===t)return this.diagramId?`${this.diagramId}-${e.domId}`:e.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,e,s,i,r,a,u={},l){let c,p;if(!t||0===t.trim().length)return;if(void 0!==l){let t;t=l.includes("\n")?l+"\n":"{\n"+l+"\n}",c=(0,n.H)(t,{schema:n.r})}let g=this.subGraphLookup.get(t);if(g&&c){g.metadata={...g.metadata,...c};return}let A=this.edges.find(e=>e.id===t);if(A){let t=c;t?.animate!==void 0&&(A.animate=t.animate),t?.animation!==void 0&&(A.animation=t.animation),t?.curve!==void 0&&(A.interpolate=t.curve);return}let b=this.vertices.get(t);if(void 0===b&&(void 0===e&&void 0===s&&null!=i&&d.R.warn(`Style applied to unknown node "${t}". This may indicate a typo. The node will be created automatically.`),b={id:t,labelType:"text",domId:"flowchart-"+t+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,b)),this.vertexCounter++,void 0!==e?(this.config=(0,h.D7)(),p=this.sanitizeText(e.text.trim()),b.labelType=e.type,p.startsWith('"')&&p.endsWith('"')&&(p=p.substring(1,p.length-1)),b.text=p):void 0===b.text&&(b.text=t),void 0!==s&&(b.type=s),null!=i&&i.forEach(t=>{b.styles.push(t)}),null!=r&&r.forEach(t=>{b.classes.push(t)}),void 0!==a&&(b.dir=a),void 0===b.props?b.props=u:void 0!==u&&Object.assign(b.props,u),void 0!==c){if(c.shape){if(c.shape!==c.shape.toLowerCase()||c.shape.includes("_"))throw Error(`No such shape: ${c.shape}. Shape names should be lowercase.`);if(!(0,o.aP)(c.shape))throw Error(`No such shape: ${c.shape}.`);b.type=c?.shape}c?.label&&(b.text=c?.label,b.labelType=this.sanitizeNodeLabelType(c?.labelType)),c?.icon&&(b.icon=c?.icon,c.label?.trim()||b.text!==t||(b.text="")),c?.form&&(b.form=c?.form),c?.pos&&(b.pos=c?.pos),c?.img&&(b.img=c?.img,c.label?.trim()||b.text!==t||(b.text="")),c?.constraint&&(b.constraint=c.constraint),c.w&&(b.assetWidth=Number(c.w)),c.h&&(b.assetHeight=Number(c.h))}}addSingleLink(t,e,s,i){let r={start:t,end:e,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};d.R.info("abc78 Got edge...",r);let a=s.text;if(void 0!==a&&(r.text=this.sanitizeText(a.text.trim()),r.text.startsWith('"')&&r.text.endsWith('"')&&(r.text=r.text.substring(1,r.text.length-1)),r.labelType=this.sanitizeNodeLabelType(a.type)),void 0!==s&&(r.type=s.type,r.stroke=s.stroke,r.length=s.length>10?10:s.length),i&&!this.edges.some(t=>t.id===i))r.id=i,r.isUserDefinedId=!0;else{let t=this.edges.filter(t=>t.start===r.start&&t.end===r.end);0===t.length?r.id=(0,c.rY)(r.start,r.end,{counter:0,prefix:"L"}):r.id=(0,c.rY)(r.start,r.end,{counter:t.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))d.R.info("Pushing edge..."),this.edges.push(r);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. - -Initialize mermaid with maxEdges set to a higher number to allow more edges. -You cannot set this config via configuration inside the diagram as it is a secure config. -You have to call mermaid.initialize.`)}isLinkData(t){return null!==t&&"object"==typeof t&&"id"in t&&"string"==typeof t.id}addLink(t,e,s){let i=this.isLinkData(s)?s.id.replace("@",""):void 0;for(let r of(d.R.info("addLink",t,e,i),t))for(let a of e){let n=r===t[t.length-1],u=a===e[0];n&&u?this.addSingleLink(r,a,s,i):this.addSingleLink(r,a,s,void 0)}}updateLinkInterpolate(t,e){t.forEach(t=>{"default"===t?this.edges.defaultInterpolate=e:this.edges[t].interpolate=e})}updateLink(t,e){t.forEach(t=>{if("number"==typeof t&&t>=this.edges.length)throw Error(`The index ${t} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===t?this.edges.defaultStyle=e:(this.edges[t].style=e,(this.edges[t]?.style?.length??0)>0&&!this.edges[t]?.style?.some(t=>t?.startsWith("fill"))&&this.edges[t]?.style?.push("fill:none"))})}addClass(t,e){let s=e.join().replace(/\\,/g,"\xa7\xa7\xa7").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach(t=>{let e=this.classes.get(t);void 0===e&&(e={id:t,styles:[],textStyles:[]},this.classes.set(t,e)),null!=s&&s.forEach(t=>{if(/color/.exec(t)){let s=t.replace("fill","bgFill");e.textStyles.push(s)}e.styles.push(t)})})}setDirection(t){this.direction=t.trim(),/.*/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),"TD"===this.direction&&(this.direction="TB")}setClass(t,e){for(let s of t.split(",")){let t=this.vertices.get(s);t&&t.classes.push(e);let i=this.edges.find(t=>t.id===s);i&&i.classes.push(e);let r=this.subGraphLookup.get(s);r&&r.classes.push(e)}}setTooltip(t,e){if(void 0!==e)for(let s of(e=this.sanitizeText(e),t.split(",")))this.tooltips.set("gen-1"===this.version?this.lookUpDomId(s):s,e)}setClickFun(t,e,s){if("loose"!==(0,h.D7)().securityLevel||void 0===e)return;let i=[];if("string"==typeof s){i=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t{let s=this.lookUpDomId(t),r=document.querySelector(`[id="${s}"]`);null!==r&&r.addEventListener("click",()=>{c._K.runFunc(e,...i)},!1)}))}setLink(t,e,s){t.split(",").forEach(t=>{let i=this.vertices.get(t);void 0!==i&&(i.link=c._K.formatUrl(e,this.config),i.linkTarget=s)}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,e,s){t.split(",").forEach(t=>{this.setClickFun(t,e,s)}),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach(e=>{e(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){let e=(0,l.Ck)();(0,g.Ltv)(t).select("svg").selectAll("g.node").on("mouseover",t=>{let s=(0,g.Ltv)(t.currentTarget),i=s.attr("title");if(null===i)return;let r=t.currentTarget?.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(s.attr("title")).style("left",window.scrollX+r.left+(r.right-r.left)/2+"px").style("top",window.scrollY+r.bottom+"px"),e.html(A.A.sanitize(i)),s.classed("hover",!0)}).on("mouseout",t=>{e.transition().duration(500).style("opacity",0),(0,g.Ltv)(t.currentTarget).classed("hover",!1)})}clear(t="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=(0,h.D7)(),(0,h.IU)()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,e,s){let i=t.text.trim(),r=s.text;t===s&&/\s/.exec(s.text)&&(i=void 0);let a=(0,p.K)(t=>{let e,s={boolean:{},number:{},string:{}},i=[];return{nodeList:t.filter(function(t){let r=typeof t;return t.stmt&&"dir"===t.stmt?(e=t.value,!1):""!==t.trim()&&(r in s?!s[r].hasOwnProperty(t)&&(s[r][t]=!0):!i.includes(t)&&i.push(t))}),dir:e}},"uniq")(e.flat()),n=a.nodeList,u=a.dir,l=(0,h.D7)().flowchart??{};if(u=u??(l.inheritDir?this.getDirection()??(0,h.D7)().direction??void 0:void 0),"gen-1"===this.version)for(let t=0;t2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=e,this.subGraphs[e].id===t)return{result:!0,count:0};let i=0,r=1;for(;i=0){let s=this.indexNodes2(t,e);if(s.result)return{result:!0,count:r+s.count};r+=s.count}i+=1}return{result:!1,count:r}}getDepthFirstPos(t){return this.posCrossRef[t]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return!!this.firstGraphFlag&&(this.firstGraphFlag=!1,!0)}destructStartLink(t){let e=t.trim(),s="arrow_open";switch(e[0]){case"<":s="arrow_point",e=e.slice(1);break;case"x":s="arrow_cross",e=e.slice(1);break;case"o":s="arrow_circle",e=e.slice(1)}let i="normal";return e.includes("=")&&(i="thick"),e.includes(".")&&(i="dotted"),{type:s,stroke:i}}countChar(t,e){let s=e.length,i=0;for(let r=0;r":i="arrow_point",e.startsWith("<")&&(i="double_"+i,s=s.slice(1));break;case"o":i="arrow_circle",e.startsWith("o")&&(i="double_"+i,s=s.slice(1))}let r="normal",a=s.length-1;s.startsWith("=")&&(r="thick"),s.startsWith("~")&&(r="invisible");let n=this.countChar(".",s);return n&&(r="dotted",a=n),{type:i,stroke:r,length:a}}destructLink(t,e){let s,i=this.destructEndLink(t);if(e){if((s=this.destructStartLink(e)).stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===s.type)s.type=i.type;else{if(s.type!==i.type)return{type:"INVALID",stroke:"INVALID"};s.type="double_"+s.type}return"double_arrow"===s.type&&(s.type="double_arrow_point"),s.length=i.length,s}return i}exists(t,e){for(let s of t)if(s.nodes.includes(e))return!0;return!1}makeUniq(t,e){let s=[];return t.nodes.forEach((i,r)=>{this.exists(e,i)||s.push(t.nodes[r])}),{nodes:s}}getTypeFromVertex(t){if(t.img)return"imageSquare";if(t.icon)return"circle"===t.form?"iconCircle":"square"===t.form?"iconSquare":"rounded"===t.form?"iconRounded":"icon";switch(t.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t.type}}findNode(t,e){return t.find(t=>t.id===e)}destructEdgeType(t){let e="none",s="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":s=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":s=e=t.replace("double_","")}return{arrowTypeStart:e,arrowTypeEnd:s}}addNodeFromVertex(t,e,s,i,r,a){let n=s.get(t.id),u=i.get(t.id)??!1,l=this.findNode(e,t.id);if(l)l.cssStyles=t.styles,l.cssCompiledStyles=this.getCompiledStyles(t.classes),l.cssClasses=t.classes.join(" ");else{let s={id:t.id,label:t.text,labelType:t.labelType,labelStyle:"",parentId:n,padding:r.flowchart?.padding||8,cssStyles:t.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:a,link:t.link,linkTarget:t.linkTarget,tooltip:this.getTooltip(t.id),icon:t.icon,pos:t.pos,img:t.img,assetWidth:t.assetWidth,assetHeight:t.assetHeight,constraint:t.constraint};u?e.push({...s,isGroup:!0,shape:"rect"}):e.push({...s,isGroup:!1,shape:this.getTypeFromVertex(t)})}}getCompiledStyles(t){let e=[];for(let s of t){let t=this.classes.get(s);t?.styles&&(e=[...e,...t.styles??[]].map(t=>t.trim())),t?.textStyles&&(e=[...e,...t.textStyles??[]].map(t=>t.trim()))}return e}getData(){let t=(0,h.D7)(),e=[],s=[],i=this.getSubGraphs(),r=new Map,a=new Map,n=new Map;for(let t of i)for(let e of t.nodes)this.subGraphLookup.has(e)&&n.set(e,t.id);let u=(0,p.K)(t=>this.subGraphLookup.get(t)?.metadata?.view==="collapsed","isCollapsed"),l=(0,p.K)(t=>{let e,s=new Set,i=t;for(;void 0!==i&&!s.has(i);)s.add(i),u(i)&&(e=i),i=n.get(i);return e},"outermostCollapsed"),o=new Set,d=new Map;for(let t of i){let e=l(t.id);if(void 0!==e)for(let s of(t.id!==e&&(o.add(t.id),d.set(t.id,e)),t.nodes))s!==e&&(o.add(s),d.set(s,e))}for(let t=i.length-1;t>=0;t--){let e=i[t];if(!o.has(e.id))for(let t of(e.nodes.length>0&&a.set(e.id,!0),e.nodes))r.set(t,e.id)}for(let s=i.length-1;s>=0;s--){let a=i[s];o.has(a.id)||(a.metadata?.view==="collapsed"?e.push({id:a.id,label:a.title,labelStyle:"",labelType:a.labelType,parentId:r.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(" "),shape:"collapsedGroup",dir:a.dir,isGroup:!1,look:t.look}):e.push({id:a.id,label:a.title,labelStyle:"",labelType:a.labelType,parentId:r.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(" "),shape:"rect",dir:a.dir,isGroup:!0,look:t.look}))}this.getVertices().forEach(s=>{o.has(s.id)||this.addNodeFromVertex(s,e,r,a,t,t.look||"classic")});let g=this.getEdges();return g.forEach((e,i)=>{let{arrowTypeStart:r,arrowTypeEnd:a}=this.destructEdgeType(e.type),n=[...g.defaultStyle??[]],u=d.get(e.start)??e.start,l=d.get(e.end)??e.end;if(u===l&&(d.has(e.start)||d.has(e.end)))return;e.style&&n.push(...e.style);let o={id:(0,c.rY)(u,l,{counter:i,prefix:"L"},e.id),isUserDefinedId:e.isUserDefinedId,start:u,end:l,type:e.type??"normal",label:e.text,labelType:e.labelType,labelpos:"c",thickness:e.stroke,minlen:e.length,classes:e?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:e?.stroke==="invisible"||e?.type==="arrow_open"?"none":r,arrowTypeEnd:e?.stroke==="invisible"||e?.type==="arrow_open"?"none":a,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(e.classes),labelStyle:n,style:n,pattern:e.stroke,look:t.look,animate:e.animate,animation:e.animation,curve:e.interpolate||this.edges.defaultInterpolate||t.flowchart?.curve};s.push(o)}),{nodes:e,edges:s,other:{},config:t}}defaultConfig(){return h.ME.flowchart}},f={getClasses:(0,p.K)(function(t,e){return e.db.getClasses()},"getClasses"),draw:(0,p.K)(async function(t,e,s,i){d.R.info("REF0:"),d.R.info("Drawing state diagram (v2)",e);let{securityLevel:n,flowchart:l,layout:o}=(0,h.D7)();i.db.setDiagramId(e),d.R.debug("Before getData: ");let p=i.db.getData();d.R.debug("Data: ",p);let g=(0,r.A)(e,n),A=i.db.getDirection();p.type=i.type,p.layoutAlgorithm=(0,u.q7)(o),"dagre"===p.layoutAlgorithm&&"elk"===o&&d.R.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),p.direction=A,p.nodeSpacing=l?.nodeSpacing||50,p.rankSpacing=l?.rankSpacing||50,p.markers=["point","circle","cross"],p.diagramId=e,d.R.debug("REF1:",p),await (0,u.XX)(p,g);let b=p.config.flowchart?.diagramPadding??8;c._K.insertTitle(g,"flowchartTitleText",l?.titleTopMargin||0,i.db.getDiagramTitle()),(0,a.P)(g,b,"flowchart",l?.useMaxWidth||!1)},"draw")},m=function(){var t=(0,p.K)(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,4],s=[1,3],i=[1,5],r=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],a=[2,2],n=[1,13],u=[1,14],l=[1,15],o=[1,16],c=[1,23],h=[1,25],d=[1,26],g=[1,27],A=[1,50],b=[1,49],y=[1,29],k=[1,30],f=[1,31],m=[1,32],x=[1,33],E=[1,45],C=[1,47],D=[1,43],T=[1,48],F=[1,44],S=[1,51],_=[1,46],v=[1,52],B=[1,53],L=[1,34],w=[1,35],$=[1,36],I=[1,37],R=[1,38],N=[1,58],K=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],P=[1,62],G=[1,61],O=[1,63],M=[8,9,11,75,77,78],V=[1,79],U=[1,92],W=[1,97],z=[1,96],j=[1,93],Y=[1,89],H=[1,95],X=[1,91],q=[1,98],Q=[1,94],J=[1,99],Z=[1,90],tt=[8,9,10,11,40,75,77,78],te=[8,9,10,11,40,46,75,77,78],ts=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ti=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],tr=[44,60,89,102,105,106,109,111,114,115,116],ta=[1,122],tn=[1,123],tu=[1,125],tl=[1,124],to=[44,60,62,74,89,102,105,106,109,111,114,115,116],tc=[1,134],th=[1,148],td=[1,149],tp=[1,150],tg=[1,151],tA=[1,136],tb=[1,138],ty=[1,142],tk=[1,143],tf=[1,144],tm=[1,145],tx=[1,146],tE=[1,147],tC=[1,152],tD=[1,153],tT=[1,132],tF=[1,133],tS=[1,140],t_=[1,135],tv=[1,139],tB=[1,137],tL=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],tw=[1,155],t$=[1,157],tI=[8,9,11],tR=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],tN=[1,177],tK=[1,173],tP=[1,174],tG=[1,178],tO=[1,175],tM=[1,176],tV=[77,116,119],tU=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],tW=[10,106],tz=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],tj=[1,248],tY=[1,246],tH=[1,250],tX=[1,244],tq=[1,245],tQ=[1,247],tJ=[1,249],tZ=[1,251],t1=[1,269],t0=[8,9,11,106],t2=[8,9,10,11,60,84,105,106,109,110,111,112],t8={trace:(0,p.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:(0,p.K)(function(t,e,s,i,r,a,n){var u=a.length-1;switch(r){case 2:case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 3:(!Array.isArray(a[u])||a[u].length>0)&&a[u-1].push(a[u]),this.$=a[u-1];break;case 4:case 183:case 44:case 54:case 76:case 181:this.$=a[u];break;case 11:i.setDirection("TB"),this.$="TB";break;case 12:i.setDirection(a[u-1]),this.$=a[u-1];break;case 27:this.$=a[u-1].nodes;break;case 33:this.$=i.addSubGraph(a[u-6],a[u-1],a[u-4]);break;case 34:this.$=i.addSubGraph(a[u-3],a[u-1],a[u-3]);break;case 35:this.$=i.addSubGraph(void 0,a[u-1],void 0);break;case 37:this.$=a[u].trim(),i.setAccTitle(this.$);break;case 38:case 39:this.$=a[u].trim(),i.setAccDescription(this.$);break;case 43:case 133:this.$=a[u-1]+a[u];break;case 45:i.addVertex(a[u-1][a[u-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[u]),i.addLink(a[u-3].stmt,a[u-1],a[u-2]),this.$={stmt:a[u-1],nodes:a[u-1].concat(a[u-3].nodes)};break;case 46:i.addLink(a[u-2].stmt,a[u],a[u-1]),this.$={stmt:a[u],nodes:a[u].concat(a[u-2].nodes)};break;case 47:i.addLink(a[u-3].stmt,a[u-1],a[u-2]),this.$={stmt:a[u-1],nodes:a[u-1].concat(a[u-3].nodes)};break;case 48:this.$={stmt:a[u-1],nodes:a[u-1]};break;case 49:i.addVertex(a[u-1][a[u-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[u]),this.$={stmt:a[u-1],nodes:a[u-1],shapeData:a[u]};break;case 50:this.$={stmt:a[u],nodes:a[u]};break;case 51:case 128:case 130:this.$=[a[u]];break;case 52:i.addVertex(a[u-5][a[u-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[u-4]),this.$=a[u-5].concat(a[u]);break;case 53:this.$=a[u-4].concat(a[u]);break;case 55:this.$=a[u-2],i.setClass(a[u-2],a[u]);break;case 56:this.$=a[u-3],i.addVertex(a[u-3],a[u-1],"square");break;case 57:this.$=a[u-3],i.addVertex(a[u-3],a[u-1],"doublecircle");break;case 58:this.$=a[u-5],i.addVertex(a[u-5],a[u-2],"circle");break;case 59:this.$=a[u-3],i.addVertex(a[u-3],a[u-1],"ellipse");break;case 60:this.$=a[u-3],i.addVertex(a[u-3],a[u-1],"stadium");break;case 61:this.$=a[u-3],i.addVertex(a[u-3],a[u-1],"subroutine");break;case 62:this.$=a[u-7],i.addVertex(a[u-7],a[u-1],"rect",void 0,void 0,void 0,Object.fromEntries([[a[u-5],a[u-3]]]));break;case 63:this.$=a[u-3],i.addVertex(a[u-3],a[u-1],"cylinder");break;case 64:this.$=a[u-3],i.addVertex(a[u-3],a[u-1],"round");break;case 65:this.$=a[u-3],i.addVertex(a[u-3],a[u-1],"diamond");break;case 66:this.$=a[u-5],i.addVertex(a[u-5],a[u-2],"hexagon");break;case 67:this.$=a[u-3],i.addVertex(a[u-3],a[u-1],"odd");break;case 68:this.$=a[u-3],i.addVertex(a[u-3],a[u-1],"trapezoid");break;case 69:this.$=a[u-3],i.addVertex(a[u-3],a[u-1],"inv_trapezoid");break;case 70:this.$=a[u-3],i.addVertex(a[u-3],a[u-1],"lean_right");break;case 71:this.$=a[u-3],i.addVertex(a[u-3],a[u-1],"lean_left");break;case 72:this.$=a[u],i.addVertex(a[u]);break;case 73:a[u-1].text=a[u],this.$=a[u-1];break;case 74:case 75:a[u-2].text=a[u-1],this.$=a[u-2];break;case 77:var l=i.destructLink(a[u],a[u-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:a[u-1]};break;case 78:var l=i.destructLink(a[u],a[u-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:a[u-1],id:a[u-3]};break;case 79:case 86:case 101:case 103:this.$={text:a[u],type:"text"};break;case 80:case 87:case 102:this.$={text:a[u-1].text+""+a[u],type:a[u-1].type};break;case 81:case 88:this.$={text:a[u],type:"string"};break;case 82:case 89:case 104:this.$={text:a[u],type:"markdown"};break;case 83:var l=i.destructLink(a[u]);this.$={type:l.type,stroke:l.stroke,length:l.length};break;case 84:var l=i.destructLink(a[u]);this.$={type:l.type,stroke:l.stroke,length:l.length,id:a[u-1]};break;case 85:this.$=a[u-1];break;case 105:this.$=a[u-4],i.addClass(a[u-2],a[u]);break;case 106:this.$=a[u-4],i.setClass(a[u-2],a[u]);break;case 107:case 115:this.$=a[u-1],i.setClickEvent(a[u-1],a[u]);break;case 108:case 116:this.$=a[u-3],i.setClickEvent(a[u-3],a[u-2]),i.setTooltip(a[u-3],a[u]);break;case 109:this.$=a[u-2],i.setClickEvent(a[u-2],a[u-1],a[u]);break;case 110:this.$=a[u-4],i.setClickEvent(a[u-4],a[u-3],a[u-2]),i.setTooltip(a[u-4],a[u]);break;case 111:this.$=a[u-2],i.setLink(a[u-2],a[u]);break;case 112:this.$=a[u-4],i.setLink(a[u-4],a[u-2]),i.setTooltip(a[u-4],a[u]);break;case 113:this.$=a[u-4],i.setLink(a[u-4],a[u-2],a[u]);break;case 114:this.$=a[u-6],i.setLink(a[u-6],a[u-4],a[u]),i.setTooltip(a[u-6],a[u-2]);break;case 117:this.$=a[u-1],i.setLink(a[u-1],a[u]);break;case 118:this.$=a[u-3],i.setLink(a[u-3],a[u-2]),i.setTooltip(a[u-3],a[u]);break;case 119:this.$=a[u-3],i.setLink(a[u-3],a[u-2],a[u]);break;case 120:this.$=a[u-5],i.setLink(a[u-5],a[u-4],a[u]),i.setTooltip(a[u-5],a[u-2]);break;case 121:this.$=a[u-4],i.addVertex(a[u-2],void 0,void 0,a[u]);break;case 122:this.$=a[u-4],i.updateLink([a[u-2]],a[u]);break;case 123:this.$=a[u-4],i.updateLink(a[u-2],a[u]);break;case 124:this.$=a[u-8],i.updateLinkInterpolate([a[u-6]],a[u-2]),i.updateLink([a[u-6]],a[u]);break;case 125:this.$=a[u-8],i.updateLinkInterpolate(a[u-6],a[u-2]),i.updateLink(a[u-6],a[u]);break;case 126:this.$=a[u-6],i.updateLinkInterpolate([a[u-4]],a[u]);break;case 127:this.$=a[u-6],i.updateLinkInterpolate(a[u-4],a[u]);break;case 129:case 131:a[u-2].push(a[u]),this.$=a[u-2];break;case 182:case 184:this.$=a[u-1]+""+a[u];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"}}},"anonymous"),table:[{3:1,4:2,9:e,10:s,12:i},{1:[3]},t(r,a,{5:6}),{4:7,9:e,10:s,12:i},{4:8,9:e,10:s,12:i},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:n,9:u,10:l,11:o,20:17,22:18,23:19,24:20,25:21,26:22,27:c,33:24,34:h,36:d,38:g,42:28,43:39,44:A,45:40,47:41,60:b,84:y,85:k,86:f,87:m,88:x,89:E,102:C,105:D,106:T,109:F,111:S,113:42,114:_,115:v,116:B,121:L,122:w,123:$,124:I,125:R},t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),{8:[1,55],9:[1,56],10:N,15:54,18:57},t(K,[2,3]),t(K,[2,4]),t(K,[2,5]),t(K,[2,6]),t(K,[2,7]),t(K,[2,8]),{8:P,9:G,11:O,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:P,9:G,11:O,21:68},{8:P,9:G,11:O,21:69},{8:P,9:G,11:O,21:70},{8:P,9:G,11:O,21:71},{8:P,9:G,11:O,21:72},{8:P,9:G,10:[1,73],11:O,21:74},t(K,[2,36]),{35:[1,75]},{37:[1,76]},t(K,[2,39]),t(M,[2,50],{18:77,39:78,10:N,40:V}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:U,44:W,60:z,80:[1,87],89:j,95:[1,84],97:[1,85],101:86,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z,120:88},t(K,[2,185]),t(K,[2,186]),t(K,[2,187]),t(K,[2,188]),t(K,[2,189]),t(tt,[2,51]),t(tt,[2,54],{46:[1,100]}),t(te,[2,72],{113:113,29:[1,101],44:A,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:b,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:E,102:C,105:D,106:T,109:F,111:S,114:_,115:v,116:B}),t(ts,[2,181]),t(ts,[2,142]),t(ts,[2,143]),t(ts,[2,144]),t(ts,[2,145]),t(ts,[2,146]),t(ts,[2,147]),t(ts,[2,148]),t(ts,[2,149]),t(ts,[2,150]),t(ts,[2,151]),t(ts,[2,152]),t(r,[2,12]),t(r,[2,18]),t(r,[2,19]),{9:[1,114]},t(ti,[2,26],{18:115,10:N}),t(K,[2,27]),{42:116,43:39,44:A,45:40,47:41,60:b,89:E,102:C,105:D,106:T,109:F,111:S,113:42,114:_,115:v,116:B},t(K,[2,40]),t(K,[2,41]),t(K,[2,42]),t(tr,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:ta,81:tn,116:tu,119:tl},{75:[1,126],77:[1,127]},t(to,[2,83]),t(K,[2,28]),t(K,[2,29]),t(K,[2,30]),t(K,[2,31]),t(K,[2,32]),{10:tc,12:th,14:td,27:tp,28:128,32:tg,44:tA,60:tb,75:ty,80:[1,130],81:[1,131],83:141,84:tk,85:tf,86:tm,87:tx,88:tE,89:tC,90:tD,91:129,105:tT,109:tF,111:tS,114:t_,115:tv,116:tB},t(tL,a,{5:154}),t(K,[2,37]),t(K,[2,38]),t(M,[2,48],{44:tw}),t(M,[2,49],{18:156,10:N,40:t$}),t(tt,[2,44]),{44:A,47:158,60:b,89:E,102:C,105:D,106:T,109:F,111:S,113:42,114:_,115:v,116:B},{102:[1,159],103:160,105:[1,161]},{44:A,47:162,60:b,89:E,102:C,105:D,106:T,109:F,111:S,113:42,114:_,115:v,116:B},{44:A,47:163,60:b,89:E,102:C,105:D,106:T,109:F,111:S,113:42,114:_,115:v,116:B},t(tI,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},t(tI,[2,115],{120:168,10:[1,167],14:U,44:W,60:z,89:j,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z}),t(tI,[2,117],{10:[1,169]}),t(tR,[2,183]),t(tR,[2,170]),t(tR,[2,171]),t(tR,[2,172]),t(tR,[2,173]),t(tR,[2,174]),t(tR,[2,175]),t(tR,[2,176]),t(tR,[2,177]),t(tR,[2,178]),t(tR,[2,179]),t(tR,[2,180]),{44:A,47:170,60:b,89:E,102:C,105:D,106:T,109:F,111:S,113:42,114:_,115:v,116:B},{30:171,67:tN,80:tK,81:tP,82:172,116:tG,117:tO,118:tM},{30:179,67:tN,80:tK,81:tP,82:172,116:tG,117:tO,118:tM},{30:181,50:[1,180],67:tN,80:tK,81:tP,82:172,116:tG,117:tO,118:tM},{30:182,67:tN,80:tK,81:tP,82:172,116:tG,117:tO,118:tM},{30:183,67:tN,80:tK,81:tP,82:172,116:tG,117:tO,118:tM},{30:184,67:tN,80:tK,81:tP,82:172,116:tG,117:tO,118:tM},{109:[1,185]},{30:186,67:tN,80:tK,81:tP,82:172,116:tG,117:tO,118:tM},{30:187,65:[1,188],67:tN,80:tK,81:tP,82:172,116:tG,117:tO,118:tM},{30:189,67:tN,80:tK,81:tP,82:172,116:tG,117:tO,118:tM},{30:190,67:tN,80:tK,81:tP,82:172,116:tG,117:tO,118:tM},{30:191,67:tN,80:tK,81:tP,82:172,116:tG,117:tO,118:tM},t(ts,[2,182]),t(r,[2,20]),t(ti,[2,25]),t(M,[2,46],{39:192,18:193,10:N,40:V}),t(tr,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:tN,80:tK,81:tP,82:172,116:tG,117:tO,118:tM},{77:[1,197],79:198,116:tu,119:tl},t(tV,[2,79]),t(tV,[2,81]),t(tV,[2,82]),t(tV,[2,168]),t(tV,[2,169]),{76:199,79:121,80:ta,81:tn,116:tu,119:tl},t(to,[2,84]),{8:P,9:G,10:tc,11:O,12:th,14:td,21:201,27:tp,29:[1,200],32:tg,44:tA,60:tb,75:ty,83:141,84:tk,85:tf,86:tm,87:tx,88:tE,89:tC,90:tD,91:202,105:tT,109:tF,111:tS,114:t_,115:tv,116:tB},t(tU,[2,101]),t(tU,[2,103]),t(tU,[2,104]),t(tU,[2,157]),t(tU,[2,158]),t(tU,[2,159]),t(tU,[2,160]),t(tU,[2,161]),t(tU,[2,162]),t(tU,[2,163]),t(tU,[2,164]),t(tU,[2,165]),t(tU,[2,166]),t(tU,[2,167]),t(tU,[2,90]),t(tU,[2,91]),t(tU,[2,92]),t(tU,[2,93]),t(tU,[2,94]),t(tU,[2,95]),t(tU,[2,96]),t(tU,[2,97]),t(tU,[2,98]),t(tU,[2,99]),t(tU,[2,100]),{6:11,7:12,8:n,9:u,10:l,11:o,20:17,22:18,23:19,24:20,25:21,26:22,27:c,32:[1,203],33:24,34:h,36:d,38:g,42:28,43:39,44:A,45:40,47:41,60:b,84:y,85:k,86:f,87:m,88:x,89:E,102:C,105:D,106:T,109:F,111:S,113:42,114:_,115:v,116:B,121:L,122:w,123:$,124:I,125:R},{10:N,18:204},{44:[1,205]},t(tt,[2,43]),{10:[1,206],44:A,60:b,89:E,102:C,105:D,106:T,109:F,111:S,113:113,114:_,115:v,116:B},{10:[1,207]},{10:[1,208],106:[1,209]},t(tW,[2,128]),{10:[1,210],44:A,60:b,89:E,102:C,105:D,106:T,109:F,111:S,113:113,114:_,115:v,116:B},{10:[1,211],44:A,60:b,89:E,102:C,105:D,106:T,109:F,111:S,113:113,114:_,115:v,116:B},{80:[1,212]},t(tI,[2,109],{10:[1,213]}),t(tI,[2,111],{10:[1,214]}),{80:[1,215]},t(tR,[2,184]),{80:[1,216],98:[1,217]},t(tt,[2,55],{113:113,44:A,60:b,89:E,102:C,105:D,106:T,109:F,111:S,114:_,115:v,116:B}),{31:[1,218],67:tN,82:219,116:tG,117:tO,118:tM},t(tz,[2,86]),t(tz,[2,88]),t(tz,[2,89]),t(tz,[2,153]),t(tz,[2,154]),t(tz,[2,155]),t(tz,[2,156]),{49:[1,220],67:tN,82:219,116:tG,117:tO,118:tM},{30:221,67:tN,80:tK,81:tP,82:172,116:tG,117:tO,118:tM},{51:[1,222],67:tN,82:219,116:tG,117:tO,118:tM},{53:[1,223],67:tN,82:219,116:tG,117:tO,118:tM},{55:[1,224],67:tN,82:219,116:tG,117:tO,118:tM},{57:[1,225],67:tN,82:219,116:tG,117:tO,118:tM},{60:[1,226]},{64:[1,227],67:tN,82:219,116:tG,117:tO,118:tM},{66:[1,228],67:tN,82:219,116:tG,117:tO,118:tM},{30:229,67:tN,80:tK,81:tP,82:172,116:tG,117:tO,118:tM},{31:[1,230],67:tN,82:219,116:tG,117:tO,118:tM},{67:tN,69:[1,231],71:[1,232],82:219,116:tG,117:tO,118:tM},{67:tN,69:[1,234],71:[1,233],82:219,116:tG,117:tO,118:tM},t(M,[2,45],{18:156,10:N,40:t$}),t(M,[2,47],{44:tw}),t(tr,[2,75]),t(tr,[2,74]),{62:[1,235],67:tN,82:219,116:tG,117:tO,118:tM},t(tr,[2,77]),t(tV,[2,80]),{77:[1,236],79:198,116:tu,119:tl},{30:237,67:tN,80:tK,81:tP,82:172,116:tG,117:tO,118:tM},t(tL,a,{5:238}),t(tU,[2,102]),t(K,[2,35]),{43:239,44:A,45:40,47:41,60:b,89:E,102:C,105:D,106:T,109:F,111:S,113:42,114:_,115:v,116:B},{10:N,18:240},{10:tj,60:tY,84:tH,92:241,105:tX,107:242,108:243,109:tq,110:tQ,111:tJ,112:tZ},{10:tj,60:tY,84:tH,92:252,104:[1,253],105:tX,107:242,108:243,109:tq,110:tQ,111:tJ,112:tZ},{10:tj,60:tY,84:tH,92:254,104:[1,255],105:tX,107:242,108:243,109:tq,110:tQ,111:tJ,112:tZ},{105:[1,256]},{10:tj,60:tY,84:tH,92:257,105:tX,107:242,108:243,109:tq,110:tQ,111:tJ,112:tZ},{44:A,47:258,60:b,89:E,102:C,105:D,106:T,109:F,111:S,113:42,114:_,115:v,116:B},t(tI,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},t(tI,[2,116]),t(tI,[2,118],{10:[1,262]}),t(tI,[2,119]),t(te,[2,56]),t(tz,[2,87]),t(te,[2,57]),{51:[1,263],67:tN,82:219,116:tG,117:tO,118:tM},t(te,[2,64]),t(te,[2,59]),t(te,[2,60]),t(te,[2,61]),{109:[1,264]},t(te,[2,63]),t(te,[2,65]),{66:[1,265],67:tN,82:219,116:tG,117:tO,118:tM},t(te,[2,67]),t(te,[2,68]),t(te,[2,70]),t(te,[2,69]),t(te,[2,71]),t([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),t(tr,[2,78]),{31:[1,266],67:tN,82:219,116:tG,117:tO,118:tM},{6:11,7:12,8:n,9:u,10:l,11:o,20:17,22:18,23:19,24:20,25:21,26:22,27:c,32:[1,267],33:24,34:h,36:d,38:g,42:28,43:39,44:A,45:40,47:41,60:b,84:y,85:k,86:f,87:m,88:x,89:E,102:C,105:D,106:T,109:F,111:S,113:42,114:_,115:v,116:B,121:L,122:w,123:$,124:I,125:R},t(tt,[2,53]),{43:268,44:A,45:40,47:41,60:b,89:E,102:C,105:D,106:T,109:F,111:S,113:42,114:_,115:v,116:B},t(tI,[2,121],{106:t1}),t(t0,[2,130],{108:270,10:tj,60:tY,84:tH,105:tX,109:tq,110:tQ,111:tJ,112:tZ}),t(t2,[2,132]),t(t2,[2,134]),t(t2,[2,135]),t(t2,[2,136]),t(t2,[2,137]),t(t2,[2,138]),t(t2,[2,139]),t(t2,[2,140]),t(t2,[2,141]),t(tI,[2,122],{106:t1}),{10:[1,271]},t(tI,[2,123],{106:t1}),{10:[1,272]},t(tW,[2,129]),t(tI,[2,105],{106:t1}),t(tI,[2,106],{113:113,44:A,60:b,89:E,102:C,105:D,106:T,109:F,111:S,114:_,115:v,116:B}),t(tI,[2,110]),t(tI,[2,112],{10:[1,273]}),t(tI,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:P,9:G,11:O,21:278},t(K,[2,34]),t(tt,[2,52]),{10:tj,60:tY,84:tH,105:tX,107:279,108:243,109:tq,110:tQ,111:tJ,112:tZ},t(t2,[2,133]),{14:U,44:W,60:z,89:j,101:280,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z,120:88},{14:U,44:W,60:z,89:j,101:281,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z,120:88},{98:[1,282]},t(tI,[2,120]),t(te,[2,58]),{30:283,67:tN,80:tK,81:tP,82:172,116:tG,117:tO,118:tM},t(te,[2,66]),t(tL,a,{5:284}),t(t0,[2,131],{108:270,10:tj,60:tY,84:tH,105:tX,109:tq,110:tQ,111:tJ,112:tZ}),t(tI,[2,126],{120:168,10:[1,285],14:U,44:W,60:z,89:j,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z}),t(tI,[2,127],{120:168,10:[1,286],14:U,44:W,60:z,89:j,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z}),t(tI,[2,114]),{31:[1,287],67:tN,82:219,116:tG,117:tO,118:tM},{6:11,7:12,8:n,9:u,10:l,11:o,20:17,22:18,23:19,24:20,25:21,26:22,27:c,32:[1,288],33:24,34:h,36:d,38:g,42:28,43:39,44:A,45:40,47:41,60:b,84:y,85:k,86:f,87:m,88:x,89:E,102:C,105:D,106:T,109:F,111:S,113:42,114:_,115:v,116:B,121:L,122:w,123:$,124:I,125:R},{10:tj,60:tY,84:tH,92:289,105:tX,107:242,108:243,109:tq,110:tQ,111:tJ,112:tZ},{10:tj,60:tY,84:tH,92:290,105:tX,107:242,108:243,109:tq,110:tQ,111:tJ,112:tZ},t(te,[2,62]),t(K,[2,33]),t(tI,[2,124],{106:t1}),t(tI,[2,125],{106:t1})],defaultActions:{},parseError:(0,p.K)(function(t,e){if(e.recoverable)this.trace(t);else{var s=Error(t);throw s.hash=e,s}},"parseError"),parse:(0,p.K)(function(t){var e=this,s=[0],i=[],r=[null],a=[],n=this.table,u="",l=0,o=0,c=0,h=a.slice.call(arguments,1),d=Object.create(this.lexer),g={};for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy,A)&&(g[A]=this.yy[A]);d.setInput(t,g),g.lexer=d,g.parser=this,void 0===d.yylloc&&(d.yylloc={});var b=d.yylloc;a.push(b);var y=d.options&&d.options.ranges;function k(){var t;return"number"!=typeof(t=i.pop()||d.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.parseError?this.parseError=g.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,p.K)(function(t){s.length=s.length-2*t,r.length=r.length-t,a.length=a.length-t},"popStack"),(0,p.K)(k,"lex");for(var f,m,x,E,C,D,T,F,S,_={};;){if(x=s[s.length-1],this.defaultActions[x]?E=this.defaultActions[x]:(null==f&&(f=k()),E=n[x]&&n[x][f]),void 0===E||!E.length||!E[0]){var v="";for(D in S=[],n[x])this.terminals_[D]&&D>2&&S.push("'"+this.terminals_[D]+"'");v=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(v,{text:d.match,token:this.terminals_[f]||f,line:d.yylineno,loc:b,expected:S})}if(E[0]instanceof Array&&E.length>1)throw Error("Parse Error: multiple actions possible at state: "+x+", token: "+f);switch(E[0]){case 1:s.push(f),r.push(d.yytext),a.push(d.yylloc),s.push(E[1]),f=null,m?(f=m,m=null):(o=d.yyleng,u=d.yytext,l=d.yylineno,b=d.yylloc,c>0&&c--);break;case 2:if(T=this.productions_[E[1]][1],_.$=r[r.length-T],_._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},y&&(_._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(_,[u,o,l,g,E[1],r,a].concat(h))))return C;T&&(s=s.slice(0,-1*T*2),r=r.slice(0,-1*T),a=a.slice(0,-1*T)),s.push(this.productions_[E[1]][0]),r.push(_.$),a.push(_._$),F=n[s[s.length-2]][s[s.length-1]],s.push(F);break;case 3:return!0}}return!0},"parse")};function t6(){this.yy={}}return t8.lexer={EOF:1,parseError:(0,p.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,p.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,p.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,p.K)(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,p.K)(function(){return this._more=!0,this},"more"),reject:(0,p.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,p.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,p.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,p.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,p.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,p.K)(function(t,e){var s,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack)for(var a in r)this[a]=r[a];return!1},"test_match"),next:(0,p.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,s,i,r=this._currentRules(),a=0;ae[0].length)){if(e=s,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,r[a])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,p.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,p.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,p.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,p.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,p.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,p.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,p.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,p.K)(function(t,e,s,i){switch(s){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 12:case 14:case 17:case 20:case 23:case 33:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),e.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:return e.yytext=e.yytext.replace(/\n\s*/g,"
"),40;case 11:return 40;case 13:this.begin("callbackname");break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 18:return 96;case 19:return"MD_STR";case 21:this.begin("md_string");break;case 22:return"STR";case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 34:return 88;case 35:case 36:case 37:case 38:return t.lex.firstGraph()&&this.begin("dir"),12;case 39:return 27;case 40:return 32;case 41:case 42:case 43:case 44:return 98;case 45:return this.popState(),13;case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:return this.popState(),14;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:case 104:return 111;case 64:return 46;case 65:return 60;case 66:case 105:return 44;case 67:return 8;case 68:return 106;case 69:case 103:return 115;case 70:case 73:case 76:return this.popState(),77;case 71:return this.pushState("edgeText"),75;case 72:case 75:case 78:return 119;case 74:return this.pushState("thickEdgeText"),75;case 77:return this.pushState("dottedEdgeText"),75;case 79:return 77;case 80:return this.popState(),53;case 81:case 117:return"TEXT";case 82:return this.pushState("ellipseText"),52;case 83:return this.popState(),55;case 84:return this.pushState("text"),54;case 85:return this.popState(),57;case 86:return this.pushState("text"),56;case 87:return 58;case 88:return this.pushState("text"),67;case 89:return this.popState(),64;case 90:return this.pushState("text"),63;case 91:return this.popState(),49;case 92:return this.pushState("text"),48;case 93:return this.popState(),69;case 94:return this.popState(),71;case 95:return 117;case 96:return this.pushState("trapText"),68;case 97:return this.pushState("trapText"),70;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;case 110:return this.pushState("text"),62;case 111:return this.popState(),51;case 112:return this.pushState("text"),50;case 113:return this.popState(),31;case 114:return this.pushState("text"),29;case 115:return this.popState(),66;case 116:return this.pushState("text"),65;case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}},(0,p.K)(t6,"Parser"),t6.prototype=t8,t8.Parser=t6,new t6}();m.parser=m;var x=Object.assign({},m);x.parse=t=>{let e=t.replace(/}\s*\n/g,"}\n");return m.parse(e)};var E=(0,p.K)((t,e)=>{let s=b.A,i=s(t,"r"),r=s(t,"g"),a=s(t,"b");return y.A(i,r,a,e)},"fade"),C=(0,p.K)(t=>`.label { - font-family: ${t.fontFamily}; - color: ${t.nodeTextColor||t.textColor}; - } - .cluster-label text { - fill: ${t.titleColor}; - } - .cluster-label span { - color: ${t.titleColor}; - } - .cluster-label span p { - background-color: transparent; - } - - .label text,span { - fill: ${t.nodeTextColor||t.textColor}; - color: ${t.nodeTextColor||t.textColor}; - } - - .node rect, - .node circle, - .node ellipse, - .node polygon, - .node path { - fill: ${t.mainBkg}; - stroke: ${t.nodeBorder}; - stroke-width: ${t.strokeWidth??1}px; - } - .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label { - text-anchor: middle; - } - - .node .katex path { - fill: #000; - stroke: #000; - stroke-width: 1px; - } - - .rough-node .label,.node .label, .image-shape .label, .icon-shape .label { - text-align: center; - } - .node.clickable { - cursor: pointer; - } - - - .root .anchor path { - fill: ${t.lineColor} !important; - stroke-width: 0; - stroke: ${t.lineColor}; - } - - .arrowheadPath { - fill: ${t.arrowheadColor}; - } - - .edgePaths .path { - stroke: ${t.lineColor}; - stroke-width: ${t.strokeWidth??2}px; - } - - .flowchart-link { - stroke: ${t.lineColor}; - fill: none; - } - - .edgeLabel { - background-color: ${t.edgeLabelBackground}; - p { - background-color: ${t.edgeLabelBackground}; - } - rect { - opacity: 0.5; - background-color: ${t.edgeLabelBackground}; - fill: ${t.edgeLabelBackground}; - } - text-align: center; - } - - /* For html labels only */ - .labelBkg { - background-color: ${E(t.edgeLabelBackground,.5)}; - // background-color: - } - - .cluster rect { - fill: ${t.clusterBkg}; - stroke: ${t.clusterBorder}; - stroke-width: 1px; - } - - .cluster text { - fill: ${t.titleColor}; - } - - .cluster span { - color: ${t.titleColor}; - } - /* .cluster div { - color: ${t.titleColor}; - } */ - - /* Collapsed subgraph node (@{ view: collapsed }) */ - .node .collapsed-indicator { - fill: ${t.clusterBorder}; - stroke: none; - opacity: 0.6; - } - - .node .collapsed-separator { - stroke: ${t.clusterBorder}; - stroke-width: 0.75px; - } - - div.mermaidTooltip { - position: absolute; - text-align: center; - max-width: 200px; - padding: 2px; - font-family: ${t.fontFamily}; - font-size: 12px; - background: ${t.tertiaryColor}; - border: 1px solid ${t.border2}; - border-radius: 2px; - pointer-events: none; - z-index: 100; - } - - .flowchartTitleText { - text-anchor: middle; - font-size: 18px; - fill: ${t.textColor}; - } - - rect.text { - fill: none; - stroke-width: 0; - } - - .icon-shape, .image-shape { - background-color: ${t.edgeLabelBackground}; - p { - background-color: ${t.edgeLabelBackground}; - padding: 2px; - } - .label rect { - opacity: 0.5; - background-color: ${t.edgeLabelBackground}; - fill: ${t.edgeLabelBackground}; - } - text-align: center; - } - ${(0,i.o)()} -`,"getStyles"),D=(0,p.K)(({defaultLayout:t,styles:e=C}={})=>({parser:x,get db(){return new k},renderer:f,styles:e,init:(0,p.K)(e=>{e.flowchart||(e.flowchart={});let s=(0,h.TM)().layout??t??e.layout;s&&(0,h.XV)({layout:s}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,(0,h.XV)({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),T=D()}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2459.e7dba3820e8e2824.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2459.e7dba3820e8e2824.js deleted file mode 100644 index 2c8239147..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2459.e7dba3820e8e2824.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2459],{62459:(a,e,s)=>{s.d(e,{diagram:()=>k.AC});var k=s(92440);s(3392),s(74773),s(24002),s(44115),s(33807),s(33332),s(48734),s(11232),s(13031),s(69981),s(5663),s(82142),s(29278),s(13892),s(69301),s(98999),s(91158)}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2483.cc7d37cb7855171b.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2483.cc7d37cb7855171b.js deleted file mode 100644 index 4f294b1f7..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2483.cc7d37cb7855171b.js +++ /dev/null @@ -1,115 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2483],{22483:(t,e,i)=>{i.d(e,{diagram:()=>ti});var n=i(94191),r=i(13892),a=i(69301),s=i(98999),o=i(91158),l=i(70668),c=i(54333),h=i(80665),d=i(35177),u=function(){var t=(0,o.K)(function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},"o"),e=[6,11,13,14,15,17,19,20,23,24],i=[1,12],n=[1,13],r=[1,14],a=[1,15],s=[1,16],l=[1,19],c=[1,20],h={trace:(0,o.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:(0,o.K)(function(t,e,i,n,r,a,s){var o=a.length-1;switch(r){case 1:return a[o-1];case 3:n.setDirection("LR");break;case 4:n.setDirection("TD");break;case 5:case 9:case 10:this.$=[];break;case 6:a[o-1].push(a[o]),this.$=a[o-1];break;case 7:case 8:this.$=a[o];break;case 11:n.getCommonDb().setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 12:this.$=a[o].trim(),n.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[o].trim(),n.getCommonDb().setAccDescription(this.$);break;case 15:n.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 18:n.addTask(a[o],0,""),this.$=a[o];break;case 19:n.addEvent(a[o].substr(2)),this.$=a[o]}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},t(e,[2,5],{5:6}),t(e,[2,2]),t(e,[2,3]),t(e,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:i,15:n,17:r,19:a,20:s,21:17,22:18,23:l,24:c},t(e,[2,10],{1:[2,1]}),t(e,[2,6]),{12:21,14:i,15:n,17:r,19:a,20:s,21:17,22:18,23:l,24:c},t(e,[2,8]),t(e,[2,9]),t(e,[2,11]),{16:[1,22]},{18:[1,23]},t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,7]),t(e,[2,12]),t(e,[2,13])],defaultActions:{},parseError:(0,o.K)(function(t,e){if(e.recoverable)this.trace(t);else{var i=Error(t);throw i.hash=e,i}},"parseError"),parse:(0,o.K)(function(t){var e=this,i=[0],n=[],r=[null],a=[],s=this.table,l="",c=0,h=0,d=0,u=a.slice.call(arguments,1),p=Object.create(this.lexer),g={};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(g[f]=this.yy[f]);p.setInput(t,g),g.lexer=p,g.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;a.push(y);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=n.pop()||p.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.parseError?this.parseError=g.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,o.K)(function(t){i.length=i.length-2*t,r.length=r.length-t,a.length=a.length-t},"popStack"),(0,o.K)(b,"lex");for(var x,k,_,w,$,v,K,S,E,R={};;){if(_=i[i.length-1],this.defaultActions[_]?w=this.defaultActions[_]:(null==x&&(x=b()),w=s[_]&&s[_][x]),void 0===w||!w.length||!w[0]){var I="";for(v in E=[],s[_])this.terminals_[v]&&v>2&&E.push("'"+this.terminals_[v]+"'");I=p.showPosition?"Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(I,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:y,expected:E})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+_+", token: "+x);switch(w[0]){case 1:i.push(x),r.push(p.yytext),a.push(p.yylloc),i.push(w[1]),x=null,k?(x=k,k=null):(h=p.yyleng,l=p.yytext,c=p.yylineno,y=p.yylloc,d>0&&d--);break;case 2:if(K=this.productions_[w[1]][1],R.$=r[r.length-K],R._$={first_line:a[a.length-(K||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(K||1)].first_column,last_column:a[a.length-1].last_column},m&&(R._$.range=[a[a.length-(K||1)].range[0],a[a.length-1].range[1]]),void 0!==($=this.performAction.apply(R,[l,h,c,g,w[1],r,a].concat(u))))return $;K&&(i=i.slice(0,-1*K*2),r=r.slice(0,-1*K),a=a.slice(0,-1*K)),i.push(this.productions_[w[1]][0]),r.push(R.$),a.push(R._$),S=s[i[i.length-2]][i[i.length-1]],i.push(S);break;case 3:return!0}}return!0},"parse")};function d(){this.yy={}}return h.lexer={EOF:1,parseError:(0,o.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,o.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,o.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,o.K)(function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,o.K)(function(){return this._more=!0,this},"more"),reject:(0,o.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,o.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,o.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,o.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,o.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,o.K)(function(t,e){var i,n,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var a in r)this[a]=r[a];return!1},"test_match"),next:(0,o.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,n,r=this._currentRules(),a=0;ae[0].length)){if(e=i,n=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,r[a])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,o.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,o.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,o.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,o.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,o.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,o.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,o.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,o.K)(function(t,e,i,n){switch(i){case 0:case 1:case 3:case 4:break;case 2:return 13;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}},(0,o.K)(d,"Parser"),d.prototype=h,h.Parser=d,new d}();u.parser=u;var p={};(0,o.V)(p,{addEvent:()=>R,addSection:()=>v,addTask:()=>E,addTaskOrg:()=>I,clear:()=>_,default:()=>M,getCommonDb:()=>k,getDirection:()=>$,getSections:()=>K,getTasks:()=>S,setDirection:()=>w});var g="",f=0,y="LR",m=[],b=[],x=[],k=(0,o.K)(()=>a.Wt,"getCommonDb"),_=(0,o.K)(function(){m.length=0,b.length=0,g="",x.length=0,y="LR",(0,a.IU)()},"clear"),w=(0,o.K)(function(t){y=t},"setDirection"),$=(0,o.K)(function(){return y},"getDirection"),v=(0,o.K)(function(t){g=t,m.push(t)},"addSection"),K=(0,o.K)(function(){return m},"getSections"),S=(0,o.K)(function(){let t=T(),e=0;for(;!t&&e<100;)t=T(),e++;return b.push(...x),b},"getTasks"),E=(0,o.K)(function(t,e,i){let n={id:f++,section:g,type:g,task:t,score:e||0,events:i?[i]:[]};x.push(n)},"addTask"),R=(0,o.K)(function(t){x.find(t=>t.id===f-1).events.push(t)},"addEvent"),I=(0,o.K)(function(t){let e={section:g,type:g,description:t,task:t,classes:[]};b.push(e)},"addTaskOrg"),T=(0,o.K)(function(){let t=(0,o.K)(function(t){return x[t].processed},"compileTask"),e=!0;for(let[i,n]of x.entries())t(i),e=e&&n.processed;return e},"compileTasks"),M={clear:_,getCommonDb:k,getDirection:$,setDirection:w,addSection:v,getSections:K,getTasks:S,addTask:E,addTaskOrg:I,addEvent:R},L=0,H=(0,o.K)(function(t,e){let i=t.append("rect");return i.attr("x",e.x),i.attr("y",e.y),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("width",e.width),i.attr("height",e.height),i.attr("rx",e.rx),i.attr("ry",e.ry),void 0!==e.class&&i.attr("class",e.class),i},"drawRect"),C=(0,o.K)(function(t,e){let i=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=t.append("g");function r(t){let i=(0,l.JLW)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function a(t){let i=(0,l.JLW)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function s(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return n.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),(0,o.K)(r,"smile"),(0,o.K)(a,"sad"),(0,o.K)(s,"ambivalent"),e.score>3?r(n):e.score<3?a(n):s(n),i},"drawFace"),N=(0,o.K)(function(t,e){let i=e.text.replace(//gi," "),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.attr("class","legend"),n.style("text-anchor",e.anchor),void 0!==e.class&&n.attr("class",e.class);let r=n.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(i),n},"drawText"),D=-1,A=(0,o.K)(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),O=function(){function t(t,e,i,r,a,s,o,l){n(e.append("text").attr("x",i+a/2).attr("y",r+s/2+5).style("font-color",l).style("text-anchor","middle").text(t),o)}function e(t,e,i,r,a,s,o,l,c){let{taskFontSize:h,taskFontFamily:d}=l,u=t.split(//gi);for(let t=0;t)/).reverse(),r=[],a=i.attr("y"),s=parseFloat(i.attr("dy")),o=i.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",s+"em");for(let s=0;se||"
"===t)&&(r.pop(),o.text(r.join(" ").trim()),r="
"===t?[""]:[t],o=i.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))})}(0,o.K)(W,"wrap");var P=(0,o.K)(function(t,e,i,n,r,a=!1){let{theme:s,look:o}=n,c=s?.includes("redux"),h=i%(n?.themeVariables?.THEME_COLOR_LIMIT??12)-1,d=t.append("g");e.section=h,d.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+h);let u=d.append("g"),p=d.append("g"),g=p.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(W,e.width).node().getBBox(),f=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;if(e.height=g.height+1.1*f*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,p.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),c&&p.attr("transform",`translate(${e.width/2}, ${a?e.padding/2+3:e.padding})`),j(u,e,h,r,n),"neo"===o&&(d.attr("data-look","neo"),c)){let e=s.includes("dark"),i=t.node()?.ownerSVGElement??t.node(),n=(0,l.Ltv)(i),r=n.attr("id")??"",a=r?`${r}-drop-shadow`:"drop-shadow";if(n.select(`#${a}`).empty()){let t=n.select("defs");(t.empty()?n.append("defs"):t).append("filter").attr("id",a).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",e?"0.2":"0.06").attr("flood-color",e?"#FFFFFF":"#000000")}}return e},"drawNode"),z=(0,o.K)(function(t,e,i){let n=t.append("g"),r=n.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(W,e.width).node().getBBox(),a=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;return n.remove(),r.height+1.1*a*.5+e.padding},"getVirtualNodeHeight"),j=(0,o.K)(function(t,e,i,n,r){let{theme:a}=r,s=5*!a?.includes("redux"),o=s>0?`M0 ${e.height-5} v${-e.height+10} q0,-${s},${s},-${s} h${e.width-10} q${s},0,${s},${s} v${e.height-5} H0 Z`:`M0 ${e.height-5} v${-(e.height-5)} h${e.width} v${e.height} H0 Z`;t.append("path").attr("id",n+"-node-"+L++).attr("class","node-bkg node-"+e.type).attr("d",o),a?.includes("redux")||t.append("line").attr("class","node-line-"+i).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),F={initGraphics:B,drawNode:P,getVirtualNodeHeight:z},V=(0,o.K)(function(t,e,i,n){let r,o=(0,a.D7)(),{look:c,theme:h,themeVariables:d}=o,{useGradient:u,gradientStart:p,gradientStop:g}=d,f=o.timeline?.leftMargin??50;s.R.debug("timeline",n.db);let y=o.securityLevel;"sandbox"===y&&(r=(0,l.Ltv)("#i"+e));let m=("sandbox"===y?(0,l.Ltv)(r.nodes()[0].contentDocument.body):(0,l.Ltv)("body")).select("#"+e);m.append("g");let b=n.db.getTasks(),x=n.db.getCommonDb().getDiagramTitle();s.R.debug("task",b),F.initGraphics(m,e);let k=n.db.getSections();s.R.debug("sections",k);let _=0,w=0,$=0,v=0,K=50+f,S=50;v=50;let E=0,R=!0;k.forEach(function(t){let e={number:E,descr:t,section:E,width:150,padding:20,maxHeight:_},i=F.getVirtualNodeHeight(m,e,o);s.R.debug("sectionHeight before draw",i),_=Math.max(_,i+20)});let I=0,T=0;for(let[t,e]of(s.R.debug("tasks.length",b.length),b.entries())){let i={number:t,descr:e,section:e.section,width:150,padding:20,maxHeight:w},n=F.getVirtualNodeHeight(m,i,o);s.R.debug("taskHeight before draw",n),w=Math.max(w,n+20),I=Math.max(I,e.events.length);let r=0;for(let t of e.events){let i={descr:t,section:e.section,number:e.section,width:150,padding:20,maxHeight:50};r+=F.getVirtualNodeHeight(m,i,o)}e.events.length>0&&(r+=(e.events.length-1)*10),T=Math.max(T,r)}s.R.debug("maxSectionHeight before draw",_),s.R.debug("maxTaskHeight before draw",w),k&&k.length>0?k.forEach(t=>{let i=b.filter(e=>e.section===t),n={number:E,descr:t,section:E,width:200*Math.max(i.length,1)-50,padding:20,maxHeight:_};s.R.debug("sectionNode",n);let r=m.append("g"),a=F.drawNode(r,n,E,o,e);s.R.debug("sectionNode output",a),r.attr("transform",`translate(${K}, ${v})`),S+=_+50,i.length>0&&G(m,i,E,K,S,w,o,I,T,_,!1,e),K+=200*Math.max(i.length,1),S=v,E++}):(R=!1,G(m,b,E,K,S,w,o,I,T,_,!0,e));let M=m.node().getBBox();if(s.R.debug("bounds",M),x&&m.append("text").text(x).attr("x","neo"===c?2*M.x+f:M.width/2-f).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),$=R?_+w+150:w+100,m.append("g").attr("class","lineWrapper").append("line").attr("x1",f).attr("y1",$).attr("x2",M.width+3*f).attr("y2",$).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),"neo"===c&&u&&"neutral"!==h){let t=m.select("defs"),e=(t.empty()?m.append("defs"):t).append("linearGradient").attr("id",m.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("stop").attr("offset","0%").attr("stop-color",p).attr("stop-opacity",1),e.append("stop").attr("offset","100%").attr("stop-color",g).attr("stop-opacity",1)}(0,a.ot)(void 0,m,o.timeline?.padding??50,o.timeline?.useMaxWidth??!1)},"draw"),G=(0,o.K)(function(t,e,i,n,r,a,o,l,c,h,d,u){for(let l of e){let e={descr:l.task,section:i,number:i,width:150,padding:20,maxHeight:a};s.R.debug("taskNode",e);let h=t.append("g").attr("class","taskWrapper"),p=F.drawNode(h,e,i,o,u).height;if(s.R.debug("taskHeight after draw",p),h.attr("transform",`translate(${n}, ${r})`),a=Math.max(a,p),l.events){let e=t.append("g").attr("class","lineWrapper");r+=100,U(t,l.events,i,n,r,o,u),r-=100,e.append("line").attr("x1",n+95).attr("y1",r+a).attr("x2",n+95).attr("y2",r+a+100+c+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${u}-arrowhead)`).attr("stroke-dasharray","5,5")}n+=200,d&&!o.timeline?.disableMulticolor&&i++}},"drawTasks"),U=(0,o.K)(function(t,e,i,n,r,a,o){let l=0,c=r;for(let c of(r+=100,e)){let e={descr:c,section:i,number:i,width:150,padding:20,maxHeight:50};s.R.debug("eventNode",e);let h=t.append("g").attr("class","eventWrapper"),d=F.drawNode(h,e,i,a,o,!0).height;l+=d,h.attr("transform",`translate(${n}, ${r})`),r=r+10+d}return r=c,l},"drawEvents"),Z={setConf:(0,o.K)(()=>{},"setConf"),draw:V},q=(0,o.K)(function(t,e,i,o){let l=(0,a.D7)(),c=l.timeline?.leftMargin??50;s.R.debug("timeline",o.db);let h=(0,n.D)(e);h.append("g");let d=o.db.getTasks(),u=o.db.getCommonDb().getDiagramTitle();s.R.debug("task",d),F.initGraphics(h);let p=o.db.getSections();s.R.debug("sections",p);let g=0,f=0,y=50,m=230,b=0,x=p&&p.length>0,k=50+c+m,_=Math.max(50,m+360-10);p.forEach(function(t){let e={number:b,descr:t,section:b,width:_,padding:5,maxHeight:g},i=F.getVirtualNodeHeight(h,e,l);s.R.debug("sectionHeight before draw",i),g=Math.max(g,i)});let w=0;for(let[t,e]of(s.R.debug("tasks.length",d.length),d.entries())){let i={number:t,descr:e,section:e.section,width:200,padding:5,maxHeight:f},n=F.getVirtualNodeHeight(h,i,l);s.R.debug("taskHeight before draw",n),f=Math.max(f,n);let r=0;for(let t of e.events){let i={descr:t,section:e.section,number:e.section,width:300,padding:5,maxHeight:50};r+=F.getVirtualNodeHeight(h,i,l)}e.events.length>0&&(r+=(e.events.length-1)*10),w=Math.max(w,r)+0}s.R.debug("maxSectionHeight before draw",g),s.R.debug("maxTaskHeight before draw",f);let $=Math.max(f,w)+30;x?p.forEach(t=>{let e=d.filter(e=>e.section===t),i={number:b,descr:t,section:b,width:_,padding:5,maxHeight:g};s.R.debug("sectionNode",i);let n=h.append("g"),r=F.drawNode(n,i,b,l);s.R.debug("sectionNode output",r);let a=k-m;n.attr("transform",`translate(${a}, ${y})`);let o=y+r.height+20;e.length>0&&J(h,e,b,k,o,f,l,$,!1);let c=e.length,u=r.height+20+$*Math.max(c,1)-60*(c>0);y+=u,b++}):J(h,d,b,k,y,f,l,$,!0);let v=h.node()?.getBBox();if(!v)throw Error("bbox not found");if(s.R.debug("bounds",v),u){if(h.append("text").text(u).attr("x",v.width/2-c).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),!(v=h.node()?.getBBox()))throw Error("bbox not found");s.R.debug("bounds after title",v)}let[K]=(0,r.I5)(l.fontSize),S=h.append("g").attr("class","lineWrapper");S.append("line").attr("x1",k).attr("y1",50-(K??16)*2).attr("x2",k).attr("y2",v.y+v.height+((K??16)*.5+20)).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),S.lower(),(0,a.ot)(void 0,h,l.timeline?.padding??50,l.timeline?.useMaxWidth??!1)},"draw"),J=(0,o.K)(function(t,e,i,n,r,a,o,l,c){for(let h of e){let e={descr:h.task,section:i,number:i,width:200,padding:5,maxHeight:a};s.R.debug("taskNode",e);let d=t.append("g").attr("class","taskWrapper"),u=F.drawNode(d,e,i,o),p=u.height;s.R.debug("taskHeight after draw",p);let g=n-20-u.width;if(d.attr("transform",`translate(${g}, ${r})`),a=Math.max(a,p),h.events&&h.events.length>0){let e=r,a=n+50;Y(t,h.events,i,n,a,e,o)}r+=l,c&&!o.timeline?.disableMulticolor&&i++}},"drawTasks"),Y=(0,o.K)(function(t,e,i,n,r,a,o){let l=a;for(let a of e){let e={descr:a,section:i,number:i,width:300,padding:5,maxHeight:0};s.R.debug("eventNode",e);let c=t.append("g").attr("class","eventWrapper"),h=F.drawNode(c,e,i,o).height;c.attr("transform",`translate(${r}, ${l})`);let d=t.append("g").attr("class","lineWrapper"),u=l+h/2;d.append("line").attr("x1",n).attr("y1",u).attr("x2",r).attr("y2",u).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),l=l+h+10}return l-a},"drawEvents"),X={setConf:(0,o.K)(()=>{},"setConf"),draw:q},Q=(0,o.K)(t=>{let{theme:e}=(0,a.zj)(),i=e?.includes("dark"),n=e?.includes("color"),r=t.svgId?.replace(/^#/,"")??"",s=r?`url(#${r}-drop-shadow)`:t.dropShadow??"none",o="";for(let e=0;e{let e="";for(let e=0;e{let{theme:e}=(0,a.zj)(),i=e?.includes("redux"),n="neutral"===e,r=t.svgId?.replace(/^#/,"")??"",s="";if(t.useGradient&&r&&t.THEME_COLOR_LIMIT&&!n)for(let e=0;e{},"setConf"),draw:(0,o.K)((t,e,i,n)=>"TD"===(n?.db?.getDirection?.()??"LR")?X.draw(t,e,i,n):Z.draw(t,e,i,n),"draw")},parser:u,styles:te}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2499.f2c3570c1a931305.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2499.f2c3570c1a931305.js deleted file mode 100644 index 4a2a857ff..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2499.f2c3570c1a931305.js +++ /dev/null @@ -1,90 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2499],{24002:(e,t,n)=>{n.d(t,{P:()=>r});var i=n(69301),s=n(98999),o=n(91158),r=(0,o.K)((e,t,n,o)=>{e.attr("class",n);let{width:r,height:l,x:h,y:d}=a(e,t);(0,i.a$)(e,l,r,o);let g=c(h,d,r,l,t);e.attr("viewBox",g),s.R.debug(`viewBox configured: ${g} with padding: ${t}`)},"setupViewPortForSVG"),a=(0,o.K)((e,t)=>{let n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+2*t,height:n.height+2*t,x:n.x,y:n.y}},"calculateDimensionsWithPadding"),c=(0,o.K)((e,t,n,i,s)=>`${e-s} ${t-s} ${n} ${i}`,"createViewBox")},42499:(e,t,n)=>{let i;n.d(t,{diagram:()=>N});var s=n(74773),o=n(24002),r=n(33807);n(48734),n(11232),n(13031),n(69981),n(5663),n(82142),n(29278),n(13892);var a=n(69301),c=n(98999),l=n(91158);let h={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},d=new Uint8Array(16),g=[];for(let e=0;e<256;++e)g.push((e+256).toString(16).slice(1));let u=function(e,t,n){if(h.randomUUID&&!t&&!e)return h.randomUUID();let s=(e=e||{}).random??e.rng?.()??function(){if(!i){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");i=crypto.getRandomValues.bind(crypto)}return i(d)}();if(s.length<16)throw Error("Random bytes length must be >= 16");if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){if((n=n||0)<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=s[e];return t}return function(e,t=0){return(g[e[t+0]]+g[e[t+1]]+g[e[t+2]]+g[e[t+3]]+"-"+g[e[t+4]]+g[e[t+5]]+"-"+g[e[t+6]]+g[e[t+7]]+"-"+g[e[t+8]]+g[e[t+9]]+"-"+g[e[t+10]]+g[e[t+11]]+g[e[t+12]]+g[e[t+13]]+g[e[t+14]]+g[e[t+15]]).toLowerCase()}(s)};var p=n(54333),y=n(80665),m=n(35177),f=function(){var e=(0,l.K)(function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n},"o"),t=[1,4],n=[1,13],i=[1,12],s=[1,15],o=[1,16],r=[1,20],a=[1,19],c=[6,7,8],h=[1,26],d=[1,24],g=[1,25],u=[6,7,11],p=[1,6,13,15,16,19,22],y=[1,33],m=[1,34],f=[1,6,7,11,13,15,16,19,22],_={trace:(0,l.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:(0,l.K)(function(e,t,n,i,s,o,r){var a=o.length-1;switch(s){case 6:case 7:return i;case 8:i.getLogger().trace("Stop NL ");break;case 9:i.getLogger().trace("Stop EOF ");break;case 11:i.getLogger().trace("Stop NL2 ");break;case 12:i.getLogger().trace("Stop EOF2 ");break;case 15:i.getLogger().info("Node: ",o[a].id),i.addNode(o[a-1].length,o[a].id,o[a].descr,o[a].type);break;case 16:i.getLogger().trace("Icon: ",o[a]),i.decorateNode({icon:o[a]});break;case 17:case 21:i.decorateNode({class:o[a]});break;case 18:i.getLogger().trace("SPACELIST");break;case 19:i.getLogger().trace("Node: ",o[a].id),i.addNode(0,o[a].id,o[a].descr,o[a].type);break;case 20:i.decorateNode({icon:o[a]});break;case 25:i.getLogger().trace("node found ..",o[a-2]),this.$={id:o[a-1],descr:o[a-1],type:i.getType(o[a-2],o[a])};break;case 26:this.$={id:o[a],descr:o[a],type:i.nodeType.DEFAULT};break;case 27:i.getLogger().trace("node found ..",o[a-3]),this.$={id:o[a-3],descr:o[a-1],type:i.getType(o[a-2],o[a])}}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:i,14:14,15:s,16:o,17:17,18:18,19:r,22:a},e(c,[2,3]),{1:[2,2]},e(c,[2,4]),e(c,[2,5]),{1:[2,6],6:n,12:21,13:i,14:14,15:s,16:o,17:17,18:18,19:r,22:a},{6:n,9:22,12:11,13:i,14:14,15:s,16:o,17:17,18:18,19:r,22:a},{6:h,7:d,10:23,11:g},e(u,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:r,22:a}),e(u,[2,18]),e(u,[2,19]),e(u,[2,20]),e(u,[2,21]),e(u,[2,23]),e(u,[2,24]),e(u,[2,26],{19:[1,30]}),{20:[1,31]},{6:h,7:d,10:32,11:g},{1:[2,7],6:n,12:21,13:i,14:14,15:s,16:o,17:17,18:18,19:r,22:a},e(p,[2,14],{7:y,11:m}),e(f,[2,8]),e(f,[2,9]),e(f,[2,10]),e(u,[2,15]),e(u,[2,16]),e(u,[2,17]),{20:[1,35]},{21:[1,36]},e(p,[2,13],{7:y,11:m}),e(f,[2,11]),e(f,[2,12]),{21:[1,37]},e(u,[2,25]),e(u,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:(0,l.K)(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},"parseError"),parse:(0,l.K)(function(e){var t=this,n=[0],i=[],s=[null],o=[],r=this.table,a="",c=0,h=0,d=0,g=o.slice.call(arguments,1),u=Object.create(this.lexer),p={};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(p[y]=this.yy[y]);u.setInput(e,p),p.lexer=u,p.parser=this,void 0===u.yylloc&&(u.yylloc={});var m=u.yylloc;o.push(m);var f=u.options&&u.options.ranges;function _(){var e;return"number"!=typeof(e=i.pop()||u.lex()||1)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof p.parseError?this.parseError=p.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,l.K)(function(e){n.length=n.length-2*e,s.length=s.length-e,o.length=o.length-e},"popStack"),(0,l.K)(_,"lex");for(var b,E,k,S,N,x,L,D,$,I={};;){if(k=n[n.length-1],this.defaultActions[k]?S=this.defaultActions[k]:(null==b&&(b=_()),S=r[k]&&r[k][b]),void 0===S||!S.length||!S[0]){var v="";for(x in $=[],r[k])this.terminals_[x]&&x>2&&$.push("'"+this.terminals_[x]+"'");v=u.showPosition?"Parse error on line "+(c+1)+":\n"+u.showPosition()+"\nExpecting "+$.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(v,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:m,expected:$})}if(S[0]instanceof Array&&S.length>1)throw Error("Parse Error: multiple actions possible at state: "+k+", token: "+b);switch(S[0]){case 1:n.push(b),s.push(u.yytext),o.push(u.yylloc),n.push(S[1]),b=null,E?(b=E,E=null):(h=u.yyleng,a=u.yytext,c=u.yylineno,m=u.yylloc,d>0&&d--);break;case 2:if(L=this.productions_[S[1]][1],I.$=s[s.length-L],I._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},f&&(I._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),void 0!==(N=this.performAction.apply(I,[a,h,c,p,S[1],s,o].concat(g))))return N;L&&(n=n.slice(0,-1*L*2),s=s.slice(0,-1*L),o=o.slice(0,-1*L)),n.push(this.productions_[S[1]][0]),s.push(I.$),o.push(I._$),D=r[n[n.length-2]][n[n.length-1]],n.push(D);break;case 3:return!0}}return!0},"parse")};function b(){this.yy={}}return _.lexer={EOF:1,parseError:(0,l.K)(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},"parseError"),setInput:(0,l.K)(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,l.K)(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:(0,l.K)(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:(0,l.K)(function(){return this._more=!0,this},"more"),reject:(0,l.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,l.K)(function(e){this.unput(this.match.slice(e))},"less"),pastInput:(0,l.K)(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,l.K)(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,l.K)(function(){var e=this.pastInput(),t=Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:(0,l.K)(function(e,t){var n,i,s;if(this.options.backtrack_lexer&&(s={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(s.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var o in s)this[o]=s[o];return!1},"test_match"),next:(0,l.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var e,t,n,i,s=this._currentRules(),o=0;ot[0].length)){if(t=n,i=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,s[o])))return e;if(!this._backtrack)return!1;t=!1;continue}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,s[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,l.K)(function(){var e=this.next();return e||this.lex()},"lex"),begin:(0,l.K)(function(e){this.conditionStack.push(e)},"begin"),popState:(0,l.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,l.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,l.K)(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:(0,l.K)(function(e){this.begin(e)},"pushState"),stateStackSize:(0,l.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,l.K)(function(e,t,n,i){switch(n){case 0:return e.getLogger().trace("Found comment",t.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return e.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace("end icon"),this.popState();break;case 10:return e.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return e.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 24:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return e.getLogger().trace("description:",t.yytext),"NODE_DESCR";case 27:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),e.getLogger().trace("node end ...",t.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return e.getLogger().trace("Long description:",t.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}},(0,l.K)(b,"Parser"),b.prototype=_,_.Parser=b,new b}();f.parser=f;var _={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},b=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=_,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{(0,l.K)(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;t>=0;t--)if(this.nodes[t].level0?this.nodes[0]:null}addNode(e,t,n,i){c.R.info("addNode",e,t,n,i);let s=!1;0===this.nodes.length?(this.baseLevel=e,e=0,s=!0):void 0!==this.baseLevel&&(e-=this.baseLevel,s=!1);let o=(0,a.D7)(),r=o.mindmap?.padding??a.UI.mindmap.padding;switch(i){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:r*=2}let l={id:this.count++,nodeId:(0,a.jZ)(t,o),level:e,descr:(0,a.jZ)(n,o),type:i,children:[],width:o.mindmap?.maxNodeWidth??a.UI.mindmap.maxNodeWidth,padding:r,isRoot:s},h=this.getParent(e);if(h)h.children.push(l),this.nodes.push(l);else if(s)this.nodes.push(l);else throw Error(`There can be only one root. No parent could be found for ("${l.descr}")`)}getType(e,t){switch(c.R.debug("In get type",e,t),e){case"[":return this.nodeType.RECT;case"(":return")"===t?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let t=(0,a.D7)(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=(0,a.jZ)(e.icon,t)),e.class&&(n.class=(0,a.jZ)(e.class,t))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,t){if(0===e.level?e.section=void 0:e.section=t,e.children)for(let[n,i]of e.children.entries()){let s=0===e.level?n%11:t;this.assignSections(i,s)}}flattenNodes(e,t){let n=(0,a.D7)(),i=["mindmap-node"];!0===e.isRoot?i.push("section-root","section--1"):void 0!==e.section&&i.push(`section-${e.section}`),e.class&&i.push(e.class);let s=i.join(" "),o=(0,l.K)(e=>{let t=(n.theme?.toLowerCase()??"").includes("redux");switch(e){case _.CIRCLE:return"mindmapCircle";case _.RECT:return"rect";case _.ROUNDED_RECT:return"rounded";case _.CLOUD:return"cloud";case _.BANG:return"bang";case _.HEXAGON:return"hexagon";case _.DEFAULT:return t?"rounded":"defaultMindmapNode";case _.NO_BORDER:default:return"rect"}},"getShapeFromType"),r={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:o(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:s,cssStyles:[],look:n.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(t.push(r),e.children)for(let n of e.children)this.flattenNodes(n,t)}generateEdges(e,t){if(!e.children)return;let n=(0,a.D7)();for(let i of e.children){let s="edge";void 0!==i.section&&(s+=` section-edge-${i.section}`);let o=e.level+1;s+=` edge-depth-${o}`;let r={id:`edge_${e.id}_${i.id}`,start:e.id.toString(),end:i.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:n.look,classes:s,depth:e.level,section:i.section};t.push(r),this.generateEdges(i,t)}}getData(){let e=this.getMindmap(),t=(0,a.D7)();if(void 0!==(0,a.TM)().layout||(t.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:t};c.R.debug("getData: mindmapRoot",e,t),this.assignSections(e);let n=[],i=[];this.flattenNodes(e,n),this.generateEdges(e,i),c.R.debug(`getData: processed ${n.length} nodes and ${i.length} edges`);let s=new Map;for(let e of n)s.set(e.id,{shape:e.shape,width:e.width,height:e.height,padding:e.padding});return{nodes:n,edges:i,config:t,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(s),type:"mindmap",diagramId:"mindmap-"+u()}}getLogger(){return c.R}},E=(0,l.K)(async(e,t,n,i)=>{c.R.debug("Rendering mindmap diagram\n"+e);let l=i.db,h=l.getData(),d=(0,s.A)(t,h.config.securityLevel);if(h.type=i.type,h.layoutAlgorithm=(0,r.q7)(h.config.layout,{fallback:"cose-bilkent"}),h.diagramId=t,!l.getMindmap())return;h.nodes.forEach(e=>{"rounded"===e.shape?(e.radius=15,e.taper=15,e.stroke="none",e.width=0,e.padding=15):"circle"===e.shape?e.padding=10:"rect"===e.shape?(e.width=0,e.padding=10):"hexagon"===e.shape&&(e.width=0,e.height=0)}),await (0,r.XX)(h,d);let{themeVariables:g}=(0,a.zj)(),{useGradient:u,gradientStart:p,gradientStop:y}=g;if(u&&p&&y){let e=d.attr("id"),t=d.append("defs").append("linearGradient").attr("id",`${e}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",p).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",y).attr("stop-opacity",1)}(0,o.P)(d,h.config.mindmap?.padding??a.UI.mindmap.padding,"mindmapDiagram",h.config.mindmap?.useMaxWidth??a.UI.mindmap.useMaxWidth)},"draw"),k=(0,l.K)(e=>{let{theme:t,look:n}=e,i="";for(let t=0;t{let i="";for(let s=0;s{let{theme:t}=e,n=e.svgId,i=e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none";return` - .edge { - stroke-width: 3; - } - ${k(e)} - .section-root rect, .section-root path, .section-root circle, .section-root polygon { - fill: ${e.git0}; - } - .section-root text { - fill: ${e.gitBranchLabel0}; - } - .section-root span { - color: ${t?.includes("redux")?e.nodeBorder:e.gitBranchLabel0}; - } - .icon-container { - height:100%; - display: flex; - justify-content: center; - align-items: center; - } - .edge { - fill: none; - } - .mindmap-node-label { - dy: 1em; - alignment-baseline: middle; - text-anchor: middle; - dominant-baseline: middle; - text-align: center; - } - [data-look="neo"].mindmap-node { - filter: ${i}; - } - [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon { - fill: ${t?.includes("redux")?e.mainBkg:e.git0}; - } - [data-look="neo"].mindmap-node.section-root .text-inner-tspan { - fill: ${t?.includes("redux")?e.nodeBorder:e["cScaleLabel"+ +("neutral"===t)]}; - } - ${e.useGradient&&n&&e.mainBkg?S(e.THEME_COLOR_LIMIT,n,e.mainBkg):""} -`},"getStyles")}},74773:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(91158),s=n(70668),o=(0,i.K)((e,t)=>{let n;return"sandbox"===t&&(n=(0,s.Ltv)("#i"+e)),("sandbox"===t?(0,s.Ltv)(n.nodes()[0].contentDocument.body):(0,s.Ltv)("body")).select(`[id="${e}"]`)},"getDiagramElement")}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2557.c92b26cc451ca01e.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2557.c92b26cc451ca01e.js deleted file mode 100644 index 2bc1b4c76..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2557.c92b26cc451ca01e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2557],{2557:(e,s,c)=>{c.d(s,{createEventModelingServices:()=>a.g});var a=c(71022);c(9448)}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/270.7aa60507da3c347a.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/270.7aa60507da3c347a.js deleted file mode 100644 index 14bffa146..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/270.7aa60507da3c347a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[270],{87889:t=>{!function(){var r={675:function(t,r){"use strict";r.byteLength=function(t){var r=s(t),e=r[0],n=r[1];return(e+n)*3/4-n},r.toByteArray=function(t){var r,e,o=s(t),f=o[0],u=o[1],h=new i((f+u)*3/4-u),a=0,p=u>0?f-4:f;for(e=0;e>16&255,h[a++]=r>>8&255,h[a++]=255&r;return 2===u&&(r=n[t.charCodeAt(e)]<<2|n[t.charCodeAt(e+1)]>>4,h[a++]=255&r),1===u&&(r=n[t.charCodeAt(e)]<<10|n[t.charCodeAt(e+1)]<<4|n[t.charCodeAt(e+2)]>>2,h[a++]=r>>8&255,h[a++]=255&r),h},r.fromByteArray=function(t){for(var r,n=t.length,i=n%3,o=[],f=0,u=n-i;f>18&63]+e[i>>12&63]+e[i>>6&63]+e[63&i]);return o.join("")}(t,f,f+16383>u?u:f+16383));return 1===i?o.push(e[(r=t[n-1])>>2]+e[r<<4&63]+"=="):2===i&&o.push(e[(r=(t[n-2]<<8)+t[n-1])>>10]+e[r>>4&63]+e[r<<2&63]+"="),o.join("")};for(var e=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,u=o.length;f0)throw Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");-1===e&&(e=r);var n=e===r?0:4-e%4;return[e,n]}n[45]=62,n[95]=63},72:function(t,r,e){"use strict";var n=e(675),i=e(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function f(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,u.prototype),r}function u(t,r,e){if("number"==typeof t){if("string"==typeof r)throw TypeError('The "string" argument must be of type string. Received type number');return a(t)}return s(t,r,e)}function s(t,r,e){if("string"==typeof t){var n=t,i=r;if(("string"!=typeof i||""===i)&&(i="utf8"),!u.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|l(n,i),s=f(o),h=s.write(n,i);return h!==o&&(s=s.slice(0,h)),s}if(ArrayBuffer.isView(t))return p(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(C(t,ArrayBuffer)||t&&C(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(C(t,SharedArrayBuffer)||t&&C(t.buffer,SharedArrayBuffer)))return function(t,r,e){var n;if(r<0||t.byteLength=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function l(t,r){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||C(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var e=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===e)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return x(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return I(t).length;default:if(i)return n?-1:x(t).length;r=(""+r).toLowerCase(),i=!0}}function y(t,r,e){var i,o,f,u=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===e||e>this.length)&&(e=this.length),e<=0||(e>>>=0)<=(r>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",o=r;o0x7fffffff?e=0x7fffffff:e<-0x80000000&&(e=-0x80000000),(o=e*=1)!=o&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length)if(i)return -1;else e=t.length-1;else if(e<0)if(!i)return -1;else e=0;if("string"==typeof r&&(r=u.from(r,n)),u.isBuffer(r))return 0===r.length?-1:v(t,r,e,n,i);if("number"==typeof r){if(r&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(t,r,e);else return Uint8Array.prototype.lastIndexOf.call(t,r,e);return v(t,[r],e,n,i)}throw TypeError("val must be string, number or Buffer")}function v(t,r,e,n,i){var o,f=1,u=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return -1;f=2,u/=2,s/=2,e/=2}function h(t,r){return 1===f?t[r]:t.readUInt16BE(r*f)}if(i){var a=-1;for(o=e;ou&&(e=u-s),o=e;o>=0;o--){for(var p=!0,c=0;ce&&(t+=" ... "),""},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(t,r,e,n,i){if(C(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),r<0||e>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&r>=e)return 0;if(n>=i)return -1;if(r>=e)return 1;if(r>>>=0,e>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,f=e-r,s=Math.min(o,f),h=this.slice(n,i),a=t.slice(r,e),p=0;p239?4:h>223?3:h>191?2:1;if(i+p<=e)switch(p){case 1:h<128&&(a=h);break;case 2:(192&(o=t[i+1]))==128&&(s=(31&h)<<6|63&o)>127&&(a=s);break;case 3:o=t[i+1],f=t[i+2],(192&o)==128&&(192&f)==128&&(s=(15&h)<<12|(63&o)<<6|63&f)>2047&&(s<55296||s>57343)&&(a=s);break;case 4:o=t[i+1],f=t[i+2],u=t[i+3],(192&o)==128&&(192&f)==128&&(192&u)==128&&(s=(15&h)<<18|(63&o)<<12|(63&f)<<6|63&u)>65535&&s<1114112&&(a=s)}null===a?(a=65533,p=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=p}var c=n,l=c.length;if(l<=4096)return String.fromCharCode.apply(String,c);for(var y="",g=0;ge)throw RangeError("Trying to access beyond buffer length")}function m(t,r,e,n,i,o){if(!u.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(r>i||rt.length)throw RangeError("Index out of range")}function E(t,r,e,n,i,o){if(e+n>t.length||e<0)throw RangeError("Index out of range")}function A(t,r,e,n,o){return r*=1,e>>>=0,o||E(t,r,e,4,34028234663852886e22,-34028234663852886e22),i.write(t,r,e,n,23,4),e+4}function B(t,r,e,n,o){return r*=1,e>>>=0,o||E(t,r,e,8,17976931348623157e292,-17976931348623157e292),i.write(t,r,e,n,52,8),e+8}u.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else if(isFinite(r))r>>>=0,isFinite(e)?(e>>>=0,void 0===n&&(n="utf8")):(n=e,e=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,f,u,s,h,a,p,c=this.length-r;if((void 0===e||e>c)&&(e=c),t.length>0&&(e<0||r<0)||r>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var l=!1;;)switch(n){case"hex":return function(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n))>i&&(n=i):n=i;var o=r.length;n>o/2&&(n=o/2);for(var f=0;f>8,i.push(e%256),i.push(n);return i}(t,this.length-a),this,a,p);default:if(l)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),l=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,t<0?(t+=e)<0&&(t=0):t>e&&(t=e),r<0?(r+=e)<0&&(r=0):r>e&&(r=e),r>>=0,r>>>=0,e||w(t,r,this.length);for(var n=this[t],i=1,o=0;++o>>=0,r>>>=0,e||w(t,r,this.length);for(var n=this[t+--r],i=1;r>0&&(i*=256);)n+=this[t+--r]*i;return n},u.prototype.readUInt8=function(t,r){return t>>>=0,r||w(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,r){return t>>>=0,r||w(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,r){return t>>>=0,r||w(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,r){return t>>>=0,r||w(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},u.prototype.readUInt32BE=function(t,r){return t>>>=0,r||w(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,r,e){t>>>=0,r>>>=0,e||w(t,r,this.length);for(var n=this[t],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*r)),n},u.prototype.readIntBE=function(t,r,e){t>>>=0,r>>>=0,e||w(t,r,this.length);for(var n=r,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*r)),o},u.prototype.readInt8=function(t,r){return(t>>>=0,r||w(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},u.prototype.readInt16LE=function(t,r){t>>>=0,r||w(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?0xffff0000|e:e},u.prototype.readInt16BE=function(t,r){t>>>=0,r||w(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?0xffff0000|e:e},u.prototype.readInt32LE=function(t,r){return t>>>=0,r||w(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,r){return t>>>=0,r||w(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,r){return t>>>=0,r||w(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,r){return t>>>=0,r||w(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,r){return t>>>=0,r||w(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,r){return t>>>=0,r||w(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,r,e,n){if(t*=1,r>>>=0,e>>>=0,!n){var i=Math.pow(2,8*e)-1;m(this,t,r,e,i,0)}var o=1,f=0;for(this[r]=255&t;++f>>=0,e>>>=0,!n){var i=Math.pow(2,8*e)-1;m(this,t,r,e,i,0)}var o=e-1,f=1;for(this[r+o]=255&t;--o>=0&&(f*=256);)this[r+o]=t/f&255;return r+e},u.prototype.writeUInt8=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,1,255,0),this[r]=255&t,r+1},u.prototype.writeUInt16LE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},u.prototype.writeUInt16BE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},u.prototype.writeUInt32LE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,4,0xffffffff,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},u.prototype.writeUInt32BE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,4,0xffffffff,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},u.prototype.writeIntLE=function(t,r,e,n){if(t*=1,r>>>=0,!n){var i=Math.pow(2,8*e-1);m(this,t,r,e,i-1,-i)}var o=0,f=1,u=0;for(this[r]=255&t;++o>>=0,!n){var i=Math.pow(2,8*e-1);m(this,t,r,e,i-1,-i)}var o=e-1,f=1,u=0;for(this[r+o]=255&t;--o>=0&&(f*=256);)t<0&&0===u&&0!==this[r+o+1]&&(u=1),this[r+o]=(t/f|0)-u&255;return r+e},u.prototype.writeInt8=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=255&t,r+1},u.prototype.writeInt16LE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},u.prototype.writeInt16BE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},u.prototype.writeInt32LE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,4,0x7fffffff,-0x80000000),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},u.prototype.writeInt32BE=function(t,r,e){return t*=1,r>>>=0,e||m(this,t,r,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},u.prototype.writeFloatLE=function(t,r,e){return A(this,t,r,!0,e)},u.prototype.writeFloatBE=function(t,r,e){return A(this,t,r,!1,e)},u.prototype.writeDoubleLE=function(t,r,e){return B(this,t,r,!0,e)},u.prototype.writeDoubleBE=function(t,r,e){return B(this,t,r,!1,e)},u.prototype.copy=function(t,r,e,n){if(!u.isBuffer(t))throw TypeError("argument should be a Buffer");if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r=0;--o)t[o+r]=this[o+e];else Uint8Array.prototype.set.call(t,this.subarray(e,n),r);return i},u.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var i,o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(r<0||this.length>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(i=r;i55295&&e<57344){if(!i){if(e>56319||f+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else if(e<1114112){if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}else throw Error("Invalid code point")}return o}function T(t){for(var r=[],e=0;e=r.length)&&!(i>=t.length);++i)r[i+e]=t[i];return i}function C(t,r){return t instanceof r||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===r.name}var L=function(){for(var t="0123456789abcdef",r=Array(256),e=0;e<16;++e)for(var n=16*e,i=0;i<16;++i)r[n+i]=t[e]+t[i];return r}()},783:function(t,r){r.read=function(t,r,e,n,i){var o,f,u=8*i-n-1,s=(1<>1,a=-7,p=e?i-1:0,c=e?-1:1,l=t[r+p];for(p+=c,o=l&(1<<-a)-1,l>>=-a,a+=u;a>0;o=256*o+t[r+p],p+=c,a-=8);for(f=o&(1<<-a)-1,o>>=-a,a+=n;a>0;f=256*f+t[r+p],p+=c,a-=8);if(0===o)o=1-h;else{if(o===s)return f?NaN:1/0*(l?-1:1);f+=Math.pow(2,n),o-=h}return(l?-1:1)*f*Math.pow(2,o-n)},r.write=function(t,r,e,n,i,o){var f,u,s,h=8*o-i-1,a=(1<>1,c=5960464477539062e-23*(23===i),l=n?0:o-1,y=n?1:-1,g=+(r<0||0===r&&1/r<0);for(isNaN(r=Math.abs(r))||r===1/0?(u=+!!isNaN(r),f=a):(f=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-f))<1&&(f--,s*=2),f+p>=1?r+=c/s:r+=c*Math.pow(2,1-p),r*s>=2&&(f++,s/=2),f+p>=a?(u=0,f=a):f+p>=1?(u=(r*s-1)*Math.pow(2,i),f+=p):(u=r*Math.pow(2,p-1)*Math.pow(2,i),f=0));i>=8;t[e+l]=255&u,l+=y,u/=256,i-=8);for(f=f<0;t[e+l]=255&f,l+=y,f/=256,h-=8);t[e+l-y]|=128*g}}},e={};function n(t){var i=e[t];if(void 0!==i)return i.exports;var o=e[t]={exports:{}},f=!0;try{r[t](o,o.exports,n),f=!1}finally{f&&delete e[t]}return o.exports}n.ab="//",t.exports=n(72)}()}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2829.a98d8ca3d080dd49.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2829.a98d8ca3d080dd49.js deleted file mode 100644 index 29f6a6b88..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2829.a98d8ca3d080dd49.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2829],{82829:(t,e,a)=>{a.d(e,{diagram:()=>E});var r=a(84492),i=a(94191),n=a(13892),l=a(69301),s=a(98999),o=a(91158),c=a(89321),d={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},g={axes:[],curves:[],options:d},u=structuredClone(g),p=l.UI.radar,x=(0,o.K)(()=>(0,n.$t)({...p,...(0,l.zj)().radar}),"getConfig"),h=(0,o.K)(()=>u.axes,"getAxes"),m=(0,o.K)(()=>u.curves,"getCurves"),$=(0,o.K)(()=>u.options,"getOptions"),f=(0,o.K)(t=>{u.axes=t.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),y=(0,o.K)(t=>{u.curves=t.map(t=>({name:t.name,label:t.label??t.name,entries:v(t.entries)}))},"setCurves"),v=(0,o.K)(t=>{if(void 0==t[0].axis)return t.map(t=>t.value);let e=h();if(0===e.length)throw Error("Axes must be populated before curves for reference entries");return e.map(e=>{let a=t.find(t=>t.axis?.$refText===e.name);if(void 0===a)throw Error("Missing entry for axis "+e.label);return a.value})},"computeCurveEntries"),w={getAxes:h,getCurves:m,getOptions:$,setAxes:f,setCurves:y,setOptions:(0,o.K)(t=>{let e=t.reduce((t,e)=>(t[e.name]=e,t),{});u.options={showLegend:e.showLegend?.value??d.showLegend,ticks:e.ticks?.value??d.ticks,max:e.max?.value??d.max,min:e.min?.value??d.min,graticule:e.graticule?.value??d.graticule},u.options.ticks>32&&(s.R.warn(`Radar diagram ticks (${u.options.ticks}) exceeds maximum allowed (32). Using 32 instead.`),u.options.ticks=32)},"setOptions"),getConfig:x,clear:(0,o.K)(()=>{(0,l.IU)(),u=structuredClone(g)},"clear"),setAccTitle:l.SV,getAccTitle:l.iN,setDiagramTitle:l.ke,getDiagramTitle:l.ab,getAccDescription:l.m7,setAccDescription:l.EI},b=(0,o.K)(t=>{(0,r.S)(t,w);let{axes:e,curves:a,options:i}=t;w.setAxes(e),w.setCurves(a),w.setOptions(i)},"populate"),C={parse:(0,o.K)(async t=>{let e=await (0,c.qg)("radar",t);s.R.debug(e),b(e)},"parse")},k=(0,o.K)((t,e,a,r)=>{let n=r.db,l=n.getAxes(),s=n.getCurves(),o=n.getOptions(),c=n.getConfig(),d=n.getDiagramTitle(),g=K((0,i.D)(e),c),u=o.max??Math.max(...s.map(t=>Math.max(...t.entries))),p=o.min,x=Math.min(c.width,c.height)/2;M(g,l,x,o.ticks,o.graticule),L(g,l,x,c),T(g,l,s,p,u,o.graticule,c),I(g,s,o.showLegend,c),g.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),K=(0,o.K)((t,e)=>{let a=e.width+e.marginLeft+e.marginRight,r=e.height+e.marginTop+e.marginBottom,i={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};return(0,l.a$)(t,r,a,e.useMaxWidth??!0),t.attr("viewBox",`0 0 ${a} ${r}`).attr("overflow","visible"),t.append("g").attr("transform",`translate(${i.x}, ${i.y})`)},"drawFrame"),M=(0,o.K)((t,e,a,r,i)=>{if("circle"===i)for(let e=0;e{let a=2*e*Math.PI/i-Math.PI/2,r=l*Math.cos(a),n=l*Math.sin(a);return`${r},${n}`}).join(" ");t.append("polygon").attr("points",s).attr("class","radarGraticule")}}},"drawGraticule"),L=(0,o.K)((t,e,a,r)=>{let i=e.length;for(let n=0;n.01?"start":o<-.01?"end":"middle",g=c>.01?"hanging":c<-.01?"auto":"central";t.append("text").text(l).attr("x",a*r.axisLabelFactor*o+4*o).attr("y",a*r.axisLabelFactor*c+4*c).attr("text-anchor",d).attr("dominant-baseline",g).attr("class","radarAxisLabel")}},"drawAxes");function T(t,e,a,r,i,n,l){let s=e.length,o=Math.min(l.width,l.height)/2;a.forEach((e,a)=>{if(e.entries.length!==s)return;let c=e.entries.map((t,e)=>{let a=2*Math.PI*e/s-Math.PI/2,n=A(t,r,i,o);return{x:n*Math.cos(a),y:n*Math.sin(a)}});"circle"===n?t.append("path").attr("d",S(c,l.curveTension)).attr("class",`radarCurve-${a}`):"polygon"===n&&t.append("polygon").attr("points",c.map(t=>`${t.x},${t.y}`).join(" ")).attr("class",`radarCurve-${a}`)})}function A(t,e,a,r){return r*(Math.min(Math.max(t,e),a)-e)/(a-e)}function S(t,e){let a=t.length,r=`M${t[0].x},${t[0].y}`;for(let i=0;i{let r=t.append("g").attr("transform",`translate(${i}, ${n+20*a})`);r.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${a}`),r.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(e.label)})}(0,o.K)(T,"drawCurves"),(0,o.K)(A,"relativeRadius"),(0,o.K)(S,"closedRoundCurve"),(0,o.K)(I,"drawLegend");var D=(0,o.K)((t,e)=>{let a="";for(let r=0;r{let e=(0,l.P$)(),a=(0,l.zj)(),r=(0,n.$t)(e,a.themeVariables),i=(0,n.$t)(r.radar,t);return{themeVariables:r,radarOptions:i}},"buildRadarStyleOptions"),E={parser:C,db:w,renderer:{draw:k},styles:(0,o.K)(({radar:t}={})=>{let{themeVariables:e,radarOptions:a}=O(t);return` - .radarTitle { - font-size: ${e.fontSize}; - color: ${e.titleColor}; - dominant-baseline: hanging; - text-anchor: middle; - } - .radarAxisLine { - stroke: ${a.axisColor}; - stroke-width: ${a.axisStrokeWidth}; - } - .radarAxisLabel { - font-size: ${a.axisLabelFontSize}px; - color: ${a.axisColor}; - } - .radarGraticule { - fill: ${a.graticuleColor}; - fill-opacity: ${a.graticuleOpacity}; - stroke: ${a.graticuleColor}; - stroke-width: ${a.graticuleStrokeWidth}; - } - .radarLegendText { - text-anchor: start; - font-size: ${a.legendFontSize}px; - dominant-baseline: hanging; - } - ${D(e,a)} - `},"styles")}},84492:(t,e,a)=>{function r(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}a.d(e,{S:()=>r}),(0,a(91158).K)(r,"populateCommonDb")}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2918.39b223fabcb9cb5e.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2918.39b223fabcb9cb5e.js deleted file mode 100644 index 42b6d21fa..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/2918.39b223fabcb9cb5e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2918],{92918:(r,e,s)=>{s.d(e,{diagram:()=>l});var a=s(48771);s(3392),s(74773),s(24002),s(33807),s(33332),s(48734),s(11232),s(13031),s(69981),s(5663),s(82142),s(29278),s(13892),s(69301),s(98999);var t=s(91158),l={parser:a._$,get db(){return new a.NM},renderer:a.Lh,styles:a.tM,init:(0,t.K)(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/3550.c14b56f51871ec25.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/3550.c14b56f51871ec25.js deleted file mode 100644 index f53fd5ec1..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/3550.c14b56f51871ec25.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3550],{63550:(e,t,a)=>{a.d(t,{diagram:()=>v});var i=a(84492),l=a(94191),r=a(13892),n=a(69301),s=a(98999),o=a(91158),c=a(89321),d=a(70668),p=n.UI.pie,h={sections:new Map,showData:!1,config:p},g=h.sections,u=h.showData,f=structuredClone(p),m=(0,o.K)(()=>structuredClone(f),"getConfig"),$=(0,o.K)(()=>{g=new Map,u=h.showData,(0,n.IU)()},"clear"),x=(0,o.K)(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);g.has(e)||(g.set(e,t),s.R.debug(`added new section: ${e}, with value: ${t}`))},"addSection"),w=(0,o.K)(()=>g,"getSections"),S=(0,o.K)(e=>{u=e},"setShowData"),y=(0,o.K)(()=>u,"getShowData"),b={getConfig:m,clear:$,setDiagramTitle:n.ke,getDiagramTitle:n.ab,setAccTitle:n.SV,getAccTitle:n.iN,setAccDescription:n.EI,getAccDescription:n.m7,addSection:x,getSections:w,setShowData:S,getShowData:y},C=(0,o.K)((e,t)=>{(0,i.S)(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},"populateDb"),D={parse:(0,o.K)(async e=>{let t=await (0,c.qg)("pie",e);s.R.debug(t),C(t,b)},"parse")},T=(0,o.K)(e=>` - .pieCircle{ - stroke: ${e.pieStrokeColor}; - stroke-width : ${e.pieStrokeWidth}; - opacity : ${e.pieOpacity}; - } - .pieCircle.highlighted{ - scale: 1.05; - opacity: 1; - } - .pieCircle.highlightedOnHover:hover{ - transition-duration: 250ms; - scale: 1.05; - opacity: 1; - } - .pieOuterCircle{ - stroke: ${e.pieOuterStrokeColor}; - stroke-width: ${e.pieOuterStrokeWidth}; - fill: none; - } - .pieTitleText { - text-anchor: middle; - font-size: ${e.pieTitleTextSize}; - fill: ${e.pieTitleTextColor}; - font-family: ${e.fontFamily}; - } - .slice { - font-family: ${e.fontFamily}; - fill: ${e.pieSectionTextColor}; - font-size:${e.pieSectionTextSize}; - // fill: white; - } - .legend text { - fill: ${e.pieLegendTextColor}; - font-family: ${e.fontFamily}; - font-size: ${e.pieLegendTextSize}; - } -`,"getStyles"),k=(0,o.K)(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),a=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return(0,d.rLf)().value(e=>e.value).sort(null)(a)},"createPieArcs"),v={parser:D,db:b,renderer:{draw:(0,o.K)((e,t,a,i)=>{s.R.debug("rendering pie chart\n"+e);let o=i.db,c=(0,n.D7)(),p=(0,r.$t)(o.getConfig(),c.pie),h=(0,l.D)(t),g=h.append("g");g.attr("transform","translate(225,225)");let{themeVariables:u}=c,[f]=(0,r.I5)(u.pieOuterStrokeWidth);f??=2;let m=p.legendPosition,$=p.textPosition,x=p.donutHole>0&&p.donutHole<=.9?p.donutHole:0,w=(0,d.JLW)().innerRadius(185*x).outerRadius(185),S=(0,d.JLW)().innerRadius(185*$).outerRadius(185*$),y=g.append("g");y.append("circle").attr("cx",0).attr("cy",0).attr("r",185+f/2).attr("class","pieOuterCircle");let b=o.getSections(),C=k(b),D=[u.pie1,u.pie2,u.pie3,u.pie4,u.pie5,u.pie6,u.pie7,u.pie8,u.pie9,u.pie10,u.pie11,u.pie12],T=0;b.forEach(e=>{T+=e});let v=C.filter(e=>"0"!==(e.data.value/T*100).toFixed(0)),A=(0,d.UMr)(D).domain([...b.keys()]);y.selectAll("mySlices").data(v).enter().append("path").attr("d",w).attr("fill",e=>A(e.data.label)).attr("class",e=>{let t="pieCircle";return"hover"===p.highlightSlice?t+=" highlightedOnHover":p.highlightSlice===e.data.label&&(t+=" highlighted"),t}),y.selectAll("mySlices").data(v).enter().append("text").text(e=>(e.data.value/T*100).toFixed(0)+"%").attr("transform",e=>"translate("+S.centroid(e)+")").style("text-anchor","middle").attr("class","slice");let K=g.append("text").text(o.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText"),R=[...b.entries()].map(([e,t])=>({label:e,value:t})),O=g.selectAll(".legend").data(R).enter().append("g").attr("class","legend");O.append("rect").attr("width",18).attr("height",18).style("fill",e=>A(e.label)).style("stroke",e=>A(e.label)),O.append("text").attr("x",22).attr("y",14).text(e=>o.getShowData()?`${e.label} [${e.value}]`:e.label);let M=Math.max(...O.selectAll("text").nodes().map(e=>e?.getBoundingClientRect().width??0)),z=450,W=490,E=22*R.length;switch(m){case"center":O.attr("transform",(e,t)=>"translate("+(-M/2-22)+","+(22*t-22*R.length/2)+")");break;case"top":z+=E,O.attr("transform",(e,t)=>`translate(${-M/2-22}, ${22*t-185})`),y.attr("transform",()=>`translate(0, ${E+22})`);break;case"bottom":z+=E,O.attr("transform",(e,t)=>"translate("+(-M/2-22)+","+(22*t- -207)+")");break;case"left":W+=22+M,O.attr("transform",(e,t)=>"translate(-207,"+(22*t-22*R.length/2)+")"),y.attr("transform",()=>`translate(${M+18+4}, 0)`);break;default:W+=22+M,O.attr("transform",(e,t)=>"translate(216,"+(22*t-22*R.length/2)+")")}let F=K.node()?.getBoundingClientRect().width??0,H=Math.min(0,225-F/2),L=Math.max(W,225+F/2)-H;h.attr("viewBox",`${H} 0 ${L} ${z}`),(0,n.a$)(h,z,L,p.useMaxWidth)},"draw")},styles:T}},84492:(e,t,a)=>{function i(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}a.d(t,{S:()=>i}),(0,a(91158).K)(i,"populateCommonDb")}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/3922.410fe2f0ee610f5a.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/3922.410fe2f0ee610f5a.js deleted file mode 100644 index 1e31ab9e7..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/3922.410fe2f0ee610f5a.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3922],{24002:(t,e,s)=>{s.d(e,{P:()=>n});var i=s(69301),r=s(98999),a=s(91158),n=(0,a.K)((t,e,s,a)=>{t.attr("class",s);let{width:n,height:c,x:h,y:u}=l(t,e);(0,i.a$)(t,c,n,a);let d=o(h,u,n,c,e);t.attr("viewBox",d),r.R.debug(`viewBox configured: ${d} with padding: ${e}`)},"setupViewPortForSVG"),l=(0,a.K)((t,e)=>{let s=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+2*e,height:s.height+2*e,x:s.x,y:s.y}},"calculateDimensionsWithPadding"),o=(0,a.K)((t,e,s,i,r)=>`${t-r} ${e-r} ${s} ${i}`,"createViewBox")},63922:(t,e,s)=>{s.d(e,{diagram:()=>k});var i=s(74773),r=s(24002),a=s(33807);s(48734),s(11232),s(13031),s(69981),s(5663),s(82142),s(29278);var n=s(13892),l=s(69301),o=s(98999),c=s(91158),h=s(70668),u=s(82237),d=s(43500),y=function(){var t=(0,c.K)(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],s=[2,2],i=[1,7],r=[1,9],a=[1,10],n=[1,11],l=[1,12],o=[1,30],h=[1,23],u=[1,24],d=[1,25],y=[1,26],p=[1,27],b=[1,19],g=[1,28],_=[1,29],f=[1,20],m=[1,18],k=[1,21],E=[1,22],S=[2,6],$=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],T=[1,36],O=[1,37],N=[1,38],x=[1,39],C=[1,40],A=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],R=[1,46],I=[1,47],D=[1,57],v=[43,51,53,54,55,74,75],L=[1,70],w=[1,68],K=[1,65],M=[1,69],B=[1,71],G=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],F=[1,78],Y=[1,77],P=[1,76],z=[69,70,71,72,73],U=[1,91],Z=[6,9,45,50],j=[6,9,12,44,45,50,51,52],W=[1,101],q=[1,100],X=[1,99],V=[18,61],H=[1,110],Q=[1,109],J=[20,43,51,53,54,55],tt=[18,61,64,66],te={trace:(0,c.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:(0,c.K)(function(t,e,s,i,r,a,n){var l=a.length-1;switch(r){case 1:break;case 2:case 5:case 6:this.$=[];break;case 3:this.$=a[l-1].concat(a[l]);break;case 4:case 34:case 59:case 60:case 61:case 62:case 86:case 69:case 71:case 74:this.$=a[l];break;case 7:i.addEntity(a[l-4]),i.addEntity(a[l-2]),i.addRelationship(a[l-4],a[l],a[l-2],a[l-3]),this.$=[a[l-4],a[l-2]];break;case 8:i.addEntity(a[l-8]),i.addEntity(a[l-4]),i.addRelationship(a[l-8],a[l],a[l-4],a[l-5]),i.setClass([a[l-8]],a[l-6]),i.setClass([a[l-4]],a[l-2]),this.$=[a[l-8],a[l-4]];break;case 9:i.addEntity(a[l-6]),i.addEntity(a[l-2]),i.addRelationship(a[l-6],a[l],a[l-2],a[l-3]),i.setClass([a[l-6]],a[l-4]),this.$=[a[l-6],a[l-2]];break;case 10:i.addEntity(a[l-6]),i.addEntity(a[l-4]),i.addRelationship(a[l-6],a[l],a[l-4],a[l-5]),i.setClass([a[l-4]],a[l-2]),this.$=[a[l-6],a[l-4]];break;case 11:i.addEntity(a[l-3]),i.addAttributes(a[l-3],a[l-1]),this.$=[a[l-3]];break;case 12:i.addEntity(a[l-5]),i.addAttributes(a[l-5],a[l-1]),i.setClass([a[l-5]],a[l-3]),this.$=[a[l-5]];break;case 13:i.addEntity(a[l-2]),this.$=[a[l-2]];break;case 14:i.addEntity(a[l-4]),i.setClass([a[l-4]],a[l-2]),this.$=[a[l-4]];break;case 15:i.addEntity(a[l]),this.$=[a[l]];break;case 16:i.addEntity(a[l-2]),i.setClass([a[l-2]],a[l]),this.$=[a[l-2]];break;case 17:i.addEntity(a[l-6],a[l-4]),i.addAttributes(a[l-6],a[l-1]),this.$=[a[l-6]];break;case 18:i.addEntity(a[l-8],a[l-6]),i.addAttributes(a[l-8],a[l-1]),i.setClass([a[l-8]],a[l-3]),this.$=[a[l-8]];break;case 19:i.addEntity(a[l-5],a[l-3]),this.$=[a[l-5]];break;case 20:i.addEntity(a[l-7],a[l-5]),i.setClass([a[l-7]],a[l-2]),this.$=[a[l-7]];break;case 21:i.addEntity(a[l-3],a[l-1]);break;case 22:i.addEntity(a[l-5],a[l-3]),i.setClass([a[l-5]],a[l]);break;case 23:case 24:this.$=a[l].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=a[l].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=a[l]:(i.setDirection(a[l].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:a[l-2].id},a[l-1],{text:a[l-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:a[l-1],text:a[l-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:a[l-4],text:a[l-2]};break;case 35:this.$=a[l-1]+" "+a[l];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=a[l-3],i.addClass(a[l-2],a[l-1]);break;case 41:case 42:case 63:case 72:case 47:this.$=[a[l]];break;case 43:case 44:this.$=a[l-2].concat([a[l]]);break;case 45:this.$=a[l-2],i.setClass(a[l-1],a[l]);break;case 46:this.$=a[l-3],i.addCssStyles(a[l-2],a[l-1]);break;case 48:case 73:a[l-2].push(a[l]),this.$=a[l-2];break;case 50:case 70:this.$=a[l-1]+a[l];break;case 58:case 84:case 85:case 75:this.$=a[l].replace(/"/g,"");break;case 64:a[l].push(a[l-1]),this.$=a[l];break;case 65:this.$={type:a[l-1],name:a[l]};break;case 66:this.$={type:a[l-2],name:a[l-1],keys:a[l]};break;case 67:this.$={type:a[l-2],name:a[l-1],comment:a[l]};break;case 68:this.$={type:a[l-3],name:a[l-2],keys:a[l-1],comment:a[l]};break;case 76:this.$={cardA:a[l],relType:a[l-1],cardB:a[l-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,s,{5:3}),{6:[1,4],7:5,8:6,9:i,10:8,21:r,23:a,25:n,27:l,28:13,29:14,30:15,31:16,32:17,34:o,37:h,38:u,39:d,40:y,41:p,43:b,46:g,47:_,51:f,53:m,54:k,55:E},t(e,S,{1:[2,1]}),t($,[2,3]),t($,[2,4]),t($,[2,5]),t($,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:T,70:O,71:N,72:x,73:C}),{22:[1,41]},{24:[1,42]},{26:[1,43]},t($,[2,26]),t($,[2,27]),t($,[2,28]),t($,[2,29]),t($,[2,30]),t($,s,{5:44}),t(A,[2,58]),t(A,[2,59]),t(A,[2,60]),t(A,[2,61]),t(A,[2,62]),t($,[2,36]),t($,[2,37]),t($,[2,38]),t($,[2,39]),{15:45,43:R,44:I},{15:48,43:R,44:I},{15:49,43:R,44:I},{10:50,43:b,51:f,53:m,54:k,55:E},{10:51,43:b,51:f,53:m,54:k,55:E},{15:52,43:R,44:I},{17:53,18:[1,54],56:55,57:56,61:D},{10:58,43:b,51:f,53:m,54:k,55:E},{68:59,74:[1,60],75:[1,61]},t(v,[2,77]),t(v,[2,78]),t(v,[2,79]),t(v,[2,80]),t(v,[2,81]),t($,[2,23]),t($,[2,24]),t($,[2,25]),{6:[1,63],7:5,8:6,9:i,10:8,21:r,23:a,25:n,27:l,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:o,37:h,38:u,39:d,40:y,41:p,43:b,46:g,47:_,51:f,53:m,54:k,55:E},{12:L,42:64,44:w,45:K,48:66,49:67,51:M,52:B},t(G,[2,41]),t(G,[2,42]),{15:72,43:R,44:I,45:K},{12:L,42:73,44:w,45:K,48:66,49:67,51:M,52:B},{6:F,9:Y,19:[1,75],35:74,50:P},{12:[1,79],14:[1,80]},t($,[2,16],{67:35,11:81,16:[1,82],45:K,69:T,70:O,71:N,72:x,73:C}),{18:[1,83]},t($,[2,13]),{17:84,18:[2,63],56:55,57:56,61:D},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:T,70:O,71:N,72:x,73:C},t(z,[2,82]),t(z,[2,83]),t($,[2,31]),t($,S),{6:F,9:Y,35:90,45:U,50:P},{43:[1,92],44:[1,93]},t(Z,[2,47],{49:94,12:L,44:w,51:M,52:B}),t(j,[2,49]),t(j,[2,54]),t(j,[2,55]),t(j,[2,56]),t(j,[2,57]),t($,[2,45],{45:K}),{6:F,9:Y,35:95,45:U,50:P},t($,[2,32]),{10:97,36:96,43:b,51:f,53:m,54:k,55:E},t($,[2,51]),t($,[2,52]),t($,[2,53]),{13:98,43:W,53:q,76:X},{15:102,43:R,44:I},{10:103,43:b,51:f,53:m,54:k,55:E},{17:104,18:[1,105],56:55,57:56,61:D},t($,[2,11]),{18:[2,64]},t(V,[2,65],{59:106,60:107,63:108,65:H,66:Q}),t([18,61,65,66],[2,71]),{61:[2,70]},t($,[2,21],{14:[1,112],16:[1,111]}),t([43,51,53,54,55],[2,76]),t($,[2,40]),{12:L,44:w,48:113,49:67,51:M,52:B},t(G,[2,43]),t(G,[2,44]),t(j,[2,50]),t($,[2,46]),{10:115,20:[1,114],43:b,51:f,53:m,54:k,55:E},t(J,[2,34]),t($,[2,7]),t($,[2,84]),t($,[2,85]),t($,[2,86]),{12:[1,116],45:K},{12:[1,118],14:[1,117]},{18:[1,119]},t($,[2,14]),t(V,[2,66],{60:120,64:[1,121],66:Q}),t(V,[2,67]),t(tt,[2,72]),t(V,[2,75]),t(tt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:D},{15:124,43:R,44:I},t(Z,[2,48],{49:94,12:L,44:w,51:M,52:B}),{6:F,9:Y,35:125,50:P},t(J,[2,35]),{13:126,43:W,53:q,76:X},{15:127,43:R,44:I},{13:128,43:W,53:q,76:X},t($,[2,12]),t(V,[2,68]),{63:129,65:H},{18:[1,130]},t($,[2,19]),t($,[2,22],{16:[1,131],45:K}),t($,[2,33]),t($,[2,10]),{12:[1,132],45:K},t($,[2,9]),t(tt,[2,73]),t($,[2,17]),{17:133,18:[1,134],56:55,57:56,61:D},{13:135,43:W,53:q,76:X},{18:[1,136]},t($,[2,20]),t($,[2,8]),t($,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:(0,c.K)(function(t,e){if(e.recoverable)this.trace(t);else{var s=Error(t);throw s.hash=e,s}},"parseError"),parse:(0,c.K)(function(t){var e=this,s=[0],i=[],r=[null],a=[],n=this.table,l="",o=0,h=0,u=0,d=a.slice.call(arguments,1),y=Object.create(this.lexer),p={};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(p[b]=this.yy[b]);y.setInput(t,p),p.lexer=y,p.parser=this,void 0===y.yylloc&&(y.yylloc={});var g=y.yylloc;a.push(g);var _=y.options&&y.options.ranges;function f(){var t;return"number"!=typeof(t=i.pop()||y.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.parseError?this.parseError=p.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,c.K)(function(t){s.length=s.length-2*t,r.length=r.length-t,a.length=a.length-t},"popStack"),(0,c.K)(f,"lex");for(var m,k,E,S,$,T,O,N,x,C={};;){if(E=s[s.length-1],this.defaultActions[E]?S=this.defaultActions[E]:(null==m&&(m=f()),S=n[E]&&n[E][m]),void 0===S||!S.length||!S[0]){var A="";for(T in x=[],n[E])this.terminals_[T]&&T>2&&x.push("'"+this.terminals_[T]+"'");A=y.showPosition?"Parse error on line "+(o+1)+":\n"+y.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(A,{text:y.match,token:this.terminals_[m]||m,line:y.yylineno,loc:g,expected:x})}if(S[0]instanceof Array&&S.length>1)throw Error("Parse Error: multiple actions possible at state: "+E+", token: "+m);switch(S[0]){case 1:s.push(m),r.push(y.yytext),a.push(y.yylloc),s.push(S[1]),m=null,k?(m=k,k=null):(h=y.yyleng,l=y.yytext,o=y.yylineno,g=y.yylloc,u>0&&u--);break;case 2:if(O=this.productions_[S[1]][1],C.$=r[r.length-O],C._$={first_line:a[a.length-(O||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(O||1)].first_column,last_column:a[a.length-1].last_column},_&&(C._$.range=[a[a.length-(O||1)].range[0],a[a.length-1].range[1]]),void 0!==($=this.performAction.apply(C,[l,h,o,p,S[1],r,a].concat(d))))return $;O&&(s=s.slice(0,-1*O*2),r=r.slice(0,-1*O),a=a.slice(0,-1*O)),s.push(this.productions_[S[1]][0]),r.push(C.$),a.push(C._$),N=n[s[s.length-2]][s[s.length-1]],s.push(N);break;case 3:return!0}}return!0},"parse")};function ts(){this.yy={}}return te.lexer={EOF:1,parseError:(0,c.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,c.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,c.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,c.K)(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,c.K)(function(){return this._more=!0,this},"more"),reject:(0,c.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,c.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,c.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,c.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,c.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,c.K)(function(t,e){var s,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack)for(var a in r)this[a]=r[a];return!1},"test_match"),next:(0,c.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,s,i,r=this._currentRules(),a=0;ae[0].length)){if(e=s,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,r[a])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,c.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,c.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,c.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,c.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,c.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,c.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,c.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,c.K)(function(t,e,s,i){switch(s){case 0:return this.begin("acc_title"),23;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),25;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 28:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:case 22:case 30:case 37:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin("block"),16;case 17:case 18:case 40:return 52;case 19:case 39:return 45;case 20:return 14;case 21:case 38:return 12;case 23:return 65;case 24:case 25:case 27:return 61;case 26:this.begin("block_bq");break;case 29:return 66;case 31:return this.popState(),18;case 32:case 81:return e.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin("style"),47;case 36:return this.popState(),9;case 41:return this.begin("style"),41;case 42:return 46;case 43:return 34;case 44:return 33;case 45:case 49:case 50:case 68:return 69;case 46:case 47:case 48:case 56:case 58:case 70:return 71;case 51:case 52:case 53:case 54:case 55:case 57:case 69:return 70;case 59:case 60:case 62:case 63:case 64:case 67:return 72;case 61:return 54;case 65:return 55;case 66:return 51;case 71:return 73;case 72:case 75:case 76:case 77:return 74;case 73:case 74:return 75;case 78:return 44;case 79:return 50;case 80:return 43;case 82:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,80,81,82],inclusive:!0}}},(0,c.K)(ts,"Parser"),ts.prototype=te,te.Parser=ts,new ts}();y.parser=y;var p=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.subgraphDepth=0,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=l.SV,this.getAccTitle=l.iN,this.setAccDescription=l.EI,this.getAccDescription=l.m7,this.setDiagramTitle=l.ke,this.getDiagramTitle=l.ab,this.getConfig=(0,c.K)(()=>(0,l.D7)().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this),this.addSubGraph=this.addSubGraph.bind(this)}static{(0,c.K)(this,"ErDB")}addEntity(t,e=""){return this.entities.has(t)?!this.entities.get(t)?.alias&&e&&(this.entities.get(t).alias=e,o.R.info(`Add alias '${e}' to entity '${t}'`)):(this.entities.set(t,{id:`entity-${t}-${this.entities.size}`,label:t,attributes:[],alias:e,shape:"erBox",look:(0,l.D7)().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),o.R.info("Added new entity :",t)),this.entities.get(t)}getEntity(t){return this.entities.get(t)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(t,e){let s,i=this.addEntity(t);for(s=e.length-1;s>=0;s--)e[s].keys||(e[s].keys=[]),e[s].comment||(e[s].comment=""),i.attributes.push(e[s]),o.R.debug("Added attribute ",e[s].name)}addRelationship(t,e,s,i){let r,a;if(this.subGraphLookup.has(t))r=t;else{let e=this.addEntity(t);if(!e)return;r=e.id}if(this.subGraphLookup.has(s))a=s;else{let t=this.addEntity(s);if(!t)return;a=t.id}let n={entityA:r,roleA:e,entityB:a,relSpec:i};this.relationships.push(n),o.R.debug("Added new relationship :",n)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(t){this.direction=t}getCompiledStyles(t){let e=[];for(let s of t){let t=this.classes.get(s);t?.styles&&(e=[...e,...t.styles??[]].map(t=>t.trim())),t?.textStyles&&(e=[...e,...t.textStyles??[]].map(t=>t.trim()))}return e}addCssStyles(t,e){for(let s of t){let t=this.entities.get(s),i=this.subGraphLookup.get(s);if(e){if(t)for(let s of e)t.cssStyles.push(s);if(i)for(let t of(i.cssStyles||(i.cssStyles=[]),e))i.cssStyles.push(t)}}}addClass(t,e){t.forEach(t=>{let s=this.classes.get(t);void 0===s&&(s={id:t,styles:[],textStyles:[]},this.classes.set(t,s)),e&&e.forEach(function(t){if(/color/.exec(t)){let e=t.replace("fill","bgFill");s.textStyles.push(e)}s.styles.push(t)})})}addSubGraph(t,e,s){let i=t.text.trim(),r=s.text,a=(0,c.K)(t=>{let e,s=new Set;return{nodeList:t.filter(t=>{if(t?.stmt)return"dir"===t.stmt&&(e=t.value),!1;if("string"!=typeof t)return!1;let i=t.trim();return!(!i||s.has(i))&&(s.add(i),!0)}),dir:e}},"uniq")(e.flat()),n=a.nodeList,l=a.dir;i=i??"subGraph"+this.subCount,r=r||"",r=this.sanitizeText(r),this.subCount=this.subCount+1;let h={id:i,nodes:n,title:r.trim(),classes:[],cssStyles:[],dir:l,labelType:this.sanitizeNodeLabelType(s?.type)};return o.R.info("Adding",h.id,h.nodes,h.dir),h.nodes=this.makeUniq(h,this.subGraphs).nodes,this.subGraphs.push(h),this.subGraphLookup.set(i,h),i}getSubGraphs(){return this.subGraphs}setClass(t,e){for(let s of t){let t=this.entities.get(s);if(t)for(let s of e)t.cssClasses+=" "+s;let i=this.subGraphLookup.get(s);if(i)for(let t of e)i.classes.push(t)}}subgraphNodeCache(t){let e=new Set;for(let s of t)for(let t of s.nodes)e.add(t);return e}makeUniq(t,e){let s=this.subgraphNodeCache(e),i=[];return t.nodes.forEach((e,r)=>{s.has(e)?o.R.warn(`Entity '${e}' already belongs to another subgraph and will be ignored`):i.push(t.nodes[r])}),{nodes:i}}sanitizeText(t){return l.Y2.sanitizeText(t,(0,l.D7)())}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,(0,l.IU)()}getData(){let t=[],e=[],s=(0,l.D7)(),i=this.getSubGraphs(),r=new Map,a=new Map;for(let t=i.length-1;t>=0;t--){let e=i[t];for(let t of(e.nodes.length>0&&a.set(e.id,!0),e.nodes))r.set(t,e.id)}for(let e=i.length-1;e>=0;e--){let a=i[e];t.push({id:a.id,label:a.title,labelStyle:"",labelType:a.labelType,parentId:r.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssStyles:a.cssStyles,cssClasses:a.classes.join(" "),shape:"rect",dir:a.dir,isGroup:!0,look:s.look})}let o=new Set(i.map(t=>t.id)),c=0;for(let e of this.entities.keys()){if(o.has(e))continue;let s=this.entities.get(e);s&&(s.cssCompiledStyles=this.getCompiledStyles(s.cssClasses.split(" ")),s.colorIndex=c++,t.push({...s,parentId:r.get(e),isGroup:!1}))}let h=0;for(let t of this.relationships){let i={id:(0,n.rY)(t.entityA,t.entityB,{prefix:"id",counter:h++}),type:"normal",curve:"basis",start:t.entityA,end:t.entityB,label:t.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:t.relSpec.cardB.toLowerCase(),arrowTypeEnd:t.relSpec.cardA.toLowerCase(),pattern:"IDENTIFYING"==t.relSpec.relType?"solid":"dashed",look:s.look,labelType:"markdown"};e.push(i)}return{nodes:t,edges:e,other:{},config:s,direction:this.direction}}},b={};(0,c.V)(b,{draw:()=>g});var g=(0,c.K)(async function(t,e,s,c){o.R.info("REF0:"),o.R.info("Drawing er diagram (unified)",e);let{securityLevel:u,er:d,layout:y}=(0,l.D7)(),p=c.db.getData(),b=(0,i.A)(e,u);p.type=c.type,p.layoutAlgorithm=(0,a.q7)(y),p.config.flowchart.nodeSpacing=d?.nodeSpacing||140,p.config.flowchart.rankSpacing=d?.rankSpacing||80,p.direction=c.db.getDirection();let{config:g}=p,{look:_}=g;"neo"===_?p.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:p.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],p.diagramId=e,await (0,a.XX)(p,b),"elk"===p.layoutAlgorithm&&b.select(".edges").lower();let f=b.selectAll('[id*="-background"]');Array.from(f).length>0&&f.each(function(){let t=(0,h.Ltv)(this),e=t.attr("id").replace("-background",""),s=b.select(`#${CSS.escape(e)}`);if(!s.empty()){let e=s.attr("transform");t.attr("transform",e)}}),n._K.insertTitle(b,"erDiagramTitleText",d?.titleTopMargin??25,c.db.getDiagramTitle()),(0,r.P)(b,8,"erDiagram",d?.useMaxWidth??!0)},"draw"),_=(0,c.K)((t,e)=>{let s=u.A,i=s(t,"r"),r=s(t,"g"),a=s(t,"b");return d.A(i,r,a,e)},"fade"),f=new Set(["redux-color","redux-dark-color"]),m=(0,c.K)(t=>{let{theme:e,look:s,bkgColorArray:i,borderColorArray:r}=t;if(!f.has(e))return"";let a=i?.length>0,n="";for(let e=0;e{let{look:e,theme:s,erEdgeLabelBackground:i,strokeWidth:r}=t;return` - ${m(t)} - .entityBox { - fill: ${t.mainBkg}; - stroke: ${t.nodeBorder}; - } - - .relationshipLabelBox { - fill: ${t.tertiaryColor}; - opacity: 0.7; - background-color: ${t.tertiaryColor}; - rect { - opacity: 0.5; - } - } - - .labelBkg { - background-color: ${f.has(s)&&i?i:_(t.tertiaryColor,.5)}; - } - - .edgeLabel { - background-color: ${f.has(s)&&i?i:t.edgeLabelBackground}; - } - .edgeLabel .label rect { - fill: ${f.has(s)&&i?i:t.edgeLabelBackground}; - } - .edgeLabel .label text { - fill: ${t.textColor}; - } - - .edgeLabel .label { - fill: ${t.nodeBorder}; - font-size: 14px; - } - - .label { - font-family: ${t.fontFamily}; - color: ${t.nodeTextColor||t.textColor}; - } - - .edge-pattern-dashed { - stroke-dasharray: 8,8; - } - - .node rect, - .node circle, - .node ellipse, - .node polygon - { - fill: ${t.mainBkg}; - stroke: ${t.nodeBorder}; - stroke-width: ${"neo"===e?r:"1px"}; - } - - .relationshipLine { - stroke: ${t.lineColor}; - stroke-width: ${"neo"===e?r:"1px"}; - fill: none; - } - - .marker { - fill: none !important; - stroke: ${t.lineColor} !important; - stroke-width: 1; - } - [data-look=neo].labelBkg { - background-color: ${_(t.tertiaryColor,.5)}; - } - - .cluster rect { - fill: ${t.clusterBkg??t.mainBkg}; - stroke: ${t.clusterBorder??t.nodeBorder}; - stroke-width: 1px; - } - - .cluster text { - fill: ${t.titleColor??t.textColor}; - } - - .cluster-label text { - fill: ${t.titleColor??t.textColor}; - } -`},"getStyles")}},74773:(t,e,s)=>{s.d(e,{A:()=>a});var i=s(91158),r=s(70668),a=(0,i.K)((t,e)=>{let s;return"sandbox"===e&&(s=(0,r.Ltv)("#i"+t)),("sandbox"===e?(0,r.Ltv)(s.nodes()[0].contentDocument.body):(0,r.Ltv)("body")).select(`[id="${t}"]`)},"getDiagramElement")},82237:(t,e,s)=>{s.d(e,{A:()=>a});var i=s(25866),r=s(70897);let a=(t,e)=>i.A.lang.round(r.A.parse(t)[e])}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4065-86cebe3c49f48e0c.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4065-86cebe3c49f48e0c.js deleted file mode 100644 index 4bd41eb74..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4065-86cebe3c49f48e0c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4065],{1279:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{REDIRECT_ERROR_CODE:function(){return u},RedirectType:function(){return o},isRedirectError:function(){return l}});let n=r(76461),u="NEXT_REDIRECT";var o=function(e){return e.push="push",e.replace="replace",e}({});function l(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,o]=t,l=t.slice(2,-2).join(";"),a=Number(t.at(-2));return r===u&&("replace"===o||"push"===o)&&"string"==typeof l&&!isNaN(a)&&a in n.RedirectStatusCode}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2403:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{handleHardNavError:function(){return u},useNavFailureHandler:function(){return o}}),r(61221);let n=r(54440);function u(e){return!!e&&!!window.next.__pendingUrl&&(0,n.createHrefFromUrl)(new URL(window.location.href))!==(0,n.createHrefFromUrl)(window.next.__pendingUrl)&&(console.error("Error occurred during navigation, falling back to hard navigation",e),window.location.href=window.next.__pendingUrl.toString(),!0)}function o(){}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3023:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{computeCacheBustingSearchParam:function(){return i},computeLegacyCacheBustingSearchParam:function(){return c}});let n=r(43477),u=new TextEncoder;function o(e){return void 0===e?"0":Array.isArray(e)?e.join(","):e}function l(e,t,r,n){return(void 0===e||"0"===e)&&void 0===t&&void 0===r&&void 0===n?null:[null!=e?e:"0",o(t),o(r),o(n)].join(",")}async function a(e){var t=new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256",u.encode(e))).subarray(0,12);let r="";for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(17292)._(r(61221)).default.createContext({})},4335:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTML_LIMITED_BOT_UA_RE",{enumerable:!0,get:function(){return r}});let r=/[\w-]+-Google|Google-[\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight/i},5191:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return o},normalizeRscURL:function(){return l}});let n=r(49382),u=r(6374);function o(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,u.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function l(e){return e.replace(/\.rsc($|\?)/,"$1")}},5207:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isRecoverableError:function(){return i},onRecoverableError:function(){return c}});let n=r(17292),u=r(23491),o=n._(r(97390)),l=r(40213),a=new WeakSet;function i(e){return a.has(e)}let c=e=>{let t=(0,o.default)(e)&&"cause"in e?e.cause:e;(0,u.isBailoutToCSRError)(t)||(0,l.reportGlobalError)(t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5294:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{FetchStrategy:function(){return h},NavigationResultTag:function(){return d},PrefetchPriority:function(){return p},cancelPrefetchTask:function(){return i},createCacheKey:function(){return f},getCurrentCacheVersion:function(){return l},isPrefetchTaskDirty:function(){return s},navigate:function(){return u},prefetch:function(){return n},reschedulePrefetchTask:function(){return c},revalidateEntireCache:function(){return o},schedulePrefetchTask:function(){return a}});let r=()=>{throw Object.defineProperty(Error("Segment Cache experiment is not enabled. This is a bug in Next.js."),"__NEXT_ERROR_CODE",{value:"E654",enumerable:!1,configurable:!0})},n=r,u=r,o=r,l=r,a=r,i=r,c=r,s=r,f=r;var d=function(e){return e[e.MPA=0]="MPA",e[e.Success=1]="Success",e[e.NoOp=2]="NoOp",e[e.Async=3]="Async",e}({}),p=function(e){return e[e.Intent=2]="Intent",e[e.Default=1]="Default",e[e.Background=0]="Background",e}({}),h=function(e){return e[e.LoadingBoundary=0]="LoadingBoundary",e[e.PPR=1]="PPR",e[e.PPRRuntime=2]="PPRRuntime",e[e.Full=3]="Full",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return o}});let n=r(54440),u=r(73825);function o(e,t){var r;let{url:o,tree:l}=t,a=(0,n.createHrefFromUrl)(o),i=l||e.tree,c=e.cache;return{canonicalUrl:a,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:c,prefetchCache:e.prefetchCache,tree:i,nextUrl:null!=(r=(0,u.extractPathFromFlightRouterState)(i))?r:o.pathname}}r(73931),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6244:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return s}});let n=r(54440),u=r(27545),o=r(47661),l=r(23551),a=r(48643),i=r(9508),c=r(81107);function s(e,t){let{serverResponse:{flightData:r,canonicalUrl:s},navigatedAt:f}=t,d={};if(d.preserveCustomHistoryState=!1,"string"==typeof r)return(0,l.handleExternalUrl)(e,d,r,e.pushRef.pendingPush);let p=e.tree,h=e.cache;for(let t of r){let{segmentPath:r,tree:i}=t,_=(0,u.applyRouterStatePatchToTree)(["",...r],p,i,e.canonicalUrl);if(null===_)return e;if((0,o.isNavigatingToNewRootLayout)(p,_))return(0,l.handleExternalUrl)(e,d,e.canonicalUrl,e.pushRef.pendingPush);let y=s?(0,n.createHrefFromUrl)(s):void 0;y&&(d.canonicalUrl=y);let b=(0,c.createEmptyCacheNode)();(0,a.applyFlightData)(f,h,b,t),d.patchedTree=_,d.cache=b,h=b,p=_}return(0,i.handleMutable)(e,d)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6313:(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var a=o?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(u,l,a):u[l]=e[l]}return u.default=e,r&&r.set(e,u),u}r.r(t),r.d(t,{_:()=>u})},6374:(e,t)=>{"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}function n(e){return e.startsWith("@")&&"@children"!==e}function u(e,t){if(e.includes(o)){let e=JSON.stringify(t);return"{}"!==e?o+"?"+e:o}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DEFAULT_SEGMENT_KEY:function(){return l},PAGE_SEGMENT_KEY:function(){return o},addSearchParamsIfPageSegment:function(){return u},isGroupSegment:function(){return r},isParallelRouteSegment:function(){return n}});let o="__PAGE__",l="__DEFAULT__"},6638:(e,t,r)=>{"use strict";var n,u;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(u=r.g.process)?void 0:u.env)?r.g.process:r(71407)},7495:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return c}});let n=r(84127),u=r(40965);var o=u._("_maxConcurrency"),l=u._("_runningCount"),a=u._("_queue"),i=u._("_processNext");class c{enqueue(e){let t,r,u=new Promise((e,n)=>{t=e,r=n}),o=async()=>{try{n._(this,l)[l]++;let r=await e();t(r)}catch(e){r(e)}finally{n._(this,l)[l]--,n._(this,i)[i]()}};return n._(this,a)[a].push({promiseFn:u,task:o}),n._(this,i)[i](),u}bump(e){let t=n._(this,a)[a].findIndex(t=>t.promiseFn===e);if(t>-1){let e=n._(this,a)[a].splice(t,1)[0];n._(this,a)[a].unshift(e),n._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:s}),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),n._(this,o)[o]=e,n._(this,l)[l]=0,n._(this,a)[a]=[]}}function s(e){if(void 0===e&&(e=!1),(n._(this,l)[l]0){var t;null==(t=n._(this,a)[a].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8188:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessFallbackBoundary",{enumerable:!0,get:function(){return s}});let n=r(6313),u=r(97601),o=n._(r(61221)),l=r(48344),a=r(84657);r(51719);let i=r(57166);class c extends o.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,a.isHTTPAccessFallbackError)(e))return{triggeredStatus:(0,a.getAccessFallbackHTTPStatus)(e)};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.triggeredStatus?{triggeredStatus:void 0,previousPathname:e.pathname}:{triggeredStatus:t.triggeredStatus,previousPathname:e.pathname}}render(){let{notFound:e,forbidden:t,unauthorized:r,children:n}=this.props,{triggeredStatus:o}=this.state,l={[a.HTTPAccessErrorStatus.NOT_FOUND]:e,[a.HTTPAccessErrorStatus.FORBIDDEN]:t,[a.HTTPAccessErrorStatus.UNAUTHORIZED]:r};if(o){let i=o===a.HTTPAccessErrorStatus.NOT_FOUND&&e,c=o===a.HTTPAccessErrorStatus.FORBIDDEN&&t,s=o===a.HTTPAccessErrorStatus.UNAUTHORIZED&&r;return i||c||s?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("meta",{name:"robots",content:"noindex"}),!1,l[o]]}):n}return n}constructor(e){super(e),this.state={triggeredStatus:void 0,previousPathname:e.pathname}}}function s(e){let{notFound:t,forbidden:r,unauthorized:n,children:a}=e,s=(0,l.useUntrackedPathname)(),f=(0,o.useContext)(i.MissingSlotContext);return t||r||n?(0,u.jsx)(c,{pathname:s,notFound:t,forbidden:r,unauthorized:n,missingSlots:f,children:a}):(0,u.jsx)(u.Fragment,{children:a})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,r){let[o,l]=r,[a,i]=t;return(0,u.matchSegment)(a,o)?!(t.length<=2)&&e((0,n.getNextFlightSegmentPath)(t),l[i]):!!Array.isArray(a)}}});let n=r(91492),u=r(31070);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(97601),u=r(91094),o={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}},l=function(e){let{error:t}=e,r=null==t?void 0:t.digest;return(0,n.jsxs)("html",{id:"__next_error__",children:[(0,n.jsx)("head",{}),(0,n.jsxs)("body",{children:[(0,n.jsx)(u.HandleISRError,{error:t}),(0,n.jsx)("div",{style:o.error,children:(0,n.jsxs)("div",{children:[(0,n.jsxs)("h2",{style:o.text,children:["Application error: a ",r?"server":"client","-side exception has occurred while loading ",window.location.hostname," (see the"," ",r?"server logs":"browser console"," for more information)."]}),r?(0,n.jsx)("p",{style:o.text,children:"Digest: "+r}):null]})})]})]})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9508:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return o}});let n=r(73825);function u(e){return void 0!==e}function o(e,t){var r,o;let l=null==(r=t.shouldScroll)||r,a=e.nextUrl;if(u(t.patchedTree)){let r=(0,n.computeChangedPath)(e.tree,t.patchedTree);r?a=r:a||(a=e.canonicalUrl)}return{canonicalUrl:u(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:u(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:u(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:u(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!l&&(!!u(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:t.onlyHashChange||!1,hashFragment:l?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:l?null!=(o=null==t?void 0:t.scrollableSegments)?o:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:u(t.patchedTree)?t.patchedTree:e.tree,nextUrl:a}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11522:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{onCaughtError:function(){return s},onUncaughtError:function(){return f}});let n=r(17292),u=r(25199),o=r(23491),l=r(40213),a=r(81751),i=n._(r(9220)),c={decorateDevError:e=>e,handleClientError:()=>{},originConsoleError:console.error.bind(console)};function s(e,t){var r;let n,l=null==(r=t.errorBoundary)?void 0:r.constructor;if(n=n||l===a.ErrorBoundaryHandler&&t.errorBoundary.props.errorComponent===i.default)return f(e);(0,o.isBailoutToCSRError)(e)||(0,u.isNextRouterError)(e)||c.originConsoleError(e)}function f(e){(0,o.isBailoutToCSRError)(e)||(0,u.isNextRouterError)(e)||(0,l.reportGlobalError)(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11689:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return s},RedirectType:function(){return u.RedirectType},forbidden:function(){return l.forbidden},notFound:function(){return o.notFound},permanentRedirect:function(){return n.permanentRedirect},redirect:function(){return n.redirect},unauthorized:function(){return a.unauthorized},unstable_isUnrecognizedActionError:function(){return f},unstable_rethrow:function(){return i.unstable_rethrow}});let n=r(87928),u=r(1279),o=r(51612),l=r(54297),a=r(48438),i=r(88126);class c extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class s extends URLSearchParams{append(){throw new c}delete(){throw new c}set(){throw new c}sort(){throw new c}}function f(){throw Object.defineProperty(Error("`unstable_isUnrecognizedActionError` can only be used on the client."),"__NEXT_ERROR_CODE",{value:"E776",enumerable:!1,configurable:!0})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12459:(e,t,r)=>{"use strict";let n,u;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return U}});let o=r(17292),l=r(6313),a=r(97601);r(87715);let i=o._(r(15043)),c=l._(r(61221)),s=r(68859),f=r(3927),d=r(5207),p=r(11522),h=r(40647),_=r(83535),y=r(55461),b=o._(r(81107)),v=r(79926);r(57166);let g=r(32339),m=s.createFromReadableStream,R=document,E=new TextEncoder,O=!1,P=!1,j=null;function T(e){if(0===e[0])n=[];else if(1===e[0]){if(!n)throw Object.defineProperty(Error("Unexpected server data: missing bootstrap script."),"__NEXT_ERROR_CODE",{value:"E18",enumerable:!1,configurable:!0});u?u.enqueue(E.encode(e[1])):n.push(e[1])}else if(2===e[0])j=e[1];else if(3===e[0]){if(!n)throw Object.defineProperty(Error("Unexpected server data: missing bootstrap script."),"__NEXT_ERROR_CODE",{value:"E18",enumerable:!1,configurable:!0});let r=atob(e[1]),o=new Uint8Array(r.length);for(var t=0;t{e.enqueue("string"==typeof t?E.encode(t):t)}),O&&!P)&&(null===e.desiredSize||e.desiredSize<0?e.error(Object.defineProperty(Error("The connection to the page was unexpectedly closed, possibly due to the stop button being clicked, loss of Wi-Fi, or an unstable internet connection."),"__NEXT_ERROR_CODE",{value:"E117",enumerable:!1,configurable:!0})):e.close(),P=!0,n=void 0),u=e}}),{callServer:h.callServer,findSourceMapURL:_.findSourceMapURL});function A(e){let{pendingActionQueue:t}=e,r=(0,c.use)(w),n=(0,c.use)(t);return(0,a.jsx)(b.default,{actionQueue:n,globalErrorState:r.G,assetPrefix:r.p})}let C=c.default.StrictMode;function x(e){let{children:t}=e;return t}let N={onDefaultTransitionIndicator:function(){return()=>{}},onRecoverableError:d.onRecoverableError,onCaughtError:p.onCaughtError,onUncaughtError:p.onUncaughtError};function U(e){let t=new Promise((t,r)=>{w.then(r=>{(0,g.setAppBuildId)(r.b);let n=Date.now();t((0,y.createMutableActionQueue)((0,v.createInitialRouterState)({navigatedAt:n,initialFlightData:r.f,initialCanonicalUrlParts:r.c,initialParallelRoutes:new Map,location:window.location,couldBeIntercepted:r.i,postponed:r.s,prerendered:r.S}),e))},e=>r(e))}),r=(0,a.jsx)(C,{children:(0,a.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,a.jsx)(x,{children:(0,a.jsx)(A,{pendingActionQueue:t})})})});"__next_error__"===document.documentElement.id?i.default.createRoot(R,N).render(r):c.default.startTransition(()=>{i.default.hydrateRoot(R,r,{...N,formState:j})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13013:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{GracefulDegradeBoundary:function(){return o},default:function(){return l}});let n=r(97601),u=r(61221);class o extends u.Component{static getDerivedStateFromError(e){return{hasError:!0}}componentDidMount(){let e=this.htmlRef.current;this.state.hasError&&e&&Object.entries(this.htmlAttributes).forEach(t=>{let[r,n]=t;e.setAttribute(r,n)})}render(){let{hasError:e}=this.state;return(this.rootHtml||(this.rootHtml=document.documentElement.innerHTML,this.htmlAttributes=function(e){let t={};for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRenderParamsFromClient",{enumerable:!0,get:function(){return o}});let n=r(71280),u=new WeakMap;function o(e){let t=u.get(e);if(t)return t;let r=Promise.resolve(e);return u.set(e,r),Object.keys(e).forEach(t=>{n.wellKnownProperties.has(t)||(r[t]=e[t])}),r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13671:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClientSegmentRoot",{enumerable:!0,get:function(){return u}});let n=r(97601);function u(e){let{Component:t,slots:u,params:o,promise:l}=e;{let{createRenderParamsFromClient:e}=r(85881),l=e(o);return(0,n.jsx)(t,{...u,params:l})}}r(17584),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15043:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(39974)},16259:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return u}});let n=r(68040);function u(e,t,r){for(let u in r[1]){let o=r[1][u][0],l=(0,n.createRouterCacheKey)(o),a=t.parallelRoutes.get(u);if(a){let t=new Map(a);t.delete(l),e.parallelRoutes.set(u,t)}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17292:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n})},17584:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"InvariantError",{enumerable:!0,get:function(){return r}});class r extends Error{constructor(e,t){super("Invariant: "+(e.endsWith(".")?e:e+".")+" This is a bug in Next.js.",t),this.name="InvariantError"}}},18241:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});let n=r(20010),u=r(33898),o=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:o}=(0,u.parsePath)(e);return""+(0,n.removeTrailingSlash)(t)+r+o};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18553:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return u},useServerInsertedHTML:function(){return o}});let n=r(6313)._(r(61221)),u=n.default.createContext(null);function o(e){let t=(0,n.useContext)(u);t&&t(e)}},20010:(e,t)=>{"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},20830:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{setCacheBustingSearchParam:function(){return l},setCacheBustingSearchParamWithHash:function(){return a}});let n=r(3023),u=r(92248);async function o(e){var t,r;return"function"==typeof(null==(r=globalThis.crypto)||null==(t=r.subtle)?void 0:t.digest)?(0,n.computeCacheBustingSearchParam)(e[u.NEXT_ROUTER_PREFETCH_HEADER],e[u.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER],e[u.NEXT_ROUTER_STATE_TREE_HEADER],e[u.NEXT_URL]):(0,n.computeLegacyCacheBustingSearchParam)(e[u.NEXT_ROUTER_PREFETCH_HEADER],e[u.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER],e[u.NEXT_ROUTER_STATE_TREE_HEADER],e[u.NEXT_URL])}let l=async(e,t)=>{a(e,await o(t))},a=(e,t)=>{let r=e.search,n=(r.startsWith("?")?r.slice(1):r).split("&").filter(e=>e&&!e.startsWith(""+u.NEXT_RSC_UNION_QUERY+"="));t.length>0?n.push(u.NEXT_RSC_UNION_QUERY+"="+t):n.push(""+u.NEXT_RSC_UNION_QUERY),e.search=n.length?"?"+n.join("&"):""};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22207:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,r,o){let l=o.length<=2,[a,i]=o,c=(0,n.createRouterCacheKey)(i),s=r.parallelRoutes.get(a);if(!s)return;let f=t.parallelRoutes.get(a);if(f&&f!==s||(f=new Map(s),t.parallelRoutes.set(a,f)),l)return void f.delete(c);let d=s.get(c),p=f.get(c);p&&d&&(p===d&&(p={lazyData:p.lazyData,rsc:p.rsc,prefetchRsc:p.prefetchRsc,head:p.head,prefetchHead:p.prefetchHead,parallelRoutes:new Map(p.parallelRoutes)},f.set(c,p)),e(p,d,(0,u.getNextFlightSegmentPath)(o)))}}});let n=r(68040),u=r(91492);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23491:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return u}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function u(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},23551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{generateSegmentsFromPatch:function(){return m},handleExternalUrl:function(){return g},navigateReducer:function(){return function e(t,r){let{url:R,isExternalUrl:E,navigateType:O,shouldScroll:P,allowAliasing:j}=r,T={},{hash:S}=R,M=(0,u.createHrefFromUrl)(R),w="push"===O;if((0,y.prunePrefetchCache)(t.prefetchCache),T.preserveCustomHistoryState=!1,T.pendingPush=w,E)return g(t,T,R.toString(),w);if(document.getElementById("__next-page-redirect"))return g(t,T,M,w);let A=(0,y.getOrCreatePrefetchCacheEntry)({url:R,nextUrl:t.nextUrl,tree:t.tree,prefetchCache:t.prefetchCache,allowAliasing:j}),{treeAtTimeOfPrefetch:C,data:x}=A;return d.prefetchQueue.bump(x),x.then(d=>{let{flightData:y,canonicalUrl:E,postponed:O}=d,j=Date.now(),x=!1;if(A.lastUsedTime||(A.lastUsedTime=j,x=!0),A.aliased){let n=new URL(R.href);E&&(n.pathname=E.pathname);let u=(0,v.handleAliasedPrefetchEntry)(j,t,y,n,T);return!1===u?e(t,{...r,allowAliasing:!1}):u}if("string"==typeof y)return g(t,T,y,w);let N=E?(0,u.createHrefFromUrl)(E):M;if(S&&t.canonicalUrl.split("#",1)[0]===N.split("#",1)[0])return T.onlyHashChange=!0,T.canonicalUrl=N,T.shouldScroll=P,T.hashFragment=S,T.scrollableSegments=[],(0,s.handleMutable)(t,T);let U=t.tree,D=t.cache,L=[];for(let e of y){let{pathToSegment:r,seedData:u,head:s,isHeadPartial:d,isRootRender:y}=e,v=e.tree,E=["",...r],P=(0,l.applyRouterStatePatchToTree)(E,U,v,M);if(null===P&&(P=(0,l.applyRouterStatePatchToTree)(E,C,v,M)),null!==P){if(u&&y&&O){let e=(0,_.startPPRNavigation)(j,D,U,v,u,s,d,!1,L);if(null!==e){if(null===e.route)return g(t,T,M,w);P=e.route;let r=e.node;null!==r&&(T.cache=r);let u=e.dynamicRequestTree;if(null!==u){let r=(0,n.fetchServerResponse)(new URL(N,R.origin),{flightRouterState:u,nextUrl:t.nextUrl});(0,_.listenForDynamicRequest)(e,r)}}else P=v}else{if((0,i.isNavigatingToNewRootLayout)(U,P))return g(t,T,M,w);let n=(0,p.createEmptyCacheNode)(),u=!1;for(let t of(A.status!==c.PrefetchCacheEntryStatus.stale||x?u=(0,f.applyFlightData)(j,D,n,e,A):(u=function(e,t,r,n){let u=!1;for(let o of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.loading=t.loading,e.parallelRoutes=new Map(t.parallelRoutes),m(n).map(e=>[...r,...e])))(0,b.clearCacheNodeDataForSegmentPath)(e,t,o),u=!0;return u}(n,D,r,v),A.lastUsedTime=j),(0,a.shouldHardNavigate)(E,U)?(n.rsc=D.rsc,n.prefetchRsc=D.prefetchRsc,(0,o.invalidateCacheBelowFlightSegmentPath)(n,D,r),T.cache=n):u&&(T.cache=n,D=n),m(v))){let e=[...r,...t];e[e.length-1]!==h.DEFAULT_SEGMENT_KEY&&L.push(e)}}U=P}}return T.patchedTree=U,T.canonicalUrl=N,T.scrollableSegments=L,T.hashFragment=S,T.shouldScroll=P,(0,s.handleMutable)(t,T)},()=>t)}}});let n=r(59815),u=r(54440),o=r(22207),l=r(27545),a=r(8520),i=r(47661),c=r(68081),s=r(9508),f=r(48643),d=r(62739),p=r(81107),h=r(6374),_=r(73931),y=r(66265),b=r(45879),v=r(43236);function g(e,t,r,n){return t.mpaNavigation=!0,t.canonicalUrl=r,t.pendingPush=n,t.scrollableSegments=void 0,(0,s.handleMutable)(e,t)}function m(e){let t=[],[r,n]=e;if(0===Object.keys(n).length)return[[r]];for(let[e,u]of Object.entries(n))for(let n of m(u))""===r?t.push([e,...n]):t.push([r,e,...n]);return t}r(5294),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24253:()=>{"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),"canParse"in URL||(URL.canParse=function(e,t){try{return new URL(e,t),!0}catch(e){return!1}})},25199:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return o}});let n=r(84657),u=r(1279);function o(e){return(0,u.isRedirectError)(e)||(0,n.isHTTPAccessFallbackError)(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25733:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return u}});let n=r(33898);function u(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:u,hash:o}=(0,n.parsePath)(e);return""+t+r+u+o}},26649:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{fillCacheWithNewSubTreeData:function(){return i},fillCacheWithNewSubTreeDataButOnlyLoading:function(){return c}});let n=r(16259),u=r(74051),o=r(68040),l=r(6374);function a(e,t,r,a,i,c){let{segmentPath:s,seedData:f,tree:d,head:p}=a,h=t,_=r;for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function e(t,r,n,i){let c,[s,f,d,p,h]=r;if(1===t.length){let e=a(r,n);return(0,l.addRefreshMarkerToActiveParallelSegments)(e,i),e}let[_,y]=t;if(!(0,o.matchSegment)(_,s))return null;if(2===t.length)c=a(f[y],n);else if(null===(c=e((0,u.getNextFlightSegmentPath)(t),f[y],n,i)))return null;let b=[t[0],{...f,[y]:c},d,p];return h&&(b[4]=!0),(0,l.addRefreshMarkerToActiveParallelSegments)(b,i),b}}});let n=r(6374),u=r(91492),o=r(31070),l=r(95079);function a(e,t){let[r,u]=e,[l,i]=t;if(l===n.DEFAULT_SEGMENT_KEY&&r!==n.DEFAULT_SEGMENT_KEY)return e;if((0,o.matchSegment)(r,l)){let t={};for(let e in u)void 0!==i[e]?t[e]=a(u[e],i[e]):t[e]=u[e];for(let e in i)t[e]||(t[e]=i[e]);let n=[r,t];return e[2]&&(n[2]=e[2]),e[3]&&(n[3]=e[3]),e[4]&&(n[4]=e[4]),n}return t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27795:(e,t)=>{"use strict";var r=Symbol.for("react.transitional.element");function n(e,t,n){var u=null;if(void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),"key"in t)for(var o in n={},t)"key"!==o&&(n[o]=t[o]);else n=t;return{$$typeof:r,type:e,key:u,ref:void 0!==(t=n.ref)?t:null,props:n}}t.Fragment=Symbol.for("react.fragment"),t.jsx=n,t.jsxs=n},30704:(e,t)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"encodeURIPath",{enumerable:!0,get:function(){return r}})},31070:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"matchSegment",{enumerable:!0,get:function(){return r}});let r=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},32213:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{doesStaticSegmentAppearInURL:function(){return c},getCacheKeyForDynamicParam:function(){return s},getParamValueFromCacheKey:function(){return d},getRenderedPathname:function(){return a},getRenderedSearch:function(){return l},parseDynamicParamFromURLPart:function(){return i},urlToUrlWithoutFlightMarker:function(){return f}});let n=r(6374),u=r(80139),o=r(92248);function l(e){let t=e.headers.get(o.NEXT_REWRITTEN_QUERY_HEADER);return null!==t?""===t?"":"?"+t:f(new URL(e.url)).search}function a(e){let t=e.headers.get(o.NEXT_REWRITTEN_PATH_HEADER);return null!=t?t:f(new URL(e.url)).pathname}function i(e,t,r){switch(e){case"c":case"ci":return rencodeURIComponent(e)):[];case"oc":return rencodeURIComponent(e)):null;case"d":case"di":if(r>=t.length)return"";return encodeURIComponent(t[r]);default:return""}}function c(e){return!(e===u.ROOT_SEGMENT_REQUEST_KEY||e.startsWith(n.PAGE_SEGMENT_KEY)||"("===e[0]&&e.endsWith(")"))&&e!==n.DEFAULT_SEGMENT_KEY&&"/_not-found"!==e}function s(e,t){return"string"==typeof e?(0,n.addSearchParamsIfPageSegment)(e,Object.fromEntries(new URLSearchParams(t))):null===e?"":e.join("/")}function f(e){let t=new URL(e);if(t.searchParams.delete(o.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(".txt")){let{pathname:e}=t,r=e.endsWith("/index.txt")?10:4;t.pathname=e.slice(0,-r)}return t}function d(e,t){return"c"===t||"oc"===t?e.split("/"):e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},32260:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return o}});let n=r(25733),u=r(18241);function o(e,t){return(0,u.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,"/chatui"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},32339:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getAppBuildId:function(){return u},setAppBuildId:function(){return n}});let r="";function n(e){r=e}function u(){return r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},32713:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{IDLE_LINK_STATUS:function(){return s},PENDING_LINK_STATUS:function(){return c},mountFormInstance:function(){return g},mountLinkInstance:function(){return v},onLinkVisibilityChanged:function(){return R},onNavigationIntent:function(){return E},pingVisibleLinks:function(){return P},setLinkForCurrentNavigation:function(){return f},unmountLinkForCurrentNavigation:function(){return d},unmountPrefetchableInstance:function(){return m}}),r(55461);let n=r(81107),u=r(5294),o=r(61221),l=r(68081),a=r(17584),i=null,c={pending:!0},s={pending:!1};function f(e){(0,o.startTransition)(()=>{null==i||i.setOptimisticLinkStatus(s),null==e||e.setOptimisticLinkStatus(c),i=e})}function d(e){i===e&&(i=null)}let p="function"==typeof WeakMap?new WeakMap:new Map,h=new Set,_="function"==typeof IntersectionObserver?new IntersectionObserver(function(e){for(let t of e){let e=t.intersectionRatio>0;R(t.target,e)}},{rootMargin:"200px"}):null;function y(e,t){void 0!==p.get(e)&&m(e),p.set(e,t),null!==_&&_.observe(e)}function b(e){try{return(0,n.createPrefetchURL)(e)}catch(t){return("function"==typeof reportError?reportError:console.error)("Cannot prefetch '"+e+"' because it cannot be converted to a URL."),null}}function v(e,t,r,n,u,o){if(u){let u=b(t);if(null!==u){let t={router:r,fetchStrategy:n,isVisible:!1,prefetchTask:null,prefetchHref:u.href,setOptimisticLinkStatus:o};return y(e,t),t}}return{router:r,fetchStrategy:n,isVisible:!1,prefetchTask:null,prefetchHref:null,setOptimisticLinkStatus:o}}function g(e,t,r,n){let u=b(t);null!==u&&y(e,{router:r,fetchStrategy:n,isVisible:!1,prefetchTask:null,prefetchHref:u.href,setOptimisticLinkStatus:null})}function m(e){let t=p.get(e);if(void 0!==t){p.delete(e),h.delete(t);let r=t.prefetchTask;null!==r&&(0,u.cancelPrefetchTask)(r)}null!==_&&_.unobserve(e)}function R(e,t){let r=p.get(e);void 0!==r&&(r.isVisible=t,t?h.add(r):h.delete(r),O(r,u.PrefetchPriority.Default))}function E(e,t){let r=p.get(e);void 0!==r&&void 0!==r&&O(r,u.PrefetchPriority.Intent)}function O(e,t){var r;let n=e.prefetchTask;if(!e.isVisible){null!==n&&(0,u.cancelPrefetchTask)(n);return}r=e,(async()=>{let e;switch(r.fetchStrategy){case u.FetchStrategy.PPR:e=l.PrefetchKind.AUTO;break;case u.FetchStrategy.Full:e=l.PrefetchKind.FULL;break;case u.FetchStrategy.PPRRuntime:throw Object.defineProperty(new a.InvariantError("FetchStrategy.PPRRuntime should never be used when `experimental.clientSegmentCache` is disabled"),"__NEXT_ERROR_CODE",{value:"E772",enumerable:!1,configurable:!0});default:r.fetchStrategy,e=void 0}return r.router.prefetch(r.prefetchHref,{kind:e})})().catch(e=>{})}function P(e,t){for(let r of h){let n=r.prefetchTask;if(null!==n&&!(0,u.isPrefetchTaskDirty)(n,e,t))continue;null!==n&&(0,u.cancelPrefetchTask)(n);let o=(0,u.createCacheKey)(r.prefetchHref,e);r.prefetchTask=(0,u.schedulePrefetchTask)(o,t,r.fetchStrategy,u.PrefetchPriority.Default,null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},33898:(e,t)=>{"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},33974:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findHeadInCache",{enumerable:!0,get:function(){return o}});let n=r(6374),u=r(68040);function o(e,t){return function e(t,r,o,l){if(0===Object.keys(r).length)return[t,o,l];let a=Object.keys(r).filter(e=>"children"!==e);for(let l of("children"in r&&a.unshift("children"),a)){let[a,i]=r[l];if(a===n.DEFAULT_SEGMENT_KEY)continue;let c=t.parallelRoutes.get(l);if(!c)continue;let s=(0,u.createRouterCacheKey)(a),f=(0,u.createRouterCacheKey)(a,!0),d=c.get(s);if(!d)continue;let p=e(d,i,o+"/"+s,o+"/"+f);if(p)return p}return null}(e,t,"","")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35784:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,u.isNextRouterError)(t)||(0,n.isBailoutToCSRError)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let n=r(23491),u=r(25199);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},37316:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return u}});let n=r(33898);function u(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},38635:(e,t)=>{"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40213:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reportGlobalError",{enumerable:!0,get:function(){return r}});let r="function"==typeof reportError?reportError:e=>{globalThis.console.error(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40647:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callServer",{enumerable:!0,get:function(){return l}});let n=r(61221),u=r(68081),o=r(49190);async function l(e,t){return new Promise((r,l)=>{(0,n.startTransition)(()=>{(0,o.dispatchAppRouterAction)({type:u.ACTION_SERVER_ACTION,actionId:e,actionArgs:t,resolve:r,reject:l})})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40965:(e,t,r)=>{"use strict";r.r(t),r.d(t,{_:()=>u});var n=0;function u(e){return"__private_"+n+++"_"+e}},41310:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return A}});let n=r(40647),u=r(83535),o=r(92248),l=r(95799),a=r(68859),i=r(68081),c=r(67970),s=r(54440),f=r(23551),d=r(27545),p=r(47661),h=r(9508),_=r(74051),y=r(81107),b=r(68705),v=r(62254),g=r(95079),m=r(91492),R=r(87928),E=r(1279),O=r(66265),P=r(52997),j=r(69983),T=r(91009);r(5294);let S=a.createFromFetch;async function M(e,t,r){let i,s,f,d,{actionId:p,actionArgs:h}=r,_=(0,a.createTemporaryReferenceSet)(),y=(0,T.extractInfoFromServerReferenceId)(p),b="use-cache"===y.type?(0,T.omitUnusedArgs)(h,y):h,v=await (0,a.encodeReply)(b,{temporaryReferences:_}),g=await fetch(e.canonicalUrl,{method:"POST",headers:{Accept:o.RSC_CONTENT_TYPE_HEADER,[o.ACTION_HEADER]:p,[o.NEXT_ROUTER_STATE_TREE_HEADER]:(0,m.prepareFlightRouterStateForRequest)(e.tree),...{},...t?{[o.NEXT_URL]:t}:{}},body:v});if("1"===g.headers.get(o.NEXT_ACTION_NOT_FOUND_HEADER))throw Object.defineProperty(new l.UnrecognizedActionError('Server Action "'+p+'" was not found on the server. \nRead more: https://nextjs.org/docs/messages/failed-to-find-server-action'),"__NEXT_ERROR_CODE",{value:"E715",enumerable:!1,configurable:!0});let R=g.headers.get("x-action-redirect"),[O,P]=(null==R?void 0:R.split(";"))||[];switch(P){case"push":i=E.RedirectType.push;break;case"replace":i=E.RedirectType.replace;break;default:i=void 0}let j=!!g.headers.get(o.NEXT_IS_PRERENDER_HEADER);try{let e=JSON.parse(g.headers.get("x-action-revalidated")||"[[],0,0]");s={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){s=w}let M=O?(0,c.assignLocation)(O,new URL(e.canonicalUrl,window.location.href)):void 0,A=g.headers.get("content-type"),C=!!(A&&A.startsWith(o.RSC_CONTENT_TYPE_HEADER));if(!C&&!M)throw Object.defineProperty(Error(g.status>=400&&"text/plain"===A?await g.text():"An unexpected response was received from the server."),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});if(C){let e=await S(Promise.resolve(g),{callServer:n.callServer,findSourceMapURL:u.findSourceMapURL,temporaryReferences:_});f=M?void 0:e.a,d=(0,m.normalizeFlightData)(e.f)}else f=void 0,d=void 0;return{actionResult:f,actionFlightData:d,redirectLocation:M,redirectType:i,revalidatedParts:s,isPrerender:j}}let w={paths:[],tag:!1,cookie:!1};function A(e,t){let{resolve:r,reject:n}=t,u={},o=e.tree;u.preserveCustomHistoryState=!1;let l=e.nextUrl&&(0,b.hasInterceptionRouteInCurrentTree)(e.tree)?e.nextUrl:null,a=Date.now();return M(e,l,t).then(async c=>{let b,{actionResult:m,actionFlightData:T,redirectLocation:S,redirectType:M,isPrerender:w,revalidatedParts:A}=c;if(S&&(M===E.RedirectType.replace?(e.pushRef.pendingPush=!1,u.pendingPush=!1):(e.pushRef.pendingPush=!0,u.pendingPush=!0),u.canonicalUrl=b=(0,s.createHrefFromUrl)(S,!1)),!T)return(r(m),S)?(0,f.handleExternalUrl)(e,u,S.href,e.pushRef.pendingPush):e;if("string"==typeof T)return r(m),(0,f.handleExternalUrl)(e,u,T,e.pushRef.pendingPush);let C=A.paths.length>0||A.tag||A.cookie;for(let n of T){let{tree:i,seedData:c,head:s,isRootRender:h}=n;if(!h)return console.log("SERVER ACTION APPLY FAILED"),r(m),e;let R=(0,d.applyRouterStatePatchToTree)([""],o,i,b||e.canonicalUrl);if(null===R)return r(m),(0,v.handleSegmentMismatch)(e,t,i);if((0,p.isNavigatingToNewRootLayout)(o,R))return r(m),(0,f.handleExternalUrl)(e,u,b||e.canonicalUrl,e.pushRef.pendingPush);if(null!==c){let t=c[1],r=(0,y.createEmptyCacheNode)();r.rsc=t,r.prefetchRsc=null,r.loading=c[3],(0,_.fillLazyItemsTillLeafWithHead)(a,r,void 0,i,c,s,void 0),u.cache=r,u.prefetchCache=new Map,C&&await (0,g.refreshInactiveParallelSegments)({navigatedAt:a,state:e,updatedTree:R,updatedCache:r,includeNextUrl:!!l,canonicalUrl:u.canonicalUrl||e.canonicalUrl})}u.patchedTree=R,o=R}return S&&b?(C||((0,O.createSeededPrefetchCacheEntry)({url:S,data:{flightData:T,canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1},tree:e.tree,prefetchCache:e.prefetchCache,nextUrl:e.nextUrl,kind:w?i.PrefetchKind.FULL:i.PrefetchKind.AUTO}),u.prefetchCache=e.prefetchCache),n((0,R.getRedirectError)((0,j.hasBasePath)(b)?(0,P.removeBasePath)(b):b,M||E.RedirectType.push))):r(m),(0,h.handleMutable)(e,u)},t=>(n(t),e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42464:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"IconMark",{enumerable:!0,get:function(){return n}}),r(97601);let n=()=>null},43236:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{addSearchParamsToPageSegments:function(){return d},handleAliasedPrefetchEntry:function(){return f}});let n=r(6374),u=r(81107),o=r(27545),l=r(54440),a=r(68040),i=r(26649),c=r(9508),s=r(23551);function f(e,t,r,f,p){let h,_=t.tree,y=t.cache,b=(0,l.createHrefFromUrl)(f),v=[];if("string"==typeof r)return!1;for(let t of r){if(!function e(t){if(!t)return!1;let r=t[2];if(t[3])return!0;for(let t in r)if(e(r[t]))return!0;return!1}(t.seedData))continue;let r=t.tree;r=d(r,Object.fromEntries(f.searchParams));let{seedData:l,isRootRender:c,pathToSegment:p}=t,g=["",...p];r=d(r,Object.fromEntries(f.searchParams));let m=(0,o.applyRouterStatePatchToTree)(g,_,r,b),R=(0,u.createEmptyCacheNode)();if(c&&l){let t=l[1];R.loading=l[3],R.rsc=t,function e(t,r,u,o,l){if(0!==Object.keys(o[1]).length)for(let i in o[1]){let c,s=o[1][i],f=s[0],d=(0,a.createRouterCacheKey)(f),p=null!==l&&void 0!==l[2][i]?l[2][i]:null;if(null!==p){let e=p[1],r=p[3];c={lazyData:null,rsc:f.includes(n.PAGE_SEGMENT_KEY)?null:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:r,navigatedAt:t}}else c={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:-1};let h=r.parallelRoutes.get(i);h?h.set(d,c):r.parallelRoutes.set(i,new Map([[d,c]])),e(t,c,u,s,p)}}(e,R,y,r,l)}else R.rsc=y.rsc,R.prefetchRsc=y.prefetchRsc,R.loading=y.loading,R.parallelRoutes=new Map(y.parallelRoutes),(0,i.fillCacheWithNewSubTreeDataButOnlyLoading)(e,R,y,t);for(let e of(m&&(_=m,y=R,h=!0),(0,s.generateSegmentsFromPatch)(r))){let r=[...t.pathToSegment,...e];r[r.length-1]!==n.DEFAULT_SEGMENT_KEY&&v.push(r)}}return!!h&&(p.patchedTree=_,p.cache=y,p.canonicalUrl=b,p.hashFragment=f.hash,p.scrollableSegments=v,(0,c.handleMutable)(t,p))}function d(e,t){let[r,u,...o]=e;if(r.includes(n.PAGE_SEGMENT_KEY))return[(0,n.addSearchParamsIfPageSegment)(r,t),u,...o];let l={};for(let[e,r]of Object.entries(u))l[e]=d(r,t);return[r,l,...o]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43477:(e,t)=>{"use strict";function r(e){let t=5381;for(let r=0;r>>0}function n(e){return r(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{djb2Hash:function(){return r},hexHash:function(){return n}})},45160:(e,t)=>{"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},45879:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clearCacheNodeDataForSegmentPath",{enumerable:!0,get:function(){return function e(t,r,o){let l=o.length<=2,[a,i]=o,c=(0,u.createRouterCacheKey)(i),s=r.parallelRoutes.get(a),f=t.parallelRoutes.get(a);f&&f!==s||(f=new Map(s),t.parallelRoutes.set(a,f));let d=null==s?void 0:s.get(c),p=f.get(c);if(l){p&&p.lazyData&&p!==d||f.set(c,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:-1});return}if(!p||!d){p||f.set(c,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:-1});return}return p===d&&(p={lazyData:p.lazyData,rsc:p.rsc,prefetchRsc:p.prefetchRsc,head:p.head,prefetchHead:p.prefetchHead,parallelRoutes:new Map(p.parallelRoutes),loading:p.loading},f.set(c,p)),e(p,d,(0,n.getNextFlightSegmentPath)(o))}}});let n=r(91492),u=r(68040);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,r){let n=t[0],u=r[0];if(Array.isArray(n)&&Array.isArray(u)){if(n[0]!==u[0]||n[2]!==u[2])return!0}else if(n!==u)return!0;if(t[4])return!r[4];if(r[4])return!0;let o=Object.values(t[1])[0],l=Object.values(r[1])[0];return!o||!l||e(o,l)}}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useUntrackedPathname",{enumerable:!0,get:function(){return o}});let n=r(61221),u=r(88395);function o(){return(0,n.useContext)(u.PathnameContext)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48438:(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E411",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unauthorized",{enumerable:!0,get:function(){return n}}),r(84657).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48643:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return o}});let n=r(74051),u=r(26649);function o(e,t,r,o,l){let{tree:a,seedData:i,head:c,isRootRender:s}=o;if(null===i)return!1;if(s){let u=i[1];r.loading=i[3],r.rsc=u,r.prefetchRsc=null,(0,n.fillLazyItemsTillLeafWithHead)(e,r,t,a,i,c,l)}else r.rsc=t.rsc,r.prefetchRsc=t.prefetchRsc,r.parallelRoutes=new Map(t.parallelRoutes),r.loading=t.loading,(0,u.fillCacheWithNewSubTreeData)(e,r,t,o,l);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48899:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return o}});let n=r(71280),u=new WeakMap;function o(e){let t=u.get(e);if(t)return t;let r=Promise.resolve(e);return u.set(e,r),Object.keys(e).forEach(t=>{n.wellKnownProperties.has(t)||(r[t]=e[t])}),r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49190:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{dispatchAppRouterAction:function(){return l},useActionQueue:function(){return a}});let n=r(6313)._(r(61221)),u=r(49439),o=null;function l(e){if(null===o)throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0});o(e)}function a(e){let[t,r]=n.default.useState(e.state);return o=t=>e.dispatch(t,r),(0,u.isThenable)(t)?(0,n.use)(t):t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49382:(e,t)=>{"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},49439:(e,t)=>{"use strict";function r(e){return null!==e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isThenable",{enumerable:!0,get:function(){return r}})},50622:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(6313),u=r(97601),o=n._(r(61221)),l=r(57166);function a(){let e=(0,o.useContext)(l.TemplateContext);return(0,u.jsx)(u.Fragment,{children:e})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"notFound",{enumerable:!0,get:function(){return u}});let n=""+r(84657).HTTP_ERROR_FALLBACK_ERROR_CODE+";404";function u(){let e=Object.defineProperty(Error(n),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});throw e.digest=n,e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51719:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},51868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return n}});let n=r(48899).createRenderSearchParamsFromClient;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52997:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return u}}),r(69983);let n="/chatui";function u(e){return 0===n.length||(e=e.slice(n.length)).startsWith("/")||(e="/"+e),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53608:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return M}});let n=r(17292),u=r(6313),o=r(97601),l=r(68081),a=u._(r(61221)),i=n._(r(79944)),c=r(57166),s=r(59815),f=r(97517),d=r(81751),p=r(31070),h=r(60164),_=r(92209),y=r(8188),b=r(68040),v=r(68705),g=r(49190),m=r(78198);r(5191);let R=i.default.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=["bottom","height","left","right","top","width","x","y"];function O(e,t){let r=e.getBoundingClientRect();return r.top>=0&&r.top<=t}class P extends a.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,r)=>(0,p.matchSegment)(t,e[r]))))return;let r=null,n=e.hashFragment;if(n&&(r=function(e){var t;return"top"===e?document.body:null!=(t=document.getElementById(e))?t:document.getElementsByName(e)[0]}(n)),r||(r=(0,R.findDOMNode)(this)),!(r instanceof Element))return;for(;!(r instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return E.every(e=>0===t[e])}(r);){if(null===r.nextElementSibling)return;r=r.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,h.disableSmoothScrollDuringRouteTransition)(()=>{if(n)return void r.scrollIntoView();let e=document.documentElement,t=e.clientHeight;!O(r,t)&&(e.scrollTop=0,O(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function j(e){let{segmentPath:t,children:r}=e,n=(0,a.useContext)(c.GlobalLayoutRouterContext);if(!n)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});return(0,o.jsx)(P,{segmentPath:t,focusAndScrollRef:n.focusAndScrollRef,children:r})}function T(e){let{tree:t,segmentPath:r,cacheNode:n,url:u}=e,i=(0,a.useContext)(c.GlobalLayoutRouterContext);if(!i)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});let{tree:d}=i,h=null!==n.prefetchRsc?n.prefetchRsc:n.rsc,_=(0,a.useDeferredValue)(n.rsc,h),y="object"==typeof _&&null!==_&&"function"==typeof _.then?(0,a.use)(_):_;if(!y){let e=n.lazyData;if(null===e){let t=function e(t,r){if(t){let[n,u]=t,o=2===t.length;if((0,p.matchSegment)(r[0],n)&&r[1].hasOwnProperty(u)){if(o){let t=e(void 0,r[1][u]);return[r[0],{...r[1],[u]:[t[0],t[1],t[2],"refetch"]}]}return[r[0],{...r[1],[u]:e(t.slice(2),r[1][u])}]}}return r}(["",...r],d),o=(0,v.hasInterceptionRouteInCurrentTree)(d),c=Date.now();n.lazyData=e=(0,s.fetchServerResponse)(new URL(u,location.origin),{flightRouterState:t,nextUrl:o?i.nextUrl:null}).then(e=>((0,a.startTransition)(()=>{(0,g.dispatchAppRouterAction)({type:l.ACTION_SERVER_PATCH,previousTree:d,serverResponse:e,navigatedAt:c})}),e)),(0,a.use)(e)}(0,a.use)(f.unresolvedThenable)}return(0,o.jsx)(c.LayoutRouterContext.Provider,{value:{parentTree:t,parentCacheNode:n,parentSegmentPath:r,url:u},children:y})}function S(e){let t,{loading:r,children:n}=e;if(t="object"==typeof r&&null!==r&&"function"==typeof r.then?(0,a.use)(r):r){let e=t[0],r=t[1],u=t[2];return(0,o.jsx)(a.Suspense,{fallback:(0,o.jsxs)(o.Fragment,{children:[r,u,e]}),children:n})}return(0,o.jsx)(o.Fragment,{children:n})}function M(e){let{parallelRouterKey:t,error:r,errorStyles:n,errorScripts:u,templateStyles:l,templateScripts:i,template:s,notFound:f,forbidden:p,unauthorized:h,segmentViewBoundaries:v}=e,g=(0,a.useContext)(c.LayoutRouterContext);if(!g)throw Object.defineProperty(Error("invariant expected layout router to be mounted"),"__NEXT_ERROR_CODE",{value:"E56",enumerable:!1,configurable:!0});let{parentTree:R,parentCacheNode:E,parentSegmentPath:O,url:P}=g,M=E.parallelRoutes,w=M.get(t);w||(w=new Map,M.set(t,w));let A=R[0],C=null===O?[t]:O.concat([A,t]),x=R[1][t],N=x[0],U=(0,b.createRouterCacheKey)(N,!0),D=(0,m.useRouterBFCache)(x,U),L=[];do{let e=D.tree,t=D.stateKey,a=e[0],v=(0,b.createRouterCacheKey)(a),g=w.get(v);if(void 0===g){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:-1};g=e,w.set(v,e)}let m=E.loading,R=(0,o.jsxs)(c.TemplateContext.Provider,{value:(0,o.jsxs)(j,{segmentPath:C,children:[(0,o.jsx)(d.ErrorBoundary,{errorComponent:r,errorStyles:n,errorScripts:u,children:(0,o.jsx)(S,{loading:m,children:(0,o.jsx)(y.HTTPAccessFallbackBoundary,{notFound:f,forbidden:p,unauthorized:h,children:(0,o.jsxs)(_.RedirectBoundary,{children:[(0,o.jsx)(T,{url:P,tree:e,cacheNode:g,segmentPath:C}),null]})})})}),null]}),children:[l,i,s]},t);L.push(R),D=D.next}while(null!==D);return L}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},54297:(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E488",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"forbidden",{enumerable:!0,get:function(){return n}}),r(84657).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},54440:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createMutableActionQueue:function(){return _},dispatchNavigateAction:function(){return v},dispatchTraverseAction:function(){return g},getCurrentAppRouterState:function(){return y},publicAppRouterInstance:function(){return m}});let n=r(68081),u=r(60953),o=r(61221),l=r(49439);r(5294);let a=r(49190),i=r(32260),c=r(81107),s=r(62739),f=r(32713);function d(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending?p({actionQueue:e,action:e.pending,setState:t}):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:n.ACTION_REFRESH,origin:window.location.origin},t)))}async function p(e){let{actionQueue:t,action:r,setState:n}=e,u=t.state;t.pending=r;let o=r.payload,a=t.action(u,o);function i(e){r.discarded||(t.state=e,d(t,n),r.resolve(e))}(0,l.isThenable)(a)?a.then(i,e=>{d(t,n),r.reject(e)}):i(a)}let h=null;function _(e,t){let r={state:e,dispatch:(e,t)=>(function(e,t,r){let u={resolve:r,reject:()=>{}};if(t.type!==n.ACTION_RESTORE){let e=new Promise((e,t)=>{u={resolve:e,reject:t}});(0,o.startTransition)(()=>{r(e)})}let l={payload:t,next:null,resolve:u.resolve,reject:u.reject};null===e.pending?(e.last=l,p({actionQueue:e,action:l,setState:r})):t.type===n.ACTION_NAVIGATE||t.type===n.ACTION_RESTORE?(e.pending.discarded=!0,l.next=e.pending.next,e.pending.payload.type===n.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),p({actionQueue:e,action:l,setState:r})):(null!==e.last&&(e.last.next=l),e.last=l)})(r,e,t),action:async(e,t)=>(0,u.reducer)(e,t),pending:null,last:null,onRouterTransitionStart:null!==t&&"function"==typeof t.onRouterTransitionStart?t.onRouterTransitionStart:null};if(null!==h)throw Object.defineProperty(Error("Internal Next.js Error: createMutableActionQueue was called more than once"),"__NEXT_ERROR_CODE",{value:"E624",enumerable:!1,configurable:!0});return h=r,r}function y(){return null!==h?h.state:null}function b(){return null!==h?h.onRouterTransitionStart:null}function v(e,t,r,u){let o=new URL((0,i.addBasePath)(e),location.href);(0,f.setLinkForCurrentNavigation)(u);let l=b();null!==l&&l(e,t),(0,a.dispatchAppRouterAction)({type:n.ACTION_NAVIGATE,url:o,isExternalUrl:(0,c.isExternalURL)(o),locationSearch:location.search,shouldScroll:r,navigateType:t,allowAliasing:!0})}function g(e,t){let r=b();null!==r&&r(e,"traverse"),(0,a.dispatchAppRouterAction)({type:n.ACTION_RESTORE,url:new URL(e),tree:t})}let m={back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{let r=function(){if(null===h)throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0});return h}(),u=(0,c.createPrefetchURL)(e);if(null!==u){var o;(0,s.prefetchReducer)(r.state,{type:n.ACTION_PREFETCH,url:u,kind:null!=(o=null==t?void 0:t.kind)?o:n.PrefetchKind.FULL})}},replace:(e,t)=>{(0,o.startTransition)(()=>{var r;v(e,"replace",null==(r=null==t?void 0:t.scroll)||r,null)})},push:(e,t)=>{(0,o.startTransition)(()=>{var r;v(e,"push",null==(r=null==t?void 0:t.scroll)||r,null)})},refresh:()=>{(0,o.startTransition)(()=>{(0,a.dispatchAppRouterAction)({type:n.ACTION_REFRESH,origin:window.location.origin})})},hmrRefresh:()=>{throw Object.defineProperty(Error("hmrRefresh can only be used in development mode. Please use refresh instead."),"__NEXT_ERROR_CODE",{value:"E485",enumerable:!1,configurable:!0})}};window.next&&(window.next.router=m),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},56917:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClientPageRoot",{enumerable:!0,get:function(){return u}});let n=r(97601);function u(e){let{Component:t,searchParams:u,params:o,promises:l}=e;{let{createRenderSearchParamsFromClient:e}=r(51868),l=e(u),{createRenderParamsFromClient:a}=r(85881),i=a(o);return(0,n.jsx)(t,{params:i,searchParams:l})}}r(17584),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57166:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return u},GlobalLayoutRouterContext:function(){return l},LayoutRouterContext:function(){return o},MissingSlotContext:function(){return i},TemplateContext:function(){return a}});let n=r(17292)._(r(61221)),u=n.default.createContext(null),o=n.default.createContext(null),l=n.default.createContext(null),a=n.default.createContext(null),i=n.default.createContext(new Set)},59815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createFetch:function(){return y},createFromNextReadableStream:function(){return b},fetchServerResponse:function(){return _}});let n=r(68859),u=r(92248),o=r(40647),l=r(83535),a=r(68081),i=r(91492),c=r(32339),s=r(20830),f=r(32213),d=n.createFromReadableStream;function p(e){return{flightData:(0,f.urlToUrlWithoutFlightMarker)(new URL(e,location.origin)).toString(),canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1}}let h=new AbortController;async function _(e,t){let{flightRouterState:r,nextUrl:n,prefetchKind:o}=t,l={[u.RSC_HEADER]:"1",[u.NEXT_ROUTER_STATE_TREE_HEADER]:(0,i.prepareFlightRouterStateForRequest)(r,t.isHmrRefresh)};o===a.PrefetchKind.AUTO&&(l[u.NEXT_ROUTER_PREFETCH_HEADER]="1"),n&&(l[u.NEXT_URL]=n);try{var s;let t=o?o===a.PrefetchKind.TEMPORARY?"high":"low":"auto";(e=new URL(e)).pathname.endsWith("/")?e.pathname+="index.txt":e.pathname+=".txt";let r=await y(e,l,t,h.signal),n=(0,f.urlToUrlWithoutFlightMarker)(new URL(r.url)),d=r.redirected?n:void 0,_=r.headers.get("content-type")||"",v=!!(null==(s=r.headers.get("vary"))?void 0:s.includes(u.NEXT_URL)),g=!!r.headers.get(u.NEXT_DID_POSTPONE_HEADER),m=r.headers.get(u.NEXT_ROUTER_STALE_TIME_HEADER),R=null!==m?1e3*parseInt(m,10):-1,E=_.startsWith(u.RSC_CONTENT_TYPE_HEADER);if(E||(E=_.startsWith("text/plain")),!E||!r.ok||!r.body)return e.hash&&(n.hash=e.hash),p(n.toString());let O=g?function(e){let t=e.getReader();return new ReadableStream({async pull(e){for(;;){let{done:r,value:n}=await t.read();if(!r){e.enqueue(n);continue}return}}})}(r.body):r.body,P=await b(O);if((0,c.getAppBuildId)()!==P.b)return p(r.url);return{flightData:(0,i.normalizeFlightData)(P.f),canonicalUrl:d,couldBeIntercepted:v,prerendered:P.S,postponed:g,staleTime:R}}catch(t){return h.signal.aborted||console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),{flightData:e.toString(),canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1}}}async function y(e,t,r,n){let o=new URL(e);await (0,s.setCacheBustingSearchParam)(o,t);let l=await fetch(o,{credentials:"same-origin",headers:t,priority:r||void 0,signal:n}),a=l.redirected,i=new URL(l.url,o);return i.searchParams.delete(u.NEXT_RSC_UNION_QUERY),{url:i.href,redirected:a,ok:l.ok,headers:l.headers,body:l.body,status:l.status}}function b(e){return d(e,{callServer:o.callServer,findSourceMapURL:l.findSourceMapURL})}window.addEventListener("pagehide",()=>{h.abort()}),window.addEventListener("pageshow",()=>{h=new AbortController}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{MetadataBoundary:function(){return o},OutletBoundary:function(){return a},RootLayoutBoundary:function(){return i},ViewportBoundary:function(){return l}});let n=r(80642),u={[n.METADATA_BOUNDARY_NAME]:function(e){let{children:t}=e;return t},[n.VIEWPORT_BOUNDARY_NAME]:function(e){let{children:t}=e;return t},[n.OUTLET_BOUNDARY_NAME]:function(e){let{children:t}=e;return t},[n.ROOT_LAYOUT_BOUNDARY_NAME]:function(e){let{children:t}=e;return t}},o=u[n.METADATA_BOUNDARY_NAME.slice(0)],l=u[n.VIEWPORT_BOUNDARY_NAME.slice(0)],a=u[n.OUTLET_BOUNDARY_NAME.slice(0)],i=u[n.ROOT_LAYOUT_BOUNDARY_NAME.slice(0)]},60164:(e,t,r)=>{"use strict";function n(e,t){if(void 0===t&&(t={}),t.onlyHashChange)return void e();let r=document.documentElement;r.dataset.scrollBehavior;let n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return n}}),r(51719)},60953:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return f}});let n=r(68081),u=r(23551),o=r(6244),l=r(5964),a=r(63757),i=r(62739),c=r(76251),s=r(41310),f=function(e,t){switch(t.type){case n.ACTION_NAVIGATE:return(0,u.navigateReducer)(e,t);case n.ACTION_SERVER_PATCH:return(0,o.serverPatchReducer)(e,t);case n.ACTION_RESTORE:return(0,l.restoreReducer)(e,t);case n.ACTION_REFRESH:return(0,a.refreshReducer)(e,t);case n.ACTION_HMR_REFRESH:return(0,c.hmrRefreshReducer)(e,t);case n.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case n.ACTION_SERVER_ACTION:return(0,s.serverActionReducer)(e,t);default:throw Object.defineProperty(Error("Unknown action"),"__NEXT_ERROR_CODE",{value:"E295",enumerable:!1,configurable:!0})}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},61221:(e,t,r)=>{"use strict";e.exports=r(99188)},61431:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTML_LIMITED_BOT_UA_RE:function(){return n.HTML_LIMITED_BOT_UA_RE},HTML_LIMITED_BOT_UA_RE_STRING:function(){return o},getBotType:function(){return i},isBot:function(){return a}});let n=r(4335),u=/Googlebot(?!-)|Googlebot$/i,o=n.HTML_LIMITED_BOT_UA_RE.source;function l(e){return n.HTML_LIMITED_BOT_UA_RE.test(e)}function a(e){return u.test(e)||l(e)}function i(e){return u.test(e)?"dom":l(e)?"html":void 0}},62254:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSegmentMismatch",{enumerable:!0,get:function(){return u}});let n=r(23551);function u(e,t,r){return(0,n.handleExternalUrl)(e,{},e.canonicalUrl,!0)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},62739:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{prefetchQueue:function(){return o},prefetchReducer:function(){return l}});let n=r(7495),u=r(66265),o=new n.PromiseQueue(5),l=function(e,t){(0,u.prunePrefetchCache)(e.prefetchCache);let{url:r}=t;return(0,u.getOrCreatePrefetchCacheEntry)({url:r,nextUrl:e.nextUrl,prefetchCache:e.prefetchCache,kind:t.kind,tree:e.tree,allowAliasing:!0}),e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},62943:(e,t,r)=>{"use strict";e.exports=r(75540)},63757:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return h}});let n=r(59815),u=r(54440),o=r(27545),l=r(47661),a=r(23551),i=r(9508),c=r(74051),s=r(81107),f=r(62254),d=r(68705),p=r(95079);function h(e,t){let{origin:r}=t,h={},_=e.canonicalUrl,y=e.tree;h.preserveCustomHistoryState=!1;let b=(0,s.createEmptyCacheNode)(),v=(0,d.hasInterceptionRouteInCurrentTree)(e.tree);b.lazyData=(0,n.fetchServerResponse)(new URL(_,r),{flightRouterState:[y[0],y[1],y[2],"refetch"],nextUrl:v?e.nextUrl:null});let g=Date.now();return b.lazyData.then(async r=>{let{flightData:n,canonicalUrl:s}=r;if("string"==typeof n)return(0,a.handleExternalUrl)(e,h,n,e.pushRef.pendingPush);for(let r of(b.lazyData=null,n)){let{tree:n,seedData:i,head:d,isRootRender:m}=r;if(!m)return console.log("REFRESH FAILED"),e;let R=(0,o.applyRouterStatePatchToTree)([""],y,n,e.canonicalUrl);if(null===R)return(0,f.handleSegmentMismatch)(e,t,n);if((0,l.isNavigatingToNewRootLayout)(y,R))return(0,a.handleExternalUrl)(e,h,_,e.pushRef.pendingPush);let E=s?(0,u.createHrefFromUrl)(s):void 0;if(s&&(h.canonicalUrl=E),null!==i){let e=i[1],t=i[3];b.rsc=e,b.prefetchRsc=null,b.loading=t,(0,c.fillLazyItemsTillLeafWithHead)(g,b,void 0,n,i,d,void 0),h.prefetchCache=new Map}await (0,p.refreshInactiveParallelSegments)({navigatedAt:g,state:e,updatedTree:R,updatedCache:b,includeNextUrl:v,canonicalUrl:h.canonicalUrl||e.canonicalUrl}),h.cache=b,h.patchedTree=R,y=R}return(0,i.handleMutable)(e,h)},()=>e)}r(5294),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65716:(e,t,r)=>{"use strict";var n=r(61221);function u(e){var t="https://react.dev/errors/"+e;if(1{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DYNAMIC_STALETIME_MS:function(){return d},STATIC_STALETIME_MS:function(){return p},createSeededPrefetchCacheEntry:function(){return c},getOrCreatePrefetchCacheEntry:function(){return i},prunePrefetchCache:function(){return f}});let n=r(59815),u=r(68081),o=r(62739);function l(e,t,r){let n=e.pathname;return(t&&(n+=e.search),r)?""+r+"%"+n:n}function a(e,t,r){return l(e,t===u.PrefetchKind.FULL,r)}function i(e){let{url:t,nextUrl:r,tree:n,prefetchCache:o,kind:a,allowAliasing:i=!0}=e,c=function(e,t,r,n,o){for(let a of(void 0===t&&(t=u.PrefetchKind.TEMPORARY),[r,null])){let r=l(e,!0,a),i=l(e,!1,a),c=e.search?r:i,s=n.get(c);if(s&&o){if(s.url.pathname===e.pathname&&s.url.search!==e.search)return{...s,aliased:!0};return s}let f=n.get(i);if(o&&e.search&&t!==u.PrefetchKind.FULL&&f&&!f.key.includes("%"))return{...f,aliased:!0}}if(t!==u.PrefetchKind.FULL&&o){for(let t of n.values())if(t.url.pathname===e.pathname&&!t.key.includes("%"))return{...t,aliased:!0}}}(t,a,r,o,i);return c?(c.status=h(c),c.kind!==u.PrefetchKind.FULL&&a===u.PrefetchKind.FULL&&c.data.then(e=>{if(!(Array.isArray(e.flightData)&&e.flightData.some(e=>e.isRootRender&&null!==e.seedData)))return s({tree:n,url:t,nextUrl:r,prefetchCache:o,kind:null!=a?a:u.PrefetchKind.TEMPORARY})}),a&&c.kind===u.PrefetchKind.TEMPORARY&&(c.kind=a),c):s({tree:n,url:t,nextUrl:r,prefetchCache:o,kind:a||u.PrefetchKind.TEMPORARY})}function c(e){let{nextUrl:t,tree:r,prefetchCache:n,url:o,data:l,kind:i}=e,c=l.couldBeIntercepted?a(o,i,t):a(o,i),s={treeAtTimeOfPrefetch:r,data:Promise.resolve(l),kind:i,prefetchTime:Date.now(),lastUsedTime:Date.now(),staleTime:l.staleTime,key:c,status:u.PrefetchCacheEntryStatus.fresh,url:o};return n.set(c,s),s}function s(e){let{url:t,kind:r,tree:l,nextUrl:i,prefetchCache:c}=e,s=a(t,r),f=o.prefetchQueue.enqueue(()=>(0,n.fetchServerResponse)(t,{flightRouterState:l,nextUrl:i,prefetchKind:r}).then(e=>{let r;if(e.couldBeIntercepted&&(r=function(e){let{url:t,nextUrl:r,prefetchCache:n,existingCacheKey:u}=e,o=n.get(u);if(!o)return;let l=a(t,o.kind,r);return n.set(l,{...o,key:l}),n.delete(u),l}({url:t,existingCacheKey:s,nextUrl:i,prefetchCache:c})),e.prerendered){let t=c.get(null!=r?r:s);t&&(t.kind=u.PrefetchKind.FULL,-1!==e.staleTime&&(t.staleTime=e.staleTime))}return e})),d={treeAtTimeOfPrefetch:l,data:f,kind:r,prefetchTime:Date.now(),lastUsedTime:null,staleTime:-1,key:s,status:u.PrefetchCacheEntryStatus.fresh,url:t};return c.set(s,d),d}function f(e){for(let[t,r]of e)h(r)===u.PrefetchCacheEntryStatus.expired&&e.delete(t)}let d=1e3*Number("0"),p=1e3*Number("300");function h(e){let{kind:t,prefetchTime:r,lastUsedTime:n}=e;return Date.now()<(null!=n?n:r)+d?n?u.PrefetchCacheEntryStatus.reusable:u.PrefetchCacheEntryStatus.fresh:t===u.PrefetchKind.AUTO&&Date.now(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AsyncMetadataOutlet",{enumerable:!0,get:function(){return l}});let n=r(97601),u=r(61221);function o(e){let{promise:t}=e,{error:r,digest:n}=(0,u.use)(t);if(r)throw n&&(r.digest=n),r;return null}function l(e){let{promise:t}=e;return(0,n.jsx)(u.Suspense,{fallback:null,children:(0,n.jsx)(o,{promise:t})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67970:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"assignLocation",{enumerable:!0,get:function(){return u}});let n=r(32260);function u(e,t){if(e.startsWith(".")){let r=t.origin+t.pathname;return new URL((r.endsWith("/")?r:r+"/")+e)}return new URL((0,n.addBasePath)(e),t.href)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68040:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return u}});let n=r(6374);function u(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?e[0]+"|"+e[1]+"|"+e[2]:t&&e.startsWith(n.PAGE_SEGMENT_KEY)?n.PAGE_SEGMENT_KEY:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68081:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_HMR_REFRESH:function(){return a},ACTION_NAVIGATE:function(){return n},ACTION_PREFETCH:function(){return l},ACTION_REFRESH:function(){return r},ACTION_RESTORE:function(){return u},ACTION_SERVER_ACTION:function(){return i},ACTION_SERVER_PATCH:function(){return o},PrefetchCacheEntryStatus:function(){return s},PrefetchKind:function(){return c}});let r="refresh",n="navigate",u="restore",o="server-patch",l="prefetch",a="hmr-refresh",i="server-action";var c=function(e){return e.AUTO="auto",e.FULL="full",e.TEMPORARY="temporary",e}({}),s=function(e){return e.fresh="fresh",e.reusable="reusable",e.expired="expired",e.stale="stale",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68702:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},RedirectType:function(){return i.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},forbidden:function(){return i.forbidden},notFound:function(){return i.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect},unauthorized:function(){return i.unauthorized},unstable_isUnrecognizedActionError:function(){return s.unstable_isUnrecognizedActionError},unstable_rethrow:function(){return i.unstable_rethrow},useParams:function(){return _},usePathname:function(){return p},useRouter:function(){return h},useSearchParams:function(){return d},useSelectedLayoutSegment:function(){return b},useSelectedLayoutSegments:function(){return y},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let n=r(61221),u=r(57166),o=r(88395),l=r(38635),a=r(6374),i=r(11689),c=r(18553),s=r(95799),f=void 0;function d(){let e=(0,n.useContext)(o.SearchParamsContext);return(0,n.useMemo)(()=>e?new i.ReadonlyURLSearchParams(e):null,[e])}function p(){return null==f||f("usePathname()"),(0,n.useContext)(o.PathnameContext)}function h(){let e=(0,n.useContext)(u.AppRouterContext);if(null===e)throw Object.defineProperty(Error("invariant expected app router to be mounted"),"__NEXT_ERROR_CODE",{value:"E238",enumerable:!1,configurable:!0});return e}function _(){return null==f||f("useParams()"),(0,n.useContext)(o.PathParamsContext)}function y(e){void 0===e&&(e="children"),null==f||f("useSelectedLayoutSegments()");let t=(0,n.useContext)(u.LayoutRouterContext);return t?function e(t,r,n,u){let o;if(void 0===n&&(n=!0),void 0===u&&(u=[]),n)o=t[1][r];else{var i;let e=t[1];o=null!=(i=e.children)?i:Object.values(e)[0]}if(!o)return u;let c=o[0],s=(0,l.getSegmentValue)(c);return!s||s.startsWith(a.PAGE_SEGMENT_KEY)?u:(u.push(s),e(o,r,!1,u))}(t.parentTree,e):null}function b(e){void 0===e&&(e="children"),null==f||f("useSelectedLayoutSegment()");let t=y(e);if(!t||0===t.length)return null;let r="children"===e?t[0]:t[t.length-1];return r===a.DEFAULT_SEGMENT_KEY?null:r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68705:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasInterceptionRouteInCurrentTree",{enumerable:!0,get:function(){return function e(t){let[r,u]=t;if(Array.isArray(r)&&("di"===r[2]||"ci"===r[2])||"string"==typeof r&&(0,n.isInterceptionRouteAppPath)(r))return!0;if(u){for(let t in u)if(e(u[t]))return!0}return!1}}});let n=r(69292);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68859:(e,t,r)=>{"use strict";e.exports=r(80848)},69292:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return u},extractInterceptionRouteInformation:function(){return l},isInterceptionRouteAppPath:function(){return o}});let n=r(5191),u=["(..)(..)","(.)","(..)","(...)"];function o(e){return void 0!==e.split("/").find(e=>u.find(t=>e.startsWith(t)))}function l(e){let t,r,o;for(let n of e.split("/"))if(r=u.find(e=>n.startsWith(e))){[t,o]=e.split(r,2);break}if(!t||!r||!o)throw Object.defineProperty(Error("Invalid interception route: "+e+". Must be in the format //(..|...|..)(..)/"),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":o="/"===t?"/"+o:t+"/"+o;break;case"(..)":if("/"===t)throw Object.defineProperty(Error("Invalid interception route: "+e+". Cannot use (..) marker at the root level, use (.) instead."),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});o=t.split("/").slice(0,-1).concat(o).join("/");break;case"(...)":o="/"+o;break;case"(..)(..)":let l=t.split("/");if(l.length<=2)throw Object.defineProperty(Error("Invalid interception route: "+e+". Cannot use (..)(..) marker at the root level or one level up."),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});o=l.slice(0,-2).concat(o).join("/");break;default:throw Object.defineProperty(Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:t,interceptedRoute:o}}},69983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return u}});let n=r(37316);function u(e){return(0,n.pathHasPrefix)(e,"/chatui")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71280:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{describeHasCheckingStringProperty:function(){return u},describeStringPropertyAccess:function(){return n},wellKnownProperties:function(){return o}});let r=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function n(e,t){return r.test(t)?"`"+e+"."+t+"`":"`"+e+"["+JSON.stringify(t)+"]`"}function u(e,t){let r=JSON.stringify(t);return"`Reflect.has("+e+", "+r+")`, `"+r+" in "+e+"`, or similar"}let o=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","valueOf","toLocaleString","then","catch","finally","status","displayName","_debugInfo","toJSON","$$typeof","__esModule","@@iterator"])},71407:e=>{!function(){var t={229:function(e){var t,r,n,u=e.exports={};function o(){throw Error("setTimeout has not been defined")}function l(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:l}catch(e){r=l}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var i=[],c=!1,s=-1;function f(){c&&n&&(c=!1,n.length?i=n.concat(i):s=-1,i.length&&d())}function d(){if(!c){var e=a(f);c=!0;for(var t=i.length;t;){for(n=i,i=[];++s1)for(var r=1;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{computeChangedPath:function(){return c},extractPathFromFlightRouterState:function(){return i},getSelectedParams:function(){return function e(t,r){for(let n of(void 0===r&&(r={}),Object.values(t[1]))){let t=n[0],o=Array.isArray(t),l=o?t[1]:t;!l||l.startsWith(u.PAGE_SEGMENT_KEY)||(o&&("c"===t[2]||"oc"===t[2])?r[t[0]]=t[1].split("/"):o&&(r[t[0]]=t[1]),r=e(n,r))}return r}}});let n=r(69292),u=r(6374),o=r(31070),l=e=>"string"==typeof e?"children"===e?"":e:e[1];function a(e){return e.reduce((e,t)=>{let r;return""===(t="/"===(r=t)[0]?r.slice(1):r)||(0,u.isGroupSegment)(t)?e:e+"/"+t},"")||"/"}function i(e){var t;let r=Array.isArray(e[0])?e[0][1]:e[0];if(r===u.DEFAULT_SEGMENT_KEY||n.INTERCEPTION_ROUTE_MARKERS.some(e=>r.startsWith(e)))return;if(r.startsWith(u.PAGE_SEGMENT_KEY))return"";let o=[l(r)],c=null!=(t=e[1])?t:{},s=c.children?i(c.children):void 0;if(void 0!==s)o.push(s);else for(let[e,t]of Object.entries(c)){if("children"===e)continue;let r=i(t);void 0!==r&&o.push(r)}return a(o)}function c(e,t){let r=function e(t,r){let[u,a]=t,[c,s]=r,f=l(u),d=l(c);if(n.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return"";if(!(0,o.matchSegment)(u,c)){var p;return null!=(p=i(r))?p:""}for(let t in a)if(s[t]){let r=e(a[t],s[t]);if(null!==r)return l(c)+"/"+r}return null}(e,t);return null==r||"/"===r?r:a(r.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},73931:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{abortTask:function(){return h},listenForDynamicRequest:function(){return p},startPPRNavigation:function(){return c},updateCacheNodeOnPopstateRestoration:function(){return function e(t,r){let n=r[1],u=t.parallelRoutes,l=new Map(u);for(let t in n){let r=n[t],a=r[0],i=(0,o.createRouterCacheKey)(a),c=u.get(t);if(void 0!==c){let n=c.get(i);if(void 0!==n){let u=e(n,r),o=new Map(c);o.set(i,u),l.set(t,o)}}}let a=t.rsc,i=b(a)&&"pending"===a.status;return{lazyData:null,rsc:a,head:t.head,prefetchHead:i?t.prefetchHead:[null,null],prefetchRsc:i?t.prefetchRsc:null,loading:t.loading,parallelRoutes:l,navigatedAt:t.navigatedAt}}}});let n=r(6374),u=r(31070),o=r(68040),l=r(47661),a=r(66265),i={route:null,node:null,dynamicRequestTree:null,children:null};function c(e,t,r,l,a,c,d,p,h){return function e(t,r,l,a,c,d,p,h,_,y,b){let v=l[1],g=a[1],m=null!==d?d[2]:null;c||!0===a[4]&&(c=!0);let R=r.parallelRoutes,E=new Map(R),O={},P=null,j=!1,T={};for(let r in g){let l,a=g[r],f=v[r],d=R.get(r),S=null!==m?m[r]:null,M=a[0],w=y.concat([r,M]),A=(0,o.createRouterCacheKey)(M),C=void 0!==f?f[0]:void 0,x=void 0!==d?d.get(A):void 0;if(null!==(l=M===n.DEFAULT_SEGMENT_KEY?void 0!==f?{route:f,node:null,dynamicRequestTree:null,children:null}:s(t,f,a,x,c,void 0!==S?S:null,p,h,w,b):_&&0===Object.keys(a[1]).length?s(t,f,a,x,c,void 0!==S?S:null,p,h,w,b):void 0!==f&&void 0!==C&&(0,u.matchSegment)(M,C)&&void 0!==x&&void 0!==f?e(t,x,f,a,c,S,p,h,_,w,b):s(t,f,a,x,c,void 0!==S?S:null,p,h,w,b))){if(null===l.route)return i;null===P&&(P=new Map),P.set(r,l);let e=l.node;if(null!==e){let t=new Map(d);t.set(A,e),E.set(r,t)}let t=l.route;O[r]=t;let n=l.dynamicRequestTree;null!==n?(j=!0,T[r]=n):T[r]=t}else O[r]=a,T[r]=a}if(null===P)return null;let S={lazyData:null,rsc:r.rsc,prefetchRsc:r.prefetchRsc,head:r.head,prefetchHead:r.prefetchHead,loading:r.loading,parallelRoutes:E,navigatedAt:t};return{route:f(a,O),node:S,dynamicRequestTree:j?f(a,T):null,children:P}}(e,t,r,l,!1,a,c,d,p,[],h)}function s(e,t,r,n,u,c,s,p,h,_){return!u&&(void 0===t||(0,l.isNavigatingToNewRootLayout)(t,r))?i:function e(t,r,n,u,l,i,c,s){let p,h,_,y,b=r[1],v=0===Object.keys(b).length;if(void 0!==n&&n.navigatedAt+a.DYNAMIC_STALETIME_MS>t)p=n.rsc,h=n.loading,_=n.head,y=n.navigatedAt;else if(null===u)return d(t,r,null,l,i,c,s);else if(p=u[1],h=u[3],_=v?l:null,y=t,u[4]||i&&v)return d(t,r,u,l,i,c,s);let g=null!==u?u[2]:null,m=new Map,R=void 0!==n?n.parallelRoutes:null,E=new Map(R),O={},P=!1;if(v)s.push(c);else for(let r in b){let n=b[r],u=null!==g?g[r]:null,a=null!==R?R.get(r):void 0,f=n[0],d=c.concat([r,f]),p=(0,o.createRouterCacheKey)(f),h=e(t,n,void 0!==a?a.get(p):void 0,u,l,i,d,s);m.set(r,h);let _=h.dynamicRequestTree;null!==_?(P=!0,O[r]=_):O[r]=n;let y=h.node;if(null!==y){let e=new Map;e.set(p,y),E.set(r,e)}}return{route:r,node:{lazyData:null,rsc:p,prefetchRsc:null,head:_,prefetchHead:null,loading:h,parallelRoutes:E,navigatedAt:y},dynamicRequestTree:P?f(r,O):null,children:m}}(e,r,n,c,s,p,h,_)}function f(e,t){let r=[e[0],t];return 2 in e&&(r[2]=e[2]),3 in e&&(r[3]=e[3]),4 in e&&(r[4]=e[4]),r}function d(e,t,r,n,u,l,a){let i=f(t,t[1]);return i[3]="refetch",{route:t,node:function e(t,r,n,u,l,a,i){let c=r[1],s=null!==n?n[2]:null,f=new Map;for(let r in c){let n=c[r],d=null!==s?s[r]:null,p=n[0],h=a.concat([r,p]),_=(0,o.createRouterCacheKey)(p),y=e(t,n,void 0===d?null:d,u,l,h,i),b=new Map;b.set(_,y),f.set(r,b)}let d=0===f.size;d&&i.push(a);let p=null!==n?n[1]:null,h=null!==n?n[3]:null;return{lazyData:null,parallelRoutes:f,prefetchRsc:void 0!==p?p:null,prefetchHead:d?u:[null,null],loading:void 0!==h?h:null,rsc:v(),head:d?v():null,navigatedAt:t}}(e,t,r,n,u,l,a),dynamicRequestTree:i,children:null}}function p(e,t){t.then(t=>{let{flightData:r}=t;if("string"!=typeof r){for(let t of r){let{segmentPath:r,tree:n,seedData:l,head:a}=t;l&&function(e,t,r,n,l){let a=e;for(let e=0;e{h(e,t)})}function h(e,t){let r=e.node;if(null===r)return;let n=e.children;if(null===n)_(e.route,r,t);else for(let e of n.values())h(e,t);e.dynamicRequestTree=null}function _(e,t,r){let n=e[1],u=t.parallelRoutes;for(let e in n){let t=n[e],l=u.get(e);if(void 0===l)continue;let a=t[0],i=(0,o.createRouterCacheKey)(a),c=l.get(i);void 0!==c&&_(t,c,r)}let l=t.rsc;b(l)&&(null===r?l.resolve(null):l.reject(r));let a=t.head;b(a)&&a.resolve(null)}let y=Symbol();function b(e){return e&&e.tag===y}function v(){let e,t,r=new Promise((r,n)=>{e=r,t=n});return r.status="pending",r.resolve=t=>{"pending"===r.status&&(r.status="fulfilled",r.value=t,e(t))},r.reject=e=>{"pending"===r.status&&(r.status="rejected",r.reason=e,t(e))},r.tag=y,r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,r,o,l,a,i,c){if(0===Object.keys(l[1]).length){r.head=i;return}for(let s in l[1]){let f,d=l[1][s],p=d[0],h=(0,n.createRouterCacheKey)(p),_=null!==a&&void 0!==a[2][s]?a[2][s]:null;if(o){let n=o.parallelRoutes.get(s);if(n){let o,l=(null==c?void 0:c.kind)==="auto"&&c.status===u.PrefetchCacheEntryStatus.reusable,a=new Map(n),f=a.get(h);o=null!==_?{lazyData:null,rsc:_[1],prefetchRsc:null,head:null,prefetchHead:null,loading:_[3],parallelRoutes:new Map(null==f?void 0:f.parallelRoutes),navigatedAt:t}:l&&f?{lazyData:f.lazyData,rsc:f.rsc,prefetchRsc:f.prefetchRsc,head:f.head,prefetchHead:f.prefetchHead,parallelRoutes:new Map(f.parallelRoutes),loading:f.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==f?void 0:f.parallelRoutes),loading:null,navigatedAt:t},a.set(h,o),e(t,o,f,d,_||null,i,c),r.parallelRoutes.set(s,a);continue}}if(null!==_){let e=_[1],r=_[3];f={lazyData:null,rsc:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:r,navigatedAt:t}}else f={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:t};let y=r.parallelRoutes.get(s);y?y.set(h,f):r.parallelRoutes.set(s,new Map([[h,f]])),e(t,f,void 0,d,_,i,c)}}}});let n=r(68040),u=r(68081);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75540:(e,t)=>{"use strict";function r(e,t){var r=e.length;for(e.push(t);0>>1,u=e[n];if(0>>1;no(i,r))co(s,i)?(e[n]=s,e[c]=r,n=c):(e[n]=i,e[a]=r,n=a);else if(co(s,r))e[n]=s,e[c]=r,n=c;else break}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var l,a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var s=[],f=[],d=1,p=null,h=3,_=!1,y=!1,b=!1,v=!1,g="function"==typeof setTimeout?setTimeout:null,m="function"==typeof clearTimeout?clearTimeout:null,R="undefined"!=typeof setImmediate?setImmediate:null;function E(e){for(var t=n(f);null!==t;){if(null===t.callback)u(f);else if(t.startTime<=e)u(f),t.sortIndex=t.expirationTime,r(s,t);else break;t=n(f)}}function O(e){if(b=!1,E(e),!y)if(null!==n(s))y=!0,P||(P=!0,l());else{var t=n(f);null!==t&&x(O,t.startTime-e)}}var P=!1,j=-1,T=5,S=-1;function M(){return!!v||!(t.unstable_now()-Se&&M());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var i=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){p.callback=i,E(e),r=!0;break t}p===n(s)&&u(s),E(e)}else u(s);p=n(s)}if(null!==p)r=!0;else{var c=n(f);null!==c&&x(O,c.startTime-e),r=!1}}break e}finally{p=null,h=o,_=!1}}}finally{r?l():P=!1}}}if("function"==typeof R)l=function(){R(w)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,C=A.port2;A.port1.onmessage=w,l=function(){C.postMessage(null)}}else l=function(){g(w,0)};function x(e,r){j=g(function(){e(t.unstable_now())},r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125a?(e.sortIndex=o,r(f,e),null===n(s)&&e===n(f)&&(b?(m(j),j=-1):b=!0,x(O,o-a))):(e.sortIndex=i,r(s,e),y||_||(y=!0,P||(P=!0,l()))),e},t.unstable_shouldYield=M,t.unstable_wrapCallback=function(e){var t=h;return function(){var r=h;h=t;try{return e.apply(this,arguments)}finally{h=r}}}},76251:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hmrRefreshReducer",{enumerable:!0,get:function(){return n}}),r(59815),r(54440),r(27545),r(47661),r(23551),r(9508),r(48643),r(81107),r(62254),r(68705);let n=function(e,t){return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76461:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}});var r=function(e){return e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78198:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useRouterBFCache",{enumerable:!0,get:function(){return u}});let n=r(61221);function u(e,t){let[r,u]=(0,n.useState)(()=>({tree:e,stateKey:t,next:null}));if(r.tree===e)return r;let o={tree:e,stateKey:t,next:null},l=1,a=r,i=o;for(;null!==a&&l<1;){if(a.stateKey===t){i.next=a.next;break}{l++;let e={tree:a.tree,stateKey:a.stateKey,next:null};i.next=e,i=e}a=a.next}return u(o),o}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79607:(e,t)=>{"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},79926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return s}});let n=r(54440),u=r(74051),o=r(73825),l=r(66265),a=r(68081),i=r(95079),c=r(91492);function s(e){var t,r;let{navigatedAt:s,initialFlightData:f,initialCanonicalUrlParts:d,initialParallelRoutes:p,location:h,couldBeIntercepted:_,postponed:y,prerendered:b}=e,v=d.join("/"),g=(0,c.getFlightDataPartsFromPath)(f[0]),{tree:m,seedData:R,head:E}=g,O={lazyData:null,rsc:null==R?void 0:R[1],prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:p,loading:null!=(t=null==R?void 0:R[3])?t:null,navigatedAt:s},P=h?(0,n.createHrefFromUrl)(h):v;(0,i.addRefreshMarkerToActiveParallelSegments)(m,P);let j=new Map;(null===p||0===p.size)&&(0,u.fillLazyItemsTillLeafWithHead)(s,O,void 0,m,R,E,void 0);let T={tree:m,cache:O,prefetchCache:j,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:P,nextUrl:null!=(r=(0,o.extractPathFromFlightRouterState)(m)||(null==h?void 0:h.pathname))?r:null};if(h){let e=new URL(""+h.pathname+h.search,h.origin);(0,l.createSeededPrefetchCacheEntry)({url:e,data:{flightData:[g],canonicalUrl:void 0,couldBeIntercepted:!!_,prerendered:b,postponed:y,staleTime:b&&1?l.STATIC_STALETIME_MS:-1},tree:T.tree,prefetchCache:T.prefetchCache,nextUrl:T.nextUrl,kind:b?a.PrefetchKind.FULL:a.PrefetchKind.AUTO})}return T}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79944:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(65716)},80139:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ROOT_SEGMENT_CACHE_KEY:function(){return o},ROOT_SEGMENT_REQUEST_KEY:function(){return u},appendSegmentCacheKeyPart:function(){return c},appendSegmentRequestKeyPart:function(){return a},convertSegmentPathToStaticExportFilename:function(){return d},createSegmentCacheKeyPart:function(){return i},createSegmentRequestKeyPart:function(){return l}});let n=r(6374),u="",o="";function l(e){if("string"==typeof e)return e.startsWith(n.PAGE_SEGMENT_KEY)?n.PAGE_SEGMENT_KEY:"/_not-found"===e?"_not-found":f(e);let t=e[0],r=e[2];return"$"+r+"$"+f(t)}function a(e,t,r){return e+"/"+("children"===t?r:"@"+f(t)+"/"+r)}function i(e,t){return"string"==typeof t?e:e+"$"+f(t[1])}function c(e,t,r){return e+"/"+("children"===t?r:"@"+f(t)+"/"+r)}let s=/^[a-zA-Z0-9\-_@]+$/;function f(e){return s.test(e)?e:"!"+btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function d(e){return"__next"+e.replace(/\//g,".")+".txt"}},80642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{METADATA_BOUNDARY_NAME:function(){return r},OUTLET_BOUNDARY_NAME:function(){return u},ROOT_LAYOUT_BOUNDARY_NAME:function(){return o},VIEWPORT_BOUNDARY_NAME:function(){return n}});let r="__next_metadata_boundary__",n="__next_viewport_boundary__",u="__next_outlet_boundary__",o="__next_root_layout_boundary__"},80848:(e,t,r)=>{"use strict";var n=r(79944),u={stream:!0},o=Object.prototype.hasOwnProperty,l=new Map;function a(e){var t=r(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function i(){}function c(e){for(var t=e[1],n=[],u=0;uf||35===f||114===f||120===f?(d=f,f=3,s++):(d=0,f=3);continue;case 2:44===(b=i[s++])?f=4:h=h<<4|(96i.length&&(b=-1)}var v=i.byteOffset+s;if(-1{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setAttributesFromProps",{enumerable:!0,get:function(){return o}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},n=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function u(e){return["async","defer","noModule"].includes(e)}function o(e,t){for(let[o,l]of Object.entries(t)){if(!t.hasOwnProperty(o)||n.includes(o)||void 0===l)continue;let a=r[o]||o.toLowerCase();"SCRIPT"===e.tagName&&u(a)?e[a]=!!l:e.setAttribute(a,String(l)),(!1===l||"SCRIPT"===e.tagName&&u(a)&&(!l||"false"===l))&&(e.setAttribute(a,""),e.removeAttribute(a))}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81107:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createEmptyCacheNode:function(){return x},createPrefetchURL:function(){return A},default:function(){return L},isExternalURL:function(){return w}});let n=r(17292),u=r(6313),o=r(97601),l=u._(r(61221)),a=r(57166),i=r(68081),c=r(54440),s=r(88395),f=r(49190),d=r(61431),p=r(32260),h=r(96021),_=r(92209),y=r(33974),b=r(97517),v=r(52997),g=r(69983),m=r(73825),R=r(2403),E=r(55461),O=r(87928),P=r(1279);r(32713);let j=n._(r(98212)),T=n._(r(9220)),S=r(60005),M={};function w(e){return e.origin!==window.location.origin}function A(e){let t;if((0,d.isBot)(window.navigator.userAgent))return null;try{t=new URL((0,p.addBasePath)(e),window.location.href)}catch(t){throw Object.defineProperty(Error("Cannot prefetch '"+e+"' because it cannot be converted to a URL."),"__NEXT_ERROR_CODE",{value:"E234",enumerable:!1,configurable:!0})}return w(t)?null:t}function C(e){let{appRouterState:t}=e;return(0,l.useInsertionEffect)(()=>{let{tree:e,pushRef:r,canonicalUrl:n}=t,u={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};r.pendingPush&&(0,c.createHrefFromUrl)(new URL(window.location.href))!==n?(r.pendingPush=!1,window.history.pushState(u,"",n)):window.history.replaceState(u,"",n)},[t]),(0,l.useEffect)(()=>{},[t.nextUrl,t.tree]),null}function x(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:-1}}function N(e){null==e&&(e={});let t=window.history.state,r=null==t?void 0:t.__NA;r&&(e.__NA=r);let n=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return n&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=n),e}function U(e){let{headCacheNode:t}=e,r=null!==t?t.head:null,n=null!==t?t.prefetchHead:null,u=null!==n?n:r;return(0,l.useDeferredValue)(r,u)}function D(e){let t,{actionQueue:r,assetPrefix:n,globalError:u}=e,c=(0,f.useActionQueue)(r),{canonicalUrl:d}=c,{searchParams:p,pathname:R}=(0,l.useMemo)(()=>{let e=new URL(d,window.location.href);return{searchParams:e.searchParams,pathname:(0,g.hasBasePath)(e.pathname)?(0,v.removeBasePath)(e.pathname):e.pathname}},[d]);(0,l.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(M.pendingMpaPath=void 0,(0,f.dispatchAppRouterAction)({type:i.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[]),(0,l.useEffect)(()=>{function e(e){let t="reason"in e?e.reason:e.error;if((0,P.isRedirectError)(t)){e.preventDefault();let r=(0,O.getURLFromRedirectError)(t);(0,O.getRedirectTypeFromError)(t)===P.RedirectType.push?E.publicAppRouterInstance.push(r,{}):E.publicAppRouterInstance.replace(r,{})}}return window.addEventListener("error",e),window.addEventListener("unhandledrejection",e),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",e)}},[]);let{pushRef:T}=c;if(T.mpaNavigation){if(M.pendingMpaPath!==d){let e=window.location;T.pendingPush?e.assign(d):e.replace(d),M.pendingMpaPath=d}throw b.unresolvedThenable}(0,l.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),r=e=>{var t;let r=window.location.href,n=null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,l.startTransition)(()=>{(0,f.dispatchAppRouterAction)({type:i.ACTION_RESTORE,url:new URL(null!=e?e:r,r),tree:n})})};window.history.pushState=function(t,n,u){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=N(t),u&&r(u)),e(t,n,u)},window.history.replaceState=function(e,n,u){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=N(e),u&&r(u)),t(e,n,u)};let n=e=>{if(e.state){if(!e.state.__NA)return void window.location.reload();(0,l.startTransition)(()=>{(0,E.dispatchTraverseAction)(window.location.href,e.state.__PRIVATE_NEXTJS_INTERNALS_TREE)})}};return window.addEventListener("popstate",n),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",n)}},[]);let{cache:w,tree:A,nextUrl:x,focusAndScrollRef:D}=c,L=(0,l.useMemo)(()=>(0,y.findHeadInCache)(w,A[1]),[w,A]),I=(0,l.useMemo)(()=>(0,m.getSelectedParams)(A),[A]),k=(0,l.useMemo)(()=>({parentTree:A,parentCacheNode:w,parentSegmentPath:null,url:d}),[A,w,d]),H=(0,l.useMemo)(()=>({tree:A,focusAndScrollRef:D,nextUrl:x}),[A,D,x]);if(null!==L){let[e,r,n]=L;t=(0,o.jsx)(U,{headCacheNode:e},r)}else t=null;let B=(0,o.jsxs)(_.RedirectBoundary,{children:[t,(0,o.jsx)(S.RootLayoutBoundary,{children:w.rsc}),(0,o.jsx)(h.AppRouterAnnouncer,{tree:A})]});return B=(0,o.jsx)(j.default,{errorComponent:u[0],errorStyles:u[1],children:B}),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(C,{appRouterState:c}),(0,o.jsx)(F,{}),(0,o.jsx)(s.PathParamsContext.Provider,{value:I,children:(0,o.jsx)(s.PathnameContext.Provider,{value:R,children:(0,o.jsx)(s.SearchParamsContext.Provider,{value:p,children:(0,o.jsx)(a.GlobalLayoutRouterContext.Provider,{value:H,children:(0,o.jsx)(a.AppRouterContext.Provider,{value:E.publicAppRouterInstance,children:(0,o.jsx)(a.LayoutRouterContext.Provider,{value:k,children:B})})})})})})]})}function L(e){let{actionQueue:t,globalErrorState:r,assetPrefix:n}=e;(0,R.useNavFailureHandler)();let u=(0,o.jsx)(D,{actionQueue:t,assetPrefix:n,globalError:r});return(0,o.jsx)(j.default,{errorComponent:T.default,children:u})}let I=new Set,k=new Set;function F(){let[,e]=l.default.useState(0),t=I.size;return(0,l.useEffect)(()=>{let r=()=>e(e=>e+1);return k.add(r),t!==I.size&&r(),()=>{k.delete(r)}},[t,e]),[...I].map((e,t)=>(0,o.jsx)("link",{rel:"stylesheet",href:""+e,precedence:"next"},t))}globalThis._N_E_STYLE_LOAD=function(e){let t=I.size;return I.add(e),I.size!==t&&k.forEach(e=>e()),Promise.resolve()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81576:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(79607);let n=r(30704);{let e=r.u;r.u=function(){for(var t=arguments.length,r=Array(t),u=0;u{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ErrorBoundary:function(){return f},ErrorBoundaryHandler:function(){return s}});let n=r(17292),u=r(97601),o=n._(r(61221)),l=r(48344),a=r(25199);r(2403);let i=r(91094),c=(0,r(61431).isBot)(window.navigator.userAgent);class s extends o.default.Component{static getDerivedStateFromError(e){if((0,a.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){let{error:r}=t;return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error&&!c?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i.HandleISRError,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,u.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function f(e){let{errorComponent:t,errorStyles:r,errorScripts:n,children:o}=e,a=(0,l.useUntrackedPathname)();return t?(0,u.jsx)(s,{pathname:a,errorComponent:t,errorStyles:r,errorScripts:n,children:o}):(0,u.jsx)(u.Fragment,{children:o})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81812:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(81576);let n=r(82341),u=r(88393);(0,n.appBootstrap)(()=>{let{hydrate:e}=r(12459);r(81107),r(53608),e(u)}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82341:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return u}});let n=r(81003);function u(e){var t,r;t=self.__next_s,r=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[r,u]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement("script");u&&(0,n.setAttributesFromProps)(o,u),r?(o.src=r,o.onload=()=>e(),o.onerror=t):u&&(o.innerHTML=u.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{r()}):r()}window.next={version:"15.5.21",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},83535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findSourceMapURL",{enumerable:!0,get:function(){return r}});let r=void 0;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84127:(e,t,r)=>{"use strict";function n(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}r.r(t),r.d(t,{_:()=>n})},84657:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTTPAccessErrorStatus:function(){return r},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return u},getAccessFallbackErrorTypeByStatus:function(){return a},getAccessFallbackHTTPStatus:function(){return l},isHTTPAccessFallbackError:function(){return o}});let r={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},n=new Set(Object.values(r)),u="NEXT_HTTP_ERROR_FALLBACK";function o(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return t===u&&n.has(Number(r))}function l(e){return Number(e.digest.split(";")[1])}function a(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},85881:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRenderParamsFromClient",{enumerable:!0,get:function(){return n}});let n=r(13320).createRenderParamsFromClient;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},87715:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(24253),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},87928:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRedirectError:function(){return l},getRedirectStatusCodeFromError:function(){return f},getRedirectTypeFromError:function(){return s},getURLFromRedirectError:function(){return c},permanentRedirect:function(){return i},redirect:function(){return a}});let n=r(76461),u=r(1279),o=void 0;function l(e,t,r){void 0===r&&(r=n.RedirectStatusCode.TemporaryRedirect);let o=Object.defineProperty(Error(u.REDIRECT_ERROR_CODE),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return o.digest=u.REDIRECT_ERROR_CODE+";"+t+";"+e+";"+r+";",o}function a(e,t){var r;throw null!=t||(t=(null==o||null==(r=o.getStore())?void 0:r.isAction)?u.RedirectType.push:u.RedirectType.replace),l(e,t,n.RedirectStatusCode.TemporaryRedirect)}function i(e,t){throw void 0===t&&(t=u.RedirectType.replace),l(e,t,n.RedirectStatusCode.PermanentRedirect)}function c(e){return(0,u.isRedirectError)(e)?e.digest.split(";").slice(2,-2).join(";"):null}function s(e){if(!(0,u.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return e.digest.split(";",2)[1]}function f(e){if(!(0,u.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return Number(e.digest.split(";").at(-2))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88126:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return n}});let n=r(35784).unstable_rethrow;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88393:(e,t,r)=>{"use strict";e.exports=r(69787)},88395:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathParamsContext:function(){return l},PathnameContext:function(){return o},SearchParamsContext:function(){return u}});let n=r(61221),u=(0,n.createContext)(null),o=(0,n.createContext)(null),l=(0,n.createContext)(null)},91009:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{SERVER_REFERENCE_ID_LENGTH:function(){return r},extractInfoFromServerReferenceId:function(){return u},mightBeServerReferenceId:function(){return n},omitUnusedArgs:function(){return o}});let r=42;function n(e){return e.length===r}function u(e){let t=parseInt(e.slice(0,2),16),r=t>>1&63,n=Array(6);for(let e=0;e<6;e++){let t=r>>5-e&1;n[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:n,hasRestArgs:1==(1&t)}}function o(e,t){let r=Array(e.length);for(let n=0;n=6&&t.hasRestArgs)&&(r[n]=e[n]);return r}},91094:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HandleISRError",{enumerable:!0,get:function(){return n}});let r=void 0;function n(e){let{error:t}=e;if(r){let e=r.getStore();if((null==e?void 0:e.isRevalidate)||(null==e?void 0:e.isStaticGeneration))throw console.error(t),t}return null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91492:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getFlightDataPartsFromPath:function(){return u},getNextFlightSegmentPath:function(){return o},normalizeFlightData:function(){return l},prepareFlightRouterStateForRequest:function(){return a}});let n=r(6374);function u(e){var t;let[r,n,u,o]=e.slice(-4),l=e.slice(0,-4);return{pathToSegment:l.slice(0,-1),segmentPath:l,segment:null!=(t=l[l.length-1])?t:"",tree:r,seedData:n,head:u,isHeadPartial:o,isRootRender:4===e.length}}function o(e){return e.slice(2)}function l(e){return"string"==typeof e?e:e.map(e=>u(e))}function a(e,t){return t?encodeURIComponent(JSON.stringify(e)):encodeURIComponent(JSON.stringify(function e(t){var r,u;let[o,l,a,i,c,s]=t,f="string"==typeof(r=o)&&r.startsWith(n.PAGE_SEGMENT_KEY+"?")?n.PAGE_SEGMENT_KEY:r,d={};for(let[t,r]of Object.entries(l))d[t]=e(r);let p=[f,d,null,(u=i)&&"refresh"!==u?i:null];return void 0!==c&&(p[4]=c),void 0!==s&&(p[5]=s),p}(e)))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectBoundary:function(){return f},RedirectErrorBoundary:function(){return s}});let n=r(6313),u=r(97601),o=n._(r(61221)),l=r(68702),a=r(87928),i=r(1279);function c(e){let{redirect:t,reset:r,redirectType:n}=e,u=(0,l.useRouter)();return(0,o.useEffect)(()=>{o.default.startTransition(()=>{n===i.RedirectType.push?u.push(t,{}):u.replace(t,{}),r()})},[t,n,r,u]),null}class s extends o.default.Component{static getDerivedStateFromError(e){if((0,i.isRedirectError)(e))return{redirect:(0,a.getURLFromRedirectError)(e),redirectType:(0,a.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,u.jsx)(c,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function f(e){let{children:t}=e,r=(0,l.useRouter)();return(0,u.jsx)(s,{router:r,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92248:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_HEADER:function(){return n},FLIGHT_HEADERS:function(){return f},NEXT_ACTION_NOT_FOUND_HEADER:function(){return v},NEXT_DID_POSTPONE_HEADER:function(){return h},NEXT_HMR_REFRESH_HASH_COOKIE:function(){return i},NEXT_HMR_REFRESH_HEADER:function(){return a},NEXT_IS_PRERENDER_HEADER:function(){return b},NEXT_REWRITTEN_PATH_HEADER:function(){return _},NEXT_REWRITTEN_QUERY_HEADER:function(){return y},NEXT_ROUTER_PREFETCH_HEADER:function(){return o},NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:function(){return l},NEXT_ROUTER_STALE_TIME_HEADER:function(){return p},NEXT_ROUTER_STATE_TREE_HEADER:function(){return u},NEXT_RSC_UNION_QUERY:function(){return d},NEXT_URL:function(){return c},RSC_CONTENT_TYPE_HEADER:function(){return s},RSC_HEADER:function(){return r}});let r="rsc",n="next-action",u="next-router-state-tree",o="next-router-prefetch",l="next-router-segment-prefetch",a="next-hmr-refresh",i="__next_hmr_refresh_hash__",c="next-url",s="text/x-component",f=[r,u,o,a,l],d="_rsc",p="x-nextjs-stale-time",h="x-nextjs-postponed",_="x-nextjs-rewritten-path",y="x-nextjs-rewritten-query",b="x-nextjs-prerender",v="x-nextjs-action-not-found";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95079:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{addRefreshMarkerToActiveParallelSegments:function(){return function e(t,r){let[n,u,,l]=t;for(let a in n.includes(o.PAGE_SEGMENT_KEY)&&"refresh"!==l&&(t[2]=r,t[3]="refresh"),u)e(u[a],r)}},refreshInactiveParallelSegments:function(){return l}});let n=r(48643),u=r(59815),o=r(6374);async function l(e){let t=new Set;await a({...e,rootTree:e.updatedTree,fetchedSegments:t})}async function a(e){let{navigatedAt:t,state:r,updatedTree:o,updatedCache:l,includeNextUrl:i,fetchedSegments:c,rootTree:s=o,canonicalUrl:f}=e,[,d,p,h]=o,_=[];if(p&&p!==f&&"refresh"===h&&!c.has(p)){c.add(p);let e=(0,u.fetchServerResponse)(new URL(p,location.origin),{flightRouterState:[s[0],s[1],s[2],"refetch"],nextUrl:i?r.nextUrl:null}).then(e=>{let{flightData:r}=e;if("string"!=typeof r)for(let e of r)(0,n.applyFlightData)(t,l,l,e)});_.push(e)}for(let e in d){let n=a({navigatedAt:t,state:r,updatedTree:d[e],updatedCache:l,includeNextUrl:i,fetchedSegments:c,rootTree:s,canonicalUrl:f});_.push(n)}await Promise.all(_)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95799:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{UnrecognizedActionError:function(){return r},unstable_isUnrecognizedActionError:function(){return n}});class r extends Error{constructor(...e){super(...e),this.name="UnrecognizedActionError"}}function n(e){return!!(e&&"object"==typeof e&&e instanceof r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96021:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AppRouterAnnouncer",{enumerable:!0,get:function(){return l}});let n=r(61221),u=r(79944),o="next-route-announcer";function l(e){let{tree:t}=e,[r,l]=(0,n.useState)(null);(0,n.useEffect)(()=>(l(function(){var e;let t=document.getElementsByName(o)[0];if(null==t||null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(o);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(o)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[a,i]=(0,n.useState)(""),c=(0,n.useRef)(void 0);return(0,n.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==c.current&&c.current!==e&&i(e),c.current=e},[t]),r?(0,u.createPortal)(a,r):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97390:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return u},getProperError:function(){return o}});let n=r(45160);function u(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function o(e){return u(e)?e:Object.defineProperty(Error((0,n.isPlainObject)(e)?function(e){let t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})}(e):e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},97517:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unresolvedThenable",{enumerable:!0,get:function(){return r}});let r={then:()=>{}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97601:(e,t,r)=>{"use strict";e.exports=r(27795)},98212:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(17292),u=r(97601);r(61221);let o=n._(r(13013)),l=r(81751),a=(0,r(61431).isBot)(window.navigator.userAgent);function i(e){let{children:t,errorComponent:r,errorStyles:n,errorScripts:i}=e;return a?(0,u.jsx)(o.default,{children:t}):(0,u.jsx)(l.ErrorBoundary,{errorComponent:r,errorStyles:n,errorScripts:i,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99188:(e,t,r)=>{"use strict";var n=r(6638),u=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),s=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),_=Symbol.iterator,y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,v={};function g(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||y}function m(){}function R(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||y}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("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")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=g.prototype;var E=R.prototype=new m;E.constructor=R,b(E,g.prototype),E.isPureReactComponent=!0;var O=Array.isArray;function P(){}var j={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function S(e,t,r){var n=r.ref;return{$$typeof:u,type:e,key:t,ref:void 0!==n?n:null,props:r}}function M(e){return"object"==typeof e&&null!==e&&e.$$typeof===u}var w=/\/+/g;function A(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function C(e,t,r){if(null==e)return e;var n=[],l=0;return!function e(t,r,n,l,a){var i,c,s,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case u:case o:d=!0;break;case h:return e((d=t._init)(t._payload),r,n,l,a)}}if(d)return a=a(t),d=""===l?"."+A(t,0):l,O(a)?(n="",null!=d&&(n=d.replace(w,"$&/")+"/"),e(a,r,n,"",function(e){return e})):null!=a&&(M(a)&&(i=a,c=n+(null==a.key||t&&t.key===a.key?"":(""+a.key).replace(w,"$&/")+"/")+d,a=S(i.type,c,i.props)),r.push(a)),1;d=0;var p=""===l?".":l+":";if(O(t))for(var y=0;y{t.d(r,{diagram:()=>g});var a=t(46597),n=t(84492);t(94191),t(69301);var s=t(98999),l=t(91158),p=t(89321),i=(0,p.Pz)().RailroadPeg.parser.LangiumParser,o=(0,l.K)(e=>{let r=e.alternatives.map(u);return 1===r.length?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),u=(0,l.K)(e=>{let r=e.elements.map(m);return 1===r.length?r[0]:{type:"sequence",elements:r}},"transformSequence"),m=(0,l.K)(e=>{let r=c(e.suffix);return e.operator?{type:"special",text:"&"===e.operator?`&${d(r)}`:`!${d(r)}`}:r},"transformPrefix"),d=(0,l.K)(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),c=(0,l.K)(e=>{let r=f(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),f=(0,l.K)(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return o(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=(0,l.K)(e=>({name:e.name,definition:o(e.definition)}),"transformRule"),P=(0,l.K)(e=>{(0,n.S)(e,a.db),e.title&&a.db.setTitle(e.title),e.rules.map(e=>a.db.addRule(y(e)))},"populateDb"),g={parser:{parse:(0,l.K)(e=>{a.db.clear(),s.R.debug("[PEG Parser] Starting Langium parse");let r=i.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p.zg(r);let t=r.value;s.R.debug("[PEG Parser] Parsed rules:",t.rules.length),P(t),s.R.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a.db}},db:a.db,renderer:a.U,styles:a.$}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4238.bd3eb957dc3dee41.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4238.bd3eb957dc3dee41.js deleted file mode 100644 index c077be929..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4238.bd3eb957dc3dee41.js +++ /dev/null @@ -1,287 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4238],{18568:function(t){t.exports=function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,s=/\d\d/,n=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,a={},o=function(t){return(t*=1)+(t>68?1900:2e3)},c=function(t){return function(e){this[t]=+e}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t||"Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),i=60*e[1]+(+e[2]||0);return 0===i?0:"+"===e[0]?-i:i}(t)}],d=function(t){var e=a[t];return e&&(e.indexOf?e:e.s.concat(e.f))},u=function(t,e){var i,s=a.meridiem;if(s){for(var n=1;n<=24;n+=1)if(t.indexOf(s(n,0,e))>-1){i=n>12;break}}else i=t===(e?"pm":"PM");return i},h={A:[r,function(t){this.afternoon=u(t,!1)}],a:[r,function(t){this.afternoon=u(t,!0)}],Q:[i,function(t){this.month=3*(t-1)+1}],S:[i,function(t){this.milliseconds=100*t}],SS:[s,function(t){this.milliseconds=10*t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[n,c("seconds")],ss:[n,c("seconds")],m:[n,c("minutes")],mm:[n,c("minutes")],H:[n,c("hours")],h:[n,c("hours")],HH:[n,c("hours")],hh:[n,c("hours")],D:[n,c("day")],DD:[s,c("day")],Do:[r,function(t){var e=a.ordinal,i=t.match(/\d+/);if(this.day=i[0],e)for(var s=1;s<=31;s+=1)e(s).replace(/\[|\]/g,"")===t&&(this.day=s)}],w:[n,c("week")],ww:[s,c("week")],M:[n,c("month")],MM:[s,c("month")],MMM:[r,function(t){var e=d("months"),i=(d("monthsShort")||e.map(function(t){return t.slice(0,3)})).indexOf(t)+1;if(i<1)throw Error();this.month=i%12||i}],MMMM:[r,function(t){var e=d("months").indexOf(t)+1;if(e<1)throw Error();this.month=e%12||e}],Y:[/[+-]?\d+/,c("year")],YY:[s,function(t){this.year=o(t)}],YYYY:[/\d{4}/,c("year")],Z:l,ZZ:l};return function(i,s,n){n.p.customParseFormat=!0,i&&i.parseTwoDigitYear&&(o=i.parseTwoDigitYear);var r=s.prototype,c=r.parse;r.parse=function(i){var s=i.date,r=i.utc,o=i.args;this.$u=r;var l=o[1];if("string"==typeof l){var d=!0===o[2],u=!0===o[3],f=o[2];u&&(f=o[2]),a=this.$locale(),!d&&f&&(a=n.Ls[f]),this.$d=function(i,s,n,r){try{if(["x","X"].indexOf(s)>-1)return new Date(("X"===s?1e3:1)*i);var o=(function(i){var s,n;s=i,n=a&&a.formats;for(var r=(i=s.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,i,s){var r=s&&s.toUpperCase();return i||n[s]||t[s]||n[r].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,e,i){return e||i.slice(1)})})).match(e),o=r.length,c=0;c0?l-1:p.getMonth());var b,$=u||0,w=f||0,_=m||0,D=k||0;return y?new Date(Date.UTC(T,x,v,$,w,_,D+60*y.offset*1e3)):n?new Date(Date.UTC(T,x,v,$,w,_,D)):(b=new Date(T,x,v,$,w,_,D),g&&(b=r(b).week(g).toDate()),b)}catch(t){return new Date("")}}(s,l,r,n),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),(d||u)&&s!=this.format(l)&&(this.$d=new Date("")),a={}}else if(l instanceof Array)for(var m=l.length,k=1;k<=m;k+=1){o[1]=l[k-1];var y=n.apply(this,o);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}k===m&&(this.$d=new Date(""))}else c.call(this,i)}}}()},49183:function(t){t.exports=function(){"use strict";var t,e,i=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,s=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,n={years:31536e6,months:2628e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1,weeks:6048e5},r=function(t){return t instanceof u},a=function(t,e,i){return new u(t,i,e.$l)},o=function(t){return e.p(t)+"s"},c=function(t){return t<0},l=function(t){return c(t)?Math.ceil(t):Math.floor(t)},d=function(t,e){return t?c(t)?{negative:!0,format:""+Math.abs(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},u=function(){function c(t,e,s){var r=this;if(this.$d={},this.$l=s,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return a(t*n[o(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach(function(e){r.$d[o(e)]=t[e]}),this.calMilliseconds(),this;if("string"==typeof t){var c=t.match(i);if(c){var l=c.slice(2).map(function(t){return null!=t?Number(t):0});return this.$d.years=l[0],this.$d.months=l[1],this.$d.weeks=l[2],this.$d.days=l[3],this.$d.hours=l[4],this.$d.minutes=l[5],this.$d.seconds=l[6],this.calMilliseconds(),this}}return this}var u=c.prototype;return u.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce(function(e,i){return e+(t.$d[i]||0)*n[i]},0)},u.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=l(t/31536e6),t%=31536e6,this.$d.months=l(t/2628e6),t%=2628e6,this.$d.days=l(t/864e5),t%=864e5,this.$d.hours=l(t/36e5),t%=36e5,this.$d.minutes=l(t/6e4),t%=6e4,this.$d.seconds=l(t/1e3),t%=1e3,this.$d.milliseconds=t},u.toISOString=function(){var t=d(this.$d.years,"Y"),e=d(this.$d.months,"M"),i=+this.$d.days||0;this.$d.weeks&&(i+=7*this.$d.weeks);var s=d(i,"D"),n=d(this.$d.hours,"H"),r=d(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var o=d(a,"S"),c=t.negative||e.negative||s.negative||n.negative||r.negative||o.negative,l=n.format||r.format||o.format?"T":"",u=(c?"-":"")+"P"+t.format+e.format+s.format+l+n.format+r.format+o.format;return"P"===u||"-P"===u?"P0D":u},u.toJSON=function(){return this.toISOString()},u.format=function(t){var i={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return(t||"YYYY-MM-DDTHH:mm:ss").replace(s,function(t,e){return e||String(i[t])})},u.as=function(t){return this.$ms/n[o(t)]},u.get=function(t){var e=this.$ms,i=o(t);return"milliseconds"===i?e%=1e3:e="weeks"===i?l(e/n[i]):this.$d[i],e||0},u.add=function(t,e,i){var s;return s=e?t*n[o(e)]:r(t)?t.$ms:a(t,this).$ms,a(this.$ms+s*(i?-1:1),this)},u.subtract=function(t,e){return this.add(t,e,!0)},u.locale=function(t){var e=this.clone();return e.$l=t,e},u.clone=function(){return a(this.$ms,this)},u.humanize=function(e){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},u.valueOf=function(){return this.asMilliseconds()},u.milliseconds=function(){return this.get("milliseconds")},u.asMilliseconds=function(){return this.as("milliseconds")},u.seconds=function(){return this.get("seconds")},u.asSeconds=function(){return this.as("seconds")},u.minutes=function(){return this.get("minutes")},u.asMinutes=function(){return this.as("minutes")},u.hours=function(){return this.get("hours")},u.asHours=function(){return this.as("hours")},u.days=function(){return this.get("days")},u.asDays=function(){return this.as("days")},u.weeks=function(){return this.get("weeks")},u.asWeeks=function(){return this.as("weeks")},u.months=function(){return this.get("months")},u.asMonths=function(){return this.as("months")},u.years=function(){return this.get("years")},u.asYears=function(){return this.as("years")},c}(),h=function(t,e,i){return t.add(e.years()*i,"y").add(e.months()*i,"M").add(e.days()*i,"d").add(e.hours()*i,"h").add(e.minutes()*i,"m").add(e.seconds()*i,"s").add(e.milliseconds()*i,"ms")};return function(i,s,n){t=n,e=n().$utils(),n.duration=function(t,e){return a(t,{$l:n.locale()},e)},n.isDuration=r;var o=s.prototype.add,c=s.prototype.subtract;s.prototype.add=function(t,e){return r(t)?h(this,t,1):o.bind(this)(t,e)},s.prototype.subtract=function(t,e){return r(t)?h(this,t,-1):c.bind(this)(t,e)}}}()},74238:(t,e,i)=>{"use strict";i.d(e,{diagram:()=>tP});var s,n,r,a=i(13892),o=i(69301),c=i(98999),l=i(91158),d=i(76162),u=i(53660),h=i(90468),f=i(18568),m=i(80714),k=i(49183),y=i(70668),g=function(){var t=(0,l.K)(function(t,e,i,s){for(i=i||{},s=t.length;s--;i[t[s]]=e);return i},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],i=[1,26],s=[1,27],n=[1,28],r=[1,29],a=[1,30],o=[1,31],c=[1,32],d=[1,33],u=[1,34],h=[1,9],f=[1,10],m=[1,11],k=[1,12],y=[1,13],g=[1,14],p=[1,15],v=[1,16],T=[1,19],x=[1,20],b=[1,21],$=[1,22],w=[1,23],_=[1,25],D=[1,35],S={trace:(0,l.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:(0,l.K)(function(t,e,i,s,n,r,a){var o=r.length-1;switch(n){case 1:return r[o-1];case 2:case 6:case 7:this.$=[];break;case 3:r[o-1].push(r[o]),this.$=r[o-1];break;case 4:case 5:this.$=r[o];break;case 8:s.setWeekday("monday");break;case 9:s.setWeekday("tuesday");break;case 10:s.setWeekday("wednesday");break;case 11:s.setWeekday("thursday");break;case 12:s.setWeekday("friday");break;case 13:s.setWeekday("saturday");break;case 14:s.setWeekday("sunday");break;case 15:s.setWeekend("friday");break;case 16:s.setWeekend("saturday");break;case 17:s.setDateFormat(r[o].substr(11)),this.$=r[o].substr(11);break;case 18:s.enableInclusiveEndDates(),this.$=r[o].substr(18);break;case 19:s.TopAxis(),this.$=r[o].substr(8);break;case 20:s.setAxisFormat(r[o].substr(11)),this.$=r[o].substr(11);break;case 21:s.setTickInterval(r[o].substr(13)),this.$=r[o].substr(13);break;case 22:s.setExcludes(r[o].substr(9)),this.$=r[o].substr(9);break;case 23:s.setIncludes(r[o].substr(9)),this.$=r[o].substr(9);break;case 24:s.setTodayMarker(r[o].substr(12)),this.$=r[o].substr(12);break;case 27:s.setDiagramTitle(r[o].substr(6)),this.$=r[o].substr(6);break;case 28:this.$=r[o].trim(),s.setAccTitle(this.$);break;case 29:case 30:this.$=r[o].trim(),s.setAccDescription(this.$);break;case 31:s.addSection(r[o].substr(8)),this.$=r[o].substr(8);break;case 33:s.addTask(r[o-1],r[o]),this.$="task";break;case 34:this.$=r[o-1],s.setClickEvent(r[o-1],r[o],null);break;case 35:this.$=r[o-2],s.setClickEvent(r[o-2],r[o-1],r[o]);break;case 36:this.$=r[o-2],s.setClickEvent(r[o-2],r[o-1],null),s.setLink(r[o-2],r[o]);break;case 37:this.$=r[o-3],s.setClickEvent(r[o-3],r[o-2],r[o-1]),s.setLink(r[o-3],r[o]);break;case 38:this.$=r[o-2],s.setClickEvent(r[o-2],r[o],null),s.setLink(r[o-2],r[o-1]);break;case 39:this.$=r[o-3],s.setClickEvent(r[o-3],r[o-1],r[o]),s.setLink(r[o-3],r[o-2]);break;case 40:this.$=r[o-1],s.setLink(r[o-1],r[o]);break;case 41:case 47:this.$=r[o-1]+" "+r[o];break;case 42:case 43:case 45:this.$=r[o-2]+" "+r[o-1]+" "+r[o];break;case 44:case 46:this.$=r[o-3]+" "+r[o-2]+" "+r[o-1]+" "+r[o]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:i,13:s,14:n,15:r,16:a,17:o,18:c,19:18,20:d,21:u,22:h,23:f,24:m,25:k,26:y,27:g,28:p,29:v,30:T,31:x,33:b,35:$,36:w,37:24,38:_,40:D},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:i,13:s,14:n,15:r,16:a,17:o,18:c,19:18,20:d,21:u,22:h,23:f,24:m,25:k,26:y,27:g,28:p,29:v,30:T,31:x,33:b,35:$,36:w,37:24,38:_,40:D},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:(0,l.K)(function(t,e){if(e.recoverable)this.trace(t);else{var i=Error(t);throw i.hash=e,i}},"parseError"),parse:(0,l.K)(function(t){var e=this,i=[0],s=[],n=[null],r=[],a=this.table,o="",c=0,d=0,u=0,h=r.slice.call(arguments,1),f=Object.create(this.lexer),m={};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(m[k]=this.yy[k]);f.setInput(t,m),m.lexer=f,m.parser=this,void 0===f.yylloc&&(f.yylloc={});var y=f.yylloc;r.push(y);var g=f.options&&f.options.ranges;function p(){var t;return"number"!=typeof(t=s.pop()||f.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof m.parseError?this.parseError=m.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,l.K)(function(t){i.length=i.length-2*t,n.length=n.length-t,r.length=r.length-t},"popStack"),(0,l.K)(p,"lex");for(var v,T,x,b,$,w,_,D,S,C={};;){if(x=i[i.length-1],this.defaultActions[x]?b=this.defaultActions[x]:(null==v&&(v=p()),b=a[x]&&a[x][v]),void 0===b||!b.length||!b[0]){var M="";for(w in S=[],a[x])this.terminals_[w]&&w>2&&S.push("'"+this.terminals_[w]+"'");M=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(M,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:y,expected:S})}if(b[0]instanceof Array&&b.length>1)throw Error("Parse Error: multiple actions possible at state: "+x+", token: "+v);switch(b[0]){case 1:i.push(v),n.push(f.yytext),r.push(f.yylloc),i.push(b[1]),v=null,T?(v=T,T=null):(d=f.yyleng,o=f.yytext,c=f.yylineno,y=f.yylloc,u>0&&u--);break;case 2:if(_=this.productions_[b[1]][1],C.$=n[n.length-_],C._$={first_line:r[r.length-(_||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(_||1)].first_column,last_column:r[r.length-1].last_column},g&&(C._$.range=[r[r.length-(_||1)].range[0],r[r.length-1].range[1]]),void 0!==($=this.performAction.apply(C,[o,d,c,m,b[1],n,r].concat(h))))return $;_&&(i=i.slice(0,-1*_*2),n=n.slice(0,-1*_),r=r.slice(0,-1*_)),i.push(this.productions_[b[1]][0]),n.push(C.$),r.push(C._$),D=a[i[i.length-2]][i[i.length-1]],i.push(D);break;case 3:return!0}}return!0},"parse")};function C(){this.yy={}}return S.lexer={EOF:1,parseError:(0,l.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,l.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,l.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,l.K)(function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===s.length?this.yylloc.first_column:0)+s[s.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,l.K)(function(){return this._more=!0,this},"more"),reject:(0,l.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,l.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,l.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,l.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,l.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,l.K)(function(t,e){var i,s,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in n)this[r]=n[r];return!1},"test_match"),next:(0,l.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,s,n=this._currentRules(),r=0;re[0].length)){if(e=i,s=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,n[r])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,l.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,l.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,l.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,l.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,l.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,l.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,l.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,l.K)(function(t,e,i,s){switch(i){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 43;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 22:return 42;case 23:this.begin("click");break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}},(0,l.K)(C,"Parser"),C.prototype=S,S.Parser=C,new C}();g.parser=g,u.extend(h),u.extend(f),u.extend(m);var p={friday:5,saturday:6},v="",T="",x=void 0,b="",$=[],w=[],_=new Map,D=[],S=[],C="",M="",K=["active","done","crit","milestone","vert"],Y=[],E="",L=!1,O=!1,A="sunday",I="saturday",F=0,W=(0,l.K)(function(){D=[],S=[],C="",Y=[],tp=0,s=void 0,n=void 0,tb=[],v="",T="",M="",x=void 0,b="",$=[],w=[],L=!1,O=!1,F=0,_=new Map,E="",(0,o.IU)(),A="sunday",I="saturday"},"clear"),P=(0,l.K)(function(t){E=t},"setDiagramId"),N=(0,l.K)(function(t){T=t},"setAxisFormat"),H=(0,l.K)(function(){return T},"getAxisFormat"),z=(0,l.K)(function(t){x=t},"setTickInterval"),B=(0,l.K)(function(){return x},"getTickInterval"),R=(0,l.K)(function(t){b=t},"setTodayMarker"),G=(0,l.K)(function(){return b},"getTodayMarker"),j=(0,l.K)(function(t){v=t},"setDateFormat"),U=(0,l.K)(function(){L=!0},"enableInclusiveEndDates"),V=(0,l.K)(function(){return L},"endDatesAreInclusive"),Z=(0,l.K)(function(){O=!0},"enableTopAxis"),X=(0,l.K)(function(){return O},"topAxisEnabled"),q=(0,l.K)(function(t){M=t},"setDisplayMode"),Q=(0,l.K)(function(){return M},"getDisplayMode"),J=(0,l.K)(function(){return v},"getDateFormat"),tt=(0,l.K)((t,e)=>[...new Set([...t,...e.toLowerCase().split(/[\s,]+/).filter(t=>""!==t)])],"mergeTokens"),te=(0,l.K)(function(t){$=tt($,t)},"setIncludes"),ti=(0,l.K)(function(){return $},"getIncludes"),ts=(0,l.K)(function(t){w=tt(w,t)},"setExcludes"),tn=(0,l.K)(function(){return w},"getExcludes"),tr=(0,l.K)(function(){return _},"getLinks"),ta=(0,l.K)(function(t){C=t,D.push(t)},"addSection"),to=(0,l.K)(function(){return D},"getSections"),tc=(0,l.K)(function(){let t=tS(),e=0;for(;!t&&e<10;)t=tS(),e++;return S=tb},"getTasks"),tl=(0,l.K)(function(t,e,i,s){let n=t.format(e.trim()),r=t.format("YYYY-MM-DD");return!(s.includes(n)||s.includes(r))&&(!!(i.includes("weekends")&&(t.isoWeekday()===p[I]||t.isoWeekday()===p[I]+1)||i.includes(t.format("dddd").toLowerCase()))||i.includes(n)||i.includes(r))},"isInvalidDate"),td=(0,l.K)(function(t){A=t},"setWeekday"),tu=(0,l.K)(function(){return A},"getWeekday"),th=(0,l.K)(function(t){I=t},"setWeekend"),tf=(0,l.K)(function(t,e,i,s){let n;if(!i.length||t.manualEndTime)return;let[r,a]=tm(n=(n=t.startTime instanceof Date?u(t.startTime):u(t.startTime,e,!0)).add(1,"d"),t.endTime instanceof Date?u(t.endTime):u(t.endTime,e,!0),e,i,s);t.endTime=r.toDate(),t.renderEndTime=a},"checkTaskDates"),tm=(0,l.K)(function(t,e,i,s,n){let r=!1,a=null,o=e.add(1e4,"d");for(;t<=e;){if(r||(a=e.toDate()),(r=tl(t,i,s,n))&&(e=e.add(1,"d"))>o)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[e,a]},"fixTaskDates"),tk=(0,l.K)(function(t,e,i){if(i=i.trim(),(0,l.K)(t=>{let e=t.trim();return"x"===e||"X"===e},"isTimestampFormat")(e)&&/^\d+$/.test(i))return new Date(Number(i));let s=/^after\s+(?[\d\w- ]+)/.exec(i);if(null!==s){let t=null;for(let e of s.groups.ids.split(" ")){let i=t_(e);void 0!==i&&(!t||i.endTime>t.endTime)&&(t=i)}if(t)return t.endTime;let e=new Date;return e.setHours(0,0,0,0),e}let n=u(i,e.trim(),!0);if(n.isValid())return n.toDate();{c.R.debug("Invalid date:"+i),c.R.debug("With date format:"+e.trim());let t=new Date(i);if(void 0===t||isNaN(t.getTime())||-1e4>t.getFullYear()||t.getFullYear()>1e4)throw Error("Invalid date:"+i);return t}},"getStartDate"),ty=(0,l.K)(function(t){let e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==e?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),tg=(0,l.K)(function(t,e,i,s=!1){i=i.trim();let n=/^until\s+(?[\d\w- ]+)/.exec(i);if(null!==n){let t=null;for(let e of n.groups.ids.split(" ")){let i=t_(e);void 0!==i&&(!t||i.startTime{window.open(i,"_self")}),_.set(t,i))}),tM(t,"clickable")},"setLink"),tM=(0,l.K)(function(t,e){t.split(",").forEach(function(t){let i=t_(t);void 0!==i&&i.classes.push(e)})},"setClass"),tK=(0,l.K)(function(t,e,i){if("loose"!==(0,o.D7)().securityLevel||void 0===e)return;let s=[];if("string"==typeof i){s=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t{a._K.runFunc(e,...s)})},"setClickFun"),tY=(0,l.K)(function(t,e){Y.push(function(){let i=E?`${E}-${t}`:t,s=document.querySelector(`[id="${i}"]`);null!==s&&s.addEventListener("click",function(){e()})},function(){let i=E?`${E}-${t}`:t,s=document.querySelector(`[id="${i}-text"]`);null!==s&&s.addEventListener("click",function(){e()})})},"pushFun"),tE=(0,l.K)(function(t,e,i){t.split(",").forEach(function(t){tK(t,e,i)}),tM(t,"clickable")},"setClickEvent"),tL=(0,l.K)(function(t){Y.forEach(function(e){e(t)})},"bindFunctions"),tO={getConfig:(0,l.K)(()=>(0,o.D7)().gantt,"getConfig"),clear:W,setDateFormat:j,getDateFormat:J,enableInclusiveEndDates:U,endDatesAreInclusive:V,enableTopAxis:Z,topAxisEnabled:X,setAxisFormat:N,getAxisFormat:H,setTickInterval:z,getTickInterval:B,setTodayMarker:R,getTodayMarker:G,setAccTitle:o.SV,getAccTitle:o.iN,setDiagramTitle:o.ke,getDiagramTitle:o.ab,setDiagramId:P,setDisplayMode:q,getDisplayMode:Q,setAccDescription:o.EI,getAccDescription:o.m7,addSection:ta,getSections:to,getTasks:tc,addTask:tw,findTaskById:t_,addTaskOrg:tD,setIncludes:te,getIncludes:ti,setExcludes:ts,getExcludes:tn,setClickEvent:tE,setLink:tC,getLinks:tr,bindFunctions:tL,parseDuration:ty,isInvalidDate:tl,setWeekday:td,getWeekday:tu,setWeekend:th};function tA(t,e,i){let s=!0;for(;s;)s=!1,i.forEach(function(i){let n=RegExp("^\\s*"+i+"\\s*$");t[0].match(n)&&(e[i]=!0,t.shift(1),s=!0)})}(0,l.K)(tA,"getTaskTags"),u.extend(k);var tI=(0,l.K)(function(){c.R.debug("Something is calling, setConf, remove the call")},"setConf"),tF={monday:y.ABi,tuesday:y.PGu,wednesday:y.GuW,thursday:y.Mol,friday:y.TUC,saturday:y.rGn,sunday:y.YPH},tW=(0,l.K)((t,e)=>{let i=[...t].map(()=>-1/0),s=[...t].sort((t,e)=>t.startTime-e.startTime||t.order-e.order),n=0;for(let t of s)for(let s=0;s=i[s]){i[s]=t.endTime,t.order=s+e,s>n&&(n=s);break}return n},"getMaxIntersections"),tP={parser:g,db:tO,renderer:{setConf:tI,draw:(0,l.K)(function(t,e,i,s){let n,a=(0,o.D7)().gantt;s.db.setDiagramId(e);let d=(0,o.D7)().securityLevel;"sandbox"===d&&(n=(0,y.Ltv)("#i"+e));let h="sandbox"===d?(0,y.Ltv)(n.nodes()[0].contentDocument.body):(0,y.Ltv)("body"),f="sandbox"===d?n.nodes()[0].contentDocument:document,m=f.getElementById(e);void 0===(r=m.parentElement.offsetWidth)&&(r=1200),void 0!==a.useWidth&&(r=a.useWidth);let k=s.db.getTasks(),g=k.filter(t=>!t.vert),p=[];for(let t of g)p.push(t.type);p=Y(p);let v={},T=2*a.topPadding;if("compact"===s.db.getDisplayMode()||"compact"===a.displayMode){let t={};for(let e of g)void 0===t[e.section]?t[e.section]=[e]:t[e.section].push(e);let e=0;for(let i of Object.keys(t)){let s=tW(t[i],e)+1;e+=s,T+=s*(a.barHeight+a.barGap),v[i]=s}}else for(let t of(T+=g.length*(a.barHeight+a.barGap),p))v[t]=g.filter(e=>e.type===t).length;m.setAttribute("viewBox","0 0 "+r+" "+T);let x=h.select(`[id="${e}"]`),b=(0,y.w7C)().domain([(0,y.jkA)(k,function(t){return t.startTime}),(0,y.T9B)(k,function(t){return t.endTime})]).rangeRound([0,r-a.leftPadding-a.rightPadding]);function $(t,e){let i=t.startTime,s=e.startTime,n=0;return i>s?n=1:it.vert===e.vert?0:t.vert?1:-1);let u=t.filter(t=>!t.vert),h=[...new Set(u.map(t=>t.order))].map(t=>u.find(e=>e.order===t));x.append("g").selectAll("rect").data(h).enter().append("rect").attr("x",0).attr("y",function(t,e){return t.order*i+n-2}).attr("width",function(){return d-a.rightPadding/2}).attr("height",i).attr("class",function(t){for(let[e,i]of p.entries())if(t.type===i)return"section section"+e%a.numberSectionStyles;return"section section0"}).enter();let f=x.append("g").selectAll("rect").data(t).enter(),m=s.db.getLinks();if(f.append("rect").attr("id",function(t){return e+"-"+t.id}).attr("rx",3).attr("ry",3).attr("x",function(t){return t.milestone?b(t.startTime)+r+.5*(b(t.endTime)-b(t.startTime))-.5*c:b(t.startTime)+r}).attr("y",function(t,e){return(e=t.order,t.vert)?a.gridLineStartPadding:e*i+n}).attr("width",function(t){return t.milestone?c:t.vert?.08*c:b(t.renderEndTime||t.endTime)-b(t.startTime)}).attr("height",function(t){return t.vert?u.length*(a.barHeight+a.barGap)+2*a.barHeight:c}).attr("transform-origin",function(t,e){return e=t.order,(b(t.startTime)+r+.5*(b(t.endTime)-b(t.startTime))).toString()+"px "+(e*i+n+.5*c).toString()+"px"}).attr("class",function(t){let e="";t.classes.length>0&&(e=t.classes.join(" "));let i=0;for(let[e,s]of p.entries())t.type===s&&(i=e%a.numberSectionStyles);let s="";return t.active?t.crit?s+=" activeCrit":s=" active":t.done?s=t.crit?" doneCrit":" done":t.crit&&(s+=" crit"),0===s.length&&(s=" task"),t.milestone&&(s=" milestone "+s),t.vert&&(s=" vert "+s),s+=i,"task"+(s+=" "+e)}),f.append("text").attr("id",function(t){return e+"-"+t.id+"-text"}).text(function(t){return t.task}).attr("font-size",a.fontSize).attr("x",function(t){let e=b(t.startTime),i=b(t.renderEndTime||t.endTime);if(t.milestone&&(e+=.5*(b(t.endTime)-b(t.startTime))-.5*c,i=e+c),t.vert)return b(t.startTime)+r;let s=this.getBBox().width;return s>i-e?i+s+1.5*a.leftPadding>d?e+r-5:i+r+5:(i-e)/2+e+r}).attr("y",function(t,e){return t.vert?a.gridLineStartPadding+u.length*(a.barHeight+a.barGap)+60:t.order*i+a.barHeight/2+(a.fontSize/2-2)+n}).attr("text-height",c).attr("class",function(t){let e=b(t.startTime),i=b(t.endTime);t.milestone&&(i=e+c);let s=this.getBBox().width,n="";t.classes.length>0&&(n=t.classes.join(" "));let r=0;for(let[e,i]of p.entries())t.type===i&&(r=e%a.numberSectionStyles);let o="";return(t.active&&(o=t.crit?"activeCritText"+r:"activeText"+r),t.done?o=t.crit?o+" doneCritText"+r:o+" doneText"+r:t.crit&&(o=o+" critText"+r),t.milestone&&(o+=" milestoneText"),t.vert&&(o+=" vertText"),s>i-e)?i+s+1.5*a.leftPadding>d?n+" taskTextOutsideLeft taskTextOutside"+r+" "+o:n+" taskTextOutsideRight taskTextOutside"+r+" "+o+" width-"+s:n+" taskText taskText"+r+" "+o+" width-"+s}),"sandbox"===(0,o.D7)().securityLevel){let t=(0,y.Ltv)("#i"+e).nodes()[0].contentDocument;f.filter(function(t){return m.has(t.id)}).each(function(i){var s=t.querySelector("#"+CSS.escape(e+"-"+i.id)),n=t.querySelector("#"+CSS.escape(e+"-"+i.id+"-text"));let r=s.parentNode;var a=t.createElement("a");a.setAttribute("xlink:href",m.get(i.id)),a.setAttribute("target","_top"),r.appendChild(a),a.appendChild(s),a.appendChild(n)})}}function D(t,i,n,r,o,l,d,h){let f,m;if(0===d.length&&0===h.length)return;for(let{startTime:t,endTime:e}of l)(void 0===f||tm)&&(m=e);if(!f||!m)return;if(u(m).diff(u(f),"year")>5)return void c.R.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");let k=s.db.getDateFormat(),y=[],g=null,p=u(f);for(;p.valueOf()<=m;)s.db.isInvalidDate(p,k,d,h)?g?g.end=p:g={start:p,end:p}:g&&(y.push(g),g=null),p=p.add(1,"d");x.append("g").selectAll("rect").data(y).enter().append("rect").attr("id",t=>e+"-exclude-"+t.start.format("YYYY-MM-DD")).attr("x",t=>b(t.start.startOf("day"))+n).attr("y",a.gridLineStartPadding).attr("width",t=>b(t.end.endOf("day"))-b(t.start.startOf("day"))).attr("height",o-i-a.gridLineStartPadding).attr("transform-origin",function(e,i){return(b(e.start)+n+.5*(b(e.end)-b(e.start))).toString()+"px "+(i*t+.5*o).toString()+"px"}).attr("class","exclude-range")}function S(t,e,i,s){if(i<=0||t>e)return 1/0;let n=u.duration({[s??"day"]:i}).asMilliseconds();return n<=0?1/0:Math.ceil((e-t)/n)}function C(t,e,i,n){let r,o=s.db.getDateFormat(),l=s.db.getAxisFormat();r=l||("D"===o?"%d":a.axisFormat??"%Y-%m-%d");let d=(0,y.l78)(b).tickSize(-n+e+a.gridLineStartPadding).tickFormat((0,y.DCK)(r)),u=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(s.db.getTickInterval()||a.tickInterval);if(null!==u){let t=parseInt(u[1],10);if(isNaN(t)||t<=0)c.R.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{let e=u[2],i=s.db.getWeekday()||a.weekday,n=b.domain(),r=S(n[0],n[1],t,e);if(r>1e4)c.R.warn(`The tick interval "${t}${e}" would generate ${r} ticks, which exceeds the maximum allowed (10000). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(e){case"millisecond":d.ticks(y.t6C.every(t));break;case"second":d.ticks(y.ucG.every(t));break;case"minute":d.ticks(y.wXd.every(t));break;case"hour":d.ticks(y.Agd.every(t));break;case"day":d.ticks(y.UAC.every(t));break;case"week":d.ticks(tF[i].every(t));break;case"month":d.ticks(y.Ui6.every(t))}}}if(x.append("g").attr("class","grid").attr("transform","translate("+t+", "+(n-50)+")").call(d).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),s.db.topAxisEnabled()||a.topAxis){let i=(0,y.tlR)(b).tickSize(-n+e+a.gridLineStartPadding).tickFormat((0,y.DCK)(r));if(null!==u){let t=parseInt(u[1],10);if(isNaN(t)||t<=0)c.R.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{let e=u[2],n=s.db.getWeekday()||a.weekday,r=b.domain();if(1e4>=S(r[0],r[1],t,e))switch(e){case"millisecond":i.ticks(y.t6C.every(t));break;case"second":i.ticks(y.ucG.every(t));break;case"minute":i.ticks(y.wXd.every(t));break;case"hour":i.ticks(y.Agd.every(t));break;case"day":i.ticks(y.UAC.every(t));break;case"week":i.ticks(tF[n].every(t));break;case"month":i.ticks(y.Ui6.every(t))}}}x.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(i).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function M(t,e){let i=0,s=Object.keys(v).map(t=>[t,v[t]]);x.append("g").selectAll("text").data(s).enter().append(function(t){let e=t[0].split(o.Y2.lineBreakRegex),i=-(e.length-1)/2,s=f.createElementNS("http://www.w3.org/2000/svg","text");for(let[t,n]of(s.setAttribute("dy",i+"em"),e.entries())){let e=f.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttribute("alignment-baseline","central"),e.setAttribute("x","10"),t>0&&e.setAttribute("dy","1em"),e.textContent=n,s.appendChild(e)}return s}).attr("x",10).attr("y",function(n,r){if(!(r>0))return n[1]*t/2+e;for(let a=0;a` - .mermaid-main-font { - font-family: ${t.fontFamily}; - } - - .exclude-range { - fill: ${t.excludeBkgColor}; - } - - .section { - stroke: none; - opacity: 0.2; - } - - .section0 { - fill: ${t.sectionBkgColor}; - } - - .section2 { - fill: ${t.sectionBkgColor2}; - } - - .section1, - .section3 { - fill: ${t.altSectionBkgColor}; - opacity: 0.2; - } - - .sectionTitle0 { - fill: ${t.titleColor}; - } - - .sectionTitle1 { - fill: ${t.titleColor}; - } - - .sectionTitle2 { - fill: ${t.titleColor}; - } - - .sectionTitle3 { - fill: ${t.titleColor}; - } - - .sectionTitle { - text-anchor: start; - font-family: ${t.fontFamily}; - } - - - /* Grid and axis */ - - .grid .tick { - stroke: ${t.gridColor}; - opacity: 0.8; - shape-rendering: crispEdges; - } - - .grid .tick text { - font-family: ${t.fontFamily}; - fill: ${t.textColor}; - } - - .grid path { - stroke-width: 0; - } - - - /* Today line */ - - .today { - fill: none; - stroke: ${t.todayLineColor}; - stroke-width: 2px; - } - - - /* Task styling */ - - /* Default task */ - - .task { - stroke-width: 2; - } - - .taskText { - text-anchor: middle; - font-family: ${t.fontFamily}; - } - - .taskTextOutsideRight { - fill: ${t.taskTextDarkColor}; - text-anchor: start; - font-family: ${t.fontFamily}; - } - - .taskTextOutsideLeft { - fill: ${t.taskTextDarkColor}; - text-anchor: end; - } - - - /* Special case clickable */ - - .task.clickable { - cursor: pointer; - } - - .taskText.clickable { - cursor: pointer; - fill: ${t.taskTextClickableColor} !important; - font-weight: bold; - } - - .taskTextOutsideLeft.clickable { - cursor: pointer; - fill: ${t.taskTextClickableColor} !important; - font-weight: bold; - } - - .taskTextOutsideRight.clickable { - cursor: pointer; - fill: ${t.taskTextClickableColor} !important; - font-weight: bold; - } - - - /* Specific task settings for the sections*/ - - .taskText0, - .taskText1, - .taskText2, - .taskText3 { - fill: ${t.taskTextColor}; - } - - .task0, - .task1, - .task2, - .task3 { - fill: ${t.taskBkgColor}; - stroke: ${t.taskBorderColor}; - } - - .taskTextOutside0, - .taskTextOutside2 - { - fill: ${t.taskTextOutsideColor}; - } - - .taskTextOutside1, - .taskTextOutside3 { - fill: ${t.taskTextOutsideColor}; - } - - - /* Active task */ - - .active0, - .active1, - .active2, - .active3 { - fill: ${t.activeTaskBkgColor}; - stroke: ${t.activeTaskBorderColor}; - } - - .activeText0, - .activeText1, - .activeText2, - .activeText3 { - fill: ${t.taskTextDarkColor} !important; - } - - - /* Completed task */ - - .done0, - .done1, - .done2, - .done3 { - stroke: ${t.doneTaskBorderColor}; - fill: ${t.doneTaskBkgColor}; - stroke-width: 2; - } - - .doneText0, - .doneText1, - .doneText2, - .doneText3 { - fill: ${t.taskTextDarkColor} !important; - } - - /* Done task text displayed outside the bar sits against the diagram background, - not against the done-task bar, so it must use the outside/contrast color. */ - .doneText0.taskTextOutsideLeft, - .doneText0.taskTextOutsideRight, - .doneText1.taskTextOutsideLeft, - .doneText1.taskTextOutsideRight, - .doneText2.taskTextOutsideLeft, - .doneText2.taskTextOutsideRight, - .doneText3.taskTextOutsideLeft, - .doneText3.taskTextOutsideRight { - fill: ${t.taskTextOutsideColor} !important; - } - - - /* Tasks on the critical line */ - - .crit0, - .crit1, - .crit2, - .crit3 { - stroke: ${t.critBorderColor}; - fill: ${t.critBkgColor}; - stroke-width: 2; - } - - .activeCrit0, - .activeCrit1, - .activeCrit2, - .activeCrit3 { - stroke: ${t.critBorderColor}; - fill: ${t.activeTaskBkgColor}; - stroke-width: 2; - } - - .doneCrit0, - .doneCrit1, - .doneCrit2, - .doneCrit3 { - stroke: ${t.critBorderColor}; - fill: ${t.doneTaskBkgColor}; - stroke-width: 2; - cursor: pointer; - shape-rendering: crispEdges; - } - - .milestone { - transform: rotate(45deg) scale(0.8,0.8); - } - - .milestoneText { - font-style: italic; - } - .doneCritText0, - .doneCritText1, - .doneCritText2, - .doneCritText3 { - fill: ${t.taskTextDarkColor} !important; - } - - /* Done-crit task text outside the bar \u2014 same reasoning as doneText above. */ - .doneCritText0.taskTextOutsideLeft, - .doneCritText0.taskTextOutsideRight, - .doneCritText1.taskTextOutsideLeft, - .doneCritText1.taskTextOutsideRight, - .doneCritText2.taskTextOutsideLeft, - .doneCritText2.taskTextOutsideRight, - .doneCritText3.taskTextOutsideLeft, - .doneCritText3.taskTextOutsideRight { - fill: ${t.taskTextOutsideColor} !important; - } - - .vert { - stroke: ${t.vertLineColor}; - } - - .vertText { - font-size: 15px; - text-anchor: middle; - fill: ${t.vertLineColor} !important; - } - - .activeCritText0, - .activeCritText1, - .activeCritText2, - .activeCritText3 { - fill: ${t.taskTextDarkColor} !important; - } - - .titleText { - text-anchor: middle; - font-size: 18px; - fill: ${t.titleColor||t.textColor}; - font-family: ${t.fontFamily}; - } -`,"getStyles")}},80714:function(t){t.exports=function(t,e){var i=e.prototype,s=i.format;i.format=function(t){var e=this,i=this.$locale();if(!this.isValid())return s.bind(this)(t);var n=this.$utils(),r=(t||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(t){switch(t){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return i.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return i.ordinal(e.week(),"W");case"w":case"ww":return n.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return n.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return n.s(String(0===e.$H?24:e.$H),"k"===t?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return t}});return s.bind(this)(r)}}},90468:function(t){t.exports=function(t,e,i){var s=function(t){return t.add(4-t.isoWeekday(),"day")},n=e.prototype;n.isoWeekYear=function(){return s(this).year()},n.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),"day");var e,n,r,a=s(this),o=(e=this.isoWeekYear(),r=4-(n=(this.$u?i.utc:i)().year(e).startOf("year")).isoWeekday(),n.isoWeekday()>4&&(r+=7),n.add(r,"day"));return a.diff(o,"week")+1},n.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var r=n.startOf;n.startOf=function(t,e){var i=this.$utils(),s=!!i.u(e)||e;return"isoweek"===i.p(t)?s?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):r.bind(this)(t,e)}}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/443.c8f79794b9249b4f.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/443.c8f79794b9249b4f.js deleted file mode 100644 index b5c9c7eef..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/443.c8f79794b9249b4f.js +++ /dev/null @@ -1,74 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[443],{586:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(12783),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof module&&module&&!module.nodeType&&module,o=a&&a.exports===i&&n.A.process;let s=function(){try{var t=a&&a.require&&a.require("util").types;if(t)return t;return o&&o.binding&&o.binding("util")}catch(t){}}()},1320:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});let n=function(t,e){for(var r=-1,n=Array(t);++r{"use strict";r.d(e,{A:()=>i});var n=Object.prototype;let i=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},3449:(t,e,r)=>{"use strict";r.d(e,{A:()=>v});var n=r(84746),i=r(73986),a=(0,n.A)(i.A,"DataView"),o=r(83812),s=(0,n.A)(i.A,"Promise"),l=r(60106),c=(0,n.A)(i.A,"WeakMap"),u=r(10270),h=r(25046),f="[object Map]",d="[object Promise]",p="[object Set]",g="[object WeakMap]",m="[object DataView]",y=(0,h.A)(a),b=(0,h.A)(o.A),x=(0,h.A)(s),_=(0,h.A)(l.A),w=(0,h.A)(c),k=u.A;(a&&k(new a(new ArrayBuffer(1)))!=m||o.A&&k(new o.A)!=f||s&&k(s.resolve())!=d||l.A&&k(new l.A)!=p||c&&k(new c)!=g)&&(k=function(t){var e=(0,u.A)(t),r="[object Object]"==e?t.constructor:void 0,n=r?(0,h.A)(r):"";if(n)switch(n){case y:return m;case b:return f;case x:return d;case _:return p;case w:return g}return e});let v=k},3675:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(32450),i=r(83812),a=r(60486);function o(t){var e=this.__data__=new n.A(t);this.size=e.size}o.prototype.clear=function(){this.__data__=new n.A,this.size=0},o.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},o.prototype.get=function(t){return this.__data__.get(t)},o.prototype.has=function(t){return this.__data__.has(t)},o.prototype.set=function(t,e){var r=this.__data__;if(r instanceof n.A){var o=r.__data__;if(!i.A||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new a.A(o)}return r.set(t,e),this.size=r.size,this};let s=o},4286:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=/^(?:0|[1-9]\d*)$/;let i=function(t,e){var r=typeof t;return!!(e=null==e?0x1fffffffffffff:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t{"use strict";r.d(e,{A:()=>h});var n=r(70754),i=r(9769),a=r(60486);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=t.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(o.Cache||a.A),r}o.Cache=a.A;var s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,c=function(t){var e=o(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(s,function(t,r,n,i){e.push(n?i.replace(l,"$1"):r||t)}),e}),u=r(53814);let h=function(t,e){return(0,n.A)(t)?t:(0,i.A)(t,e)?[t]:c((0,u.A)(t))}},5663:(t,e,r)=>{"use strict";r.d(e,{Fr:()=>h,GX:()=>u,KX:()=>c,WW:()=>s,ue:()=>a});var n=r(69301),i=r(91158),a=(0,i.K)(t=>{let{handDrawnSeed:e}=(0,n.D7)();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),o=(0,i.K)(t=>Array.isArray(t)?t:t?t.split(";").map(t=>t.trim()).filter(Boolean):[],"normalizeStyleList"),s=(0,i.K)(t=>{let e=l([...t.cssCompiledStyles||[],...t.cssStyles||[],...o(t.labelStyle)]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),l=(0,i.K)(t=>{let e=new Map;return t.forEach(t=>{let[r,n]=t.split(":");e.set(r.trim(),n?.trim())}),e},"styles2Map"),c=(0,i.K)(t=>"color"===t||"font-size"===t||"font-family"===t||"font-weight"===t||"font-style"===t||"text-decoration"===t||"text-align"===t||"text-transform"===t||"line-height"===t||"letter-spacing"===t||"word-spacing"===t||"text-shadow"===t||"text-overflow"===t||"white-space"===t||"word-wrap"===t||"word-break"===t||"overflow-wrap"===t||"hyphens"===t,"isLabelStyle"),u=(0,i.K)(t=>{let{stylesArray:e}=s(t),r=[],n=[],i=[],a=[];return e.forEach(t=>{let e=t[0];c(e)?r.push(t.join(":")+" !important"):(n.push(t.join(":")+" !important"),e.includes("stroke")&&i.push(t.join(":")+" !important"),"fill"===e&&a.push(t.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:e,borderStyles:i,backgroundStyles:a}},"styles2String"),h=(0,i.K)((t,e)=>{let{themeVariables:r,handDrawnSeed:i}=(0,n.D7)(),{nodeBorder:a,mainBkg:o}=r,{stylesMap:l}=s(t);return Object.assign({roughness:.7,fill:l.get("fill")||o,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||a,seed:i,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:f(l.get("stroke-dasharray"))},e)},"userNodeOverrides"),f=(0,i.K)(t=>{if(!t)return[0,0];let e=t.trim().split(/\s+/).map(Number);if(1===e.length){let t=isNaN(e[0])?0:e[0];return[t,t]}return[isNaN(e[0])?0:e[0],isNaN(e[1])?0:e[1]]},"getStrokeDashArray")},6787:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});let n=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)};var i=Math.max;let a=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var a=arguments,o=-1,s=i(a.length-e,0),l=Array(s);++o{"use strict";r.d(e,{A:()=>a});var n=r(25866),i=r(70897);let a=(t,e,r)=>{let a=i.A.parse(t),o=a[e],s=n.A.channel.clamp[e](o+r);return o!==s&&(a[e]=s),i.A.stringify(a)}},9769:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(70754),i=r(88997),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;let s=function(t,e){if((0,n.A)(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||(0,i.A)(t))||o.test(t)||!a.test(t)||null!=e&&t in Object(e)}},10160:(t,e,r)=>{var n;!function(){var e={initialize:function(){this._tasks=new Map},mutate:function(t,e){return i(this,"mutate",t,e)},measure:function(t,e){return i(this,"measure",t,e)},clear:function(t){var e=this._tasks,r=e.get(t);this.fastdom.clear(r),e.delete(t)}};function i(t,e,r,n){var i,a=t._tasks,o=t.fastdom,s=new Promise(function(t,l){i=o[e](function(){a.delete(s);try{t(n?r.call(n):r())}catch(t){l(t)}},n)});return a.set(s,i),s}void 0===(n=(function(){return e}).call(e,r,e,t))||(t.exports=n)}()},10270:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var n=r(68550),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=n.A?n.A.toStringTag:void 0;let l=function(t){var e=a.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var i=o.call(t);return n&&(e?t[s]=r:delete t[s]),i};var c=Object.prototype.toString,u=n.A?n.A.toStringTag:void 0;let h=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?l(t):c.call(t)}},11232:(t,e,r)=>{"use strict";r.d(e,{IU:()=>S,Jo:()=>F,T_:()=>L,UQ:()=>M,a6:()=>T,g0:()=>tf,hq:()=>p,jP:()=>$,lP:()=>A});var n=r(13031),i=r(69981),a=r(5663),o=r(82142),s=r(13892),l=r(69301),c=r(98999),u=r(91158),h=r(70668),f=r(99788),d=(0,u.K)((t,e)=>{if(e)return"translate("+-t.width/2+", "+-t.height/2+")";let r=t.x??0,n=t.y??0;return"translate("+-(r+t.width/2)+", "+-(n+t.height/2)+")"},"computeLabelTransform"),p={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},g={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function m(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=y(t),e=y(e);let[r,n]=[t.x,t.y],[i,a]=[e.x,e.y],o=i-r,s=a-n;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}(0,u.K)(m,"calculateDeltaAndAngle");var y=(0,u.K)(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),b=(0,u.K)(t=>({x:(0,u.K)(function(e,r,n){let i=0,a=y(n[0]).x=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(p,t.arrowTypeEnd)){let{angle:e,deltaX:r}=m(n[n.length-1],n[n.length-2]);i=p[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let o=Math.abs(y(e).x-y(n[n.length-1]).x),s=Math.abs(y(e).y-y(n[n.length-1]).y),l=Math.abs(y(e).x-y(n[0]).x),c=Math.abs(y(e).y-y(n[0]).y),u=p[t.arrowTypeStart],h=p[t.arrowTypeEnd];if(o0&&s0&&c=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(p,t.arrowTypeEnd)){let{angle:e,deltaY:r}=m(n[n.length-1],n[n.length-2]);i=p[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let o=Math.abs(y(e).y-y(n[n.length-1]).y),s=Math.abs(y(e).x-y(n[n.length-1]).x),l=Math.abs(y(e).y-y(n[0]).y),c=Math.abs(y(e).x-y(n[0]).x),u=p[t.arrowTypeStart],h=p[t.arrowTypeEnd];if(o0&&s0&&c{e.arrowTypeStart&&k(t,"start",e.arrowTypeStart,r,n,i,a,o),e.arrowTypeEnd&&k(t,"end",e.arrowTypeEnd,r,n,i,a,o)},"addEdgeMarkers"),_={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},w=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],k=(0,u.K)((t,e,r,n,i,a,o=!1,s)=>{if(!r||"none"===r)return;let l=_[r],u=l&&w.includes(l.type);if(!l)return void c.R.warn(`Unknown arrow type: ${r}`);let h=l.type,f=`${i}_${a}-${h}${"start"===e?"Start":"End"}${o&&u?"-margin":""}`;if(s&&""!==s.trim()){let r=s.replace(/[^\dA-Za-z]/g,"_"),i=`${f}_${r}`;if(!document.getElementById(i)){let t=document.getElementById(f);if(t){let e=t.cloneNode(!0);e.id=i,e.querySelectorAll("path, circle, line").forEach(t=>{t.setAttribute("stroke",s),l.fill&&t.setAttribute("fill",s)}),t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${n}#${i})`)}else t.attr(`marker-${e}`,`url(${n}#${f})`)},"addEdgeMarker"),v=(0,u.K)(t=>"string"==typeof t?t:(0,l.D7)()?.flowchart?.curve,"resolveEdgeCurveType"),A=new Map,M=new Map,S=(0,u.K)(()=>{A.clear(),M.clear()},"clear"),T=(0,u.K)(t=>!!(t.label||t.startLabelLeft||t.startLabelRight||t.endLabelLeft||t.endLabelRight),"hasEdgeLabel"),C=(0,u.K)(t=>t?"string"==typeof t?t:t.reduce((t,e)=>t+";"+e,""):"","getLabelStyles"),$=(0,u.K)(async(t,e)=>{let r,n,s,u=(0,l.D7)(),f=(0,l.E)(u),{labelStyles:p}=(0,a.GX)(e);e.labelStyle=p;let g=t.insert("g").attr("class","edgeLabel"),m=g.insert("g").attr("class","label").attr("data-id",e.id),y="markdown"===e.labelType,b=await (0,o.GZ)(t,e.label,{style:C(e.labelStyle),useHtmlLabels:f,addSvgBackground:!0,isNode:!1,markdown:y,width:void 0},u);if(m.node().appendChild(b),c.R.info("abc82",e,e.labelType),f){let t=b.children[0],e=(0,h.Ltv)(b);n=r=await o.lT.measure(()=>t.getBoundingClientRect()),e.attr("width",r.width),e.attr("height",r.height)}else{let t=(0,h.Ltv)(b).select("text").node();await o.lT.measure(()=>{r=b.getBBox(),n=t&&"function"==typeof t.getBBox?t.getBBox():r})}if(m.attr("transform",d(n,f)),A.set(e.id,g),e.width=r.width,e.height=r.height,e.startLabelLeft){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),a=await (0,i.DA)(n,e.startLabelLeft,C(e.labelStyle)||"",!1,!1);s=a;let o=a.getBBox();if(f){let t=a.children[0],e=(0,h.Ltv)(a);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",d(o,f)),M.get(e.id)||M.set(e.id,{}),M.get(e.id).startLeft=r,O(s,e.startLabelLeft)}if(e.startLabelRight){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),a=await (0,i.DA)(n,e.startLabelRight,C(e.labelStyle)||"",!1,!1);s=a;let o=a.getBBox();if(f){let t=a.children[0],e=(0,h.Ltv)(a);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",d(o,f)),M.get(e.id)||M.set(e.id,{}),M.get(e.id).startRight=r,O(s,e.startLabelRight)}if(e.endLabelLeft){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),a=await (0,i.DA)(r,e.endLabelLeft,C(e.labelStyle)||"",!1,!1);s=a;let o=a.getBBox();if(f){let t=a.children[0],e=(0,h.Ltv)(a);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",d(o,f)),M.get(e.id)||M.set(e.id,{}),M.get(e.id).endLeft=r,O(s,e.endLabelLeft)}if(e.endLabelRight){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),a=await (0,i.DA)(r,e.endLabelRight,C(e.labelStyle)||"",!1,!1);s=a;let o=a.getBBox();if(f){let t=a.children[0],e=(0,h.Ltv)(a);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",d(o,f)),M.get(e.id)||M.set(e.id,{}),M.get(e.id).endRight=r,O(s,e.endLabelRight)}return b},"insertEdgeLabel");function O(t,e){(0,l.E)((0,l.D7)())&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,u.K)(O,"setTerminalWidth");var L=(0,u.K)((t,e)=>{c.R.debug("Moving label abc88 ",t.id,t.label,A.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath,i=(0,l.D7)(),{subGraphTitleTotalMargin:a}=(0,n.Oi)(i);if(t.label){let n=A.get(t.id),i=t.x,o=t.y;if(r){let n=s._K.calcLabelPosition(r);c.R.debug("Moving label "+t.label+" from (",i,",",o,") to (",n.x,",",n.y,") abc88"),e.updatedPath&&(i=n.x,o=n.y)}n.attr("transform",`translate(${i}, ${o+a/2})`)}if(t.startLabelLeft){let e=M.get(t.id).startLeft,n=t.x,i=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_left",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.startLabelRight){let e=M.get(t.id).startRight,n=t.x,i=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_right",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.endLabelLeft){let e=M.get(t.id).endLeft,n=t.x,i=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_left",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.endLabelRight){let e=M.get(t.id).endRight,n=t.x,i=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_right",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}},"positionEdgeLabel"),E=(0,u.K)((t,e)=>{if(!t?.isLabelEdge||!t?.id?.endsWith("-to-label")||!Array.isArray(e)||2!==e.length)return e;let[r,n]=e,i=Math.abs(n.x-r.x),a=Math.abs(n.y-r.y);return i<.001||a<.001?e:a>=i?[r,{x:r.x,y:n.y},n]:[r,{x:n.x,y:r.y},n]},"orthogonalizeToLabelClippedPoints"),R=(0,u.K)((t,e)=>{let r=t.x,n=t.y,i=Math.abs(e.x-r),a=Math.abs(e.y-n),o=t.width/2,s=t.height/2;return i>=o||a>=s},"outsideNode"),K=(0,u.K)((t,e,r)=>{c.R.debug(`intersection calc abc89: - outsidePoint: ${JSON.stringify(e)} - insidePoint : ${JSON.stringify(r)} - node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let n=t.x,i=t.y,a=Math.abs(n-r.x),o=t.width/2,s=r.xMath.abs(n-e.x)*l){let t=r.y{c.R.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(t=>{if(c.R.info("abc88 checking point",t,e),R(e,t)||i)c.R.warn("abc88 outside",t,n),n=t,i||r.push(t);else{let a=K(e,n,t);c.R.debug("abc88 inside",t,n,a),c.R.debug("abc88 intersection",a,e);let o=!1;r.forEach(t=>{o=o||t.x===a.x&&t.y===a.y}),r.some(t=>t.x===a.x&&t.y===a.y)?c.R.warn("abc88 no intersect",a,r):r.push(a),i=!0}}),c.R.debug("returning points",r),r},"cutPathAtIntersect");function D(t){let e=[],r=[];for(let n=1;n5&&Math.abs(a.y-i.y)>5?(e.push(a),r.push(n)):i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5&&(e.push(a),r.push(n))}return{cornerPoints:e,cornerPointPositions:r}}(0,u.K)(D,"extractCornerPoints");var N=(0,u.K)(function(t,e,r){let n=e.x-t.x,i=e.y-t.y,a=r/Math.sqrt(n*n+i*i);return{x:e.x-a*n,y:e.y-a*i}},"findAdjacentPoint"),P=(0,u.K)(function(t){let{cornerPointPositions:e}=D(t),r=[];for(let n=0;n10&&Math.abs(i.y-e.y)>=10?(c.R.debug("Corner point fixing",Math.abs(i.x-e.x),Math.abs(i.y-e.y)),f=a.x===o.x?{x:l<0?o.x-5+h:o.x+5-h,y:u<0?o.y-h:o.y+h}:{x:l<0?o.x-h:o.x+h,y:u<0?o.y-5+h:o.y+5-h}):c.R.debug("Corner point skipping fixing",Math.abs(i.x-e.x),Math.abs(i.y-e.y)),r.push(f,s)}else r.push(t[n]);return r},"fixCorners"),I=(0,u.K)((t,e,r)=>{let n=Math.floor((t-e-r)/4),i=Array(Number.isFinite(n)?Math.max(0,n):0).fill("2 2").join(" ");return`0 ${e} ${i} ${r}`},"generateDashArray"),F=(0,u.K)(function(t,e,r,n,i,o,u,d=!1){let p,m;if(!u)throw Error(`insertEdge: missing diagramId for edge "${e.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:y,layout:_}=(0,l.D7)(),w=e.points,k=!1,A=[];for(let t in e.cssCompiledStyles)(0,a.KX)(t)||A.push(e.cssCompiledStyles[t]);if("swimlane"===_){if(o.intersect&&i.intersect&&Array.isArray(w)&&w.length>=2)if(2===w.length)w=[i.intersect(w[0]),o.intersect(w[1])];else{let t=w.slice(1,-1),e=t[0],r=t[t.length-1],n=.5>Math.abs(w[w.length-1].x-r.x)&&.5>Math.abs(w[w.length-1].y-r.y),a=i.intersect(e),s=n?r:o.intersect(r),l=.5>Math.abs(s.x-r.x)&&.5>Math.abs(s.y-r.y);w=[....5>Math.abs(a.x-e.x)&&.5>Math.abs(a.y-e.y)?[]:[a],...t,...l?[]:[s]]}w=E(e,w)}else o.intersect&&i.intersect&&!d&&((w=w.slice(1,e.points.length-1)).unshift(i.intersect(w[0])),w.push(o.intersect(w[w.length-1])));let M=btoa(JSON.stringify(w));e.toCluster&&(c.R.info("to cluster abc88",r.get(e.toCluster)),w=j(e.points,r.get(e.toCluster).node),k=!0),e.fromCluster&&(c.R.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(w,null,2)),w=j(w.reverse(),r.get(e.fromCluster).node).reverse(),k=!0);let S=w.filter(t=>!Number.isNaN(t.y)),T=v(e.curve);"rounded"!==T&&(S=P(S));let C=h.lUB;switch(T){case"linear":case"rounded":C=h.lUB;break;case"basis":default:C=h.qrM;break;case"cardinal":C=h.y8u;break;case"bumpX":C=h.Wi0;break;case"bumpY":C=h.PGM;break;case"catmullRom":C=h.oDi;break;case"monotoneX":C=h.nVG;break;case"monotoneY":C=h.uxU;break;case"natural":C=h.Xf2;break;case"step":C=h.GZz;break;case"stepAfter":C=h.UPb;break;case"stepBefore":C=h.dyv}let{x:$,y:O}=b(e),L=(0,h.n8j)().x($).y(O).curve(C);switch(e.thickness){case"normal":default:p="edge-thickness-normal";break;case"thick":p="edge-thickness-thick";break;case"invisible":p="edge-thickness-invisible"}switch(e.pattern){case"solid":default:p+=" edge-pattern-solid";break;case"dotted":p+=" edge-pattern-dotted";break;case"dashed":p+=" edge-pattern-dashed"}let R="rounded"===T?U(B(S,e),5):L(S),K=Array.isArray(e.style)?e.style:[e.style],D=K.find(t=>t?.startsWith("stroke:")),N="";e.animate&&(N="edge-animation-fast"),e.animation&&(N="edge-animation-"+e.animation);let F=!1;if("handDrawn"===e.look){let r=f.A.svg(t);Object.assign([],S);let n=r.path(R,{roughness:.3,seed:y});p+=" transition";let i=(m=(0,h.Ltv)(n).select("path").attr("id",`${u}-${e.id}`).attr("class"," "+p+(e.classes?" "+e.classes:"")+(N?" "+N:"")).attr("style",K?K.reduce((t,e)=>t+";"+e,""):"")).attr("d");m.attr("d",i),t.node().appendChild(m.node())}else{let r=A.join(";"),n=K?K.reduce((t,e)=>t+e+";",""):"",i=(r?r+";"+n+";":n)+";"+(K?K.reduce((t,e)=>t+";"+e,""):"");m=t.append("path").attr("d",R).attr("id",`${u}-${e.id}`).attr("class"," "+p+(e.classes?" "+e.classes:"")+(N?" "+N:"")).attr("style",i),D=i.match(/stroke:([^;]+)/)?.[1],F=!0===e.animate||!!e.animation||r.includes("animation");let a=m.node(),o="function"==typeof a.getTotalLength?a.getTotalLength():0,s=g[e.arrowTypeStart]||0,l=g[e.arrowTypeEnd]||0;if("neo"===e.look&&!F){let t="dotted"===e.pattern||"dashed"===e.pattern?I(o,s,l):`0 ${s} ${o-s-l} ${l}`,r=`stroke-dasharray: ${t}; stroke-dashoffset: 0;`;m.attr("style",r+m.attr("style"))}}m.attr("data-edge",!0),m.attr("data-et","edge"),m.attr("data-id",e.id),m.attr("data-points",M),m.attr("data-look",(0,s.KL)(e.look)),e.showPoints&&S.forEach(e=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",e.x).attr("cy",e.y)});let z="";((0,l.D7)().flowchart.arrowMarkerAbsolute||(0,l.D7)().state.arrowMarkerAbsolute)&&(z=(z=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),c.R.info("arrowTypeStart",e.arrowTypeStart),c.R.info("arrowTypeEnd",e.arrowTypeEnd);let Y=!F&&e?.look==="neo";x(m,e,z,u,n,Y,D);let H=Math.floor(w.length/2),q=w[H];s._K.isLabelCoordinateInPath(q,m.attr("d"))||(k=!0);let W={};return k&&(W.updatedPath=w),W.originalPath=e.points,W},"insertEdge");function U(t,e){if(t.length<2)return"";let r="",n=t.length;for(let i=0;iMath.abs(Math.PI-g)){r+=`L${a.x},${a.y}`;continue}let m=Math.min(e/Math.sin(g/2),c/2,u/2),y=a.x-h*m,b=a.y-f*m,x=a.x+d*m,_=a.y+p*m;r+=`L${y},${b}Q${a.x},${a.y} ${x},${_}`}}return r}function z(t,e){if(!t||!e)return{angle:0,deltaX:0,deltaY:0};let r=e.x-t.x,n=e.y-t.y;return{angle:Math.atan2(n,r),deltaX:r,deltaY:n}}function B(t,e){let r=t.map(t=>({...t}));if(t.length>=2&&p[e.arrowTypeStart]){let n=p[e.arrowTypeStart],i=t[0],{angle:a}=z(i,t[1]),o=n*Math.cos(a),s=n*Math.sin(a);r[0].x=i.x+o,r[0].y=i.y+s}let n=t.length;if(n>=2&&p[e.arrowTypeEnd]){let i=p[e.arrowTypeEnd],a=t[n-1],{angle:o}=z(t[n-2],a),s=i*Math.cos(o),l=i*Math.sin(o);r[n-1].x=a.x-s,r[n-1].y=a.y-l}return r}(0,u.K)(U,"generateRoundedPath"),(0,u.K)(z,"calculateDeltaAndAngle"),(0,u.K)(B,"applyMarkerOffsetsToPoints");var Y=(0,u.K)((t,e,r,n)=>{e.forEach(e=>{th[e](t,r,n)})},"insertMarkers"),H=(0,u.K)((t,e,r)=>{c.R.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),t.append("marker").attr("id",r+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),q=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),W=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),X=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),G=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),Z=(0,u.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart-margin").attr("class","marker "+e).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),V=(0,u.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleEnd-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart-margin").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),Q=(0,u.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),t.append("marker").attr("id",r+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),J=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),tt=(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{transitionColor:i}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${i}`)},"barbNeo"),te=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),tr=(0,u.K)((t,e,r)=>{let n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18");let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),tn=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),ti=(0,u.K)((t,e,r)=>{let n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),ta=(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:i}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${i}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${i}`)},"only_one_neo"),to=(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:i,mainBkg:a}=n,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");o.append("circle").attr("fill",a??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${i}`).attr("r",6),o.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${i}`);let s=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");s.append("circle").attr("fill",a??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${i}`).attr("r",6),s.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${i}`)},"zero_or_one_neo"),ts=(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:i}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${i}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${i}`)},"one_or_more_neo"),tl=(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:i,mainBkg:a}=n,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");o.append("circle").attr("fill",a??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${i}`),o.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${i}`);let s=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");s.append("circle").attr("fill",a??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${i}`),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${i}`)},"zero_or_more_neo"),tc=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0 - L20,10 - M20,10 - L0,20`)},"requirement_arrow"),tu=(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:i}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${i}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0 - L20,10 - M20,10 - L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),th={extension:H,composition:q,aggregation:W,dependency:X,lollipop:G,point:Z,circle:V,cross:Q,barb:J,barbNeo:tt,only_one:te,zero_or_one:tr,one_or_more:tn,zero_or_more:ti,only_one_neo:ta,zero_or_one_neo:to,one_or_more_neo:ts,zero_or_more_neo:tl,requirement_arrow:tc,requirement_contains:(0,u.K)((t,e,r)=>{let n=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),requirement_arrow_neo:tu,requirement_contains_neo:(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:i}=n,a=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),a.selectAll("*").attr("stroke-width",`${i}`)},"requirement_contains_neo")},tf=Y},12783:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n="object"==typeof global&&global&&global.Object===Object&&global},13031:(t,e,r)=>{"use strict";r.d(e,{IU:()=>h,Oi:()=>s,U7:()=>u,U_:()=>f,on:()=>c});var n=r(69981),i=r(13892),a=r(98999),o=r(91158),s=(0,o.K)(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:e+r}},"getSubGraphTitleMargins"),l=new Map;async function c(t,e,r){let a,o;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let s=e.shape?n.nq[e.shape]:void 0;if(!s)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let n;"sandbox"===r.config.securityLevel?n="_top":e.linkTarget&&(n=e.linkTarget||"_blank"),a=t.insert("svg:a").attr("xlink:href",e.link).attr("target",n??null),o=await s(a,e,r)}else a=o=await s(t,e,r);return a.attr("data-look",(0,i.KL)(e.look)),e.tooltip&&o.attr("title",e.tooltip),l.set(e.id,a),e.haveCallback&&a.attr("class",a.attr("class")+" clickable"),a}(0,o.K)(c,"insertNode");var u=(0,o.K)((t,e)=>{l.set(e.id,t)},"setNodeElem"),h=(0,o.K)(()=>{l.clear()},"clear"),f=(0,o.K)(t=>{let e=l.get(t.id);a.R.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},"positionNode")},13892:(t,e,r)=>{"use strict";r.d(e,{pe:()=>M,PX:()=>J,ru:()=>V,Un:()=>Q,$t:()=>ta,Sm:()=>tl,C4:()=>ts,$C:()=>Y,rY:()=>tc,sM:()=>z,KL:()=>tu,Ib:()=>E,dq:()=>tr,I5:()=>ti,yT:()=>q,vU:()=>O,_K:()=>to,bH:()=>G});var n,i=r(69301),a=r(98999),o=r(91158),s=r(76162),l=r(70668);function c(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");let r=function(...n){let i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);let o=t.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(c.Cache||Map),r}function u(){}c.Cache=Map;var h=r(38789),f=r(84487);function d(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}var p=r(37253);function g(t){if("object"!=typeof t||null==t)return!1;if(null===Object.getPrototypeOf(t))return!0;if("[object Object]"!==Object.prototype.toString.call(t)){let e=t[Symbol.toStringTag];return null!=e&&!!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable&&t.toString()===`[object ${e}]`}let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}var m=r(94250),y=r(41977);function b(t,e,r,n=new Map,i){let a=i?.(t,e,r,n);if(void 0!==a)return a;if((0,h.s)(t))return t;if(n.has(t))return n.get(t);if(Array.isArray(t)){let e=Array(t.length);n.set(t,e);for(let a=0;a{let a=void 0;if(void 0!==a)return a;if("object"==typeof t){if("[object Object]"===(0,m.b)(t)&&"function"!=typeof t.constructor){let e={};return i.set(t,e),x(e,t,n,i),e}switch(Object.prototype.toString.call(t)){case y.kj:case y.OG:case y.$V:{let e=new t.constructor(t?.valueOf());return x(e,t),e}case y.R_:{let e={};return x(e,t),e.length=t.length,e[Symbol.iterator]=t[Symbol.iterator],e}default:return}}},b(t,void 0,t,new Map,e)}var w=r(44159);function k(t){return"object"==typeof t&&null!==t}var v=r(83859),A=r(84368),M="​",S={curveBasis:l.qrM,curveBasisClosed:l.Yu4,curveBasisOpen:l.IA3,curveBumpX:l.Wi0,curveBumpY:l.PGM,curveBundle:l.OEq,curveCardinalClosed:l.olC,curveCardinalOpen:l.IrU,curveCardinal:l.y8u,curveCatmullRomClosed:l.Q7f,curveCatmullRomOpen:l.cVp,curveCatmullRom:l.oDi,curveLinear:l.lUB,curveLinearClosed:l.Lx9,curveMonotoneX:l.nVG,curveMonotoneY:l.uxU,curveNatural:l.Xf2,curveStep:l.GZz,curveStepAfter:l.UPb,curveStepBefore:l.dyv},T=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,C=(0,o.K)(function(t,e){let r=$(t,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(r)){let t=r.map(t=>t.args);(0,i.$i)(t),n=(0,i.hH)(n,[...t])}else n=r.args;if(!n)return;let a=(0,i.Ch)(t,e),o="config";return void 0!==n[o]&&("flowchart-v2"===a&&(a="flowchart"),n[a]=n[o],delete n[o]),n},"detectInit"),$=(0,o.K)(function(t,e=null){try{let r,n=RegExp(`[%]{2}(?![{]${T.source})(?=[}][%]{2}).* -`,"ig");t=t.trim().replace(n,"").replace(/'/gm,'"'),a.R.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);let o=[];for(;null!==(r=i.DB.exec(t));)if(r.index===i.DB.lastIndex&&i.DB.lastIndex++,r&&!e||e&&r[1]?.match(e)||e&&r[2]?.match(e)){let t=r[1]?r[1]:r[2],e=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;o.push({type:t,args:e})}if(0===o.length)return{type:t,args:null};return 1===o.length?o[0]:o}catch(r){return a.R.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),O=(0,o.K)(function(t){return t.replace(i.DB,"")},"removeDirectives"),L=(0,o.K)(function(t,e){for(let[r,n]of e.entries())if(n.match(t))return r;return -1},"isSubstringInArray");function E(t,e){return t?S[`curve${t.charAt(0).toUpperCase()+t.slice(1)}`]??e:e}function R(t,e){let r=t.trim();if(r)return"loose"!==e.securityLevel?(0,s.J)(r):r}(0,o.K)(E,"interpolateToCurve"),(0,o.K)(R,"formatUrl");var K=(0,o.K)((t,...e)=>{let r=t.split("."),n=r.length-1,i=r[n],o=window;for(let e=0;e{r+=j(t,e),e=t}),I(t,r/2)}function N(t){return 1===t.length?t[0]:D(t)}(0,o.K)(j,"distance"),(0,o.K)(D,"traverseEdge"),(0,o.K)(N,"calcLabelPosition");var P=(0,o.K)((t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),I=(0,o.K)((t,e)=>{let r,n=e;for(let e of t){if(r){let t=j(e,r);if(0===t)return r;if(t=1)return{x:e.x,y:e.y};if(i>0&&i<1)return{x:P((1-i)*r.x+i*e.x,5),y:P((1-i)*r.y+i*e.y,5)}}}r=e}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),F=(0,o.K)((t,e,r)=>{a.R.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let n=I(e,25),i=t?10:5,o=Math.atan2(e[0].y-n.y,e[0].x-n.x),s={x:0,y:0};return s.x=Math.sin(o)*i+(e[0].x+n.x)/2,s.y=-Math.cos(o)*i+(e[0].y+n.y)/2,s},"calcCardinalityPosition");function U(t,e,r){let n=structuredClone(r);a.R.info("our points",n),"start_left"!==e&&"start_right"!==e&&n.reverse();let i=I(n,25+t),o=10+.5*t,s=Math.atan2(n[0].y-i.y,n[0].x-i.x),l={x:0,y:0};return"start_left"===e?(l.x=Math.sin(s+Math.PI)*o+(n[0].x+i.x)/2,l.y=-Math.cos(s+Math.PI)*o+(n[0].y+i.y)/2):"end_right"===e?(l.x=Math.sin(s-Math.PI)*o+(n[0].x+i.x)/2-5,l.y=-Math.cos(s-Math.PI)*o+(n[0].y+i.y)/2-5):"end_left"===e?(l.x=Math.sin(s)*o+(n[0].x+i.x)/2-5,l.y=-Math.cos(s)*o+(n[0].y+i.y)/2-5):(l.x=Math.sin(s)*o+(n[0].x+i.x)/2,l.y=-Math.cos(s)*o+(n[0].y+i.y)/2),l}function z(t){let e="",r="";for(let n of t)void 0!==n&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":e=e+n+";");return{style:e,labelStyle:r}}(0,o.K)(U,"calcTerminalLabelPosition"),(0,o.K)(z,"getStylesFromArray");var B=0,Y=(0,o.K)(()=>(B++,"id-"+Math.random().toString(36).substr(2,12)+"-"+B),"generateId");function H(t){let e="",r="0123456789abcdef",n=r.length;for(let i=0;iH(t.length),"random"),W=(0,o.K)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),X=(0,o.K)(function(t,e){let r=e.text.replace(i.Y2.lineBreakRegex," "),[,n]=ti(e.fontSize),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.style("text-anchor",e.anchor),a.style("font-family",e.fontFamily),a.style("font-size",n),a.style("font-weight",e.fontWeight),a.attr("fill",e.fill),void 0!==e.class&&a.attr("class",e.class);let o=a.append("tspan");return o.attr("x",e.x+2*e.textMargin),o.attr("fill",e.fill),o.text(r),a},"drawSimpleText"),G=c((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},r),i.Y2.lineBreakRegex.test(t)))return t;let n=t.split(" ").filter(Boolean),a=[],o="";return n.forEach((t,i)=>{let s=Q(`${t} `,r),l=Q(o,r);if(s>e){let{hyphenatedStrings:n,remainingWord:i}=Z(t,e,"-",r);a.push(o,...n),o=i}else l+s>=e?(a.push(o),o=t):o=[o,t].filter(Boolean).join(" ");i+1===n.length&&a.push(o)}),a.filter(t=>""!==t).join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),Z=c((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let i=[...t],a=[],o="";return i.forEach((t,s)=>{let l=`${o}${t}`;if(Q(l,n)>=e){let t=i.length===s+1,e=`${l}${r}`;a.push(t?l:e),o=""}else o=l}),{hyphenatedStrings:a,remainingWord:o}},(t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function V(t,e){return J(t,e).height}function Q(t,e){return J(t,e).width}(0,o.K)(V,"calculateTextHeight"),(0,o.K)(Q,"calculateTextWidth");var J=c((t,e)=>{let{fontSize:r=12,fontFamily:n="Arial",fontWeight:a=400}=e;if(!t)return{width:0,height:0};let[,o]=ti(r),s=t.split(i.Y2.lineBreakRegex),c=[],u=(0,l.Ltv)("body");if(!u.remove)return{width:0,height:0,lineHeight:0};let h=u.append("svg");for(let t of["sans-serif",n]){let e=0,r={width:0,height:0,lineHeight:0};for(let n of s){let i=W();i.text=n||M;let s=X(h,i).style("font-size",o).style("font-weight",a).style("font-family",t),l=(s._groups||s)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");r.width=Math.round(Math.max(r.width,l.width)),e=Math.round(l.height),r.height+=e,r.lineHeight=Math.round(Math.max(r.lineHeight,e))}c.push(r)}h.remove();let f=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),tt=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,o.K)(this,"InitIDGenerator")}},te=(0,o.K)(function(t){return n=n||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),n.innerHTML=t,unescape(n.textContent)},"entityDecode");function tr(t){return"str"in t}(0,o.K)(tr,"isDetailedError");var tn=(0,o.K)((t,e,r,n)=>{if(!n)return;let i=t.node()?.getBBox();i&&t.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",e)},"insertTitle"),ti=(0,o.K)(t=>{if("number"==typeof t)return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function ta(t,e){return function(t,...e){return function(t,...e){let r=e.slice(0,-1),n=e[e.length-1],i=t;for(let t=0;ta||`${n?`${n}_`:""}${t}_${e}_${r}${i?`_${i}`:""}`,"getEdgeId");function tu(t){return t??null}function th(t,e){let r=Math.round(t.x),n=Math.round(t.y),i=e.replace(/(\d+\.\d+)/g,t=>Math.round(parseFloat(t)).toString());return i.includes(r.toString())||i.includes(n.toString())}(0,o.K)(tu,"handleUndefinedAttr"),(0,o.K)(th,"isLabelCoordinateInPath")},14484:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(68315),i=r(70754);let a=function(t,e,r){var a=e(t);return(0,i.A)(t)?a:(0,n.A)(a,r(t))}},15608:(t,e,r)=>{"use strict";r.d(e,{A:()=>H});var n=r(3675),i=r(70898);let a=function(t,e){for(var r=-1,n=null==t?0:t.length;++ru))return!1;var f=l.get(t),d=l.get(e);if(f&&d)return f==e&&d==t;var p=-1,g=!0,m=2&r?new i.A:void 0;for(l.set(t,e),l.set(e,t);++p{"use strict";r.d(e,{A:()=>o});var n=r(3308),i=(0,r(33768).A)(Object.keys,Object),a=Object.prototype.hasOwnProperty;let o=function(t){if(!(0,n.A)(t))return i(t);var e=[];for(var r in Object(t))a.call(t,r)&&"constructor"!=r&&e.push(r);return e}},16959:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(10270),i=r(62365);let a=function(t){return(0,i.A)(t)&&"[object Arguments]"==(0,n.A)(t)};var o=Object.prototype,s=o.hasOwnProperty,l=o.propertyIsEnumerable;let c=a(function(){return arguments}())?a:function(t){return(0,i.A)(t)&&s.call(t,"callee")&&!l.call(t,"callee")}},17624:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(25866),i=r(49498);class a{constructor(){this.type=i.Z.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=i.Z.ALL}is(t){return this.type===t}}class o{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new a}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=i.Z.ALL,this}_ensureHSL(){let t=this.data,{h:e,s:r,l:i}=t;void 0===e&&(t.h=n.A.channel.rgb2hsl(t,"h")),void 0===r&&(t.s=n.A.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=n.A.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r:e,g:r,b:i}=t;void 0===e&&(t.r=n.A.channel.hsl2rgb(t,"r")),void 0===r&&(t.g=n.A.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=n.A.channel.hsl2rgb(t,"b"))}get r(){let t=this.data,e=t.r;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"r")):e}get g(){let t=this.data,e=t.g;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"g")):e}get b(){let t=this.data,e=t.b;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"b")):e}get h(){let t=this.data,e=t.h;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"h")):e}get s(){let t=this.data,e=t.s;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"s")):e}get l(){let t=this.data,e=t.l;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}let s=new o({r:0,g:0,b:0,a:0},"transparent")},21463:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"},22249:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(24770),i=r(82888),a=r(45705),o=r(70754);let s=function(t,e){return((0,o.A)(t)?n.A:i.A)(t,(0,a.A)(e))}},24770:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t,e){for(var r=-1,n=null==t?0:t.length;++r{"use strict";r.d(e,{A:()=>i});var n=Function.prototype.toString;let i=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},25626:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t){return function(e){return null==e?void 0:e[t]}}},25634:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(95416),i=r(83657);let a=function(t,e){return t&&(0,n.A)(t,e,i.A)}},25866:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});let n={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t,hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return 2.55*r;t/=360,e/=100;let a=(r/=100)<.5?r*(1+e):r+e-r*e,o=2*r-a;switch(i){case"r":return 255*n.hue2rgb(o,a,t+1/3);case"g":return 255*n.hue2rgb(o,a,t);case"b":return 255*n.hue2rgb(o,a,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},n)=>{let i=Math.max(t/=255,e/=255,r/=255),a=Math.min(t,e,r),o=(i+a)/2;if("l"===n)return 100*o;if(i===a)return 0;let s=i-a;if("s"===n)return 100*(o>.5?s/(2-i-a):s/(i+a));switch(i){case t:return((e-r)/s+6*(ee>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},29278:(t,e,r)=>{"use strict";r.d(e,{WY:()=>M,dn:()=>A,pC:()=>k,Gc:()=>x});var n=r(69301),i=r(98999),a=r(91158);let o=(t,e)=>!!t&&!!((e&&""===t.prefix||t.prefix)&&t.name),s=Object.freeze({left:0,top:0,width:16,height:16}),l=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),c=Object.freeze({...s,...l}),u=Object.freeze({...c,body:"",hidden:!1});function h(t,e){let r=function(t,e){let r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);let n=((t.rotate||0)+(e.rotate||0))%4;return n&&(r.rotate=n),r}(t,e);for(let n in u)n in l?n in t&&!(n in r)&&(r[n]=l[n]):n in e?r[n]=e[n]:n in t&&(r[n]=t[n]);return r}function f(t,e,r){let n=t.icons,i=t.aliases||Object.create(null),a={};function o(t){a=h(n[t]||i[t],a)}return o(e),r.forEach(o),h(t,a)}let d=Object.freeze({...Object.freeze({width:null,height:null}),...l}),p=/(-?[0-9.]*[0-9]+[0-9.]*)/g,g=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function m(t,e,r){if(1===e)return t;if(r=r||100,"number"==typeof t)return Math.ceil(t*e*r)/r;if("string"!=typeof t)return t;let n=t.split(p);if(null===n||!n.length)return t;let i=[],a=n.shift(),o=g.test(a);for(;;){if(o){let t=parseFloat(a);isNaN(t)?i.push(a):i.push(Math.ceil(t*e*r)/r)}else i.push(a);if(void 0===(a=n.shift()))return i.join("");o=!o}}let y=/\sid="(\S+)"/g,b=new Map;var x={body:'?',height:80,width:80},_=new Map,w=new Map,k=(0,a.K)(t=>{for(let e of t){if(!e.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(i.R.debug("Registering icon pack:",e.name),"loader"in e)w.set(e.name,e.loader);else if("icons"in e)_.set(e.name,e.icons);else throw i.R.error("Invalid icon loader:",e),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),v=(0,a.K)(async(t,e)=>{let r=((t,e,r,n="")=>{let i=t.split(":");if("@"===t.slice(0,1)){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let t=i.pop(),r=i.pop(),a={provider:i.length>0?i[0]:n,prefix:r,name:t};return e&&!o(a)?null:a}let a=i[0],s=a.split("-");if(s.length>1){let t={provider:n,prefix:s.shift(),name:s.join("-")};return e&&!o(t)?null:t}if(r&&""===n){let t={provider:n,prefix:"",name:a};return e&&!o(t,r)?null:t}return null})(t,!0,void 0!==e);if(!r)throw Error(`Invalid icon name: ${t}`);let n=r.prefix||e;if(!n)throw Error(`Icon name must contain a prefix: ${t}`);let a=_.get(n);if(!a){let t=w.get(n);if(!t)throw Error(`Icon set not found: ${r.prefix}`);try{a={...await t(),prefix:n},_.set(n,a)}catch(t){throw i.R.error(t),Error(`Failed to load icon set: ${r.prefix}`)}}let s=function(t,e){if(t.icons[e])return f(t,e,[]);let r=function(t,e){let r=t.icons,n=t.aliases||Object.create(null),i=Object.create(null);return(e||Object.keys(r).concat(Object.keys(n))).forEach(function t(e){if(r[e])return i[e]=[];if(!(e in i)){i[e]=null;let r=n[e]&&n[e].parent,a=r&&t(r);a&&(i[e]=[r].concat(a))}return i[e]}),i}(t,[e])[e];return r?f(t,e,r):null}(a,r.name);if(!s)throw Error(`Icon not found: ${t}`);return s},"getRegisteredIconData"),A=(0,a.K)(async t=>{try{return await v(t),!0}catch{return!1}},"isIconAvailable"),M=(0,a.K)(async(t,e,r)=>{let a;try{a=await v(t,e?.fallbackPrefix)}catch(t){i.R.error(t),a=x}let o=function(t,e){let r,n,i={...c,...t},a={...d,...e},o={left:i.left,top:i.top,width:i.width,height:i.height},s=i.body;[i,a].forEach(t=>{let e,r=[],n=t.hFlip,i=t.vFlip,a=t.rotate;switch(n?i?a+=2:(r.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),r.push("scale(-1 1)"),o.top=o.left=0):i&&(r.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),r.push("scale(1 -1)"),o.top=o.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4){case 1:r.unshift("rotate(90 "+(e=o.height/2+o.top).toString()+" "+e.toString()+")");break;case 2:r.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:r.unshift("rotate(-90 "+(e=o.width/2+o.left).toString()+" "+e.toString()+")")}a%2==1&&(o.left!==o.top&&(e=o.left,o.left=o.top,o.top=e),o.width!==o.height&&(e=o.width,o.width=o.height,o.height=e)),r.length&&(s=function(t,e,r){var n,i;let a=function(t,e="defs"){let r="",n=t.indexOf("<"+e);for(;n>=0;){let i=t.indexOf(">",n),a=t.indexOf("",a);if(-1===o)break;r+=t.slice(i+1,a).trim(),t=t.slice(0,n).trim()+t.slice(o+1)}return{defs:r,content:t}}(t);return n=a.defs,i=e+a.content+r,n?""+n+""+i:i}(s,'',""))});let l=a.width,u=a.height,h=o.width,f=o.height;null===l?r=m(n=null===u?"1em":"auto"===u?f:u,h/f):(r="auto"===l?h:l,n=null===u?m(r,f/h):"auto"===u?f:u);let p={},g=(t,e)=>{"unset"!==e&&"undefined"!==e&&"none"!==e&&(p[t]=e.toString())};g("width",r),g("height",n);let y=[o.left,o.top,h,f];return p.viewBox=y.join(" "),{attributes:p,viewBox:y,body:s}}(a,e),s=function(t,e){let r=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let t in e)r+=" "+t+'="'+e[t]+'"';return'"+t+""}(function(t){let e,r=[];for(;e=y.exec(t);)r.push(e[1]);if(!r.length)return t;let n="suffix"+(0x1000000*Math.random()|Date.now()).toString(16);return r.forEach(e=>{let r=function(t){t=t.replace(/[0-9]+$/,"")||"a";let e=b.get(t)||0;return b.set(t,e+1),e?`${t}${e}`:t}(e),i=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+r+n+"$3")}),t=t.replace(RegExp(n,"g"),"")}(o.body),{...o.attributes,...r});return(0,n.jZ)(s,(0,n.zj)())},"getIconSVG")},31990:(t,e,r)=>{"use strict";r.d(e,{T:()=>n.T});var n=r(80153)},32450:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(82683);let i=function(t,e){for(var r=t.length;r--;)if((0,n.A)(t[r][0],e))return r;return -1};var a=Array.prototype.splice;function o(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e-1},o.prototype.set=function(t,e){var r=this.__data__,n=i(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};let s=o},33135:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t){return void 0===t}},33177:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,a=[];++r{"use strict";r.d(e,{A:()=>n});let n=function(t,e){return function(r){return t(e(r))}}},33807:(t,e,r)=>{"use strict";r.d(e,{XX:()=>p,q7:()=>g,sO:()=>d});var n=r(48734),i=r(11232),a=r(13031),o=r(69981),s=r(13892),l=r(69301),c=r(98999),u=r(91158),h={common:l.Y2,getConfig:l.zj,insertCluster:n.U,insertEdge:i.Jo,insertEdgeLabel:i.jP,insertMarkers:i.g0,insertNode:a.on,interpolateToCurve:s.Ib,labelHelper:o.Zk,log:c.R,positionEdgeLabel:i.T_},f={},d=(0,u.K)(t=>{for(let e of t)f[e.name]=e},"registerLayoutLoaders");(0,u.K)(()=>{d([{name:"dagre",loader:(0,u.K)(async()=>await Promise.all([r.e(8235),r.e(6600)]).then(r.bind(r,16600)),"loader")},{name:"swimlane",loader:(0,u.K)(async()=>await Promise.all([r.e(2561),r.e(270)]).then(r.bind(r,69040)),"loader")},{name:"cose-bilkent",loader:(0,u.K)(async()=>await Promise.all([r.e(4888),r.e(9088)]).then(r.bind(r,39088)),"loader")}])},"registerDefaultLayoutLoaders")();var p=(0,u.K)(async(t,e)=>{if(!(t.layoutAlgorithm in f))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let e of t.nodes){let r=e.domId||e.id;e.domId=`${t.diagramId}-${r}`}let r=f[t.layoutAlgorithm],n=await r.loader(),{theme:i,themeVariables:a}=t.config,{useGradient:o,gradientStart:s,gradientStop:l}=a,c=e.attr("id");if(e.append("defs").append("filter").attr("id",`${c}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i?.includes("dark")?"#FFFFFF":"#000000"}`),e.append("defs").append("filter").attr("id",`${c}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i?.includes("dark")?"#FFFFFF":"#000000"}`),o){let t=e.append("linearGradient").attr("id",e.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("svg:stop").attr("offset","0%").attr("stop-color",s).attr("stop-opacity",1),t.append("svg:stop").attr("offset","100%").attr("stop-color",l).attr("stop-opacity",1)}return n.render(t,e,h,{algorithm:r.algorithm})},"render"),g=(0,u.K)((t="",{fallback:e="dagre"}={})=>{if(t in f)return t;if(e in f)return c.R.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm")},34109:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(64845),i=r(74749);let a=function(t){return null!=t&&(0,i.A)(t.length)&&!(0,n.A)(t)}},34726:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(){return[]}},35177:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(9413);let i=(t,e)=>(0,n.A)(t,"l",-e)},35327:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(33177),i=r(34726),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols;let s=o?function(t){return null==t?[]:(t=Object(t),(0,n.A)(o(t),function(e){return a.call(t,e)}))}:i.A},36626:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(34109),i=r(62365);let a=function(t){return(0,i.A)(t)&&(0,n.A)(t)}},37253:(t,e,r)=>{"use strict";r.d(e,{P:()=>i});let n="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||function(){return this}();function i(t){return void 0!==n.Buffer&&n.Buffer.isBuffer(t)}},38368:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(96719),i=r(83657);let a=function(t){var e;return null==t?[]:(e=(0,i.A)(t),(0,n.A)(e,function(e){return t[e]}))}},38755:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=r(73986).A.Uint8Array},38789:(t,e,r)=>{"use strict";function n(t){return null==t||"object"!=typeof t&&"function"!=typeof t}r.d(e,{s:()=>n})},41977:(t,e,r)=>{"use strict";r.d(e,{$V:()=>o,Av:()=>n,GX:()=>p,ML:()=>A,NA:()=>h,OG:()=>i,Qb:()=>m,R_:()=>s,Uw:()=>f,VP:()=>l,XZ:()=>_,ZR:()=>x,_u:()=>k,cT:()=>d,i1:()=>w,iq:()=>g,kj:()=>a,pj:()=>u,q:()=>y,ri:()=>v,vC:()=>c,x6:()=>b});let n="[object RegExp]",i="[object String]",a="[object Number]",o="[object Boolean]",s="[object Arguments]",l="[object Symbol]",c="[object Date]",u="[object Map]",h="[object Set]",f="[object Array]",d="[object ArrayBuffer]",p="[object Object]",g="[object DataView]",m="[object Uint8Array]",y="[object Uint8ClampedArray]",b="[object Uint16Array]",x="[object Uint32Array]",_="[object Int8Array]",w="[object Int16Array]",k="[object Int32Array]",v="[object Float32Array]",A="[object Float64Array]"},43097:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(70897),i=r(68450);let a=(t,e)=>{let r=n.A.parse(t),a={};for(let t in e)e[t]&&(a[t]=r[t]+e[t]);return(0,i.A)(t,a)}},43266:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},43411:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});let n=function(t,e,r,n){var i=-1,a=null==t?0:t.length;for(n&&a&&(r=t[++i]);++i{"use strict";r.d(e,{A:()=>s});var n=r(25866),i=r(17624),a=r(70897),o=r(68450);let s=(t,e,r=0,s=1)=>{if("number"!=typeof t)return(0,o.A)(t,{a:e});let l=i.A.set({r:n.A.channel.clamp.r(t),g:n.A.channel.clamp.g(e),b:n.A.channel.clamp.b(r),a:n.A.channel.clamp.a(s)});return a.A.stringify(l)}},44115:(t,e,r)=>{"use strict";r.d(e,{H:()=>tT,r:()=>tS});var n,i,a,o,s,l,c,u,h,f,d,p,g,m,y,b,x,_,w,k,v,A,M,S,T,C,$,O,L,E,R,K,j,D,N,P,I,F,U,z,B,Y,H,q,W,X,G=r(91158);function Z(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(0,G.K)(Z,"getDefaultExportFromCjs");var V={},Q={},J={};function tt(){if(n)return J;function t(t){return null==t}function e(t){return"object"==typeof t&&null!==t}function r(e){return Array.isArray(e)?e:t(e)?[]:[e]}function i(t,e){if(e){let r=Object.keys(e);for(let n=0,i=r.length;ns&&(e=n-s+(a=" ... ").length),r-n>s&&(r=n+s-(o=" ...").length),{str:a+t.slice(e,r).replace(/\t/g,"→")+o,pos:n-e+a.length}}function r(e,r){return t.repeat(" ",r-e.length)+e}function n(n,i){let a;if(i=Object.create(i||null),!n.buffer)return null;i.maxLength||(i.maxLength=79),"number"!=typeof i.indent&&(i.indent=1),"number"!=typeof i.linesBefore&&(i.linesBefore=3),"number"!=typeof i.linesAfter&&(i.linesAfter=2);let o=/\r?\n|\r|\0/g,s=[0],l=[],c=-1;for(;a=o.exec(n.buffer);)l.push(a.index),s.push(a.index+a[0].length),n.position<=a.index&&c<0&&(c=s.length-2);c<0&&(c=s.length-1);let u="",h=Math.min(n.line+i.linesAfter,l.length).toString().length,f=i.maxLength-(i.indent+h+3);for(let a=1;a<=i.linesBefore&&!(c-a<0);a++){let o=e(n.buffer,s[c-a],l[c-a],n.position-(s[c]-s[c-a]),f);u=t.repeat(" ",i.indent)+r((n.line-a+1).toString(),h)+" | "+o.str+"\n"+u}let d=e(n.buffer,s[c],l[c],n.position,f);u+=t.repeat(" ",i.indent)+r((n.line+1).toString(),h)+" | "+d.str+"\n"+t.repeat("-",i.indent+h+3+d.pos)+"^\n";for(let a=1;a<=i.linesAfter&&!(c+a>=l.length);a++){let o=e(n.buffer,s[c+a],l[c+a],n.position-(s[c]-s[c+a]),f);u+=t.repeat(" ",i.indent)+r((n.line+a+1).toString(),h)+" | "+o.str+"\n"}return u.replace(/\n$/,"")}return(0,G.K)(e,"getLine"),(0,G.K)(r,"padStart"),(0,G.K)(n,"makeSnippet"),o=n}function tn(){if(c)return l;c=1;let t=te(),e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function n(t){let e={};return null!==t&&Object.keys(t).forEach(function(r){t[r].forEach(function(t){e[String(t)]=r})}),e}function i(i,a){if(Object.keys(a=a||{}).forEach(function(r){if(-1===e.indexOf(r))throw new t('Unknown option "'+r+'" is met in definition of "'+i+'" YAML type.')}),this.options=a,this.tag=i,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(t){return t},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=n(a.styleAliases||null),-1===r.indexOf(this.kind))throw new t('Unknown kind "'+this.kind+'" is specified for "'+i+'" YAML type.')}return(0,G.K)(n,"compileStyleAliases"),(0,G.K)(i,"Type2"),l=i}function ti(){if(h)return u;h=1;let t=te(),e=tn();function r(t,e){let r=[];return t[e].forEach(function(t){let e=r.length;r.forEach(function(r,n){r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi&&(e=n)}),r[e]=t}),r}function n(){let t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function e(e){e.multi?(t.multi[e.kind].push(e),t.multi.fallback.push(e)):t[e.kind][e.tag]=t.fallback[e.tag]=e}(0,G.K)(e,"collectType");for(let t=0,r=arguments.length;t=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function n(t){return t>=48&&t<=55}function i(t){return t>=48&&t<=57}function a(t){if(null===t)return!1;let e=t.length,a=0,s=!1;if(!e)return!1;let l=t[a];if(("-"===l||"+"===l)&&(l=t[++a]),"0"===l){if(a+1===e)return!0;if("b"===(l=t[++a])){for(a++;a=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:(0,G.K)(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:(0,G.K)(function(t){return t.toString(10)},"decimal"),hexadecimal:(0,G.K)(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})}function tf(){if(T)return S;T=1;let t=tt(),e=tn(),r=RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),n=RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function i(t){return null!==t&&!!r.test(t)&&(!!isFinite(parseFloat(t,10))||n.test(t))}function a(t){let e=t.toLowerCase(),r="-"===e[0]?-1:1;return("+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e)?1===r?1/0:-1/0:".nan"===e?NaN:r*parseFloat(e,10)}(0,G.K)(i,"resolveYamlFloat"),(0,G.K)(a,"constructYamlFloat");let o=/^[-+]?[0-9]+e/;function s(e,r){if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(t.isNegativeZero(e))return"-0.0";let n=e.toString(10);return o.test(n)?n.replace("e",".e"):n}function l(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||t.isNegativeZero(e))}return(0,G.K)(s,"representYamlFloat"),(0,G.K)(l,"isFloat"),S=new e("tag:yaml.org,2002:float",{kind:"scalar",resolve:i,construct:a,predicate:l,represent:s,defaultStyle:"lowercase"})}function td(){return $?C:($=1,C=tl().extend({implicit:[tc(),tu(),th(),tf()]}))}function tp(){return L?O:(L=1,O=td())}function tg(){if(R)return E;R=1;let t=tn(),e=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function n(t){return null!==t&&(null!==e.exec(t)||null!==r.exec(t))}function i(t){let n=0,i=null,a=e.exec(t);if(null===a&&(a=r.exec(t)),null===a)throw Error("Date resolve error");let o=+a[1],s=a[2]-1,l=+a[3];if(!a[4])return new Date(Date.UTC(o,s,l));let c=+a[4],u=+a[5],h=+a[6];if(a[7]){for(n=a[7].slice(0,3);n.length<3;)n+="0";n*=1}a[9]&&(i=(60*a[10]+ +(a[11]||0))*6e4,"-"===a[9]&&(i=-i));let f=new Date(Date.UTC(o,s,l,c,u,h,n));return i&&f.setTime(f.getTime()-i),f}function a(t){return t.toISOString()}return(0,G.K)(n,"resolveYamlTimestamp"),(0,G.K)(i,"constructYamlTimestamp"),(0,G.K)(a,"representYamlTimestamp"),E=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:n,construct:i,instanceOf:Date,represent:a})}function tm(){if(j)return K;j=1;let t=tn();function e(t){return"<<"===t||null===t}return(0,G.K)(e,"resolveYamlMerge"),K=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:e})}function ty(){if(N)return D;N=1;let t=tn(),e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function r(t){if(null===t)return!1;let r=0,n=t.length;for(let i=0;i64)){if(n<0)return!1;r+=6}}return r%8==0}function n(t){let r=t.replace(/[\r\n=]/g,""),n=r.length,i=0,a=[];for(let t=0;t>16&255),a.push(i>>8&255),a.push(255&i)),i=i<<6|e.indexOf(r.charAt(t));let o=n%4*6;return 0===o?(a.push(i>>16&255),a.push(i>>8&255),a.push(255&i)):18===o?(a.push(i>>10&255),a.push(i>>2&255)):12===o&&a.push(i>>4&255),new Uint8Array(a)}function i(t){let r="",n=0,i=t.length;for(let a=0;a>18&63],r+=e[n>>12&63],r+=e[n>>6&63],r+=e[63&n]),n=(n<<8)+t[a];let a=i%3;return 0===a?(r+=e[n>>18&63],r+=e[n>>12&63],r+=e[n>>6&63],r+=e[63&n]):2===a?(r+=e[n>>10&63],r+=e[n>>4&63],r+=e[n<<2&63],r+=e[64]):1===a&&(r+=e[n>>2&63],r+=e[n<<4&63],r+=e[64],r+=e[64]),r}function a(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}return(0,G.K)(r,"resolveYamlBinary"),(0,G.K)(n,"constructYamlBinary"),(0,G.K)(i,"representYamlBinary"),(0,G.K)(a,"isBinary"),D=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:n,predicate:a,represent:i})}function tb(){if(I)return P;I=1;let t=tn(),e=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function n(t){if(null===t)return!0;let n=[];for(let i=0,a=t.length;i=48&&t<=57)return t-48;let e=32|t;return e>=97&&e<=102?e-97+10:-1}function m(t){return 120===t?2:117===t?4:8*(85===t)}function y(t){return t>=48&&t<=57?t-48:-1}function b(t){switch(t){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:case 9:return" ";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1b";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xa0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function x(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function _(t,e,r){"__proto__"===e?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}(0,G.K)(u,"_class"),(0,G.K)(h,"isEol"),(0,G.K)(f,"isWhiteSpace"),(0,G.K)(d,"isWsOrEol"),(0,G.K)(p,"isFlowIndicator"),(0,G.K)(g,"fromHexCode"),(0,G.K)(m,"escapedHexLen"),(0,G.K)(y,"fromDecimalCode"),(0,G.K)(b,"simpleEscapeSequence"),(0,G.K)(x,"charFromCodepoint"),(0,G.K)(_,"setProperty");let w=Array(256),k=Array(256);for(let t=0;t<256;t++)w[t]=+!!b(t),k[t]=b(t);function v(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||n,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:100,this.maxTotalMergeKeys="number"==typeof e.maxTotalMergeKeys?e.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function A(t,n){let i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=r(i),new e(n,i)}function M(t,e){throw A(t,e)}function S(t,e){t.onWarning&&t.onWarning.call(null,A(t,e))}function T(t,e,r){let n=t.anchorMapTransactions;if(0!==n.length){let r=n[n.length-1];i.call(r,e)||(r[e]={existed:i.call(t.anchorMap,e),value:t.anchorMap[e]})}t.anchorMap[e]=r}function C(t){t.anchorMapTransactions.push(Object.create(null))}function $(t){let e=t.anchorMapTransactions.pop(),r=t.anchorMapTransactions;if(0===r.length)return;let n=r[r.length-1],a=Object.keys(e);for(let t=0,r=a.length;t=0;n-=1){let i=e[r[n]];i.existed?t.anchorMap[r[n]]=i.value:delete t.anchorMap[r[n]]}}function L(t){return{position:t.position,line:t.line,lineStart:t.lineStart,lineIndent:t.lineIndent,firstTabInLine:t.firstTabInLine,tag:t.tag,anchor:t.anchor,kind:t.kind,result:t.result}}function E(t,e){t.position=e.position,t.line=e.line,t.lineStart=e.lineStart,t.lineIndent=e.lineIndent,t.firstTabInLine=e.firstTabInLine,t.tag=e.tag,t.anchor=e.anchor,t.kind=e.kind,t.result=e.result}(0,G.K)(v,"State"),(0,G.K)(A,"generateError"),(0,G.K)(M,"throwError"),(0,G.K)(S,"throwWarning"),(0,G.K)(T,"storeAnchor"),(0,G.K)(C,"beginAnchorTransaction"),(0,G.K)($,"commitAnchorTransaction"),(0,G.K)(O,"rollbackAnchorTransaction"),(0,G.K)(L,"snapshotState"),(0,G.K)(E,"restoreState");let R={YAML:(0,G.K)(function(t,e,r){null!==t.version&&M(t,"duplication of %YAML directive"),1!==r.length&&M(t,"YAML directive accepts exactly one argument");let n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);null===n&&M(t,"ill-formed argument of the YAML directive");let i=parseInt(n[1],10),a=parseInt(n[2],10);1!==i&&M(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,1!==a&&2!==a&&S(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:(0,G.K)(function(t,e,r){let n;2!==r.length&&M(t,"TAG directive accepts exactly two arguments");let a=r[0];n=r[1],l.test(a)||M(t,"ill-formed tag handle (first argument) of the TAG directive"),i.call(t.tagMap,a)&&M(t,'there is a previously declared suffix for "'+a+'" tag handle'),c.test(n)||M(t,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(e){M(t,"tag prefix is malformed: "+n)}t.tagMap[a]=n},"handleTagDirective")};function K(t,e,r,n){if(e=32&&r<=1114111||M(t,"expected valid JSON character")}else a.test(i)&&M(t,"the stream contains non-printable characters");t.result+=i}}function j(e,r,n,a){t.isObject(n)||M(e,"cannot merge mappings; the provided source object is unacceptable");let o=Object.keys(n);for(let t=0,s=o.length;te.maxTotalMergeKeys&&M(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")"),i.call(r,s)||(_(r,s,n[s]),a[s]=!0)}}function D(t,e,r,n,a,o,s,l,c){if(Array.isArray(a)){a=Array.prototype.slice.call(a);for(let e=0,r=a.length;e1&&(e.result+=t.repeat("\n",r-1))}function U(t,e,r){let n,i,a,o,s,l,c=t.kind,u=t.result,g=t.input.charCodeAt(t.position);if(d(g)||p(g)||35===g||38===g||42===g||33===g||124===g||62===g||39===g||34===g||37===g||64===g||96===g)return!1;if(63===g||45===g){let e=t.input.charCodeAt(t.position+1);if(d(e)||r&&p(e))return!1}for(t.kind="scalar",t.result="",n=i=t.position,a=!1;0!==g;){if(58===g){let e=t.input.charCodeAt(t.position+1);if(d(e)||r&&p(e))break}else if(35===g){if(d(t.input.charCodeAt(t.position-1)))break}else if(t.position===t.lineStart&&I(t)||r&&p(g))break;else if(h(g)){if(o=t.line,s=t.lineStart,l=t.lineIndent,P(t,!1,-1),t.lineIndent>=e){a=!0,g=t.input.charCodeAt(t.position);continue}t.position=i,t.line=o,t.lineStart=s,t.lineIndent=l;break}a&&(K(t,n,i,!1),F(t,t.line-o),n=i=t.position,a=!1),f(g)||(i=t.position+1),g=t.input.charCodeAt(++t.position)}return K(t,n,i,!1),!!t.result||(t.kind=c,t.result=u,!1)}function z(t,e){let r,n,i=t.input.charCodeAt(t.position);if(39!==i)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(i=t.input.charCodeAt(t.position));)if(39===i){if(K(t,r,t.position,!0),39!==(i=t.input.charCodeAt(++t.position)))return!0;r=t.position,t.position++,n=t.position}else h(i)?(K(t,r,n,!0),F(t,P(t,!1,e)),r=n=t.position):t.position===t.lineStart&&I(t)?M(t,"unexpected end of the document within a single quoted scalar"):(t.position++,f(i)||(n=t.position));M(t,"unexpected end of the stream within a single quoted scalar")}function B(t,e){let r,n,i,a=t.input.charCodeAt(t.position);if(34!==a)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(a=t.input.charCodeAt(t.position));)if(34===a)return K(t,r,t.position,!0),t.position++,!0;else if(92===a){if(K(t,r,t.position,!0),h(a=t.input.charCodeAt(++t.position)))P(t,!1,e);else if(a<256&&w[a])t.result+=k[a],t.position++;else if((i=m(a))>0){let e=i,r=0;for(;e>0;e--)(i=g(a=t.input.charCodeAt(++t.position)))>=0?r=(r<<4)+i:M(t,"expected hexadecimal character");t.result+=x(r),t.position++}else M(t,"unknown escape sequence");r=n=t.position}else h(a)?(K(t,r,n,!0),F(t,P(t,!1,e)),r=n=t.position):t.position===t.lineStart&&I(t)?M(t,"unexpected end of the document within a double quoted scalar"):(t.position++,f(a)||(n=t.position));M(t,"unexpected end of the stream within a double quoted scalar")}function Y(t,e){let r,n,i,a,o,s,l,c,u,h,f,p=!0,g=t.tag,m=t.anchor,y=Object.create(null),b=t.input.charCodeAt(t.position);if(91===b)o=93,c=!1,a=[];else{if(123!==b)return!1;o=125,c=!0,a={}}for(null!==t.anchor&&T(t,t.anchor,a),b=t.input.charCodeAt(++t.position);0!==b;){if(P(t,!0,e),(b=t.input.charCodeAt(t.position))===o)return t.position++,t.tag=g,t.anchor=m,t.kind=c?"mapping":"sequence",t.result=a,!0;p?44===b&&M(t,"expected the node content, but found ','"):M(t,"missed comma between flow collection entries"),h=u=f=null,s=l=!1,63===b&&d(t.input.charCodeAt(t.position+1))&&(s=l=!0,t.position++,P(t,!0,e)),r=t.line,n=t.lineStart,i=t.position,ti(t,e,1,!1,!0),h=t.tag,u=t.result,P(t,!0,e),b=t.input.charCodeAt(t.position),(l||t.line===r)&&58===b&&(s=!0,b=t.input.charCodeAt(++t.position),P(t,!0,e),ti(t,e,1,!1,!0),f=t.result),c?D(t,a,y,h,u,f,r,n,i):s?a.push(D(t,null,y,h,u,f,r,n,i)):a.push(u),P(t,!0,e),44===(b=t.input.charCodeAt(t.position))?(p=!0,b=t.input.charCodeAt(++t.position)):p=!1}M(t,"unexpected end of the stream within a flow collection")}function H(e,r){let n,i,a=1,o=!1,s=!1,l=r,c=0,u=!1,d=e.input.charCodeAt(e.position);if(124===d)n=!1;else{if(62!==d)return!1;n=!0}for(e.kind="scalar",e.result="";0!==d;)if(43===(d=e.input.charCodeAt(++e.position))||45===d)1===a?a=43===d?3:2:M(e,"repeat of a chomping mode identifier");else if((i=y(d))>=0)0===i?M(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?M(e,"repeat of an indentation width identifier"):(l=r+i-1,s=!0);else break;if(f(d)){do d=e.input.charCodeAt(++e.position);while(f(d));if(35===d)do d=e.input.charCodeAt(++e.position);while(!h(d)&&0!==d)}for(;0!==d;){for(N(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!s||e.lineIndentl&&(l=e.lineIndent),h(d)){c++;continue}if(s||0!==l||M(e,"missing indentation for block scalar"),e.lineIndente)&&0!==o)M(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(m&&(i=t.line,a=t.lineStart,o=t.position),ti(t,e,4,!0,n)&&(m?p=t.result:g=t.result),m||(D(t,c,u,h,p,g,i,a,o),h=p=g=null),P(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===_||t.lineIndent>e)&&0!==b)M(t,"bad indentation of a mapping entry");else if(t.lineIndent=t.maxDepth&&M(t,"nesting exceeded maxDepth ("+t.maxDepth+")"),t.depth+=1,null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null;let g=o=s=4===r||3===r;if(n&&P(t,!0,-1)&&(f=!0,t.lineIndent>e?h=1:t.lineIndent===e?h=0:t.lineIndente?h=1:t.lineIndent===e?h=0:t.lineIndent tag; it should be "scalar", not "'+t.kind+'"');for(let e=0,r=t.implicitTypes.length;e"),null!==t.result&&l.kind!==t.kind&&M(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+l.kind+'", not "'+t.kind+'"'),l.resolve(t.result,t.tag)?(t.result=l.construct(t.result,t.tag),null!==t.anchor&&T(t,t.anchor,t.result)):M(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),t.depth-=1,null!==t.tag||null!==t.anchor||d}function ta(t){let e,r=t.position,n=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(e=t.input.charCodeAt(t.position))&&(P(t,!0,-1),e=t.input.charCodeAt(t.position),!(t.lineIndent>0)&&37===e);){n=!0,e=t.input.charCodeAt(++t.position);let r=t.position;for(;0!==e&&!d(e);)e=t.input.charCodeAt(++t.position);let a=t.input.slice(r,t.position),o=[];for(a.length<1&&M(t,"directive name must not be less than one character in length");0!==e;){for(;f(e);)e=t.input.charCodeAt(++t.position);if(35===e){do e=t.input.charCodeAt(++t.position);while(0!==e&&!h(e));break}if(h(e))break;for(r=t.position;0!==e&&!d(e);)e=t.input.charCodeAt(++t.position);o.push(t.input.slice(r,t.position))}0!==e&&N(t),i.call(R,a)?R[a](t,a,o):S(t,'unknown document directive "'+a+'"')}if(P(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,P(t,!0,-1)):n&&M(t,"directives end mark is expected"),ti(t,t.lineIndent-1,4,!1,!0),P(t,!0,-1),t.checkLineBreaks&&o.test(t.input.slice(r,t.position))&&S(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&I(t)){46===t.input.charCodeAt(t.position)&&(t.position+=3,P(t,!0,-1));return}t.position=32&&t<=126||t>=161&&t<=55295&&8232!==t&&8233!==t||t>=57344&&t<=65533&&65279!==t||t>=65536&&t<=1114111}function m(t){return g(t)&&65279!==t&&13!==t&&10!==t}function y(t,e,r){let n=m(t),i=n&&!p(t);return(r?n:n&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!i)||m(e)&&!p(e)&&35===t||58===e&&i}function b(t){return g(t)&&65279!==t&&!p(t)&&45!==t&&63!==t&&58!==t&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t&&35!==t&&38!==t&&42!==t&&33!==t&&124!==t&&61!==t&&62!==t&&39!==t&&34!==t&&37!==t&&64!==t&&96!==t}function x(t){return!p(t)&&58!==t}function _(t,e){let r,n=t.charCodeAt(e);return n>=55296&&n<=56319&&e+1=56320&&r<=57343?(n-55296)*1024+r-56320+65536:n}function w(t){return/^\n* /.test(t)}function k(t,e,r,n,i,a,o,s){let l,c=0,u=null,h=!1,f=!1,d=-1!==n,p=-1,m=b(_(t,0))&&x(_(t,t.length-1));if(e||o)for(l=0;l=65536?l+=2:l++){if(!g(c=_(t,l)))return 5;m=m&&y(c,u,s),u=c}else{for(l=0;l=65536?l+=2:l++){if(10===(c=_(t,l)))h=!0,d&&(f=f||l-p-1>n&&" "!==t[p+1],p=l);else if(!g(c))return 5;m=m&&y(c,u,s),u=c}f=f||d&&l-p-1>n&&" "!==t[p+1]}return h||f?r>9&&w(t)?5:o?2===a?5:2:f?4:3:!m||o||i(t)?2===a?5:2:1}function v(t,r,n,i,a){t.dump=function(){if(0===r.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==o.indexOf(r)||s.test(r)))return 2===t.quotingType?'"'+r+'"':"'"+r+"'";let l=t.indent*Math.max(1,n),c=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-l),u=i||t.flowLevel>-1&&n>=t.flowLevel;function f(e){return d(t,e)}switch((0,G.K)(f,"testAmbiguity"),k(r,u,t.indent,c,f,t.quotingType,t.forceQuotes&&!i,a)){case 1:return r;case 2:return"'"+r.replace(/'/g,"''")+"'";case 3:return"|"+A(r,t.indent)+M(h(r,l));case 4:return">"+A(r,t.indent)+M(h(S(r,c),l));case 5:return'"'+C(r)+'"';default:throw new e("impossible error: invalid scalar style")}}()}function A(t,e){let r=w(t)?String(e):"",n="\n"===t[t.length-1];return r+(n&&("\n"===t[t.length-2]||"\n"===t)?"+":n?"":"-")+"\n"}function M(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function S(t,e){let r,n,i,a=/(\n+)([^\n]*)/g,o=(a.lastIndex=i=-1!==(i=t.indexOf("\n"))?i:t.length,T(t.slice(0,i),e)),s="\n"===t[0]||" "===t[0];for(;n=a.exec(t);){let t=n[1],i=n[2];r=" "===i[0],o+=t+(s||r||""===i?"":"\n")+T(i,e),s=r}return o}function T(t,e){let r,n;if(""===t||" "===t[0])return t;let i=/ [^ ]/g,a=0,o=0,s=0,l="";for(;r=i.exec(t);)(s=r.index)-a>e&&(n=o>a?o:s,l+="\n"+t.slice(a,n),a=n+1),o=s;return l+="\n",t.length-a>e&&o>a?l+=t.slice(a,o)+"\n"+t.slice(o+1):l+=t.slice(a),l.slice(1)}function C(t){let e="",r=0;for(let n=0;n=65536?n+=2:n++){let i=a[r=_(t,n)];!i&&g(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||c(r)}return e}function $(t,e,r){let n="",i=t.tag;for(let i=0,a=r.length;i1024&&(o+="? "),o+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),K(t,e,l,!1,!1)&&(o+=t.dump,n+=o))}t.tag=i,t.dump="{"+n+"}"}function E(t,r,n,i){let a="",o=t.tag,s=Object.keys(n);if(!0===t.sortKeys)s.sort();else if("function"==typeof t.sortKeys)s.sort(t.sortKeys);else if(t.sortKeys)throw new e("sortKeys must be a boolean or a function");for(let e=0,o=s.length;e1024;u&&(t.dump&&10===t.dump.charCodeAt(0)?o+="?":o+="? "),o+=t.dump,u&&(o+=f(t,r)),K(t,r+1,c,!0,u)&&(t.dump&&10===t.dump.charCodeAt(0)?o+=":":o+=": ",o+=t.dump,a+=o)}t.tag=o,t.dump=a||"{}"}function R(t,r,a){let o=a?t.explicitTypes:t.implicitTypes;for(let s=0,l=o.length;s tag resolver accepts not "'+o+'" style');t.dump=a}return!0}}return!1}function K(t,r,i,a,o,s,l){let c,u;t.tag=null,t.dump=i,R(t,i,!1)||R(t,i,!0);let h=n.call(t.dump),f=a;a&&(a=t.flowLevel<0||t.flowLevel>r);let d="[object Object]"===h||"[object Array]"===h;if(d&&(u=-1!==(c=t.duplicates.indexOf(i))),(null!==t.tag&&"?"!==t.tag||u||2!==t.indent&&r>0)&&(o=!1),u&&t.usedDuplicates[c])t.dump="*ref_"+c;else{if(d&&u&&!t.usedDuplicates[c]&&(t.usedDuplicates[c]=!0),"[object Object]"===h)a&&0!==Object.keys(t.dump).length?(E(t,r,t.dump,o),u&&(t.dump="&ref_"+c+t.dump)):(L(t,r,t.dump),u&&(t.dump="&ref_"+c+" "+t.dump));else if("[object Array]"===h)a&&0!==t.dump.length?(t.noArrayIndent&&!l&&r>0?O(t,r-1,t.dump,o):O(t,r,t.dump,o),u&&(t.dump="&ref_"+c+t.dump)):($(t,r,t.dump),u&&(t.dump="&ref_"+c+" "+t.dump));else if("[object String]"===h)"?"!==t.tag&&v(t,t.dump,r,s,f);else{if("[object Undefined]"===h||t.skipInvalid)return!1;throw new e("unacceptable kind of an object to dump "+h)}if(null!==t.tag&&"?"!==t.tag){let e=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21");e="!"===t.tag[0]?"!"+e:"tag:yaml.org,2002:"===e.slice(0,18)?"!!"+e.slice(18):"!<"+e+">",t.dump=e+" "+t.dump}}return!0}function j(t,e){let r=[],n=[];D(t,r,n);let i=n.length;for(let t=0;t{"use strict";r.d(e,{N:()=>i});var n=r(94250);function i(t){return null!==t&&"object"==typeof t&&"[object Arguments]"===(0,n.b)(t)}},45629:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(73986),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof module&&module&&!module.nodeType&&module,o=a&&a.exports===i?n.A.Buffer:void 0;let s=(o?o.isBuffer:void 0)||function(){return!1}},45705:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(54135);let i=function(t){return"function"==typeof t?t:n.A}},48392:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(84746);let i=function(){try{var t=(0,n.A)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},48734:(t,e,r)=>{"use strict";r.d(e,{I:()=>_,U:()=>x});var n=r(13031),i=r(69981),a=r(5663),o=r(82142),s=r(69301),l=r(98999),c=r(91158),u=r(70668),h=r(99788),f=(0,c.K)(async(t,e)=>{let r,n,c=(0,s.D7)(),{themeVariables:f,handDrawnSeed:d}=c,{clusterBkg:p,clusterBorder:g}=f,{labelStyles:m,nodeStyles:y,borderStyles:b,backgroundStyles:x}=(0,a.GX)(e),_=t.insert("g").attr("class","cluster swimlane "+(e.cssClasses||"")).attr("id",e.id).attr("data-id",e.id).attr("data-et","cluster").attr("data-look",e.look),w=(0,s._3)(c.flowchart.htmlLabels),k="LR"===e.direction,v=_.insert("g").attr("class","cluster-label swimlane-label"),A=await (0,o.GZ)(v,e.label,{style:e.labelStyle,useHtmlLabels:w,isNode:!0,width:e.width}),M=A.getBBox();if(w){let t=A.children[0],e=(0,u.Ltv)(A);M=t.getBoundingClientRect(),e.attr("width",M.width),e.attr("height",M.height)}let S=e.padding??0,T=e.width<=M.width+S?M.width+S:e.width;e.width<=M.width+S?e.diff=(T-e.width)/2-S:e.diff=-S;let C=e.height,$=e.y-C/2,O=e.y+C/2,L=e.x-T/2,E=void 0!==e.swimlaneContentTop?e.swimlaneContentTop:$+C/3,R=4*!!k,K=M.height+2*R;if(k){let t=Math.max(K,M.height+2*R),i=L+t,o=Math.max(0,T-t);if("handDrawn"===e.look){let s=h.A.svg(_),l=(0,a.Fr)(e,{roughness:.7,fill:p,stroke:g,fillWeight:3,seed:d}),c=(0,a.Fr)(e,{roughness:.7,fill:"none",stroke:g,seed:d}),u=s.rectangle(L,$,t,C,l);r=_.insert(()=>u,":first-child");let f=s.rectangle(i,$,o,C,c);n=_.insert(()=>f,":first-child"),r.select("path:nth-child(2)").attr("style",b.join(";")),r.select("path").attr("style",x.join(";").replace("fill","stroke"))}else r=_.insert("rect",":first-child"),n=_.insert("rect",":first-child"),r.attr("class","swimlane-title").attr("style",y).attr("x",L).attr("y",$).attr("width",t).attr("height",C).attr("fill",p).attr("stroke",g),n.attr("class","swimlane-body").attr("style",y).attr("x",i).attr("y",$).attr("width",o).attr("height",C).attr("fill","none").attr("stroke",g);let s=L+t/2,l=e.y;v.attr("transform",`translate(${s}, ${l}) rotate(-90) translate(${-M.width/2}, ${-M.height/2})`)}else{let t=Math.min(K,Math.max(0,E-$)),i=$+t,o=Math.max(0,O-i),s=e.x-T/2;if("handDrawn"===e.look){let l=h.A.svg(_),c=(0,a.Fr)(e,{roughness:.7,fill:p,stroke:g,fillWeight:3,seed:d}),u=(0,a.Fr)(e,{roughness:.7,fill:"none",stroke:g,seed:d}),f=l.rectangle(s,$,T,t,c);r=_.insert(()=>f,":first-child");let m=l.rectangle(s,i,T,o,u);n=_.insert(()=>m,":first-child"),r.select("path:nth-child(2)").attr("style",b.join(";")),r.select("path").attr("style",x.join(";").replace("fill","stroke"))}else r=_.insert("rect",":first-child"),n=_.insert("rect",":first-child"),r.attr("class","swimlane-title").attr("style",y).attr("x",s).attr("y",$).attr("width",T).attr("height",t).attr("fill",p).attr("stroke",g),n.attr("class","swimlane-body").attr("style",y).attr("x",s).attr("y",i).attr("width",T).attr("height",o).attr("fill","none").attr("stroke",g);let l=e.x-M.width/2,c=$+(t-M.height)/2;v.attr("transform",`translate(${l}, ${c})`)}if(l.R.trace("Swimlane data ",e,JSON.stringify(e)),m){let t=v.select("span");t&&t.attr("style",m)}return e.offsetX=0,e.width=T,e.height=C,e.offsetY=M.height-S/2,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:_,labelBBox:M}},"swimlane"),d=(0,c.K)(async(t,e)=>{let r,c;l.R.info("Creating subgraph rect for ",e.id,e);let f=(0,s.D7)(),{themeVariables:d,handDrawnSeed:p}=f,{clusterBkg:g,clusterBorder:m}=d,{labelStyles:y,nodeStyles:b,borderStyles:x,backgroundStyles:_}=(0,a.GX)(e),w=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),k=(0,s.E)(f),v=w.insert("g").attr("class","cluster-label "),A=(r="markdown"===e.labelType?await (0,o.GZ)(v,e.label,{style:e.labelStyle,useHtmlLabels:k,isNode:!0,width:e.width}):await (0,i.DA)(v,e.label,e.labelStyle||"",!1,!0)).getBBox();if((0,s.E)(f)){let t=r.children[0],e=(0,u.Ltv)(r);A=t.getBoundingClientRect(),e.attr("width",A.width),e.attr("height",A.height)}let M=e.width<=A.width+e.padding?A.width+e.padding:e.width;e.width<=A.width+e.padding?e.diff=(M-e.width)/2-e.padding:e.diff=-e.padding;let S=e.height,T=e.x-M/2,C=e.y-S/2;if(l.R.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=h.A.svg(w),r=(0,a.Fr)(e,{roughness:.7,fill:g,stroke:m,fillWeight:3,seed:p}),n=t.path((0,i.FA)(T,C,M,S,0),r);(c=w.insert(()=>(l.R.debug("Rough node insert CXC",n),n),":first-child")).select("path:nth-child(2)").attr("style",x.join(";")),c.select("path").attr("style",_.join(";").replace("fill","stroke"))}else(c=w.insert("rect",":first-child")).attr("style",b).attr("rx",e.rx).attr("ry",e.ry).attr("x",T).attr("y",C).attr("width",M).attr("height",S);let{subGraphTitleTopMargin:$}=(0,n.Oi)(f);if(v.attr("transform",`translate(${e.x-A.width/2}, ${e.y-e.height/2+$})`),y){let t=v.select("span");t&&t.attr("style",y)}let O=c.node().getBBox();return e.offsetX=0,e.width=O.width,e.height=O.height,e.offsetY=A.height-e.padding/2,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:w,labelBBox:A}},"rect"),p=(0,c.K)((t,e)=>{let r=t.insert("g").attr("class","note-cluster").attr("id",e.domId),n=r.insert("rect",":first-child"),a=0*e.padding,o=a/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-o).attr("y",e.y-e.height/2-o).attr("width",e.width+a).attr("height",e.height+a).attr("fill","none");let s=n.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),g=(0,c.K)(async(t,e)=>{let r,n=(0,s.D7)(),{themeVariables:a,handDrawnSeed:o}=n,{altBackground:l,compositeBackground:c,compositeTitleBackground:f,nodeBorder:d}=a,p=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look),g=p.insert("g",":first-child"),m=p.insert("g").attr("class","cluster-label"),y=p.append("rect"),b=await (0,i.DA)(m,e.label,e.labelStyle,void 0,!0),x=b.getBBox();if((0,s.E)(n)){let t=b.children[0],e=(0,u.Ltv)(b);x=t.getBoundingClientRect(),e.attr("width",x.width),e.attr("height",x.height)}let _=0*e.padding,w=(e.width<=x.width+e.padding?x.width+e.padding:e.width)+_;e.width<=x.width+e.padding?e.diff=(w-e.width)/2-e.padding:e.diff=-e.padding;let k=e.height+_,v=e.height+_-x.height-6,A=e.x-w/2,M=e.y-k/2;e.width=w;let S=e.y-e.height/2-_/2+x.height+2;if("handDrawn"===e.look){let t=e.cssClasses.includes("statediagram-cluster-alt"),n=h.A.svg(p),a=e.rx||e.ry?n.path((0,i.FA)(A,M,w,k,10),{roughness:.7,fill:f,fillStyle:"solid",stroke:d,seed:o}):n.rectangle(A,M,w,k,{seed:o});r=p.insert(()=>a,":first-child");let s=n.rectangle(A,S,w,v,{fill:t?l:c,fillStyle:t?"hachure":"solid",stroke:d,seed:o});r=p.insert(()=>a,":first-child"),y=p.insert(()=>s)}else(r=g.insert("rect",":first-child")).attr("class","outer").attr("x",A).attr("y",M).attr("width",w).attr("height",k).attr("data-look",e.look),y.attr("class","inner").attr("x",A).attr("y",S).attr("width",w).attr("height",v);return m.attr("transform",`translate(${e.x-x.width/2}, ${M+1-3*!(0,s.E)(n)})`),e.height=r.node().getBBox().height,e.offsetX=0,e.offsetY=x.height-e.padding/2,e.labelBBox=x,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:p,labelBBox:x}},"roundedWithTitle"),m=(0,c.K)(async(t,e)=>{let r;l.R.info("Creating subgraph rect for ",e.id,e);let c=(0,s.D7)(),{themeVariables:f,handDrawnSeed:d}=c,{clusterBkg:p,clusterBorder:g}=f,{labelStyles:m,nodeStyles:y,borderStyles:b,backgroundStyles:x}=(0,a.GX)(e),_=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),w=(0,s.E)(c),k=_.insert("g").attr("class","cluster-label "),v=await (0,o.GZ)(k,e.label,{style:e.labelStyle,useHtmlLabels:w,isNode:!0,width:e.width}),A=v.getBBox();if((0,s.E)(c)){let t=v.children[0],e=(0,u.Ltv)(v);A=t.getBoundingClientRect(),e.attr("width",A.width),e.attr("height",A.height)}let M=e.width<=A.width+e.padding?A.width+e.padding:e.width;e.width<=A.width+e.padding?e.diff=(M-e.width)/2-e.padding:e.diff=-e.padding;let S=e.height,T=e.x-M/2,C=e.y-S/2;if(l.R.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=h.A.svg(_),n=(0,a.Fr)(e,{roughness:.7,fill:p,stroke:g,fillWeight:4,seed:d}),o=t.path((0,i.FA)(T,C,M,S,e.rx),n);(r=_.insert(()=>(l.R.debug("Rough node insert CXC",o),o),":first-child")).select("path:nth-child(2)").attr("style",b.join(";")),r.select("path").attr("style",x.join(";").replace("fill","stroke"))}else(r=_.insert("rect",":first-child")).attr("style",y).attr("rx",e.rx).attr("ry",e.ry).attr("x",T).attr("y",C).attr("width",M).attr("height",S);let{subGraphTitleTopMargin:$}=(0,n.Oi)(c);if(k.attr("transform",`translate(${e.x-A.width/2}, ${e.y-e.height/2+$})`),m){let t=k.select("span");t&&t.attr("style",m)}let O=r.node().getBBox();return e.offsetX=0,e.width=O.width,e.height=O.height,e.offsetY=A.height-e.padding/2,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:_,labelBBox:A}},"kanbanSection"),y={rect:d,squareRect:d,roundedWithTitle:g,noteGroup:p,divider:(0,c.K)((t,e)=>{let r,{themeVariables:n,handDrawnSeed:a}=(0,s.D7)(),{nodeBorder:o}=n,l=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),c=l.insert("g",":first-child"),u=0*e.padding,f=e.width+u;e.diff=-e.padding;let d=e.height+u,p=e.x-f/2,g=e.y-d/2;if(e.width=f,"handDrawn"===e.look){let t=h.A.svg(l).rectangle(p,g,f,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:o,seed:a});r=l.insert(()=>t,":first-child")}else{r=c.insert("rect",":first-child");let t="outer";e.look,t="divider",r.attr("class",t).attr("x",p).attr("y",g).attr("width",f).attr("height",d).attr("data-look",e.look)}return e.height=r.node().getBBox().height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:l,labelBBox:{}}},"divider"),kanbanSection:m,swimlane:f},b=new Map,x=(0,c.K)(async(t,e)=>{let r=e.shape||"rect",n=await y[r](t,e);return b.set(e.id,n),n},"insertCluster"),_=(0,c.K)(()=>{b=new Map},"clear")},49498:(t,e,r)=>{"use strict";r.d(e,{Y:()=>i,Z:()=>a});var n=r(25866);let i={};for(let t=0;t<=255;t++)i[t]=n.A.unit.dec2hex(t);let a={ALL:0,RGB:1,HSL:2}},50912:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t,e){return t.has(e)}},51121:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(54135),i=r(6787),a=r(75521);let o=function(t,e){return(0,a.A)((0,i.A)(t,e,n.A),t+"")}},52578:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t){return function(e){return t(e)}}},52701:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t){return function(){return t}}},53660:function(t){t.exports=function(){"use strict";var t="millisecond",e="second",r="minute",n="hour",i="week",a="month",o="quarter",s="year",l="date",c="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},d="en",p={};p[d]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}};var g="$isDayjsObject",m=function(t){return t instanceof _||!(!t||!t[g])},y=function t(e,r,n){var i;if(!e)return d;if("string"==typeof e){var a=e.toLowerCase();p[a]&&(i=a),r&&(p[a]=r,i=a);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var s=e.name;p[s]=e,i=s}return!n&&i&&(d=i),i||!n&&d},b=function(t,e){if(m(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new _(r)},x={s:f,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+f(Math.floor(r/60),2,"0")+":"+f(r%60,2,"0")},m:function t(e,r){if(e.date(){"use strict";r.d(e,{A:()=>h});var n=r(68550),i=r(96719),a=r(70754),o=r(88997),s=1/0,l=n.A?n.A.prototype:void 0,c=l?l.toString:void 0;let u=function t(e){if("string"==typeof e)return e;if((0,a.A)(e))return(0,i.A)(e,t)+"";if((0,o.A)(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-s?"-0":r},h=function(t){return null==t?"":u(t)}},53865:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(14484),i=r(35327),a=r(83657);let o=function(t){return(0,n.A)(t,a.A,i.A)}},54135:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t){return t}},54333:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(25866),i=r(70897);let a=t=>!((t=>{let{r:e,g:r,b:a}=i.A.parse(t),o=.2126*n.A.channel.toLinear(e)+.7152*n.A.channel.toLinear(r)+.0722*n.A.channel.toLinear(a);return n.A.lang.round(o)})(t)>=.5)},54578:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(88997),i=1/0;let a=function(t){if("string"==typeof t||(0,n.A)(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},60106:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(84746),i=r(73986);let a=(0,n.A)(i.A,"Set")},60486:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});var n=(0,r(84746).A)(Object,"create"),i=Object.prototype.hasOwnProperty,a=Object.prototype.hasOwnProperty;function o(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{"use strict";r.d(e,{A:()=>c});var n=r(68315),i=r(68550),a=r(16959),o=r(70754),s=i.A?i.A.isConcatSpreadable:void 0;let l=function(t){return(0,o.A)(t)||(0,a.A)(t)||!!(s&&t&&t[s])},c=function t(e,r,i,a,o){var s=-1,c=e.length;for(i||(i=l),o||(o=[]);++s0&&i(u)?r>1?t(u,r-1,i,a,o):(0,n.A)(o,u):a||(o[o.length]=u)}return o}},62365:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t){return null!=t&&"object"==typeof t}},64845:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(10270),i=r(43266);let a=function(t){if(!(0,i.A)(t))return!1;var e=(0,n.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},66275:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(70897),i=r(43500);let a=(t,e=100)=>{let r=n.A.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,((t,e,r=50)=>{let{r:a,g:o,b:s,a:l}=n.A.parse(t),{r:c,g:u,b:h,a:f}=n.A.parse(e),d=r/100,p=2*d-1,g=l-f,m=((p*g==-1?p:(p+g)/(1+p*g))+1)/2,y=1-m;return(0,i.A)(a*m+c*y,o*m+u*y,s*m+h*y,l*d+f*(1-d))})(r,t,e)}},67685:(t,e,r)=>{"use strict";r.r(e),r.d(e,{clearLayoutRenderState:()=>i.n5,createCommonLayoutRenderer:()=>i.xY,default:()=>r5,defaultMeasureLayout:()=>i.QV,paintLayoutData:()=>i.nf});var n=r(94191),i=r(70297),a=r(44115),o=r(33807);r(48734),r(11232),r(13031),r(69981),r(5663),r(82142);var s=r(29278),l=r(13892),c=r(69301),u=r(98999),h=r(91158),f=r(68332),d=r(70668),p="comm",g="rule",m="decl",y="@keyframes",b="@layer",x=Math.abs,_=String.fromCharCode;function w(t,e,r){return t.replace(e,r)}function k(t,e){return 0|t.charCodeAt(e)}function v(t,e,r){return t.slice(e,r)}function A(t){return t.length}function M(t,e){return e.push(t),t}function S(t,e){for(var r="",n=0;n0?d[_]+" "+k:w(k,/&\f/g,d[_])).trim())&&(l[b++]=A);return K(t,e,r,0===i?g:s,l,c,u,h)}function F(t,e,r,n,i){return K(t,e,r,m,v(t,0,n),v(t,n+1,-1),n,i)}var U=r(74574),z=r(37253),B=r(83859),Y=r(44159),H=r(84368);function q(t){if(null==t)return!0;if((0,B.X)(t))return("function"==typeof t.splice||"string"==typeof t||!!(0,z.P)(t)||!!(0,H.i)(t)||!!(0,Y.N)(t))&&0===t.length;if("object"==typeof t||"function"==typeof t){if(t instanceof Map||t instanceof Set)return 0===t.size;let e=Object.keys(t);return!function(t){let e=t?.constructor;return t===("function"==typeof e?e.prototype:Object.prototype)}(t)?0===e.length:0===e.filter(t=>"constructor"!==t).length}return!0}var W={id:"c4",detector:(0,h.K)(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),loader:(0,h.K)(async()=>{let{diagram:t}=await r.e(2328).then(r.bind(r,52328));return{id:"c4",diagram:t}},"loader")},X="flowchart",G=(0,h.K)((t,e)=>e?.flowchart?.defaultRenderer!=="dagre-wrapper"&&e?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(t),"detector"),Z=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(2440),r.e(2459)]).then(r.bind(r,62459));return{id:X,diagram:t}},"loader"),V={id:X,detector:G,loader:Z},Q="flowchart-v2",J=(0,h.K)((t,e)=>e?.flowchart?.defaultRenderer!=="dagre-d3"&&(e?.flowchart?.defaultRenderer==="elk"&&(e.layout="elk"),!!/^\s*graph/.test(t)&&e?.flowchart?.defaultRenderer==="dagre-wrapper"||/^\s*flowchart/.test(t)),"detector"),tt=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(2440),r.e(2459)]).then(r.bind(r,62459));return{id:Q,diagram:t}},"loader"),te={id:Q,detector:J,loader:tt},tr="swimlane",tn=(0,h.K)(t=>/^\s*swimlane-beta\b/.test(t),"detector"),ti=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(2440),r.e(1363)]).then(r.bind(r,81363));return{id:tr,diagram:t}},"loader"),ta={id:tr,detector:tn,loader:ti},to={id:"er",detector:(0,h.K)(t=>/^\s*erDiagram/.test(t),"detector"),loader:(0,h.K)(async()=>{let{diagram:t}=await r.e(3922).then(r.bind(r,63922));return{id:"er",diagram:t}},"loader")},ts="gitGraph",tl=(0,h.K)(t=>/^\s*gitGraph/.test(t),"detector"),tc=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(6358),r.e(9321),r.e(1831)]).then(r.bind(r,71831));return{id:ts,diagram:t}},"loader"),tu={id:ts,detector:tl,loader:tc},th="gantt",tf=(0,h.K)(t=>/^\s*gantt/.test(t),"detector"),td=(0,h.K)(async()=>{let{diagram:t}=await r.e(4238).then(r.bind(r,74238));return{id:th,diagram:t}},"loader"),tp={id:th,detector:tf,loader:td},tg="info",tm=(0,h.K)(t=>/^\s*info/.test(t),"detector"),ty=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(6358),r.e(9321),r.e(8804)]).then(r.bind(r,28804));return{id:tg,diagram:t}},"loader"),tb={id:tg,detector:tm,loader:ty},tx={id:"pie",detector:(0,h.K)(t=>/^\s*pie/.test(t),"detector"),loader:(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(6358),r.e(9321),r.e(3550)]).then(r.bind(r,63550));return{id:"pie",diagram:t}},"loader")},t_="quadrantChart",tw=(0,h.K)(t=>/^\s*quadrantChart/.test(t),"detector"),tk=(0,h.K)(async()=>{let{diagram:t}=await r.e(7084).then(r.bind(r,7084));return{id:t_,diagram:t}},"loader"),tv={id:t_,detector:tw,loader:tk},tA="xychart",tM=(0,h.K)(t=>/^\s*xychart(-beta)?/.test(t),"detector"),tS=(0,h.K)(async()=>{let{diagram:t}=await r.e(6765).then(r.bind(r,6765));return{id:tA,diagram:t}},"loader"),tT={id:tA,detector:tM,loader:tS},tC="requirement",t$=(0,h.K)(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),tO=(0,h.K)(async()=>{let{diagram:t}=await r.e(1331).then(r.bind(r,31331));return{id:tC,diagram:t}},"loader"),tL={id:tC,detector:t$,loader:tO},tE="sequence",tR=(0,h.K)(t=>/^\s*sequenceDiagram/.test(t),"detector"),tK=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(5885),r.e(6229)]).then(r.bind(r,20139));return{id:tE,diagram:t}},"loader"),tj={id:tE,detector:tR,loader:tK},tD="class",tN=(0,h.K)((t,e)=>e?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(t),"detector"),tP=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8771),r.e(6552)]).then(r.bind(r,86552));return{id:tD,diagram:t}},"loader"),tI={id:tD,detector:tN,loader:tP},tF="classDiagram",tU=(0,h.K)((t,e)=>!!/^\s*classDiagram/.test(t)&&e?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(t),"detector"),tz=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8771),r.e(2918)]).then(r.bind(r,92918));return{id:tF,diagram:t}},"loader"),tB={id:tF,detector:tU,loader:tz},tY="state",tH=(0,h.K)((t,e)=>e?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(t),"detector"),tq=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8235),r.e(8348),r.e(5076)]).then(r.bind(r,65076));return{id:tY,diagram:t}},"loader"),tW={id:tY,detector:tH,loader:tq},tX="stateDiagram",tG=(0,h.K)((t,e)=>!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&e?.state?.defaultRenderer==="dagre-wrapper"),"detector"),tZ=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8348),r.e(8763)]).then(r.bind(r,58763));return{id:tX,diagram:t}},"loader"),tV={id:tX,detector:tG,loader:tZ},tQ="journey",tJ=(0,h.K)(t=>/^\s*journey/.test(t),"detector"),t0=(0,h.K)(async()=>{let{diagram:t}=await r.e(6327).then(r.bind(r,96327));return{id:tQ,diagram:t}},"loader"),t1={id:tQ,detector:tJ,loader:t0},t2={draw:(0,h.K)((t,e,r)=>{u.R.debug("rendering svg for syntax error\n");let i=(0,n.D)(e),a=i.append("g");i.attr("viewBox","0 0 2412 512"),(0,c.a$)(i,100,512,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw")},t3={db:{},renderer:t2,parser:{parse:(0,h.K)(()=>{},"parse")}},t5="flowchart-elk",t6=(0,h.K)((t,e={})=>!!(/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&e?.flowchart?.defaultRenderer==="elk")&&(e.layout="elk",!0),"detector"),t8=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(2440),r.e(2459)]).then(r.bind(r,62459));return{id:t5,diagram:t}},"loader"),t4={id:t5,detector:t6,loader:t8},t9="timeline",t7=(0,h.K)(t=>/^\s*timeline/.test(t),"detector"),et=(0,h.K)(async()=>{let{diagram:t}=await r.e(2483).then(r.bind(r,22483));return{id:t9,diagram:t}},"loader"),ee={id:t9,detector:t7,loader:et},er="mindmap",en=(0,h.K)(t=>/^\s*mindmap/.test(t),"detector"),ei=(0,h.K)(async()=>{let{diagram:t}=await r.e(2499).then(r.bind(r,42499));return{id:er,diagram:t}},"loader"),ea={id:er,detector:en,loader:ei},eo="kanban",es=(0,h.K)(t=>/^\s*kanban/.test(t),"detector"),el=(0,h.K)(async()=>{let{diagram:t}=await r.e(7178).then(r.bind(r,57178));return{id:eo,diagram:t}},"loader"),ec={id:eo,detector:es,loader:el},eu="sankey",eh=(0,h.K)(t=>/^\s*sankey(-beta)?/.test(t),"detector"),ef=(0,h.K)(async()=>{let{diagram:t}=await r.e(7356).then(r.bind(r,87356));return{id:eu,diagram:t}},"loader"),ed={id:eu,detector:eh,loader:ef},ep="packet",eg=(0,h.K)(t=>/^\s*packet(-beta)?/.test(t),"detector"),em=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(6358),r.e(9321),r.e(5567)]).then(r.bind(r,35567));return{id:ep,diagram:t}},"loader"),ey={id:ep,detector:eg,loader:em},eb="radar",ex=(0,h.K)(t=>/^\s*radar-beta/.test(t),"detector"),e_=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(6358),r.e(9321),r.e(2829)]).then(r.bind(r,82829));return{id:eb,diagram:t}},"loader"),ew={id:eb,detector:ex,loader:e_},ek="block",ev=(0,h.K)(t=>/^\s*block(-beta)?/.test(t),"detector"),eA=(0,h.K)(async()=>{let{diagram:t}=await r.e(7013).then(r.bind(r,7013));return{id:ek,diagram:t}},"loader"),eM={id:ek,detector:ev,loader:eA},eS="treeView",eT=(0,h.K)(t=>/^\s*treeView-beta/.test(t),"detector"),eC=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(6358),r.e(9321),r.e(461)]).then(r.bind(r,80461));return{id:eS,diagram:t}},"loader"),e$={id:eS,detector:eT,loader:eC},eO="architecture",eL=(0,h.K)(t=>/^\s*architecture/.test(t),"detector"),eE=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(6358),r.e(4888),r.e(9321),r.e(5942)]).then(r.bind(r,35942));return{id:eO,diagram:t}},"loader"),eR={id:eO,detector:eL,loader:eE},eK="eventmodeling",ej=(0,h.K)(t=>/^\s*eventmodeling/.test(t),"detector"),eD=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(6358),r.e(9321),r.e(8236)]).then(r.bind(r,68236));return{id:eK,diagram:t}},"loader"),eN={id:eK,detector:ej,loader:eD},eP="ishikawa",eI=(0,h.K)(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),eF=(0,h.K)(async()=>{let{diagram:t}=await r.e(1161).then(r.bind(r,31161));return{id:eP,diagram:t}},"loader"),eU={id:eP,detector:eI,loader:eF},ez="venn",eB=(0,h.K)(t=>/^\s*venn-beta/.test(t),"detector"),eY=(0,h.K)(async()=>{let{diagram:t}=await r.e(9875).then(r.bind(r,9875));return{id:ez,diagram:t}},"loader"),eH={id:ez,detector:eB,loader:eY},eq="treemap",eW=(0,h.K)(t=>/^\s*treemap/.test(t),"detector"),eX=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(6358),r.e(9321),r.e(455)]).then(r.bind(r,70455));return{id:eq,diagram:t}},"loader"),eG={id:eq,detector:eW,loader:eX},eZ="wardley",eV=(0,h.K)(t=>/^\s*wardley-beta/i.test(t),"detector"),eQ=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(6358),r.e(9321),r.e(8531)]).then(r.bind(r,8531));return{id:eZ,diagram:t}},"loader"),eJ={id:eZ,detector:eV,loader:eQ},e0="cynefin",e1=(0,h.K)(t=>/^\s*cynefin-beta(?:[\s:]|$)/.test(t),"detector"),e2=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(6358),r.e(9321),r.e(4673)]).then(r.bind(r,24673));return{id:e0,diagram:t}},"loader"),e3={id:e0,detector:e1,loader:e2},e5="railroad",e6=(0,h.K)(t=>/^\s*railroad-beta/i.test(t),"detector"),e8=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(6358),r.e(9321),r.e(4624),r.e(1962)]).then(r.bind(r,91962));return{id:e5,diagram:t}},"loader"),e4={id:e5,detector:e6,loader:e8},e9="railroadEbnf",e7=(0,h.K)(t=>/^\s*railroad-ebnf-beta/i.test(t),"detector"),rt=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(6358),r.e(9321),r.e(4624),r.e(9580)]).then(r.bind(r,9580));return{id:e9,diagram:t}},"loader"),re={id:e9,detector:e7,loader:rt},rr="railroadAbnf",rn=(0,h.K)(t=>/^\s*railroad-abnf-beta/i.test(t),"detector"),ri=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(6358),r.e(9321),r.e(4624),r.e(8618)]).then(r.bind(r,68618));return{id:rr,diagram:t}},"loader"),ra={id:rr,detector:rn,loader:ri},ro="railroadPeg",rs=(0,h.K)(t=>/^\s*railroad-peg-beta/i.test(t),"detector"),rl=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(6358),r.e(9321),r.e(4624),r.e(4174)]).then(r.bind(r,44174));return{id:ro,diagram:t}},"loader"),rc={id:ro,detector:rs,loader:rl},ru=!1,rh=(0,h.K)(()=>{ru||(ru=!0,(0,c.Js)("error",t3,t=>"error"===t.toLowerCase().trim()),(0,c.Js)("---",{db:{clear:(0,h.K)(()=>{},"clear")},styles:{},renderer:{draw:(0,h.K)(()=>{},"draw")},parser:{parse:(0,h.K)(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:(0,h.K)(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),(0,c.Xd)(t4,ea,eR),(0,c.Xd)(W,ec,tB,tI,to,tp,tb,tx,tL,tj,ta,te,V,ee,tu,tV,tW,t1,tv,ed,ey,tT,eM,eN,e$,ew,eU,eG,e4,re,ra,rc,eH,eJ,e3))},"addDiagrams"),rf=(0,h.K)(async()=>{u.R.debug("Loading registered diagrams");let t=(await Promise.allSettled(Object.entries(c.mW).map(async([t,{detector:e,loader:r}])=>{if(r)try{(0,c.Gs)(t)}catch{try{let{diagram:t,id:n}=await r();(0,c.Js)(n,t,e)}catch(e){throw u.R.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete c.mW[t],e}}}))).filter(t=>"rejected"===t.status);if(t.length>0){for(let e of(u.R.error(`Failed to load ${t.length} external diagrams`),t))u.R.error(e);throw Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams");function rd(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function rp(t,e,r,n){if(void 0!==t.insert){if(r){let e=`chart-desc-${n}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(r)}if(e){let r=`chart-title-${n}`;t.attr("aria-labelledby",r),t.insert("title",":first-child").attr("id",r).text(e)}}}(0,h.K)(rd,"setA11yDiagramInfo"),(0,h.K)(rp,"addSVGa11yTitleDescription");var rg=class t{constructor(t,e,r,n,i){this.type=t,this.text=e,this.db=r,this.parser=n,this.renderer=i}static{(0,h.K)(this,"Diagram")}static async fromText(e,r={}){let n=(0,c.zj)(),i=(0,c.Ch)(e,n);e=(0,l.C4)(e)+"\n";try{(0,c.Gs)(i)}catch{let t=(0,c.J$)(i);if(!t)throw new c.C0(`Diagram ${i} not found.`);let{id:e,diagram:r}=await t();(0,c.Js)(e,r)}let{db:a,parser:o,renderer:s,init:u}=(0,c.Gs)(i);return o.parser&&(o.parser.yy=a),a.clear?.(),u?.(n),r.title&&a.setDiagramTitle?.(r.title),await o.parse(e),new t(i,e,a,o,s)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},rm=[],ry=(0,h.K)(()=>{rm.forEach(t=>{t()}),rm=[]},"attachFunctions"),rb=(0,h.K)(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function rx(t){let e=t.match(c.EJ);if(!e)return{text:t,metadata:{}};let r=e[1],n=r?e[2].split("\n").map(t=>t.startsWith(r)?t.slice(r.length):t).join("\n"):e[2],i=(0,a.H)(n,{schema:a.r})??{};i="object"!=typeof i||Array.isArray(i)?{}:i;let o={};return i.displayMode&&(o.displayMode=i.displayMode.toString()),i.title&&(o.title=i.title.toString()),i.config&&(o.config=i.config),{text:t.slice(e[0].length),metadata:o}}(0,h.K)(rx,"extractFrontMatter");var r_=(0,h.K)(t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),rw=(0,h.K)(t=>{let{text:e,metadata:r}=rx(t),{displayMode:n,title:i,config:a={}}=r;return n&&(a.gantt||(a.gantt={}),a.gantt.displayMode=n),{title:i,config:a,text:e}},"processFrontmatter"),rk=(0,h.K)(t=>{let e=l._K.detectInit(t)??{},r=l._K.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:t})=>"wrap"===t):r?.type==="wrap"&&(e.wrap=!0),{text:(0,l.vU)(t),directive:e}},"processDirectives");function rv(t){let e=rw(r_(t)),r=rk(e.text),n=(0,l.$t)(e.config,r.directive);return{code:t=rb(r.text),title:e.title,config:n}}function rA(t){return btoa(Array.from(new TextEncoder().encode(t),t=>String.fromCodePoint(t)).join(""))}(0,h.K)(rv,"preprocessDiagram"),(0,h.K)(rA,"toBase64");var rM=["foreignobject"],rS=["dominant-baseline"];function rT(t){let e=rv(t);return(0,c.cL)(),(0,c.xA)(e.config??{}),e}async function rC(t,e){rh();try{let{code:e,config:r}=rT(t);return{diagramType:(await rF(e)).type,config:r}}catch(t){if(e?.suppressErrors)return!1;throw t}}(0,h.K)(rT,"processAndSetConfigs"),(0,h.K)(rC,"parse");var r$=(0,h.K)((t,e,r=[])=>{let n=(0,c.Df)(`{ ${r.join(" !important; ")} !important; }`);return`.${t} ${e} ${n}`},"cssImportantStyles"),rO=(0,h.K)((t,e=new Map)=>{let r=new CSSStyleSheet;if(void 0!==t.fontFamily&&r.insertRule(`:root { --mermaid-font-family: ${t.fontFamily}}`,r.cssRules.length),void 0!==t.altFontFamily&&r.insertRule(`:root { --mermaid-alt-font-family: ${t.altFontFamily}}`,r.cssRules.length),e instanceof Map){let n=(0,c.E)(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(t=>{q(t.styles)||n.forEach(e=>{r.insertRule(r$(t.id,e,t.styles),r.cssRules.length)}),q(t.textStyles)||r.insertRule(r$(t.id,"tspan",(t?.textStyles||[]).map(t=>t.replace("color","fill"))),r.cssRules.length)})}let n="";if(void 0!==t.themeCSS)if("function"==typeof r.replaceSync){let e=new CSSStyleSheet;e.replaceSync(t.themeCSS),n=(0,c.KG)(e)+"\n"}else n+=`${t.themeCSS} -`;return n+(0,c.KG)(r)},"createCssStyles"),rL=(0,h.K)((t,e)=>S(function(t){var e,r;return r=function t(e,r,n,i,a,o,s,l,c){for(var u,h,f,d,g=0,m=0,y=s,b=0,x=0,S=0,T=1,O=1,U=1,z=0,B=0,Y="",H=a,q=o,W=i,X=Y;O;)switch(S=B,B=j()){case 40:108!=S&&58==k(X,y-1)?(z++,X+="("):X+=P(B);break;case 41:z--,X+=")";break;case 34:case 39:case 91:X+=P(B);break;case 9:case 10:case 13:case 32:if(z>0){X+=_(B);break}X+=function(t){for(;E=D();)if(E<33)j();else break;return N(t)>2||N(E)>3?"":" "}(S);break;case 92:X+=function(t,e){for(var r;--e&&j()&&!(E<48)&&!(E>102)&&(!(E>57)||!(E<65))&&(!(E>70)||!(E<97)););return r=L+(e<6&&32==D()&&32==j()),v(R,t,r)}(L-1,7);continue;case 47:switch(D()){case 42:case 47:M((u=function(t,e){for(;j();)if(t+E===57)break;else if(t+E===84&&47===D())break;return"/*"+v(R,e,L-1)+"*"+_(47===t?t:j())}(j(),L),h=r,f=n,d=c,K(u,h,f,p,_(E),v(u,2,-2),0,d)),c),(5==N(S||1)||5==N(D()||1))&&A(X)&&" "!==v(X,-1,void 0)&&(X+=" ");break;default:X+="/"}break;case 123*T:l[g++]=A(X)*U;case 125*T:case 59:case 0:if(z>0&&B){X+=_(B);break}switch(B){case 0:case 125:O=0;case 59+m:-1==U&&(X=w(X,/\f/g,"")),x>0&&(A(X)-y||0===T)&&M(x>32?F(X+";",i,n,y-1,c):F(w(X," ","")+";",i,n,y-2,c),c);break;case 59:X+=";";default:if(M(W=I(X,r,n,g,m,a,l,Y,H=[],q=[],y,o),o),123===B)if(0===m)t(X,r,W,W,H,o,y,l,q);else{switch(b){case 99:if(110===k(X,3))break;case 108:if(97===k(X,2))break;default:m=0;case 100:case 109:case 115:}m?t(e,W,W,i&&M(I(e,W,W,0,0,a,l,Y,a,H=[],y,q),q),a,q,y,l,i?H:q):t(X,W,W,W,[""],q,0,l,q)}}g=m=x=0,T=U=1,Y=X="",y=s;break;case 58:y=1+A(X),x=S;default:if(T<1){if(123==B)--T;else if(125==B&&0==T++&&125==(E=L>0?k(R,--L):0,$--,10===E&&($=1,C--),E))continue}switch(X+=_(B),B*T){case 38:U=m>0?1:(X+="\f",-1);break;case 44:if(z>0)break;l[g++]=(A(X)-1)*U,U=1;break;case 64:45===D()&&(X+=P(j())),b=D(),m=y=A(Y=X+=function(t){for(;!N(D());)j();return v(R,t,L)}(L)),B++;break;case 45:45===S&&2==A(X)&&(T=0)}}return o}("",null,null,null,[""],(e=t,C=$=1,O=A(R=e),L=0,t=[]),0,[0],t),R="",r}(`${t}{${e}}`),function(t){var e=t.length;return function(r,n,i,a){for(var o="",s=0;sr===t&&Array.isArray(e.children)&&e.children.every(t=>"decl"===t.type&&new Set(["font-family","font-size","fill"]).has(t.props))||(r.startsWith(`${t} `)||r.startsWith(`${t}>`))&&!r.startsWith(`${t} ||`)?r:`${t} ${r}`)):e.type.startsWith("@")&&(["@media","@supports",b,"@scope","@container","@starting-style",y].includes(e.type)||(u.R.warn(`Removing unsupported at-rule ${e.type} from CSS`),e.type=p))},"addNamespace"),T])),"compileCSS"),rE=(0,h.K)((t,e,r,n)=>{let i=rO(t,r),a=(0,c.tM)(e,i,{...t.themeVariables,theme:t.theme,look:t.look},n);return rL(n,a)},"createUserStyles"),rR=(0,h.K)((t="",e,r)=>{let n=t;return r||e||(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=(n=(0,l.Sm)(n)).replace(/
/g,"
")},"cleanUpSvgCode"),rK=(0,h.K)((t="",e)=>{let r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":"100%",n=rA(`${t}`);return``},"putIntoIFrame"),rj=(0,h.K)((t,e,r,n,i)=>{let a=t.append("div");a.attr("id",r),n&&a.attr("style",n);let o=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&o.attr("xmlns:xlink",i),o.append("g"),t},"appendDivSvgG");function rD(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,h.K)(rD,"sandboxedIframe");var rN=(0,h.K)((t,e,r,n)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(n)?.remove()},"removeExistingElements"),rP=(0,h.K)(async function(t,e,r){let n,i;rh();let a=rT(e);e=a.code;let o=(0,c.zj)();u.R.debug(o),e.length>(o?.maxTextSize??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let s=`#${t}`,l="i"+t,f="#"+l,p="d"+t,g="#"+p,m=(0,h.K)(()=>{let t=b?f:g,e=(0,d.Ltv)(t).node();e&&"remove"in e&&e.remove()},"removeTempElements"),y=(0,d.Ltv)(document.body),b="sandbox"===o.securityLevel,x="loose"===o.securityLevel,_=o.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),b){let t=rD((0,d.Ltv)(r),l);(y=(0,d.Ltv)(t.nodes()[0].contentDocument.body)).node().style.margin="0"}else y=(0,d.Ltv)(r);rj(y,t,p,`font-family: ${_}`,"http://www.w3.org/1999/xlink")}else{if(rN(document,t,p,l),b){let t=rD((0,d.Ltv)(document.body),l);(y=(0,d.Ltv)(t.nodes()[0].contentDocument.body)).node().style.margin="0"}else y=(0,d.Ltv)("body");rj(y,t,p)}try{n=await rg.fromText(e,{title:a.title})}catch(t){if(o.suppressErrorRendering)throw m(),t;n=await rg.fromText("error"),i=t}let w=y.select(g).node(),k=n.type,v=w.firstChild,A=v.firstChild,M=rE(o,k,n.renderer.getClasses?.(e,n),s),S=document.createElement("style");S.innerHTML=M,v.insertBefore(S,A);try{await n.renderer.draw(e,t,"11.17.2",n)}catch(r){throw o.suppressErrorRendering?m():t2.draw(e,t,"11.17.2"),r}let T=y.select(`${g} svg`);rU(k,T,n.db.getAccTitle?.(),n.db.getAccDescription?.());let C=(0,h.K)(()=>{y.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let e=y.select(g).node().innerHTML;return u.R.debug("config.arrowMarkerAbsolute",o.arrowMarkerAbsolute),e=rR(e,b,(0,c._3)(o.arrowMarkerAbsolute)),b?e=rK(e,y.select(g+" svg").node()):x||(e=U.A.sanitize(e,{ADD_TAGS:rM,ADD_ATTR:rS,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),ry(),e},"serializeSvg")();if(i)throw i;return m(),{diagramType:k,svg:C,bindFunctions:n.db.bindFunctions}},"render");function rI(t={}){let e=(0,c.hH)({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),(0,c.wZ)(e),e?.theme&&e.theme in c.H$?e.themeVariables=c.H$[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=c.H$.default.getThemeVariables(e.themeVariables));let r="object"==typeof e?(0,c.UU)(e):(0,c.Q2)();(0,u.H)(r.logLevel),rh()}(0,h.K)(rI,"initialize");var rF=(0,h.K)((t,e={})=>{let{code:r}=rv(t);return rg.fromText(r,e)},"getDiagramFromText");function rU(t,e,r,n){rd(e,t),rp(e,r,n,e.attr("id"))}(0,h.K)(rU,"addA11yInfo");var rz=Object.freeze({render:rP,parse:rC,getDiagramFromText:rF,initialize:rI,getConfig:c.zj,setConfig:c.Nk,getSiteConfig:c.Q2,updateSiteConfig:c.B6,reset:(0,h.K)(()=>{(0,c.cL)()},"reset"),globalReset:(0,h.K)(()=>{(0,c.cL)(c.sb)},"globalReset"),defaultConfig:c.sb});(0,u.H)((0,c.zj)().logLevel),(0,c.cL)((0,c.zj)());var rB=(0,h.K)((t,e,r)=>{u.R.warn(t),(0,l.dq)(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),rY=(0,h.K)(async function(t={querySelector:".mermaid"}){try{await rH(t)}catch(e){if((0,l.dq)(e)&&u.R.error(e.str),r3.parseError&&r3.parseError(e),!t.suppressErrors)throw u.R.error("Use the suppressErrors option to suppress these errors"),e}},"run"),rH=(0,h.K)(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){let n,i,a=rz.getConfig();if(u.R.debug(`${!t?"No ":""}Callback function found`),r)n=r;else if(e)n=document.querySelectorAll(e);else throw Error("Nodes and querySelector are both undefined");u.R.debug(`Found ${n.length} diagrams`),a?.startOnLoad!==void 0&&(u.R.debug("Start On Load: "+a?.startOnLoad),rz.updateSiteConfig({startOnLoad:a?.startOnLoad}));let o=new l._K.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),s=[];for(let e of Array.from(n)){if(u.R.info("Rendering diagram: "+e.id),e.getAttribute("data-processed"))continue;e.setAttribute("data-processed","true");let r=`mermaid-${o.next()}`;i=e.innerHTML,i=(0,f.T)(l._K.entityDecode(i)).trim().replace(//gi,"
");let n=l._K.detectInit(i);n&&u.R.debug("Detected early reinit: ",n);try{let{svg:n,bindFunctions:a}=await r1(r,i,e);e.innerHTML=n,t&&await t(r),a&&a(e)}catch(t){rB(t,s,r3.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),rq=(0,h.K)(function(t){rz.initialize(t)},"initialize"),rW=(0,h.K)(async function(t,e,r){u.R.warn("mermaid.init is deprecated. Please use run instead."),t&&rq(t);let n={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof e?n.querySelector=e:e&&(e instanceof HTMLElement?n.nodes=[e]:n.nodes=e),await rY(n)},"init"),rX=(0,h.K)(async(t,{lazyLoad:e=!0}={})=>{rh(),(0,c.Xd)(...t),!1===e&&await rf()},"registerExternalDiagrams"),rG=(0,h.K)(function(){if(r3.startOnLoad){let{startOnLoad:t}=rz.getConfig();t&&r3.run().catch(t=>u.R.error("Mermaid failed to initialize",t))}},"contentLoaded");"undefined"!=typeof document&&window.addEventListener("load",rG,!1);var rZ=(0,h.K)(function(t){r3.parseError=t},"setParseErrorHandler"),rV=[],rQ=!1,rJ=(0,h.K)(async()=>{if(!rQ){for(rQ=!0;rV.length>0;){let t=rV.shift();if(t)try{await t()}catch(t){u.R.error("Error executing queue",t)}}rQ=!1}},"executeQueue"),r0=(0,h.K)(async(t,e)=>new Promise((r,n)=>{let i=(0,h.K)(()=>new Promise((i,a)=>{rz.parse(t,e).then(t=>{i(t),r(t)},t=>{u.R.error("Error parsing",t),r3.parseError?.(t),a(t),n(t)})}),"performCall");rV.push(i),rJ().catch(n)}),"parse"),r1=(0,h.K)((t,e,r)=>new Promise((n,i)=>{let a=(0,h.K)(()=>new Promise((a,o)=>{rz.render(t,e,r).then(t=>{a(t),n(t)},t=>{u.R.error("Error parsing",t),r3.parseError?.(t),o(t),i(t)})}),"performCall");rV.push(a),rJ().catch(i)}),"render"),r2=(0,h.K)(()=>Object.keys(c.mW).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),r3={startOnLoad:!0,mermaidAPI:rz,parse:r0,render:r1,init:rW,run:rY,registerExternalDiagrams:rX,registerLayoutLoaders:o.sO,initialize:rq,parseError:void 0,contentLoaded:rG,setParseErrorHandler:rZ,detectType:c.Ch,registerIconPacks:s.pC,getRegisteredDiagramsMetadata:r2},r5=r3},68177:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(5631),i=r(16959),a=r(70754),o=r(4286),s=r(74749),l=r(54578);let c=function(t,e,r){e=(0,n.A)(e,t);for(var c=-1,u=e.length,h=!1;++c{"use strict";r.d(e,{A:()=>n});let n=function(t,e){for(var r=-1,n=e.length,i=t.length;++r{"use strict";function n(t){for(var e=[],r=1;rn})},68450:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(25866),i=r(70897);let a=(t,e)=>{let r=i.A.parse(t);for(let t in e)r[t]=n.A.channel.clamp[t](e[t]);return i.A.stringify(r)}},68550:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=r(73986).A.Symbol},70297:(t,e,r)=>{"use strict";r.d(e,{B:()=>f,OS:()=>T,QV:()=>j,dc:()=>M,ju:()=>m,n5:()=>K,nf:()=>D,sc:()=>O,sv:()=>p,xY:()=>R});var n=r(48734),i=r(11232),a=r(13031),o=r(69981),s=r(13892),l=r(69301),c=r(98999),u=r(91158),h=r(31990);function f(t,{edgePathsClass:e="edges edgePaths"}={}){let r=t.insert("g").attr("class","root"),n=r.insert("g").attr("class","clusters"),i=r.insert("g").attr("class",e);return{clusters:n,edgePaths:i,edgeLabels:r.insert("g").attr("class","edgeLabels"),nodes:r.insert("g").attr("class","nodes"),rootGroups:r}}async function d(t,e){if(e.label){let{shapeSvg:r,bbox:n}=await (0,o.Zk)(t,e);e.labelBBox={width:n.width,height:n.height},r.remove()}else e.labelBBox={width:0,height:0}}async function p(t,e,r){let n=await (0,a.on)(t,e,r),i=n.node()?.getBBox()??{width:0,height:0};return e.width=i.width,e.height=i.height,n}async function g(t,e){let n=new h.T({multigraph:!0,compound:!0}),a=[...e.edges],o=(0,l.D7)(),s=f(t),{edgeLabels:c,nodes:u}=s,g=new Map,m=null!=t.node();for(let t of(await Promise.all(e.nodes.map(async t=>{if(t.isGroup)m&&await d(u,t),n.setNode(t.id,{...t});else{if(m){let e=await p(u,t,{config:o,dir:t.dir});g.set(t.id,e)}n.setNode(t.id,{...t})}})),a))m&&(0,i.a6)(t)&&await (0,i.jP)(c,t),n.setEdge(t.start,t.end,{...t},t.id),e.edges.some(e=>e.id===t.id)||e.edges.push(t);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:n}=await r.e(4835).then(r.bind(r,34835));n(t,e)}return{graph:n,groups:s,nodeElements:g}}(0,u.K)(f,"createLayoutElementGroups"),(0,u.K)(d,"measureGroupLabel"),(0,u.K)(p,"insertMeasuredNode"),(0,u.K)(g,"createGraphWithElements");var m=new Map,y=new Map,b=new Map,x=(0,u.K)(()=>{y.clear(),b.clear(),m.clear()},"clear"),_=(0,u.K)((t,e)=>{let r=y.get(e)||[];return c.R.trace("In isDescendant",e," ",t," = ",r.includes(t)),r.includes(t)},"isDescendant"),w=(0,u.K)((t,e)=>{let r=y.get(e)||[];return c.R.info("Descendants of ",e," is ",r),c.R.info("Edge is ",t),t.v!==e&&t.w!==e&&(r?r.includes(t.v)||_(t.v,e)||_(t.w,e)||r.includes(t.w):(c.R.debug("Tilt, ",e,",not in descendants"),!1))},"edgeInCluster"),k=(0,u.K)((t,e,r,n)=>{c.R.debug("Copying children of ",t,"root",n,"data",e.node(t),n);let i=e.children(t)||[];t!==n&&i.push(t),c.R.debug("Copying (nodes) clusterId",t,"nodes",i),i.forEach(i=>{if(e.children(i).length>0)k(i,e,r,n);else{let a=e.node(i);c.R.info("cp ",i," to ",n," with parent ",t),r.setNode(i,a),n!==e.parent(i)&&(c.R.debug("Setting parent",i,e.parent(i)),r.setParent(i,e.parent(i))),t!==n&&i!==t?(c.R.debug("Setting parent",i,t),r.setParent(i,t)):(c.R.info("In copy ",t,"root",n,"data",e.node(t),n),c.R.debug("Not Setting parent for node=",i,"cluster!==rootId",t!==n,"node!==clusterId",i!==t));let o=e.edges(i);c.R.debug("Copying Edges",o),o.forEach(i=>{c.R.info("Edge",i);let a=e.edge(i.v,i.w,i.name);c.R.info("Edge data",a,n);try{w(i,n)?(c.R.info("Copying as ",i.v,i.w,a,i.name),r.setEdge(i.v,i.w,a,i.name),c.R.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):c.R.info("Skipping copy of edge ",i.v,"--\x3e",i.w," rootId: ",n," clusterId:",t)}catch(t){c.R.error(t)}})}c.R.debug("Removing node",i),e.removeNode(i)})},"copy"),v=(0,u.K)((t,e)=>{let r=e.children(t),n=[...r];for(let i of r)b.set(i,t),n=[...n,...v(i,e)];return n},"extractDescendants"),A=(0,u.K)((t,e,r)=>{let n=t.edges().filter(t=>t.v===e||t.w===e),i=t.edges().filter(t=>t.v===r||t.w===r),a=n.map(t=>({v:t.v===e?r:t.v,w:t.w===e?e:t.w})),o=i.map(t=>({v:t.v,w:t.w}));return a.filter(t=>o.some(e=>t.v===e.v&&t.w===e.w))},"findCommonEdges"),M=(0,u.K)((t,e,r)=>{let n,i=e.children(t);if(c.R.trace("Searching children of id ",t,i),i.length<1)return t;for(let t of i){let i=M(t,e,r),a=A(e,r,i);if(i)if(!(a.length>0))return i;else n=i}return n},"findNonClusterChild"),S=(0,u.K)(t=>m.has(t)&&m.get(t).externalConnections&&m.has(t)?m.get(t).id:t,"getAnchorId"),T=(0,u.K)((t,e)=>{if(!t||e>10)return void c.R.debug("Opting out, no graph ");for(let e of(c.R.debug("Opting in, graph "),t.nodes().forEach(function(e){t.children(e).length>0&&(c.R.debug("Cluster identified",e," Replacement id in edges: ",M(e,t,e)),y.set(e,v(e,t)),m.set(e,{id:M(e,t,e),clusterData:t.node(e)}))}),t.nodes().forEach(function(e){let r=t.children(e),n=t.edges();r.length>0?(c.R.debug("Cluster identified",e,y),n.forEach(t=>{_(t.v,e)^_(t.w,e)&&(c.R.debug("Edge: ",t," leaves cluster ",e),c.R.debug("Descendants of XXX ",e,": ",y.get(e)),m.get(e).externalConnections=!0)})):c.R.debug("Not a cluster ",e,y)}),m.keys())){let r=m.get(e).id,n=t.parent(r);n!==e&&m.has(n)&&!m.get(n).externalConnections&&(m.get(e).id=n);let i=t.edges().some(t=>t.v===e);if(r&&m.get(e)?.externalConnections&&i&&L(t,r,e)){let n=E(t,e,t.parent(r));n&&(m.get(e).id=n)}}t.edges().forEach(function(e){let r=t.edge(e);c.R.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),c.R.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t.edge(e)));let n=e.v,i=e.w;if(c.R.debug("Fix XXX",m,"ids:",e.v,e.w,"Translating: ",m.get(e.v)," --- ",m.get(e.w)),m.get(e.v)||m.get(e.w)){if(c.R.debug("Fixing and trying - removing XXX",e.v,e.w,e.name),n=S(e.v),i=S(e.w),t.removeEdge(e.v,e.w,e.name),n!==e.v){let i=t.parent(n);m.get(i).externalConnections=!0,r.fromCluster=e.v}if(i!==e.w){let n=t.parent(i);m.get(n).externalConnections=!0,r.toCluster=e.w}c.R.debug("Fix Replacing with XXX",n,i,e.name),t.setEdge(n,i,r,e.name)}}),C(t,0),c.R.trace(m)},"adjustClustersAndEdges"),C=(0,u.K)((t,e)=>{if(e>10)return void c.R.error("Bailing out");let r=t.nodes(),n=!1;for(let e of r){let r=t.children(e);n=n||r.length>0}if(!n)return void c.R.debug("Done, no node has children",t.nodes());for(let n of(c.R.debug("Nodes = ",r,e),r))if(c.R.debug("Extracting node",n,m,m.has(n)&&!m.get(n).externalConnections,!t.parent(n),t.node(n),t.children("D")," Depth ",e),m.has(n))if(!m.get(n).externalConnections&&t.children(n)&&t.children(n).length>0){c.R.debug("Cluster without external connections, without a parent and with children",n,e);let r="TB"===t.graph().rankdir?"LR":"TB";m.get(n)?.clusterData?.dir&&(r=m.get(n).clusterData.dir,c.R.debug("Fixing dir",m.get(n).clusterData.dir,r));let i=new h.T({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});k(n,t,i,n),t.setNode(n,{clusterNode:!0,id:n,clusterData:m.get(n).clusterData,label:m.get(n).label,graph:i})}else c.R.debug("Cluster ** ",n," **not meeting the criteria !externalConnections:",!m.get(n).externalConnections," no parent: ",!t.parent(n)," children ",t.children(n)&&t.children(n).length>0,t.children("D"),e),c.R.debug(m);else c.R.debug("Not a cluster",n,e);for(let n of(r=t.nodes(),c.R.debug("New list of nodes",r),r)){let r=t.node(n);c.R.debug(" Now next level",n,r),r?.clusterNode&&C(r.graph,e+1)}},"extractor"),$=(0,u.K)((t,e)=>{if(0===e.length)return[];let r=Object.assign([],e);return e.forEach(e=>{let n=t.children(e),i=$(t,n);r=[...r,...i]}),r},"sorter"),O=(0,u.K)(t=>$(t,t.children()),"sortNodesByHierarchy"),L=(0,u.K)((t,e,r)=>{let n=t.parent(e);for(;n&&n!==r;){let e=m.get(n);if(e&&!e.externalConnections)return!0;n=t.parent(n)}return!1},"isNodeInExtractableCluster"),E=(0,u.K)((t,e,r)=>{for(let n of t.children(e)??[]){if(n===r||_(n,r))continue;let i=M(n,t,e);if(i&&!L(t,i,e))return i}return null},"findSafeAnchorNode");function R({prepareLayout:t,measureLayout:e,runLayoutCore:r,paintLayout:n,afterPaint:a,paintOptions:o}){let s=e??j;return(0,u.K)(async function(e,l,c,u){let h=l.select("g");(c?.insertMarkers??i.g0)(h,e.markers,e.type,e.diagramId),K();let f={element:h,helpers:c,options:u};f.preparedLayout=await t?.(e,f);let d=await s(e,f),p=await r(e,f),g={...f,measure:d};n?await n(e,g,p):await D(e,g,o),await a?.(e,g,p)},"render")}function K(){(0,a.IU)(),(0,i.IU)(),(0,n.I)(),x()}async function j(t,{element:e}){return await g(e,t)}async function D(t,e,r={}){let{measure:n}=e,{groups:i}=n;for(let n of r.getNodes?.(t,e)??t.nodes)r.skipNode?.(n,e)||await N(i,n,e,r);let a=I(t.nodes);for(let n of t.edges)F(n,r)||await U(i,n,a,t,r,e)}async function N(t,e,r,i){e.clusterNode?(0,a.U_)(e):P(e,r,i)?await (0,n.U)(t.clusters,e):(0,a.U_)(e)}function P(t,e,r){return!0===t.isGroup&&(r.isCluster?.(t,e)??!0)}function I(t){let e=new Map;for(let r of t)r?.id&&e.set(r.id,r);return e}function F(t,e){return t.isLayoutOnly||!!e.skipEdge?.(t)}async function U(t,e,r,n,a,o){let s=(0,i.Jo)(t.edgePaths,{...e},a.clusterDb??new Map,n.type,z(e.start,e,r,o,a),z(e.end,e,r,o,a),n.diagramId,B(e,a));(0,i.a6)(e)&&(i.lP.has(e.id)||await (0,i.jP)(t.edgeLabels,e),Y(e,s))}function z(t,e,r,n,i){return i.getEdgeNode?.(t,e,n)??(t?r.get(t)??{}:{})}function B(t,e){return"function"==typeof e.skipIntersect?e.skipIntersect(t):e.skipIntersect??!1}function Y(t,e){let r=e?.updatedPath??e?.originalPath,n=(0,l.zj)(),{subGraphTitleTotalMargin:o}=(0,a.Oi)({flowchart:n.flowchart??{}});if(t.label){let n=i.lP.get(t.id),a=t.x,l=t.y;if(r){let n=s._K.calcLabelPosition(r);c.R.debug("Moving label "+t.label+" from (",a,",",l,") to (",n.x,",",n.y,") abc88"),e?.updatedPath&&(a=n.x,l=n.y)}n.attr("transform",`translate(${a}, ${l+o/2})`)}if(t?.startLabelLeft){let e=i.UQ.get(t.id).startLeft,n=t?.x,a=t?.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_left",r);n=e.x,a=e.y}e.attr("transform",`translate(${n}, ${a})`)}if(t.startLabelRight){let e=i.UQ.get(t.id).startRight,n=t.x,a=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_right",r);n=e.x,a=e.y}e.attr("transform",`translate(${n}, ${a})`)}if(t.endLabelLeft){let e=i.UQ.get(t.id).endLeft,n=t.x,a=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_left",r);n=e.x,a=e.y}e.attr("transform",`translate(${n}, ${a})`)}if(t.endLabelRight){let e=i.UQ.get(t.id).endRight,n=t.x,a=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_right",r);n=e.x,a=e.y}e.attr("transform",`translate(${n}, ${a})`)}}(0,u.K)(R,"createCommonLayoutRenderer"),(0,u.K)(K,"clearLayoutRenderState"),(0,u.K)(j,"defaultMeasureLayout"),(0,u.K)(D,"paintLayoutData"),(0,u.K)(N,"paintLayoutNode"),(0,u.K)(P,"shouldPaintAsCluster"),(0,u.K)(I,"buildNodeLookup"),(0,u.K)(F,"shouldSkipPaintEdge"),(0,u.K)(U,"paintLayoutEdge"),(0,u.K)(z,"getRenderedNode"),(0,u.K)(B,"shouldSkipIntersect"),(0,u.K)(Y,"positionRenderedEdgeLabel")},70668:(t,e,r)=>{"use strict";function n(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r=i)&&(r=i)}return r}function i(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function a(t){return t}function o(t){return"translate("+t+",0)"}function s(t){return"translate(0,"+t+")"}function l(){return!this.__axis}function c(t,e){var r=[],n=null,i=null,c=6,u=6,h=3,f="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,d=1===t||4===t?-1:1,p=4===t||2===t?"x":"y",g=1===t||3===t?o:s;function m(o){var s=null==n?e.ticks?e.ticks.apply(e,r):e.domain():n,m=null==i?e.tickFormat?e.tickFormat.apply(e,r):a:i,y=Math.max(c,0)+h,b=e.range(),x=+b[0]+f,_=+b[b.length-1]+f,w=(e.bandwidth?function(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}:function(t){return e=>+t(e)})(e.copy(),f),k=o.selection?o.selection():o,v=k.selectAll(".domain").data([null]),A=k.selectAll(".tick").data(s,e).order(),M=A.exit(),S=A.enter().append("g").attr("class","tick"),T=A.select("line"),C=A.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(S),T=T.merge(S.append("line").attr("stroke","currentColor").attr(p+"2",d*c)),C=C.merge(S.append("text").attr("fill","currentColor").attr(p,d*y).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),o!==k&&(v=v.transition(o),A=A.transition(o),T=T.transition(o),C=C.transition(o),M=M.transition(o).attr("opacity",1e-6).attr("transform",function(t){return isFinite(t=w(t))?g(t+f):this.getAttribute("transform")}),S.attr("opacity",1e-6).attr("transform",function(t){var e=this.parentNode.__axis;return g((e&&isFinite(e=e(t))?e:w(t))+f)})),M.remove(),v.attr("d",4===t||2===t?u?"M"+d*u+","+x+"H"+f+"V"+_+"H"+d*u:"M"+f+","+x+"V"+_:u?"M"+x+","+d*u+"V"+f+"H"+_+"V"+d*u:"M"+x+","+f+"H"+_),A.attr("opacity",1).attr("transform",function(t){return g(w(t)+f)}),T.attr(p+"2",d*c),C.attr(p,d*y).text(m),k.filter(l).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),k.each(function(){this.__axis=w})}return m.scale=function(t){return arguments.length?(e=t,m):e},m.ticks=function(){return r=Array.from(arguments),m},m.tickArguments=function(t){return arguments.length?(r=null==t?[]:Array.from(t),m):r.slice()},m.tickValues=function(t){return arguments.length?(n=null==t?null:Array.from(t),m):n&&n.slice()},m.tickFormat=function(t){return arguments.length?(i=t,m):i},m.tickSize=function(t){return arguments.length?(c=u=+t,m):c},m.tickSizeInner=function(t){return arguments.length?(c=+t,m):c},m.tickSizeOuter=function(t){return arguments.length?(u=+t,m):u},m.tickPadding=function(t){return arguments.length?(h=+t,m):h},m.offset=function(t){return arguments.length?(f=+t,m):f},m}function u(t){return c(1,t)}function h(t){return c(3,t)}function f(){}function d(t){return null==t?f:function(){return this.querySelector(t)}}function p(){return[]}function g(t){return null==t?p:function(){return this.querySelectorAll(t)}}function m(t){return function(){return this.matches(t)}}function y(t){return function(e){return e.matches(t)}}r.d(e,{JLW:()=>iW,l78:()=>h,tlR:()=>u,qrM:()=>i8,Yu4:()=>i9,IA3:()=>at,Wi0:()=>ar,PGM:()=>an,OEq:()=>aa,y8u:()=>al,olC:()=>au,IrU:()=>af,oDi:()=>ag,Q7f:()=>ay,cVp:()=>ax,lUB:()=>iZ,Lx9:()=>aw,nVG:()=>aC,uxU:()=>a$,Xf2:()=>aE,GZz:()=>aK,UPb:()=>aD,dyv:()=>aj,GPZ:()=>to,Sk5:()=>ez,bEH:()=>ra,n8j:()=>iJ,T9B:()=>n,jkA:()=>i,rLf:()=>i2,WH:()=>function t(){var e,r,n=rh().unknown(void 0),i=n.domain,a=n.range,o=0,s=1,l=!1,c=0,u=0,h=.5;function f(){var t=i().length,n=sfunction t(){var e,r=rE();return r.copy=function(){return rL(r,t())},ro.apply(r,arguments),e=r.domain,r.ticks=function(t){var r=e();return function(t,e,r){if(e*=1,t*=1,!((r*=1)>0))return[];if(t===e)return[t];let n=e=i))return[];let s=a-i+1,l=Array(s);if(n)if(o<0)for(let t=0;t0;){if((i=rm(l,c,t))===n)return a[o]=l,a[s]=c,e(a);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else if(i<0)l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i;else break;n=i}return r},r},UMr:()=>rh,w7C:()=>i_,zt:()=>iw,Ltv:()=>ik,UAC:()=>rz,DCK:()=>tc,TUC:()=>rV,Agd:()=>rF,t6C:()=>rD,wXd:()=>rP,ABi:()=>rW,Ui6:()=>r4,rGn:()=>rQ,ucG:()=>rN,YPH:()=>rq,Mol:()=>rZ,PGu:()=>rX,GuW:()=>rG,hkb:()=>eQ});var b=Array.prototype.find;function x(){return this.firstElementChild}var _=Array.prototype.filter;function w(){return Array.from(this.children)}function k(t){return Array(t.length)}function v(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function A(t,e,r,n,i,a){for(var o,s=0,l=e.length,c=a.length;se?1:t>=e?0:NaN}v.prototype={constructor:v,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var C="http://www.w3.org/1999/xhtml";let $={svg:"http://www.w3.org/2000/svg",xhtml:C,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function O(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),$.hasOwnProperty(e)?{space:$[e],local:t}:t}function L(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function E(t,e){return t.style.getPropertyValue(e)||L(t).getComputedStyle(t,null).getPropertyValue(e)}function R(t){return t.trim().split(/^|\s+/)}function K(t){return t.classList||new j(t)}function j(t){this._node=t,this._names=R(t.getAttribute("class")||"")}function D(t,e){for(var r=K(t),n=-1,i=e.length;++nthis._names.indexOf(t)&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Z=[null];function V(t,e){this._groups=t,this._parents=e}function Q(){return new V([[document.documentElement]],Z)}V.prototype=Q.prototype={constructor:V,select:function(t){"function"!=typeof t&&(t=d(t));for(var e=this._groups,r=e.length,n=Array(r),i=0;i=k&&(k=w+1);!(_=m[k])&&++k=0;)(n=i[a])&&(o&&4^n.compareDocumentPosition(o)&&o.parentNode.insertBefore(n,o),o=n);return this},sort:function(t){function e(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}t||(t=T);for(var r=this._groups,n=r.length,i=Array(n),a=0;a1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,r){return function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}}:function(t,e,r){return function(){this.style.setProperty(t,e,r)}})(t,e,null==r?"":r)):E(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var r=R(t+"");if(arguments.length<2){for(var n=K(this.node()),i=-1,a=r.length;++i=0&&(e=t.slice(r+1),t=t.slice(0,r)),{type:t,name:e}}),o=a.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,c=0,u=s.length;c{}};function tt(){for(var t,e=0,r=arguments.length,n={};e=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),a=-1,o=i.length;if(arguments.length<2){for(;++a0)for(var r,n,i=Array(r),a=0;a=0&&e._call.call(void 0,t),e=e._next;--tf}finally{tf=0,function(){for(var t,e,r=tu,n=1/0;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:tu=e);th=t,tS(n)}(),tm=0}}function tM(){var t=tb.now(),e=t-tg;e>1e3&&(ty-=e,tg=t)}function tS(t){!tf&&(td&&(td=clearTimeout(td)),t-tm>24?(t<1/0&&(td=setTimeout(tA,t-tb.now()-ty)),tp&&(tp=clearInterval(tp))):(tp||(tg=tb.now(),tp=setInterval(tM,1e3)),tf=1,tx(tA)))}function tT(t,e,r){var n=new tk;return e=null==e?0:+e,n.restart(r=>{n.stop(),t(r+e)},e,r),n}tk.prototype=tv.prototype={constructor:tk,restart:function(t,e,r){if("function"!=typeof t)throw TypeError("callback is not a function");r=(null==r?t_():+r)+(null==e?0:+e),this._next||th===this||(th?th._next=this:tu=this,th=this),this._call=t,this._time=r,tS()},stop:function(){this._call&&(this._call=null,this._time=1/0,tS())}};var tC=tt("start","end","cancel","interrupt"),t$=[];function tO(t,e,r,n,i,a){var o=t.__transition;if(o){if(r in o)return}else t.__transition={};!function(t,e,r){var n,i=t.__transition;function a(l){var c,u,h,f;if(1!==r.state)return s();for(c in i)if((f=i[c]).name===r.name){if(3===f.state)return tT(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c0)throw Error("too late; already scheduled");return r}function tE(t,e){var r=tR(t,e);if(r.state>3)throw Error("too late; already running");return r}function tR(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw Error("transition not found");return r}function tK(t,e){return t*=1,e*=1,function(r){return t*(1-r)+e*r}}var tj=180/Math.PI,tD={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tN(t,e,r,n,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*r+e*n)&&(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),t*n180?l+=360:l-s>180&&(s+=360),f.push({i:h.push(i(h)+"rotate(",null,n)-2,x:tK(s,l)})):l&&h.push(i(h)+"rotate("+l+n),c=a.skewX,u=o.skewX,c!==u?f.push({i:h.push(i(h)+"skewX(",null,n)-2,x:tK(c,u)}):u&&h.push(i(h)+"skewX("+u+n),!function(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:tK(t,r)},{i:s-2,x:tK(e,n)})}else(1!==r||1!==n)&&a.push(i(a)+"scale("+r+","+n+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,h,f),a=o=null,function(t){for(var e,r=-1,n=f.length;++r>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?t8(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?t8(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=tG.exec(t))?new t7(e[1],e[2],e[3],1):(e=tZ.exec(t))?new t7(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=tV.exec(t))?t8(e[1],e[2],e[3],e[4]):(e=tQ.exec(t))?t8(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=tJ.exec(t))?ea(e[1],e[2]/100,e[3]/100,1):(e=t0.exec(t))?ea(e[1],e[2]/100,e[3]/100,e[4]):t1.hasOwnProperty(t)?t6(t1[t]):"transparent"===t?new t7(NaN,NaN,NaN,0):null}function t6(t){return new t7(t>>16&255,t>>8&255,255&t,1)}function t8(t,e,r,n){return n<=0&&(t=e=r=NaN),new t7(t,e,r,n)}function t4(t){return(t instanceof tY||(t=t5(t)),t)?new t7((t=t.rgb()).r,t.g,t.b,t.opacity):new t7}function t9(t,e,r,n){return 1==arguments.length?t4(t):new t7(t,e,r,null==n?1:n)}function t7(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function et(){return`#${ei(this.r)}${ei(this.g)}${ei(this.b)}`}function ee(){let t=er(this.opacity);return`${1===t?"rgb(":"rgba("}${en(this.r)}, ${en(this.g)}, ${en(this.b)}${1===t?")":`, ${t})`}`}function er(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function en(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ei(t){return((t=en(t))<16?"0":"")+t.toString(16)}function ea(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new es(t,e,r,n)}function eo(t){if(t instanceof es)return new es(t.h,t.s,t.l,t.opacity);if(t instanceof tY||(t=t5(t)),!t)return new es;if(t instanceof es)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(o=e===a?(r-n)/s+(r0&&l<1?0:o,new es(o,s,l,t.opacity)}function es(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function el(t){return(t=(t||0)%360)<0?t+360:t}function ec(t){return Math.max(0,Math.min(1,t||0))}function eu(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}function eh(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}tz(tY,t5,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:t2,formatHex:t2,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return eo(this).formatHsl()},formatRgb:t3,toString:t3}),tz(t7,t9,tB(tY,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new t7(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new t7(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new t7(en(this.r),en(this.g),en(this.b),er(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:et,formatHex:et,formatHex8:function(){return`#${ei(this.r)}${ei(this.g)}${ei(this.b)}${ei((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:ee,toString:ee})),tz(es,function(t,e,r,n){return 1==arguments.length?eo(t):new es(t,e,r,null==n?1:n)},tB(tY,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new es(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new es(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new t7(eu(t>=240?t-240:t+120,i,n),eu(t,i,n),eu(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new es(el(this.h),ec(this.s),ec(this.l),er(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=er(this.opacity);return`${1===t?"hsl(":"hsla("}${el(this.h)}, ${100*ec(this.s)}%, ${100*ec(this.l)}%${1===t?")":`, ${t})`}`}}));let ef=t=>()=>t;function ed(t,e){return function(r){return t+r*e}}function ep(t,e){var r=e-t;return r?ed(t,r):ef(isNaN(t)?e:t)}let eg=function t(e){var r,n=1==(r=+e)?ep:function(t,e){var n,i,a;return e-t?(n=t,i=e,n=Math.pow(n,a=r),i=Math.pow(i,a)-n,a=1/a,function(t){return Math.pow(n+t*i,a)}):ef(isNaN(t)?e:t)};function i(t,e){var r=n((t=t9(t)).r,(e=t9(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=ep(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function em(t){return function(e){var r,n,i=e.length,a=Array(i),o=Array(i),s=Array(i);for(r=0;r=1?(r=1,e-1):Math.floor(r*e),i=t[n],a=t[n+1],o=n>0?t[n-1]:2*i-a,s=ns&&(o=e.slice(s,o),c[l]?c[l]+=o:c[++l]=o),(i=i[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,u.push({i:l,x:tK(i,a)})),s=eb.lastIndex;return s=0&&(t=t.slice(0,e)),!t||"start"===t})?tL:tE,function(){var t=s(this,r),e=t.on;e!==a&&(o=(a=e).copy()).on(n,i),t.on=o}))},attr:function(t,e){var r=O(t),n="transform"===r?tF:e_;return this.attrTween(t,"function"==typeof e?(r.local?function(t,e,r){var n,i,a;return function(){var o,s,l=r(this);return null==l?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:o===n&&s===i?a:(i=s,a=e(n=o,l))}}:function(t,e,r){var n,i,a;return function(){var o,s,l=r(this);return null==l?void this.removeAttribute(t):(o=this.getAttribute(t))===(s=l+"")?null:o===n&&s===i?a:(i=s,a=e(n=o,l))}})(r,n,tU(this,"attr."+t,e)):null==e?(r.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(r):(r.local?function(t,e,r){var n,i,a=r+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===n?i:i=e(n=o,r)}}:function(t,e,r){var n,i,a=r+"";return function(){var o=this.getAttribute(t);return o===a?null:o===n?i:i=e(n=o,r)}})(r,n,e))},attrTween:function(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw Error();var n=O(t);return this.tween(r,(n.local?function(t,e){var r,n;function i(){var i=e.apply(this,arguments);return i!==n&&(r=(n=i)&&function(e){this.setAttributeNS(t.space,t.local,i.call(this,e))}),r}return i._value=e,i}:function(t,e){var r,n;function i(){var i=e.apply(this,arguments);return i!==n&&(r=(n=i)&&function(e){this.setAttribute(t,i.call(this,e))}),r}return i._value=e,i})(n,e))},style:function(t,e,r){var n,i,a,o,s,l,c,u,h,f,d,p,g,m,y,b,x,_,w,k,v,A="transform"==(t+="")?tI:e_;return null==e?this.styleTween(t,(n=t,function(){var t=E(this,n),e=(this.style.removeProperty(n),E(this,n));return t===e?null:t===i&&e===a?o:o=A(i=t,a=e)})).on("end.style."+t,ek(t)):"function"==typeof e?this.styleTween(t,(s=t,l=tU(this,"style."+t,e),function(){var t=E(this,s),e=l(this),r=e+"";return null==e&&(this.style.removeProperty(s),r=e=E(this,s)),t===r?null:t===c&&r===u?h:(u=r,h=A(c=t,e))})).each((f=this._id,x="end."+(b="style."+(d=t)),function(){var t=tE(this,f),e=t.on,r=null==t.value[b]?y||(y=ek(d)):void 0;(e!==p||m!==r)&&(g=(p=e).copy()).on(x,m=r),t.on=g})):this.styleTween(t,(_=t,v=e+"",function(){var t=E(this,_);return t===v?null:t===w?k:k=A(w=t,e)}),r).on("end.style."+t,null)},styleTween:function(t,e,r){var n="style."+(t+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw Error();return this.tween(n,function(t,e,r){var n,i;function a(){var a=e.apply(this,arguments);return a!==i&&(n=(i=a)&&function(e){this.style.setProperty(t,a.call(this,e),r)}),n}return a._value=e,a}(t,e,null==r?"":r))},text:function(t){var e,r;return this.tween("text","function"==typeof t?(e=tU(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(r=null==t?"":t+"",function(){this.textContent=r}))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw Error();return this.tween(e,function(t){var e,r;function n(){var n=t.apply(this,arguments);return n!==r&&(e=(r=n)&&function(t){this.textContent=n.call(this,t)}),e}return n._value=t,n}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var n,i=tR(this.node(),r).tween,a=0,o=i.length;a2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete a[i]}o&&delete t.__transition}}(this,t)})},Q.prototype.transition=function(t){var e,r;t instanceof eA?(e=t._id,t=t._name):(e=++ev,(r=eS).time=t_(),t=null==t?null:t+"");for(var n=this._groups,i=n.length,a=0;a1?n[0]+n.slice(2):n,+t.slice(r+1)]}function eE(t){return(t=eL(Math.abs(t)))?t[1]:NaN}["w","e"].map(eO),["n","s"].map(eO),["n","w","e","s","nw","ne","sw","se"].map(eO);var eR=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function eK(t){var e;if(!(e=eR.exec(t)))throw Error("invalid format: "+t);return new ej({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function ej(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function eD(t,e){var r=eL(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+Array(i-n.length+2).join("0")}eK.prototype=ej.prototype,ej.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let eN={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>eD(100*t,e),r:eD,s:function(t,e){var r=eL(t,e);if(!r)return t+"";var n=r[0],i=r[1],a=i-(ti=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=n.length;return a===o?n:a>o?n+Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+Array(1-a).join("0")+eL(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function eP(t){return t}var eI=Array.prototype.map,eF=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function eU(t){var e=0,r=t.children,n=r&&r.length;if(n)for(;--n>=0;)e+=r[n].value;else e=1;t.value=e}function ez(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=eY)):void 0===e&&(e=eB);for(var r,n,i,a,o,s=new eW(t),l=[s];r=l.pop();)if((i=e(r.data))&&(o=(i=Array.from(i)).length))for(r.children=i,a=o-1;a>=0;--a)l.push(n=i[a]=new eW(i[a])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(eq)}function eB(t){return t.children}function eY(t){return Array.isArray(t)?t[1]:null}function eH(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function eq(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function eW(t){this.data=t,this.depth=this.height=0,this.parent=null}function eX(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}to=(ta=function(t){var e,r,n,i=void 0===t.grouping||void 0===t.thousands?eP:(e=eI.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var i=t.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(t.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(r)}),a=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?eP:(n=eI.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return n[+t]})}),c=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"−":t.minus+"",h=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=eK(t)).fill,r=t.align,n=t.sign,f=t.symbol,d=t.zero,p=t.width,g=t.comma,m=t.precision,y=t.trim,b=t.type;"n"===b?(g=!0,b="g"):eN[b]||(void 0===m&&(m=12),y=!0,b="g"),(d||"0"===e&&"="===r)&&(d=!0,e="0",r="=");var x="$"===f?a:"#"===f&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",_="$"===f?o:/[%p]/.test(b)?c:"",w=eN[b],k=/[defgprs%]/.test(b);function v(t){var a,o,c,f=x,v=_;if("c"===b)v=w(t)+v,t="";else{var A=(t*=1)<0||1/t<0;if(t=isNaN(t)?h:w(Math.abs(t),m),y&&(t=function(t){t:for(var e,r=t.length,n=1,i=-1;n0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),A&&0==+t&&"+"!==n&&(A=!1),f=(A?"("===n?n:u:"-"===n||"("===n?"":n)+f,v=("s"===b?eF[8+ti/3]:"")+v+(A&&"("===n?")":""),k){for(a=-1,o=t.length;++a(c=t.charCodeAt(a))||c>57){v=(46===c?s+t.slice(a+1):t.slice(a))+v,t=t.slice(0,a);break}}}g&&!d&&(t=i(t,1/0));var M=f.length+t.length+v.length,S=M>1)+f+t+v+S.slice(M);break;default:t=S+f+t+v}return l(t)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),v.toString=function(){return t+""},v}return{format:f,formatPrefix:function(t,e){var r=f(((t=eK(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(eE(e)/3))),i=Math.pow(10,-n),a=eF[8+n/3];return function(t){return r(i*t)+a}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,ts=ta.formatPrefix,eW.prototype=ez.prototype={constructor:eW,count:function(){return this.eachAfter(eU)},each:function(t,e){let r=-1;for(let n of this)t.call(e,n,++r,this);return this},eachAfter:function(t,e){for(var r,n,i,a=this,o=[a],s=[],l=-1;a=o.pop();)if(s.push(a),r=a.children)for(n=0,i=r.length;n=0;--n)a.push(r[n]);return this},find:function(t,e){let r=-1;for(let n of this)if(t.call(e,n,++r,this))return n},sum:function(t){return this.eachAfter(function(e){for(var r=+t(e.data)||0,n=e.children,i=n&&n.length;--i>=0;)r+=n[i].value;e.value=r})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,r=function(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;for(t=r.pop(),e=n.pop();t===e;)i=t,t=r.pop(),e=n.pop();return i}(e,t),n=[e];e!==r;)n.push(e=e.parent);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(r){r!==t&&e.push({source:r.parent,target:r})}),e},copy:function(){return ez(this).eachBefore(eH)},[Symbol.iterator]:function*(){var t,e,r,n,i=this,a=[i];do for(t=a.reverse(),a=[];i=t.pop();)if(yield i,e=i.children)for(r=0,n=e.length;rf&&(f=s),(d=Math.max(f/(m=u*u*g),m/h))>p){u-=s;break}p=d}y.push(o={value:u,dice:l1?e:1)},r}((1+Math.sqrt(5))/2);function eZ(){return 0}function eV(t){return function(){return t}}function eQ(){var t=eG,e=!1,r=1,n=1,i=[0],a=eZ,o=eZ,s=eZ,l=eZ,c=eZ;function u(t){return t.x0=t.y0=0,t.x1=r,t.y1=n,t.eachBefore(h),i=[0],e&&t.eachBefore(eX),t}function h(e){var r=i[e.depth],n=e.x0+r,u=e.y0+r,h=e.x1-r,f=e.y1-r;he5?Math.pow(t,1/3):t/e3+e1}function e9(t){return t>e2?t*t*t:e3*(t-e1)}function e7(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function rt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function re(t,e,r,n){return 1==arguments.length?function(t){if(t instanceof rr)return new rr(t.h,t.c,t.l,t.opacity);if(t instanceof e8||(t=e6(t)),0===t.a&&0===t.b)return new rr(NaN,0180||r<-180?r-360*Math.round(r/360):r):ef(isNaN(t)?e:t)});function ro(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}ri(ep);class rs extends Map{constructor(t,e=rc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(let[e,r]of t)this.set(e,r)}get(t){return super.get(rl(this,t))}has(t){return super.has(rl(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}(this,t))}}function rl({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):r}function rc(t){return null!==t&&"object"==typeof t?t.valueOf():t}let ru=Symbol("implicit");function rh(){var t=new rs,e=[],r=[],n=ru;function i(i){let a=t.get(i);if(void 0===a){if(n!==ru)return n;t.set(i,a=e.push(i)-1)}return r[a%r.length]}return i.domain=function(r){if(!arguments.length)return e.slice();for(let n of(e=[],t=new rs,r))t.has(n)||t.set(n,e.push(n)-1);return i},i.range=function(t){return arguments.length?(r=Array.from(t),i):r.slice()},i.unknown=function(t){return arguments.length?(n=t,i):n},i.copy=function(){return rh(e,r).unknown(n)},ro.apply(i,arguments),i}let rf=Math.sqrt(50),rd=Math.sqrt(10),rp=Math.sqrt(2);function rg(t,e,r){let n,i,a,o=(e-t)/Math.max(0,r),s=Math.floor(Math.log10(o)),l=o/Math.pow(10,s),c=l>=rf?10:l>=rd?5:l>=rp?2:1;return(s<0?(n=Math.round(t*(a=Math.pow(10,-s)/c)),i=Math.round(e*a),n/ae&&--i,a=-a):(n=Math.round(t/(a=Math.pow(10,s)*c)),i=Math.round(e/a),n*ae&&--i),ie?1:t>=e?0:NaN}function rx(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function r_(t){let e,r,n;function i(t,n,a=0,o=t.length){if(a>>1;0>r(t[e],n)?a=e+1:o=e}while(arb(t(e),r),n=(e,r)=>t(e)-r):(e=t===rb||t===rx?t:rw,r=t,n=t),{left:i,center:function(t,e,r=0,a=t.length){let o=i(t,e,r,a-1);return o>r&&n(t[o-1],e)>-n(t[o],e)?o-1:o},right:function(t,n,i=0,a=t.length){if(i>>1;0>=r(t[e],n)?i=e+1:a=e}while(ie&&(r=t,t=e,e=r),c=function(r){return Math.max(t,Math.min(e,r))}),n=l>2?rO:r$,i=a=null,h}function h(e){return null==e||isNaN(e*=1)?r:(i||(i=n(o.map(t),s,l)))(t(c(e)))}return h.invert=function(r){return c(e((a||(a=n(s,o.map(t),tK)))(r)))},h.domain=function(t){return arguments.length?(o=Array.from(t,rM),u()):o.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),l=rA,u()},h.clamp=function(t){return arguments.length?(c=!!t||rT,u()):c!==rT},h.interpolate=function(t){return arguments.length?(l=t,u()):l},h.unknown=function(t){return arguments.length?(r=t,h):r},function(r,n){return t=r,e=n,u()}})()(rT,rT)}let rR=new Date,rK=new Date;function rj(t,e,r,n){function i(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),i.round=t=>{let e=i(t),r=i.ceil(t);return t-e(e(t=new Date(+t),null==r?1:Math.floor(r)),t),i.range=(r,n,a)=>{let o,s=[];if(r=i.ceil(r),a=null==a?1:Math.floor(a),!(r0))return s;do s.push(o=new Date(+r)),e(r,a),t(r);while(orj(e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},(t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}),r&&(i.count=(e,n)=>(rR.setTime(+e),rK.setTime(+n),t(rR),t(rK),Math.floor(r(rR,rK))),i.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?i.filter(n?e=>n(e)%t==0:e=>i.count(0,e)%t==0):i:null),i}let rD=rj(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);rD.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?rj(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):rD:null,rD.range;let rN=rj(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());rN.range;let rP=rj(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());rP.range;let rI=rj(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());rI.range;let rF=rj(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());rF.range;let rU=rj(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());rU.range;let rz=rj(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);rz.range;let rB=rj(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);rB.range;let rY=rj(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));function rH(t){return rj(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}rY.range;let rq=rH(0),rW=rH(1),rX=rH(2),rG=rH(3),rZ=rH(4),rV=rH(5),rQ=rH(6);function rJ(t){return rj(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}rq.range,rW.range,rX.range,rG.range,rZ.range,rV.range,rQ.range;let r0=rJ(0),r1=rJ(1),r2=rJ(2),r3=rJ(3),r5=rJ(4),r6=rJ(5),r8=rJ(6);r0.range,r1.range,r2.range,r3.range,r5.range,r6.range,r8.range;let r4=rj(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());r4.range;let r9=rj(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());r9.range;let r7=rj(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());r7.every=t=>isFinite(t=Math.floor(t))&&t>0?rj(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)}):null,r7.range;let nt=rj(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function ne(t,e,r,n,i,a){let o=[[rN,1,1e3],[rN,5,5e3],[rN,15,15e3],[rN,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,864e5],[n,2,1728e5],[r,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function s(e,r,n){let i=Math.abs(r-e)/n,a=r_(([,,t])=>t).right(o,i);if(a===o.length)return t.every(ry(e/31536e6,r/31536e6,n));if(0===a)return rD.every(Math.max(ry(e,r,n),1));let[s,l]=o[i/o[a-1][2]isFinite(t=Math.floor(t))&&t>0?rj(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null,nt.range;let[nr,nn]=ne(nt,r9,r0,rY,rU,rI),[ni,na]=ne(r7,r4,rq,rz,rF,rP);function no(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ns(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function nl(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var nc={"-":"",_:" ",0:"0"},nu=/^\s*\d+/,nh=/^%/,nf=/[\\^$*+?|[\]().{}]/g;function nd(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",a=i.length;return n+(a[t.toLowerCase(),e]))}function ny(t,e,r){var n=nu.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function nb(t,e,r){var n=nu.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function nx(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function n_(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function nw(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function nk(t,e,r){var n=nu.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function nv(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function nA(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function nM(t,e,r){var n=nu.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function nS(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function nT(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function nC(t,e,r){var n=nu.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function n$(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function nO(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function nL(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function nE(t,e,r){var n=nu.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function nR(t,e,r){var n=nu.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function nK(t,e,r){var n=nh.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function nj(t,e,r){var n=nu.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function nD(t,e,r){var n=nu.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function nN(t,e){return nd(t.getDate(),e,2)}function nP(t,e){return nd(t.getHours(),e,2)}function nI(t,e){return nd(t.getHours()%12||12,e,2)}function nF(t,e){return nd(1+rz.count(r7(t),t),e,3)}function nU(t,e){return nd(t.getMilliseconds(),e,3)}function nz(t,e){return nU(t,e)+"000"}function nB(t,e){return nd(t.getMonth()+1,e,2)}function nY(t,e){return nd(t.getMinutes(),e,2)}function nH(t,e){return nd(t.getSeconds(),e,2)}function nq(t){var e=t.getDay();return 0===e?7:e}function nW(t,e){return nd(rq.count(r7(t)-1,t),e,2)}function nX(t){var e=t.getDay();return e>=4||0===e?rZ(t):rZ.ceil(t)}function nG(t,e){return t=nX(t),nd(rZ.count(r7(t),t)+(4===r7(t).getDay()),e,2)}function nZ(t){return t.getDay()}function nV(t,e){return nd(rW.count(r7(t)-1,t),e,2)}function nQ(t,e){return nd(t.getFullYear()%100,e,2)}function nJ(t,e){return nd((t=nX(t)).getFullYear()%100,e,2)}function n0(t,e){return nd(t.getFullYear()%1e4,e,4)}function n1(t,e){var r=t.getDay();return nd((t=r>=4||0===r?rZ(t):rZ.ceil(t)).getFullYear()%1e4,e,4)}function n2(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+nd(e/60|0,"0",2)+nd(e%60,"0",2)}function n3(t,e){return nd(t.getUTCDate(),e,2)}function n5(t,e){return nd(t.getUTCHours(),e,2)}function n6(t,e){return nd(t.getUTCHours()%12||12,e,2)}function n8(t,e){return nd(1+rB.count(nt(t),t),e,3)}function n4(t,e){return nd(t.getUTCMilliseconds(),e,3)}function n9(t,e){return n4(t,e)+"000"}function n7(t,e){return nd(t.getUTCMonth()+1,e,2)}function it(t,e){return nd(t.getUTCMinutes(),e,2)}function ie(t,e){return nd(t.getUTCSeconds(),e,2)}function ir(t){var e=t.getUTCDay();return 0===e?7:e}function ii(t,e){return nd(r0.count(nt(t)-1,t),e,2)}function ia(t){var e=t.getUTCDay();return e>=4||0===e?r5(t):r5.ceil(t)}function io(t,e){return t=ia(t),nd(r5.count(nt(t),t)+(4===nt(t).getUTCDay()),e,2)}function is(t){return t.getUTCDay()}function il(t,e){return nd(r1.count(nt(t)-1,t),e,2)}function ic(t,e){return nd(t.getUTCFullYear()%100,e,2)}function iu(t,e){return nd((t=ia(t)).getUTCFullYear()%100,e,2)}function ih(t,e){return nd(t.getUTCFullYear()%1e4,e,4)}function id(t,e){var r=t.getUTCDay();return nd((t=r>=4||0===r?r5(t):r5.ceil(t)).getUTCFullYear()%1e4,e,4)}function ip(){return"+0000"}function ig(){return"%"}function im(t){return+t}function iy(t){return Math.floor(t/1e3)}function ib(t){return new Date(t)}function ix(t){return t instanceof Date?+t:+new Date(+t)}function i_(){return ro.apply((function t(e,r,n,i,a,o,s,l,c,u){var h=rE(),f=h.invert,d=h.domain,p=u(".%L"),g=u(":%S"),m=u("%I:%M"),y=u("%I %p"),b=u("%a %d"),x=u("%b %d"),_=u("%B"),w=u("%Y");function k(t){return(c(t)=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:im,s:iy,S:nH,u:nq,U:nW,V:nG,w:nZ,W:nV,x:null,X:null,y:nQ,Y:n0,Z:n2,"%":ig},_={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:n3,e:n3,f:n9,g:iu,G:id,H:n5,I:n6,j:n8,L:n4,m:n7,M:it,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:im,s:iy,S:ie,u:ir,U:ii,V:io,w:is,W:il,x:null,X:null,y:ic,Y:ih,Z:ip,"%":ig},w={a:function(t,e,r){var n=d.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=f.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=g.exec(e.slice(r));return n?(t.m=m.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return A(t,e,r,n)},d:nT,e:nT,f:nR,g:nv,G:nk,H:n$,I:n$,j:nC,L:nE,m:nS,M:nO,p:function(t,e,r){var n=c.exec(e.slice(r));return n?(t.p=u.get(n[0].toLowerCase()),r+n[0].length):-1},q:nM,Q:nj,s:nD,S:nL,u:nb,U:nx,V:n_,w:ny,W:nw,x:function(t,e,n){return A(t,r,e,n)},X:function(t,e,r){return A(t,n,e,r)},y:nv,Y:nk,Z:nA,"%":nK};function k(t,e){return function(r){var n,i,a,o=[],s=-1,l=0,c=t.length;for(r instanceof Date||(r=new Date(+r));++s53)return null;"w"in a||(a.w=1),"Z"in a?(n=(i=(n=ns(nl(a.y,0,1))).getUTCDay())>4||0===i?r1.ceil(n):r1(n),n=rB.offset(n,(a.V-1)*7),a.y=n.getUTCFullYear(),a.m=n.getUTCMonth(),a.d=n.getUTCDate()+(a.w+6)%7):(n=(i=(n=no(nl(a.y,0,1))).getDay())>4||0===i?rW.ceil(n):rW(n),n=rz.offset(n,(a.V-1)*7),a.y=n.getFullYear(),a.m=n.getMonth(),a.d=n.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:+("W"in a)),i="Z"in a?ns(nl(a.y,0,1)).getUTCDay():no(nl(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,ns(a)):no(a)}}function A(t,e,r,n){for(var i,a,o=0,s=e.length,l=r.length;o=l)return -1;if(37===(i=e.charCodeAt(o++))){if(!(a=w[(i=e.charAt(o++))in nc?e.charAt(o++):i])||(n=a(t,r,n))<0)return -1}else if(i!=r.charCodeAt(n++))return -1}return n}return x.x=k(r,x),x.X=k(n,x),x.c=k(e,x),_.x=k(r,_),_.X=k(n,_),_.c=k(e,_),{format:function(t){var e=k(t+="",x);return e.toString=function(){return t},e},parse:function(t){var e=v(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=k(t+="",_);return e.toString=function(){return t},e},utcParse:function(t){var e=v(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,tl.parse,tl.utcFormat,tl.utcParse;let iw=function(t){for(var e=t.length/6|0,r=Array(e),n=0;n=1?iE:t<=-1?-iE:Math.asin(t)}let ij=Math.PI,iD=2*ij,iN=iD-1e-6;function iP(t){this._+=t[0];for(let e=1,r=t.length;e=0))throw Error(`invalid digits: ${t}`);if(e>15)return iP;let r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e1e-6)if(Math.abs(u*s-l*c)>1e-6&&i){let f=r-a,d=n-o,p=s*s+l*l,g=Math.sqrt(p),m=Math.sqrt(h),y=i*Math.tan((ij-Math.acos((p+h-(f*f+d*d))/(2*g*m)))/2),b=y/m,x=y/g;Math.abs(b-1)>1e-6&&this._append`L${t+b*c},${e+b*u}`,this._append`A${i},${i},0,0,${+(u*f>c*d)},${this._x1=t+x*s},${this._y1=e+x*l}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,r,n,i,a){if(t*=1,e*=1,r*=1,a=!!a,r<0)throw Error(`negative radius: ${r}`);let o=r*Math.cos(n),s=r*Math.sin(n),l=t+o,c=e+s,u=1^a,h=a?n-i:i-n;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&this._append`L${l},${c}`,r&&(h<0&&(h=h%iD+iD),h>iN?this._append`A${r},${r},0,1,${u},${t-o},${e-s}A${r},${r},0,1,${u},${this._x1=l},${this._y1=c}`:h>1e-6&&this._append`A${r},${r},0,${+(h>=ij)},${u},${this._x1=t+r*Math.cos(i)},${this._y1=e+r*Math.sin(i)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r*=1}v${+n}h${-r}Z`}toString(){return this._}}function iF(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{let t=Math.floor(r);if(!(t>=0))throw RangeError(`invalid digits: ${r}`);e=t}return t},()=>new iI(e)}function iU(t){return t.innerRadius}function iz(t){return t.outerRadius}function iB(t){return t.startAngle}function iY(t){return t.endAngle}function iH(t){return t&&t.padAngle}function iq(t,e,r,n,i,a,o){var s=t-r,l=e-n,c=(o?a:-a)/iO(s*s+l*l),u=c*l,h=-c*s,f=t+u,d=e+h,p=r+u,g=n+h,m=(f+p)/2,y=(d+g)/2,b=p-f,x=g-d,_=b*b+x*x,w=i-a,k=f*g-p*d,v=(x<0?-1:1)*iO(iT(0,w*w*_-k*k)),A=(k*x-b*v)/_,M=(-k*b-x*v)/_,S=(k*x+b*v)/_,T=(-k*b+x*v)/_,C=A-m,$=M-y,O=S-m,L=T-y;return C*C+$*$>O*O+L*L&&(A=S,M=T),{cx:A,cy:M,x01:-u,y01:-h,x11:A*(i/w-1),y11:M*(i/w-1)}}function iW(){var t=iU,e=iz,r=iv(0),n=null,i=iB,a=iY,o=iH,s=null,l=iF(c);function c(){var c,u,h=+t.apply(this,arguments),f=+e.apply(this,arguments),d=i.apply(this,arguments)-iE,p=a.apply(this,arguments)-iE,g=iA(p-d),m=p>d;if(s||(s=c=l()),f1e-12)if(g>iR-1e-12)s.moveTo(f*iS(d),f*i$(d)),s.arc(0,0,f,d,p,!m),h>1e-12&&(s.moveTo(h*iS(p),h*i$(p)),s.arc(0,0,h,p,d,m));else{var y,b,x=d,_=p,w=d,k=p,v=g,A=g,M=o.apply(this,arguments)/2,S=M>1e-12&&(n?+n.apply(this,arguments):iO(h*h+f*f)),T=iC(iA(f-h)/2,+r.apply(this,arguments)),C=T,$=T;if(S>1e-12){var O=iK(S/h*i$(M)),L=iK(S/f*i$(M));(v-=2*O)>1e-12?(O*=m?1:-1,w+=O,k-=O):(v=0,w=k=(d+p)/2),(A-=2*L)>1e-12?(L*=m?1:-1,x+=L,_-=L):(A=0,x=_=(d+p)/2)}var E=f*iS(x),R=f*i$(x),K=h*iS(k),j=h*i$(k);if(T>1e-12){var D,N=f*iS(_),P=f*i$(_),I=h*iS(w),F=h*i$(w);if(g1?0:U<-1?iL:Math.acos(U))/2),W=iO(D[0]*D[0]+D[1]*D[1]);C=iC(T,(h-W)/(q-1)),$=iC(T,(f-W)/(q+1))}else C=$=0}A>1e-12?$>1e-12?(y=iq(I,F,E,R,f,$,m),b=iq(N,P,K,j,f,$,m),s.moveTo(y.cx+y.x01,y.cy+y.y01),$1e-12&&v>1e-12?C>1e-12?(y=iq(K,j,N,P,h,-C,m),b=iq(E,R,I,F,h,-C,m),s.lineTo(y.cx+y.x01,y.cy+y.y01),Ct?1:e>=t?0:NaN}function i1(t){return t}function i2(){var t=i1,e=i0,r=null,n=iv(0),i=iv(iR),a=iv(0);function o(o){var s,l,c,u,h,f=(o=iX(o)).length,d=0,p=Array(f),g=Array(f),m=+n.apply(this,arguments),y=Math.min(iR,Math.max(-iR,i.apply(this,arguments)-m)),b=Math.min(Math.abs(y)/f,a.apply(this,arguments)),x=b*(y<0?-1:1);for(s=0;s0&&(d+=h);for(null!=e?p.sort(function(t,r){return e(g[t],g[r])}):null!=r&&p.sort(function(t,e){return r(o[t],o[e])}),s=0,c=d?(y-f*x)/d:0;s0?h*c:0)+x,g[l]={data:o[l],index:s,value:h,startAngle:m,endAngle:u,padAngle:b};return g}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:iv(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,r=null,o):e},o.sort=function(t){return arguments.length?(r=t,e=null,o):r},o.startAngle=function(t){return arguments.length?(n="function"==typeof t?t:iv(+t),o):n},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:iv(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:iv(+t),o):a},o}function i3(){}function i5(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function i6(t){this._context=t}function i8(t){return new i6(t)}function i4(t){this._context=t}function i9(t){return new i4(t)}function i7(t){this._context=t}function at(t){return new i7(t)}iI.prototype,Array.prototype.slice,iG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},i6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i5(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i5(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},i4.prototype={areaStart:i3,areaEnd:i3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:i5(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},i7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:i5(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class ae{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function ar(t){return new ae(t,!0)}function an(t){return new ae(t,!1)}function ai(t,e){this._basis=new i6(t),this._beta=e}ai.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n,i=t[0],a=e[0],o=t[r]-i,s=e[r]-a,l=-1;++l<=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+n*o),this._beta*e[l]+(1-this._beta)*(a+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};let aa=function t(e){function r(t){return 1===e?new i6(t):new ai(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function ao(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function as(t,e){this._context=t,this._k=(1-e)/6}as.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ao(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ao(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let al=function t(e){function r(t){return new as(t,e)}return r.tension=function(e){return t(+e)},r}(0);function ac(t,e){this._context=t,this._k=(1-e)/6}ac.prototype={areaStart:i3,areaEnd:i3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ao(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let au=function t(e){function r(t){return new ac(t,e)}return r.tension=function(e){return t(+e)},r}(0);function ah(t,e){this._context=t,this._k=(1-e)/6}ah.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ao(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let af=function t(e){function r(t){return new ah(t,e)}return r.tension=function(e){return t(+e)},r}(0);function ad(t,e,r){var n=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>1e-12){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(n,i,a,o,t._x2,t._y2)}function ap(t,e){this._context=t,this._alpha=e}ap.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t*=1,e*=1,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:ad(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let ag=function t(e){function r(t){return e?new ap(t,e):new as(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function am(t,e){this._context=t,this._alpha=e}am.prototype={areaStart:i3,areaEnd:i3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t*=1,e*=1,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ad(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let ay=function t(e){function r(t){return e?new am(t,e):new ac(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function ab(t,e){this._context=t,this._alpha=e}ab.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t*=1,e*=1,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ad(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let ax=function t(e){function r(t){return e?new ab(t,e):new ah(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function a_(t){this._context=t}function aw(t){return new a_(t)}function ak(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i<0&&-0),o=(r-t._y1)/(i||n<0&&-0);return((a<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*n)/(n+i)))||0}function av(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function aA(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-n)/3;t._context.bezierCurveTo(n+s,i+s*e,a-s,o-s*r,a,o)}function aM(t){this._context=t}function aS(t){this._context=new aT(t)}function aT(t){this._context=t}function aC(t){return new aM(t)}function a$(t){return new aS(t)}function aO(t){this._context=t}function aL(t){var e,r,n=t.length-1,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(e=0,a[n-1]=(t[n]+i[n-1])/2;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},aN.prototype={constructor:aN,scale:function(t){return 1===t?this:new aN(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new aN(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new aN(1,0,0);aN.prototype},70754:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=Array.isArray},70897:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(17624),i=r(49498);let a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;let e=t.match(a.re);if(!e)return;let r=e[1],i=parseInt(r,16),o=r.length,s=o%4==0,l=o>4,c=l?1:17,u=l?8:4,h=s?0:-1,f=l?255:15;return n.A.set({r:(i>>u*(h+3)&f)*c,g:(i>>u*(h+2)&f)*c,b:(i>>u*(h+1)&f)*c,a:s?(i&f)*c/255:1},t)},stringify:t=>{let{r:e,g:r,b:n,a}=t;return a<1?`#${i.Y[Math.round(e)]}${i.Y[Math.round(r)]}${i.Y[Math.round(n)]}${i.Y[Math.round(255*a)]}`:`#${i.Y[Math.round(e)]}${i.Y[Math.round(r)]}${i.Y[Math.round(n)]}`}};var o=r(25866);let s={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{let e=t.match(s.hueRe);if(e){let[,t,r]=e;switch(r){case"grad":return o.A.channel.clamp.h(.9*parseFloat(t));case"rad":return o.A.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return o.A.channel.clamp.h(360*parseFloat(t))}}return o.A.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(104!==e&&72!==e)return;let r=t.match(s.re);if(!r)return;let[,i,a,l,c,u]=r;return n.A.set({h:s._hue2deg(i),s:o.A.channel.clamp.s(parseFloat(a)),l:o.A.channel.clamp.l(parseFloat(l)),a:c?o.A.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{let{h:e,s:r,l:n,a:i}=t;return i<1?`hsla(${o.A.lang.round(e)}, ${o.A.lang.round(r)}%, ${o.A.lang.round(n)}%, ${i})`:`hsl(${o.A.lang.round(e)}, ${o.A.lang.round(r)}%, ${o.A.lang.round(n)}%)`}},l={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();let e=l.colors[t];if(e)return a.parse(e)},stringify:t=>{let e=a.stringify(t);for(let t in l.colors)if(l.colors[t]===e)return t}},c={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{let e=t.charCodeAt(0);if(114!==e&&82!==e)return;let r=t.match(c.re);if(!r)return;let[,i,a,s,l,u,h,f,d]=r;return n.A.set({r:o.A.channel.clamp.r(a?2.55*parseFloat(i):parseFloat(i)),g:o.A.channel.clamp.g(l?2.55*parseFloat(s):parseFloat(s)),b:o.A.channel.clamp.b(h?2.55*parseFloat(u):parseFloat(u)),a:f?o.A.channel.clamp.a(d?parseFloat(f)/100:parseFloat(f)):1},t)},stringify:t=>{let{r:e,g:r,b:n,a:i}=t;return i<1?`rgba(${o.A.lang.round(e)}, ${o.A.lang.round(r)}, ${o.A.lang.round(n)}, ${o.A.lang.round(i)})`:`rgb(${o.A.lang.round(e)}, ${o.A.lang.round(r)}, ${o.A.lang.round(n)})`}},u={format:{keyword:l,hex:a,rgb:c,rgba:c,hsl:s,hsla:s},parse:t=>{if("string"!=typeof t)return t;let e=a.parse(t)||c.parse(t)||s.parse(t)||l.parse(t);if(e)return e;throw Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(i.Z.HSL)||void 0===t.data.r?s.stringify(t):!(t.a<1)&&Number.isInteger(t.r)&&Number.isInteger(t.g)&&Number.isInteger(t.b)?a.stringify(t):c.stringify(t)}},70898:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(60486);function i(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n.A;++e{"use strict";r.d(e,{A:()=>a});var n=r(12783),i="object"==typeof self&&self&&self.Object===Object&&self;let a=n.A||i||Function("return this")()},74574:(t,e,r)=>{"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);rtx});let i=Object.entries,a=Object.setPrototypeOf,o=Object.isFrozen,s=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,c=Object.freeze,u=Object.seal,h=Object.create,f="undefined"!=typeof Reflect&&Reflect,d=f.apply,p=f.construct;c||(c=function(t){return t}),u||(u=function(t){return t}),d||(d=function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i1?e-1:0),n=1;n1?r-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:w;if(a&&a(t,null),!_(e))return t;let n=e.length;for(;n--;){let i=e[n];if("string"==typeof i){let t=r(i);t!==i&&(o(e)||(e[n]=t),i=t)}t[i]=!0}return t}function N(t){let e=h(null);for(let a of i(t)){var r=function(t){if(Array.isArray(t))return t}(a)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,c=!1;try{a=(r=r.call(t)).next,!1;for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(a,2)||function(t,e){if(t){if("string"==typeof t)return n(t,2);var r=({}).toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(a,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let i=r[0],o=r[1];L(t,i)&&(_(o)?e[i]=function(t){for(let e=0;e/g),Q=u(/\${[\w\W]*/g),J=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),tt=u(/^aria-[\-\w]+$/),te=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tr=u(/^(?:\w+script|data):/i),tn=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ti=u(/^html$/i),ta=u(/^[a-z][.\w]*(-[.\w]+)+$/i),to=u(/<[/\w!]/g),ts=u(/<[/\w]/g),tl=u(/<\/no(script|embed|frames)/i),tc=u(/\/>/i),tu={element:1,text:3,processingInstruction:7,comment:8,document:9,documentFragment:11},th=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],tf=c(D({},th)),td=function(){let t={};return g(th,e=>{t[e]=u(RegExp("])","i"))}),c(t)}(),tp=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let r=null,n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));let i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},tg=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},tm=function(t,e,r,n){return L(t,e)&&_(t[e])?D(n.base?N(n.base):{},t[e],n.transform):r},ty=function(t,e,r){let n=L(t,e)?t[e]:void 0;return n&&"object"==typeof n?N(n):r()};var tb,tx=function t(){let e,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,a=e=>t(e);if(a.version="3.4.14",a.removed=[],!n||!n.document||n.document.nodeType!==tu.document||!n.Element)return a.isSupported=!1,a;let o=n.document,s=o,l=s.currentScript;n.DocumentFragment;let f=n.HTMLTemplateElement,d=n.Node,p=n.Element,j=n.NodeFilter;void 0===n.NamedNodeMap&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;let th=n.DOMParser,tb=n.trustedTypes,tx=p.prototype,t_=P(tx,"cloneNode"),tw=P(tx,"remove"),tk=P(tx,"nextSibling"),tv=P(tx,"childNodes"),tA=P(tx,"parentNode"),tM=P(tx,"shadowRoot"),tS=P(tx,"attributes"),tT=d&&d.prototype?P(d.prototype,"nodeType"):null,tC=d&&d.prototype?P(d.prototype,"nodeName"):null,t$=d&&d.prototype?P(d.prototype,"ownerDocument"):null,tO=function(t){return tT?tT(t):t.nodeType},tL=function(t){return tC?tC(t):t.nodeName};if("function"==typeof f){let t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let tE="",tR=!1,tK=0,tj=function(){if(tK>0)throw K('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},tD=function(t){tj(),tK++;try{return e.createHTML(t)}finally{tK--}},tN=function(t){tj(),tK++;try{return e.createScriptURL(t)}finally{tK--}},tP=o,tI=tP.implementation,tF=tP.createNodeIterator,tU=tP.createDocumentFragment,tz=tP.getElementsByTagName,tB=s.importNode,tY=tg();a.isSupported="function"==typeof i&&"function"==typeof tA&&tI&&void 0!==tI.createHTMLDocument;let tH=te,tq=null,tW=D({},[...I,...F,...U,...B,...H]),tX=null,tG=D({},[...q,...W,...X,...G]),tZ=Object.seal(h(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}})),tV=null,tQ=null,tJ=Object.seal(h(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),t0=!0,t1=!0,t2=!1,t3=!0,t5=!1,t6=!0,t8=!1,t4=!1,t9=null,t7=null,et=!1,ee=!1,er=!1,en=!1,ei=!0,ea=!1,eo="user-content-",es=!0,el=!1,ec={},eu=null,eh=D({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),ef=null,ed=D({},["audio","video","img","source","image","track"]),ep=null,eg=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),em="http://www.w3.org/1998/Math/MathML",ey="http://www.w3.org/2000/svg",eb="http://www.w3.org/1999/xhtml",ex=eb,e_=!1,ew=null,ek=D({},[em,ey,eb],k),ev=c(["mi","mo","mn","ms","mtext"]),eA=D({},ev),eM=c(["annotation-xml"]),eS=D({},eM),eT=D({},["title","style","font","a","script"]),eC=null,e$=["application/xhtml+xml","text/html"],eO=null,eL=null,eE=o.createElement("form"),eR=function(t){return t instanceof RegExp||t instanceof Function},eK=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(eL&&eL===t)return;t&&"object"==typeof t||(t={}),t=N(t),eO="application/xhtml+xml"===(eC=-1===e$.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?k:w,tq=tm(t,"ALLOWED_TAGS",tW,{transform:eO}),tX=tm(t,"ALLOWED_ATTR",tG,{transform:eO}),ew=tm(t,"ALLOWED_NAMESPACES",ek,{transform:k}),ep=tm(t,"ADD_URI_SAFE_ATTR",eg,{transform:eO,base:eg}),ef=tm(t,"ADD_DATA_URI_TAGS",ed,{transform:eO,base:ed}),eu=tm(t,"FORBID_CONTENTS",eh,{transform:eO}),tV=tm(t,"FORBID_TAGS",N({}),{transform:eO}),tQ=tm(t,"FORBID_ATTR",N({}),{transform:eO}),ec=!!L(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?N(t.USE_PROFILES):t.USE_PROFILES),t0=!1!==t.ALLOW_ARIA_ATTR,t1=!1!==t.ALLOW_DATA_ATTR,t2=t.ALLOW_UNKNOWN_PROTOCOLS||!1,t3=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,t5=t.SAFE_FOR_TEMPLATES||!1,t6=!1!==t.SAFE_FOR_XML,t8=t.WHOLE_DOCUMENT||!1,ee=t.RETURN_DOM||!1,er=t.RETURN_DOM_FRAGMENT||!1,en=t.RETURN_TRUSTED_TYPE||!1,et=t.FORCE_BODY||!1,ei=!1!==t.SANITIZE_DOM,ea=t.SANITIZE_NAMED_PROPS||!1,es=!1!==t.KEEP_CONTENT,el=t.IN_PLACE||!1,tH=!function(t){try{return R(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?te:t.ALLOWED_URI_REGEXP,ex="string"==typeof t.NAMESPACE?t.NAMESPACE:eb,eA=ty(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>D({},ev)),eS=ty(t,"HTML_INTEGRATION_POINTS",()=>D({},eM));let n=ty(t,"CUSTOM_ELEMENT_HANDLING",()=>h(null));if(tZ=h(null),L(n,"tagNameCheck")&&eR(n.tagNameCheck)&&(tZ.tagNameCheck=n.tagNameCheck),L(n,"attributeNameCheck")&&eR(n.attributeNameCheck)&&(tZ.attributeNameCheck=n.attributeNameCheck),L(n,"allowCustomizedBuiltInElements")&&"boolean"==typeof n.allowCustomizedBuiltInElements&&(tZ.allowCustomizedBuiltInElements=n.allowCustomizedBuiltInElements),u(tZ),t5&&(t1=!1),er&&(ee=!0),ec&&(tq=D({},H),tX=h(null),!0===ec.html&&(D(tq,I),D(tX,q)),!0===ec.svg&&(D(tq,F),D(tX,W),D(tX,G)),!0===ec.svgFilters&&(D(tq,U),D(tX,W),D(tX,G)),!0===ec.mathMl&&(D(tq,B),D(tX,X),D(tX,G))),tJ.tagCheck=null,tJ.attributeCheck=null,L(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?tJ.tagCheck=t.ADD_TAGS:_(t.ADD_TAGS)&&(tq===tW&&(tq=N(tq)),D(tq,t.ADD_TAGS,eO))),L(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?tJ.attributeCheck=t.ADD_ATTR:_(t.ADD_ATTR)&&(tX===tG&&(tX=N(tX)),D(tX,t.ADD_ATTR,eO))),L(t,"ADD_FORBID_CONTENTS")&&_(t.ADD_FORBID_CONTENTS)&&(eu===eh&&(eu=N(eu)),D(eu,t.ADD_FORBID_CONTENTS,eO)),es&&(tq["#text"]=!0),t8&&D(tq,["html","head","body"]),tq.table&&(D(tq,["tbody"]),delete tV.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let r=e;e=t.TRUSTED_TYPES_POLICY;try{tE=tD("")}catch(t){throw e=r,t}}else null===t.TRUSTED_TYPES_POLICY?(e=void 0,tE=""):(void 0===e&&(tR||(r=tp(tb,l),tR=!0),e=r),e&&"string"==typeof tE&&(tE=tD("")));c&&c(t),eL=t},ej=D({},[...F,...U,...z]),eD=D({},[...B,...Y]),eN=function(t){var e,r,n;let i=tA(t);i&&i.tagName||(i={namespaceURI:ex,tagName:"template"});let a=w(t.tagName),o=w(i.tagName);return!!ew[t.namespaceURI]&&(t.namespaceURI===ey?(e=i).namespaceURI===eb?"svg"===a:e.namespaceURI===em?"svg"===a&&("annotation-xml"===o||eA[o]):!!ej[a]:t.namespaceURI===em?(r=i).namespaceURI===eb?"math"===a:r.namespaceURI===ey?"math"===a&&eS[o]:!!eD[a]:t.namespaceURI===eb?((n=i).namespaceURI!==ey||!!eS[o])&&(n.namespaceURI!==em||!!eA[o])&&!eD[a]&&(eT[a]||!ej[a]):"application/xhtml+xml"===eC&&!!ew[t.namespaceURI])},eP=function(t){b(a.removed,{element:t});try{tA(t).removeChild(t)}catch(e){if(tw(t),!tA(t))throw K("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},eI=function(t,e,r){try{t.removeAttributeNode(e)}catch(e){try{t.removeAttribute(r)}catch(t){}}},eF=function(t){eB(t);let e=tv(t);if(e){let t=[];g(e,e=>{b(t,e)}),g(t,t=>{try{tw(t)}catch(t){}})}let r=tS(t);if(r)for(let e=r.length-1;e>=0;--e){let n=r[e],i=n&&n.name;"string"==typeof i&&eI(t,n,i)}},eU=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch(t){r=null}b(a.removed,{attribute:r||null,from:e});try{r?e.removeAttributeNode(r):e.removeAttribute(t)}catch(r){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(ee||er)try{eP(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ez=function(t){let e=tS(t);if(e)for(let r=e.length-1;r>=0;--r){let n=e[r],i=n&&n.name;"string"!=typeof i||tX[eO(i)]||eI(t,n,i)}},eB=function(t){let e=[t];for(;e.length>0;){let t=e.pop();tO(t)===tu.element&&ez(t);let r=tv(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}},eY=function(t,e){return!!t6&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},eH=function(t){if(!t6)return;let e=[t];for(;e.length>0;){let t=e.pop(),r=tO(t);if(r===tu.processingInstruction||r===tu.comment&&R(ts,t.data)){try{tw(t)}catch(t){}continue}if(r===tu.element){let e=eO(tL(t));try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&eY("for",e)&&t.removeAttribute("for")}catch(t){}}let n=tv(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},eq=function(t){let r=null,n=null;if(et)t=""+t;else{let e=v(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===eC&&ex===eb&&(t=''+t+"");let i=e?tD(t):t;if(ex===eb)try{r=new th().parseFromString(i,eC)}catch(t){}if(!r||!r.documentElement){r=tI.createDocument(ex,"template",null);try{r.documentElement.innerHTML=e_?tE:i}catch(t){}}let a=r.body||r.documentElement;return(t&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),ex===eb)?tz.call(r,t8?"html":"body")[0]:t8?r.documentElement:a},eW=function(t){let e=t$?t$(t):t.ownerDocument;return tF.call(e||t,t,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},eX=function(t){return t=A(t,Z," "),t=A(t,V," "),t=A(t,Q," ")},eG=function(t){var e;t.normalize();let r=t$?t$(t):t.ownerDocument,n=tF.call(r||t,t,j.SHOW_TEXT|j.SHOW_COMMENT|j.SHOW_CDATA_SECTION|j.SHOW_PROCESSING_INSTRUCTION,null),i=n.nextNode();for(;i;)i.data=eX(i.data),i=n.nextNode();let a=null==(e=t.querySelectorAll)?void 0:e.call(t,"template");a&&g(a,t=>{eV(t.content)&&eG(t.content)})},eZ=function(t){let e=tC?tC(t):null;return"string"==typeof e&&"form"===eO(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==tS(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==tT(t)||t.childNodes!==tv(t))},eV=function(t){if(!tT||"object"!=typeof t||null===t)return!1;try{return tT(t)===tu.documentFragment}catch(t){return!1}},eQ=function(t){if(!tT||"object"!=typeof t||null===t)return!1;try{return"number"==typeof tT(t)}catch(t){return!1}};function eJ(t,e,r){0!==t.length&&g(t,t=>{t.call(a,e,r,eL)})}let e0=function(t,e){if(t instanceof RegExp)return R(t,e);if(t instanceof Function){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i=0;--a){let i=t===r?t_(n[a],!0):n[a];e.insertBefore(i,tk(t))}}}return eP(t),!0},e2=function(t,e,r,n){return 0===t.length?e:e===r||e===n?N(e):e},e3=function(t,e){return t!==e&&null===tA(t)&&(el&&eB(t),!0)},e5=function(t,e){if(eJ(tY.beforeSanitizeElements,t,null),e3(t,e))return!0;if(eZ(t))return eP(t),!0;let r=eO(tL(t));if(tq=e2(tY.uponSanitizeElement,tq,tW,t9),eJ(tY.uponSanitizeElement,t,{tagName:r,allowedTags:tq}),e3(t,e))return!0;if(t6&&t.hasChildNodes()&&!eQ(t.firstElementChild)&&R(to,t.textContent)&&R(to,t.innerHTML)||t6&&t.namespaceURI===eb&&tf[r]&&(eQ(t.firstElementChild)||"string"==typeof t.textContent&&R(td[r],t.textContent))||t.nodeType===tu.processingInstruction||t6&&t.nodeType===tu.comment&&R(ts,t.data))return eP(t),!0;if(tV[r]||!(tJ.tagCheck instanceof Function&&tJ.tagCheck(r))&&!tq[r]){let n=e1(t,r,e);return!1===n&&eJ(tY.afterSanitizeElements,t,null),n}if(tO(t)===tu.element&&!eN(t)||("noscript"===r||"noembed"===r||"noframes"===r)&&R(tl,t.innerHTML))return eP(t),!0;if(t5&&t.nodeType===tu.text){let e=eX(t.textContent);t.textContent!==e&&(b(a.removed,{element:t.cloneNode()}),t.textContent=e)}return eJ(tY.afterSanitizeElements,t,null),!1},e6=function(t,e,r){if(tQ[e]||eY(e,t)||ei&&("id"===e||"name"===e)&&(r in o||r in eE))return!1;let n=tX[e]||tJ.attributeCheck instanceof Function&&tJ.attributeCheck(e,t);return!!(t1&&R(J,e)||t0&&R(tt,e))||(n?!(!(ep[e]||R(tH,A(r,tn,"")))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==M(r,"data:")||!ef[t])&&(!t2||R(tr,A(r,tn,""))))||!r:e4(t)&&e0(tZ.tagNameCheck,t)&&e0(tZ.attributeNameCheck,e,t)||"is"===e&&tZ.allowCustomizedBuiltInElements&&e0(tZ.tagNameCheck,r))},e8=D({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),e4=function(t){return!e8[w(t)]&&R(ta,t)},e9=function(t,r,n,i){if(e&&"object"==typeof tb&&"function"==typeof tb.getAttributeType&&!n)switch(tb.getAttributeType(t,r)){case"TrustedHTML":return tD(i);case"TrustedScriptURL":return tN(i)}return i},e7=function(t,e,r,n){try{r?t.setAttributeNS(r,e,n):t.setAttribute(e,n),eZ(t)?eP(t):y(a.removed)}catch(r){eU(e,t)}},rt=function(t){eJ(tY.beforeSanitizeAttributes,t,null);let e=t.attributes;if(!e||eZ(t))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:tX=e2(tY.uponSanitizeAttribute,tX,tG,t7),forceKeepAttr:void 0},n=e.length,i=eO(t.nodeName);for(;n--;){let a=e[n],o=a.name,s=a.namespaceURI,l=a.value,c=eO(o),u="value"===o?l:S(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,eJ(tY.uponSanitizeAttribute,t,r),u=r.attrValue,ea&&("id"===c||"name"===c)&&0!==M(u,eo)&&(eU(o,t,a),u=eo+u),t6&&R(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)||"attributename"===c&&v(u,"href")){eU(o,t,a);continue}if(!r.forceKeepAttr){if(!r.keepAttr||!t3&&R(tc,u)||(t5&&(u=eX(u)),!e6(i,c,u))){eU(o,t,a);continue}(u=e9(i,c,s,u))!==l&&e7(t,o,s,u)}}eJ(tY.afterSanitizeAttributes,t,null)},re=function(t){let e=null,r=eW(t);for(eJ(tY.beforeSanitizeShadowDOM,t,null);e=r.nextNode();)if(eJ(tY.uponSanitizeShadowNode,e,null),e5(e,t),rt(e),eV(e.content)&&re(e.content),tO(e)===tu.element){let t=tM(e);eV(t)&&(rr(t),re(t))}eJ(tY.afterSanitizeShadowDOM,t,null)},rr=function(t){let e=[{node:t,shadow:null}];for(;e.length>0;){let t=e.pop();if(t.shadow){re(t.shadow);continue}let r=t.node,n=tO(r)===tu.element,i=tv(r);if(i)for(let t=i.length-1;t>=0;--t)e.push({node:i[t],shadow:null});if(n){let t=tC?tC(r):null;if("string"==typeof t&&"template"===eO(t)){let t=r.content;eV(t)&&e.push({node:t,shadow:null})}}if(n){let t=tM(r);eV(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return a.sanitize=function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,i=null,o=null,l=null;if((e_=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!eQ(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return T(t);case"boolean":return C(t);case"bigint":return $?$(t):"0";case"symbol":return O?O(t):"Symbol()";case"undefined":default:return E(t);case"function":case"object":{if(null===t)return E(t);let e=P(t,"toString");if("function"==typeof e){let r=e(t);return"string"==typeof r?r:E(r)}return E(t)}}}(t)))throw K("dirty is not a string, aborting");if(!a.isSupported)return t;t4?(tq=t9,tX=t7):eK(r),(tY.uponSanitizeElement.length>0||tY.uponSanitizeAttribute.length>0)&&(tq=N(tq)),tY.uponSanitizeAttribute.length>0&&(tX=N(tX)),a.removed=[];let c=el&&"string"!=typeof t&&eQ(t);if(c){eH(t);let e=tL(t);if("string"==typeof e){let r=eO(e);if(!tq[r]||tV[r])throw eF(t),K("root node is forbidden and cannot be sanitized in-place")}if(eZ(t))throw eF(t),K("root node is clobbered and cannot be sanitized in-place");try{rr(t)}catch(e){throw eF(t),e}}else if(eQ(t))(i=(n=eq("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType===tu.element&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i),rr(i);else{if(!ee&&!t5&&!t8&&-1===t.indexOf("<"))return e&&en?tD(t):t;if(!(n=eq(t)))return ee?null:en?tE:""}n&&et&&eP(n.firstChild);let u=c?t:n;try{let t=eW(u);for(;o=t.nextNode();)e5(o,u),rt(o),eV(o.content)&&re(o.content)}catch(e){throw c&&(eF(t),g(a.removed,t=>{t.element&&eB(t.element)})),e}if(c)return g(a.removed,t=>{t.element&&eB(t.element)}),t5&&eG(t),t;if(ee){if(t5&&eG(n),er)for(l=tU.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(tX.shadowroot||tX.shadowrootmode)&&(l=tB.call(s,l,!0)),l}let h=t8?n.outerHTML:n.innerHTML;return t8&&tq["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&R(ti,n.ownerDocument.doctype.name)&&(h="\n"+h),t5&&(h=eX(h)),e&&en?tD(h):h},a.setConfig=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eK(t),t4=!0,t9=tq,t7=tX},a.clearConfig=function(){eL=null,t4=!1,t9=null,t7=null,e=r,tE=""},a.isValidAttribute=function(t,e,r){return eL||eK({}),e6(eO(t),eO(e),r)},a.addHook=function(t,e){"function"==typeof e&&L(tY,t)&&b(tY[t],e)},a.removeHook=function(t,e){if(L(tY,t)){if(void 0!==e){let r=m(tY[t],e);return -1===r?void 0:x(tY[t],r,1)[0]}return y(tY[t])}},a.removeHooks=function(t){L(tY,t)&&(tY[t]=[])},a.removeAllHooks=function(){tY=tg()},a}()},74749:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},75521:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(52701),i=r(48392),a=r(54135),o=i.A?function(t,e){return(0,i.A)(t,"toString",{configurable:!0,enumerable:!1,value:(0,n.A)(e),writable:!0})}:a.A,s=Date.now;let l=function(t){var e=0,r=0;return function(){var n=s(),i=16-(n-r);if(r=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(o)},75713:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(33177),i=r(82888);let a=function(t,e){var r=[];return(0,i.A)(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r};var o=r(15608),s=r(70754);let l=function(t,e){return((0,s.A)(t)?n.A:a)(t,(0,o.A)(e,3))}},76162:(t,e,r)=>{"use strict";e.J=function(t){if(!t)return n.BLANK_URL;var e,r=i(t.trim());do e=(r=i(r=r.replace(n.ctrlCharactersRegex,"").replace(n.htmlEntitiesRegex,function(t,e){return String.fromCharCode(e)}).replace(n.htmlCtrlEntityRegex,"").replace(n.ctrlCharactersRegex,"").replace(n.whitespaceEscapeCharsRegex,"").trim())).match(n.ctrlCharactersRegex)||r.match(n.htmlEntitiesRegex)||r.match(n.htmlCtrlEntityRegex)||r.match(n.whitespaceEscapeCharsRegex);while(e&&e.length>0);var a=r;if(!a)return n.BLANK_URL;if(n.relativeFirstCharacters.indexOf(a[0])>-1)return a;var o=a.trimStart(),s=o.match(n.urlSchemeRegex);if(!s)return a;var l=s[0].toLowerCase().trim();if(n.invalidProtocolRegex.test(l))return n.BLANK_URL;var c=o.replace(/\\/g,"/");if("mailto:"===l||l.includes("://"))return c;if("http:"===l||"https:"===l){if(!URL.canParse(c))return n.BLANK_URL;var u=new URL(c);return u.protocol=u.protocol.toLowerCase(),u.hostname=u.hostname.toLowerCase(),u.toString()}return c};var n=r(21463);function i(t){try{return decodeURIComponent(t)}catch(e){return t}}},77089:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(5631),i=r(54578);let a=function(t,e){e=(0,n.A)(e,t);for(var r=0,a=e.length;null!=t&&r{"use strict";r.d(e,{A:()=>u});var n=r(10270),i=r(74749),a=r(62365),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1;var s=r(52578),l=r(586),c=l.A&&l.A.isTypedArray;let u=c?(0,s.A)(c):function(t){return(0,a.A)(t)&&(0,i.A)(t.length)&&!!o[(0,n.A)(t)]}},80153:(t,e,r)=>{"use strict";r.d(e,{T:()=>D});var n=r(52701),i=r(64845),a=r(83657),o=r(75713),s=r(16511),l=r(3449),c=r(16959),u=r(70754),h=r(34109),f=r(45629),d=r(3308),p=r(78087),g=Object.prototype.hasOwnProperty;let m=function(t){if(null==t)return!0;if((0,h.A)(t)&&((0,u.A)(t)||"string"==typeof t||"function"==typeof t.splice||(0,f.A)(t)||(0,p.A)(t)||(0,c.A)(t)))return!t.length;var e=(0,l.A)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,d.A)(t))return!(0,s.A)(t).length;for(var r in t)if(g.call(t,r))return!1;return!0};var y=r(22249),b=r(33135),x=r(61716),_=r(51121),w=r(70898),k=r(87772);let v=function(t){return t!=t},A=function(t,e,r){for(var n=r-1,i=t.length;++n-1},S=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n=200){var c=e?null:O(t);if(c)return(0,$.A)(c);o=!1,i=T.A,l=new w.A}else l=e?[]:s;e:for(;++n1?n.setNode(t,e):n.setNode(t)}),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?arguments.length>1&&(this._nodes[t]=e):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount),this}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=t=>this.removeEdge(this._edgeObjs[t]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],y.A(this.children(t),t=>{this.setParent(t)}),delete this._children[t]),y.A(a.A(this._in[t]),e),delete this._in[t],delete this._preds[t],y.A(a.A(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(b.A(e))e="\0";else{e+="";for(var r=e;!b.A(r);r=this.parent(r))if(r===t)throw Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}}children(t){if(b.A(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return a.A(e)}else if("\0"===t)return this.nodes();else if(this.hasNode(t))return[]}predecessors(t){var e=this._preds[t];if(e)return a.A(e)}successors(t){var e=this._sucs[t];if(e)return a.A(e)}neighbors(t){var e=this.predecessors(t);if(e)return R(e,this.successors(t))}isLeaf(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;y.A(this._nodes,function(r,n){t(n)&&e.setNode(n,r)}),y.A(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,r.edge(t))});var n={};return this._isCompound&&y.A(e.nodes(),function(t){e.setParent(t,function t(i){var a=r.parent(i);return void 0===a||e.hasNode(a)?(n[i]=a,a):a in n?n[a]:t(a)}(t))}),e}setDefaultEdgeLabel(t){return i.A(t)||(t=n.A(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return K.A(this._edgeObjs)}setPath(t,e){var r=this,n=arguments;return j.A(t,function(t,i){return n.length>1?r.setEdge(t,i,e):r.setEdge(t,i),i}),this}setEdge(){var t,e,r,n,i=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,r=a.name,2==arguments.length&&(n=arguments[1],i=!0)):(t=a,e=arguments[1],r=arguments[3],arguments.length>2&&(n=arguments[2],i=!0)),t=""+t,e=""+e,b.A(r)||(r=""+r);var o=I(this._isDirected,t,e,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return i&&(this._edgeLabels[o]=n),this;if(!b.A(r)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[o]=i?n:this._defaultEdgeLabelFn(t,e,r);var s=function(t,e,r,n){var i=""+e,a=""+r;if(!t&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return n&&(s.name=n),s}(this._isDirected,t,e,r);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[o]=s,N(this._preds[e],t),N(this._sucs[t],e),this._in[e][o]=s,this._out[t][o]=s,this._edgeCount++,this}edge(t,e,r){var n=1==arguments.length?F(this._isDirected,arguments[0]):I(this._isDirected,t,e,r);return this._edgeLabels[n]}hasEdge(t,e,r){var n=1==arguments.length?F(this._isDirected,arguments[0]):I(this._isDirected,t,e,r);return Object.prototype.hasOwnProperty.call(this._edgeLabels,n)}removeEdge(t,e,r){var n=1==arguments.length?F(this._isDirected,arguments[0]):I(this._isDirected,t,e,r),i=this._edgeObjs[n];return i&&(t=i.v,e=i.w,delete this._edgeLabels[n],delete this._edgeObjs[n],P(this._preds[e],t),P(this._sucs[t],e),delete this._in[e][n],delete this._out[t][n],this._edgeCount--),this}inEdges(t,e){var r=this._in[t];if(r){var n=K.A(r);return e?o.A(n,function(t){return t.v===e}):n}}outEdges(t,e){var r=this._out[t];if(r){var n=K.A(r);return e?o.A(n,function(t){return t.w===e}):n}}nodeEdges(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}}function N(t,e){t[e]?t[e]++:t[e]=1}function P(t,e){--t[e]||delete t[e]}function I(t,e,r,n){var i=""+e,a=""+r;if(!t&&i>a){var o=i;i=a,a=o}return i+"\x01"+a+"\x01"+(b.A(n)?"\0":n)}function F(t,e){return I(t,e.v,e.w,e.name)}D.prototype._nodeCount=0,D.prototype._edgeCount=0},80665:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(9413);let i=(t,e)=>(0,n.A)(t,"l",e)},82142:(t,e,r)=>{"use strict";r.d(e,{W6:()=>tH,GZ:()=>tZ,lT:()=>tO});var n=r(29278),i=r(13892),a=r(69301),o=r(98999),s=r(91158),l=r(91631),c=r(10160),u=r(70668);function h(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var f=h(),d={exec:()=>null};function p(t,e=""){let r="string"==typeof t?t:t.source,n={replace:(t,e)=>{let i="string"==typeof e?e:e.source;return i=i.replace(m.caret,"$1"),r=r.replace(t,i),n},getRegex:()=>new RegExp(r,e)};return n}var g=(()=>{try{return!!RegExp("(?<=1)(?/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},y=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,b=/(?:[*+-]|\d{1,9}[.)])/,x=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_=p(x).replace(/bull/g,b).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),w=p(x).replace(/bull/g,b).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),k=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,v=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,A=p(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",v).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),M=p(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,b).getRegex(),S="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",T=/|$))/,C=p("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",T).replace("tag",S).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$=p(k).replace("hr",y).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",S).getRegex(),O={blockquote:p(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:A,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:y,html:C,lheading:_,list:M,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:$,table:d,text:/^[^\n]+/},L=p("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",y).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",S).getRegex(),E={...O,lheading:w,table:L,paragraph:p(k).replace("hr",y).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",L).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",S).getRegex()},R={...O,html:p(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",T).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:d,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:p(k).replace("hr",y).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",_).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},K=/^( {2,}|\\)\n(?!\s*$)/,j=/[\p{P}\p{S}]/u,D=/[\s\p{P}\p{S}]/u,N=/[^\s\p{P}\p{S}]/u,P=p(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,D).getRegex(),I=/(?!~)[\p{P}\p{S}]/u,F=p(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",g?"(?`+)[^`]+\k(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),U=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,z=p(U,"u").replace(/punct/g,j).getRegex(),B=p(U,"u").replace(/punct/g,I).getRegex(),Y="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",H=p(Y,"gu").replace(/notPunctSpace/g,N).replace(/punctSpace/g,D).replace(/punct/g,j).getRegex(),q=p(Y,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,I).getRegex(),W=p("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,N).replace(/punctSpace/g,D).replace(/punct/g,j).getRegex(),X=p(/\\(punct)/,"gu").replace(/punct/g,j).getRegex(),G=p(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Z=p(T).replace("(?:--\x3e|$)","--\x3e").getRegex(),V=p("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Z).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Q=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,J=p(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Q).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),tt=p(/^!?\[(label)\]\[(ref)\]/).replace("label",Q).replace("ref",v).getRegex(),te=p(/^!?\[(ref)\](?:\[\])?/).replace("ref",v).getRegex(),tr=p("reflink|nolink(?!\\()","g").replace("reflink",tt).replace("nolink",te).getRegex(),tn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ti={_backpedal:d,anyPunctuation:X,autolink:G,blockSkip:F,br:K,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:d,emStrongLDelim:z,emStrongRDelimAst:H,emStrongRDelimUnd:W,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:J,nolink:te,punctuation:P,reflink:tt,reflinkSearch:tr,tag:V,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},th=t=>tu[t];function tf(t,e){if(e){if(m.escapeTest.test(t))return t.replace(m.escapeReplace,th)}else if(m.escapeTestNoEncode.test(t))return t.replace(m.escapeReplaceNoEncode,th);return t}function td(t){try{t=encodeURI(t).replace(m.percentDecode,"%")}catch{return null}return t}function tp(t,e){let r=t.replace(m.findPipe,(t,e,r)=>{let n=!1,i=e;for(;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"}).split(m.splitPipe),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:tg(t,` -`)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let t=e[0],r=function(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(null===n)return e;let i=n[1];return e.split(` -`).map(t=>{let e=t.match(r.other.beginningSpace);if(null===e)return t;let[n]=e;return n.length>=i.length?t.slice(i.length):t}).join(` -`)}(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let e=tg(t,"#");(this.options.pedantic||!e||this.rules.other.endingSpaceChar.test(e))&&(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:tg(e[0],` -`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let t=tg(e[0],` -`).split(` -`),r="",n="",i=[];for(;t.length>0;){let e=!1,a=[],o;for(o=0;o1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let a=this.rules.other.listItemRegex(r),o=!1;for(;t;){let r=!1,n="",s="";if(!(e=a.exec(t))||this.rules.block.hr.test(t))break;n=e[0],t=t.substring(n.length);let l=e[2].split(` -`,1)[0].replace(this.rules.other.listReplaceTabs,t=>" ".repeat(3*t.length)),c=t.split(` -`,1)[0],u=!l.trim(),h=0;if(this.options.pedantic?(h=2,s=l.trimStart()):u?h=e[1].length+1:(h=(h=e[2].search(this.rules.other.nonSpaceChar))>4?1:h,s=l.slice(h),h+=e[1].length),u&&this.rules.other.blankLine.test(c)&&(n+=c+` -`,t=t.substring(c.length+1),r=!0),!r){let e=this.rules.other.nextBulletRegex(h),r=this.rules.other.hrRegex(h),i=this.rules.other.fencesBeginRegex(h),a=this.rules.other.headingBeginRegex(h),o=this.rules.other.htmlBeginRegex(h);for(;t;){let f=t.split(` -`,1)[0],d;if(c=f,d=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||a.test(c)||o.test(c)||e.test(c)||r.test(c))break;if(d.search(this.rules.other.nonSpaceChar)>=h||!c.trim())s+=` -`+d.slice(h);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||r.test(l))break;s+=` -`+c}u||c.trim()||(u=!0),n+=f+` -`,t=t.substring(f.length+1),l=d.slice(h)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(o=!0));let f=null,d;this.options.gfm&&(f=this.rules.other.listIsTask.exec(s))&&(d="[ ] "!==f[0],s=s.replace(this.rules.other.listReplaceTask,"")),i.items.push({type:"list_item",raw:n,task:!!f,checked:d,loose:!1,text:s,tokens:[]}),i.raw+=n}let s=i.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),i.raw=i.raw.trimEnd();for(let t=0;t"space"===t.type);i.loose=e.length>0&&e.some(t=>this.rules.other.anyLine.test(t.raw))}if(i.loose)for(let t=0;t({text:t,tokens:this.lexer.inline(t),header:!1,align:a.align[e]})));return a}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let t=e[1].charAt(e[1].length-1)===` -`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let e=tg(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{let t=function(t,e){if(-1===t.indexOf(")"))return -1;let r=0;for(let n=0;n0?-2:-1}(e[2],"()");if(-2===t)return;if(t>-1){let r=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,r).trim(),e[3]=""}}let r=e[2],n="";if(this.options.pedantic){let t=this.rules.other.pedanticHrefTitle.exec(r);t&&(r=t[1],n=t[3])}else n=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?r.slice(1):r.slice(1,-1)),tm(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let t=e[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!t){let t=r[0].charAt(0);return{type:"text",raw:t,text:t}}return tm(r,t,r[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!r||this.rules.inline.punctuation.exec(r))){let r=[...n[0]].length-1,i,a,o=r,s=0,l="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+r);null!=(n=l.exec(e));){if(!(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6]))continue;if(a=[...i].length,n[3]||n[4]){o+=a;continue}if((n[5]||n[6])&&r%3&&!((r+a)%3)){s+=a;continue}if((o-=a)>0)continue;a=Math.min(a,a+o+s);let e=[...n[0]][0].length,l=t.slice(0,r+n.index+e+a);if(Math.min(r,a)%2){let t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(t),n=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return r&&n&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let t,r;return r="@"===e[2]?"mailto:"+(t=e[1]):t=e[1],{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,r;if("@"===e[2])r="mailto:"+(t=e[0]);else{let n;do n=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(n!==e[0]);t=e[0],r="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},tb=class t{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||f,this.options.tokenizer=this.options.tokenizer||new ty,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let e={other:m,block:tl.normal,inline:tc.normal};this.options.pedantic?(e.block=tl.pedantic,e.inline=tc.pedantic):this.options.gfm&&(e.block=tl.gfm,this.options.breaks?e.inline=tc.breaks:e.inline=tc.gfm),this.tokenizer.rules=e}static get rules(){return{block:tl,inline:tc}}static lex(e,r){return new t(r).lex(e)}static lexInline(e,r){return new t(r).inlineTokens(e)}lex(t){t=t.replace(m.carriageReturn,` -`),this.blockTokens(t,this.tokens);for(let t=0;t!!(n=r.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))continue;if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length);let r=e.at(-1);1===n.raw.length&&void 0!==r?r.raw+=` -`:e.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length);let r=e.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(` -`)?"":` -`)+n.raw,r.text+=` -`+n.text,this.inlineQueue.at(-1).src=r.text):e.push(n);continue}if((n=this.tokenizer.fences(t))||(n=this.tokenizer.heading(t))||(n=this.tokenizer.hr(t))||(n=this.tokenizer.blockquote(t))||(n=this.tokenizer.list(t))||(n=this.tokenizer.html(t))){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length);let r=e.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(` -`)?"":` -`)+n.raw,r.text+=` -`+n.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},e.push(n));continue}if((n=this.tokenizer.table(t))||(n=this.tokenizer.lheading(t))){t=t.substring(n.raw.length),e.push(n);continue}let i=t;if(this.options.extensions?.startBlock){let e=1/0,r=t.slice(1),n;this.options.extensions.startBlock.forEach(t=>{"number"==typeof(n=t.call({lexer:this},r))&&n>=0&&(e=Math.min(e,n))}),e<1/0&&e>=0&&(i=t.substring(0,e+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i))){let a=e.at(-1);r&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(` -`)?"":` -`)+n.raw,a.text+=` -`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):e.push(n),r=i.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length);let r=e.at(-1);r?.type==="text"?(r.raw+=(r.raw.endsWith(` -`)?"":` -`)+n.raw,r.text+=` -`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):e.push(n);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let r,n=t,i=null;if(this.tokens.links){let t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(n));)t.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(n));)r=i[2]?i[2].length:0,n=n.slice(0,i.index+r)+"["+"a".repeat(i[0].length-r-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o="";for(;t;){let r;if(a||(o=""),a=!1,this.options.extensions?.inline?.some(n=>!!(r=n.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))continue;if((r=this.tokenizer.escape(t))||(r=this.tokenizer.tag(t))||(r=this.tokenizer.link(t))){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length);let n=e.at(-1);"text"===r.type&&n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):e.push(r);continue}if((r=this.tokenizer.emStrong(t,n,o))||(r=this.tokenizer.codespan(t))||(r=this.tokenizer.br(t))||(r=this.tokenizer.del(t))||(r=this.tokenizer.autolink(t))||!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),e.push(r);continue}let i=t;if(this.options.extensions?.startInline){let e=1/0,r=t.slice(1),n;this.options.extensions.startInline.forEach(t=>{"number"==typeof(n=t.call({lexer:this},r))&&n>=0&&(e=Math.min(e,n))}),e<1/0&&e>=0&&(i=t.substring(0,e+1))}if(r=this.tokenizer.inlineText(i)){t=t.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(o=r.raw.slice(-1)),a=!0;let n=e.at(-1);n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):e.push(r);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return e}},tx=class{options;parser;constructor(t){this.options=t||f}space(t){return""}code({text:t,lang:e,escaped:r}){let n=(e||"").match(m.notSpaceStart)?.[0],i=t.replace(m.endingNewline,"")+` -`;return n?'
'+(r?i:tf(i,!0))+`
-`:"
"+(r?i:tf(i,!0))+`
-`}blockquote({tokens:t}){return`
-${this.parser.parse(t)}
-`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`${this.parser.parseInline(t)} -`}hr(t){return`
-`}list(t){let e=t.ordered,r=t.start,n="";for(let e=0;e -`+n+" -`}listitem(t){let e="";if(t.task){let r=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=r+" "+tf(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):e+=r+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`
  • ${e}
  • -`}checkbox({checked:t}){return"'}paragraph({tokens:t}){return`

    ${this.parser.parseInline(t)}

    -`}table(t){let e="",r="";for(let e=0;e${n}`),` - -`+e+` -`+n+`
    -`}tablerow({text:t}){return` -${t} -`}tablecell(t){let e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+` -`}strong({tokens:t}){return`${this.parser.parseInline(t)}`}em({tokens:t}){return`${this.parser.parseInline(t)}`}codespan({text:t}){return`${tf(t,!0)}`}br(t){return"
    "}del({tokens:t}){return`${this.parser.parseInline(t)}`}link({href:t,title:e,tokens:r}){let n=this.parser.parseInline(r),i=td(t);if(null===i)return n;let a='
    "}image({href:t,title:e,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let i=td(t);if(null===i)return tf(r);t=i;let a=`${r}{let i=t[n].flat(1/0);r=r.concat(this.walkTokens(i,e))}):t.tokens&&(r=r.concat(this.walkTokens(t.tokens,e)))}}return r}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(t=>{let r={...t};if(r.async=this.defaults.async||r.async||!1,t.extensions&&(t.extensions.forEach(t=>{if(!t.name)throw Error("extension name required");if("renderer"in t){let r=e.renderers[t.name];r?e.renderers[t.name]=function(...e){let n=t.renderer.apply(this,e);return!1===n&&(n=r.apply(this,e)),n}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw Error("extension level must be 'block' or 'inline'");let r=e[t.level];r?r.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),r.extensions=e),t.renderer){let e=this.defaults.renderer||new tx(this.defaults);for(let r in t.renderer){if(!(r in e))throw Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let n=t.renderer[r],i=e[r];e[r]=(...t)=>{let r=n.apply(e,t);return!1===r&&(r=i.apply(e,t)),r||""}}r.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new ty(this.defaults);for(let r in t.tokenizer){if(!(r in e))throw Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let n=t.tokenizer[r],i=e[r];e[r]=(...t)=>{let r=n.apply(e,t);return!1===r&&(r=i.apply(e,t)),r}}r.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new tk;for(let r in t.hooks){if(!(r in e))throw Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let n=t.hooks[r],i=e[r];tk.passThroughHooks.has(r)?e[r]=t=>{if(this.defaults.async&&tk.passThroughHooksRespectAsync.has(r))return(async()=>{let r=await n.call(e,t);return i.call(e,r)})();let a=n.call(e,t);return i.call(e,a)}:e[r]=(...t)=>{if(this.defaults.async)return(async()=>{let r=await n.apply(e,t);return!1===r&&(r=await i.apply(e,t)),r})();let r=n.apply(e,t);return!1===r&&(r=i.apply(e,t)),r}}r.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,n=t.walkTokens;r.walkTokens=function(t){let r=[];return r.push(n.call(this,t)),e&&(r=r.concat(e.call(this,t))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return tb.lex(t,e??this.defaults)}parser(t,e){return tw.parse(t,e??this.defaults)}parseMarkdown(t){return(e,r)=>{let n={...r},i={...this.defaults,...n},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===n.async)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||null===e)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=t),i.async)return(async()=>{let r=i.hooks?await i.hooks.preprocess(e):e,n=await (i.hooks?await i.hooks.provideLexer():t?tb.lex:tb.lexInline)(r,i),a=i.hooks?await i.hooks.processAllTokens(n):n;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await (i.hooks?await i.hooks.provideParser():t?tw.parse:tw.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(e=i.hooks.preprocess(e));let r=(i.hooks?i.hooks.provideLexer():t?tb.lex:tb.lexInline)(e,i);i.hooks&&(r=i.hooks.processAllTokens(r)),i.walkTokens&&this.walkTokens(r,i.walkTokens);let n=(i.hooks?i.hooks.provideParser():t?tw.parse:tw.parseInline)(r,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(t){return a(t)}}}onError(t,e){return r=>{if(r.message+=` -Please report this to https://github.com/markedjs/marked.`,t){let t="

    An error occurred:

    "+tf(r.message+"",!0)+"
    ";return e?Promise.resolve(t):t}if(e)return Promise.reject(r);throw r}}};function tA(t,e){return tv.parse(t,e)}tA.options=tA.setOptions=function(t){return tv.setOptions(t),tA.defaults=tv.defaults,f=tA.defaults,tA},tA.getDefaults=h,tA.defaults=f,tA.use=function(...t){return tv.use(...t),tA.defaults=tv.defaults,f=tA.defaults,tA},tA.walkTokens=function(t,e){return tv.walkTokens(t,e)},tA.parseInline=tv.parseInline,tA.Parser=tw,tA.parser=tw.parse,tA.Renderer=tx,tA.TextRenderer=t_,tA.Lexer=tb,tA.lexer=tb.lex,tA.Tokenizer=ty,tA.Hooks=tk,tA.parse=tA,tA.options,tA.setOptions,tA.use,tA.walkTokens,tA.parseInline,tw.parse,tb.lex;var tM=r(68332),tS="undefined"!=typeof performance&&"function"==typeof performance.now,tT=(0,s.K)(()=>tS?performance.now():0,"now"),tC="\uD83E\uDDDC ",t$={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"};(class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{(0,s.K)(this,"Profiler")}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(t){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(t))}tickSync(t,e){if(!this.enabled)return e();let r=tT();try{return e()}finally{this.buckets[t]=(this.buckets[t]??0)+(tT()-r)}}async tick(t,e){if(!this.enabled)return e();let r=tT();try{return await e()}finally{this.buckets[t]=(this.buckets[t]??0)+(tT()-r)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();let t=this.roots.at(-1),e=this.runLabel??t?.name;return t&&(this.records.push({label:e??t.name,tree:t,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(t,e)),this.runLabel=void 0,t}begin(t){if(!this.enabled)return;let e={name:t,start:tT(),duration:-1,children:[]},r=this.stack.at(-1);if(r?r.children.push(e):this.roots.push(e),this.stack.push(e),tS&&"function"==typeof performance.mark)try{performance.mark(`${tC}${t} \u25B6`)}catch{}}end(){if(!this.enabled)return;let t=this.stack.pop();if(!t)return;let e=tT();if(t.duration=e-t.start,tS&&"function"==typeof performance.measure)try{performance.measure(`${tC}${t.name}`,{start:t.start,end:e,detail:{devtools:{dataType:"track-entry",track:"Mermaid render",trackGroup:"Mermaid",color:t$[t.name]??"primary",tooltipText:`${t.name} \u2014 ${t.duration.toFixed(1)} ms`}}})}catch{}}async span(t,e){if(!this.enabled)return e();this.begin(t);try{return await e()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(t=this.report(),e){if(!t)return;let r=t.duration,n=e&&e!==t.name?`${t.name} [${e}]`:t.name,i=["ms % phase"],a=(0,s.K)((t,e)=>{let n=" ".repeat(e),o=t.duration.toFixed(1).padStart(8),s=r>0?`${(t.duration/r*100).toFixed(0).padStart(3)}%`:" -";for(let r of(i.push(`${o} ${s} ${n}${t.name}`),t.children))a(r,e+1);if(t.children.length>0){let e=t.children.reduce((t,e)=>t+e.duration,0),r=t.duration-e;if(r>.5){let t=r.toFixed(1).padStart(8);i.push(`${t} ${n} (self)`)}}},"walk");a(t,0);let o=Object.keys(this.buckets);if(o.length>0)for(let t of(i.push("—— buckets (summed) ——"),o))i.push(`${this.buckets[t].toFixed(1).padStart(8)} ${t}`);console.log(`${tC}mermaid render profile \xb7 ${n} -${i.join("\n")}`)}}),globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"};var tO=l.extend({raf(t){"function"==typeof queueMicrotask?queueMicrotask(t):setTimeout(t,0)}}).extend(c);function tL(t,{markdownAutoWrap:e}){let r=t.replace(//g,"\n").replace(/\n{2,}/g,"\n");return(0,tM.T)(r)}function tE(t){return t.split(/\\n|\n|/gi).map(t=>t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(t=>({content:t,type:"normal"}))??[])}function tR(t,e={}){let r=tL(t,e),n=tA.lexer(r),i=[[]],a=0;function o(t,e="normal"){"text"===t.type?t.text.split("\n").forEach((t,r)=>{0!==r&&(a++,i.push([])),t.split(" ").forEach(t=>{(t=t.replace(/'/g,"'"))&&i[a].push({content:t,type:e})})}):"strong"===t.type||"em"===t.type?t.tokens.forEach(e=>{o(e,t.type)}):"html"===t.type&&i[a].push({content:t.text,type:"normal"})}return(0,s.K)(o,"processNode"),n.forEach(t=>{"paragraph"===t.type?t.tokens?.forEach(t=>{o(t)}):"html"===t.type?i[a].push({content:t.text,type:"normal"}):i[a].push({content:t.raw,type:"normal"})}),i}function tK(t){return t?`

    ${t.replace(/\\n|\n/g,"
    ")}

    `:""}function tj(t,{markdownAutoWrap:e}={}){let r=tA.lexer(t);function n(t){if("text"===t.type)return!1===e?t.text.replace(/\n */g,"
    ").replace(/ /g," "):t.text.replace(/\n */g,"
    ");if("strong"===t.type)return`${t.tokens?.map(n).join("")}`;if("em"===t.type)return`${t.tokens?.map(n).join("")}`;if("paragraph"===t.type)return`

    ${t.tokens?.map(n).join("")}

    `;if("space"===t.type)return"";else if("html"===t.type)return`${t.text}`;else if("escape"===t.type)return t.text;return o.R.warn(`Unsupported markdown: ${t.type}`),t.raw}return(0,s.K)(n,"output"),r.map(n).join("")}function tD(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(t=>t.segment):[...t]}function tN(t,e){return tP(t,[],tD(e.content),e.type)}function tP(t,e,r,n){if(0===r.length)return[{content:e.join(""),type:n},{content:"",type:n}];let[i,...a]=r,o=[...e,i];return t([{content:o.join(""),type:n}])?tP(t,o,a,n):(0===e.length&&i&&(e.push(i),r.shift()),[{content:e.join(""),type:n},{content:r.join(""),type:n}])}function tI(t,e){if(t.some(({content:t})=>t.includes("\n")))throw Error("splitLineToFitWidth does not support newlines in the line");return tF(t,e)}function tF(t,e,r=[],n=[]){if(0===t.length)return n.length>0&&r.push(n),r.length>0?r:[];let i="";" "===t[0].content&&(i=" ",t.shift());let a=t.shift()??{content:" ",type:"normal"},o=[...n];if(""!==i&&o.push({content:i,type:"normal"}),o.push(a),e(o))return tF(t,e,r,o);if(n.length>0)r.push(n),t.unshift(a);else if(a.content){let[n,i]=tN(e,a);r.push([n]),i.content&&t.unshift(i)}return tF(t,e,r)}function tU(t,e){e&&t.attr("style",e)}async function tz(t,e,r,n,i=!1,o=(0,a.zj)()){let s=t.append("foreignObject");s.attr("width",`${Math.min(10*r,16384)}px`),s.attr("height",`${Math.min(10*r,16384)}px`);let l=s.append("xhtml:div"),c=(0,a.Wi)(e.label)?await (0,a.dj)(e.label.replace(a.Y2.lineBreakRegex,"\n"),o):(0,a.jZ)(e.label,o),u=e.isNode?"nodeLabel":"edgeLabel",h=l.append("span");return h.html(c),tU(h,e.labelStyle),h.attr("class",`${u} ${n}`),tU(l,e.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),r!==1/0&&(l.style("max-width",r+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&l.attr("class","labelBkg"),(await tO.measure(()=>l.node().getBoundingClientRect())).width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px")),s.node()}function tB(t,e,r,n=!1){let i=t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em");return n&&i.attr("text-anchor","middle"),i}function tY(t,e,r){let n=t.append("text"),i=tB(n,1,e);tX(i,r);let a=i.node().getComputedTextLength();return n.remove(),a}function tH(t,e,r){let n=t.append("text"),i=tB(n,1,e);tX(i,[{content:r,type:"normal"}]);let a=i.node()?.getBoundingClientRect();return a&&n.remove(),a}function tq(t,e,r,n=!1,i=!1){let a=e.append("g"),o=a.insert("rect").attr("class","background").attr("style","stroke: none"),l=a.append("text").attr("y","-10.1");i&&l.attr("text-anchor","middle");let c=0;for(let e of r){let r=(0,s.K)(e=>tY(a,1.1,e)<=t,"checkWidth");for(let t of r(e)?[e]:tI(e,r))tX(tB(l,c,1.1,i),t),c++}if(!n)return l.node();{let t=l.node().getBBox();return o.attr("x",t.x-2).attr("y",t.y-2).attr("width",t.width+4).attr("height",t.height+4),a.node()}}function tW(t){return t.replace(/&(amp|lt|gt);/g,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return t}})}function tX(t,e){t.text(""),e.forEach((e,r)=>{let n=t.append("tspan").attr("font-style","em"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===r?n.text(tW(e.content)):n.text(" "+tW(e.content))})}async function tG(t,e={}){let r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(t,i,o)=>(r.push((async()=>{let r=`${i}:${o}`;return await (0,n.dn)(r)?await (0,n.WY)(r,void 0,{class:"label-icon"}):``})()),t));let i=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}(0,s.K)(tL,"preprocessMarkdown"),(0,s.K)(tE,"nonMarkdownToLines"),(0,s.K)(tR,"markdownToLines"),(0,s.K)(tK,"nonMarkdownToHTML"),(0,s.K)(tj,"markdownToHTML"),(0,s.K)(tD,"splitTextToChars"),(0,s.K)(tN,"splitWordToFitWidth"),(0,s.K)(tP,"splitWordToFitWidthRecursion"),(0,s.K)(tI,"splitLineToFitWidth"),(0,s.K)(tF,"splitLineToFitWidthRecursion"),(0,s.K)(tU,"applyStyle"),(0,s.K)(tz,"addHtmlSpan"),(0,s.K)(tB,"createTspan"),(0,s.K)(tY,"computeWidthOfText"),(0,s.K)(tH,"computeDimensionOfText"),(0,s.K)(tq,"createFormattedText"),(0,s.K)(tW,"decodeHTMLEntities"),(0,s.K)(tX,"updateTextContentAndStyles"),(0,s.K)(tG,"replaceIconSubstring");var tZ=(0,s.K)(async(t,e="",{style:r="",isTitle:n=!1,classes:s="",useHtmlLabels:l=!0,markdown:c=!0,isNode:h=!0,width:f=200,addSvgBackground:d=!1}={},p)=>{if(o.R.debug("XYZ createText",e,r,n,s,l,h,"addSvgBackground: ",d),l){let n=c?tj(e,p):tK(e),o=await tG((0,i.Sm)(n),p),l=e.replace(/\\\\/g,"\\"),u={isNode:h,label:(0,a.Wi)(e)?l:o,labelStyle:r.replace("fill:","color:")};return await tz(t,u,f,s,d,p)}{let a=(0,i.Sm)(e.replace(//g,"
    ")),o=tq(f,t,c?tR(a.replace("
    ","
    "),p):tE(a),!!e&&d,!h);if(h){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));let t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,u.Ltv)(o).attr("style",t)}else{let t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,u.Ltv)(o).select("rect").attr("style",t.replace(/background:/g,"fill:"));let e=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,u.Ltv)(o).select("text").attr("style",e)}return n?(0,u.Ltv)(o).selectAll("tspan.text-outer-tspan").classed("title-row",!0):(0,u.Ltv)(o).selectAll("tspan.text-outer-tspan").classed("row",!0),o}},"createText")},82372:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});let n=function(t,e){return null!=t&&e in Object(t)};var i=r(68177);let a=function(t,e){return null!=t&&(0,i.A)(t,e,n)}},82683:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t,e){return t===e||t!=t&&e!=e}},82888:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n,i=r(25634),a=r(34109);let o=(n=i.A,function(t,e){if(null==t)return t;if(!(0,a.A)(t))return n(t,e);for(var r=t.length,i=-1,o=Object(t);++i{"use strict";r.d(e,{A:()=>o});var n=r(1320),i=r(16511),a=r(34109);let o=function(t){return(0,a.A)(t)?(0,n.A)(t):(0,i.A)(t)}},83812:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(84746),i=r(73986);let a=(0,n.A)(i.A,"Map")},83859:(t,e,r)=>{"use strict";function n(t){var e;return null!=t&&"function"!=typeof t&&Number.isSafeInteger(e=t.length)&&e>=0}r.d(e,{X:()=>n})},84368:(t,e,r)=>{"use strict";r.d(e,{i:()=>i});var n=r(84487);function i(t){return(0,n.i)(t)}},84487:(t,e,r)=>{"use strict";function n(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}r.d(e,{i:()=>n})},84746:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var n=r(64845),i=r(73986).A["__core-js_shared__"],a=function(){var t=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),o=r(43266),s=r(25046),l=/^\[object .+?Constructor\]$/,c=Object.prototype,u=Function.prototype.toString,h=c.hasOwnProperty,f=RegExp("^"+u.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let d=function(t){return!!(0,o.A)(t)&&(!a||!(a in t))&&((0,n.A)(t)?f:l).test((0,s.A)(t))},p=function(t,e){var r=null==t?void 0:t[e];return d(r)?r:void 0}},87772:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t,e,r,n){for(var i=t.length,a=r+(n?1:-1);n?a--:++a{"use strict";r.d(e,{A:()=>a});var n=r(10270),i=r(62365);let a=function(t){return"symbol"==typeof t||(0,i.A)(t)&&"[object Symbol]"==(0,n.A)(t)}},91158:(t,e,r)=>{"use strict";r.d(e,{K:()=>i,V:()=>a});var n=Object.defineProperty,i=(t,e)=>n(t,"name",{value:e,configurable:!0}),a=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})}},91631:function(t,e,r){var n;!function(e){"use strict";var i=function(){},a=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(t){return setTimeout(t,16)};function o(){this.reads=[],this.writes=[],this.raf=a.bind(e),i("initialized",this)}function s(t){t.scheduled||(t.scheduled=!0,t.raf(l.bind(null,t)),i("flush scheduled"))}function l(t){i("flush");var e,r=t.writes,n=t.reads;try{i("flushing reads",n.length),t.runTasks(n),i("flushing writes",r.length),t.runTasks(r)}catch(t){e=t}if(t.scheduled=!1,(n.length||r.length)&&s(t),e)if(i("task errored",e.message),t.catch)t.catch(e);else throw e}function c(t,e){var r=t.indexOf(e);return!!~r&&!!t.splice(r,1)}o.prototype={constructor:o,runTasks:function(t){var e;for(i("run tasks");e=t.shift();)e()},measure:function(t,e){i("measure");var r=e?t.bind(e):t;return this.reads.push(r),s(this),r},mutate:function(t,e){i("mutate");var r=e?t.bind(e):t;return this.writes.push(r),s(this),r},clear:function(t){return i("clear",t),c(this.reads,t)||c(this.writes,t)},extend:function(t){if(i("extend",t),"object"!=typeof t)throw Error("expected object");var e=Object.create(this);return function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])}(e,t),e.fastdom=this,e.initialize&&e.initialize(),e},catch:null};var u=e.fastdom=e.fastdom||new o;void 0===(n=(function(){return u}).call(u,r,u,t))||(t.exports=n)}("undefined"!=typeof window?window:void 0!==this?this:globalThis)},93864:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},94191:(t,e,r)=>{"use strict";r.d(e,{D:()=>o});var n=r(69301),i=r(91158),a=r(70668),o=(0,i.K)(t=>{let{securityLevel:e}=(0,n.D7)(),r=(0,a.Ltv)("body");if("sandbox"===e){let e=(0,a.Ltv)(`#i${t}`),n=e.node()?.contentDocument??document;r=(0,a.Ltv)(n.body)}return r.select(`#${t}`)},"selectSvgElement")},94250:(t,e,r)=>{"use strict";function n(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}r.d(e,{b:()=>n})},95416:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t,e,r){for(var n=-1,i=Object(t),a=r(t),o=a.length;o--;){var s=a[++n];if(!1===e(i[s],s,i))break}return t}},96719:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r{"use strict";r.d(e,{H:()=>s,R:()=>o});var n=r(91158),i=r(53660),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},o={trace:(0,n.K)((...t)=>{},"trace"),debug:(0,n.K)((...t)=>{},"debug"),info:(0,n.K)((...t)=>{},"info"),warn:(0,n.K)((...t)=>{},"warn"),error:(0,n.K)((...t)=>{},"error"),fatal:(0,n.K)((...t)=>{},"fatal")},s=(0,n.K)(function(t="fatal"){let e=a.fatal;"string"==typeof t?t.toLowerCase()in a&&(e=a[t]):"number"==typeof t&&(e=t),o.trace=()=>{},o.debug=()=>{},o.info=()=>{},o.warn=()=>{},o.error=()=>{},o.fatal=()=>{},e<=a.fatal&&(o.fatal=console.error?console.error.bind(console,l("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",l("FATAL"))),e<=a.error&&(o.error=console.error?console.error.bind(console,l("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",l("ERROR"))),e<=a.warn&&(o.warn=console.warn?console.warn.bind(console,l("WARN"),"color: orange"):console.log.bind(console,`\x1b[33m`,l("WARN"))),e<=a.info&&(o.info=console.info?console.info.bind(console,l("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",l("INFO"))),e<=a.debug&&(o.debug=console.debug?console.debug.bind(console,l("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("DEBUG"))),e<=a.trace&&(o.trace=console.debug?console.debug.bind(console,l("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("TRACE")))},"setLogLevel"),l=(0,n.K)(t=>{let e=i().format("ss.SSS");return`%c${e} : ${t} : `},"format")},99788:(t,e,r)=>{"use strict";function n(t,e,r){if(t&&t.length){let[n,i]=e,a=Math.PI/180*r,o=Math.cos(a),s=Math.sin(a);for(let e of t){let[t,r]=e;e[0]=(t-n)*o-(r-i)*s+n,e[1]=(t-n)*s+(r-i)*o+i}}}function i(t,e){var r;let i=e.hachureAngle+90,a=e.hachureGap;a<0&&(a=4*e.strokeWidth),a=Math.round(Math.max(a,.1));let o=1;return e.roughness>=1&&((null==(r=e.randomizer)?void 0:r.next())||Math.random())>.7&&(o=a),function(t,e,r,i=1){let a=Math.max(e,.1),o=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,s=[0,0];if(r)for(let t of o)n(t,s,r);let l=function(t,e,r){let n=[];for(let e of t){var i,a;let t=[...e];i=t[0],a=t[t.length-1],i[0]===a[0]&&i[1]===a[1]||t.push([t[0][0],t[0][1]]),t.length>2&&n.push(t)}let o=[];e=Math.max(e,.1);let s=[];for(let t of n)for(let e=0;et.ymine.ymin?1:t.xe.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!s.length)return o;let l=[],c=s[0].ymin,u=0;for(;l.length||s.length;){if(s.length){let t=-1;for(let e=0;ec);e++)t=e;s.splice(0,t+1).forEach(t=>{l.push({s:c,edge:t})})}if((l=l.filter(t=>!(t.edge.ymax<=c))).sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==r||u%e==0)&&l.length>1)for(let t=0;t=l.length)break;let r=l[t].edge,n=l[e].edge;o.push([[Math.round(r.x),c],[Math.round(n.x),c]])}c+=r,l.forEach(t=>{t.edge.x=t.edge.x+r*t.edge.islope}),u++}return o}(o,a,i);if(r){for(let t of o)n(t,s,-r);let t=[];l.forEach(e=>t.push(...e)),n(t,s,-r)}return l}(t,a,i,o||1)}r.d(e,{A:()=>G});class a{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){let r=i(t,e);return{type:"fillSketch",ops:this.renderLines(r,e)}}renderLines(t,e){let r=[];for(let n of t)r.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],e));return r}}function o(t){let e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class s extends a{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth);let n=i(t,Object.assign({},e,{hachureGap:r=Math.max(r,.1)})),a=Math.PI/180*e.hachureAngle,s=[],l=.5*r*Math.cos(a),c=.5*r*Math.sin(a);for(let[t,e]of n)o([t,e])&&s.push([[t[0]-l,t[1]+c],[...e]],[[t[0]+l,t[1]-c],[...e]]);return{type:"fillSketch",ops:this.renderLines(s,e)}}}class l extends a{fillPolygons(t,e){let r=this._fillPolygons(t,e),n=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),i=this._fillPolygons(t,n);return r.ops=r.ops.concat(i.ops),r}}class c{constructor(t){this.helper=t}fillPolygons(t,e){let r=i(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(r,e)}dotsOnLines(t,e){let r=[],n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);let i=e.fillWeight;i<0&&(i=e.strokeWidth/2);let a=n/4;for(let s of t){let t=o(s),l=Math.ceil(t/n)-1,c=t-l*n,u=(s[0][0]+s[1][0])/2-n/4,h=Math.min(s[0][1],s[1][1]);for(let t=0;t{let a=o(t),s=Math.floor(a/(r+n)),l=(a+n-s*(r+n))/2,c=t[0],u=t[1];c[0]>u[0]&&(c=t[1],u=t[0]);let h=Math.atan((u[1]-c[1])/(u[0]-c[0]));for(let t=0;t{let i=Math.round(o(t)/(2*e)),a=t[0],s=t[1];a[0]>s[0]&&(a=t[1],s=t[0]);let l=Math.atan((s[1]-a[1])/(s[0]-a[0]));for(let t=0;tn%2?t+r:t+e);a.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":a.push({key:"Q",data:[...s]}),e=s[2],r=s[3];break;case"q":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":a.push({key:"A",data:[...s]}),e=s[5],r=s[6];break;case"a":e+=s[5],r+=s[6],a.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],e,r]});break;case"H":a.push({key:"H",data:[...s]}),e=s[0];break;case"h":e+=s[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...s]}),e=s[2],r=s[3];break;case"s":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":a.push({key:"T",data:[...s]}),e=s[0],r=s[1];break;case"t":e+=s[0],r+=s[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=n,r=i}return a}function y(t){let e=[],r="",n=0,i=0,a=0,o=0,s=0,l=0;for(let{key:c,data:u}of t){switch(c){case"M":e.push({key:"M",data:[...u]}),[n,i]=u,[a,o]=u;break;case"C":e.push({key:"C",data:[...u]}),n=u[4],i=u[5],s=u[2],l=u[3];break;case"L":e.push({key:"L",data:[...u]}),[n,i]=u;break;case"H":n=u[0],e.push({key:"L",data:[n,i]});break;case"V":i=u[0],e.push({key:"L",data:[n,i]});break;case"S":{let t=0,a=0;"C"===r||"S"===r?(t=n+(n-s),a=i+(i-l)):(t=n,a=i),e.push({key:"C",data:[t,a,...u]}),s=u[0],l=u[1],n=u[2],i=u[3];break}case"T":{let[t,a]=u,o=0,c=0;"Q"===r||"T"===r?(o=n+(n-s),c=i+(i-l)):(o=n,c=i);let h=n+2*(o-n)/3,f=i+2*(c-i)/3,d=t+2*(o-t)/3,p=a+2*(c-a)/3;e.push({key:"C",data:[h,f,d,p,t,a]}),s=o,l=c,n=t,i=a;break}case"Q":{let[t,r,a,o]=u,c=n+2*(t-n)/3,h=i+2*(r-i)/3,f=a+2*(t-a)/3,d=o+2*(r-o)/3;e.push({key:"C",data:[c,h,f,d,a,o]}),s=t,l=r,n=a,i=o;break}case"A":{let t=Math.abs(u[0]),r=Math.abs(u[1]),a=u[2],o=u[3],s=u[4],l=u[5],c=u[6];0===t||0===r?(e.push({key:"C",data:[n,i,l,c,l,c]}),n=l,i=c):(n!==l||i!==c)&&((function t(e,r,n,i,a,o,s,l,c,u){let h=Math.PI*s/180,f=[],d=0,p=0,g=0,m=0;if(u)[d,p,g,m]=u;else{[e,r]=b(e,r,-h),[n,i]=b(n,i,-h);let t=(e-n)/2,s=(r-i)/2,u=t*t/(a*a)+s*s/(o*o);u>1&&(a*=u=Math.sqrt(u),o*=u);let f=a*a,y=o*o,x=(l===c?-1:1)*Math.sqrt(Math.abs((f*y-f*s*s-y*t*t)/(f*s*s+y*t*t)));g=x*a*s/o+(e+n)/2,m=-(x*o)*t/a+(r+i)/2,d=Math.asin(parseFloat(((r-m)/o).toFixed(9))),p=Math.asin(parseFloat(((i-m)/o).toFixed(9))),ep&&(d-=2*Math.PI),!c&&p>d&&(p-=2*Math.PI)}let y=p-d;if(Math.abs(y)>120*Math.PI/180){let e=p,r=n,l=i;f=t(n=g+a*Math.cos(p=c&&p>d?d+120*Math.PI/180*1:d+-(120*Math.PI/180*1)),i=m+o*Math.sin(p),r,l,a,o,s,0,c,[p,e,g,m])}y=p-d;let x=Math.cos(d),_=Math.cos(p),w=Math.tan(y/4),k=4/3*a*w,v=4/3*o*w,A=[e,r],M=[e+k*Math.sin(d),r-v*x],S=[n+k*Math.sin(p),i-v*_],T=[n,i];if(M[0]=2*A[0]-M[0],M[1]=2*A[1]-M[1],u)return[M,S,T].concat(f);{f=[M,S,T].concat(f);let t=[];for(let e=0;e2){let i=[];for(let e=0;e2*Math.PI&&(h=0,f=2*Math.PI);let d=Math.min(2*Math.PI/l.curveStepCount/2,(f-h)/2),p=P(d,t,e,c,u,h,f,1,l);if(!l.disableMultiStroke){let r=P(d,t,e,c,u,h,f,1.5,l);p.push(...r)}return o&&(s?p.push(...R(t,e,t+c*Math.cos(h),e+u*Math.sin(h),l),...R(t,e,t+c*Math.cos(f),e+u*Math.sin(f),l)):p.push({op:"lineTo",data:[t,e]},{op:"lineTo",data:[t+c*Math.cos(h),e+u*Math.sin(h)]})),{type:"path",ops:p}}function S(t,e){let r=y(m(g(t))),n=[],i=[0,0],a=[0,0];for(let{key:t,data:o}of r)switch(t){case"M":a=[o[0],o[1]],i=[o[0],o[1]];break;case"L":n.push(...R(a[0],a[1],o[0],o[1],e)),a=[o[0],o[1]];break;case"C":{let[t,r,i,s,l,c]=o;n.push(...function(t,e,r,n,i,a,o,s){let l=[],c=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3],u=[0,0],h=s.disableMultiStroke?1:2,f=s.preserveVertices;for(let d=0;d2){r.push({op:"move",data:[n[0][0]+E(t,e),n[0][1]+E(t,e)]});for(let a=1;a500?.4:-.0016668*l+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>s&&(u=l/10);let h=u/2,f=.2+.2*O(i),d=i.bowing*i.maxRandomnessOffset*(n-e)/200,p=i.bowing*i.maxRandomnessOffset*(t-r)/200;d=E(d,i,c),p=E(p,i,c);let g=[],m=()=>E(h,i,c),y=()=>E(u,i,c),b=i.preserveVertices;return a&&(o?g.push({op:"move",data:[t+(b?0:m()),e+(b?0:m())]}):g.push({op:"move",data:[t+(b?0:E(u,i,c)),e+(b?0:E(u,i,c))]})),o?g.push({op:"bcurveTo",data:[d+t+(r-t)*f+m(),p+e+(n-e)*f+m(),d+t+2*(r-t)*f+m(),p+e+2*(n-e)*f+m(),r+(b?0:m()),n+(b?0:m())]}):g.push({op:"bcurveTo",data:[d+t+(r-t)*f+y(),p+e+(n-e)*f+y(),d+t+2*(r-t)*f+y(),p+e+2*(n-e)*f+y(),r+(b?0:y()),n+(b?0:y())]}),g}function j(t,e,r){if(!t.length)return[];let n=[];n.push([t[0][0]+E(e,r),t[0][1]+E(e,r)]),n.push([t[0][0]+E(e,r),t[0][1]+E(e,r)]);for(let i=1;i3){let a=[],o=1-r.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2l&&(l=e,c=n)}return Math.sqrt(l)>n?(z(t,e,c+1,n,a),z(t,c,r,n,a)):(a.length||a.push(o),a.push(s)),a}function B(t,e=.15,r){let n=[],i=(t.length-1)/3;for(let r=0;r1&&a.push(t):a.push(t),a.push(e[r+3])}else{let i=e[r+0],o=e[r+1],s=e[r+2],l=e[r+3],c=U(i,o,.5),u=U(o,s,.5),h=U(s,l,.5),f=U(c,u,.5),d=U(u,h,.5),p=U(f,d,.5);t([i,c,f,p],0,n,a),t([p,d,h,l],0,n,a)}return a}(t,3*r,e,n);return r&&r>0?z(n,0,n.length,r):n}let Y="none";class H{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(0x80000000*Math.random())}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}line(t,e,r,n,i){let a=this._o(i);return this._d("line",[_(t,e,r,n,a)],a)}rectangle(t,e,r,n,i){var a,o,s,l;let c=this._o(i),u=[],h=w([[a=t,o=e],[a+(s=r),o],[a+s,o+(l=n)],[a,o+l]],!0,c);if(c.fill){let i=[[t,e],[t+r,e],[t+r,e+n],[t,e+n]];"solid"===c.fillStyle?u.push(T([i],c)):u.push(C([i],c))}return c.stroke!==Y&&u.push(h),this._d("rectangle",u,c)}ellipse(t,e,r,n,i){let a=this._o(i),o=[],s=v(r,n,a),l=A(t,e,a,s);if(a.fill)if("solid"===a.fillStyle){let r=A(t,e,a,s).opset;r.type="fillPath",o.push(r)}else o.push(C([l.estimatedPoints],a));return a.stroke!==Y&&o.push(l.opset),this._d("ellipse",o,a)}circle(t,e,r,n){let i=this.ellipse(t,e,r,r,n);return i.shape="circle",i}linearPath(t,e){let r=this._o(e);return this._d("linearPath",[w(t,!1,r)],r)}arc(t,e,r,n,i,a,o=!1,s){let l=this._o(s),c=[],u=M(t,e,r,n,i,a,o,!0,l);if(o&&l.fill)if("solid"===l.fillStyle){let o=Object.assign({},l);o.disableMultiStroke=!0;let s=M(t,e,r,n,i,a,!0,!1,o);s.type="fillPath",c.push(s)}else c.push(function(t,e,r,n,i,a,o){let s=Math.abs(r/2),l=Math.abs(n/2);s+=E(.01*s,o),l+=E(.01*l,o);let c=i,u=a;for(;c<0;)c+=2*Math.PI,u+=2*Math.PI;u-c>2*Math.PI&&(c=0,u=2*Math.PI);let h=(u-c)/o.curveStepCount,f=[];for(let r=c;r<=u;r+=h)f.push([t+s*Math.cos(r),e+l*Math.sin(r)]);return f.push([t+s*Math.cos(u),e+l*Math.sin(u)]),f.push([t,e]),C([f],o)}(t,e,r,n,i,a,l));return l.stroke!==Y&&c.push(u),this._d("arc",c,l)}curve(t,e){let r=this._o(e),n=[],i=k(t,r);if(r.fill&&r.fill!==Y)if("solid"===r.fillStyle){let e=k(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{let e=[];if(t.length)for(let n of"number"==typeof t[0][0]?[t]:t)n.length<3?e.push(...n):3===n.length?e.push(...B(I([n[0],n[0],n[1],n[2]]),10,(1+r.roughness)/2)):e.push(...B(I(n),10,(1+r.roughness)/2));e.length&&n.push(C([e],r))}return r.stroke!==Y&&n.push(i),this._d("curve",n,r)}polygon(t,e){let r=this._o(e),n=[],i=w(t,!0,r);return r.fill&&("solid"===r.fillStyle?n.push(T([t],r)):n.push(C([t],r))),r.stroke!==Y&&n.push(i),this._d("polygon",n,r)}path(t,e){let r=this._o(e),n=[];if(!t)return this._d("path",n,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let i=r.fill&&"transparent"!==r.fill&&r.fill!==Y,a=r.stroke!==Y,o=!!(r.simplification&&r.simplification<1),s=function(t,e,r){let n=y(m(g(t))),i=[],a=[],o=[0,0],s=[],l=()=>{s.length>=4&&a.push(...B(s,1)),s=[]},c=()=>{l(),a.length&&(i.push(a),a=[])};for(let{key:t,data:e}of n)switch(t){case"M":c(),o=[e[0],e[1]],a.push(o);break;case"L":l(),a.push([e[0],e[1]]);break;case"C":if(!s.length){let t=a.length?a[a.length-1]:o;s.push([t[0],t[1]])}s.push([e[0],e[1]]),s.push([e[2],e[3]]),s.push([e[4],e[5]]);break;case"Z":l(),a.push([o[0],o[1]])}if(c(),!r)return i;let u=[];for(let t of i){let e=z(t,0,t.length,r);e.length&&u.push(e)}return u}(t,0,o?4-4*(r.simplification||1):(1+r.roughness)/2),l=S(t,r);if(i)if("solid"===r.fillStyle)if(1===s.length){let e=S(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else n.push(T(s,r));else n.push(C(s,r));return a&&(o?s.forEach(t=>{n.push(w(t,!1,r))}):n.push(l)),this._d("path",n,r)}opsToPath(t,e){let r="";for(let n of t.ops){let t="number"==typeof e&&e>=0?n.data.map(t=>+t.toFixed(e)):n.data;switch(n.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){let e=t.sets||[],r=t.options||this.defaultOptions,n=[];for(let t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:Y};break;case"fillPath":e={d:this.opsToPath(t),stroke:Y,strokeWidth:0,fill:r.fill||Y};break;case"fillSketch":e=this.fillSketch(t,r)}e&&n.push(e)}return n}fillSketch(t,e){let r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||Y,strokeWidth:r,fill:Y}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}class q{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new H(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.ctx,i=t.options.fixedDecimalPlaceDigits;for(let a of e)switch(a.type){case"path":n.save(),n.strokeStyle="none"===r.stroke?"transparent":r.stroke,n.lineWidth=r.strokeWidth,r.strokeLineDash&&n.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(n.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(n,a,i),n.restore();break;case"fillPath":{n.save(),n.fillStyle=r.fill||"";let e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(n,a,i,e),n.restore();break}case"fillSketch":this.fillSketch(n,a,r)}}fillSketch(t,e,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=n,this._drawToContext(t,e,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,r,n="nonzero"){for(let n of(t.beginPath(),e.ops)){let e="number"==typeof r&&r>=0?n.data.map(t=>+t.toFixed(r)):n.data;switch(n.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,r,n,i){let a=this.gen.line(t,e,r,n,i);return this.draw(a),a}rectangle(t,e,r,n,i){let a=this.gen.rectangle(t,e,r,n,i);return this.draw(a),a}ellipse(t,e,r,n,i){let a=this.gen.ellipse(t,e,r,n,i);return this.draw(a),a}circle(t,e,r,n){let i=this.gen.circle(t,e,r,n);return this.draw(i),i}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r),r}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r),r}arc(t,e,r,n,i,a,o=!1,s){let l=this.gen.arc(t,e,r,n,i,a,o,s);return this.draw(l),l}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r),r}path(t,e){let r=this.gen.path(t,e);return this.draw(r),r}}let W="http://www.w3.org/2000/svg";class X{constructor(t,e){this.svg=t,this.gen=new H(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,i=n.createElementNS(W,"g"),a=t.options.fixedDecimalPlaceDigits;for(let o of e){let e=null;switch(o.type){case"path":(e=n.createElementNS(W,"path")).setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke",r.stroke),e.setAttribute("stroke-width",r.strokeWidth+""),e.setAttribute("fill","none"),r.strokeLineDash&&e.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":(e=n.createElementNS(W,"path")).setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",r.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(n,o,r)}e&&i.appendChild(e)}return i}fillSketch(t,e,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2);let i=t.createElementNS(W,"path");return i.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),i.setAttribute("stroke",r.fill||""),i.setAttribute("stroke-width",n+""),i.setAttribute("fill","none"),r.fillLineDash&&i.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,n,i){let a=this.gen.line(t,e,r,n,i);return this.draw(a)}rectangle(t,e,r,n,i){let a=this.gen.rectangle(t,e,r,n,i);return this.draw(a)}ellipse(t,e,r,n,i){let a=this.gen.ellipse(t,e,r,n,i);return this.draw(a)}circle(t,e,r,n){let i=this.gen.circle(t,e,r,n);return this.draw(i)}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r)}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r)}arc(t,e,r,n,i,a,o=!1,s){let l=this.gen.arc(t,e,r,n,i,a,o,s);return this.draw(l)}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r)}path(t,e){let r=this.gen.path(t,e);return this.draw(r)}}var G={canvas:(t,e)=>new q(t,e),svg:(t,e)=>new X(t,e),generator:t=>new H(t),newSeed:()=>H.newSeed()}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/455.567a2b907c21839f.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/455.567a2b907c21839f.js deleted file mode 100644 index 0fbd881c7..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/455.567a2b907c21839f.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[455],{24002:(e,t,a)=>{a.d(t,{P:()=>i});var l=a(69301),r=a(98999),s=a(91158),i=(0,s.K)((e,t,a,s)=>{e.attr("class",a);let{width:i,height:c,x:d,y:p}=n(e,t);(0,l.a$)(e,c,i,s);let h=o(d,p,i,c,t);e.attr("viewBox",h),r.R.debug(`viewBox configured: ${h} with padding: ${t}`)},"setupViewPortForSVG"),n=(0,s.K)((e,t)=>{let a=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:a.width+2*t,height:a.height+2*t,x:a.x,y:a.y}},"calculateDimensionsWithPadding"),o=(0,s.K)((e,t,a,l,r)=>`${e-r} ${t-r} ${a} ${l}`,"createViewBox")},70455:(e,t,a)=>{a.d(t,{diagram:()=>b});var l=a(84492),r=a(94191),s=a(24002),i=a(5663),n=a(13892),o=a(69301),c=a(98999),d=a(91158),p=a(89321),h=a(70668),m=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=o.SV,this.getAccTitle=o.iN,this.setDiagramTitle=o.ke,this.getDiagramTitle=o.ab,this.getAccDescription=o.m7,this.setAccDescription=o.EI}static{(0,d.K)(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){let e=o.UI,t=(0,o.zj)();return(0,n.$t)({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),0===t&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:"",children:this.outerNodes}}addClass(e,t){let a=this.classes.get(e)??{id:e,styles:[],textStyles:[]},l=t.replace(/\\,/g,"\xa7\xa7\xa7").replace(/,/g,";").replace(/§§§/g,",").split(";");l&&l.forEach(e=>{(0,i.KX)(e)&&(a?.textStyles?a.textStyles.push(e):a.textStyles=[e]),a?.styles?a.styles.push(e):a.styles=[e]}),this.classes.set(e,a)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){(0,o.IU)(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function y(e){if(!e.length)return[];let t=[],a=[];return e.forEach(e=>{let l={name:e.name,children:"Leaf"===e.type?void 0:[]};for(l.classSelector=e?.classSelector,e?.cssCompiledStyles&&(l.cssCompiledStyles=e.cssCompiledStyles),"Leaf"===e.type&&void 0!==e.value&&(l.value=e.value);a.length>0&&a[a.length-1].level>=e.level;)a.pop();if(0===a.length)t.push(l);else{let e=a[a.length-1].node;e.children?e.children.push(l):e.children=[l]}"Leaf"!==e.type&&a.push({node:l,level:e.level})}),t}(0,d.K)(y,"buildHierarchy");var f=(0,d.K)((e,t)=>{(0,l.S)(e,t);let a=[];for(let a of e.TreemapRows??[])"ClassDefStatement"===a.$type&&t.addClass(a.className??"",a.styleText??"");for(let l of e.TreemapRows??[]){let e=l.item;if(!e)continue;let r=l.indent?parseInt(l.indent):0,s=u(e),i=e.classSelector?t.getStylesForClass(e.classSelector):[],n=i.length>0?i:void 0,o={level:r,name:s,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:n};a.push(o)}let r=y(a),s=(0,d.K)((e,a)=>{for(let l of e)t.addNode(l,a),l.children&&l.children.length>0&&s(l.children,a+1)},"addNodesRecursively");s(r,0)},"populate"),u=(0,d.K)(e=>e.name?String(e.name):"","getItemName"),S={parser:{yy:void 0},parse:(0,d.K)(async e=>{try{let t=p.qg,a=await t("treemap",e);c.R.debug("Treemap AST:",a);let l=S.parser?.yy;if(!(l instanceof m))throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");f(a,l)}catch(e){throw c.R.error("Error parsing treemap:",e),e}},"parse")},g=(0,d.K)((e,t,a,l)=>{let n,p=l.db,m=p.getConfig(),y=m.padding??10,f=p.getDiagramTitle(),u=p.getRoot(),{themeVariables:S}=(0,o.zj)();if(!u)return;let g=30*!!f,x=(0,r.D)(t),$=m.nodeWidth?10*m.nodeWidth:960,b=m.nodeHeight?10*m.nodeHeight:500,v=b+g;x.attr("viewBox",`0 0 ${$} ${v}`),(0,o.a$)(x,v,$,m.useMaxWidth);try{let e=m.valueFormat||",";if("$0,0"===e)n=(0,d.K)(e=>"$"+(0,h.GPZ)(",")(e),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){let t=/\.\d+/.exec(e),a=t?t[0]:"";n=(0,d.K)(e=>"$"+(0,h.GPZ)(","+a)(e),"valueFormat")}else if(e.startsWith("$")){let t=e.substring(1);n=(0,d.K)(e=>"$"+(0,h.GPZ)(t||"")(e),"valueFormat")}else n=(0,h.GPZ)(e)}catch(e){c.R.error("Error creating format function:",e),n=(0,h.GPZ)(",")}let C=(0,h.UMr)().range(["transparent",S.cScale0,S.cScale1,S.cScale2,S.cScale3,S.cScale4,S.cScale5,S.cScale6,S.cScale7,S.cScale8,S.cScale9,S.cScale10,S.cScale11]),w=(0,h.UMr)().range(["transparent",S.cScalePeer0,S.cScalePeer1,S.cScalePeer2,S.cScalePeer3,S.cScalePeer4,S.cScalePeer5,S.cScalePeer6,S.cScalePeer7,S.cScalePeer8,S.cScalePeer9,S.cScalePeer10,S.cScalePeer11]),L=(0,h.UMr)().range([S.cScaleLabel0,S.cScaleLabel1,S.cScaleLabel2,S.cScaleLabel3,S.cScaleLabel4,S.cScaleLabel5,S.cScaleLabel6,S.cScaleLabel7,S.cScaleLabel8,S.cScaleLabel9,S.cScaleLabel10,S.cScaleLabel11]);f&&x.append("text").attr("x",$/2).attr("y",g/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(f);let k=x.append("g").attr("transform",`translate(0, ${g})`).attr("class","treemapContainer"),T=(0,h.Sk5)(u).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),P=(0,h.hkb)().size([$,b]).paddingTop(e=>e.children&&e.children.length>0?35:0).paddingInner(y).paddingLeft(e=>e.children&&e.children.length>0?10:0).paddingRight(e=>e.children&&e.children.length>0?10:0).paddingBottom(e=>e.children&&e.children.length>0?10:0).round(!0)(T),M=P.descendants().filter(e=>e.children&&e.children.length>0),z=k.selectAll(".treemapSection").data(M).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);z.append("rect").attr("width",e=>e.x1-e.x0).attr("height",25).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>0===e.depth?"display: none;":""),z.append("clipPath").attr("id",(e,a)=>`clip-section-${t}-${a}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",25),z.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>C(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>w(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(0===e.depth)return"display: none;";let t=(0,i.GX)({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),z.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",12.5).attr("dominant-baseline","middle").text(e=>0===e.depth?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,a)=>`url(#clip-section-${t}-${a})`).attr("style",e=>0===e.depth?"display: none;":"dominant-baseline: middle; font-size: 12px; fill:"+L(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+(0,i.GX)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).each(function(e){if(0===e.depth)return;let t=(0,h.Ltv)(this),a=e.data.name;t.text(a);let l=e.x1-e.x0,r=Math.max(15,!1!==m.showValues&&e.value?l-10-30-10-6:l-6-6),s=t.node();if(s.getComputedTextLength()>r){let e=a;for(;e.length>0;){if(0===(e=a.substring(0,e.length-1)).length){t.text("..."),s.getComputedTextLength()>r&&t.text("");break}if(t.text(e+"..."),s.getComputedTextLength()<=r)break}}}),!1!==m.showValues&&z.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",12.5).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?n(e.value):"").attr("font-style","italic").attr("style",e=>0===e.depth?"display: none;":"text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+L(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+(0,i.GX)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:"));let F=P.leaves(),K=F.length>20,N=K?16:38,D=K?14:28,G=K?4:8,V=K?4:6,W=K?2:4,R=K?8:10,A=K?1:2,B=k.selectAll(".treemapLeafGroup").data(F).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);B.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?C(e.parent.data.name):C(e.data.name)).attr("style",e=>(0,i.GX)({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?C(e.parent.data.name):C(e.data.name)).attr("stroke-width",3),B.append("clipPath").attr("id",(e,a)=>`clip-${t}-${a}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),B.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>`text-anchor: middle; dominant-baseline: middle; font-size: ${N}px;fill:`+L(e.data.name)+";"+(0,i.GX)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,a)=>`url(#clip-${t}-${a})`).text(e=>e.data.name).each(function(e){let t=(0,h.Ltv)(this),a=e.x1-e.x0,l=e.y1-e.y0,r=t.node(),s=a-2*W,i=l-2*W;if(ss&&n>G;)n--,t.style("font-size",`${n}px`);let o=Math.max(V,Math.min(D,Math.round(.6*n))),c=n+A+o;for(;c>i&&n>G&&(!((o=Math.max(V,Math.min(D,Math.round(.6*--n))))s||n(e.x1-e.x0)/2).attr("y",function(e){return(e.y1-e.y0)/2}).attr("style",e=>`text-anchor: middle; dominant-baseline: hanging; font-size: ${D}px;fill:`+L(e.data.name)+";"+(0,i.GX)({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,a)=>`url(#clip-${t}-${a})`).text(e=>e.value?n(e.value):"").each(function(e){let t=(0,h.Ltv)(this),a=this.parentNode;if(!a)return void t.style("display","none");let l=(0,h.Ltv)(a).select(".treemapLabel");if(l.empty()||"none"===l.style("display"))return void t.style("display","none");let r=parseFloat(l.style("font-size")),s=Math.max(V,Math.min(D,Math.round(.6*r)));t.style("font-size",`${s}px`);let i=(e.y1-e.y0)/2+r/2+A;t.attr("y",i);let n=e.x1-e.x0,o=e.y1-e.y0;t.node().getComputedTextLength()>n-2*W||i+s>o-4||s{let t=(0,o.P$)(),a=(0,o.zj)(),l=(0,n.$t)(t,a.themeVariables),r=(0,n.$t)($,e),s=r.titleColor??l.titleColor,i=r.labelColor??l.textColor,c=r.valueColor??l.textColor;return` - .treemapNode.section { - stroke: ${r.sectionStrokeColor}; - stroke-width: ${r.sectionStrokeWidth}; - fill: ${r.sectionFillColor}; - } - .treemapNode.leaf { - stroke: ${r.leafStrokeColor}; - stroke-width: ${r.leafStrokeWidth}; - fill: ${r.leafFillColor}; - } - .treemapLabel { - fill: ${i}; - font-size: ${r.labelFontSize}; - } - .treemapValue { - fill: ${c}; - font-size: ${r.valueFontSize}; - } - .treemapTitle { - fill: ${s}; - font-size: ${r.titleFontSize}; - } - `},"getStyles")}},84492:(e,t,a)=>{function l(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}a.d(t,{S:()=>l}),(0,a(91158).K)(l,"populateCommonDb")}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/461.2aee2b74f0caa583.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/461.2aee2b74f0caa583.js deleted file mode 100644 index 09a8283ab..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/461.2aee2b74f0caa583.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[461],{55716:(e,t,i)=>{i.d(t,{m:()=>n});var r=i(91158),n=class{constructor(e){this.init=e,this.records=this.init()}static{(0,r.K)(this,"ImperativeState")}reset(){this.records=this.init()}}},80461:(e,t,i)=>{i.d(t,{diagram:()=>j});var r=i(55716),n=i(84492),o=i(94191),s=i(29278),a=i(13892),l=i(69301),d=i(98999),c=i(91158),h=i(89321),p=/[─━│┃└┗├┣]/,f=/[└┗├┣]/,g=/[─━]/,u=/^[\s│┃]+$/,w=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,x=/^\s*%%/;function m(e){return e.some(e=>p.test(e))}function b(e){for(let t of e){let e=f.exec(t);if(e?.index&&e.index>0)return e.index}return 4}function y(e,t){return e.replace(/\bline\s+(\d+)\b/gi,(e,i)=>{let r=parseInt(i,10),n=t.get(r);return n?`line ${n}`:e})}function $(e){let t=e.split("\n"),i=new Map,r=-1;for(let[e,i]of t.entries())if("treeView-beta"===i.trim()){r=e;break}if(-1===r)return{text:e,lineMap:i};let n=[];for(let e=r+1;e({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),K=(0,c.K)(()=>{k.reset(),(0,l.IU)()},"clear"),v=(0,c.K)(()=>k.records.stack[0],"getRoot"),V=(0,c.K)(()=>k.records.cnt,"getCount"),B=l.UI.treeView,C=(0,c.K)(()=>(0,a.$t)(B,(0,l.zj)().treeView),"getConfig"),I={clear:K,addNode:(0,c.K)((e,t,i,r,n,o)=>{for(;e<=k.records.stack[k.records.stack.length-1].level;)k.records.stack.pop();let s={id:k.records.cnt++,level:e,name:t,nodeType:i,icon:n,cssClass:r,description:o,children:[]};k.records.stack[k.records.stack.length-1].children.push(s),k.records.stack.push(s)},"addNode"),getRoot:v,getCount:V,getConfig:C,getAccTitle:l.iN,getAccDescription:l.m7,getDiagramTitle:l.ab,setAccDescription:l.EI,setAccTitle:l.SV,setDiagramTitle:l.ke},T=(0,c.K)(e=>{for(let t of((0,n.S)(e,I),e.nodes)){let e="number"==typeof t.indent?t.indent:0,i=t.name,r=i.endsWith("/");r&&(i=i.slice(0,-1));let n=r?"directory":"file",o=t.classAnnotation||void 0,s=t.iconAnnotation,a=void 0!==s?s||"none":void 0,d=t.descAnnotation||void 0,c=d?(0,l.jZ)(d,(0,l.zj)()):void 0;I.addNode(e,i,n,o,a,c)}},"populate"),D={parse:(0,c.K)(async e=>{let{text:t,lineMap:i}=$(e);try{let e=await (0,h.qg)("treeView",t);d.R.debug(e),T(e)}catch(e){throw i.size>0&&e instanceof Error&&(e.message=y(e.message,i)),e}},"parse")},E={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:''},file:{body:''}}};function A(e,t){let i=t?.filenameIcons?.[e];if(i)return i;let r=e.lastIndexOf(".");if(r>0){let i=e.substring(r).toLowerCase(),n=t?.extensionIcons;return n?.[i]??n?.[i.slice(1)]}}function M(e,t){return e.includes(":")?e:e in E.icons||!t?`${E.prefix}:${e}`:`${t}:${e}`}function N(e,t){if("none"!==e.icon){if(e.icon)return M(e.icon,t.defaultIconPack);if(t.showIcons){if("file"===e.nodeType){let i=A(e.name,t);if("none"===i)return;if(i)return M(i,t.defaultIconPack)}return`${E.prefix}:${"directory"===e.nodeType?"folder":"file"}`}}}(0,c.K)(A,"detectIcon"),(0,c.K)(M,"qualifyIcon"),(0,c.K)(N,"getNodeIcon"),(0,s.pC)([{name:E.prefix,icons:E}]);var z=(0,c.K)(async(e,t)=>{let i=[],r=(0,c.K)(e=>{let n=N(e,t);n&&i.push({icon:n,node:e}),e.children.forEach(r)},"collect");return r(e),new Map((await Promise.all(i.map(async({icon:e,node:t})=>({id:t.id,svg:await (0,s.WY)(e,{height:14,width:14})})))).map(({id:e,svg:t})=>[e,t]))},"resolveNodeIcons"),S=(0,c.K)((e,t,i,r,n,o)=>{let s=r.append("g"),a="treeView-node-label";"directory"===i.nodeType&&(a+=" treeView-node-dir"),i.cssClass&&(a+=` ${i.cssClass}`);let l=N(i,n),d=void 0!==l;l&&s.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${e+n.paddingX}, ${t+n.paddingY})`).html(o.get(i.id)??"");let c=s.append("text").text(i.name).attr("dominant-baseline","middle").attr("class",a),{height:h,width:p}=c.node().getBBox(),f=h+2*n.paddingY,g=e+n.paddingX+18*!!d;c.attr("x",g),c.attr("y",t+f/2);let u=g+p;return i.BBox={x:e,y:t,width:p+2*n.paddingX+18*!!d,height:f},i.cssClass?.split(/\s+/).includes("highlight")&&s.insert("rect",":first-child").attr("x",e).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:i,nodeGroup:s,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),X=(0,c.K)((e,t,i,r,n,o)=>e.append("line").attr("x1",t).attr("y1",i).attr("x2",r).attr("y2",n).attr("stroke-width",o).attr("class","treeView-node-line"),"positionLine"),L=(0,c.K)((e,t,i,r)=>{let n=0,o=0,s=[],a=(0,c.K)((e,t,i,a)=>{let l=a*(i.rowIndent+i.paddingX),d=S(l,n,t,e,i,r);s.push(d);let{height:c,width:h}=t.BBox;X(e,l-i.rowIndent,n+c/2,l,n+c/2,i.lineThickness),o=Math.max(o,l+h),n+=c},"drawNode"),l=(0,c.K)((t,r=0)=>{a(e,t,i,r),t.children.forEach(e=>{l(e,r+1)});let{x:n,y:o,height:s}=t.BBox;if(t.children.length){let{y:r,height:a}=t.children[t.children.length-1].BBox;X(e,n+i.paddingX,o+s,n+i.paddingX,r+a/2+i.lineThickness/2,i.lineThickness)}},"processNode");l(t);let d=s.filter(e=>e.node.description);if(d.length>0){let e=Math.max(...s.map(e=>e.labelRightEdge))+16;for(let t of d){let r=t.nodeGroup.append("text").text(t.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",e).attr("y",t.centerY).node().getBBox();o=Math.max(o,e+r.width+i.paddingX)}}for(let e of s)if(e.node.cssClass?.split(/\s+/).includes("highlight")){let t=e.nodeGroup.select(".treeView-highlight-bg");if(!t.empty()){let i=o-e.node.BBox.x+8;t.attr("width",i),o=Math.max(o,e.node.BBox.x+i+2)}}return{totalHeight:n,totalWidth:o}},"drawTree"),R=(0,c.K)(async(e,t,i,r)=>{d.R.debug("Rendering treeView diagram\n"+e);let n=r.db,s=n.getRoot(),a=n.getConfig(),c=(0,o.D)(t),h=c.append("g");h.attr("class","tree-view");let p=await z(s,a),{totalHeight:f,totalWidth:g}=L(h,s,a,p);c.attr("viewBox",`-${a.lineThickness/2} 0 ${g} ${f}`),(0,l.a$)(c,f,g,a.useMaxWidth)},"draw"),Y={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},j={db:I,renderer:{draw:R},parser:D,styles:(0,c.K)(({treeView:e})=>{let{labelFontSize:t,labelColor:i,lineColor:r,iconColor:n,descriptionColor:o,highlightBg:s,highlightStroke:l}=(0,a.$t)(Y,e);return` - .treeView-node-label { - font-size: ${t}; - fill: ${i}; - white-space: pre; - } - .treeView-node-dir { - font-weight: bold; - } - .treeView-node-line { - stroke: ${r}; - } - .treeView-node-icon { - color: ${n}; - } - .treeView-node-description { - font-size: ${t}; - fill: ${o}; - font-style: italic; - white-space: pre; - } - .treeView-highlight-bg { - fill: ${s}; - stroke: ${l}; - stroke-width: 1; - } - `},"styles")}},84492:(e,t,i)=>{function r(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}i.d(t,{S:()=>r}),(0,i(91158).K)(r,"populateCommonDb")}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4624.6d7b8868bc28a86a.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4624.6d7b8868bc28a86a.js deleted file mode 100644 index 8d23b81f8..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4624.6d7b8868bc28a86a.js +++ /dev/null @@ -1,86 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4624],{46597:(e,t,r)=>{r.d(t,{$:()=>O,U:()=>j,db:()=>S});var i=r(94191),a=r(69301),n=r(98999),o=r(91158),l="",s="",d="",m=[],c=new Map,h=(0,o.K)(e=>(0,a.jZ)(e,(0,a.D7)()),"sanitizeText"),p=(0,o.K)(e=>{switch(e.type){case"terminal":return{...e,value:h(e.value)};case"nonterminal":return{...e,name:h(e.name)};case"sequence":return{...e,elements:e.elements.map(p)};case"choice":return{...e,alternatives:e.alternatives.map(p)};case"optional":return{...e,element:p(e.element)};case"repetition":return{...e,element:p(e.element),separator:e.separator?p(e.separator):void 0};case"special":return{...e,text:h(e.text)}}},"sanitizeAstNode"),u=(0,o.K)(()=>{l="",s="",d="",m.length=0,c.clear(),(0,a.IU)(),n.R.debug("[Railroad] Database cleared")},"clear"),g=(0,o.K)(e=>{l=h(e),n.R.debug("[Railroad] Title set:",e)},"setTitle"),T=(0,o.K)(()=>l,"getTitle"),f=(0,o.K)(e=>{let t={...e,name:h(e.name),definition:p(e.definition),comment:e.comment?h(e.comment):void 0};n.R.debug("[Railroad] Adding rule:",t.name),c.has(t.name)&&n.R.warn(`[Railroad] Rule '${t.name}' is already defined. Overwriting.`),m.push(t),c.set(t.name,t)},"addRule"),x=(0,o.K)(()=>m,"getRules"),w=(0,o.K)(e=>c.get(e),"getRule"),k=(0,o.K)(e=>{s=h(e).replace(/^\s+/g,""),n.R.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),C=(0,o.K)(()=>s,"getAccTitle"),$=(0,o.K)(e=>{d=h(e).replace(/\n\s+/g,"\n"),n.R.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),S={clear:u,setTitle:g,getTitle:T,addRule:f,getRules:x,getRule:w,setAccTitle:k,getAccTitle:C,setAccDescription:$,getAccDescription:(0,o.K)(()=>d,"getAccDescription"),setDiagramTitle:g,getDiagramTitle:T},F={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},y=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,R=/^[\w "',.-]+$/,b=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),v=(0,o.K)(e=>!!e&&Object.keys(e).every(e=>"railroad"===e||b.has(e)),"isRailroadStyleOptions"),z=(0,o.K)(e=>e?"railroad"in e&&e.railroad?e.railroad:v(e)?e:{}:{},"extractRailroadOverrides"),K=(0,o.K)(e=>{if(!e||v(e))return{};let{railroad:t,svgId:r,theme:i,look:a,...n}=e;return n},"extractThemeOverrides"),N=(0,o.K)((e,t)=>{if("string"!=typeof e)return t;let r=e.trim();return y.test(r)?r:t},"sanitizeColorValue"),M=(0,o.K)((e,t)=>{if("string"!=typeof e)return t;let r=e.trim();return R.test(r)?r:t},"sanitizeFontFamilyValue"),A=(0,o.K)((e,t)=>{let r="number"==typeof e?e:"string"==typeof e?Number.parseFloat(e):NaN;return Number.isFinite(r)&&r>=0?r:t},"sanitizeNumberValue"),D=(0,o.K)(e=>{let t="number"==typeof e?e:"string"==typeof e?Number.parseFloat(e):NaN;return Number.isFinite(t)&&t>0?t:void 0},"parseThemeFontSize"),E=(0,o.K)(e=>{let t=M(e.fontFamily,F.fontFamily),r=D(e.fontSize)??F.fontSize;return{...F,fontFamily:t,fontSize:r,terminalFill:N(e.secondBkg??e.secondaryColor,F.terminalFill),terminalStroke:N(e.secondaryBorderColor??e.lineColor,F.terminalStroke),terminalTextColor:N(e.secondaryTextColor??e.textColor,F.terminalTextColor),nonTerminalFill:N(e.mainBkg??e.background,F.nonTerminalFill),nonTerminalStroke:N(e.primaryBorderColor??e.lineColor,F.nonTerminalStroke),nonTerminalTextColor:N(e.primaryTextColor??e.textColor,F.nonTerminalTextColor),lineColor:N(e.lineColor,F.lineColor),markerFill:N(e.lineColor,F.markerFill),commentFill:N(e.labelBackground??e.tertiaryColor,F.commentFill),commentStroke:N(e.tertiaryBorderColor??e.lineColor,F.commentStroke),commentTextColor:N(e.tertiaryTextColor??e.textColor,F.commentTextColor),specialFill:N(e.tertiaryColor??e.secondaryColor,F.specialFill),specialStroke:N(e.tertiaryBorderColor??e.secondaryBorderColor,F.specialStroke),ruleNameColor:N(e.titleColor??e.textColor,F.ruleNameColor)}},"buildThemeDefaults"),B=(0,o.K)(e=>{let t=(0,a.zj)(),r=E({...(0,a.P$)(),...t.themeVariables??{},...K(e)}),i={...t.railroad??{},...z(e)};return{compactMode:i.compactMode??r.compactMode,padding:A(i.padding,r.padding),verticalSeparation:A(i.verticalSeparation,r.verticalSeparation),horizontalSeparation:A(i.horizontalSeparation,r.horizontalSeparation),arcRadius:A(i.arcRadius,r.arcRadius),fontSize:A(i.fontSize,r.fontSize),fontFamily:M(i.fontFamily,r.fontFamily),terminalFill:N(i.terminalFill,r.terminalFill),terminalStroke:N(i.terminalStroke,r.terminalStroke),terminalTextColor:N(i.terminalTextColor,r.terminalTextColor),nonTerminalFill:N(i.nonTerminalFill,r.nonTerminalFill),nonTerminalStroke:N(i.nonTerminalStroke,r.nonTerminalStroke),nonTerminalTextColor:N(i.nonTerminalTextColor,r.nonTerminalTextColor),lineColor:N(i.lineColor,r.lineColor),strokeWidth:A(i.strokeWidth,r.strokeWidth),markerFill:N(i.markerFill,r.markerFill),commentFill:N(i.commentFill,r.commentFill),commentStroke:N(i.commentStroke,r.commentStroke),commentTextColor:N(i.commentTextColor,r.commentTextColor),specialFill:N(i.specialFill,r.specialFill),specialStroke:N(i.specialStroke,r.specialStroke),ruleNameColor:N(i.ruleNameColor,r.ruleNameColor),showMarkers:i.showMarkers??r.showMarkers,markerRadius:A(i.markerRadius,r.markerRadius)}},"buildRailroadStyleOptions"),O=(0,o.K)(e=>{let{fontFamily:t,fontSize:r,terminalFill:i,terminalStroke:a,terminalTextColor:n,nonTerminalFill:o,nonTerminalStroke:l,nonTerminalTextColor:s,lineColor:d,strokeWidth:m,markerFill:c,commentFill:h,commentStroke:p,commentTextColor:u,specialFill:g,specialStroke:T,ruleNameColor:f}=B(e);return` - .railroad-diagram { - font-family: ${t}; - font-size: ${r}px; - } - - .railroad-terminal rect { - fill: ${i}; - stroke: ${a}; - stroke-width: ${m}px; - } - - .railroad-terminal text { - fill: ${n}; - font-family: ${t}; - font-size: ${r}px; - text-anchor: middle; - dominant-baseline: middle; - } - - .railroad-nonterminal rect { - fill: ${o}; - stroke: ${l}; - stroke-width: ${m}px; - } - - .railroad-nonterminal text { - fill: ${s}; - font-family: ${t}; - font-size: ${r}px; - text-anchor: middle; - dominant-baseline: middle; - } - - .railroad-line { - stroke: ${d}; - stroke-width: ${m}px; - fill: none; - } - - .railroad-start circle, - .railroad-end circle { - fill: ${c}; - } - - .railroad-comment ellipse { - fill: ${h}; - stroke: ${p}; - stroke-width: ${m}px; - } - - .railroad-comment text { - fill: ${u}; - font-style: italic; - font-family: ${t}; - font-size: ${r}px; - text-anchor: middle; - dominant-baseline: middle; - } - - .railroad-special rect { - fill: ${g}; - stroke: ${T}; - stroke-width: ${m}px; - stroke-dasharray: 5,3; - } - - .railroad-special text { - fill: ${s}; - font-family: ${t}; - font-size: ${r}px; - text-anchor: middle; - dominant-baseline: middle; - } - - .railroad-rule-name { - font-weight: bold; - fill: ${f}; - font-family: ${t}; - font-size: ${r}px; - } - - .railroad-group { - /* Grouping container, no specific styles */ - } -`},"getStyles"),W=class{constructor(){this.d=""}static{(0,o.K)(this,"PathBuilder")}moveTo(e,t){return this.d+=`M ${e} ${t} `,this}lineTo(e,t){return this.d+=`L ${e} ${t} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,t,r,i,a,n,o){return this.d+=`A ${e} ${t} ${r} ${+!!i} ${+!!a} ${n} ${o} `,this}build(){return this.d.trim()}},q=class{constructor(e,t=B()){this.textCache=new Map,this.svg=e,this.config=t}static{(0,o.K)(this,"RailroadRenderer")}measureText(e){if(this.textCache.has(e))return this.textCache.get(e);let t=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(e),r=t.node().getBBox(),i={width:r.width,height:r.height};return t.remove(),this.textCache.set(e,i),i}renderTerminal(e,t){let r=this.measureText(t),i=r.width+2*this.config.padding,a=r.height+2*this.config.padding,n=e.append("g").attr("class","railroad-terminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",i).attr("height",a).attr("rx",10).attr("ry",10),n.append("text").attr("x",i/2).attr("y",a/2).text(t),{element:n.node(),dimensions:{width:i,height:a,up:a/2,down:a/2}}}renderNonTerminal(e,t){let r=this.measureText(t),i=r.width+2*this.config.padding,a=r.height+2*this.config.padding,n=e.append("g").attr("class","railroad-nonterminal");return n.append("rect").attr("x",0).attr("y",0).attr("width",i).attr("height",a),n.append("text").attr("x",i/2).attr("y",a/2).text(t),{element:n.node(),dimensions:{width:i,height:a,up:a/2,down:a/2}}}renderSequence(e,t){let r=t.map(t=>this.renderExpression(e,t)),i=0,a=0,n=0;for(let e of r)i+=e.dimensions.width,a=Math.max(a,e.dimensions.up),n=Math.max(n,e.dimensions.down);i+=(r.length-1)*this.config.horizontalSeparation;let o=e.append("g").attr("class","railroad-sequence"),l=0;for(let e=0;ethis.renderExpression(e,t)),i=0,a=0;for(let e of r)i=Math.max(i,e.dimensions.width),a+=e.dimensions.height;a+=(r.length-1)*this.config.verticalSeparation;let n=this.config.arcRadius,o=i+4*n,l=e.append("g").attr("class","railroad-choice"),s=0,d=a/2;for(let e of r){let t=s,r=t+e.dimensions.up,a=2*n+(i-e.dimensions.width)/2;l.node().appendChild(e.element).setAttribute("transform",`translate(${a}, ${t})`);let m=new W,c=r>d;r===d?m.moveTo(0,d).lineTo(a,r):m.moveTo(0,d).arcTo(n,n,0,!1,c,n,d+(c?n:-n)).lineTo(n,r-(c?n:-n)).arcTo(n,n,0,!1,!c,2*n,r).lineTo(a,r),l.append("path").attr("class","railroad-line").attr("d",m.build());let h=new W,p=a+e.dimensions.width,u=o-2*n;r===d?h.moveTo(p,r).lineTo(o,d):h.moveTo(p,r).lineTo(u,r).arcTo(n,n,0,!1,!c,o-n,r+(c?-n:n)).lineTo(o-n,d+(c?n:-n)).arcTo(n,n,0,!1,c,o,d),l.append("path").attr("class","railroad-line").attr("d",h.build()),s+=e.dimensions.height+this.config.verticalSeparation}return{element:l.node(),dimensions:{width:o,height:a,up:d,down:a-d}}}renderOptional(e,t){let r=this.renderExpression(e,t),i=this.config.arcRadius,a=2*i,n=r.dimensions.width+4*i,o=r.dimensions.height+a,l=e.append("g").attr("class","railroad-optional"),s=2*i;l.node().appendChild(r.element).setAttribute("transform",`translate(${s}, ${a})`);let d=a+r.dimensions.up,m=new W().moveTo(0,d).lineTo(2*i,d);l.append("path").attr("class","railroad-line").attr("d",m.build());let c=new W().moveTo(s+r.dimensions.width,d).lineTo(n,d);l.append("path").attr("class","railroad-line").attr("d",c.build());let h=new W().moveTo(0,d).arcTo(i,i,0,!1,!1,i,d-i).lineTo(i,i).arcTo(i,i,0,!1,!0,2*i,0).lineTo(n-2*i,0).arcTo(i,i,0,!1,!0,n-i,i).lineTo(n-i,d-i).arcTo(i,i,0,!1,!1,n,d);return l.append("path").attr("class","railroad-line").attr("d",h.build()),{element:l.node(),dimensions:{width:n,height:o,up:d,down:o-d}}}renderRepetition(e,t,r){let i=this.renderExpression(e,t),a=this.config.arcRadius,n=2*a,o=i.dimensions.width+4*a,l=0===r,s=i.dimensions.height+n+(l?n:0),d=e.append("g").attr("class","railroad-repetition"),m=2*a,c=l?n:0;d.node().appendChild(i.element).setAttribute("transform",`translate(${m}, ${c})`);let h=c+i.dimensions.up;d.append("path").attr("class","railroad-line").attr("d",new W().moveTo(0,h).lineTo(2*a,h).build()),d.append("path").attr("class","railroad-line").attr("d",new W().moveTo(m+i.dimensions.width,h).lineTo(o,h).build());let p=c+i.dimensions.height+a,u=new W().moveTo(m+i.dimensions.width,h).arcTo(a,a,0,!1,!0,m+i.dimensions.width+a,h+a).lineTo(m+i.dimensions.width+a,p).arcTo(a,a,0,!1,!0,m+i.dimensions.width,p+a).lineTo(2*a,p+a).arcTo(a,a,0,!1,!0,a,p).lineTo(a,h+a).arcTo(a,a,0,!1,!0,2*a,h);if(d.append("path").attr("class","railroad-line").attr("d",u.build()),l){let e=new W().moveTo(0,h).arcTo(a,a,0,!1,!1,a,h-a).lineTo(a,a).arcTo(a,a,0,!1,!0,2*a,0).lineTo(o-2*a,0).arcTo(a,a,0,!1,!0,o-a,a).lineTo(o-a,h-a).arcTo(a,a,0,!1,!1,o,h);d.append("path").attr("class","railroad-line").attr("d",e.build())}return{element:d.node(),dimensions:{width:o,height:s,up:h,down:s-h}}}renderSpecial(e,t){let r=this.measureText("? "+t+" ?"),i=r.width+2*this.config.padding,a=r.height+2*this.config.padding,n=e.append("g").attr("class","railroad-special");return n.append("rect").attr("x",0).attr("y",0).attr("width",i).attr("height",a),n.append("text").attr("x",i/2).attr("y",a/2).text("? "+t+" ?"),{element:n.node(),dimensions:{width:i,height:a,up:a/2,down:a/2}}}renderExpression(e,t){switch(t.type){case"terminal":return this.renderTerminal(e,t.value);case"nonterminal":return this.renderNonTerminal(e,t.name);case"sequence":return this.renderSequence(e,t.elements);case"choice":return this.renderChoice(e,t.alternatives);case"optional":return this.renderOptional(e,t.element);case"repetition":return this.renderRepetition(e,t.element,t.min);case"special":return this.renderSpecial(e,t.text);default:throw Error(`Unknown node type: ${t.type}`)}}renderRule(e,t){let r=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${t})`),i=e.name+" =",a=this.measureText(i).width+20,n=a+20,o=r.append("g"),l=this.renderExpression(o,e.definition),s=Math.max(20,l.dimensions.up),d=s-l.dimensions.up;return o.attr("transform",`translate(${n}, ${d})`),r.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",s).text(i),r.append("g").attr("class","railroad-start").append("circle").attr("cx",a).attr("cy",s).attr("r",this.config.markerRadius),r.append("g").attr("class","railroad-end").append("circle").attr("cx",n+l.dimensions.width+10).attr("cy",s).attr("r",this.config.markerRadius),r.append("path").attr("class","railroad-line").attr("d",new W().moveTo(a+this.config.markerRadius,s).lineTo(n,s).build()),r.append("path").attr("class","railroad-line").attr("d",new W().moveTo(n+l.dimensions.width,s).lineTo(n+l.dimensions.width+10-this.config.markerRadius,s).build()),{height:Math.max(40,d+l.dimensions.height+2*this.config.padding),width:n+l.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let t=this.config.padding,r=0;for(let i of e){let e=this.renderRule(i,t);t+=e.height+this.config.verticalSeparation,r=Math.max(r,e.width)}return{width:r+2*this.config.padding,height:t+this.config.padding}}},V=(0,o.K)((e,t,r)=>{(0,a.a$)(e,t.height,t.width,r),e.attr("viewBox",`0 0 ${t.width} ${t.height}`)},"configureRailroadSvgSize"),j={draw:(0,o.K)((e,t,r)=>{n.R.debug("[Railroad] Rendering diagram\n"+e);try{let e=(0,i.D)(t);e.attr("class","railroad-diagram");let r=(0,a.zj)().railroad,o=r?.useMaxWidth??!0,l=S.getRules();if(n.R.debug(`[Railroad] Rendering ${l.length} rules`),0===l.length){n.R.warn("[Railroad] No rules to render"),V(e,{height:100,width:200},o);return}let s=new q(e,B()).renderDiagram(l);V(e,s,o),n.R.debug("[Railroad] Render complete")}catch(e){throw n.R.error("[Railroad] Render error:",e),e}},"draw")}},84492:(e,t,r)=>{function i(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}r.d(t,{S:()=>i}),(0,r(91158).K)(i,"populateCommonDb")}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4673.ef9c94061a152f03.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4673.ef9c94061a152f03.js deleted file mode 100644 index ab9f8a73e..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4673.ef9c94061a152f03.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4673],{24673:(t,e,a)=>{a.d(e,{diagram:()=>B});var n=a(84492),r=a(94191),i=a(13892),o=a(69301),l=a(98999),c=a(91158),s=a(89321),d=(0,c.K)(()=>({domains:new Map,transitions:[]}),"createDefaultData"),f=d(),p=(0,c.K)(()=>f.domains,"getDomains"),y={getDomains:p,getTransitions:(0,c.K)(()=>f.transitions,"getTransitions"),setDomains:(0,c.K)(t=>{if(t)for(let e of t){let t=e.domain,a=(e.items??[]).map(t=>({label:t.label}));f.domains.set(t,{name:t,items:a})}},"setDomains"),setTransitions:(0,c.K)(t=>{t&&(f.transitions=t.filter(t=>t.from!==t.to||(l.R.warn(`Cynefin: self-loop transition on domain "${t.from}" is not meaningful and will be skipped.`),!1)).map(t=>({from:t.from,to:t.to,label:t.label||void 0})))},"setTransitions"),getConfig:(0,c.K)(()=>(0,i.$t)({...o.UI.cynefin,...(0,o.zj)().cynefin}),"getConfig"),clear:(0,c.K)(()=>{(0,o.IU)(),f=d()},"clear"),setAccTitle:o.SV,getAccTitle:o.iN,setDiagramTitle:o.ke,getDiagramTitle:o.ab,getAccDescription:o.m7,setAccDescription:o.EI},m=(0,c.K)(t=>{(0,n.S)(t,y),y.setDomains(t.domains),y.setTransitions(t.transitions)},"populate"),x={parse:(0,c.K)(async t=>{let e=await (0,s.qg)("cynefin",t);l.R.debug(e),m(e)},"parse")};function h(t){let e=t+0x6d2b79f5|0;return e=Math.imul(e^e>>>15,1|e),(((e^=e+Math.imul(e^e>>>7,61|e))^e>>>14)>>>0)/0x100000000}function $(t){let e=0;for(let a=0;a{let a=t/2,n=e/2;return{complex:{cx:a/2,cy:n/2,x:0,y:0,w:a,h:n},complicated:{cx:a+a/2,cy:n/2,x:a,y:0,w:a,h:n},chaotic:{cx:a/2,cy:n+n/2,x:0,y:n,w:a,h:n},clear:{cx:a+a/2,cy:n+n/2,x:a,y:n,w:a,h:n},confusion:{cx:a,cy:n,x:.7*a,y:.7*n,w:.6*a,h:.6*n}}},"getDomainLayouts"),K=(0,c.K)(()=>{let t=(0,o.P$)(),e=(0,o.zj)();return(0,i.$t)(t,e.themeVariables).cynefin},"getCynefinDomainColors"),T=(0,c.K)((t,e,a,n)=>{let i=n.db,c=i.getDomains(),s=i.getTransitions(),d=i.getDiagramTitle(),f=i.getAccTitle(),p=i.getAccDescription(),y=i.getConfig(),m=K();l.R.debug("Rendering Cynefin diagram");let x=y.width,h=y.height,$=y.padding,T=y.showDomainDescriptions,A=y.boundaryAmplitude,B=x+2*$,S=h+2*$,z={complex:m.complexBg,complicated:m.complicatedBg,clear:m.clearBg,chaotic:m.chaoticBg,confusion:m.confusionBg},v=(0,r.D)(e);(0,o.a$)(v,S,B,y.useMaxWidth??!0),v.attr("viewBox",`0 0 ${B} ${S}`),f&&v.append("title").text(f),p&&v.append("desc").text(p);let M=v.append("g").attr("transform",`translate(${$}, ${$})`),I=D(x,h),L=g(y.seed,e),P=M.append("g").attr("class","cynefin-backgrounds"),R=["complex","complicated","chaotic","clear"];for(let t of R){let e=I[t];P.append("rect").attr("class","cynefinDomain").attr("x",e.x).attr("y",e.y).attr("width",e.w).attr("height",e.h).attr("fill",z[t]).attr("fill-opacity",.4).attr("stroke","none")}let F=M.append("g").attr("class","cynefin-boundaries");F.append("path").attr("class","cynefinBoundary").attr("d",u(x,h,L,A)).attr("fill","none"),F.append("path").attr("class","cynefinBoundary").attr("d",b(x,h,L+100,A)).attr("fill","none"),F.append("path").attr("class","cynefinCliff").attr("d",w(x,h)).attr("fill","none");let E=.15*x,N=.15*h;M.append("path").attr("class","cynefinConfusion").attr("d",C(x/2,h/2,E,N)).attr("fill",z.confusion).attr("fill-opacity",.5);let W=M.append("g").attr("class","cynefin-labels");for(let t of R){let e=I[t];W.append("text").attr("class","cynefinDomainLabel").attr("x",e.cx).attr("y",T?e.cy-30:e.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(t.charAt(0).toUpperCase()+t.slice(1))}if(W.append("text").attr("class","cynefinDomainLabel").attr("x",x/2).attr("y",T?h/2-10:h/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),T){let t=M.append("g").attr("class","cynefin-subtitles");for(let e of R){let a=I[e],n=k[e];t.append("text").attr("class","cynefinSubtitle").attr("x",a.cx).attr("y",a.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(n.model),t.append("text").attr("class","cynefinSubtitle").attr("x",a.cx).attr("y",a.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(n.practice)}t.append("text").attr("class","cynefinSubtitle").attr("x",x/2).attr("y",h/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(k.confusion.practice)}let H=M.append("g").attr("class","cynefin-items");for(let t of["complex","complicated","chaotic","clear","confusion"]){let e,a=c.get(t);if(!a||0===a.items.length)continue;let n=I[t],r="confusion"===t,i=a.items,o=0;if(r&&a.items.length>3&&(o=a.items.length-3,i=a.items.slice(0,3)),r){let t=T?22:14;e=n.cy+t}else e=n.cy+(T?25:15);if([...i].forEach((a,r)=>{let i=e+30*r,o=H.append("g"),l=o.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",13).attr("text-anchor","middle").attr("dominant-baseline","central").text(a.label),c=7*a.label.length,s=l.node();if(s&&"function"==typeof s.getBBox){let t=s.getBBox();t.width>0&&(c=t.width)}let d=c+20,f=n.cx-d/2;o.attr("transform",`translate(${f}, ${i})`),o.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",d).attr("height",26).attr("rx",4).attr("ry",4).attr("fill",z[t]).attr("fill-opacity",.95),l.attr("x",d/2).attr("y",13)}),o>0){let a=e+30*i.length,r=`+${o} more`,l=H.append("g"),c=l.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",13).attr("text-anchor","middle").attr("dominant-baseline","central").text(r),s=7*r.length,d=c.node();if(d&&"function"==typeof d.getBBox){let t=d.getBBox();t.width>0&&(s=t.width)}let f=s+20,p=n.cx-f/2;l.attr("transform",`translate(${p}, ${a})`),l.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",f).attr("height",26).attr("rx",4).attr("ry",4).attr("fill",z[t]).attr("fill-opacity",.6),c.attr("x",f/2).attr("y",13)}}if(s.length>0){let t=v.select("defs").empty()?v.append("defs"):v.select("defs"),a=`cynefin-arrow-${e}`;t.append("marker").attr("id",a).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");let n=M.append("g").attr("class","cynefin-arrows");s.forEach(t=>{let e=I[t.from],r=I[t.to];if(!e||!r)return;if(t.from===t.to)return void l.R.warn(`Cynefin renderer: skipping self-loop on domain "${t.from}"`);let i=e.cx,o=e.cy,c=r.cx,s=r.cy,d=c-i,f=s-o,p=Math.sqrt(d*d+f*f),y=.15*p,m=(i+c)/2+-f/p*y,x=(o+s)/2+d/p*y;n.append("path").attr("class","cynefinArrowLine").attr("d",`M${i},${o} Q${m},${x} ${c},${s}`).attr("fill","none").attr("marker-end",`url(#${a})`),t.label&&n.append("text").attr("class","cynefinArrowLabel").attr("x",m).attr("y",x-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(t.label)})}d&&M.append("text").attr("class","cynefinTitle").attr("x",x/2).attr("y",-$/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(d)},"draw"),A=(0,c.K)(()=>{let t=(0,o.P$)(),e=(0,o.zj)();return(0,i.$t)(t,e.themeVariables).cynefin},"getCynefinTheme"),B={parser:x,db:y,renderer:{draw:T},styles:(0,c.K)(()=>{let t=A();return` - .cynefinDomain { - stroke: none; - } - .cynefinDomainLabel { - font-size: ${t.domainFontSize}px; - font-weight: bold; - fill: ${t.labelColor}; - } - .cynefinSubtitle { - font-size: ${t.itemFontSize-1}px; - fill: ${t.textColor}; - font-style: italic; - } - .cynefinItem { - fill-opacity: 0.95; - stroke: ${t.boundaryColor}; - stroke-width: 1; - } - .cynefinItemText { - font-size: ${t.itemFontSize}px; - fill: ${t.textColor}; - } - .cynefinItemOverflow { - fill-opacity: 0.6; - stroke: ${t.boundaryColor}; - stroke-width: 1; - stroke-dasharray: 3 2; - } - .cynefinBoundary { - stroke: ${t.boundaryColor}; - stroke-width: ${t.boundaryWidth}; - stroke-dasharray: 6 3; - } - .cynefinCliff { - stroke: ${t.cliffColor}; - stroke-width: ${t.cliffWidth}; - } - .cynefinConfusion { - stroke: ${t.boundaryColor}; - stroke-width: 1.5; - stroke-dasharray: 4 2; - } - .cynefinArrowLine { - stroke: ${t.arrowColor}; - stroke-width: ${t.arrowWidth}; - fill: none; - } - .cynefinArrowHead { - fill: ${t.arrowColor}; - stroke: none; - } - .cynefinArrowLabel { - font-size: ${t.itemFontSize-1}px; - fill: ${t.textColor}; - } - .cynefinTitle { - font-size: ${t.domainFontSize+2}px; - font-weight: bold; - fill: ${t.labelColor}; - } - `},"styles")}},84492:(t,e,a)=>{function n(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}a.d(e,{S:()=>n}),(0,a(91158).K)(n,"populateCommonDb")}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/483-64f6250fdfd0cb86.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/483-64f6250fdfd0cb86.js deleted file mode 100644 index 0152005ee..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/483-64f6250fdfd0cb86.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[483],{10483:(e,t,s)=>{"use strict";s.d(t,{AgentPageClient:()=>eZ});var a=s(97601),r=s(61221),l=s(4547),n=s(20925),i=s(91759),o=s(38091),d=s(27470),c=s(83246);s(92117);var m=s(41550),x=s(3261),u=s(15056),g=s(14995),h=s(90634),p=s(82453),f=s(79240),b=s(59071),j=s(9142),v=s(50362);f.A.registerLanguage("js",b.A),f.A.registerLanguage("jsx",b.A),f.A.registerLanguage("ts",b.A),f.A.registerLanguage("tsx",b.A),f.A.registerLanguage("python",j.A);let y=e=>{let{children:t,language:s,className:r}=e;return(0,a.jsx)(f.A,{language:s,style:v.hY,customStyle:{margin:0,width:"100%",background:"transparent",padding:"1.5rem 1rem"},className:r,children:t})};var N=s(53760);function w(e){let{delayDuration:t=0,...s}=e;return(0,a.jsx)(N.Kq,{"data-slot":"tooltip-provider",delayDuration:t,...s})}function k(e){let{...t}=e;return(0,a.jsx)(w,{children:(0,a.jsx)(N.bL,{"data-slot":"tooltip",...t})})}function A(e){let{...t}=e;return(0,a.jsx)(N.l9,{"data-slot":"tooltip-trigger",...t})}function C(e){let{className:t,sideOffset:s=0,children:r,...l}=e;return(0,a.jsx)(N.ZL,{children:(0,a.jsxs)(N.UC,{"data-slot":"tooltip-content",sideOffset:s,className:(0,n.cn)("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit rounded-md px-3 py-1.5 text-xs text-balance",t),...l,children:[r,(0,a.jsx)(N.i3,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}let E=(0,r.forwardRef)((e,t)=>{let{children:s,tooltip:r,side:l="bottom",className:i,...o}=e;return(0,a.jsx)(w,{children:(0,a.jsxs)(k,{children:[(0,a.jsx)(A,{asChild:!0,children:(0,a.jsxs)(d.$,{variant:"ghost",size:"icon",...o,className:(0,n.cn)("size-6 p-1",i),ref:t,children:[s,(0,a.jsx)("span",{className:"sr-only",children:r})]})}),(0,a.jsx)(C,{side:l,children:r})]})})});E.displayName="TooltipIconButton",s(72043);let S=function(){let{copiedDuration:e=3e3}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,s]=(0,r.useState)(!1);return{isCopied:t,copyToClipboard:t=>{t&&navigator.clipboard.writeText(t).then(()=>{s(!0),setTimeout(()=>s(!1),e)})}}},P=e=>{let{language:t,code:s}=e,{isCopied:r,copyToClipboard:l}=S();return(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4 rounded-t-lg bg-zinc-900 px-4 py-2 text-sm font-semibold text-white",children:[(0,a.jsx)("span",{className:"lowercase [&>span]:text-xs",children:t}),(0,a.jsxs)(E,{tooltip:"Copy",onClick:()=>{s&&!r&&l(s)},children:[!r&&(0,a.jsx)(h.A,{}),r&&(0,a.jsx)(p.A,{})]})]})},T={h1:e=>{let{className:t,...s}=e;return(0,a.jsx)("h1",{className:(0,n.cn)("mb-8 scroll-m-20 text-4xl font-extrabold tracking-tight last:mb-0",t),...s})},h2:e=>{let{className:t,...s}=e;return(0,a.jsx)("h2",{className:(0,n.cn)("mt-8 mb-4 scroll-m-20 text-3xl font-semibold tracking-tight first:mt-0 last:mb-0",t),...s})},h3:e=>{let{className:t,...s}=e;return(0,a.jsx)("h3",{className:(0,n.cn)("mt-6 mb-4 scroll-m-20 text-2xl font-semibold tracking-tight first:mt-0 last:mb-0",t),...s})},h4:e=>{let{className:t,...s}=e;return(0,a.jsx)("h4",{className:(0,n.cn)("mt-6 mb-4 scroll-m-20 text-xl font-semibold tracking-tight first:mt-0 last:mb-0",t),...s})},h5:e=>{let{className:t,...s}=e;return(0,a.jsx)("h5",{className:(0,n.cn)("my-4 text-lg font-semibold first:mt-0 last:mb-0",t),...s})},h6:e=>{let{className:t,...s}=e;return(0,a.jsx)("h6",{className:(0,n.cn)("my-4 font-semibold first:mt-0 last:mb-0",t),...s})},p:e=>{let{className:t,...s}=e;return(0,a.jsx)("p",{className:(0,n.cn)("mt-5 mb-5 leading-7 first:mt-0 last:mb-0",t),...s})},a:e=>{let{className:t,...s}=e;return(0,a.jsx)("a",{className:(0,n.cn)("text-primary font-medium underline underline-offset-4",t),...s})},blockquote:e=>{let{className:t,...s}=e;return(0,a.jsx)("blockquote",{className:(0,n.cn)("border-l-2 pl-6 italic",t),...s})},ul:e=>{let{className:t,...s}=e;return(0,a.jsx)("ul",{className:(0,n.cn)("my-5 ml-6 list-disc [&>li]:mt-2",t),...s})},ol:e=>{let{className:t,...s}=e;return(0,a.jsx)("ol",{className:(0,n.cn)("my-5 ml-6 list-decimal [&>li]:mt-2",t),...s})},hr:e=>{let{className:t,...s}=e;return(0,a.jsx)("hr",{className:(0,n.cn)("my-5 border-b",t),...s})},table:e=>{let{className:t,...s}=e;return(0,a.jsx)("table",{className:(0,n.cn)("my-5 w-full border-separate border-spacing-0 overflow-y-auto",t),...s})},th:e=>{let{className:t,...s}=e;return(0,a.jsx)("th",{className:(0,n.cn)("bg-muted px-4 py-2 text-left font-bold first:rounded-tl-lg last:rounded-tr-lg [&[align=center]]:text-center [&[align=right]]:text-right",t),...s})},td:e=>{let{className:t,...s}=e;return(0,a.jsx)("td",{className:(0,n.cn)("border-b border-l px-4 py-2 text-left last:border-r [&[align=center]]:text-center [&[align=right]]:text-right",t),...s})},tr:e=>{let{className:t,...s}=e;return(0,a.jsx)("tr",{className:(0,n.cn)("m-0 border-b p-0 first:border-t [&:last-child>td:first-child]:rounded-bl-lg [&:last-child>td:last-child]:rounded-br-lg",t),...s})},sup:e=>{let{className:t,...s}=e;return(0,a.jsx)("sup",{className:(0,n.cn)("[&>a]:text-xs [&>a]:no-underline",t),...s})},pre:e=>{let{className:t,...s}=e;return(0,a.jsx)("pre",{className:(0,n.cn)("max-w-4xl overflow-x-auto rounded-lg bg-black text-white",t),...s})},code:e=>{let{className:t,children:s,...r}=e,l=/language-(\w+)/.exec(t||"");if(l){let e=l[1],r=String(s).replace(/\n$/,"");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P,{language:e,code:r}),(0,a.jsx)(y,{language:e,className:t,children:r})]})}return(0,a.jsx)("code",{className:(0,n.cn)("rounded font-semibold",t),...r,children:s})}},z=(0,r.memo)(e=>{let{children:t}=e;return(0,a.jsx)("div",{className:"markdown-content",children:(0,a.jsx)(m.oz,{remarkPlugins:[x.A,g.A],rehypePlugins:[u.A],components:T,children:t})})});var R=s(55051);function L(e){let{message:t}=e;if(!(0,c.mj)(t.message))return console.warn("[AssistantMessage] Warning: Received non-assistant message type:",t.message.messageType,"This should be handled by the appropriate component."),null;let s=t.message.content;return t.message.toolCalls&&t.message.toolCalls.length>0&&console.warn("[AssistantMessage] Warning: Assistant message contains toolCalls.","This should typically be a tool-request message instead.","toolCalls:",t.message.toolCalls),(0,a.jsx)("div",{className:"group flex flex-col gap-2",children:s&&(0,a.jsx)("div",{className:"prose prose-sm max-w-none",children:(0,a.jsx)(z,{children:s})})})}function D(){return(0,a.jsxs)("div",{className:"text-muted-foreground flex items-center gap-2",children:[(0,a.jsx)(R.A,{className:"h-4 w-4 animate-spin"}),(0,a.jsx)("span",{className:"text-sm",children:"Thinking..."})]})}function F(e){let{message:t}=e,s=t.message.content;return(0,a.jsx)("div",{className:"group ml-auto flex items-center gap-2",children:(0,a.jsx)("div",{className:"flex flex-col gap-2",children:(0,a.jsx)("p",{className:"bg-muted ml-auto w-fit rounded-3xl px-4 py-2 text-right whitespace-pre-wrap",children:s})})})}var _=s(64461),G=s(94868),O=s(45545),J=s(73050),q=s(27417),B=s(23572);function $(e){return Array.isArray(e)||"object"==typeof e&&null!==e}function I(e){let t,{toolCall:s,index:n}=e,[i,o]=(0,r.useState)(!1);try{t=s.arguments?JSON.parse(s.arguments):{}}catch(e){t={raw:s.arguments}}let d=Object.keys(t).length>0;return(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg border border-gray-200",children:[(0,a.jsx)("div",{className:"border-b border-gray-200 bg-gray-50 px-4 py-2",children:(0,a.jsx)("div",{className:"flex w-full flex-wrap items-center justify-between gap-2",children:(0,a.jsxs)("h3",{className:"font-medium text-gray-900",children:[s.name,s.id&&(0,a.jsx)("code",{className:"ml-2 rounded bg-gray-100 px-2 py-1 text-sm",children:s.id}),"type"in s&&(0,a.jsxs)("span",{className:"ml-2 text-xs text-gray-500",children:["Type: ",s.type]})]})})}),(0,a.jsx)(_.N,{initial:!1,children:i&&(0,a.jsx)(l.P.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"overflow-hidden",children:d?(0,a.jsx)("table",{className:"min-w-full divide-y divide-gray-200",children:(0,a.jsx)("tbody",{className:"divide-y divide-gray-200",children:Object.entries(t).map((e,t)=>{let[s,r]=e;return(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"px-4 py-2 text-sm font-medium whitespace-nowrap text-gray-900",children:s}),(0,a.jsx)("td",{className:"px-4 py-2 text-sm text-gray-500",children:$(r)?(0,a.jsx)("code",{className:"rounded bg-gray-50 px-2 py-1 font-mono text-sm break-all",children:JSON.stringify(r,null,2)}):String(r)})]},t)})})}):(0,a.jsx)("code",{className:"block p-3 text-sm",children:"{}"})})}),(0,a.jsx)(l.P.button,{onClick:()=>o(!i),className:"flex w-full cursor-pointer items-center justify-center border-t-[1px] border-gray-200 py-2 text-gray-500 transition-all duration-200 ease-in-out hover:bg-gray-50 hover:text-gray-600",initial:{scale:1},whileHover:{scale:1.02},whileTap:{scale:.98},children:i?(0,a.jsx)(G.A,{}):(0,a.jsx)(O.A,{})})]},s.id||n)}function M(e){let t,{toolCall:s,index:i,itemBorder:o,itemText:d}=e,[c,m]=(0,r.useState)(!1);try{t=JSON.parse(s.arguments)}catch(e){t={raw:s.arguments}}let x="description"in s&&s.description;return(0,a.jsxs)("div",{className:(0,n.cn)("overflow-hidden rounded-md border bg-white",o||""),children:[(0,a.jsx)("div",{className:"border-b border-gray-200 bg-gray-50 p-2",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("span",{className:(0,n.cn)("font-mono text-xs font-semibold",d||""),children:s.name}),s.id&&(0,a.jsx)("code",{className:"rounded bg-gray-100 px-1.5 py-0.5 text-xs",children:s.id})]}),"type"in s&&(0,a.jsx)("span",{className:"text-xs text-gray-500",children:s.type})]})}),x&&(0,a.jsx)("div",{className:"bg-white px-2 pt-1.5 text-xs text-gray-600 italic",children:s.description}),(0,a.jsx)(_.N,{initial:!1,children:c&&(0,a.jsx)(l.P.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"overflow-hidden",children:(0,a.jsx)("div",{className:"bg-white p-2",children:(0,a.jsx)("pre",{className:"overflow-x-auto rounded bg-gray-50 p-1.5 text-xs",children:JSON.stringify(t,null,2)})})})}),(0,a.jsx)(l.P.button,{onClick:()=>m(!c),className:(0,n.cn)("flex w-full cursor-pointer items-center justify-center border-t-[1px] py-1 text-gray-500 transition-all duration-200 ease-in-out hover:text-gray-600",o||"","hover:bg-gray-50"),initial:{scale:1},whileHover:{scale:1.02},whileTap:{scale:.98},children:c?(0,a.jsx)(G.A,{className:"size-3.5"}):(0,a.jsx)(O.A,{className:"size-3.5"})})]},s.id||i)}function H(e){let{toolCalls:t,variant:s="default",title:r,description:l}=e;if(!t||0===t.length)return null;let n={default:{container:"mx-auto grid max-w-3xl grid-rows-[1fr_auto] gap-2",card:"overflow-hidden rounded-lg border border-gray-200",header:"border-b border-gray-200 bg-gray-50 px-4 py-2",headerText:"font-medium text-gray-900",useCard:!1},request:{container:"group flex flex-col gap-2",card:"p-2 bg-blue-50 border-blue-200",header:"flex items-center gap-1.5 text-blue-700 mb-2",headerText:"font-medium text-sm",icon:(0,a.jsx)(J.A,{className:"size-3.5"}),useCard:!0,itemBorder:"border-blue-200",itemText:"text-blue-700"},confirm:{container:"group flex flex-col gap-2",card:"p-4 bg-green-50 border-green-200",header:"flex items-center gap-2 text-green-700 mb-3",headerText:"font-medium",icon:(0,a.jsx)(q.A,{className:"size-4"}),useCard:!0,itemBorder:"border-green-200",itemText:"text-green-700"}}[s];if("default"===s)return(0,a.jsx)("div",{className:n.container,children:t.map((e,t)=>(0,a.jsx)(I,{toolCall:e,index:t},e.id||t))});let i="itemBorder"in n?n.itemBorder:void 0,o="itemText"in n?n.itemText:void 0;return(0,a.jsx)("div",{className:n.container,children:(0,a.jsxs)(B.Zp,{className:n.card,children:[(r||"icon"in n&&n.icon)&&(0,a.jsxs)("div",{className:n.header,children:["icon"in n&&n.icon,(0,a.jsx)("span",{className:n.headerText,children:r||("request"===s?"Tool Request":"Tool Execution Confirmation")})]}),l&&(0,a.jsx)("p",{className:"mb-2 text-xs text-gray-700",children:l}),(0,a.jsx)("div",{className:"space-y-1.5",children:t.map((e,t)=>(0,a.jsx)(M,{toolCall:e,index:t,itemBorder:i,itemText:o},e.id||t))})]})})}function W(e){let t,{toolResponse:s}=e,[n,i]=(0,r.useState)(!1),o=!1;try{t=JSON.parse(s.responseData),o=$(t)}catch(e){t=s.responseData}return(0,a.jsx)("div",{className:"mx-auto grid max-w-3xl grid-rows-[1fr_auto] gap-2",children:(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg border border-gray-200",children:[(0,a.jsx)("div",{className:"border-b border-gray-200 bg-gray-50 px-4 py-2",children:(0,a.jsx)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:(0,a.jsxs)("h3",{className:"font-medium text-gray-900",children:[s.name&&(0,a.jsxs)(a.Fragment,{children:["Tool Result:"," ",(0,a.jsx)("code",{className:"rounded bg-gray-100 px-2 py-1",children:s.name})]}),s.id&&(0,a.jsx)("code",{className:"ml-2 rounded bg-gray-100 px-2 py-1 text-sm",children:s.id})]})})}),(0,a.jsx)(_.N,{initial:!1,children:n&&(0,a.jsx)(l.P.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"overflow-hidden",children:(0,a.jsx)("div",{className:"bg-gray-100 p-3",children:o?(0,a.jsx)("table",{className:"min-w-full divide-y divide-gray-200",children:(0,a.jsx)("tbody",{className:"divide-y divide-gray-200",children:(Array.isArray(t)?t:Object.entries(t)).map((e,s)=>{let[r,l]=Array.isArray(t)?[s,e]:[e[0],e[1]];return(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"px-4 py-2 text-sm font-medium whitespace-nowrap text-gray-900",children:r}),(0,a.jsx)("td",{className:"px-4 py-2 text-sm text-gray-500",children:$(l)?(0,a.jsx)("code",{className:"rounded bg-gray-50 px-2 py-1 font-mono text-sm break-all",children:JSON.stringify(l,null,2)}):String(l)})]},s)})})}):(0,a.jsx)("code",{className:"block text-sm",children:String(s.responseData)})})})}),(0,a.jsx)(l.P.button,{onClick:()=>i(!n),className:"flex w-full cursor-pointer items-center justify-center border-t-[1px] border-gray-200 py-2 text-gray-500 transition-all duration-200 ease-in-out hover:bg-gray-50 hover:text-gray-600",initial:{scale:1},whileHover:{scale:1.02},whileTap:{scale:.98},children:n?(0,a.jsx)(G.A,{}):(0,a.jsx)(O.A,{})})]})})}function Z(e){let{message:t}=e;if(!(0,c.ht)(t.message))return console.warn("[ToolResponseMessage] Not a tool response message:",t),null;let s=t.message.responses||[];return 0===s.length?(console.warn("[ToolResponseMessage] No responses found"),null):(0,a.jsx)("div",{className:"group flex flex-col gap-2",children:s.map((e,t)=>(0,a.jsx)(W,{toolResponse:e},e.id||t))})}function U(e){let{message:t}=e;if(!(0,c.hH)(t.message))return console.warn("[ToolRequestMessage] Not a tool request message:",t),null;let s=t.message.toolCalls||[];return 0===s.length?(console.warn("[ToolRequestMessage] No tool calls found"),null):(0,a.jsx)(H,{toolCalls:s,variant:"request",title:"Tool Request",description:t.message.content})}var K=s(96962),V=s(25186),Y=s(59498),Q=s(44317);function X(e){let{className:t,...s}=e;return(0,a.jsx)("textarea",{"data-slot":"textarea",className:(0,n.cn)("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),...s})}var ee=s(11119);function et(e){let t,{toolCall:s,index:i}=e,[o,d]=(0,r.useState)(!1);try{t=JSON.parse(s.arguments)}catch(e){t={raw:s.arguments}}return(0,a.jsxs)("div",{className:(0,n.cn)("overflow-hidden rounded-md border transition-all","border-green-300 bg-green-50"),children:[(0,a.jsx)("div",{className:"border-b border-green-200 bg-white p-3",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(K.A,{className:"size-4 text-green-600"}),(0,a.jsx)("span",{className:"font-mono text-sm font-semibold text-gray-900",children:s.name}),s.id&&(0,a.jsx)("code",{className:"rounded bg-gray-100 px-1.5 py-0.5 text-xs text-gray-600",children:s.id})]}),(0,a.jsx)("span",{className:"rounded bg-green-100 px-2 py-1 text-xs font-medium text-green-700",children:"Auto-Approved"})]})}),(0,a.jsx)(_.N,{initial:!1,children:o&&(0,a.jsx)(l.P.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"overflow-hidden",children:(0,a.jsx)("div",{className:"bg-white p-3",children:(0,a.jsx)("pre",{className:"overflow-x-auto rounded bg-gray-50 p-2 text-xs",children:JSON.stringify(t,null,2)})})})}),(0,a.jsx)(l.P.button,{onClick:()=>d(!o),className:"flex w-full cursor-pointer items-center justify-center border-t-[1px] border-green-200 py-1.5 text-gray-500 transition-all duration-200 ease-in-out hover:bg-gray-50 hover:text-gray-600",initial:{scale:1},whileHover:{scale:1.02},whileTap:{scale:.98},children:o?(0,a.jsx)(G.A,{className:"size-4"}):(0,a.jsx)(O.A,{className:"size-4"})})]})}function es(e){let t,{feedback:s,onUpdate:i,disabled:o}=e,[c,m]=(0,r.useState)(!1),[x,u]=(0,r.useState)(!1),[g,h]=(0,r.useState)(s.arguments),[p,f]=(0,r.useState)(s.result);try{t=JSON.parse(g)}catch(e){t={raw:g}}let b={APPROVED:"border-green-300 bg-green-50",REJECTED:"border-red-300 bg-red-50",EDITED:"border-blue-300 bg-blue-50",default:o&&p?"border-gray-300 bg-gray-100":"border-yellow-300 bg-yellow-50"},j=p?b[p]:b.default,v=o&&p;return(0,a.jsxs)("div",{className:(0,n.cn)("overflow-hidden rounded-md border transition-all",j,v&&"opacity-75"),children:[(0,a.jsxs)("div",{className:"border-b border-gray-200 bg-white p-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"font-mono text-sm font-semibold text-gray-900",children:s.name}),s.id&&(0,a.jsx)("code",{className:"rounded bg-gray-100 px-1.5 py-0.5 text-xs text-gray-600",children:s.id})]}),p&&(0,a.jsxs)("span",{className:(0,n.cn)("rounded px-2 py-1 text-xs font-medium","APPROVED"===p&&"bg-green-100 text-green-700","REJECTED"===p&&"bg-red-100 text-red-700","EDITED"===p&&"bg-blue-100 text-blue-700",v&&"ring-1 ring-gray-400"),children:[p,v&&" ✓"]})]}),s.description&&(0,a.jsx)("p",{className:"mt-1.5 text-xs text-gray-600 italic",children:s.description})]}),!o&&(0,a.jsx)("div",{className:"flex gap-2 border-b border-gray-200 bg-white p-2",children:p?(0,a.jsxs)("div",{className:"flex flex-1 items-center justify-center gap-2",children:[(0,a.jsxs)("span",{className:"text-xs text-gray-600",children:["Feedback: ",(0,a.jsx)("span",{className:"font-medium",children:p})]}),(0,a.jsx)(d.$,{size:"sm",variant:"ghost",className:"text-xs text-gray-500 hover:text-gray-700",onClick:()=>{f(void 0),i(s.id,null,void 0),h(s.arguments),u(!1)},children:"Change"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(d.$,{size:"sm",variant:"outline",className:"flex-1 border-green-300 text-green-600 hover:bg-green-50",onClick:()=>{f("APPROVED"),i(s.id,"APPROVED"),ee.oR.success('Tool "'.concat(s.name,'" approved'))},children:[(0,a.jsx)(q.A,{className:"mr-1 size-4"}),"Approve"]}),(0,a.jsxs)(d.$,{size:"sm",variant:"outline",className:"flex-1 border-red-300 text-red-600 hover:bg-red-50",onClick:()=>{f("REJECTED"),i(s.id,"REJECTED"),ee.oR.success('Tool "'.concat(s.name,'" rejected'))},children:[(0,a.jsx)(V.A,{className:"mr-1 size-4"}),"Reject"]}),(0,a.jsxs)(d.$,{size:"sm",variant:"outline",className:"flex-1 border-blue-300 text-blue-600 hover:bg-blue-50",onClick:()=>{u(!0),m(!0)},children:[(0,a.jsx)(Y.A,{className:"mr-1 size-4"}),"Edit"]})]})}),(0,a.jsx)(_.N,{initial:!1,children:c&&(0,a.jsx)(l.P.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"overflow-hidden",children:(0,a.jsx)("div",{className:"bg-white p-3",children:x?(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("label",{className:"text-xs font-medium text-gray-700",children:"Edit Arguments (JSON):"}),(0,a.jsx)(X,{value:g,onChange:e=>h(e.target.value),className:"min-h-[120px] font-mono text-xs",placeholder:"Enter valid JSON"}),(0,a.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,a.jsx)(d.$,{size:"sm",variant:"outline",onClick:()=>{h(s.arguments),u(!1)},children:"Cancel"}),(0,a.jsxs)(d.$,{size:"sm",onClick:()=>{f("EDITED"),i(s.id,"EDITED",g),u(!1),ee.oR.success('Tool "'.concat(s.name,'" arguments edited'))},className:"bg-blue-600 hover:bg-blue-700",children:[(0,a.jsx)(Q.A,{className:"mr-1 size-3.5"}),"Save Edit"]})]})]}):(0,a.jsx)("pre",{className:"overflow-x-auto rounded bg-gray-50 p-2 text-xs",children:JSON.stringify(t,null,2)})})})}),(0,a.jsx)(l.P.button,{onClick:()=>m(!c),className:"flex w-full cursor-pointer items-center justify-center border-t-[1px] border-gray-200 py-1.5 text-gray-500 transition-all duration-200 ease-in-out hover:bg-gray-50 hover:text-gray-600",initial:{scale:1},whileHover:{scale:1.02},whileTap:{scale:.98},children:c?(0,a.jsx)(G.A,{className:"size-4"}):(0,a.jsx)(O.A,{className:"size-4"})})]})}function ea(e){let{message:t}=e,s=(0,i.j2)(),[o,m]=(0,r.useState)({}),[x,u]=(0,r.useState)(!1),[g,h]=(0,r.useState)(!1);if(!(0,c.F9)(t.message))return console.warn("[ToolFeedbackConfirm] Not a tool request confirm message:",t),null;let p=t.message.toolFeedback||[],f=t.message.toolsAutomaticallyApproved||[];if(0===p.length&&0===f.length)return console.warn("[ToolFeedbackConfirm] No tool feedback or auto-approved tools found"),null;let b=(e,t,s)=>{if(null===t)return void m(t=>{let s={...t};return delete s[e],s});m(a=>({...a,[e]:{result:t,editedArgs:s}}))},j=async()=>{if(g||x)return void ee.oR.warning("Feedback has already been submitted");if(!p.every(e=>o[e.id]))return void ee.oR.error("Please provide feedback for all tools");u(!0);try{let e=p.map(e=>{let t=o[e.id];return{id:e.id,name:e.name,arguments:"EDITED"===t.result&&t.editedArgs?t.editedArgs:e.arguments,result:t.result,description:e.description}});await s.resumeFeedback(e),h(!0),u(!1),ee.oR.success("Feedback submitted successfully")}catch(e){console.error("[ToolFeedbackConfirm] Failed to submit feedback:",e),ee.oR.error(e.message||"Failed to submit feedback"),u(!1)}},v=p.every(e=>o[e.id]),y=Object.keys(o).length>0,N=p.filter(e=>!o[e.id]).length,w=p.length-N;return(0,a.jsx)("div",{className:"group flex flex-col gap-3",children:(0,a.jsxs)(B.Zp,{className:(0,n.cn)("border-2 p-4",g?"border-gray-300 bg-gray-50":"border-yellow-200 bg-yellow-50"),children:[(0,a.jsxs)("div",{className:(0,n.cn)("mb-3 flex items-center justify-between",g?"text-gray-600":"text-yellow-700"),children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(q.A,{className:"size-5"}),(0,a.jsx)("span",{className:"font-medium",children:g?"Feedback Submitted - Processing...":"Tool Execution Confirmation Required"})]}),!g&&!x&&p.length>1&&(0,a.jsxs)("div",{className:"rounded bg-yellow-100 px-2 py-1 text-xs font-medium text-yellow-700",children:[w," / ",p.length," completed"]})]}),t.message.content&&(0,a.jsx)("p",{className:"mb-3 text-sm text-gray-700",children:t.message.content}),f.length>0&&(0,a.jsx)("div",{className:"mb-3 rounded border border-blue-200 bg-blue-50 p-2",children:(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs text-blue-800",children:[(0,a.jsx)(K.A,{className:"size-3.5"}),(0,a.jsxs)("span",{children:[f.length," tool",f.length>1?"s":""," automatically approved",p.length>0&&", ".concat(p.length," tool").concat(p.length>1?"s":""," require").concat(p.length>1?"":"s"," confirmation")]})]})}),!g&&!x&&p.length>1&&(0,a.jsxs)("div",{className:"mb-3 rounded border border-yellow-200 bg-yellow-100 p-2",children:[(0,a.jsx)("p",{className:"mb-1 text-xs text-yellow-800",children:"Please provide feedback for each tool call below. All feedback will be submitted together when complete."}),N>0&&(0,a.jsxs)("p",{className:"text-xs text-yellow-700 italic",children:[N," tool call",N>1?"s":""," remaining"]})]}),(0,a.jsxs)("div",{className:"mb-3 space-y-2",children:[f.length>0&&(0,a.jsxs)(a.Fragment,{children:[f.map((e,t)=>(0,a.jsx)(et,{toolCall:e,index:t},e.id||"auto-".concat(t))),p.length>0&&(0,a.jsxs)("div",{className:"my-2 flex items-center gap-2",children:[(0,a.jsx)("div",{className:"flex-1 border-t border-gray-300"}),(0,a.jsx)("span",{className:"px-2 text-xs text-gray-500",children:"Requires Confirmation"}),(0,a.jsx)("div",{className:"flex-1 border-t border-gray-300"})]})]}),p.map(e=>(0,a.jsx)(es,{feedback:e,onUpdate:b,disabled:x||g},e.id))]}),p.length>0&&(0,a.jsxs)("div",{className:"flex items-center justify-between border-t border-yellow-200 pt-2",children:[!g&&!x&&(0,a.jsx)("div",{className:"text-xs text-gray-600",children:v?(0,a.jsx)("span",{className:"font-medium text-green-600",children:"✓ All tool calls have feedback"}):(0,a.jsxs)("span",{children:["Please provide feedback for all ",p.length," tool call",p.length>1?"s":""," before submitting"]})}),(0,a.jsx)(d.$,{onClick:j,disabled:!v||x||g,className:(0,n.cn)("text-white",g?"cursor-not-allowed bg-green-600 hover:bg-green-600":v?"bg-yellow-600 hover:bg-yellow-700":"cursor-not-allowed bg-gray-400"),children:x?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.P.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},className:"mr-2",children:(0,a.jsx)(Q.A,{className:"size-4"})}),"Submitting..."]}):g?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(q.A,{className:"mr-2 size-4"}),"Submitted"]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Q.A,{className:"mr-2 size-4"}),"Submit All Feedback"]})})]}),g&&(0,a.jsx)("div",{className:"flex justify-center border-t border-gray-300 pt-2",children:(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[(0,a.jsx)(l.P.div,{animate:{rotate:360},transition:{duration:2,repeat:1/0,ease:"linear"},children:(0,a.jsx)(q.A,{className:"size-4 text-green-600"})}),(0,a.jsx)("span",{className:"font-medium",children:"Feedback submitted. Waiting for agent response..."})]})}),!y&&!g&&(0,a.jsx)("p",{className:"text-center text-xs text-yellow-600 italic",children:"Please review each tool and provide your feedback (Approve, Reject, or Edit)"})]})})}function er(e){let{message:t}=e;if(!(0,c.F9)(t.message))return console.warn("[ToolRequestConfirmMessage] Not a tool request confirm message:",t),null;let s=t.message.toolFeedback||[],r=t.message.toolsAutomaticallyApproved||[];return 0===s.length&&0===r.length?(console.warn("[ToolRequestConfirmMessage] No tool feedback or auto-approved tools found"),null):(0,a.jsx)(ea,{message:t})}var el=s(54521),en=s.n(el),ei=s(47019),eo=s(95667),ed=s(70665),ec=s(23362),em=s(15655),ex=s(49909),eu=s(84097),eg=s(28292),eh=s(31239),ep=s(77699);function ef(e){let[t,s]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let t=window.matchMedia(e);s(t.matches);let a=e=>s(e.matches);return t.addEventListener("change",a),()=>t.removeEventListener("change",a)},[e]),t}function eb(e){let{threads:t,onThreadClick:s}=e,[r,l]=(0,eu.ZA)("threadId");return(0,a.jsx)("div",{className:"flex h-full w-full flex-col items-start justify-start gap-2 overflow-y-scroll [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-gray-300 [&::-webkit-scrollbar-track]:bg-transparent",children:t.map(e=>{var t,n;let i=e.thread_id;return"object"==typeof e.values&&e.values&&"messages"in e.values&&Array.isArray(e.values.messages)&&(null==(t=e.values.messages)?void 0:t.length)>0&&(i="string"==typeof(n=e.values.messages[0].content)?n:n.filter(e=>"text"===e.type).map(e=>e.text).join(" ")),(0,a.jsx)("div",{className:"w-full px-1",children:(0,a.jsx)(d.$,{variant:"ghost",className:"w-[280px] items-start justify-start text-left font-normal",onClick:t=>{t.preventDefault(),null==s||s(e.thread_id),e.thread_id!==r&&l(e.thread_id)},children:(0,a.jsx)("p",{className:"truncate text-ellipsis",children:i})})},e.thread_id)})})}function ej(){return(0,a.jsx)("div",{className:"flex h-full w-full flex-col items-start justify-start gap-2 overflow-y-scroll [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-gray-300 [&::-webkit-scrollbar-track]:bg-transparent",children:Array.from({length:30}).map((e,t)=>(0,a.jsx)(ep.E,{className:"h-10 w-[280px]"},"skeleton-".concat(t)))})}function ev(){let e=ef("(min-width: 1024px)"),[t,s]=(0,eu.ZA)("chatHistoryOpen",eu.cr.withDefault(!1)),[l]=(0,eu.ZA)("threadId"),{threads:n,isLoading:i,loadThreads:c}=(0,o.B)();return(0,r.useEffect)(()=>{(t||l)&&c()},[c,t,l]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"shadow-inner-right hidden h-screen w-[300px] shrink-0 flex-col items-start justify-start gap-6 border-r-[1px] border-slate-300 lg:flex",children:[(0,a.jsxs)("div",{className:"flex w-full items-center justify-between px-4 pt-1.5",children:[(0,a.jsx)(d.$,{className:"hover:bg-gray-100",variant:"ghost",onClick:()=>s(e=>!e),children:t?(0,a.jsx)(eo.A,{className:"size-5"}):(0,a.jsx)(ed.A,{className:"size-5"})}),(0,a.jsx)("h1",{className:"text-xl font-semibold tracking-tight",children:"Thread History"})]}),i?(0,a.jsx)(ej,{}):(0,a.jsx)(eb,{threads:n})]}),(0,a.jsx)("div",{className:"lg:hidden",children:(0,a.jsx)(eh.cj,{open:!!t&&!e,onOpenChange:t=>{e||s(t)},children:(0,a.jsxs)(eh.h,{side:"left",className:"flex lg:hidden",children:[(0,a.jsx)(eh.Fm,{children:(0,a.jsx)(eh.qp,{children:"Thread History"})}),(0,a.jsx)(eb,{threads:n,onThreadClick:()=>s(e=>!e)})]})})})]})}var ey=s(9260),eN=s(4599);function ew(e){let{className:t,...s}=e;return(0,a.jsx)(eN.bL,{"data-slot":"switch",className:(0,n.cn)("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 inline-flex h-5 w-9 shrink-0 items-center rounded-full border-2 border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),...s,children:(0,a.jsx)(eN.zi,{"data-slot":"switch-thumb",className:(0,n.cn)("bg-background pointer-events-none block size-4 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})}var ek=s(57653);async function eA(e){let t=["image/jpeg","image/png","image/gif","image/webp"],s=[...t,"application/pdf"];if(!s.includes(e.type))return ee.oR.error("Unsupported file type: ".concat(e.type,". Supported types are: ").concat(s.join(", "))),Promise.reject(Error("Unsupported file type: ".concat(e.type)));let a=await eC(e);return t.includes(e.type)?{type:"image",source_type:"base64",mime_type:e.type,data:a,metadata:{name:e.name}}:{type:"file",source_type:"base64",mime_type:"application/pdf",data:a,metadata:{filename:e.name}}}async function eC(e){return new Promise((t,s)=>{let a=new FileReader;a.onloadend=()=>{t(a.result.split(",")[1])},a.onerror=s,a.readAsDataURL(e)})}let eE=["image/jpeg","image/png","image/gif","image/webp","application/pdf"];var eS=s(51113),eP=s(65577);let eT=e=>{var t,s,r;let{block:l,removable:i=!1,onRemove:o,className:d,size:c="md"}=e;if("image"===l.type&&"base64"===l.source_type&&"string"==typeof l.mime_type&&l.mime_type.startsWith("image/")){let e="data:".concat(l.mime_type,";base64,").concat(l.data),s="rounded-md object-cover h-16 w-16 text-lg";return"sm"===c&&(s="rounded-md object-cover h-10 w-10 text-base"),"lg"===c&&(s="rounded-md object-cover h-24 w-24 text-xl"),(0,a.jsxs)("div",{className:(0,n.cn)("relative inline-block",d),children:[(0,a.jsx)(eP.default,{src:e,alt:String((null==(t=l.metadata)?void 0:t.name)||"uploaded image"),className:s,width:"sm"===c?16:"md"===c?32:48,height:"sm"===c?16:"md"===c?32:48}),i&&(0,a.jsx)("button",{type:"button",className:"absolute top-1 right-1 z-10 rounded-full bg-gray-500 text-white hover:bg-gray-700",onClick:o,"aria-label":"Remove image",children:(0,a.jsx)(ex.A,{className:"h-4 w-4"})})]})}if("file"===l.type&&"base64"===l.source_type&&"application/pdf"===l.mime_type){let e=(null==(s=l.metadata)?void 0:s.filename)||(null==(r=l.metadata)?void 0:r.name)||"PDF file";return(0,a.jsxs)("div",{className:(0,n.cn)("relative flex items-start gap-2 rounded-md border bg-gray-100 px-3 py-2",d),children:[(0,a.jsx)("div",{className:"flex flex-shrink-0 flex-col items-start justify-start",children:(0,a.jsx)(eS.A,{className:(0,n.cn)("text-teal-700","sm"===c?"h-5 w-5":"h-7 w-7")})}),(0,a.jsx)("span",{className:(0,n.cn)("min-w-0 flex-1 text-sm break-all text-gray-800"),style:{wordBreak:"break-all",whiteSpace:"pre-wrap"},children:String(e)}),i&&(0,a.jsx)("button",{type:"button",className:"ml-2 self-start rounded-full bg-gray-200 p-1 text-teal-700 hover:bg-gray-300",onClick:o,"aria-label":"Remove PDF",children:(0,a.jsx)(ex.A,{className:"h-4 w-4"})})]})}return(0,a.jsxs)("div",{className:(0,n.cn)("flex items-center gap-2 rounded-md border bg-gray-100 px-3 py-2 text-gray-500",d),children:[(0,a.jsx)(eS.A,{className:"h-5 w-5 flex-shrink-0"}),(0,a.jsx)("span",{className:"truncate text-xs",children:"Unsupported file type"}),i&&(0,a.jsx)("button",{type:"button",className:"ml-2 rounded-full bg-gray-200 p-1 text-gray-500 hover:bg-gray-300",onClick:o,"aria-label":"Remove file",children:(0,a.jsx)(ex.A,{className:"h-4 w-4"})})]})},ez=e=>{let{blocks:t,onRemove:s,size:r="md",className:l}=e;return t.length?(0,a.jsx)("div",{className:(0,n.cn)("flex flex-wrap gap-2 p-3.5 pb-0",l),children:t.map((e,t)=>(0,a.jsx)(eT,{block:e,removable:!0,onRemove:()=>s(t),size:r},t))}):null};var eR=s(37624);s(79944);let eL=(0,r.createContext)(null);function eD(e){let t=(0,r.useContext)(eL),[s]=t.mounted,l=(0,r.useRef)(null),[,n]=t.content;return((0,r.useLayoutEffect)(()=>null==n?void 0:n(s?l.current:null),[n,s]),s)?(0,a.jsx)("div",{...e,ref:l}):null}function eF(e){let t=(0,r.useContext)(eL),s=(0,r.useRef)(null),[,l]=t.title;return(0,r.useLayoutEffect)(()=>null==l?void 0:l(s.current),[l]),(0,a.jsx)("div",{...e,ref:s})}function e_(e){let t=(0,r.useState)(null),s=(0,r.useState)(null),l=(0,r.useState)(null),n=(0,r.useState)(null),i=(0,r.useState)({});return(0,a.jsx)(eL.Provider,{value:{open:l,mounted:n,title:s,content:t,context:i},children:e.children})}var eG=s(63675);function eO(e){let{graphName:t,className:l=""}=e,[n,i]=(0,r.useState)(null),[o,c]=(0,r.useState)(!0),[m,x]=(0,r.useState)(null),[u,g]=(0,r.useState)(!1),h=(0,r.useRef)(null);return((0,r.useEffect)(()=>{if(!t){i(null),c(!1);return}c(!0),x(null),(0,eG.yS)().getGraphRepresentation(t).then(e=>{i(e.mermaidSrc||e.dotSrc||null)}).catch(e=>{x(e.message||"Failed to load graph"),i(null)}).finally(()=>c(!1))},[t]),(0,r.useEffect)(()=>{n&&h.current&&(async()=>{try{let e=(await Promise.all([s.e(5894),s.e(9760),s.e(443)]).then(s.bind(s,67685))).default;e.initialize({startOnLoad:!1,theme:"neutral",securityLevel:"loose"});let a="mermaid-".concat(t.replace(/\W/g,"_"),"-").concat(Date.now()),{svg:r}=await e.render(a,n);h.current&&(h.current.innerHTML=r)}catch(e){console.warn("Mermaid render failed, showing source:",e),h.current&&(h.current.innerHTML='
    '.concat(n.replace(/
    "))}})()},[n,t]),o)?(0,a.jsx)("div",{className:l,children:(0,a.jsx)(ep.E,{className:"h-32 w-full rounded-lg"})}):m||!n?(0,a.jsx)("div",{className:"text-muted-foreground rounded-lg border border-dashed p-4 text-sm ".concat(l),children:m||"No graph representation available"}):(0,a.jsxs)("div",{className:"bg-muted/30 overflow-hidden rounded-lg border ".concat(l),children:[(0,a.jsxs)(d.$,{variant:"ghost",size:"sm",className:"w-full justify-between rounded-none",onClick:()=>g(e=>!e),children:[(0,a.jsxs)("span",{className:"text-sm font-medium",children:["Graph: ",t]}),u?(0,a.jsx)(G.A,{className:"h-4 w-4"}):(0,a.jsx)(O.A,{className:"h-4 w-4"})]}),u&&(0,a.jsx)("div",{ref:h,className:"min-h-[120px] overflow-auto p-4 [&_svg]:h-auto [&_svg]:max-w-full"})]})}function eJ(e){let t=(0,eg.B)();return(0,a.jsxs)("div",{ref:t.scrollRef,style:{width:"100%",height:"100%"},className:e.className,children:[(0,a.jsx)("div",{ref:t.contentRef,className:e.contentClassName,children:e.content}),e.footer]})}function eq(e){let{isAtBottom:t,scrollToBottom:s}=(0,eg.B)();return t?null:(0,a.jsxs)(d.$,{variant:"outline",className:e.className,onClick:()=>s(),children:[(0,a.jsx)(ei.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:"Scroll to bottom"})]})}function eB(){return(0,a.jsx)(w,{children:(0,a.jsxs)(k,{children:[(0,a.jsx)(A,{asChild:!0,children:(0,a.jsx)("a",{href:"https://github.com/agentic-spring-ai/agentic-spring-ai/",target:"_blank",className:"flex items-center justify-center",children:(0,a.jsx)(ek.Q,{width:"24",height:"24"})})}),(0,a.jsx)(C,{side:"left",children:(0,a.jsx)("p",{children:"Open GitHub repo"})})]})})}function e$(e){let{mode:t,setMode:s,graphList:r,isGraphsLoading:l}=e,n=!l&&r.length>0;return(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(ey.J,{className:"text-muted-foreground text-sm whitespace-nowrap",children:"Agent"}),(0,a.jsx)(ew,{checked:"graph"===t,onCheckedChange:e=>s(e?"graph":"agent"),disabled:!n,"aria-label":"Switch between Agent and Graph mode"}),(0,a.jsx)(ey.J,{className:"text-muted-foreground text-sm whitespace-nowrap",children:"Graph"})]})}function eI(e){let{agentList:t,selectedAgent:s,setSelectedAgent:r,isAgentsLoading:l}=e;return l?(0,a.jsx)("span",{className:"text-muted-foreground text-sm",children:"Loading agents..."}):0===t.length?(0,a.jsx)("span",{className:"text-muted-foreground text-sm",children:"No agents available"}):(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(ey.J,{htmlFor:"agent-select",className:"text-sm whitespace-nowrap",children:"Agent"}),(0,a.jsx)("select",{id:"agent-select",value:s,onChange:e=>r(e.target.value),className:"border-input bg-background max-w-[200px] min-w-[140px] rounded-md border px-3 py-1.5 text-sm",children:t.map(e=>(0,a.jsx)("option",{value:e,children:e},e))})]})}function eM(e){let{graphList:t,selectedGraph:s,setSelectedGraph:r,isGraphsLoading:l}=e;return l?(0,a.jsx)("span",{className:"text-muted-foreground text-sm",children:"Loading graphs..."}):0===t.length?(0,a.jsx)("span",{className:"text-muted-foreground text-sm",children:"No graphs available"}):(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(ey.J,{htmlFor:"graph-select",className:"text-sm whitespace-nowrap",children:"Graph"}),(0,a.jsx)("select",{id:"graph-select",value:s,onChange:e=>r(e.target.value),className:"border-input bg-background max-w-[200px] min-w-[140px] rounded-md border px-3 py-1.5 text-sm",children:t.map(e=>(0,a.jsx)("option",{value:e,children:e},e))})]})}function eH(){var e;let[t,s]=(0,r.useContext)(eL).context,[c,m]=function(){let[e,t]=(0,r.useContext)(eL).open;return[null!==e,(0,r.useCallback)(()=>t(null),[t])]}(),[x,u]=(0,eu.ZA)("threadId"),[g,h]=(0,eu.ZA)("chatHistoryOpen",eu.cr.withDefault(!1)),[p,f]=(0,eu.ZA)("hideToolCalls",eu.cr.withDefault(!1)),[b,j]=(0,r.useState)(""),{contentBlocks:v,setContentBlocks:y,handleFileUpload:N,dropRef:w,removeBlock:k,resetBlocks:A,dragOver:C,handlePaste:S}=function(){let{initialBlocks:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,s]=(0,r.useState)(e),a=(0,r.useRef)(null),[l,n]=(0,r.useState)(!1),i=(0,r.useRef)(0),o=(e,t)=>"application/pdf"===e.type?t.some(t=>{var s;return"file"===t.type&&"application/pdf"===t.mime_type&&(null==(s=t.metadata)?void 0:s.filename)===e.name}):!!eE.includes(e.type)&&t.some(t=>{var s;return"image"===t.type&&(null==(s=t.metadata)?void 0:s.name)===e.name&&t.mime_type===e.type}),d=async e=>{let a=e.target.files;if(!a)return;let r=Array.from(a),l=r.filter(e=>eE.includes(e.type)),n=r.filter(e=>!eE.includes(e.type)),i=l.filter(e=>o(e,t)),d=l.filter(e=>!o(e,t));n.length>0&&ee.oR.error("You have uploaded invalid file type. Please upload a JPEG, PNG, GIF, WEBP image or a PDF."),i.length>0&&ee.oR.error("Duplicate file(s) detected: ".concat(i.map(e=>e.name).join(", "),". Each file can only be uploaded once per message."));let c=d.length?await Promise.all(d.map(eA)):[];s(e=>[...e,...c]),e.target.value=""};(0,r.useEffect)(()=>{if(!a.current)return;let e=e=>{var t,s;(null==(s=e.dataTransfer)||null==(t=s.types)?void 0:t.includes("Files"))&&(i.current+=1,n(!0))},r=e=>{var t,s;(null==(s=e.dataTransfer)||null==(t=s.types)?void 0:t.includes("Files"))&&(i.current-=1,i.current<=0&&(n(!1),i.current=0))},l=async e=>{if(e.preventDefault(),e.stopPropagation(),i.current=0,n(!1),!e.dataTransfer)return;let a=Array.from(e.dataTransfer.files),r=a.filter(e=>eE.includes(e.type)),l=a.filter(e=>!eE.includes(e.type)),d=r.filter(e=>o(e,t)),c=r.filter(e=>!o(e,t));l.length>0&&ee.oR.error("You have uploaded invalid file type. Please upload a JPEG, PNG, GIF, WEBP image or a PDF."),d.length>0&&ee.oR.error("Duplicate file(s) detected: ".concat(d.map(e=>e.name).join(", "),". Each file can only be uploaded once per message."));let m=c.length?await Promise.all(c.map(eA)):[];s(e=>[...e,...m])},d=e=>{i.current=0,n(!1)};window.addEventListener("dragenter",e),window.addEventListener("dragleave",r),window.addEventListener("drop",l),window.addEventListener("dragend",d);let c=e=>{e.preventDefault(),e.stopPropagation()};window.addEventListener("dragover",c);let m=e=>{e.preventDefault(),e.stopPropagation(),n(!0)},x=e=>{e.preventDefault(),e.stopPropagation(),n(!0)},u=e=>{e.preventDefault(),e.stopPropagation(),n(!1)},g=a.current;return g.addEventListener("dragover",m),g.addEventListener("dragenter",x),g.addEventListener("dragleave",u),()=>{g.removeEventListener("dragover",m),g.removeEventListener("dragenter",x),g.removeEventListener("dragleave",u),window.removeEventListener("dragenter",e),window.removeEventListener("dragleave",r),window.removeEventListener("drop",l),window.removeEventListener("dragend",d),window.removeEventListener("dragover",c),i.current=0}},[t]);let c=async e=>{let a=e.clipboardData.items;if(!a)return;let r=[];for(let e=0;eeE.includes(e.type)),n=r.filter(e=>!eE.includes(e.type)),i=e=>"application/pdf"===e.type?t.some(t=>{var s;return"file"===t.type&&"application/pdf"===t.mime_type&&(null==(s=t.metadata)?void 0:s.filename)===e.name}):!!eE.includes(e.type)&&t.some(t=>{var s;return"image"===t.type&&(null==(s=t.metadata)?void 0:s.name)===e.name&&t.mime_type===e.type}),o=l.filter(i),d=l.filter(e=>!i(e));if(n.length>0&&ee.oR.error("You have pasted an invalid file type. Please paste a JPEG, PNG, GIF, WEBP image or a PDF."),o.length>0&&ee.oR.error("Duplicate file(s) detected: ".concat(o.map(e=>e.name).join(", "),". Each file can only be uploaded once per message.")),d.length>0){let e=await Promise.all(d.map(eA));s(t=>[...t,...e])}};return{contentBlocks:t,setContentBlocks:s,handleFileUpload:d,dropRef:a,removeBlock:e=>{s(t=>t.filter((t,s)=>s!==e))},resetBlocks:()=>s([]),dragOver:l,handlePaste:c}}(),[P,T]=(0,r.useState)(!1),z=ef("(min-width: 1024px)"),R=(0,i.j2)(),_=R.messages,G=R.isStreaming,{setCurrentThreadId:O,agentList:J,selectedAgent:q,setSelectedAgent:B,isAgentsLoading:$,mode:I,setMode:M,graphList:H,selectedGraph:W,setSelectedGraph:K,isGraphsLoading:V,isLocked:Y}=(0,o.B)();(0,r.useEffect)(()=>{O(x)},[x,O]),(0,r.useRef)(void 0);let Q=e=>{u(e),O(e),m(),s({})},X=(0,r.useRef)(0);(0,r.useEffect)(()=>{_.length!==X.current&&(null==_?void 0:_.length)&&"assistant"===_[_.length-1].message.messageType&&T(!0),X.current=_.length},[_]);let et=async e=>{if(e.preventDefault(),0===b.trim().length&&0===v.length||G)return;T(!1);let t=b.trim();if(v.length>0){let e=v.filter(e=>"text"===e.type).map(e=>e.text).join("\n");t=t?"".concat(t,"\n").concat(e):e}t&&(await R.sendMessage(t),j(""),y([]))},es=!!x||!!_.length,ea=1===_.length&&(null==(e=_[0].message.metadata)?void 0:e.isPlaceholder)===!0;return(0,a.jsxs)("div",{className:"flex h-screen w-full overflow-hidden",children:[(0,a.jsx)("div",{className:"relative hidden lg:flex",children:(0,a.jsx)(l.P.div,{className:"absolute z-20 h-full overflow-hidden border-r bg-white",style:{width:300},animate:{x:g?0:-300},initial:{x:-300},transition:z?{type:"spring",stiffness:300,damping:30}:{duration:0},children:(0,a.jsx)("div",{className:"relative h-full",style:{width:300},children:(0,a.jsx)(ev,{})})})}),(0,a.jsxs)("div",{className:(0,n.cn)("grid w-full grid-cols-[1fr_0fr] transition-all duration-500",c&&"grid-cols-[3fr_2fr]"),children:[(0,a.jsxs)(l.P.div,{className:(0,n.cn)("relative flex min-w-0 flex-1 flex-col overflow-hidden",!es&&"grid-rows-[1fr]"),layout:z,animate:{marginLeft:g?300*!!z:0,width:g&&z?"calc(100% - 300px)":"100%"},transition:z?{type:"spring",stiffness:300,damping:30}:{duration:0},children:[!es&&"graph"===I&&W&&!Y&&(0,a.jsx)("div",{className:"absolute top-14 right-4 left-4 z-0",children:(0,a.jsx)(eO,{graphName:W,className:"max-h-48"})}),!es&&(0,a.jsxs)("div",{className:"absolute top-0 left-0 z-10 flex w-full items-center justify-between gap-3 p-2 pl-4",children:[(0,a.jsx)("div",{children:(!g||!z)&&(0,a.jsx)(d.$,{className:"hover:bg-gray-100",variant:"ghost",onClick:()=>h(e=>!e),children:g?(0,a.jsx)(eo.A,{className:"size-5"}):(0,a.jsx)(ed.A,{className:"size-5"})})}),(0,a.jsxs)("div",{className:"absolute top-2 right-4 flex items-center gap-3",children:[Y?(0,a.jsx)(en(),{href:"/index.html",children:(0,a.jsxs)(d.$,{variant:"ghost",size:"sm",children:[(0,a.jsx)(ec.A,{className:"mr-2 h-4 w-4"}),"Back"]})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e$,{mode:I,setMode:M,graphList:H,isGraphsLoading:V}),"agent"===I&&(0,a.jsx)(eI,{agentList:J,selectedAgent:q,setSelectedAgent:B,isAgentsLoading:$}),"graph"===I&&(0,a.jsx)(eM,{graphList:H,selectedGraph:W,setSelectedGraph:K,isGraphsLoading:V})]}),(0,a.jsx)(eR.G,{}),(0,a.jsx)(eB,{})]})]}),es&&(0,a.jsxs)("div",{className:"relative z-10 flex items-center justify-between gap-3 p-2",children:[(0,a.jsxs)("div",{className:"relative flex items-center justify-start gap-2",children:[(0,a.jsx)("div",{className:"absolute left-0 z-10",children:(!g||!z)&&(0,a.jsx)(d.$,{className:"hover:bg-gray-100",variant:"ghost",onClick:()=>h(e=>!e),children:g?(0,a.jsx)(eo.A,{className:"size-5"}):(0,a.jsx)(ed.A,{className:"size-5"})})}),Y?(0,a.jsxs)(en(),{href:"/index.html",className:"flex items-center gap-2",children:[(0,a.jsx)(ec.A,{className:"text-muted-foreground h-5 w-5"}),(0,a.jsxs)("span",{className:"text-xl font-semibold tracking-tight",children:[(0,a.jsx)("span",{className:"text-green-600",children:"Spring AI Alibaba"})," ","\xb7 ",q]})]}):(0,a.jsx)(l.P.button,{className:"flex cursor-pointer items-center gap-2",onClick:()=>Q(null),animate:{marginLeft:48*!g},transition:{type:"spring",stiffness:300,damping:30},children:(0,a.jsxs)("span",{className:"text-xl font-semibold tracking-tight",children:[(0,a.jsx)("span",{className:"text-green-600",children:"Spring AI Alibaba"})," ","Agent Chat"]})})]}),(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[Y?(0,a.jsx)(en(),{href:"/index.html",children:(0,a.jsxs)(d.$,{variant:"ghost",size:"sm",children:[(0,a.jsx)(ec.A,{className:"mr-2 h-4 w-4"}),"Back"]})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e$,{mode:I,setMode:M,graphList:H,isGraphsLoading:V}),"agent"===I&&(0,a.jsx)(eI,{agentList:J,selectedAgent:q,setSelectedAgent:B,isAgentsLoading:$}),"graph"===I&&(0,a.jsx)(eM,{graphList:H,selectedGraph:W,setSelectedGraph:K,isGraphsLoading:V})]}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(eR.G,{}),(0,a.jsx)(eB,{})]}),(0,a.jsx)(E,{size:"lg",className:"p-4",tooltip:"New thread",variant:"ghost",onClick:()=>{Q(null)},children:(0,a.jsx)(em.A,{className:"size-5"})})]}),(0,a.jsx)("div",{className:"from-background to-background/0 absolute inset-x-0 top-full h-5 bg-gradient-to-b"})]}),(0,a.jsx)(eg.z,{className:"relative flex-1 overflow-hidden",children:(0,a.jsx)(eJ,{className:(0,n.cn)("absolute inset-0 overflow-y-scroll px-4 [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-gray-300 [&::-webkit-scrollbar-track]:bg-transparent",!es&&"mt-[25vh] flex flex-col items-stretch",es&&"grid grid-rows-[1fr_auto]"),contentClassName:"pt-8 pb-16 max-w-3xl mx-auto flex flex-col gap-4 w-full",content:(0,a.jsxs)(a.Fragment,{children:[_.filter(e=>{var t;return!(null==(t=e.id)?void 0:t.startsWith("do-not-render-"))}).map((e,t)=>{let s=e.message.messageType,r=e.id||"".concat(s,"-").concat(t);if(p&&("tool-request"===s||"tool-confirm"===s||"tool"===s))return null;switch(s){case"user":return(0,a.jsx)(F,{message:e},r);case"assistant":return(0,a.jsx)(L,{message:e},r);case"tool-request":return(0,a.jsx)(U,{message:e},r);case"tool-confirm":return(0,a.jsx)(er,{message:e},r);case"tool":return(0,a.jsx)(Z,{message:e},r);default:return null}}),G&&!P&&(0,a.jsx)(D,{})]}),footer:(0,a.jsxs)("div",{className:"sticky bottom-0 flex flex-col items-center gap-8 bg-white",children:[!es&&(0,a.jsx)("div",{className:"flex items-center gap-3",children:(0,a.jsxs)("h1",{className:"text-2xl font-semibold tracking-tight",children:[(0,a.jsx)("span",{className:"text-green-600 italic",children:"Spring AI Alibaba"})," ","Agent Chat"]})}),(0,a.jsx)(eq,{className:"animate-in fade-in-0 zoom-in-95 absolute bottom-full left-1/2 mb-4 -translate-x-1/2"}),(0,a.jsx)("div",{ref:w,className:(0,n.cn)("bg-muted relative z-10 mx-auto mb-8 w-full max-w-3xl rounded-2xl shadow-xs transition-all",C?"border-primary border-2 border-dotted":"border border-solid"),children:(0,a.jsxs)("form",{onSubmit:et,className:"mx-auto grid max-w-3xl grid-rows-[1fr_auto] gap-2",children:[(0,a.jsx)(ez,{blocks:v,onRemove:k}),(0,a.jsx)("textarea",{value:b,onChange:e=>j(e.target.value),onPaste:S,onKeyDown:e=>{if("Enter"===e.key&&!e.shiftKey&&!e.metaKey&&!e.nativeEvent.isComposing){e.preventDefault();let t=e.target,s=null==t?void 0:t.closest("form");null==s||s.requestSubmit()}},placeholder:ea?"Please create a new thread to start chatting...":"Type your message...",disabled:ea,className:(0,n.cn)("field-sizing-content resize-none border-none bg-transparent p-3.5 pb-0 shadow-none ring-0 outline-none focus:ring-0 focus:outline-none",ea&&"cursor-not-allowed opacity-50")}),(0,a.jsxs)("div",{className:"flex items-center gap-6 p-2 pt-4",children:[(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(ew,{id:"render-tool-calls",checked:null!=p&&p,onCheckedChange:f}),(0,a.jsx)(ey.J,{htmlFor:"render-tool-calls",className:"text-sm text-gray-600",children:"Hide Tool Calls"})]})}),(0,a.jsxs)("div",{className:"flex cursor-not-allowed items-center gap-2 opacity-50",children:[(0,a.jsx)(em.A,{className:"size-5 text-gray-400"}),(0,a.jsx)("span",{className:"text-sm text-gray-400",children:"Upload PDF or Image"}),(0,a.jsx)("span",{className:"text-xs text-gray-400 italic",children:"(Coming Soon)"})]}),(0,a.jsx)(d.$,{type:"submit",className:"ml-auto shadow-md transition-all",disabled:G||!b.trim()&&0===v.length,children:"Send"})]})]})})]})})})]}),(0,a.jsx)("div",{className:"relative flex flex-col border-l",children:(0,a.jsxs)("div",{className:"absolute inset-0 flex min-w-[30vw] flex-col",children:[(0,a.jsxs)("div",{className:"grid grid-cols-[1fr_auto] border-b p-4",children:[(0,a.jsx)(eF,{className:"truncate overflow-hidden"}),(0,a.jsx)("button",{onClick:m,className:"cursor-pointer",children:(0,a.jsx)(ex.A,{className:"size-5"})})]}),(0,a.jsx)(eD,{className:"relative flex-grow"})]})})]})]})}var eW=s(7305);function eZ(e){let{agentName:t}=e;return t?(0,a.jsxs)(r.Suspense,{fallback:(0,a.jsx)("div",{children:"Loading..."}),children:[(0,a.jsx)(eW.l,{}),(0,a.jsx)(o.e,{initialLock:{mode:"agent",agent:t},children:(0,a.jsx)(i.KW,{children:(0,a.jsx)(e_,{children:(0,a.jsx)(eH,{})})})})]}):(0,a.jsx)("div",{className:"flex min-h-screen items-center justify-center",children:(0,a.jsx)("p",{className:"text-muted-foreground",children:"Invalid agent"})})}},23572:(e,t,s)=>{"use strict";s.d(t,{BT:()=>o,Wu:()=>d,ZB:()=>i,Zp:()=>l,aR:()=>n});var a=s(97601);s(61221);var r=s(20925);function l(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card",className:(0,r.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...s})}function n(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("flex flex-col gap-1.5 px-6",t),...s})}function i(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("leading-none font-semibold",t),...s})}function o(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-muted-foreground text-sm",t),...s})}function d(e){let{className:t,...s}=e;return(0,a.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-6",t),...s})}},57653:(e,t,s)=>{"use strict";s.d(t,{Q:()=>r});var a=s(97601);let r=e=>{let{width:t="100%",height:s="100%"}=e;return(0,a.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:t,height:s,xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("title",{children:"GitHub"}),(0,a.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]})}},92117:()=>{}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4835.065aebe1f4c46cd1.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4835.065aebe1f4c46cd1.js deleted file mode 100644 index 1d74f09c9..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4835.065aebe1f4c46cd1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4835],{34835:(e,t,i)=>{i.d(t,{captureNodeSizes:()=>u});var n=i(91158);function r(){if("undefined"!=typeof globalThis)return globalThis}function a(){return"undefined"==typeof location?"browser-dev":`${location.pathname}${location.search}`}function o(e,t){let i=r();if(!i)return;let n=t.node(),a=(n&&"ownerSVGElement"in n?n.ownerSVGElement:null)??n,o=a?.id??"(unknown)";i.mermaidCapturedSizes??=[];let u={svgId:o,sizes:e};i.mermaidCapturedSizes.push(u),i.mermaidLastCapturedSizes=u}function u(e,t){let i=[];for(let e of t.nodes)e.isGroup||i.push({id:e.id,width:e.width??0,height:e.height??0});0!==i.length&&o({metadata:{captureVersion:1,capturedAt:new Date().toISOString(),capturedFrom:a()},nodes:i},e)}(0,n.K)(r,"getCaptureGlobal"),(0,n.K)(function(){return!!r()?.mermaidCaptureSizes},"shouldCaptureSizes"),(0,n.K)(a,"capturedFromLocation"),(0,n.K)(o,"emitCapturedSizes"),(0,n.K)(u,"captureNodeSizes")}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4891.2f8cc211cb3597d9.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4891.2f8cc211cb3597d9.js deleted file mode 100644 index f9fab2579..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4891.2f8cc211cb3597d9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4891],{94891:(e,c,s)=>{s.d(c,{createPacketServices:()=>a.$});var a=s(32045);s(9448)}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/494.575dafa6590b2ff0.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/494.575dafa6590b2ff0.js deleted file mode 100644 index ba8791928..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/494.575dafa6590b2ff0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[494],{25256:(e,s,c)=>{c.d(s,{createPieServices:()=>a.f});var a=c(55267);c(9448)}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4954bb62.0b028c07faeba5d6.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4954bb62.0b028c07faeba5d6.js deleted file mode 100644 index 5fdde51eb..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/4954bb62.0b028c07faeba5d6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2561],{69040:(e,t,n)=>{n.r(t),n.d(t,{render:()=>nd});var r=n(70297);n(48734);var o=n(11232);n(13031),n(69981),n(5663),n(82142),n(29278),n(13892),n(69301);var l=n(98999),i=n(91158),a=n(87889).Buffer;function s(e){let t=[];for(let n=0;n=.999999||h<=1e-6||h>=.999999?null:{point:{x:e.x+u*o,y:e.y+u*l},tA:u,tB:h}}function d(e){return Math.abs(e.b.x-e.a.x)>=Math.abs(e.b.y-e.a.y)}function u(e){let t=[];for(let n=0;n=Math.abs(n)?+(t>=0):+(n>=0)}function p(e,t){if(e.length<2)return e.map(e=>({...e}));let n=e.map(e=>({...e})),r=t.arrowTypeStart&&o.hq[t.arrowTypeStart];if(r){let t=e[0],o=e[1],l=Math.atan2(o.y-t.y,o.x-t.x);n[0].x=t.x+r*Math.cos(l),n[0].y=t.y+r*Math.sin(l)}let l=t.arrowTypeEnd&&o.hq[t.arrowTypeEnd];if(l){let t=e.length,r=e[t-2],o=e[t-1],i=Math.atan2(o.y-r.y,o.x-r.x);n[t-1].x=o.x-l*Math.cos(i),n[t-1].y=o.y-l*Math.sin(i)}return n}function x(e,t,n,r,o){let l=e.point.x,i=e.point.y,a={x:l-t*e.r,y:i-n*e.r},s={x:l+t*e.r,y:i+n*e.r},f=[`L${g(a)}`];return"arc"===o?f.push(`A${h(e.r)},${h(e.r)} 0 0 ${r} ${g(s)}`):f.push(`M${g(s)}`),f}function m(e,t,n,r){let o=t.x-e.x,l=t.y-e.y,i=n.x-t.x,a=n.y-t.y,s=Math.hypot(o,l),f=Math.hypot(i,a);if(s<1e-5||f<1e-5)return null;let d=o/s,u=l/s,h=i/f,g=a/f,c=Math.acos(Math.max(-1,Math.min(1,d*h+u*g)));if(c<1e-5||1e-5>Math.abs(Math.PI-c))return null;let p=Math.min(r/Math.sin(c/2),s/2,f/2);return{startX:t.x-d*p,startY:t.y-u*p,endX:t.x+h*p,endY:t.y+g*p,ctrlX:t.x,ctrlY:t.y,cutLen:p}}function y(e,t,n){let r=e.points;if(r.length<2)return"";let o=p(r,e),l="rounded"===e.curve,i=s(o),a=new Map;for(let e of t){let t=i[e.segIndex];if(!t)continue;let r=Math.hypot(t.b.x-t.a.x,t.b.y-t.a.y),o=a.get(e.segIndex)??[];o.push({t:e.t,point:e.point,d:e.t*r,r:n.jumpRadius}),a.set(e.segIndex,o)}let f=[`M${g(o[0])}`];for(let e=0;e0){let t=m(o[e-1],o[e],o[e+1]??o[e],5);t&&(p=t.cutLen)}let y=r,b=null;l&&ee.t-t.t);for(let e of M)e.r=Math.min(e.r,e.d-p,y-e.d);for(let e=0;et){let n=t/2;M[e].r=Math.min(M[e].r,n),M[e+1].r=Math.min(M[e+1].r,n)}}for(let e of M)e.r<.001||f.push(...x(e,s,d,u,n.jumpStyle));l&&b?(f.push(`L${h(b.startX)},${h(b.startY)}`),f.push(`Q${h(b.ctrlX)},${h(b.ctrlY)} ${h(b.endX)},${h(b.endY)}`)):f.push(`L${g(t.b)}`)}return f.join(" ")}function b(e){return/^[\d\s+,.LMelm-]*$/.test(e)}function M(e){return!e||"linear"===e||"rounded"===e||"step"===e||"stepBefore"===e||"stepAfter"===e}function K(e){if(!e)return null;try{let t="function"==typeof atob?atob(e):a.from(e,"base64").toString(),n=JSON.parse(t);if(!Array.isArray(n))return null;let r=[];for(let e of n)e&&"number"==typeof e.x&&"number"==typeof e.y&&r.push({x:e.x,y:e.y});return r.length>=2?r:null}catch{return null}}function I(e,t,n){if(!n.enabled)return;let r=e.node();if(!r)return;let o=new Map;for(let e of t)o.set(e.id,e);let l=[],i=new Map;for(let e of t){let t="undefined"!=typeof CSS&&CSS.escape?CSS.escape(e.id):e.id,n=r.querySelector(`path[data-id="${t}"]`);if(!n)continue;i.set(e.id,n);let o=K(n.getAttribute("data-points"))??e.points;l.push({...e,points:o})}let a=u(l);if(0===a.length)return;let s=new Map;for(let e of a){let t=s.get(e.jumpEdgeId)??[];t.push(e),s.set(e.jumpEdgeId,t)}for(let e of l){let t=s.get(e.id);if(!t||0===t.length)continue;let r=o.get(e.id),l=r?.curve;if(void 0!==l&&!M(l))continue;let a=i.get(e.id);if(!a||void 0===l&&!b(a.getAttribute("d")??""))continue;let f=a.getAttribute("style")??"",d=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(f),u=d?Number.parseFloat(d[1]):null,h=d?Number.parseFloat(d[2]):null,g=y(e,t,n);if(a.setAttribute("d",g),null!==u&&null!==h&&"function"==typeof a.getTotalLength){let e=Math.max(0,a.getTotalLength()-u-h),t=`0 ${u} ${e} ${h}`,n=f.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${t};`).replace(/;\s*;+/g,";");a.setAttribute("style",n)}}}function S(e,{measure:t}){let n=e.config?.swimlane?.lineHops;if(!1===n)return;let r=e.edges.filter(e=>Array.isArray(e.points)&&e.points.length>=2).map(e=>({id:e.id,points:e.points,curve:e.curve,arrowTypeStart:e.arrowTypeStart,arrowTypeEnd:e.arrowTypeEnd}));I(t.groups.edgePaths,r,{enabled:!0,jumpRadius:6,jumpStyle:"gap"===n?"gap":"arc"})}(0,i.K)(s,"buildSegmentList"),(0,i.K)(f,"segmentIntersection"),(0,i.K)(d,"isHorizontalSeg"),(0,i.K)(u,"findEdgeIntersections"),(0,i.K)(h,"fmt"),(0,i.K)(g,"pointToString"),(0,i.K)(c,"getArcSweepFlag"),(0,i.K)(p,"applyMarkerOffsets"),(0,i.K)(x,"emitJump"),(0,i.K)(m,"computeRoundedCorner"),(0,i.K)(y,"rewriteEdgePath"),(0,i.K)(b,"isStraightPath"),(0,i.K)(M,"curveSupportsLineHops"),(0,i.K)(K,"decodeDataPoints"),(0,i.K)(I,"applyLineJumpsToSvg"),(0,i.K)(S,"applySwimlaneLineJumps");var w="__swimlane_default__";function v(e){return Math.max(e.padding??20,20)}function C(e){let{x:t,y:n,width:r,height:o}=e,l=e.swimlaneContentTop;if("number"!=typeof t||"number"!=typeof n||"number"!=typeof r||"number"!=typeof o||"number"!=typeof l||!Number.isFinite(t)||!Number.isFinite(n)||!Number.isFinite(r)||!Number.isFinite(o)||!Number.isFinite(l)||r<=0||o<=0)return void delete e.groupTitleRect;let i=n-o/2,a=Math.min(21,Math.max(0,Math.min(l,n+o/2)-i)),s=i+a;if(s<=i)return void delete e.groupTitleRect;e.groupTitleRect={left:t-r/2,right:t+r/2,top:i,bottom:s}}function L(e){let t=e.direction,n=e.nodes??=[];for(let n of e.nodes??[])n.isGroup&&!n.parentId&&(n.shape="swimlane",t&&(n.direction=t));let r=n.filter(e=>!e.isGroup&&!e.parentId);if(0===r.length)return;let o=n.find(e=>e.id===w);for(let e of(o?o.isGroup&&(o.shape="swimlane",t&&(o.direction=t)):(o={id:w,label:"",isGroup:!0,shape:"swimlane",padding:20,...t?{direction:t}:{}},n.push(o)),r))e.parentId=w}function k(e){let t=new Map;for(let n of e.nodes??[])t.set(n.id,n);let n=[];for(let t of e.edges??[]){let e="string"==typeof t.start?t.start:void 0,r="string"==typeof t.end?t.end:void 0;e&&r&&(t.labelNodeId||n.push({id:t.id,src:e,dst:r,ref:t}))}let r=e.nodes??[],o=r.filter(e=>e.isGroup),l=r.filter(e=>!e.isGroup);return{nodes:[...[...o].reverse(),...l].map(e=>e.id),edges:n,layout:e,nodeById:t}}function T(e,t,n,r){let{layout:o}=e,l=e.nodeById,i=r?.layerGap??100,a=r?.nodeGap??40,s=0;for(let e of t.layers){let t=0;for(let r of e){let e=l.get(r);if(!e){t++;continue}e.layer=s,e.order=t;let o=n.x[r]??t*a,f=n.y[r]??s*i;e.x=o,e.y=f,t++}s++}let f=o.nodes??[],d=new Map,u=[];for(let e of f){if(!e?.isGroup)continue;e.parentId||u.push(e);let t=f.filter(t=>t.parentId===e.id),r=1/0,o=-1/0,l=1/0,i=-1/0;for(let e of t){let t=e.x??n.x[e.id],a=e.y??n.y[e.id],s=e.width??0,f=e.height??0;null!=t&&null!=a&&(r=Math.min(r,t-s/2),o=Math.max(o,t+s/2),l=Math.min(l,a-f/2),i=Math.max(i,a+f/2))}if(r===1/0||l===1/0)e.x=e.x??0,e.y=e.y??0,e.width=e.width??0,e.height=e.height??0;else{let t=e.padding??20,n=Math.max(0,o-r)+(e.parentId?t:2*v(e)),a=Math.max(0,i-l)+t,s=(l+i)/2;e.x=(r+o)/2,e.y=s,e.width=n,e.height=a,d.set(e.id,{minX:r,maxX:o,minY:l,maxY:i})}}if(u.length>0&&d.size>0){let e=1/0,t=-1/0,n=0;for(let r of u){let o=r.padding??20;o>n&&(n=o);let l=d.get(r.id);l&&(e=Math.min(e,l.minY),t=Math.max(t,l.maxY))}if(e!==1/0&&t!==-1/0){let r=Math.max(0,t-e)+2*Math.max(n,36),o=(e+t)/2;for(let t of u)t.y=o,t.height=r,t.swimlaneContentTop=e;let l=[...u].sort((e,t)=>(e.x??0)-(t.x??0)),i=[],a=[],s=[];for(let e of l){let t=d.get(e.id);if(!t)continue;let n=Math.max(0,t.maxX-t.minX)+2*v(e),r=(t.minX+t.maxX)/2;i.push(e.id),a.push(r),s.push(n)}let f=i.length;if(f>0){let e=new Map;if(1===f)e.set(i[0],s[0]);else{let t=[];for(let e=0;e0&&o>0?{cx:t,cy:n,rect:W(t,n,r,o)}:void 0}function R(e){if(e.isGroup)return;let t=O(e);if(t)return{id:String(e.id??""),cx:t.cx,cy:t.cy,rect:t.rect}}function E(e,t,n=.001){return Math.abs(e.x-t.x)n}function B(e,t,n=.001){return F(e,t,n)&&Math.abs(e.y-t.y)>n}function X(e,t,n,r){return Math.max(0,Math.min(Math.max(e,t),Math.max(n,r))-Math.max(Math.min(e,t),Math.min(n,r)))}function Y(e,t,n=.001){return e.horizontal&&t.horizontal&&N(e.a,t.a,n)?X(e.a.x,e.b.x,t.a.x,t.b.x):e.vertical&&t.vertical&&F(e.a,t.a,n)?X(e.a.y,e.b.y,t.a.y,t.b.y):0}function z(e,t=.001){let n=[];for(let r=0;r0?n[n.length-1]:void 0;e&&E(e,r,t)||n.push({x:r.x,y:r.y})}return n}function D(e,t=.001){if(!e||4!==e.length)return;let[n,r,o,l]=e;return A(n,r,t)&&B(r,o,t)&&A(o,l,t)?{kind:"HVH",p0:n,p1:r,p2:o,p3:l}:B(n,r,t)&&A(r,o,t)&&B(o,l,t)?{kind:"VHV",p0:n,p1:r,p2:o,p3:l}:void 0}function _(e,t,n,r=0){let o=Math.min(e.x,t.x),l=Math.max(e.x,t.x),i=Math.min(e.y,t.y),a=Math.max(e.y,t.y);return l>n.left-r&&on.top-r&&it.left+n&&e.xt.top+n&&e.y=t.right&&e.top<=t.top&&e.bottom>=t.bottom}function V(e,t){return e.leftt.left&&e.topt.top}function U(e,t){return{left:e.left-t,right:e.right+t,top:e.top-t,bottom:e.bottom+t}}function W(e,t,n,r){return{left:e-n/2,right:e+n/2,top:t-r/2,bottom:t+r/2}}function q(e){return O(e)?.rect}function J(e,t){switch(t){case"top":return{x:e.cx,y:e.rect.top};case"bottom":return{x:e.cx,y:e.rect.bottom};case"left":return{x:e.rect.left,y:e.cy};case"right":return{x:e.rect.right,y:e.cy}}}function Z(e,t,n,r,o,l=.001){let i="left"===t||"right"===t,a="left"===r||"right"===r;if(i&&a){if("right"===t&&"left"===r&&e.xn.x){if(N(e,n,l))return[e,n];let t=(e.x+n.x)/2;return[e,{x:t,y:e.y},{x:t,y:n.y},n]}if(t===r){if(N(e,n,l))return;let r="left"===t?Math.min(e.x,n.x)-o:Math.max(e.x,n.x)+o;return[e,{x:r,y:e.y},{x:r,y:n.y},n]}return}if(!i&&!a){if(t===r){if(F(e,n,l))return;let r="top"===t?Math.min(e.y,n.y)-o:Math.max(e.y,n.y)+o;return[e,{x:e.x,y:r},{x:n.x,y:r},n]}if(!("bottom"===t&&"top"===r&&e.yn.y))return;if(F(e,n,l))return[e,n];let i=(e.y+n.y)/2;return[e,{x:e.x,y:i},{x:n.x,y:i},n]}if(i&&!a){let o="right"===t&&n.x>e.x||"left"===t&&n.xn.y;return o&&l?[e,{x:n.x,y:e.y},n]:void 0}let s="bottom"===t&&n.y>e.y||"top"===t&&n.yn.x;return s&&f?[e,{x:e.x,y:n.y},n]:void 0}function Q(e,t,n,r){return"left"===t||"right"===t?[e,{x:r,y:e.y},{x:r,y:n.y},n]:[e,{x:e.x,y:r},{x:n.x,y:r},n]}function ee(e){let t=new Map,n=[];for(let r of e){if(r.isEdgeLabel)continue;let e=R(r);e&&(t.set(e.id,e),n.push({id:e.id,rect:e.rect}))}return{nodeInfoById:t,realNodeRects:n}}function et(e){let t=[],n=[];for(let r of e){let e=R(r);if(!e)continue;let o={id:e.id,rect:e.rect};r.isEdgeLabel?n.push(o):t.push(o)}return{realNodeRects:t,labelNodeRects:n}}function en(e,{includeEdgeLabels:t=!0}={}){let n=[];for(let r of e){if(r.isGroup||!t&&r.isEdgeLabel)continue;let e=r.x??0,o=r.y??0,l=r.width??0,i=r.height??0;n.push({nodeId:r.id,...W(e,o,l,i)})}return n}function er(e,t,n=.001){let r=e.start,o=e.end;if(!r||!o)return;let l=t.get(r),i=t.get(o);if(l&&i)return{srcId:r,dstId:o,srcInfo:l,dstInfo:i,collinearX:Math.abs(l.cx-i.cx)c||hm)return!1;let y=Math.abs(p-d.a.x)o:!!(l&&a&&N(e,n,o))&&X(e.x,t.x,n.x,r.x)>o}function ea(e,t,n,r,{epsilon:o=.001,skipDegenerateOther:l=!1}={}){for(let i of n){if(i===r||i.isLayoutOnly)continue;let n=i.points;if(n&&!(n.length<2))for(let r=0;rh+o&&cp+o&&ur+.001&&e=2?t[t.length-2]:void 0,n=e&&F(e,r)?{x:r.x,y:o.y}:{x:o.x,y:r.y};t.push(n)}t.push(o)}let n=[];for(let e of t){let t=n[n.length-1];t&&E(t,e)||n.push(e)}return n}function eg(e){if(e.length<3)return e;let t=[...e];for(let e=0;e<32;e++){let e=eu(t);if(t=e.points,!e.changed)break}return t}function ec(e,t,n){if(e.isLayoutOnly||!e.points||e.points.length=0&&o=e.length)return e;let l=o-r;if(l<0||l>=e.length)return e;let i=ep(e[o],e[l],t);return n?[i,...e.slice(o)]:[...e.slice(0,o+1),i]}function em(e,t){for(let n of e){let e=ec(n,t,2);if(!e)continue;let r=[...e.points];e.srcRect&&(r=ex(r,e.srcRect,!0)),e.dstRect&&(r=ex(r,e.dstRect,!1)),r=ek(r=eg(eh(r)),e.srcRect,e.dstRect),e.edge.points=eg(eh(r))}}function ey(e,t,n,r=!1){if(N(e,t,.001)){if(t.yn.bottom+.001)return t;if(r){if(e.xn.right+.001)return{x:n.right,y:e.y}}return{x:Math.abs(t.x-n.left)<=Math.abs(t.x-n.right)?n.left:n.right,y:e.y}}if(F(e,t,.001)){if(t.xn.right+.001)return t;if(r){if(e.yn.bottom+.001)return{x:e.x,y:n.bottom}}let o=Math.abs(t.y-n.top)<=Math.abs(t.y-n.bottom);return{x:e.x,y:o?n.top:n.bottom}}return t}function eb(e,t,n){let r=e[t];for(let o=t+n;o>=0&&oe.lo)),n=Math.min(...e.map(e=>e.hi));if(!(t>n))return{lo:t,hi:n}}function eS(e,t){return"left"===t||"right"===t?eM(e.top,e.bottom):eM(e.left,e.right)}function ew(e,t,n){let r=e.y>=n.top-.001&&e.y<=n.bottom+.001,o=e.x>=n.left-.001&&e.x<=n.right+.001;if(N(e,t,.001)&&r){if(.001>Math.abs(e.x-n.left))return"left";if(.001>Math.abs(e.x-n.right))return"right"}if(F(e,t,.001)&&o){if(.001>Math.abs(e.y-n.top))return"top";if(.001>Math.abs(e.y-n.bottom))return"bottom"}}function ev(e){return"left"===e||"right"===e}function eC(e,t,n,r,o){let l=[],i=n?ew(e,t,n):void 0,a=r?ew(t,e,r):void 0;return n&&i&&ev(i)===o&&l.push(eS(n,i)),r&&a&&ev(a)===o&&l.push(eS(r,a)),l.length>0?eI(l):void 0}function eL(e,t,n,r,o){let l=eC(e,t,n,r,o);if(!l)return;let i=o?e.y:e.x,a=Math.min(l.hi,Math.max(l.lo,i));if(!(.001>Math.abs(a-i)))return o?[{x:e.x,y:a},{x:t.x,y:a}]:[{x:a,y:e.y},{x:a,y:t.y}]}function ek(e,t,n){if(2!==e.length)return e;let[r,o]=e;return N(r,o,.001)?eL(r,o,t,n,!0)??e:F(r,o,.001)?eL(r,o,t,n,!1)??e:e}function eT(e,t,n){return ev(n)?{x:e.x,y:eK(e.y,t.top,t.bottom)}:{x:eK(e.x,t.left,t.right),y:e.y}}function e$(e,t,n,r,o,l){let i=e.map(e=>({...e}));for(let a=t;a>=0&&a=n.left-.001&&Math.max(e.x,t.x)<=n.right+.001,o=Math.min(e.y,t.y)>=n.top-.001&&Math.max(e.y,t.y)<=n.bottom+.001;return .001>Math.abs(e.y-n.top)&&.001>Math.abs(t.y-n.top)&&r?"top":.001>Math.abs(e.y-n.bottom)&&.001>Math.abs(t.y-n.bottom)&&r?"bottom":.001>Math.abs(e.x-n.left)&&.001>Math.abs(t.x-n.left)&&o?"left":.001>Math.abs(e.x-n.right)&&.001>Math.abs(t.x-n.right)&&o?"right":void 0}function eE(e,t,n,r){switch(e){case"top":return F(t,n,.001)&&n.yr.bottom+.001;case"left":return N(t,n,.001)&&n.xr.right+.001}}function eF(e,t,n){if(e.length<3)return e;if(n){let n=eR(e[0],e[1],t);return n&&eE(n,e[1],e[2],t)?e.slice(1):e}let r=e.length-1,o=eR(e[r-1],e[r],t);return o&&eE(o,e[r-1],e[r-2],t)?e.slice(0,r):e}function eN(e,t,n){let r=e;if(t){let e=eb(r,0,1);if(e){let n=ey(e,r[0],t);n!==r[0]&&(r=[n,...r.slice(1)])}r=eF(r,t,!0)}if(n){let e=r.length-1,t=eb(r,e,-1);if(t){let o=ey(t,r[e],n,!0);o!==r[e]&&(r=[...r.slice(0,e),o])}r=eF(r,n,!1)}let o=ek(r,t,n);return o!==r||2===r.length?o:(t&&(r=eO(r,t,!0)),n&&(r=eO(r,n,!1)),r)}function eA(e,t){for(let n of e){let e=ec(n,t,2);if(!e)continue;let r=eN(G(e.points,.001),e.srcRect,e.dstRect);if(r.length<3){e.edge.points=r;continue}let o=[r[0],{...r[0]},...r.slice(1,-1),r[r.length-1],{...r[r.length-1]}];e.edge.points=o}}function eB(e){return new Map(e.map(e=>[e.id,e]))}function eX(e,t){let n=e.parentId,r=null;for(;n;){let e=t.get(n);if(!e?.isGroup)break;r=e.id,n=e.parentId}return r}function eY(e,t){let n=0,r=e.parentId;for(;r;){let e=t.get(r);if(!e?.isGroup)break;n++,r=e.parentId}return n}function ez(e){let t=1/0,n=-1/0,r=1/0,o=-1/0;for(let l of e){let e=l.x,i=l.y;if("number"!=typeof e||"number"!=typeof i)continue;let a=l.width??0,s=l.height??0;t=Math.min(t,e-a/2),n=Math.max(n,e+a/2),r=Math.min(r,i-s/2),o=Math.max(o,i+s/2)}return t===1/0||r===1/0?null:{minX:t,maxX:n,minY:r,maxY:o}}function eP(e,t){let n=e.padding??20;e.x=(t.minX+t.maxX)/2,e.y=(t.minY+t.maxY)/2,e.width=Math.max(0,t.maxX-t.minX)+n,e.height=Math.max(0,t.maxY-t.minY)+n}function eG(e){let t=eB(e);for(let n of e.filter(e=>e.isGroup&&e.parentId).sort((e,n)=>eY(n,t)-eY(e,t))){let t=ez(e.filter(e=>e.parentId===n.id));t&&eP(n,t)}}function eD(e,t){let n=e.nodes??[],r=e.edges??[],o=n.filter(e=>!e.isGroup),l=1/0,a=-1/0;for(let e of o){let n=e[t];"number"==typeof n&&(l=Math.min(l,n),a=Math.max(a,n))}if(!Number.isFinite(l)||!Number.isFinite(a))return!1;let s=(0,i.K)(e=>l+a-e,"mirror");for(let e of n){let n=e[t];"number"==typeof n&&(e[t]=s(n));let r=e.groupTitleRect;r&&(e.groupTitleRect="x"===t?{...r,left:s(r.right),right:s(r.left)}:{...r,top:s(r.bottom),bottom:s(r.top)})}for(let e of r)for(let n of e.points??[])n[t]=s(n[t]);return!0}function e_(e){return!(e.nodes??[]).some(e=>!e.isGroup)||eD(e,"y")}function eH(e,t="LR"){let n=e.nodes??[],r=e.edges??[],o=n.filter(e=>!e.isGroup),l=1/0,i=1/0;for(let e of o){let t=e.x??0,n=e.y??0;t0?Math.max(1,f/d):1;for(let e of o){let t=e.x??0,n=((e.y??0)-i)*u+36,r=t-l;e.x=n,e.y=r}for(let e of r)if(e.points)for(let t of e.points){let e=t.x,n=(t.y-i)*u+36,r=e-l;t.x=n,t.y=r}eG(n);let h=n.filter(e=>e.isGroup&&!e.parentId);if(0===h.length)return"RL"===t&&eD(e,"x"),!0;let g=eB(n),c=new Map;for(let e of n){if(e.isGroup)continue;let t=eX(e,g);if(!t)continue;let n=c.get(t)??[];n.push(e),c.set(t,n)}let p=0;for(let e of h){let t=e.padding??0;t>p&&(p=t)}let x=[],m=1/0,y=-1/0;for(let e of h){let t=ez(c.get(e.id)??[]);t&&(m=Math.min(m,t.minX),y=Math.max(y,t.maxX),x.push({lane:e,contentTop:t.minY,contentBottom:t.maxY,centerY:(t.minY+t.maxY)/2}))}if(m===1/0||y===-1/0)return!0;let b=Math.max(0,y-m)+2*Math.max(p,10),M=36+b,K=(m+y)/2-b/2-36,I=K+M/2,S=Math.max(p,36);x.sort((e,t)=>e.centerY-t.centerY);for(let e=0;eh.cy?x.bottom:x.top,t=h.cx+n;if(t<=x.left+1e-6||t>=x.right-1e-6)continue;l={x:t,y:e},i={x:t,y:a.y},f={x:a.x,y:a.y}}else{let e=g.cx>h.cx?x.right:x.left,t=h.cy+n;if(t<=x.top+1e-6||t>=x.bottom-1e-6)continue;l={x:e,y:t},i={x:a.x,y:t},f={x:a.x,y:a.y}}let c=E(l,i,1e-6),p=E(i,f,1e-6);if(c&&p||!c&&eo(l,i,r,[d],1)||!p&&eo(i,f,r,[u],1))continue;let m=!c&&ea(l,i,e,t,{epsilon:1e-6,skipDegenerateOther:!0}),y=!p&&ea(i,f,e,t,{epsilon:1e-6,skipDegenerateOther:!0});if(!m&&!y){o=c?[i,f]:p?[l,i]:[l,i,f];break}}o&&(t.points=o)}}function eU(e,t){let{realNodeRects:n,labelNodeRects:r}=et(t.values());for(let o of e){let l,a;if(o.isLayoutOnly)continue;let s=o.points;if(!s||s.length<4)continue;let f=G(s,.001);if(f.length<4)continue;let d=f.length-1,u=f[d],h=f[d-1],g=f[d-2],c=Math.hypot(u.x-h.x,u.y-h.y);if(c>=10||c<.001)continue;let p=h.x-g.x,x=h.y-g.y;if(.001>Math.hypot(p,x))continue;let m=A(h,u,.001),y=B(h,u,.001),b=A(g,h,.001),M=B(g,h,.001);if(!(m&&M||y&&b))continue;let K=o.end,I=o.start,S=K?t.get(K):void 0;if(!S)continue;let w=S.x??0,v=S.y??0,C=q(S);if(!C)continue;if(M){let e=x<0;l={x:w,y:g.y},a={x:w,y:e?C.bottom:C.top}}else{let e=p>0;l={x:g.x,y:v},a={x:e?C.right:C.left,y:v}}if(eo(l,a,n,K?[K]:[],-2)||eo(l,a,r,[],-2))continue;if(I){let e=t.get(I),n=e?q(e):void 0;if(n&&H(l,n,2))continue}let L=(0,i.K)((e,t)=>`${e.x.toFixed(3)},${e.y.toFixed(3)}|${t.x.toFixed(3)},${t.y.toFixed(3)}`,"ownSegmentKey"),k=new Set;for(let e=0;e{for(let r of e){if(r===o||r.isLayoutOnly)continue;let e=r.points;if(e&&!(e.length<2))for(let r=0;r=0){let e=f[d-3];if(eo(e,l,n,[I,K].filter(e=>!!e),-2)||T(e,l))continue}let $=[...f.slice(0,d-2),l,a];o.points=$;let O=o.labelNodeId;if(O){let e=t.get(O);if(e){let t=e.width??0,n=e.height??0;if(t>0&&n>0){let r,o,l=-1;for(let e=0;e<$.length-1;e++){let i=$[e],a=$[e+1],s=Math.hypot(a.x-i.x,a.y-i.y),f=N(i,a,.001),d=F(i,a,.001);(f&&s>=t+2||d&&s>=n+2)&&s>l&&(l=s,r=(i.x+a.x)/2,o=(i.y+a.y)/2)}void 0!==r&&void 0!==o&&(e.x=r,e.y=o)}}}}}(0,i.K)(eV,"portSwapToLShape"),(0,i.K)(eU,"collapseShortTerminalStub");var eW=(0,i.K)((e,t)=>F(e,t,.001)||N(e,t,.001),"orthogonallyAligned");function eq(e,t){let n=(0,i.K)((e,t)=>{let n=e.x??0,r=e.y??0,o=t.x-n,l=t.y-r,i=(e.width??0)/2,a=(e.height??0)/2;return Math.abs(l)*i>Math.abs(o)*a?(l<0&&(a=-a),{x:n+(0===l?0:a*o/l),y:r+a}):(o<0&&(i=-i),{x:n+i,y:r+(0===o?0:i*l/o)})},"rectIntersect"),r=(0,i.K)((e,r)=>{let o=G(e.points??[]);if(o.length<2)return;let l=r?e.start:e.end,i=l?t.get(l):void 0,a=i?q(i):void 0;if(!i||!l||!a)return;let s=r?o[0]:o[o.length-1],f=r?o[1]:o[o.length-2],d=n(i,s),u=s;return(eW(f,d)&&(u=f),F(d,u,.001))?{edge:e,edgeId:String(e.id??""),nodeId:l,atStart:r,orientation:"V",coord:d.x,min:Math.min(d.y,u.y),max:Math.max(d.y,u.y),boundary:d,railEnd:u,rect:a}:N(d,u,.001)?{edge:e,edgeId:String(e.id??""),nodeId:l,atStart:r,orientation:"H",coord:d.y,min:Math.min(d.x,u.x),max:Math.max(d.x,u.x),boundary:d,railEnd:u,rect:a}:void 0},"terminalLaneFor"),o=(0,i.K)((e,t)=>Math.max(0,Math.min(e.max,t.max)-Math.max(e.min,t.min)),"projectedOverlapLength"),l=(0,i.K)((e,t)=>e.nodeId===t.nodeId&&e.orientation===t.orientation&&("H"===e.orientation?(1>Math.abs(e.boundary.x-e.rect.left)||1>Math.abs(e.boundary.x-e.rect.right))&&F(e.boundary,t.boundary,1):(1>Math.abs(e.boundary.y-e.rect.top)||1>Math.abs(e.boundary.y-e.rect.bottom))&&N(e.boundary,t.boundary,1)),"sameTerminalFace"),a=(0,i.K)((e,t)=>e.nodeId===t.nodeId&&e.orientation===t.orientation&&o(e,t)>=8&&.5>Math.abs(e.coord-t.coord),"exactTerminalLaneConflict"),s=(0,i.K)((e,t)=>{if(e.nodeId!==t.nodeId||e.orientation!==t.orientation||"H"!==e.orientation||e.atStart===t.atStart)return!1;let n=o(e,t);if(n<8)return!1;let r=e.rect.bottom-e.rect.top;return!(n2*r)&&l(e,t)&&16>Math.abs(e.coord-t.coord)},"nearTerminalLaneConflict"),f=(0,i.K)((e,t)=>{let n=G(e.edge.points??[]);if(n.length<2)return;let r="V"===e.orientation?{x:e.boundary.x+t,y:e.boundary.y}:{x:e.boundary.x,y:e.boundary.y+t},o="V"===e.orientation?{x:e.railEnd.x+t,y:e.railEnd.y}:{x:e.railEnd.x,y:e.railEnd.y+t};if(!(0,i.K)(()=>1>Math.abs(e.boundary.y-e.rect.top)||1>Math.abs(e.boundary.y-e.rect.bottom)?N(r,e.boundary,.001)&&r.x>=e.rect.left+1&&r.x<=e.rect.right-1:!!(1>Math.abs(e.boundary.x-e.rect.left)||1>Math.abs(e.boundary.x-e.rect.right))&&F(r,e.boundary,.001)&&r.y>=e.rect.top+1&&r.y<=e.rect.bottom-1,"boundaryStaysOnSameFace")())return;if(e.atStart){let t=n.length>1&&E(n[1],e.railEnd,.001),l=n.slice(t?2:1),i=l[0];if(i&&!eW(i,o))return;return[r,o,...l]}let l=n.length>1&&E(n[n.length-2],e.railEnd,.001),a=n.slice(0,l?-2:-1),s=a[a.length-1];if(!s||eW(s,o))return[...a,o,r]},"shiftedCandidate"),d=(0,i.K)(e=>{let n=e.edge,r=G(n.points??[]);if(2!==r.length)return!1;let o=n.start,l=n.end,i=o?t.get(o):void 0,a=l?t.get(l):void 0;if(!i||!a)return!1;let s=i.x??0,f=i.y??0,d=a.x??0,u=a.y??0,[h,g]=r;return N(h,g,.001)&&1>Math.abs(f-u)&&Math.abs(s-d)>1||F(h,g,.001)&&1>Math.abs(s-d)&&Math.abs(f-u)>1},"laneIsStraightCollinearConnector"),u=[-7,7,-14,14,-21,21];for(let t=0;t<8;t++){let t=e.filter(e=>!e.isLayoutOnly).flatMap(e=>[r(e,!0),r(e,!1)]).filter(e=>!!e),n=!1;for(let e=0;e{let n=d(e),r=d(t);return n!==r?Number(n)-Number(r):Number(!t.atStart)-Number(!e.atStart)})){for(let o of u){let l=f(e,o);if(!l)continue;let i=r({...e.edge,points:l},e.atStart);if(!(!i||t.some(t=>t.edge!==e.edge&&(a(i,t)||h&&s(i,t))))){e.edge.points=l,n=!0;break}}if(n)break}}if(!n)return}}function eJ(e,t){let{realNodeRects:n,labelNodeRects:r}=et(t.values()),o=(0,i.K)((t,o)=>{let l=t.start,i=t.end,a=z(o);if(a.length!==o.length-1)return!1;let s=[l,i].filter(e=>!!e);for(let e of a)if(eo(e.a,e.b,n,s,-2)||eo(e.a,e.b,r,[],-2))return!1;for(let n of e){if(n===t||n.isLayoutOnly)continue;let e=n.points;if(e&&!(e.length<2)){for(let t of a)for(let n of z(G(e)))if(Y(t,n,.5)>=8||es(t.a,t.b,n.a,n.b,.001))return!1}}return!0},"candidateIsSafe"),l=(0,i.K)((e,t)=>{if(t+4>=e.length)return;let n=e[t],r=e[t+1],o=e[t+2],l=e[t+3],i=e[t+4],a=A(n,r)&&B(r,o)&&A(o,l)&&B(l,i)&&F(n,l,.001)&&F(n,i,.001)&&F(r,o,.001)&&(r.x-n.x)*(l.x-o.x)<0,s=B(n,r)&&A(r,o)&&B(o,l)&&A(l,i)&&N(n,l,.001)&&N(n,i,.001)&&N(r,o,.001)&&(r.y-n.y)*(l.y-o.y)<0;if(a||s)return G([...e.slice(0,t+1),i,...e.slice(t+5)]);if(t+5>=e.length)return;let f=e[t+5],d=B(n,r)&&A(r,o)&&B(o,l)&&A(l,i)&&B(i,f)&&F(n,i,.001)&&F(n,f,.001)&&F(o,l,.001)&&(o.x-r.x)*(i.x-l.x)<0,u=A(n,r)&&B(r,o)&&A(o,l)&&B(l,i)&&A(i,f)&&N(n,i,.001)&&N(n,f,.001)&&N(o,l,.001)&&(o.y-r.y)*(i.y-l.y)<0;if(d||u)return G([...e.slice(0,t+1),f,...e.slice(t+6)])},"withoutDogleg");for(let t=0;t<8;t++){let t=!1;for(let n of e){if(n.isLayoutOnly)continue;let e=G(n.points??[]);for(let r=0;r<=e.length-5;r++){let i=l(e,r);if(i&&o(n,i)){n.points=i,t=!0;break}}if(t)break}if(!t)return}}function eZ(e,t){let{realNodeRects:n,labelNodeRects:r}=et(t.values()),o=e.filter(e=>!e.isLayoutOnly),l=(0,i.K)((e,t,n)=>G(e===t?n??[]:e.points??[]),"pointsFor"),a=(0,i.K)((e,t)=>{let n=0;for(let r=0;r{let t=z(e);if(3!==t.length)return;let n=t[1];if(t[0].horizontal!==n.horizontal&&t[2].horizontal!==n.horizontal)return{index:n.index,horizontal:n.horizontal,vertical:n.vertical,segment:n}},"middleRail"),f=(0,i.K)((e,t)=>{let r=[e.start,e.end].filter(e=>!!e);return n.filter(e=>{if(r.includes(e.id))return!1;let n=e.rect;return t.horizontal?X(t.a.x,t.b.x,n.left,n.right)>=8&&t.a.y>=n.top-2&&t.a.y<=n.bottom+2:X(t.a.y,t.b.y,n.top,n.bottom)>=8&&t.a.x>=n.left-2&&t.a.x<=n.right+2})},"blockingRectsFor"),d=(0,i.K)((e,t,n)=>{let r=e.map(e=>({...e}));if(t.horizontal)r[t.index].y=n,r[t.index+1].y=n;else{if(!t.vertical)return;r[t.index].x=n,r[t.index+1].x=n}let o=eg(G(r));return z(o).length===o.length-1?o:void 0},"candidateByMovingRail"),u=(0,i.K)((e,t,i)=>{let s=[e.start,e.end].filter(e=>!!e),f=z(t);if(f.length!==t.length-1)return!1;for(let e of f)if(eo(e.a,e.b,n,s,-2)||eo(e.a,e.b,r,[],-2))return!1;for(let t of o)if(t!==e){for(let e of f)for(let n of z(l(t)))if(Y(e,n,.5)>=8)return!1}return a(e,t)<=i},"candidateIsSafe");for(let e=0;e<8;e++){let e=a(),t=!1;for(let n of o){let r=l(n),o=s(r);if(!o)continue;let i=f(n,o.segment);if(0!==i.length){for(let l of o.horizontal?[Math.min(...i.map(e=>e.rect.top))-20,Math.max(...i.map(e=>e.rect.bottom))+20]:[Math.min(...i.map(e=>e.rect.left))-20,Math.max(...i.map(e=>e.rect.right))+20]){let i=d(r,o.segment,l);if(i&&u(n,i,e)){n.points=i,t=!0;break}}if(t)break}}if(!t)return}}function eQ(e,t){let n=(0,i.K)(e=>{let t=e.groupTitleRect;if(t&&"number"==typeof t.left&&"number"==typeof t.right&&"number"==typeof t.top&&"number"==typeof t.bottom&&Number.isFinite(t.left)&&Number.isFinite(t.right)&&Number.isFinite(t.top)&&Number.isFinite(t.bottom)&&!(t.right<=t.left)&&!(t.bottom<=t.top))return{left:t.left,right:t.right,top:t.top,bottom:t.bottom}},"validTitleRect"),r=(0,i.K)(e=>{if(!e.isGroup||e.parentId)return;let t=e.direction,r="string"==typeof t?t.toUpperCase():"";if("LR"===r||"RL"===r||"BT"===r)return;let o=n(e),l=e.y,i=e.height;if(!o||"number"!=typeof l||"number"!=typeof i||!Number.isFinite(l)||!Number.isFinite(i)||i<=0)return;let a=o.right-o.left,s=o.bottom-o.top;if(!(s<=0)&&!(a{if(!e.horizontal)return!1;let n=e.a.y;return!(n<=t.top+.001)&&!(n>=t.bottom-.001)&&X(e.a.x,e.b.x,t.left,t.right)>=8},"horizontalSegmentIntersectsTitle"),l=[...t.values()].map(r).filter(e=>!!e);if(0===l.length)return;let a=0;for(let t of e)if(!t.isLayoutOnly)for(let e of z(G(t.points??[])))for(let t of l)o(e,t.rect)&&(a=Math.max(a,t.rect.bottom-e.a.y+4));if(!(a<=.001))for(let e of l){let t=e.node.y,n=e.node.height;"number"==typeof t&&"number"==typeof n&&Number.isFinite(t)&&Number.isFinite(n)&&!(n<=0)&&(e.node.y=t-a/2,e.node.height=n+a,e.node.groupTitleRect={...e.rect,top:e.rect.top-a,bottom:e.rect.bottom-a})}}function e0(e,t){let n=(0,i.K)(e=>{let t=e.groupTitleRect;if(t&&"number"==typeof t.left&&"number"==typeof t.right&&"number"==typeof t.top&&"number"==typeof t.bottom&&Number.isFinite(t.left)&&Number.isFinite(t.right)&&Number.isFinite(t.top)&&Number.isFinite(t.bottom)&&!(t.right<=t.left)&&!(t.bottom<=t.top))return{left:t.left,right:t.right,top:t.top,bottom:t.bottom}},"validTitleRect"),r=(0,i.K)(e=>{if(!e.isGroup||e.parentId||"LR"!==e.direction)return;let t=n(e),r=e.x,o=e.width;if(!t||"number"!=typeof r||"number"!=typeof o||!Number.isFinite(r)||!Number.isFinite(o)||o<=0)return;let l=t.right-t.left,i=t.bottom-t.top;if(!(l<=0)&&!(i{if(!e.vertical)return!1;let n=e.a.x;return!(n<=t.left+.001)&&!(n>=t.right-.001)&&X(e.a.y,e.b.y,t.top,t.bottom)>=8},"verticalSegmentIntersectsTitle"),l=(0,i.K)((e,t)=>{if(!e.horizontal)return!1;let n=e.a.y;return!(n<=t.top+.001)&&!(n>=t.bottom-.001)&&X(e.a.x,e.b.x,t.left,t.right)>=8},"horizontalSegmentIntersectsTitle"),a=[...t.values()].map(r).filter(e=>!!e);if(0===a.length)return;let s=0;for(let t of e)if(!t.isLayoutOnly){for(let e of z(G(t.points??[])))for(let t of a)if(o(e,t.rect))s=Math.max(s,t.rect.right-e.a.x+4);else if(l(e,t.rect)){let n=Math.min(e.a.x,e.b.x);s=Math.max(s,t.rect.right-n+4)}}if(!(s<=.001))for(let e of a){let t=e.node.x,n=e.node.width;"number"==typeof t&&"number"==typeof n&&Number.isFinite(t)&&Number.isFinite(n)&&!(n<=0)&&(e.node.x=t-s/2,e.node.width=n+s,e.node.groupTitleRect={...e.rect,left:e.rect.left-s,right:e.rect.right-s})}}function e1(e,t){let{realNodeRects:n}=et(t.values()),r=e.filter(e=>!e.isLayoutOnly),o=(0,i.K)((e,t=new Map)=>G(t.get(e)??e.points??[]),"replacementPointsFor"),l=(0,i.K)((e=new Map)=>{let t=0;for(let n=0;nr.reduce((t,n)=>t+P(o(n,e)),0),"totalBends"),s=(0,i.K)(e=>{let t=o(e);if(t.length<4)return;let n=t[t.length-2],r=t[t.length-1];if(A(n,r,.001)||B(n,r,.001))return{tailStart:n,terminal:r}},"terminalTailFor"),f=(0,i.K)((e,t)=>{let n,r=o(e);if(r.length<3)return;let l=r[0],i=r[1];if(A(l,i,.001))n={x:i.x,y:t.tailStart.y};else{if(!B(l,i,.001))return;n={x:t.tailStart.x,y:i.y}}let a=eg(G([l,i,n,t.tailStart,t.terminal]));return z(a).length===a.length-1?a:void 0},"candidateWithDestinationTail"),d=(0,i.K)((e,t)=>{let r=[e.start,e.end].filter(e=>!!e);for(let e of z(t))if(eo(e.a,e.b,n,r,-2))return!0;return!1},"pathHasNodeHit"),u=(0,i.K)((e,t,n)=>{for(let l of r)if(l!==e){for(let e of z(t))for(let t of z(o(l,n)))if(Y(e,t,.5)>=8)return!0}return!1},"pathHasSharedTrack"),h=(0,i.K)((e,t,n)=>!d(e,t)&&!u(e,t,n),"candidateIsSafe"),g=(0,i.K)(()=>{let e=new Map;for(let n of r){let r=n.end;if(!r||!t.has(r)||o(n).length<4)continue;let l=e.get(r)??[];l.push(n),e.set(r,l)}return e},"edgesByDestination");for(let e=0;e<4;e++){let e,t=l();if(0===t)return;let n=a(),r=t,o=n;for(let n of g().values())for(let i=0;i=t)&&(b>r||b===r&&M>=o||(e=y,r=b,o=M))}if(!e)return;for(let[t,n]of e)t.points=n}}function e2(e,t){let{realNodeRects:n,labelNodeRects:r}=et(t.values()),o=e.filter(e=>!e.isLayoutOnly),l=(0,i.K)((e,t=new Map)=>G(t.get(e)??e.points??[]),"replacementPointsFor"),a=(0,i.K)((e=new Map)=>{let t=0;for(let n=0;no.reduce((t,n)=>t+P(l(n,e)),0),"totalBends"),f=(0,i.K)(e=>{let n=e.start,r=e.end,o=n?t.get(n):void 0,l=r?t.get(r):void 0,i=o?q(o):void 0,a=l?q(l):void 0;return i&&a?{src:i,dst:a}:void 0},"endpointRectsFor"),d=(0,i.K)((e,t,n)=>{if(n.index<=0||n.index+1>=t.length-1)return;let r=f(e);if(r){if(n.vertical){let o=n.a.x,l=Math.min(r.src.left,r.dst.left),i=Math.max(r.src.right,r.dst.right),a=oi+.001?"right":void 0;if(!a)return;return{edge:e,points:t,segmentIndex:n.index,axis:"vertical",side:a,coord:o,min:Math.min(n.a.y,n.b.y),max:Math.max(n.a.y,n.b.y)}}if(n.horizontal){let o=n.a.y,l=Math.min(r.src.top,r.dst.top),i=Math.max(r.src.bottom,r.dst.bottom),a=oi+.001?"bottom":void 0;if(!a)return;return{edge:e,points:t,segmentIndex:n.index,axis:"horizontal",side:a,coord:o,min:Math.min(n.a.x,n.b.x),max:Math.max(n.a.x,n.b.x)}}}},"externalRailForSegment"),u=(0,i.K)(()=>{let e=[];for(let t of o){let n=l(t);for(let r of z(n)){let o=d(t,n,r);o&&e.push(o)}}return e},"collectExternalRails"),h=(0,i.K)((e,t)=>e.edge!==t.edge&&e.axis===t.axis&&e.side===t.side&&X(e.min,e.max,t.min,t.max)>=8,"railsInteract"),g=(0,i.K)(e=>{let t=[],n=new Set;for(let r of e){if(n.has(r))continue;let o=[r],l=[];for(n.add(r);o.length>0;){let t=o.pop();for(let r of(l.push(t),e))!n.has(r)&&h(t,r)&&(n.add(r),o.push(r))}l.length>1&&t.push(l)}return t},"connectedComponents"),c=(0,i.K)(e=>{let t=[];for(let n of e)t.some(e=>.001>Math.abs(e-n.coord))||t.push(n.coord);for(;t.length{let t=e.map(e=>e.coord),n=c(e),r=[];if(e.length<=6){let o=Array(n.length).fill(!1),l=[],a=(0,i.K)(()=>{if(l.length===e.length){l.some((e,n)=>Math.abs(e-t[n])>=.001)&&r.push([...l]);return}for(let[e,t]of n.entries())o[e]||(o[e]=!0,l.push(t),a(),l.pop(),o[e]=!1)},"visit");return a(),r}for(let e=0;e{let n=new Map;for(let[r,o]of e.entries()){let e=t[r],l=n.get(o.edge)??o.points.map(e=>({x:e.x,y:e.y}));"vertical"===o.axis?(l[o.segmentIndex].x=e,l[o.segmentIndex+1].x=e):(l[o.segmentIndex].y=e,l[o.segmentIndex+1].y=e),n.set(o.edge,l)}let r=new Map;for(let[e,t]of n){let n=eg(G(t));if(z(n).length!==n.length-1)return;r.set(e,n)}return r},"replacementsForAssignment"),m=(0,i.K)(e=>{for(let[t,o]of e){let e=[t.start,t.end].filter(e=>!!e);for(let t of z(o))if(eo(t.a,t.b,n,e,-2)||eo(t.a,t.b,r,[],-2))return!1}for(let t=0;t=8)return!1}}return!0},"candidateIsSafe");for(let e=0;e<4;e++){let e,t=a();if(0===t)return;let n=t,r=s(),o=1/0;for(let l of g(u()))for(let i of p(l)){let f=x(l,i);if(!f||!m(f))continue;let d=a(f);if(d>=t)continue;let u=s(f),h=l.reduce((e,t,n)=>e+Math.abs(i[n]-t.coord),0);d>n||d===n&&(u>r||u===r&&h>=o)||(e=f,n=d,r=u,o=h)}if(!e)return;for(let[t,n]of e)t.points=n}}function e6(e,t){let{realNodeRects:n,labelNodeRects:r}=et(t.values()),o=e.filter(e=>!e.isLayoutOnly),l=(0,i.K)((e,t,n)=>G(e===t?n??[]:e.points??[]),"pointsFor"),a=(0,i.K)(e=>z(e).reduce((e,t)=>e+Math.hypot(t.a.x-t.b.x,t.a.y-t.b.y),0),"pathLength"),s=(0,i.K)((e,t)=>{let n=0;for(let r=0;r{if(e.horizontal){let n=e.a.y;return(1>Math.abs(n-t.top)||1>Math.abs(n-t.bottom))&&X(e.a.x,e.b.x,t.left,t.right)>=8}if(e.vertical){let n=e.a.x;return(1>Math.abs(n-t.left)||1>Math.abs(n-t.right))&&X(e.a.y,e.b.y,t.top,t.bottom)>=8}return!1},"segmentRunsAlongRectBorder"),d=(0,i.K)(e=>{let n=[e.start,e.end].filter(e=>!!e),r=[];for(let e of n){let n=t.get(e),o=n?q(n):void 0;o&&r.push(o)}return r},"endpointRectsFor"),u=(0,i.K)((e,t)=>{if(t+3>=e.length)return[];let n=e[t],r=e[t+1],o=e[t+2],l=e[t+3],i=A(n,r,.001)&&B(r,o,.001)&&A(o,l,.001),a=B(n,r,.001)&&A(r,o,.001)&&B(o,l,.001);if(!i&&!a||!(i?Math.sign(r.x-n.x)!==Math.sign(l.x-o.x):Math.sign(r.y-n.y)!==Math.sign(l.y-o.y)))return[];let s=F(n,l,.001)||N(n,l,.001)?[]:[{x:n.x,y:l.y},{x:l.x,y:n.y}],f=0===s.length?[[...e.slice(0,t+1),...e.slice(t+3)]]:s.map(n=>[...e.slice(0,t+1),n,...e.slice(t+3)]),d=new Set;return f.map(e=>eg(G(e))).filter(e=>{if(z(e).length!==e.length-1||!e.some(e=>E(e,l,.001)))return!1;let t=e.map(e=>`${e.x.toFixed(3)},${e.y.toFixed(3)}`).join("|");return!d.has(t)&&(d.add(t),!0)})},"shortcutCandidatesAt"),h=(0,i.K)((e,t,i)=>{let a=[e.start,e.end].filter(e=>!!e),u=d(e);for(let e of z(t))if(eo(e.a,e.b,n,a,-2)||eo(e.a,e.b,r,[],-2)||u.some(t=>f(e,t)))return!1;for(let n of o)if(n!==e){for(let e of z(t))for(let t of z(l(n)))if(Y(e,t,.5)>=8)return!1}return s(e,t)<=i},"candidateIsSafe");for(let e=0;e<8;e++){let e,t,n=s(),r=n,i=1/0,f=1/0;for(let d of o){let o=l(d),g=P(o,.001),c=a(o);for(let l=0;l<=o.length-4;l++)for(let p of u(o,l)){let o=P(p,.001),l=a(p);if(!(or||u===r&&(o>i||o===i&&l>=f)||(e=d,t=p,r=u,i=o,f=l)}}if(!e||!t)return;e.points=t}}function e5(e,t){let n=[];for(let e of t.values()){if(e.isGroup||e.isEdgeLabel)continue;let t=e.x??0,r=e.y??0,o=q(e);o&&n.push({id:String(e.id??""),cx:t,cy:r,rect:o})}if(0===n.length)return;let r=new Map(n.map(e=>[e.id,e])),o=n.map(e=>({id:e.id,rect:e.rect})),l=["top","bottom","left","right"],a={top:Math.min(...n.map(e=>e.rect.top))-20,bottom:Math.max(...n.map(e=>e.rect.bottom))+20,left:Math.min(...n.map(e=>e.rect.left))-20,right:Math.max(...n.map(e=>e.rect.right))+20},s=e.filter(e=>!e.isLayoutOnly),f=new Map(s.map((e,t)=>[e,t])),d=(0,i.K)(e=>{let t="left"===e||"top"===e?-1:1,n=[];for(let r=0;r<=2;r++)n.push(a[e]+20*t*r);return n},"outwardTracksForSide"),u=(0,i.K)((e,t=new Map)=>G(t.get(e)??e.points??[]),"replacementPointsFor"),h=(0,i.K)((e,t)=>{let n=0;for(let r of e)for(let e of t)es(r.a,r.b,e.a,e.b,.001)&&n++;return n},"crossingCountBetweenSegments"),g=(0,i.K)((e,t)=>h(z(e),z(t)),"crossingCountBetweenPaths"),c=(0,i.K)((e=new Map)=>{let t=0,n=[],r=new Set,o=[],l=(0,i.K)(e=>{r.has(e)||(r.add(e),o.push(e))},"addEdge");for(let r=0;r0&&(t+=f,n.push({first:o,second:r,count:f}),l(o),l(r))}}return o.sort((e,t)=>(f.get(e)??0)-(f.get(t)??0)),{count:t,pairs:n,edgeSet:r,edges:o}},"crossingSnapshot"),p=(0,i.K)((e,t)=>{let n=new Set(t.keys());if(0===n.size)return e.count;let r=0;for(let t of e.pairs)(n.has(t.first)||n.has(t.second))&&(r+=t.count);let o=0;for(let e=0;e{let t=new Map;for(let n of e.pairs){let e=t.get(n.first)??new Set;e.add(n.second),t.set(n.first,e);let r=t.get(n.second)??new Set;r.add(n.first),t.set(n.second,r)}let n=[],r=new Set;for(let o of e.edges){if(r.has(o))continue;let e=[o],l=[];for(r.add(o);e.length>0;){let n=e.pop();for(let o of(l.push(n),t.get(n)??[]))r.has(o)||(r.add(o),e.push(o))}l.sort((e,t)=>(f.get(e)??0)-(f.get(t)??0)),l.length>1&&n.push(l)}return n},"crossingComponents"),m=(0,i.K)(e=>[e.start,e.end].filter(e=>!!e),"endpointIdsFor"),y=(0,i.K)(e=>{let t=[];for(let n of x(e)){let e=new Set(n),r=new Set(n.flatMap(e=>m(e))),o=[...n];for(let t of s)!e.has(t)&&m(t).some(e=>r.has(e))&&o.push(t);o.sort((e,t)=>(f.get(e)??0)-(f.get(t)??0)),t.push(o)}return t},"pairSearchGroups"),b=(0,i.K)((e,t,n)=>p(e,new Map([[t,n]])),"crossingCountWithSingleReplacement"),M=(0,i.K)(e=>{let t=new Map;for(let n of e.pairs)t.set(n.first,(t.get(n.first)??0)+n.count),t.set(n.second,(t.get(n.second)??0)+n.count);return t},"currentCrossingsByEdge"),K=(0,i.K)(e=>e.slice(1).reduce((t,n,r)=>{let o=e[r];return t+Math.abs(n.x-o.x)+Math.abs(n.y-o.y)},0),"pathLength"),I=(0,i.K)((e=new Map)=>s.reduce((t,n)=>t+P(u(n,e)),0),"totalBends"),S=(0,i.K)((e=new Map)=>s.reduce((t,n)=>t+K(u(n,e)),0),"totalLength"),w=(0,i.K)((e,t,n=new Map)=>{let r=z(t);for(let t of s)if(t!==e){for(let e of r)for(let r of z(u(t,n)))if(Y(e,r,.5)>=8)return!0}return!1},"pathHasSegmentConflict"),v=(0,i.K)((e,t)=>{let n=[e.start,e.end].filter(e=>!!e);for(let e of z(t))if(eo(e.a,e.b,o,n,-2))return!0;return!1},"pathHitsNode"),C=(0,i.K)((e,t)=>{let n=eg(G(t));z(n).length===n.length-1&&e.push(n)},"pushOrthogonalCandidate"),L=(0,i.K)(e=>"left"===e||"right"===e,"sideIsHorizontal"),k=(0,i.K)((e,t,n)=>{switch(t){case"left":return Math.min(e.x,n.x)-20;case"right":return Math.max(e.x,n.x)+20;case"top":return Math.min(e.y,n.y)-20;case"bottom":return Math.max(e.y,n.y)+20}},"localTrackForSameSide"),T=(0,i.K)((e,t,n,r)=>{let o="left"===n||"top"===n?-1:1;for(let l of[k(t,n,r),a[n]])for(let i=0;i<=2;i++)C(e,Q(t,n,r,l+20*o*i))},"addSameSideCandidates"),$=(0,i.K)((e,t,n,r,o)=>{for(let l of d(n))for(let n of d(o))C(e,[t,{x:l,y:t.y},{x:l,y:n},{x:r.x,y:n},r])},"addHorizontalToVerticalCandidates"),O=(0,i.K)((e,t,n,r,o)=>{for(let l of d(n))for(let n of d(o))C(e,[t,{x:t.x,y:l},{x:n,y:l},{x:n,y:r.y},r])},"addVerticalToHorizontalCandidates"),R=(0,i.K)((e,t,n,r,o)=>{let l=[...d("top"),...d("bottom")];for(let i of d(n))for(let n of d(o))for(let o of l)C(e,[t,{x:i,y:t.y},{x:i,y:o},{x:n,y:o},{x:n,y:r.y},r])},"addHorizontalPairCandidates"),E=(0,i.K)((e,t,n,r,o)=>{let l=[...d("left"),...d("right")];for(let i of d(n))for(let n of d(o))for(let o of l)C(e,[t,{x:t.x,y:i},{x:o,y:i},{x:o,y:n},{x:r.x,y:n},r])},"addVerticalPairCandidates"),F=(0,i.K)(e=>{let t=new Set;return e.map(e=>G(e)).filter(e=>{let n=e.map(e=>`${e.x.toFixed(3)},${e.y.toFixed(3)}`).join("|");return!t.has(n)&&!(e.length<2)&&(t.add(n),!0)})},"dedupeCandidatePaths"),N=(0,i.K)((e,t,n,r)=>{let o=[],l=Z(e,t,n,r,20,.001);l&&C(o,l),t===r&&T(o,e,t,n);let i=L(t),a=L(r);return i&&!a?$(o,e,t,n,r):!i&&a?O(o,e,t,n,r):i?R(o,e,t,n,r):E(o,e,t,n,r),F(o)},"buildCandidatesForSides"),X=(0,i.K)((e,t,n,r)=>{let o=[...d("left"),...d("right")],i=[...d("top"),...d("bottom")];for(let a of l){let l=J(r,a),s="top"===a||"bottom"===a?d(a):i;for(let r of o)for(let o of(C(e,[t,n,{x:r,y:n.y},{x:r,y:l.y},l]),s))C(e,[t,n,{x:r,y:n.y},{x:r,y:o},{x:l.x,y:o},l])}},"addVerticalDepartureOuterTrackCandidates"),D=(0,i.K)((e,t,n,r)=>{let o=[...d("left"),...d("right")],i=[...d("top"),...d("bottom")];for(let a of l){let l=J(r,a),s="left"===a||"right"===a?d(a):o;for(let r of i)for(let o of(C(e,[t,n,{x:n.x,y:r},{x:l.x,y:r},l]),s))C(e,[t,n,{x:n.x,y:r},{x:o,y:r},{x:o,y:l.y},l])}},"addHorizontalDepartureOuterTrackCandidates"),_=(0,i.K)(e=>{let t=e.start,n=e.end,o=n?r.get(n):void 0;if(!t||!o)return[];let l=G(e.points??[]);if(l.length<4)return[];let i=l[0],a=l[1],s=[];return B(i,a,.001)?X(s,i,a,o):A(i,a,.001)&&D(s,i,a,o),s},"terminalPreservingOuterTrackCandidates"),H=(0,i.K)(e=>{let t=e.start,n=e.end,o=t?r.get(t):void 0,i=n?r.get(n):void 0;if(!o||!i)return[];let a=[];for(let e of l){let t=J(o,e);for(let n of l)a.push(...N(t,e,J(i,n),n))}return a.push(..._(e)),a},"candidatePathsFor"),j=(0,i.K)(()=>new Map(s.map(e=>[e,z(u(e))])),"currentSegmentsByEdge"),V=(0,i.K)((e,t,n)=>{let r=new Set;for(let o of s){if(o===e)continue;let l=n.get(o)??z(u(o));t.some(e=>l.some(t=>Y(e,t,.5)>=8))&&r.add(o)}return r},"sharedTrackConflictsFor"),U=(0,i.K)((e,t,n,r)=>{let o=new Set;return H(e).map(e=>eg(G(e))).filter(t=>{if(v(e,t))return!1;let n=t.map(e=>`${e.x.toFixed(3)},${e.y.toFixed(3)}`).join("|");return!o.has(n)&&!(t.length<2)&&(o.add(n),!0)}).map(o=>{let l=z(o),i=0;for(let t of s)t!==e&&(i+=h(l,n.get(t)??z(u(t))));return{candidate:o,candidateSegments:l,crossings:t.count-(r.get(e)??0)+i,bends:P(o,.001),totalBends:P(o),length:K(o)}}).filter(({crossings:e})=>e<=t.count).sort((e,t)=>e.crossings-t.crossings||e.bends-t.bends||e.length-t.length).slice(0,48).map(t=>({path:t.candidate,segments:t.candidateSegments,sharedTrackConflicts:V(e,t.candidateSegments,n),totalBends:t.totalBends,length:t.length}))},"pairCandidatesFor"),W=(0,i.K)((e,t,n,r,o,l)=>{let i=0;for(let n of e.pairs)(n.first===t||n.second===t||n.first===r||n.second===r)&&(i+=n.count);let a=h(n.segments,o.segments);for(let e of s){if(e===t||e===r)continue;let i=l.get(e)??z(u(e));a+=h(n.segments,i)+h(o.segments,i)}return e.count-i+a},"pairCrossingCount"),ee=(0,i.K)((e,t)=>{for(let n of e.sharedTrackConflicts)if(n!==t)return!1;return!0},"conflictsOnlyWith"),et=(0,i.K)((e,t)=>e.segments.some(e=>t.segments.some(t=>Y(e,t,.5)>=8)),"candidatesShareTrack"),en=(0,i.K)((e,t,n,r)=>ee(t,n.edge)&&ee(r,e.edge)&&!et(t,r),"pairCandidatesAreCompatible"),er=(0,i.K)((e,t,n,r,o)=>{let l=W(e.current,t.edge,n,r.edge,o,e.baseSegments);if(!(l>=e.current.count))return{replacements:new Map([[t.edge,n.path],[r.edge,o.path]]),crossings:l,bends:e.currentBends-(e.baseBendsByEdge.get(t.edge)??0)-(e.baseBendsByEdge.get(r.edge)??0)+n.totalBends+o.totalBends,length:e.currentLength-(e.baseLengthByEdge.get(t.edge)??0)-(e.baseLengthByEdge.get(r.edge)??0)+n.length+o.length}},"scorePairReplacement"),el=(0,i.K)((e,t)=>e.crossings{let o=r;for(let r of t.candidates)for(let l of n.candidates){if(!en(t,r,n,l))continue;let i=er(e,t,r,n,l);i&&el(i,o)&&(o=i)}return o},"bestScoreForOptionPair"),ea=(0,i.K)(e=>{let t=I(),n=S(),r=j(),o=M(e),l=new Map(s.map(e=>[e,P(u(e))])),i=new Map(s.map(e=>[e,K(u(e))])),a=new Map,f=y(e);for(let t of f)for(let n of t){if(a.has(n))continue;let t=U(n,e,r,o);t.length>0&&a.set(n,{edge:n,candidates:t})}let d={replacements:new Map,crossings:e.count,bends:t,length:n},h={current:e,currentBends:t,currentLength:n,baseBendsByEdge:l,baseLengthByEdge:i,baseSegments:r};for(let t of f){let n=new Set(t.filter(t=>e.edgeSet.has(t))),r=t.map(e=>a.get(e)).filter(e=>!!e);for(let e=0;e0?d.replacements:void 0},"bestPairedReplacement");for(let e=0;e<4;e++){let e,t,n=c(),r=n.count;if(0===r)return;let o=r,l=1/0;for(let i of n.edges){let a=P(u(i),.001);for(let s of H(i)){let f=v(i,s),d=!f&&w(i,s),u=b(n,i,s),h=P(s,.001);!f&&!d&&(uo||u===o&&h>=l||(e=i,t=s,o=u,l=h))}}if(e&&t){e.points=t;continue}let i=ea(n);if(!i)return;for(let[e,t]of i)e.points=t}}function e3(e,t){let{nodeInfoById:n,realNodeRects:r}=ee(t),o=["top","bottom","left","right"],l={top:Math.min(...r.map(e=>e.rect.top))-20,bottom:Math.max(...r.map(e=>e.rect.bottom))+20,left:Math.min(...r.map(e=>e.rect.left))-20,right:Math.max(...r.map(e=>e.rect.right))+20},a=(0,i.K)((e,t,n,r)=>{let o=[],i=Z(e,t,n,r,20,.001);return i&&o.push(i),t===r&&o.push(Q(e,t,n,l[t])),o},"buildOrthogonalPathCandidates"),s=(0,i.K)((e,t)=>{for(let n=0;n{let o=0,l=z(t,.001),i=n.start,a=n.end;for(let t of e){if(t===n||t.isLayoutOnly)continue;let e=t.start,s=t.end;if(!r&&i&&a&&(e===i||e===a||s===i||s===a))continue;let f=t.points;if(f&&!(f.length<2))for(let e of l)for(let t of z(f,.001)){if(el(e.a,e.b,t.a,t.b,.001,.001)){o++;continue}Y(e,t,.001)>=8&&o++}}return o},"pathConflictCount"),d=(0,i.K)((e,t)=>{let n=Math.abs(e.y-t.rect.top),r=Math.abs(e.y-t.rect.bottom),o=Math.abs(e.x-t.rect.left),l=Math.abs(e.x-t.rect.right),i="top",a=n;return r{let r=u.get(e)??[];r.push({side:t,edgeId:n}),u.set(e,r)},"addFaceClaim");for(let t of e){if(t.isLayoutOnly)continue;let e=t.points??[];if(e.length<1)continue;let r=t.id??"",o=t.start,l=t.end;if(o){let t=n.get(o);t&&h(o,d(e[0],t),r)}if(l){let t=n.get(l);t&&h(l,d(e[e.length-1],t),r)}}let g=(0,i.K)((e,t,n)=>u.get(e)?.some(e=>e.edgeId!==n&&e.side===t)??!1,"faceIsClaimed");for(let t of e){let e;if(t.isLayoutOnly)continue;let r=t.points;if(!r||r.length<2)continue;let l=P(r,.001);if(l<4)continue;let i=t.start,c=t.end;if(!i||!c)continue;let p=n.get(i),x=n.get(c);if(!p||!x)continue;let m=t.id??"",y=f(r,t,!0),b=f(r,t),M=y,K=l;for(let n of o){if(g(i,n,m))continue;let r=J(p,n);for(let l of o)if(!g(c,l,m))for(let o of a(r,n,J(x,l),l)){if(s(o,[i,c]))continue;let n=P(o,.001);if(y>0){let r=f(o,t,!0);if(r>M||r===M&&n>=K)continue;M=r,K=n,e=o;continue}!(f(o,t)>b)&&ne.edgeId!==m));let r=u.get(c);r&&u.set(c,r.filter(e=>e.edgeId!==m)),h(i,d(e[0],p),m),h(c,d(e[e.length-1],x),m)}}}function e8(e,t){let n=t?0:e.length-1,r=e[n],o=e[n+(t?1:-1)];if(!r||!o)return;let l=o.x-r.x,i=o.y-r.y;if(!(Math.abs(l)+Math.abs(i)<.001)){if(.001>=Math.abs(i)){let e=r.x+10*Math.sign(l);return{left:Math.min(r.x,e),right:Math.max(r.x,e),top:r.y-7,bottom:r.y+7}}if(.001>=Math.abs(l)){let e=r.y+10*Math.sign(i);return{left:r.x-7,right:r.x+7,top:Math.min(r.y,e),bottom:Math.max(r.y,e)}}return{left:Math.min(r.x,o.x),right:Math.max(r.x,o.x),top:Math.min(r.y,o.y),bottom:Math.max(r.y,o.y)}}}function e4(e){return{left:Math.min(e.left,e.right),right:Math.max(e.left,e.right),top:Math.min(e.top,e.bottom),bottom:Math.max(e.top,e.bottom)}}function e9(e,t){let n=G(t);return[e8(n,!0),e8(n,!1)].some(t=>t&&V(e,e4(t)))}function e7(e,t){let n=[];for(let t of e){if(t.isLayoutOnly)continue;let e=t.points;if(e&&!(e.length<2))for(let r=0;r{let n=U(t,3);for(let{nodeId:t,rect:o}of r)if(t!==e&&V(n,o))return!0;return!1},"labelOverlapsForeignNode"),a=(0,i.K)((e,t)=>{let r=U(t,3);for(let t of n)if(t.edgeId!==e&&_(t.p1,t.p2,r))return!0;return!1},"labelOverlapsForeignEdge"),s=(0,i.K)((e,t,n)=>l(e,n)||a(t,n),"labelOverlapsAnything"),f=[],d=(0,i.K)(e=>{for(let{id:t,rect:n}of o)if(j(n,e))return t},"findContainingLane"),u=(0,i.K)((e,t)=>f.some(n=>n.labelId!==e&&V(t,n.rect)),"overlapsPlacedLabel");for(let n of e){if(n.isLayoutOnly)continue;let e=n.labelNodeId;if(!e)continue;let r=t.get(e);if(!r)continue;let h=n.points;if(!h||h.length<2)continue;let g=r.width??0,c=r.height??0;if(g<=0||c<=0)continue;let p=[];for(let e=0;e=.001&&o>=.001||p.push({idx:e,length:r+o,orientation:r>=.001?"horizontal":"vertical",midX:(t.x+n.x)/2,midY:(t.y+n.y)/2}))}if(0===p.length)continue;let x=p.length>=3?p.filter(e=>e.idx>0&&e.idx0?x:p,y=g>=c?"horizontal":"vertical",b=(0,i.K)(e=>[...e].sort((e,t)=>{let n=e.orientation===y;if(n!==(t.orientation===y))return n?-1:1;let r=e.length>=("horizontal"===e.orientation?g:c)+2;return r!==t.length>=("horizontal"===t.orientation?g:c)+2?r?-1:1:t.length-e.length}),"rankSegments"),M=p[0],K=p[p.length-1],I=[.5,.25,.75,.05,.95,.15,.85,.1,.9],S=(0,i.K)((e,t)=>{let n=h[e.idx],r=h[e.idx+1];return{midX:n.x+(r.x-n.x)*t,midY:n.y+(r.y-n.y)*t}},"anchorAtT"),w=(0,i.K)((e,t,n)=>Math.min(n,Math.max(t,e)),"clamp"),v=(0,i.K)((e,t)=>e.midX>=t.left-.001&&e.midX<=t.right+.001&&e.midY>=t.top-.001&&e.midY<=t.bottom+.001,"pointInsideRectInclusive"),C=(0,i.K)(e=>{let t=W(e.midX,e.midY,g,c),n=d(t);if(n)return{laneId:n,anchor:e,rect:t};let r=o.find(({rect:t})=>v(e,t));if(!r)return;let l=r.rect.left+g/2+1,i=r.rect.right-g/2-1,a=r.rect.top+c/2+1,s=r.rect.bottom-c/2-1;if(l>i||a>s)return;let f={midX:w(e.midX,l,i),midY:w(e.midY,a,s)},u=W(f.midX,f.midY,g,c);return v(e,u)?{laneId:r.id,anchor:f,rect:u}:void 0},"placementForAnchor"),L=(0,i.K)((e,t,n)=>"horizontal"===e.orientation?Math.abs(t.midX-n.x):Math.abs(t.midY-n.y),"distanceAlongSegment"),k=(0,i.K)((e,t)=>{let n=("horizontal"===e.orientation?g/2:c/2)+12;if(e===M){let r=h[e.idx];if(L(e,t,r)+.001{for(let r of b(t))for(let t of I){let o=S(r,t);if(!k(r,o))continue;let l=C(o);if(!(!l||e9(l.rect,h))&&!u(e,l.rect)&&!s(e,n.id,l.rect))return{laneId:l.laneId,anchor:l.anchor}}},"tryPool"),$=(0,i.K)((t,r,o=!1)=>{for(let i of b(t)){let t={midX:i.midX,midY:i.midY};if(r&&!k(i,t))continue;let s=C(t);if(s&&!e9(s.rect,h)&&!u(e,s.rect)&&!l(e,s.rect)&&(o||!a(n.id,s.rect)))return{laneId:s.laneId,anchor:s.anchor}}},"findLaneContainingFallback"),O=T(m)??(m.lengtht.labelId===e);n>=0?f[n]={labelId:e,rect:t}:f.push({labelId:e,rect:t})}}}(0,i.K)(eq,"separateSharedRenderedTerminalLanes"),(0,i.K)(eJ,"collapseRedundantRectangularDoglegs"),(0,i.K)(eZ,"liftObstacleHuggingSameSideRails"),(0,i.K)(eQ,"liftTopLaneTitleBandsAboveRails"),(0,i.K)(e0,"shiftLeftLaneTitleBandsLeftOfRails"),(0,i.K)(e1,"swapDestinationTerminalTailsToReduceCrossings"),(0,i.K)(e2,"reassignCrossingExternalRailChannels"),(0,i.K)(e6,"shortcutRedundantOrthogonalJogs"),(0,i.K)(e5,"resolveRenderedOrthogonalCrossings"),(0,i.K)(e3,"simplifyDetouredEdges"),(0,i.K)(e8,"markerClearanceRectFor"),(0,i.K)(e4,"normalizeRect"),(0,i.K)(e9,"labelOverlapsOwnMarker"),(0,i.K)(e7,"anchorLabelsToPolyline");function te(e,t){return e{let a=te(n,r),s=0,f=(0,i.K)(e=>{if(!e)return;let t=o.get(e);if(!t)return;let n="x"===l?t.w/2:t.h/2;n>s&&(s=n)},"consider");for(let n of(f(t.labelNodeId),e)){if(n===t||n.isLayoutOnly)continue;let e=n.start,r=n.end;e&&r&&te(e,r)===a&&f(n.labelNodeId)}return s>0?s+3:0},"labelClearanceFor");for(let t of e){let o,i;if(t.isLayoutOnly||!D(t.points,1e-6))continue;let a=er(t,n,1e-6);if(!a)continue;let{srcId:s,dstId:f,srcInfo:d,dstInfo:u,collinearX:h,collinearY:g}=a;if(h===g)continue;if(h){let e=u.cy>d.cy;o={x:d.cx,y:e?d.rect.bottom:d.rect.top},i={x:u.cx,y:e?u.rect.top:u.rect.bottom}}else{let e=u.cx>d.cx;o={x:e?d.rect.right:d.rect.left,y:d.cy},i={x:e?u.rect.left:u.rect.right,y:u.cy}}if(eo(o,i,r,[s,f],1))continue;let c=l(t,s,f,h?"x":"y"),p=c>4?c:4;for(let n of[0,p,-p]){let l={...o},a={...i};if(h){if(l.x+=n,a.x+=n,l.x<=d.rect.left||l.x>=d.rect.right||a.x<=u.rect.left||a.x>=u.rect.right)continue}else if(l.y+=n,a.y+=n,l.y<=d.rect.top||l.y>=d.rect.bottom||a.y<=u.rect.top||a.y>=u.rect.bottom)continue;if(!eo(l,a,r,[s,f],1)&&!ea(l,a,e,t,{epsilon:1e-6})){t.points=[l,a];break}}}}function tn(e,t){let{realNodeRects:n,labelNodeRects:r}=et(t.values()),o=(0,i.K)((e,t)=>z(t,.001).map(n=>({...n,edge:e,interior:n.index>=1&&n.index<=t.length-3})),"segmentsFor"),l=(0,i.K)(()=>{let t=[];for(let n of e){if(n.isLayoutOnly)continue;let e=n.points;e&&!(e.length<2)&&t.push(...o(n,G(e)))}return t},"allSegments"),a=(0,i.K)((e,t)=>e.horizontal&&t.horizontal?X(e.a.x,e.b.x,t.a.x,t.b.x)>=8&&7>Math.abs(e.a.y-t.a.y):!!e.vertical&&!!t.vertical&&X(e.a.y,e.b.y,t.a.y,t.b.y)>=8&&7>Math.abs(e.a.x-t.a.x),"hasCrowdedParallelTrack"),s=(0,i.K)((t,l)=>{let i=t.start,s=t.end,f=o(t,l);if(f.length!==l.length-1)return!1;let d=[i,s].filter(e=>!!e),u=t.labelNodeId?[t.labelNodeId]:[];for(let e of f)if(eo(e.a,e.b,n,d,-2)||eo(e.a,e.b,r,u,-2))return!1;for(let n of e){if(n===t||n.isLayoutOnly)continue;let e=n.points;if(e&&!(e.length<2)){for(let t of f)for(let r of o(n,G(e)))if(a(t,r)||es(t.a,t.b,r.a,r.b,.001))return!1}}return!0},"candidateIsSafe"),f=(0,i.K)((e,t)=>{let n=G(e.edge.points??[]);if(n.length<4||e.index>=n.length-1)return;let r=n.map(e=>({...e}));if(e.horizontal)r[e.index].y+=t,r[e.index+1].y+=t;else{if(!e.vertical)return;r[e.index].x+=t,r[e.index+1].x+=t}return o(e.edge,r).length===r.length-1?r:void 0},"shiftedCandidate"),d=(0,i.K)((e,t)=>({x:e.x??(t.left+t.right)/2,y:e.y??(t.top+t.bottom)/2}),"nodeCenter"),u=(0,i.K)(e=>{let n=e.edge,r=G(n.points??[]);if(4!==r.length||1!==e.index)return;let o=n.start?t.get(n.start):void 0,l=n.end?t.get(n.end):void 0,i=o?q(o):void 0,a=l?q(l):void 0,s=r.slice(e.index+2);if(o&&l&&i&&a&&0!==s.length)return{sourceCenter:d(o,i),targetCenter:d(l,a),sourceRect:i,tail:s}},"sourceDetourContextFor"),h=(0,i.K)((e,t,n,r,o,l)=>{let i=r.y>=n.y,a=i?o.bottom:o.top,s=a+(i?20:-20);if(i&&e.b.y<=s+.001||!i&&e.b.y>=s-.001)return;let f=e.a.x+t;return G([{x:n.x,y:a},{x:n.x,y:s},{x:f,y:s},{x:f,y:e.b.y},...l],.001)},"verticalSourceDetour"),g=(0,i.K)((e,t,n,r,o,l)=>{let i=r.x>=n.x,a=i?o.right:o.left,s=a+(i?20:-20);if(i&&e.b.x<=s+.001||!i&&e.b.x>=s-.001)return;let f=e.a.y+t;return G([{x:a,y:n.y},{x:s,y:n.y},{x:s,y:f},{x:e.b.x,y:f},...l],.001)},"horizontalSourceDetour"),c=(0,i.K)((e,t)=>{let n=u(e);if(n){if(e.vertical)return h(e,t,n.sourceCenter,n.targetCenter,n.sourceRect,n.tail);if(e.horizontal)return g(e,t,n.sourceCenter,n.targetCenter,n.sourceRect,n.tail)}},"sourceDetourCandidate"),p=[-7,7,-14,14,-21,21];for(let e=0;e<12;e++){let e=l(),t=!1;for(let n=0;ne.interior)){for(let n of p){let r=f(e,n);if(r&&s(e.edge,r)){e.edge.points=r,t=!0;break}let o=c(e,n);if(o&&s(e.edge,o)){e.edge.points=o,t=!0;break}}if(t)break}}if(!t)return}}function tr(e,t,n,r){let o=t.x-e.x,l=t.y-e.y,i=r.x-n.x,a=r.y-n.y,s=o*a-l*i;if(1e-10>Math.abs(s))return!1;let f=n.x-e.x,d=n.y-e.y,u=(f*a-d*i)/s,h=(f*l-d*o)/s;return u>.01&&u<.99&&h>.01&&h<.99}function to(e){let t=e.nodes??[],n=e.edges??[],r=[];if(!n.length||!t.length)return r;let o=en(t),i=[];for(let e of n){if(e.isLayoutOnly)continue;let t=e.points;if(!t||t.length<2)continue;let n=e.start,l=e.end,a=e.labelNodeId,s=e.id??`${n}->${l}`;for(let e of o)if(e.nodeId!==n&&e.nodeId!==l&&(!a||e.nodeId!==a)){for(let n=0;n0){let e=r.filter(e=>"edge-node-overlap"===e.type).length,t=r.filter(e=>"edge-edge-crossing"===e.type).length;for(let n of(l.R.warn(`[SWIMLANE_VALIDATE] ${r.length} issue(s) detected: ${e} edge-node overlap(s), ${t} edge crossing(s)`),r))l.R.warn(`[SWIMLANE_VALIDATE] ${n.type}: ${n.detail}`)}return r}function tl(e,t){let n=e.nodes??[],r=e.edges??[],o=n.filter(e=>!e.isGroup);if(("LR"===t||"RL"===t)&&o.length>0&&!eH(e,t)||"BT"===t&&o.length>0&&!e_(e))return;for(let e of r){if(e.isLayoutOnly)continue;let t=e.points;t&&!(t.length<2)&&(e.points=eg(eh(t)))}e3(r,n),tt(r,n),eV(r,n);let l=new Map;for(let e of n)l.set(String(e.id),e);e7(r,l),em(r,l),eU(r,l),tn(r,l),eq(r,l),eJ(r,l),eZ(r,l),e1(r,l);let a=(0,i.K)(()=>{e5(r,l),e2(r,l),e6(r,l),e7(r,l),eA(r,l),eZ(r,l),e7(r,l),eA(r,l)},"finalizeRenderedEdges");a(),tn(r,l),a(),eQ(r,l),e0(r,l),eQ(r,l),e0(r,l)}function ti(e){let t=new Map(e.nodeById),n=new Set,r=[];for(let o of e.edges){if(!t.has(o.src)||!t.has(o.dst))continue;let e=`${o.id}:${o.src}->${o.dst}`;n.has(e)||(n.add(e),r.push(o))}return{nodes:[...t.keys()],edges:r,layout:e.layout,nodeById:t}}function ta(e,t){return e.edges.filter(e=>e.dst===t)}function ts(e){let t=new Map;for(let n of e.nodes)t.set(n,[]);for(let n of e.edges)t.get(n.src).push(n.dst);return t}function tf(e){let t=ts(e);for(let e of t.values())e.sort((e,t)=>e.localeCompare(t));return t}function td(e){let t=new Map;for(let n of e.nodes)t.set(n,0);for(let n of e.edges)t.set(n.dst,(t.get(n.dst)??0)+1);return t}function tu(e){return[...e.entries()].filter(([,e])=>0===e).map(([e])=>e).sort((e,t)=>e.localeCompare(t))}function th(e,t=()=>!0){let n=new Map,r=new Map;for(let t of e.nodes)n.set(t,[]),r.set(t,[]);for(let o of e.edges)t(o)&&(r.get(o.src).push(o.dst),n.get(o.dst).push(o.src));return{preds:n,succs:r}}function tg(e,t,n,r){let o=0;for(let t of e.nodes)r?.skipGroups&&e.nodeById.get(t)?.isGroup||(o=Math.max(o,n[t]??0));let l=Array.from({length:o+1},()=>[]);for(let o of t)r?.skipGroups&&e.nodeById.get(o)?.isGroup||l[Math.max(0,n[o]??0)].push(o);return l}function tc(e){let t=td(e),n=tu(t),r=[],o=tf(e);for(;n.length;){let e=n.shift();for(let l of(r.push(e),o.get(e)??[]))if(t.set(l,(t.get(l)??0)-1),(t.get(l)??0)===0){let e=0;for(;e{if(o-r<=1)return 0;let l=r+o>>1,i=n(r,l)+n(l,o),a=r,s=l,f=r;for(;a=o||ae.dst===t.dst?e.id.localeCompare(t.id):e.dst.localeCompare(t.dst));let r=Object.create(null);for(let e of t.nodes)r[e]=0;let o=[],l=(0,i.K)(e=>{for(let t of(r[e]=1,n.get(e)??[])){let e=t.dst;0===r[e]?l(e):1===r[e]&&o.push(t)}r[e]=2},"dfs");for(let e of[...t.nodes].sort((e,t)=>e.localeCompare(t)))0===r[e]&&l(e);let a=new Set(o.map(e=>`${e.id}:${e.src}->${e.dst}`)),s=t.edges.map(e=>a.has(`${e.id}:${e.src}->${e.dst}`)?{id:e.id,src:e.dst,dst:e.src,weight:e.weight,ref:e.ref}:e);return{acyclic:{nodes:[...t.nodes],edges:s,layout:t.layout,nodeById:new Map(t.nodeById)},reversed:o}}function ty(e){let t=new Map,n=(0,i.K)(r=>{if(t.has(r))return t.get(r);let o=e.nodeById.get(r);if(!o)return t.set(r,null),null;let l=o.parentId;if(!l)return t.set(r,null),null;let i=n(l)??l;return t.set(r,i),i},"resolve");for(let t of e.nodes)n(t);return t}function tb(e){let t=ty(e);return e=>t.get(e)??null}function tM(e){let t=[];for(let n of e.layout.nodes??[])n.isGroup&&!n.parentId&&t.push(n.id);return[...new Set(t)].reverse()}function tK(e,t){let n=tM(e);if(!t||0===t.length)return n;let r=new Set(n),o=new Set,l=[];for(let e of t)!r.has(e)||o.has(e)||(o.add(e),l.push(e));for(let e of n)o.has(e)||l.push(e);return l}(0,i.K)(te,"pairKey"),(0,i.K)(tt,"straightenCollinearSiblingDetours"),(0,i.K)(tn,"nudgeSharedInteriorSubpaths"),(0,i.K)(tr,"segmentsIntersect"),(0,i.K)(to,"validateSwimlanesLayout"),(0,i.K)(tl,"postProcessSwimlaneLayout"),(0,i.K)(ti,"normalizeGraph"),(0,i.K)(ta,"incoming"),(0,i.K)(ts,"buildSuccessorMap"),(0,i.K)(tf,"buildSortedSuccessorMap"),(0,i.K)(td,"buildInDegreeMap"),(0,i.K)(tu,"sortedZeroInDegreeNodes"),(0,i.K)(th,"buildPredecessorSuccessorMaps"),(0,i.K)(tg,"buildLayersFromRanks"),(0,i.K)(tc,"topoSortIfAcyclic"),(0,i.K)(tp,"buildLayerIndex"),(0,i.K)(tx,"countInversions"),(0,i.K)(tm,"removeCycles_DFS"),(0,i.K)(ty,"buildTopLaneMap"),(0,i.K)(tb,"createTopLaneResolver"),(0,i.K)(tM,"buildTopLaneOrder"),(0,i.K)(tK,"resolveTopLaneOrder");var tI={GRAVITY_ITERATIONS:8,MAX_CROSSING_OPTIMIZATION_PASSES:4,DEFAULT_COMPACT_SINGLE_INPUT:!0},tS={DEFAULT_LAYER_GAP:100,DEFAULT_NODE_GAP:40};function tw(e,t){let n=ti(e),r=t?.laneOf??(()=>null),o=t?.rankHint,{preds:l}=th(n);for(let e of l.values())e.sort((e,t)=>e.localeCompare(t));let a=tc(n)??[...n.nodes].sort((e,t)=>e.localeCompare(t)),s=new Map;for(let[e,t]of a.entries())s.set(t,e);let f=new Map,d=new Map;for(let e of n.nodes)d.set(e,[]);for(let e of a){let t=(l.get(e)??[]).filter(e=>f.has(e));if(t.length>0){let n=tv(e,t,{laneOf:r,rankHint:o,topoIndex:s});f.set(e,n),d.get(n).push(e)}else f.has(e)||f.set(e,null)}for(let e of n.nodes)f.has(e)||f.set(e,null);let u=new Set;for(let e of n.nodes)(f.get(e)??null)===null&&u.add(e);let h=[...u].sort((e,t)=>{let n=s.get(e)??0,r=s.get(t)??0;return n===r?e.localeCompare(t):n-r}),g=tC(n),c=new Map;for(let[e,t]of g.entries())c.set(e,[...t].sort((e,t)=>e.localeCompare(t)));let p=tL(c),x=tk(c),m=new Map;for(let e of n.nodes)m.set(e,[]);for(let e of x)for(let t of e.nodes){let n=m.get(t);n?n.push(e.id):m.set(t,[e.id])}let y=[],b=[],M=new Set,K=(0,i.K)(e=>{if(!M.has(e)){for(let t of(M.add(e),y.push(e),d.get(e)??[]))K(t);b.push(e)}},"walk");for(let e of h)K(e);for(let e of a)K(e);return{parent:f,children:d,roots:h,componentOf:p,blocks:x,nodeBlocks:m,adjacency:c,preorder:y,postorder:b,topologicalOrder:a}}function tv(e,t,n){let r=n.laneOf(e);return[...t].sort((e,t)=>{let o=n.laneOf(e),l=n.laneOf(t),i=null!=o&&o===r;if(i!==(null!=l&&l===r))return i?-1:1;let a=n.rankHint?.[e],s=n.rankHint?.[t];if(null!=a&&null!=s&&a!==s)return s-a;let f=n.topoIndex.get(e)??0,d=n.topoIndex.get(t)??0;return f!==d?f-d:e.localeCompare(t)})[0]}function tC(e){let t=new Map;for(let n of e.nodes)t.set(n,new Set);for(let n of e.edges)t.get(n.src).add(n.dst),t.get(n.dst).add(n.src);return t}function tL(e){let t=new Map,n=0;for(let r of e.keys()){if(t.has(r))continue;let o=[r];for(;o.length>0;){let r=o.pop();if(!t.has(r))for(let l of(t.set(r,n),e.get(r)??[]))t.has(l)||o.push(l)}n++}return t}function tk(e){let t=new Map,n=new Map,r=[],o=[],l=0,a=(0,i.K)((i,s)=>{for(let f of(t.set(i,++l),n.set(i,l),e.get(i)??[]))f!==s&&(t.has(f)?(t.get(f)??0)<(t.get(i)??0)&&(r.push([i,f]),n.set(i,Math.min(n.get(i)??l,t.get(f)??l))):(r.push([i,f]),a(f,i),n.set(i,Math.min(n.get(i)??l,n.get(f)??l)),(n.get(f)??0)>=(t.get(i)??0)&&o.push(tT(i,f,r,o.length))))},"visit");for(let n of e.keys())t.has(n)||a(n,null);return o}function tT(e,t,n,r){let o=[],l=new Set;for(;n.length>0;){let r=n.pop();if(o.push(r),l.add(r[0]),l.add(r[1]),r[0]===e&&r[1]===t||r[0]===t&&r[1]===e)break}return{id:r,edges:o,nodes:[...l]}}function t$(e,t,n){let r=[...e.nodes],o=new Map;for(let[e,t]of r.entries())o.set(t,e);let l=r.length,a=Array(l).fill(-1),s=Array(l).fill(0),f=[],d=new Set;for(let e of r){let t=n.parent.get(e)??null,r=o.get(e);null!=r&&null==t&&(a[r]=-1,s[r]=0,d.has(e)||(d.add(e),f.push(e)))}for(;f.length>0;){let e=f.shift(),t=o.get(e);if(null!=t)for(let r of n.children.get(e)??[]){if(d.has(r))continue;let e=o.get(r);null!=e&&(a[e]=t,s[e]=s[t]+1,d.add(r),f.push(r))}}for(let e of r){if(d.has(e))continue;let t=o.get(e);null!=t&&(a[t]=-1,s[t]=0,d.add(e))}let u=Math.max(1,Math.ceil(Math.log2(Math.max(1,l)))+1),h=Array.from({length:u},()=>Array(l).fill(-1));for(let e=0;e{if(-1===e||-1===t)return -1;s[e]>t&1&&-1===(e=h[t][e]))return -1;if(e===t)return e;for(let n=u-1;n>=0;n--){let r=h[n][e],o=h[n][t];-1!==r&&-1!==o&&r!==o&&(e=r,t=o)}return h[0][e]},"lcaIndex"),c=Array.from({length:l},()=>new Map);for(let n of e.edges){let e=n.src,r=n.dst,l=t[e],i=t[r];if(null==l||null==i||(l>i&&([e,r]=[r,e],[l,i]=[i,l]),null==l||null==i||l===i))continue;let a=o.get(e),s=o.get(r);if(null==a||null==s)continue;let f=g(a,s);if(-1===f)continue;let d=c[f];for(let e=l;e{if(0!==t.size)for(let[n,r]of t)e.set(n,(e.get(n)??0)+r)},"mergeInto"),m=new Set,y=(0,i.K)(e=>{let r=o.get(e);m.add(e);let l=null==r?void 0:c[r],i=l?new Map(l):new Map;for(let r of n.children.get(e)??[]){let n=y(r),o=t[e];if(null!=o){let l=p.get(e);l||(l=new Map,p.set(e,l));let i=n.get(o)??0,a=t[r];null!=a&&a>o&&(i+=1),l.set(r,i)}x(i,n)}return i},"dfs");for(let e of n.roots)m.has(e)||y(e);for(let e of r)m.has(e)||y(e);return p}function tO(e,t,n){let r=new Map,o=(0,i.K)(e=>{let l=n[e]??0,i=[...t.get(e)??[]];for(let e of(i.sort(tR(n)),i)){o(e);let t=r.get(e);null!=t&&(l=Math.min(l,t))}r.set(e,l)},"annotate");for(let t of e)o(t);return r}function tR(e){return(t,n)=>{let r=e[t]??0,o=e[n]??0;return r===o?t.localeCompare(n):r-o}}function tE(e,t,n,r){let o=0;for(let e of t){let t=n[e]??0;t>o&&(o=t)}let l=Array.from({length:o+1},()=>[]),a=new Set,s=(0,i.K)(e=>{if(a.has(e))return;a.add(e);let t=n[e]??0;for(let n of(l[t]||(l[t]=[]),l[t].push(e),r(e)))s(n)},"emit");for(let t of e)s(t);for(let e of t)if(!a.has(e)){let t=n[e]??0;l[t]||(l[t]=[]),l[t].push(e),a.add(e)}return l}function tF(e){let t=[];for(let n of e){let e=new Set,r=[];for(let t of n)e.has(t)||(e.add(t),r.push(t));t.push(r)}return t}function tN(e,t,n,r){return o=>{let l=e.get(o)??[];if(0===l.length)return[];let i=t[o]??0,a=[],s=[],f=n.get(o);for(let e of l){let t=r.get(e)??i;t>i?a.push({child:e,min:t}):s.push(e)}return a.sort((e,t)=>e.min===t.min?e.child.localeCompare(t.child):e.min-t.min),s.sort((e,t)=>{let n=f?.get(e)??0,o=f?.get(t)??0;if(n!==o)return n-o;let l=r.get(e)??i,a=r.get(t)??i;return l!==a?l-a:e.localeCompare(t)}),[...a.map(e=>e.child),...s]}}function tA(e,t,n){let r=tw(e,{rankHint:t,laneOf:n}),{children:o,roots:l}=r;for(let t of e.nodes)o.has(t)||o.set(t,[]);let i=t$(e,t,r),a=[...l].sort(tR(t)),s=tO(a,o,t),f=tN(o,t,i,s),d=tE(a,e.nodes,t,f);return tF(d)}function tB(e,t,n){let r=new Set(e),o=new Set(t),l=tp(t),i=[];for(let e of n)r.has(e.src)&&o.has(e.dst)&&i.push(l.get(e.dst));return tx(i)}function tX(e,t,n){let r=[];for(let e of t){let t=n[e.src],o=n[e.dst];if(null==t||null==o||t===o)continue;let l=e.src,i=e.dst,a=t,s=o;t>o&&(l=e.dst,i=e.src,a=o,s=t);for(let t=a;t(n[t]??0)-(n[e]??0))){let a=n[i]??0;if(0===a)continue;let s=0;for(let e of r.get(i)??[])s=Math.max(s,(n[e]??0)+1);if(s>=a)continue;n[i]=s;let f=tX(tA(e,n,o),e.edges,n);f(t[e]??0)-(t[n]??0)||e.localeCompare(n))){let o=n(r);if(!o)continue;let l=e.edges.filter(e=>e.src===r);if(0===l.length)continue;let i=!1,a=0;for(let e of l){let t=n(e.dst);null==t||t===o?i=!0:a++}if(0===a||i)continue;let s=0,f=!1;for(let t of e.edges){if(t.dst!==r)continue;let e=n(t.src);e&&(e===o?f=!0:s++)}if(s>0||!f)continue;let d=t[r]??0,u=d+a,h=0;for(let n of e.edges)n.dst===r&&(h=Math.max(h,(t[n.src]??0)+1));let g=Math.max(d,h,u);g!==d&&(t[r]=g)}}function tP(e,t){let n=ti(e),r=tc(n)??[...n.nodes].sort(),o=t?.compactSingleInput??!1,l=tb(n),i=Object.create(null);for(let e of r){let r=ta(n,e),a=t?.ignoreCrossLaneEdges?r.filter(t=>{let n=l(t.src),r=l(e);return!n||!r||n===r}):r;if(0===a.length)i[e]=0;else if(o&&1===a.length){let t=a[0].src;l(t)!==l(e)?i[e]=i[t]??0:i[e]=(i[t]??0)+1}else{let t=-1/0;for(let e of a)t=Math.max(t,(i[e.src]??0)+1);i[e]=t===-1/0?0:t}}return t?.optimizeRanksByCrossings&&(i=tY(n,i)),t?.ignoreCrossLaneEdges&&tz(n,i),{layers:tA(n,i,l),rankOf:i,dummy:new Set}}function tG(e,t){let n=ti(e),r={...tP(n,{compactSingleInput:t?.compactSingleInput,ignoreCrossLaneEdges:t?.ignoreCrossLaneEdges,optimizeRanksByCrossings:t?.optimizeRanksByCrossings}).rankOf},o=tb(n),{preds:l,succs:a}=th(n,e=>{if(t?.ignoreCrossLaneEdges){let t=o(e.src),n=o(e.dst);if(t&&n&&t!==n)return!1}return!0}),s=tc(n)??[...n.nodes],f=[...s].reverse(),d=(0,i.K)((e,t)=>{let n=0;for(let t of l.get(e)??[])n=Math.max(n,(r[t]??0)+1);let o=1/0,i=a.get(e)??[];return i.length>0&&(o=Math.min(...i.map(e=>(r[e]??0)-1))),Number.isFinite(o)||(o=Math.max(n,t)),Math.min(Math.max(t,n),o)},"clampFeasible"),u=tI.GRAVITY_ITERATIONS,h=(0,i.K)(e=>{let t=!1;for(let n of e){let e=l.get(n)??[],o=a.get(n)??[];if(0===e.length&&0===o.length)continue;let i=Math.round(((e.length>0?e.reduce((e,t)=>e+(r[t]??0)+1,0)/e.length:r[n]??0)+(o.length>0?o.reduce((e,t)=>e+(r[t]??0)-1,0)/o.length:r[n]??0))/2),s=d(n,i);s!==r[n]&&(r[n]=s,t=!0)}return t},"relaxOrder");for(let e=0;e0){let n=Math.min(...t.map(e=>(r[e]??0)-1));(r[e]??0)>n&&(r[e]=n)}}return{layers:tg(n,s,r),rankOf:r,dummy:new Set}}function tD(e){let t=td(e),n=tf(e),r=tu(t),o=[];for(;r.length>0;){let e=[];for(let l of r)for(let r of(o.push(l),n.get(l)??[]))t.set(r,(t.get(r)??0)-1),(t.get(r)??0)===0&&e.push(r);r=e.sort((e,t)=>e.localeCompare(t))}return o.length===e.nodes.length?o:null}function t_(e,t){let n=ti(e),r=t?.direction==="LR"?tD(n)??[...n.nodes].sort():tc(n)??[...n.nodes].sort(),o=tb(n),l=(0,i.K)(e=>o(e)??e,"laneOf"),a=Object.create(null),s=new Map,f=(0,i.K)((e,n)=>t?.ignoreCrossLaneEdges??!0?+(l(e)===l(n)):1,"edgeWeight");for(let e of r){let t=n.nodeById.get(e);if(t?.isGroup)continue;let r=ta(n,e),o=0;if(r.length>0)for(let t of r){let n=t.src;o=Math.max(o,(a[n]??0)+f(n,e))}let i=l(e),d=Math.max(o,s.get(i)??0);a[e]=d,s.set(i,d+1)}return{layers:tg(n,r,a,{skipGroups:!0}),rankOf:a,dummy:new Set}}function tH(e,t){let n=ti(t),{rankOf:r}=e,o=e.layers.map(e=>[...e]),l=new Set(e.dummy?[...e.dummy]:[]),a=0,s=new Map(n.nodeById),f=(0,i.K)(e=>{let t=`placeholder-${a++}`;for(s.set(t,{id:t,isGroup:!1,isDummy:!0,width:0,height:0}),l.add(t);o.length<=e;)o.push([]);return o[e].push(t),r[t]=e,t},"addDummyAt"),d=[...n.edges].sort((e,t)=>e.id===t.id?e.src===t.src?e.dst.localeCompare(t.dst):e.src.localeCompare(t.src):e.id.localeCompare(t.id)),u=[];for(let e of d){let t=r[e.src]??0,n=r[e.dst]??0;if(n-t<=1){u.push(e);continue}let o=e.src;for(let r=t+1,l=0;r!n.nodes.includes(e))],edges:u,layout:n.layout,nodeById:s};return{layering:{layers:o,rankOf:r,dummy:l},graphWithDummies:h}}function tj(e){let t=e.length;if(0===t)return 1/0;let n=[...e].sort((e,t)=>e-t);return t%2==1?n[(t-1)/2]:.5*(n[t/2-1]+n[t/2])}function tV(e){return 0===e.length?1/0:e.reduce((e,t)=>e+t,0)/e.length}function tU(e,t,n,r){let o=new Map;for(let t of e)o.set(t,[]);for(let e of n)"down"===r?t.has(e.src)&&o.has(e.dst)&&o.get(e.dst).push(t.get(e.src)):t.has(e.dst)&&o.has(e.src)&&o.get(e.src).push(t.get(e.dst));return o}function tW(e,t,n){let r=n.get(e)??0,o=n.get(t)??0;return r!==o?r-o:e.localeCompare(t)}function tq(e,t,n){let r=new Set(e),o=new Set(t),l=tp(e),i=tp(t),a=[];for(let e of n)r.has(e.src)&&o.has(e.dst)&&a.push({u:l.get(e.src),v:i.get(e.dst)});return a.sort((e,t)=>e.u===t.u?e.v-t.v:e.u-t.u),tx(a.map(e=>e.v))}function tJ(e,t,n){return[...e].sort((e,r)=>{let o=tj(t.get(e)??[]),l=tj(t.get(r)??[]);return o===l?tW(e,r,n):isFinite(o)?isFinite(l)?o-l:-1:1})}function tZ(e,t,n,r,o,l){let i=tp(e),a=tp(t),s=tU(t,i,n,r);if(!o||!l||0===l.length)return tJ(t,s,a);let f=new Map;for(let e of t){let t=o(e),n=f.get(t)??[];n.push(e),f.set(t,n)}let d=[];for(let e of l){let t=f.get(e);if(!t||0===t.length)continue;let n=tJ(t,s,a);d.push(...n)}let u=f.get(null);if(u&&u.length>0)for(let e of tJ(u,s,a)){let t=tV(s.get(e)??[]),n=d.length;if(isFinite(t)){for(let[e,r]of d.entries())if(ta.has(e.src)&&s.has(e.dst)),u=f?n.filter(e=>s.has(e.src)&&f.has(e.dst)):void 0,h=(0,i.K)(t=>{let n=tq(e,t,d);return u&&r&&(n+=tq(t,r,u)),n},"crossingScore"),g=o?new Map:null;if(o&&g)for(let e of t)g.set(e,o(e));let c=!0,p=h(l);for(;c;){c=!1;for(let e=0;e+1[...e]),o=t.edges,l=tb(t),i=tK(t,n?.laneOrder);for(let e=0;e<3;e++){for(let e=1;e=0;e--)r[e]=tZ(r[e+1],r[e],o,"up",l,i),r[e]=tQ(r[e+1],r[e],o,r[e-1],l)}return{layers:r}}function t1(e,t,n){let r=n?.layerGap??tS.DEFAULT_LAYER_GAP,o=n?.nodeGap??tS.DEFAULT_NODE_GAP,l=n?.laneGap??2*o,a=n?.direction??"TB",s=e.layers,f=Object.create(null),d=Object.create(null),u=(0,i.K)(e=>t.nodeById.get(e),"getNode"),h=(0,i.K)(e=>u(e)?.width??0,"getWidth"),g=(0,i.K)(e=>u(e)?.height??0,"getHeight"),c=tb(t),p=tK(t,n?.laneOrder),x=s.map(e=>e.reduce((e,t)=>Math.max(e,g(t)),0)),m=[];if("LR"===a||"RL"===a)for(let e=0;e+1Math.max(e,h(t)),0),n=s[e+1].reduce((e,t)=>Math.max(e,h(t)),0),o=Math.max(0,(t+n)/2-(x[e]/2+x[e+1]/2)-r);m.push(o)}let y=new Set;for(let e of s)for(let t of e)y.add(c(t));let b=y.has(null),M=p.filter(e=>y.has(e)),K=[...b?[null]:[],...M],I=Object.create(null);for(let e of M)I[e]=0;for(let e of(b&&(I.null=0),s)){let t=Object.create(null),n=[];for(let r of e){let e=c(r);null===e?n.push(r):(t[e]||=[]).push(r)}for(let[e,n]of Object.entries(t)){let t=n.reduce((e,t)=>e+h(t),0)+o*Math.max(0,n.length-1);I[e]=Math.max(I[e]??0,t)}if(b&&n.length){let e=n.reduce((e,t)=>e+h(t),0)+o*Math.max(0,n.length-1);I.null=Math.max(I.null??0,e)}}let S=new Map;{let e=K.map(e=>(null===e?I.null:I[e])??0),t=-(e.reduce((e,t)=>e+t,0)+l*Math.max(0,K.length-1))/2;for(let n=0;nh(e)),l=r-(e.reduce((e,t)=>e+t,0)+o*(t.length-1))/2;for(let[r,i]of t.entries()){let t=e[r];f[i]=l+t/2,d[i]=w+n/2,l+=t+o}}}w+=n+r+(m[e]??0)}let v=new Map;for(let e of t.edges){let t=e.ref.id;v.has(t)||v.set(t,[]),v.get(t).push(e)}for(let[,e]of v){if(0===e.length)continue;let n=e[0].ref,r=n.start,o=n.end;if(null==r||null==o)continue;let l=Math.round(((f[r]??0)+(f[o]??0))/2),i=new Set;for(let t of e)i.add(t.src),i.add(t.dst);for(let e of i){if(e===r||e===o)continue;let n=t.nodeById.get(e);n?.isDummy&&(f[e]=l)}}return{x:f,y:d}}function t2(e){let t=0x811c9dc5;for(let n=0;n>>0}function t6(e){let t=e>>>0;return()=>{let e=t+=0x6d2b79f5;return e=Math.imul(e^e>>>15,1|e),(((e^=e+Math.imul(e^e>>>7,61|e))^e>>>14)>>>0)/0x100000000}}function t5(e,t){let n=[...e],r=t6(t);for(let e=n.length-1;e>0;e--){let t=Math.floor(r()*(e+1));[n[e],n[t]]=[n[t],n[e]]}return n}function t3(e,t){let n=0;for(let[r,o]of e.entries())n+=Math.abs(r-(t.get(o)??r));return n}function t8(e,t){let n=new Map;for(let[t,r]of e.entries())n.set(r,t);let r=0;for(let{a:e,b:o,weight:l}of t){let t=n.get(e),i=n.get(o);null!=t&&null!=i&&(r+=l*Math.abs(t-i))}return r}function t4(e){let t=tM(e);if(t.length<2)return[];let n=new Map(t.map((e,t)=>[e,t])),r=tb(e),o=new Map;for(let t of e.layout.edges??[]){if(t.isLayoutOnly)continue;let l="string"==typeof t.start?t.start:void 0,i="string"==typeof t.end?t.end:void 0;if(!l||!i||!e.nodeById.has(l)||!e.nodeById.has(i))continue;let a=r(l),s=r(i);if(!a||!s||a===s)continue;let f=n.get(a),d=n.get(s);if(null==f||null==d)continue;let[u,h]=f<=d?[a,s]:[s,a],g=`${u}\0${h}`,c=o.get(g);c?c.weight++:o.set(g,{a:u,b:h,weight:1})}return[...o.values()]}function t9(e,t,n){let r=[...e],o=t8(r,t),l=!0,i=0,a=Math.max(1,r.length);for(;l&&ie.a===t.a?e.b.localeCompare(t.b):e.a.localeCompare(t.a)).map(({a:e,b:t,weight:n})=>`${e}:${t}:${n}`).join("|");return t2(`${e.join("|")}#${r}#${n}`)}function nt(e,t={}){let n=tM(e);if(n.length<2)return n;let r=t4(e);if(0===r.length)return n;let o=new Map(n.map((e,t)=>[e,t])),l=t9(n,r,o),i=Math.max(0,t.restarts??8);for(let e=0;e1e-6&&3*s>=a?i>0?"bottom":"top":a>1e-6?l>0?"right":"left":n}function no(e,t){return 1e-6>Math.abs(e.to-t.from)||1e-6>Math.abs(e.to-t.to)?e.to:e.from}function nl(e,t){return"vertical"===e.orient?{x:e.coord,y:t}:{x:t,y:e.coord}}function ni(e,t){let n=e.nodes??[],r=e.edges??[],o=[];for(let e of r)e.isLayoutOnly||o.push({...e,__originalEdge:e});let l=new Map,a=new Map,s=[],f="LR"===t;for(let e of n)l.set(e.id,e);for(let e of n.filter(e=>e.isGroup&&!e.parentId)){let t={id:e.id},r=(0,i.K)(e=>{a.set(e.id,t),n.filter(t=>t.parentId===e.id).forEach(r)},"assignLane");r(e)}let d=n.filter(e=>!e.isGroup&&!e.isEdgeLabel).map(e=>{let t=e.width??10,n=e.height??10,r=e.x??0,o=e.y??0;return{nodeId:e.id,minX:r-t/2-8,maxX:r+t/2+8,minY:o-n/2-8,maxY:o+n/2+8,visualXHalfExtent:f?n/2+8:t/2+8}}),u=(0,i.K)((e,t,n,r)=>{let o=s.find(n=>n.orientation===e&&1>Math.abs(n.coord-t));return o||(o={id:`pipe-${e}-${t.toFixed(0)}`,orientation:e,coord:t,spanMin:n,spanMax:r,tracks:[]},s.push(o)),o.spanMin=Math.min(o.spanMin,n),o.spanMax=Math.max(o.spanMax,r),o},"getOrAddPipe"),h=(0,i.K)((e,t)=>{let n=e.width??10,r=e.height??10,o=e.x??0,l=e.y??0;switch(t){case"top":return{x:o,y:l-r/2};case"bottom":return{x:o,y:l+r/2};case"left":return{x:o-n/2,y:l};case"right":return{x:o+n/2,y:l}}},"portForSide"),g=(0,i.K)((e,t,n)=>h(e,nr(e,t,n?"bottom":"top")),"getOrthogonalPort"),c=[],p=[],x=new Set,m=(0,i.K)((e,t,n)=>{if(0===c.length)return 0;let r=1e-6>Math.abs(t.y-n.y),o=1e-6>Math.abs(t.x-n.x);if(!r&&!o)return 0;let l=0;if(r){let r=t.y,o=Math.min(t.x,n.x)-1e-6,i=Math.max(t.x,n.x)+1e-6;if(i<=o)return 0;for(let t of c)t.edgeIndex!==e&&"vertical"===t.orientation&&!(t.pipe.coordi)&&t.from-1e-6<=r&&t.to+1e-6>=r&&(l+=1e3)}else if(o){let r=t.x,o=Math.min(t.y,n.y)-1e-6,i=Math.max(t.y,n.y)+1e-6;if(i<=o)return 0;for(let t of c)t.edgeIndex!==e&&"horizontal"===t.orientation&&!(t.pipe.coordi)&&t.from-1e-6<=r&&t.to+1e-6>=r&&(l+=1e3)}return l},"crossingPenalty"),y=o.map((e,t)=>{if(!e.start||!e.end)return{idx:t,crossLane:0,dx:0,dy:0};let n=l.get(e.start),r=l.get(e.end),o=a.get(e.start),i=a.get(e.end),s=o&&i&&o.id!==i.id?1:0;return{idx:t,crossLane:s,dx:n&&r?Math.abs((r.x??0)-(n.x??0)):0,dy:n&&r?Math.abs((r.y??0)-(n.y??0)):0}}).sort((e,t)=>{if(e.crossLane!==t.crossLane)return t.crossLane-e.crossLane;let n=e.dx+e.dy,r=t.dx+t.dy;return Math.abs(n-r)>1?n-r:e.idx-t.idx}).map(e=>e.idx),b=(0,i.K)((e,t,n,r)=>{let o=Math.min(e.x,t.x),l=Math.max(e.x,t.x),i=Math.min(e.y,t.y),a=Math.max(e.y,t.y);return!!d.find(s=>(!n||s.nodeId!==n)&&(!r||s.nodeId!==r)&&(Math.abs(e.x-t.x)>1e-6?s.minYe.y&&s.maxX>o&&s.minXe.x&&s.maxY>i&&s.minYnr(e,t,"bottom"),"determineSide"),S=new Map;for(let[e,t]of o.entries()){if(!t.start||!t.end||t.start===t.end||t.points&&t.points.length>0)continue;let n=l.get(t.start),r=l.get(t.end);if(!n||!r)continue;let o=(r.x??0)-(n.x??0),i=(r.y??0)-(n.y??0);S.set(e,{edgeIdx:e,srcId:t.start,dstId:t.end,srcSide:I(n,{x:r.x??0,y:r.y??0}),dstSide:I(r,{x:n.x??0,y:n.y??0}),absDx:Math.abs(o),absDy:Math.abs(i),dxSign:Math.sign(o),dySign:Math.sign(i)})}let w=(0,i.K)(e=>"top"===e.srcSide||"bottom"===e.srcSide?0===e.absDx?1/0:e.absDy/e.absDx:0===e.absDy?1/0:e.absDx/e.absDy,"preferenceStrength"),v=(0,i.K)(e=>"top"===e.srcSide||"bottom"===e.srcSide?e.dxSign>=0?"right":"left":e.dySign>=0?"bottom":"top","secondarySide"),C=new Map;for(let e of S.values()){let t=`${e.srcId}:${e.srcSide}`;C.has(t)||C.set(t,[]),C.get(t).push(e)}let L=new Map,k=(0,i.K)((e,t)=>`${e}:${t}`,"loadKey");for(let e of S.values())L.set(k(e.srcId,e.srcSide),(L.get(k(e.srcId,e.srcSide))??0)+1),L.set(k(e.dstId,e.dstSide),(L.get(k(e.dstId,e.dstSide))??0)+1);for(let e of C.values())if(!(e.length<2)){e.sort((e,t)=>{let n=w(e),r=w(t);return Math.abs(n-r)>1e-9?r-n:e.edgeIdx-t.edgeIdx});for(let t=1;t=o||(L.set(k(n.srcId,n.srcSide),o-1),L.set(k(n.srcId,r),l+1),n.srcSide=r)}}let T=(0,i.K)(e=>{let t=e?.shape;return"question"===t||"diamond"===t},"isDiamondNode"),$=new Map;for(let e of S.values())$.has(e.dstId)||$.set(e.dstId,new Set),$.get(e.dstId).add(e.dstSide);for(let e of S.values()){if(!T(l.get(e.srcId)))continue;let t=$.get(e.srcId);if(!t?.has(e.srcSide))continue;let n=v(e);if(t.has(n)||(L.get(k(e.srcId,n))??0)>0)continue;let r=L.get(k(e.srcId,e.srcSide))??0;L.set(k(e.srcId,e.srcSide),Math.max(0,r-1)),L.set(k(e.srcId,n),1),e.srcSide=n}for(let e of S.values()){let{edgeIdx:t,srcId:n,dstId:r,srcSide:o,dstSide:i}=e,a=l.get(n),s=l.get(r),f=`${n}:${o}:src`,d="top"===o||"bottom"===o?s.x??0:s.y??0;M.has(f)||M.set(f,[]),M.get(f).push({edgeIdx:t,oppositeCoord:d});let u=`${r}:${i}:dst`,h="top"===i||"bottom"===i?a.x??0:a.y??0;M.has(u)||M.set(u,[]),M.get(u).push({edgeIdx:t,oppositeCoord:h})}let O=new Map;for(let[e,t]of M){if(t.length<2)continue;t.sort((e,t)=>e.oppositeCoord-t.oppositeCoord);let n=e.split(":"),r=n.slice(0,-2).join(":"),o=n[n.length-2],i=n[n.length-1],a=l.get(r);if(!a)continue;let s="left"===o||"right"===o?a.height??10:a.width??10,f=a.shape,d=Math.min(20,Math.max(8,("question"===f||"diamond"===f?.3*s:s)/(t.length+1))),u=-(d*(t.length-1))/2;for(let[e,n]of t.entries()){let t=u+e*d,r=`${n.edgeIdx}:${i}`;O.set(r,t)}}let R=(0,i.K)(e=>!!o[e]?.labelNodeId,"edgeHasLabelNode"),E=(0,i.K)((e,t)=>!!e&&((M.get(`${e}:${t}:src`)??[]).some(({edgeIdx:e})=>R(e))||(M.get(`${e}:${t}:dst`)??[]).some(({edgeIdx:e})=>R(e))),"faceHasLabelNode"),F=(0,i.K)((e,t,n)=>"top"===t||"bottom"===t?{x:e.x+n,y:e.y}:{x:e.x,y:e.y+n},"applyPortOffset"),N=(0,i.K)((e,t,n)=>{let r=S.get(e),o={x:n.x??0,y:n.y??0},l={x:t.x??0,y:t.y??0},i=r?.srcSide??I(t,o),a=r?.dstSide??I(n,l),s=r?h(t,r.srcSide):g(t,o,!0),f=r?h(n,r.dstSide):g(n,l,!1),d=O.get(`${e}:src`),u=O.get(`${e}:dst`);return void 0!==d&&(s=F(s,i,d)),void 0!==u&&(f=F(f,a,u)),{pSrcPort:s,pDstPort:f,srcSide:i,dstSide:a}},"portsForEdge");for(let e of y){let t=o[e];if(p[e]=[],!t.start||!t.end||t.points&&t.points.length>0||t.start===t.end)continue;let n=l.get(t.start),r=l.get(t.end);if(!n||!r)continue;let{pSrcPort:a,pDstPort:h,srcSide:g,dstSide:y}=N(e,n,r),I={...a},S={...h},w="top"===g||"bottom"===g,v="top"===y||"bottom"===y;w?I.y=a.y>(n.y??0)?a.y+20:a.y-20:I.x=a.x>(n.x??0)?a.x+20:a.x-20,v?S.y=h.y>(r.y??0)?h.y+20:h.y-20:S.x=h.x>(r.x??0)?h.x+20:h.x-20;let C=(0,i.K)((e,t)=>{for(let n of d)if(!t.includes(n.nodeId)&&e.x>n.minX&&e.xn.minY&&e.y{if(o){let o=e.y>(t.y??0);return{x:(n.x??0)>=e.x?r.maxX+15:r.minX-15,y:o?r.maxY+15:r.minY-15,leavesPositiveSide:o}}let l=e.x>(t.x??0),i=(n.y??0)>=e.y;return{x:l?r.maxX+15:r.minX-15,y:i?r.maxY+15:r.minY-15,leavesPositiveSide:l}},"obstacleDetour"),k=[],T=[t.start,t.end],$=C(I,T);if($.inside&&$.obstacle){let e=$.obstacle;if(w){let t=L(a,n,r,e,!0);I.x=t.x,I.y=t.y;let o=t.leavesPositiveSide?Math.min(e.minY-2,a.y+20):Math.max(e.maxY+2,a.y-20);k=[{x:a.x,y:o},{x:t.x,y:o},{x:t.x,y:t.y}]}else{let t=L(a,n,r,e,!1),o=t.leavesPositiveSide?Math.min(e.minX-2,a.x+20):Math.max(e.maxX+2,a.x-20);I.x=t.x,I.y=t.y,k=[{x:o,y:a.y},{x:o,y:t.y},{x:t.x,y:t.y}]}}let R=[],F=C(S,T);if(F.inside&&F.obstacle){let e=F.obstacle;if(v){let t=L(h,r,n,e,!0);S.x=t.x,S.y=t.y,R=[{x:t.x,y:t.y},{x:h.x,y:t.y}]}else{let t=L(h,r,n,e,!1);S.x=t.x,S.y=t.y,R=[{x:t.x,y:t.y},{x:t.x,y:h.y}]}}if(0===k.length&&0===R.length){let n=15>Math.abs(I.x-S.x),r=15>Math.abs(I.y-S.y),o=void 0!==O.get(`${e}:src`)||void 0!==O.get(`${e}:dst`),l=(M.get(`${t.start??""}:${g}:src`)?.length??0)+(M.get(`${t.start??""}:${g}:dst`)?.length??0),i=(M.get(`${t.end??""}:${y}:src`)?.length??0)+(M.get(`${t.end??""}:${y}:dst`)?.length??0),s=l>1||i>1,f=K.get(t.start??"")??0,d=K.get(t.end??"")??0,u=l>1&&E(t.start,g)||i>1&&E(t.end,y),p=l<=1||f<=2,m=i<=1||d<=2,w=s&&!u&&p&&m;if((n||r)&&!o&&(!s||w)&&!b(a,h,t.start,t.end)){t.points=[{...a},{...I},{...S},{...h}],x.add(e);let n=r?"horizontal":"vertical",o=r?a.y:a.x,l=r?Math.min(a.x,h.x):Math.min(a.y,h.y),i=r?Math.max(a.x,h.x):Math.max(a.y,h.y),s={id:`fast-path-${n}-${o.toFixed(0)}-${e}`,orientation:n,coord:o,spanMin:l,spanMax:i,tracks:[]};c.push({edgeIndex:e,segmentIndex:0,orientation:n,pipe:s,trackIndex:0,from:l,to:i});continue}}let A=u("vertical",I.x,I.y,I.y);I.x=A.coord;let B=u("vertical",S.x,S.y,S.y);S.x=B.coord;let X=Math.min(I.x,S.x)-50,Y=Math.max(I.x,S.x)+50,z=Math.min(I.y,S.y)-50,P=Math.max(I.y,S.y)+50;for(let e of d){let t=Math.min(I.x,S.x),n=Math.max(I.x,S.x),r=Math.min(I.y,S.y),o=Math.max(I.y,S.y);e.minXt&&e.minYr&&(X=Math.min(X,e.minX-25),Y=Math.max(Y,e.maxX+25),z=Math.min(z,e.minY-25),P=Math.max(P,e.maxY+25))}for(let e of d)e.maxXY||e.maxYP||(u("horizontal",e.minY-15,X,Y),u("horizontal",e.maxY+15,X,Y),u("vertical",e.minX-15,z,P),u("vertical",e.maxX+15,z,P));u("horizontal",I.y,X,Y),u("horizontal",S.y,X,Y);let G=s.filter(e=>"horizontal"===e.orientation&&e.coord>=z&&e.coord<=P),D=s.filter(e=>"vertical"===e.orientation&&e.coord>=X&&e.coord<=Y),_=(0,i.K)((e,t)=>`${e.toFixed(1)},${t.toFixed(1)}`,"getKey"),H=_(I.x,I.y),j=_(S.x,S.y),V=new Map,U=new Map,W=new Map,q=new Set,J=[];V.set(H,0),W.set(H,"n"),J.push({key:H,f:Math.hypot(S.x-I.x,S.y-I.y),pt:I}),q.add(H);let Z=[],Q=(0,i.K)((e,n)=>b(e,n,t.start,t.end),"checkSegmentBlocked"),ee={x:S.x,y:I.y},et=Q(I,ee),en=Q(ee,S),er=et||en,eo={x:I.x,y:S.y},el=Q(I,eo),ei=Q(eo,S),ea=el||ei;if(er?ea||(Z=1e-6>Math.abs(I.x-S.x)?[I,S]:[I,eo,S]):Z=1e-6>Math.abs(I.y-S.y)||1e-6>Math.abs(I.x-S.x)?[I,S]:[I,ee,S],0===Z.length)for(;J.length>0;){J.sort((e,t)=>e.f-t.f);let n=J.shift();if(q.delete(n.key),n.key===j){let e=j,t=S;for(Z=[t];U.has(e);){let n=U.get(e);Z.unshift(n),t=n,e=_(n.x,n.y)}break}let r=n.pt.x,o=n.pt.y,l=D.sort((e,t)=>e.coord-t.coord),i=l.findIndex(e=>1>Math.abs(e.coord-r)),a=G.sort((e,t)=>e.coord-t.coord),s=a.findIndex(e=>1>Math.abs(e.coord-o)),f=[];for(let u of(i>0&&f.push({x:l[i-1].coord,y:o}),i>=0&&i0&&f.push({x:r,y:a[s-1].coord}),s>=0&&se.nodeId!==t.start&&e.nodeId!==t.end&&(l!==i?e.minYo&&e.maxX>l&&e.minXr&&e.maxY>a&&e.minY10&&b<-5||x<-10&&b>5)&&(c=100*Math.abs(b)),(p>10&&y<-5||p<-10&&y>5)&&(c+=50*Math.abs(y));let M=0,K=W.get(n.key)??"n",w=Math.abs(y)>1e-6?"h":"v";"n"!==K&&K!==w&&(M=50);let v=h+g+c+M,C=(V.get(n.key)??1/0)+v,L=Math.abs(S.x-u.x)+Math.abs(S.y-u.y);if(C<(V.get(f)??1/0))if(U.set(f,n.pt),V.set(f,C),W.set(f,w),q.has(f)){let e=J.findIndex(e=>e.key===f);-1!==e&&(J[e].f=C+L)}else J.push({key:f,f:C+L,pt:u}),q.add(f)}}if(0===Z.length&&(Z=[I,{x:I.x,y:S.y},S]),Z.length>4){let e=Z[0],t=Z[Z.length-1],n=Math.min(e.x,t.x),r=Math.max(e.x,t.x),o=Math.min(e.y,t.y),l=Math.max(e.y,t.y);for(let e of Z)n=Math.min(n,e.x),r=Math.max(r,e.x),o=Math.min(o,e.y),l=Math.max(l,e.y);let a=r>Math.max(e.x,t.x),s=ne.minXn&&e.minYo);if(i.length>0){let n=Math.max(e.x,t.x);for(let e of i){let t=(e.minX+e.maxX)/2;void 0===e.visualXHalfExtent||isNaN(e.visualXHalfExtent)||(n=Math.max(n,t+e.visualXHalfExtent+15))}isNaN(n)||(r=n)}}if(s){let r=d.filter(n=>n.minXMath.min(e.y,t.y));if(r.length>0){let o=Math.min(e.x,t.x);for(let e of r)o=Math.min(o,(e.minX+e.maxX)/2-e.visualXHalfExtent-15);n=o}}}let u=(0,i.K)(n=>{let r=t.y>e.y,o=d.filter(n=>{let r=Math.min(e.x,t.x)n.minX,o=Math.min(e.y,t.y)n.minY;return r&&o}),l=o;if(f&&o.length>0){let e=o.filter(e=>e.minXn);e.length>0&&(l=e)}if(0===l.length)return t.y;if(r){let e=Math.max(...l.map(e=>e.maxY))+15;if(ee.minY))-15;if(e>t.y+1e-6)return e}return t.y},"findBestReturnY"),h=(0,i.K)(n=>{let r=u(n),o={x:n,y:e.y},l={x:n,y:r},i={x:t.x,y:r},a=Q(e,o),s=Q(o,l),f=Q(l,i),d=r!==t.y&&Q(i,t);return a||s||f||d?null:1e-6>Math.abs(r-t.y)?[e,o,l,t]:[e,o,l,i,t]},"trySimplifyWithDetourX"),g=a&&!s?h(r):s&&!a?h(n):null;g&&(Z=g)}let es=[a,...k,...Z,...R.reverse(),h];if(es.length>=3){let e=es[es.length-1],t=es[es.length-2],n=es[es.length-3],r=1e-6>Math.abs(n.y-t.y)&&1e-6>Math.abs(t.y-e.y),o=1e-6>Math.abs(n.x-t.x)&&1e-6>Math.abs(t.x-e.x);if(r){let r=Math.sign(t.x-n.x),o=Math.sign(e.x-n.x);0!==r&&r===o&&Math.abs(t.x-n.x)>Math.abs(e.x-n.x)&&es.splice(-2,1)}else if(o){let r=Math.sign(t.y-n.y),o=Math.sign(e.y-n.y);0!==r&&r===o&&Math.abs(t.y-n.y)>Math.abs(e.y-n.y)&&es.splice(-2,1)}}let ef=[es[0]];for(let e=1;eMath.abs(t.y-n.y)&&1e-6>Math.abs(n.y-r.y)){n.x>t.x!=r.x>n.x&&ef.push(n);continue}if(1e-6>Math.abs(t.x-n.x)&&1e-6>Math.abs(n.x-r.x)){n.y>t.y!=r.y>n.y&&ef.push(n);continue}ef.push(n)}ef.push(es[es.length-1]);for(let t=0;tMath.abs(n.x-r.x)?"vertical":"horizontal",l="vertical"===o?n.x:n.y,i="vertical"===o?Math.min(n.y,r.y):Math.min(n.x,r.x),a="vertical"===o?Math.max(n.y,r.y):Math.max(n.x,r.x),s=u(o,l,i,a),f={edgeIndex:e,segmentIndex:t,orientation:o,pipe:s,trackIndex:0,from:i,to:a};c.push(f),p[e].push(c.length-1),s.tracks[0]||(s.tracks[0]={index:0,coord:s.coord,segments:[]}),s.tracks[0].segments.push({edgeIndex:e,segmentIndex:t,from:i,to:a})}}let A=(0,i.K)((e,t)=>e.from{let o=!r.segments.some(n=>(n.edgeIndex!==t.edgeIndex||n.segmentIndex!==t.segmentIndex)&&A(n,e)),l=!n.segments.some(n=>(n.edgeIndex!==e.edgeIndex||n.segmentIndex!==e.segmentIndex)&&A(n,t));return!!o&&!!l&&(e.trackIndex=r.index,t.trackIndex=n.index,n.segments=[...n.segments.filter(t=>t.edgeIndex!==e.edgeIndex||t.segmentIndex!==e.segmentIndex),{edgeIndex:t.edgeIndex,segmentIndex:t.segmentIndex,from:t.from,to:t.to}],r.segments=[...r.segments.filter(e=>e.edgeIndex!==t.edgeIndex||e.segmentIndex!==t.segmentIndex),{edgeIndex:e.edgeIndex,segmentIndex:e.segmentIndex,from:e.from,to:e.to}],!0)},"trySwapSegmentsAcrossTracks"),X=(0,i.K)(e=>{let t=e.tracks.length;return e.tracks[t]={index:t,coord:e.coord,segments:[]},t},"createNewTrack"),Y=(0,i.K)((e,t)=>{let n=e.pipe.tracks[e.trackIndex];n.segments=n.segments.filter(t=>t.edgeIndex!==e.edgeIndex||t.segmentIndex!==e.segmentIndex),e.trackIndex=t,e.pipe.tracks[t].segments.push({edgeIndex:e.edgeIndex,segmentIndex:e.segmentIndex,from:e.from,to:e.to})},"moveSegmentToTrack"),z=(0,i.K)((e,t)=>{for(let n of p[e.edgeIndex]){let r=c[n];r.pipe===e.pipe&&Y(r,t)}},"moveSegmentChainToTrack"),P=(0,i.K)(e=>{let t=p[e.edgeIndex],n=t.indexOf(c.indexOf(e)),r=[];return n>0&&r.push(c[t[n-1]]),n{if(e.orientation===t.orientation)return!1;let n="horizontal"===e.orientation?e:t,r="horizontal"===e.orientation?t:e;return r.pipe.coord>n.from&&r.pipe.coordr.from&&n.pipe.coord{for(let n of e.tracks)if(!n.segments.some(e=>(e.edgeIndex!==t.edgeIndex||e.segmentIndex!==t.segmentIndex)&&A(e,t)))return n.index;return -1},"findAvailableTrack"),_=(0,i.K)((e,t)=>{if(e.trackIndex===t.trackIndex)return A(e,t);let n=P(e),r=P(t);return n.some(e=>r.some(t=>G(e,t)))},"segmentsConflict"),H=(0,i.K)((e,t,n)=>{if(B(e,t,e.pipe.tracks[e.trackIndex],t.pipe.tracks[t.trackIndex]))return;let r=D(e.pipe,t);n(t,-1!==r?r:X(e.pipe))},"resolveTrackConflict"),j=(0,i.K)(e=>{let t=0;for(let n=0;n{if(V.has(e))return V.get(e);let t=p[e];if(0===t.length){let t={dest:0,deviation:0,base:0,delta:0};return V.set(e,t),t}let n=c[t[0]].pipe.coord,r=n;for(let e=1;eMath.abs(t-n)?e:t;break}}let o=Math.abs(r-n),l={dest:r,deviation:o,base:n,delta:r-n};return V.set(e,l),l},"getDestInfo"),W=(0,i.K)(()=>{let e=0,t=new Map;for(let[e,n]of o.entries())0!==p[e].length&&n.start&&(t.has(n.start)||t.set(n.start,[]),t.get(n.start).push(e));let n=(0,i.K)(e=>{let t=o[e];if(!t.start||!t.end)return 0;let n=l.get(t.start),r=l.get(t.end);return n&&r?Math.abs((r.x??0)-(n.x??0))+Math.abs((r.y??0)-(n.y??0)):0},"getEdgeDistance");for(let r of t.values())r.sort((e,t)=>{let r=U(e),o=U(t);if(Math.abs(r.deviation-o.deviation)>1)return r.deviation-o.deviation;if(Math.abs(r.dest-o.dest)>1)return r.dest-o.dest;let l=n(e),i=n(t);if(Math.abs(l-i)>1)return i-l;let a=p[e].length,s=p[t].length;if(a!==s)return a-s;if(1===a){let n=p[e][0],r=p[t][0];if(c[n]&&c[r]){let e=c[n],t=c[r],o=Math.abs(e.to-e.from),l=Math.abs(t.to-t.from);if(Math.abs(o-l)>1)return o-l}}return 0}),e+=j(r.map(e=>c[p[e][0]]));return e},"fixSourceHandleCrossings"),q=(0,i.K)(()=>{let e=0,t=new Map;for(let[e,n]of o.entries())0!==p[e].length&&n.end&&(t.has(n.end)||t.set(n.end,[]),t.get(n.end).push(e));for(let n of t.values())n.sort((e,t)=>{let n=(0,i.K)(e=>{let t=p[e];if(t.length<2)return 0;let n=c[t[t.length-2]];return Math.abs(n.to-n.from)},"getDist"),r=n(e),o=n(t);return Math.abs(r-o)>.1?r-o:e-t}),e+=j(n.map(e=>c[p[e][p[e].length-1]]));return e},"fixTargetHandleCrossings"),J=(0,i.K)(()=>{let e=0;for(let t of s){let n=[];for(let e of t.tracks)for(let t of e.segments){let e=p[t.edgeIndex].find(e=>c[e].segmentIndex===t.segmentIndex);void 0!==e&&n.push(c[e])}n.sort((e,t)=>e.edgeIndex-t.edgeIndex||e.segmentIndex-t.segmentIndex);for(let t=0;t{e.segments.forEach(n=>{t.push({edgeIndex:n.edgeIndex,segmentIndex:n.segmentIndex,trackIndex:e.index,from:n.from,to:n.to})})}),t.sort((e,t)=>e.from-t.from);let n=[];if(t.length>0){let e=[t[0]],r=t[0].to;for(let o=1;on.add(e.trackIndex));let r=new Map;t.forEach(e=>{let t=U(e.edgeIndex);r.set(e.trackIndex,(r.get(e.trackIndex)??0)+t.delta)});let o=[...n].filter(e=>(r.get(e)??0)<-1),l=[...n].filter(e=>(r.get(e)??0)>1),a=[...n].filter(e=>1>=Math.abs(r.get(e)??0));o.sort((e,t)=>(r.get(t)??0)-(r.get(e)??0)),l.sort((e,t)=>(r.get(e)??0)-(r.get(t)??0));let s=(0,i.K)((n,r)=>{t.filter(e=>e.trackIndex===n).forEach(t=>{let n=x.has(t.edgeIndex)?e.coord:r;Q.set(`${t.edgeIndex}-${t.segmentIndex}`,n)})},"assignCoord"),f=0;for(let t of o)f++,s(t,e.coord-10*f);if(0===a.length&&n.size>0){let e=[...n].sort((e,t)=>Math.abs(r.get(e)??0)-Math.abs(r.get(t)??0))[0],t=o.indexOf(e);-1!==t&&o.splice(t,1);let i=l.indexOf(e);-1!==i&&l.splice(i,1),a.push(e)}let d=0;for(let t of a){if(0===d)s(t,e.coord);else{let n=d%2==1?1:-1,r=Math.ceil(d/2);s(t,e.coord+n*r*5)}d++}let u=0;for(let t of l)u++,s(t,e.coord+10*u)}}for(let[e,t]of o.entries()){let n=p[e]??[];if(0===n.length)continue;let r=[],{pSrcPort:o,pDstPort:i}=N(e,l.get(t.start),l.get(t.end)),a=n.map(e=>{let t=c[e],n=Q.get(`${t.edgeIndex}-${t.segmentIndex}`)??t.pipe.coord;return{orient:t.orientation,coord:n,from:t.from,to:t.to}});r.push(o);for(let e=0;e1e-6&&r.push(nl(t,o)),s&&i.orient===t.orient)if(Math.abs(t.coord-i.coord)>1e-6){let e="vertical"===t.orient?(o+i.from)/2:no(t,i);r.push(nl(t,e),nl(i,e))}else(0===e||e===a.length-2)&&r.push(nl(t,no(t,i)));else if(s)r.push(nl(t,i.coord));else{let e=Math.abs(t.from-o)1e-6||Math.abs(s.y-i.y)>1e-6)&&r.push(i);let f=[];r.length>0&&f.push(r[0]);for(let e=1;e1e-6||Math.abs(t.y-n.y)>1e-6)&&f.push(t)}t.points=f}for(let e of o){let t=e.__originalEdge;t&&e.points&&(t.points=e.points)}e.edges=(e.edges??[]).filter(e=>!e.isLayoutOnly);let ee=(0,i.K)((e,t)=>{let n=t.x??0,r=t.y??0,o=t.width??0,l=t.height??0;if(o<=0||l<=0)return e;let i=n-o/2,a=n+o/2,s=r-l/2,f=r+l/2;if(e.xa||e.yf)return e;let d=e.x-i,u=a-e.x,h=e.y-s,g=Math.min(d,u,h,f-e.y);return g===d?{x:i,y:e.y}:g===u?{x:a,y:e.y}:g===h?{x:e.x,y:s}:{x:e.x,y:f}},"nodeBoundaryClamp");for(let t of e.edges){let e=t.points;if(!e||e.length<2)continue;let n=t.start,r=t.end,o=n?l.get(n):void 0,i=r?l.get(r):void 0;o&&(e[0]=ee(e[0],o)),i&&(e[e.length-1]=ee(e[e.length-1],i))}return e}function na(e){return e.direction??"TB"}function ns(e){let t=k(e),n=e.config.flowchart?.nodeSpacing??40,r=e.config.flowchart?.rankSpacing??100,o=e.config.swimlane?.ignoreCrossLaneEdges??!0,l=e.config.swimlane?.optimizeRanksByCrossings??!0,i=e.config.swimlane?.automaticLaneOrdering??!1,a=na(e),{ordered:s,coordinates:f}=nn(t,{nodeGap:n,layerGap:r,ignoreCrossLaneEdges:o,optimizeRanksByCrossings:l,automaticLaneOrdering:i,direction:a});for(let o of(T(t,s,f,{nodeGap:n,layerGap:r}),e.edges??[]))delete o.points;for(let t of(ni(e,a),e.edges??[]))t.curve&&"basis"!==t.curve||(t.curve="rounded");return tl(e,a),to(e),a}function nf(e){L(e);let t=$(e);e.nodes=t.nodes,e.edges=t.edges}(0,i.K)(tw,"buildDrivingTree"),(0,i.K)(tv,"chooseParent"),(0,i.K)(tC,"buildAdjacency"),(0,i.K)(tL,"assignComponents"),(0,i.K)(tk,"computeBlocks"),(0,i.K)(tT,"popBlock"),(0,i.K)(t$,"computeSubtreeCrossCounts"),(0,i.K)(tO,"annotateMinimumLayers"),(0,i.K)(tR,"compareByRankThenId"),(0,i.K)(tE,"emitNodesInTreeOrder"),(0,i.K)(tF,"deduplicateLayers"),(0,i.K)(tN,"createChildOrderer"),(0,i.K)(tA,"buildMultitreeLayerOrder"),(0,i.K)(tB,"countCrossingsBetweenAdjacent"),(0,i.K)(tX,"totalCrossings"),(0,i.K)(tY,"optimizeRanksByCrossings"),(0,i.K)(tz,"adjustCrossLaneSources"),(0,i.K)(tP,"assignLayers_LongestPath"),(0,i.K)(tG,"assignLayers_Gravity"),(0,i.K)(tD,"topoSortByGenerationIfAcyclic"),(0,i.K)(t_,"assignLayers_LaneAwareCompact"),(0,i.K)(tH,"makeProperLayering"),(0,i.K)(tj,"median"),(0,i.K)(tV,"barycenter"),(0,i.K)(tU,"neighborPositionsFor"),(0,i.K)(tW,"currentOrderTieBreak"),(0,i.K)(tq,"countCrossingsBetweenAdjacent"),(0,i.K)(tJ,"sortByHeuristic"),(0,i.K)(tZ,"reorderLayer"),(0,i.K)(tQ,"transposeImprove"),(0,i.K)(t0,"orderLayers"),(0,i.K)(t1,"assignCoordinates"),(0,i.K)(t2,"hashString"),(0,i.K)(t6,"mulberry32"),(0,i.K)(t5,"deterministicShuffle"),(0,i.K)(t3,"sourceDistance"),(0,i.K)(t8,"laneArrangementCost"),(0,i.K)(t4,"buildWeightedLaneEdges"),(0,i.K)(t9,"greedySwitch"),(0,i.K)(t7,"isBetterCandidate"),(0,i.K)(ne,"seedForRestart"),(0,i.K)(nt,"optimizeTopLaneOrder"),(0,i.K)(nn,"sugiyamaLayout"),(0,i.K)(nr,"chooseOrthogonalSide"),(0,i.K)(no,"sharedLineEndpointCoord"),(0,i.K)(nl,"pointOnLine"),(0,i.K)(ni,"routeEdgesOrthogonal"),(0,i.K)(na,"getSwimlaneDirection"),(0,i.K)(ns,"runSwimlaneLayoutCore"),(0,i.K)(nf,"prepareSwimlaneLayout");var nd=(0,r.xY)({prepareLayout:nf,runLayoutCore:ns,afterPaint:S})}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/5076.b4eae12a60961079.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/5076.b4eae12a60961079.js deleted file mode 100644 index c90df7437..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/5076.b4eae12a60961079.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5076],{65076:(t,e,a)=>{a.d(e,{diagram:()=>R});var i,r=a(88348);a(74773),a(24002),a(33807),a(33332),a(48734),a(11232),a(13031),a(69981),a(5663),a(82142),a(29278);var d=a(13892),n=a(69301),s=a(98999),o=a(91158),g=a(70668),p=a(38235),l=a(31990),h=(0,o.K)(t=>t.append("circle").attr("class","start-state").attr("r",(0,n.D7)().state.sizeUnit).attr("cx",(0,n.D7)().state.padding+(0,n.D7)().state.sizeUnit).attr("cy",(0,n.D7)().state.padding+(0,n.D7)().state.sizeUnit),"drawStartState"),c=(0,o.K)(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",(0,n.D7)().state.textHeight).attr("class","divider").attr("x2",2*(0,n.D7)().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),x=(0,o.K)((t,e)=>{let a=t.append("text").attr("x",2*(0,n.D7)().state.padding).attr("y",(0,n.D7)().state.textHeight+2*(0,n.D7)().state.padding).attr("font-size",(0,n.D7)().state.fontSize).attr("class","state-title").text(e.id),i=a.node().getBBox();return t.insert("rect",":first-child").attr("x",(0,n.D7)().state.padding).attr("y",(0,n.D7)().state.padding).attr("width",i.width+2*(0,n.D7)().state.padding).attr("height",i.height+2*(0,n.D7)().state.padding).attr("rx",(0,n.D7)().state.radius),a},"drawSimpleState"),D=(0,o.K)((t,e)=>{let a=(0,o.K)(function(t,e,a){let i=t.append("tspan").attr("x",2*(0,n.D7)().state.padding).text(e);a||i.attr("dy",(0,n.D7)().state.textHeight)},"addTspan"),i=t.append("text").attr("x",2*(0,n.D7)().state.padding).attr("y",(0,n.D7)().state.textHeight+1.3*(0,n.D7)().state.padding).attr("font-size",(0,n.D7)().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),r=i.height,d=t.append("text").attr("x",(0,n.D7)().state.padding).attr("y",r+.4*(0,n.D7)().state.padding+(0,n.D7)().state.dividerMargin+(0,n.D7)().state.textHeight).attr("class","state-description"),s=!0,g=!0;e.descriptions.forEach(function(t){s||(a(d,t,g),g=!1),s=!1});let p=t.append("line").attr("x1",(0,n.D7)().state.padding).attr("y1",(0,n.D7)().state.padding+r+(0,n.D7)().state.dividerMargin/2).attr("y2",(0,n.D7)().state.padding+r+(0,n.D7)().state.dividerMargin/2).attr("class","descr-divider"),l=d.node().getBBox(),h=Math.max(l.width,i.width);return p.attr("x2",h+3*(0,n.D7)().state.padding),t.insert("rect",":first-child").attr("x",(0,n.D7)().state.padding).attr("y",(0,n.D7)().state.padding).attr("width",h+2*(0,n.D7)().state.padding).attr("height",l.height+r+2*(0,n.D7)().state.padding).attr("rx",(0,n.D7)().state.radius),t},"drawDescrState"),u=(0,o.K)((t,e,a)=>{let i,r=(0,n.D7)().state.padding,d=2*(0,n.D7)().state.padding,s=t.node().getBBox(),o=s.width,g=s.x,p=t.append("text").attr("x",0).attr("y",(0,n.D7)().state.titleShift).attr("font-size",(0,n.D7)().state.fontSize).attr("class","state-title").text(e.id),l=p.node().getBBox().width+d,h=Math.max(l,o);h===o&&(h+=d);let c=t.node().getBBox();e.doc,i=g-r,l>o&&(i=(o-h)/2+r),Math.abs(g-c.x)o&&(i=g-(l-o)/2);let x=1-(0,n.D7)().state.textHeight;return t.insert("rect",":first-child").attr("x",i).attr("y",x).attr("class",a?"alt-composit":"composit").attr("width",h).attr("height",c.height+(0,n.D7)().state.textHeight+(0,n.D7)().state.titleShift+1).attr("rx","0"),p.attr("x",i+r),l<=o&&p.attr("x",g+(h-d)/2-l/2+r),t.insert("rect",":first-child").attr("x",i).attr("y",(0,n.D7)().state.titleShift-(0,n.D7)().state.textHeight-(0,n.D7)().state.padding).attr("width",h).attr("height",3*(0,n.D7)().state.textHeight).attr("rx",(0,n.D7)().state.radius),t.insert("rect",":first-child").attr("x",i).attr("y",(0,n.D7)().state.titleShift-(0,n.D7)().state.textHeight-(0,n.D7)().state.padding).attr("width",h).attr("height",c.height+3+2*(0,n.D7)().state.textHeight).attr("rx",(0,n.D7)().state.radius),t},"addTitleAndBox"),f=(0,o.K)(t=>(t.append("circle").attr("class","end-state-outer").attr("r",(0,n.D7)().state.sizeUnit+(0,n.D7)().state.miniPadding).attr("cx",(0,n.D7)().state.padding+(0,n.D7)().state.sizeUnit+(0,n.D7)().state.miniPadding).attr("cy",(0,n.D7)().state.padding+(0,n.D7)().state.sizeUnit+(0,n.D7)().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",(0,n.D7)().state.sizeUnit).attr("cx",(0,n.D7)().state.padding+(0,n.D7)().state.sizeUnit+2).attr("cy",(0,n.D7)().state.padding+(0,n.D7)().state.sizeUnit+2)),"drawEndState"),y=(0,o.K)((t,e)=>{let a=(0,n.D7)().state.forkWidth,i=(0,n.D7)().state.forkHeight;if(e.parentId){let t=a;a=i,i=t}return t.append("rect").style("stroke","black").style("fill","black").attr("width",a).attr("height",i).attr("x",(0,n.D7)().state.padding).attr("y",(0,n.D7)().state.padding)},"drawForkJoinState"),w=(0,o.K)((t,e,a,i)=>{let r=0,d=i.append("text");d.style("text-anchor","start"),d.attr("class","noteText");let s=t.replace(/\r\n/g,"
    "),o=(s=s.replace(/\n/g,"
    ")).split(n.Y2.lineBreakRegex),g=1.25*(0,n.D7)().state.noteMargin;for(let t of o){let i=t.trim();if(i.length>0){let t=d.append("tspan");t.text(i),0===g&&(g+=t.node().getBBox().height),r+=g,t.attr("x",e+(0,n.D7)().state.noteMargin),t.attr("y",a+r+1.25*(0,n.D7)().state.noteMargin)}}return{textWidth:d.node().getBBox().width,textHeight:r}},"_drawLongText"),b=(0,o.K)((t,e)=>{e.attr("class","state-note");let a=e.append("rect").attr("x",0).attr("y",(0,n.D7)().state.padding),{textWidth:i,textHeight:r}=w(t,0,0,e.append("g"));return a.attr("height",r+2*(0,n.D7)().state.noteMargin),a.attr("width",i+2*(0,n.D7)().state.noteMargin),a},"drawNote"),B=(0,o.K)(function(t,e){let a=e.id,i={id:a,label:e.id,width:0,height:0},r=t.append("g").attr("id",a).attr("class","stateGroup");"start"===e.type&&h(r),"end"===e.type&&f(r),("fork"===e.type||"join"===e.type)&&y(r,e),"note"===e.type&&b(e.note.text,r),"divider"===e.type&&c(r),"default"===e.type&&0===e.descriptions.length&&x(r,e),"default"===e.type&&e.descriptions.length>0&&D(r,e);let d=r.node().getBBox();return i.width=d.width+2*(0,n.D7)().state.padding,i.height=d.height+2*(0,n.D7)().state.padding,i},"drawState"),m=0,k=(0,o.K)(function(t,e,a){let i=(0,o.K)(function(t){switch(t){case r.u4.relationType.AGGREGATION:return"aggregation";case r.u4.relationType.EXTENSION:return"extension";case r.u4.relationType.COMPOSITION:return"composition";case r.u4.relationType.DEPENDENCY:return"dependency"}},"getRelationType");e.points=e.points.filter(t=>!Number.isNaN(t.y));let p=e.points,l=(0,g.n8j)().x(function(t){return t.x}).y(function(t){return t.y}).curve(g.qrM),h=t.append("path").attr("d",l(p)).attr("id","edge"+m).attr("class","transition"),c="";if((0,n.D7)().state.arrowMarkerAbsolute&&(c=(0,n.ID)(!0)),h.attr("marker-end","url("+c+"#"+i(r.u4.relationType.DEPENDENCY)+"End)"),void 0!==a.title){let i=t.append("g").attr("class","stateLabel"),{x:r,y:o}=d._K.calcLabelPosition(e.points),g=n.Y2.getRows(a.title),p=0,l=[],h=0,c=0;for(let t=0;t<=g.length;t++){let e=i.append("text").attr("text-anchor","middle").text(g[t]).attr("x",r).attr("y",o+p),a=e.node().getBBox();h=Math.max(h,a.width),c=Math.min(c,a.x),s.R.info(a.x,r,o+p),0===p&&(p=e.node().getBBox().height,s.R.info("Title height",p,o)),l.push(e)}let x=p*g.length;if(g.length>1){let t=(g.length-1)*p*.5;l.forEach((e,a)=>e.attr("y",o+a*p-t)),x=p*g.length}let D=i.node().getBBox();i.insert("rect",":first-child").attr("class","box").attr("x",r-h/2-(0,n.D7)().state.padding/2).attr("y",o-x/2-(0,n.D7)().state.padding/2-3.5).attr("width",h+(0,n.D7)().state.padding).attr("height",x+(0,n.D7)().state.padding),s.R.info(D)}m++},"drawEdge"),N={},E=(0,o.K)(function(){},"setConf"),S=(0,o.K)(function(t){t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),M=(0,o.K)(function(t,e,a,r){let d;i=(0,n.D7)().state;let o=(0,n.D7)().securityLevel;"sandbox"===o&&(d=(0,g.Ltv)("#i"+e));let p="sandbox"===o?(0,g.Ltv)(d.nodes()[0].contentDocument.body):(0,g.Ltv)("body"),l="sandbox"===o?d.nodes()[0].contentDocument:document;s.R.debug("Rendering diagram "+t);let h=p.select(`[id='${e}']`);S(h),K(r.db.getRootDoc(),h.append("g").attr("id",e+"-root"),void 0,!1,p,l,r);let c=i.padding,x=h.node().getBBox(),D=x.width+2*c,u=x.height+2*c;(0,n.a$)(h,u,1.75*D,i.useMaxWidth),h.attr("viewBox",`${x.x-i.padding} ${x.y-i.padding} `+D+" "+u)},"draw"),v=(0,o.K)(t=>t?t.length*i.fontSizeFactor:1,"getLabelWidth"),K=(0,o.K)((t,e,a,r,d,o,g)=>{let h,c=new l.T({compound:!0,multigraph:!0}),x=!0;for(h=0;h{let e=t.parentElement,a=0,i=0;e&&(e.parentElement&&(a=e.parentElement.getBBox().width),Number.isNaN(i=parseInt(e.getAttribute("data-x-shift"),10))&&(i=0)),t.setAttribute("x1",0-i+8),t.setAttribute("x2",a-i-8)})):s.R.debug("No Node "+t+": "+JSON.stringify(c.node(t)))});let b=w.getBBox();c.edges().forEach(function(t){void 0!==t&&void 0!==c.edge(t)&&(s.R.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(c.edge(t))),k(e,c.edge(t),c.edge(t).relation))});let m={id:a||"root",label:a||"root",width:0,height:0};return m.width=(b=w.getBBox()).width+2*i.padding,m.height=b.height+2*i.padding,s.R.debug("Doc rendered",m,c),m},"renderDoc"),R={parser:r.Zk,get db(){return new r.u4(1)},renderer:{setConf:E,draw:M},styles:r.tM,init:(0,o.K)(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/5077.0d92e9864ef762a5.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/5077.0d92e9864ef762a5.js deleted file mode 100644 index 8a524dd46..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/5077.0d92e9864ef762a5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5077],{65077:(e,s,a)=>{a.d(s,{createGitGraphServices:()=>c.b});var c=a(6831);a(9448)}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/5567.df37c7cf4627fbd5.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/5567.df37c7cf4627fbd5.js deleted file mode 100644 index d00b4ebab..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/5567.df37c7cf4627fbd5.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5567],{35567:(t,e,a)=>{a.d(e,{diagram:()=>$});var r=a(84492),i=a(94191),l=a(13892),o=a(69301),s=a(98999),c=a(91158),n=a(89321),d=o.UI.packet,k=class{constructor(){this.packet=[],this.setAccTitle=o.SV,this.getAccTitle=o.iN,this.setDiagramTitle=o.ke,this.getDiagramTitle=o.ab,this.getAccDescription=o.m7,this.setAccDescription=o.EI}static{(0,c.K)(this,"PacketDB")}getConfig(){let t=(0,l.$t)({...d,...(0,o.zj)().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){(0,o.IU)(),this.packet=[]}},p=(0,c.K)((t,e)=>{(0,r.S)(t,e);let a=-1,i=[],l=1,{bitsPerRow:o}=e.getConfig();for(let{start:r,end:c,bits:n,label:d}of t.blocks){if(void 0!==r&&void 0!==c&&c{if(void 0===t.start)throw Error("start should have been set during first phase");if(void 0===t.end)throw Error("end should have been set during first phase");if(t.start>t.end)throw Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*a)return[t,void 0];let r=e*a-1,i=e*a;return[{start:t.start,end:r,label:t.label,bits:r-t.start},{start:i,end:t.end,label:t.label,bits:t.end-i}]},"getNextFittingBlock"),b={parser:{yy:void 0},parse:(0,c.K)(async t=>{let e=await (0,n.qg)("packet",t),a=b.parser?.yy;if(!(a instanceof k))throw Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");s.R.debug(e),p(e,a)},"parse")},f=(0,c.K)((t,e,a,r)=>{let l=r.db,s=l.getConfig(),{rowHeight:c,paddingY:n,bitWidth:d,bitsPerRow:k}=s,p=l.getPacket(),h=l.getDiagramTitle(),b=c+n,f=b*(p.length+1)-(h?0:c),u=d*k+2,$=(0,i.D)(e);for(let[t,e]of($.attr("viewBox",`0 0 ${u} ${f}`),(0,o.a$)($,f,u,s.useMaxWidth),p.entries()))g($,e,t,s);$.append("text").text(h).attr("x",u/2).attr("y",f-b/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),g=(0,c.K)((t,e,a,{rowHeight:r,paddingX:i,paddingY:l,bitWidth:o,bitsPerRow:s,showBits:c})=>{let n=t.append("g"),d=a*(r+l)+l;for(let t of e){let e=t.start%s*o+1,a=(t.end-t.start+1)*o-i;if(n.append("rect").attr("x",e).attr("y",d).attr("width",a).attr("height",r).attr("class","packetBlock"),n.append("text").attr("x",e+a/2).attr("y",d+r/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(t.label),!c)continue;let l=t.end===t.start,k=d-2;n.append("text").attr("x",e+(l?a/2:0)).attr("y",k).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",l?"middle":"start").text(t.start),l||n.append("text").attr("x",e+a).attr("y",k).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(t.end)}},"drawWord"),u={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},$={parser:b,get db(){return new k},renderer:{draw:f},styles:(0,c.K)(({packet:t}={})=>{let e=(0,l.$t)(u,t);return` - .packetByte { - font-size: ${e.byteFontSize}; - } - .packetByte.start { - fill: ${e.startByteColor}; - } - .packetByte.end { - fill: ${e.endByteColor}; - } - .packetLabel { - fill: ${e.labelColor}; - font-size: ${e.labelFontSize}; - } - .packetTitle { - fill: ${e.titleColor}; - font-size: ${e.titleFontSize}; - } - .packetBlock { - stroke: ${e.blockStrokeColor}; - stroke-width: ${e.blockStrokeWidth}; - fill: ${e.blockFillColor}; - } - `},"styles")}},84492:(t,e,a)=>{function r(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}a.d(e,{S:()=>r}),(0,a(91158).K)(r,"populateCommonDb")}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/5942.819150bbf865063b.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/5942.819150bbf865063b.js deleted file mode 100644 index c10ee9e3a..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/5942.819150bbf865063b.js +++ /dev/null @@ -1,36 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5942],{35942:(t,e,i)=>{"use strict";i.d(e,{diagram:()=>tt});var r=i(84492),n=i(94191),o=i(82142),a=i(29278),s=i(13892),h=i(69301),l=i(98999),d=i(91158),g=i(89321),c=i(1759),u=i(96123),f=i(70668),p={L:"left",R:"right",T:"top",B:"bottom"},m={L:(0,d.K)(t=>`${t},${t/2} 0,${t} 0,0`,"L"),R:(0,d.K)(t=>`0,${t/2} ${t},0 ${t},${t}`,"R"),T:(0,d.K)(t=>`0,0 ${t},0 ${t/2},${t}`,"T"),B:(0,d.K)(t=>`${t/2},0 ${t},${t} 0,${t}`,"B")},v={L:(0,d.K)((t,e)=>t-e+2,"L"),R:(0,d.K)((t,e)=>t-2,"R"),T:(0,d.K)((t,e)=>t-e+2,"T"),B:(0,d.K)((t,e)=>t-2,"B")},y=(0,d.K)(function(t){return T(t)?"L"===t?"R":"L":"T"===t?"B":"T"},"getOppositeArchitectureDirection"),E=(0,d.K)(function(t){return"L"===t||"R"===t||"T"===t||"B"===t},"isArchitectureDirection"),T=(0,d.K)(function(t){return"L"===t||"R"===t},"isArchitectureDirectionX"),N=(0,d.K)(function(t){return"T"===t||"B"===t},"isArchitectureDirectionY"),A=(0,d.K)(function(t,e){let i=T(t)&&N(e),r=N(t)&&T(e);return i||r},"isArchitectureDirectionXY"),w=(0,d.K)(function(t){let e=t[0],i=t[1],r=T(e)&&N(i),n=N(e)&&T(i);return r||n},"isArchitecturePairXY"),L=(0,d.K)(function(t){return"LL"!==t&&"RR"!==t&&"TT"!==t&&"BB"!==t},"isValidArchitectureDirectionPair"),C=(0,d.K)(function(t,e){let i=`${t}${e}`;return L(i)?i:void 0},"getArchitectureDirectionPair"),M=(0,d.K)(function([t,e],i){let r=i[0],n=i[1];if(T(r))if(N(n))return[t+("L"===r?-1:1),e+("T"===n?1:-1)];else return[t+("L"===r?-1:1),e];return T(n)?[t+("L"===n?1:-1),e+("T"===r?1:-1)]:[t,e+("T"===r?1:-1)]},"shiftPositionByArchitectureDirectionPair"),_=(0,d.K)(function(t){return"LT"===t||"TL"===t?[1,1]:"BL"===t||"LB"===t?[1,-1]:"BR"===t||"RB"===t?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),I=(0,d.K)(function(t,e){return A(t,e)?"bend":T(t)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),x=(0,d.K)(function(t){return"service"===t.type},"isArchitectureService"),O=(0,d.K)(function(t){return"junction"===t.type},"isArchitectureJunction"),D=(0,d.K)((t,e)=>{let[i,r]=[t,e].sort();return`${JSON.stringify(i)}-${JSON.stringify(r)}`},"architectureGroupAlignmentKey"),R=(0,d.K)(t=>t.data(),"edgeData"),b=(0,d.K)(t=>t.data(),"nodeData"),F=h.UI.architecture,S=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=h.SV,this.getAccTitle=h.iN,this.setDiagramTitle=h.ke,this.getDiagramTitle=h.ab,this.getAccDescription=h.m7,this.setAccDescription=h.EI,this.clear()}static{(0,d.K)(this,"ArchitectureDB")}setDiagramId(t){this.diagramId=t}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",(0,h.IU)()}addService({id:t,icon:e,in:i,title:r,iconText:n}){if(this.registeredIds.has(t))throw Error(`The service id [${t}] is already in use by another ${this.registeredIds.get(t)}`);if(void 0!==i){if(t===i)throw Error(`The service [${t}] cannot be placed within itself`);if(!this.registeredIds.has(i))throw Error(`The service [${t}]'s parent does not exist. Please make sure the parent is created before this service`);if("node"===this.registeredIds.get(i))throw Error(`The service [${t}]'s parent is not a group`)}this.registeredIds.set(t,"node"),this.nodes.set(t,{id:t,type:"service",icon:e,iconText:n,title:r,edges:[],in:i})}getServices(){return[...this.nodes.values()].filter(x)}addJunction({id:t,in:e}){if(this.registeredIds.has(t))throw Error(`The junction id [${t}] is already in use by another ${this.registeredIds.get(t)}`);if(void 0!==e){if(t===e)throw Error(`The junction [${t}] cannot be placed within itself`);if(!this.registeredIds.has(e))throw Error(`The junction [${t}]'s parent does not exist. Please make sure the parent is created before this junction`);if("node"===this.registeredIds.get(e))throw Error(`The junction [${t}]'s parent is not a group`)}this.registeredIds.set(t,"node"),this.nodes.set(t,{id:t,type:"junction",edges:[],in:e})}getJunctions(){return[...this.nodes.values()].filter(O)}getNodes(){return[...this.nodes.values()]}getNode(t){return this.nodes.get(t)??null}addGroup({id:t,icon:e,in:i,title:r}){if(this.registeredIds.has(t))throw Error(`The group id [${t}] is already in use by another ${this.registeredIds.get(t)}`);if(void 0!==i){if(t===i)throw Error(`The group [${t}] cannot be placed within itself`);if(!this.registeredIds.has(i))throw Error(`The group [${t}]'s parent does not exist. Please make sure the parent is created before this group`);if("node"===this.registeredIds.get(i))throw Error(`The group [${t}]'s parent is not a group`)}this.registeredIds.set(t,"group"),this.groups.set(t,{id:t,icon:e,title:r,in:i})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:t,rhsId:e,lhsDir:i,rhsDir:r,lhsInto:n,rhsInto:o,lhsGroup:a,rhsGroup:s,title:h}){if(!E(i))throw Error(`Invalid direction given for left hand side of edge ${t}--${e}. Expected (L,R,T,B) got ${String(i)}`);if(!E(r))throw Error(`Invalid direction given for right hand side of edge ${t}--${e}. Expected (L,R,T,B) got ${String(r)}`);if(!this.nodes.has(t)&&!this.groups.has(t))throw Error(`The left-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(e)&&!this.groups.has(e))throw Error(`The right-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);let l=this.nodes.get(t).in,d=this.nodes.get(e).in;if(a&&l&&d&&l==d)throw Error(`The left-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(s&&l&&d&&l==d)throw Error(`The right-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);this.edges.push({lhsId:t,lhsDir:i,lhsInto:n,lhsGroup:a,rhsId:e,rhsDir:r,rhsInto:o,rhsGroup:s,title:h});let g=this.nodes.get(t),c=this.nodes.get(e);g&&c&&(g.edges.push(this.edges[this.edges.length-1]),c.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(t){if(t.members.length<2)throw Error(`An align directive requires at least two members; got ${t.members.length}`);let e=new Set;t.members.forEach(i=>{if("node"!==this.registeredIds.get(i))throw Error(`align ${t.direction} references [${i}], which is not a service or junction`);if(e.has(i))throw Error(`align ${t.direction} lists [${i}] more than once`);e.add(i)}),this.layoutHints.push(t)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(void 0===this.dataStructures){let t=new Map,e=new Map;for(let[i,r]of this.nodes.entries()){let n=new Map;for(let e of r.edges){let r=this.getNode(e.lhsId)?.in,o=this.getNode(e.rhsId)?.in;if(r&&o&&r!==o){let i=I(e.lhsDir,e.rhsDir);"bend"!==i&&t.set(D(r,o),i)}if(e.lhsId===i){let t=C(e.lhsDir,e.rhsDir);t&&n.set(t,e.rhsId)}else{let t=C(e.rhsDir,e.lhsDir);t&&n.set(t,e.lhsId)}}e.set(i,n)}let i=new Set,r=new Set(e.keys()),n=(0,d.K)(t=>{let n=new Map([[t,[0,0]]]),o=[t];for(;o.length>0;){let t=o.shift();if(t){i.add(t),r.delete(t);let a=e.get(t);if(!a)throw Error(`BFS error: adjacency list for id ${t} not found. Please report this as a bug.`);let s=n.get(t);if(!s)throw Error(`BFS error: position for id ${t} not found in spatial map. Please report this as a bug.`);let[h,l]=s;a.forEach((t,e)=>{i.has(t)||(n.set(t,M([h,l],e)),o.push(t))})}}return n},"BFS"),o=[];for(;r.size>0;){let t=r.values().next().value;o.push(n(t))}this.dataStructures={adjList:e,spatialMaps:o,groupAlignments:t}}return this.dataStructures}setElementForId(t,e){this.elements.set(t,e)}getElementById(t){return this.elements.get(t)}getConfig(){return(0,s.$t)({...F,...(0,h.zj)().architecture})}getConfigField(t){return this.getConfig()[t]}},G=(0,d.K)((t,e)=>{(0,r.S)(t,e),t.groups.map(t=>e.addGroup(t)),t.services.map(t=>e.addService({...t,type:"service"})),t.junctions.map(t=>e.addJunction({...t,type:"junction"})),t.edges.map(t=>e.addEdge(t)),t.alignments?.map(t=>e.addLayoutHint({direction:t.direction,members:[...t.members]}))},"populateDb"),P={parser:{yy:void 0},parse:(0,d.K)(async t=>{let e=await (0,g.qg)("architecture",t);l.R.debug(e);let i=P.parser?.yy;if(!(i instanceof S))throw Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");G(e,i)},"parse")},U=(0,d.K)(t=>` - .edge { - stroke-width: ${t.archEdgeWidth}; - stroke: ${t.archEdgeColor}; - fill: none; - } - - .arrow { - fill: ${t.archEdgeArrowColor}; - } - - .node-bkg { - fill: none; - stroke: ${t.archGroupBorderColor}; - stroke-width: ${t.archGroupBorderWidth}; - stroke-dasharray: 8; - } - .node-icon-text { - display: flex; - align-items: center; - } - - .node-icon-text > div { - color: #fff; - margin: 1px; - height: fit-content; - text-align: center; - overflow: hidden; - display: -webkit-box; - -webkit-box-orient: vertical; - } -`,"getStyles");function k(t,e){if(0===t)return e();let i=Math.random,r=t>>>0;Math.random=function(){let t=r=r+0x6d2b79f5>>>0;return t=Math.imul(t^t>>>15,1|t),(((t^=t+Math.imul(t^t>>>7,61|t))^t>>>14)>>>0)/0x100000000};try{return e()}finally{Math.random=i}}(0,d.K)(k,"withSeededRandom");var Y=(0,d.K)(t=>`${t}`,"wrapIcon"),H={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:Y('')},server:{body:Y('')},disk:{body:Y('')},internet:{body:Y('')},cloud:{body:Y('')},unknown:a.Gc,blank:{body:Y("")}}},X=(0,d.K)(async function(t,e,i,r){let n=i.getConfigField("padding"),a=i.getConfigField("iconSize"),l=a/2,d=a/6,g=d/2;await Promise.all(e.edges().map(async e=>{let{source:a,sourceDir:c,sourceArrow:u,sourceGroup:f,target:p,targetDir:y,targetArrow:E,targetGroup:L,label:M}=R(e),{x:I,y:x}=e[0].sourceEndpoint(),{x:O,y:D}=e[0].midpoint(),{x:b,y:F}=e[0].targetEndpoint(),S=n+4;if(f&&(T(c)?I+="L"===c?-S:S:x+="T"===c?-S:S+18),L&&(T(y)?b+="L"===y?-S:S:F+="T"===y?-S:S+18),f||i.getNode(a)?.type!=="junction"||(T(c)?I+="L"===c?l:-l:x+="T"===c?l:-l),L||i.getNode(p)?.type!=="junction"||(T(y)?b+="L"===y?l:-l:F+="T"===y?l:-l),e[0]._private.rscratch){let e=t.insert("g");if(e.insert("path").attr("d",`M ${I},${x} L ${O},${D} L${b},${F} `).attr("class","edge").attr("id",`${r}-${(0,s.rY)(a,p,{prefix:"L"})}`),u){let t=T(c)?v[c](I,d):I-g,i=N(c)?v[c](x,d):x-g;e.insert("polygon").attr("points",m[c](d)).attr("transform",`translate(${t},${i})`).attr("class","arrow")}if(E){let t=T(y)?v[y](b,d):b-g,i=N(y)?v[y](F,d):F-g;e.insert("polygon").attr("points",m[y](d)).attr("transform",`translate(${t},${i})`).attr("class","arrow")}if(M){let t=A(c,y)?"XY":T(c)?"X":"Y",i=0;i="X"===t?Math.abs(I-b):"Y"===t?Math.abs(x-F)/1.5:Math.abs(I-b)/2;let r=e.append("g");if(await (0,o.GZ)(r,M,{useHtmlLabels:!1,width:i,classes:"architecture-service-label"},(0,h.D7)()),r.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),"X"===t)r.attr("transform","translate("+O+", "+D+")");else if("Y"===t)r.attr("transform","translate("+O+", "+D+") rotate(-90)");else if("XY"===t){let t=C(c,y);if(t&&w(t)){let e=r.node().getBoundingClientRect(),[i,n]=_(t);r.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*i*n*45})`);let o=r.node().getBoundingClientRect();r.attr("transform",` - translate(${O}, ${D-e.height/2}) - translate(${i*o.width/2}, ${n*o.height/2}) - rotate(${-1*i*n*45}, 0, ${e.height/2}) - `)}}}}}))},"drawEdges"),z=(0,d.K)(async function(t,e,i,r){let n=.75*i.getConfigField("padding"),s=i.getConfigField("fontSize"),l=i.getConfigField("iconSize")/2;await Promise.all(e.nodes().map(async e=>{let d=b(e);if("group"===d.type){let{h:g,w:c,x1:u,y1:f}=e.boundingBox(),p=t.append("rect");p.attr("id",`${r}-group-${d.id}`).attr("x",u+l).attr("y",f+l).attr("width",c).attr("height",g).attr("class","node-bkg");let m=t.append("g"),v=u,y=f;if(d.icon){let t=m.append("g");t.html(`${await (0,a.WY)(d.icon,{height:n,width:n,fallbackPrefix:H.prefix})}`),t.attr("transform","translate("+(v+l+1)+", "+(y+l+1)+")"),v+=n,y+=s/2-1-2}if(d.label){let t=m.append("g");await (0,o.GZ)(t,d.label,{useHtmlLabels:!1,width:c,classes:"architecture-service-label"},(0,h.D7)()),t.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),t.attr("transform","translate("+(v+l+4)+", "+(y+l+2)+")")}i.setElementForId(d.id,p)}}))},"drawGroups"),B=(0,d.K)(async function(t,e,i,r){let n=(0,h.D7)();for(let s of i){let i=e.append("g"),l=t.getConfigField("iconSize");if(s.title){let t=i.append("g");await (0,o.GZ)(t,s.title,{useHtmlLabels:!1,width:1.5*l,classes:"architecture-service-label"},n),t.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),t.attr("transform","translate("+l/2+", "+l+")")}let d=i.append("g");if(s.icon)d.html(`${await (0,a.WY)(s.icon,{height:l,width:l,fallbackPrefix:H.prefix})}`);else if(s.iconText){d.html(`${await (0,a.WY)("blank",{height:l,width:l,fallbackPrefix:H.prefix})}`);let t=d.append("g").append("foreignObject").attr("width",l).attr("height",l).append("div").attr("class","node-icon-text").attr("style",`height: ${l}px;`).append("div").html((0,h.jZ)(s.iconText,n)),e=parseInt(window.getComputedStyle(t.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;t.attr("style",`-webkit-line-clamp: ${Math.floor((l-2)/e)};`)}else d.append("path").attr("class","node-bkg").attr("id",`${r}-node-${s.id}`).attr("d",`M0,${l} V5 Q0,0 5,0 H${l-5} Q${l},0 ${l},5 V${l} Z`);i.attr("id",`${r}-service-${s.id}`).attr("class","architecture-service");let{width:g,height:c}=i.node().getBBox();s.width=g,s.height=c,t.setElementForId(s.id,i)}return 0},"drawServices"),V=(0,d.K)(function(t,e,i,r){i.forEach(i=>{let n=e.append("g"),o=t.getConfigField("iconSize");n.append("g").append("rect").attr("id",`${r}-node-${i.id}`).attr("fill-opacity","0").attr("width",o).attr("height",o),n.attr("class","architecture-junction");let{width:a,height:s}=n._groups[0][0].getBBox();n.width=a,n.height=s,t.setElementForId(i.id,n)})},"drawJunctions");function W(t,e,i){t.forEach(t=>{e.add({group:"nodes",data:{type:"service",id:t.id,icon:t.icon,label:t.title,parent:t.in,width:i.getConfigField("iconSize"),height:i.getConfigField("iconSize")},classes:"node-service"})})}function $(t,e,i){t.forEach(t=>{e.add({group:"nodes",data:{type:"junction",id:t.id,parent:t.in,width:i.getConfigField("iconSize"),height:i.getConfigField("iconSize")},classes:"node-junction"})})}function j(t,e){e.nodes().map(e=>{let i=b(e);"group"!==i.type&&(i.x=e.position().x,i.y=e.position().y,t.getElementById(i.id).attr("transform","translate("+(i.x||0)+","+(i.y||0)+")"))})}function q(t,e){t.forEach(t=>{e.add({group:"nodes",data:{type:"group",id:t.id,icon:t.icon,label:t.title,parent:t.in},classes:"node-group"})})}function K(t,e){t.forEach(t=>{let{lhsId:i,rhsId:r,lhsInto:n,lhsGroup:o,rhsInto:a,lhsDir:s,rhsDir:h,rhsGroup:l,title:d}=t,g=A(t.lhsDir,t.rhsDir)?"segments":"straight",c={id:`${i}-${r}`,label:d,source:i,sourceDir:s,sourceArrow:n,sourceGroup:o,sourceEndpoint:"L"===s?"0 50%":"R"===s?"100% 50%":"T"===s?"50% 0":"50% 100%",target:r,targetDir:h,targetArrow:a,targetGroup:l,targetEndpoint:"L"===h?"0 50%":"R"===h?"100% 50%":"T"===h?"50% 0":"50% 100%"};e.add({group:"edges",data:c,classes:g})})}function Z(t,e,i,r=[]){let n=(0,d.K)((t,e)=>{let r=new Map;for(let[n,o]of t.entries()){let t=`${n}`,a=0,s=[...o.entries()];if(1===s.length){r.set(t,s[0][1]);continue}for(let n=0;n{let i=new Map,r=new Map;return e.forEach(([e,n],o)=>{let a=t.getNode(o)?.in??"default",s=i.get(n)??new Map;i.has(n)||i.set(n,s);let h=r.get(e)??new Map;for(let t of(r.has(e)||r.set(e,h),[s,h])){let e=t.get(a)??[];t.has(a)||t.set(a,e),e.push(o)}}),{horiz:[...n(i,"horizontal").values()].filter(t=>t.length>1),vert:[...n(r,"vertical").values()].filter(t=>t.length>1)}}).reduce(([t,e],{horiz:i,vert:r})=>[[...t,...i],[...e,...r]],[[],[]]),s=new Set;r.forEach(t=>t.members.forEach(t=>s.add(t)));let h=(0,d.K)(t=>t.filter(t=>!t.some(t=>s.has(t))),"dropOverlapping"),l=h(o),g=h(a);return r.forEach(t=>{t.members.length<2||("row"===t.direction?l.push([...t.members]):g.push([...t.members]))}),{horizontal:l,vertical:g}}function Q(t,e,i=[]){let r=[],n=e.getConfigField("iconSize"),o=e.getConfigField("idealEdgeLengthMultiplier"),a=o*n,s=new Set;i.forEach(t=>{for(let e=0;e`${t[0]},${t[1]}`,"posToStr"),l=(0,d.K)(t=>t.split(",").map(t=>parseInt(t)),"strToPos");return t.forEach(t=>{let e=new Map([...t.entries()].map(([t,e])=>[h(e),t])),i=[h([0,0])],a={},d={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;i.length>0;){let t=i.shift();if(t){a[t]=1;let g=e.get(t);if(g){let c=l(t);Object.entries(d).forEach(([t,l])=>{let d=h([c[0]+l[0],c[1]+l[1]]),u=e.get(d);if(u&&!a[d]){if(i.push(d),s.has(`${g}|${u}`))return;r.push({[p[t]]:u,[p[y(t)]]:g,gap:o*n})}})}}}}),r}function J(t,e,i,r,n,{spatialMaps:o,groupAlignments:a}){return new Promise(s=>{let h=(0,f.Ltv)("body").append("div").attr("id","cy").attr("style","display:none"),g=(0,c.A)({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${n.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${n.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});h.remove(),q(i,g),W(t,g,n),$(e,g,n),K(r,g);let u=n.getLayoutHints(),p=Z(n,o,a,u),m=Q(o,n,u),v=n.getConfigField("iconSize"),y=n.getConfigField("idealEdgeLengthMultiplier")*v,E=.5*v,T=n.getConfigField("edgeElasticity"),A=n.getConfigField("seed"),w=g.layout({name:"fcose",quality:"proof",randomize:n.getConfigField("randomize"),nodeSeparation:n.getConfigField("nodeSeparation"),numIter:n.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(t){let[e,i]=t.connectedNodes(),{parent:r}=b(e),{parent:n}=b(i);return r===n?y:E},edgeElasticity(t){let[e,i]=t.connectedNodes(),{parent:r}=b(e),{parent:n}=b(i);return r===n?T:.001},alignmentConstraint:p,relativePlacementConstraint:m});w.one("layoutstop",()=>{function t(t,e,i,r){let n,o,{x:a,y:s}=t,{x:h,y:l}=e;o=(r-s+(a-i)*(s-l)/(a-h))/Math.sqrt(1+Math.pow((s-l)/(a-h),2)),n=Math.sqrt(Math.pow(r-s,2)+Math.pow(i-a,2)-Math.pow(o,2))/Math.sqrt(Math.pow(h-a,2)+Math.pow(l-s,2));let d=(h-a)*(r-s)-(l-s)*(i-a);switch(!0){case d>=0:d=1;break;case d<0:d=-1}let g=(h-a)*(i-a)+(l-s)*(r-s);switch(!0){case g>=0:g=1;break;case g<0:g=-1}return{distances:o=Math.abs(o)*d,weights:n*=g}}for(let e of((0,d.K)(t,"getSegmentWeights"),g.startBatch(),Object.values(g.edges())))if(e.data?.()){let{x:i,y:r}=e.source().position(),{x:n,y:o}=e.target().position();if(i!==n&&r!==o){let i=e.sourceEndpoint(),r=e.targetEndpoint(),{sourceDir:n}=R(e),[o,a]=N(n)?[i.x,r.y]:[r.x,i.y],{weights:s,distances:h}=t(i,r,o,a);e.style("segment-distances",h),e.style("segment-weights",s)}}g.endBatch(),k(A,()=>w.run())});try{k(A,()=>w.run())}catch(t){if(t instanceof RangeError&&t.message.includes("Invalid array length"))throw Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis.");throw t}g.ready(t=>{l.R.info("Ready",t),s(g)})})}(0,a.pC)([{name:H.prefix,icons:H}]),c.A.use(u),(0,d.K)(W,"addServices"),(0,d.K)($,"addJunctions"),(0,d.K)(j,"positionNodes"),(0,d.K)(q,"addGroups"),(0,d.K)(K,"addEdges"),(0,d.K)(Z,"getAlignments"),(0,d.K)(Q,"getRelativeConstraints"),(0,d.K)(J,"layoutArchitecture");var tt={parser:P,get db(){return new S},renderer:{draw:(0,d.K)(async(t,e,i,r)=>{let o=r.db;o.setDiagramId(e);let a=o.getServices(),s=o.getJunctions(),l=o.getGroups(),d=o.getEdges(),g=o.getDataStructures(),c=(0,n.D)(e),u=c.append("g");u.attr("class","architecture-edges");let f=c.append("g");f.attr("class","architecture-services");let p=c.append("g");p.attr("class","architecture-groups"),await B(o,f,a,e),V(o,f,s,e);let m=await J(a,s,l,d,o,g);await X(u,m,o,e),await z(p,m,o,e),j(o,m),(0,h.ot)(void 0,c,o.getConfigField("padding"),o.getConfigField("useMaxWidth"))},"draw")},styles:U}},50255:function(t,e,i){var r;r=i(50592),t.exports=(()=>{"use strict";var t={45:(t,e,i)=>{var r={};r.layoutBase=i(551),r.CoSEConstants=i(806),r.CoSEEdge=i(767),r.CoSEGraph=i(880),r.CoSEGraphManager=i(578),r.CoSELayout=i(765),r.CoSENode=i(991),r.ConstraintHandler=i(902),t.exports=r},806:(t,e,i)=>{var r=i(551).FDLayoutConstants;function n(){}for(var o in r)n[o]=r[o];n.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,n.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,n.DEFAULT_COMPONENT_SEPERATION=60,n.TILE=!0,n.TILING_PADDING_VERTICAL=10,n.TILING_PADDING_HORIZONTAL=10,n.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,n.ENFORCE_CONSTRAINTS=!0,n.APPLY_LAYOUT=!0,n.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,n.TREE_REDUCTION_ON_INCREMENTAL=!0,n.PURE_INCREMENTAL=n.DEFAULT_INCREMENTAL,t.exports=n},767:(t,e,i)=>{var r=i(551).FDLayoutEdge;function n(t,e,i){r.call(this,t,e,i)}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];t.exports=n},880:(t,e,i)=>{var r=i(551).LGraph;function n(t,e,i){r.call(this,t,e,i)}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];t.exports=n},578:(t,e,i)=>{var r=i(551).LGraphManager;function n(t){r.call(this,t)}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];t.exports=n},765:(t,e,i)=>{var r=i(551).FDLayout,n=i(578),o=i(880),a=i(991),s=i(767),h=i(806),l=i(902),d=i(551).FDLayoutConstants,g=i(551).LayoutConstants,c=i(551).Point,u=i(551).PointD,f=i(551).DimensionD,p=i(551).Layout,m=i(551).Integer,v=i(551).IGeometry,y=i(551).LGraph,E=i(551).Transform,T=i(551).LinkedList;function N(){r.call(this),this.toBeTiled={},this.constraints={}}for(var A in N.prototype=Object.create(r.prototype),r)N[A]=r[A];N.prototype.newGraphManager=function(){var t=new n(this);return this.graphManager=t,t},N.prototype.newGraph=function(t){return new o(null,this.graphManager,t)},N.prototype.newNode=function(t){return new a(this.graphManager,t)},N.prototype.newEdge=function(t){return new s(null,null,t)},N.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(h.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=h.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=d.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=d.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},N.prototype.initSpringEmbedder=function(){r.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/d.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},N.prototype.layout=function(){return g.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},N.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(h.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(e)}}else{var i=this.getFlatForest();if(i.length>0)this.positionNodesRadially(i);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(e),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(l.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),h.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},N.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(!(this.prunedNodesAll.length>0))return!0;else this.isTreeGrowing=!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(!(this.prunedNodesAll.length>0))return!0;else this.isTreeGrowing=!0;this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(e),this.graphManager.updateBounds(),this.updateGrid(),h.PURE_INCREMENTAL?this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),h.PURE_INCREMENTAL?this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var i=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(i,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},N.prototype.getPositionsData=function(){for(var t=this.graphManager.getAllNodes(),e={},i=0;i0&&this.updateDisplacements();for(var i=0;i0&&(r.fixedNodeWeight=n)}}if(this.constraints.relativePlacementConstraint){var o=new Map,a=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(e){t.fixedNodesOnHorizontal.add(e),t.fixedNodesOnVertical.add(e)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var s=this.constraints.alignmentConstraint.vertical,i=0;i=2*t.length/3;r--)e=Math.floor(Math.random()*(r+1)),i=t[r],t[r]=t[e],t[e]=i;return t},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(e){if(e.left){var i=o.has(e.left)?o.get(e.left):e.left,r=o.has(e.right)?o.get(e.right):e.right;t.nodesInRelativeHorizontal.includes(i)||(t.nodesInRelativeHorizontal.push(i),t.nodeToRelativeConstraintMapHorizontal.set(i,[]),t.dummyToNodeForVerticalAlignment.has(i)?t.nodeToTempPositionMapHorizontal.set(i,t.idToNodeMap.get(t.dummyToNodeForVerticalAlignment.get(i)[0]).getCenterX()):t.nodeToTempPositionMapHorizontal.set(i,t.idToNodeMap.get(i).getCenterX())),t.nodesInRelativeHorizontal.includes(r)||(t.nodesInRelativeHorizontal.push(r),t.nodeToRelativeConstraintMapHorizontal.set(r,[]),t.dummyToNodeForVerticalAlignment.has(r)?t.nodeToTempPositionMapHorizontal.set(r,t.idToNodeMap.get(t.dummyToNodeForVerticalAlignment.get(r)[0]).getCenterX()):t.nodeToTempPositionMapHorizontal.set(r,t.idToNodeMap.get(r).getCenterX())),t.nodeToRelativeConstraintMapHorizontal.get(i).push({right:r,gap:e.gap}),t.nodeToRelativeConstraintMapHorizontal.get(r).push({left:i,gap:e.gap})}else{var n=a.has(e.top)?a.get(e.top):e.top,s=a.has(e.bottom)?a.get(e.bottom):e.bottom;t.nodesInRelativeVertical.includes(n)||(t.nodesInRelativeVertical.push(n),t.nodeToRelativeConstraintMapVertical.set(n,[]),t.dummyToNodeForHorizontalAlignment.has(n)?t.nodeToTempPositionMapVertical.set(n,t.idToNodeMap.get(t.dummyToNodeForHorizontalAlignment.get(n)[0]).getCenterY()):t.nodeToTempPositionMapVertical.set(n,t.idToNodeMap.get(n).getCenterY())),t.nodesInRelativeVertical.includes(s)||(t.nodesInRelativeVertical.push(s),t.nodeToRelativeConstraintMapVertical.set(s,[]),t.dummyToNodeForHorizontalAlignment.has(s)?t.nodeToTempPositionMapVertical.set(s,t.idToNodeMap.get(t.dummyToNodeForHorizontalAlignment.get(s)[0]).getCenterY()):t.nodeToTempPositionMapVertical.set(s,t.idToNodeMap.get(s).getCenterY())),t.nodeToRelativeConstraintMapVertical.get(n).push({bottom:s,gap:e.gap}),t.nodeToRelativeConstraintMapVertical.get(s).push({top:n,gap:e.gap})}});else{var d=new Map,g=new Map;this.constraints.relativePlacementConstraint.forEach(function(t){if(t.left){var e=o.has(t.left)?o.get(t.left):t.left,i=o.has(t.right)?o.get(t.right):t.right;d.has(e)?d.get(e).push(i):d.set(e,[i]),d.has(i)?d.get(i).push(e):d.set(i,[e])}else{var r=a.has(t.top)?a.get(t.top):t.top,n=a.has(t.bottom)?a.get(t.bottom):t.bottom;g.has(r)?g.get(r).push(n):g.set(r,[n]),g.has(n)?g.get(n).push(r):g.set(n,[r])}});var c=function(t,e){var i=[],r=[],n=new T,o=new Set,a=0;return t.forEach(function(s,h){if(!o.has(h)){i[a]=[],r[a]=!1;var l=h;for(n.push(l),o.add(l),i[a].push(l);0!=n.length;)l=n.shift(),e.has(l)&&(r[a]=!0),t.get(l).forEach(function(t){o.has(t)||(n.push(t),o.add(t),i[a].push(t))});a++}}),{components:i,isFixed:r}},u=c(d,t.fixedNodesOnHorizontal);this.componentsOnHorizontal=u.components,this.fixedComponentsOnHorizontal=u.isFixed;var f=c(g,t.fixedNodesOnVertical);this.componentsOnVertical=f.components,this.fixedComponentsOnVertical=f.isFixed}}},N.prototype.updateDisplacements=function(){var t=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(e){var i=t.idToNodeMap.get(e.nodeId);i.displacementX=0,i.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var e=this.constraints.alignmentConstraint.vertical,i=0;i1)for(a=0;ar&&(r=Math.floor(a.y)),o=Math.floor(a.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new u(g.WORLD_CENTER_X-a.x/2,g.WORLD_CENTER_Y-a.y/2))},N.radialLayout=function(t,e,i){var r=Math.max(this.maxDiagonalInTree(t),h.DEFAULT_RADIAL_SEPARATION);N.branchRadialLayout(e,null,0,359,0,r);var n=y.calculateBounds(t),o=new E;o.setDeviceOrgX(n.getMinX()),o.setDeviceOrgY(n.getMinY()),o.setWorldOrgX(i.x),o.setWorldOrgY(i.y);for(var a=0;a1;){var m=p[0];p.splice(0,1);var y=g.indexOf(m);y>=0&&g.splice(y,1),f--,c--}a=null!=e?(g.indexOf(p[0])+1)%f:0;for(var E=Math.abs(r-i)/c,T=a;u!=c;T=++T%f){var A=g[T].getOtherEnd(t);if(A!=e){var w=(i+u*E)%360,L=(w+E)%360;N.branchRadialLayout(A,t,w,L,n+o,o),u++}}},N.maxDiagonalInTree=function(t){for(var e=m.MIN_VALUE,i=0;ie&&(e=r)}return e},N.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},N.prototype.groupZeroDegreeMembers=function(){var t=this,e={};this.memberGroups={},this.idToDummyNode={};for(var i=[],r=this.graphManager.getAllNodes(),n=0;n1){var r="DummyCompound_"+i;t.memberGroups[r]=e[i];var n=e[i][0].getParent(),o=new a(t.graphManager);o.id=r,o.paddingLeft=n.paddingLeft||0,o.paddingRight=n.paddingRight||0,o.paddingBottom=n.paddingBottom||0,o.paddingTop=n.paddingTop||0,t.idToDummyNode[r]=o;var s=t.getGraphManager().add(t.newGraph(),o),h=n.getChild();h.add(o);for(var l=0;ln?(r.rect.x-=(r.labelWidth-n)/2,r.setWidth(r.labelWidth),r.labelMarginLeft=(r.labelWidth-n)/2):"right"==r.labelPosHorizontal&&r.setWidth(n+r.labelWidth)),r.labelHeight&&("top"==r.labelPosVertical?(r.rect.y-=r.labelHeight,r.setHeight(o+r.labelHeight),r.labelMarginTop=r.labelHeight):"center"==r.labelPosVertical&&r.labelHeight>o?(r.rect.y-=(r.labelHeight-o)/2,r.setHeight(r.labelHeight),r.labelMarginTop=(r.labelHeight-o)/2):"bottom"==r.labelPosVertical&&r.setHeight(o+r.labelHeight))}})},N.prototype.repopulateCompounds=function(){for(var t=this.compoundOrder.length-1;t>=0;t--){var e=this.compoundOrder[t],i=e.id,r=e.paddingLeft,n=e.paddingTop,o=e.labelMarginLeft,a=e.labelMarginTop;this.adjustLocations(this.tiledMemberPack[i],e.rect.x,e.rect.y,r,n,o,a)}},N.prototype.repopulateZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack;Object.keys(e).forEach(function(i){var r=t.idToDummyNode[i],n=r.paddingLeft,o=r.paddingTop,a=r.labelMarginLeft,s=r.labelMarginTop;t.adjustLocations(e[i],r.rect.x,r.rect.y,n,o,a,s)})},N.prototype.getToBeTiled=function(t){var e=t.id;if(null!=this.toBeTiled[e])return this.toBeTiled[e];var i=t.getChild();if(null==i)return this.toBeTiled[e]=!1,!1;for(var r=i.getNodes(),n=0;n0)return this.toBeTiled[e]=!1,!1;if(null==o.getChild()){this.toBeTiled[o.id]=!1;continue}if(!this.getToBeTiled(o))return this.toBeTiled[e]=!1,!1}return this.toBeTiled[e]=!0,!0},N.prototype.getNodeDegree=function(t){t.id;for(var e=t.getEdges(),i=0,r=0;rd&&(d=c.rect.height)}i+=d+t.verticalPadding}},N.prototype.tileCompoundMembers=function(t,e){var i=this;this.tiledMemberPack=[],Object.keys(t).forEach(function(r){var n=e[r];if(i.tiledMemberPack[r]=i.tileNodes(t[r],n.paddingLeft+n.paddingRight),n.rect.width=i.tiledMemberPack[r].width,n.rect.height=i.tiledMemberPack[r].height,n.setCenter(i.tiledMemberPack[r].centerX,i.tiledMemberPack[r].centerY),n.labelMarginLeft=0,n.labelMarginTop=0,h.NODE_DIMENSIONS_INCLUDE_LABELS){var o=n.rect.width,a=n.rect.height;n.labelWidth&&("left"==n.labelPosHorizontal?(n.rect.x-=n.labelWidth,n.setWidth(o+n.labelWidth),n.labelMarginLeft=n.labelWidth):"center"==n.labelPosHorizontal&&n.labelWidth>o?(n.rect.x-=(n.labelWidth-o)/2,n.setWidth(n.labelWidth),n.labelMarginLeft=(n.labelWidth-o)/2):"right"==n.labelPosHorizontal&&n.setWidth(o+n.labelWidth)),n.labelHeight&&("top"==n.labelPosVertical?(n.rect.y-=n.labelHeight,n.setHeight(a+n.labelHeight),n.labelMarginTop=n.labelHeight):"center"==n.labelPosVertical&&n.labelHeight>a?(n.rect.y-=(n.labelHeight-a)/2,n.setHeight(n.labelHeight),n.labelMarginTop=(n.labelHeight-a)/2):"bottom"==n.labelPosVertical&&n.setHeight(a+n.labelHeight))}})},N.prototype.tileNodes=function(t,e){var i=this.tileNodesByFavoringDim(t,e,!0),r=this.tileNodesByFavoringDim(t,e,!1),n=this.getOrgRatio(i);return this.getOrgRatio(r)l&&(l=t.getWidth())});var d=a/o,g=Math.pow(r-n,2)+4*(d+n)*(s/o+r)*o,c=(n-r+Math.sqrt(g))/(2*(d+n));e?(i=Math.ceil(c))==c&&i++:i=Math.floor(c);var u=i*(d+n)-n;return l>u&&(u=l),u+=2*n},N.prototype.tileNodesByFavoringDim=function(t,e,i){var r=h.TILING_PADDING_VERTICAL,n=h.TILING_PADDING_HORIZONTAL,o=h.TILING_COMPARE_BY,a={rows:[],rowWidth:[],rowHeight:[],width:0,height:e,verticalPadding:r,horizontalPadding:n,centerX:0,centerY:0};o&&(a.idealRowWidth=this.calcIdealRowWidth(t,i));var s=function(t){return t.rect.width*t.rect.height},l=function(t,e){return s(e)-s(t)};t.sort(function(t,e){var i=l;return a.idealRowWidth?(i=o)(t.id,e.id):i(t,e)});for(var d=0,g=0,c=0;c0&&(n+=t.horizontalPadding),t.rowWidth[i]=n,t.width0&&(o+=t.verticalPadding);var a=0;o>t.rowHeight[i]&&(a=t.rowHeight[i],t.rowHeight[i]=o,a=t.rowHeight[i]-a),t.height+=a,t.rows[i].push(e)},N.prototype.getShortestRowIndex=function(t){for(var e=-1,i=Number.MAX_VALUE,r=0;ri&&(e=r,i=t.rowWidth[r]);return e},N.prototype.canAddHorizontal=function(t,e,i){if(t.idealRowWidth){var r,n,o=t.rows.length-1;return t.rowWidth[o]+e+t.horizontalPadding<=t.idealRowWidth}var a=this.getShortestRowIndex(t);if(a<0)return!0;var s=t.rowWidth[a];if(s+t.horizontalPadding+e<=t.width)return!0;var h=0;return t.rowHeight[a]0&&(h=i+t.verticalPadding-t.rowHeight[a]),r=t.width-s>=e+t.horizontalPadding?(t.height+h)/(s+e+t.horizontalPadding):(t.height+h)/t.width,h=i+t.verticalPadding,(n=t.widtho&&e!=i){r.splice(-1,1),t.rows[i].push(n),t.rowWidth[e]=t.rowWidth[e]-o,t.rowWidth[i]=t.rowWidth[i]+o,t.width=t.rowWidth[instance.getLongestRowIndex(t)];for(var a=5e-324,s=0;sa&&(a=r[s].height);e>0&&(a+=t.verticalPadding);var h=t.rowHeight[e]+t.rowHeight[i];t.rowHeight[e]=a,t.rowHeight[i]0)for(var u=a;u<=s;u++)c[0]+=this.grid[u][l-1].length+this.grid[u][l].length-1;if(s0)for(var u=l;u<=g;u++)c[3]+=this.grid[a-1][u].length+this.grid[a][u].length-1;for(var f=m.MAX_VALUE,p=0;p{var r=i(551).FDLayoutNode,n=i(551).IMath;function o(t,e,i,n){r.call(this,t,e,i,n)}for(var a in o.prototype=Object.create(r.prototype),r)o[a]=r[a];o.prototype.calculateDisplacement=function(){var t=this.graphManager.getLayout();null!=this.getChild()&&this.fixedNodeWeight?(this.displacementX+=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementX=t.coolingFactor*t.maxNodeDisplacement*n.sign(this.displacementX)),Math.abs(this.displacementY)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementY=t.coolingFactor*t.maxNodeDisplacement*n.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},o.prototype.propogateDisplacementToChildren=function(t,e){for(var i,r=this.getChild().getNodes(),n=0;n{function r(t){if(!Array.isArray(t))return Array.from(t);for(var e=0,i=Array(t.length);e0){var o=0;r.forEach(function(t){"horizontal"==e?g.set(t,h.has(t)?l[h.get(t)]:n.get(t)):g.set(t,h.has(t)?d[h.get(t)]:n.get(t)),o+=g.get(t)}),o/=r.length,t.forEach(function(t){i.has(t)||g.set(t,o)})}else{var a=0;t.forEach(function(t){"horizontal"==e?a+=h.has(t)?l[h.get(t)]:n.get(t):a+=h.has(t)?d[h.get(t)]:n.get(t)}),a/=t.length,t.forEach(function(t){g.set(t,a)})}});0!=u.length;)!function(){var r=u.shift();t.get(r).forEach(function(t){if(g.get(t.id)a&&(a=y),Es&&(s=E)}}catch(t){u=!0,f=t}finally{try{!c&&m.return&&m.return()}finally{if(u)throw f}}var T=(r+a)/2-(o+s)/2,N=!0,A=!1,w=void 0;try{for(var L,C=t[Symbol.iterator]();!(N=(L=C.next()).done);N=!0){var M=L.value;g.set(M,g.get(M)+T)}}catch(t){A=!0,w=t}finally{try{!N&&C.return&&C.return()}finally{if(A)throw w}}})}return g},v=function(t){var e=0,i=0,r=0,n=0;if(t.forEach(function(t){t.left?l[h.get(t.left)]-l[h.get(t.right)]>=0?e++:i++:d[h.get(t.top)]-d[h.get(t.bottom)]>=0?r++:n++}),e>i&&r>n)for(var o=0;oi)for(var a=0;an)for(var s=0;s1)e.fixedNodeConstraint.forEach(function(t,e){N[e]=[t.position.x,t.position.y],A[e]=[l[h.get(t.nodeId)],d[h.get(t.nodeId)]]}),w=!0;else if(e.alignmentConstraint)!function(){var t=0;if(e.alignmentConstraint.vertical){for(var i=e.alignmentConstraint.vertical,n=0;n0?l[h.get(o.values().next().value)]:p(n).x,i[e].forEach(function(e){N[t]=[a,d[h.get(e)]],A[t]=[l[h.get(e)],d[h.get(e)]],t++})}(n);w=!0}if(e.alignmentConstraint.horizontal){for(var o=e.alignmentConstraint.horizontal,a=0;a0?l[h.get(n.values().next().value)]:p(i).y,o[e].forEach(function(e){N[t]=[l[h.get(e)],a],A[t]=[l[h.get(e)],d[h.get(e)]],t++})}(a);w=!0}e.relativePlacementConstraint&&(L=!0)}();else if(e.relativePlacementConstraint){for(var x=0,O=0,D=0;Dx&&(x=I[D].length,O=D);if(x<_.size/2)v(e.relativePlacementConstraint),w=!1,L=!1;else{var R=new Map,b=new Map,F=[];I[O].forEach(function(t){M.get(t).forEach(function(e){"horizontal"==e.direction?(R.has(t)?R.get(t).push(e):R.set(t,[e]),R.has(e.id)||R.set(e.id,[]),F.push({left:t,right:e.id})):(b.has(t)?b.get(t).push(e):b.set(t,[e]),b.has(e.id)||b.set(e.id,[]),F.push({top:t,bottom:e.id}))})}),v(F),L=!1;var S=m(R,"horizontal"),G=m(b,"vertical");I[O].forEach(function(t,e){A[e]=[l[h.get(t)],d[h.get(t)]],N[e]=[],S.has(t)?N[e][0]=S.get(t):N[e][0]=l[h.get(t)],G.has(t)?N[e][1]=G.get(t):N[e][1]=d[h.get(t)]}),w=!0}}if(w){for(var P=void 0,U=a.transpose(N),k=a.transpose(A),Y=0;Y0){var $={x:0,y:0};e.fixedNodeConstraint.forEach(function(t,e){var i,r={x:l[h.get(t.nodeId)],y:d[h.get(t.nodeId)]},n=(i=t.position,{x:i.x-r.x,y:i.y-r.y});$.x+=n.x,$.y+=n.y}),$.x/=e.fixedNodeConstraint.length,$.y/=e.fixedNodeConstraint.length,l.forEach(function(t,e){l[e]+=$.x}),d.forEach(function(t,e){d[e]+=$.y}),e.fixedNodeConstraint.forEach(function(t){l[h.get(t.nodeId)]=t.position.x,d[h.get(t.nodeId)]=t.position.y})}if(e.alignmentConstraint){if(e.alignmentConstraint.vertical)for(var j=e.alignmentConstraint.vertical,q=0;q0?l[h.get(i.values().next().value)]:p(e).x,e.forEach(function(t){C.has(t)||(l[h.get(t)]=n)})}(q);if(e.alignmentConstraint.horizontal)for(var K=e.alignmentConstraint.horizontal,Z=0;Z0?d[h.get(i.values().next().value)]:p(e).y,e.forEach(function(t){C.has(t)||(d[h.get(t)]=n)})}(Z)}e.relativePlacementConstraint&&function(){var t=new Map,i=new Map,r=new Map,n=new Map,o=new Map,a=new Map,s=new Set,g=new Set;if(C.forEach(function(t){s.add(t),g.add(t)}),e.alignmentConstraint){if(e.alignmentConstraint.vertical)for(var c=e.alignmentConstraint.vertical,u=function(e){r.set("dummy"+e,[]),c[e].forEach(function(i){t.set(i,"dummy"+e),r.get("dummy"+e).push(i),C.has(i)&&s.add("dummy"+e)}),o.set("dummy"+e,l[h.get(c[e][0])])},f=0;f{t.exports=r}},e={};return function i(r){var n=e[r];if(void 0!==n)return n.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,i),o.exports}(45)})()},50592:function(t){t.exports=function(){var t=[function(t,e,i){"use strict";function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,t.exports=r},function(t,e,i){"use strict";var r=i(2),n=i(8),o=i(9);function a(t,e,i){r.call(this,i),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=i,this.bendpoints=[],this.source=t,this.target=e}for(var s in a.prototype=Object.create(r.prototype),r)a[s]=r[s];a.prototype.getSource=function(){return this.source},a.prototype.getTarget=function(){return this.target},a.prototype.isInterGraph=function(){return this.isInterGraph},a.prototype.getLength=function(){return this.length},a.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},a.prototype.getBendpoints=function(){return this.bendpoints},a.prototype.getLca=function(){return this.lca},a.prototype.getSourceInLca=function(){return this.sourceInLca},a.prototype.getTargetInLca=function(){return this.targetInLca},a.prototype.getOtherEnd=function(t){if(this.source===t)return this.target;if(this.target===t)return this.source;throw"Node is not incident with this edge"},a.prototype.getOtherEndInGraph=function(t,e){for(var i=this.getOtherEnd(t),r=e.getGraphManager().getRoot();;){if(i.getOwner()==e)return i;if(i.getOwner()==r)break;i=i.getOwner().getParent()}return null},a.prototype.updateLength=function(){var t=[,,,,];this.isOverlapingSourceAndTarget=n.getIntersection(this.target.getRect(),this.source.getRect(),t),this.isOverlapingSourceAndTarget||(this.lengthX=t[0]-t[2],this.lengthY=t[1]-t[3],1>Math.abs(this.lengthX)&&(this.lengthX=o.sign(this.lengthX)),1>Math.abs(this.lengthY)&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},a.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),1>Math.abs(this.lengthX)&&(this.lengthX=o.sign(this.lengthX)),1>Math.abs(this.lengthY)&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=a},function(t,e,i){"use strict";t.exports=function(t){this.vGraphObject=t}},function(t,e,i){"use strict";var r=i(2),n=i(10),o=i(13),a=i(0),s=i(16),h=i(5);function l(t,e,i,a){null==i&&null==a&&(a=e),r.call(this,a),null!=t.graphManager&&(t=t.graphManager),this.estimatedSize=n.MIN_VALUE,this.inclusionTreeDepth=n.MAX_VALUE,this.vGraphObject=a,this.edges=[],this.graphManager=t,null!=i&&null!=e?this.rect=new o(e.x,e.y,i.width,i.height):this.rect=new o}for(var d in l.prototype=Object.create(r.prototype),r)l[d]=r[d];l.prototype.getEdges=function(){return this.edges},l.prototype.getChild=function(){return this.child},l.prototype.getOwner=function(){return this.owner},l.prototype.getWidth=function(){return this.rect.width},l.prototype.setWidth=function(t){this.rect.width=t},l.prototype.getHeight=function(){return this.rect.height},l.prototype.setHeight=function(t){this.rect.height=t},l.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},l.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},l.prototype.getCenter=function(){return new h(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},l.prototype.getLocation=function(){return new h(this.rect.x,this.rect.y)},l.prototype.getRect=function(){return this.rect},l.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},l.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},l.prototype.setRect=function(t,e){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=e.width,this.rect.height=e.height},l.prototype.setCenter=function(t,e){this.rect.x=t-this.rect.width/2,this.rect.y=e-this.rect.height/2},l.prototype.setLocation=function(t,e){this.rect.x=t,this.rect.y=e},l.prototype.moveBy=function(t,e){this.rect.x+=t,this.rect.y+=e},l.prototype.getEdgeListToNode=function(t){var e=[],i=this;return i.edges.forEach(function(r){if(r.target==t){if(r.source!=i)throw"Incorrect edge source!";e.push(r)}}),e},l.prototype.getEdgesBetween=function(t){var e=[],i=this;return i.edges.forEach(function(r){if(r.source!=i&&r.target!=i)throw"Incorrect edge source and/or target";(r.target==t||r.source==t)&&e.push(r)}),e},l.prototype.getNeighborsList=function(){var t=new Set,e=this;return e.edges.forEach(function(i){if(i.source==e)t.add(i.target);else{if(i.target!=e)throw"Incorrect incidency!";t.add(i.source)}}),t},l.prototype.withChildren=function(){var t=new Set;if(t.add(this),null!=this.child)for(var e=this.child.getNodes(),i=0;ie?(this.rect.x-=(this.labelWidth-e)/2,this.setWidth(this.labelWidth)):"right"==this.labelPosHorizontal&&this.setWidth(e+this.labelWidth)),this.labelHeight&&("top"==this.labelPosVertical?(this.rect.y-=this.labelHeight,this.setHeight(i+this.labelHeight)):"center"==this.labelPosVertical&&this.labelHeight>i?(this.rect.y-=(this.labelHeight-i)/2,this.setHeight(this.labelHeight)):"bottom"==this.labelPosVertical&&this.setHeight(i+this.labelHeight))}}},l.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==n.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},l.prototype.transform=function(t){var e=this.rect.x;e>a.WORLD_BOUNDARY?e=a.WORLD_BOUNDARY:e<-a.WORLD_BOUNDARY&&(e=-a.WORLD_BOUNDARY);var i=this.rect.y;i>a.WORLD_BOUNDARY?i=a.WORLD_BOUNDARY:i<-a.WORLD_BOUNDARY&&(i=-a.WORLD_BOUNDARY);var r=new h(e,i),n=t.inverseTransformPoint(r);this.setLocation(n.x,n.y)},l.prototype.getLeft=function(){return this.rect.x},l.prototype.getRight=function(){return this.rect.x+this.rect.width},l.prototype.getTop=function(){return this.rect.y},l.prototype.getBottom=function(){return this.rect.y+this.rect.height},l.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},t.exports=l},function(t,e,i){"use strict";var r=i(0);function n(){}for(var o in r)n[o]=r[o];n.MAX_ITERATIONS=2500,n.DEFAULT_EDGE_LENGTH=50,n.DEFAULT_SPRING_STRENGTH=.45,n.DEFAULT_REPULSION_STRENGTH=4500,n.DEFAULT_GRAVITY_STRENGTH=.4,n.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,n.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,n.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,n.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,n.COOLING_ADAPTATION_FACTOR=.33,n.ADAPTATION_LOWER_NODE_LIMIT=1e3,n.ADAPTATION_UPPER_NODE_LIMIT=5e3,n.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,n.MAX_NODE_DISPLACEMENT=3*n.MAX_NODE_DISPLACEMENT_INCREMENTAL,n.MIN_REPULSION_DIST=n.DEFAULT_EDGE_LENGTH/10,n.CONVERGENCE_CHECK_PERIOD=100,n.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,n.MIN_EDGE_LENGTH=1,n.GRID_CALCULATION_CHECK_PERIOD=10,t.exports=n},function(t,e,i){"use strict";function r(t,e){null==t&&null==e?(this.x=0,this.y=0):(this.x=t,this.y=e)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(t){this.x=t},r.prototype.setY=function(t){this.y=t},r.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},t.exports=r},function(t,e,i){"use strict";var r=i(2),n=i(10),o=i(0),a=i(7),s=i(3),h=i(1),l=i(13),d=i(12),g=i(11);function c(t,e,i){r.call(this,i),this.estimatedSize=n.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=t,null!=e&&e instanceof a?this.graphManager=e:null!=e&&e instanceof Layout&&(this.graphManager=e.graphManager)}for(var u in c.prototype=Object.create(r.prototype),r)c[u]=r[u];c.prototype.getNodes=function(){return this.nodes},c.prototype.getEdges=function(){return this.edges},c.prototype.getGraphManager=function(){return this.graphManager},c.prototype.getParent=function(){return this.parent},c.prototype.getLeft=function(){return this.left},c.prototype.getRight=function(){return this.right},c.prototype.getTop=function(){return this.top},c.prototype.getBottom=function(){return this.bottom},c.prototype.isConnected=function(){return this.isConnected},c.prototype.add=function(t,e,i){if(null==e&&null==i){if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(t)>-1)throw"Node already in graph!";return t.owner=this,this.getNodes().push(t),t}if(!(this.getNodes().indexOf(e)>-1&&this.getNodes().indexOf(i)>-1))throw"Source or target not in graph!";if(e.owner!=i.owner||e.owner!=this)throw"Both owners must be this graph!";return e.owner!=i.owner?null:(t.source=e,t.target=i,t.isInterGraph=!1,this.getEdges().push(t),e.edges.push(t),i!=e&&i.edges.push(t),t)},c.prototype.remove=function(t){if(t instanceof s){if(null==t)throw"Node is null!";if(null==t.owner||t.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var e,i=t.edges.slice(),r=i.length,n=0;n-1&&l>-1))throw"Source and/or target doesn't know this edge!";e.source.edges.splice(a,1),e.target!=e.source&&e.target.edges.splice(l,1);var o=e.source.owner.getEdges().indexOf(e);if(-1==o)throw"Not in owner's edge list!";e.source.owner.getEdges().splice(o,1)}},c.prototype.updateLeftTop=function(){for(var t,e,i,r=n.MAX_VALUE,o=n.MAX_VALUE,a=this.getNodes(),s=a.length,h=0;ht&&(r=t),o>e&&(o=e)}return r==n.MAX_VALUE?null:(i=void 0!=a[0].getParent().paddingLeft?a[0].getParent().paddingLeft:this.margin,this.left=o-i,this.top=r-i,new d(this.left,this.top))},c.prototype.updateBounds=function(t){for(var e,i,r,o,a,s=n.MAX_VALUE,h=-n.MAX_VALUE,d=n.MAX_VALUE,g=-n.MAX_VALUE,c=this.nodes,u=c.length,f=0;fe&&(s=e),hr&&(d=r),ge&&(a=e),sr&&(h=r),d=this.nodes.length){var h=0;n.forEach(function(t){t.owner==i&&h++}),h==this.nodes.length&&(this.isConnected=!0)}},t.exports=c},function(t,e,i){"use strict";var r,n=i(1);function o(t){r=i(6),this.layout=t,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var t=this.layout.newGraph(),e=this.layout.newNode(null),i=this.add(t,e);return this.setRootGraph(i),this.rootGraph},o.prototype.add=function(t,e,i,r,n){if(null==i&&null==r&&null==n){if(null==t)throw"Graph is null!";if(null==e)throw"Parent node is null!";if(this.graphs.indexOf(t)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(t),null!=t.parent)throw"Already has a parent!";if(null!=e.child)throw"Already has a child!";return t.parent=e,e.child=t,t}n=i,r=e,i=t;var o=r.getOwner(),a=n.getOwner();if(null==o||o.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==a||a.getGraphManager()!=this)throw"Target not in this graph mgr!";if(o==a)return i.isInterGraph=!1,o.add(i,r,n);if(i.isInterGraph=!0,i.source=r,i.target=n,this.edges.indexOf(i)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(i),null==i.source||null==i.target)throw"Edge source and/or target is null!";if(-1!=i.source.edges.indexOf(i)||-1!=i.target.edges.indexOf(i))throw"Edge already in source and/or target incidency list!";return i.source.edges.push(i),i.target.edges.push(i),i},o.prototype.remove=function(t){if(t instanceof r){if(t.getGraphManager()!=this)throw"Graph not in this graph mgr";if(t!=this.rootGraph&&(null==t.parent||t.parent.graphManager!=this))throw"Invalid parent node!";for(var e,i,o=[],a=(o=o.concat(t.getEdges())).length,s=0;s=e.getRight()?i[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight()):e.getX()<=t.getX()&&e.getRight()>=t.getRight()&&(i[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight())),t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()?i[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()):e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()&&(i[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()));var o=Math.abs((e.getCenterY()-t.getCenterY())/(e.getCenterX()-t.getCenterX()));e.getCenterY()===t.getCenterY()&&e.getCenterX()===t.getCenterX()&&(o=1);var a=o*i[0],s=i[1]/o;i[0]a?(i[0]=r,i[1]=h,i[2]=o,i[3]=E):no?(i[0]=s,i[1]=n,i[2]=v,i[3]=a):ro?(i[0]=d,i[1]=g):(i[0]=l,i[1]=h),w=!0):C===_&&(r>o?(i[0]=s,i[1]=h):(i[0]=c,i[1]=g),w=!0),-M===_?(o>r?(i[2]=y,i[3]=E):(i[2]=v,i[3]=m),L=!0):M===_&&(o>r?(i[2]=p,i[3]=m):(i[2]=T,i[3]=E),L=!0),w&&L)return!1;if(r>o?n>a?(I=this.getCardinalDirection(C,_,4),x=this.getCardinalDirection(M,_,2)):(I=this.getCardinalDirection(-C,_,3),x=this.getCardinalDirection(-M,_,1)):n>a?(I=this.getCardinalDirection(-C,_,1),x=this.getCardinalDirection(-M,_,3)):(I=this.getCardinalDirection(C,_,2),x=this.getCardinalDirection(M,_,4)),!w)switch(I){case 1:D=h,O=r+-f/_,i[0]=O,i[1]=D;break;case 2:O=c,D=n+u*_,i[0]=O,i[1]=D;break;case 3:D=g,O=r+f/_,i[0]=O,i[1]=D;break;case 4:O=d,D=n+-u*_,i[0]=O,i[1]=D}if(!L)switch(x){case 1:b=m,R=o+-A/_,i[2]=R,i[3]=b;break;case 2:R=T,b=a+N*_,i[2]=R,i[3]=b;break;case 3:b=E,R=o+A/_,i[2]=R,i[3]=b;break;case 4:R=y,b=a+-N*_,i[2]=R,i[3]=b}}return!1},n.getCardinalDirection=function(t,e,i){return t>e?i:1+i%4},n.getIntersection=function(t,e,i,n){if(null==n)return this.getIntersection2(t,e,i);var o=t.x,a=t.y,s=e.x,h=e.y,l=i.x,d=i.y,g=n.x,c=n.y,u=void 0,f=void 0,p=void 0,m=void 0,v=void 0,y=void 0,E=void 0;return(u=h-a,p=o-s,v=s*a-o*h,f=c-d,m=l-g,y=g*d-l*c,0==(E=u*m-f*p))?null:new r((p*y-m*v)/E,(f*v-u*y)/E)},n.angleOfVector=function(t,e,i,r){var n=void 0;return t!==i?(n=Math.atan((r-e)/(i-t)),i=0))return null;var d=(-h+Math.sqrt(h*h-4*s*l))/(2*s),g=(-h-Math.sqrt(h*h-4*s*l))/(2*s);return d>=0&&d<=1?[d]:g>=0&&g<=1?[g]:null},n.HALF_PI=.5*Math.PI,n.ONE_AND_HALF_PI=1.5*Math.PI,n.TWO_PI=2*Math.PI,n.THREE_PI=3*Math.PI,t.exports=n},function(t,e,i){"use strict";function r(){}r.sign=function(t){return t>0?1:t<0?-1:0},r.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},r.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},t.exports=r},function(t,e,i){"use strict";function r(){}r.MAX_VALUE=0x7fffffff,r.MIN_VALUE=-0x80000000,t.exports=r},function(t,e,i){"use strict";var r=function(){function t(t,e){for(var i=0;i0&&e;){for(s.push(l[0]);s.length>0&&e;){var d=s[0];s.splice(0,1),a.add(d);for(var g=d.getEdges(),o=0;o-1&&l.splice(p,1)}a=new Set,h=new Map}else t=[]}return t},c.prototype.createDummyNodesForBendpoints=function(t){for(var e=[],i=t.source,r=this.graphManager.calcLowestCommonAncestor(t.source,t.target),n=0;n0){for(var n=this.edgeToDummyNodes.get(i),o=0;o=0&&e.splice(g,1),s.getNeighborsList().forEach(function(t){if(0>i.indexOf(t)){var e=r.get(t)-1;1==e&&l.push(t),r.set(t,e)}})}i=i.concat(l),(1==e.length||2==e.length)&&(n=!0,o=e[0])}return o},c.prototype.setGraphManager=function(t){this.graphManager=t},t.exports=c},function(t,e,i){"use strict";function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=1e4*Math.sin(r.seed++),r.x-Math.floor(r.x)},t.exports=r},function(t,e,i){"use strict";var r=i(5);function n(t,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}n.prototype.getWorldOrgX=function(){return this.lworldOrgX},n.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},n.prototype.getWorldOrgY=function(){return this.lworldOrgY},n.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},n.prototype.getWorldExtX=function(){return this.lworldExtX},n.prototype.setWorldExtX=function(t){this.lworldExtX=t},n.prototype.getWorldExtY=function(){return this.lworldExtY},n.prototype.setWorldExtY=function(t){this.lworldExtY=t},n.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},n.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},n.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},n.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},n.prototype.getDeviceExtX=function(){return this.ldeviceExtX},n.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},n.prototype.getDeviceExtY=function(){return this.ldeviceExtY},n.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},n.prototype.transformX=function(t){var e=0,i=this.lworldExtX;return 0!=i&&(e=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/i),e},n.prototype.transformY=function(t){var e=0,i=this.lworldExtY;return 0!=i&&(e=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/i),e},n.prototype.inverseTransformX=function(t){var e=0,i=this.ldeviceExtX;return 0!=i&&(e=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/i),e},n.prototype.inverseTransformY=function(t){var e=0,i=this.ldeviceExtY;return 0!=i&&(e=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/i),e},n.prototype.inverseTransformPoint=function(t){return new r(this.inverseTransformX(t.x),this.inverseTransformY(t.y))},t.exports=n},function(t,e,i){"use strict";var r=i(15),n=i(4),o=i(0),a=i(8),s=i(9);function h(){r.call(this),this.useSmartIdealEdgeLengthCalculation=n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=n.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=n.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=n.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*n.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=n.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=n.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=n.MAX_ITERATIONS}for(var l in h.prototype=Object.create(r.prototype),r)h[l]=r[l];h.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=n.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},h.prototype.calcIdealEdgeLengths=function(){for(var t,e,i,r,a,s,h,l=this.getGraphManager().getAllEdges(),d=0;dn.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*n.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-n.ADAPTATION_LOWER_NODE_LIMIT)/(n.ADAPTATION_UPPER_NODE_LIMIT-n.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-n.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=n.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>n.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(n.COOLING_ADAPTATION_FACTOR,1-(t-n.ADAPTATION_LOWER_NODE_LIMIT)/(n.ADAPTATION_UPPER_NODE_LIMIT-n.ADAPTATION_LOWER_NODE_LIMIT)*(1-n.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=n.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.displacementThresholdPerNode=3*n.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var t,e=this.getAllEdges(),i=0;i0)||void 0===arguments[0]||arguments[0],s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],h=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%n.GRID_CALCULATION_CHECK_PERIOD==1&&a&&this.updateGrid(),o=new Set,t=0;t(h=e.getEstimatedSize()*this.gravityRangeFactor)||s>h)&&(t.gravitationForceX=-this.gravityConstant*n,t.gravitationForceY=-this.gravityConstant*o):(a>(h=e.getEstimatedSize()*this.compoundGravityRangeFactor)||s>h)&&(t.gravitationForceX=-this.gravityConstant*n*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*o*this.compoundGravityConstant)},h.prototype.isConverged=function(){var t,e=!1;return this.totalIterations>this.maxIterations/3&&(e=2>Math.abs(this.totalDisplacement-this.oldTotalDisplacement)),t=this.totalDisplacement=s.length||l>=s[0].length)){for(var d=0;dt}}]),t}()},function(t,e,i){"use strict";function r(){}r.svd=function(t){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=t.length,this.n=t[0].length;var e=Math.min(this.m,this.n);this.s=function(t){for(var e=[];t-- >0;)e.push(0);return e}(Math.min(this.m+1,this.n)),this.U=function t(e){if(0==e.length)return 0;for(var i=[],r=0;r0;)e.push(0);return e}(this.n),n=function(t){for(var e=[];t-- >0;)e.push(0);return e}(this.m),o=Math.min(this.m-1,this.n),a=Math.max(0,Math.min(this.n-2,this.m)),s=0;s=0;R--)if(0!==this.s[R]){for(var b=R+1;b=0;Y--){if(td=Y0;){var j=void 0,q=void 0;for(j=x-2;j>=-1&&-1!==j;j--)if(Math.abs(i[j])<=16033346880071782e-307+2220446049250313e-31*(Math.abs(this.s[j])+Math.abs(this.s[j+1]))){i[j]=0;break}if(j===x-2)q=4;else{var K=void 0;for(K=x-1;K>=j&&K!==j;K--){var Z=(K!==x?Math.abs(i[K]):0)+(K!==j+1?Math.abs(i[K-1]):0);if(Math.abs(this.s[K])<=16033346880071782e-307+2220446049250313e-31*Z){this.s[K]=0;break}}K===j?q=3:K===x-1?q=1:(q=2,j=K)}switch(j++,q){case 1:var Q=i[x-2];i[x-2]=0;for(var J=x-2;J>=j;J--){var tt=r.hypot(this.s[J],Q),te=this.s[J]/tt,ti=Q/tt;this.s[J]=tt,J!==j&&(Q=-ti*i[J-1],i[J-1]=te*i[J-1]);for(var tr=0;tr=this.s[j+1]);){var tR=this.s[j];if(this.s[j]=this.s[j+1],this.s[j+1]=tR,jMath.abs(e)?(i=e/t,i=Math.abs(t)*Math.sqrt(1+i*i)):0!=e?(i=t/e,i=Math.abs(e)*Math.sqrt(1+i*i)):i=0,i},t.exports=r},function(t,e,i){"use strict";var r=function(){function t(t,e){for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.sequence1=e,this.sequence2=i,this.match_score=r,this.mismatch_penalty=n,this.gap_penalty=o,this.iMax=e.length+1,this.jMax=i.length+1,this.grid=Array(this.iMax);for(var a=0;a=0;i--){var r=this.listeners[i];r.event===t&&r.callback===e&&this.listeners.splice(i,1)}},n.emit=function(t,e){for(var i=0;i{"use strict";function r(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}i.d(e,{S:()=>r}),(0,i(91158).K)(r,"populateCommonDb")},96123:function(t,e,i){var r;r=i(50255),t.exports=(()=>{"use strict";var t={658:t=>{t.exports=null!=Object.assign?Object.assign.bind(Object):function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),r=1;r{var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],r=!0,n=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);r=!0);}catch(t){n=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(n)throw o}}return i}(t,e);throw TypeError("Invalid attempt to destructure non-iterable instance")},n=i(140).layoutBase.LinkedList,o={};o.getTopMostNodes=function(t){for(var e={},i=0;i0&&l.merge(t)});for(var d=0;d1){d=(l=s[0]).connectedEdges().length,s.forEach(function(t){t.connectedEdges().length0&&r.set("dummy"+(r.size+1),u),f},o.relocateComponent=function(t,e,i){if(!i.fixedNodeConstraint){var n=1/0,o=-1/0,a=1/0,s=-1/0;if("draft"==i.quality){var h=!0,l=!1,d=void 0;try{for(var g,c=e.nodeIndexes[Symbol.iterator]();!(h=(g=c.next()).done);h=!0){var u=g.value,f=r(u,2),p=f[0],m=f[1],v=i.cy.getElementById(p);if(v){var y=v.boundingBox(),E=e.xCoords[m]-y.w/2,T=e.xCoords[m]+y.w/2,N=e.yCoords[m]-y.h/2,A=e.yCoords[m]+y.h/2;Eo&&(o=T),Ns&&(s=A)}}}catch(t){l=!0,d=t}finally{try{!h&&c.return&&c.return()}finally{if(l)throw d}}var w=t.x-(o+n)/2,L=t.y-(s+a)/2;e.xCoords=e.xCoords.map(function(t){return t+w}),e.yCoords=e.yCoords.map(function(t){return t+L})}else{Object.keys(e).forEach(function(t){var i=e[t],r=i.getRect().x,h=i.getRect().x+i.getRect().width,l=i.getRect().y,d=i.getRect().y+i.getRect().height;ro&&(o=h),ls&&(s=d)});var C=t.x-(o+n)/2,M=t.y-(s+a)/2;Object.keys(e).forEach(function(t){var i=e[t];i.setCenter(i.getCenterX()+C,i.getCenterY()+M)})}}},o.calcBoundingBox=function(t,e,i,r){for(var n=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER,h=void 0,l=void 0,d=void 0,g=void 0,c=t.descendants().not(":parent"),u=c.length,f=0;fh&&(n=h),od&&(a=d),s{var r=i(548),n=i(140).CoSELayout,o=i(140).CoSENode,a=i(140).layoutBase.PointD,s=i(140).layoutBase.DimensionD,h=i(140).layoutBase.LayoutConstants,l=i(140).layoutBase.FDLayoutConstants,d=i(140).CoSEConstants;t.exports={coseLayout:function(t,e){var i=t.cy,g=t.eles,c=g.nodes(),u=g.edges(),f=void 0,p=void 0,m=void 0,v={};t.randomize&&(f=e.nodeIndexes,p=e.xCoords,m=e.yCoords);var y=function(t){return"function"==typeof t},E=function(t,e){return y(t)?t(e):t},T=r.calcParentsWithoutChildren(i,g);null!=t.nestingFactor&&(d.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.nestingFactor),null!=t.gravity&&(d.DEFAULT_GRAVITY_STRENGTH=l.DEFAULT_GRAVITY_STRENGTH=t.gravity),null!=t.numIter&&(d.MAX_ITERATIONS=l.MAX_ITERATIONS=t.numIter),null!=t.gravityRange&&(d.DEFAULT_GRAVITY_RANGE_FACTOR=l.DEFAULT_GRAVITY_RANGE_FACTOR=t.gravityRange),null!=t.gravityCompound&&(d.DEFAULT_COMPOUND_GRAVITY_STRENGTH=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.gravityCompound),null!=t.gravityRangeCompound&&(d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.gravityRangeCompound),null!=t.initialEnergyOnIncremental&&(d.DEFAULT_COOLING_FACTOR_INCREMENTAL=l.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.initialEnergyOnIncremental),null!=t.tilingCompareBy&&(d.TILING_COMPARE_BY=t.tilingCompareBy),"proof"==t.quality?h.QUALITY=2:h.QUALITY=0,d.NODE_DIMENSIONS_INCLUDE_LABELS=l.NODE_DIMENSIONS_INCLUDE_LABELS=h.NODE_DIMENSIONS_INCLUDE_LABELS=t.nodeDimensionsIncludeLabels,d.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=!t.randomize,d.ANIMATE=l.ANIMATE=h.ANIMATE=t.animate,d.TILE=t.tile,d.TILING_PADDING_VERTICAL="function"==typeof t.tilingPaddingVertical?t.tilingPaddingVertical.call():t.tilingPaddingVertical,d.TILING_PADDING_HORIZONTAL="function"==typeof t.tilingPaddingHorizontal?t.tilingPaddingHorizontal.call():t.tilingPaddingHorizontal,d.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=!0,d.PURE_INCREMENTAL=!t.randomize,h.DEFAULT_UNIFORM_LEAF_NODE_SIZES=t.uniformNodeDimensions,"transformed"==t.step&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,d.ENFORCE_CONSTRAINTS=!1,d.APPLY_LAYOUT=!1),"enforced"==t.step&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,d.ENFORCE_CONSTRAINTS=!0,d.APPLY_LAYOUT=!1),"cose"==t.step&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,d.ENFORCE_CONSTRAINTS=!1,d.APPLY_LAYOUT=!0),"all"==t.step&&(t.randomize?d.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:d.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,d.ENFORCE_CONSTRAINTS=!0,d.APPLY_LAYOUT=!0),t.fixedNodeConstraint||t.alignmentConstraint||t.relativePlacementConstraint?d.TREE_REDUCTION_ON_INCREMENTAL=!1:d.TREE_REDUCTION_ON_INCREMENTAL=!0;var N=new n,A=N.newGraphManager();return!function t(e,i,n,h){for(var l=i.length,d=0;d0)&&t(n.getGraphManager().add(n.newGraph(),u),c,n,h)}}(A.addRoot(),r.getTopMostNodes(c),N,t),!function(e,i,r){for(var n=0,o=0,a=0;a0?d.DEFAULT_EDGE_LENGTH=l.DEFAULT_EDGE_LENGTH=n/o:y(t.idealEdgeLength)?d.DEFAULT_EDGE_LENGTH=l.DEFAULT_EDGE_LENGTH=50:d.DEFAULT_EDGE_LENGTH=l.DEFAULT_EDGE_LENGTH=t.idealEdgeLength,d.MIN_REPULSION_DIST=l.MIN_REPULSION_DIST=l.DEFAULT_EDGE_LENGTH/10,d.DEFAULT_RADIAL_SEPARATION=l.DEFAULT_EDGE_LENGTH)}(N,A,u),t.fixedNodeConstraint&&(N.constraints.fixedNodeConstraint=t.fixedNodeConstraint),t.alignmentConstraint&&(N.constraints.alignmentConstraint=t.alignmentConstraint),t.relativePlacementConstraint&&(N.constraints.relativePlacementConstraint=t.relativePlacementConstraint),N.runLayout(),v}}},212:(t,e,i)=>{var r=function(){function t(t,e){for(var i=0;i0)if(g){var c=o.getTopMostNodes(t.eles.nodes());if((h=o.connectComponents(e,t.eles,c)).forEach(function(t){var e=t.boundingBox();l.push({x:e.x1+e.w/2,y:e.y1+e.h/2})}),t.randomize&&h.forEach(function(e){t.eles=e,r.push(a(t))}),"default"==t.quality||"proof"==t.quality){var u=e.collection();if(t.tile){var f=new Map,p=0,m={nodeIndexes:f,xCoords:[],yCoords:[]},v=[];if(h.forEach(function(t,e){0==t.edges().length&&(t.nodes().forEach(function(e,i){u.merge(t.nodes()[i]),e.isParent()||(m.nodeIndexes.set(t.nodes()[i].id(),p++),m.xCoords.push(t.nodes()[0].position().x),m.yCoords.push(t.nodes()[0].position().y))}),v.push(e))}),u.length>1){var y=u.boundingBox();l.push({x:y.x1+y.w/2,y:y.y1+y.h/2}),h.push(u),r.push(m);for(var E=v.length-1;E>=0;E--)h.splice(v[E],1),r.splice(v[E],1),l.splice(v[E],1)}}h.forEach(function(e,i){t.eles=e,n.push(s(t,r[i])),o.relocateComponent(l[i],n[i],t)})}else h.forEach(function(e,i){o.relocateComponent(l[i],r[i],t)});var T=new Set;if(h.length>1){var N=[],A=i.filter(function(t){return"none"==t.css("display")});h.forEach(function(e,i){var a=void 0;if("draft"==t.quality&&(a=r[i].nodeIndexes),e.nodes().not(A).length>0){var s={};s.edges=[],s.nodes=[];var h=void 0;e.nodes().not(A).forEach(function(e){if("draft"==t.quality)if(e.isParent()){var l=o.calcBoundingBox(e,r[i].xCoords,r[i].yCoords,a);s.nodes.push({x:l.topLeftX,y:l.topLeftY,width:l.width,height:l.height})}else h=a.get(e.id()),s.nodes.push({x:r[i].xCoords[h]-e.boundingbox().w/2,y:r[i].yCoords[h]-e.boundingbox().h/2,width:e.boundingbox().w,height:e.boundingbox().h});else n[i][e.id()]&&s.nodes.push({x:n[i][e.id()].getLeft(),y:n[i][e.id()].getTop(),width:n[i][e.id()].getWidth(),height:n[i][e.id()].getHeight()})}),e.edges().forEach(function(e){var h=e.source(),l=e.target();if("none"!=h.css("display")&&"none"!=l.css("display"))if("draft"==t.quality){var d=a.get(h.id()),g=a.get(l.id()),c=[],u=[];if(h.isParent()){var f=o.calcBoundingBox(h,r[i].xCoords,r[i].yCoords,a);c.push(f.topLeftX+f.width/2),c.push(f.topLeftY+f.height/2)}else c.push(r[i].xCoords[d]),c.push(r[i].yCoords[d]);if(l.isParent()){var p=o.calcBoundingBox(l,r[i].xCoords,r[i].yCoords,a);u.push(p.topLeftX+p.width/2),u.push(p.topLeftY+p.height/2)}else u.push(r[i].xCoords[g]),u.push(r[i].yCoords[g]);s.edges.push({startX:c[0],startY:c[1],endX:u[0],endY:u[1]})}else n[i][h.id()]&&n[i][l.id()]&&s.edges.push({startX:n[i][h.id()].getCenterX(),startY:n[i][h.id()].getCenterY(),endX:n[i][l.id()].getCenterX(),endY:n[i][l.id()].getCenterY()})}),s.nodes.length>0&&(N.push(s),T.add(i))}});var w=d.packComponents(N,t.randomize).shifts;if("draft"==t.quality)r.forEach(function(t,e){var i=t.xCoords.map(function(t){return t+w[e].dx}),r=t.yCoords.map(function(t){return t+w[e].dy});t.xCoords=i,t.yCoords=r});else{var L=0;T.forEach(function(t){Object.keys(n[t]).forEach(function(e){var i=n[t][e];i.setCenter(i.getCenterX()+w[L].dx,i.getCenterY()+w[L].dy)}),L++})}}}else{var C=t.eles.boundingBox();if(l.push({x:C.x1+C.w/2,y:C.y1+C.h/2}),t.randomize){var M=a(t);r.push(M)}"default"==t.quality||"proof"==t.quality?(n.push(s(t,r[0])),o.relocateComponent(l[0],n[0],t)):o.relocateComponent(l[0],r[0],t)}var _=function(e,i){if("default"==t.quality||"proof"==t.quality){"number"==typeof e&&(e=i);var o=void 0,a=void 0,s=e.data("id");return n.forEach(function(t){s in t&&(o={x:t[s].getRect().getCenterX(),y:t[s].getRect().getCenterY()},a=t[s])}),t.nodeDimensionsIncludeLabels&&(a.labelWidth&&("left"==a.labelPosHorizontal?o.x+=a.labelWidth/2:"right"==a.labelPosHorizontal&&(o.x-=a.labelWidth/2)),a.labelHeight&&("top"==a.labelPosVertical?o.y+=a.labelHeight/2:"bottom"==a.labelPosVertical&&(o.y-=a.labelHeight/2))),void 0==o&&(o={x:e.position("x"),y:e.position("y")}),{x:o.x,y:o.y}}var h=void 0;return r.forEach(function(t){var i=t.nodeIndexes.get(e.id());void 0!=i&&(h={x:t.xCoords[i],y:t.yCoords[i]})}),void 0==h&&(h={x:e.position("x"),y:e.position("y")}),{x:h.x,y:h.y}};if("default"==t.quality||"proof"==t.quality||t.randomize){var I=o.calcParentsWithoutChildren(e,i),x=i.filter(function(t){return"none"==t.css("display")});t.eles=i.not(x),i.nodes().not(":parent").not(x).layoutPositions(this,t,_),I.length>0&&I.forEach(function(t){t.position(_(t))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),t}()},657:(t,e,i)=>{var r=i(548),n=i(140).layoutBase.Matrix,o=i(140).layoutBase.SVD;t.exports={spectralLayout:function(t){var e=t.cy,i=t.eles,a=i.nodes(),s=i.nodes(":parent"),h=new Map,l=new Map,d=new Map,g=[],c=[],u=[],f=[],p=[],m=[],v=[],y=[],E=void 0,T=t.piTol,N=t.samplingType,A=t.nodeSeparation,w=void 0,L=function(){for(var t=0,e=0,i=!1;e=n;){for(var f=g[a=r[n++]],v=0;vd&&(d=p[T],c=T)}return c};r.connectComponents(e,i,r.getTopMostNodes(a),h),s.forEach(function(t){r.connectComponents(e,i,r.getTopMostNodes(t.descendants().intersection(i)),h)});for(var M=0,_=0;_0&&(r.isParent()?g[e].push(d.get(r.id())):g[e].push(r.id()))})});var S=function(t){var i=l.get(t),r=void 0;h.get(t).forEach(function(n){r=e.getElementById(n).isParent()?d.get(n):n,g[i].push(r),g[l.get(r)].push(t)})},G=!0,P=!1,U=void 0;try{for(var k,Y=h.keys()[Symbol.iterator]();!(G=(k=Y.next()).done);G=!0){var H=k.value;S(H)}}catch(t){P=!0,U=t}finally{try{!G&&Y.return&&Y.return()}finally{if(P)throw U}}E=l.size;if(E>2){w=E=1)break;d=l}for(var p=0;p=1)break;d=l}for(var N=0;N{var r=i(212),n=function(t){t&&t("layout","fcose",r)};"undefined"!=typeof cytoscape&&n(cytoscape),t.exports=n},140:t=>{t.exports=r}},e={};return function i(r){var n=e[r];if(void 0!==n)return n.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,i),o.exports}(579)})()}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/6229.bfd99ee01524983e.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/6229.bfd99ee01524983e.js deleted file mode 100644 index ac9f9d0cf..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/6229.bfd99ee01524983e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6229],{33332:(t,e,r)=>{r.d(e,{CP:()=>p,Ck:()=>h,HT:()=>y,PB:()=>c,aC:()=>x,lC:()=>d,m:()=>o,tk:()=>n});var a=r(69301),s=r(91158),l=r(76162),i=r(70668),n=(0,s.K)((t,e)=>{let r=t.append("rect");if(r.attr("x",e.x),r.attr("y",e.y),r.attr("fill",e.fill),r.attr("stroke",e.stroke),r.attr("width",e.width),r.attr("height",e.height),e.name&&r.attr("name",e.name),e.rx&&r.attr("rx",e.rx),e.ry&&r.attr("ry",e.ry),void 0!==e.attrs)for(let t in e.attrs)r.attr(t,e.attrs[t]);return e.class&&r.attr("class",e.class),r},"drawRect"),d=(0,s.K)((t,e)=>{n(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},"drawBackgroundRect"),o=(0,s.K)((t,e)=>{let r=e.text.replace(a.H1," "),s=t.append("text");s.attr("x",e.x),s.attr("y",e.y),s.attr("class","legend"),s.style("text-anchor",e.anchor),e.class&&s.attr("class",e.class);let l=s.append("tspan");return l.attr("x",e.x+2*e.textMargin),l.text(r),s},"drawText"),x=(0,s.K)((t,e,r,a)=>{let s=t.append("image");s.attr("x",e),s.attr("y",r);let i=(0,l.J)(a);s.attr("xlink:href",i)},"drawImage"),p=(0,s.K)((t,e,r,a)=>{let s=t.append("use");s.attr("x",e),s.attr("y",r);let i=(0,l.J)(a);s.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),c=(0,s.K)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),y=(0,s.K)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),h=(0,s.K)(()=>{let t=(0,i.Ltv)(".mermaidTooltip");return t.empty()&&(t=(0,i.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip")},55716:(t,e,r)=>{r.d(e,{m:()=>s});var a=r(91158),s=class{constructor(t){this.init=t,this.records=this.init()}static{(0,a.K)(this,"ImperativeState")}reset(){this.records=this.init()}}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/6327.c01c6b5bc4a40635.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/6327.c01c6b5bc4a40635.js deleted file mode 100644 index c02eb57c4..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/6327.c01c6b5bc4a40635.js +++ /dev/null @@ -1,148 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6327],{3392:(t,e,i)=>{i.d(e,{o:()=>r});var r=(0,i(91158).K)(()=>` - /* Font Awesome icon styling - consolidated */ - .label-icon { - display: inline-block; - height: 1em; - overflow: visible; - vertical-align: -0.125em; - } - - .node .label-icon path { - fill: currentColor; - stroke: revert; - stroke-width: revert; - } -`,"getIconStyles")},33332:(t,e,i)=>{i.d(e,{CP:()=>u,Ck:()=>d,HT:()=>y,PB:()=>p,aC:()=>h,lC:()=>o,m:()=>c,tk:()=>l});var r=i(69301),n=i(91158),a=i(76162),s=i(70668),l=(0,n.K)((t,e)=>{let i=t.append("rect");if(i.attr("x",e.x),i.attr("y",e.y),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("width",e.width),i.attr("height",e.height),e.name&&i.attr("name",e.name),e.rx&&i.attr("rx",e.rx),e.ry&&i.attr("ry",e.ry),void 0!==e.attrs)for(let t in e.attrs)i.attr(t,e.attrs[t]);return e.class&&i.attr("class",e.class),i},"drawRect"),o=(0,n.K)((t,e)=>{l(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},"drawBackgroundRect"),c=(0,n.K)((t,e)=>{let i=e.text.replace(r.H1," "),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.attr("class","legend"),n.style("text-anchor",e.anchor),e.class&&n.attr("class",e.class);let a=n.append("tspan");return a.attr("x",e.x+2*e.textMargin),a.text(i),n},"drawText"),h=(0,n.K)((t,e,i,r)=>{let n=t.append("image");n.attr("x",e),n.attr("y",i);let s=(0,a.J)(r);n.attr("xlink:href",s)},"drawImage"),u=(0,n.K)((t,e,i,r)=>{let n=t.append("use");n.attr("x",e),n.attr("y",i);let s=(0,a.J)(r);n.attr("xlink:href",`#${s}`)},"drawEmbeddedImage"),p=(0,n.K)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),y=(0,n.K)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),d=(0,n.K)(()=>{let t=(0,s.Ltv)(".mermaidTooltip");return t.empty()&&(t=(0,s.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip")},96327:(t,e,i)=>{i.d(e,{diagram:()=>Y});var r=i(3392),n=i(33332),a=i(69301);i(98999);var s=i(91158),l=i(70668),o=function(){var t=(0,s.K)(function(t,e,i,r){for(i=i||{},r=t.length;r--;i[t[r]]=e);return i},"o"),e=[6,8,10,11,12,14,16,17,18],i=[1,9],r=[1,10],n=[1,11],a=[1,12],l=[1,13],o=[1,14],c={trace:(0,s.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:(0,s.K)(function(t,e,i,r,n,a,s){var l=a.length-1;switch(n){case 1:return a[l-1];case 2:case 6:case 7:this.$=[];break;case 3:a[l-1].push(a[l]),this.$=a[l-1];break;case 4:case 5:this.$=a[l];break;case 8:r.setDiagramTitle(a[l].substr(6)),this.$=a[l].substr(6);break;case 9:this.$=a[l].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[l].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[l].substr(8)),this.$=a[l].substr(8);break;case 13:r.addTask(a[l-1],a[l]),this.$="task"}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:r,14:n,16:a,17:l,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:r,14:n,16:a,17:l,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:(0,s.K)(function(t,e){if(e.recoverable)this.trace(t);else{var i=Error(t);throw i.hash=e,i}},"parseError"),parse:(0,s.K)(function(t){var e=this,i=[0],r=[],n=[null],a=[],l=this.table,o="",c=0,h=0,u=0,p=a.slice.call(arguments,1),y=Object.create(this.lexer),d={};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(d[f]=this.yy[f]);y.setInput(t,d),d.lexer=y,d.parser=this,void 0===y.yylloc&&(y.yylloc={});var g=y.yylloc;a.push(g);var x=y.options&&y.options.ranges;function m(){var t;return"number"!=typeof(t=r.pop()||y.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof d.parseError?this.parseError=d.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,s.K)(function(t){i.length=i.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,s.K)(m,"lex");for(var k,_,b,v,w,K,$,T,M,E={};;){if(b=i[i.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==k&&(k=m()),v=l[b]&&l[b][k]),void 0===v||!v.length||!v[0]){var S="";for(K in M=[],l[b])this.terminals_[K]&&K>2&&M.push("'"+this.terminals_[K]+"'");S=y.showPosition?"Parse error on line "+(c+1)+":\n"+y.showPosition()+"\nExpecting "+M.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==k?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(S,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:g,expected:M})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+b+", token: "+k);switch(v[0]){case 1:i.push(k),n.push(y.yytext),a.push(y.yylloc),i.push(v[1]),k=null,_?(k=_,_=null):(h=y.yyleng,o=y.yytext,c=y.yylineno,g=y.yylloc,u>0&&u--);break;case 2:if($=this.productions_[v[1]][1],E.$=n[n.length-$],E._$={first_line:a[a.length-($||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-($||1)].first_column,last_column:a[a.length-1].last_column},x&&(E._$.range=[a[a.length-($||1)].range[0],a[a.length-1].range[1]]),void 0!==(w=this.performAction.apply(E,[o,h,c,d,v[1],n,a].concat(p))))return w;$&&(i=i.slice(0,-1*$*2),n=n.slice(0,-1*$),a=a.slice(0,-1*$)),i.push(this.productions_[v[1]][0]),n.push(E.$),a.push(E._$),T=l[i[i.length-2]][i[i.length-1]],i.push(T);break;case 3:return!0}}return!0},"parse")};function h(){this.yy={}}return c.lexer={EOF:1,parseError:(0,s.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,s.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,s.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,s.K)(function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===r.length?this.yylloc.first_column:0)+r[r.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,s.K)(function(){return this._more=!0,this},"more"),reject:(0,s.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,s.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,s.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,s.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,s.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,s.K)(function(t,e){var i,r,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var a in n)this[a]=n[a];return!1},"test_match"),next:(0,s.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,r,n=this._currentRules(),a=0;ae[0].length)){if(e=i,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,n[a])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,s.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,s.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,s.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,s.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,s.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,s.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,s.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,s.K)(function(t,e,i,r){switch(i){case 0:case 1:case 3:case 4:break;case 2:return 10;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}},(0,s.K)(h,"Parser"),h.prototype=c,c.Parser=h,new h}();o.parser=o;var c="",h=[],u=[],p=[],y=(0,s.K)(function(){h.length=0,u.length=0,c="",p.length=0,(0,a.IU)()},"clear"),d=(0,s.K)(function(t){c=t,h.push(t)},"addSection"),f=(0,s.K)(function(){return h},"getSections"),g=(0,s.K)(function(){let t=_(),e=0;for(;!t&&e<100;)t=_(),e++;return u.push(...p),u},"getTasks"),x=(0,s.K)(function(){let t=[];return u.forEach(e=>{e.people&&t.push(...e.people)}),[...new Set(t)].sort()},"updateActors"),m=(0,s.K)(function(t,e){let i=e.substr(1).split(":"),r=0,n=[];1===i.length?(r=Number(i[0]),n=[]):(r=Number(i[0]),n=i[1].split(","));let a=n.map(t=>t.trim()),s={section:c,type:c,people:a,task:t,score:r};p.push(s)},"addTask"),k=(0,s.K)(function(t){let e={section:c,type:c,description:t,task:t,classes:[]};u.push(e)},"addTaskOrg"),_=(0,s.K)(function(){let t=(0,s.K)(function(t){return p[t].processed},"compileTask"),e=!0;for(let[i,r]of p.entries())t(i),e=e&&r.processed;return e},"compileTasks"),b=(0,s.K)(function(){return x()},"getActors"),v={getConfig:(0,s.K)(()=>(0,a.D7)().journey,"getConfig"),clear:y,setDiagramTitle:a.ke,getDiagramTitle:a.ab,setAccTitle:a.SV,getAccTitle:a.iN,setAccDescription:a.EI,getAccDescription:a.m7,addSection:d,getSections:f,getTasks:g,addTask:m,addTaskOrg:k,getActors:b},w=(0,s.K)(t=>`.label { - font-family: ${t.fontFamily}; - color: ${t.textColor}; - } - .mouth { - stroke: #666; - } - - line { - stroke: ${t.textColor} - } - - .legend { - fill: ${t.textColor}; - font-family: ${t.fontFamily}; - } - - .label text { - fill: #333; - } - .label { - color: ${t.textColor} - } - - .face { - ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"}; - stroke: #999; - } - - .node rect, - .node circle, - .node ellipse, - .node polygon, - .node path { - fill: ${t.mainBkg}; - stroke: ${t.nodeBorder}; - stroke-width: 1px; - } - - .node .label { - text-align: center; - } - .node.clickable { - cursor: pointer; - } - - .arrowheadPath { - fill: ${t.arrowheadColor}; - } - - .edgePaths .path { - stroke: ${t.lineColor}; - stroke-width: 1.5px; - } - - .flowchart-link { - stroke: ${t.lineColor}; - fill: none; - } - - .edgeLabel { - background-color: ${t.edgeLabelBackground}; - rect { - opacity: 0.5; - } - text-align: center; - } - - .cluster rect { - } - - .cluster text { - fill: ${t.titleColor}; - } - - div.mermaidTooltip { - position: absolute; - text-align: center; - max-width: 200px; - padding: 2px; - font-family: ${t.fontFamily}; - font-size: 12px; - background: ${t.tertiaryColor}; - border: 1px solid ${t.border2}; - border-radius: 2px; - pointer-events: none; - z-index: 100; - } - - .task-type-0, .section-type-0 { - ${t.fillType0?`fill: ${t.fillType0}`:""}; - } - .task-type-1, .section-type-1 { - ${t.fillType0?`fill: ${t.fillType1}`:""}; - } - .task-type-2, .section-type-2 { - ${t.fillType0?`fill: ${t.fillType2}`:""}; - } - .task-type-3, .section-type-3 { - ${t.fillType0?`fill: ${t.fillType3}`:""}; - } - .task-type-4, .section-type-4 { - ${t.fillType0?`fill: ${t.fillType4}`:""}; - } - .task-type-5, .section-type-5 { - ${t.fillType0?`fill: ${t.fillType5}`:""}; - } - .task-type-6, .section-type-6 { - ${t.fillType0?`fill: ${t.fillType6}`:""}; - } - .task-type-7, .section-type-7 { - ${t.fillType0?`fill: ${t.fillType7}`:""}; - } - - .actor-0 { - ${t.actor0?`fill: ${t.actor0}`:""}; - } - .actor-1 { - ${t.actor1?`fill: ${t.actor1}`:""}; - } - .actor-2 { - ${t.actor2?`fill: ${t.actor2}`:""}; - } - .actor-3 { - ${t.actor3?`fill: ${t.actor3}`:""}; - } - .actor-4 { - ${t.actor4?`fill: ${t.actor4}`:""}; - } - .actor-5 { - ${t.actor5?`fill: ${t.actor5}`:""}; - } - ${(0,r.o)()} -`,"getStyles"),K=(0,s.K)(function(t,e){return(0,n.tk)(t,e)},"drawRect"),$=(0,s.K)(function(t,e){let i=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),r=t.append("g");function n(t){let i=(0,l.JLW)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function a(t){let i=(0,l.JLW)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function o(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return r.append("circle").attr("cx",e.cx-5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r.append("circle").attr("cx",e.cx+5).attr("cy",e.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),(0,s.K)(n,"smile"),(0,s.K)(a,"sad"),(0,s.K)(o,"ambivalent"),e.score>3?n(r):e.score<3?a(r):o(r),i},"drawFace"),T=(0,s.K)(function(t,e){let i=t.append("circle");return i.attr("cx",e.cx),i.attr("cy",e.cy),i.attr("class","actor-"+e.pos),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("r",e.r),void 0!==i.class&&i.attr("class",i.class),void 0!==e.title&&i.append("title").text(e.title),i},"drawCircle"),M=(0,s.K)(function(t,e){return(0,n.m)(t,e)},"drawText"),E=(0,s.K)(function(t,e,i){let r=t.append("g"),a=(0,n.PB)();a.x=e.x,a.y=e.y,a.fill=e.fill,a.width=i.width*e.taskCount+i.diagramMarginX*(e.taskCount-1),a.height=i.height,a.class="journey-section section-type-"+e.num,a.rx=3,a.ry=3,K(r,a),I(i)(e.text,r,a.x,a.y,a.width,a.height,{class:"journey-section section-type-"+e.num},i,e.colour)},"drawSection"),S=-1,C=(0,s.K)(function(t,e,i,r){let a=e.x+i.width/2,s=t.append("g");S++,s.append("line").attr("id",r+"-task"+S).attr("x1",a).attr("y1",e.y).attr("x2",a).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),$(s,{cx:a,cy:300+(5-e.score)*30,score:e.score});let l=(0,n.PB)();l.x=e.x,l.y=e.y,l.fill=e.fill,l.width=i.width,l.height=i.height,l.class="task task-type-"+e.num,l.rx=3,l.ry=3,K(s,l);let o=e.x+14;e.people.forEach(t=>{let i=e.actors[t].color;T(s,{cx:o,cy:e.y,r:7,fill:i,stroke:"#000",title:t,pos:e.actors[t].position}),o+=10}),I(i)(e.task,s,l.x,l.y,l.width,l.height,{class:"task"},i,e.colour)},"drawTask"),I=function(){function t(t,e,i,n,a,s,l,o){r(e.append("text").attr("x",i+a/2).attr("y",n+s/2+5).style("font-color",o).style("text-anchor","middle").text(t),l)}function e(t,e,i,n,a,s,l,o,c){let{taskFontSize:h,taskFontFamily:u}=o,p=t.split(//gi);for(let t=0;t{let a=j[n].color,s={cx:20,cy:r,r:7,fill:a,stroke:"#000",pos:j[n].position};P.drawCircle(t,s);let l=t.append("text").attr("visibility","hidden").text(n),o=l.node().getBoundingClientRect().width;l.remove();let c=[];if(o<=i)c=[n];else{let e=n.split(" "),r="";l=t.append("text").attr("visibility","hidden"),e.forEach(t=>{let e=r?`${r} ${t}`:t;if(l.text(e),l.node().getBoundingClientRect().width>i){if(r&&c.push(r),r=t,l.text(t),l.node().getBoundingClientRect().width>i){let e="";for(let r of t)e+=r,l.text(e+"-"),l.node().getBoundingClientRect().width>i&&(c.push(e.slice(0,-1)+"-"),e=r);r=e}}else r=e}),r&&c.push(r),l.remove()}c.forEach((i,n)=>{let a={x:40,y:r+7+20*n,fill:"#666",text:i,textMargin:e.boxTextMargin??5},s=P.drawText(t,a).node().getBoundingClientRect().width;s>L&&s>e.leftMargin-s&&(L=s)}),r+=Math.max(20,20*c.length)})}(0,s.K)(D,"drawActorLegend");var V=(0,a.D7)().journey,B=0,F=(0,s.K)(function(t,e,i,r){let n,s=(0,a.D7)(),o=s.journey.titleColor,c=s.journey.titleFontSize,h=s.journey.titleFontFamily,u=s.securityLevel;"sandbox"===u&&(n=(0,l.Ltv)("#i"+e));let p="sandbox"===u?(0,l.Ltv)(n.nodes()[0].contentDocument.body):(0,l.Ltv)("body");N.init();let y=p.select("#"+e);P.initGraphics(y,e);let d=r.db.getTasks(),f=r.db.getDiagramTitle(),g=r.db.getActors();for(let t in j)delete j[t];let x=0;g.forEach(t=>{j[t]={color:V.actorColours[x%V.actorColours.length],position:x},x++}),D(y),B=V.leftMargin+L,N.insert(0,0,B,50*Object.keys(j).length),z(y,d,0,e);let m=N.getBounds();f&&y.append("text").text(f).attr("x",B).attr("font-size",c).attr("font-weight","bold").attr("y",25).attr("fill",o).attr("font-family",h);let k=m.stopy-m.starty+2*V.diagramMarginY,_=B+m.stopx+2*V.diagramMarginX;(0,a.a$)(y,k,_,V.useMaxWidth),y.append("line").attr("x1",B).attr("y1",4*V.height).attr("x2",_-B-4).attr("y2",4*V.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+e+"-arrowhead)");let b=70*!!f;y.attr("viewBox",`${m.startx} -25 ${_} ${k+b}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",k+b+25)},"draw"),N={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:(0,s.K)(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:(0,s.K)(function(t,e,i,r){void 0===t[e]?t[e]=i:t[e]=r(i,t[e])},"updateVal"),updateBounds:(0,s.K)(function(t,e,i,r){let n=(0,a.D7)().journey,l=this,o=0;function c(a){return(0,s.K)(function(s){o++;let c=l.sequenceItems.length-o+1;l.updateVal(s,"starty",e-c*n.boxMargin,Math.min),l.updateVal(s,"stopy",r+c*n.boxMargin,Math.max),l.updateVal(N.data,"startx",t-c*n.boxMargin,Math.min),l.updateVal(N.data,"stopx",i+c*n.boxMargin,Math.max),"activation"!==a&&(l.updateVal(s,"startx",t-c*n.boxMargin,Math.min),l.updateVal(s,"stopx",i+c*n.boxMargin,Math.max),l.updateVal(N.data,"starty",e-c*n.boxMargin,Math.min),l.updateVal(N.data,"stopy",r+c*n.boxMargin,Math.max))},"updateItemBounds")}(0,s.K)(c,"updateFn"),this.sequenceItems.forEach(c())},"updateBounds"),insert:(0,s.K)(function(t,e,i,r){let n=Math.min(t,i),a=Math.max(t,i),s=Math.min(e,r),l=Math.max(e,r);this.updateVal(N.data,"startx",n,Math.min),this.updateVal(N.data,"starty",s,Math.min),this.updateVal(N.data,"stopx",a,Math.max),this.updateVal(N.data,"stopy",l,Math.max),this.updateBounds(n,s,a,l)},"insert"),bumpVerticalPos:(0,s.K)(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:(0,s.K)(function(){return this.verticalPos},"getVerticalPos"),getBounds:(0,s.K)(function(){return this.data},"getBounds")},R=V.sectionFills,O=V.sectionColours,z=(0,s.K)(function(t,e,i,r){let n=(0,a.D7)().journey,s="",l=i+(2*n.height+n.diagramMarginY),o=0,c="#CCC",h="black",u=0;for(let[i,a]of e.entries()){if(s!==a.section){c=R[o%R.length],u=o%R.length,h=O[o%O.length];let r=0,l=a.section;for(let t=i;t(j[e]&&(t[e]=j[e]),t),{});a.x=i*n.taskMargin+i*n.width+B,a.y=l,a.width=n.diagramMarginX,a.height=n.diagramMarginY,a.colour=h,a.fill=c,a.num=u,a.actors=p,P.drawTask(t,a,n,r),N.insert(a.x,a.y,a.x+a.width+n.taskMargin,450)}},"drawTasks"),W={setConf:A,draw:F},Y={parser:o,db:v,renderer:W,styles:w,init:(0,s.K)(t=>{W.setConf(t.journey),v.clear()},"init")}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/6552.5c6a153f149f266a.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/6552.5c6a153f149f266a.js deleted file mode 100644 index ffc1e61f4..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/6552.5c6a153f149f266a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6552],{86552:(r,e,s)=>{s.d(e,{diagram:()=>l});var a=s(48771);s(3392),s(74773),s(24002),s(33807),s(33332),s(48734),s(11232),s(13031),s(69981),s(5663),s(82142),s(29278),s(13892),s(69301),s(98999);var t=s(91158),l={parser:a._$,get db(){return new a.NM},renderer:a.Lh,styles:a.tM,init:(0,t.K)(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/6590.0d9262ce5271f7e4.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/6590.0d9262ce5271f7e4.js deleted file mode 100644 index 2a34db55f..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/6590.0d9262ce5271f7e4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6590],{36590:(e,s,a)=>{a.d(s,{createTreemapServices:()=>c.d});var c=a(55369);a(9448)}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/6600.0cb0446874379e68.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/6600.0cb0446874379e68.js deleted file mode 100644 index a7ef96c95..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/6600.0cb0446874379e68.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6600],{16600:(e,t,r)=>{r.r(t),r.d(t,{applyDagreLayoutResult:()=>N,getEdgesToRender:()=>b,measureDagreLayout:()=>K,prepareLayoutForDagre:()=>v,render:()=>k,runDagreLayoutCore:()=>P});var a=r(70297),i=r(48734),d=r(11232),n=r(13031),o=r(69981);r(5663),r(82142),r(29278),r(13892);var l=r(69301),s=r(98999),g=r(91158),h=r(38235),u=r(31990),p=(0,g.K)((e,t,r)=>Math.max(t,Math.min(r,e)),"clamp"),f=(0,g.K)((e="TB")=>{switch(e){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";default:return"top"}},"getDefaultSelfLoopSide"),c=(0,g.K)(e=>"flowchart"===e||"flowchart-v2"===e||"stateDiagram"===e||"er"===e||"classDiagram"===e,"shouldMergeSelfLoopSegments"),y=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],L=(0,g.K)((e,t,r,a,i)=>{let d=[],n=new Set;if(r.forEach(({start:e,end:t})=>{e!==a&&n.add(e),t!==a&&n.add(t)}),n.forEach(t=>{let r=e.node(t);"number"==typeof r?.x&&"number"==typeof r?.y&&d.push(r)}),0===d.length&&r.forEach(({edge:e})=>{(e.points??[]).forEach(e=>{"number"==typeof e?.x&&"number"==typeof e?.y&&d.push(e)})}),0===d.length)return f(i);let o=d.reduce((e,t)=>({x:e.x+t.x/d.length,y:e.y+t.y/d.length}),{x:0,y:0}),l=o.x-t.x,s=o.y-t.y;return Math.abs(l)>Math.abs(s)?l>0?"right":"left":Math.abs(s)>0?s>0?"bottom":"top":f(i)},"getSelfLoopSide"),m=(0,g.K)((e,t="top",r=0,a=0)=>{let i=e.x,d=e.y-r,n=e.width/2,o=e.height/2,l=Math.max(36,Math.min(100,.8*e.width)),s=p(Math.max(a,.35*e.width),36,l),g=p(.45*Math.min(e.width,e.height),24,48);switch(t){case"bottom":{let e=d+o;return[{x:i-s/2,y:e},{x:i-s/2,y:e+g},{x:i+s/2,y:e+g},{x:i+s/2,y:e}]}case"right":{let e=i+n;return[{x:e,y:d-s/2},{x:e+g,y:d-s/2},{x:e+g,y:d+s/2},{x:e,y:d+s/2}]}case"left":{let e=i-n;return[{x:e,y:d-s/2},{x:e-g,y:d-s/2},{x:e-g,y:d+s/2},{x:e,y:d+s/2}]}default:{let e=d-o;return[{x:i-s/2,y:e},{x:i-s/2,y:e-g},{x:i+s/2,y:e-g},{x:i+s/2,y:e}]}}},"getSelfLoopPoints"),w=(0,g.K)((e,t,r="top",a=0,i={})=>{let d=e.x,n=e.y-a,o=i.width??0,l=i.height??0;switch(r){case"bottom":return{x:d,y:Math.max(...t.map(e=>e.y))+l/2+4};case"right":return{x:Math.max(...t.map(e=>e.x))+o/2+4,y:n};case"left":return{x:Math.min(...t.map(e=>e.x))-o/2-4,y:n};default:return{x:d,y:Math.min(...t.map(e=>e.y))-l/2-4}}},"getSelfLoopLabelPosition"),b=(0,g.K)((e,t=0,{mergeSelfLoops:r=!0}={})=>{let a=new Map,i=[],d=e.graph()?.rankdir;return e.edges().forEach(t=>{let d=e.edge(t);if(r&&d.selfLoop){let e=d.selfLoop.id;a.has(e)||a.set(e,[]),a.get(e).push({edge:d,start:t.v,end:t.w})}else i.push({edge:d,start:t.v,end:t.w})}),a.forEach(r=>{if(3!==r.length)return void r.forEach(e=>i.push(e));r.sort((e,t)=>e.edge.selfLoop.order-t.edge.selfLoop.order);let[a,n,o]=r,l=a.edge.originalEdge??n.edge.originalEdge??o.edge.originalEdge??n.edge,s=e.node(l.start);if(!s)return void r.forEach(e=>i.push(e));let g={width:n.edge.width,height:n.edge.height},h=L(e,s,r,l.start,d),u=m(s,h,t,g.width??0),p=w(s,u,h,t,g),f={...n.edge,...l,id:l.id,points:u,start:l.start,end:l.end,x:p.x,y:p.y,width:g.width,height:g.height,labelStyle:n.edge.labelStyle,fromCluster:a.edge.fromCluster??n.edge.fromCluster??o.edge.fromCluster,toCluster:a.edge.toCluster??n.edge.toCluster??o.edge.toCluster};delete f.selfLoop,delete f.originalEdge,i.push({edge:f,start:f.start,end:f.end})}),i},"getEdgesToRender"),R=(0,g.K)(async({element:e,graph:t,diagramType:r,id:i,parentCluster:l,siteConfig:h})=>{let u=t.graph().rankdir;s.R.trace("Dir in recursive render - dir:",u);let{clusters:p,edgePaths:f,edgeLabels:y,nodes:L,rootGroups:m}=(0,a.B)(e,{edgePathsClass:"edgePaths"});t.nodes()?s.R.info("Recursive render XXX",t.nodes()):s.R.info("No nodes found for",t),t.edges().length>0&&s.R.info("Recursive edges",t.edge(t.edges()[0]));let w=c(r);await Promise.all(t.nodes().map(async function(e){let d=t.node(e);if(void 0!==l){let r=JSON.parse(JSON.stringify(l.clusterData));s.R.trace("Setting data for parent cluster XXX\n Node.id = ",e,"\n data=",r.height,"\nParent cluster",l.height),t.setNode(l.id,r),t.parent(e)||(s.R.trace("Setting parent",e,l.id),t.setParent(e,l.id,r))}if(s.R.info("(Insert) Node XXX"+e+": "+JSON.stringify(t.node(e))),d?.clusterNode){s.R.info("Cluster identified XBX",e,d.width,t.node(e));let{ranksep:a,nodesep:l}=t.graph();d.graph.setGraph({...d.graph.graph(),ranksep:a+25,nodesep:l});let g=await D({element:L,graph:d.graph,diagramType:r,id:i,parentCluster:t.node(e),siteConfig:h}),u=g.elem;(0,o.lC)(d,u),d.diff=g.diff||0,s.R.info("New compound node after recursive render XAX",e,"width",d.width,"height",d.height),(0,n.U7)(u,d)}else t.children(e).length>0?(s.R.trace("Cluster - the non recursive path XBX",e,d.id,d,d.width,"Graph:",t),s.R.trace((0,a.dc)(d.id,t)),a.ju.set(d.id,{id:(0,a.dc)(d.id,t),node:d})):(s.R.trace("Node - the non recursive path XAX",e,L,t.node(e),u),await (0,a.sv)(L,t.node(e),{config:h,dir:u}))}));let b=(0,g.K)(async()=>{let e=t.edges().map(async function(e){let r=t.edge(e.v,e.w,e.name);if(s.R.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),s.R.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(t.edge(e))),s.R.info("Fix",a.ju,"ids:",e.v,e.w,"Translating: ",a.ju.get(e.v),a.ju.get(e.w)),w&&r.selfLoop){if(1!==r.selfLoop.order)return;let e={...r.originalEdge,...r,id:r.selfLoop.id,startLabelLeft:r.originalEdge?.startLabelLeft??r.startLabelLeft,startLabelRight:r.originalEdge?.startLabelRight??r.startLabelRight,endLabelLeft:r.originalEdge?.endLabelLeft??r.endLabelLeft,endLabelRight:r.originalEdge?.endLabelRight??r.endLabelRight};await (0,d.jP)(y,e),r.width=e.width,r.height=e.height,r.labelStyle=e.labelStyle;return}await (0,d.jP)(y,r)});await Promise.all(e)},"processEdges");await b();let{subGraphTitleTotalMargin:R}=(0,n.Oi)(h);return{elem:m,graph:t,groups:{clusters:p,edgePaths:f,edgeLabels:y,nodes:L,rootGroups:m},diagramType:r,id:i,mergeSelfLoops:w,subGraphTitleTotalMargin:R}},"measureDagreGraph"),x=(0,g.K)(e=>{s.R.info("############################################# XXX"),s.R.info("### Layout ### XXX"),s.R.info("############################################# XXX"),(0,h.Zp)(e)},"runDagreGraphLayout"),E=(0,g.K)((e,t,r)=>{let a=e.node(t);if(!a)return;let i={...a};return a?.clusterNode?i.y=(a.y??0)+r:e.children(t).length>0?i.height=(a.height??0)+r:i.y=(a.y??0)+r/2,i},"normalizeDagreNode"),X=(0,g.K)((e,t)=>{y.forEach(r=>{void 0!==t[r]&&(e[r]=t[r])})},"applyDagreNodeLayout"),S=(0,g.K)((e,t,r,a)=>({...e,start:e.start??t,end:e.end??r,points:(e.points??[]).map(e=>({...e,y:"number"==typeof e.y?e.y+a:e.y}))}),"normalizeDagreEdge"),N=(0,g.K)((e,t)=>{let{graph:r,mergeSelfLoops:i,subGraphTitleTotalMargin:d=0}=t,n=new Map(e.nodes.map(e=>[e.id,e]));(0,a.sc)(r).forEach(e=>{let t=E(r,e,d);if(!t)return;X(r.node(e),t);let a=n.get(e);a&&X(a,t)});let o=d/2;return e.edges=b(r,o,{mergeSelfLoops:i}).map(({edge:e,start:t,end:r})=>S(e,t,r,o)),e},"applyDagreLayoutResult"),C=(0,g.K)(async({elem:e,graph:t,groups:{clusters:r,edgePaths:o},diagramType:l,id:g,mergeSelfLoops:h,subGraphTitleTotalMargin:u})=>{let p=0;await Promise.all((0,a.sc)(t).map(async function(e){let d=t.node(e);if(s.R.info("Position XBX => "+e+": ("+d.x,","+d.y,") width: ",d.width," height: ",d.height),d?.clusterNode)d.y+=u,s.R.info("A tainted cluster node XBX1",e,d.id,d.width,d.height,d.x,d.y,t.parent(e)),a.ju.get(d.id).node=d,(0,n.U_)(d);else if(t.children(e).length>0){s.R.info("A pure cluster node XBX1",e,d.id,d.x,d.y,d.width,d.height,t.parent(e)),d.height+=u,t.node(d.parentId);let n=d?.padding/2||0,o=d?.labelBBox?.height||0;s.R.debug("OffsetY",o-n||0,"labelHeight",o,"halfPadding",n),await (0,i.U)(r,d),a.ju.get(d.id).node=d}else{let e=t.node(d.parentId);d.y+=u/2,s.R.info("A regular node XBX1 - using the padding",d.id,"parent",d.parentId,d.width,d.height,d.x,d.y,"offsetY",d.offsetY,"parent",e,e?.offsetY,d),(0,n.U_)(d)}}));let f=u/2;return b(t,f,{mergeSelfLoops:h}).forEach(function({edge:e,start:r,end:i}){s.R.info("Edge "+r+" -> "+i+": "+JSON.stringify(e),e),e.points.forEach(e=>e.y+=f);let n=t.node(r),h=t.node(i),u=(0,d.Jo)(o,e,a.ju,l,n,h,g);(0,d.T_)(e,u)}),t.nodes().forEach(function(e){let r=t.node(e);s.R.info(e,r.type,r.diff),r.isGroup&&(p=r.diff)}),s.R.warn("Returning from recursive render XAX",e,p),{elem:e,diff:p}},"paintDagreLayoutCore"),D=(0,g.K)(async e=>{let t=await R(e);return x(t.graph),await C(t)},"renderDagreSubgraph"),v=(0,g.K)(e=>{let t=new u.T({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.nodeSpacing||e.config?.flowchart?.nodeSpacing,ranksep:e.config?.rankSpacing||e.rankSpacing||e.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return e.nodes.forEach(e=>{t.setNode(e.id,{...e}),e.parentId&&t.setParent(e.id,e.parentId)}),s.R.debug("Edges:",e.edges),e.edges.forEach(e=>{if(e.start===e.end){let r=e.start,a=r+"---"+r+"---1",i=r+"---"+r+"---2",d=t.node(r);t.setNode(a,{domId:a,id:a,parentId:d.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),t.setParent(a,d.parentId),t.setNode(i,{domId:i,id:i,parentId:d.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),t.setParent(i,d.parentId);let n=structuredClone(e),o=structuredClone(e),l=structuredClone(e),s=structuredClone(e);o.originalEdge=n,o.selfLoop={id:n.id,order:0},l.originalEdge=n,l.selfLoop={id:n.id,order:1},s.originalEdge=n,s.selfLoop={id:n.id,order:2},o.label="",o.arrowTypeEnd="none",o.endLabelLeft="",o.endLabelRight="",o.startLabelLeft="",o.id=r+"-cyclic-special-1",l.startLabelRight="",l.startLabelLeft="",l.endLabelLeft="",l.endLabelRight="",l.arrowTypeStart="none",l.arrowTypeEnd="none",l.id=r+"-cyclic-special-mid",s.label="",s.startLabelRight="",s.startLabelLeft="",s.arrowTypeStart="none",d.isGroup&&(o.fromCluster=r,s.toCluster=r),s.id=r+"-cyclic-special-2",s.arrowTypeStart="none",t.setEdge(r,a,o,r+"-cyclic-special-0"),t.setEdge(a,i,l,r+"-cyclic-special-1"),t.setEdge(i,r,s,r+"-cyclic-special-2")}else t.setEdge(e.start,e.end,{...e},e.id)}),(0,a.OS)(t),{graph:t}},"prepareLayoutForDagre"),K=(0,g.K)(async(e,{element:t,preparedLayout:r})=>{let a=r??v(e),i=(0,l.D7)(),d=await R({element:t,graph:a.graph,diagramType:e.type,id:e.diagramId,parentCluster:void 0,siteConfig:i});return a.measuredLayout=d,d},"measureDagreLayout"),P=(0,g.K)((e,t)=>{let r=t.preparedLayout?.measuredLayout;if(!r)throw Error("runDagreLayoutCore requires measureDagreLayout to run first");return x(r.graph),N(e,r),r},"runDagreLayoutCore"),I=(0,g.K)((e,{measure:t})=>(0,a.sc)(t.graph).map(e=>t.graph.node(e)).filter(Boolean),"getDagrePaintNodes"),M=(0,g.K)((e,t,{measure:r})=>e?r.graph.node(e):void 0,"getDagreEdgeNode"),k=(0,a.xY)({prepareLayout:v,measureLayout:K,runLayoutCore:P,paintOptions:{clusterDb:a.ju,getNodes:I,getEdgeNode:M,skipNode:(0,g.K)((e,{measure:t})=>!t.graph.hasNode(e.id),"skipNode"),isCluster:(0,g.K)((e,{measure:t})=>t.graph.hasNode(e.id)&&(t.graph.children(e.id)??[]).length>0,"isCluster")}})}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/6765.fca70e565dc5288a.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/6765.fca70e565dc5288a.js deleted file mode 100644 index 93840871c..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/6765.fca70e565dc5288a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6765],{6765:(t,i,e)=>{e.d(i,{diagram:()=>tn});var s,a=e(94191),n=e(82142);e(29278);var h=e(13892),o=e(69301),r=e(98999),l=e(91158),c=e(70668),g=function(){var t=(0,l.K)(function(t,i,e,s){for(e=e||{},s=t.length;s--;e[t[s]]=i);return e},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],a=[1,5],n=[1,6],h=[1,7],o=[1,5,10,12,14,16,18,19,21,23,36,37,38],r=[1,25],c=[1,26],g=[1,28],u=[1,29],x=[1,30],d=[1,31],p=[1,32],f=[1,33],m=[1,34],y=[1,35],b=[1,36],w=[1,37],A=[1,43],C=[1,42],S=[1,47],k=[1,50],R=[1,10,12,14,16,18,19,21,23,36,37,38],_=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],T=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],D=[1,65],L=[26,28],P={trace:(0,l.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:(0,l.K)(function(t,i,e,s,a,n,h){var o=n.length-1;switch(a){case 5:s.setOrientation(n[o]);break;case 9:s.setDiagramTitle(n[o].text.trim());break;case 12:s.setLineData({text:"",type:"text"},n[o]);break;case 13:s.setLineData(n[o-1],n[o]);break;case 14:s.setBarData({text:"",type:"text"},n[o]);break;case 15:s.setBarData(n[o-1],n[o]);break;case 16:this.$=n[o].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=n[o].trim(),s.setAccDescription(this.$);break;case 19:case 29:this.$=n[o-1];break;case 20:case 30:this.$=[n[o-2],...n[o]];break;case 21:case 31:this.$=[n[o]];break;case 22:this.$={value:Number(n[o-1]),label:n[o]};break;case 23:this.$={value:Number(n[o]),label:""};break;case 24:s.setXAxisTitle(n[o]);break;case 25:s.setXAxisTitle(n[o-1]);break;case 26:s.setXAxisTitle({type:"text",text:""});break;case 27:s.setXAxisBand(n[o]);break;case 28:s.setXAxisRangeData(Number(n[o-2]),Number(n[o]));break;case 32:s.setYAxisTitle(n[o]);break;case 33:s.setYAxisTitle(n[o-1]);break;case 34:s.setYAxisTitle({type:"text",text:""});break;case 35:s.setYAxisRangeData(Number(n[o-2]),Number(n[o]));break;case 39:case 40:this.$={text:n[o],type:"text"};break;case 41:this.$={text:n[o],type:"markdown"};break;case 42:this.$=n[o];break;case 43:this.$=n[o-1]+""+n[o]}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,36:a,37:n,38:h}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,36:a,37:n,38:h}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:n,38:h}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(o,[2,36]),t(o,[2,37]),t(o,[2,38]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,36:a,37:n,38:h}),{1:[2,3]},t(o,[2,5]),t(i,[2,7],{4:22,36:a,37:n,38:h}),{11:23,30:r,39:24,40:c,41:27,42:g,43:u,44:x,45:d,46:p,47:f,48:m,49:y,50:b,51:w},{11:39,13:38,24:A,29:C,30:r,31:40,32:41,39:24,40:c,41:27,42:g,43:u,44:x,45:d,46:p,47:f,48:m,49:y,50:b,51:w},{11:45,15:44,29:S,30:r,35:46,39:24,40:c,41:27,42:g,43:u,44:x,45:d,46:p,47:f,48:m,49:y,50:b,51:w},{11:49,17:48,24:k,30:r,39:24,40:c,41:27,42:g,43:u,44:x,45:d,46:p,47:f,48:m,49:y,50:b,51:w},{11:52,17:51,24:k,30:r,39:24,40:c,41:27,42:g,43:u,44:x,45:d,46:p,47:f,48:m,49:y,50:b,51:w},{20:[1,53]},{22:[1,54]},t(R,[2,18]),{1:[2,2]},t(R,[2,8]),t(R,[2,9]),t(_,[2,39],{41:55,42:g,43:u,44:x,45:d,46:p,47:f,48:m,49:y,50:b,51:w}),t(_,[2,40]),t(_,[2,41]),t(T,[2,42]),t(T,[2,44]),t(T,[2,45]),t(T,[2,46]),t(T,[2,47]),t(T,[2,48]),t(T,[2,49]),t(T,[2,50]),t(T,[2,51]),t(T,[2,52]),t(T,[2,53]),t(R,[2,10]),t(R,[2,24],{32:41,31:56,24:A,29:C}),t(R,[2,26]),t(R,[2,27]),{33:[1,57]},{11:59,30:r,34:58,39:24,40:c,41:27,42:g,43:u,44:x,45:d,46:p,47:f,48:m,49:y,50:b,51:w},t(R,[2,11]),t(R,[2,32],{35:60,29:S}),t(R,[2,34]),{33:[1,61]},t(R,[2,12]),{17:62,24:k},{25:63,27:64,29:D},t(R,[2,14]),{17:66,24:k},t(R,[2,16]),t(R,[2,17]),t(T,[2,43]),t(R,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},t(R,[2,33]),{29:[1,70]},t(R,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},t(L,[2,23],{30:[1,73]}),t(R,[2,15]),t(R,[2,28]),t(R,[2,29]),{11:59,30:r,34:74,39:24,40:c,41:27,42:g,43:u,44:x,45:d,46:p,47:f,48:m,49:y,50:b,51:w},t(R,[2,35]),t(R,[2,19]),{25:75,27:64,29:D},t(L,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:(0,l.K)(function(t,i){if(i.recoverable)this.trace(t);else{var e=Error(t);throw e.hash=i,e}},"parseError"),parse:(0,l.K)(function(t){var i=this,e=[0],s=[],a=[null],n=[],h=this.table,o="",r=0,c=0,g=0,u=n.slice.call(arguments,1),x=Object.create(this.lexer),d={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d[p]=this.yy[p]);x.setInput(t,d),d.lexer=x,d.parser=this,void 0===x.yylloc&&(x.yylloc={});var f=x.yylloc;n.push(f);var m=x.options&&x.options.ranges;function y(){var t;return"number"!=typeof(t=s.pop()||x.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=i.symbols_[t]||t),t}"function"==typeof d.parseError?this.parseError=d.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,l.K)(function(t){e.length=e.length-2*t,a.length=a.length-t,n.length=n.length-t},"popStack"),(0,l.K)(y,"lex");for(var b,w,A,C,S,k,R,_,T,D={};;){if(A=e[e.length-1],this.defaultActions[A]?C=this.defaultActions[A]:(null==b&&(b=y()),C=h[A]&&h[A][b]),void 0===C||!C.length||!C[0]){var L="";for(k in T=[],h[A])this.terminals_[k]&&k>2&&T.push("'"+this.terminals_[k]+"'");L=x.showPosition?"Parse error on line "+(r+1)+":\n"+x.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(r+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(L,{text:x.match,token:this.terminals_[b]||b,line:x.yylineno,loc:f,expected:T})}if(C[0]instanceof Array&&C.length>1)throw Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(C[0]){case 1:e.push(b),a.push(x.yytext),n.push(x.yylloc),e.push(C[1]),b=null,w?(b=w,w=null):(c=x.yyleng,o=x.yytext,r=x.yylineno,f=x.yylloc,g>0&&g--);break;case 2:if(R=this.productions_[C[1]][1],D.$=a[a.length-R],D._$={first_line:n[n.length-(R||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(R||1)].first_column,last_column:n[n.length-1].last_column},m&&(D._$.range=[n[n.length-(R||1)].range[0],n[n.length-1].range[1]]),void 0!==(S=this.performAction.apply(D,[o,c,r,d,C[1],a,n].concat(u))))return S;R&&(e=e.slice(0,-1*R*2),a=a.slice(0,-1*R),n=n.slice(0,-1*R)),e.push(this.productions_[C[1]][0]),a.push(D.$),n.push(D._$),_=h[e[e.length-2]][e[e.length-1]],e.push(_);break;case 3:return!0}}return!0},"parse")};function v(){this.yy={}}return P.lexer={EOF:1,parseError:(0,l.K)(function(t,i){if(this.yy.parser)this.yy.parser.parseError(t,i);else throw Error(t)},"parseError"),setInput:(0,l.K)(function(t,i){return this.yy=i||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,l.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,l.K)(function(t){var i=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===s.length?this.yylloc.first_column:0)+s[s.length-e.length].length-e[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:(0,l.K)(function(){return this._more=!0,this},"more"),reject:(0,l.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,l.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,l.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,l.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,l.K)(function(){var t=this.pastInput(),i=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+i+"^"},"showPosition"),test_match:(0,l.K)(function(t,i){var e,s,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack)for(var n in a)this[n]=a[n];return!1},"test_match"),next:(0,l.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,i,e,s,a=this._currentRules(),n=0;ni[0].length)){if(i=e,s=n,this.options.backtrack_lexer){if(!1!==(t=this.test_match(e,a[n])))return t;if(!this._backtrack)return!1;i=!1;continue}if(!this.options.flex)break}return i?!1!==(t=this.test_match(i,a[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,l.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,l.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,l.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,l.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,l.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,l.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,l.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,l.K)(function(t,i,e,s){switch(e){case 0:case 1:case 5:case 44:break;case 2:case 3:return this.popState(),36;case 4:return 36;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:case 26:case 28:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 33;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 29;case 25:return this.popState(),26;case 27:this.pushState("string");break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 44;case 33:return"COLON";case 34:return 45;case 35:return 28;case 36:return 46;case 37:return 47;case 38:return 49;case 39:return 51;case 40:return 48;case 41:return 42;case 42:return 50;case 43:return 43;case 45:return 37;case 46:return 38}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}},(0,l.K)(v,"Parser"),v.prototype=P,P.Parser=v,new v}();function u(t){return"bar"===t.type}function x(t){return"band"===t.type}function d(t){return"linear"===t.type}g.parser=g,(0,l.K)(u,"isBarPlot"),(0,l.K)(x,"isBandAxisData"),(0,l.K)(d,"isLinearAxisData");var p=class{constructor(t){this.parentGroup=t}static{(0,l.K)(this,"TextDimensionCalculatorWithFont")}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((t,i)=>Math.max(i.length,t),0)*i,height:i};let e={width:0,height:0},s=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(let a of t){let t=(0,n.W6)(s,1,a),h=t?t.width:a.length*i,o=t?t.height:i;e.width=Math.max(e.width,h),e.height=Math.max(e.height,o)}return s.remove(),e}},f=class{constructor(t,i,e,s){this.axisConfig=t,this.title=i,this.textDimensionCalculator=e,this.axisThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.normalizedLabelRotationInRad=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.normalizedLabelRotationInRad=this.axisConfig.labelRotation>=-90&&this.axisConfig.labelRotation<=90?this.axisConfig.labelRotation*Math.PI/180:0}static{(0,l.K)(this,"BaseAxis")}setRange(t){this.range=t,"left"===this.axisPosition||"right"===this.axisPosition?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){let t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>2*this.outerPadding&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let e=this.getLabelDimension(),s=.2*t.width;this.outerPadding=Math.min(e.width/2,s);let a=e.height;"bottom"===this.axisPosition&&0!==this.normalizedLabelRotationInRad&&(a=Math.max(a,Math.abs(Math.sin(this.normalizedLabelRotationInRad)*e.width)+Math.abs(Math.cos(this.normalizedLabelRotationInRad)*e.height))),a+=2*this.axisConfig.labelPadding,this.labelTextHeight=e.height,a<=i&&(i-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),e=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,e<=i&&(i-=e,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let e=this.getLabelDimension(),s=.2*t.height;this.outerPadding=Math.min(e.height/2,s);let a=e.width+2*this.axisConfig.labelPadding;a<=i&&(i-=a,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),e=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,e<=i&&(i-=e,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return"left"===this.axisPosition||"right"===this.axisPosition?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateOffsetByRotation(t){let i=this.normalizedLabelRotationInRad;return 0===i?0:Math.sin(i)*this.getLabelDimension()[t]/2}getDrawableElementsForLeftAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(t),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){let i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${i},${this.getScaleValue(t)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(t)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.getScaleValue(t)+this.calculateOffsetByRotation("height"),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0)+Math.abs(this.calculateOffsetByRotation("width")),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:180*this.normalizedLabelRotationInRad/Math.PI,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${this.getScaleValue(t)},${i} L ${this.getScaleValue(t)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){let t=[];if(this.showAxisLine){let i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+2*this.axisConfig.titlePadding:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){let i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${this.getScaleValue(t)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(t)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if("left"===this.axisPosition)return this.getDrawableElementsForLeftAxis();if("right"===this.axisPosition)throw Error("Drawing of right axis is not implemented");return"bottom"===this.axisPosition?this.getDrawableElementsForBottomAxis():"top"===this.axisPosition?this.getDrawableElementsForTopAxis():[]}},m=class extends f{static{(0,l.K)(this,"BandAxis")}constructor(t,i,e,s,a){super(t,s,a,i),this.categories=e,this.scale=(0,c.WH)().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=(0,c.WH)().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),r.R.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},y=class extends f{static{(0,l.K)(this,"LinearAxis")}constructor(t,i,e,s,a){super(t,s,a,i),this.domain=e,this.scale=(0,c.m4Y)().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let t=[...this.domain];"left"===this.axisPosition&&t.reverse(),this.scale=(0,c.m4Y)().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}};function b(t,i,e,s){let a=new p(s);return x(t)?new m(i,e,t.categories,t.title,a):new y(i,e,[t.min,t.max],t.title,a)}(0,l.K)(b,"getAxis");var w=class{constructor(t,i,e,s){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=e,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{(0,l.K)(this,"ChartTitle")}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){let i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),e=Math.max(i.width,t.width),s=i.height+2*this.chartConfig.titlePadding;return i.width<=e&&i.height<=s&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=e,this.boundingRect.height=s,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){let t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}};function A(t,i,e,s){return new w(new p(s),t,i,e)}function C(t){return{fontSize:t,markerSize:.75*t,markerSpacing:.35*t,itemSpacing:.5*t}}(0,l.K)(A,"getChartTitleComponent"),(0,l.K)(C,"getLegendLayout");var S=class{constructor(t,i,e,s){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=e,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.visiblePlots=[]}static{(0,l.K)(this,"ChartLegend")}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){if(this.visiblePlots=this.chartConfig.showLegend?this.chartData.plots.filter(t=>t.title):[],0===this.visiblePlots.length)return this.boundingRect.width=0,this.boundingRect.height=0,{width:0,height:0};let{fontSize:i,markerSize:e,markerSpacing:s,itemSpacing:a}=C(this.chartConfig.legendFontSize),n=this.textDimensionCalculator.getMaxDimension(this.visiblePlots.map(t=>t.title),i),h=2*this.chartConfig.legendPadding+e+s+n.width,o=2*this.chartConfig.legendPadding+this.visiblePlots.length*i+(this.visiblePlots.length-1)*a;return h<=t.width&&o<=t.height?(this.boundingRect.width=h,this.boundingRect.height=o):(this.visiblePlots=[],this.boundingRect.width=0,this.boundingRect.height=0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(0===this.visiblePlots.length)return[];let{fontSize:t,markerSize:i,markerSpacing:e,itemSpacing:s}=C(this.chartConfig.legendFontSize),a=t+s,n=this.boundingRect.x+this.chartConfig.legendPadding,h=this.boundingRect.y+this.chartConfig.legendPadding,o=[],r=[];for(let[t,e]of this.visiblePlots.entries())if(u(e))o.push({x:n,y:h+t*a,width:i,height:i,fill:e.fill,strokeFill:e.fill,strokeWidth:0});else{let s=h+t*a+i/2;r.push({path:`M ${n},${s} L ${n+i},${s}`,strokeFill:e.strokeFill,strokeWidth:e.strokeWidth})}return[{groupTexts:["legend","markers"],type:"rect",data:o},{groupTexts:["legend","markers"],type:"path",data:r},{groupTexts:["legend","label"],type:"text",data:this.visiblePlots.map((s,o)=>({text:s.title,x:n+i+e,y:h+o*a+i/2,fill:this.chartThemeConfig.legendTextColor,fontSize:t,rotation:0,verticalPos:"middle",horizontalPos:"left"}))}]}};function k(t,i,e,s){return new S(new p(s),t,i,e)}(0,l.K)(k,"getChartLegendComponent");var R=class{constructor(t,i,e,s,a){this.plotData=t,this.xAxis=i,this.yAxis=e,this.orientation=s,this.plotIndex=a}static{(0,l.K)(this,"LinePlot")}getDrawableElement(){let t,i=this.plotData.data.map(t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]);if(!(t="horizontal"===this.orientation?(0,c.n8j)().y(t=>t[0]).x(t=>t[1])(i):(0,c.n8j)().x(t=>t[0]).y(t=>t[1])(i)))return[];let e=[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:t,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}];if(this.plotData.pointLabels&&this.plotData.pointLabels.length>0){let t=[];for(let[e,[s,a]]of i.entries()){let i=this.plotData.pointLabels[e];i&&("horizontal"===this.orientation?t.push({x:a+10,y:s,text:i,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"left",fontSize:12,rotation:0}):t.push({x:s,y:a-10,text:i,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"center",fontSize:12,rotation:0}))}t.length>0&&e.push({groupTexts:["plot",`line-plot-${this.plotIndex}`,"labels"],type:"text",data:t})}return e}},_=class{constructor(t,i,e,s,a,n){this.barData=t,this.boundingRect=i,this.xAxis=e,this.yAxis=s,this.orientation=a,this.plotIndex=n}static{(0,l.K)(this,"BarPlot")}getDrawableElement(){let t=this.barData.data.map(t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]),i=.95*Math.min(2*this.xAxis.getAxisOuterPadding(),this.xAxis.getTickDistance()),e=i/2;return"horizontal"===this.orientation?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(t=>({x:this.boundingRect.x,y:t[0]-e,height:i,width:t[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(t=>({x:t[0]-e,y:t[1],width:i,height:this.boundingRect.y+this.boundingRect.height-t[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},T=class{constructor(t,i,e){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=e,this.boundingRect={x:0,y:0,width:0,height:0}}static{(0,l.K)(this,"BasePlot")}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");let t=[];for(let[i,e]of this.chartData.plots.entries())switch(e.type){case"line":{let s=new R(e,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}break;case"bar":{let s=new _(e,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}}return t}};function D(t,i,e){return new T(t,i,e)}(0,l.K)(D,"getPlotComponent");var L=class{constructor(t,i,e,s){this.chartConfig=t,this.chartData=i,this.componentStore={title:A(t,i,e,s),plot:D(t,i,e),legend:k(t,i,e,s),xAxis:b(i.xAxis,t.xAxis,{titleColor:e.xAxisTitleColor,labelColor:e.xAxisLabelColor,tickColor:e.xAxisTickColor,axisLineColor:e.xAxisLineColor},s),yAxis:b(i.yAxis,t.yAxis,{titleColor:e.yAxisTitleColor,labelColor:e.yAxisLabelColor,tickColor:e.yAxisTickColor,axisLineColor:e.yAxisLineColor},s)}}static{(0,l.K)(this,"Orchestrator")}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,a={width:0,height:0},n=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),h=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),o=this.componentStore.plot.calculateSpace({width:n,height:h});t-=o.width,i-=o.height,s=(o=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i})).height,i-=o.height,this.componentStore.xAxis.setAxisPosition("bottom"),o=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=o.height,this.componentStore.yAxis.setAxisPosition("left"),e=(o=this.componentStore.yAxis.calculateSpace({width:t,height:i})).width,t-=o.width,a=this.componentStore.legend.calculateSpace({width:t,height:h}),(t-=a.width)>0&&(n+=t,t=0),i>0&&(h+=i,i=0),this.componentStore.plot.calculateSpace({width:n,height:h}),this.componentStore.plot.setBoundingBoxXY({x:e,y:s}),this.componentStore.legend.setBoundingBoxXY({x:e+n,y:s+Math.max((h-a.height)/2,0)}),this.componentStore.xAxis.setRange([e,e+n]),this.componentStore.xAxis.setBoundingBoxXY({x:e,y:s+h}),this.componentStore.yAxis.setRange([s,s+h]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:s}),this.chartData.plots.some(t=>u(t))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,a=0,n={width:0,height:0},h=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),o=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),r=this.componentStore.plot.calculateSpace({width:h,height:o});t-=r.width,i-=r.height,e=(r=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i})).height,i-=r.height,this.componentStore.xAxis.setAxisPosition("left"),r=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=r.width,s=r.width,this.componentStore.yAxis.setAxisPosition("top"),r=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=r.height,a=e+r.height,n=this.componentStore.legend.calculateSpace({width:t,height:o}),(t-=n.width)>0&&(h+=t,t=0),i>0&&(o+=i,i=0),this.componentStore.plot.calculateSpace({width:h,height:o}),this.componentStore.plot.setBoundingBoxXY({x:s,y:a}),this.componentStore.legend.setBoundingBoxXY({x:s+h,y:a+Math.max((o-n.height)/2,0)}),this.componentStore.yAxis.setRange([s,s+h]),this.componentStore.yAxis.setBoundingBoxXY({x:s,y:e}),this.componentStore.xAxis.setRange([a,a+o]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some(t=>u(t))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){"horizontal"===this.chartConfig.chartOrientation?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let t=[];for(let i of(this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis),Object.values(this.componentStore)))t.push(...i.getDrawableElements());return t}},P=class{static{(0,l.K)(this,"XYChartBuilder")}static build(t,i,e,s){return new L(t,i,e,s).getDrawableElement()}},v=0,E=W(),K=B(),I=F(),M=K.plotColorPalette.split(",").map(t=>t.trim()),z=!1,$=!1;function B(){let t=(0,o.P$)(),i=(0,o.zj)();return(0,h.$t)(t.xyChart,i.themeVariables.xyChart)}function W(){let t=(0,o.zj)();return(0,h.$t)(o.UI.xyChart,t.xyChart)}function F(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function O(t){let i=(0,o.zj)();return(0,o.jZ)(t.trim(),i)}function N(t){s=t}function X(t){"horizontal"===t?E.chartOrientation="horizontal":E.chartOrientation="vertical"}function V(t){I.xAxis.title=O(t.text)}function Y(t,i){I.xAxis={type:"linear",title:I.xAxis.title,min:t,max:i},z=!0}function H(t){I.xAxis={type:"band",title:I.xAxis.title,categories:t.map(t=>O(t.text))},z=!0}function U(t){I.yAxis.title=O(t.text)}function j(t,i){I.yAxis={type:"linear",title:I.yAxis.title,min:t,max:i},$=!0}function G(t){let i=Math.min(...t),e=Math.max(...t),s=d(I.yAxis)?I.yAxis.min:1/0,a=d(I.yAxis)?I.yAxis.max:-1/0;I.yAxis={type:"linear",title:I.yAxis.title,min:Math.min(s,i),max:Math.max(a,e)}}function Q(t){let i=[];if(0===t.length)return i;if(z||Y(Math.min(d(I.xAxis)?I.xAxis.min:1/0,1),Math.max(d(I.xAxis)?I.xAxis.max:-1/0,t.length)),x(I.xAxis)&&t.length>I.xAxis.categories.length&&(t=t.slice(0,I.xAxis.categories.length)),$||G(t),x(I.xAxis)&&(i=I.xAxis.categories.map((i,e)=>[i,t[e]])),d(I.xAxis)){let e=I.xAxis.min,s=I.xAxis.max;if(1===t.length)i=[[`${e}`,t[0]]];else{let a=(s-e)/(t.length-1);i=t.map((t,i)=>[`${e+i*a}`,t])}}return i}function Z(t){return M[0===t?0:t%M.length]}function q(t,i){let e=i.map(t=>t.value),s=i.map(t=>t.label?O(t.label):""),a=Q(e),n=s.some(t=>""!==t);I.plots.push({type:"line",title:O(t.text),strokeFill:Z(v),strokeWidth:2,data:a,...n?{pointLabels:s}:{}}),v++}function J(t,i){let e=Q(i.map(t=>t.value));I.plots.push({type:"bar",title:O(t.text),fill:Z(v),data:e}),v++}function tt(){if(0===I.plots.length)throw Error("No Plot to render, please provide a plot with some data");return I.title=(0,o.ab)(),P.build(E,I,K,s)}function ti(){return K}function te(){return E}function ts(){return I}(0,l.K)(B,"getChartDefaultThemeConfig"),(0,l.K)(W,"getChartDefaultConfig"),(0,l.K)(F,"getChartDefaultData"),(0,l.K)(O,"textSanitizer"),(0,l.K)(N,"setTmpSVGG"),(0,l.K)(X,"setOrientation"),(0,l.K)(V,"setXAxisTitle"),(0,l.K)(Y,"setXAxisRangeData"),(0,l.K)(H,"setXAxisBand"),(0,l.K)(U,"setYAxisTitle"),(0,l.K)(j,"setYAxisRangeData"),(0,l.K)(G,"setYAxisRangeFromPlotData"),(0,l.K)(Q,"transformDataWithoutCategory"),(0,l.K)(Z,"getPlotColorFromPalette"),(0,l.K)(q,"setLineData"),(0,l.K)(J,"setBarData"),(0,l.K)(tt,"getDrawableElem"),(0,l.K)(ti,"getChartThemeConfig"),(0,l.K)(te,"getChartConfig"),(0,l.K)(ts,"getXYChartData");var ta={getDrawableElem:tt,clear:(0,l.K)(function(){(0,o.IU)(),v=0,E=W(),I=F(),M=(K=B()).plotColorPalette.split(",").map(t=>t.trim()),z=!1,$=!1},"clear"),setAccTitle:o.SV,getAccTitle:o.iN,setDiagramTitle:o.ke,getDiagramTitle:o.ab,getAccDescription:o.m7,setAccDescription:o.EI,setOrientation:X,setXAxisTitle:V,setXAxisRangeData:Y,setXAxisBand:H,setYAxisTitle:U,setYAxisRangeData:j,setLineData:q,setBarData:J,setTmpSVGG:N,getChartThemeConfig:ti,getChartConfig:te,getXYChartData:ts},tn={parser:g,db:ta,renderer:{draw:(0,l.K)((t,i,e,s)=>{let n=s.db,h=n.getChartThemeConfig(),c=n.getChartConfig(),g=n.getXYChartData().plots[0].data.map(t=>t[1]);function u(t){return"top"===t?"text-before-edge":"middle"}function x(t){return"left"===t?"start":"right"===t?"end":"middle"}function d(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}(0,l.K)(u,"getDominantBaseLine"),(0,l.K)(x,"getTextAnchor"),(0,l.K)(d,"getTextTransformation"),r.R.debug("Rendering xychart chart\n"+t);let p=(0,a.D)(i),f=p.append("g").attr("class","main"),m=f.append("rect").attr("width",c.width).attr("height",c.height).attr("class","background");(0,o.a$)(p,c.height,c.width,!0),p.attr("viewBox",`0 0 ${c.width} ${c.height}`),m.attr("fill",h.backgroundColor),n.setTmpSVGG(p.append("g").attr("class","mermaid-tmp-group"));let y=n.getDrawableElem(),b={};function w(t){let i=f,e="";for(let[s]of t.entries()){let a=f;s>0&&b[e]&&(a=b[e]),e+=t[s],(i=b[e])||(i=b[e]=a.append("g").attr("class",t[s]))}return i}for(let t of((0,l.K)(w,"getGroup"),y)){if(0===t.data.length)continue;let i=w(t.groupTexts);switch(t.type){case"rect":if(i.selectAll("rect").data(t.data).enter().append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill).attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth),c.showDataLabel){let e=c.showDataLabelOutsideBar;if("horizontal"===c.chartOrientation){let s=function(t,i){let{data:e,label:s}=t;return i*s.length*a<=e.width-n};(0,l.K)(s,"fitsHorizontally");let a=.7,n=10,o=t.data.map((t,i)=>({data:t,label:g[i].toString()})).filter(t=>t.data.width>0&&t.data.height>0),r=Math.floor(Math.min(...o.map(t=>{let{data:i}=t,e=.7*i.height;for(;!s(t,e)&&e>0;)e-=1;return e}))),c=(0,l.K)(t=>e?t.data.x+t.data.width+n:t.data.x+t.data.width-n,"determineLabelXPosition");i.selectAll("text").data(o).enter().append("text").attr("x",c).attr("y",t=>t.data.y+t.data.height/2).attr("text-anchor",e?"start":"end").attr("dominant-baseline","middle").attr("fill",h.dataLabelColor).attr("font-size",`${r}px`).text(t=>t.label)}else{let s=function(t,i,e){let{data:s,label:a}=t,n=i*a.length*.7,h=s.x+s.width/2,o=h-n/2,r=h+n/2,l=o>=s.x&&r<=s.x+s.width,c=s.y+e+i<=s.y+s.height;return l&&c};(0,l.K)(s,"fitsInBar");let a=t.data.map((t,i)=>({data:t,label:g[i].toString()})).filter(t=>t.data.width>0&&t.data.height>0),n=Math.floor(Math.min(...a.map(t=>{let{data:i,label:e}=t,a=i.width/(.7*e.length);for(;!s(t,a,10)&&a>0;)a-=1;return a}))),o=(0,l.K)(t=>e?t.data.y-10:t.data.y+10,"determineLabelYPosition");i.selectAll("text").data(a).enter().append("text").attr("x",t=>t.data.x+t.data.width/2).attr("y",o).attr("text-anchor","middle").attr("dominant-baseline",e?"auto":"hanging").attr("fill",h.dataLabelColor).attr("font-size",`${n}px`).text(t=>t.label)}}break;case"text":i.selectAll("text").data(t.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>u(t.verticalPos)).attr("text-anchor",t=>x(t.horizontalPos)).attr("transform",t=>d(t)).text(t=>t.text);break;case"path":i.selectAll("path").data(t.data).enter().append("path").attr("d",t=>t.path).attr("fill",t=>t.fill?t.fill:"none").attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth)}}},"draw")}}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/7013.5679fd8be26e0517.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/7013.5679fd8be26e0517.js deleted file mode 100644 index 4436e8961..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/7013.5679fd8be26e0517.js +++ /dev/null @@ -1,138 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7013],{3392:(e,t,s)=>{s.d(t,{o:()=>i});var i=(0,s(91158).K)(()=>` - /* Font Awesome icon styling - consolidated */ - .label-icon { - display: inline-block; - height: 1em; - overflow: visible; - vertical-align: -0.125em; - } - - .node .label-icon path { - fill: currentColor; - stroke: revert; - stroke-width: revert; - } -`,"getIconStyles")},7013:(e,t,s)=>{s.d(t,{diagram:()=>ef});var i=s(3392),r=s(11232),n=s(13031);s(69981),s(5663),s(82142),s(29278);var a=s(13892),l=s(69301),o=s(98999),c=s(91158),h=s(38789),u=s(94250),g=s(41977),d=s(84368);function y(e,t){for(let s in t)Object.hasOwn(t,s)&&(e[s]=t[s])}var p=s(82237),b=s(43500),f=s(70668),S=s(31990),x=function(){var e=(0,c.K)(function(e,t,s,i){for(s=s||{},i=e.length;i--;s[e[i]]=t);return s},"o"),t=[1,15],s=[1,7],i=[1,13],r=[1,14],n=[1,19],a=[1,16],l=[1,17],o=[1,18],h=[8,30],u=[8,10,21,28,29,30,31,39,43,46],g=[1,23],d=[1,24],y=[8,10,15,16,21,28,29,30,31,39,43,46],p=[8,10,15,16,21,27,28,29,30,31,39,43,46],b=[1,49],f={trace:(0,c.K)(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:(0,c.K)(function(e,t,s,i,r,n,a){var l=n.length-1;switch(r){case 4:i.getLogger().debug("Rule: separator (NL) ");break;case 5:i.getLogger().debug("Rule: separator (Space) ");break;case 6:i.getLogger().debug("Rule: separator (EOF) ");break;case 7:i.getLogger().debug("Rule: hierarchy: ",n[l-1]),i.setHierarchy(n[l-1]);break;case 8:i.getLogger().debug("Stop NL ");break;case 9:i.getLogger().debug("Stop EOF ");break;case 10:i.getLogger().debug("Stop NL2 ");break;case 11:i.getLogger().debug("Stop EOF2 ");break;case 12:i.getLogger().debug("Rule: statement: ",n[l]),"number"==typeof n[l].length?this.$=n[l]:this.$=[n[l]];break;case 13:i.getLogger().debug("Rule: statement #2: ",n[l-1]),this.$=[n[l-1]].concat(n[l]);break;case 14:i.getLogger().debug("Rule: link: ",n[l],e),this.$={edgeTypeStr:n[l],label:""};break;case 15:i.getLogger().debug("Rule: LABEL link: ",n[l-3],n[l-1],n[l]),this.$={edgeTypeStr:n[l],label:n[l-1]};break;case 18:let o=parseInt(n[l]),c=i.generateId();this.$={id:c,type:"space",label:"",width:o,children:[]};break;case 23:i.getLogger().debug("Rule: (nodeStatement link node) ",n[l-2],n[l-1],n[l]," typestr: ",n[l-1].edgeTypeStr);let h=i.edgeStrToEdgeData(n[l-1].edgeTypeStr),u=i.edgeStrToEdgeStartData(n[l-1].edgeTypeStr),g=i.edgeStrToThickness(n[l-1].edgeTypeStr),d=i.edgeStrToPattern(n[l-1].edgeTypeStr);this.$=[{id:n[l-2].id,label:n[l-2].label,type:n[l-2].type,directions:n[l-2].directions},{id:n[l-2].id+"-"+n[l].id,start:n[l-2].id,end:n[l].id,label:n[l-1].label,type:"edge",thickness:g,pattern:d,directions:n[l].directions,arrowTypeEnd:h,arrowTypeStart:u},{id:n[l].id,label:n[l].label,type:i.typeStr2Type(n[l].typeStr),directions:n[l].directions}];break;case 24:i.getLogger().debug("Rule: nodeStatement (abc88 node size) ",n[l-1],n[l]),this.$={id:n[l-1].id,label:n[l-1].label,type:i.typeStr2Type(n[l-1].typeStr),directions:n[l-1].directions,widthInColumns:parseInt(n[l],10)};break;case 25:i.getLogger().debug("Rule: nodeStatement (node) ",n[l]),this.$={id:n[l].id,label:n[l].label,type:i.typeStr2Type(n[l].typeStr),directions:n[l].directions,widthInColumns:1};break;case 26:i.getLogger().debug("APA123",this?this:"na"),i.getLogger().debug("COLUMNS: ",n[l]),this.$={type:"column-setting",columns:"auto"===n[l]?-1:parseInt(n[l])};break;case 27:i.getLogger().debug("Rule: id-block statement : ",n[l-2],n[l-1]),i.generateId(),this.$={...n[l-2],type:"composite",children:n[l-1]};break;case 28:i.getLogger().debug("Rule: blockStatement : ",n[l-2],n[l-1],n[l]);let y=i.generateId();this.$={id:y,type:"composite",label:"",children:n[l-1]};break;case 29:i.getLogger().debug("Rule: node (NODE_ID separator): ",n[l]),this.$={id:n[l]};break;case 30:i.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",n[l-1],n[l]),this.$={id:n[l-1],label:n[l].label,typeStr:n[l].typeStr,directions:n[l].directions};break;case 31:i.getLogger().debug("Rule: dirList: ",n[l]),this.$=[n[l]];break;case 32:i.getLogger().debug("Rule: dirList: ",n[l-1],n[l]),this.$=[n[l-1]].concat(n[l]);break;case 33:i.getLogger().debug("Rule: nodeShapeNLabel: ",n[l-2],n[l-1],n[l]),this.$={typeStr:n[l-2]+n[l],label:n[l-1]};break;case 34:i.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",n[l-3],n[l-2]," #3:",n[l-1],n[l]),this.$={typeStr:n[l-3]+n[l],label:n[l-2],directions:n[l-1]};break;case 35:case 36:this.$={type:"classDef",id:n[l-1].trim(),css:n[l].trim()};break;case 37:this.$={type:"applyClass",id:n[l-1].trim(),styleClass:n[l].trim()};break;case 38:this.$={type:"applyStyles",id:n[l-1].trim(),stylesStr:n[l].trim()}}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:s,22:8,23:9,24:10,25:11,26:12,28:i,29:r,31:n,39:a,43:l,46:o},{8:[1,20]},e(h,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:s,28:i,29:r,31:n,39:a,43:l,46:o}),e(u,[2,16],{14:22,15:g,16:d}),e(u,[2,17]),e(u,[2,18]),e(u,[2,19]),e(u,[2,20]),e(u,[2,21]),e(u,[2,22]),e(y,[2,25],{27:[1,25]}),e(u,[2,26]),{19:26,26:12,31:n},{10:t,11:27,13:4,19:5,20:6,21:s,22:8,23:9,24:10,25:11,26:12,28:i,29:r,31:n,39:a,43:l,46:o},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(p,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(h,[2,13]),{26:35,31:n},{31:[2,14]},{17:[1,36]},e(y,[2,24]),{10:t,11:37,13:4,14:22,15:g,16:d,19:5,20:6,21:s,22:8,23:9,24:10,25:11,26:12,28:i,29:r,31:n,39:a,43:l,46:o},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(p,[2,30]),{18:[1,43]},{18:[1,44]},e(y,[2,23]),{18:[1,45]},{30:[1,46]},e(u,[2,28]),e(u,[2,35]),e(u,[2,36]),e(u,[2,37]),e(u,[2,38]),{36:[1,47]},{33:48,34:b},{15:[1,50]},e(u,[2,27]),e(p,[2,33]),{38:[1,51]},{33:52,34:b,38:[2,31]},{31:[2,15]},e(p,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:(0,c.K)(function(e,t){if(t.recoverable)this.trace(e);else{var s=Error(e);throw s.hash=t,s}},"parseError"),parse:(0,c.K)(function(e){var t=this,s=[0],i=[],r=[null],n=[],a=this.table,l="",o=0,h=0,u=0,g=n.slice.call(arguments,1),d=Object.create(this.lexer),y={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(y[p]=this.yy[p]);d.setInput(e,y),y.lexer=d,y.parser=this,void 0===d.yylloc&&(d.yylloc={});var b=d.yylloc;n.push(b);var f=d.options&&d.options.ranges;function S(){var e;return"number"!=typeof(e=i.pop()||d.lex()||1)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof y.parseError?this.parseError=y.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,c.K)(function(e){s.length=s.length-2*e,r.length=r.length-e,n.length=n.length-e},"popStack"),(0,c.K)(S,"lex");for(var x,L,m,_,k,w,E,D,$,N={};;){if(m=s[s.length-1],this.defaultActions[m]?_=this.defaultActions[m]:(null==x&&(x=S()),_=a[m]&&a[m][x]),void 0===_||!_.length||!_[0]){var I="";for(w in $=[],a[m])this.terminals_[w]&&w>2&&$.push("'"+this.terminals_[w]+"'");I=d.showPosition?"Parse error on line "+(o+1)+":\n"+d.showPosition()+"\nExpecting "+$.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(I,{text:d.match,token:this.terminals_[x]||x,line:d.yylineno,loc:b,expected:$})}if(_[0]instanceof Array&&_.length>1)throw Error("Parse Error: multiple actions possible at state: "+m+", token: "+x);switch(_[0]){case 1:s.push(x),r.push(d.yytext),n.push(d.yylloc),s.push(_[1]),x=null,L?(x=L,L=null):(h=d.yyleng,l=d.yytext,o=d.yylineno,b=d.yylloc,u>0&&u--);break;case 2:if(E=this.productions_[_[1]][1],N.$=r[r.length-E],N._$={first_line:n[n.length-(E||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(E||1)].first_column,last_column:n[n.length-1].last_column},f&&(N._$.range=[n[n.length-(E||1)].range[0],n[n.length-1].range[1]]),void 0!==(k=this.performAction.apply(N,[l,h,o,y,_[1],r,n].concat(g))))return k;E&&(s=s.slice(0,-1*E*2),r=r.slice(0,-1*E),n=n.slice(0,-1*E)),s.push(this.productions_[_[1]][0]),r.push(N.$),n.push(N._$),D=a[s[s.length-2]][s[s.length-1]],s.push(D);break;case 3:return!0}}return!0},"parse")};function S(){this.yy={}}return f.lexer={EOF:1,parseError:(0,c.K)(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},"parseError"),setInput:(0,c.K)(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,c.K)(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:(0,c.K)(function(e){var t=e.length,s=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:(0,c.K)(function(){return this._more=!0,this},"more"),reject:(0,c.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,c.K)(function(e){this.unput(this.match.slice(e))},"less"),pastInput:(0,c.K)(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,c.K)(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,c.K)(function(){var e=this.pastInput(),t=Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:(0,c.K)(function(e,t){var s,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],s=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack)for(var n in r)this[n]=r[n];return!1},"test_match"),next:(0,c.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var e,t,s,i,r=this._currentRules(),n=0;nt[0].length)){if(t=s,i=n,this.options.backtrack_lexer){if(!1!==(e=this.test_match(s,r[n])))return e;if(!this._backtrack)return!1;t=!1;continue}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,c.K)(function(){var e=this.next();return e||this.lex()},"lex"),begin:(0,c.K)(function(e){this.conditionStack.push(e)},"begin"),popState:(0,c.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,c.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,c.K)(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:(0,c.K)(function(e){this.begin(e)},"pushState"),stateStackSize:(0,c.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,c.K)(function(e,t,s,i){switch(s){case 0:return e.getLogger().debug("Found block-beta"),10;case 1:return e.getLogger().debug("Found id-block"),29;case 2:return e.getLogger().debug("Found block"),10;case 3:e.getLogger().debug(".",t.yytext);break;case 4:e.getLogger().debug("_",t.yytext);break;case 5:return 5;case 6:return t.yytext=-1,28;case 7:return t.yytext=t.yytext.replace(/columns\s+/,""),e.getLogger().debug("COLUMNS (LEX)",t.yytext),28;case 8:case 76:case 77:case 99:this.pushState("md_string");break;case 9:return"MD_STR";case 10:case 34:case 79:this.popState();break;case 11:this.pushState("string");break;case 12:e.getLogger().debug("LEX: POPPING STR:",t.yytext),this.popState();break;case 13:return e.getLogger().debug("LEX: STR end:",t.yytext),"STR";case 14:return t.yytext=t.yytext.replace(/space\:/,""),e.getLogger().debug("SPACE NUM (LEX)",t.yytext),21;case 15:return t.yytext="1",e.getLogger().debug("COLUMNS (LEX)",t.yytext),21;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 21:return this.popState(),this.pushState("CLASSDEFID"),40;case 22:return this.popState(),41;case 23:return this.pushState("CLASS"),43;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;case 25:return this.popState(),45;case 26:return this.pushState("STYLE_STMNT"),46;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;case 28:return this.popState(),48;case 29:return this.pushState("acc_title"),"acc_title";case 30:return this.popState(),"acc_title_value";case 31:return this.pushState("acc_descr"),"acc_descr";case 32:return this.popState(),"acc_descr_value";case 33:this.pushState("acc_descr_multiline");break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:case 38:case 40:case 41:case 44:return this.popState(),e.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),e.getLogger().debug("Lex: ))"),"NODE_DEND";case 42:return this.popState(),e.getLogger().debug("Lex: (-"),"NODE_DEND";case 43:return this.popState(),e.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),e.getLogger().debug("Lex: ]]"),"NODE_DEND";case 46:return this.popState(),e.getLogger().debug("Lex: ("),"NODE_DEND";case 47:return this.popState(),e.getLogger().debug("Lex: ])"),"NODE_DEND";case 48:case 49:return this.popState(),e.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),e.getLogger().debug("Lex: )]"),"NODE_DEND";case 51:return this.popState(),e.getLogger().debug("Lex: )"),"NODE_DEND";case 52:return this.popState(),e.getLogger().debug("Lex: ]>"),"NODE_DEND";case 53:return this.popState(),e.getLogger().debug("Lex: ]"),"NODE_DEND";case 54:return e.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;case 55:return e.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;case 56:return e.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;case 57:case 59:case 60:case 61:case 64:return e.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;case 58:return e.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;case 62:return e.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;case 63:return e.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;case 65:case 66:case 67:case 68:case 69:case 70:case 71:return this.pushState("NODE"),35;case 72:return e.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;case 73:return this.pushState("BLOCK_ARROW"),e.getLogger().debug("LEX ARR START"),37;case 74:return e.getLogger().debug("Lex: NODE_ID",t.yytext),31;case 75:return e.getLogger().debug("Lex: EOF",t.yytext),8;case 78:return"NODE_DESCR";case 80:e.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:e.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return e.getLogger().debug("LEX: NODE_DESCR:",t.yytext),"NODE_DESCR";case 83:e.getLogger().debug("LEX POPPING"),this.popState();break;case 84:e.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (right): dir:",t.yytext),"DIR";case 86:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (left):",t.yytext),"DIR";case 87:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (x):",t.yytext),"DIR";case 88:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (y):",t.yytext),"DIR";case 89:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (up):",t.yytext),"DIR";case 90:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (down):",t.yytext),"DIR";case 91:return t.yytext="]>",e.getLogger().debug("Lex (ARROW_DIR end):",t.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 92:return e.getLogger().debug("Lex: LINK","#"+t.yytext+"#"),15;case 93:case 94:case 95:return e.getLogger().debug("Lex: LINK",t.yytext),15;case 96:case 97:case 98:return e.getLogger().debug("Lex: START_LINK",t.yytext),this.pushState("LLABEL"),16;case 100:return e.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 101:return this.popState(),e.getLogger().debug("Lex: LINK","#"+t.yytext+"#"),15;case 102:case 103:return this.popState(),e.getLogger().debug("Lex: LINK",t.yytext),15;case 104:return e.getLogger().debug("Lex: COLON",t.yytext),t.yytext=t.yytext.slice(1),27}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}},(0,c.K)(S,"Parser"),S.prototype=f,f.Parser=S,new S}();x.parser=x;var L=new Map,m=[],_=new Map,k="color",w="fill",E=new Map,D="",$=(0,c.K)(e=>l.Y2.sanitizeText(e,(0,l.D7)()),"sanitizeText"),N=(0,c.K)(function(e,t=""){let s=E.get(e);s||(s={id:e,styles:[],textStyles:[]},E.set(e,s)),null!=t&&t.split(",").forEach(e=>{let t=e.replace(/([^;]*);/,"$1").trim();if(RegExp(k).exec(e)){let e=t.replace(w,"bgFill").replace(k,w);s.textStyles.push(e)}s.styles.push(t)})},"addStyleClass"),I=(0,c.K)(function(e,t=""){let s=L.get(e);null!=t&&(s.styles=t.split(","))},"addStyle2Node"),T=(0,c.K)(function(e,t){e.split(",").forEach(function(e){let s=L.get(e);if(void 0===s){let t=e.trim();s={id:t,type:"na",children:[]},L.set(t,s)}s.classes||(s.classes=[]),s.classes.push(t)})},"setCssClass"),R=(0,c.K)((e,t)=>{let s=e.flat(),i=[],r=s.find(e=>e?.type==="column-setting"),n=r?.columns??-1;for(let e of s){if("number"==typeof n&&n>0&&"column-setting"!==e.type&&"number"==typeof e.widthInColumns&&e.widthInColumns>n&&o.R.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${n}`),e.label&&(e.label=$(e.label)),"classDef"===e.type){N(e.id,e.css);continue}if("applyClass"===e.type){T(e.id,e?.styleClass??"");continue}if("applyStyles"===e.type){e?.stylesStr&&I(e.id,e?.stylesStr);continue}if("column-setting"===e.type)t.columns=e.columns??-1;else if("edge"===e.type){let t=(_.get(e.id)??0)+1;_.set(e.id,t),e.id=t+"-"+e.id,m.push(e)}else{e.label||("composite"===e.type?e.label="":e.label=e.id);let t=L.get(e.id);if(void 0===t?L.set(e.id,e):("na"!==e.type&&(t.type=e.type),e.label!==e.id&&(t.label=e.label)),e.children&&R(e.children,e),"space"===e.type){let t=e.width??1;for(let s=0;s0&&"string"==typeof e[0]&&Object.hasOwn(e,"index")&&(t.index=e.index,t.input=e.input),t}if((0,d.i)(e))return new e.constructor(e.buffer,e.byteOffset,e.length);if("[object ArrayBuffer]"===t)return new ArrayBuffer(e.byteLength);if("[object DataView]"===t){let t=e.buffer,s=e.byteOffset,i=e.byteLength,r=new ArrayBuffer(i),n=new Uint8Array(t,s,i);return new Uint8Array(r).set(n),new DataView(r)}if("[object Boolean]"===t||"[object Number]"===t||"[object String]"===t){let s=new e.constructor(e.valueOf());return"[object String]"===t?function(e,t){let s=t.valueOf().length;for(let i in t)Object.hasOwn(t,i)&&(Number.isNaN(Number(i))||Number(i)>=s)&&(e[i]=t[i])}(s,e):y(s,e),s}if("[object Date]"===t)return new Date(Number(e));if("[object RegExp]"===t){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if("[object Symbol]"===t)return Object(Symbol.prototype.valueOf.call(e));if("[object Map]"===t){let t=new Map;return e.forEach((e,s)=>{t.set(s,e)}),t}if("[object Set]"===t){let t=new Set;return e.forEach(e=>{t.add(e)}),t}if("[object Arguments]"===t){let t={};return y(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}let s={};return function(e,t){let s=Object.getPrototypeOf(t);null!==s&&"function"==typeof t.constructor&&Object.setPrototypeOf(e,s)}(s,e),y(s,e),function(e,t){let s=Object.getOwnPropertySymbols(t);for(let i=0;i{o.R.debug("Clear called"),(0,l.IU)(),L=new Map([["root",z={id:"root",type:"composite",children:[],columns:-1}]]),O=[],E=new Map,m=[],_=new Map,D=""},"clear");function A(e){switch(o.R.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return o.R.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function K(e){return(o.R.debug("typeStr2Type",e),"=="===e)?"thick":"normal"}function v(e){switch(e.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}function B(e){switch(e.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}function P(e){return e.includes("==")?"thick":"normal"}function F(e){return e.includes(".-")?"dotted":"solid"}(0,c.K)(A,"typeStr2Type"),(0,c.K)(K,"edgeTypeStr2Type"),(0,c.K)(v,"edgeStrToEdgeData"),(0,c.K)(B,"edgeStrToEdgeStartData"),(0,c.K)(P,"edgeStrToThickness"),(0,c.K)(F,"edgeStrToPattern");var j=0,M=(0,c.K)(()=>(j++,"id-"+Math.random().toString(36).substr(2,12)+"-"+j),"generateId"),Y=(0,c.K)(e=>{z.children=e,R(e,z),O=z.children},"setHierarchy"),W=(0,c.K)(e=>{let t=L.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1},"getColumns"),U=(0,c.K)(()=>[...L.values()],"getBlocksFlat"),X=(0,c.K)(()=>O||[],"getBlocks"),G=(0,c.K)(()=>m,"getEdges"),H=(0,c.K)(e=>L.get(e),"getBlock"),q=(0,c.K)(e=>{L.set(e.id,e)},"setBlock"),V=(0,c.K)(e=>{D=e},"setDiagramId"),Z=(0,c.K)(()=>D,"getDiagramId"),J=(0,c.K)(()=>o.R,"getLogger"),Q=(0,c.K)(function(){return E},"getClasses"),ee={getConfig:(0,c.K)(()=>(0,l.zj)().block,"getConfig"),typeStr2Type:A,edgeTypeStr2Type:K,edgeStrToEdgeData:v,edgeStrToEdgeStartData:B,edgeStrToThickness:P,edgeStrToPattern:F,getLogger:J,getBlocksFlat:U,getBlocks:X,getEdges:G,setHierarchy:Y,getBlock:H,setBlock:q,getColumns:W,getClasses:Q,clear:C,generateId:M,setDiagramId:V,getDiagramId:Z},et=(0,c.K)((e,t)=>{let s=p.A,i=s(e,"r"),r=s(e,"g"),n=s(e,"b");return b.A(i,r,n,t)},"fade"),es=(0,c.K)(e=>`.label { - font-family: ${e.fontFamily}; - color: ${e.nodeTextColor||e.textColor}; - } - .cluster-label text { - fill: ${e.titleColor}; - } - .cluster-label span { - color: ${e.titleColor}; - } - - - - .label text,span { - fill: ${e.nodeTextColor||e.textColor}; - color: ${e.nodeTextColor||e.textColor}; - } - - .node rect, - .node circle, - .node ellipse, - .node polygon, - .node path { - fill: ${e.mainBkg}; - stroke: ${e.nodeBorder}; - stroke-width: 1px; - } - .flowchart-label text { - text-anchor: middle; - } - // .flowchart-label .text-outer-tspan { - // text-anchor: middle; - // } - // .flowchart-label .text-inner-tspan { - // text-anchor: start; - // } - - .node .label { - text-align: center; - } - .node.clickable { - cursor: pointer; - } - - .arrowheadPath { - fill: ${e.arrowheadColor}; - } - - .edgePaths .path { - stroke: ${e.lineColor}; - stroke-width: 2.0px; - } - - .flowchart-link { - stroke: ${e.lineColor}; - fill: none; - } - - .edgeLabel { - background-color: ${e.edgeLabelBackground}; - /* - * This is for backward compatibility with existing code that didn't - * add a \`
    `:`
    ${t}
    `).join("").replace(tV,(t,i)=>r.renderToString(i,{throwOnError:!0,displayMode:!0,output:e}).replace(/\n/g," ").replace(//g,""))}},"renderKatexUnsanitized"),tY=(0,s.K)(async(t,i)=>t_(await tU(t,i),i),"renderKatexSanitized"),tX={getRows:tf,sanitizeText:t_,sanitizeTextOrArray:tw,hasBreaks:tM,splitBreaks:tI,lineBreakRegex:tS,removeScript:tq,getUrl:tW,evaluate:X,getMax:tD,getMin:tP},tZ=(0,s.K)(function(t,i){for(let o of i)t.attr(o[0],o[1])},"d3Attrs"),tJ=(0,s.K)(function(t,i,o){let r=new Map;return o?(r.set("width","100%"),r.set("style",`max-width: ${i}px;`)):(r.set("height",t),r.set("width",i)),r},"calculateSvgSizeAttrs"),tQ=(0,s.K)(function(t,i,o,r){tZ(t,tJ(i,o,r))},"configureSvgSize"),t0=(0,s.K)(function(t,i,o,r){let s=i.node().getBBox(),h=s.width,l=s.height;e.R.info(`SVG bounds: ${h}x${l}`,s);let a=0,n=0;e.R.info(`Graph bounds: ${a}x${n}`,t),a=h+2*o,n=l+2*o,e.R.info(`Calculated bounds: ${a}x${n}`),tQ(i,n,a,r);let c=`${s.x-o} ${s.y-o} ${s.width+2*o} ${s.height+2*o}`;i.attr("viewBox",c)},"setupGraphViewbox"),t1={};function t2(t){return[...t.cssRules].map(t=>t.cssText).join("\n")}(0,s.K)(t2,"cssStyleSheetToString");var t5=(0,s.K)((t,i,o,r)=>{let s="";return t in t1&&t1[t]?s=t1[t]({...o,svgId:r}):e.R.warn(`No theme found for ${t}`),`& { - font-family: ${o.fontFamily}; - font-size: ${o.fontSize}; - fill: ${o.textColor} - } - @keyframes edge-animation-frame { - from { - stroke-dashoffset: 0; - } - } - @keyframes dash { - to { - stroke-dashoffset: 0; - } - } - & .edge-animation-slow { - stroke-dasharray: 9,5 !important; - stroke-dashoffset: 900; - animation: dash 50s linear infinite; - stroke-linecap: round; - } - & .edge-animation-fast { - stroke-dasharray: 9,5 !important; - stroke-dashoffset: 900; - animation: dash 20s linear infinite; - stroke-linecap: round; - } - /* Classes common for multiple diagrams */ - - & .error-icon { - fill: ${o.errorBkgColor}; - } - & .error-text { - fill: ${o.errorTextColor}; - stroke: ${o.errorTextColor}; - } - - & .edge-thickness-normal { - stroke-width: ${o.strokeWidth??1}px; - } - & .edge-thickness-thick { - stroke-width: 3.5px - } - & .edge-pattern-solid { - stroke-dasharray: 0; - } - & .edge-thickness-invisible { - stroke-width: 0; - fill: none; - } - & .edge-pattern-dashed{ - stroke-dasharray: 3; - } - .edge-pattern-dotted { - stroke-dasharray: 2; - } - - & .marker { - fill: ${o.lineColor}; - stroke: ${o.lineColor}; - } - & .marker.cross { - stroke: ${o.lineColor}; - } - - & svg { - font-family: ${o.fontFamily}; - font-size: ${o.fontSize}; - } - & p { - margin: 0 - } - - ${s} - .node .neo-node { - stroke: ${o.nodeBorder}; - } - - [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon { - stroke: ${o.useGradient?"url("+r+"-gradient)":o.nodeBorder}; - filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${r}-drop-shadow)`):"none"}; - } - [data-look="neo"].swimlane.cluster rect { - filter: none; - } - - - [data-look="neo"].node path { - stroke: ${o.useGradient?"url("+r+"-gradient)":o.nodeBorder}; - stroke-width: ${o.strokeWidth??1}px; - } - - [data-look="neo"].node .outer-path { - filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${r}-drop-shadow)`):"none"}; - } - - [data-look="neo"].node .neo-line path { - stroke: ${o.nodeBorder}; - filter: none; - } - - [data-look="neo"].node circle{ - stroke: ${o.useGradient?"url("+r+"-gradient)":o.nodeBorder}; - filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${r}-drop-shadow)`):"none"}; - } - - [data-look="neo"].node circle .state-start{ - fill: #000000; - } - - [data-look="neo"].icon-shape .icon { - fill: ${o.useGradient?"url("+r+"-gradient)":o.nodeBorder}; - filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${r}-drop-shadow)`):"none"}; - } - - [data-look="neo"].icon-shape .icon-neo path { - stroke: ${o.useGradient?"url("+r+"-gradient)":o.nodeBorder}; - filter: ${o.dropShadow?o.dropShadow.replace("url(#drop-shadow)",`url(${r}-drop-shadow)`):"none"}; - } - - ${i} -`},"getStyles"),t3=(0,s.K)((t,i)=>{void 0!==i&&(t1[t]=i)},"addStylesForDiagram"),t4=t5,t6={};(0,s.V)(t6,{clear:()=>ii,getAccDescription:()=>is,getAccTitle:()=>ir,getDiagramTitle:()=>il,setAccDescription:()=>ie,setAccTitle:()=>io,setDiagramTitle:()=>ih});var t7="",t8="",t9="",it=(0,s.K)(t=>t_(t,th()),"sanitizeText"),ii=(0,s.K)(()=>{t7="",t9="",t8=""},"clear"),io=(0,s.K)(t=>{t7=it(t).replace(/^\s+/g,"")},"setAccTitle"),ir=(0,s.K)(()=>t7,"getAccTitle"),ie=(0,s.K)(t=>{t9=it(t).replace(/\n\s+/g,"\n")},"setAccDescription"),is=(0,s.K)(()=>t9,"getAccDescription"),ih=(0,s.K)(t=>{t8=it(t)},"setDiagramTitle"),il=(0,s.K)(()=>t8,"getDiagramTitle"),ia=e.R,ic=e.H,iC=th,id=ts,ig=Y,ix=(0,s.K)(t=>t_(t,iC()),"sanitizeText"),ip=t0,iy=(0,s.K)(()=>t6,"getCommonDb"),im={},iu=(0,s.K)((t,i,o)=>{im[t]&&ia.warn(`Diagram with id ${t} already registered. Overwriting.`),im[t]=i,o&&tF(t,o),t3(t,i.styles),i.injectUtils?.(ia,ic,iC,ix,ip,iy(),()=>{})},"registerDiagram"),ik=(0,s.K)(t=>{if(t in im)return im[t];throw new iB(t)},"getDiagram"),iB=class extends Error{static{(0,s.K)(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8763.bd76fa337ddf423a.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8763.bd76fa337ddf423a.js deleted file mode 100644 index e296f07de..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8763.bd76fa337ddf423a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8763],{58763:(e,r,t)=>{t.d(r,{diagram:()=>u});var a=t(88348);t(74773),t(24002),t(33807),t(33332),t(48734),t(11232),t(13031),t(69981),t(5663),t(82142),t(29278),t(13892),t(69301),t(98999);var s=t(91158),u={parser:a.Zk,get db(){return new a.u4(2)},renderer:a.q7,styles:a.tM,init:(0,s.K)(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8771.36a6d7dfe89e4b3a.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8771.36a6d7dfe89e4b3a.js deleted file mode 100644 index 6536bc0c6..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8771.36a6d7dfe89e4b3a.js +++ /dev/null @@ -1,215 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8771],{3392:(t,e,s)=>{s.d(e,{o:()=>i});var i=(0,s(91158).K)(()=>` - /* Font Awesome icon styling - consolidated */ - .label-icon { - display: inline-block; - height: 1em; - overflow: visible; - vertical-align: -0.125em; - } - - .node .label-icon path { - fill: currentColor; - stroke: revert; - stroke-width: revert; - } -`,"getIconStyles")},24002:(t,e,s)=>{s.d(e,{P:()=>r});var i=s(69301),a=s(98999),n=s(91158),r=(0,n.K)((t,e,s,n)=>{t.attr("class",s);let{width:r,height:o,x:c,y:h}=l(t,e);(0,i.a$)(t,o,r,n);let d=u(c,h,r,o,e);t.attr("viewBox",d),a.R.debug(`viewBox configured: ${d} with padding: ${e}`)},"setupViewPortForSVG"),l=(0,n.K)((t,e)=>{let s=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+2*e,height:s.height+2*e,x:s.x,y:s.y}},"calculateDimensionsWithPadding"),u=(0,n.K)((t,e,s,i,a)=>`${t-a} ${e-a} ${s} ${i}`,"createViewBox")},33332:(t,e,s)=>{s.d(e,{CP:()=>h,Ck:()=>A,HT:()=>p,PB:()=>d,aC:()=>c,lC:()=>u,m:()=>o,tk:()=>l});var i=s(69301),a=s(91158),n=s(76162),r=s(70668),l=(0,a.K)((t,e)=>{let s=t.append("rect");if(s.attr("x",e.x),s.attr("y",e.y),s.attr("fill",e.fill),s.attr("stroke",e.stroke),s.attr("width",e.width),s.attr("height",e.height),e.name&&s.attr("name",e.name),e.rx&&s.attr("rx",e.rx),e.ry&&s.attr("ry",e.ry),void 0!==e.attrs)for(let t in e.attrs)s.attr(t,e.attrs[t]);return e.class&&s.attr("class",e.class),s},"drawRect"),u=(0,a.K)((t,e)=>{l(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},"drawBackgroundRect"),o=(0,a.K)((t,e)=>{let s=e.text.replace(i.H1," "),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.attr("class","legend"),a.style("text-anchor",e.anchor),e.class&&a.attr("class",e.class);let n=a.append("tspan");return n.attr("x",e.x+2*e.textMargin),n.text(s),a},"drawText"),c=(0,a.K)((t,e,s,i)=>{let a=t.append("image");a.attr("x",e),a.attr("y",s);let r=(0,n.J)(i);a.attr("xlink:href",r)},"drawImage"),h=(0,a.K)((t,e,s,i)=>{let a=t.append("use");a.attr("x",e),a.attr("y",s);let r=(0,n.J)(i);a.attr("xlink:href",`#${r}`)},"drawEmbeddedImage"),d=(0,a.K)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=(0,a.K)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),A=(0,a.K)(()=>{let t=(0,r.Ltv)(".mermaidTooltip");return t.empty()&&(t=(0,r.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip")},48771:(t,e,s)=>{s.d(e,{Lh:()=>D,NM:()=>E,_$:()=>y,tM:()=>f});var i=s(3392),a=s(74773),n=s(24002),r=s(33807),l=s(33332),u=s(13892),o=s(69301),c=s(98999),h=s(91158),d=s(70668),p=s(74574),A=function(){var t=(0,h.K)(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,18],s=[1,19],i=[1,20],a=[1,41],n=[1,26],r=[1,42],l=[1,24],u=[1,25],o=[1,32],c=[1,33],d=[1,34],p=[1,45],A=[1,35],y=[1,36],g=[1,37],m=[1,38],b=[1,27],C=[1,28],k=[1,29],E=[1,30],f=[1,31],T=[1,44],D=[1,46],F=[1,43],B=[1,47],_=[1,9],$=[1,8,9],x=[1,58],S=[1,59],N=[1,60],L=[1,61],v=[1,62],I=[1,63],O=[1,64],w=[1,8,9,41],R=[1,77],K=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],P=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],M=[13,60,86,100,102,103],G=[13,60,73,74,86,100,102,103],U=[13,60,68,69,70,71,72,86,100,102,103],Y=[1,103],z=[1,121],Q=[1,117],W=[1,113],j=[1,119],X=[1,114],H=[1,115],V=[1,116],q=[1,118],J=[1,120],Z=[22,50,60,61,82,86,87,88,89,90],tt=[1,128],te=[12,39],ts=[1,8,9,39,41,44,46],ti=[1,8,9,22],ta=[1,153],tn=[1,8,9,61],tr=[1,8,9,22,50,60,61,82,86,87,88,89,90],tl={trace:(0,h.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:(0,h.K)(function(t,e,s,i,a,n,r){var l=n.length-1;switch(a){case 8:this.$=n[l-1];break;case 9:case 10:case 13:case 15:case 46:this.$=n[l];break;case 11:case 14:this.$=n[l-2]+"."+n[l];break;case 12:case 16:case 110:this.$=n[l-1]+n[l];break;case 17:case 18:this.$=n[l-1]+"~"+n[l]+"~";break;case 19:i.addRelation(n[l]);break;case 20:n[l-1].title=i.cleanupLabel(n[l]),i.addRelation(n[l-1]);break;case 31:this.$=n[l].trim(),i.setAccTitle(this.$);break;case 32:case 33:this.$=n[l].trim(),i.setAccDescription(this.$);break;case 34:i.addClassesToNamespace(n[l-3],n[l-1][0],n[l-1][1]),i.popNamespace();break;case 35:i.addClassesToNamespace(n[l-4],n[l-1][0],n[l-1][1]),i.popNamespace();break;case 36:this.$=i.addNamespace(n[l]);break;case 37:this.$=i.addNamespace(n[l-1],n[l]);break;case 38:this.$=[[n[l]],[]];break;case 39:this.$=[[n[l-1]],[]];break;case 40:n[l][0].unshift(n[l-2]),this.$=n[l];break;case 41:this.$=[[],[n[l]]];break;case 42:this.$=[[],[n[l-1]]];break;case 43:n[l][1].unshift(n[l-2]),this.$=n[l];break;case 44:case 45:this.$=[[],[]];break;case 48:i.setCssClass(n[l-2],n[l]);break;case 49:i.addMembers(n[l-3],n[l-1]);break;case 51:i.setCssClass(n[l-5],n[l-3]),i.addMembers(n[l-5],n[l-1]);break;case 52:i.addAnnotation(n[l-3],n[l-1]);break;case 53:i.addAnnotation(n[l-6],n[l-4]),i.addMembers(n[l-6],n[l-1]);break;case 54:i.addAnnotation(n[l-5],n[l-3]);break;case 55:this.$=n[l],i.addClass(n[l]);break;case 56:this.$=n[l-1],i.addClass(n[l-1]),i.setClassLabel(n[l-1],n[l]);break;case 60:i.addAnnotation(n[l],n[l-2]);break;case 61:case 74:case 107:this.$=[n[l]];break;case 62:n[l].push(n[l-1]),this.$=n[l];break;case 63:case 65:case 66:break;case 64:i.addMember(n[l-1],i.cleanupLabel(n[l]));break;case 67:this.$={id1:n[l-2],id2:n[l],relation:n[l-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:n[l-3],id2:n[l],relation:n[l-1],relationTitle1:n[l-2],relationTitle2:"none"};break;case 69:this.$={id1:n[l-3],id2:n[l],relation:n[l-2],relationTitle1:"none",relationTitle2:n[l-1]};break;case 70:this.$={id1:n[l-4],id2:n[l],relation:n[l-2],relationTitle1:n[l-3],relationTitle2:n[l-1]};break;case 71:this.$=i.addNote(n[l],n[l-1]);break;case 72:this.$=i.addNote(n[l]);break;case 73:this.$=n[l-2],i.defineClass(n[l-1],n[l]);break;case 75:this.$=n[l-2].concat([n[l]]);break;case 76:i.setDirection("TB");break;case 77:i.setDirection("BT");break;case 78:i.setDirection("RL");break;case 79:i.setDirection("LR");break;case 80:this.$={type1:n[l-2],type2:n[l],lineType:n[l-1]};break;case 81:this.$={type1:"none",type2:n[l],lineType:n[l-1]};break;case 82:this.$={type1:n[l-1],type2:"none",lineType:n[l]};break;case 83:this.$={type1:"none",type2:"none",lineType:n[l]};break;case 84:this.$=i.relationType.AGGREGATION;break;case 85:this.$=i.relationType.EXTENSION;break;case 86:this.$=i.relationType.COMPOSITION;break;case 87:this.$=i.relationType.DEPENDENCY;break;case 88:this.$=i.relationType.LOLLIPOP;break;case 89:this.$=i.lineType.LINE;break;case 90:this.$=i.lineType.DOTTED_LINE;break;case 91:case 97:this.$=n[l-2],i.setClickEvent(n[l-1],n[l]);break;case 92:case 98:this.$=n[l-3],i.setClickEvent(n[l-2],n[l-1]),i.setTooltip(n[l-2],n[l]);break;case 93:this.$=n[l-2],i.setLink(n[l-1],n[l]);break;case 94:this.$=n[l-3],i.setLink(n[l-2],n[l-1],n[l]);break;case 95:this.$=n[l-3],i.setLink(n[l-2],n[l-1]),i.setTooltip(n[l-2],n[l]);break;case 96:this.$=n[l-4],i.setLink(n[l-3],n[l-2],n[l]),i.setTooltip(n[l-3],n[l-1]);break;case 99:this.$=n[l-3],i.setClickEvent(n[l-2],n[l-1],n[l]);break;case 100:this.$=n[l-4],i.setClickEvent(n[l-3],n[l-2],n[l-1]),i.setTooltip(n[l-3],n[l]);break;case 101:this.$=n[l-3],i.setLink(n[l-2],n[l]);break;case 102:this.$=n[l-4],i.setLink(n[l-3],n[l-1],n[l]);break;case 103:this.$=n[l-4],i.setLink(n[l-3],n[l-1]),i.setTooltip(n[l-3],n[l]);break;case 104:this.$=n[l-5],i.setLink(n[l-4],n[l-2],n[l]),i.setTooltip(n[l-4],n[l-1]);break;case 105:this.$=n[l-2],i.setCssStyle(n[l-1],n[l]);break;case 106:i.setCssClass(n[l-1],n[l]);break;case 108:n[l-2].push(n[l]),this.$=n[l-2]}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:s,37:i,38:22,42:a,43:23,46:n,48:r,51:l,52:u,54:o,56:c,57:d,60:p,62:A,63:y,64:g,65:m,75:b,76:C,78:k,82:E,83:f,86:T,100:D,102:F,103:B},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(_,[2,5],{8:[1,48]}),{8:[1,49]},t($,[2,19],{22:[1,50]}),t($,[2,21]),t($,[2,22]),t($,[2,23]),t($,[2,24]),t($,[2,25]),t($,[2,26]),t($,[2,27]),t($,[2,28]),t($,[2,29]),t($,[2,30]),{34:[1,51]},{36:[1,52]},t($,[2,33]),t($,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:x,69:S,70:N,71:L,72:v,73:I,74:O}),{39:[1,65]},t(w,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t($,[2,65]),t($,[2,66]),{16:69,60:p,86:T,100:D,102:F},{16:39,17:40,19:70,60:p,86:T,100:D,102:F,103:B},{16:39,17:40,19:71,60:p,86:T,100:D,102:F,103:B},{16:39,17:40,19:72,60:p,86:T,100:D,102:F,103:B},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:p,86:T,100:D,102:F,103:B},{13:R,55:76},{58:78,60:[1,79]},t($,[2,76]),t($,[2,77]),t($,[2,78]),t($,[2,79]),t(K,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:p,86:T,100:D,102:F,103:B}),t(K,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:p,86:T,100:D,102:F,103:B},{16:39,17:40,19:87,60:p,86:T,100:D,102:F,103:B},t(P,[2,133]),t(P,[2,134]),t(P,[2,135]),t(P,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(_,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:e,35:s,37:i,42:a,46:n,48:r,51:l,52:u,54:o,56:c,57:d,60:p,62:A,63:y,64:g,65:m,75:b,76:C,78:k,82:E,83:f,86:T,100:D,102:F,103:B}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:s,37:i,38:22,42:a,43:23,46:n,48:r,51:l,52:u,54:o,56:c,57:d,60:p,62:A,63:y,64:g,65:m,75:b,76:C,78:k,82:E,83:f,86:T,100:D,102:F,103:B},t($,[2,20]),t($,[2,31]),t($,[2,32]),{13:[1,91],16:39,17:40,19:90,60:p,86:T,100:D,102:F,103:B},{53:92,66:56,67:57,68:x,69:S,70:N,71:L,72:v,73:I,74:O},t($,[2,64]),{67:93,73:I,74:O},t(M,[2,83],{66:94,68:x,69:S,70:N,71:L,72:v}),t(G,[2,84]),t(G,[2,85]),t(G,[2,86]),t(G,[2,87]),t(G,[2,88]),t(U,[2,89]),t(U,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:a,43:23,48:r,54:o,56:c},{16:100,60:p,86:T,100:D,102:F},{41:[1,102],45:101,51:Y},{16:104,60:p,86:T,100:D,102:F},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:z,50:Q,59:110,60:W,82:j,84:111,85:112,86:X,87:H,88:V,89:q,90:J},{60:[1,122]},{13:R,55:123},t(w,[2,72]),t(w,[2,138]),{22:z,50:Q,59:124,60:W,61:[1,125],82:j,84:111,85:112,86:X,87:H,88:V,89:q,90:J},t(Z,[2,74]),{16:39,17:40,19:126,60:p,86:T,100:D,102:F,103:B},t(K,[2,16]),t(K,[2,17]),t(K,[2,18]),{11:127,12:tt,39:[2,36]},t(te,[2,9],{16:85,17:86,15:130,18:[1,129],60:p,86:T,100:D,102:F,103:B}),t(te,[2,10]),t(ts,[2,55],{11:131,12:tt}),t(_,[2,7]),{9:[1,132]},t(ti,[2,67]),{16:39,17:40,19:133,60:p,86:T,100:D,102:F,103:B},{13:[1,135],16:39,17:40,19:134,60:p,86:T,100:D,102:F,103:B},t(M,[2,82],{66:136,68:x,69:S,70:N,71:L,72:v}),t(M,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:a,43:23,48:r,54:o,56:c},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(w,[2,48],{39:[1,142]}),{41:[1,143]},t(w,[2,50]),{41:[2,61],45:144,51:Y},{47:[1,145]},{16:39,17:40,19:146,60:p,86:T,100:D,102:F,103:B},t($,[2,91],{13:[1,147]}),t($,[2,93],{13:[1,149],77:[1,148]}),t($,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t($,[2,105],{61:ta}),t(tn,[2,107],{85:154,22:z,50:Q,60:W,82:j,86:X,87:H,88:V,89:q,90:J}),t(tr,[2,109]),t(tr,[2,111]),t(tr,[2,112]),t(tr,[2,113]),t(tr,[2,114]),t(tr,[2,115]),t(tr,[2,116]),t(tr,[2,117]),t(tr,[2,118]),t(tr,[2,119]),t($,[2,106]),t(w,[2,71]),t($,[2,73],{61:ta}),{60:[1,155]},t(K,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:p,86:T,100:D,102:F,103:B},t(te,[2,12]),t(ts,[2,56]),{1:[2,4]},t(ti,[2,69]),t(ti,[2,68]),{16:39,17:40,19:158,60:p,86:T,100:D,102:F,103:B},t(M,[2,80]),t(w,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:a,43:23,48:r,54:o,56:c},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:a,43:23,48:r,54:o,56:c},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:a,43:23,48:r,54:o,56:c},{45:163,51:Y},t(w,[2,49]),{41:[2,62]},t(w,[2,52],{39:[1,164]}),t($,[2,60]),t($,[2,92]),t($,[2,94]),t($,[2,95],{77:[1,165]}),t($,[2,98]),t($,[2,99],{13:[1,166]}),t($,[2,101],{13:[1,168],77:[1,167]}),{22:z,50:Q,60:W,82:j,84:169,85:112,86:X,87:H,88:V,89:q,90:J},t(tr,[2,110]),t(Z,[2,75]),{14:[1,170]},t(te,[2,11]),t(ti,[2,70]),t(w,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:Y},t($,[2,96]),t($,[2,100]),t($,[2,102]),t($,[2,103],{77:[1,174]}),t(tn,[2,108],{85:154,22:z,50:Q,60:W,82:j,86:X,87:H,88:V,89:q,90:J}),t(ts,[2,8]),t(w,[2,51]),{41:[1,175]},t(w,[2,54]),t($,[2,104]),t(w,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:(0,h.K)(function(t,e){if(e.recoverable)this.trace(t);else{var s=Error(t);throw s.hash=e,s}},"parseError"),parse:(0,h.K)(function(t){var e=this,s=[0],i=[],a=[null],n=[],r=this.table,l="",u=0,o=0,c=0,d=n.slice.call(arguments,1),p=Object.create(this.lexer),A={};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(A[y]=this.yy[y]);p.setInput(t,A),A.lexer=p,A.parser=this,void 0===p.yylloc&&(p.yylloc={});var g=p.yylloc;n.push(g);var m=p.options&&p.options.ranges;function b(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof A.parseError?this.parseError=A.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,h.K)(function(t){s.length=s.length-2*t,a.length=a.length-t,n.length=n.length-t},"popStack"),(0,h.K)(b,"lex");for(var C,k,E,f,T,D,F,B,_,$={};;){if(E=s[s.length-1],this.defaultActions[E]?f=this.defaultActions[E]:(null==C&&(C=b()),f=r[E]&&r[E][C]),void 0===f||!f.length||!f[0]){var x="";for(D in _=[],r[E])this.terminals_[D]&&D>2&&_.push("'"+this.terminals_[D]+"'");x=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[C]||C)+"'":"Parse error on line "+(u+1)+": Unexpected "+(1==C?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(x,{text:p.match,token:this.terminals_[C]||C,line:p.yylineno,loc:g,expected:_})}if(f[0]instanceof Array&&f.length>1)throw Error("Parse Error: multiple actions possible at state: "+E+", token: "+C);switch(f[0]){case 1:s.push(C),a.push(p.yytext),n.push(p.yylloc),s.push(f[1]),C=null,k?(C=k,k=null):(o=p.yyleng,l=p.yytext,u=p.yylineno,g=p.yylloc,c>0&&c--);break;case 2:if(F=this.productions_[f[1]][1],$.$=a[a.length-F],$._$={first_line:n[n.length-(F||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(F||1)].first_column,last_column:n[n.length-1].last_column},m&&($._$.range=[n[n.length-(F||1)].range[0],n[n.length-1].range[1]]),void 0!==(T=this.performAction.apply($,[l,o,u,A,f[1],a,n].concat(d))))return T;F&&(s=s.slice(0,-1*F*2),a=a.slice(0,-1*F),n=n.slice(0,-1*F)),s.push(this.productions_[f[1]][0]),a.push($.$),n.push($._$),B=r[s[s.length-2]][s[s.length-1]],s.push(B);break;case 3:return!0}}return!0},"parse")};function tu(){this.yy={}}return tl.lexer={EOF:1,parseError:(0,h.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,h.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,h.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,h.K)(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,h.K)(function(){return this._more=!0,this},"more"),reject:(0,h.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,h.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,h.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,h.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,h.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,h.K)(function(t,e){var s,i,a;if(this.options.backtrack_lexer&&(a={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(a.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack)for(var n in a)this[n]=a[n];return!1},"test_match"),next:(0,h.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,s,i,a=this._currentRules(),n=0;ne[0].length)){if(e=s,i=n,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,a[n])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,a[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,h.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,h.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,h.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,h.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,h.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,h.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,h.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,h.K)(function(t,e,s,i){switch(s){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:case 5:case 14:case 31:case 37:case 41:case 48:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 19:case 22:case 24:case 59:case 62:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 36:return 8;case 15:case 16:return 7;case 17:case 38:case 46:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 23:return 80;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:case 40:return this.popState(),8;case 32:return this.begin("namespace-body"),39;case 33:this.popState(),this.less(0);break;case 34:case 44:return this.popState(),41;case 35:case 45:return"EOF_IN_STRUCT";case 39:return this.begin("class"),48;case 42:return this.popState(),this.popState(),41;case 43:return this.begin("class-body"),39;case 47:return"OPEN_IN_STRUCT";case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:case 66:case 67:case 68:return 77;case 69:case 70:return 69;case 71:case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:case 86:return 89;case 87:return 90;case 88:case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}},(0,h.K)(tu,"Parser"),tu.prototype=tl,tl.Parser=tu,new tu}();A.parser=A;var y=A,g=["#","+","~","-",""],m=class{static{(0,h.K)(this,"ClassMember")}constructor(t,e){this.memberType=e,this.visibility="",this.classifier="",this.text="";let s=(0,o.jZ)(t,(0,o.D7)());this.parseMember(s)}getDisplayDetails(){let t=this.visibility+(0,o.QO)(this.id);return"method"===this.memberType&&(t+=`(${(0,o.QO)(this.parameters.trim())})`,this.returnType&&(t+=" : "+(0,o.QO)(this.returnType))),{displayText:t=t.trim(),cssStyle:this.parseClassifier()}}parseMember(t){let e="";if("method"===this.memberType){let s=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(s){let t=s[1]?s[1].trim():"";if(g.includes(t)&&(this.visibility=t),this.id=s[2],this.parameters=s[3]?s[3].trim():"",e=s[4]?s[4].trim():"",this.returnType=s[5]?s[5].trim():"",""===e){let t=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(t)&&(e=t,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let s=t.length,i=t.substring(0,1),a=t.substring(s-1);g.includes(i)&&(this.visibility=i),/[$*]/.exec(a)&&(e=a),this.id=t.substring(+(""!==this.visibility),""===e?s:s-1)}this.classifier=e,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let s=`${this.visibility?"\\"+this.visibility:""}${(0,o.QO)(this.id)}${"method"===this.memberType?`(${(0,o.QO)(this.parameters)})${this.returnType?" : "+(0,o.QO)(this.returnType):""}`:""}`;this.text=s.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<")&&(this.text=this.text.replace("\\<","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},b="classId-",C=0,k=(0,h.K)(t=>o.Y2.sanitizeText(t,(0,o.D7)()),"sanitizeText"),E=class t{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=(0,h.K)(t=>{let e=(0,l.Ck)();(0,d.Ltv)(t).select("svg").selectAll("g").filter(function(){return null!==(0,d.Ltv)(this).attr("title")}).on("mouseover",t=>{let s=(0,d.Ltv)(t.currentTarget),i=s.attr("title");if(!i)return;let a=t.currentTarget.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(p.A.sanitize(i)).style("left",`${window.scrollX+a.left+a.width/2}px`).style("top",`${window.scrollY+a.bottom+4}px`),s.classed("hover",!0)}).on("mouseout",t=>{e.transition().duration(500).style("opacity",0),(0,d.Ltv)(t.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=o.SV,this.getAccTitle=o.iN,this.setAccDescription=o.EI,this.getAccDescription=o.m7,this.setDiagramTitle=o.ke,this.getDiagramTitle=o.ab,this.getConfig=(0,h.K)(()=>(0,o.D7)().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{(0,h.K)(this,"ClassDB")}splitClassNameAndType(t){let e=o.Y2.sanitizeText(t,(0,o.D7)()),s="",i=e;if(e.indexOf("~")>0){let t=e.split("~");i=k(t[0]),s=k(t[1])}return{className:i,type:s}}setClassLabel(t,e){let s=o.Y2.sanitizeText(t,(0,o.D7)());e&&(e=k(e));let{className:i}=this.splitClassNameAndType(s);this.classes.get(i).label=e,this.classes.get(i).text=`${e}${this.classes.get(i).type?`<${this.classes.get(i).type}>`:""}`}addClass(t){let e=o.Y2.sanitizeText(t,(0,o.D7)()),{className:s,type:i}=this.splitClassNameAndType(e);if(this.classes.has(s))return;let a=o.Y2.sanitizeText(s,(0,o.D7)());this.classes.set(a,{id:a,type:i,label:a,text:`${a}${i?`<${i}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:b+a+"-"+C}),C++}addInterface(t,e){let s={id:`interface${this.interfaces.length}`,label:t,classId:e};this.interfaces.push(s)}setDiagramId(t){this.diagramId=t}lookUpDomId(t){let e=o.Y2.sanitizeText(t,(0,o.D7)());if(this.classes.has(e)){let t=this.classes.get(e).domId;return this.diagramId?`${this.diagramId}-${t}`:t}throw Error("Class not found: "+e)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",(0,o.IU)()}getClass(t){return this.classes.get(t)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(t){let e="number"==typeof t?`note${t}`:t;return this.notes.get(e)}getNotes(){return this.notes}addRelation(t){c.R.debug("Adding relation: "+JSON.stringify(t));let e=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];t.relation.type1!==this.relationType.LOLLIPOP||e.includes(t.relation.type2)?t.relation.type2!==this.relationType.LOLLIPOP||e.includes(t.relation.type1)?(this.addClass(t.id1),this.addClass(t.id2)):(this.addClass(t.id1),this.addInterface(t.id2,t.id1),t.id2=`interface${this.interfaces.length-1}`):(this.addClass(t.id2),this.addInterface(t.id1,t.id2),t.id1=`interface${this.interfaces.length-1}`),t.id1=this.splitClassNameAndType(t.id1).className,t.id2=this.splitClassNameAndType(t.id2).className,t.relationTitle1=o.Y2.sanitizeText(t.relationTitle1.trim(),(0,o.D7)()),t.relationTitle2=o.Y2.sanitizeText(t.relationTitle2.trim(),(0,o.D7)()),this.relations.push(t)}addAnnotation(t,e){let s=this.splitClassNameAndType(t).className;this.classes.get(s).annotations.push(e)}addMember(t,e){this.addClass(t);let s=this.splitClassNameAndType(t).className,i=this.classes.get(s);if("string"==typeof e){let t=e.trim();t.startsWith("<<")&&t.endsWith(">>")?i.annotations.push(k(t.substring(2,t.length-2))):t.indexOf(")")>0?i.methods.push(new m(t,"method")):t&&i.members.push(new m(t,"attribute"))}}addMembers(t,e){Array.isArray(e)&&(e.reverse(),e.forEach(e=>this.addMember(t,e)))}addNote(t,e){let s=this.notes.size,i={id:`note${s}`,class:e,text:t,index:s};return this.notes.set(i.id,i),i.id}cleanupLabel(t){return t.startsWith(":")&&(t=t.substring(1)),k(t.trim())}setCssClass(t,e){t.split(",").forEach(t=>{let s=t;/\d/.exec(t[0])&&(s=b+s),s=this.splitClassNameAndType(s).className;let i=this.classes.get(s);i&&(i.cssClasses+=" "+e)})}defineClass(t,e){for(let s of t){let t=this.styleClasses.get(s);void 0===t&&(t={id:s,styles:[],textStyles:[]},this.styleClasses.set(s,t)),e&&e.forEach(e=>{if(/color/.exec(e)){let s=e.replace("fill","bgFill");t.textStyles.push(s)}t.styles.push(e)}),this.classes.forEach(t=>{t.cssClasses.includes(s)&&t.styles.push(...e.flatMap(t=>t.split(",")))})}}setTooltip(t,e){t.split(",").forEach(t=>{if(void 0!==e){let s=this.splitClassNameAndType(t).className,i=this.classes.get(s);i&&(i.tooltip=k(e))}})}getTooltip(t,e){return e&&this.namespaces.has(e)?this.namespaces.get(e).classes.get(t).tooltip:this.classes.get(t).tooltip}setLink(t,e,s){let i=(0,o.D7)();t.split(",").forEach(t=>{let a=t;/\d/.exec(t[0])&&(a=b+a),a=this.splitClassNameAndType(a).className;let n=this.classes.get(a);n&&(n.link=u._K.formatUrl(e,i),"sandbox"===i.securityLevel?n.linkTarget="_top":"string"==typeof s?n.linkTarget=k(s):n.linkTarget="_blank")}),this.setCssClass(t,"clickable")}setClickEvent(t,e,s){t.split(",").forEach(t=>{this.setClickFunc(t,e,s);let i=this.splitClassNameAndType(t).className,a=this.classes.get(i);a&&(a.haveCallback=!0)}),this.setCssClass(t,"clickable")}setClickFunc(t,e,s){let i=o.Y2.sanitizeText(t,(0,o.D7)());if("loose"!==(0,o.D7)().securityLevel||void 0===e)return;let a=this.splitClassNameAndType(i).className;if(this.classes.has(a)){let t=[];if("string"==typeof s){t=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e{let s=this.lookUpDomId(a),i=document.querySelector(`[id="${s}"]`);null!==i&&i.addEventListener("click",()=>{u._K.runFunc(e,...t)},!1)})}}bindFunctions(t){this.functions.forEach(e=>{e(t)})}escapeHtml(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}getDirection(){return this.direction}setDirection(t){this.direction=t}static resolveQualifiedId(t,e){let s=e.at(-1);return s?`${s}.${t}`:t}static getAncestorIds(t){let e=t.split("."),s=Array(e.length);s[0]=e[0];for(let t=1;t0?n[t-1]:void 0,r=t===n.length-1,l=r&&s?s:a[t];this.namespaces.has(e)?r&&(this.namespaces.get(e).explicit=!0):this.namespaces.set(e,this.createNamespaceNode(e,l,i,r)),i&&this.linkParentChild(i,e)}return i}popNamespace(){this.namespaceStack.pop()}getNamespace(t){return this.namespaces.get(t)}getNamespaces(){return this.namespaces}addClassesToNamespace(t,e,s){if(this.namespaces.has(t)){for(let s of e){let{className:e}=this.splitClassNameAndType(s),i=this.getClass(e);i.parent=t,this.namespaces.get(t).classes.set(e,i)}for(let e of s){let s=this.getNote(e);s.parent=t,this.namespaces.get(t).notes.set(e,s)}}}setCssStyle(t,e){let s=this.classes.get(t);if(e&&s)for(let t of e)t.includes(",")?s.styles.push(...t.split(",")):s.styles.push(t)}getArrowMarker(t){let e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}resolveExplicitAncestor(t){let e=t;for(;e;){let t=this.namespaces.get(e);if(!t)break;if(t.explicit)return e;e=t.parent}}getData(){let t=[],e=[],s=(0,o.D7)(),i=s.class?.hierarchicalNamespaces??!0;for(let e of this.namespaces.values()){if(!i&&!e.explicit)continue;let a={id:e.id,label:i?e.label:e.id,isGroup:!0,padding:s.class.padding??16,shape:"rect",cssStyles:[],look:s.look,parentId:i?e.parent:void 0};t.push(a)}for(let e of this.classes.values()){let a=i?e.parent:this.resolveExplicitAncestor(e.parent),n={...e,type:void 0,isGroup:!1,parentId:a,look:s.look};t.push(n)}for(let a of this.notes.values()){let n=i?a.parent:this.resolveExplicitAncestor(a.parent),r={id:a.id,label:a.text,isGroup:!1,shape:"note",padding:s.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${s.themeVariables.noteBkgColor}`,`stroke: ${s.themeVariables.noteBorderColor}`],look:s.look,parentId:n,labelType:"markdown"};t.push(r);let l=this.classes.get(a.class)?.id;if(l){let t={id:`edgeNote${a.index}`,start:a.id,end:l,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:s.look};e.push(t)}}for(let e of this.interfaces){let i={id:e.id,label:e.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:s.look};t.push(i)}let a=0;for(let t of this.relations){a++;let i={id:(0,u.rY)(t.id1,t.id2,{prefix:"id",counter:a}),start:t.id1,end:t.id2,type:"normal",label:t.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(t.relation.type1),arrowTypeEnd:this.getArrowMarker(t.relation.type2),startLabelRight:"none"===t.relationTitle1?"":t.relationTitle1,endLabelLeft:"none"===t.relationTitle2?"":t.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:t.style||"",pattern:1==t.relation.lineType?"dashed":"solid",look:s.look,labelType:"markdown"};e.push(i)}return{nodes:t,edges:e,other:{},config:s,direction:this.getDirection()}}},f=(0,h.K)(t=>`g.classGroup text { - fill: ${t.nodeBorder||t.classText}; - stroke: none; - font-family: ${t.fontFamily}; - font-size: 10px; - - .title { - font-weight: bolder; - } - -} - - .cluster-label text { - fill: ${t.titleColor}; - } - .cluster-label span { - color: ${t.titleColor}; - } - .cluster-label span p { - background-color: transparent; - } - - .cluster rect { - fill: ${t.clusterBkg}; - stroke: ${t.clusterBorder}; - stroke-width: 1px; - } - - .cluster text { - fill: ${t.titleColor}; - } - - .cluster span { - color: ${t.titleColor}; - } - -.nodeLabel, .edgeLabel { - color: ${t.classText}; -} - -.noteLabel .nodeLabel, .noteLabel .edgeLabel { - color: ${t.noteTextColor}; -} -.edgeLabel .label rect { - fill: ${t.mainBkg}; -} -.label text { - fill: ${t.classText}; -} - -.labelBkg { - background: ${t.mainBkg}; -} -.edgeLabel .label span { - background: ${t.mainBkg}; -} - -.classTitle { - font-weight: bolder; -} -.node rect, - .node circle, - .node ellipse, - .node polygon, - .node path { - fill: ${t.mainBkg}; - stroke: ${t.nodeBorder}; - stroke-width: ${t.strokeWidth}; - } - - -.divider { - stroke: ${t.nodeBorder}; - stroke-width: 1; -} - -g.clickable { - cursor: pointer; -} - -g.classGroup rect { - fill: ${t.mainBkg}; - stroke: ${t.nodeBorder}; -} - -g.classGroup line { - stroke: ${t.nodeBorder}; - stroke-width: 1; -} - -.classLabel .box { - stroke: none; - stroke-width: 0; - fill: ${t.mainBkg}; - opacity: 0.5; -} - -.classLabel .label { - fill: ${t.nodeBorder}; - font-size: 10px; -} - -.relation { - stroke: ${t.lineColor}; - stroke-width: ${t.strokeWidth}; - fill: none; -} - -.dashed-line{ - stroke-dasharray: 3; -} - -.dotted-line{ - stroke-dasharray: 1 2; -} - -[id$="-compositionStart"], .composition { - fill: ${t.lineColor} !important; - stroke: ${t.lineColor} !important; - stroke-width: 1; -} - -[id$="-compositionEnd"], .composition { - fill: ${t.lineColor} !important; - stroke: ${t.lineColor} !important; - stroke-width: 1; -} - -[id$="-dependencyStart"], .dependency { - fill: ${t.lineColor} !important; - stroke: ${t.lineColor} !important; - stroke-width: 1; -} - -[id$="-dependencyEnd"], .dependency { - fill: ${t.lineColor} !important; - stroke: ${t.lineColor} !important; - stroke-width: 1; -} - -[id$="-extensionStart"], .extension { - fill: transparent !important; - stroke: ${t.lineColor} !important; - stroke-width: 1; -} - -[id$="-extensionEnd"], .extension { - fill: transparent !important; - stroke: ${t.lineColor} !important; - stroke-width: 1; -} - -[id$="-aggregationStart"], .aggregation { - fill: transparent !important; - stroke: ${t.lineColor} !important; - stroke-width: 1; -} - -[id$="-aggregationEnd"], .aggregation { - fill: transparent !important; - stroke: ${t.lineColor} !important; - stroke-width: 1; -} - -[id$="-lollipopStart"], .lollipop { - fill: ${t.mainBkg} !important; - stroke: ${t.lineColor} !important; - stroke-width: 1; -} - -[id$="-lollipopEnd"], .lollipop { - fill: ${t.mainBkg} !important; - stroke: ${t.lineColor} !important; - stroke-width: 1; -} - -.edgeTerminals { - font-size: 11px; - line-height: initial; -} - -.classTitleText { - text-anchor: middle; - font-size: 18px; - fill: ${t.textColor}; -} - -.edgeLabel[data-look="neo"] { - background-color: ${t.edgeLabelBackground}; - p { - background-color: ${t.edgeLabelBackground}; - } - rect { - opacity: 0.5; - background-color: ${t.edgeLabelBackground}; - fill: ${t.edgeLabelBackground}; - } - text-align: center; -} - ${(0,i.o)()} -`,"getStyles"),T=(0,h.K)((t,e="TB")=>{if(!t.doc)return e;let s=e;for(let e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir"),D={getClasses:(0,h.K)(function(t,e){return e.db.getClasses()},"getClasses"),draw:(0,h.K)(async function(t,e,s,i){c.R.info("REF0:"),c.R.info("Drawing class diagram (v3)",e);let{securityLevel:l,state:h,layout:d}=(0,o.D7)();i.db.setDiagramId(e);let p=i.db.getData(),A=(0,a.A)(e,l);p.type=i.type,p.layoutAlgorithm=(0,r.q7)(d),p.nodeSpacing=h?.nodeSpacing||50,p.rankSpacing=h?.rankSpacing||50,p.markers=["aggregation","extension","composition","dependency","lollipop"],p.diagramId=e,await (0,r.XX)(p,A),u._K.insertTitle(A,"classDiagramTitleText",h?.titleTopMargin??25,i.db.getDiagramTitle()),(0,n.P)(A,8,"classDiagram",h?.useMaxWidth??!0)},"draw"),getDir:T}},74773:(t,e,s)=>{s.d(e,{A:()=>n});var i=s(91158),a=s(70668),n=(0,i.K)((t,e)=>{let s;return"sandbox"===e&&(s=(0,a.Ltv)("#i"+t)),("sandbox"===e?(0,a.Ltv)(s.nodes()[0].contentDocument.body):(0,a.Ltv)("body")).select(`[id="${t}"]`)},"getDiagramElement")}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8804.8c0af37bc3da70a9.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8804.8c0af37bc3da70a9.js deleted file mode 100644 index af29c91f5..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8804.8c0af37bc3da70a9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8804],{28804:(e,a,r)=>{r.d(a,{diagram:()=>l});var t=r(94191),n=r(69301),s=r(98999),d=r(91158),i=r(89321),p={parse:(0,d.K)(async e=>{let a=await (0,i.qg)("info",e);s.R.debug(a)},"parse")},g={version:"11.17.2"},o=(0,d.K)(()=>g.version,"getVersion"),l={parser:p,db:{getVersion:o},renderer:{draw:(0,d.K)((e,a,r)=>{s.R.debug("rendering info diagram\n"+e);let d=(0,t.D)(a);(0,n.a$)(d,100,400,!0),d.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${r}`)},"draw")}}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8881-fdf9cb0eaae77899.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8881-fdf9cb0eaae77899.js deleted file mode 100644 index a4c91d23f..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8881-fdf9cb0eaae77899.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8881],{38881:(e,t,r)=>{r.d(t,{GraphPageClient:()=>A});var l=r(97601),n=r(61221),a=r(7305),s=r(63675),i=r(11119),d=r(6638);let o=(0,n.createContext)(void 0);function c(){let e=(0,n.useContext)(o);if(!e)throw Error("useGraphThreads must be used within GraphThreadProvider");return e}function u(e){let{children:t,graphName:r}=e,[a,c]=(0,n.useState)([]),[u,h]=(0,n.useState)(null),[m,x]=(0,n.useState)(!1),f=d.env.NEXT_PUBLIC_USER_ID||"user-001",p=(0,n.useCallback)(async()=>{if(r){x(!0);try{let e=(0,s.yS)(),t=await e.listGraphSessions(r,f);c(t.sort((e,t)=>e.thread_id.localeCompare(t.thread_id)))}catch(e){console.error("Failed to load graph threads:",e),i.oR.error("Failed to load threads"),c([])}finally{x(!1)}}},[r,f]),g=(0,n.useCallback)(async()=>{if(!r)return null;try{let e=(0,s.yS)(),t=await e.createGraphSession(r,f,{});return c(e=>[t,...e]),h(t.thread_id),i.oR.success("New thread created"),t}catch(e){return console.error("Failed to create graph thread:",e),i.oR.error("Failed to create thread"),null}},[r,f]),v=(0,n.useCallback)(async e=>{if(r)try{let t=(0,s.yS)();await t.deleteGraphSession(r,f,e),c(t=>t.filter(t=>t.thread_id!==e)),u===e&&h(null),i.oR.success("Thread deleted")}catch(e){console.error("Failed to delete graph thread:",e),i.oR.error("Failed to delete thread")}},[r,f,u]);(0,n.useEffect)(()=>{r&&p()},[r,p]);let j=(0,n.useMemo)(()=>({graphName:r,userId:f,threads:a,currentThreadId:u,setCurrentThreadId:h,loadThreads:p,createThread:g,deleteThread:v,isLoading:m}),[r,f,a,u,p,g,v,m]);return(0,l.jsx)(o.Provider,{value:j,children:t})}let h=(0,n.createContext)(void 0);function m(){let e=(0,n.useContext)(h);if(!e)throw Error("useGraphStream must be used within GraphStreamProvider");return e}function x(e){let{children:t}=e,{graphName:r,userId:a,currentThreadId:d}=c(),[o,u]=(0,n.useState)([]),[m,x]=(0,n.useState)(null),[f,p]=(0,n.useState)(""),[g,v]=(0,n.useState)(!1),[j,b]=(0,n.useState)(null),y=(0,n.useRef)(null),N=(0,n.useCallback)(()=>{u([]),x(null),p(""),b(null)},[]);(0,n.useEffect)(()=>{d||N()},[d,N]);let w=(0,n.useCallback)(async(e,t)=>{var l,n,o,c;if(!e.trim())return;let h=null!=t?t:d;if(!r||!h)return void i.oR.error("No thread selected. Create a new thread first.");null==(l=y.current)||l.abort(),y.current=new AbortController,N(),v(!0);let m=0;try{for await(let t of(0,s.yS)().runGraphStream(r,a,h,{messageType:"user",content:e.trim()},y.current.signal)){u(e=>[...e,{...t,index:m++}]),t.state&&Object.keys(t.state).length>0&&x(t.state);let e=null!=(c=null!=(o=t.chunk)?o:null==(n=t.message)?void 0:n.content)?c:"";e&&p(t=>t+e)}}catch(e){if((null==e?void 0:e.name)==="AbortError")return;console.error("Graph stream error:",e),i.oR.error("Graph run failed")}finally{v(!1),y.current=null}},[r,a,d,N]),S=(0,n.useMemo)(()=>({nodeOutputs:o,currentState:m,accumulatedChunk:f,isStreaming:g,selectedNodeIndex:j,setSelectedNodeIndex:b,sendMessage:w,clearRun:N}),[o,m,f,g,j,w,N]);return(0,l.jsx)(h.Provider,{value:S,children:t})}var f=r(54521),p=r.n(f),g=r(27470),v=r(23362),j=r(15655),b=r(32403);let y=(0,b.A)("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]),N=(0,b.A)("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);var w=r(77699);function S(e){let{graphName:t,className:a=""}=e,[i,d]=(0,n.useState)(null),[o,c]=(0,n.useState)(!0),[u,h]=(0,n.useState)(null),m=(0,n.useRef)(null);return((0,n.useEffect)(()=>{if(!t){d(null),c(!1);return}c(!0),h(null),(0,s.yS)().getGraphRepresentation(t).then(e=>{d(e.mermaidSrc||e.dotSrc||null)}).catch(e=>{h(e.message||"Failed to load graph"),d(null)}).finally(()=>c(!1))},[t]),(0,n.useEffect)(()=>{i&&m.current&&(async()=>{try{let e=(await Promise.all([r.e(5894),r.e(9760),r.e(443)]).then(r.bind(r,67685))).default;e.initialize({startOnLoad:!1,theme:"neutral",securityLevel:"loose"});let l="mermaid-graph-".concat(t.replace(/\W/g,"_"),"-").concat(Date.now()),{svg:n}=await e.render(l,i);m.current&&(m.current.innerHTML=n)}catch(e){console.warn("Mermaid render failed:",e),m.current&&(m.current.innerHTML='
    '.concat(i.replace(/"))}})()},[i,t]),o)?(0,l.jsx)(w.E,{className:"h-48 w-full rounded-lg ".concat(a)}):u||!i?(0,l.jsx)("div",{className:"text-muted-foreground rounded-lg border border-dashed p-4 text-sm ".concat(a),children:u||"No diagram available"}):(0,l.jsx)("div",{ref:m,className:"min-h-[200px] overflow-auto rounded-lg border bg-white [&_svg]:h-auto [&_svg]:max-w-full ".concat(a)})}var k=r(20925);function C(){let{nodeOutputs:e,selectedNodeIndex:t,setSelectedNodeIndex:r}=m();return 0===e.length?(0,l.jsx)("div",{className:"bg-muted/30 text-muted-foreground rounded-lg border p-4 text-sm",children:"No nodes executed yet. Send a message to run the graph."}):(0,l.jsxs)("div",{className:"overflow-hidden rounded-lg border bg-white",children:[(0,l.jsx)("div",{className:"bg-muted/50 border-b px-3 py-2 text-sm font-medium",children:"Execution Timeline"}),(0,l.jsx)("ul",{className:"divide-border max-h-[280px] divide-y overflow-y-auto",children:e.map((e,n)=>{var a;let s=e.state&&Object.keys(e.state).length>0,i=!!(e.chunk||(null==(a=e.message)?void 0:a.content)),d=t===n;return(0,l.jsxs)("li",{role:"button",tabIndex:0,onClick:()=>r(d?null:n),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),r(d?null:n))},className:(0,k.cn)("flex cursor-pointer flex-col gap-1 px-3 py-2.5 text-sm transition-colors",d&&"bg-primary/10 border-l-primary border-l-2",!d&&"hover:bg-muted/50",("__start__"===e.node||"START"===e.node)&&"text-muted-foreground"),children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("span",{className:(0,k.cn)("flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-medium",d?"bg-primary text-primary-foreground":"bg-primary/10 text-primary"),children:e.index+1}),(0,l.jsx)("span",{className:"font-mono font-medium",children:e.node}),e.agent&&(0,l.jsxs)("span",{className:"text-muted-foreground text-xs",children:["(",e.agent,")"]})]}),(i||s)&&(0,l.jsxs)("div",{className:"text-muted-foreground flex gap-2 pl-8 text-xs",children:[s&&(0,l.jsx)("span",{children:"state"}),i&&(0,l.jsx)("span",{className:"truncate",children:(()=>{var t,r;let l=null!=(r=e.chunk||(null==(t=e.message)?void 0:t.content))?r:"";return l.length>40?l.slice(0,40)+"…":l})()})]})]},"".concat(e.node,"-").concat(n))})})]})}function _(){var e,t,r;let{currentState:a,nodeOutputs:s,selectedNodeIndex:i}=m(),[d,o]=(0,n.useState)(new Set),c=null!=i?s[i]:null,u=null!=(r=null!=(t=null!=(e=(null==c?void 0:c.state)&&Object.keys(c.state).length>0?c.state:null)?e:a)?t:s.length>0?s[s.length-1].state:null)?r:null,h=null!=c?"State after ".concat(c.node):"Current State";if(!u||0===Object.keys(u).length)return(0,l.jsx)("div",{className:"bg-muted/30 text-muted-foreground rounded-lg border p-4 text-sm",children:0===s.length?"State will appear here as the graph runs.":"Click a node in the timeline to view its state."});let x=e=>{o(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})};return(0,l.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden rounded-lg border bg-white",children:[(0,l.jsx)("div",{className:"bg-muted/50 shrink-0 border-b px-3 py-2 text-sm font-medium",children:h}),(0,l.jsx)("div",{className:"min-h-0 flex-1 space-y-2 overflow-y-auto p-3 text-sm",children:Object.entries(u).map(e=>{let[t,r]=e;return(0,l.jsxs)("div",{className:"break-all",children:[(0,l.jsx)("span",{className:"text-primary font-mono",children:t}),(0,l.jsx)("span",{className:"text-muted-foreground",children:": "}),((e,t)=>{if(null==t)return"null";if("string"==typeof t)return(0,l.jsxs)("span",{className:"text-green-700",children:['"',t,'"']});if("number"==typeof t||"boolean"==typeof t)return(0,l.jsx)("span",{className:"text-blue-600",children:String(t)});if(Array.isArray(t)){let r=d.has(e);return(0,l.jsxs)("div",{className:"pl-2",children:[(0,l.jsxs)("button",{type:"button",onClick:()=>x(e),className:"text-muted-foreground hover:text-foreground",children:[r?"▼":"▶"," Array(",t.length,")"]}),r&&(0,l.jsx)("pre",{className:"bg-muted/30 mt-1 max-h-32 overflow-auto rounded p-2 text-xs",children:JSON.stringify(t,null,2)})]})}if("object"==typeof t){let r=d.has(e);return(0,l.jsxs)("div",{className:"pl-2",children:[(0,l.jsxs)("button",{type:"button",onClick:()=>x(e),className:"text-muted-foreground hover:text-foreground",children:[r?"▼":"▶"," Object"]}),r&&(0,l.jsx)("pre",{className:"bg-muted/30 mt-1 max-h-48 overflow-auto rounded p-2 text-xs",children:JSON.stringify(t,null,2)})]})}return String(t)})(t,r)]},t)})})]})}function G(){let{sendMessage:e,accumulatedChunk:t,currentState:r,nodeOutputs:a,isStreaming:s}=m(),{currentThreadId:i,createThread:d}=c(),[o,u]=(0,n.useState)(""),h=async t=>{if(t.preventDefault(),!o.trim()||s)return;let r=i;if(!r){let e=await d();if(!e)return;r=e.thread_id}await e(o.trim(),r),u("")},x=(0,n.useMemo)(()=>{var e,l;if(t)return t;let n=function(e){var t,r;if(!(null==e?void 0:e.messages)||!Array.isArray(e.messages))return"";let l=e.messages,n=l[l.length-1];return null!=(r=null!=(t=null==n?void 0:n.content)?t:null==n?void 0:n.text)?r:""}(r);if(n)return n;let s=[...a].reverse().find(e=>{var t;return null==(t=e.message)?void 0:t.content});return null!=(l=null==s||null==(e=s.message)?void 0:e.content)?l:""},[t,r,a]);return(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsxs)("form",{onSubmit:h,className:"flex gap-2",children:[(0,l.jsx)("input",{type:"text",value:o,onChange:e=>u(e.target.value),placeholder:"Type a message...",disabled:s,className:"border-input bg-background min-w-0 flex-1 rounded-md border px-2 py-1.5 text-sm"}),(0,l.jsx)(g.$,{type:"submit",size:"sm",disabled:s||!o.trim(),children:s?"...":"Run"})]}),x&&(0,l.jsx)("div",{className:"text-muted-foreground line-clamp-2 truncate text-xs",title:x,children:x})]})}var E=r(37624);function R(){let{graphName:e,threads:t,currentThreadId:r,setCurrentThreadId:a,createThread:s,isLoading:i}=c(),[d,o]=(0,n.useState)(!0);return e?(0,l.jsxs)("div",{className:"flex h-screen flex-col bg-slate-50",children:[(0,l.jsxs)("header",{className:"flex h-14 shrink-0 items-center justify-between border-b bg-white px-4",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)(p(),{href:"/index.html",children:(0,l.jsxs)(g.$,{variant:"ghost",size:"sm",children:[(0,l.jsx)(v.A,{className:"mr-2 h-4 w-4"}),"Back"]})}),(0,l.jsxs)("span",{className:"text-lg font-semibold",children:["Graph: ",e]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(E.G,{}),(0,l.jsxs)(g.$,{variant:"outline",size:"sm",onClick:()=>s(),disabled:i,children:[(0,l.jsx)(j.A,{className:"mr-2 h-4 w-4"}),"New thread"]}),t.length>0&&(0,l.jsxs)("select",{value:null!=r?r:"",onChange:e=>a(e.target.value||null),className:"border-input bg-background rounded-md border px-2 py-1 text-sm",children:[(0,l.jsx)("option",{value:"",children:"Select thread..."}),t.map(e=>(0,l.jsxs)("option",{value:e.thread_id,children:[e.thread_id.slice(0,8),"..."]},e.thread_id))]})]})]}),(0,l.jsxs)("div",{className:"flex flex-1 overflow-hidden",children:[d&&(0,l.jsxs)("aside",{className:"flex w-80 shrink-0 flex-col overflow-y-auto border-r bg-white",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between border-b p-2",children:[(0,l.jsx)("span",{className:"text-sm font-medium",children:"Graph Diagram"}),(0,l.jsx)(g.$,{variant:"ghost",size:"sm",onClick:()=>o(!1),children:(0,l.jsx)(y,{className:"h-4 w-4"})})]}),(0,l.jsx)("div",{className:"min-h-0 flex-1 overflow-auto p-3",children:(0,l.jsx)(S,{graphName:e})}),(0,l.jsx)("div",{className:"bg-muted/20 border-t p-3",children:(0,l.jsx)(G,{})})]}),!d&&(0,l.jsx)(g.$,{variant:"outline",size:"sm",className:"absolute top-20 left-2 z-10",onClick:()=>o(!0),children:(0,l.jsx)(N,{className:"h-4 w-4"})}),(0,l.jsxs)("main",{className:"flex min-w-0 flex-1 flex-col gap-4 overflow-hidden p-4",children:[(0,l.jsx)("div",{className:"shrink-0",children:(0,l.jsx)(C,{})}),(0,l.jsx)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:(0,l.jsx)(_,{})})]})]})]}):null}function A(e){let{graphName:t}=e;return t?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.l,{}),(0,l.jsx)(u,{graphName:t,children:(0,l.jsx)(x,{children:(0,l.jsx)(R,{})})})]}):(0,l.jsx)("div",{className:"flex min-h-screen items-center justify-center",children:(0,l.jsx)("p",{className:"text-muted-foreground",children:"Invalid graph"})})}}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9088.53fefb3424562e65.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9088.53fefb3424562e65.js
    deleted file mode 100644
    index b0c9693ab..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9088.53fefb3424562e65.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9088],{16152:function(t,e,i){t.exports=function(t){var e=[function(e,i){e.exports=t},function(t,e,i){"use strict";var r=i(0).layoutBase.LayoutConstants,n=i(0).layoutBase.FDLayoutConstants,o=i(0).CoSEConstants,s=i(0).CoSELayout,a=i(0).CoSENode,h=i(0).layoutBase.PointD,l=i(0).layoutBase.DimensionD,g={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function u(t){this.options=function(t,e){var i={};for(var r in t)i[r]=t[r];for(var r in e)i[r]=e[r];return i}(g,t),c(this.options)}var c=function(t){null!=t.nodeRepulsion&&(o.DEFAULT_REPULSION_STRENGTH=n.DEFAULT_REPULSION_STRENGTH=t.nodeRepulsion),null!=t.idealEdgeLength&&(o.DEFAULT_EDGE_LENGTH=n.DEFAULT_EDGE_LENGTH=t.idealEdgeLength),null!=t.edgeElasticity&&(o.DEFAULT_SPRING_STRENGTH=n.DEFAULT_SPRING_STRENGTH=t.edgeElasticity),null!=t.nestingFactor&&(o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=n.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.nestingFactor),null!=t.gravity&&(o.DEFAULT_GRAVITY_STRENGTH=n.DEFAULT_GRAVITY_STRENGTH=t.gravity),null!=t.numIter&&(o.MAX_ITERATIONS=n.MAX_ITERATIONS=t.numIter),null!=t.gravityRange&&(o.DEFAULT_GRAVITY_RANGE_FACTOR=n.DEFAULT_GRAVITY_RANGE_FACTOR=t.gravityRange),null!=t.gravityCompound&&(o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=n.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.gravityCompound),null!=t.gravityRangeCompound&&(o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.gravityRangeCompound),null!=t.initialEnergyOnIncremental&&(o.DEFAULT_COOLING_FACTOR_INCREMENTAL=n.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.initialEnergyOnIncremental),"draft"==t.quality?r.QUALITY=0:"proof"==t.quality?r.QUALITY=2:r.QUALITY=1,o.NODE_DIMENSIONS_INCLUDE_LABELS=n.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=t.nodeDimensionsIncludeLabels,o.DEFAULT_INCREMENTAL=n.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=!t.randomize,o.ANIMATE=n.ANIMATE=r.ANIMATE=t.animate,o.TILE=t.tile,o.TILING_PADDING_VERTICAL="function"==typeof t.tilingPaddingVertical?t.tilingPaddingVertical.call():t.tilingPaddingVertical,o.TILING_PADDING_HORIZONTAL="function"==typeof t.tilingPaddingHorizontal?t.tilingPaddingHorizontal.call():t.tilingPaddingHorizontal};u.prototype.run=function(){var t,e,i=this.options;this.idToLNode={};var r=this.layout=new s,n=this;n.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var o=r.newGraphManager();this.gm=o;var a=this.options.eles.nodes(),h=this.options.eles.edges();this.root=o.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(a),r);for(var l=0;l0&&(s=i.getGraphManager().add(i.newGraph(),o),this.processChildrenList(s,u,i))}},u.prototype.stop=function(){return this.stopped=!0,this};var d=function(t){t("layout","cose-bilkent",u)};"undefined"!=typeof cytoscape&&d(cytoscape),t.exports=d}],i={};function r(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=i,r.i=function(t){return t},r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=1)}(i(59601))},39088:(t,e,i)=>{"use strict";i.r(e),i.d(e,{render:()=>f});var r=i(98999),n=i(91158),o=i(1759),s=i(16152),a=i(70668);function h(t,e){t.forEach(t=>{let i={id:t.id,labelText:t.label,height:t.height,width:t.width,padding:t.padding??0};Object.keys(t).forEach(e=>{["id","label","height","width","padding","x","y"].includes(e)||(i[e]=t[e])}),e.add({group:"nodes",data:i,position:{x:t.x??0,y:t.y??0}})})}function l(t,e){t.forEach(t=>{let i={id:t.id,source:t.start,target:t.end};Object.keys(t).forEach(e=>{["id","start","end"].includes(e)||(i[e]=t[e])}),e.add({group:"edges",data:i})})}function g(t){return new Promise(e=>{let i=(0,a.Ltv)("body").append("div").attr("id","cy").attr("style","display:none"),n=(0,o.A)({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});i.remove(),h(t.nodes,n),l(t.edges,n),n.nodes().forEach(function(t){t.layoutDimensions=()=>{let e=t.data();return{w:e.width,h:e.height}}}),n.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),n.ready(t=>{r.R.info("Cytoscape ready",t),e(n)})})}function u(t){return t.nodes().map(t=>{let e=t.data(),i=t.position(),r={id:e.id,x:i.x,y:i.y};return Object.keys(e).forEach(t=>{"id"!==t&&(r[t]=e[t])}),r})}function c(t){return t.edges().map(t=>{let e=t.data(),i=t._private.rscratch,r={id:e.id,source:e.source,target:e.target,startX:i.startX,startY:i.startY,midX:i.midX,midY:i.midY,endX:i.endX,endY:i.endY};return Object.keys(e).forEach(t=>{["id","source","target"].includes(t)||(r[t]=e[t])}),r})}async function d(t,e){r.R.debug("Starting cose-bilkent layout algorithm");try{p(t);let e=await g(t),i=u(e),n=c(e);return r.R.debug(`Layout completed: ${i.length} nodes, ${n.length} edges`),{nodes:i,edges:n}}catch(t){throw r.R.error("Error in cose-bilkent layout algorithm:",t),t}}function p(t){if(!t)throw Error("Layout data is required");if(!t.config)throw Error("Configuration is required in layout data");if(!t.rootNode)throw Error("Root node is required");if(!t.nodes||!Array.isArray(t.nodes))throw Error("No nodes found in layout data");if(!Array.isArray(t.edges))throw Error("Edges array is required in layout data");return!0}o.A.use(s),(0,n.K)(h,"addNodes"),(0,n.K)(l,"addEdges"),(0,n.K)(g,"createCytoscapeInstance"),(0,n.K)(u,"extractPositionedNodes"),(0,n.K)(c,"extractPositionedEdges"),(0,n.K)(d,"executeCoseBilkentLayout"),(0,n.K)(p,"validateLayoutData");var f=(0,n.K)(async(t,e,{insertCluster:i,insertEdge:r,insertEdgeLabel:n,insertMarkers:o,insertNode:s,log:a,positionEdgeLabel:h},{algorithm:l})=>{let g={},u={},c=e.select("g");o(c,t.markers,t.type,t.diagramId);let p=c.insert("g").attr("class","subgraphs"),f=c.insert("g").attr("class","edgePaths"),y=c.insert("g").attr("class","edgeLabels"),E=c.insert("g").attr("class","nodes");a.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(t.nodes.map(async e=>{if(e.isGroup){let t={...e};u[e.id]=t,g[e.id]=t,await i(p,e)}else{let i={...e};g[e.id]=i;let r=await s(E,e,{config:t.config,dir:t.direction||"TB"}),n=r.node().getBBox();i.width=n.width,i.height=n.height,i.domId=r,a.debug(`Node ${e.id} dimensions: ${n.width}x${n.height}`)}})),a.debug("Running cose-bilkent layout algorithm");let v={...t,nodes:t.nodes.map(t=>{let e=g[t.id];return{...t,width:e.width,height:e.height}})},A=await d(v,t.config);a.debug("Positioning nodes based on layout results"),A.nodes.forEach(t=>{let e=g[t.id];e?.domId&&(e.domId.attr("transform",`translate(${t.x}, ${t.y})`),e.x=t.x,e.y=t.y,a.debug(`Positioned node ${e.id} at center (${t.x}, ${t.y})`))}),A.edges.forEach(e=>{let i=t.edges.find(t=>t.id===e.id);i&&(i.points=[{x:e.startX,y:e.startY},{x:e.midX,y:e.midY},{x:e.endX,y:e.endY}])}),a.debug("Inserting and positioning edges"),await Promise.all(t.edges.map(async e=>{await n(y,e);let i=g[e.start??""],o=g[e.end??""];if(i&&o){let n=A.edges.find(t=>t.id===e.id);if(n){a.debug("APA01 positionedEdge",n);let s={...e},l=r(f,s,u,t.type,i,o,t.diagramId);h(s,l)}else{let n={...e,points:[{x:i.x||0,y:i.y||0},{x:o.x||0,y:o.y||0}]},s=r(f,n,u,t.type,i,o,t.diagramId);h(n,s)}}})),a.debug("Cose-bilkent rendering completed")},"render")},59601:function(t,e,i){t.exports=function(t){var e=[function(e,i){e.exports=t},function(t,e,i){"use strict";var r=i(0).FDLayoutConstants;function n(){}for(var o in r)n[o]=r[o];n.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,n.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,n.DEFAULT_COMPONENT_SEPERATION=60,n.TILE=!0,n.TILING_PADDING_VERTICAL=10,n.TILING_PADDING_HORIZONTAL=10,n.TREE_REDUCTION_ON_INCREMENTAL=!1,t.exports=n},function(t,e,i){"use strict";var r=i(0).FDLayoutEdge;function n(t,e,i){r.call(this,t,e,i)}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];t.exports=n},function(t,e,i){"use strict";var r=i(0).LGraph;function n(t,e,i){r.call(this,t,e,i)}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];t.exports=n},function(t,e,i){"use strict";var r=i(0).LGraphManager;function n(t){r.call(this,t)}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];t.exports=n},function(t,e,i){"use strict";var r=i(0).FDLayoutNode,n=i(0).IMath;function o(t,e,i,n){r.call(this,t,e,i,n)}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.move=function(){var t=this.graphManager.getLayout();this.displacementX=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementX=t.coolingFactor*t.maxNodeDisplacement*n.sign(this.displacementX)),Math.abs(this.displacementY)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementY=t.coolingFactor*t.maxNodeDisplacement*n.sign(this.displacementY)),null==this.child||0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),t.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},o.prototype.propogateDisplacementToChildren=function(t,e){for(var i,r=this.getChild().getNodes(),n=0;n0)this.positionNodesRadially(i);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(e),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},v.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(!(this.prunedNodesAll.length>0))return!0;else this.isTreeGrowing=!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(!(this.prunedNodesAll.length>0))return!0;else this.isTreeGrowing=!0;this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(e),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var i=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(i,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},v.prototype.getPositionsData=function(){for(var t=this.graphManager.getAllNodes(),e={},i=0;i1)for(s=0;sr&&(r=Math.floor(s.y)),o=Math.floor(s.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new c(g.WORLD_CENTER_X-s.x/2,g.WORLD_CENTER_Y-s.y/2))},v.radialLayout=function(t,e,i){var r=Math.max(this.maxDiagonalInTree(t),h.DEFAULT_RADIAL_SEPARATION);v.branchRadialLayout(e,null,0,359,0,r);var n=y.calculateBounds(t),o=new E;o.setDeviceOrgX(n.getMinX()),o.setDeviceOrgY(n.getMinY()),o.setWorldOrgX(i.x),o.setWorldOrgY(i.y);for(var s=0;s1;){var E=y[0];y.splice(0,1);var A=u.indexOf(E);A>=0&&u.splice(A,1),p--,c--}s=null!=e?(u.indexOf(y[0])+1)%p:0;for(var N=Math.abs(r-i)/c,T=s;d!=c;T=++T%p){var _=u[T].getOtherEnd(t);if(_!=e){var L=(i+d*N)%360,m=(L+N)%360;v.branchRadialLayout(_,t,L,m,n+o,o),d++}}},v.maxDiagonalInTree=function(t){for(var e=p.MIN_VALUE,i=0;ie&&(e=r)}return e},v.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},v.prototype.groupZeroDegreeMembers=function(){var t=this,e={};this.memberGroups={},this.idToDummyNode={};for(var i=[],r=this.graphManager.getAllNodes(),n=0;n1){var r="DummyCompound_"+i;t.memberGroups[r]=e[i];var n=e[i][0].getParent(),o=new s(t.graphManager);o.id=r,o.paddingLeft=n.paddingLeft||0,o.paddingRight=n.paddingRight||0,o.paddingBottom=n.paddingBottom||0,o.paddingTop=n.paddingTop||0,t.idToDummyNode[r]=o;var a=t.getGraphManager().add(t.newGraph(),o),h=n.getChild();h.add(o);for(var l=0;l=0;t--){var e=this.compoundOrder[t],i=e.id,r=e.paddingLeft,n=e.paddingTop;this.adjustLocations(this.tiledMemberPack[i],e.rect.x,e.rect.y,r,n)}},v.prototype.repopulateZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack;Object.keys(e).forEach(function(i){var r=t.idToDummyNode[i],n=r.paddingLeft,o=r.paddingTop;t.adjustLocations(e[i],r.rect.x,r.rect.y,n,o)})},v.prototype.getToBeTiled=function(t){var e=t.id;if(null!=this.toBeTiled[e])return this.toBeTiled[e];var i=t.getChild();if(null==i)return this.toBeTiled[e]=!1,!1;for(var r=i.getNodes(),n=0;n0)return this.toBeTiled[e]=!1,!1;if(null==o.getChild()){this.toBeTiled[o.id]=!1;continue}if(!this.getToBeTiled(o))return this.toBeTiled[e]=!1,!1}return this.toBeTiled[e]=!0,!0},v.prototype.getNodeDegree=function(t){t.id;for(var e=t.getEdges(),i=0,r=0;rh&&(h=g.rect.height)}i+=h+t.verticalPadding}},v.prototype.tileCompoundMembers=function(t,e){var i=this;this.tiledMemberPack=[],Object.keys(t).forEach(function(r){var n=e[r];i.tiledMemberPack[r]=i.tileNodes(t[r],n.paddingLeft+n.paddingRight),n.rect.width=i.tiledMemberPack[r].width,n.rect.height=i.tiledMemberPack[r].height})},v.prototype.tileNodes=function(t,e){var i={rows:[],rowWidth:[],rowHeight:[],width:0,height:e,verticalPadding:h.TILING_PADDING_VERTICAL,horizontalPadding:h.TILING_PADDING_HORIZONTAL};t.sort(function(t,e){return t.rect.width*t.rect.height>e.rect.width*e.rect.height?-1:+(t.rect.width*t.rect.height0&&(n+=t.horizontalPadding),t.rowWidth[i]=n,t.width0&&(o+=t.verticalPadding);var s=0;o>t.rowHeight[i]&&(s=t.rowHeight[i],t.rowHeight[i]=o,s=t.rowHeight[i]-s),t.height+=s,t.rows[i].push(e)},v.prototype.getShortestRowIndex=function(t){for(var e=-1,i=Number.MAX_VALUE,r=0;ri&&(e=r,i=t.rowWidth[r]);return e},v.prototype.canAddHorizontal=function(t,e,i){var r,n,o=this.getShortestRowIndex(t);if(o<0)return!0;var s=t.rowWidth[o];if(s+t.horizontalPadding+e<=t.width)return!0;var a=0;return t.rowHeight[o]0&&(a=i+t.verticalPadding-t.rowHeight[o]),r=t.width-s>=e+t.horizontalPadding?(t.height+a)/(s+e+t.horizontalPadding):(t.height+a)/t.width,a=i+t.verticalPadding,(n=t.widtho&&e!=i){r.splice(-1,1),t.rows[i].push(n),t.rowWidth[e]=t.rowWidth[e]-o,t.rowWidth[i]=t.rowWidth[i]+o,t.width=t.rowWidth[instance.getLongestRowIndex(t)];for(var s=5e-324,a=0;as&&(s=r[a].height);e>0&&(s+=t.verticalPadding);var h=t.rowHeight[e]+t.rowHeight[i];t.rowHeight[e]=s,t.rowHeight[i]0)for(var c=s;c<=a;c++)u[0]+=this.grid[c][h-1].length+this.grid[c][h].length-1;if(a0)for(var c=h;c<=g;c++)u[3]+=this.grid[s-1][c].length+this.grid[s][c].length-1;for(var d=p.MAX_VALUE,f=0;fMath.abs(this.lengthX)&&(this.lengthX=o.sign(this.lengthX)),1>Math.abs(this.lengthY)&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},s.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),1>Math.abs(this.lengthX)&&(this.lengthX=o.sign(this.lengthX)),1>Math.abs(this.lengthY)&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=s},function(t,e,i){"use strict";t.exports=function(t){this.vGraphObject=t}},function(t,e,i){"use strict";var r=i(2),n=i(10),o=i(13),s=i(0),a=i(16),h=i(4);function l(t,e,i,s){null==i&&null==s&&(s=e),r.call(this,s),null!=t.graphManager&&(t=t.graphManager),this.estimatedSize=n.MIN_VALUE,this.inclusionTreeDepth=n.MAX_VALUE,this.vGraphObject=s,this.edges=[],this.graphManager=t,null!=i&&null!=e?this.rect=new o(e.x,e.y,i.width,i.height):this.rect=new o}for(var g in l.prototype=Object.create(r.prototype),r)l[g]=r[g];l.prototype.getEdges=function(){return this.edges},l.prototype.getChild=function(){return this.child},l.prototype.getOwner=function(){return this.owner},l.prototype.getWidth=function(){return this.rect.width},l.prototype.setWidth=function(t){this.rect.width=t},l.prototype.getHeight=function(){return this.rect.height},l.prototype.setHeight=function(t){this.rect.height=t},l.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},l.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},l.prototype.getCenter=function(){return new h(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},l.prototype.getLocation=function(){return new h(this.rect.x,this.rect.y)},l.prototype.getRect=function(){return this.rect},l.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},l.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},l.prototype.setRect=function(t,e){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=e.width,this.rect.height=e.height},l.prototype.setCenter=function(t,e){this.rect.x=t-this.rect.width/2,this.rect.y=e-this.rect.height/2},l.prototype.setLocation=function(t,e){this.rect.x=t,this.rect.y=e},l.prototype.moveBy=function(t,e){this.rect.x+=t,this.rect.y+=e},l.prototype.getEdgeListToNode=function(t){var e=[],i=this;return i.edges.forEach(function(r){if(r.target==t){if(r.source!=i)throw"Incorrect edge source!";e.push(r)}}),e},l.prototype.getEdgesBetween=function(t){var e=[],i=this;return i.edges.forEach(function(r){if(r.source!=i&&r.target!=i)throw"Incorrect edge source and/or target";(r.target==t||r.source==t)&&e.push(r)}),e},l.prototype.getNeighborsList=function(){var t=new Set,e=this;return e.edges.forEach(function(i){if(i.source==e)t.add(i.target);else{if(i.target!=e)throw"Incorrect incidency!";t.add(i.source)}}),t},l.prototype.withChildren=function(){var t=new Set;if(t.add(this),null!=this.child)for(var e=this.child.getNodes(),i=0;ie&&(this.rect.x-=(this.labelWidth-e)/2,this.setWidth(this.labelWidth)),this.labelHeight>i&&("center"==this.labelPos?this.rect.y-=(this.labelHeight-i)/2:"top"==this.labelPos&&(this.rect.y-=this.labelHeight-i),this.setHeight(this.labelHeight))}}},l.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==n.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},l.prototype.transform=function(t){var e=this.rect.x;e>s.WORLD_BOUNDARY?e=s.WORLD_BOUNDARY:e<-s.WORLD_BOUNDARY&&(e=-s.WORLD_BOUNDARY);var i=this.rect.y;i>s.WORLD_BOUNDARY?i=s.WORLD_BOUNDARY:i<-s.WORLD_BOUNDARY&&(i=-s.WORLD_BOUNDARY);var r=new h(e,i),n=t.inverseTransformPoint(r);this.setLocation(n.x,n.y)},l.prototype.getLeft=function(){return this.rect.x},l.prototype.getRight=function(){return this.rect.x+this.rect.width},l.prototype.getTop=function(){return this.rect.y},l.prototype.getBottom=function(){return this.rect.y+this.rect.height},l.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},t.exports=l},function(t,e,i){"use strict";function r(t,e){null==t&&null==e?(this.x=0,this.y=0):(this.x=t,this.y=e)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(t){this.x=t},r.prototype.setY=function(t){this.y=t},r.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},t.exports=r},function(t,e,i){"use strict";var r=i(2),n=i(10),o=i(0),s=i(6),a=i(3),h=i(1),l=i(13),g=i(12),u=i(11);function c(t,e,i){r.call(this,i),this.estimatedSize=n.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=t,null!=e&&e instanceof s?this.graphManager=e:null!=e&&e instanceof Layout&&(this.graphManager=e.graphManager)}for(var d in c.prototype=Object.create(r.prototype),r)c[d]=r[d];c.prototype.getNodes=function(){return this.nodes},c.prototype.getEdges=function(){return this.edges},c.prototype.getGraphManager=function(){return this.graphManager},c.prototype.getParent=function(){return this.parent},c.prototype.getLeft=function(){return this.left},c.prototype.getRight=function(){return this.right},c.prototype.getTop=function(){return this.top},c.prototype.getBottom=function(){return this.bottom},c.prototype.isConnected=function(){return this.isConnected},c.prototype.add=function(t,e,i){if(null==e&&null==i){if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(t)>-1)throw"Node already in graph!";return t.owner=this,this.getNodes().push(t),t}if(!(this.getNodes().indexOf(e)>-1&&this.getNodes().indexOf(i)>-1))throw"Source or target not in graph!";if(e.owner!=i.owner||e.owner!=this)throw"Both owners must be this graph!";return e.owner!=i.owner?null:(t.source=e,t.target=i,t.isInterGraph=!1,this.getEdges().push(t),e.edges.push(t),i!=e&&i.edges.push(t),t)},c.prototype.remove=function(t){if(t instanceof a){if(null==t)throw"Node is null!";if(null==t.owner||t.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var e,i=t.edges.slice(),r=i.length,n=0;n-1&&l>-1))throw"Source and/or target doesn't know this edge!";e.source.edges.splice(s,1),e.target!=e.source&&e.target.edges.splice(l,1);var o=e.source.owner.getEdges().indexOf(e);if(-1==o)throw"Not in owner's edge list!";e.source.owner.getEdges().splice(o,1)}},c.prototype.updateLeftTop=function(){for(var t,e,i,r=n.MAX_VALUE,o=n.MAX_VALUE,s=this.getNodes(),a=s.length,h=0;ht&&(r=t),o>e&&(o=e)}return r==n.MAX_VALUE?null:(i=void 0!=s[0].getParent().paddingLeft?s[0].getParent().paddingLeft:this.margin,this.left=o-i,this.top=r-i,new g(this.left,this.top))},c.prototype.updateBounds=function(t){for(var e,i,r,o,s,a=n.MAX_VALUE,h=-n.MAX_VALUE,g=n.MAX_VALUE,u=-n.MAX_VALUE,c=this.nodes,d=c.length,p=0;pe&&(a=e),hr&&(g=r),ue&&(s=e),ar&&(h=r),g=this.nodes.length){var h=0;n.forEach(function(t){t.owner==i&&h++}),h==this.nodes.length&&(this.isConnected=!0)}},t.exports=c},function(t,e,i){"use strict";var r,n=i(1);function o(t){r=i(5),this.layout=t,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var t=this.layout.newGraph(),e=this.layout.newNode(null),i=this.add(t,e);return this.setRootGraph(i),this.rootGraph},o.prototype.add=function(t,e,i,r,n){if(null==i&&null==r&&null==n){if(null==t)throw"Graph is null!";if(null==e)throw"Parent node is null!";if(this.graphs.indexOf(t)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(t),null!=t.parent)throw"Already has a parent!";if(null!=e.child)throw"Already has a child!";return t.parent=e,e.child=t,t}n=i,r=e,i=t;var o=r.getOwner(),s=n.getOwner();if(null==o||o.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==s||s.getGraphManager()!=this)throw"Target not in this graph mgr!";if(o==s)return i.isInterGraph=!1,o.add(i,r,n);if(i.isInterGraph=!0,i.source=r,i.target=n,this.edges.indexOf(i)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(i),null==i.source||null==i.target)throw"Edge source and/or target is null!";if(-1!=i.source.edges.indexOf(i)||-1!=i.target.edges.indexOf(i))throw"Edge already in source and/or target incidency list!";return i.source.edges.push(i),i.target.edges.push(i),i},o.prototype.remove=function(t){if(t instanceof r){if(t.getGraphManager()!=this)throw"Graph not in this graph mgr";if(t!=this.rootGraph&&(null==t.parent||t.parent.graphManager!=this))throw"Invalid parent node!";for(var e,i,o=[],s=(o=o.concat(t.getEdges())).length,a=0;a=e.getRight()?i[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight()):e.getX()<=t.getX()&&e.getRight()>=t.getRight()&&(i[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight())),t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()?i[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()):e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()&&(i[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()));var o=Math.abs((e.getCenterY()-t.getCenterY())/(e.getCenterX()-t.getCenterX()));e.getCenterY()===t.getCenterY()&&e.getCenterX()===t.getCenterX()&&(o=1);var s=o*i[0],a=i[1]/o;i[0]s?(i[0]=r,i[1]=h,i[2]=o,i[3]=A):no?(i[0]=a,i[1]=n,i[2]=E,i[3]=s):ro?(i[0]=g,i[1]=u):(i[0]=l,i[1]=h),L=!0):O===D&&(r>o?(i[0]=a,i[1]=h):(i[0]=c,i[1]=u),L=!0),-I===D?(o>r?(i[2]=v,i[3]=A):(i[2]=E,i[3]=y),m=!0):I===D&&(o>r?(i[2]=f,i[3]=y):(i[2]=N,i[3]=A),m=!0),L&&m)return!1;if(r>o?n>s?(w=this.getCardinalDirection(O,D,4),R=this.getCardinalDirection(I,D,2)):(w=this.getCardinalDirection(-O,D,3),R=this.getCardinalDirection(-I,D,1)):n>s?(w=this.getCardinalDirection(-O,D,1),R=this.getCardinalDirection(-I,D,3)):(w=this.getCardinalDirection(O,D,2),R=this.getCardinalDirection(I,D,4)),!L)switch(w){case 1:M=h,C=r+-p/D,i[0]=C,i[1]=M;break;case 2:C=c,M=n+d*D,i[0]=C,i[1]=M;break;case 3:M=u,C=r+p/D,i[0]=C,i[1]=M;break;case 4:C=g,M=n+-d*D,i[0]=C,i[1]=M}if(!m)switch(R){case 1:x=y,G=o+-_/D,i[2]=G,i[3]=x;break;case 2:G=N,x=s+T*D,i[2]=G,i[3]=x;break;case 3:x=A,G=o+_/D,i[2]=G,i[3]=x;break;case 4:G=v,x=s+-T*D,i[2]=G,i[3]=x}}return!1},n.getCardinalDirection=function(t,e,i){return t>e?i:1+i%4},n.getIntersection=function(t,e,i,n){if(null==n)return this.getIntersection2(t,e,i);var o=t.x,s=t.y,a=e.x,h=e.y,l=i.x,g=i.y,u=n.x,c=n.y,d=void 0,p=void 0,f=void 0,y=void 0,E=void 0,v=void 0,A=void 0;return(d=h-s,f=o-a,E=a*s-o*h,p=c-g,y=l-u,v=u*g-l*c,0==(A=d*y-p*f))?null:new r((f*v-y*E)/A,(p*E-d*v)/A)},n.angleOfVector=function(t,e,i,r){var n=void 0;return t!==i?(n=Math.atan((r-e)/(i-t)),i0?1:t<0?-1:0},r.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},r.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},t.exports=r},function(t,e,i){"use strict";function r(){}r.MAX_VALUE=0x7fffffff,r.MIN_VALUE=-0x80000000,t.exports=r},function(t,e,i){"use strict";var r=function(){function t(t,e){for(var i=0;i0&&e;){for(a.push(l[0]);a.length>0&&e;){var g=a[0];a.splice(0,1),s.add(g);for(var u=g.getEdges(),o=0;o-1&&l.splice(f,1)}s=new Set,h=new Map}else t=[]}return t},c.prototype.createDummyNodesForBendpoints=function(t){for(var e=[],i=t.source,r=this.graphManager.calcLowestCommonAncestor(t.source,t.target),n=0;n0){for(var n=this.edgeToDummyNodes.get(i),o=0;o=0&&e.splice(u,1),a.getNeighborsList().forEach(function(t){if(0>i.indexOf(t)){var e=r.get(t)-1;1==e&&l.push(t),r.set(t,e)}})}i=i.concat(l),(1==e.length||2==e.length)&&(n=!0,o=e[0])}return o},c.prototype.setGraphManager=function(t){this.graphManager=t},t.exports=c},function(t,e,i){"use strict";function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=1e4*Math.sin(r.seed++),r.x-Math.floor(r.x)},t.exports=r},function(t,e,i){"use strict";var r=i(4);function n(t,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}n.prototype.getWorldOrgX=function(){return this.lworldOrgX},n.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},n.prototype.getWorldOrgY=function(){return this.lworldOrgY},n.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},n.prototype.getWorldExtX=function(){return this.lworldExtX},n.prototype.setWorldExtX=function(t){this.lworldExtX=t},n.prototype.getWorldExtY=function(){return this.lworldExtY},n.prototype.setWorldExtY=function(t){this.lworldExtY=t},n.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},n.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},n.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},n.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},n.prototype.getDeviceExtX=function(){return this.ldeviceExtX},n.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},n.prototype.getDeviceExtY=function(){return this.ldeviceExtY},n.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},n.prototype.transformX=function(t){var e=0,i=this.lworldExtX;return 0!=i&&(e=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/i),e},n.prototype.transformY=function(t){var e=0,i=this.lworldExtY;return 0!=i&&(e=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/i),e},n.prototype.inverseTransformX=function(t){var e=0,i=this.ldeviceExtX;return 0!=i&&(e=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/i),e},n.prototype.inverseTransformY=function(t){var e=0,i=this.ldeviceExtY;return 0!=i&&(e=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/i),e},n.prototype.inverseTransformPoint=function(t){return new r(this.inverseTransformX(t.x),this.inverseTransformY(t.y))},t.exports=n},function(t,e,i){"use strict";var r=i(15),n=i(7),o=i(0),s=i(8),a=i(9);function h(){r.call(this),this.useSmartIdealEdgeLengthCalculation=n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=n.DEFAULT_EDGE_LENGTH,this.springConstant=n.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=n.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=n.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=n.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=n.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*n.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=n.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=n.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=n.MAX_ITERATIONS}for(var l in h.prototype=Object.create(r.prototype),r)h[l]=r[l];h.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=n.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},h.prototype.calcIdealEdgeLengths=function(){for(var t,e,i,r,s,a,h=this.getGraphManager().getAllEdges(),l=0;ln.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*n.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-n.ADAPTATION_LOWER_NODE_LIMIT)/(n.ADAPTATION_UPPER_NODE_LIMIT-n.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-n.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=n.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>n.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(n.COOLING_ADAPTATION_FACTOR,1-(t-n.ADAPTATION_LOWER_NODE_LIMIT)/(n.ADAPTATION_UPPER_NODE_LIMIT-n.ADAPTATION_LOWER_NODE_LIMIT)*(1-n.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=n.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var t,e=this.getAllEdges(),i=0;i0)||void 0===arguments[0]||arguments[0],a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],h=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%n.GRID_CALCULATION_CHECK_PERIOD==1&&s&&this.updateGrid(),o=new Set,t=0;t(h=e.getEstimatedSize()*this.gravityRangeFactor)||a>h)&&(t.gravitationForceX=-this.gravityConstant*n,t.gravitationForceY=-this.gravityConstant*o):(s>(h=e.getEstimatedSize()*this.compoundGravityRangeFactor)||a>h)&&(t.gravitationForceX=-this.gravityConstant*n*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*o*this.compoundGravityConstant)},h.prototype.isConverged=function(){var t,e=!1;return this.totalIterations>this.maxIterations/3&&(e=2>Math.abs(this.totalDisplacement-this.oldTotalDisplacement)),t=this.totalDisplacement=a.length||l>=a[0].length)){for(var g=0;gt}}]),t}()},function(t,e,i){"use strict";var r=function(){function t(t,e){for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.sequence1=e,this.sequence2=i,this.match_score=r,this.mismatch_penalty=n,this.gap_penalty=o,this.iMax=e.length+1,this.jMax=i.length+1,this.grid=Array(this.iMax);for(var s=0;s=0;i--){var r=this.listeners[i];r.event===t&&r.callback===e&&this.listeners.splice(i,1)}},n.emit=function(t,e){for(var i=0;i{r.d(t,{A:()=>n});let n=(0,r(32403).A)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},6758:(e,t,r)=>{r.d(t,{QP:()=>ee});let n=(e,t)=>{if(0===e.length)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?n(e.slice(1),o):void 0;if(a)return a;if(0===t.validators.length)return;let s=e.join("-");return t.validators.find(({validator:e})=>e(s))?.classGroupId},o=/^\[(.+)\]$/,a=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:s(t,e)).classGroupId=r;return}if("function"==typeof e)return i(e)?void a(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,o])=>{a(o,s(t,e),r,n)})})},s=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},i=e=>e.isThemeGetter,l=/\s+/;function c(){let e,t,r=0,n="";for(;r{let t;if("string"==typeof e)return e;let r="";for(let n=0;n{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},f=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,p=/^\((?:(\w[\w-]*):)?(.+)\)$/i,m=/^\d+\/\d+$/,h=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,g=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,v=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,b=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,y=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,w=e=>m.test(e),x=e=>!!e&&!Number.isNaN(Number(e)),k=e=>!!e&&Number.isInteger(Number(e)),E=e=>e.endsWith("%")&&x(e.slice(0,-1)),N=e=>h.test(e),S=()=>!0,C=e=>g.test(e)&&!v.test(e),M=()=>!1,P=e=>b.test(e),O=e=>y.test(e),T=e=>!j(e)&&!_(e),R=e=>$(e,H,M),j=e=>f.test(e),A=e=>$(e,X,C),z=e=>$(e,Z,x),I=e=>$(e,G,M),L=e=>$(e,K,O),D=e=>$(e,J,P),_=e=>p.test(e),F=e=>V(e,X),B=e=>V(e,Q),U=e=>V(e,G),W=e=>V(e,H),q=e=>V(e,K),Y=e=>V(e,J,!0),$=(e,t,r)=>{let n=f.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},V=(e,t,r=!1)=>{let n=p.exec(e);return!!n&&(n[1]?t(n[1]):r)},G=e=>"position"===e||"percentage"===e,K=e=>"image"===e||"url"===e,H=e=>"length"===e||"size"===e||"bg-size"===e,X=e=>"length"===e,Z=e=>"number"===e,Q=e=>"family-name"===e,J=e=>"shadow"===e;Symbol.toStringTag;let ee=function(e,...t){let r,s,i,u=function(l){let c;return s=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,n=new Map,o=(o,a)=>{r.set(o,a),++t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}})((c=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,n=e=>{let t,r,n=[],o=0,a=0,s=0;for(let r=0;rs?t-s:void 0}};if(t){let e=t+":",r=n;n=t=>t.startsWith(e)?r(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(r){let e=n;n=t=>r({className:t,parseClassName:e})}return n})(c),sortModifiers:(e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;let r=[],n=[];return e.forEach(e=>{"["===e[0]||t[e]?(r.push(...n.sort(),e),n=[]):n.push(e)}),r.push(...n.sort()),r}})(c),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(let e in r)a(r[e],n,e,t);return n})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:e=>{let r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),n(r,t)||(e=>{if(o.test(e)){let t=o.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}})(e)},getConflictingClassGroupIds:(e,t)=>{let n=r[e]||[];return t&&s[e]?[...n,...s[e]]:n}}})(c)}).cache.get,i=r.cache.set,u=d,d(l)};function d(e){let t=s(e);if(t)return t;let n=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(l),c="";for(let e=i.length-1;e>=0;e-=1){let t=i[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=r(t);if(l){c=t+(c.length>0?" "+c:c);continue}let m=!!p,h=n(m?f.substring(0,p):f);if(!h){if(!m||!(h=n(f))){c=t+(c.length>0?" "+c:c);continue}m=!1}let g=a(u).join(":"),v=d?g+"!":g,b=v+h;if(s.includes(b))continue;s.push(b);let y=o(h,m);for(let e=0;e0?" "+c:c)}return c})(e,r);return i(e,n),n}return function(){return u(c.apply(null,arguments))}}(()=>{let e=d("color"),t=d("font"),r=d("text"),n=d("font-weight"),o=d("tracking"),a=d("leading"),s=d("breakpoint"),i=d("container"),l=d("spacing"),c=d("radius"),u=d("shadow"),f=d("inset-shadow"),p=d("text-shadow"),m=d("drop-shadow"),h=d("blur"),g=d("perspective"),v=d("aspect"),b=d("ease"),y=d("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...M(),_,j],O=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],V=()=>[_,j,l],G=()=>[w,"full","auto",...V()],K=()=>[k,"none","subgrid",_,j],H=()=>["auto",{span:["full",k,_,j]},k,_,j],X=()=>[k,"auto",_,j],Z=()=>["auto","min","max","fr",_,j],Q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...V()],et=()=>[w,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],er=()=>[e,_,j],en=()=>[...M(),U,I,{position:[_,j]}],eo=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ea=()=>["auto","cover","contain",W,R,{size:[_,j]}],es=()=>[E,F,A],ei=()=>["","none","full",c,_,j],el=()=>["",x,F,A],ec=()=>["solid","dashed","dotted","double"],eu=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ed=()=>[x,E,U,I],ef=()=>["","none",h,_,j],ep=()=>["none",x,_,j],em=()=>["none",x,_,j],eh=()=>[x,_,j],eg=()=>[w,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[N],breakpoint:[N],color:[S],container:[N],"drop-shadow":[N],ease:["in","out","in-out"],font:[T],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[N],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[N],shadow:[N],spacing:["px",x],text:[N],"text-shadow":[N],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",w,j,_,v]}],container:["container"],columns:[{columns:[x,j,_,i]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[k,"auto",_,j]}],basis:[{basis:[w,"full","auto",i,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[x,w,"auto","initial","none",j]}],grow:[{grow:["",x,_,j]}],shrink:[{shrink:["",x,_,j]}],order:[{order:[k,"first","last","none",_,j]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:H()}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:H()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...Q(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...Q()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":Q()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:et()}],w:[{w:[i,"screen",...et()]}],"min-w":[{"min-w":[i,"screen","none",...et()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...et()]}],h:[{h:["screen","lh",...et()]}],"min-h":[{"min-h":["screen","lh","none",...et()]}],"max-h":[{"max-h":["screen","lh",...et()]}],"font-size":[{text:["base",r,F,A]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,_,z]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",E,j]}],"font-family":[{font:[B,j,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,_,j]}],"line-clamp":[{"line-clamp":[x,"none",_,z]}],leading:[{leading:[a,...V()]}],"list-image":[{"list-image":["none",_,j]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_,j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:er()}],"text-color":[{text:er()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ec(),"wavy"]}],"text-decoration-thickness":[{decoration:[x,"from-font","auto",_,A]}],"text-decoration-color":[{decoration:er()}],"underline-offset":[{"underline-offset":[x,"auto",_,j]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_,j]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_,j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:en()}],"bg-repeat":[{bg:eo()}],"bg-size":[{bg:ea()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},k,_,j],radial:["",_,j],conic:[k,_,j]},q,L]}],"bg-color":[{bg:er()}],"gradient-from-pos":[{from:es()}],"gradient-via-pos":[{via:es()}],"gradient-to-pos":[{to:es()}],"gradient-from":[{from:er()}],"gradient-via":[{via:er()}],"gradient-to":[{to:er()}],rounded:[{rounded:ei()}],"rounded-s":[{"rounded-s":ei()}],"rounded-e":[{"rounded-e":ei()}],"rounded-t":[{"rounded-t":ei()}],"rounded-r":[{"rounded-r":ei()}],"rounded-b":[{"rounded-b":ei()}],"rounded-l":[{"rounded-l":ei()}],"rounded-ss":[{"rounded-ss":ei()}],"rounded-se":[{"rounded-se":ei()}],"rounded-ee":[{"rounded-ee":ei()}],"rounded-es":[{"rounded-es":ei()}],"rounded-tl":[{"rounded-tl":ei()}],"rounded-tr":[{"rounded-tr":ei()}],"rounded-br":[{"rounded-br":ei()}],"rounded-bl":[{"rounded-bl":ei()}],"border-w":[{border:el()}],"border-w-x":[{"border-x":el()}],"border-w-y":[{"border-y":el()}],"border-w-s":[{"border-s":el()}],"border-w-e":[{"border-e":el()}],"border-w-t":[{"border-t":el()}],"border-w-r":[{"border-r":el()}],"border-w-b":[{"border-b":el()}],"border-w-l":[{"border-l":el()}],"divide-x":[{"divide-x":el()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":el()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ec(),"hidden","none"]}],"divide-style":[{divide:[...ec(),"hidden","none"]}],"border-color":[{border:er()}],"border-color-x":[{"border-x":er()}],"border-color-y":[{"border-y":er()}],"border-color-s":[{"border-s":er()}],"border-color-e":[{"border-e":er()}],"border-color-t":[{"border-t":er()}],"border-color-r":[{"border-r":er()}],"border-color-b":[{"border-b":er()}],"border-color-l":[{"border-l":er()}],"divide-color":[{divide:er()}],"outline-style":[{outline:[...ec(),"none","hidden"]}],"outline-offset":[{"outline-offset":[x,_,j]}],"outline-w":[{outline:["",x,F,A]}],"outline-color":[{outline:er()}],shadow:[{shadow:["","none",u,Y,D]}],"shadow-color":[{shadow:er()}],"inset-shadow":[{"inset-shadow":["none",f,Y,D]}],"inset-shadow-color":[{"inset-shadow":er()}],"ring-w":[{ring:el()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:er()}],"ring-offset-w":[{"ring-offset":[x,A]}],"ring-offset-color":[{"ring-offset":er()}],"inset-ring-w":[{"inset-ring":el()}],"inset-ring-color":[{"inset-ring":er()}],"text-shadow":[{"text-shadow":["none",p,Y,D]}],"text-shadow-color":[{"text-shadow":er()}],opacity:[{opacity:[x,_,j]}],"mix-blend":[{"mix-blend":[...eu(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":eu()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[x]}],"mask-image-linear-from-pos":[{"mask-linear-from":ed()}],"mask-image-linear-to-pos":[{"mask-linear-to":ed()}],"mask-image-linear-from-color":[{"mask-linear-from":er()}],"mask-image-linear-to-color":[{"mask-linear-to":er()}],"mask-image-t-from-pos":[{"mask-t-from":ed()}],"mask-image-t-to-pos":[{"mask-t-to":ed()}],"mask-image-t-from-color":[{"mask-t-from":er()}],"mask-image-t-to-color":[{"mask-t-to":er()}],"mask-image-r-from-pos":[{"mask-r-from":ed()}],"mask-image-r-to-pos":[{"mask-r-to":ed()}],"mask-image-r-from-color":[{"mask-r-from":er()}],"mask-image-r-to-color":[{"mask-r-to":er()}],"mask-image-b-from-pos":[{"mask-b-from":ed()}],"mask-image-b-to-pos":[{"mask-b-to":ed()}],"mask-image-b-from-color":[{"mask-b-from":er()}],"mask-image-b-to-color":[{"mask-b-to":er()}],"mask-image-l-from-pos":[{"mask-l-from":ed()}],"mask-image-l-to-pos":[{"mask-l-to":ed()}],"mask-image-l-from-color":[{"mask-l-from":er()}],"mask-image-l-to-color":[{"mask-l-to":er()}],"mask-image-x-from-pos":[{"mask-x-from":ed()}],"mask-image-x-to-pos":[{"mask-x-to":ed()}],"mask-image-x-from-color":[{"mask-x-from":er()}],"mask-image-x-to-color":[{"mask-x-to":er()}],"mask-image-y-from-pos":[{"mask-y-from":ed()}],"mask-image-y-to-pos":[{"mask-y-to":ed()}],"mask-image-y-from-color":[{"mask-y-from":er()}],"mask-image-y-to-color":[{"mask-y-to":er()}],"mask-image-radial":[{"mask-radial":[_,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":ed()}],"mask-image-radial-to-pos":[{"mask-radial-to":ed()}],"mask-image-radial-from-color":[{"mask-radial-from":er()}],"mask-image-radial-to-color":[{"mask-radial-to":er()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[x]}],"mask-image-conic-from-pos":[{"mask-conic-from":ed()}],"mask-image-conic-to-pos":[{"mask-conic-to":ed()}],"mask-image-conic-from-color":[{"mask-conic-from":er()}],"mask-image-conic-to-color":[{"mask-conic-to":er()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:en()}],"mask-repeat":[{mask:eo()}],"mask-size":[{mask:ea()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_,j]}],filter:[{filter:["","none",_,j]}],blur:[{blur:ef()}],brightness:[{brightness:[x,_,j]}],contrast:[{contrast:[x,_,j]}],"drop-shadow":[{"drop-shadow":["","none",m,Y,D]}],"drop-shadow-color":[{"drop-shadow":er()}],grayscale:[{grayscale:["",x,_,j]}],"hue-rotate":[{"hue-rotate":[x,_,j]}],invert:[{invert:["",x,_,j]}],saturate:[{saturate:[x,_,j]}],sepia:[{sepia:["",x,_,j]}],"backdrop-filter":[{"backdrop-filter":["","none",_,j]}],"backdrop-blur":[{"backdrop-blur":ef()}],"backdrop-brightness":[{"backdrop-brightness":[x,_,j]}],"backdrop-contrast":[{"backdrop-contrast":[x,_,j]}],"backdrop-grayscale":[{"backdrop-grayscale":["",x,_,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x,_,j]}],"backdrop-invert":[{"backdrop-invert":["",x,_,j]}],"backdrop-opacity":[{"backdrop-opacity":[x,_,j]}],"backdrop-saturate":[{"backdrop-saturate":[x,_,j]}],"backdrop-sepia":[{"backdrop-sepia":["",x,_,j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_,j]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[x,"initial",_,j]}],ease:[{ease:["linear","initial",b,_,j]}],delay:[{delay:[x,_,j]}],animate:[{animate:["none",y,_,j]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,_,j]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:ep()}],"rotate-x":[{"rotate-x":ep()}],"rotate-y":[{"rotate-y":ep()}],"rotate-z":[{"rotate-z":ep()}],scale:[{scale:em()}],"scale-x":[{"scale-x":em()}],"scale-y":[{"scale-y":em()}],"scale-z":[{"scale-z":em()}],"scale-3d":["scale-3d"],skew:[{skew:eh()}],"skew-x":[{"skew-x":eh()}],"skew-y":[{"skew-y":eh()}],transform:[{transform:[_,j,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eg()}],"translate-x":[{"translate-x":eg()}],"translate-y":[{"translate-y":eg()}],"translate-z":[{"translate-z":eg()}],"translate-none":["translate-none"],accent:[{accent:er()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:er()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",_,j]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",_,j]}],fill:[{fill:["none",...er()]}],"stroke-w":[{stroke:[x,F,A,z]}],stroke:[{stroke:["none",...er()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}})},11119:(e,t,r)=>{r.d(t,{l$:()=>x,oR:()=>g});var n=r(61221),o=r(79944);let a=Array(12).fill(0),s=e=>{let{visible:t,className:r}=e;return n.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":t},n.createElement("div",{className:"sonner-spinner"},a.map((e,t)=>n.createElement("div",{className:"sonner-loading-bar",key:"spinner-bar-".concat(t)}))))},i=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),l=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),c=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),u=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),d=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},n.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),n.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),f=1;class p{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,o="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:f++,a=this.toasts.find(e=>e.id===o),s=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(t=>t.id===o?(this.publish({...t,...e,id:o,title:r}),{...t,...e,id:o,dismissible:s,title:r}):t):this.addToast({title:r,...n,dismissible:s,id:o}),o},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let r,o;if(!t)return;void 0!==t.loading&&(o=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let a=Promise.resolve(e instanceof Function?e():e),s=void 0!==o,i=a.then(async e=>{if(r=["resolve",e],n.isValidElement(e))s=!1,this.create({id:o,type:"default",message:e});else if(h(e)&&!e.ok){s=!1;let r="function"==typeof t.error?await t.error("HTTP error! status: ".concat(e.status)):t.error,a="function"==typeof t.description?await t.description("HTTP error! status: ".concat(e.status)):t.description,i="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:o,type:"error",description:a,...i})}else if(e instanceof Error){s=!1;let r="function"==typeof t.error?await t.error(e):t.error,a="function"==typeof t.description?await t.description(e):t.description,i="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:o,type:"error",description:a,...i})}else if(void 0!==t.success){s=!1;let r="function"==typeof t.success?await t.success(e):t.success,a="function"==typeof t.description?await t.description(e):t.description,i="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:o,type:"success",description:a,...i})}}).catch(async e=>{if(r=["reject",e],void 0!==t.error){s=!1;let r="function"==typeof t.error?await t.error(e):t.error,a="function"==typeof t.description?await t.description(e):t.description,i="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:o,type:"error",description:a,...i})}}).finally(()=>{s&&(this.dismiss(o),o=void 0),null==t.finally||t.finally.call(t)}),l=()=>new Promise((e,t)=>i.then(()=>"reject"===r[0]?t(r[1]):e(r[1])).catch(t));return"string"!=typeof o&&"number"!=typeof o?{unwrap:l}:Object.assign(o,{unwrap:l})},this.custom=(e,t)=>{let r=(null==t?void 0:t.id)||f++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}let m=new p,h=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,g=Object.assign((e,t)=>{let r=(null==t?void 0:t.id)||f++;return m.addToast({title:e,...t,id:r}),r},{success:m.success,info:m.info,warning:m.warning,error:m.error,custom:m.custom,message:m.message,promise:m.promise,dismiss:m.dismiss,loading:m.loading},{getHistory:()=>m.toasts,getToasts:()=>m.getActiveToasts()});function v(e){return void 0!==e.label}function b(){for(var e=arguments.length,t=Array(e),r=0;rsvg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");let y=e=>{var t,r,o,a,f,p,m,h,g,y,w;let{invert:x,toast:k,unstyled:E,interacting:N,setHeights:S,visibleToasts:C,heights:M,index:P,toasts:O,expanded:T,removeToast:R,defaultRichColors:j,closeButton:A,style:z,cancelButtonStyle:I,actionButtonStyle:L,className:D="",descriptionClassName:_="",duration:F,position:B,gap:U,expandByDefault:W,classNames:q,icons:Y,closeButtonAriaLabel:$="Close toast"}=e,[V,G]=n.useState(null),[K,H]=n.useState(null),[X,Z]=n.useState(!1),[Q,J]=n.useState(!1),[ee,et]=n.useState(!1),[er,en]=n.useState(!1),[eo,ea]=n.useState(!1),[es,ei]=n.useState(0),[el,ec]=n.useState(0),eu=n.useRef(k.duration||F||4e3),ed=n.useRef(null),ef=n.useRef(null),ep=0===P,em=P+1<=C,eh=k.type,eg=!1!==k.dismissible,ev=k.className||"",eb=k.descriptionClassName||"",ey=n.useMemo(()=>M.findIndex(e=>e.toastId===k.id)||0,[M,k.id]),ew=n.useMemo(()=>{var e;return null!=(e=k.closeButton)?e:A},[k.closeButton,A]),ex=n.useMemo(()=>k.duration||F||4e3,[k.duration,F]),ek=n.useRef(0),eE=n.useRef(0),eN=n.useRef(0),eS=n.useRef(null),[eC,eM]=B.split("-"),eP=n.useMemo(()=>M.reduce((e,t,r)=>r>=ey?e:e+t.height,0),[M,ey]),eO=(()=>{let[e,t]=n.useState(document.hidden);return n.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e})(),eT=k.invert||x,eR="loading"===eh;eE.current=n.useMemo(()=>ey*U+eP,[ey,eP]),n.useEffect(()=>{eu.current=ex},[ex]),n.useEffect(()=>{Z(!0)},[]),n.useEffect(()=>{let e=ef.current;if(e){let t=e.getBoundingClientRect().height;return ec(t),S(e=>[{toastId:k.id,height:t,position:k.position},...e]),()=>S(e=>e.filter(e=>e.toastId!==k.id))}},[S,k.id]),n.useLayoutEffect(()=>{if(!X)return;let e=ef.current,t=e.style.height;e.style.height="auto";let r=e.getBoundingClientRect().height;e.style.height=t,ec(r),S(e=>e.find(e=>e.toastId===k.id)?e.map(e=>e.toastId===k.id?{...e,height:r}:e):[{toastId:k.id,height:r,position:k.position},...e])},[X,k.title,k.description,S,k.id]);let ej=n.useCallback(()=>{J(!0),ei(eE.current),S(e=>e.filter(e=>e.toastId!==k.id)),setTimeout(()=>{R(k)},200)},[k,R,S,eE]);n.useEffect(()=>{let e;if((!k.promise||"loading"!==eh)&&k.duration!==1/0&&"loading"!==k.type)return T||N||eO?(()=>{if(eN.current{null==k.onAutoClose||k.onAutoClose.call(k,k),ej()},eu.current)),()=>clearTimeout(e)},[T,N,k,eh,eO,ej]),n.useEffect(()=>{k.delete&&ej()},[ej,k.delete]);let eA=k.icon||(null==Y?void 0:Y[eh])||(e=>{switch(e){case"success":return i;case"info":return c;case"warning":return l;case"error":return u;default:return null}})(eh);return n.createElement("li",{tabIndex:0,ref:ef,className:b(D,ev,null==q?void 0:q.toast,null==k||null==(t=k.classNames)?void 0:t.toast,null==q?void 0:q.default,null==q?void 0:q[eh],null==k||null==(r=k.classNames)?void 0:r[eh]),"data-sonner-toast":"","data-rich-colors":null!=(y=k.richColors)?y:j,"data-styled":!(k.jsx||k.unstyled||E),"data-mounted":X,"data-promise":!!k.promise,"data-swiped":eo,"data-removed":Q,"data-visible":em,"data-y-position":eC,"data-x-position":eM,"data-index":P,"data-front":ep,"data-swiping":ee,"data-dismissible":eg,"data-type":eh,"data-invert":eT,"data-swipe-out":er,"data-swipe-direction":K,"data-expanded":!!(T||W&&X),style:{"--index":P,"--toasts-before":P,"--z-index":O.length-P,"--offset":"".concat(Q?es:eE.current,"px"),"--initial-height":W?"auto":"".concat(el,"px"),...z,...k.style},onDragEnd:()=>{et(!1),G(null),eS.current=null},onPointerDown:e=>{!eR&&eg&&(ed.current=new Date,ei(eE.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(et(!0),eS.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,r,n,o;if(er||!eg)return;eS.current=null;let a=Number((null==(e=ef.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),s=Number((null==(t=ef.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),i=new Date().getTime()-(null==(r=ed.current)?void 0:r.getTime()),l="x"===V?a:s,c=Math.abs(l)/i;if(Math.abs(l)>=45||c>.11){ei(eE.current),null==k.onDismiss||k.onDismiss.call(k,k),"x"===V?H(a>0?"right":"left"):H(s>0?"down":"up"),ej(),en(!0);return}null==(n=ef.current)||n.style.setProperty("--swipe-amount-x","0px"),null==(o=ef.current)||o.style.setProperty("--swipe-amount-y","0px"),ea(!1),et(!1),G(null)},onPointerMove:t=>{var r,n,o,a;if(!eS.current||!eg||(null==(r=window.getSelection())?void 0:r.toString().length)>0)return;let s=t.clientY-eS.current.y,i=t.clientX-eS.current.x,l=null!=(a=e.swipeDirections)?a:function(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}(B);!V&&(Math.abs(i)>1||Math.abs(s)>1)&&G(Math.abs(i)>Math.abs(s)?"x":"y");let c={x:0,y:0},u=e=>1/(1.5+Math.abs(e)/20);if("y"===V){if(l.includes("top")||l.includes("bottom"))if(l.includes("top")&&s<0||l.includes("bottom")&&s>0)c.y=s;else{let e=s*u(s);c.y=Math.abs(e)0)c.x=i;else{let e=i*u(i);c.x=Math.abs(e)0||Math.abs(c.y)>0)&&ea(!0),null==(n=ef.current)||n.style.setProperty("--swipe-amount-x","".concat(c.x,"px")),null==(o=ef.current)||o.style.setProperty("--swipe-amount-y","".concat(c.y,"px"))}},ew&&!k.jsx&&"loading"!==eh?n.createElement("button",{"aria-label":$,"data-disabled":eR,"data-close-button":!0,onClick:eR||!eg?()=>{}:()=>{ej(),null==k.onDismiss||k.onDismiss.call(k,k)},className:b(null==q?void 0:q.closeButton,null==k||null==(o=k.classNames)?void 0:o.closeButton)},null!=(w=null==Y?void 0:Y.close)?w:d):null,(eh||k.icon||k.promise)&&null!==k.icon&&((null==Y?void 0:Y[eh])!==null||k.icon)?n.createElement("div",{"data-icon":"",className:b(null==q?void 0:q.icon,null==k||null==(a=k.classNames)?void 0:a.icon)},k.promise||"loading"===k.type&&!k.icon?k.icon||function(){var e,t;return(null==Y?void 0:Y.loading)?n.createElement("div",{className:b(null==q?void 0:q.loader,null==k||null==(t=k.classNames)?void 0:t.loader,"sonner-loader"),"data-visible":"loading"===eh},Y.loading):n.createElement(s,{className:b(null==q?void 0:q.loader,null==k||null==(e=k.classNames)?void 0:e.loader),visible:"loading"===eh})}():null,"loading"!==k.type?eA:null):null,n.createElement("div",{"data-content":"",className:b(null==q?void 0:q.content,null==k||null==(f=k.classNames)?void 0:f.content)},n.createElement("div",{"data-title":"",className:b(null==q?void 0:q.title,null==k||null==(p=k.classNames)?void 0:p.title)},k.jsx?k.jsx:"function"==typeof k.title?k.title():k.title),k.description?n.createElement("div",{"data-description":"",className:b(_,eb,null==q?void 0:q.description,null==k||null==(m=k.classNames)?void 0:m.description)},"function"==typeof k.description?k.description():k.description):null),n.isValidElement(k.cancel)?k.cancel:k.cancel&&v(k.cancel)?n.createElement("button",{"data-button":!0,"data-cancel":!0,style:k.cancelButtonStyle||I,onClick:e=>{v(k.cancel)&&eg&&(null==k.cancel.onClick||k.cancel.onClick.call(k.cancel,e),ej())},className:b(null==q?void 0:q.cancelButton,null==k||null==(h=k.classNames)?void 0:h.cancelButton)},k.cancel.label):null,n.isValidElement(k.action)?k.action:k.action&&v(k.action)?n.createElement("button",{"data-button":!0,"data-action":!0,style:k.actionButtonStyle||L,onClick:e=>{v(k.action)&&(null==k.action.onClick||k.action.onClick.call(k.action,e),e.defaultPrevented||ej())},className:b(null==q?void 0:q.actionButton,null==k||null==(g=k.classNames)?void 0:g.actionButton)},k.action.label):null)};function w(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}let x=n.forwardRef(function(e,t){let{invert:r,position:a="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:l,className:c,offset:u,mobileOffset:d,theme:f="light",richColors:p,duration:h,style:g,visibleToasts:v=3,toastOptions:b,dir:x=w(),gap:k=14,icons:E,containerAriaLabel:N="Notifications"}=e,[S,C]=n.useState([]),M=n.useMemo(()=>Array.from(new Set([a].concat(S.filter(e=>e.position).map(e=>e.position)))),[S,a]),[P,O]=n.useState([]),[T,R]=n.useState(!1),[j,A]=n.useState(!1),[z,I]=n.useState("system"!==f?f:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),L=n.useRef(null),D=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=n.useRef(null),F=n.useRef(!1),B=n.useCallback(e=>{C(t=>{var r;return(null==(r=t.find(t=>t.id===e.id))?void 0:r.delete)||m.dismiss(e.id),t.filter(t=>{let{id:r}=t;return r!==e.id})})},[]);return n.useEffect(()=>m.subscribe(e=>{if(e.dismiss)return void requestAnimationFrame(()=>{C(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});setTimeout(()=>{o.flushSync(()=>{C(t=>{let r=t.findIndex(t=>t.id===e.id);return -1!==r?[...t.slice(0,r),{...t[r],...e},...t.slice(r+1)]:[e,...t]})})})}),[S]),n.useEffect(()=>{if("system"!==f)return void I(f);if("system"===f&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?I("dark"):I("light")),"undefined"==typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",e=>{let{matches:t}=e;t?I("dark"):I("light")})}catch(t){e.addListener(e=>{let{matches:t}=e;try{t?I("dark"):I("light")}catch(e){console.error(e)}})}},[f]),n.useEffect(()=>{S.length<=1&&R(!1)},[S]),n.useEffect(()=>{let e=e=>{var t,r;s.every(t=>e[t]||e.code===t)&&(R(!0),null==(r=L.current)||r.focus()),"Escape"===e.code&&(document.activeElement===L.current||(null==(t=L.current)?void 0:t.contains(document.activeElement)))&&R(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s]),n.useEffect(()=>{if(L.current)return()=>{_.current&&(_.current.focus({preventScroll:!0}),_.current=null,F.current=!1)}},[L.current]),n.createElement("section",{ref:t,"aria-label":"".concat(N," ").concat(D),tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},M.map((t,o)=>{var a;let[s,f]=t.split("-");return S.length?n.createElement("ol",{key:t,dir:"auto"===x?w():x,tabIndex:-1,ref:L,className:c,"data-sonner-toaster":!0,"data-sonner-theme":z,"data-y-position":s,"data-lifted":T&&S.length>1&&!i,"data-x-position":f,style:{"--front-toast-height":"".concat((null==(a=P[0])?void 0:a.height)||0,"px"),"--width":"".concat(356,"px"),"--gap":"".concat(k,"px"),...g,...function(e,t){let r={};return[e,t].forEach((e,t)=>{let n=1===t,o=n?"--mobile-offset":"--offset",a=n?"16px":"24px";function s(e){["top","right","bottom","left"].forEach(t=>{r["".concat(o,"-").concat(t)]="number"==typeof e?"".concat(e,"px"):e})}"number"==typeof e||"string"==typeof e?s(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?r["".concat(o,"-").concat(t)]=a:r["".concat(o,"-").concat(t)]="number"==typeof e[t]?"".concat(e[t],"px"):e[t]}):s(a)}),r}(u,d)},onBlur:e=>{F.current&&!e.currentTarget.contains(e.relatedTarget)&&(F.current=!1,_.current&&(_.current.focus({preventScroll:!0}),_.current=null))},onFocus:e=>{!(e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible)&&(F.current||(F.current=!0,_.current=e.relatedTarget))},onMouseEnter:()=>R(!0),onMouseMove:()=>R(!0),onMouseLeave:()=>{j||R(!1)},onDragEnd:()=>R(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||A(!0)},onPointerUp:()=>A(!1)},S.filter(e=>!e.position&&0===o||e.position===t).map((o,a)=>{var s,c;return n.createElement(y,{key:o.id,icons:E,index:a,toast:o,defaultRichColors:p,duration:null!=(s=null==b?void 0:b.duration)?s:h,className:null==b?void 0:b.className,descriptionClassName:null==b?void 0:b.descriptionClassName,invert:r,visibleToasts:v,closeButton:null!=(c=null==b?void 0:b.closeButton)?c:l,interacting:j,position:t,style:null==b?void 0:b.style,unstyled:null==b?void 0:b.unstyled,classNames:null==b?void 0:b.classNames,cancelButtonStyle:null==b?void 0:b.cancelButtonStyle,actionButtonStyle:null==b?void 0:b.actionButtonStyle,closeButtonAriaLabel:null==b?void 0:b.closeButtonAriaLabel,removeToast:B,toasts:S.filter(e=>e.position==o.position),heights:P.filter(e=>e.position==o.position),setHeights:O,expandByDefault:i,gap:k,expanded:T,swipeDirections:e.swipeDirections})})):null}))})},15452:(e,t,r)=>{r.d(t,{c:()=>o});var n=r(61221);function o(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},15655:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(32403).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},15920:(e,t)=>{function r(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e))if(Array.isArray(o))for(let e of o)t.append(r,n(e));else t.set(r,n(o));return t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{r.d(t,{A:()=>n});let n=(0,r(32403).A)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},26060:(e,t,r)=>{r.d(t,{D:()=>s});var n=r(61221),o=n.createContext(void 0),a={setTheme:e=>{},themes:[]},s=()=>{var e;return null!=(e=n.useContext(o))?e:a}},29704:(e,t,r)=>{r.d(t,{qW:()=>f});var n,o=r(61221),a=r(97789),s=r(86250),i=r(85319),l=r(15452),c=r(97601),u="dismissableLayer.update",d=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>{var r,f;let{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:b,onInteractOutside:y,onDismiss:w,...x}=e,k=o.useContext(d),[E,N]=o.useState(null),S=null!=(f=null==E?void 0:E.ownerDocument)?f:null==(r=globalThis)?void 0:r.document,[,C]=o.useState({}),M=(0,i.s)(t,e=>N(e)),P=Array.from(k.layers),[O]=[...k.layersWithOutsidePointerEventsDisabled].slice(-1),T=P.indexOf(O),R=E?P.indexOf(E):-1,j=k.layersWithOutsidePointerEventsDisabled.size>0,A=R>=T,z=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,l.c)(e),a=o.useRef(!1),s=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!a.current){let t=function(){m("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",s.current),s.current=t,r.addEventListener("click",s.current,{once:!0})):t()}else r.removeEventListener("click",s.current);a.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",s.current)}},[r,n]),{onPointerDownCapture:()=>a.current=!0}}(e=>{let t=e.target,r=[...k.branches].some(e=>e.contains(t));A&&!r&&(null==v||v(e),null==y||y(e),e.defaultPrevented||null==w||w())},S),I=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=(0,l.c)(e),a=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!a.current&&m("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}(e=>{let t=e.target;![...k.branches].some(e=>e.contains(t))&&(null==b||b(e),null==y||y(e),e.defaultPrevented||null==w||w())},S);return!function(e,t=globalThis?.document){let r=(0,l.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{R===k.layers.size-1&&(null==g||g(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},S),o.useEffect(()=>{if(E)return h&&(0===k.layersWithOutsidePointerEventsDisabled.size&&(n=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),k.layersWithOutsidePointerEventsDisabled.add(E)),k.layers.add(E),p(),()=>{h&&1===k.layersWithOutsidePointerEventsDisabled.size&&(S.body.style.pointerEvents=n)}},[E,S,h,k]),o.useEffect(()=>()=>{E&&(k.layers.delete(E),k.layersWithOutsidePointerEventsDisabled.delete(E),p())},[E,k]),o.useEffect(()=>{let e=()=>C({});return document.addEventListener(u,e),()=>document.removeEventListener(u,e)},[]),(0,c.jsx)(s.sG.div,{...x,ref:M,style:{pointerEvents:j?A?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.m)(e.onFocusCapture,I.onFocusCapture),onBlurCapture:(0,a.m)(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:(0,a.m)(e.onPointerDownCapture,z.onPointerDownCapture)})});function p(){let e=new CustomEvent(u);document.dispatchEvent(e)}function m(e,t,r,n){let{discrete:o}=n,a=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),o?(0,s.hO)(a,i):a.dispatchEvent(i)}f.displayName="DismissableLayer",o.forwardRef((e,t)=>{let r=o.useContext(d),n=o.useRef(null),a=(0,i.s)(t,n);return o.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,c.jsx)(s.sG.div,{...e,ref:a})}).displayName="DismissableLayerBranch"},32403:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(61221);let o=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:c="",children:u,iconNode:d,...f}=e;return(0,n.createElement)("svg",{ref:t,...a,width:s,height:s,stroke:r,strokeWidth:l?24*Number(i)/Number(s):i,className:o("lucide",c),...f},[...d.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(u)?u:[u]])}),i=(e,t)=>{let r=(0,n.forwardRef)((r,a)=>{let{className:i,...l}=r;return(0,n.createElement)(s,{ref:a,iconNode:t,className:o("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),i),...l})});return r.displayName="".concat(e),r}},32630:(e,t,r)=>{r.d(t,{C:()=>s});var n=r(61221),o=r(85319),a=r(99028),s=e=>{let{present:t,children:r}=e,s=function(e){var t,r;let[o,s]=n.useState(),l=n.useRef(null),c=n.useRef(e),u=n.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=i(l.current);u.current="mounted"===d?e:"none"},[d]),(0,a.N)(()=>{let t=l.current,r=c.current;if(r!==e){let n=u.current,o=i(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):r&&n!==o?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,a.N)(()=>{if(o){var e;let t,r=null!=(e=o.ownerDocument.defaultView)?e:window,n=e=>{let n=i(l.current).includes(e.animationName);if(e.target===o&&n&&(f("ANIMATION_END"),!c.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},a=e=>{e.target===o&&(u.current=i(l.current))};return o.addEventListener("animationstart",a),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{r.clearTimeout(t),o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback(e=>{l.current=e?getComputedStyle(e):null,s(e)},[])}}(t),l="function"==typeof r?r({present:s.isPresent}):n.Children.only(r),c=(0,o.s)(s.ref,function(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(o=(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof r||s.isPresent?n.cloneElement(l,{ref:c}):null};function i(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},34910:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return m},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return v},NormalizeError:function(){return h},PageNotFoundError:function(){return g},SP:function(){return f},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return s},getURL:function(){return i},isAbsoluteUrl:function(){return a},isResSent:function(){return c},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return u},stringifyError:function(){return y}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;ao.test(e);function s(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function i(){let{href:e}=window.location,t=s();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function c(e){return e.finished||e.headersSent}function u(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&c(r))return n;if(!n)throw Object.defineProperty(Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let f="undefined"!=typeof performance,p=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class m extends Error{}class h extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class v extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function y(e){return JSON.stringify({message:e.message,stack:e.stack})}},35184:(e,t,r)=>{r.d(t,{B:()=>l});var n,o=r(61221),a=r(99028),s=(n||(n=r.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),i=0;function l(e){let[t,r]=o.useState(s());return(0,a.N)(()=>{e||r(e=>e??String(i++))},[e]),e||(t?`radix-${t}`:"")}},37492:(e,t,r)=>{r.d(t,{i:()=>i});var n,o=r(61221),a=r(99028),s=(n||(n=r.t(o,2)))[" useInsertionEffect ".trim().toString()]||a.N;function i({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[a,i,l]=function({defaultProp:e,onChange:t}){let[r,n]=o.useState(e),a=o.useRef(r),i=o.useRef(t);return s(()=>{i.current=t},[t]),o.useEffect(()=>{a.current!==r&&(i.current?.(r),a.current=r)},[r,a]),[r,n,i]}({defaultProp:t,onChange:r}),c=void 0!==e,u=c?e:a;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=c},[c,n])}return[u,o.useCallback(t=>{if(c){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else i(t)},[c,e,i,l])]}Symbol("RADIX:SYNC_STATE")},40107:(e,t,r)=>{r.d(t,{b:()=>i});var n=r(61221),o=r(86250),a=r(97601),s=n.forwardRef((e,t)=>(0,a.jsx)(o.sG.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null==(r=e.onMouseDown)||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));s.displayName="Label";var i=s},42170:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(61221),o=r(79944),a=r(86250),s=r(99028),i=r(97601),l=n.forwardRef((e,t)=>{var r,l;let{container:c,...u}=e,[d,f]=n.useState(!1);(0,s.N)(()=>f(!0),[]);let p=c||d&&(null==(l=globalThis)||null==(r=l.document)?void 0:r.body);return p?o.createPortal((0,i.jsx)(a.sG.div,{...u,ref:t}),p):null});l.displayName="Portal"},42713:(e,t,r)=>{r.d(t,{A:()=>s,q:()=>a});var n=r(61221),o=r(97601);function a(e,t){let r=n.createContext(t),a=e=>{let{children:t,...a}=e,s=n.useMemo(()=>a,Object.values(a));return(0,o.jsx)(r.Provider,{value:s,children:t})};return a.displayName=e+"Provider",[a,function(o){let a=n.useContext(r);if(a)return a;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function s(e,t=[]){let r=[],a=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return a.scopeName=e,[function(t,a){let s=n.createContext(a),i=r.length;r=[...r,a];let l=t=>{let{scope:r,children:a,...l}=t,c=r?.[e]?.[i]||s,u=n.useMemo(()=>l,Object.values(l));return(0,o.jsx)(c.Provider,{value:u,children:a})};return l.displayName=t+"Provider",[l,function(r,o){let l=o?.[e]?.[i]||s,c=n.useContext(l);if(c)return c;if(void 0!==a)return a;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(a,...t)]}},45359:(e,t,r)=>{r.d(t,{bm:()=>e7,UC:()=>e4,hJ:()=>e5,ZL:()=>e2,bL:()=>e0,hE:()=>e3,l9:()=>e1});var n,o,a=r(61221),s=r(97789),i=r(85319),l=r(42713),c=r(35184),u=r(37492),d=r(29704),f=r(86250),p=r(15452),m=r(97601),h="focusScope.autoFocusOnMount",g="focusScope.autoFocusOnUnmount",v={bubbles:!1,cancelable:!0},b=a.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...l}=e,[c,u]=a.useState(null),d=(0,p.c)(o),b=(0,p.c)(s),E=a.useRef(null),N=(0,i.s)(t,e=>u(e)),S=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(n){let e=function(e){if(S.paused||!c)return;let t=e.target;c.contains(t)?E.current=t:x(E.current,{select:!0})},t=function(e){if(S.paused||!c)return;let t=e.relatedTarget;null!==t&&(c.contains(t)||x(E.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&x(c)});return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,c,S.paused]),a.useEffect(()=>{if(c){k.add(S);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(h,v);c.addEventListener(h,d),c.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(x(n,{select:t}),document.activeElement!==r)return}(y(c).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&x(c))}return()=>{c.removeEventListener(h,d),setTimeout(()=>{let t=new CustomEvent(g,v);c.addEventListener(g,b),c.dispatchEvent(t),t.defaultPrevented||x(null!=e?e:document.body,{select:!0}),c.removeEventListener(g,b),k.remove(S)},0)}}},[c,d,b,S]);let C=a.useCallback(e=>{if(!r&&!n||S.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[n,a]=function(e){let t=y(e);return[w(t,e),w(t.reverse(),e)]}(t);n&&a?e.shiftKey||o!==a?e.shiftKey&&o===n&&(e.preventDefault(),r&&x(a,{select:!0})):(e.preventDefault(),r&&x(n,{select:!0})):o===t&&e.preventDefault()}},[r,n,S.paused]);return(0,m.jsx)(f.sG.div,{tabIndex:-1,...l,ref:N,onKeyDown:C})});function y(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function w(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function x(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}b.displayName="FocusScope";var k=function(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=E(e,t)).unshift(t)},remove(t){var r;null==(r=(e=E(e,t))[0])||r.resume()}}}();function E(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var N=r(42170),S=r(32630),C=0;function M(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var P=function(){return(P=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}Object.create;Object.create;var T=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),R="width-before-scroll-bar";function j(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var A="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,z=new WeakMap;function I(e){return e}var L=function(e){void 0===e&&(e={});var t,r,n,o=(void 0===t&&(t=I),r=[],n=!1,{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var a=function(){var r=t;t=[],r.forEach(e)},s=function(){return Promise.resolve().then(a)};s(),r={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),r}}}});return o.options=P({async:!0,ssr:!1},e),o}(),D=function(){},_=a.forwardRef(function(e,t){var r,n,o,s,i=a.useRef(null),l=a.useState({onScrollCapture:D,onWheelCapture:D,onTouchMoveCapture:D}),c=l[0],u=l[1],d=e.forwardProps,f=e.children,p=e.className,m=e.removeScrollBar,h=e.enabled,g=e.shards,v=e.sideCar,b=e.noIsolation,y=e.inert,w=e.allowPinchZoom,x=e.as,k=e.gapMode,E=O(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=(r=[i,t],n=function(e){return r.forEach(function(t){return j(t,e)})},(o=(0,a.useState)(function(){return{value:null,callback:n,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=n,s=o.facade,A(function(){var e=z.get(s);if(e){var t=new Set(e),n=new Set(r),o=s.current;t.forEach(function(e){n.has(e)||j(e,null)}),n.forEach(function(e){t.has(e)||j(e,o)})}z.set(s,r)},[r]),s),S=P(P({},E),c);return a.createElement(a.Fragment,null,h&&a.createElement(v,{sideCar:L,removeScrollBar:m,shards:g,noIsolation:b,inert:y,setCallbacks:u,allowPinchZoom:!!w,lockRef:i,gapMode:k}),d?a.cloneElement(a.Children.only(f),P(P({},S),{ref:N})):a.createElement(void 0===x?"div":x,P({},S,{className:p,ref:N}),f))});_.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},_.classNames={fullWidth:R,zeroRight:T};var F=function(e){var t=e.sideCar,r=O(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return a.createElement(n,P({},r))};F.isSideCarExport=!0;var B=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o||r.nc;return t&&e.setAttribute("nonce",t),e}())){var a,s;(a=t).styleSheet?a.styleSheet.cssText=n:a.appendChild(document.createTextNode(n)),s=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(s)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},U=function(){var e=B();return function(t,r){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},W=function(){var e=U();return function(t){return e(t.styles,t.dynamic),null}},q={left:0,top:0,right:0,gap:0},Y=function(e){return parseInt(e||"",10)||0},$=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Y(r),Y(n),Y(o)]},V=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return q;var t=$(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},G=W(),K="data-scroll-locked",H=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(i,"px ").concat(n,";\n  }\n  body[").concat(K,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(s,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(i,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(T," {\n    right: ").concat(i,"px ").concat(n,";\n  }\n  \n  .").concat(R," {\n    margin-right: ").concat(i,"px ").concat(n,";\n  }\n  \n  .").concat(T," .").concat(T," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(R," .").concat(R," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(K,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n  }\n")},X=function(){var e=parseInt(document.body.getAttribute(K)||"0",10);return isFinite(e)?e:0},Z=function(){a.useEffect(function(){return document.body.setAttribute(K,(X()+1).toString()),function(){var e=X()-1;e<=0?document.body.removeAttribute(K):document.body.setAttribute(K,e.toString())}},[])},Q=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;Z();var s=a.useMemo(function(){return V(o)},[o]);return a.createElement(G,{styles:H(s,!t,o,r?"":"!important")})},J=!1;if("undefined"!=typeof window)try{var ee=Object.defineProperty({},"passive",{get:function(){return J=!0,!0}});window.addEventListener("test",ee,ee),window.removeEventListener("test",ee,ee)}catch(e){J=!1}var et=!!J&&{passive:!1},er=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},en=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),eo(e,n)){var o=ea(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},eo=function(e,t){return"v"===e?er(t,"overflowY"):er(t,"overflowX")},ea=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},es=function(e,t,r,n,o){var a,s=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),i=s*n,l=r.target,c=t.contains(l),u=!1,d=i>0,f=0,p=0;do{var m=ea(e,l),h=m[0],g=m[1]-m[2]-s*h;(h||g)&&eo(e,l)&&(f+=g,p+=h),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return d&&(o&&1>Math.abs(f)||!o&&i>f)?u=!0:!d&&(o&&1>Math.abs(p)||!o&&-i>p)&&(u=!0),u},ei=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},el=function(e){return[e.deltaX,e.deltaY]},ec=function(e){return e&&"current"in e?e.current:e},eu=0,ed=[];let ef=(n=function(e){var t=a.useRef([]),r=a.useRef([0,0]),n=a.useRef(),o=a.useState(eu++)[0],s=a.useState(W)[0],i=a.useRef(e);a.useEffect(function(){i.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,o=0,a=t.length;oMath.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=en(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=en(d,u)),!f)return!1;if(!n.current&&"changedTouches"in e&&(l||c)&&(n.current=o),!o)return!0;var p=n.current||o;return es(p,t,e,"h"===p?l:c,!0)},[]),c=a.useCallback(function(e){if(ed.length&&ed[ed.length-1]===s){var r="deltaY"in e?el(e):ei(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var o=(i.current.shards||[]).map(ec).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=a.useCallback(function(e,r,n,o){var a={name:e,delta:r,target:n,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=a.useCallback(function(e){r.current=ei(e),n.current=void 0},[]),f=a.useCallback(function(t){u(t.type,el(t),t.target,l(t,e.lockRef.current))},[]),p=a.useCallback(function(t){u(t.type,ei(t),t.target,l(t,e.lockRef.current))},[]);a.useEffect(function(){return ed.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,et),document.addEventListener("touchmove",c,et),document.addEventListener("touchstart",d,et),function(){ed=ed.filter(function(e){return e!==s}),document.removeEventListener("wheel",c,et),document.removeEventListener("touchmove",c,et),document.removeEventListener("touchstart",d,et)}},[]);var m=e.removeScrollBar,h=e.inert;return a.createElement(a.Fragment,null,h?a.createElement(s,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?a.createElement(Q,{gapMode:e.gapMode}):null)},L.useMedium(n),F);var ep=a.forwardRef(function(e,t){return a.createElement(_,P({},e,{ref:t,sideCar:ef}))});ep.classNames=_.classNames;var em=new WeakMap,eh=new WeakMap,eg={},ev=0,eb=function(e){return e&&(e.host||eb(e.parentNode))},ey=function(e,t,r,n){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=eb(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});eg[r]||(eg[r]=new WeakMap);var a=eg[r],s=[],i=new Set,l=new Set(o),c=function(e){!e||i.has(e)||(i.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(i.has(e))u(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,l=(em.get(e)||0)+1,c=(a.get(e)||0)+1;em.set(e,l),a.set(e,c),s.push(e),1===l&&o&&eh.set(e,!0),1===c&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),i.clear(),ev++,function(){s.forEach(function(e){var t=em.get(e)-1,o=a.get(e)-1;em.set(e,t),a.set(e,o),t||(eh.has(e)||e.removeAttribute(n),eh.delete(e)),o||e.removeAttribute(r)}),--ev||(em=new WeakMap,em=new WeakMap,eh=new WeakMap,eg={})}},ew=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),ey(n,o,r,"aria-hidden")):function(){return null}},ex=r(57390),ek="Dialog",[eE,eN]=(0,l.A)(ek),[eS,eC]=eE(ek),eM=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,l=a.useRef(null),d=a.useRef(null),[f,p]=(0,u.i)({prop:n,defaultProp:null!=o&&o,onChange:s,caller:ek});return(0,m.jsx)(eS,{scope:t,triggerRef:l,contentRef:d,contentId:(0,c.B)(),titleId:(0,c.B)(),descriptionId:(0,c.B)(),open:f,onOpenChange:p,onOpenToggle:a.useCallback(()=>p(e=>!e),[p]),modal:i,children:r})};eM.displayName=ek;var eP="DialogTrigger",eO=a.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=eC(eP,r),a=(0,i.s)(t,o.triggerRef);return(0,m.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":eK(o.open),...n,ref:a,onClick:(0,s.m)(e.onClick,o.onOpenToggle)})});eO.displayName=eP;var eT="DialogPortal",[eR,ej]=eE(eT,{forceMount:void 0}),eA=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:o}=e,s=eC(eT,t);return(0,m.jsx)(eR,{scope:t,forceMount:r,children:a.Children.map(n,e=>(0,m.jsx)(S.C,{present:r||s.open,children:(0,m.jsx)(N.Z,{asChild:!0,container:o,children:e})}))})};eA.displayName=eT;var ez="DialogOverlay",eI=a.forwardRef((e,t)=>{let r=ej(ez,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=eC(ez,e.__scopeDialog);return a.modal?(0,m.jsx)(S.C,{present:n||a.open,children:(0,m.jsx)(eD,{...o,ref:t})}):null});eI.displayName=ez;var eL=(0,ex.TL)("DialogOverlay.RemoveScroll"),eD=a.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=eC(ez,r);return(0,m.jsx)(ep,{as:eL,allowPinchZoom:!0,shards:[o.contentRef],children:(0,m.jsx)(f.sG.div,{"data-state":eK(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),e_="DialogContent",eF=a.forwardRef((e,t)=>{let r=ej(e_,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=eC(e_,e.__scopeDialog);return(0,m.jsx)(S.C,{present:n||a.open,children:a.modal?(0,m.jsx)(eB,{...o,ref:t}):(0,m.jsx)(eU,{...o,ref:t})})});eF.displayName=e_;var eB=a.forwardRef((e,t)=>{let r=eC(e_,e.__scopeDialog),n=a.useRef(null),o=(0,i.s)(t,r.contentRef,n);return a.useEffect(()=>{let e=n.current;if(e)return ew(e)},[]),(0,m.jsx)(eW,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,s.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,s.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,s.m)(e.onFocusOutside,e=>e.preventDefault())})}),eU=a.forwardRef((e,t)=>{let r=eC(e_,e.__scopeDialog),n=a.useRef(!1),o=a.useRef(!1);return(0,m.jsx)(eW,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,s;null==(a=e.onCloseAutoFocus)||a.call(e,t),t.defaultPrevented||(n.current||null==(s=r.triggerRef.current)||s.focus(),t.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:t=>{var a,s;null==(a=e.onInteractOutside)||a.call(e,t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let i=t.target;(null==(s=r.triggerRef.current)?void 0:s.contains(i))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),eW=a.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:s,...l}=e,c=eC(e_,r),u=a.useRef(null),f=(0,i.s)(t,u);return a.useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=r[0])?e:M()),document.body.insertAdjacentElement("beforeend",null!=(t=r[1])?t:M()),C++,()=>{1===C&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),C--}},[]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(b,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:s,children:(0,m.jsx)(d.qW,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":eK(c.open),...l,ref:f,onDismiss:()=>c.onOpenChange(!1)})}),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(eQ,{titleId:c.titleId}),(0,m.jsx)(eJ,{contentRef:u,descriptionId:c.descriptionId})]})]})}),eq="DialogTitle",eY=a.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=eC(eq,r);return(0,m.jsx)(f.sG.h2,{id:o.titleId,...n,ref:t})});eY.displayName=eq;var e$="DialogDescription";a.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=eC(e$,r);return(0,m.jsx)(f.sG.p,{id:o.descriptionId,...n,ref:t})}).displayName=e$;var eV="DialogClose",eG=a.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=eC(eV,r);return(0,m.jsx)(f.sG.button,{type:"button",...n,ref:t,onClick:(0,s.m)(e.onClick,()=>o.onOpenChange(!1))})});function eK(e){return e?"open":"closed"}eG.displayName=eV;var eH="DialogTitleWarning",[eX,eZ]=(0,l.q)(eH,{contentName:e_,titleName:eq,docsSlug:"dialog"}),eQ=e=>{let{titleId:t}=e,r=eZ(eH),n="`".concat(r.contentName,"` requires a `").concat(r.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(r.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(r.docsSlug);return a.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},eJ=e=>{let{contentRef:t,descriptionId:r}=e,n=eZ("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(n.contentName,"}.");return a.useEffect(()=>{var e;let n=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");r&&n&&(document.getElementById(r)||console.warn(o))},[o,t,r]),null},e0=eM,e1=eO,e2=eA,e5=eI,e4=eF,e3=eY,e7=eG},49909:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(32403).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},54521:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return g},useLinkStatus:function(){return b}});let n=r(6313),o=r(97601),a=n._(r(61221)),s=r(74896),i=r(57166),l=r(67589),c=r(34910),u=r(32260);r(51719);let d=r(32713),f=r(55497),p=r(55461);r(97060);let m=r(5294);function h(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}function g(e){var t;let r,n,s,[g,b]=(0,a.useOptimistic)(d.IDLE_LINK_STATUS),y=(0,a.useRef)(null),{href:w,as:x,children:k,prefetch:E=null,passHref:N,replace:S,shallow:C,scroll:M,onClick:P,onMouseEnter:O,onTouchStart:T,legacyBehavior:R=!1,onNavigate:j,ref:A,unstable_dynamicOnHover:z,...I}=e;r=k,R&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let L=a.default.useContext(i.AppRouterContext),D=!1!==E,_=!1!==E?null===(t=E)||"auto"===t?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,{href:F,as:B}=a.default.useMemo(()=>{let e=h(w);return{href:e,as:x?h(x):e}},[w,x]);R&&(n=a.default.Children.only(r));let U=R?n&&"object"==typeof n&&n.ref:A,W=a.default.useCallback(e=>(null!==L&&(y.current=(0,d.mountLinkInstance)(e,F,L,_,D,b)),()=>{y.current&&((0,d.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,d.unmountPrefetchableInstance)(e)}),[D,F,L,_,b]),q={ref:(0,l.useMergedRef)(W,U),onClick(e){R||"function"!=typeof P||P(e),R&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),L&&(e.defaultPrevented||function(e,t,r,n,o,s,i){let{nodeName:l}=e.currentTarget;if(!("A"===l.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,f.isLocalURL)(t)){o&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}a.default.startTransition(()=>{(0,p.dispatchNavigateAction)(r||t,o?"replace":"push",null==s||s,n.current)})}}(e,F,B,y,S,M,j))},onMouseEnter(e){R||"function"!=typeof O||O(e),R&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),L&&D&&(0,d.onNavigationIntent)(e.currentTarget,!0===z)},onTouchStart:function(e){R||"function"!=typeof T||T(e),R&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),L&&D&&(0,d.onNavigationIntent)(e.currentTarget,!0===z)}};return(0,c.isAbsoluteUrl)(B)?q.href=B:R&&!N&&("a"!==n.type||"href"in n.props)||(q.href=(0,u.addBasePath)(B)),s=R?a.default.cloneElement(n,q):(0,o.jsx)("a",{...I,...q,children:r}),(0,o.jsx)(v.Provider,{value:g,children:s})}let v=(0,a.createContext)(d.IDLE_LINK_STATUS),b=()=>(0,a.useContext)(v);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55497:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(34910),o=r(69983);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},57390:(e,t,r)=>{r.d(t,{DX:()=>i,Dc:()=>c,TL:()=>s});var n=r(61221),o=r(85319),a=r(97601);function s(e){let t=function(e){let t=n.forwardRef((e,t)=>{var r,a,s;let i,l,{children:c,...u}=e,d=n.isValidElement(c)?(l=(i=null==(a=Object.getOwnPropertyDescriptor((r=c).props,"ref"))?void 0:a.get)&&"isReactWarning"in i&&i.isReactWarning)?r.ref:(l=(i=null==(s=Object.getOwnPropertyDescriptor(r,"ref"))?void 0:s.get)&&"isReactWarning"in i&&i.isReactWarning)?r.props.ref:r.props.ref||r.ref:void 0,f=(0,o.s)(d,t);if(n.isValidElement(c)){let e=function(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=function(){for(var e=arguments.length,t=Array(e),r=0;r1?n.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}(e),r=n.forwardRef((e,r)=>{let{children:o,...s}=e,i=n.Children.toArray(o),l=i.find(u);if(l){let e=l.props.children,o=i.map(t=>t!==l?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,a.jsx)(t,{...s,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,o):null})}return(0,a.jsx)(t,{...s,ref:r,children:o})});return r.displayName="".concat(e,".Slot"),r}var i=s("Slot"),l=Symbol("radix.slottable");function c(e){let t=e=>{let{children:t}=e;return(0,a.jsx)(a.Fragment,{children:t})};return t.displayName="".concat(e,".Slottable"),t.__radixId=l,t}function u(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}},57772:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(32403).A)("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},59207:(e,t,r)=>{r.d(t,{$:()=>n});function n(){for(var e,t,r=0,n="",o=arguments.length;r{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=r(61221);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74896:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return a},formatWithValidation:function(){return i},urlObjectKeys:function(){return s}});let n=r(6313)._(r(15920)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,a=e.protocol||"",s=e.pathname||"",i=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let u=e.search||l&&"?"+l||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||o.test(a))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),i&&"#"!==i[0]&&(i="#"+i),u&&"?"!==u[0]&&(u="?"+u),""+a+c+(s=s.replace(/[?#]/g,encodeURIComponent))+(u=u.replace("#","%23"))+i}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function i(e){return a(e)}},83085:(e,t,r)=>{r.d(t,{Hx:()=>d,OB:()=>s,R8:()=>c,V7:()=>f,Yz:()=>l,z3:()=>a});var n=r(61221),o={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function a(e){return`[nuqs] ${o[e]}
    -  See https://err.47ng.com/NUQS-${e}`}function s(e){if(0===e.size)return"";let t=[];for(let[r,n]of e.entries()){let e=r.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${e}=${n.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(//g,"%3E").replace(/[\x00-\x1F]/g,e=>encodeURIComponent(e))}`)}return"?"+t.join("&")}var i=function(){try{if("undefined"==typeof localStorage)return!1;let e="nuqs-localStorage-test";localStorage.setItem(e,e);let t=localStorage.getItem(e)===e;if(localStorage.removeItem(e),!t)return!1}catch(e){return console.error("[nuqs]: debug mode is disabled (localStorage unavailable).",e),!1}return(localStorage.getItem("debug")??"").includes("nuqs")}();function l(e,...t){if(!i)return;let r=function(e,...t){return e.replace(/%[sfdO]/g,e=>{let r=t.shift();return"%O"===e&&r?JSON.stringify(r).replace(/"([^"]+)":/g,"$1:"):String(r)})}(e,...t);performance.mark(r);try{console.log(e,...t)}catch(e){console.log(r)}}function c(e,...t){i&&console.warn(e,...t)}var u=(0,n.createContext)({useAdapter(){throw Error(a(404))}});function d(e){return({children:t,...r})=>(0,n.createElement)(u.Provider,{...r,value:{useAdapter:e}},t)}function f(){let e=(0,n.useContext)(u);if(!("useAdapter"in e))throw Error(a(404));return e.useAdapter()}u.displayName="NuqsAdapterContext",i&&"undefined"!=typeof window&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==u&&console.error(a(303)),window.__NuqsAdapterContext=u)},84097:(e,t,r)=>{r.d(t,{cr:()=>m,ZA:()=>v});var n=r(83085);function o(e,t,r){try{return e(t)}catch(e){return(0,n.R8)("[nuqs] Error while parsing value `%s`: %O"+(r?" (for key `%s`)":""),t,e,r),null}}var a=function(){if("undefined"==typeof window||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}(),s=new Map,i={history:"replace",scroll:!1,shallow:!0,throttleMs:a},l=new Set,c=0,u=null,d=r(61221);function f(e){function t(t){if(void 0===t)return null;let r="";if(Array.isArray(t)){if(void 0===t[0])return null;r=t[0]}return"string"==typeof t&&(r=t),o(e.parse,r)}return{eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide(r){var n;return null!=(n=t(r))?n:e}}},withOptions(e){return{...this,...e}}}}f({parse:e=>e,serialize:e=>"".concat(e)});var p=f({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:t},serialize:e=>Math.round(e).toFixed()});f({parse:e=>{let t=p.parse(e);return null===t?null:t-1},serialize:e=>p.serialize(e+1)}),f({parse:e=>{let t=parseInt(e,16);return Number.isNaN(t)?null:t},serialize:e=>{let t=Math.round(e).toString(16);return t.padStart(t.length+t.length%2,"0")}}),f({parse:e=>{let t=parseFloat(e);return Number.isNaN(t)?null:t},serialize:e=>e.toString()});var m=f({parse:e=>"true"===e,serialize:e=>e?"true":"false"});function h(e,t){return e.valueOf()===t.valueOf()}f({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:new Date(t)},serialize:e=>e.valueOf().toString(),eq:h}),f({parse:e=>{let t=new Date(e);return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString(),eq:h}),f({parse:e=>{let t=new Date(e.slice(0,10));return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString().slice(0,10),eq:h});var g=function(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(e){e(r)}),(n=e.get("*"))&&n.slice().map(function(e){e(t,r)})}}}();function v(e){var t,r,f;let{history:p="replace",shallow:m=!0,scroll:h=!1,throttleMs:v=a,parse:b=e=>e,serialize:y=String,eq:w=(e,t)=>e===t,defaultValue:x,clearOnDefault:k=!0,startTransition:E}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{history:"replace",scroll:!1,shallow:!0,throttleMs:a,parse:e=>e,serialize:String,eq:(e,t)=>e===t,clearOnDefault:!0,defaultValue:void 0},N=(0,n.V7)(),S=N.searchParams,C=(0,d.useRef)(null!=(t=null==S?void 0:S.get(e))?t:null),[M,P]=(0,d.useState)(()=>{var t;let r=s.get(e),n=void 0===r?null!=(t=null==S?void 0:S.get(e))?t:null:r;return null===n?null:o(b,n,e)}),O=(0,d.useRef)(M);(0,n.Yz)("[nuqs `%s`] render - state: %O, iSP: %s",e,M,null!=(r=null==S?void 0:S.get(e))?r:null),(0,d.useEffect)(()=>{var t;let r=null!=(t=null==S?void 0:S.get(e))?t:null;if(r===C.current)return;let a=null===r?null:o(b,r,e);(0,n.Yz)("[nuqs `%s`] syncFromUseSearchParams %O",e,a),O.current=a,C.current=r,P(a)},[null==S?void 0:S.get(e),e]),(0,d.useEffect)(()=>{function t(t){let{state:r,query:o}=t;(0,n.Yz)("[nuqs `%s`] updateInternalState %O",e,r),O.current=r,C.current=o,P(r)}return(0,n.Yz)("[nuqs `%s`] subscribing to sync",e),g.on(e,t),()=>{(0,n.Yz)("[nuqs `%s`] unsubscribing from sync",e),g.off(e,t)}},[e]);let T=(0,d.useCallback)(function(t){var r,o,d,f,b,S,C,M;let P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},T="function"==typeof t?t(null!=(o=null!=(r=O.current)?r:x)?o:null):t;(null!=(d=P.clearOnDefault)?d:k)&&null!==T&&void 0!==x&&w(T,x)&&(T=null);let R=function(e,t,r,o){let c=null===t?null:r(t);return(0,n.Yz)("[nuqs queue] Enqueueing %s=%s %O",e,c,o),s.set(e,c),"push"===o.history&&(i.history="push"),o.scroll&&(i.scroll=!0),!1===o.shallow&&(i.shallow=!1),o.startTransition&&l.add(o.startTransition),i.throttleMs=Math.max(o.throttleMs??a,Number.isFinite(i.throttleMs)?i.throttleMs:0),c}(e,T,y,{history:null!=(f=P.history)?f:p,shallow:null!=(b=P.shallow)?b:m,scroll:null!=(S=P.scroll)?S:h,throttleMs:null!=(C=P.throttleMs)?C:v,startTransition:null!=(M=P.startTransition)?M:E});return g.emit(e,{state:T,query:R}),function({getSearchParamsSnapshot:e=function(){return new URLSearchParams(location.search)},updateUrl:t,rateLimitFactor:r=1}){return null===u&&(u=new Promise((o,d)=>{if(!Number.isFinite(i.throttleMs)){(0,n.Yz)("[nuqs queue] Skipping flush due to throttleMs=Infinity"),o(e()),setTimeout(()=>{u=null},0);return}function f(){c=performance.now();let[r,f]=function({updateUrl:e,getSearchParamsSnapshot:t}){let r=t();if(0===s.size)return[r,null];let o=Array.from(s.entries()),c={...i},u=Array.from(l);for(let[e,t]of(s.clear(),l.clear(),i.history="replace",i.scroll=!1,i.shallow=!0,i.throttleMs=a,(0,n.Yz)("[nuqs queue] Flushing queue %O with options %O",o,c),o))null===t?r.delete(e):r.set(e,t);try{return function(e,t){let r=n=>{if(n===e.length)return t();let o=e[n];if(!o)throw Error("Invalid transition function");o(()=>r(n+1))};r(0)}(u,()=>{e(r,{history:c.history,scroll:c.scroll,shallow:c.shallow})}),[r,null]}catch(e){return console.error((0,n.z3)(429),o.map(([e])=>e).join(),e),[r,e]}}({updateUrl:t,getSearchParamsSnapshot:e});null===f?o(r):d(r),u=null}setTimeout(function(){let e=performance.now()-c,t=i.throttleMs,o=r*Math.max(0,Math.min(t,t-e));(0,n.Yz)("[nuqs queue] Scheduling flush in %f ms. Throttled at %f ms",o,t),0===o?f():setTimeout(f,o)},0)})),u}(N)},[e,p,m,h,v,E,N.updateUrl,N.getSearchParamsSnapshot,N.rateLimitFactor]);return[null!=(f=null!=M?M:x)?f:null,T]}},85319:(e,t,r)=>{r.d(t,{s:()=>a});var n=r(61221);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return n.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t{r.d(t,{hO:()=>l,sG:()=>i});var n=r(61221),o=r(79944),a=r(57390),s=r(97601),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,a.TL)(`Primitive.${t}`),o=n.forwardRef((e,n)=>{let{asChild:o,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(o?r:t,{...a,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function l(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},86703:(e,t,r)=>{r.d(t,{F:()=>s});var n=r(59207);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=n.$,s=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return a(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:s,defaultVariants:i}=t,l=Object.keys(s).map(e=>{let t=null==r?void 0:r[e],n=null==i?void 0:i[e];if(null===t)return null;let a=o(t)||o(n);return s[e][a]}),c=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return a(e,l,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...c}[t]):({...i,...c})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},96268:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(32403).A)("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},97060:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},97789:(e,t,r)=>{r.d(t,{m:()=>n});function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}},99028:(e,t,r)=>{r.d(t,{N:()=>o});var n=r(61221),o=globalThis?.document?n.useLayoutEffect:()=>{}}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9321.a3453b5be642f5ad.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9321.a3453b5be642f5ad.js
    deleted file mode 100644
    index d15f6340e..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9321.a3453b5be642f5ad.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9321],{6831:(e,r,t)=>{t.d(r,{b:()=>s});var a=t(9448),n=class extends a.mR{static{(0,a.K2)(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},i={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new a.Tm,"ValueConverter")}};function s(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.d$,i);return r.ServiceRegistry.register(t),{shared:r,GitGraph:t}}(0,a.K2)(s,"createGitGraphServices")},19977:(e,r,t)=>{t.d(r,{J:()=>s});var a=t(9448),n=class extends a.dg{static{(0,a.K2)(this,"WardleyValueConverter")}runCustomConverter(e,r,t){return"LINK_LABEL"===e.name.toUpperCase()?r.substring(1).trim():void 0}},i={parser:{ValueConverter:(0,a.K2)(()=>new n,"ValueConverter")}};function s(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.Xr,i);return r.ServiceRegistry.register(t),{shared:r,Wardley:t}}(0,a.K2)(s,"createWardleyServices")},32045:(e,r,t)=>{t.d(r,{$:()=>s});var a=t(9448),n=class extends a.mR{static{(0,a.K2)(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},i={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new a.Tm,"ValueConverter")}};function s(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.p5,i);return r.ServiceRegistry.register(t),{shared:r,Packet:t}}(0,a.K2)(s,"createPacketServices")},41077:(e,r,t)=>{t.d(r,{t:()=>s});var a=t(9448),n=class extends a.mR{static{(0,a.K2)(this,"CynefinTokenBuilder")}constructor(){super(["cynefin-beta"])}},i={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new a.Tm,"ValueConverter")}};function s(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.Jn,i);return r.ServiceRegistry.register(t),{shared:r,Cynefin:t}}(0,a.K2)(s,"createCynefinServices")},42228:(e,r,t)=>{t.d(r,{l:()=>l});var a=t(9448),n=class extends a.mR{static{(0,a.K2)(this,"RailroadTokenBuilder")}constructor(){super(["railroad-beta"])}},i=(0,a.K2)(e=>{let r=e.slice(1,-1),t="";for(let e=0;enew n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new s,"ValueConverter")}};function l(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.Bi,o);return r.ServiceRegistry.register(t),{shared:r,Railroad:t}}(0,a.K2)(l,"createRailroadServices")},51475:(e,r,t)=>{t.d(r,{P:()=>l});var a=t(9448),n=class extends a.mR{static{(0,a.K2)(this,"RailroadPegTokenBuilder")}constructor(){super(["railroad-peg-beta"])}},i=(0,a.K2)(e=>{let r=e.slice(1,-1),t="";for(let e=0;enew n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new s,"ValueConverter")}};function l(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.dj,o);return r.ServiceRegistry.register(t),{shared:r,RailroadPeg:t}}(0,a.K2)(l,"createRailroadPegServices")},55267:(e,r,t)=>{t.d(r,{f:()=>o});var a=t(9448),n=class extends a.mR{static{(0,a.K2)(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},i=class extends a.dg{static{(0,a.K2)(this,"PieValueConverter")}runCustomConverter(e,r,t){if("PIE_SECTION_LABEL"===e.name)return r.replace(/"/g,"").trim()}},s={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new i,"ValueConverter")}};function o(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.D_,s);return r.ServiceRegistry.register(t),{shared:r,Pie:t}}(0,a.K2)(o,"createPieServices")},55369:(e,r,t)=>{t.d(r,{d:()=>u});var a=t(9448),n=class extends a.mR{static{(0,a.K2)(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},i=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,s=class extends a.dg{static{(0,a.K2)(this,"TreemapValueConverter")}runCustomConverter(e,r,t){if("NUMBER2"===e.name)return parseFloat(r.replace(/,/g,""));if("SEPARATOR"===e.name)return r.substring(1,r.length-1);if("STRING2"===e.name)return r.substring(1,r.length-1);if("INDENTATION"===e.name)return r.length;if("ClassDef"===e.name){if("string"!=typeof r)return r;let e=i.exec(r);if(e)return{$type:"ClassDefStatement",className:e[1],styleText:e[2]||void 0}}}};function o(e){let r=e.validation.TreemapValidator,t=e.validation.ValidationRegistry;if(t){let e={Treemap:r.checkSingleRoot.bind(r)};t.register(e,r)}}(0,a.K2)(o,"registerValidationChecks");var l=class{static{(0,a.K2)(this,"TreemapValidator")}checkSingleRoot(e,r){let t;for(let a of e.TreemapRows)a.item&&(void 0===t&&void 0===a.indent?t=0:void 0===a.indent?r("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}):void 0!==t&&t>=parseInt(a.indent,10)&&r("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"}))}},c={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new s,"ValueConverter")},validation:{TreemapValidator:(0,a.K2)(()=>new l,"TreemapValidator")}};function u(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.XE,c);return r.ServiceRegistry.register(t),o(t),{shared:r,Treemap:t}}(0,a.K2)(u,"createTreemapServices")},56756:(e,r,t)=>{t.d(r,{v:()=>s});var a=t(9448),n=class extends a.mR{static{(0,a.K2)(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},i={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new a.Tm,"ValueConverter")}};function s(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.FZ,i);return r.ServiceRegistry.register(t),{shared:r,Info:t}}(0,a.K2)(s,"createInfoServices")},70522:(e,r,t)=>{t.d(r,{f:()=>s});var a=t(9448),n=class extends a.mR{static{(0,a.K2)(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},i={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new a.Tm,"ValueConverter")}};function s(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.Bg,i);return r.ServiceRegistry.register(t),{shared:r,Radar:t}}(0,a.K2)(s,"createRadarServices")},71022:(e,r,t)=>{t.d(r,{g:()=>m});var a=t(9448),n=class extends a.mR{static{(0,a.K2)(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},i=new Set(["cmd","command"]),s=new Set(["evt","event"]),o=new Set(["rmo","readmodel"]),l=new Set(["pcr","processor"]),c=new Set(["ui"]);function u(e){let r=e.validation.EventModelingValidator,t=e.validation.ValidationRegistry;if(t){let e={EmTimeFrame:r.checkSourceFrameTypes.bind(r),EmResetFrame:r.checkSourceFrameTypes.bind(r)};t.register(e,r)}}(0,a.K2)(u,"registerValidationChecks");var d=class{static{(0,a.K2)(this,"EventModelingValidator")}checkSourceFrameTypes(e,r){0!==e.sourceFrames.length&&(i.has(e.modelEntityType)?this.validateSources(e,new Set([...c,...l]),"command","ui or processor",r):s.has(e.modelEntityType)?this.validateSources(e,i,"event","command",r):o.has(e.modelEntityType)?this.validateSources(e,s,"read model","event",r):l.has(e.modelEntityType)?this.validateSources(e,o,"processor","read model",r):c.has(e.modelEntityType)&&this.validateSources(e,o,"ui","read model",r))}validateSources(e,r,t,a,n){for(let i of e.sourceFrames){let s=i.ref;void 0===s||r.has(s.modelEntityType)||n("error",`A ${t} can only receive input from a ${a}, not from '${s.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},v={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new a.Tm,"ValueConverter")},validation:{EventModelingValidator:(0,a.K2)(()=>new d,"EventModelingValidator")}};function m(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.x0,v);return r.ServiceRegistry.register(t),u(t),{shared:r,EventModel:t}}(0,a.K2)(m,"createEventModelingServices")},76250:(e,r,t)=>{t.d(r,{S:()=>o});var a=t(9448),n=class extends a.mR{static{(0,a.K2)(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},i=class extends a.dg{static{(0,a.K2)(this,"ArchitectureValueConverter")}runCustomConverter(e,r,t){if("ARCH_ICON"===e.name)return r.replace(/[()]/g,"").trim();if("ARCH_TEXT_ICON"===e.name)return r.replace(/["()]/g,"");if("ARCH_TITLE"===e.name){let e=r.replace(/^\[|]$/g,"").trim();return(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=(e=e.slice(1,-1)).replace(/\\"/g,'"').replace(/\\'/g,"'")),e.trim()}}},s={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new i,"ValueConverter")}};function o(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.wV,s);return r.ServiceRegistry.register(t),{shared:r,Architecture:t}}(0,a.K2)(o,"createArchitectureServices")},79643:(e,r,t)=>{t.d(r,{I:()=>o});var a=t(9448),n=class extends a.dg{static{(0,a.K2)(this,"TreeViewValueConverter")}runCustomConverter(e,r,t){if("INDENTATION"===e.name)return r?.length||0;if("QUOTED_NAME"===e.name)return r.substring(1,r.length-1);if("BARE_NAME"===e.name)return r.replace(/[\t ]+$/,"");if("CLASS_ANNOTATION"===e.name)return r.trim().substring(3).trim();if("ICON_ANNOTATION"===e.name){let e=r.trim();return e.substring(5,e.length-1)}if("DESC_ANNOTATION"===e.name)return r.trim().substring(2).trim()}},i=class extends a.mR{static{(0,a.K2)(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},s={parser:{TokenBuilder:(0,a.K2)(()=>new i,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new n,"ValueConverter")}};function o(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.CZ,s);return r.ServiceRegistry.register(t),{shared:r,TreeView:t}}(0,a.K2)(o,"createTreeViewServices")},89321:(e,r,t)=>{t.d(r,{F5:()=>o.F5,Pz:()=>s.P,WG:()=>n.W,lz:()=>a.l,qg:()=>u,sB:()=>i.s,zg:()=>d}),t(70522);var a=t(42228),n=t(92042),i=t(99482),s=t(51475);t(55369),t(19977),t(41077),t(6831),t(56756),t(32045),t(55267),t(79643),t(76250),t(71022);var o=t(9448),l={},c={info:(0,o.K2)(async()=>{let{createInfoServices:e}=await t.e(1341).then(t.bind(t,91341));l.info=e().Info.parser.LangiumParser},"info"),packet:(0,o.K2)(async()=>{let{createPacketServices:e}=await t.e(4891).then(t.bind(t,94891));l.packet=e().Packet.parser.LangiumParser},"packet"),pie:(0,o.K2)(async()=>{let{createPieServices:e}=await t.e(494).then(t.bind(t,25256));l.pie=e().Pie.parser.LangiumParser},"pie"),treeView:(0,o.K2)(async()=>{let{createTreeViewServices:e}=await t.e(9782).then(t.bind(t,99782));l.treeView=e().TreeView.parser.LangiumParser},"treeView"),architecture:(0,o.K2)(async()=>{let{createArchitectureServices:e}=await t.e(9933).then(t.bind(t,79933));l.architecture=e().Architecture.parser.LangiumParser},"architecture"),gitGraph:(0,o.K2)(async()=>{let{createGitGraphServices:e}=await t.e(5077).then(t.bind(t,65077));l.gitGraph=e().GitGraph.parser.LangiumParser},"gitGraph"),eventmodeling:(0,o.K2)(async()=>{let{createEventModelingServices:e}=await t.e(2557).then(t.bind(t,2557));l.eventmodeling=e().EventModel.parser.LangiumParser},"eventmodeling"),radar:(0,o.K2)(async()=>{let{createRadarServices:e}=await t.e(9339).then(t.bind(t,59339));l.radar=e().Radar.parser.LangiumParser},"radar"),railroad:(0,o.K2)(async()=>{let{createRailroadServices:e}=await t.e(9367).then(t.bind(t,79367));l.railroad=e().Railroad.parser.LangiumParser},"railroad"),railroadEbnf:(0,o.K2)(async()=>{let{createRailroadEbnfServices:e}=await t.e(145).then(t.bind(t,40145));l.railroadEbnf=e().RailroadEbnf.parser.LangiumParser},"railroadEbnf"),railroadAbnf:(0,o.K2)(async()=>{let{createRailroadAbnfServices:e}=await t.e(9534).then(t.bind(t,79534));l.railroadAbnf=e().RailroadAbnf.parser.LangiumParser},"railroadAbnf"),railroadPeg:(0,o.K2)(async()=>{let{createRailroadPegServices:e}=await t.e(8492).then(t.bind(t,48492));l.railroadPeg=e().RailroadPeg.parser.LangiumParser},"railroadPeg"),treemap:(0,o.K2)(async()=>{let{createTreemapServices:e}=await t.e(6590).then(t.bind(t,36590));l.treemap=e().Treemap.parser.LangiumParser},"treemap"),wardley:(0,o.K2)(async()=>{let{createWardleyServices:e}=await t.e(2158).then(t.bind(t,92158));l.wardley=e().Wardley.parser.LangiumParser},"wardley"),cynefin:(0,o.K2)(async()=>{let{createCynefinServices:e}=await t.e(8306).then(t.bind(t,78306));l.cynefin=e().Cynefin.parser.LangiumParser},"cynefin")};async function u(e,r){let t=c[e];if(!t)throw Error(`Unknown diagram type: ${e}`);l[e]||await t();let a=l[e].parse(r);if(a.lexerErrors.length>0||a.parserErrors.length>0)throw new d(a);return a.value}(0,o.K2)(u,"parse");var d=class extends Error{constructor(e){super(`Parsing failed: ${e.lexerErrors.map(e=>{let r=void 0===e.line||isNaN(e.line)?"?":e.line,t=void 0===e.column||isNaN(e.column)?"?":e.column;return`Lexer error on line ${r}, column ${t}: ${e.message}`}).join("\n")} ${e.parserErrors.map(e=>{let r=void 0===e.token.startLine||isNaN(e.token.startLine)?"?":e.token.startLine,t=void 0===e.token.startColumn||isNaN(e.token.startColumn)?"?":e.token.startColumn;return`Parse error on line ${r}, column ${t}: ${e.message}`}).join("\n")}`),this.result=e}static{(0,o.K2)(this,"MermaidParseError")}}},92042:(e,r,t)=>{t.d(r,{W:()=>l});var a=t(9448),n=class extends a.mR{static{(0,a.K2)(this,"RailroadEbnfTokenBuilder")}constructor(){super(["railroad-ebnf-beta"])}},i=(0,a.K2)(e=>{let r=e.slice(1,-1),t="";for(let e=0;enew n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new s,"ValueConverter")}};function l(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.U4,o);return r.ServiceRegistry.register(t),{shared:r,RailroadEbnf:t}}(0,a.K2)(l,"createRailroadEbnfServices")},99482:(e,r,t)=>{t.d(r,{s:()=>o});var a=t(9448),n=class extends a.mR{static{(0,a.K2)(this,"RailroadAbnfTokenBuilder")}constructor(){super(["railroad-abnf-beta"])}},i=class extends a.dg{static{(0,a.K2)(this,"RailroadAbnfValueConverter")}runConverter(e,r,t){let a=super.runConverter(e,r,t);if("TITLE"===e.name&&"string"==typeof a){let e=a.trim();if(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))return e.slice(1,-1)}return a}runCustomConverter(e,r,t){if("ABNF_STRING"===e.name)return r.slice(1,-1)}},s={parser:{TokenBuilder:(0,a.K2)(()=>new n,"TokenBuilder"),ValueConverter:(0,a.K2)(()=>new i,"ValueConverter")}};function o(e=a.DD){let r=(0,a.WQ)((0,a.uM)(e),a.sr),t=(0,a.WQ)((0,a.tG)({shared:r}),a.oI,s);return r.ServiceRegistry.register(t),{shared:r,RailroadAbnf:t}}(0,a.K2)(o,"createRailroadAbnfServices")}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9339.9b5d86bf71d45225.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9339.9b5d86bf71d45225.js
    deleted file mode 100644
    index 8ecb5bd41..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9339.9b5d86bf71d45225.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9339],{59339:(e,a,s)=>{s.d(a,{createRadarServices:()=>c.f});var c=s(70522);s(9448)}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9367.c0dda83769b13c18.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9367.c0dda83769b13c18.js
    deleted file mode 100644
    index b86a64cde..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9367.c0dda83769b13c18.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9367],{79367:(e,a,s)=>{s.d(a,{createRailroadServices:()=>c.l});var c=s(42228);s(9448)}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9494b3c5-6bcd147cab0cbc7b.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9494b3c5-6bcd147cab0cbc7b.js
    deleted file mode 100644
    index 7ed820460..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9494b3c5-6bcd147cab0cbc7b.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[510],{39974:(e,n,t)=>{var r,l=t(6638),a=t(62943),o=t(61221),u=t(79944);function i(e){var n="https://react.dev/errors/"+e;if(1I||(e.current=R[I],R[I]=null,I--)}function j(e,n){R[++I]=e.current,e.current=n}var V=U(null),H=U(null),Q=U(null),B=U(null);function W(e,n){switch(j(Q,n),j(H,e),j(V,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?sg(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)e=sy(n=sg(n),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(V),j(V,e)}function q(){$(V),$(H),$(Q)}function K(e){null!==e.memoizedState&&j(B,e);var n=V.current,t=sy(n,e.type);n!==t&&(j(H,e),j(V,t))}function Y(e){H.current===e&&($(V),$(H)),B.current===e&&($(B),s7._currentValue=A)}function X(e){if(void 0===nI)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);nI=n&&n[1]||"",nU=-1)":-1l||i[r]!==s[l]){var c="\n"+i[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{G=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?X(t):""}function J(e){try{var n="",t=null;do n+=function(e,n){switch(e.tag){case 26:case 27:case 5:return X(e.type);case 16:return X("Lazy");case 13:return e.child!==n&&null!==n?X("Suspense Fallback"):X("Suspense");case 19:return X("SuspenseList");case 0:case 15:return Z(e.type,!1);case 11:return Z(e.type.render,!1);case 1:return Z(e.type,!0);case 31:return X("Activity");default:return""}}(e,t),t=e,e=e.return;while(e);return n}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var ee=Object.prototype.hasOwnProperty,en=a.unstable_scheduleCallback,et=a.unstable_cancelCallback,er=a.unstable_shouldYield,el=a.unstable_requestPaint,ea=a.unstable_now,eo=a.unstable_getCurrentPriorityLevel,eu=a.unstable_ImmediatePriority,ei=a.unstable_UserBlockingPriority,es=a.unstable_NormalPriority,ec=a.unstable_LowPriority,ef=a.unstable_IdlePriority,ed=a.log,ep=a.unstable_setDisableYieldValue,em=null,eh=null;function eg(e){if("function"==typeof ed&&ep(e),eh&&"function"==typeof eh.setStrictMode)try{eh.setStrictMode(em,e)}catch(e){}}var ey=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ev(e)/eb|0)|0},ev=Math.log,eb=Math.LN2,ek=256,ew=4194304;function eS(e){var n=42&e;if(0!==n)return n;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:return 64;case 128:return 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 4194048&e;case 4194304:case 8388608:case 0x1000000:case 0x2000000:return 0x3c00000&e;case 0x4000000:return 0x4000000;case 0x8000000:return 0x8000000;case 0x10000000:return 0x10000000;case 0x20000000:return 0x20000000;case 0x40000000:return 0;default:return e}}function ex(e,n,t){var r=e.pendingLanes;if(0===r)return 0;var l=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var u=0x7ffffff&r;return 0!==u?0!=(r=u&~a)?l=eS(r):0!=(o&=u)?l=eS(o):t||0!=(t=u&~e)&&(l=eS(t)):0!=(u=r&~a)?l=eS(u):0!==o?l=eS(o):t||0!=(t=r&~e)&&(l=eS(t)),0===l?0:0!==n&&n!==l&&0==(n&a)&&((a=l&-l)>=(t=n&-n)||32===a&&0!=(4194048&t))?n:l}function eE(e,n){return 0==(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)}function ez(){var e=ek;return 0==(4194048&(ek<<=1))&&(ek=256),e}function eC(){var e=ew;return 0==(0x3c00000&(ew<<=1))&&(ew=4194304),e}function eP(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function eN(e,n){e.pendingLanes|=n,0x10000000!==n&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function eL(e,n,t){e.pendingLanes|=n,e.suspendedLanes&=~n;var r=31-ey(n);e.entangledLanes|=n,e.entanglements[r]=0x40000000|e.entanglements[r]|4194090&t}function eT(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-ey(t),l=1<=tr),to=!1;function tu(e,n){switch(e){case"keyup":return -1!==tn.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ti(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ts=!1,tc={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function tf(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!tc[e.type]:"textarea"===n}function td(e,n,t,r){nw?nS?nS.push(r):nS=[r]:nw=r,0<(n=sr(n,"onChange")).length&&(t=new nQ("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var tp=null,tm=null;function th(e){i8(e,0)}function tg(e){if(ne(eK(e)))return e}function ty(e,n){if("change"===e)return n}var tv=!1;if(nP){if(nP){var tb="oninput"in document;if(!tb){var tk=document.createElement("div");tk.setAttribute("oninput","return;"),tb="function"==typeof tk.oninput}r=tb}else r=!1;tv=r&&(!document.documentMode||9=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=tL(r)}}function t_(e){e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;for(var n=nn(e.document);n instanceof e.HTMLIFrameElement;){try{var t="string"==typeof n.contentWindow.location.href}catch(e){t=!1}if(t)e=n.contentWindow;else break;n=nn(e.document)}return n}function tF(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}var tD=nP&&"documentMode"in document&&11>=document.documentMode,tO=null,tM=null,tA=null,tR=!1;function tI(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;tR||null==tO||tO!==nn(r)||(r="selectionStart"in(r=tO)&&tF(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},tA&&tN(tA,r)||(tA=r,0<(r=sr(tM,"onSelect")).length&&(n=new nQ("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=tO)))}function tU(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var t$={animationend:tU("Animation","AnimationEnd"),animationiteration:tU("Animation","AnimationIteration"),animationstart:tU("Animation","AnimationStart"),transitionrun:tU("Transition","TransitionRun"),transitionstart:tU("Transition","TransitionStart"),transitioncancel:tU("Transition","TransitionCancel"),transitionend:tU("Transition","TransitionEnd")},tj={},tV={};function tH(e){if(tj[e])return tj[e];if(!t$[e])return e;var n,t=t$[e];for(n in t)if(t.hasOwnProperty(n)&&n in tV)return tj[e]=t[n];return e}nP&&(tV=document.createElement("div").style,"AnimationEvent"in window||(delete t$.animationend.animation,delete t$.animationiteration.animation,delete t$.animationstart.animation),"TransitionEvent"in window||delete t$.transitionend.transition);var tQ=tH("animationend"),tB=tH("animationiteration"),tW=tH("animationstart"),tq=tH("transitionrun"),tK=tH("transitionstart"),tY=tH("transitioncancel"),tX=tH("transitionend"),tG=new Map,tZ="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function tJ(e,n){tG.set(e,n),eJ(n,[e])}tZ.push("scrollEnd");var t0="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if("object"==typeof l&&"function"==typeof l.emit)return void l.emit("uncaughtException",e);console.error(e)},t1=[],t2=0,t3=0;function t4(){for(var e=t2,n=t3=t2=0;n>=o,l-=o,rk=1<<32-ey(n)+l|t<h?(g=f,f=null):g=f.sibling;var y=p(l,f,u[h],i);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&n(l,f),o=a(y,o,h),null===c?s=y:c.sibling=y,c=y,f=g}if(h===u.length)return t(l,f),rL&&rS(l,h),s;if(null===f){for(;hg?(y=h,h=null):y=h.sibling;var b=p(l,h,v.value,s);if(null===b){null===h&&(h=y);break}e&&h&&null===b.alternate&&n(l,h),o=a(b,o,g),null===f?c=b:f.sibling=b,f=b,h=y}if(v.done)return t(l,h),rL&&rS(l,g),c;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,s))&&(o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return rL&&rS(l,g),c}for(h=r(h);!v.done;g++,v=u.next())null!==(v=m(h,l,g,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return e&&h.forEach(function(e){return n(l,e)}),rL&&rS(l,g),c}(s,c,f=b.call(f),h)}if("function"==typeof f.then)return u(s,c,ly(f),h);if(f.$$typeof===S)return u(s,c,rG(s,f),h);lb(s,f)}return"string"==typeof f&&""!==f||"number"==typeof f||"bigint"==typeof f?(f=""+f,null!==c&&6===c.tag?(t(s,c.sibling),(h=l(c,f)).return=s):(t(s,c),(h=ri(f,s.mode,h)).return=s),o(s=h)):t(s,c)}(u,s,c,f);return lh=null,h}catch(e){if(e===la||e===lu)throw e;var b=rt(29,e,null,u.mode);return b.lanes=f,b.return=u,b}finally{}}}var lw=lk(!0),lS=lk(!1),lx=!1;function lE(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lz(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function lC(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function lP(e,n,t){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&uM)){var l=r.pending;return null===l?n.next=n:(n.next=l.next,l.next=n),r.pending=n,n=t7(e),t9(e,null,t),n}return t8(e,r,n,t),t7(e)}function lN(e,n,t){if(null!==(n=n.updateQueue)&&(n=n.shared,0!=(4194048&t))){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,eT(e,t)}}function lL(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var l=null,a=null;if(null!==(t=t.firstBaseUpdate)){do{var o={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};null===a?l=a=o:a=a.next=o,t=t.next}while(null!==t);null===a?l=a=n:a=a.next=n}else l=a=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=t;return}null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}var lT=!1;function l_(){if(lT){var e=r9;if(null!==e)throw e}}function lF(e,n,t,r){lT=!1;var l=e.updateQueue;lx=!1;var a=l.firstBaseUpdate,o=l.lastBaseUpdate,u=l.shared.pending;if(null!==u){l.shared.pending=null;var i=u,s=i.next;i.next=null,null===o?a=s:o.next=s,o=i;var c=e.alternate;null!==c&&(u=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===u?c.firstBaseUpdate=s:u.next=s,c.lastBaseUpdate=i)}if(null!==a){var f=l.baseState;for(o=0,c=s=i=null,u=a;;){var d=-0x20000001&u.lane,p=d!==u.lane;if(p?(uI&d)===d:(r&d)===d){0!==d&&d===r5&&(lT=!0),null!==c&&(c=c.next={lane:0,tag:u.tag,payload:u.payload,callback:null,next:null});e:{var h=e,g=u;switch(d=n,g.tag){case 1:if("function"==typeof(h=g.payload)){f=h.call(t,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=g.payload)?h.call(t,f,d):h))break e;f=m({},f,d);break e;case 2:lx=!0}}null!==(d=u.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=l.callbacks)?l.callbacks=[d]:p.push(d))}else p={lane:d,tag:u.tag,payload:u.payload,callback:u.callback,next:null},null===c?(s=c=p,i=f):c=c.next=p,o|=d;if(null===(u=u.next))if(null===(u=l.shared.pending))break;else u=(p=u).next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}null===c&&(i=f),l.baseState=i,l.firstBaseUpdate=s,l.lastBaseUpdate=c,null===a&&(l.shared.lanes=0),uW|=o,e.lanes=o,e.memoizedState=f}}function lD(e,n){if("function"!=typeof e)throw Error(i(191,e));e.call(n)}function lO(e,n){var t=e.callbacks;if(null!==t)for(e.callbacks=null,e=0;ea?a:8;var o=O.T,u={};O.T=u,a9(e,!1,n,t);try{var i=l(),s=O.S;if(null!==s&&s(u,i),null!==i&&"object"==typeof i&&"function"==typeof i.then){var c,f,d=(c=[],f={status:"pending",value:null,reason:null,then:function(e){c.push(e)}},i.then(function(){f.status="fulfilled",f.value=r;for(var e=0;e title"))),sd(a,r,t),a[eR]=e,eX(a),r=a;break e;case"link":var o=s1("link","href",l).get(r+(t.href||""));if(o){for(var u=0;u<\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof r.is?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a="string"==typeof r.is?o.createElement(l,{is:r.is}):o.createElement(l)}}a[eR]=n,a[eI]=r;e:for(o=n.child;null!==o;){if(5===o.tag||6===o.tag)a.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===n)break;for(;null===o.sibling;){if(null===o.return||o.return===n)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(n.stateNode=a,sd(a,l,r),l){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break;case"img":r=!0;break;default:r=!1}r&&oK(n)}}return oJ(n),oY(n,n.type,null===e?null:e.memoizedProps,n.pendingProps,t),null;case 6:if(e&&null!=n.stateNode)e.memoizedProps!==r&&oK(n);else{if("string"!=typeof r&&null===n.stateNode)throw Error(i(166));if(e=Q.current,rA(n)){if(e=n.stateNode,t=n.memoizedProps,r=null,null!==(l=rP))switch(l.tag){case 27:case 5:r=l.memoizedProps}e[eR]=n,(e=!!(e.nodeValue===t||null!==r&&!0===r.suppressHydrationWarning||ss(e.nodeValue,t)))||rD(n,!0)}else(e=sh(e).createTextNode(r))[eR]=n,n.stateNode=e}return oJ(n),null;case 31:if(t=n.memoizedState,null===e||null!==e.memoizedState){if(r=rA(n),null!==t){if(null===e){if(!r)throw Error(i(318));if(!(e=null!==(e=n.memoizedState)?e.dehydrated:null))throw Error(i(557));e[eR]=n}else rR(),0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4;oJ(n),e=!1}else t=rI(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=t),e=!0;if(!e){if(256&n.flags)return lW(n),n;return lW(n),null}if(0!=(128&n.flags))throw Error(i(558))}return oJ(n),null;case 13:if(r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(l=rA(n),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(i(318));if(!(l=null!==(l=n.memoizedState)?l.dehydrated:null))throw Error(i(317));l[eR]=n}else rR(),0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4;oJ(n),l=!1}else l=rI(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l){if(256&n.flags)return lW(n),n;return lW(n),null}}if(lW(n),0!=(128&n.flags))return n.lanes=t,n;return t=null!==r,e=null!==e&&null!==e.memoizedState,t&&(r=n.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)),t!==e&&t&&(n.child.flags|=8192),oG(n,n.updateQueue),oJ(n),null;case 4:return q(),null===e&&i7(n.stateNode.containerInfo),oJ(n),null;case 10:return rQ(n.type),oJ(n),null;case 19:if($(lq),null===(r=n.memoizedState))return oJ(n),null;if(l=0!=(128&n.flags),null===(a=r.rendering))if(l)oZ(r,!1);else{if(0!==uB||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(a=lK(e))){for(n.flags|=128,oZ(r,!1),n.updateQueue=e=a.updateQueue,oG(n,e),n.subtreeFlags=0,e=t,t=n.child;null!==t;)ra(t,e),t=t.sibling;return j(lq,1&lq.current|2),rL&&rS(n,r.treeForkCount),n.child}e=e.sibling}null!==r.tail&&ea()>u1&&(n.flags|=128,l=!0,oZ(r,!1),n.lanes=4194304)}else{if(!l)if(null!==(e=lK(a))){if(n.flags|=128,l=!0,n.updateQueue=e=e.updateQueue,oG(n,e),oZ(r,!0),null===r.tail&&"hidden"===r.tailMode&&!a.alternate&&!rL)return oJ(n),null}else 2*ea()-r.renderingStartTime>u1&&0x20000000!==t&&(n.flags|=128,l=!0,oZ(r,!1),n.lanes=4194304);r.isBackwards?(a.sibling=n.child,n.child=a):(null!==(e=r.last)?e.sibling=a:n.child=a,r.last=a)}if(null!==r.tail)return e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ea(),e.sibling=null,t=lq.current,j(lq,l?1&t|2:1&t),rL&&rS(n,r.treeForkCount),e;return oJ(n),null;case 22:case 23:return lW(n),lU(),r=null!==n.memoizedState,null!==e?null!==e.memoizedState!==r&&(n.flags|=8192):r&&(n.flags|=8192),r?0!=(0x20000000&t)&&0==(128&n.flags)&&(oJ(n),6&n.subtreeFlags&&(n.flags|=8192)):oJ(n),null!==(t=n.updateQueue)&&oG(n,t.retryQueue),t=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),r=null,null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(r=n.memoizedState.cachePool.pool),r!==t&&(n.flags|=2048),null!==e&&$(ln),null;case 24:return t=null,null!==e&&(t=e.memoizedState.cache),n.memoizedState.cache!==t&&(n.flags|=2048),rQ(r2),oJ(n),null;case 25:case 30:return null}throw Error(i(156,n.tag))}(n.alternate,n,uQ);if(null!==t){uR=t;return}if(null!==(n=n.sibling)){uR=n;return}uR=n=e}while(null!==n);0===uB&&(uB=5)}function iE(e,n){do{var t=function(e,n){switch(rz(n),n.tag){case 1:return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return rQ(r2),q(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 26:case 27:case 5:return Y(n),null;case 31:if(null!==n.memoizedState){if(lW(n),null===n.alternate)throw Error(i(340));rR()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 13:if(lW(n),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(i(340));rR()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return $(lq),null;case 4:return q(),null;case 10:return rQ(n.type),null;case 22:case 23:return lW(n),lU(),null!==e&&$(ln),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 24:return rQ(r2),null;default:return null}}(e.alternate,e);if(null!==t){t.flags&=32767,uR=t;return}if(null!==(t=e.return)&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!n&&null!==(e=e.sibling)){uR=e;return}uR=e=t}while(null!==e);uB=6,uR=null}function iz(e,n,t,r,l,a,o,u,s){e.cancelPendingCommit=null;do iT();while(0!==u4);if(0!=(6&uM))throw Error(i(327));if(null!==n){if(n===e.current)throw Error(i(177));if(!function(e,n,t,r,l,a){var o=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var u=e.entanglements,i=e.expirationTimes,s=e.hiddenUpdates;for(t=o&~t;0g&&(o=g,g=h,h=o);var y=tT(u,h),v=tT(u,g);if(y&&v&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var b=f.createRange();b.setStart(y.node,y.offset),p.removeAllRanges(),h>g?(p.addRange(b),p.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),p.addRange(b))}}}}for(f=[],p=u;p=p.parentNode;)1===p.nodeType&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof u.focus&&u.focus(),u=0;ut?32:t,O.T=null,t=u7,u7=null;var a=u8,o=u5;if(u4=0,u6=u8=null,u5=0,0!=(6&uM))throw Error(i(331));var u=uM;if(uM|=4,u_(a.current),uE(a,a.current,o,t),uM=u,iW(0,!1),eh&&"function"==typeof eh.onPostCommitFiberRoot)try{eh.onPostCommitFiberRoot(em,a)}catch(e){}return!0}finally{M.p=l,O.T=r,iL(e,n)}}function iF(e,n,t){n=rd(t,n),n=og(e.stateNode,n,2),null!==(e=lP(e,n,2))&&(eN(e,2),iB(e))}function iD(e,n,t){if(3===e.tag)iF(e,e,t);else for(;null!==n;){if(3===n.tag){iF(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===u3||!u3.has(r))){e=rd(t,e),null!==(r=lP(n,t=oy(2),2))&&(ov(t,r,n,e),eN(r,2),iB(r));break}}n=n.return}}function iO(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new uO;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(uH=!0,l.add(t),e=iM.bind(null,e,n,t),n.then(e,e))}function iM(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,uA===e&&(uI&t)===t&&(4===uB||3===uB&&(0x3c00000&uI)===uI&&300>ea()-u0?0==(2&uM)&&ip(e,0):uK|=t,uX===uI&&(uX=0)),iB(e)}function iA(e,n){0===n&&(n=eC()),null!==(e=t5(e,n))&&(eN(e,n),iB(e))}function iR(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),iA(e,t)}function iI(e,n){var t=0;switch(e.tag){case 31:case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(n),iA(e,t)}var iU=null,i$=null,ij=!1,iV=!1,iH=!1,iQ=0;function iB(e){e!==i$&&null===e.next&&(null===i$?iU=i$=e:i$=i$.next=e),iV=!0,ij||(ij=!0,sx(function(){0!=(6&uM)?en(eu,iq):iK()}))}function iW(e,n){if(!iH&&iV){iH=!0;do for(var t=!1,r=iU;null!==r;){if(!n)if(0!==e){var l=r.pendingLanes;if(0===l)var a=0;else{var o=r.suspendedLanes,u=r.pingedLanes;a=0xc000095&(a=(1<<31-ey(42|e)+1)-1&(l&~(o&~u)))?0xc000095&a|1:a?2|a:0}0!==a&&(t=!0,iG(r,a))}else a=uI,0==(3&(a=ex(r,r===uA?a:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||eE(r,a)||(t=!0,iG(r,a));r=r.next}while(t);iH=!1}}function iq(){iK()}function iK(){iV=ij=!1;var e,n=0;0===iQ||((e=window.event)&&"popstate"===e.type?e===sb||(sb=e,0):(sb=null,1))||(n=iQ);for(var t=ea(),r=null,l=iU;null!==l;){var a=l.next,o=iY(l,t);0===o?(l.next=null,null===r?iU=a:r.next=a,null===a&&(i$=r)):(r=l,(0!==n||0!=(3&o))&&(iV=!0)),l=a}0!==u4&&5!==u4||iW(n,!1),0!==iQ&&(iQ=0)}function iY(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-0x3c00001&e.pendingLanes;0 title"):null)}function s3(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}var s4=null;function s8(){if(this.count--,0===this.count){if(this.stylesheets)s5(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var s6=null;function s5(e,n){e.stylesheets=null,null!==e.unsuspend&&(e.count++,s6=new Map,n.forEach(s9,e),s6=null,s8.call(e))}function s9(e,n){if(!(4&n.state.loading)){var t=s6.get(e);if(t)var r=t.get(null);else{t=new Map,s6.set(e,t);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a{a.d(s,{createRailroadAbnfServices:()=>c.s});var c=a(99482);a(9448)}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9580.45f9edb3be5a4beb.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9580.45f9edb3be5a4beb.js
    deleted file mode 100644
    index 5ec11726d..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9580.45f9edb3be5a4beb.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9580],{9580:(e,r,t)=>{t.d(r,{diagram:()=>E});var n=t(46597),a=t(84492);t(94191),t(69301);var s=t(98999),i=t(91158),l=t(89321),p=(0,l.WG)().RailroadEbnf.parser.LangiumParser,o=(0,i.K)(e=>{let r=e.alternatives.map(m);return 1===r.length?r[0]:{type:"choice",alternatives:r}},"transformChoice"),m=(0,i.K)(e=>{let r=e.elements.map(c);return 1===r.length?r[0]:{type:"sequence",elements:r}},"transformSequence"),u=(0,i.K)(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return o(e.element);case"EbnfOptional":return{type:"optional",element:o(e.element)};case"EbnfRepetition":return{type:"repetition",element:o(e.element),min:0,max:1/0};default:throw Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),f=(0,i.K)((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},u(r.except)]};default:throw Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),c=(0,i.K)(e=>e.postfixes.reduce((e,r)=>f(e,r),u(e.base)),"transformTerm"),d=(0,i.K)(e=>({name:e.name,definition:o(e.definition)}),"transformRule"),b=(0,i.K)(e=>{(0,a.S)(e,n.db),e.title&&n.db.setTitle(e.title),e.rules.map(e=>n.db.addRule(d(e)))},"populateDb"),E={parser:{parse:(0,i.K)(e=>{n.db.clear(),s.R.debug("[EBNF Parser] Starting Langium parse");let r=p.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new l.zg(r);let t=r.value;s.R.debug("[EBNF Parser] Parsed rules:",t.rules.length),b(t),s.R.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n.db}},db:n.db,renderer:n.U,styles:n.$}}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9782.b282107136a26989.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9782.b282107136a26989.js
    deleted file mode 100644
    index bfe77b032..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9782.b282107136a26989.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9782],{99782:(e,s,c)=>{c.d(s,{createTreeViewServices:()=>r.I});var r=c(79643);c(9448)}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9875.2000e389cbe8a830.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9875.2000e389cbe8a830.js
    deleted file mode 100644
    index 66d454267..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9875.2000e389cbe8a830.js
    +++ /dev/null
    @@ -1,23 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9875],{9875:(t,e,n)=>{n.d(e,{diagram:()=>tp});var s,i=n(94191),r=n(13892),l=n(69301);n(98999);var a=n(91158),o=n(70668),h=n(54333),c=n(9413);let u=(t,e)=>(0,c.A)(t,"a",-e);var f=n(80665),d=n(35177);function y(t,e){let n=function(t){let e=[];for(let n=0;n{var n;return n=e,t.every(t=>x(n,t)1){let e=b(s);for(let t=0;te.angle-t.angle);let n=s[s.length-1];for(let e=0;e2*s.radius&&(u=2*s.radius),(null==h||h.width>u)&&(h={circle:s,width:u,p1:a,p2:n,large:u>s.radius,sweep:!0})}null!=h&&(l.push(h),i+=g(h.circle.radius,h.width),n=a)}}else{let e=t[0];for(let n=1;nMath.abs(e.radius-t[s].radius)){n=!0;break}n?i=r=0:(i=e.radius*e.radius*Math.PI,l.push({circle:e,p1:{x:e.x,y:e.y+e.radius},p2:{x:e.x-1e-10,y:e.y+e.radius},width:2*e.radius,large:!0,sweep:!0}))}return r/=2,e&&(e.area=i+r,e.arcArea=i,e.polygonArea=r,e.arcs=l,e.innerPoints=s,e.intersectionPoints=n),i+r}function g(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function x(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function p(t,e,n){return n>=t+e?0:n<=Math.abs(t-e)?Math.PI*Math.min(t,e)*Math.min(t,e):g(t,t-(n*n-e*e+t*t)/(2*n))+g(e,e-(n*n-t*t+e*e)/(2*n))}function m(t,e){let n=x(t,e),s=t.radius,i=e.radius;if(n>=s+i||n<=Math.abs(s-i))return[];let r=(s*s-i*i+n*n)/(2*n),l=Math.sqrt(s*s-r*r),a=t.x+r*(e.x-t.x)/n,o=t.y+r*(e.y-t.y)/n,h=-(e.y-t.y)*(l/n),c=-(e.x-t.x)*(l/n);return[{x:a+h,y:o-c},{x:a-h,y:o+c}]}function b(t){let e={x:0,y:0};for(let n of t)e.x+=n.x,e.y+=n.y;return e.x/=t.length,e.y/=t.length,e}function v(t){let e=Array(t);for(let n=0;nv(e))}function I(t,e){let n=0;for(let s=0;st.fx-e.fx,p=e.slice(),m=e.slice(),b=e.slice(),v=e.slice();for(let e=0;e{let e=t.slice();return e.fx=t.fx,e.id=t.id,e});t.sort((t,e)=>t.id-e.id),n.history.push({x:y[0].slice(),fx:y[0].fx,simplex:t})}s=0;for(let t=0;t=y[d-1].fx){let n=!1;if(m.fx>e.fx?(w(b,1+u,p,-u,e),b.fx=t(b),b.fx=1)break;for(let e=1;eObject.assign({},t));function i(t){return t.join(";")}if(n){let t=new Map;for(let e of s)for(let n=0;nt===e?0:t{let e={};for(let n=0;n0)throw"Initial bisect points must have opposite signs";if(0===l)return e;if(0===a)return n;for(let n=0;n=0&&(e=n),Math.abs(o)p(t,e,s)-n,0,t+e)}function T(t,e={}){let n=function(t,e){let n=e&&e.lossFunction?e.lossFunction:A,s={},i={};for(let e of t)if(1===e.sets.length){let t=e.sets[0];s[t]={x:1e10,y:1e10,rowid:s.length,size:e.size,radius:Math.sqrt(e.size/Math.PI)},i[t]=[]}for(let e of t=t.filter(t=>2===t.sets.length)){let t=null!=e.weight?e.weight:1,n=e.sets[0],r=e.sets[1];e.size+1e-10>=Math.min(s[n].size,s[r].size)&&(t=0),i[n].push({set:r,size:e.size,weight:t}),i[r].push({set:n,size:e.size,weight:t})}let r=[];function l(t,e){return e.size-t.size}Object.keys(i).forEach(t=>{let e=0;for(let n=0;n=8){let i=function(t,e={}){let n=e.restarts||10,s=[],i={};for(let e of t)1===e.sets.length&&(i[e.sets[0]]=s.length,s.push(e));let{distances:r,constraints:l}=function(t,e,n){let s=M(e.length,e.length),i=M(e.length,e.length);return t.filter(t=>2===t.sets.length).forEach(t=>{let r=n[t.sets[0]],l=n[t.sets[1]],a=z(Math.sqrt(e[r].size/Math.PI),Math.sqrt(e[l].size/Math.PI),t.size);s[r][l]=s[l][r]=a;let o=0;t.size+1e-10>=Math.min(e[r].size,e[l].size)?o=1:t.size<=1e-10&&(o=-1),i[r][l]=i[l][r]=o}),{distances:s,constraints:i}}(t,s,i),a=k(r.map(k))/r.length;r=r.map(t=>t.map(t=>t/a));let o=(t,e)=>(function(t,e,n,s){for(let t=0;t0&&y<=u||f<0&&y>=u||(i+=2*g*g,e[2*r]+=4*g*(l-h),e[2*r+1]+=4*g*(a-c),e[2*o]+=4*g*(h-l),e[2*o+1]+=4*g*(c-a))}}return i})(t,e,r,l),h=null;for(let t=0;ta+r*i*o||h>=d)f=i;else{if(Math.abs(u)<=-l*o)return i;u*(f-c)>=0&&(f=c),c=i,d=h}return 0}i=i||1,r=r||1e-6,l=l||.1;for(let y=0;y<10;++y){if(w(s.x,1,n.x,i,e),h=s.fx=t(s.x,s.fxprime),u=I(s.fxprime,e),h>a+r*i*o||y&&h>=c)return d(f,i,c);if(Math.abs(u)<=-l*o)break;if(u>=0)return d(i,f,h);c=h,f=i,i*=2}return i}(t,s,l,a,h),n.history&&n.history.push({x:l.x.slice(),fx:l.fx,fxprime:l.fxprime.slice(),alpha:h}),h){w(o,1,a.fxprime,-1,l.fxprime);let t=I(l.fxprime,l.fxprime);w(s,Math.max(0,I(o,a.fxprime)/t),s,-1,a.fxprime),i=l,l=a,a=i}else _(s,l.fxprime,-1);if(1e-5>=k(l.fxprime))break}return n.history&&n.history.push({x:l.x.slice(),fx:l.fx,fxprime:l.fxprime.slice(),alpha:h}),l}(o,v(2*r.length).map(Math.random),e);(!h||t.fxt[e]));n+=(null!=s.weight?s.weight:1)*(e-s.size)*(e-s.size)}}return n}function K(t,e){let n=0;for(let s of e){let e;if(1===s.sets.length)continue;if(2===s.sets.length){let n=t[s.sets[0]],i=t[s.sets[1]];e=p(n.radius,i.radius,x(n,i))}else e=y(s.sets.map(e=>t[e]));let i=null!=s.weight?s.weight:1,r=Math.log((e+1)/(s.size+1));n+=i*r*r}return n}function R(t){let e=e=>({max:t.reduce((t,n)=>Math.max(t,n[e]+n.radius),-1/0),min:t.reduce((t,n)=>Math.min(t,n[e]-n.radius),1/0)});return{xRange:e("x"),yRange:e("y")}}function $(t,e,n){null==e&&(e=Math.PI/2);let s=C(t).map(t=>Object.assign({},t)),i=function(t){function e(t){return t.parent!==t&&(t.parent=e(t.parent)),t.parent}t.forEach(t=>{t.parent=t});for(let i=0;i{delete t.parent}),Array.from(i.values())}(s);for(let t of i){!function(t,e,n){if(null==n?t.sort((t,e)=>e.radius-t.radius):t.sort(n),t.length>0){let e=t[0].x,n=t[0].y;for(let s of t)s.x-=e,s.y-=n}if(2===t.length&&x(t[0],t[1])1){let n=Math.atan2(t[1].x,t[1].y)-e,s=Math.cos(n),i=Math.sin(n);for(let e of t){let t=e.x,n=e.y;e.x=s*t-i*n,e.y=i*t+s*n}}if(t.length>2){let n=Math.atan2(t[2].x,t[2].y)-e;for(;n<0;)n+=2*Math.PI;for(;n>2*Math.PI;)n-=2*Math.PI;if(n>Math.PI){let e=t[1].y/(1e-10+t[1].x);for(let n of t){var s=(n.x+e*n.y)/(1+e*e);n.x=2*s-n.x,n.y=2*s*e-n.y}}}}(t,e,n);let s=R(t);t.size=(s.xRange.max-s.xRange.min)*(s.yRange.max-s.yRange.min),t.bounds=s}i.sort((t,e)=>e.size-t.size);let r=(s=i[0]).bounds,l=(r.xRange.max-r.xRange.min)/50;function a(t,e,n){let i,a;if(!t)return;let o=t.bounds;if(e)i=r.xRange.max-o.xRange.min+l;else{i=r.xRange.max-o.xRange.max;let t=(o.xRange.max-o.xRange.min)/2-(r.xRange.max-r.xRange.min)/2;t<0&&(i+=t)}if(n)a=r.yRange.max-o.yRange.min+l;else{a=r.yRange.max-o.yRange.max;let t=(o.yRange.max-o.yRange.min)/2-(r.yRange.max-r.yRange.min)/2;t<0&&(a+=t)}for(let e of t)e.x+=i,e.y+=a,s.push(e)}let o=1;for(;o({radius:c*t.radius,x:s+u+(t.x-o.min)*c,y:s+f+(t.y-h.min)*c,setid:t.setid})))}function O(t){let e={};for(let n of t)e[n.setid]=n;return e}function C(t){return Object.keys(t).map(e=>Object.assign(t[e],{setid:e}))}function D(t,e){return function(n){let s=this,i=t[n.sets[0]].radius||50,r=e(n)||"",l=r.split(/\s+/).reverse(),a=(r.length+l.length)/3,o=l.pop(),h=[o],c=0;s.textContent=null;let u=[];function f(t){let e=s.ownerDocument.createElementNS(s.namespaceURI,"tspan");return e.textContent=t,u.push(e),s.append(e),e}let d=f(o);for(;o=l.pop();){h.push(o);let t=h.join(" ");d.textContent=t,t.length>a&&d.getComputedTextLength()>i&&(h.pop(),d.textContent=h.join(" "),h=[o],d=f(o),c++)}let y=.35-1.1*c/2,g=s.getAttribute("x"),x=s.getAttribute("y");u.forEach((t,e)=>{t.setAttribute("x",g),t.setAttribute("y",x),t.setAttribute("dy",`${y+1.1*e}em`)})}}function F(t,e,n){let s=e[0].radius-x(e[0],t);for(let n=1;n=l&&(r=i[t],l=s)}let a=S(t=>-1*F({x:t[0],y:t[1]},e,n),[r.x,r.y],{maxIterations:500,minErrorDelta:1e-10}).x,o={x:s?0:a[0],y:a[1]},h=!0;for(let t of e)if(x(o,t)>t.radius){h=!1;break}for(let t of n)if(x(o,t)t.p1))}(h,c,n);s[l]=u,u.disjoint&&e[r].size>0&&console.log("WARNING: area "+l+" not represented on screen")}return s}function L(t){if(0===t.length)return[];let e={};return y(t,e),e.arcs}function P(t,e){if(0===t.length)return"M 0 0";let n=Math.pow(10,e||0),s=null!=e?t=>Math.round(t*n)/n:t=>t;if(1==t.length){let e=t[0].circle;return function(t,e,n){let s=[];return s.push("\nM",t,e),s.push("\nm",-n,0),s.push("\na",n,n,0,1,0,2*n,0),s.push("\na",n,n,0,1,0,-(2*n),0),s.join(" ")}(s(e.x),s(e.y),s(e.radius))}let i=["\nM",s(t[0].p2.x),s(t[0].p2.y)];for(let e of t){let t=s(e.circle.radius);i.push("\nA",t,t,0,+!!e.large,+!!e.sweep,s(e.p1.x),s(e.p1.y))}return i.join(" ")}var U=n(99788),q=function(){var t=(0,a.K)(function(t,e,n,s){for(n=n||{},s=t.length;s--;n[t[s]]=e);return n},"o"),e=[5,8],n=[7,8,11,12,17,19,22,24],s=[1,17],i=[1,18],r=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],l=[1,31],o=[1,39],h=[7,8,11,12,17,19,22,24,27],c=[1,57],u=[1,56],f=[1,58],d=[1,59],y=[1,60],g=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],x={trace:(0,a.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:(0,a.K)(function(t,e,n,s,i,r,l){var a=r.length-1;switch(i){case 1:return r[a-1];case 2:case 3:case 4:case 6:this.$=[];break;case 5:case 35:r[a-1].push(r[a]),this.$=r[a-1];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:case 43:case 44:this.$=r[a];break;case 8:s.setDiagramTitle(r[a].substr(6)),this.$=r[a].substr(6);break;case 9:s.addSubsetData([r[a]],void 0,void 0),s.setIndentMode&&s.setIndentMode(!0);break;case 10:s.addSubsetData([r[a-1]],r[a],void 0),s.setIndentMode&&s.setIndentMode(!0);break;case 11:s.addSubsetData([r[a-2]],void 0,parseFloat(r[a])),s.setIndentMode&&s.setIndentMode(!0);break;case 12:s.addSubsetData([r[a-3]],r[a-2],parseFloat(r[a])),s.setIndentMode&&s.setIndentMode(!0);break;case 13:if(r[a].length<2)throw Error("union requires multiple identifiers");s.validateUnionIdentifiers&&s.validateUnionIdentifiers(r[a]),s.addSubsetData(r[a],void 0,void 0),s.setIndentMode&&s.setIndentMode(!0);break;case 14:if(r[a-1].length<2)throw Error("union requires multiple identifiers");s.validateUnionIdentifiers&&s.validateUnionIdentifiers(r[a-1]),s.addSubsetData(r[a-1],r[a],void 0),s.setIndentMode&&s.setIndentMode(!0);break;case 15:if(r[a-2].length<2)throw Error("union requires multiple identifiers");s.validateUnionIdentifiers&&s.validateUnionIdentifiers(r[a-2]),s.addSubsetData(r[a-2],void 0,parseFloat(r[a])),s.setIndentMode&&s.setIndentMode(!0);break;case 16:if(r[a-3].length<2)throw Error("union requires multiple identifiers");s.validateUnionIdentifiers&&s.validateUnionIdentifiers(r[a-3]),s.addSubsetData(r[a-3],r[a-2],parseFloat(r[a])),s.setIndentMode&&s.setIndentMode(!0);break;case 17:case 18:case 19:s.addTextData(r[a-1],r[a],void 0);break;case 20:case 21:s.addTextData(r[a-2],r[a-1],r[a]);break;case 23:s.addStyleData(r[a-1],r[a]);break;case 24:case 25:case 26:var o=s.getCurrentSets();if(!o)throw Error("text requires set");s.addTextData(o,r[a],void 0);break;case 27:case 28:var o=s.getCurrentSets();if(!o)throw Error("text requires set");s.addTextData(o,r[a-1],r[a]);break;case 29:case 41:case 34:this.$=[r[a]];break;case 30:case 42:this.$=[...r[a-2],r[a]];break;case 31:this.$=[r[a-2],r[a]];break;case 33:this.$=r[a].join(" ")}},"anonymous"),table:[t(e,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},t(n,[2,4],{6:5}),t(e,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},t(n,[2,5]),t(n,[2,6]),t(n,[2,7]),t(n,[2,8]),{13:16,20:s,21:i},{13:20,18:19,20:s,21:i},{13:20,18:21,20:s,21:i},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:s,21:i},t(n,[2,9],{14:[1,27],15:[1,28]}),t(r,[2,43]),t(r,[2,44]),t(n,[2,13],{14:[1,29],15:[1,30],27:l}),t(r,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:l},t(n,[2,22]),t(n,[2,24],{14:[1,35]}),t(n,[2,25],{14:[1,36]}),t(n,[2,26]),{20:o,25:37,26:38,27:l},t(n,[2,10],{15:[1,40]}),{16:[1,41]},t(n,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:s,21:i},t(n,[2,17],{14:[1,45]}),t(n,[2,18],{14:[1,46]}),t(n,[2,19]),t(n,[2,27]),t(n,[2,28]),t(n,[2,23],{27:[1,47]}),t(h,[2,29]),{15:[1,48]},{16:[1,49]},t(n,[2,11]),{16:[1,50]},t(n,[2,15]),t(r,[2,42]),t(n,[2,20]),t(n,[2,21]),{20:o,26:51},{16:c,20:u,21:[1,53],28:52,29:54,30:55,31:f,32:d,33:y},t(n,[2,12]),t(n,[2,16]),t(h,[2,30]),t(h,[2,31]),t(h,[2,32]),t(h,[2,33],{30:61,16:c,20:u,31:f,32:d,33:y}),t(g,[2,34]),t(g,[2,36]),t(g,[2,37]),t(g,[2,38]),t(g,[2,39]),t(g,[2,40]),t(g,[2,35])],defaultActions:{6:[2,1]},parseError:(0,a.K)(function(t,e){if(e.recoverable)this.trace(t);else{var n=Error(t);throw n.hash=e,n}},"parseError"),parse:(0,a.K)(function(t){var e=this,n=[0],s=[],i=[null],r=[],l=this.table,o="",h=0,c=0,u=0,f=r.slice.call(arguments,1),d=Object.create(this.lexer),y={};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(y[g]=this.yy[g]);d.setInput(t,y),y.lexer=d,y.parser=this,void 0===d.yylloc&&(d.yylloc={});var x=d.yylloc;r.push(x);var p=d.options&&d.options.ranges;function m(){var t;return"number"!=typeof(t=s.pop()||d.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.parseError?this.parseError=y.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,a.K)(function(t){n.length=n.length-2*t,i.length=i.length-t,r.length=r.length-t},"popStack"),(0,a.K)(m,"lex");for(var b,v,M,I,k,_,w,S,E,z={};;){if(M=n[n.length-1],this.defaultActions[M]?I=this.defaultActions[M]:(null==b&&(b=m()),I=l[M]&&l[M][b]),void 0===I||!I.length||!I[0]){var T="";for(_ in E=[],l[M])this.terminals_[_]&&_>2&&E.push("'"+this.terminals_[_]+"'");T=d.showPosition?"Parse error on line "+(h+1)+":\n"+d.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:d.match,token:this.terminals_[b]||b,line:d.yylineno,loc:x,expected:E})}if(I[0]instanceof Array&&I.length>1)throw Error("Parse Error: multiple actions possible at state: "+M+", token: "+b);switch(I[0]){case 1:n.push(b),i.push(d.yytext),r.push(d.yylloc),n.push(I[1]),b=null,v?(b=v,v=null):(c=d.yyleng,o=d.yytext,h=d.yylineno,x=d.yylloc,u>0&&u--);break;case 2:if(w=this.productions_[I[1]][1],z.$=i[i.length-w],z._$={first_line:r[r.length-(w||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(w||1)].first_column,last_column:r[r.length-1].last_column},p&&(z._$.range=[r[r.length-(w||1)].range[0],r[r.length-1].range[1]]),void 0!==(k=this.performAction.apply(z,[o,c,h,y,I[1],i,r].concat(f))))return k;w&&(n=n.slice(0,-1*w*2),i=i.slice(0,-1*w),r=r.slice(0,-1*w)),n.push(this.productions_[I[1]][0]),i.push(z.$),r.push(z._$),S=l[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0},"parse")};function p(){this.yy={}}return x.lexer={EOF:1,parseError:(0,a.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,a.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,a.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,a.K)(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,a.K)(function(){return this._more=!0,this},"more"),reject:(0,a.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,a.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,a.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,a.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,a.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,a.K)(function(t,e){var n,s,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var r in i)this[r]=i[r];return!1},"test_match"),next:(0,a.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,n,s,i=this._currentRules(),r=0;re[0].length)){if(e=n,s=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[r])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,a.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,a.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,a.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,a.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,a.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,a.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,a.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,a.K)(function(t,e,n,s){switch(n){case 0:case 1:case 2:case 4:case 7:case 8:break;case 3:if(t.getIndentMode&&t.getIndentMode())return t.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 5:t.setIndentMode&&t.setIndentMode(!1),this.begin("INITIAL"),this.unput(e.yytext);break;case 6:return this.begin("bol"),8;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(!t.consumeIndentText)return 19;t.consumeIndentText=!1;break;case 15:return 24;case 16:return e.yytext=e.yytext.slice(2,-2),14;case 17:return e.yytext=e.yytext.slice(1,-1).trim(),14;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}},(0,a.K)(p,"Parser"),p.prototype=x,x.Parser=p,new p}();q.parser=q;var B=[],G=[],W=[],V=new Set,X=!1,Y=(0,a.K)((t,e,n)=>{let i=tn(t).sort(),r=n??10/Math.pow(t.length,2);s=i,1===i.length&&V.add(i[0]),B.push({sets:i,size:r,label:e?H(e):void 0})},"addSubsetData"),Z=(0,a.K)(()=>B,"getSubsetData"),H=(0,a.K)(t=>{let e=t.trim();return e.length>=2&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e},"normalizeText"),J=(0,a.K)(t=>t?H(t):t,"normalizeStyleValue"),Q=(0,a.K)((t,e,n)=>{let s=H(e);G.push({sets:tn(t).sort(),id:s,label:n?H(n):void 0})},"addTextData"),tt=(0,a.K)((t,e)=>{let n=tn(t).sort(),s={};for(let[t,n]of e)s[t]=J(n)??n;W.push({targets:n,styles:s})},"addStyleData"),te=(0,a.K)(()=>W,"getStyleData"),tn=(0,a.K)(t=>t.map(t=>H(t)),"normalizeIdentifierList"),ts=(0,a.K)(t=>{let e=tn(t).filter(t=>!V.has(t));if(e.length>0)throw Error(`unknown set identifier: ${e.join(", ")}`)},"validateUnionIdentifiers"),ti=(0,a.K)(()=>G,"getTextData"),tr=(0,a.K)(()=>s,"getCurrentSets"),tl=(0,a.K)(()=>X,"getIndentMode"),ta=(0,a.K)(t=>{X=t},"setIndentMode"),to=l.UI.venn;function th(){return(0,r.$t)(to,(0,l.zj)().venn)}(0,a.K)(th,"getConfig");var tc={getConfig:th,clear:(0,a.K)(()=>{(0,l.IU)(),B.length=0,G.length=0,W.length=0,V.clear(),s=void 0,X=!1},"customClear"),setAccTitle:l.SV,getAccTitle:l.iN,setDiagramTitle:l.ke,getDiagramTitle:l.ab,getAccDescription:l.m7,setAccDescription:l.EI,addSubsetData:Y,getSubsetData:Z,addTextData:Q,addStyleData:tt,validateUnionIdentifiers:ts,getTextData:ti,getStyleData:te,getCurrentSets:tr,getIndentMode:tl,setIndentMode:ta},tu=(0,a.K)(t=>`
    -  .venn-title {
    -    font-size: 32px;
    -    fill: ${t.vennTitleTextColor};
    -    font-family: ${t.fontFamily};
    -  }
    -
    -  .venn-circle text {
    -    font-size: 48px;
    -    font-family: ${t.fontFamily};
    -  }
    -
    -  .venn-intersection text {
    -    font-size: 48px;
    -    fill: ${t.vennSetTextColor};
    -    font-family: ${t.fontFamily};
    -  }
    -
    -  .venn-text-node {
    -    font-family: ${t.fontFamily};
    -    color: ${t.vennSetTextColor};
    -  }
    -`,"getStyles");function tf(t){let e=new Map;for(let n of t){let t=n.targets.join("|"),s=e.get(t);s?Object.assign(s,n.styles):e.set(t,{...n.styles})}return e}(0,a.K)(tf,"buildStyleByKey");var td=(0,a.K)((t,e,n,s)=>{let r=s.db,a=r.getConfig?.(),{themeVariables:c,look:y,handDrawnSeed:g}=(0,l.zj)(),x="handDrawn"===y,p=[c.venn1,c.venn2,c.venn3,c.venn4,c.venn5,c.venn6,c.venn7,c.venn8].filter(Boolean),m=r.getDiagramTitle?.(),b=r.getSubsetData(),v=r.getTextData(),M=tf(r.getStyleData()),I=tx(b),k=a?.width??800,_=a?.height??450,w=k/1600,S=m?48*w:0,z=c.primaryTextColor??c.textColor,T=(0,i.D)(e);T.attr("viewBox",`0 0 ${k} ${_}`),m&&T.append("text").text(m).attr("class","venn-title").attr("font-size",`${32*w}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*w).style("fill",c.vennTitleTextColor||c.titleColor);let R=(0,o.Ltv)(document.createElement("div")),O=(function(t={}){let e=!1,n=600,s=350,i=15,r=1e3,l=Math.PI/2,a=!0,o=null,h=!0,c=!0,u=null,f=null,d=!1,y=null,g=!!t&&!!t.symmetricalTextCentre&&t.symmetricalTextCentre,x={},p=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],m=0,b=function(t){if(t in x)return x[t];var e=x[t]=p[m];return(m+=1)>=p.length&&(m=0),e},v=E,M=A;function I(x){let p=x.datum(),m=new Set;p.forEach(t=>{0==t.size&&1==t.sets.length&&m.add(t.sets[0])});let I={},k={};if((p=p.filter(t=>!t.sets.some(t=>m.has(t)))).length>0){let t=v(p,{lossFunction:M,distinct:d});a&&(t=$(t,l,f)),k=j(I=N(t,n,s,i,o),p,g)}let _={};function w(t){return t.sets in _?_[t.sets]:1==t.sets.length?""+t.sets[0]:void 0}p.forEach(t=>{t.label&&(_[t.sets]=t.label)}),x.selectAll("svg").data([I]).enter().append("svg");let S=x.select("svg");e?S.attr("viewBox",`0 0 ${n} ${s}`):S.attr("width",n).attr("height",s);let E={},z=!1;function T(t){return e=>{var i,r;return i=t.sets.map(t=>{let i=E[t],r=I[t];return i||(i={x:n/2,y:s/2,radius:1}),r||(r={x:n/2,y:s/2,radius:1}),{x:i.x*(1-e)+r.x*e,y:i.y*(1-e)+r.y*e,radius:i.radius*(1-e)+r.radius*e}}),r=y,P(L(i),r)}}S.selectAll(".venn-area path").each(function(t){let e=this.getAttribute("d");1==t.sets.length&&e&&!d&&(z=!0,E[t.sets[0]]=function(t){let e=t.split(" ");return{x:Number.parseFloat(e[1]),y:Number.parseFloat(e[2]),radius:-Number.parseFloat(e[4])}}(e))});let A=S.selectAll(".venn-area").data(p,t=>t.sets),K=A.enter().append("g").attr("class",t=>`venn-area venn-${1==t.sets.length?"circle":"intersection"}${t.colour||t.color?" venn-coloured":""}`).attr("data-venn-sets",t=>t.sets.join("_")),R=K.append("path"),O=K.append("text").attr("class","label").text(t=>w(t)).attr("text-anchor","middle").attr("dy",".35em").attr("x",n/2).attr("y",s/2);function C(t){return"function"==typeof t.transition?t.transition("venn").duration(r):t}c&&(R.style("fill-opacity","0").filter(t=>1==t.sets.length).style("fill",t=>t.colour?t.colour:t.color?t.color:b(t.sets)).style("fill-opacity",".25"),O.style("fill",e=>e.colour||e.color?"#FFF":t.textFill?t.textFill:1==e.sets.length?b(e.sets):"#444"));let F=x;z&&"function"==typeof F.transition?(F=C(x)).selectAll("path").attrTween("d",T):F.selectAll("path").attr("d",t=>P(L(t.sets.map(t=>I[t])),void 0),y);let U=F.selectAll("text").filter(t=>t.sets in k).text(t=>w(t)).attr("x",t=>Math.floor(k[t.sets].x)).attr("y",t=>Math.floor(k[t.sets].y));h&&(z?"on"in U?U.on("end",D(I,w)):U.each("end",D(I,w)):U.each(D(I,w)));let q=C(A.exit()).remove();"function"==typeof A.transition&&q.selectAll("path").attrTween("d",T);let B=q.selectAll("text").attr("x",n/2).attr("y",s/2);return null!==u&&(O.style("font-size","0px"),U.style("font-size",u),B.style("font-size","0px")),{circles:I,textCentres:k,nodes:A,enter:K,update:F,exit:q}}return I.wrap=function(t){return arguments.length?(h=t,I):h},I.useViewBox=function(){return e=!0,I},I.width=function(t){return arguments.length?(n=t,I):n},I.height=function(t){return arguments.length?(s=t,I):s},I.padding=function(t){return arguments.length?(i=t,I):i},I.distinct=function(t){return arguments.length?(d=t,I):d},I.colours=function(t){return arguments.length?(b=t,I):b},I.colors=function(t){return arguments.length?(b=t,I):b},I.fontSize=function(t){return arguments.length?(u=t,I):u},I.round=function(t){return arguments.length?(y=t,I):y},I.duration=function(t){return arguments.length?(r=t,I):r},I.layoutFunction=function(t){return arguments.length?(v=t,I):v},I.normalize=function(t){return arguments.length?(a=t,I):a},I.scaleToFit=function(t){return arguments.length?(o=t,I):o},I.styled=function(t){return arguments.length?(c=t,I):c},I.orientation=function(t){return arguments.length?(l=t,I):l},I.orientationOrder=function(t){return arguments.length?(f=t,I):f},I.lossFunction=function(t){return arguments.length?(M="default"===t?A:"logRatio"===t?K:t,I):M},I})().width(k).height(_-S);R.datum(I).call(O);let C=x?U.A.svg(R.select("svg").node()):void 0,F=function(t,e={}){let{lossFunction:n,layoutFunction:s=E,normalize:i=!0,orientation:r=Math.PI/2,orientationOrder:l,width:a=600,height:o=350,padding:h=15,scaleToFit:c=!1,symmetricalTextCentre:u=!1,distinct:f,round:d=2}=e,y=s(t,{lossFunction:"default"!==n&&n?"logRatio"===n?K:n:A,distinct:f});i&&(y=$(y,r,l));let g=N(y,a,o,h,c),x=j(g,t,u),p=new Map(Object.keys(g).map(t=>[t,{set:t,x:g[t].x,y:g[t].y,radius:g[t].radius}])),m=t.map(t=>{let e=t.sets.map(t=>p.get(t)),n=L(e),s=P(n,d);return{circles:e,arcs:n,path:s,area:t,has:new Set(t.sets)}});return m.map(({circles:t,arcs:e,path:n,area:s})=>({data:s,text:x[s.sets],circles:t,arcs:e,path:n,distinctPath:n+function(t){let e="";for(let n of m)n.has.size>t.length&&t.every(t=>n.has.has(t))&&(e+=" "+n.path);return e}(s.sets)}))}(I,{width:k,height:_-S,padding:a?.padding??15}),q=new Map;for(let t of F){let e=ty([...t.data.sets].sort());q.set(e,t)}v.length>0&&tg(a,q,R,v,w,M);let B=(0,h.A)(c.background||"#f4f4f4");R.selectAll(".venn-circle").each(function(t,e){let n=(0,o.Ltv)(this),s=ty([...t.sets].sort()),i=M.get(s),r=i?.fill||p[e%p.length]||c.primaryColor;n.classed(`venn-set-${e%8}`,!0);let l=i?.["fill-opacity"]??.1,a=i?.stroke||r,h=i?.["stroke-width"]||`${5*w}`;if(x&&C){let t=q.get(s);if(t&&t.circles.length>0){let s=t.circles[0],i=C.circle(s.x,s.y,2*s.radius,{roughness:.7,seed:g,fill:u(r,.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+60*e,stroke:a,strokeWidth:parseFloat(String(h))});n.select("path").remove(),n.node()?.insertBefore(i,n.select("text").node())}}else n.select("path").style("fill",r).style("fill-opacity",l).style("stroke",a).style("stroke-width",h).style("stroke-opacity",.95);let y=i?.color||(B?(0,f.A)(r,30):(0,d.A)(r,30));n.select("text").style("font-size",`${48*w}px`).style("fill",y)}),x&&C?R.selectAll(".venn-intersection").each(function(t){let e=(0,o.Ltv)(this),n=ty([...t.sets].sort()),s=M.get(n),i=s?.fill;if(i){let t=e.select("path"),n=t.attr("d");if(n){let e=C.path(n,{roughness:.7,seed:g,fill:u(i,.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),s=t.node();s?.parentNode?.insertBefore(e,s),t.remove()}}else e.select("path").style("fill-opacity",0);e.select("text").style("font-size",`${48*w}px`).style("fill",s?.color??c.vennSetTextColor??z)}):(R.selectAll(".venn-intersection text").style("font-size",`${48*w}px`).style("fill",t=>{let e=ty([...t.sets].sort());return M.get(e)?.color??c.vennSetTextColor??z}),R.selectAll(".venn-intersection path").style("fill-opacity",t=>{let e=ty([...t.sets].sort());return+!!M.get(e)?.fill}).style("fill",t=>{let e=ty([...t.sets].sort());return M.get(e)?.fill??"transparent"}));let G=T.append("g").attr("transform",`translate(0, ${S})`),W=R.select("svg").node();if(W&&"childNodes"in W)for(let t of[...W.childNodes])G.node()?.appendChild(t);(0,l.a$)(T,_,k,a?.useMaxWidth??!0)},"draw");function ty(t){return t.join("|")}function tg(t,e,n,s,i,r){let l=t?.useDebugLayout??!1,a=n.select("svg").append("g").attr("class","venn-text-nodes"),o=new Map;for(let t of s){let e=ty(t.sets),n=o.get(e);n?n.push(t):o.set(e,[t])}for(let[t,n]of o.entries()){let s=e.get(t);if(!s?.text)continue;let o=s.text.x,h=s.text.y,c=Math.min(...s.circles.map(t=>t.radius)),u=Math.min(...s.circles.map(t=>t.radius-Math.hypot(o-t.x,h-t.y))),f=Number.isFinite(u)?Math.max(0,u):0;0===f&&Number.isFinite(c)&&(f=.6*c);let d=a.append("g").attr("class","venn-text-area").attr("font-size",`${40*i}px`);l&&d.append("circle").attr("class","venn-text-debug-circle").attr("cx",o).attr("cy",h).attr("r",f).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*i).attr("stroke-dasharray",`${6*i} ${4*i}`);let y=Math.max(80*i,2*f*.95),g=Math.max(60*i,2*f*.95),x=(s.data.label&&s.data.label.length>0?Math.min(32*i,.25*f):0)+(n.length<=2?30*i:0),p=o-y/2,m=h-g/2+x,b=Math.max(1,Math.ceil(Math.sqrt(n.length))),v=Math.max(1,Math.ceil(n.length/b)),M=y/b,I=g/v;for(let[t,e]of n.entries()){let n=t%b,s=Math.floor(t/b),a=p+M*(n+.5),o=m+I*(s+.5);l&&d.append("rect").attr("class","venn-text-debug-cell").attr("x",p+M*n).attr("y",m+I*s).attr("width",M).attr("height",I).attr("fill","none").attr("stroke","teal").attr("stroke-width",+i).attr("stroke-dasharray",`${4*i} ${3*i}`);let h=.9*M,c=.9*I,u=d.append("foreignObject").attr("class","venn-text-node-fo").attr("width",h).attr("height",c).attr("x",a-h/2).attr("y",o-c/2).attr("overflow","visible"),f=r.get(e.id)?.color,y=u.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(e.label??e.id);f&&y.style("color",f)}}}function tx(t){let e=new Set(t.map(t=>[...t.sets].sort().join("|"))),n=new Map(t.filter(t=>1===t.sets.length&&void 0!==t.size).map(t=>[t.sets[0],t.size])),s=[];for(let i of t){if(i.sets.length<3)continue;let t=[...i.sets].sort();for(let i=0;i0?[...t,...s]:t}(0,a.K)(ty,"stableSetsKey"),(0,a.K)(tg,"renderTextNodes"),(0,a.K)(tx,"ensurePairwiseSubsets");var tp={parser:q,db:tc,renderer:{draw:td},styles:tu}}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9933.d2dd69acd3615a1f.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9933.d2dd69acd3615a1f.js
    deleted file mode 100644
    index bb3327cdf..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/9933.d2dd69acd3615a1f.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9933],{79933:(e,c,r)=>{r.d(c,{createArchitectureServices:()=>s.S});var s=r(76250);r(9448)}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/abea47b0.3eac0b7adcc4eb9e.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/abea47b0.3eac0b7adcc4eb9e.js
    deleted file mode 100644
    index 1996a263e..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/abea47b0.3eac0b7adcc4eb9e.js
    +++ /dev/null
    @@ -1,153 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5885],{20139:(t,e,a)=>{a.d(e,{diagram:()=>tY});var r=a(55716),i=a(44115),s=a(33332),n=a(13892),o=a(69301),c=a(98999),l=a(91158),d=a(70668),h=a(76162),p=function(){var t=(0,l.K)(function(t,e,a,r){for(a=a||{},r=t.length;r--;a[t[r]]=e);return a},"o"),e=[1,2],a=[1,3],r=[1,4],i=[2,4],s=[1,9],n=[1,11],o=[1,12],c=[1,14],d=[1,15],h=[1,17],p=[1,18],T=[1,19],E=[1,25],g=[1,26],u=[1,27],_=[1,28],O=[1,29],y=[1,30],x=[1,31],b=[1,32],m=[1,33],I=[1,34],f=[1,35],R=[1,36],L=[1,37],P=[1,38],N=[1,39],D=[1,40],w=[1,42],S=[1,43],A=[1,44],k=[1,45],M=[1,46],C=[1,47],v=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],Y=[1,74],B=[1,80],K=[1,81],$=[1,82],V=[1,83],W=[1,84],F=[1,85],q=[1,86],H=[1,87],z=[1,88],j=[1,89],U=[1,90],G=[1,91],X=[1,92],Z=[1,93],J=[1,94],Q=[1,95],tt=[1,96],te=[1,97],ta=[1,98],tr=[1,99],ti=[1,100],ts=[1,101],tn=[1,102],to=[1,103],tc=[1,104],tl=[1,105],td=[2,78],th=[4,5,17,51,53,54],tp=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],tT=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],tE=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],tg=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],tu=[5,52],t_=[70,71,72,73],tO=[1,151],ty={trace:(0,l.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:(0,l.K)(function(t,e,a,r,i,s,n){var o=s.length-1;switch(i){case 3:return r.apply(s[o]),s[o];case 4:case 10:case 8:case 9:case 14:this.$=[];break;case 5:case 11:s[o-1].push(s[o]),this.$=s[o-1];break;case 6:case 7:case 12:case 13:case 67:this.$=s[o];break;case 16:s[o].type="createParticipant",this.$=s[o];break;case 17:s[o-1].unshift({type:"boxStart",boxData:r.parseBoxData(s[o-2])}),s[o-1].push({type:"boxEnd",boxText:s[o-2]}),this.$=s[o-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(s[o-2]),sequenceIndexStep:Number(s[o-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(s[o-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:s[o-1].actor};break;case 24:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:s[o-1].actor};break;case 30:r.setDiagramTitle(s[o].substring(6)),this.$=s[o].substring(6);break;case 31:r.setDiagramTitle(s[o].substring(7)),this.$=s[o].substring(7);break;case 32:this.$=s[o].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=s[o].trim(),r.setAccDescription(this.$);break;case 35:s[o-1].unshift({type:"loopStart",loopText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.LOOP_START}),s[o-1].push({type:"loopEnd",loopText:s[o-2],signalType:r.LINETYPE.LOOP_END}),this.$=s[o-1];break;case 36:s[o-1].unshift({type:"rectStart",color:r.parseMessage(s[o-2]),signalType:r.LINETYPE.RECT_START}),s[o-1].push({type:"rectEnd",color:r.parseMessage(s[o-2]),signalType:r.LINETYPE.RECT_END}),this.$=s[o-1];break;case 37:s[o-1].unshift({type:"optStart",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.OPT_START}),s[o-1].push({type:"optEnd",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.OPT_END}),this.$=s[o-1];break;case 38:s[o-1].unshift({type:"altStart",altText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.ALT_START}),s[o-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=s[o-1];break;case 39:s[o-1].unshift({type:"parStart",parText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.PAR_START}),s[o-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=s[o-1];break;case 40:s[o-1].unshift({type:"parStart",parText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.PAR_OVER_START}),s[o-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=s[o-1];break;case 41:s[o-1].unshift({type:"criticalStart",criticalText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.CRITICAL_START}),s[o-1].push({type:"criticalEnd",signalType:r.LINETYPE.CRITICAL_END}),this.$=s[o-1];break;case 42:s[o-1].unshift({type:"breakStart",breakText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.BREAK_START}),s[o-1].push({type:"breakEnd",optText:r.parseMessage(s[o-2]),signalType:r.LINETYPE.BREAK_END}),this.$=s[o-1];break;case 44:this.$=s[o-3].concat([{type:"option",optionText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.CRITICAL_OPTION},s[o]]);break;case 46:this.$=s[o-3].concat([{type:"and",parText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.PAR_AND},s[o]]);break;case 48:this.$=s[o-3].concat([{type:"else",altText:r.parseMessage(s[o-1]),signalType:r.LINETYPE.ALT_ELSE},s[o]]);break;case 49:case 54:s[o-3].draw="participant",s[o-3].type="addParticipant",s[o-3].description=r.parseMessage(s[o-1]),this.$=s[o-3];break;case 50:case 55:s[o-1].draw="participant",s[o-1].type="addParticipant",this.$=s[o-1];break;case 51:case 56:s[o-3].draw="actor",s[o-3].type="addParticipant",s[o-3].description=r.parseMessage(s[o-1]),this.$=s[o-3];break;case 52:case 57:s[o-1].draw="actor",s[o-1].type="addParticipant",this.$=s[o-1];break;case 53:s[o-1].type="destroyParticipant",this.$=s[o-1];break;case 58:this.$=[s[o-1],{type:"addNote",placement:s[o-2],actor:s[o-1].actor,text:s[o]}];break;case 59:s[o-2]=[].concat(s[o-1],s[o-1]).slice(0,2),s[o-2][0]=s[o-2][0].actor,s[o-2][1]=s[o-2][1].actor,this.$=[s[o-1],{type:"addNote",placement:r.PLACEMENT.OVER,actor:s[o-2].slice(0,2),text:s[o]}];break;case 60:this.$=[s[o-1],{type:"addLinks",actor:s[o-1].actor,text:s[o]}];break;case 61:this.$=[s[o-1],{type:"addALink",actor:s[o-1].actor,text:s[o]}];break;case 62:this.$=[s[o-1],{type:"addProperties",actor:s[o-1].actor,text:s[o]}];break;case 63:this.$=[s[o-1],{type:"addDetails",actor:s[o-1].actor,text:s[o]}];break;case 66:this.$=[s[o-2],s[o]];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0},{type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:s[o-1].actor}];break;case 71:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o]},{type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:s[o-4].actor}];break;case 72:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:s[o-1].actor}];break;case 73:this.$=[s[o-4],s[o-1],{type:"addMessage",from:s[o-4].actor,to:s[o-1].actor,signalType:s[o-2],msg:s[o],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:s[o-4].actor}];break;case 74:this.$=[s[o-5],s[o-1],{type:"addMessage",from:s[o-5].actor,to:s[o-1].actor,signalType:s[o-3],msg:s[o],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:s[o-1].actor},{type:"centralConnectionReverse",signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:s[o-5].actor}];break;case 75:this.$=[s[o-3],s[o-1],{type:"addMessage",from:s[o-3].actor,to:s[o-1].actor,signalType:s[o-2],msg:s[o]}];break;case 76:this.$={type:"addParticipant",actor:s[o-1],config:s[o]};break;case 77:this.$=s[o-1].trim();break;case 78:this.$={type:"addParticipant",actor:s[o]};break;case 79:this.$=r.LINETYPE.SOLID_OPEN;break;case 80:this.$=r.LINETYPE.DOTTED_OPEN;break;case 81:this.$=r.LINETYPE.SOLID;break;case 82:this.$=r.LINETYPE.SOLID_TOP;break;case 83:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=r.LINETYPE.STICK_TOP;break;case 85:this.$=r.LINETYPE.STICK_BOTTOM;break;case 86:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=r.LINETYPE.DOTTED;break;case 100:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=r.LINETYPE.SOLID_CROSS;break;case 102:this.$=r.LINETYPE.DOTTED_CROSS;break;case 103:this.$=r.LINETYPE.SOLID_POINT;break;case 104:this.$=r.LINETYPE.DOTTED_POINT;break;case 105:this.$=r.parseMessage(s[o].trim().substring(1))}},"anonymous"),table:[{3:1,4:e,5:a,6:r},{1:[3]},{3:5,4:e,5:a,6:r},{3:6,4:e,5:a,6:r},t([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:N,54:D,56:w,61:S,62:A,63:k,64:M,73:C},t(v,[2,5]),{9:48,13:13,14:c,15:d,18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:N,54:D,56:w,61:S,62:A,63:k,64:M,73:C},t(v,[2,7]),t(v,[2,8]),t(v,[2,9]),t(v,[2,15]),{13:49,51:P,53:N,54:D},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:C},{23:56,73:C},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},t(v,[2,30]),t(v,[2,31]),{33:[1,62]},{35:[1,63]},t(v,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:Y},{23:75,55:76,73:Y},{23:77,73:C},{69:78,72:[1,79],78:B,79:K,80:$,81:V,82:W,83:F,84:q,85:H,86:z,87:j,88:U,89:G,90:X,91:Z,92:J,93:Q,94:tt,95:te,96:ta,97:tr,98:ti,99:ts,100:tn,101:to,102:tc,103:tl},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:C},{23:111,73:C},{23:112,73:C},{23:113,73:C},t([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],td),t(v,[2,6]),t(v,[2,16]),t(th,[2,10],{11:114}),t(v,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},t(v,[2,22]),{5:[1,118]},{5:[1,119]},t(v,[2,25]),t(v,[2,26]),t(v,[2,27]),t(v,[2,28]),t(v,[2,29]),t(v,[2,32]),t(v,[2,33]),t(tp,i,{7:120}),t(tp,i,{7:121}),t(tp,i,{7:122}),t(tT,i,{41:123,7:124}),t(tE,i,{43:125,7:126}),t(tE,i,{7:126,43:127}),t(tg,i,{46:128,7:129}),t(tp,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},t(tu,td,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:C},{69:146,78:B,79:K,80:$,81:V,82:W,83:F,84:q,85:H,86:z,87:j,88:U,89:G,90:X,91:Z,92:J,93:Q,94:tt,95:te,96:ta,97:tr,98:ti,99:ts,100:tn,101:to,102:tc,103:tl},t(t_,[2,79]),t(t_,[2,80]),t(t_,[2,81]),t(t_,[2,82]),t(t_,[2,83]),t(t_,[2,84]),t(t_,[2,85]),t(t_,[2,86]),t(t_,[2,87]),t(t_,[2,88]),t(t_,[2,89]),t(t_,[2,90]),t(t_,[2,91]),t(t_,[2,92]),t(t_,[2,93]),t(t_,[2,94]),t(t_,[2,95]),t(t_,[2,96]),t(t_,[2,97]),t(t_,[2,98]),t(t_,[2,99]),t(t_,[2,100]),t(t_,[2,101]),t(t_,[2,102]),t(t_,[2,103]),t(t_,[2,104]),{23:147,73:C},{23:149,60:148,73:C},{73:[2,68]},{73:[2,69]},{58:150,104:tO},{58:152,104:tO},{58:153,104:tO},{58:154,104:tO},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:P,53:N,54:D},{5:[1,160]},t(v,[2,20]),t(v,[2,21]),t(v,[2,23]),t(v,[2,24]),{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,161],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:N,54:D,56:w,61:S,62:A,63:k,64:M,73:C},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,162],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:N,54:D,56:w,61:S,62:A,63:k,64:M,73:C},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,163],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:N,54:D,56:w,61:S,62:A,63:k,64:M,73:C},{17:[1,164]},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[2,47],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,50:[1,165],51:P,53:N,54:D,56:w,61:S,62:A,63:k,64:M,73:C},{17:[1,166]},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[2,45],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,49:[1,167],51:P,53:N,54:D,56:w,61:S,62:A,63:k,64:M,73:C},{17:[1,168]},{17:[1,169]},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[2,43],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,48:[1,170],51:P,53:N,54:D,56:w,61:S,62:A,63:k,64:M,73:C},{4:s,5:n,8:8,9:10,10:o,13:13,14:c,15:d,17:[1,171],18:16,19:h,22:p,23:41,24:T,25:20,26:21,27:22,28:23,29:24,30:E,31:g,32:u,34:_,36:O,37:y,38:x,39:b,40:m,42:I,44:f,45:R,47:L,51:P,53:N,54:D,56:w,61:S,62:A,63:k,64:M,73:C},{16:[1,172]},t(v,[2,50]),{16:[1,173]},t(v,[2,55]),t(tu,[2,76]),{76:[1,174]},{16:[1,175]},t(v,[2,52]),{16:[1,176]},t(v,[2,57]),t(v,[2,53]),{23:177,73:C},{23:178,73:C},{23:179,73:C},{58:180,104:tO},{23:181,72:[1,182],73:C},{58:183,104:tO},{58:184,104:tO},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},t(v,[2,17]),t(th,[2,11]),{13:186,51:P,53:N,54:D},t(th,[2,13]),t(th,[2,14]),t(v,[2,19]),t(v,[2,35]),t(v,[2,36]),t(v,[2,37]),t(v,[2,38]),{16:[1,187]},t(v,[2,39]),{16:[1,188]},t(v,[2,40]),t(v,[2,41]),{16:[1,189]},t(v,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:tO},{58:196,104:tO},{58:197,104:tO},{5:[2,75]},{58:198,104:tO},{23:199,73:C},{5:[2,58]},{5:[2,59]},{23:200,73:C},t(th,[2,12]),t(tT,i,{7:124,41:201}),t(tE,i,{7:126,43:202}),t(tg,i,{7:129,46:203}),t(v,[2,49]),t(v,[2,54]),t(tu,[2,77]),t(v,[2,51]),t(v,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:tO},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:(0,l.K)(function(t,e){if(e.recoverable)this.trace(t);else{var a=Error(t);throw a.hash=e,a}},"parseError"),parse:(0,l.K)(function(t){var e=this,a=[0],r=[],i=[null],s=[],n=this.table,o="",c=0,d=0,h=0,p=s.slice.call(arguments,1),T=Object.create(this.lexer),E={};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(E[g]=this.yy[g]);T.setInput(t,E),E.lexer=T,E.parser=this,void 0===T.yylloc&&(T.yylloc={});var u=T.yylloc;s.push(u);var _=T.options&&T.options.ranges;function O(){var t;return"number"!=typeof(t=r.pop()||T.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof E.parseError?this.parseError=E.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,l.K)(function(t){a.length=a.length-2*t,i.length=i.length-t,s.length=s.length-t},"popStack"),(0,l.K)(O,"lex");for(var y,x,b,m,I,f,R,L,P,N={};;){if(b=a[a.length-1],this.defaultActions[b]?m=this.defaultActions[b]:(null==y&&(y=O()),m=n[b]&&n[b][y]),void 0===m||!m.length||!m[0]){var D="";for(f in P=[],n[b])this.terminals_[f]&&f>2&&P.push("'"+this.terminals_[f]+"'");D=T.showPosition?"Parse error on line "+(c+1)+":\n"+T.showPosition()+"\nExpecting "+P.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==y?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(D,{text:T.match,token:this.terminals_[y]||y,line:T.yylineno,loc:u,expected:P})}if(m[0]instanceof Array&&m.length>1)throw Error("Parse Error: multiple actions possible at state: "+b+", token: "+y);switch(m[0]){case 1:a.push(y),i.push(T.yytext),s.push(T.yylloc),a.push(m[1]),y=null,x?(y=x,x=null):(d=T.yyleng,o=T.yytext,c=T.yylineno,u=T.yylloc,h>0&&h--);break;case 2:if(R=this.productions_[m[1]][1],N.$=i[i.length-R],N._$={first_line:s[s.length-(R||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(R||1)].first_column,last_column:s[s.length-1].last_column},_&&(N._$.range=[s[s.length-(R||1)].range[0],s[s.length-1].range[1]]),void 0!==(I=this.performAction.apply(N,[o,d,c,E,m[1],i,s].concat(p))))return I;R&&(a=a.slice(0,-1*R*2),i=i.slice(0,-1*R),s=s.slice(0,-1*R)),a.push(this.productions_[m[1]][0]),i.push(N.$),s.push(N._$),L=n[a[a.length-2]][a[a.length-1]],a.push(L);break;case 3:return!0}}return!0},"parse")};function tx(){this.yy={}}return ty.lexer={EOF:1,parseError:(0,l.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,l.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,l.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,l.K)(function(t){var e=t.length,a=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,l.K)(function(){return this._more=!0,this},"more"),reject:(0,l.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,l.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,l.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,l.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,l.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,l.K)(function(t,e){var a,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],a=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack)for(var s in i)this[s]=i[s];return!1},"test_match"),next:(0,l.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,a,r,i=this._currentRules(),s=0;se[0].length)){if(e=a,r=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(a,i[s])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,l.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,l.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,l.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,l.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,l.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,l.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,l.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,l.K)(function(t,e,a,r){switch(a){case 0:case 59:case 92:return 5;case 1:case 2:case 3:case 4:case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;case 10:return this.popState(),this.popState(),77;case 11:case 60:return e.yytext=e.yytext.trim(),73;case 12:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),73;case 13:return e.yytext=e.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return e.yytext=e.yytext.trim(),this.popState(),10;case 16:return this.begin("LINE"),15;case 17:return this.begin("ID"),51;case 18:return this.begin("ID"),53;case 19:return 14;case 20:return this.begin("ID"),54;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin("LINE"),37;case 24:return this.begin("LINE"),38;case 25:return this.begin("LINE"),39;case 26:return this.begin("LINE"),40;case 27:return this.begin("LINE"),50;case 28:return this.begin("LINE"),42;case 29:return this.begin("LINE"),44;case 30:return this.begin("LINE"),49;case 31:return this.begin("LINE"),45;case 32:return this.begin("LINE"),48;case 33:return this.begin("LINE"),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;case 45:return this.begin("ID"),24;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;case 49:return this.popState(),"acc_title_value";case 50:return this.begin("acc_descr"),34;case 51:return this.popState(),"acc_descr_value";case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}},(0,l.K)(tx,"Parser"),tx.prototype=ty,ty.Parser=tx,new tx}();p.parser=p;var T={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},E={FILLED:0,OPEN:1},g={LEFTOF:0,RIGHTOF:1,OVER:2},u={ACTOR:"actor",CONTROL:"control",DATABASE:"database",ENTITY:"entity"},_=class{constructor(){this.state=new r.m(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=o.SV,this.setAccDescription=o.EI,this.setDiagramTitle=o.ke,this.getAccTitle=o.iN,this.getAccDescription=o.m7,this.getDiagramTitle=o.ab,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap((0,o.D7)().wrap),this.LINETYPE=T,this.ARROWTYPE=E,this.PLACEMENT=g}static{(0,l.K)(this,"SequenceDB")}addBox(t){this.state.records.boxes.push({name:t.text,wrap:t.wrap??this.autoWrap(),fill:t.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(t,e,a,r,s){let n,o=this.state.records.currentBox;if(void 0!==s){let t;t=s.includes("\n")?s+"\n":"{\n"+s+"\n}",n=(0,i.H)(t,{schema:i.r})}r=n?.type??r,n?.alias&&(!a||a.text===e)&&(a={text:n.alias,wrap:a?.wrap,type:r});let c=this.state.records.actors.get(t);if(c){if(this.state.records.currentBox&&c.box&&this.state.records.currentBox!==c.box)throw Error(`A same participant should only be defined in one Box: ${c.name} can't be in '${c.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(o=c.box?c.box:this.state.records.currentBox,c.box=o,c&&e===c.name&&null==a)return}if(a?.text==null&&(a={text:e,type:r}),(null==r||null==a.text)&&(a={text:e,type:r}),this.state.records.actors.set(t,{box:o,name:e,description:a.text,wrap:a.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:r??"participant"}),this.state.records.prevActor){let e=this.state.records.actors.get(this.state.records.prevActor);e&&(e.nextActor=t)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(t),this.state.records.prevActor=t}activationCount(t){let e,a=0;if(!t)return 0;for(e=0;ethis.activationCount(t??"")){let e=Error("Trying to inactivate an inactive participant ("+t+")");throw e.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},e}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:e,message:a?.text??"",wrap:a?.wrap??this.autoWrap(),type:r,activate:i,centralConnection:s??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(t=>t.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(t){return this.state.records.actors.get(t)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(t){this.state.records.wrapEnabled=t}extractWrap(t){if(void 0===t)return{};t=t.trim();let e=null!==/^:?wrap:/.exec(t)||null===/^:?nowrap:/.exec(t)&&void 0;return{cleanedText:(void 0===e?t:t.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:e}}autoWrap(){return void 0!==this.state.records.wrapEnabled?this.state.records.wrapEnabled:(0,o.D7)().sequence?.wrap??!1}clear(){this.state.reset(),(0,o.IU)()}parseMessage(t){let e=t.trim(),{wrap:a,cleanedText:r}=this.extractWrap(e),i={text:r,wrap:a};return c.R.debug(`parseMessage: ${JSON.stringify(i)}`),i}parseBoxData(t){let e=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t),a=e?.[1]?e[1].trim():"transparent",r=e?.[2]?e[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",a)||(a="transparent",r=t.trim());else{let e=new Option().style;e.color=a,e.color!==a&&(a="transparent",r=t.trim())}let{wrap:i,cleanedText:s}=this.extractWrap(r);return{text:s?(0,o.jZ)(s,(0,o.D7)()):void 0,color:a,wrap:i}}addNote(t,e,a){let r={actor:t,placement:e,message:a.text,wrap:a.wrap??this.autoWrap()},i=[].concat(t,t);this.state.records.notes.push(r),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[1],message:a.text,wrap:a.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:e})}addLinks(t,e){let a=this.getActor(t);try{let t=(0,o.jZ)(e.text,(0,o.D7)());t=(t=t.replace(/=/g,"=")).replace(/&/g,"&");let r=JSON.parse(t);this.insertLinks(a,r)}catch(t){c.R.error("error while parsing actor link text",t)}}addALink(t,e){let a=this.getActor(t);try{let t={},r=(0,o.jZ)(e.text,(0,o.D7)()),i=r.indexOf("@"),s=(r=(r=r.replace(/=/g,"=")).replace(/&/g,"&")).slice(0,i-1).trim(),n=r.slice(i+1).trim();t[s]=n,this.insertLinks(a,t)}catch(t){c.R.error("error while parsing actor link text",t)}}insertLinks(t,e){if(null==t.links)t.links=e;else for(let a in e)t.links[a]=e[a]}addProperties(t,e){let a=this.getActor(t);try{let t=(0,o.jZ)(e.text,(0,o.D7)()),r=JSON.parse(t);this.insertProperties(a,r)}catch(t){c.R.error("error while parsing actor properties text",t)}}insertProperties(t,e){if(null==t.properties)t.properties=e;else for(let a in e)t.properties[a]=e[a]}boxEnd(){this.state.records.currentBox=void 0}addDetails(t,e){let a=this.getActor(t),r=document.getElementById(e.text);try{let t=r.innerHTML,e=JSON.parse(t);e.properties&&this.insertProperties(a,e.properties),e.links&&this.insertLinks(a,e.links)}catch(t){c.R.error("error while parsing actor details text",t)}}getActorProperty(t,e){if(t?.properties!==void 0)return t.properties[e]}apply(t){if(Array.isArray(t))t.forEach(t=>{this.apply(t)});else switch(t.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":this.addActor(t.actor,t.actor,t.description,t.draw,t.config);break;case"createParticipant":if(this.state.records.actors.has(t.actor))throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=t.actor,this.addActor(t.actor,t.actor,t.description,t.draw,t.config),this.state.records.createdActors.set(t.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=t.actor,this.state.records.destroyedActors.set(t.actor,this.state.records.messages.length);break;case"activeStart":case"centralConnection":case"centralConnectionReverse":case"activeEnd":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"addNote":this.addNote(t.actor,t.placement,t.text);break;case"addLinks":this.addLinks(t.actor,t.text);break;case"addALink":this.addALink(t.actor,t.text);break;case"addProperties":this.addProperties(t.actor,t.text);break;case"addDetails":this.addDetails(t.actor,t.text);break;case"addMessage":if(this.state.records.lastCreated)if(t.to!==this.state.records.lastCreated)throw Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");else this.state.records.lastCreated=void 0;else if(this.state.records.lastDestroyed)if(t.to!==this.state.records.lastDestroyed&&t.from!==this.state.records.lastDestroyed)throw Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");else this.state.records.lastDestroyed=void 0;this.addSignal(t.from,t.to,t.msg,t.signalType,t.activate,t.centralConnection);break;case"boxStart":this.addBox(t.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"rectStart":this.addSignal(void 0,void 0,t.color,t.signalType);break;case"optStart":this.addSignal(void 0,void 0,t.optText,t.signalType);break;case"altStart":case"else":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"setAccTitle":(0,o.SV)(t.text);break;case"parStart":case"and":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,t.criticalText,t.signalType);break;case"option":this.addSignal(void 0,void 0,t.optionText,t.signalType);break;case"breakStart":this.addSignal(void 0,void 0,t.breakText,t.signalType)}}getConfig(){return(0,o.D7)().sequence}},O=(0,l.K)(t=>{let e=t.dropShadow??"none",{look:a}=(0,o.D7)();return`.actor {
    -    stroke: ${t.actorBorder};
    -    fill: ${t.actorBkg};
    -    stroke-width: ${t.strokeWidth??1};
    -  }
    -
    -  rect.actor.outer-path[data-look="neo"] {
    -      filter: ${e};
    -  }
    -
    -  rect.note[data-look="neo"] {
    -      stroke:${t.noteBorderColor};
    -      fill:${t.noteBkgColor};
    -      filter: ${e};
    -  }
    -
    -  text.actor > tspan {
    -    fill: ${t.actorTextColor};
    -    stroke: none;
    -  }
    -
    -  .actor-line {
    -    stroke: ${t.actorLineColor};
    -  }
    -
    -  .innerArc {
    -    stroke-width: 1.5;
    -    stroke-dasharray: none;
    -  }
    -
    -  .messageLine0 {
    -    stroke-width: 1.5;
    -    stroke-dasharray: none;
    -    stroke: ${t.signalColor};
    -  }
    -
    -  .messageLine1 {
    -    stroke-width: 1.5;
    -    stroke-dasharray: 2, 2;
    -    stroke: ${t.signalColor};
    -  }
    -
    -  [id$="-arrowhead"] path {
    -    fill: ${t.signalColor};
    -    stroke: ${t.signalColor};
    -  }
    -
    -  .sequenceNumber {
    -    fill: ${t.sequenceNumberColor};
    -  }
    -
    -  [id$="-sequencenumber"] {
    -    fill: ${t.signalColor};
    -  }
    -
    -  [id$="-crosshead"] path {
    -    fill: ${t.signalColor};
    -    stroke: ${t.signalColor};
    -  }
    -
    -  .messageText {
    -    fill: ${t.signalTextColor};
    -    stroke: none;
    -  }
    -
    -  .labelBox {
    -    stroke: ${t.labelBoxBorderColor};
    -    fill: ${t.labelBoxBkgColor};
    -    filter: ${"neo"===a?e:"none"};
    -  }
    -
    -  .labelText, .labelText > tspan {
    -    fill: ${t.labelTextColor};
    -    stroke: none;
    -  }
    -
    -  .loopText, .loopText > tspan {
    -    fill: ${t.loopTextColor};
    -    stroke: none;
    -  }
    -
    -  .sectionTitle, .sectionTitle > tspan {
    -    fill: ${t.loopTextColor};
    -    stroke: none;
    -  }
    -
    -  .loopLine {
    -    stroke-width: 2px;
    -    stroke-dasharray: 2, 2;
    -    stroke: ${t.labelBoxBorderColor};
    -    fill: ${t.labelBoxBorderColor};
    -  }
    -
    -  .note {
    -    //stroke: #decc93;
    -    stroke: ${t.noteBorderColor};
    -    fill: ${t.noteBkgColor};
    -  }
    -
    -  .noteText, .noteText > tspan {
    -    fill: ${t.noteTextColor};
    -    stroke: none;
    -    ${t.noteFontWeight?`font-weight: ${t.noteFontWeight};`:""}
    -  }
    -
    -  .activation0 {
    -    fill: ${t.activationBkgColor};
    -    stroke: ${t.activationBorderColor};
    -  }
    -
    -  .activation1 {
    -    fill: ${t.activationBkgColor};
    -    stroke: ${t.activationBorderColor};
    -  }
    -
    -  .activation2 {
    -    fill: ${t.activationBkgColor};
    -    stroke: ${t.activationBorderColor};
    -  }
    -
    -  .actorPopupMenu {
    -    position: absolute;
    -  }
    -
    -  .actorPopupMenuPanel {
    -    position: absolute;
    -    fill: ${t.actorBkg};
    -    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    -    filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
    -}
    -  .actor-man circle, line {
    -    fill: ${t.actorBkg};
    -    stroke-width: 2px;
    -  }
    -
    -  g rect.rect {
    -    filter: ${e};
    -    stroke: ${t.nodeBorder};
    -  }
    -`},"getStyles"),y="actor-top",x="actor-bottom",b="actor-box",m="actor-man",I=new Set(["redux-color","redux-dark-color"]),f=(0,l.K)(function(t,e){let a=(0,s.tk)(t,e);return"neo"===(0,o.zj)().look&&a.attr("data-look","neo"),a},"drawRect"),R=(0,l.K)(function(t,e,a,r,i){if(void 0===e.links||null===e.links||0===Object.keys(e.links).length)return{height:0,width:0};let s=e.links,n=e.actorCnt,o=e.rectData;var c="none";i&&(c="block !important");let l=t.append("g");l.attr("id","actor"+n+"_popup"),l.attr("class","actorPopupMenu"),l.attr("display",c);var d="";void 0!==o.class&&(d=" "+o.class);let p=o.width>a?o.width:a,T=l.append("rect");if(T.attr("class","actorPopupMenuPanel"+d),T.attr("x",o.x),T.attr("y",o.height),T.attr("fill",o.fill),T.attr("stroke",o.stroke),T.attr("width",p),T.attr("height",o.height),T.attr("rx",o.rx),T.attr("ry",o.ry),null!=s){var E=20;for(let t in s){var g=l.append("a"),u=(0,h.J)(s[t]);g.attr("xlink:href",u),g.attr("target","_blank"),tr(r)(t,g,o.x+10,o.height+E,p,20,{class:"actor"},r),E+=30}}return T.attr("height",E),{height:o.height+E,width:p}},"drawPopup"),L=(0,l.K)(function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),P=(0,l.K)(async function(t,e,a=null){let r=t.append("foreignObject"),i=await (0,o.dj)(e.text,(0,o.zj)()),s=r.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(i).node().getBoundingClientRect();if(r.attr("height",Math.round(s.height)).attr("width",Math.round(s.width)),"noteText"===e.class){let a=t.node().firstChild;a.setAttribute("height",s.height+2*e.textMargin);let i=a.getBBox();r.attr("x",Math.round(i.x+i.width/2-s.width/2)).attr("y",Math.round(i.y+i.height/2-s.height/2))}else if(a){let{startx:t,stopx:i,starty:n}=a;if(t>i){let e=t;t=i,i=e}r.attr("x",Math.round(t+Math.abs(t-i)/2-s.width/2)),"loopText"===e.class?r.attr("y",Math.round(n)):r.attr("y",Math.round(n-s.height))}return[r]},"drawKatex"),N=(0,l.K)(function(t,e){let a=0,r=0,i=e.text.split(o.Y2.lineBreakRegex),[s,c]=(0,n.I5)(e.fontSize),d=[],h=0,p=(0,l.K)(()=>e.y,"yfunc");if(void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0)switch(e.valign){case"top":case"start":p=(0,l.K)(()=>Math.round(e.y+e.textMargin),"yfunc");break;case"middle":case"center":p=(0,l.K)(()=>Math.round(e.y+(a+r+e.textMargin)/2),"yfunc");break;case"bottom":case"end":p=(0,l.K)(()=>Math.round(e.y+(a+r+2*e.textMargin)-e.textMargin),"yfunc")}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle"}for(let[o,l]of i.entries()){void 0!==e.textMargin&&0===e.textMargin&&void 0!==s&&(h=o*s);let i=t.append("text");i.attr("x",e.x),i.attr("y",p()),void 0!==e.anchor&&i.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),void 0!==e.fontFamily&&i.style("font-family",e.fontFamily),void 0!==c&&i.style("font-size",c),void 0!==e.fontWeight&&i.style("font-weight",e.fontWeight),void 0!==e.fill&&i.attr("fill",e.fill),void 0!==e.class&&i.attr("class",e.class),void 0!==e.dy?i.attr("dy",e.dy):0!==h&&i.attr("dy",h);let T=l||n.pe;if(e.tspan){let t=i.append("tspan");t.attr("x",e.x),void 0!==e.fill&&t.attr("fill",e.fill),t.text(T)}else i.text(T);void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0&&(r+=(i._groups||i)[0][0].getBBox().height,a=r),d.push(i)}return d},"drawText"),D=(0,l.K)(function(t,e){function a(t,e,a,r,i){return t+","+e+" "+(t+a)+","+e+" "+(t+a)+","+(e+r-i)+" "+(t+a-1.2*i)+","+(e+r)+" "+t+","+(e+r)}(0,l.K)(a,"genPoints");let r=t.append("polygon");return r.attr("points",a(e.x,e.y,e.width,e.height,7)),r.attr("class","labelBox"),e.y=e.y+e.height/2,N(t,e),r},"drawLabel"),w=-1,S=(0,l.K)((t,e,a,r)=>{t.select&&a.forEach(a=>{let i=e.get(a),s=t.select("#actor"+i.actorCnt);!r.mirrorActors&&i.stopy?s.attr("y2",i.stopy+i.height/2):r.mirrorActors&&s.attr("y2",i.stopy)})},"fixLifeLineHeights"),A=(0,l.K)(function(t,e,a,r,i){let n=r?e.stopy:e.starty,c=e.x+e.width/2,l=n+e.height,{look:d,theme:h,themeVariables:p}=a,{bkgColorArray:T,borderColorArray:E}=p,g=t.append("g").lower();var u=g;r||(w++,Object.keys(e.links||{}).length&&!a.forceMenus&&u.attr("onclick",L(`actor${w}_popup`)).attr("cursor","pointer"),u.append("line").attr("id","actor"+w).attr("x1",c).attr("y1",l).attr("x2",c).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),u=g.append("g"),e.actorCnt=w,null!=e.links&&u.attr("id","root-"+w),"neo"===d&&u.attr("data-look","neo"));let _=(0,s.PB)();var O="actor";e.properties?.class?O=e.properties.class:_.fill="#eaeaea",r?O+=` ${x}`:O+=` ${y}`,_.x=e.x,_.y=n,_.width=e.width,_.height=e.height,_.class=O,_.rx=3,_.ry=3,_.name=e.name,"neo"===d&&(_.rx=6,_.ry=6);let m=f(u,_),R=i.get(e.name)??0;if(I.has(h)&&(m.style("stroke",E[R%E.length]),m.style("fill",T[R%E.length])),"neo"===d&&m.attr("filter","url(#drop-shadow)"),e.rectData=_,e.properties?.icon){let t=e.properties.icon.trim();"@"===t.charAt(0)?(0,s.CP)(u,_.x+_.width-20,_.y+10,t.substr(1)):(0,s.aC)(u,_.x+_.width-20,_.y+10,t)}r||(u.attr("data-et","participant"),u.attr("data-type","participant"),u.attr("data-id",e.name)),ta(a,(0,o.Wi)(e.description))(e.description,u,_.x,_.y,_.width,_.height,{class:`actor ${b}`},a);let P=e.height;if(m.node){let t=m.node().getBBox();e.height=t.height,P=t.height}return P},"drawActorTypeParticipant"),k=(0,l.K)(function(t,e,a,r,i){let n=r?e.stopy:e.starty,c=e.x+e.width/2,l=n+e.height,{look:d,theme:h,themeVariables:p}=a,{bkgColorArray:T,borderColorArray:E}=p,g=t.append("g").lower();var u=g;r||(w++,Object.keys(e.links||{}).length&&!a.forceMenus&&u.attr("onclick",L(`actor${w}_popup`)).attr("cursor","pointer"),u.append("line").attr("id","actor"+w).attr("x1",c).attr("y1",l).attr("x2",c).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),u=g.append("g"),e.actorCnt=w,null!=e.links&&u.attr("id","root-"+w),"neo"===d&&u.attr("data-look","neo"));let _=(0,s.PB)();var O="actor";e.properties?.class?O=e.properties.class:_.fill="#eaeaea",r?O+=` ${x}`:O+=` ${y}`,_.x=e.x,_.y=n,_.width=e.width,_.height=e.height,_.class=O,_.name=e.name;let m={..._,x:_.x+-6,y:_.y+6,class:"actor"},R=f(u,_),P=f(u,m);e.rectData=_,"neo"===d&&u.attr("filter","url(#drop-shadow)");let N=i.get(e.name)??0;if(I.has(h)&&(R.style("stroke",E[N%E.length]),R.style("fill",T[N%E.length]),P.style("stroke",E[N%E.length]),P.style("fill",T[N%E.length])),e.properties?.icon){let t=e.properties.icon.trim();"@"===t.charAt(0)?(0,s.CP)(u,_.x+_.width-20,_.y+10,t.substr(1)):(0,s.aC)(u,_.x+_.width-20,_.y+10,t)}ta(a,(0,o.Wi)(e.description))(e.description,u,_.x-6,_.y+6,_.width,_.height,{class:`actor ${b}`},a);let D=e.height;if(R.node){let t=R.node().getBBox();e.height=t.height,D=t.height}return r||(u.attr("data-et","participant"),u.attr("data-type","collections"),u.attr("data-id",e.name)),D},"drawActorTypeCollections"),M=(0,l.K)(function(t,e,a,r,i){let n=r?e.stopy:e.starty,c=e.x+e.width/2,l=n+e.height,{look:d,theme:h,themeVariables:p}=a,{bkgColorArray:T,borderColorArray:E}=p,g=t.append("g").lower(),u=g;r||(w++,Object.keys(e.links||{}).length&&!a.forceMenus&&u.attr("onclick",L(`actor${w}_popup`)).attr("cursor","pointer"),u.append("line").attr("id","actor"+w).attr("x1",c).attr("y1",l).attr("x2",c).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),u=g.append("g"),e.actorCnt=w,null!=e.links&&u.attr("id","root-"+w),"neo"===d&&u.attr("data-look","neo"));let _=(0,s.PB)(),O="actor";e.properties?.class?O=e.properties.class:_.fill="#eaeaea",r?O+=` ${x}`:O+=` ${y}`,u.attr("class",O),_.x=e.x,_.y=n,_.width=e.width,_.height=e.height,_.name=e.name;let m=_.height/2,f=m/(2.5+_.height/50),R=u.append("g"),P=u.append("g"),N=`M ${_.x},${_.y+m}
    -    a ${f},${m} 0 0 0 0,${_.height}
    -    h ${_.width-2*f}
    -    a ${f},${m} 0 0 0 0,-${_.height}
    -    Z
    -  `;R.append("path").attr("d",N),P.append("path").attr("d",`M ${_.x},${_.y+m}
    -      a ${f},${m} 0 0 0 0,${_.height}`),R.attr("transform",`translate(${f}, ${-(_.height/2)})`),P.attr("transform",`translate(${_.width-f}, ${-_.height/2})`),e.rectData=_,"neo"===d&&R.attr("filter","url(#drop-shadow)");let D=i.get(e.name)??0;if(I.has(h)&&(R.style("stroke",E[D%E.length]),R.style("fill",T[D%E.length]),P.style("stroke",E[D%E.length]),P.style("fill",T[D%E.length])),e.properties?.icon){let t=e.properties.icon.trim(),a=_.x+_.width-20,r=_.y+10;"@"===t.charAt(0)?(0,s.CP)(u,a,r,t.substr(1)):(0,s.aC)(u,a,r,t)}ta(a,(0,o.Wi)(e.description))(e.description,u,_.x,_.y,_.width,_.height,{class:`actor ${b}`},a);let S=e.height,A=R.select("path:last-child");if(A.node()){let t=A.node().getBBox();e.height=t.height,S=t.height}return r||(u.attr("data-et","participant"),u.attr("data-type","queue"),u.attr("data-id",e.name)),S},"drawActorTypeQueue"),C=(0,l.K)(function(t,e,a,r,i,n){let c=r?e.stopy:e.starty,l=e.x+e.width/2,d=c+75,{look:h,theme:p,themeVariables:T}=a,{bkgColorArray:E,borderColorArray:g,actorBorder:u,actorBkg:_}=T,O=t.append("g").lower();r||(w++,O.append("line").attr("id","actor"+w).attr("x1",l).attr("y1",d).attr("x2",l).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=w);let b=t.append("g"),f=m;r?f+=` ${x}`:f+=` ${y}`,b.attr("class",f),b.attr("name",e.name);let R=(0,s.PB)();R.x=e.x,R.y=c,R.fill="#eaeaea",R.width=e.width,R.height=e.height,R.class="actor";let L=e.x+e.width/2,P=c+32;b.append("defs").append("marker").attr("id",i+"-filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").attr("stroke-width",1.2).append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),b.append("circle").attr("cx",L).attr("cy",P).attr("r",22).attr("filter",`${"neo"===h?"url(#drop-shadow)":""}`),b.append("line").attr("marker-end","url(#"+i+"-filled-head-control)").attr("transform",`translate(${L}, ${P-22})`);let N=n.get(e.name)??0;return I.has(p)?(b.style("stroke",g[N%g.length]),b.style("fill",E[N%g.length])):(b.style("stroke",u),b.style("fill",_)),e.height=b.node().getBBox().height+2*(a?.sequence?.labelBoxHeight??0),ta(a,(0,o.Wi)(e.description))(e.description,b,R.x,R.y+22+(r?5:12),R.width,R.height,{class:`actor ${m}`},a),r||(b.attr("data-et","participant"),b.attr("data-type","control"),b.attr("data-id",e.name)),e.height},"drawActorTypeControl"),v=(0,l.K)(function(t,e,a,r,i){let n=r?e.stopy:e.starty,c=e.x+e.width/2,l=n+75,{look:d,theme:h,themeVariables:p}=a,{bkgColorArray:T,borderColorArray:E}=p,g=t.append("g").lower(),u=t.append("g"),_="actor";r?_+=` ${x}`:_+=` ${y}`,u.attr("class",_),u.attr("name",e.name);let O=(0,s.PB)();O.x=e.x,O.y=n,O.fill="#eaeaea",O.width=e.width,O.height=e.height,O.class="actor";let b=e.x+e.width/2,f=n+(r?10:25);u.append("circle").attr("cx",b).attr("cy",f).attr("r",22).attr("width",e.width).attr("height",e.height),u.append("line").attr("x1",b-22).attr("x2",b+22).attr("y1",f+22).attr("y2",f+22).attr("stroke-width",2),"neo"===d&&u.attr("filter","url(#drop-shadow)");let R=i.get(e.name)??0;return I.has(h)&&(u.style("stroke",E[R%E.length]),u.style("fill",T[R%E.length])),e.height=u.node().getBBox().height+(a?.sequence?.labelBoxHeight??0),r||(w++,g.append("line").attr("id","actor"+w).attr("x1",c).attr("y1",l).attr("x2",c).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=w),ta(a,(0,o.Wi)(e.description))(e.description,u,O.x,O.y+(r?15:30),O.width,O.height,{class:`actor ${m}`},a),r?u.attr("transform","translate(0, 22)"):(u.attr("transform","translate(0, 6)"),u.attr("data-et","participant"),u.attr("data-type","entity"),u.attr("data-id",e.name)),e.height},"drawActorTypeEntity"),Y=(0,l.K)(function(t,e,a,r,i){let n=r?e.stopy:e.starty,c=e.x+e.width/2,l=n+e.height+2*a.boxTextMargin,{theme:d,themeVariables:h,look:p}=a,{bkgColorArray:T,borderColorArray:E,actorBorder:g}=h,u=t.append("g").lower(),_=u;r||(w++,Object.keys(e.links||{}).length&&!a.forceMenus&&_.attr("onclick",L(`actor${w}_popup`)).attr("cursor","pointer"),_.append("line").attr("id","actor"+w).attr("x1",c).attr("y1",l).attr("x2",c).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),_=u.append("g"),e.actorCnt=w,null!=e.links&&_.attr("id","root-"+w),"neo"===p&&_.attr("data-look","neo"));let O=(0,s.PB)(),m="actor";e.properties?.class?m=e.properties.class:O.fill="#eaeaea",r?m+=` ${x}`:m+=` ${y}`,O.x=e.x,O.y=n,O.width=e.width,O.height=e.height,O.class=m,O.name=e.name,O.x=e.x,O.y=n;let f=O.width/3,R=O.width/3,P=f/2,N=P/(2.5+f/50),D=_.append("g");D.attr("class",m);let S=`
    -  M ${O.x},${O.y+N}
    -  a ${P},${N} 0 0 0 ${f},0
    -  a ${P},${N} 0 0 0 -${f},0
    -  l 0,${R-2*N}
    -  a ${P},${N} 0 0 0 ${f},0
    -  l 0,-${R-2*N}
    -`;D.append("path").attr("d",S),"neo"===p&&D.attr("filter","url(#drop-shadow)");let A=i.get(e.name)??0;I.has(d)?(D.style("stroke",E[A%E.length]),D.style("fill",T[A%E.length])):D.style("stroke",g),D.attr("transform",`translate(${f}, ${N})`),e.rectData=O,ta(a,(0,o.Wi)(e.description))(e.description,_,O.x,O.y+35,O.width,O.height,{class:`actor ${b}`},a);let k=D.select("path:last-child");return k.node()&&(e.height=k.node().getBBox().height+(a.sequence.labelBoxHeight??0)),r||(_.attr("data-et","participant"),_.attr("data-type","database"),_.attr("data-id",e.name)),e.height},"drawActorTypeDatabase"),B=(0,l.K)(function(t,e,a,r,i){let n=r?e.stopy:e.starty,c=e.x+e.width/2,l=n+80,d=t.append("g").lower(),{look:h,theme:p,themeVariables:T}=a,{bkgColorArray:E,borderColorArray:g,actorBorder:u}=T;r||(w++,d.append("line").attr("id","actor"+w).attr("x1",c).attr("y1",l).attr("x2",c).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=w);let _=t.append("g"),O=m;r?O+=` ${x}`:O+=` ${y}`,_.attr("class",O),_.attr("name",e.name);let b=(0,s.PB)();b.x=e.x,b.y=n,b.fill="#eaeaea",b.width=e.width,b.height=e.height,b.class="actor",_.append("line").attr("id","actor-man-torso"+w).attr("x1",e.x+e.width/2-55).attr("y1",n+12).attr("x2",e.x+e.width/2-15).attr("y2",n+12),_.append("line").attr("id","actor-man-arms"+w).attr("x1",e.x+e.width/2-55).attr("y1",n+2).attr("x2",e.x+e.width/2-55).attr("y2",n+22),_.append("circle").attr("cx",e.x+e.width/2).attr("cy",n+12).attr("r",22),"neo"===h&&_.attr("filter","url(#drop-shadow)");let f=i.get(e.name)??0;return I.has(p)?(_.style("stroke",g[f%g.length]),_.style("fill",E[f%g.length])):_.style("stroke",u),e.height=_.node().getBBox().height+(a.sequence.labelBoxHeight??0),ta(a,(0,o.Wi)(e.description))(e.description,_,b.x,b.y+15,b.width,b.height,{class:`actor ${m}`},a),_.attr("transform","translate(0,21)"),r||(_.attr("data-et","participant"),_.attr("data-type","boundary"),_.attr("data-id",e.name)),e.height},"drawActorTypeBoundary"),K=(0,l.K)(function(t,e,a,r,i){let n=r?e.stopy:e.starty,c=e.x+e.width/2,{look:l,theme:d,themeVariables:h}=a,{bkgColorArray:p,borderColorArray:T,actorBorder:E}=h,g=t.append("g").lower();r||(w++,g.append("line").attr("id","actor"+w).attr("x1",c).attr("y1",n+80).attr("x2",c).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name).attr("data-et","life-line").attr("data-id",e.name),e.actorCnt=w);let u=t.append("g"),_=m;r?_+=` ${x}`:_+=` ${y}`,u.attr("class",_),u.attr("name",e.name),r||u.attr("data-et","participant").attr("data-type","actor").attr("data-id",e.name);let O="neo"===l?.5:1,b="neo"===l?n+(1-O)*30:n;u.append("line").attr("id","actor-man-torso"+w).attr("x1",c).attr("y1",b+25*O).attr("x2",c).attr("y2",b+45*O),u.append("line").attr("id","actor-man-arms"+w).attr("x1",c-18*O).attr("y1",b+33*O).attr("x2",c+18*O).attr("y2",b+33*O),u.append("line").attr("x1",c-18*O).attr("y1",b+60*O).attr("x2",c).attr("y2",b+45*O),u.append("line").attr("x1",c).attr("y1",b+45*O).attr("x2",c+16*O).attr("y2",b+60*O);let f=u.append("circle");f.attr("cx",e.x+e.width/2),f.attr("cy",b+10*O),f.attr("r",15*O),f.attr("width",e.width*O),f.attr("height",e.height*O),e.height=u.node().getBBox().height;let R=(0,s.PB)();R.x=e.x,R.y=b,R.fill="#eaeaea",R.width=e.width,R.height=e.height/O,R.class="actor",R.rx=3,R.ry=3;let L=i.get(e.name)??0;return I.has(d)?(u.style("stroke",T[L%T.length]),u.style("fill",p[L%T.length])):u.style("stroke",E),ta(a,(0,o.Wi)(e.description))(e.description,u,R.x,b+35*O-10*("neo"===l),R.width,R.height,{class:`actor ${m}`},a),e.height},"drawActorTypeActor"),$=(0,l.K)(async function(t,e,a,r,i,s,n){let o=n??new Map([...s.db.getActors().values()].map((t,e)=>[t.name,e]));switch(e.type){case"actor":return await K(t,e,a,r,o);case"participant":return await A(t,e,a,r,o);case"boundary":return await B(t,e,a,r,o);case"control":return await C(t,e,a,r,i,o);case"entity":return await v(t,e,a,r,o);case"database":return await Y(t,e,a,r,o);case"collections":return await k(t,e,a,r,o);case"queue":return await M(t,e,a,r,o)}},"drawActor"),V=(0,l.K)(function(t,e,a){let r=t.append("g");H(r,e),e.name&&ta(a)(e.name,r,e.x,e.y+a.boxTextMargin+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},a),r.lower()},"drawBox"),W=(0,l.K)(function(t){return t.append("g")},"anchorElement"),F=(0,l.K)(function(t,e,a,r,i,n,o){let{theme:c,themeVariables:l}=r,{bkgColorArray:d,borderColorArray:h,mainBkg:p}=l,T=(0,s.PB)(),E=e.anchored,g=e.actor;T.x=e.startx,T.y=e.starty,T.class="activation"+i%3,T.width=e.stopx-e.startx,T.height=a-e.starty;let u=f(E,T),_=(o??new Map([...n.db.getActors().values()].map((t,e)=>[t.name,e]))).get(g)??0;I.has(c)&&(u.style("stroke",h[_%h.length]),u.style("fill",d[_%h.length]??p))},"drawActivation"),q=(0,l.K)(async function(t,e,a,r,i){let{boxMargin:n,boxTextMargin:c,labelBoxHeight:d,labelBoxWidth:h,messageFontFamily:p,messageFontSize:T,messageFontWeight:E}=r,g=t.append("g").attr("data-et","control-structure").attr("data-id","i"+i.id),u=(0,l.K)(function(t,e,a,r){return g.append("line").attr("x1",t).attr("y1",e).attr("x2",a).attr("y2",r).attr("class","loopLine")},"drawLoopLine");u(e.startx,e.starty,e.stopx,e.starty),u(e.stopx,e.starty,e.stopx,e.stopy),u(e.startx,e.stopy,e.stopx,e.stopy),u(e.startx,e.starty,e.startx,e.stopy),void 0!==e.sections&&e.sections.forEach(function(t){u(e.startx,t.y,e.stopx,t.y).style("stroke-dasharray","3, 3")});let _=(0,s.HT)();_.text=a,_.x=e.startx,_.y=e.starty,_.fontFamily=p,_.fontSize=T,_.fontWeight=E,_.anchor="middle",_.valign="middle",_.tspan=!1,_.width=Math.max(h??0,50),_.height=d+15*("neo"===r.look)||20,_.textMargin=c,_.class="labelText",D(g,_),(_=tt()).text=e.title,_.x=e.startx+h/2+(e.stopx-e.startx)/2,_.y=e.starty+n+c,_.anchor="middle",_.valign="middle",_.textMargin=c,_.class="loopText",_.fontFamily=p,_.fontSize=T,_.fontWeight=E,_.wrap=!0;let O=(0,o.Wi)(_.text)?await P(g,_,e):N(g,_);if(void 0!==e.sectionTitles){for(let[t,a]of Object.entries(e.sectionTitles))if(a.message){_.text=a.message,_.x=e.startx+(e.stopx-e.startx)/2,_.y=e.sections[t].y+n+c,_.class="sectionTitle",_.anchor="middle",_.valign="middle",_.tspan=!1,_.fontFamily=p,_.fontSize=T,_.fontWeight=E,_.wrap=e.wrap,(0,o.Wi)(_.text)?(e.starty=e.sections[t].y,await P(g,_,e)):N(g,_);let r=Math.round(O.map(t=>(t._groups||t)[0][0].getBBox().height).reduce((t,e)=>t+e));e.sections[t].height+=r-(n+c)}}return e.height=Math.round(e.stopy-e.starty),g},"drawLoop"),H=(0,l.K)(function(t,e){(0,s.lC)(t,e)},"drawBackgroundRect"),z=(0,l.K)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),j=(0,l.K)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),U=(0,l.K)(function(t,e){t.append("defs").append("symbol").attr("id",e+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),G=(0,l.K)(function(t,e){t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),X=(0,l.K)(function(t,e){t.append("defs").append("marker").attr("id",e+"-filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),Z=(0,l.K)(function(t,e){t.append("defs").append("marker").attr("id",e+"-sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),J=(0,l.K)(function(t,e){t.append("defs").append("marker").attr("id",e+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),Q=(0,l.K)(function(t,e){let{theme:a}=e;t.append("defs").append("filter").attr("id","drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${"redux"===a||"redux-color"===a?"#000000":"#FFFFFF"}`)},"insertDropShadow"),tt=(0,l.K)(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),te=(0,l.K)(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),ta=function(){function t(t,e,a,r,s,n,o){i(e.append("text").attr("x",a+s/2).attr("y",r+n/2+5).style("text-anchor","middle").text(t),o)}function e(t,e,a,r,s,c,l,d){let{actorFontSize:h,actorFontFamily:p,actorFontWeight:T}=d,[E,g]=(0,n.I5)(h),u=t.split(o.Y2.lineBreakRegex);for(let t=0;tt.height||0))+(0===this.loops.length?0:this.loops.map(t=>t.height||0).reduce((t,e)=>t+e))+(0===this.messages.length?0:this.messages.map(t=>t.height||0).reduce((t,e)=>t+e))+(0===this.notes.length?0:this.notes.map(t=>t.height||0).reduce((t,e)=>t+e))},"getHeight"),clear:(0,l.K)(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:(0,l.K)(function(t){this.boxes.push(t)},"addBox"),addActor:(0,l.K)(function(t){this.actors.push(t)},"addActor"),addLoop:(0,l.K)(function(t){this.loops.push(t)},"addLoop"),addMessage:(0,l.K)(function(t){this.messages.push(t)},"addMessage"),addNote:(0,l.K)(function(t){this.notes.push(t)},"addNote"),lastActor:(0,l.K)(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:(0,l.K)(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:(0,l.K)(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:(0,l.K)(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:(0,l.K)(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,tb((0,o.D7)())},"init"),updateVal:(0,l.K)(function(t,e,a,r){void 0===t[e]?t[e]=a:t[e]=r(a,t[e])},"updateVal"),updateBounds:(0,l.K)(function(t,e,a,r){let i=this,s=0;function n(n){return(0,l.K)(function(o){s++;let c=i.sequenceItems.length-s+1;i.updateVal(o,"starty",e-c*tl.boxMargin,Math.min),i.updateVal(o,"stopy",r+c*tl.boxMargin,Math.max),i.updateVal(td.data,"startx",t-c*tl.boxMargin,Math.min),i.updateVal(td.data,"stopx",a+c*tl.boxMargin,Math.max),"activation"!==n&&(i.updateVal(o,"startx",t-c*tl.boxMargin,Math.min),i.updateVal(o,"stopx",a+c*tl.boxMargin,Math.max),i.updateVal(td.data,"starty",e-c*tl.boxMargin,Math.min),i.updateVal(td.data,"stopy",r+c*tl.boxMargin,Math.max))},"updateItemBounds")}(0,l.K)(n,"updateFn"),this.sequenceItems.forEach(n()),this.activations.forEach(n("activation"))},"updateBounds"),insert:(0,l.K)(function(t,e,a,r){let i=o.Y2.getMin(t,a),s=o.Y2.getMax(t,a),n=o.Y2.getMin(e,r),c=o.Y2.getMax(e,r);this.updateVal(td.data,"startx",i,Math.min),this.updateVal(td.data,"starty",n,Math.min),this.updateVal(td.data,"stopx",s,Math.max),this.updateVal(td.data,"stopy",c,Math.max),this.updateBounds(i,n,s,c)},"insert"),newActivation:(0,l.K)(function(t,e,a){let r=a.get(t.from),i=tm(t.from).length||0,s=r.x+r.width/2+(i-1)*tl.activationWidth/2;this.activations.push({startx:s,starty:this.verticalPos+2,stopx:s+tl.activationWidth,stopy:void 0,actor:t.from,anchored:tc.anchorElement(e)})},"newActivation"),endActivation:(0,l.K)(function(t){let e=this.activations.map(function(t){return t.actor}).lastIndexOf(t.from);return this.activations.splice(e,1)[0]},"endActivation"),createLoop:(0,l.K)(function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},"createLoop"),newLoop:(0,l.K)(function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},"newLoop"),endLoop:(0,l.K)(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:(0,l.K)(function(){return!!this.sequenceItems.length&&this.sequenceItems[this.sequenceItems.length-1].overlap},"isLoopOverlap"),addSectionToLoop:(0,l.K)(function(t){let e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:td.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},"addSectionToLoop"),saveVerticalPos:(0,l.K)(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:(0,l.K)(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:(0,l.K)(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=o.Y2.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:(0,l.K)(function(){return this.verticalPos},"getVerticalPos"),getBounds:(0,l.K)(function(){return{bounds:this.data,models:this.models}},"getBounds")},th=(0,l.K)(async function(t,e,a){td.bumpVerticalPos(tl.boxMargin),e.height=tl.boxMargin,e.starty=td.getVerticalPos();let r=(0,s.PB)();r.x=e.startx,r.y=e.starty,r.width=e.width||tl.width,r.class="note";let i=t.append("g");i.attr("data-et","note"),i.attr("data-id","i"+a);let n=tc.drawRect(i,r),c=(0,s.HT)();c.x=e.startx,c.y=e.starty,c.width=r.width,c.dy="1em",c.text=e.message,c.class="noteText",c.fontFamily=tl.noteFontFamily,c.fontSize=tl.noteFontSize,c.fontWeight=tl.noteFontWeight,c.anchor=tl.noteAlign,c.textMargin=tl.noteMargin,c.valign="center";let l=Math.round(((0,o.Wi)(c.text)?await P(i,c):N(i,c)).map(t=>(t._groups||t)[0][0].getBBox().height).reduce((t,e)=>t+e));n.attr("height",l+2*tl.noteMargin),e.height+=l+2*tl.noteMargin,td.bumpVerticalPos(l+2*tl.noteMargin),e.stopy=e.starty+l+2*tl.noteMargin,e.stopx=e.startx+r.width,td.insert(e.startx,e.starty,e.stopx,e.stopy),td.models.addNote(e)},"drawNote"),tp=(0,l.K)(function(t,e,a,r,i,s,n){let o=r.db.getActors(),c=o.get(e.from),d=o.get(e.to),h=a.sequenceVisible,p=c.x+c.width/2,T=d.x+d.width/2,E=p<=T,g=tk(e,r),u=t.append("g"),_=(0,l.K)((t,e)=>{let a=t?16.5:-16.5;return e?-a:a},"getCircleOffset"),O=(0,l.K)(t=>{u.append("circle").attr("cx",t).attr("cy",n).attr("r",5).attr("width",10).attr("height",10)},"drawCircle"),{CENTRAL_CONNECTION:y,CENTRAL_CONNECTION_REVERSE:x,CENTRAL_CONNECTION_DUAL:b}=r.db.LINETYPE;if(h)switch(e.centralConnection){case y:g&&(T+=_(E,!0));break;case x:g||(p+=_(E,!1));break;case b:g?T+=_(E,!0):p+=_(E,!1)}switch(e.centralConnection){case y:O(T);break;case x:O(p);break;case b:O(p),O(T)}},"drawCentralConnection"),tT=(0,l.K)(t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),"messageFont"),tE=(0,l.K)(t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),"noteFont"),tg=(0,l.K)(t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}),"actorFont");async function tu(t,e){let a;td.bumpVerticalPos(10);let{startx:r,stopx:i,message:s}=e,c=o.Y2.splitBreaks(s).length,l=(0,o.Wi)(s),d=l?await (0,o.Dl)(s,(0,o.D7)()):n._K.calculateTextDimensions(s,tT(tl));if(!l){let t=d.height/c;e.height+=t,td.bumpVerticalPos(t)}let h=d.height-10,p=d.width;if(r===i){a=td.getVerticalPos()+h,tl.rightAngles||(h+=tl.boxMargin,a=td.getVerticalPos()+h),h+=30;let t=o.Y2.getMax(p/2,tl.width/2);td.insert(r-t,td.getVerticalPos()-10+h,i+t,td.getVerticalPos()+30+h)}else h+=tl.boxMargin,a=td.getVerticalPos()+h,td.insert(r,a-10,i,a);return td.bumpVerticalPos(h),e.height+=h,e.stopy=e.starty+e.height,td.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),a}(0,l.K)(tu,"boundMessage");var t_=(0,l.K)(async function(t,e,a,r,i,c){let l,{startx:d,stopx:h,starty:p,message:T,type:E,sequenceIndex:g,sequenceVisible:u}=e,_=n._K.calculateTextDimensions(T,tT(tl)),O=(0,s.HT)();O.x=Math.min(d,h),O.y=p+10,O.width=Math.abs(h-d),O.class="messageText",O.dy="1em",O.text=T,O.fontFamily=tl.messageFontFamily,O.fontSize=tl.messageFontSize,O.fontWeight=tl.messageFontWeight,O.anchor=tl.messageAlign,O.valign="center",O.textMargin=tl.wrapPadding,O.tspan=!1,(0,o.Wi)(O.text)?await P(t,O,{startx:d,stopx:h,starty:a}):N(t,O);let y=_.width;if(d===h){let s=u||tl.showSequenceNumbers,n=tk(i,r),c=tM(i,r),p=d+(s&&(n||c)?10:0);l=tl.rightAngles?t.append("path").attr("d",`M  ${p},${a} H ${d+o.Y2.getMax(tl.width/2,y/2)} V ${a+25} H ${d}`):t.append("path").attr("d","M "+p+","+a+" C "+(p+60)+","+(a-10)+" "+(d+60)+","+(a+30)+" "+d+","+(a+20)),tS(i,r)&&tp(t,i,e,r,d,h,a)}else(l=t.append("line")).attr("x1",d),l.attr("y1",a),l.attr("x2",h),l.attr("y2",a),tS(i,r)&&tp(t,i,e,r,d,h,a);E===r.db.LINETYPE.DOTTED||E===r.db.LINETYPE.DOTTED_CROSS||E===r.db.LINETYPE.DOTTED_POINT||E===r.db.LINETYPE.DOTTED_OPEN||E===r.db.LINETYPE.BIDIRECTIONAL_DOTTED||E===r.db.LINETYPE.SOLID_TOP_DOTTED||E===r.db.LINETYPE.SOLID_BOTTOM_DOTTED||E===r.db.LINETYPE.STICK_TOP_DOTTED||E===r.db.LINETYPE.STICK_BOTTOM_DOTTED||E===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||E===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||E===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||E===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(l.style("stroke-dasharray","3, 3"),l.attr("class","messageLine1")):l.attr("class","messageLine0"),l.attr("data-et","message"),l.attr("data-id","i"+e.id),l.attr("data-from",e.from),l.attr("data-to",e.to);let x="";if(tl.arrowMarkerAbsolute&&(x=(0,o.ID)(!0)),l.attr("stroke-width",2),l.attr("stroke","none"),l.style("fill","none"),(E===r.db.LINETYPE.SOLID_TOP||E===r.db.LINETYPE.SOLID_TOP_DOTTED)&&l.attr("marker-end","url("+x+"#"+c+"-solidTopArrowHead)"),(E===r.db.LINETYPE.SOLID_BOTTOM||E===r.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&l.attr("marker-end","url("+x+"#"+c+"-solidBottomArrowHead)"),(E===r.db.LINETYPE.STICK_TOP||E===r.db.LINETYPE.STICK_TOP_DOTTED)&&l.attr("marker-end","url("+x+"#"+c+"-stickTopArrowHead)"),(E===r.db.LINETYPE.STICK_BOTTOM||E===r.db.LINETYPE.STICK_BOTTOM_DOTTED)&&l.attr("marker-end","url("+x+"#"+c+"-stickBottomArrowHead)"),(E===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||E===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&l.attr("marker-start","url("+x+"#"+c+"-solidBottomArrowHead)"),(E===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||E===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&l.attr("marker-start","url("+x+"#"+c+"-solidTopArrowHead)"),(E===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||E===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&l.attr("marker-start","url("+x+"#"+c+"-stickBottomArrowHead)"),(E===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||E===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&l.attr("marker-start","url("+x+"#"+c+"-stickTopArrowHead)"),(E===r.db.LINETYPE.SOLID||E===r.db.LINETYPE.DOTTED)&&l.attr("marker-end","url("+x+"#"+c+"-arrowhead)"),(E===r.db.LINETYPE.BIDIRECTIONAL_SOLID||E===r.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(l.attr("marker-start","url("+x+"#"+c+"-arrowhead)"),l.attr("marker-end","url("+x+"#"+c+"-arrowhead)")),(E===r.db.LINETYPE.SOLID_POINT||E===r.db.LINETYPE.DOTTED_POINT)&&l.attr("marker-end","url("+x+"#"+c+"-filled-head)"),(E===r.db.LINETYPE.SOLID_CROSS||E===r.db.LINETYPE.DOTTED_CROSS)&&l.attr("marker-end","url("+x+"#"+c+"-crosshead)"),u||tl.showSequenceNumbers){let s=E===r.db.LINETYPE.BIDIRECTIONAL_SOLID||E===r.db.LINETYPE.BIDIRECTIONAL_DOTTED,n=E===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||E===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||E===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||E===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||E===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||E===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||E===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||E===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,o=tS(i,r),p=d,T=h;s?(p=dd?T=h-12:(T=h-6,p+=i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_DUAL||i?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),T+=15*!!o,l.attr("x2",T),l.attr("x1",p)):l.attr("x1",d+6);let u=0,_=d===h,O=d<=h;u=_?e.fromBounds+1:n?O?e.toBounds-1:e.fromBounds+1:O?e.fromBounds+1:e.toBounds-1;let y="12px",b=g.toString().length;b>5?y="7px":b>3&&(y="9px"),t.append("line").attr("x1",u).attr("y1",a).attr("x2",u).attr("y2",a).attr("stroke-width",0).attr("marker-start","url("+x+"#"+c+"-sequencenumber)"),t.append("text").attr("x",u).attr("y",a+4).attr("font-family","sans-serif").attr("font-size",y).attr("text-anchor","middle").attr("class","sequenceNumber").text(g)}},"drawMessage"),tO=(0,l.K)(function(t,e,a,r,i,s,n){let c,l=0,d=0,h=0;for(let t of r){let r=e.get(t),s=r.box;c&&c!=s&&(n||td.models.addBox(c),d+=tl.boxMargin+c.margin),s&&s!=c&&(n||(s.x=l+d,s.y=i),d+=s.margin),r.width=o.Y2.getMax(r.width||tl.width,tl.width),r.height=o.Y2.getMax(r.height||tl.height,tl.height),r.margin=r.margin||tl.actorMargin,h=o.Y2.getMax(h,r.height),a.get(r.name)&&(d+=r.width/2),r.x=l+d,r.starty=td.getVerticalPos(),td.insert(r.x,i,r.x+r.width,r.height),l+=r.width+d,r.box&&(r.box.width=l+s.margin-r.box.x),d=r.margin,c=r.box,td.models.addActor(r)}c&&!n&&td.models.addBox(c),td.bumpVerticalPos(h)},"addActorRenderingData"),ty=(0,l.K)(async function(t,e,a,r,i,s,n){if(r){let r=0;for(let c of(td.bumpVerticalPos(2*tl.boxMargin),a)){let a=e.get(c);a.stopy||(a.stopy=td.getVerticalPos());let l=await tc.drawActor(t,a,tl,!0,i,s,n);r=o.Y2.getMax(r,l)}td.bumpVerticalPos(r+tl.boxMargin)}else for(let r of a){let a=e.get(r);await tc.drawActor(t,a,tl,!1,i,s,n)}},"drawActors"),tx=(0,l.K)(function(t,e,a,r){let i=0,s=0;for(let n of a){let a=e.get(n),o=tN(a),c=tc.drawPopup(t,a,o,tl,tl.forceMenus,r);c.height>i&&(i=c.height),c.width+a.x>s&&(s=c.width+a.x)}return{maxHeight:i,maxWidth:s}},"drawActorsPopup"),tb=(0,l.K)(function(t){(0,o.hH)(tl,t),t.fontFamily&&(tl.actorFontFamily=tl.noteFontFamily=tl.messageFontFamily=t.fontFamily),t.fontSize&&(tl.actorFontSize=tl.noteFontSize=tl.messageFontSize=t.fontSize),t.fontWeight&&(tl.actorFontWeight=tl.noteFontWeight=tl.messageFontWeight=t.fontWeight)},"setConf"),tm=(0,l.K)(function(t){return td.activations.filter(function(e){return e.actor===t})},"actorActivations"),tI=(0,l.K)(function(t,e){let a=e.get(t),r=tm(t);return[r.reduce(function(t,e){return o.Y2.getMin(t,e.startx)},a.x+a.width/2-1),r.reduce(function(t,e){return o.Y2.getMax(t,e.stopx)},a.x+a.width/2+1)]},"activationBounds");function tf(t,e,a,r,i){td.bumpVerticalPos(a);let s=r;if(e.id&&e.message&&t[e.id]){let a=t[e.id].width,i=tT(tl);e.message=n._K.wrapLabel(`[${e.message}]`,a-2*tl.wrapPadding,i),e.width=a,e.wrap=!0;let l=n._K.calculateTextDimensions(e.message,i),d=o.Y2.getMax(l.height,tl.labelBoxHeight);s=r+d,c.R.debug(`${d} - ${e.message}`)}i(e),td.bumpVerticalPos(s)}function tR(t,e,a,r,i,s,n){function o(a,r){a.x{t.add(e.from),t.add(e.to)}),x=x.filter(e=>t.has(e))}let L=new Map(x.map((t,e)=>[u.get(t)?.name??t,e]));tO(g,u,_,x,0,b,!1);let P=await tv(b,u,R,r);function N(t,e){let a=td.endActivation(t);a.starty+18>e&&(a.starty=e-6,e+=12),tc.drawActivation(g,a,e,tl,tm(t.from).length,r,L),td.insert(a.startx,e-10,a.stopx,e)}tc.insertArrowHead(g,e),tc.insertArrowCrossHead(g,e),tc.insertArrowFilledHead(g,e),tc.insertSequenceNumber(g,e),tc.insertSolidTopArrowHead(g,e),tc.insertSolidBottomArrowHead(g,e),tc.insertStickTopArrowHead(g,e),tc.insertStickBottomArrowHead(g,e),"neo"===h&&tc.insertDropShadow(g,tl),(0,l.K)(N,"activeEnd");let D=1,w=1,A=[],k=[],M=0;for(let t of b){let e,a,i;switch(t.type){case r.db.LINETYPE.NOTE:td.resetVerticalPos(),a=t.noteModel,await th(g,a,t.id);break;case r.db.LINETYPE.ACTIVE_START:case r.db.LINETYPE.CENTRAL_CONNECTION:case r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:td.newActivation(t,g,u);break;case r.db.LINETYPE.ACTIVE_END:N(t,td.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:tf(P,t,tl.boxMargin,tl.boxMargin+tl.boxTextMargin,t=>td.newLoop(t));break;case r.db.LINETYPE.LOOP_END:e=td.endLoop(),await tc.drawLoop(g,e,"loop",tl,t),td.bumpVerticalPos(e.stopy-td.getVerticalPos()),td.models.addLoop(e);break;case r.db.LINETYPE.RECT_START:tf(P,t,tl.boxMargin,tl.boxMargin,t=>{let e=t.message;e||(e=p?.rectBkgColor||p?.actorBkg||"rgba(128, 128, 128, 0.5)"),td.newLoop(void 0,e)});break;case r.db.LINETYPE.RECT_END:e=td.endLoop(),k.push(e),td.models.addLoop(e),td.bumpVerticalPos(e.stopy-td.getVerticalPos());break;case r.db.LINETYPE.OPT_START:tf(P,t,tl.boxMargin,tl.boxMargin+tl.boxTextMargin,t=>td.newLoop(t));break;case r.db.LINETYPE.OPT_END:e=td.endLoop(),await tc.drawLoop(g,e,"opt",tl,t),td.bumpVerticalPos(e.stopy-td.getVerticalPos()),td.models.addLoop(e);break;case r.db.LINETYPE.ALT_START:tf(P,t,tl.boxMargin,tl.boxMargin+tl.boxTextMargin,t=>td.newLoop(t));break;case r.db.LINETYPE.ALT_ELSE:tf(P,t,tl.boxMargin+tl.boxTextMargin,tl.boxMargin,t=>td.addSectionToLoop(t));break;case r.db.LINETYPE.ALT_END:e=td.endLoop(),await tc.drawLoop(g,e,"alt",tl,t),td.bumpVerticalPos(e.stopy-td.getVerticalPos()),td.models.addLoop(e);break;case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:tf(P,t,tl.boxMargin,tl.boxMargin+tl.boxTextMargin,t=>td.newLoop(t)),td.saveVerticalPos();break;case r.db.LINETYPE.PAR_AND:tf(P,t,tl.boxMargin+tl.boxTextMargin,tl.boxMargin,t=>td.addSectionToLoop(t));break;case r.db.LINETYPE.PAR_END:e=td.endLoop(),await tc.drawLoop(g,e,"par",tl,t),td.bumpVerticalPos(e.stopy-td.getVerticalPos()),td.models.addLoop(e);break;case r.db.LINETYPE.AUTONUMBER:D=t.message.start||D,w=t.message.step||w,t.message.visible?r.db.enableSequenceNumbers():r.db.disableSequenceNumbers();break;case r.db.LINETYPE.CRITICAL_START:tf(P,t,tl.boxMargin,tl.boxMargin+tl.boxTextMargin,t=>td.newLoop(t));break;case r.db.LINETYPE.CRITICAL_OPTION:tf(P,t,tl.boxMargin+tl.boxTextMargin,tl.boxMargin,t=>td.addSectionToLoop(t));break;case r.db.LINETYPE.CRITICAL_END:e=td.endLoop(),await tc.drawLoop(g,e,"critical",tl,t),td.bumpVerticalPos(e.stopy-td.getVerticalPos()),td.models.addLoop(e);break;case r.db.LINETYPE.BREAK_START:tf(P,t,tl.boxMargin,tl.boxMargin+tl.boxTextMargin,t=>td.newLoop(t));break;case r.db.LINETYPE.BREAK_END:e=td.endLoop(),await tc.drawLoop(g,e,"break",tl,t),td.bumpVerticalPos(e.stopy-td.getVerticalPos()),td.models.addLoop(e);break;default:try{(i=t.msgModel).starty=td.getVerticalPos(),i.sequenceIndex=D,i.sequenceVisible=r.db.showSequenceNumbers(),i.id=t.id,i.from=t.from,i.to=t.to;let e=await tu(g,i);tR(t,i,e,M,u,_,O),A.push({messageModel:i,lineStartY:e,msg:t}),td.models.addMessage(i)}catch(t){c.R.error("error while drawing message",t)}}[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.SOLID_TOP,r.db.LINETYPE.SOLID_BOTTOM,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.SOLID_TOP_DOTTED,r.db.LINETYPE.SOLID_BOTTOM_DOTTED,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(t.type)&&(D=Math.round((D+w)*100)/100),M++}for(let t of(c.R.debug("createdActors",_),c.R.debug("destroyedActors",O),await ty(g,u,x,!1,e,r,L),A))await t_(g,t.messageModel,t.lineStartY,r,t.msg,e);for(let t of(tl.mirrorActors&&await ty(g,u,x,!0,e,r,L),k.forEach(t=>tc.drawBackgroundRect(g,t)),S(g,u,x,tl),td.models.boxes)){t.height=td.getVerticalPos()-t.y,td.insert(t.x,t.y,t.x+t.width,t.height);let e=2*tl.boxMargin;t.startx=t.x-e,t.starty=t.y-.25*e,t.stopx=t.startx+t.width+2*e,t.stopy=t.starty+t.height+.75*e,t.stroke="rgb(0,0,0, 0.5)",tc.drawBox(g,t,tl)}I&&td.bumpVerticalPos(tl.boxMargin);let C=tx(g,u,x,E),{bounds:v}=td.getBounds();void 0===v.startx&&(v.startx=0),void 0===v.starty&&(v.starty=0),void 0===v.stopx&&(v.stopx=0),void 0===v.stopy&&(v.stopy=0);let Y=v.stopy-v.starty;Y{let a=tT(tl),r=e.actorKeys.reduce((e,a)=>e+=t.get(a).width+(t.get(a).margin||0),0);r+=8*tl.boxMargin,r-=2*tl.boxTextMargin,e.wrap&&(e.name=n._K.wrapLabel(e.name,r-2*tl.wrapPadding,a));let s=n._K.calculateTextDimensions(e.name,a);i=o.Y2.getMax(s.height,i);let c=o.Y2.getMax(r,s.width+2*tl.wrapPadding);if(e.margin=tl.boxTextMargin,rt.textMaxHeight=i),o.Y2.getMax(r,tl.height)}(0,l.K)(tD,"calculateActorMargins");var tw=(0,l.K)(async function(t,e,a){let r=e.get(t.from),i=e.get(t.to),s=r.x,l=i.x,d=t.wrap&&t.message,h=(0,o.Wi)(t.message)?await (0,o.Dl)(t.message,(0,o.D7)()):n._K.calculateTextDimensions(d?n._K.wrapLabel(t.message,tl.width,tE(tl)):t.message,tE(tl)),p={width:d?tl.width:o.Y2.getMax(tl.width,h.width+2*tl.noteMargin),height:0,startx:r.x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===a.db.PLACEMENT.RIGHTOF?(p.width=d?o.Y2.getMax(tl.width,h.width):o.Y2.getMax(r.width/2+i.width/2,h.width+2*tl.noteMargin),p.startx=s+(r.width+tl.actorMargin)/2):t.placement===a.db.PLACEMENT.LEFTOF?(p.width=d?o.Y2.getMax(tl.width,h.width+2*tl.noteMargin):o.Y2.getMax(r.width/2+i.width/2,h.width+2*tl.noteMargin),p.startx=s-p.width+(r.width-tl.actorMargin)/2):t.to===t.from?(h=n._K.calculateTextDimensions(d?n._K.wrapLabel(t.message,o.Y2.getMax(tl.width,r.width),tE(tl)):t.message,tE(tl)),p.width=d?o.Y2.getMax(tl.width,r.width):o.Y2.getMax(r.width,tl.width,h.width+2*tl.noteMargin),p.startx=s+(r.width-p.width)/2):(p.width=Math.abs(s+r.width/2-(l+i.width/2))+tl.actorMargin,p.startx=s2,g=(0,l.K)(t=>h?-t:t,"adjustValue");t.from===t.to?T=p:(t.activate&&!E&&(T+=g(tl.activationWidth/2-1)),[a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(t.type)||(T+=g(3)),[a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(t.type)&&(p-=g(3)));let u=[i,s,c,d],_=Math.abs(p-T);t.wrap&&t.message&&(t.message=n._K.wrapLabel(t.message,o.Y2.getMax(_+2*tl.wrapPadding,tl.width),tT(tl)));let O=n._K.calculateTextDimensions(t.message,tT(tl));return{width:o.Y2.getMax(t.wrap?0:O.width+2*tl.wrapPadding,_+2*tl.wrapPadding,tl.width),height:0,startx:p,stopx:T,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,u),toBounds:Math.max.apply(null,u)}},"buildMessageModel"),tv=(0,l.K)(async function(t,e,a,r){let i,s,n,l={},d=[];for(let a of t){switch(a.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:d.push({id:a.id,msg:a.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:a.message&&(l[(i=d.pop()).id]=i,l[a.id]=i,d.push(i));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:l[(i=d.pop()).id]=i;break;case r.db.LINETYPE.ACTIVE_START:{let t=e.get(a.from?a.from:a.to.actor),r=tm(a.from?a.from:a.to.actor).length,i=t.x+t.width/2+(r-1)*tl.activationWidth/2,s={startx:i,stopx:i+tl.activationWidth,actor:a.from,enabled:!0};td.activations.push(s)}break;case r.db.LINETYPE.ACTIVE_END:{let t=td.activations.map(t=>t.actor).lastIndexOf(a.from);td.activations.splice(t,1).splice(0,1)}}void 0!==a.placement?(s=await tw(a,e,r),a.noteModel=s,d.forEach(t=>{(i=t).from=o.Y2.getMin(i.from,s.startx),i.to=o.Y2.getMax(i.to,s.startx+s.width),i.width=o.Y2.getMax(i.width,Math.abs(i.from-i.to))-tl.labelBoxWidth})):(n=tC(a,e,r),a.msgModel=n,n.startx&&n.stopx&&d.length>0&&d.forEach(t=>{if(i=t,n.startx===n.stopx){let t=e.get(a.from),r=e.get(a.to);i.from=o.Y2.getMin(t.x-n.width/2,t.x-t.width/2,i.from),i.to=o.Y2.getMax(r.x+n.width/2,r.x+t.width/2,i.to),i.width=o.Y2.getMax(i.width,Math.abs(i.to-i.from))-tl.labelBoxWidth}else i.from=o.Y2.getMin(n.startx,i.from),i.to=o.Y2.getMax(n.stopx,i.to),i.width=o.Y2.getMax(i.width,n.width)-tl.labelBoxWidth}))}return td.activations=[],c.R.debug("Loop type widths:",l),l},"calculateLoopBounds"),tY={parser:p,get db(){return new _},renderer:{bounds:td,drawActors:ty,drawActorsPopup:tx,setConf:tb,draw:tL},styles:O,init:(0,l.K)(t=>{t.sequence||(t.sequence={}),t.wrap&&(t.sequence.wrap=t.wrap,(0,o.XV)({sequence:{wrap:t.wrap}}))},"init")}}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/app/_not-found/page-e6ae363bcf14420e.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/app/_not-found/page-e6ae363bcf14420e.js
    deleted file mode 100644
    index 6fbdac54f..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/app/_not-found/page-e6ae363bcf14420e.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9492],{42786:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=l(97601),n=l(45972),o=function(){return(0,r.jsx)("html",{children:(0,r.jsx)("body",{children:(0,r.jsx)(n.HTTPAccessErrorFallback,{status:404,message:"This page could not be found."})})})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},45972:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessErrorFallback",{enumerable:!0,get:function(){return o}});let r=l(97601),n=l(84203);function o(e){let{status:t,message:l}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:t+": "+l}),(0,r.jsx)("div",{style:n.styles.error,children:(0,r.jsxs)("div",{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,r.jsx)("h1",{className:"next-error-h1",style:n.styles.h1,children:t}),(0,r.jsx)("div",{style:n.styles.desc,children:(0,r.jsx)("h2",{style:n.styles.h2,children:l})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84203:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"styles",{enumerable:!0,get:function(){return l}});let l={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88811:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return l(42786)}])}},e=>{e.O(0,[510,4065,7358],()=>e(e.s=88811)),_N_E=e.O()}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/app/agent/[agentName]/page-efba2e31a23b7b89.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/app/agent/[agentName]/page-efba2e31a23b7b89.js
    deleted file mode 100644
    index ba3505bef..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/app/agent/[agentName]/page-efba2e31a23b7b89.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6155],{44799:(e,s,_)=>{Promise.resolve().then(_.bind(_,10483))}},e=>{e.O(0,[1535,8447,9155,8276,7362,483,510,4065,7358],()=>e(e.s=44799)),_N_E=e.O()}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/app/graph/[graphName]/page-b874a8588ff2cd43.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/app/graph/[graphName]/page-b874a8588ff2cd43.js
    deleted file mode 100644
    index 01476692a..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/app/graph/[graphName]/page-b874a8588ff2cd43.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5381],{94059:(e,s,_)=>{Promise.resolve().then(_.bind(_,38881))}},e=>{e.O(0,[9155,7362,8881,510,4065,7358],()=>e(e.s=94059)),_N_E=e.O()}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/app/layout-724e81d88e2ac312.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/app/layout-724e81d88e2ac312.js
    deleted file mode 100644
    index 7dd7d7bbd..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/app/layout-724e81d88e2ac312.js
    +++ /dev/null
    @@ -1,2 +0,0 @@
    -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{18410:(e,r,t)=>{"use strict";var a=t(68702);t.o(a,"useRouter")&&t.d(r,{useRouter:function(){return a.useRouter}}),t.o(a,"useSearchParams")&&t.d(r,{useSearchParams:function(){return a.useSearchParams}})},32041:()=>{},75658:(e,r,t)=>{"use strict";t.d(r,{NuqsAdapter:()=>s});var a=t(83085),o=t(18410),n=t(61221),s=(0,a.Hx)(function(){let e=(0,o.useRouter)(),r=(0,o.useSearchParams)(),[t,s]=(0,n.useOptimistic)(r);return{searchParams:t,updateUrl:(0,n.useCallback)((r,t)=>{(0,n.startTransition)(()=>{t.shallow||s(r);let o=function(e,r){let t=e.split("#")[0]??"";return t+(0,a.OB)(r)+location.hash}(location.origin+location.pathname,r);(0,a.Yz)("[nuqs queue (app)] Updating url: %s",o),("push"===t.history?history.pushState:history.replaceState).call(history,null,"",o),t.scroll&&window.scrollTo(0,0),t.shallow||e.replace(o,{scroll:!1})})},[]),rateLimitFactor:3}})},79603:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_9a245f"}},83085:(e,r,t)=>{"use strict";t.d(r,{Hx:()=>p,OB:()=>s,R8:()=>u,V7:()=>d,Yz:()=>c,z3:()=>n});var a=t(61221),o={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function n(e){return`[nuqs] ${o[e]}
    -  See https://err.47ng.com/NUQS-${e}`}function s(e){if(0===e.size)return"";let r=[];for(let[t,a]of e.entries()){let e=t.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");r.push(`${e}=${a.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(//g,"%3E").replace(/[\x00-\x1F]/g,e=>encodeURIComponent(e))}`)}return"?"+r.join("&")}var l=function(){try{if("undefined"==typeof localStorage)return!1;let e="nuqs-localStorage-test";localStorage.setItem(e,e);let r=localStorage.getItem(e)===e;if(localStorage.removeItem(e),!r)return!1}catch(e){return console.error("[nuqs]: debug mode is disabled (localStorage unavailable).",e),!1}return(localStorage.getItem("debug")??"").includes("nuqs")}();function c(e,...r){if(!l)return;let t=function(e,...r){return e.replace(/%[sfdO]/g,e=>{let t=r.shift();return"%O"===e&&t?JSON.stringify(t).replace(/"([^"]+)":/g,"$1:"):String(t)})}(e,...r);performance.mark(t);try{console.log(e,...r)}catch(e){console.log(t)}}function u(e,...r){l&&console.warn(e,...r)}var i=(0,a.createContext)({useAdapter(){throw Error(n(404))}});function p(e){return({children:r,...t})=>(0,a.createElement)(i.Provider,{...t,value:{useAdapter:e}},r)}function d(){let e=(0,a.useContext)(i);if(!("useAdapter"in e))throw Error(n(404));return e.useAdapter()}i.displayName="NuqsAdapterContext",l&&"undefined"!=typeof window&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==i&&console.error(n(303)),window.__NuqsAdapterContext=i)},83310:(e,r,t)=>{Promise.resolve().then(t.bind(t,75658)),Promise.resolve().then(t.t.bind(t,32041,23)),Promise.resolve().then(t.t.bind(t,79603,23))}},e=>{e.O(0,[9658,510,4065,7358],()=>e(e.s=83310)),_N_E=e.O()}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/app/page-5abf978952c32f27.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/app/page-5abf978952c32f27.js
    deleted file mode 100644
    index df42a6261..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/app/page-5abf978952c32f27.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{5073:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>N});var a=t(97601),r=t(61221),n=t(54521),l=t.n(n),i=t(18410),c=t(63675),h=t(23572),d=t(27470),o=t(55051),m=t(32403);let x=(0,m.A)("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]),u=(0,m.A)("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);var g=t(57653),p=t(10483),f=t(38881);function j(){let e=(0,i.useSearchParams)(),s=e.get("agent"),t=e.get("graph"),[n,m]=(0,r.useState)([]),[j,N]=(0,r.useState)([]),[b,y]=(0,r.useState)(!0),[v,w]=(0,r.useState)(!0);if((0,r.useEffect)(()=>{let e=!1;return y(!0),(0,c.yS)().listApps().then(s=>{e||m([...s].sort())}).catch(s=>{e||(console.error("Failed to fetch agents:",s),m([]))}).finally(()=>{e||y(!1)}),()=>{e=!0}},[]),(0,r.useEffect)(()=>{let e=!1;return w(!0),(0,c.yS)().listGraphs().then(s=>{e||N([...s||[]].sort())}).catch(s=>{e||(console.warn("Graph list not available:",s.message),N([]))}).finally(()=>{e||w(!1)}),()=>{e=!0}},[]),s)return(0,a.jsx)(p.AgentPageClient,{agentName:s});if(t)return(0,a.jsx)(f.GraphPageClient,{graphName:t});let k=b||v,S=n.length>0,A=j.length>0,C=!S&&!A&&!k;return(0,a.jsxs)("div",{className:"min-h-screen bg-gradient-to-b from-slate-50 to-white",children:[(0,a.jsx)("header",{className:"border-b bg-white/80 backdrop-blur-sm",children:(0,a.jsxs)("div",{className:"mx-auto flex h-14 max-w-5xl items-center justify-between px-4",children:[(0,a.jsxs)("span",{className:"text-lg font-semibold tracking-tight",children:[(0,a.jsx)("span",{className:"text-green-600 italic",children:"Spring AI Alibaba"})," ","Studio"]}),(0,a.jsx)("a",{href:"https://github.com/agentic-spring-ai/agentic-spring-ai/",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:text-foreground flex items-center",children:(0,a.jsx)(g.Q,{width:"24",height:"24"})})]})}),(0,a.jsxs)("main",{className:"mx-auto max-w-5xl px-4 py-12",children:[(0,a.jsxs)("div",{className:"mb-10 text-center",children:[(0,a.jsx)("h1",{className:"text-foreground text-3xl font-bold tracking-tight",children:"Choose an Agent or Graph"}),(0,a.jsx)("p",{className:"text-muted-foreground mt-2",children:"Select an agent or graph to start chatting and exploring."})]}),k&&(0,a.jsx)("div",{className:"flex justify-center py-16",children:(0,a.jsx)(o.A,{className:"text-muted-foreground h-8 w-8 animate-spin"})}),C&&!k&&(0,a.jsx)("div",{className:"border-muted-foreground/30 bg-muted/30 rounded-xl border border-dashed p-12 text-center",children:(0,a.jsx)("p",{className:"text-muted-foreground",children:"No agents or graphs available. Configure your application to expose agents or graphs."})}),!k&&(S||A)&&(0,a.jsxs)("div",{className:"grid gap-8 md:grid-cols-2",children:[S&&(0,a.jsxs)("section",{children:[(0,a.jsxs)("h2",{className:"mb-4 flex items-center gap-2 text-lg font-semibold",children:[(0,a.jsx)(x,{className:"h-5 w-5"}),"Agents"]}),(0,a.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:n.map(e=>(0,a.jsx)(l(),{href:"/index.html?agent=".concat(encodeURIComponent(e)),children:(0,a.jsxs)(h.Zp,{className:"hover:border-primary cursor-pointer transition-all hover:shadow-md",children:[(0,a.jsxs)(h.aR,{className:"pb-2",children:[(0,a.jsx)(h.ZB,{className:"text-base",children:e}),(0,a.jsx)(h.BT,{children:"Chat with this agent"})]}),(0,a.jsx)(h.Wu,{className:"pt-0",children:(0,a.jsx)(d.$,{variant:"outline",size:"sm",className:"w-full",children:"Open"})})]})},e))})]}),A&&(0,a.jsxs)("section",{children:[(0,a.jsxs)("h2",{className:"mb-4 flex items-center gap-2 text-lg font-semibold",children:[(0,a.jsx)(u,{className:"h-5 w-5"}),"Graphs"]}),(0,a.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:j.map(e=>(0,a.jsx)(l(),{href:"/index.html?graph=".concat(encodeURIComponent(e)),children:(0,a.jsxs)(h.Zp,{className:"hover:border-primary cursor-pointer transition-all hover:shadow-md",children:[(0,a.jsxs)(h.aR,{className:"pb-2",children:[(0,a.jsx)(h.ZB,{className:"text-base",children:e}),(0,a.jsx)(h.BT,{children:"Run this workflow graph"})]}),(0,a.jsx)(h.Wu,{className:"pt-0",children:(0,a.jsx)(d.$,{variant:"outline",size:"sm",className:"w-full",children:"Open"})})]})},e))})]})]})]})]})}function N(){return(0,a.jsx)(r.Suspense,{fallback:(0,a.jsx)("div",{className:"flex min-h-screen items-center justify-center",children:(0,a.jsx)(o.A,{className:"text-muted-foreground h-8 w-8 animate-spin"})}),children:(0,a.jsx)(j,{})})}},18410:(e,s,t)=>{"use strict";var a=t(68702);t.o(a,"useRouter")&&t.d(s,{useRouter:function(){return a.useRouter}}),t.o(a,"useSearchParams")&&t.d(s,{useSearchParams:function(){return a.useSearchParams}})},59711:(e,s,t)=>{Promise.resolve().then(t.bind(t,5073))}},e=>{e.O(0,[1535,8447,9155,8276,7362,483,8881,510,4065,7358],()=>e(e.s=59711)),_N_E=e.O()}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/b67e1640.d07037075aa49223.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/b67e1640.d07037075aa49223.js
    deleted file mode 100644
    index 664233255..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/b67e1640.d07037075aa49223.js
    +++ /dev/null
    @@ -1,82 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6358],{9448:(e,t,r)=>{r.d(t,{Bg:()=>Aw,Bi:()=>AD,CZ:()=>Aj,DD:()=>v7,D_:()=>A_,F5:()=>R8,FZ:()=>AN,Jn:()=>AS,K2:()=>tA,Tm:()=>AK,U4:()=>AO,WQ:()=>vZ,XE:()=>AM,Xr:()=>AF,d$:()=>Ax,dg:()=>AG,dj:()=>AL,mR:()=>Aq,oI:()=>AP,p5:()=>AI,sr:()=>AE,tG:()=>vY,uM:()=>vX,wV:()=>AC,x0:()=>Ak});var n,i,a,s,o,l,u,c,p,f,d,m,h,y,g,T,$,v,R,b,A,E,C,S,k,x,N,I,_,w,P,O,D,L,M,j,F,z,G,K,q,U,B,W,V,H,Y,X,Z,J,Q,ee,et,er,en,ei,ea,es,eo,el,eu,ec,ep,ef,ed,em,eh,ey,eg,eT,e$,ev,eR,eb,eA,eE,eC,eS,ek,ex,eN,eI,e_,ew,eP,eO,eD,eL,eM,ej,eF,ez,eG,eK,eq,eU,eB,eW,eV,eH,eY,eX,eZ,eJ,eQ,e0,e1,e2,e3,e9,e4,e5,e8,e6,e7,te,tt,tr,tn,ti,ta,ts,to,tl,tu,tc,tp,tf,td,tm,th,ty=r(6638),tg=Object.create,tT=Object.defineProperty,t$=Object.getOwnPropertyDescriptor,tv=Object.getOwnPropertyNames,tR=Object.getPrototypeOf,tb=Object.prototype.hasOwnProperty,tA=(e,t)=>tT(e,"name",{value:t,configurable:!0}),tE=(e,t)=>function(){return t||(0,e[tv(e)[0]])((t={exports:{}}).exports,t),t.exports},tC=(e,t)=>{for(var r in t)tT(e,r,{get:t[r],enumerable:!0})},tS=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of tv(t))tb.call(e,i)||i===r||tT(e,i,{get:()=>t[i],enumerable:!(n=t$(t,i))||n.enumerable});return e},tk=(e,t,r)=>(tS(e,t,"default"),r&&tS(r,t,"default")),tx=(e,t,r)=>(r=null!=e?tg(tR(e)):{},tS(!t&&e&&e.__esModule?r:tT(r,"default",{value:e,enumerable:!0}),e)),tN=e=>tS(tT({},"__esModule",{value:!0}),e),tI={};tC(tI,{AnnotatedTextEdit:()=>C,ChangeAnnotation:()=>A,ChangeAnnotationIdentifier:()=>E,CodeAction:()=>el,CodeActionContext:()=>eo,CodeActionKind:()=>ea,CodeActionTriggerKind:()=>es,CodeDescription:()=>$,CodeLens:()=>eu,Color:()=>p,ColorInformation:()=>f,ColorPresentation:()=>d,Command:()=>R,CompletionItem:()=>W,CompletionItemKind:()=>z,CompletionItemLabelDetails:()=>B,CompletionItemTag:()=>K,CompletionList:()=>V,CreateFile:()=>k,DeleteFile:()=>N,Diagnostic:()=>v,DiagnosticRelatedInformation:()=>y,DiagnosticSeverity:()=>g,DiagnosticTag:()=>T,DocumentHighlight:()=>Q,DocumentHighlightKind:()=>J,DocumentLink:()=>ep,DocumentSymbol:()=>ei,DocumentUri:()=>n,EOL:()=>eI,FoldingRange:()=>h,FoldingRangeKind:()=>m,FormattingOptions:()=>ec,Hover:()=>Y,InlayHint:()=>eb,InlayHintKind:()=>ev,InlayHintLabelPart:()=>eR,InlineCompletionContext:()=>ex,InlineCompletionItem:()=>eE,InlineCompletionList:()=>eC,InlineCompletionTriggerKind:()=>eS,InlineValueContext:()=>e$,InlineValueEvaluatableExpression:()=>eT,InlineValueText:()=>ey,InlineValueVariableLookup:()=>eg,InsertReplaceEdit:()=>q,InsertTextFormat:()=>G,InsertTextMode:()=>U,Location:()=>u,LocationLink:()=>c,MarkedString:()=>H,MarkupContent:()=>F,MarkupKind:()=>j,OptionalVersionedTextDocumentIdentifier:()=>L,ParameterInformation:()=>X,Position:()=>o,Range:()=>l,RenameFile:()=>x,SelectedCompletionInfo:()=>ek,SelectionRange:()=>ef,SemanticTokenModifiers:()=>em,SemanticTokenTypes:()=>ed,SemanticTokens:()=>eh,SignatureInformation:()=>Z,StringValue:()=>eA,SymbolInformation:()=>er,SymbolKind:()=>ee,SymbolTag:()=>et,TextDocument:()=>e_,TextDocumentEdit:()=>S,TextDocumentIdentifier:()=>O,TextDocumentItem:()=>M,TextEdit:()=>b,URI:()=>i,VersionedTextDocumentIdentifier:()=>D,WorkspaceChange:()=>P,WorkspaceEdit:()=>I,WorkspaceFolder:()=>eN,WorkspaceSymbol:()=>en,integer:()=>a,uinteger:()=>s});var t_=((e,t)=>function(){return e&&(t=(0,e[tv(e)[0]])(e=0)),t})({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var e,t,r,eO,eD,eL,eM,ej,eF,ez,eG,eK,eq,eU=n||(n={});function eB(e){return"string"==typeof e}tA(eB,"is"),eU.is=eB;var eW=i||(i={});function eV(e){return"string"==typeof e}tA(eV,"is"),eW.is=eV;var eH=a||(a={});function eY(e){return"number"==typeof e&&eH.MIN_VALUE<=e&&e<=eH.MAX_VALUE}eH.MIN_VALUE=-0x80000000,eH.MAX_VALUE=0x7fffffff,tA(eY,"is"),eH.is=eY;var eX=s||(s={});function eZ(e){return"number"==typeof e&&eX.MIN_VALUE<=e&&e<=eX.MAX_VALUE}eX.MIN_VALUE=0,eX.MAX_VALUE=0x7fffffff,tA(eZ,"is"),eX.is=eZ;var eJ=o||(o={});function eQ(e,t){return e===Number.MAX_VALUE&&(e=s.MAX_VALUE),t===Number.MAX_VALUE&&(t=s.MAX_VALUE),{line:e,character:t}}function e0(e){return eP.objectLiteral(e)&&eP.uinteger(e.line)&&eP.uinteger(e.character)}tA(eQ,"create"),eJ.create=eQ,tA(e0,"is"),eJ.is=e0;var e1=l||(l={});function e2(e,t,r,n){if(eP.uinteger(e)&&eP.uinteger(t)&&eP.uinteger(r)&&eP.uinteger(n))return{start:o.create(e,t),end:o.create(r,n)};if(o.is(e)&&o.is(t))return{start:e,end:t};throw Error(`Range#create called with invalid arguments[${e}, ${t}, ${r}, ${n}]`)}function e3(e){return eP.objectLiteral(e)&&o.is(e.start)&&o.is(e.end)}tA(e2,"create"),e1.create=e2,tA(e3,"is"),e1.is=e3;var e9=u||(u={});function e4(e,t){return{uri:e,range:t}}function e5(e){return eP.objectLiteral(e)&&l.is(e.range)&&(eP.string(e.uri)||eP.undefined(e.uri))}tA(e4,"create"),e9.create=e4,tA(e5,"is"),e9.is=e5;var e8=c||(c={});function e6(e,t,r,n){return{targetUri:e,targetRange:t,targetSelectionRange:r,originSelectionRange:n}}function e7(e){return eP.objectLiteral(e)&&l.is(e.targetRange)&&eP.string(e.targetUri)&&l.is(e.targetSelectionRange)&&(l.is(e.originSelectionRange)||eP.undefined(e.originSelectionRange))}tA(e6,"create"),e8.create=e6,tA(e7,"is"),e8.is=e7;var te=p||(p={});function tt(e,t,r,n){return{red:e,green:t,blue:r,alpha:n}}function tr(e){return eP.objectLiteral(e)&&eP.numberRange(e.red,0,1)&&eP.numberRange(e.green,0,1)&&eP.numberRange(e.blue,0,1)&&eP.numberRange(e.alpha,0,1)}tA(tt,"create"),te.create=tt,tA(tr,"is"),te.is=tr;var tn=f||(f={});function ti(e,t){return{range:e,color:t}}function ta(e){return eP.objectLiteral(e)&&l.is(e.range)&&p.is(e.color)}tA(ti,"create"),tn.create=ti,tA(ta,"is"),tn.is=ta;var ts=d||(d={});function to(e,t,r){return{label:e,textEdit:t,additionalTextEdits:r}}function tl(e){return eP.objectLiteral(e)&&eP.string(e.label)&&(eP.undefined(e.textEdit)||b.is(e))&&(eP.undefined(e.additionalTextEdits)||eP.typedArray(e.additionalTextEdits,b.is))}tA(to,"create"),ts.create=to,tA(tl,"is"),ts.is=tl,(e=m||(m={})).Comment="comment",e.Imports="imports",e.Region="region";var tu=h||(h={});function tc(e,t,r,n,i,a){let s={startLine:e,endLine:t};return eP.defined(r)&&(s.startCharacter=r),eP.defined(n)&&(s.endCharacter=n),eP.defined(i)&&(s.kind=i),eP.defined(a)&&(s.collapsedText=a),s}function tp(e){return eP.objectLiteral(e)&&eP.uinteger(e.startLine)&&eP.uinteger(e.startLine)&&(eP.undefined(e.startCharacter)||eP.uinteger(e.startCharacter))&&(eP.undefined(e.endCharacter)||eP.uinteger(e.endCharacter))&&(eP.undefined(e.kind)||eP.string(e.kind))}tA(tc,"create"),tu.create=tc,tA(tp,"is"),tu.is=tp;var tf=y||(y={});function td(e,t){return{location:e,message:t}}function tm(e){return eP.defined(e)&&u.is(e.location)&&eP.string(e.message)}tA(td,"create"),tf.create=td,tA(tm,"is"),tf.is=tm,(t=g||(g={})).Error=1,t.Warning=2,t.Information=3,t.Hint=4,(r=T||(T={})).Unnecessary=1,r.Deprecated=2;var th=$||($={});function ty(e){return eP.objectLiteral(e)&&eP.string(e.href)}tA(ty,"is"),th.is=ty;var tg=v||(v={});function tT(e,t,r,n,i,a){let s={range:e,message:t};return eP.defined(r)&&(s.severity=r),eP.defined(n)&&(s.code=n),eP.defined(i)&&(s.source=i),eP.defined(a)&&(s.relatedInformation=a),s}function t$(e){var t;return eP.defined(e)&&l.is(e.range)&&eP.string(e.message)&&(eP.number(e.severity)||eP.undefined(e.severity))&&(eP.integer(e.code)||eP.string(e.code)||eP.undefined(e.code))&&(eP.undefined(e.codeDescription)||eP.string(null==(t=e.codeDescription)?void 0:t.href))&&(eP.string(e.source)||eP.undefined(e.source))&&(eP.undefined(e.relatedInformation)||eP.typedArray(e.relatedInformation,y.is))}tA(tT,"create"),tg.create=tT,tA(t$,"is"),tg.is=t$;var tv=R||(R={});function tR(e,t,...r){let n={title:e,command:t};return eP.defined(r)&&r.length>0&&(n.arguments=r),n}function tb(e){return eP.defined(e)&&eP.string(e.title)&&eP.string(e.command)}tA(tR,"create"),tv.create=tR,tA(tb,"is"),tv.is=tb,function(e){function t(e,t){return{range:e,newText:t}}function r(e,t){return{range:{start:e,end:e},newText:t}}function n(e){return{range:e,newText:""}}function i(e){return eP.objectLiteral(e)&&eP.string(e.newText)&&l.is(e.range)}tA(t,"replace"),e.replace=t,tA(r,"insert"),e.insert=r,tA(n,"del"),e.del=n,tA(i,"is"),e.is=i}(b||(b={}));var tE=A||(A={});function tC(e,t,r){let n={label:e};return void 0!==t&&(n.needsConfirmation=t),void 0!==r&&(n.description=r),n}function tS(e){return eP.objectLiteral(e)&&eP.string(e.label)&&(eP.boolean(e.needsConfirmation)||void 0===e.needsConfirmation)&&(eP.string(e.description)||void 0===e.description)}tA(tC,"create"),tE.create=tC,tA(tS,"is"),tE.is=tS;var tk=E||(E={});function tx(e){return eP.string(e)}tA(tx,"is"),tk.is=tx,function(e){function t(e,t,r){return{range:e,newText:t,annotationId:r}}function r(e,t,r){return{range:{start:e,end:e},newText:t,annotationId:r}}function n(e,t){return{range:e,newText:"",annotationId:t}}function i(e){return b.is(e)&&(A.is(e.annotationId)||E.is(e.annotationId))}tA(t,"replace"),e.replace=t,tA(r,"insert"),e.insert=r,tA(n,"del"),e.del=n,tA(i,"is"),e.is=i}(C||(C={}));var tN=S||(S={});function tI(e,t){return{textDocument:e,edits:t}}function t_(e){return eP.defined(e)&&L.is(e.textDocument)&&Array.isArray(e.edits)}tA(tI,"create"),tN.create=tI,tA(t_,"is"),tN.is=t_;var tw=k||(k={});function tP(e,t,r){let n={kind:"create",uri:e};return void 0!==t&&(void 0!==t.overwrite||void 0!==t.ignoreIfExists)&&(n.options=t),void 0!==r&&(n.annotationId=r),n}function tO(e){return e&&"create"===e.kind&&eP.string(e.uri)&&(void 0===e.options||(void 0===e.options.overwrite||eP.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||eP.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||E.is(e.annotationId))}tA(tP,"create"),tw.create=tP,tA(tO,"is"),tw.is=tO;var tD=x||(x={});function tL(e,t,r,n){let i={kind:"rename",oldUri:e,newUri:t};return void 0!==r&&(void 0!==r.overwrite||void 0!==r.ignoreIfExists)&&(i.options=r),void 0!==n&&(i.annotationId=n),i}function tM(e){return e&&"rename"===e.kind&&eP.string(e.oldUri)&&eP.string(e.newUri)&&(void 0===e.options||(void 0===e.options.overwrite||eP.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||eP.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||E.is(e.annotationId))}tA(tL,"create"),tD.create=tL,tA(tM,"is"),tD.is=tM;var tj=N||(N={});function tF(e,t,r){let n={kind:"delete",uri:e};return void 0!==t&&(void 0!==t.recursive||void 0!==t.ignoreIfNotExists)&&(n.options=t),void 0!==r&&(n.annotationId=r),n}function tz(e){return e&&"delete"===e.kind&&eP.string(e.uri)&&(void 0===e.options||(void 0===e.options.recursive||eP.boolean(e.options.recursive))&&(void 0===e.options.ignoreIfNotExists||eP.boolean(e.options.ignoreIfNotExists)))&&(void 0===e.annotationId||E.is(e.annotationId))}tA(tF,"create"),tj.create=tF,tA(tz,"is"),tj.is=tz;var tG=I||(I={});function tK(e){return e&&(void 0!==e.changes||void 0!==e.documentChanges)&&(void 0===e.documentChanges||e.documentChanges.every(e=>eP.string(e.kind)?k.is(e)||x.is(e)||N.is(e):S.is(e)))}tA(tK,"is"),tG.is=tK,_=class{static{tA(this,"TextEditChangeImpl")}constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,r){let n,i;if(void 0===r?n=b.insert(e,t):E.is(r)?(i=r,n=C.insert(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),n=C.insert(e,t,i)),this.edits.push(n),void 0!==i)return i}replace(e,t,r){let n,i;if(void 0===r?n=b.replace(e,t):E.is(r)?(i=r,n=C.replace(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),n=C.replace(e,t,i)),this.edits.push(n),void 0!==i)return i}delete(e,t){let r,n;if(void 0===t?r=b.del(e):E.is(t)?(n=t,r=C.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),r=C.del(e,n)),this.edits.push(r),void 0!==n)return n}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(void 0===e)throw Error("Text edit change is not configured to manage change annotations.")}},w=class{static{tA(this,"ChangeAnnotations")}constructor(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let r;if(E.is(e)?r=e:(r=this.nextId(),t=e),void 0!==this._annotations[r])throw Error(`Id ${r} is already in use.`);if(void 0===t)throw Error(`No annotation provided for id ${r}`);return this._annotations[r]=t,this._size++,r}nextId(){return this._counter++,this._counter.toString()}},P=class{static{tA(this,"WorkspaceChange")}constructor(e){this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new w(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(e=>{if(S.is(e)){let t=new _(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}})):e.changes&&Object.keys(e.changes).forEach(t=>{let r=new _(e.changes[t]);this._textEditChanges[t]=r})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(L.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");let t={uri:e.uri,version:e.version},r=this._textEditChanges[t.uri];if(!r){let e=[];this._workspaceEdit.documentChanges.push({textDocument:t,edits:e}),r=new _(e,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}{if(this.initChanges(),void 0===this._workspaceEdit.changes)throw Error("Workspace edit is not configured for normal text edit changes.");let t=this._textEditChanges[e];if(!t){let r=[];this._workspaceEdit.changes[e]=r,t=new _(r),this._textEditChanges[e]=t}return t}}initDocumentChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new w,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,r){let n,i,a;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(A.is(t)||E.is(t)?n=t:r=t,void 0===n?i=k.create(e,r):(a=E.is(n)?n:this._changeAnnotations.manage(n),i=k.create(e,r,a)),this._workspaceEdit.documentChanges.push(i),void 0!==a)return a}renameFile(e,t,r,n){let i,a,s;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(A.is(r)||E.is(r)?i=r:n=r,void 0===i?a=x.create(e,t,n):(s=E.is(i)?i:this._changeAnnotations.manage(i),a=x.create(e,t,n,s)),this._workspaceEdit.documentChanges.push(a),void 0!==s)return s}deleteFile(e,t,r){let n,i,a;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(A.is(t)||E.is(t)?n=t:r=t,void 0===n?i=N.create(e,r):(a=E.is(n)?n:this._changeAnnotations.manage(n),i=N.create(e,r,a)),this._workspaceEdit.documentChanges.push(i),void 0!==a)return a}};var tq=O||(O={});function tU(e){return{uri:e}}function tB(e){return eP.defined(e)&&eP.string(e.uri)}tA(tU,"create"),tq.create=tU,tA(tB,"is"),tq.is=tB;var tW=D||(D={});function tV(e,t){return{uri:e,version:t}}function tH(e){return eP.defined(e)&&eP.string(e.uri)&&eP.integer(e.version)}tA(tV,"create"),tW.create=tV,tA(tH,"is"),tW.is=tH;var tY=L||(L={});function tX(e,t){return{uri:e,version:t}}function tZ(e){return eP.defined(e)&&eP.string(e.uri)&&(null===e.version||eP.integer(e.version))}tA(tX,"create"),tY.create=tX,tA(tZ,"is"),tY.is=tZ;var tJ=M||(M={});function tQ(e,t,r,n){return{uri:e,languageId:t,version:r,text:n}}function t0(e){return eP.defined(e)&&eP.string(e.uri)&&eP.string(e.languageId)&&eP.integer(e.version)&&eP.string(e.text)}tA(tQ,"create"),tJ.create=tQ,tA(t0,"is"),tJ.is=t0;var t1=j||(j={});function t2(e){return e===t1.PlainText||e===t1.Markdown}t1.PlainText="plaintext",t1.Markdown="markdown",tA(t2,"is"),t1.is=t2;var t3=F||(F={});function t9(e){return eP.objectLiteral(e)&&j.is(e.kind)&&eP.string(e.value)}tA(t9,"is"),t3.is=t9,(eO=z||(z={})).Text=1,eO.Method=2,eO.Function=3,eO.Constructor=4,eO.Field=5,eO.Variable=6,eO.Class=7,eO.Interface=8,eO.Module=9,eO.Property=10,eO.Unit=11,eO.Value=12,eO.Enum=13,eO.Keyword=14,eO.Snippet=15,eO.Color=16,eO.File=17,eO.Reference=18,eO.Folder=19,eO.EnumMember=20,eO.Constant=21,eO.Struct=22,eO.Event=23,eO.Operator=24,eO.TypeParameter=25,(eD=G||(G={})).PlainText=1,eD.Snippet=2,(K||(K={})).Deprecated=1;var t4=q||(q={});function t5(e,t,r){return{newText:e,insert:t,replace:r}}function t8(e){return e&&eP.string(e.newText)&&l.is(e.insert)&&l.is(e.replace)}tA(t5,"create"),t4.create=t5,tA(t8,"is"),t4.is=t8,(eL=U||(U={})).asIs=1,eL.adjustIndentation=2;var t6=B||(B={});function t7(e){return e&&(eP.string(e.detail)||void 0===e.detail)&&(eP.string(e.description)||void 0===e.description)}tA(t7,"is"),t6.is=t7;var re=W||(W={});function rt(e){return{label:e}}tA(rt,"create"),re.create=rt;var rr=V||(V={});function rn(e,t){return{items:e||[],isIncomplete:!!t}}tA(rn,"create"),rr.create=rn;var ri=H||(H={});function ra(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function rs(e){return eP.string(e)||eP.objectLiteral(e)&&eP.string(e.language)&&eP.string(e.value)}tA(ra,"fromPlainText"),ri.fromPlainText=ra,tA(rs,"is"),ri.is=rs;var ro=Y||(Y={});function rl(e){return!!e&&eP.objectLiteral(e)&&(F.is(e.contents)||H.is(e.contents)||eP.typedArray(e.contents,H.is))&&(void 0===e.range||l.is(e.range))}tA(rl,"is"),ro.is=rl;var ru=X||(X={});function rc(e,t){return t?{label:e,documentation:t}:{label:e}}tA(rc,"create"),ru.create=rc;var rp=Z||(Z={});function rf(e,t,...r){let n={label:e};return eP.defined(t)&&(n.documentation=t),eP.defined(r)?n.parameters=r:n.parameters=[],n}tA(rf,"create"),rp.create=rf,(eM=J||(J={})).Text=1,eM.Read=2,eM.Write=3;var rd=Q||(Q={});function rm(e,t){let r={range:e};return eP.number(t)&&(r.kind=t),r}tA(rm,"create"),rd.create=rm,(ej=ee||(ee={})).File=1,ej.Module=2,ej.Namespace=3,ej.Package=4,ej.Class=5,ej.Method=6,ej.Property=7,ej.Field=8,ej.Constructor=9,ej.Enum=10,ej.Interface=11,ej.Function=12,ej.Variable=13,ej.Constant=14,ej.String=15,ej.Number=16,ej.Boolean=17,ej.Array=18,ej.Object=19,ej.Key=20,ej.Null=21,ej.EnumMember=22,ej.Struct=23,ej.Event=24,ej.Operator=25,ej.TypeParameter=26,(et||(et={})).Deprecated=1;var rh=er||(er={});function ry(e,t,r,n,i){let a={name:e,kind:t,location:{uri:n,range:r}};return i&&(a.containerName=i),a}tA(ry,"create"),rh.create=ry;var rg=en||(en={});function rT(e,t,r,n){return void 0!==n?{name:e,kind:t,location:{uri:r,range:n}}:{name:e,kind:t,location:{uri:r}}}tA(rT,"create"),rg.create=rT;var r$=ei||(ei={});function rv(e,t,r,n,i,a){let s={name:e,detail:t,kind:r,range:n,selectionRange:i};return void 0!==a&&(s.children=a),s}function rR(e){return e&&eP.string(e.name)&&eP.number(e.kind)&&l.is(e.range)&&l.is(e.selectionRange)&&(void 0===e.detail||eP.string(e.detail))&&(void 0===e.deprecated||eP.boolean(e.deprecated))&&(void 0===e.children||Array.isArray(e.children))&&(void 0===e.tags||Array.isArray(e.tags))}tA(rv,"create"),r$.create=rv,tA(rR,"is"),r$.is=rR,(eF=ea||(ea={})).Empty="",eF.QuickFix="quickfix",eF.Refactor="refactor",eF.RefactorExtract="refactor.extract",eF.RefactorInline="refactor.inline",eF.RefactorRewrite="refactor.rewrite",eF.Source="source",eF.SourceOrganizeImports="source.organizeImports",eF.SourceFixAll="source.fixAll",(ez=es||(es={})).Invoked=1,ez.Automatic=2;var rb=eo||(eo={});function rA(e,t,r){let n={diagnostics:e};return null!=t&&(n.only=t),null!=r&&(n.triggerKind=r),n}function rE(e){return eP.defined(e)&&eP.typedArray(e.diagnostics,v.is)&&(void 0===e.only||eP.typedArray(e.only,eP.string))&&(void 0===e.triggerKind||e.triggerKind===es.Invoked||e.triggerKind===es.Automatic)}tA(rA,"create"),rb.create=rA,tA(rE,"is"),rb.is=rE;var rC=el||(el={});function rS(e,t,r){let n={title:e},i=!0;return"string"==typeof t?(i=!1,n.kind=t):R.is(t)?n.command=t:n.edit=t,i&&void 0!==r&&(n.kind=r),n}function rk(e){return e&&eP.string(e.title)&&(void 0===e.diagnostics||eP.typedArray(e.diagnostics,v.is))&&(void 0===e.kind||eP.string(e.kind))&&(void 0!==e.edit||void 0!==e.command)&&(void 0===e.command||R.is(e.command))&&(void 0===e.isPreferred||eP.boolean(e.isPreferred))&&(void 0===e.edit||I.is(e.edit))}tA(rS,"create"),rC.create=rS,tA(rk,"is"),rC.is=rk;var rx=eu||(eu={});function rN(e,t){let r={range:e};return eP.defined(t)&&(r.data=t),r}function rI(e){return eP.defined(e)&&l.is(e.range)&&(eP.undefined(e.command)||R.is(e.command))}tA(rN,"create"),rx.create=rN,tA(rI,"is"),rx.is=rI;var r_=ec||(ec={});function rw(e,t){return{tabSize:e,insertSpaces:t}}function rP(e){return eP.defined(e)&&eP.uinteger(e.tabSize)&&eP.boolean(e.insertSpaces)}tA(rw,"create"),r_.create=rw,tA(rP,"is"),r_.is=rP;var rO=ep||(ep={});function rD(e,t,r){return{range:e,target:t,data:r}}function rL(e){return eP.defined(e)&&l.is(e.range)&&(eP.undefined(e.target)||eP.string(e.target))}tA(rD,"create"),rO.create=rD,tA(rL,"is"),rO.is=rL;var rM=ef||(ef={});function rj(e,t){return{range:e,parent:t}}function rF(e){return eP.objectLiteral(e)&&l.is(e.range)&&(void 0===e.parent||rM.is(e.parent))}tA(rj,"create"),rM.create=rj,tA(rF,"is"),rM.is=rF,(eG=ed||(ed={})).namespace="namespace",eG.type="type",eG.class="class",eG.enum="enum",eG.interface="interface",eG.struct="struct",eG.typeParameter="typeParameter",eG.parameter="parameter",eG.variable="variable",eG.property="property",eG.enumMember="enumMember",eG.event="event",eG.function="function",eG.method="method",eG.macro="macro",eG.keyword="keyword",eG.modifier="modifier",eG.comment="comment",eG.string="string",eG.number="number",eG.regexp="regexp",eG.operator="operator",eG.decorator="decorator",(eK=em||(em={})).declaration="declaration",eK.definition="definition",eK.readonly="readonly",eK.static="static",eK.deprecated="deprecated",eK.abstract="abstract",eK.async="async",eK.modification="modification",eK.documentation="documentation",eK.defaultLibrary="defaultLibrary";var rz=eh||(eh={});function rG(e){return eP.objectLiteral(e)&&(void 0===e.resultId||"string"==typeof e.resultId)&&Array.isArray(e.data)&&(0===e.data.length||"number"==typeof e.data[0])}tA(rG,"is"),rz.is=rG;var rK=ey||(ey={});function rq(e,t){return{range:e,text:t}}function rU(e){return null!=e&&l.is(e.range)&&eP.string(e.text)}tA(rq,"create"),rK.create=rq,tA(rU,"is"),rK.is=rU;var rB=eg||(eg={});function rW(e,t,r){return{range:e,variableName:t,caseSensitiveLookup:r}}function rV(e){return null!=e&&l.is(e.range)&&eP.boolean(e.caseSensitiveLookup)&&(eP.string(e.variableName)||void 0===e.variableName)}tA(rW,"create"),rB.create=rW,tA(rV,"is"),rB.is=rV;var rH=eT||(eT={});function rY(e,t){return{range:e,expression:t}}function rX(e){return null!=e&&l.is(e.range)&&(eP.string(e.expression)||void 0===e.expression)}tA(rY,"create"),rH.create=rY,tA(rX,"is"),rH.is=rX;var rZ=e$||(e$={});function rJ(e,t){return{frameId:e,stoppedLocation:t}}function rQ(e){return eP.defined(e)&&l.is(e.stoppedLocation)}tA(rJ,"create"),rZ.create=rJ,tA(rQ,"is"),rZ.is=rQ;var r0=ev||(ev={});function r1(e){return 1===e||2===e}r0.Type=1,r0.Parameter=2,tA(r1,"is"),r0.is=r1;var r2=eR||(eR={});function r3(e){return{value:e}}function r9(e){return eP.objectLiteral(e)&&(void 0===e.tooltip||eP.string(e.tooltip)||F.is(e.tooltip))&&(void 0===e.location||u.is(e.location))&&(void 0===e.command||R.is(e.command))}tA(r3,"create"),r2.create=r3,tA(r9,"is"),r2.is=r9;var r4=eb||(eb={});function r5(e,t,r){let n={position:e,label:t};return void 0!==r&&(n.kind=r),n}function r8(e){return eP.objectLiteral(e)&&o.is(e.position)&&(eP.string(e.label)||eP.typedArray(e.label,eR.is))&&(void 0===e.kind||ev.is(e.kind))&&void 0===e.textEdits||eP.typedArray(e.textEdits,b.is)&&(void 0===e.tooltip||eP.string(e.tooltip)||F.is(e.tooltip))&&(void 0===e.paddingLeft||eP.boolean(e.paddingLeft))&&(void 0===e.paddingRight||eP.boolean(e.paddingRight))}tA(r5,"create"),r4.create=r5,tA(r8,"is"),r4.is=r8;var r6=eA||(eA={});function r7(e){return{kind:"snippet",value:e}}tA(r7,"createSnippet"),r6.createSnippet=r7;var ne=eE||(eE={});function nt(e,t,r,n){return{insertText:e,filterText:t,range:r,command:n}}tA(nt,"create"),ne.create=nt;var nr=eC||(eC={});function nn(e){return{items:e}}tA(nn,"create"),nr.create=nn,(eq=eS||(eS={})).Invoked=0,eq.Automatic=1;var ni=ek||(ek={});function na(e,t){return{range:e,text:t}}tA(na,"create"),ni.create=na;var ns=ex||(ex={});function no(e,t){return{triggerKind:e,selectedCompletionInfo:t}}tA(no,"create"),ns.create=no;var nl=eN||(eN={});function nu(e){return eP.objectLiteral(e)&&i.is(e.uri)&&eP.string(e.name)}tA(nu,"is"),nl.is=nu,eI=["\n","\r\n","\r"],function(e){function t(e,t,r,n){return new ew(e,t,r,n)}function r(e){return!!(eP.defined(e)&&eP.string(e.uri)&&(eP.undefined(e.languageId)||eP.string(e.languageId))&&eP.uinteger(e.lineCount)&&eP.func(e.getText)&&eP.func(e.positionAt)&&eP.func(e.offsetAt))}function n(e,t){let r=e.getText(),n=i(t,(e,t)=>{let r=e.range.start.line-t.range.start.line;return 0===r?e.range.start.character-t.range.start.character:r}),a=r.length;for(let t=n.length-1;t>=0;t--){let i=n[t],s=e.offsetAt(i.range.start),o=e.offsetAt(i.range.end);if(o<=a)r=r.substring(0,s)+i.newText+r.substring(o,r.length);else throw Error("Overlapping edit");a=s}return r}function i(e,t){if(e.length<=1)return e;let r=e.length/2|0,n=e.slice(0,r),a=e.slice(r);i(n,t),i(a,t);let s=0,o=0,l=0;for(;s=t(n[s],a[o])?e[l++]=n[s++]:e[l++]=a[o++];for(;s0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),r=0,n=t.length;if(0===n)return o.create(0,e);for(;re?n=i:r=i+1}let i=r-1;return o.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let r=t[e.line],n=e.line+1r(e))}Object.defineProperty(e,"__esModule",{value:!0}),e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0,tA(t,"boolean"),e.boolean=t,tA(r,"string"),e.string=r,tA(n,"number"),e.number=n,tA(i,"error"),e.error=i,tA(a,"func"),e.func=a,tA(s,"array"),e.array=s,tA(o,"stringArray"),e.stringArray=o}}),tO=tE({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var t,r=tw(),n=t||(e.Event=t={});let i={dispose(){}};n.None=function(){return i};var a=class{static{tA(this,"CallbackList")}add(e,t=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(r)&&r.push({dispose:tA(()=>this.remove(e,t),"dispose")})}remove(e,t=null){if(!this._callbacks)return;let r=!1;for(let n=0,i=this._callbacks.length;n{this._callbacks||(this._callbacks=new a),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,r);let i={dispose:tA(()=>{this._callbacks&&(this._callbacks.remove(t,r),i.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(n)&&n.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};e.Emitter=s,s._noop=function(){}}}),tD=tE({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var t,r=tw(),n=tP(),i=tO(),a=t||(e.CancellationToken=t={});function s(e){return e&&(e===a.None||e===a.Cancelled||n.boolean(e.isCancellationRequested)&&!!e.onCancellationRequested)}a.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.Event.None}),a.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:i.Event.None}),tA(s,"is"),a.is=s;var o=Object.freeze(function(e,t){let n=(0,r.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}),l=class{static{tA(this,"MutableToken")}constructor(){this._isCancelled=!1}cancel(){!this._isCancelled&&(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?o:(this._emitter||(this._emitter=new i.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}};e.CancellationTokenSource=class{static{tA(this,"CancellationTokenSource")}get token(){return this._token||(this._token=new l),this._token}cancel(){this._token?this._token.cancel():this._token=t.Cancelled}dispose(){this._token?this._token instanceof l&&this._token.dispose():this._token=t.None}}}}),tL=tE({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var t,r,n,i=tP();(t=r||(e.ErrorCodes=r={})).ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=-32099,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.PendingResponseRejected=-32097,t.ConnectionInactive=-32096,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=-32e3,e.ResponseError=class e extends Error{static{tA(this,"ResponseError")}constructor(t,n,a){super(n),this.code=i.number(t)?t:r.UnknownErrorCode,this.data=a,Object.setPrototypeOf(this,e.prototype)}toJson(){let e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),e}};var a=class e{static{tA(this,"ParameterStructures")}constructor(e){this.kind=e}static is(t){return t===e.auto||t===e.byName||t===e.byPosition}toString(){return this.kind}};e.ParameterStructures=a,a.auto=new a("auto"),a.byPosition=new a("byPosition"),a.byName=new a("byName");var s=class{static{tA(this,"AbstractMessageSignature")}constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return a.auto}};e.AbstractMessageSignature=s,e.RequestType0=class extends s{static{tA(this,"RequestType0")}constructor(e){super(e,0)}},e.RequestType=class extends s{static{tA(this,"RequestType")}constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.RequestType1=class extends s{static{tA(this,"RequestType1")}constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.RequestType2=class extends s{static{tA(this,"RequestType2")}constructor(e){super(e,2)}},e.RequestType3=class extends s{static{tA(this,"RequestType3")}constructor(e){super(e,3)}},e.RequestType4=class extends s{static{tA(this,"RequestType4")}constructor(e){super(e,4)}},e.RequestType5=class extends s{static{tA(this,"RequestType5")}constructor(e){super(e,5)}},e.RequestType6=class extends s{static{tA(this,"RequestType6")}constructor(e){super(e,6)}},e.RequestType7=class extends s{static{tA(this,"RequestType7")}constructor(e){super(e,7)}},e.RequestType8=class extends s{static{tA(this,"RequestType8")}constructor(e){super(e,8)}},e.RequestType9=class extends s{static{tA(this,"RequestType9")}constructor(e){super(e,9)}},e.NotificationType=class extends s{static{tA(this,"NotificationType")}constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.NotificationType0=class extends s{static{tA(this,"NotificationType0")}constructor(e){super(e,0)}},e.NotificationType1=class extends s{static{tA(this,"NotificationType1")}constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.NotificationType2=class extends s{static{tA(this,"NotificationType2")}constructor(e){super(e,2)}},e.NotificationType3=class extends s{static{tA(this,"NotificationType3")}constructor(e){super(e,3)}},e.NotificationType4=class extends s{static{tA(this,"NotificationType4")}constructor(e){super(e,4)}},e.NotificationType5=class extends s{static{tA(this,"NotificationType5")}constructor(e){super(e,5)}},e.NotificationType6=class extends s{static{tA(this,"NotificationType6")}constructor(e){super(e,6)}},e.NotificationType7=class extends s{static{tA(this,"NotificationType7")}constructor(e){super(e,7)}},e.NotificationType8=class extends s{static{tA(this,"NotificationType8")}constructor(e){super(e,8)}},e.NotificationType9=class extends s{static{tA(this,"NotificationType9")}constructor(e){super(e,9)}},function(e){function t(e){return e&&i.string(e.method)&&(i.string(e.id)||i.number(e.id))}function r(e){return e&&i.string(e.method)&&void 0===e.id}function n(e){return e&&(void 0!==e.result||!!e.error)&&(i.string(e.id)||i.number(e.id)||null===e.id)}tA(t,"isRequest"),e.isRequest=t,tA(r,"isNotification"),e.isNotification=r,tA(n,"isResponse"),e.isResponse=n}(n||(e.Message=n={}))}}),tM=tE({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0,(t=n||(e.Touch=n={})).None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last;var t,r,n,i=class{static{tA(this,"LinkedMap")}constructor(){this[r]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=n.None){let r=this._map.get(e);if(r)return t!==n.None&&this.touch(r,t),r.value}set(e,t,r=n.None){let i=this._map.get(e);if(i)i.value=t,r!==n.None&&this.touch(i,r);else{switch(i={key:e,value:t,next:void 0,previous:void 0},r){case n.None:this.addItemLast(i);break;case n.First:this.addItemFirst(i);break;case n.Last:default:this.addItemLast(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let r=this._state,n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==r)throw Error("LinkedMap got modified during iteration.");n=n.next}}keys(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:tA(()=>{if(this._state!==e)throw Error("LinkedMap got modified during iteration.");if(!t)return{value:void 0,done:!0};{let e={value:t.key,done:!1};return t=t.next,e}},"next")};return r}values(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:tA(()=>{if(this._state!==e)throw Error("LinkedMap got modified during iteration.");if(!t)return{value:void 0,done:!0};{let e={value:t.value,done:!1};return t=t.next,e}},"next")};return r}entries(){let e=this._state,t=this._head,r={[Symbol.iterator]:()=>r,next:tA(()=>{if(this._state!==e)throw Error("LinkedMap got modified during iteration.");if(!t)return{value:void 0,done:!0};{let e={value:[t.key,t.value],done:!1};return t=t.next,e}},"next")};return r}[(r=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,r=this.size;for(;t&&r>e;)this._map.delete(t.key),t=t.next,r--;this._head=t,this._size=r,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail)if(this._head)e.next=this._head,this._head.previous=e;else throw Error("Invalid list");else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail)if(this._tail)e.previous=this._tail,this._tail.next=e;else throw Error("Invalid list");else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,r=e.previous;if(!t||!r)throw Error("Invalid list");t.previous=r,r.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw Error("Invalid list");if(t===n.First||t===n.Last){if(t===n.First){if(e===this._head)return;let t=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(t.previous=r,r.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===n.Last){if(e===this._tail)return;let t=e.next,r=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=r,r.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,r)=>{e.push([r,t])}),e}fromJSON(e){for(let[t,r]of(this.clear(),e))this.set(t,r)}};e.LinkedMap=i,e.LRUCache=class extends i{static{tA(this,"LRUCache")}constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){return super.set(e,t,n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}}}),tj=tE({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var t,r=t||(e.Disposable=t={});function n(e){return{dispose:e}}tA(n,"create"),r.create=n}}),tF=tE({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var t,r,n=tD();(t=r||(r={})).Continue=0,t.Cancelled=1,e.SharedArraySenderStrategy=class{static{tA(this,"SharedArraySenderStrategy")}constructor(){this.buffers=new Map}enableCancellation(e){if(null===e.id)return;let t=new SharedArrayBuffer(4);new Int32Array(t,0,1)[0]=r.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){let n=this.buffers.get(t);if(void 0===n)return;let i=new Int32Array(n,0,1);Atomics.store(i,0,r.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};var i=class{static{tA(this,"SharedArrayBufferCancellationToken")}constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},a=class{static{tA(this,"SharedArrayBufferCancellationTokenSource")}constructor(e){this.token=new i(e)}cancel(){}dispose(){}};e.SharedArrayReceiverStrategy=class{static{tA(this,"SharedArrayReceiverStrategy")}constructor(){this.kind="request"}createCancellationTokenSource(e){let t=e.$cancellationData;return void 0===t?new n.CancellationTokenSource:new a(t)}}}}),tz=tE({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var t=tw();e.Semaphore=class{static{tA(this,"Semaphore")}constructor(e=1){if(e<=0)throw Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((t,r)=>{this._waiting.push({thunk:e,resolve:t,reject:r}),this.runNext()})}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0,t.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error("To many thunks active");try{let t=e.thunk();t instanceof Promise?t.then(t=>{this._active--,e.resolve(t),this.runNext()},t=>{this._active--,e.reject(t),this.runNext()}):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}}}),tG=tE({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var t,r,n=tw(),i=tP(),a=tO(),s=tz(),o=t||(e.MessageReader=t={});function l(e){return e&&i.func(e.listen)&&i.func(e.dispose)&&i.func(e.onError)&&i.func(e.onClose)&&i.func(e.onPartialMessage)}tA(l,"is"),o.is=l;var u=class{static{tA(this,"AbstractMessageReader")}constructor(){this.errorEmitter=new a.Emitter,this.closeEmitter=new a.Emitter,this.partialMessageEmitter=new a.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:Error(`Reader received error. Reason: ${i.string(e.message)?e.message:"unknown"}`)}};e.AbstractMessageReader=u;var c=r||(r={});function p(e){let t,r,i,a=new Map,s=new Map;if(void 0===e||"string"==typeof e)t=e??"utf-8";else{if(t=e.charset??"utf-8",void 0!==e.contentDecoder&&(r=e.contentDecoder,a.set(r.name,r)),void 0!==e.contentDecoders)for(let t of e.contentDecoders)a.set(t.name,t);if(void 0!==e.contentTypeDecoder&&(i=e.contentTypeDecoder,s.set(i.name,i)),void 0!==e.contentTypeDecoders)for(let t of e.contentTypeDecoders)s.set(t.name,t)}return void 0===i&&(i=(0,n.default)().applicationJson.decoder,s.set(i.name,i)),{charset:t,contentDecoder:r,contentDecoders:a,contentTypeDecoder:i,contentTypeDecoders:s}}tA(p,"fromOptions"),c.fromOptions=p,e.ReadableStreamMessageReader=class extends u{static{tA(this,"ReadableStreamMessageReader")}constructor(e,t){super(),this.readable=e,this.options=r.fromOptions(t),this.buffer=(0,n.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new s.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let t=this.readable.onData(e=>{this.onData(e)});return this.readable.onError(e=>this.fireError(e)),this.readable.onClose(()=>this.fireClose()),t}onData(e){try{for(this.buffer.append(e);;){if(-1===this.nextMessageLength){let e=this.buffer.tryReadHeaders(!0);if(!e)return;let t=e.get("content-length");if(!t)return void this.fireError(Error(`Header must provide a Content-Length property.
    -${JSON.stringify(Object.fromEntries(e))}`));let r=parseInt(t);if(isNaN(r))return void this.fireError(Error(`Content-Length value must be a number. Got ${t}`));this.nextMessageLength=r}let e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let t=void 0!==this.options.contentDecoder?await this.options.contentDecoder.decode(e):e,r=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(r)}).catch(e=>{this.fireError(e)})}}catch(e){this.fireError(e)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=(0,n.default)().timer.setTimeout((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}}}),tK=tE({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=void 0;var t,r,n=tw(),i=tP(),a=tz(),s=tO(),o=t||(e.MessageWriter=t={});function l(e){return e&&i.func(e.dispose)&&i.func(e.onClose)&&i.func(e.onError)&&i.func(e.write)}tA(l,"is"),o.is=l;var u=class{static{tA(this,"AbstractMessageWriter")}constructor(){this.errorEmitter=new s.Emitter,this.closeEmitter=new s.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,r){this.errorEmitter.fire([this.asError(e),t,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:Error(`Writer received error. Reason: ${i.string(e.message)?e.message:"unknown"}`)}};e.AbstractMessageWriter=u;var c=r||(r={});function p(e){return void 0===e||"string"==typeof e?{charset:e??"utf-8",contentTypeEncoder:(0,n.default)().applicationJson.encoder}:{charset:e.charset??"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,n.default)().applicationJson.encoder}}tA(p,"fromOptions"),c.fromOptions=p,e.WriteableStreamMessageWriter=class extends u{static{tA(this,"WriteableStreamMessageWriter")}constructor(e,t){super(),this.writable=e,this.options=r.fromOptions(t),this.errorCount=0,this.writeSemaphore=new a.Semaphore(1),this.writable.onError(e=>this.fireError(e)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e).then(t=>{let r=[];return r.push("Content-Length: ",t.byteLength.toString(),"\r\n"),r.push("\r\n"),this.doWrite(e,r,t)},e=>{throw this.fireError(e),e}))}async doWrite(e,t,r){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(r)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}}}),tq=tE({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMessageBuffer=void 0,e.AbstractMessageBuffer=class{static{tA(this,"AbstractMessageBuffer")}constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let t="string"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(0===this._chunks.length)return;let t=0,r=0,n=0,i=0;e:for(;rthis._totalLength)throw Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){let t=this._chunks[0],r=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,r}let t=this.allocNative(e),r=0;for(;e>0;){let n=this._chunks[0];if(n.byteLength>e){let i=n.slice(0,e);t.set(i,r),r+=e,this._chunks[0]=n.slice(e),this._totalLength-=e,e-=e}else t.set(n,r),r+=n.byteLength,this._chunks.shift(),this._totalLength-=n.byteLength,e-=n.byteLength}return t}}}}),tU=tE({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/connection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.ConnectionOptions=e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.RequestCancellationReceiverStrategy=e.IdCancellationReceiverStrategy=e.ConnectionStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=e.NullLogger=e.ProgressType=e.ProgressToken=void 0;var t,r,n,i,a,s,o,l,u,c,p,f,d,m,h,y,g,T,$,v,R,b,A,E,C=tw(),S=tP(),k=tL(),x=tM(),N=tO(),I=tD();(s||(s={})).type=new k.NotificationType("$/cancelRequest");var _=o||(e.ProgressToken=o={});function w(e){return"string"==typeof e||"number"==typeof e}tA(w,"is"),_.is=w,(l||(l={})).type=new k.NotificationType("$/progress"),e.ProgressType=class{static{tA(this,"ProgressType")}constructor(){}};var P=u||(u={});function O(e){return S.func(e)}tA(O,"is"),P.is=O,e.NullLogger=Object.freeze({error:tA(()=>{},"error"),warn:tA(()=>{},"warn"),info:tA(()=>{},"info"),log:tA(()=>{},"log")}),(t=c||(e.Trace=c={}))[t.Off=0]="Off",t[t.Messages=1]="Messages",t[t.Compact=2]="Compact",t[t.Verbose=3]="Verbose",(r=p||(e.TraceValues=p={})).Off="off",r.Messages="messages",r.Compact="compact",r.Verbose="verbose";var D=c||(e.Trace=c={});function L(e){if(!S.string(e))return D.Off;switch(e=e.toLowerCase()){case"off":default:return D.Off;case"messages":return D.Messages;case"compact":return D.Compact;case"verbose":return D.Verbose}}function M(e){switch(e){case D.Off:return"off";case D.Messages:return"messages";case D.Compact:return"compact";case D.Verbose:return"verbose";default:return"off"}}tA(L,"fromString"),D.fromString=L,tA(M,"toString"),D.toString=M,(n=f||(e.TraceFormat=f={})).Text="text",n.JSON="json";var j=f||(e.TraceFormat=f={});function F(e){return S.string(e)&&"json"===(e=e.toLowerCase())?j.JSON:j.Text}tA(F,"fromString"),j.fromString=F,(d||(e.SetTraceNotification=d={})).type=new k.NotificationType("$/setTrace"),(m||(e.LogTraceNotification=m={})).type=new k.NotificationType("$/logTrace"),(i=h||(e.ConnectionErrors=h={}))[i.Closed=1]="Closed",i[i.Disposed=2]="Disposed",i[i.AlreadyListening=3]="AlreadyListening";var z=class e extends Error{static{tA(this,"ConnectionError")}constructor(t,r){super(r),this.code=t,Object.setPrototypeOf(this,e.prototype)}};e.ConnectionError=z;var G=y||(e.ConnectionStrategy=y={});function K(e){return e&&S.func(e.cancelUndispatched)}tA(K,"is"),G.is=K;var q=g||(e.IdCancellationReceiverStrategy=g={});function U(e){return e&&(void 0===e.kind||"id"===e.kind)&&S.func(e.createCancellationTokenSource)&&(void 0===e.dispose||S.func(e.dispose))}tA(U,"is"),q.is=U;var B=T||(e.RequestCancellationReceiverStrategy=T={});function W(e){return e&&"request"===e.kind&&S.func(e.createCancellationTokenSource)&&(void 0===e.dispose||S.func(e.dispose))}tA(W,"is"),B.is=W;var V=$||(e.CancellationReceiverStrategy=$={});function H(e){return g.is(e)||T.is(e)}V.Message=Object.freeze({createCancellationTokenSource:e=>new I.CancellationTokenSource}),tA(H,"is"),V.is=H;var Y=v||(e.CancellationSenderStrategy=v={});function X(e){return e&&S.func(e.sendCancellation)&&S.func(e.cleanup)}Y.Message=Object.freeze({sendCancellation:(e,t)=>e.sendNotification(s.type,{id:t}),cleanup(e){}}),tA(X,"is"),Y.is=X;var Z=R||(e.CancellationStrategy=R={});function J(e){return e&&$.is(e.receiver)&&v.is(e.sender)}Z.Message=Object.freeze({receiver:$.Message,sender:v.Message}),tA(J,"is"),Z.is=J;var Q=b||(e.MessageStrategy=b={});function ee(e){return e&&S.func(e.handleMessage)}tA(ee,"is"),Q.is=ee;var et=A||(e.ConnectionOptions=A={});function er(e){return e&&(R.is(e.cancellationStrategy)||y.is(e.connectionStrategy)||b.is(e.messageStrategy))}function en(t,r,n,i){let a,p,y,T,$=void 0!==n?n:e.NullLogger,v=0,A=0,_=0,w=new Map,P=new Map,O=new Map,D=new x.LinkedMap,L=new Map,M=new Set,j=new Map,F=c.Off,G=f.Text,K=E.New,q=new N.Emitter,U=new N.Emitter,B=new N.Emitter,W=new N.Emitter,V=new N.Emitter,H=i&&i.cancellationStrategy?i.cancellationStrategy:R.Message;function Y(e){if(null===e)throw Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function X(e){return null===e?"res-unknown-"+(++_).toString():"res-"+e.toString()}function Z(){return"not-"+(++A).toString()}function J(e,t){k.Message.isRequest(t)?e.set(Y(t.id),t):k.Message.isResponse(t)?e.set(X(t.id),t):e.set(Z(),t)}function Q(e){}function ee(){return K===E.Listening}function et(){return K===E.Closed}function er(){return K===E.Disposed}function en(){(K===E.New||K===E.Listening)&&(K=E.Closed,U.fire(void 0))}function ei(e){q.fire([e,void 0,void 0])}function ea(e){q.fire(e)}function es(){a||0===D.size||(a=(0,C.default)().timer.setImmediate(()=>{a=void 0,el()}))}function eo(e){k.Message.isRequest(e)?ec(e):k.Message.isNotification(e)?ef(e):k.Message.isResponse(e)?ep(e):ed(e)}function el(){if(0===D.size)return;let e=D.shift();try{let t=i?.messageStrategy;b.is(t)?t.handleMessage(e,eo):eo(e)}finally{es()}}tA(Y,"createRequestQueueKey"),tA(X,"createResponseQueueKey"),tA(Z,"createNotificationQueueKey"),tA(J,"addMessageToQueue"),tA(Q,"cancelUndispatched"),tA(ee,"isListening"),tA(et,"isClosed"),tA(er,"isDisposed"),tA(en,"closeHandler"),tA(ei,"readErrorHandler"),tA(ea,"writeErrorHandler"),t.onClose(en),t.onError(ei),r.onClose(en),r.onError(ea),tA(es,"triggerMessageQueue"),tA(eo,"handleMessage"),tA(el,"processMessageQueue");let eu=tA(e=>{try{if(k.Message.isNotification(e)&&e.method===s.type.method){let t=e.params.id,n=Y(t),a=D.get(n);if(k.Message.isRequest(a)){let s=i?.connectionStrategy,o=s&&s.cancelUndispatched?s.cancelUndispatched(a,Q):Q(a);if(o&&(void 0!==o.error||void 0!==o.result)){D.delete(n),j.delete(t),o.id=a.id,eg(o,e.method,Date.now()),r.write(o).catch(()=>$.error("Sending response for canceled message failed."));return}}let s=j.get(t);if(void 0!==s){s.cancel(),e$(e);return}M.add(t)}J(D,e)}finally{es()}},"callback");function ec(e){let t,n;if(er())return;function i(t,n,i){let a={jsonrpc:"2.0",id:e.id};t instanceof k.ResponseError?a.error=t.toJson():a.result=void 0===t?null:t,eg(a,n,i),r.write(a).catch(()=>$.error("Sending response failed."))}function a(t,n,i){let a={jsonrpc:"2.0",id:e.id,error:t.toJson()};eg(a,n,i),r.write(a).catch(()=>$.error("Sending response failed."))}function s(t,n,i){void 0===t&&(t=null);let a={jsonrpc:"2.0",id:e.id,result:t};eg(a,n,i),r.write(a).catch(()=>$.error("Sending response failed."))}tA(i,"reply"),tA(a,"replyError"),tA(s,"replySuccess"),eT(e);let o=w.get(e.method);o&&(t=o.type,n=o.handler);let l=Date.now();if(n||y){let r=e.id??String(Date.now()),o=g.is(H.receiver)?H.receiver.createCancellationTokenSource(r):H.receiver.createCancellationTokenSource(e);null!==e.id&&M.has(e.id)&&o.cancel(),null!==e.id&&j.set(r,o);try{let u;if(n)if(void 0===e.params){if(void 0!==t&&0!==t.numberOfParams)return void a(new k.ResponseError(k.ErrorCodes.InvalidParams,`Request ${e.method} defines ${t.numberOfParams} params but received none.`),e.method,l);u=n(o.token)}else if(Array.isArray(e.params)){if(void 0!==t&&t.parameterStructures===k.ParameterStructures.byName)return void a(new k.ResponseError(k.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,l);u=n(...e.params,o.token)}else{if(void 0!==t&&t.parameterStructures===k.ParameterStructures.byPosition)return void a(new k.ResponseError(k.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,l);u=n(e.params,o.token)}else y&&(u=y(e.method,e.params,o.token));let c=u;u?c.then?c.then(t=>{j.delete(r),i(t,e.method,l)},t=>{j.delete(r),t instanceof k.ResponseError?a(t,e.method,l):t&&S.string(t.message)?a(new k.ResponseError(k.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,l):a(new k.ResponseError(k.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,l)}):(j.delete(r),i(u,e.method,l)):(j.delete(r),s(u,e.method,l))}catch(t){j.delete(r),t instanceof k.ResponseError?i(t,e.method,l):t&&S.string(t.message)?a(new k.ResponseError(k.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,l):a(new k.ResponseError(k.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,l)}}else a(new k.ResponseError(k.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,l)}function ep(e){if(!er())if(null===e.id)e.error?$.error(`Received response message without id: Error is: 
    -${JSON.stringify(e.error,void 0,4)}`):$.error("Received response message without id. No further error information provided.");else{let t=e.id,r=L.get(t);if(ev(e,r),void 0!==r){L.delete(t);try{if(e.error){let t=e.error;r.reject(new k.ResponseError(t.code,t.message,t.data))}else if(void 0!==e.result)r.resolve(e.result);else throw Error("Should never happen.")}catch(e){e.message?$.error(`Response handler '${r.method}' failed with message: ${e.message}`):$.error(`Response handler '${r.method}' failed unexpectedly.`)}}}}function ef(e){let t,r;if(!er()){if(e.method===s.type.method){let t=e.params.id;M.delete(t),e$(e);return}{let n=P.get(e.method);n&&(t=n.handler,r=n.type)}if(t||T)try{if(e$(e),t)if(void 0===e.params)void 0!==r&&0!==r.numberOfParams&&r.parameterStructures!==k.ParameterStructures.byName&&$.error(`Notification ${e.method} defines ${r.numberOfParams} params but received none.`),t();else if(Array.isArray(e.params)){let n=e.params;e.method===l.type.method&&2===n.length&&o.is(n[0])?t({token:n[0],value:n[1]}):(void 0!==r&&(r.parameterStructures===k.ParameterStructures.byName&&$.error(`Notification ${e.method} defines parameters by name but received parameters by position`),r.numberOfParams!==e.params.length&&$.error(`Notification ${e.method} defines ${r.numberOfParams} params but received ${n.length} arguments`)),t(...n))}else void 0!==r&&r.parameterStructures===k.ParameterStructures.byPosition&&$.error(`Notification ${e.method} defines parameters by position but received parameters by name`),t(e.params);else T&&T(e.method,e.params)}catch(t){t.message?$.error(`Notification handler '${e.method}' failed with message: ${t.message}`):$.error(`Notification handler '${e.method}' failed unexpectedly.`)}else B.fire(e)}}function ed(e){if(!e)return void $.error("Received empty message.");if($.error(`Received message which is neither a response nor a notification message:
    -${JSON.stringify(e,null,4)}`),S.string(e.id)||S.number(e.id)){let t=e.id,r=L.get(t);r&&r.reject(Error("The received response has neither a result nor an error property."))}}function em(e){if(null!=e)switch(F){case c.Verbose:return JSON.stringify(e,null,4);case c.Compact:return JSON.stringify(e);default:return}}function eh(e){if(F!==c.Off&&p)if(G===f.Text){let t;(F===c.Verbose||F===c.Compact)&&e.params&&(t=`Params: ${em(e.params)}
    -
    -`),p.log(`Sending request '${e.method} - (${e.id})'.`,t)}else eR("send-request",e)}function ey(e){if(F!==c.Off&&p)if(G===f.Text){let t;(F===c.Verbose||F===c.Compact)&&(t=e.params?`Params: ${em(e.params)}
    -
    -`:"No parameters provided.\n\n"),p.log(`Sending notification '${e.method}'.`,t)}else eR("send-notification",e)}function eg(e,t,r){if(F!==c.Off&&p)if(G===f.Text){let n;(F===c.Verbose||F===c.Compact)&&(e.error&&e.error.data?n=`Error data: ${em(e.error.data)}
    -
    -`:e.result?n=`Result: ${em(e.result)}
    -
    -`:void 0===e.error&&(n="No result returned.\n\n")),p.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-r}ms`,n)}else eR("send-response",e)}function eT(e){if(F!==c.Off&&p)if(G===f.Text){let t;(F===c.Verbose||F===c.Compact)&&e.params&&(t=`Params: ${em(e.params)}
    -
    -`),p.log(`Received request '${e.method} - (${e.id})'.`,t)}else eR("receive-request",e)}function e$(e){if(F!==c.Off&&p&&e.method!==m.type.method)if(G===f.Text){let t;(F===c.Verbose||F===c.Compact)&&(t=e.params?`Params: ${em(e.params)}
    -
    -`:"No parameters provided.\n\n"),p.log(`Received notification '${e.method}'.`,t)}else eR("receive-notification",e)}function ev(e,t){if(F!==c.Off&&p)if(G===f.Text){let r;if((F===c.Verbose||F===c.Compact)&&(e.error&&e.error.data?r=`Error data: ${em(e.error.data)}
    -
    -`:e.result?r=`Result: ${em(e.result)}
    -
    -`:void 0===e.error&&(r="No result returned.\n\n")),t){let n=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";p.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${n}`,r)}else p.log(`Received response ${e.id} without active response promise.`,r)}else eR("receive-response",e)}function eR(e,t){if(!p||F===c.Off)return;let r={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};p.log(r)}function eb(){if(et())throw new z(h.Closed,"Connection is closed.");if(er())throw new z(h.Disposed,"Connection is disposed.")}function eA(){if(ee())throw new z(h.AlreadyListening,"Connection is already listening")}function eE(){if(!ee())throw Error("Call listen() first.")}function eC(e){return void 0===e?null:e}function eS(e){if(null!==e)return e}function ek(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function ex(e,t){switch(e){case k.ParameterStructures.auto:if(ek(t))return eS(t);return[eC(t)];case k.ParameterStructures.byName:if(!ek(t))throw Error("Received parameters by name but param is not an object literal.");return eS(t);case k.ParameterStructures.byPosition:return[eC(t)];default:throw Error(`Unknown parameter structure ${e.toString()}`)}}function eN(e,t){let r,n=e.numberOfParams;switch(n){case 0:r=void 0;break;case 1:r=ex(e.parameterStructures,t[0]);break;default:r=[];for(let e=0;e{let n,i;if(eb(),S.string(e)){n=e;let r=t[0],a=0,s=k.ParameterStructures.auto;k.ParameterStructures.is(r)&&(a=1,s=r);let o=t.length,l=o-a;switch(l){case 0:i=void 0;break;case 1:i=ex(s,t[a]);break;default:if(s===k.ParameterStructures.byName)throw Error(`Received ${l} parameters for 'by Name' notification parameter structure.`);i=t.slice(a,o).map(e=>eC(e))}}else n=e.method,i=eN(e,t);let a={jsonrpc:"2.0",method:n,params:i};return ey(a),r.write(a).catch(e=>{throw $.error("Sending notification failed."),e})},"sendNotification"),onNotification:tA((e,t)=>{let r;return eb(),S.func(e)?T=e:t&&(S.string(e)?(r=e,P.set(e,{type:void 0,handler:t})):(r=e.method,P.set(e.method,{type:e,handler:t}))),{dispose:tA(()=>{void 0!==r?P.delete(r):T=void 0},"dispose")}},"onNotification"),onProgress:tA((e,t,r)=>{if(O.has(t))throw Error(`Progress handler for token ${t} already registered`);return O.set(t,r),{dispose:tA(()=>{O.delete(t)},"dispose")}},"onProgress"),sendProgress:tA((e,t,r)=>eI.sendNotification(l.type,{token:t,value:r}),"sendProgress"),onUnhandledProgress:W.event,sendRequest:tA((e,...t)=>{let n,i,a,s;if(eb(),eE(),S.string(e)){n=e;let r=t[0],a=t[t.length-1],o=0,l=k.ParameterStructures.auto;k.ParameterStructures.is(r)&&(o=1,l=r);let u=t.length;I.CancellationToken.is(a)&&(u-=1,s=a);let c=u-o;switch(c){case 0:i=void 0;break;case 1:i=ex(l,t[o]);break;default:if(l===k.ParameterStructures.byName)throw Error(`Received ${c} parameters for 'by Name' request parameter structure.`);i=t.slice(o,u).map(e=>eC(e))}}else{n=e.method,i=eN(e,t);let r=e.numberOfParams;s=I.CancellationToken.is(t[r])?t[r]:void 0}let o=v++;s&&(a=s.onCancellationRequested(()=>{let e=H.sender.sendCancellation(eI,o);return void 0===e?($.log(`Received no promise from cancellation strategy when cancelling id ${o}`),Promise.resolve()):e.catch(()=>{$.log(`Sending cancellation messages for id ${o} failed`)})}));let l={jsonrpc:"2.0",id:o,method:n,params:i};return eh(l),"function"==typeof H.sender.enableCancellation&&H.sender.enableCancellation(l),new Promise(async(e,t)=>{let i=tA(t=>{e(t),H.sender.cleanup(o),a?.dispose()},"resolveWithCleanup"),s=tA(e=>{t(e),H.sender.cleanup(o),a?.dispose()},"rejectWithCleanup"),u={method:n,timerStart:Date.now(),resolve:i,reject:s};try{await r.write(l),L.set(o,u)}catch(e){throw $.error("Sending request failed."),u.reject(new k.ResponseError(k.ErrorCodes.MessageWriteError,e.message?e.message:"Unknown reason")),e}})},"sendRequest"),onRequest:tA((e,t)=>{eb();let r=null;return u.is(e)?(r=void 0,y=e):S.string(e)?(r=null,void 0!==t&&(r=e,w.set(e,{handler:t,type:void 0}))):void 0!==t&&(r=e.method,w.set(e.method,{type:e,handler:t})),{dispose:tA(()=>{null!==r&&(void 0!==r?w.delete(r):y=void 0)},"dispose")}},"onRequest"),hasPendingResponse:tA(()=>L.size>0,"hasPendingResponse"),trace:tA(async(e,t,r)=>{let n=!1,i=f.Text;void 0!==r&&(S.boolean(r)?n=r:(n=r.sendNotification||!1,i=r.traceFormat||f.Text)),F=e,G=i,p=F===c.Off?void 0:t,!n||et()||er()||await eI.sendNotification(d.type,{value:c.toString(e)})},"trace"),onError:q.event,onClose:U.event,onUnhandledNotification:B.event,onDispose:V.event,end:tA(()=>{r.end()},"end"),dispose:tA(()=>{if(er())return;K=E.Disposed,V.fire(void 0);let e=new k.ResponseError(k.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let t of L.values())t.reject(e);L=new Map,j=new Map,M=new Set,D=new x.LinkedMap,S.func(r.dispose)&&r.dispose(),S.func(t.dispose)&&t.dispose()},"dispose"),listen:tA(()=>{eb(),eA(),K=E.Listening,t.listen(eu)},"listen"),inspect:tA(()=>{(0,C.default)().console.log("inspect")},"inspect")};return eI.onNotification(m.type,e=>{if(F===c.Off||!p)return;let t=F===c.Verbose||F===c.Compact;p.log(e.message,t?e.verbose:void 0)}),eI.onNotification(l.type,e=>{let t=O.get(e.token);t?t(e.value):W.fire(e)}),eI}tA(er,"is"),et.is=er,(a=E||(E={}))[a.New=1]="New",a[a.Listening=2]="Listening",a[a.Closed=3]="Closed",a[a.Disposed=4]="Disposed",tA(en,"createMessageConnection"),e.createMessageConnection=en}}),tB=tE({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/api.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.AbstractMessageBuffer=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=void 0;var t=tL();Object.defineProperty(e,"Message",{enumerable:!0,get:tA(function(){return t.Message},"get")}),Object.defineProperty(e,"RequestType",{enumerable:!0,get:tA(function(){return t.RequestType},"get")}),Object.defineProperty(e,"RequestType0",{enumerable:!0,get:tA(function(){return t.RequestType0},"get")}),Object.defineProperty(e,"RequestType1",{enumerable:!0,get:tA(function(){return t.RequestType1},"get")}),Object.defineProperty(e,"RequestType2",{enumerable:!0,get:tA(function(){return t.RequestType2},"get")}),Object.defineProperty(e,"RequestType3",{enumerable:!0,get:tA(function(){return t.RequestType3},"get")}),Object.defineProperty(e,"RequestType4",{enumerable:!0,get:tA(function(){return t.RequestType4},"get")}),Object.defineProperty(e,"RequestType5",{enumerable:!0,get:tA(function(){return t.RequestType5},"get")}),Object.defineProperty(e,"RequestType6",{enumerable:!0,get:tA(function(){return t.RequestType6},"get")}),Object.defineProperty(e,"RequestType7",{enumerable:!0,get:tA(function(){return t.RequestType7},"get")}),Object.defineProperty(e,"RequestType8",{enumerable:!0,get:tA(function(){return t.RequestType8},"get")}),Object.defineProperty(e,"RequestType9",{enumerable:!0,get:tA(function(){return t.RequestType9},"get")}),Object.defineProperty(e,"ResponseError",{enumerable:!0,get:tA(function(){return t.ResponseError},"get")}),Object.defineProperty(e,"ErrorCodes",{enumerable:!0,get:tA(function(){return t.ErrorCodes},"get")}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:tA(function(){return t.NotificationType},"get")}),Object.defineProperty(e,"NotificationType0",{enumerable:!0,get:tA(function(){return t.NotificationType0},"get")}),Object.defineProperty(e,"NotificationType1",{enumerable:!0,get:tA(function(){return t.NotificationType1},"get")}),Object.defineProperty(e,"NotificationType2",{enumerable:!0,get:tA(function(){return t.NotificationType2},"get")}),Object.defineProperty(e,"NotificationType3",{enumerable:!0,get:tA(function(){return t.NotificationType3},"get")}),Object.defineProperty(e,"NotificationType4",{enumerable:!0,get:tA(function(){return t.NotificationType4},"get")}),Object.defineProperty(e,"NotificationType5",{enumerable:!0,get:tA(function(){return t.NotificationType5},"get")}),Object.defineProperty(e,"NotificationType6",{enumerable:!0,get:tA(function(){return t.NotificationType6},"get")}),Object.defineProperty(e,"NotificationType7",{enumerable:!0,get:tA(function(){return t.NotificationType7},"get")}),Object.defineProperty(e,"NotificationType8",{enumerable:!0,get:tA(function(){return t.NotificationType8},"get")}),Object.defineProperty(e,"NotificationType9",{enumerable:!0,get:tA(function(){return t.NotificationType9},"get")}),Object.defineProperty(e,"ParameterStructures",{enumerable:!0,get:tA(function(){return t.ParameterStructures},"get")});var r=tM();Object.defineProperty(e,"LinkedMap",{enumerable:!0,get:tA(function(){return r.LinkedMap},"get")}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:tA(function(){return r.LRUCache},"get")}),Object.defineProperty(e,"Touch",{enumerable:!0,get:tA(function(){return r.Touch},"get")});var n=tj();Object.defineProperty(e,"Disposable",{enumerable:!0,get:tA(function(){return n.Disposable},"get")});var i=tO();Object.defineProperty(e,"Event",{enumerable:!0,get:tA(function(){return i.Event},"get")}),Object.defineProperty(e,"Emitter",{enumerable:!0,get:tA(function(){return i.Emitter},"get")});var a=tD();Object.defineProperty(e,"CancellationTokenSource",{enumerable:!0,get:tA(function(){return a.CancellationTokenSource},"get")}),Object.defineProperty(e,"CancellationToken",{enumerable:!0,get:tA(function(){return a.CancellationToken},"get")});var s=tF();Object.defineProperty(e,"SharedArraySenderStrategy",{enumerable:!0,get:tA(function(){return s.SharedArraySenderStrategy},"get")}),Object.defineProperty(e,"SharedArrayReceiverStrategy",{enumerable:!0,get:tA(function(){return s.SharedArrayReceiverStrategy},"get")});var o=tG();Object.defineProperty(e,"MessageReader",{enumerable:!0,get:tA(function(){return o.MessageReader},"get")}),Object.defineProperty(e,"AbstractMessageReader",{enumerable:!0,get:tA(function(){return o.AbstractMessageReader},"get")}),Object.defineProperty(e,"ReadableStreamMessageReader",{enumerable:!0,get:tA(function(){return o.ReadableStreamMessageReader},"get")});var l=tK();Object.defineProperty(e,"MessageWriter",{enumerable:!0,get:tA(function(){return l.MessageWriter},"get")}),Object.defineProperty(e,"AbstractMessageWriter",{enumerable:!0,get:tA(function(){return l.AbstractMessageWriter},"get")}),Object.defineProperty(e,"WriteableStreamMessageWriter",{enumerable:!0,get:tA(function(){return l.WriteableStreamMessageWriter},"get")});var u=tq();Object.defineProperty(e,"AbstractMessageBuffer",{enumerable:!0,get:tA(function(){return u.AbstractMessageBuffer},"get")});var c=tU();Object.defineProperty(e,"ConnectionStrategy",{enumerable:!0,get:tA(function(){return c.ConnectionStrategy},"get")}),Object.defineProperty(e,"ConnectionOptions",{enumerable:!0,get:tA(function(){return c.ConnectionOptions},"get")}),Object.defineProperty(e,"NullLogger",{enumerable:!0,get:tA(function(){return c.NullLogger},"get")}),Object.defineProperty(e,"createMessageConnection",{enumerable:!0,get:tA(function(){return c.createMessageConnection},"get")}),Object.defineProperty(e,"ProgressToken",{enumerable:!0,get:tA(function(){return c.ProgressToken},"get")}),Object.defineProperty(e,"ProgressType",{enumerable:!0,get:tA(function(){return c.ProgressType},"get")}),Object.defineProperty(e,"Trace",{enumerable:!0,get:tA(function(){return c.Trace},"get")}),Object.defineProperty(e,"TraceValues",{enumerable:!0,get:tA(function(){return c.TraceValues},"get")}),Object.defineProperty(e,"TraceFormat",{enumerable:!0,get:tA(function(){return c.TraceFormat},"get")}),Object.defineProperty(e,"SetTraceNotification",{enumerable:!0,get:tA(function(){return c.SetTraceNotification},"get")}),Object.defineProperty(e,"LogTraceNotification",{enumerable:!0,get:tA(function(){return c.LogTraceNotification},"get")}),Object.defineProperty(e,"ConnectionErrors",{enumerable:!0,get:tA(function(){return c.ConnectionErrors},"get")}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:tA(function(){return c.ConnectionError},"get")}),Object.defineProperty(e,"CancellationReceiverStrategy",{enumerable:!0,get:tA(function(){return c.CancellationReceiverStrategy},"get")}),Object.defineProperty(e,"CancellationSenderStrategy",{enumerable:!0,get:tA(function(){return c.CancellationSenderStrategy},"get")}),Object.defineProperty(e,"CancellationStrategy",{enumerable:!0,get:tA(function(){return c.CancellationStrategy},"get")}),Object.defineProperty(e,"MessageStrategy",{enumerable:!0,get:tA(function(){return c.MessageStrategy},"get")}),e.RAL=tw().default}}),tW=tE({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/ril.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=tB(),r=class e extends t.AbstractMessageBuffer{static{tA(this,"MessageBuffer")}constructor(e="utf-8"){super(e),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return e.emptyBuffer}fromString(e,t){return new TextEncoder().encode(e)}toString(e,t){return"ascii"===t?this.asciiDecoder.decode(e):new TextDecoder(t).decode(e)}asNative(e,t){return void 0===t?e:e.slice(0,t)}allocNative(e){return new Uint8Array(e)}};r.emptyBuffer=new Uint8Array(0);var n=class{static{tA(this,"ReadableStreamWrapper")}constructor(e){this.socket=e,this._onData=new t.Emitter,this._messageListener=e=>{e.data.arrayBuffer().then(e=>{this._onData.fire(new Uint8Array(e))},()=>{(0,t.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(e){return this.socket.addEventListener("close",e),t.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),t.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),t.Disposable.create(()=>this.socket.removeEventListener("end",e))}onData(e){return this._onData.event(e)}},i=class{static{tA(this,"WritableStreamWrapper")}constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener("close",e),t.Disposable.create(()=>this.socket.removeEventListener("close",e))}onError(e){return this.socket.addEventListener("error",e),t.Disposable.create(()=>this.socket.removeEventListener("error",e))}onEnd(e){return this.socket.addEventListener("end",e),t.Disposable.create(()=>this.socket.removeEventListener("end",e))}write(e,t){if("string"==typeof e){if(void 0!==t&&"utf-8"!==t)throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}},a=new TextEncoder,s=Object.freeze({messageBuffer:Object.freeze({create:tA(e=>new r(e),"create")}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:tA((e,t)=>{if("utf-8"!==t.charset)throw Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(a.encode(JSON.stringify(e,void 0,0)))},"encode")}),decoder:Object.freeze({name:"application/json",decode:tA((e,t)=>{if(!(e instanceof Uint8Array))throw Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))},"decode")})}),stream:Object.freeze({asReadableStream:tA(e=>new n(e),"asReadableStream"),asWritableStream:tA(e=>new i(e),"asWritableStream")}),console,timer:Object.freeze({setTimeout(e,t,...r){let n=setTimeout(e,t,...r);return{dispose:tA(()=>clearTimeout(n),"dispose")}},setImmediate(e,...t){let r=setTimeout(e,0,...t);return{dispose:tA(()=>clearTimeout(r),"dispose")}},setInterval(e,t,...r){let n=setInterval(e,t,...r);return{dispose:tA(()=>clearInterval(n),"dispose")}}})});function o(){return s}tA(o,"RIL");var l=o||(o={});function u(){t.RAL.install(s)}tA(u,"install"),l.install=u,e.default=o}}),tV=tE({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/main.js"(e){var t=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:tA(function(){return t[r]},"get")}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=e&&e.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.BrowserMessageWriter=e.BrowserMessageReader=void 0,tW().default.install();var n=tB();function i(e,t,r,i){return void 0===r&&(r=n.NullLogger),n.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,n.createMessageConnection)(e,t,r,i)}r(tB(),e),e.BrowserMessageReader=class extends n.AbstractMessageReader{static{tA(this,"BrowserMessageReader")}constructor(e){super(),this._onData=new n.Emitter,this._messageListener=e=>{this._onData.fire(e.data)},e.addEventListener("error",e=>this.fireError(e)),e.onmessage=this._messageListener}listen(e){return this._onData.event(e)}},e.BrowserMessageWriter=class extends n.AbstractMessageWriter{static{tA(this,"BrowserMessageWriter")}constructor(e){super(),this.port=e,this.errorCount=0,e.addEventListener("error",e=>this.fireError(e))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}},tA(i,"createMessageConnection"),e.createMessageConnection=i}}),tH=tE({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/browser.js"(e,t){t.exports=tV()}}),tY=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProtocolNotificationType=e.ProtocolNotificationType0=e.ProtocolRequestType=e.ProtocolRequestType0=e.RegistrationType=e.MessageDirection=void 0;var t,r,n=tV();(t=r||(e.MessageDirection=r={})).clientToServer="clientToServer",t.serverToClient="serverToClient",t.both="both",e.RegistrationType=class{static{tA(this,"RegistrationType")}constructor(e){this.method=e}},e.ProtocolRequestType0=class extends n.RequestType0{static{tA(this,"ProtocolRequestType0")}constructor(e){super(e)}},e.ProtocolRequestType=class extends n.RequestType{static{tA(this,"ProtocolRequestType")}constructor(e){super(e,n.ParameterStructures.byName)}},e.ProtocolNotificationType0=class extends n.NotificationType0{static{tA(this,"ProtocolNotificationType0")}constructor(e){super(e)}},e.ProtocolNotificationType=class extends n.NotificationType{static{tA(this,"ProtocolNotificationType")}constructor(e){super(e,n.ParameterStructures.byName)}}}}),tX=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(e){function t(e){return!0===e||!1===e}function r(e){return"string"==typeof e||e instanceof String}function n(e){return"number"==typeof e||e instanceof Number}function i(e){return e instanceof Error}function a(e){return"function"==typeof e}function s(e){return Array.isArray(e)}function o(e){return s(e)&&e.every(e=>r(e))}function l(e,t){return Array.isArray(e)&&e.every(t)}function u(e){return null!==e&&"object"==typeof e}Object.defineProperty(e,"__esModule",{value:!0}),e.objectLiteral=e.typedArray=e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0,tA(t,"boolean"),e.boolean=t,tA(r,"string"),e.string=r,tA(n,"number"),e.number=n,tA(i,"error"),e.error=i,tA(a,"func"),e.func=a,tA(s,"array"),e.array=s,tA(o,"stringArray"),e.stringArray=o,tA(l,"typedArray"),e.typedArray=l,tA(u,"objectLiteral"),e.objectLiteral=u}}),tZ=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationRequest=void 0;var t,r,n=tY();(t=r||(e.ImplementationRequest=r={})).method="textDocument/implementation",t.messageDirection=n.MessageDirection.clientToServer,t.type=new n.ProtocolRequestType(t.method)}}),tJ=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeDefinitionRequest=void 0;var t,r,n=tY();(t=r||(e.TypeDefinitionRequest=r={})).method="textDocument/typeDefinition",t.messageDirection=n.MessageDirection.clientToServer,t.type=new n.ProtocolRequestType(t.method)}}),tQ=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=void 0;var t,r,n,i,a=tY();(t=n||(e.WorkspaceFoldersRequest=n={})).method="workspace/workspaceFolders",t.messageDirection=a.MessageDirection.serverToClient,t.type=new a.ProtocolRequestType0(t.method),(r=i||(e.DidChangeWorkspaceFoldersNotification=i={})).method="workspace/didChangeWorkspaceFolders",r.messageDirection=a.MessageDirection.clientToServer,r.type=new a.ProtocolNotificationType(r.method)}}),t0=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationRequest=void 0;var t,r,n=tY();(t=r||(e.ConfigurationRequest=r={})).method="workspace/configuration",t.messageDirection=n.MessageDirection.serverToClient,t.type=new n.ProtocolRequestType(t.method)}}),t1=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPresentationRequest=e.DocumentColorRequest=void 0;var t,r,n,i,a=tY();(t=n||(e.DocumentColorRequest=n={})).method="textDocument/documentColor",t.messageDirection=a.MessageDirection.clientToServer,t.type=new a.ProtocolRequestType(t.method),(r=i||(e.ColorPresentationRequest=i={})).method="textDocument/colorPresentation",r.messageDirection=a.MessageDirection.clientToServer,r.type=new a.ProtocolRequestType(r.method)}}),t2=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=void 0;var t,r,n,i,a=tY();(t=n||(e.FoldingRangeRequest=n={})).method="textDocument/foldingRange",t.messageDirection=a.MessageDirection.clientToServer,t.type=new a.ProtocolRequestType(t.method),(r=i||(e.FoldingRangeRefreshRequest=i={})).method="workspace/foldingRange/refresh",r.messageDirection=a.MessageDirection.serverToClient,r.type=new a.ProtocolRequestType0(r.method)}}),t3=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeclarationRequest=void 0;var t,r,n=tY();(t=r||(e.DeclarationRequest=r={})).method="textDocument/declaration",t.messageDirection=n.MessageDirection.clientToServer,t.type=new n.ProtocolRequestType(t.method)}}),t9=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionRangeRequest=void 0;var t,r,n=tY();(t=r||(e.SelectionRangeRequest=r={})).method="textDocument/selectionRange",t.messageDirection=n.MessageDirection.clientToServer,t.type=new n.ProtocolRequestType(t.method)}}),t4=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=void 0;var t,r,n,i,a,s=tV(),o=tY(),l=n||(e.WorkDoneProgress=n={});function u(e){return e===l.type}l.type=new s.ProgressType,tA(u,"is"),l.is=u,(t=i||(e.WorkDoneProgressCreateRequest=i={})).method="window/workDoneProgress/create",t.messageDirection=o.MessageDirection.serverToClient,t.type=new o.ProtocolRequestType(t.method),(r=a||(e.WorkDoneProgressCancelNotification=a={})).method="window/workDoneProgress/cancel",r.messageDirection=o.MessageDirection.clientToServer,r.type=new o.ProtocolNotificationType(r.method)}}),t5=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.CallHierarchyPrepareRequest=void 0;var t,r,n,i,a,s,o=tY();(t=i||(e.CallHierarchyPrepareRequest=i={})).method="textDocument/prepareCallHierarchy",t.messageDirection=o.MessageDirection.clientToServer,t.type=new o.ProtocolRequestType(t.method),(r=a||(e.CallHierarchyIncomingCallsRequest=a={})).method="callHierarchy/incomingCalls",r.messageDirection=o.MessageDirection.clientToServer,r.type=new o.ProtocolRequestType(r.method),(n=s||(e.CallHierarchyOutgoingCallsRequest=s={})).method="callHierarchy/outgoingCalls",n.messageDirection=o.MessageDirection.clientToServer,n.type=new o.ProtocolRequestType(n.method)}}),t8=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.SemanticTokensRegistrationType=e.TokenFormat=void 0;var t,r,n,i,a,s,o,l,u,c,p,f=tY();(s||(e.TokenFormat=s={})).Relative="relative",(t=o||(e.SemanticTokensRegistrationType=o={})).method="textDocument/semanticTokens",t.type=new f.RegistrationType(t.method),(r=l||(e.SemanticTokensRequest=l={})).method="textDocument/semanticTokens/full",r.messageDirection=f.MessageDirection.clientToServer,r.type=new f.ProtocolRequestType(r.method),r.registrationMethod=o.method,(n=u||(e.SemanticTokensDeltaRequest=u={})).method="textDocument/semanticTokens/full/delta",n.messageDirection=f.MessageDirection.clientToServer,n.type=new f.ProtocolRequestType(n.method),n.registrationMethod=o.method,(i=c||(e.SemanticTokensRangeRequest=c={})).method="textDocument/semanticTokens/range",i.messageDirection=f.MessageDirection.clientToServer,i.type=new f.ProtocolRequestType(i.method),i.registrationMethod=o.method,(a=p||(e.SemanticTokensRefreshRequest=p={})).method="workspace/semanticTokens/refresh",a.messageDirection=f.MessageDirection.serverToClient,a.type=new f.ProtocolRequestType0(a.method)}}),t6=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ShowDocumentRequest=void 0;var t,r,n=tY();(t=r||(e.ShowDocumentRequest=r={})).method="window/showDocument",t.messageDirection=n.MessageDirection.serverToClient,t.type=new n.ProtocolRequestType(t.method)}}),t7=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedEditingRangeRequest=void 0;var t,r,n=tY();(t=r||(e.LinkedEditingRangeRequest=r={})).method="textDocument/linkedEditingRange",t.messageDirection=n.MessageDirection.clientToServer,t.type=new n.ProtocolRequestType(t.method)}}),re=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.DidRenameFilesNotification=e.WillRenameFilesRequest=e.DidCreateFilesNotification=e.WillCreateFilesRequest=e.FileOperationPatternKind=void 0;var t,r,n,i,a,s,o,l,u,c,p,f,d,m,h=tY();(t=l||(e.FileOperationPatternKind=l={})).file="file",t.folder="folder",(r=u||(e.WillCreateFilesRequest=u={})).method="workspace/willCreateFiles",r.messageDirection=h.MessageDirection.clientToServer,r.type=new h.ProtocolRequestType(r.method),(n=c||(e.DidCreateFilesNotification=c={})).method="workspace/didCreateFiles",n.messageDirection=h.MessageDirection.clientToServer,n.type=new h.ProtocolNotificationType(n.method),(i=p||(e.WillRenameFilesRequest=p={})).method="workspace/willRenameFiles",i.messageDirection=h.MessageDirection.clientToServer,i.type=new h.ProtocolRequestType(i.method),(a=f||(e.DidRenameFilesNotification=f={})).method="workspace/didRenameFiles",a.messageDirection=h.MessageDirection.clientToServer,a.type=new h.ProtocolNotificationType(a.method),(s=d||(e.DidDeleteFilesNotification=d={})).method="workspace/didDeleteFiles",s.messageDirection=h.MessageDirection.clientToServer,s.type=new h.ProtocolNotificationType(s.method),(o=m||(e.WillDeleteFilesRequest=m={})).method="workspace/willDeleteFiles",o.messageDirection=h.MessageDirection.clientToServer,o.type=new h.ProtocolRequestType(o.method)}}),rt=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=void 0;var t,r,n,i,a,s,o=tY();(t=i||(e.UniquenessLevel=i={})).document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global",(r=a||(e.MonikerKind=a={})).$import="import",r.$export="export",r.local="local",(n=s||(e.MonikerRequest=s={})).method="textDocument/moniker",n.messageDirection=o.MessageDirection.clientToServer,n.type=new o.ProtocolRequestType(n.method)}}),rr=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchySubtypesRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchyPrepareRequest=void 0;var t,r,n,i,a,s,o=tY();(t=i||(e.TypeHierarchyPrepareRequest=i={})).method="textDocument/prepareTypeHierarchy",t.messageDirection=o.MessageDirection.clientToServer,t.type=new o.ProtocolRequestType(t.method),(r=a||(e.TypeHierarchySupertypesRequest=a={})).method="typeHierarchy/supertypes",r.messageDirection=o.MessageDirection.clientToServer,r.type=new o.ProtocolRequestType(r.method),(n=s||(e.TypeHierarchySubtypesRequest=s={})).method="typeHierarchy/subtypes",n.messageDirection=o.MessageDirection.clientToServer,n.type=new o.ProtocolRequestType(n.method)}}),rn=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlineValueRefreshRequest=e.InlineValueRequest=void 0;var t,r,n,i,a=tY();(t=n||(e.InlineValueRequest=n={})).method="textDocument/inlineValue",t.messageDirection=a.MessageDirection.clientToServer,t.type=new a.ProtocolRequestType(t.method),(r=i||(e.InlineValueRefreshRequest=i={})).method="workspace/inlineValue/refresh",r.messageDirection=a.MessageDirection.serverToClient,r.type=new a.ProtocolRequestType0(r.method)}}),ri=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=void 0;var t,r,n,i,a,s,o=tY();(t=i||(e.InlayHintRequest=i={})).method="textDocument/inlayHint",t.messageDirection=o.MessageDirection.clientToServer,t.type=new o.ProtocolRequestType(t.method),(r=a||(e.InlayHintResolveRequest=a={})).method="inlayHint/resolve",r.messageDirection=o.MessageDirection.clientToServer,r.type=new o.ProtocolRequestType(r.method),(n=s||(e.InlayHintRefreshRequest=s={})).method="workspace/inlayHint/refresh",n.messageDirection=o.MessageDirection.serverToClient,n.type=new o.ProtocolRequestType0(n.method)}}),ra=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=void 0;var t,r,n,i,a,s,o,l,u,c=tV(),p=tX(),f=tY(),d=a||(e.DiagnosticServerCancellationData=a={});function m(e){return e&&p.boolean(e.retriggerRequest)}tA(m,"is"),d.is=m,(t=s||(e.DocumentDiagnosticReportKind=s={})).Full="full",t.Unchanged="unchanged",(r=o||(e.DocumentDiagnosticRequest=o={})).method="textDocument/diagnostic",r.messageDirection=f.MessageDirection.clientToServer,r.type=new f.ProtocolRequestType(r.method),r.partialResult=new c.ProgressType,(n=l||(e.WorkspaceDiagnosticRequest=l={})).method="workspace/diagnostic",n.messageDirection=f.MessageDirection.clientToServer,n.type=new f.ProtocolRequestType(n.method),n.partialResult=new c.ProgressType,(i=u||(e.DiagnosticRefreshRequest=u={})).method="workspace/diagnostic/refresh",i.messageDirection=f.MessageDirection.serverToClient,i.type=new f.ProtocolRequestType0(i.method)}}),rs=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=void 0;var t,r,n,i,a,s,o,l,u,c,p,f,d,m,h,y=(t_(),tN(tI)),g=tX(),T=tY(),$=s||(e.NotebookCellKind=s={});function v(e){return 1===e||2===e}$.Markup=1,$.Code=2,tA(v,"is"),$.is=v,function(e){function t(e,t){let r={executionOrder:e};return(!0===t||!1===t)&&(r.success=t),r}function r(e){return g.objectLiteral(e)&&y.uinteger.is(e.executionOrder)&&(void 0===e.success||g.boolean(e.success))}function n(e,t){return e===t||null!=e&&null!=t&&e.executionOrder===t.executionOrder&&e.success===t.success}tA(t,"create"),e.create=t,tA(r,"is"),e.is=r,tA(n,"equals"),e.equals=n}(o||(e.ExecutionSummary=o={})),function(e){function t(e,t){return{kind:e,document:t}}function r(e){return g.objectLiteral(e)&&s.is(e.kind)&&y.DocumentUri.is(e.document)&&(void 0===e.metadata||g.objectLiteral(e.metadata))}function n(e,t){let r=new Set;return e.document!==t.document&&r.add("document"),e.kind!==t.kind&&r.add("kind"),e.executionSummary!==t.executionSummary&&r.add("executionSummary"),void 0===e.metadata&&void 0===t.metadata||i(e.metadata,t.metadata)||r.add("metadata"),void 0===e.executionSummary&&void 0===t.executionSummary||o.equals(e.executionSummary,t.executionSummary)||r.add("executionSummary"),r}function i(e,t){if(e===t)return!0;if(null==e||null==t||typeof e!=typeof t||"object"!=typeof e)return!1;let r=Array.isArray(e),n=Array.isArray(t);if(r!==n)return!1;if(r&&n){if(e.length!==t.length)return!1;for(let r=0;r0}tA(tF,"hasId"),tj.hasId=tF;var tz=ep||(e.TextDocumentRegistrationOptions=ep={});function tG(e){return e&&(null===e.documentSelector||ei.is(e.documentSelector))}tA(tG,"is"),tz.is=tG;var tK=ef||(e.WorkDoneProgressOptions=ef={});function tq(e){return ti.objectLiteral(e)&&(void 0===e.workDoneProgress||ti.boolean(e.workDoneProgress))}function tU(e){return e&&ti.boolean(e.workDoneProgress)}tA(tq,"is"),tK.is=tq,tA(tU,"hasWorkDoneProgress"),tK.hasWorkDoneProgress=tU,(s=ed||(e.InitializeRequest=ed={})).method="initialize",s.messageDirection=tr.MessageDirection.clientToServer,s.type=new tr.ProtocolRequestType(s.method),(em||(e.InitializeErrorCodes=em={})).unknownProtocolVersion=1,(o=eh||(e.InitializedNotification=eh={})).method="initialized",o.messageDirection=tr.MessageDirection.clientToServer,o.type=new tr.ProtocolNotificationType(o.method),(l=ey||(e.ShutdownRequest=ey={})).method="shutdown",l.messageDirection=tr.MessageDirection.clientToServer,l.type=new tr.ProtocolRequestType0(l.method),(u=eg||(e.ExitNotification=eg={})).method="exit",u.messageDirection=tr.MessageDirection.clientToServer,u.type=new tr.ProtocolNotificationType0(u.method),(c=eT||(e.DidChangeConfigurationNotification=eT={})).method="workspace/didChangeConfiguration",c.messageDirection=tr.MessageDirection.clientToServer,c.type=new tr.ProtocolNotificationType(c.method),(p=e$||(e.MessageType=e$={})).Error=1,p.Warning=2,p.Info=3,p.Log=4,p.Debug=5,(f=ev||(e.ShowMessageNotification=ev={})).method="window/showMessage",f.messageDirection=tr.MessageDirection.serverToClient,f.type=new tr.ProtocolNotificationType(f.method),(d=eR||(e.ShowMessageRequest=eR={})).method="window/showMessageRequest",d.messageDirection=tr.MessageDirection.serverToClient,d.type=new tr.ProtocolRequestType(d.method),(m=eb||(e.LogMessageNotification=eb={})).method="window/logMessage",m.messageDirection=tr.MessageDirection.serverToClient,m.type=new tr.ProtocolNotificationType(m.method),(h=eA||(e.TelemetryEventNotification=eA={})).method="telemetry/event",h.messageDirection=tr.MessageDirection.serverToClient,h.type=new tr.ProtocolNotificationType(h.method),(y=eE||(e.TextDocumentSyncKind=eE={})).None=0,y.Full=1,y.Incremental=2,(g=eC||(e.DidOpenTextDocumentNotification=eC={})).method="textDocument/didOpen",g.messageDirection=tr.MessageDirection.clientToServer,g.type=new tr.ProtocolNotificationType(g.method);var tB=eS||(e.TextDocumentContentChangeEvent=eS={});function tW(e){return null!=e&&"string"==typeof e.text&&void 0!==e.range&&(void 0===e.rangeLength||"number"==typeof e.rangeLength)}function tV(e){return null!=e&&"string"==typeof e.text&&void 0===e.range&&void 0===e.rangeLength}tA(tW,"isIncremental"),tB.isIncremental=tW,tA(tV,"isFull"),tB.isFull=tV,(T=ek||(e.DidChangeTextDocumentNotification=ek={})).method="textDocument/didChange",T.messageDirection=tr.MessageDirection.clientToServer,T.type=new tr.ProtocolNotificationType(T.method),($=ex||(e.DidCloseTextDocumentNotification=ex={})).method="textDocument/didClose",$.messageDirection=tr.MessageDirection.clientToServer,$.type=new tr.ProtocolNotificationType($.method),(v=eN||(e.DidSaveTextDocumentNotification=eN={})).method="textDocument/didSave",v.messageDirection=tr.MessageDirection.clientToServer,v.type=new tr.ProtocolNotificationType(v.method),(R=eI||(e.TextDocumentSaveReason=eI={})).Manual=1,R.AfterDelay=2,R.FocusOut=3,(b=e_||(e.WillSaveTextDocumentNotification=e_={})).method="textDocument/willSave",b.messageDirection=tr.MessageDirection.clientToServer,b.type=new tr.ProtocolNotificationType(b.method),(A=ew||(e.WillSaveTextDocumentWaitUntilRequest=ew={})).method="textDocument/willSaveWaitUntil",A.messageDirection=tr.MessageDirection.clientToServer,A.type=new tr.ProtocolRequestType(A.method),(E=eP||(e.DidChangeWatchedFilesNotification=eP={})).method="workspace/didChangeWatchedFiles",E.messageDirection=tr.MessageDirection.clientToServer,E.type=new tr.ProtocolNotificationType(E.method),(C=eO||(e.FileChangeType=eO={})).Created=1,C.Changed=2,C.Deleted=3;var tH=eD||(e.RelativePattern=eD={});function rl(e){return ti.objectLiteral(e)&&(tn.URI.is(e.baseUri)||tn.WorkspaceFolder.is(e.baseUri))&&ti.string(e.pattern)}tA(rl,"is"),tH.is=rl,(S=eL||(e.WatchKind=eL={})).Create=1,S.Change=2,S.Delete=4,(k=eM||(e.PublishDiagnosticsNotification=eM={})).method="textDocument/publishDiagnostics",k.messageDirection=tr.MessageDirection.serverToClient,k.type=new tr.ProtocolNotificationType(k.method),(x=ej||(e.CompletionTriggerKind=ej={})).Invoked=1,x.TriggerCharacter=2,x.TriggerForIncompleteCompletions=3,(N=eF||(e.CompletionRequest=eF={})).method="textDocument/completion",N.messageDirection=tr.MessageDirection.clientToServer,N.type=new tr.ProtocolRequestType(N.method),(I=ez||(e.CompletionResolveRequest=ez={})).method="completionItem/resolve",I.messageDirection=tr.MessageDirection.clientToServer,I.type=new tr.ProtocolRequestType(I.method),(_=eG||(e.HoverRequest=eG={})).method="textDocument/hover",_.messageDirection=tr.MessageDirection.clientToServer,_.type=new tr.ProtocolRequestType(_.method),(w=eK||(e.SignatureHelpTriggerKind=eK={})).Invoked=1,w.TriggerCharacter=2,w.ContentChange=3,(P=eq||(e.SignatureHelpRequest=eq={})).method="textDocument/signatureHelp",P.messageDirection=tr.MessageDirection.clientToServer,P.type=new tr.ProtocolRequestType(P.method),(O=eU||(e.DefinitionRequest=eU={})).method="textDocument/definition",O.messageDirection=tr.MessageDirection.clientToServer,O.type=new tr.ProtocolRequestType(O.method),(D=eB||(e.ReferencesRequest=eB={})).method="textDocument/references",D.messageDirection=tr.MessageDirection.clientToServer,D.type=new tr.ProtocolRequestType(D.method),(L=eW||(e.DocumentHighlightRequest=eW={})).method="textDocument/documentHighlight",L.messageDirection=tr.MessageDirection.clientToServer,L.type=new tr.ProtocolRequestType(L.method),(M=eV||(e.DocumentSymbolRequest=eV={})).method="textDocument/documentSymbol",M.messageDirection=tr.MessageDirection.clientToServer,M.type=new tr.ProtocolRequestType(M.method),(j=eH||(e.CodeActionRequest=eH={})).method="textDocument/codeAction",j.messageDirection=tr.MessageDirection.clientToServer,j.type=new tr.ProtocolRequestType(j.method),(F=eY||(e.CodeActionResolveRequest=eY={})).method="codeAction/resolve",F.messageDirection=tr.MessageDirection.clientToServer,F.type=new tr.ProtocolRequestType(F.method),(z=eX||(e.WorkspaceSymbolRequest=eX={})).method="workspace/symbol",z.messageDirection=tr.MessageDirection.clientToServer,z.type=new tr.ProtocolRequestType(z.method),(G=eZ||(e.WorkspaceSymbolResolveRequest=eZ={})).method="workspaceSymbol/resolve",G.messageDirection=tr.MessageDirection.clientToServer,G.type=new tr.ProtocolRequestType(G.method),(K=eJ||(e.CodeLensRequest=eJ={})).method="textDocument/codeLens",K.messageDirection=tr.MessageDirection.clientToServer,K.type=new tr.ProtocolRequestType(K.method),(q=eQ||(e.CodeLensResolveRequest=eQ={})).method="codeLens/resolve",q.messageDirection=tr.MessageDirection.clientToServer,q.type=new tr.ProtocolRequestType(q.method),(U=e0||(e.CodeLensRefreshRequest=e0={})).method="workspace/codeLens/refresh",U.messageDirection=tr.MessageDirection.serverToClient,U.type=new tr.ProtocolRequestType0(U.method),(B=e1||(e.DocumentLinkRequest=e1={})).method="textDocument/documentLink",B.messageDirection=tr.MessageDirection.clientToServer,B.type=new tr.ProtocolRequestType(B.method),(W=e2||(e.DocumentLinkResolveRequest=e2={})).method="documentLink/resolve",W.messageDirection=tr.MessageDirection.clientToServer,W.type=new tr.ProtocolRequestType(W.method),(V=e3||(e.DocumentFormattingRequest=e3={})).method="textDocument/formatting",V.messageDirection=tr.MessageDirection.clientToServer,V.type=new tr.ProtocolRequestType(V.method),(H=e9||(e.DocumentRangeFormattingRequest=e9={})).method="textDocument/rangeFormatting",H.messageDirection=tr.MessageDirection.clientToServer,H.type=new tr.ProtocolRequestType(H.method),(Y=e4||(e.DocumentRangesFormattingRequest=e4={})).method="textDocument/rangesFormatting",Y.messageDirection=tr.MessageDirection.clientToServer,Y.type=new tr.ProtocolRequestType(Y.method),(X=e5||(e.DocumentOnTypeFormattingRequest=e5={})).method="textDocument/onTypeFormatting",X.messageDirection=tr.MessageDirection.clientToServer,X.type=new tr.ProtocolRequestType(X.method),(e8||(e.PrepareSupportDefaultBehavior=e8={})).Identifier=1,(Z=e6||(e.RenameRequest=e6={})).method="textDocument/rename",Z.messageDirection=tr.MessageDirection.clientToServer,Z.type=new tr.ProtocolRequestType(Z.method),(J=e7||(e.PrepareRenameRequest=e7={})).method="textDocument/prepareRename",J.messageDirection=tr.MessageDirection.clientToServer,J.type=new tr.ProtocolRequestType(J.method),(Q=te||(e.ExecuteCommandRequest=te={})).method="workspace/executeCommand",Q.messageDirection=tr.MessageDirection.clientToServer,Q.type=new tr.ProtocolRequestType(Q.method),(ee=tt||(e.ApplyWorkspaceEditRequest=tt={})).method="workspace/applyEdit",ee.messageDirection=tr.MessageDirection.serverToClient,ee.type=new tr.ProtocolRequestType("workspace/applyEdit")}}),ru=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var t=tV();function r(e,r,n,i){return t.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,t.createMessageConnection)(e,r,n,i)}tA(r,"createProtocolConnection"),e.createProtocolConnection=r}}),rc=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.js"(e){var t,r,n=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:tA(function(){return t[r]},"get")}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.LSPErrorCodes=e.createProtocolConnection=void 0,i(tV(),e),i((t_(),tN(tI)),e),i(tY(),e),i(rl(),e);var a=ru();Object.defineProperty(e,"createProtocolConnection",{enumerable:!0,get:tA(function(){return a.createProtocolConnection},"get")}),(t=r||(e.LSPErrorCodes=r={})).lspReservedErrorRangeStart=-32899,t.RequestFailed=-32803,t.ServerCancelled=-32802,t.ContentModified=-32801,t.RequestCancelled=-32800,t.lspReservedErrorRangeEnd=-32800}}),rp=tE({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/browser/main.js"(e){var t=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:tA(function(){return t[r]},"get")}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=e&&e.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var n=tH();function i(e,t,r,i){return(0,n.createMessageConnection)(e,t,r,i)}r(tH(),e),r(rc(),e),tA(i,"createProtocolConnection"),e.createProtocolConnection=i}}),rf={};tC(rf,{AbstractAstReflection:()=>r$,AbstractCstNode:()=>TF,AbstractLangiumParser:()=>TV,AbstractParserErrorMessageProvider:()=>TY,AbstractThreadedAsyncParser:()=>vB,AstUtils:()=>rI,BiMap:()=>$G,Cancellation:()=>$m,CompositeCstNodeImpl:()=>TG,ContextCache:()=>$Y,CstNodeBuilder:()=>Tj,CstUtils:()=>rd,DEFAULT_TOKENIZE_OPTIONS:()=>vc,DONE_RESULT:()=>rk,DatatypeSymbol:()=>TU,DefaultAstNodeDescriptionProvider:()=>ve,DefaultAstNodeLocator:()=>vr,DefaultAsyncParser:()=>vU,DefaultCommentProvider:()=>vq,DefaultConfigurationProvider:()=>vi,DefaultDocumentBuilder:()=>vs,DefaultDocumentValidator:()=>$5,DefaultHydrator:()=>vH,DefaultIndexManager:()=>vo,DefaultJsonSerializer:()=>$1,DefaultLangiumDocumentFactory:()=>$P,DefaultLangiumDocuments:()=>$O,DefaultLangiumProfiler:()=>Ri,DefaultLexer:()=>vp,DefaultLexerErrorMessageProvider:()=>vu,DefaultLinker:()=>$L,DefaultNameProvider:()=>$j,DefaultReferenceDescriptionProvider:()=>vt,DefaultReferences:()=>$F,DefaultScopeComputation:()=>$K,DefaultScopeProvider:()=>$J,DefaultServiceRegistry:()=>$2,DefaultTokenBuilder:()=>$f,DefaultValueConverter:()=>$d,DefaultWorkspaceLock:()=>vV,DefaultWorkspaceManager:()=>vl,Deferred:()=>$A,Disposable:()=>eV,DisposableCache:()=>$V,DocumentCache:()=>$X,DocumentState:()=>eU,DocumentValidator:()=>eW,EMPTY_SCOPE:()=>$W,EMPTY_STREAM:()=>rS,EmptyFileSystem:()=>v7,EmptyFileSystemProvider:()=>v6,ErrorWithLocation:()=>iV,GrammarAST:()=>rB,GrammarUtils:()=>iW,IndentationAwareLexer:()=>v5,IndentationAwareTokenBuilder:()=>v4,JSDocDocumentationProvider:()=>vK,LangiumCompletionParser:()=>TZ,LangiumParser:()=>TH,LangiumParserErrorMessageProvider:()=>TX,LeafCstNodeImpl:()=>Tz,LexingMode:()=>eY,MapScope:()=>$U,Module:()=>eH,MultiMap:()=>$z,MultiMapScope:()=>$B,OperationCancelled:()=>$v,ParserWorker:()=>vW,ProfilingTask:()=>Ra,Reduction:()=>eO,RefResolving:()=>$D,RegExpUtils:()=>iX,RootCstNodeImpl:()=>Tq,SimpleCache:()=>$H,StreamImpl:()=>rA,StreamScope:()=>$q,TextDocument:()=>eG,TreeStreamImpl:()=>rN,URI:()=>$I,UriTrie:()=>$w,UriUtils:()=>eq,VALIDATE_EACH_NODE:()=>$4,ValidationCategory:()=>eB,ValidationRegistry:()=>$9,ValueConverter:()=>ez,WorkspaceCache:()=>$Z,assertCondition:()=>iY,assertUnreachable:()=>iH,createCompletionParser:()=>$u,createDefaultCoreModule:()=>vY,createDefaultSharedCoreModule:()=>vX,createGrammarConfig:()=>aX,createLangiumParser:()=>$c,createParser:()=>T1,delayNextTick:()=>$h,diagnosticData:()=>$3,eagerLoad:()=>vQ,getDiagnosticRange:()=>$8,indentationBuilderDefaultOptions:()=>v9,inject:()=>vZ,interruptAndCheck:()=>$b,isAstNode:()=>rm,isAstNodeDescription:()=>rg,isAstNodeWithComment:()=>$Q,isCompositeCstNode:()=>rv,isIMultiModeLexerDefinition:()=>vd,isJSDoc:()=>vy,isLeafCstNode:()=>rR,isLinkingError:()=>rT,isMultiReference:()=>ry,isNamed:()=>$M,isOperationCancelled:()=>$R,isReference:()=>rh,isRootCstNode:()=>rb,isTokenTypeArray:()=>vf,isTokenTypeDictionary:()=>vm,loadGrammarFromJson:()=>Rn,parseJSDoc:()=>vh,prepareLangiumParser:()=>$p,setInterruptionPeriod:()=>$$,startCancelableOperation:()=>$T,stream:()=>rx,toDiagnosticData:()=>$7,toDiagnosticSeverity:()=>$6});var rd={};function rm(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$type}function rh(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$refText&&"ref"in e}function ry(e){return"object"==typeof e&&null!==e&&"string"==typeof e.$refText&&"items"in e}function rg(e){return"object"==typeof e&&null!==e&&"string"==typeof e.name&&"string"==typeof e.type&&"string"==typeof e.path}function rT(e){return"object"==typeof e&&null!==e&&"object"==typeof e.info&&"string"==typeof e.message}tC(rd,{DefaultNameRegexp:()=>iP,RangeComparison:()=>eD,compareRange:()=>i_,findCommentNode:()=>iD,findDeclarationNodeAtOffset:()=>iO,findLeafNodeAtOffset:()=>iM,findLeafNodeBeforeOffset:()=>ij,flattenCst:()=>ik,getDatatypeNode:()=>iC,getInteriorNodes:()=>iq,getNextNode:()=>iG,getPreviousNode:()=>iz,getStartlineNode:()=>iK,inRange:()=>iw,isChildNode:()=>ix,isCommentNode:()=>iL,streamCst:()=>iS,toDocumentSegment:()=>iI,tokenToRange:()=>iN}),tA(rm,"isAstNode"),tA(rh,"isReference"),tA(ry,"isMultiReference"),tA(rg,"isAstNodeDescription"),tA(rT,"isLinkingError");var r$=class{static{tA(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let t=this.types[e.container.$type];if(!t)throw Error(`Type ${e.container.$type||"undefined"} not found.`);let r=t.properties[e.property]?.referenceType;if(!r)throw Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return r}getTypeMetaData(e){let t=this.types[e];return t||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return rm(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});let n=r[t];if(void 0!==n)return n;{let n=this.types[e],i=!!n&&n.superTypes.some(e=>this.isSubtype(e,t));return r[t]=i,i}}getAllSubTypes(e){let t=this.allSubtypes[e];if(t)return t;{let t=this.getAllTypes(),r=[];for(let n of t)this.isSubtype(n,e)&&r.push(n);return this.allSubtypes[e]=r,r}}};function rv(e){return"object"==typeof e&&null!==e&&Array.isArray(e.content)}function rR(e){return"object"==typeof e&&null!==e&&"object"==typeof e.tokenType}function rb(e){return rv(e)&&"string"==typeof e.fullText}tA(rv,"isCompositeCstNode"),tA(rR,"isLeafCstNode"),tA(rb,"isRootCstNode");var rA=class e{static{tA(this,"StreamImpl")}constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){let e={state:this.startFn(),next:tA(()=>this.nextFn(e.state),"next"),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let e=this.iterator(),t=0,r=e.next();for(;!r.done;)t++,r=e.next();return t}toArray(){let e,t=[],r=this.iterator();do void 0!==(e=r.next()).value&&t.push(e.value);while(!e.done);return t}toSet(){return new Set(this)}toMap(e,t){return new Map(this.map(r=>[e?e(r):r,t?t(r):r]))}toString(){return this.join()}concat(t){return new e(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),e=>{let t;if(!e.firstDone){do if(!(t=this.nextFn(e.first)).done)return t;while(!t.done);e.firstDone=!0}do if(!(t=e.iterator.next()).done)return t;while(!t.done);return rk})}join(e=","){let t,r=this.iterator(),n="",i=!1;do(t=r.next()).done||(i&&(n+=e),n+=rE(t.value)),i=!0;while(!t.done);return n}indexOf(e,t=0){let r=this.iterator(),n=0,i=r.next();for(;!i.done;){if(n>=t&&i.value===e)return n;i=r.next(),n++}return -1}every(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(!e(r.value))return!1;r=t.next()}return!0}some(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(e(r.value))return!0;r=t.next()}return!1}forEach(e){let t=this.iterator(),r=0,n=t.next();for(;!n.done;)e(n.value,r),n=t.next(),r++}map(t){return new e(this.startFn,e=>{let{done:r,value:n}=this.nextFn(e);return r?rk:{done:!1,value:t(n)}})}filter(t){return new e(this.startFn,e=>{let r;do if(!(r=this.nextFn(e)).done&&t(r.value))return r;while(!r.done);return rk})}nonNullable(){return this.filter(e=>null!=e)}reduce(e,t){let r=this.iterator(),n=t,i=r.next();for(;!i.done;)n=void 0===n?i.value:e(n,i.value),i=r.next();return n}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,r){let n=e.next();if(n.done)return r;let i=this.recursiveReduce(e,t,r);return void 0===i?n.value:t(i,n.value)}find(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(e(r.value))return r.value;r=t.next()}}findIndex(e){let t=this.iterator(),r=0,n=t.next();for(;!n.done;){if(e(n.value))return r;n=t.next(),r++}return -1}includes(e){let t=this.iterator(),r=t.next();for(;!r.done;){if(r.value===e)return!0;r=t.next()}return!1}flatMap(t){return new e(()=>({this:this.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}let{done:r,value:n}=this.nextFn(e.this);if(!r){let r=t(n);if(!rC(r))return{done:!1,value:r};e.iterator=r[Symbol.iterator]()}}while(e.iterator);return rk})}flat(t){if(void 0===t&&(t=1),t<=0)return this;let r=t>1?this.flat(t-1):this;return new e(()=>({this:r.startFn()}),e=>{do{if(e.iterator){let t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}let{done:t,value:n}=r.nextFn(e.this);if(!t)if(!rC(n))return{done:!1,value:n};else e.iterator=n[Symbol.iterator]()}while(e.iterator);return rk})}head(){let e=this.iterator().next();if(!e.done)return e.value}tail(t=1){return new e(()=>{let e=this.startFn();for(let r=0;r({size:0,state:this.startFn()}),e=>(e.size++,e.size>t)?rk:this.nextFn(e.state))}distinct(t){return new e(()=>({set:new Set,internalState:this.startFn()}),e=>{let r;do if(!(r=this.nextFn(e.internalState)).done){let n=t?t(r.value):r.value;if(!e.set.has(n))return e.set.add(n),r}while(!r.done);return rk})}exclude(e,t){let r=new Set;for(let n of e){let e=t?t(n):n;r.add(e)}return this.filter(e=>{let n=t?t(e):e;return!r.has(n)})}};function rE(e){return"string"==typeof e?e:void 0===e?"undefined":"function"==typeof e.toString?e.toString():Object.prototype.toString.call(e)}function rC(e){return!!e&&"function"==typeof e[Symbol.iterator]}tA(rE,"toString"),tA(rC,"isIterable");var rS=new rA(()=>void 0,()=>rk),rk=Object.freeze({done:!0,value:void 0});function rx(...e){if(1===e.length){let t=e[0];if(t instanceof rA)return t;if(rC(t))return new rA(()=>t[Symbol.iterator](),e=>e.next());if("number"==typeof t.length)return new rA(()=>({index:0}),e=>e.index1?new rA(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let e=t.iterator.next();if(!e.done)return e;t.iterator=void 0}if(t.array){if(t.arrIndex({iterators:r?.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),e=>{for(e.pruned&&(e.iterators.pop(),e.pruned=!1);e.iterators.length>0;){let r=e.iterators[e.iterators.length-1].next();if(!r.done)return e.iterators.push(t(r.value)[Symbol.iterator]()),r;e.iterators.pop()}return rk})}iterator(){let e={state:this.startFn(),next:tA(()=>this.nextFn(e.state),"next"),prune:tA(()=>{e.state.pruned=!0},"prune"),[Symbol.iterator]:()=>e};return e}};!function(e){function t(e){return e.reduce((e,t)=>e+t,0)}function r(e){return e.reduce((e,t)=>e*t,0)}function n(e){return e.reduce((e,t)=>Math.min(e,t))}function i(e){return e.reduce((e,t)=>Math.max(e,t))}tA(t,"sum"),e.sum=t,tA(r,"product"),e.product=r,tA(n,"min"),e.min=n,tA(i,"max"),e.max=i}(eO||(eO={}));var rI={};function r_(e,t={}){for(let[r,n]of Object.entries(e))!r.startsWith("$")&&(Array.isArray(n)?n.forEach((n,i)=>{rm(n)&&(n.$container=e,n.$containerProperty=r,n.$containerIndex=i,t.deep&&r_(n,t))}):rm(n)&&(n.$container=e,n.$containerProperty=r,t.deep&&r_(n,t)))}function rw(e,t){let r=e;for(;r;){if(t(r))return r;r=r.$container}}function rP(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.$container}return!1}function rO(e){let t=rD(e).$document;if(!t)throw Error("AST node has no document.");return t}function rD(e){for(;e.$container;)e=e.$container;return e}function rL(e){return rh(e)?e.ref?[e.ref]:[]:ry(e)?e.items.map(e=>e.ref):[]}function rM(e,t){if(!e)throw Error("Node must be an AstNode.");let r=t?.range;return new rA(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndexrM(e,t))}function rF(e,t){if(e){if(t?.range&&!rz(e,t.range))return new rN(e,()=>[])}else throw Error("Root node must be an AstNode.");return new rN(e,e=>rM(e,t),{includeRoot:!0})}function rz(e,t){if(!t)return!0;let r=e.$cstNode?.range;return!!r&&iw(r,t)}function rG(e){return new rA(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndexrK,copyAstNode:()=>rU,findRootNode:()=>rD,getContainerOfType:()=>rw,getDocument:()=>rO,getReferenceNodes:()=>rL,hasContainerOfType:()=>rP,linkContentToContainer:()=>r_,streamAllContents:()=>rj,streamAst:()=>rF,streamContents:()=>rM,streamReferences:()=>rG}),tA(r_,"linkContentToContainer"),tA(rw,"getContainerOfType"),tA(rP,"hasContainerOfType"),tA(rO,"getDocument"),tA(rD,"findRootNode"),tA(rL,"getReferenceNodes"),tA(rM,"streamContents"),tA(rj,"streamAllContents"),tA(rF,"streamAst"),tA(rz,"isAstNodeInRange"),tA(rG,"streamReferences"),tA(rK,"assignMandatoryProperties"),tA(rq,"copyDefaultValue"),tA(rU,"copyAstNode");var rB={};tC(rB,{AbstractElement:()=>rV,AbstractParserRule:()=>rY,AbstractRule:()=>rZ,AbstractType:()=>rQ,Action:()=>r1,Alternatives:()=>r3,ArrayLiteral:()=>r4,ArrayType:()=>r8,Assignment:()=>r7,BooleanLiteral:()=>nt,CharacterRange:()=>nn,Condition:()=>na,Conjunction:()=>no,CrossReference:()=>nu,Disjunction:()=>np,EndOfFile:()=>nd,Grammar:()=>nh,GrammarImport:()=>ng,Group:()=>n$,InferredType:()=>nR,InfixRule:()=>nA,InfixRuleOperatorList:()=>nC,InfixRuleOperators:()=>nk,Interface:()=>nN,Keyword:()=>n_,LangiumGrammarAstReflection:()=>iA,LangiumGrammarTerminals:()=>rW,NamedArgument:()=>nP,NegatedToken:()=>nD,Negation:()=>nM,NumberLiteral:()=>nF,Parameter:()=>nG,ParameterReference:()=>nq,ParserRule:()=>nB,ReferenceType:()=>nV,RegexToken:()=>nY,ReturnType:()=>nZ,RuleCall:()=>nQ,SimpleType:()=>n1,StringLiteral:()=>n3,TerminalAlternatives:()=>n4,TerminalElement:()=>n8,TerminalGroup:()=>n7,TerminalRule:()=>it,TerminalRuleCall:()=>ii,Type:()=>is,TypeAttribute:()=>il,TypeDefinition:()=>ic,UnionType:()=>id,UnorderedGroup:()=>ih,UntilToken:()=>ig,ValueLiteral:()=>i$,Wildcard:()=>iR,isAbstractElement:()=>rH,isAbstractParserRule:()=>rX,isAbstractRule:()=>rJ,isAbstractType:()=>r0,isAction:()=>r2,isAlternatives:()=>r9,isArrayLiteral:()=>r5,isArrayType:()=>r6,isAssignment:()=>ne,isBooleanLiteral:()=>nr,isCharacterRange:()=>ni,isCondition:()=>ns,isConjunction:()=>nl,isCrossReference:()=>nc,isDisjunction:()=>nf,isEndOfFile:()=>nm,isGrammar:()=>ny,isGrammarImport:()=>nT,isGroup:()=>nv,isInferredType:()=>nb,isInfixRule:()=>nE,isInfixRuleOperatorList:()=>nS,isInfixRuleOperators:()=>nx,isInterface:()=>nI,isKeyword:()=>nw,isNamedArgument:()=>nO,isNegatedToken:()=>nL,isNegation:()=>nj,isNumberLiteral:()=>nz,isParameter:()=>nK,isParameterReference:()=>nU,isParserRule:()=>nW,isReferenceType:()=>nH,isRegexToken:()=>nX,isReturnType:()=>nJ,isRuleCall:()=>n0,isSimpleType:()=>n2,isStringLiteral:()=>n9,isTerminalAlternatives:()=>n5,isTerminalElement:()=>n6,isTerminalGroup:()=>ie,isTerminalRule:()=>ir,isTerminalRuleCall:()=>ia,isType:()=>io,isTypeAttribute:()=>iu,isTypeDefinition:()=>ip,isUnionType:()=>im,isUnorderedGroup:()=>iy,isUntilToken:()=>iT,isValueLiteral:()=>iv,isWildcard:()=>ib,reflection:()=>iE});var rW={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},rV={$type:"AbstractElement",cardinality:"cardinality"};function rH(e){return iE.isInstance(e,rV.$type)}tA(rH,"isAbstractElement");var rY={$type:"AbstractParserRule"};function rX(e){return iE.isInstance(e,rY.$type)}tA(rX,"isAbstractParserRule");var rZ={$type:"AbstractRule"};function rJ(e){return iE.isInstance(e,rZ.$type)}tA(rJ,"isAbstractRule");var rQ={$type:"AbstractType"};function r0(e){return iE.isInstance(e,rQ.$type)}tA(r0,"isAbstractType");var r1={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};function r2(e){return iE.isInstance(e,r1.$type)}tA(r2,"isAction");var r3={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};function r9(e){return iE.isInstance(e,r3.$type)}tA(r9,"isAlternatives");var r4={$type:"ArrayLiteral",elements:"elements"};function r5(e){return iE.isInstance(e,r4.$type)}tA(r5,"isArrayLiteral");var r8={$type:"ArrayType",elementType:"elementType"};function r6(e){return iE.isInstance(e,r8.$type)}tA(r6,"isArrayType");var r7={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};function ne(e){return iE.isInstance(e,r7.$type)}tA(ne,"isAssignment");var nt={$type:"BooleanLiteral",true:"true"};function nr(e){return iE.isInstance(e,nt.$type)}tA(nr,"isBooleanLiteral");var nn={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};function ni(e){return iE.isInstance(e,nn.$type)}tA(ni,"isCharacterRange");var na={$type:"Condition"};function ns(e){return iE.isInstance(e,na.$type)}tA(ns,"isCondition");var no={$type:"Conjunction",left:"left",right:"right"};function nl(e){return iE.isInstance(e,no.$type)}tA(nl,"isConjunction");var nu={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};function nc(e){return iE.isInstance(e,nu.$type)}tA(nc,"isCrossReference");var np={$type:"Disjunction",left:"left",right:"right"};function nf(e){return iE.isInstance(e,np.$type)}tA(nf,"isDisjunction");var nd={$type:"EndOfFile",cardinality:"cardinality"};function nm(e){return iE.isInstance(e,nd.$type)}tA(nm,"isEndOfFile");var nh={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"};function ny(e){return iE.isInstance(e,nh.$type)}tA(ny,"isGrammar");var ng={$type:"GrammarImport",path:"path"};function nT(e){return iE.isInstance(e,ng.$type)}tA(nT,"isGrammarImport");var n$={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};function nv(e){return iE.isInstance(e,n$.$type)}tA(nv,"isGroup");var nR={$type:"InferredType",name:"name"};function nb(e){return iE.isInstance(e,nR.$type)}tA(nb,"isInferredType");var nA={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};function nE(e){return iE.isInstance(e,nA.$type)}tA(nE,"isInfixRule");var nC={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"};function nS(e){return iE.isInstance(e,nC.$type)}tA(nS,"isInfixRuleOperatorList");var nk={$type:"InfixRuleOperators",precedences:"precedences"};function nx(e){return iE.isInstance(e,nk.$type)}tA(nx,"isInfixRuleOperators");var nN={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};function nI(e){return iE.isInstance(e,nN.$type)}tA(nI,"isInterface");var n_={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};function nw(e){return iE.isInstance(e,n_.$type)}tA(nw,"isKeyword");var nP={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"};function nO(e){return iE.isInstance(e,nP.$type)}tA(nO,"isNamedArgument");var nD={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function nL(e){return iE.isInstance(e,nD.$type)}tA(nL,"isNegatedToken");var nM={$type:"Negation",value:"value"};function nj(e){return iE.isInstance(e,nM.$type)}tA(nj,"isNegation");var nF={$type:"NumberLiteral",value:"value"};function nz(e){return iE.isInstance(e,nF.$type)}tA(nz,"isNumberLiteral");var nG={$type:"Parameter",name:"name"};function nK(e){return iE.isInstance(e,nG.$type)}tA(nK,"isParameter");var nq={$type:"ParameterReference",parameter:"parameter"};function nU(e){return iE.isInstance(e,nq.$type)}tA(nU,"isParameterReference");var nB={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};function nW(e){return iE.isInstance(e,nB.$type)}tA(nW,"isParserRule");var nV={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"};function nH(e){return iE.isInstance(e,nV.$type)}tA(nH,"isReferenceType");var nY={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};function nX(e){return iE.isInstance(e,nY.$type)}tA(nX,"isRegexToken");var nZ={$type:"ReturnType",name:"name"};function nJ(e){return iE.isInstance(e,nZ.$type)}tA(nJ,"isReturnType");var nQ={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};function n0(e){return iE.isInstance(e,nQ.$type)}tA(n0,"isRuleCall");var n1={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};function n2(e){return iE.isInstance(e,n1.$type)}tA(n2,"isSimpleType");var n3={$type:"StringLiteral",value:"value"};function n9(e){return iE.isInstance(e,n3.$type)}tA(n9,"isStringLiteral");var n4={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function n5(e){return iE.isInstance(e,n4.$type)}tA(n5,"isTerminalAlternatives");var n8={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function n6(e){return iE.isInstance(e,n8.$type)}tA(n6,"isTerminalElement");var n7={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function ie(e){return iE.isInstance(e,n7.$type)}tA(ie,"isTerminalGroup");var it={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};function ir(e){return iE.isInstance(e,it.$type)}tA(ir,"isTerminalRule");var ii={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};function ia(e){return iE.isInstance(e,ii.$type)}tA(ia,"isTerminalRuleCall");var is={$type:"Type",name:"name",type:"type"};function io(e){return iE.isInstance(e,is.$type)}tA(io,"isType");var il={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"};function iu(e){return iE.isInstance(e,il.$type)}tA(iu,"isTypeAttribute");var ic={$type:"TypeDefinition"};function ip(e){return iE.isInstance(e,ic.$type)}tA(ip,"isTypeDefinition");var id={$type:"UnionType",types:"types"};function im(e){return iE.isInstance(e,id.$type)}tA(im,"isUnionType");var ih={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};function iy(e){return iE.isInstance(e,ih.$type)}tA(iy,"isUnorderedGroup");var ig={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function iT(e){return iE.isInstance(e,ig.$type)}tA(iT,"isUntilToken");var i$={$type:"ValueLiteral"};function iv(e){return iE.isInstance(e,i$.$type)}tA(iv,"isValueLiteral");var iR={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function ib(e){return iE.isInstance(e,iR.$type)}tA(ib,"isWildcard");var iA=class extends r${static{tA(this,"LangiumGrammarAstReflection")}constructor(){super(...arguments),this.types={AbstractElement:{name:rV.$type,properties:{cardinality:{name:rV.cardinality}},superTypes:[]},AbstractParserRule:{name:rY.$type,properties:{},superTypes:[rZ.$type,rQ.$type]},AbstractRule:{name:rZ.$type,properties:{},superTypes:[]},AbstractType:{name:rQ.$type,properties:{},superTypes:[]},Action:{name:r1.$type,properties:{cardinality:{name:r1.cardinality},feature:{name:r1.feature},inferredType:{name:r1.inferredType},operator:{name:r1.operator},type:{name:r1.type,referenceType:rQ.$type}},superTypes:[rV.$type]},Alternatives:{name:r3.$type,properties:{cardinality:{name:r3.cardinality},elements:{name:r3.elements,defaultValue:[]}},superTypes:[rV.$type]},ArrayLiteral:{name:r4.$type,properties:{elements:{name:r4.elements,defaultValue:[]}},superTypes:[i$.$type]},ArrayType:{name:r8.$type,properties:{elementType:{name:r8.elementType}},superTypes:[ic.$type]},Assignment:{name:r7.$type,properties:{cardinality:{name:r7.cardinality},feature:{name:r7.feature},operator:{name:r7.operator},predicate:{name:r7.predicate},terminal:{name:r7.terminal}},superTypes:[rV.$type]},BooleanLiteral:{name:nt.$type,properties:{true:{name:nt.true,defaultValue:!1}},superTypes:[na.$type,i$.$type]},CharacterRange:{name:nn.$type,properties:{cardinality:{name:nn.cardinality},left:{name:nn.left},lookahead:{name:nn.lookahead},parenthesized:{name:nn.parenthesized,defaultValue:!1},right:{name:nn.right}},superTypes:[n8.$type]},Condition:{name:na.$type,properties:{},superTypes:[]},Conjunction:{name:no.$type,properties:{left:{name:no.left},right:{name:no.right}},superTypes:[na.$type]},CrossReference:{name:nu.$type,properties:{cardinality:{name:nu.cardinality},deprecatedSyntax:{name:nu.deprecatedSyntax,defaultValue:!1},isMulti:{name:nu.isMulti,defaultValue:!1},terminal:{name:nu.terminal},type:{name:nu.type,referenceType:rQ.$type}},superTypes:[rV.$type]},Disjunction:{name:np.$type,properties:{left:{name:np.left},right:{name:np.right}},superTypes:[na.$type]},EndOfFile:{name:nd.$type,properties:{cardinality:{name:nd.cardinality}},superTypes:[rV.$type]},Grammar:{name:nh.$type,properties:{imports:{name:nh.imports,defaultValue:[]},interfaces:{name:nh.interfaces,defaultValue:[]},isDeclared:{name:nh.isDeclared,defaultValue:!1},name:{name:nh.name},rules:{name:nh.rules,defaultValue:[]},types:{name:nh.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:ng.$type,properties:{path:{name:ng.path}},superTypes:[]},Group:{name:n$.$type,properties:{cardinality:{name:n$.cardinality},elements:{name:n$.elements,defaultValue:[]},guardCondition:{name:n$.guardCondition},predicate:{name:n$.predicate}},superTypes:[rV.$type]},InferredType:{name:nR.$type,properties:{name:{name:nR.name}},superTypes:[rQ.$type]},InfixRule:{name:nA.$type,properties:{call:{name:nA.call},dataType:{name:nA.dataType},inferredType:{name:nA.inferredType},name:{name:nA.name},operators:{name:nA.operators},parameters:{name:nA.parameters,defaultValue:[]},returnType:{name:nA.returnType,referenceType:rQ.$type}},superTypes:[rY.$type]},InfixRuleOperatorList:{name:nC.$type,properties:{associativity:{name:nC.associativity},operators:{name:nC.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:nk.$type,properties:{precedences:{name:nk.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:nN.$type,properties:{attributes:{name:nN.attributes,defaultValue:[]},name:{name:nN.name},superTypes:{name:nN.superTypes,defaultValue:[],referenceType:rQ.$type}},superTypes:[rQ.$type]},Keyword:{name:n_.$type,properties:{cardinality:{name:n_.cardinality},predicate:{name:n_.predicate},value:{name:n_.value}},superTypes:[rV.$type]},NamedArgument:{name:nP.$type,properties:{calledByName:{name:nP.calledByName,defaultValue:!1},parameter:{name:nP.parameter,referenceType:nG.$type},value:{name:nP.value}},superTypes:[]},NegatedToken:{name:nD.$type,properties:{cardinality:{name:nD.cardinality},lookahead:{name:nD.lookahead},parenthesized:{name:nD.parenthesized,defaultValue:!1},terminal:{name:nD.terminal}},superTypes:[n8.$type]},Negation:{name:nM.$type,properties:{value:{name:nM.value}},superTypes:[na.$type]},NumberLiteral:{name:nF.$type,properties:{value:{name:nF.value}},superTypes:[i$.$type]},Parameter:{name:nG.$type,properties:{name:{name:nG.name}},superTypes:[]},ParameterReference:{name:nq.$type,properties:{parameter:{name:nq.parameter,referenceType:nG.$type}},superTypes:[na.$type]},ParserRule:{name:nB.$type,properties:{dataType:{name:nB.dataType},definition:{name:nB.definition},entry:{name:nB.entry,defaultValue:!1},fragment:{name:nB.fragment,defaultValue:!1},inferredType:{name:nB.inferredType},name:{name:nB.name},parameters:{name:nB.parameters,defaultValue:[]},returnType:{name:nB.returnType,referenceType:rQ.$type}},superTypes:[rY.$type]},ReferenceType:{name:nV.$type,properties:{isMulti:{name:nV.isMulti,defaultValue:!1},referenceType:{name:nV.referenceType}},superTypes:[ic.$type]},RegexToken:{name:nY.$type,properties:{cardinality:{name:nY.cardinality},lookahead:{name:nY.lookahead},parenthesized:{name:nY.parenthesized,defaultValue:!1},regex:{name:nY.regex}},superTypes:[n8.$type]},ReturnType:{name:nZ.$type,properties:{name:{name:nZ.name}},superTypes:[]},RuleCall:{name:nQ.$type,properties:{arguments:{name:nQ.arguments,defaultValue:[]},cardinality:{name:nQ.cardinality},predicate:{name:nQ.predicate},rule:{name:nQ.rule,referenceType:rZ.$type}},superTypes:[rV.$type]},SimpleType:{name:n1.$type,properties:{primitiveType:{name:n1.primitiveType},stringType:{name:n1.stringType},typeRef:{name:n1.typeRef,referenceType:rQ.$type}},superTypes:[ic.$type]},StringLiteral:{name:n3.$type,properties:{value:{name:n3.value}},superTypes:[i$.$type]},TerminalAlternatives:{name:n4.$type,properties:{cardinality:{name:n4.cardinality},elements:{name:n4.elements,defaultValue:[]},lookahead:{name:n4.lookahead},parenthesized:{name:n4.parenthesized,defaultValue:!1}},superTypes:[n8.$type]},TerminalElement:{name:n8.$type,properties:{cardinality:{name:n8.cardinality},lookahead:{name:n8.lookahead},parenthesized:{name:n8.parenthesized,defaultValue:!1}},superTypes:[rV.$type]},TerminalGroup:{name:n7.$type,properties:{cardinality:{name:n7.cardinality},elements:{name:n7.elements,defaultValue:[]},lookahead:{name:n7.lookahead},parenthesized:{name:n7.parenthesized,defaultValue:!1}},superTypes:[n8.$type]},TerminalRule:{name:it.$type,properties:{definition:{name:it.definition},fragment:{name:it.fragment,defaultValue:!1},hidden:{name:it.hidden,defaultValue:!1},name:{name:it.name},type:{name:it.type}},superTypes:[rZ.$type]},TerminalRuleCall:{name:ii.$type,properties:{cardinality:{name:ii.cardinality},lookahead:{name:ii.lookahead},parenthesized:{name:ii.parenthesized,defaultValue:!1},rule:{name:ii.rule,referenceType:it.$type}},superTypes:[n8.$type]},Type:{name:is.$type,properties:{name:{name:is.name},type:{name:is.type}},superTypes:[rQ.$type]},TypeAttribute:{name:il.$type,properties:{defaultValue:{name:il.defaultValue},isOptional:{name:il.isOptional,defaultValue:!1},name:{name:il.name},type:{name:il.type}},superTypes:[]},TypeDefinition:{name:ic.$type,properties:{},superTypes:[]},UnionType:{name:id.$type,properties:{types:{name:id.types,defaultValue:[]}},superTypes:[ic.$type]},UnorderedGroup:{name:ih.$type,properties:{cardinality:{name:ih.cardinality},elements:{name:ih.elements,defaultValue:[]}},superTypes:[rV.$type]},UntilToken:{name:ig.$type,properties:{cardinality:{name:ig.cardinality},lookahead:{name:ig.lookahead},parenthesized:{name:ig.parenthesized,defaultValue:!1},terminal:{name:ig.terminal}},superTypes:[n8.$type]},ValueLiteral:{name:i$.$type,properties:{},superTypes:[]},Wildcard:{name:iR.$type,properties:{cardinality:{name:iR.cardinality},lookahead:{name:iR.lookahead},parenthesized:{name:iR.parenthesized,defaultValue:!1}},superTypes:[n8.$type]}}}},iE=new iA;function iC(e){let t=e,r=!1;for(;t;){let e=rw(t.grammarSource,nW);if(e&&e.dataType)t=t.container,r=!0;else if(r)return t;else break}}function iS(e){return new rN(e,e=>rv(e)?e.content:[],{includeRoot:!0})}function ik(e){return iS(e).filter(rR)}function ix(e,t){for(;e.container;)if((e=e.container)===t)return!0;return!1}function iN(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function iI(e){if(!e)return;let{offset:t,end:r,range:n}=e;return{range:n,offset:t,end:r,length:r-t}}function i_(e,t){if(e.end.linet.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return eD.After;let r=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,n=e.end.lineeD.After}tA(iC,"getDatatypeNode"),tA(iS,"streamCst"),tA(ik,"flattenCst"),tA(ix,"isChildNode"),tA(iN,"tokenToRange"),tA(iI,"toDocumentSegment"),function(e){e[e.Before=0]="Before",e[e.After=1]="After",e[e.OverlapFront=2]="OverlapFront",e[e.OverlapBack=3]="OverlapBack",e[e.Inside=4]="Inside",e[e.Outside=5]="Outside"}(eD||(eD={})),tA(i_,"compareRange"),tA(iw,"inRange");var iP=/^[\w\p{L}]$/u;function iO(e,t,r=iP){if(e){if(t>0){let n=t-e.offset,i=e.text.charAt(n);!r.test(i)&&t--}return iM(e,t)}}function iD(e,t){if(e){let r=iz(e,!0);if(r&&iL(r,t))return r;if(rb(e)){let r=e.content.findIndex(e=>!e.hidden);for(let n=r-1;n>=0;n--){let r=e.content[n];if(iL(r,t))return r}}}}function iL(e,t){return rR(e)&&t.includes(e.tokenType.name)}function iM(e,t){if(rR(e))return e;if(rv(e)){let r=iF(e,t,!1);if(r)return iM(r,t)}}function ij(e,t){if(rR(e))return e;if(rv(e)){let r=iF(e,t,!0);if(r)return ij(r,t)}}function iF(e,t,r){let n,i=0,a=e.content.length-1;for(;i<=a;){let s=Math.floor((i+a)/2),o=e.content[s];if(o.offset<=t&&o.end>t)return o;o.end<=t?(n=r?o:void 0,i=s+1):a=s-1}return n}function iz(e,t=!0){for(;e.container;){let r=e.container,n=r.content.indexOf(e);for(;n>0;){n--;let e=r.content[n];if(t||!e.hidden)return e}e=r}}function iG(e,t=!0){for(;e.container;){let r=e.container,n=r.content.indexOf(e),i=r.content.length-1;for(;naE,findNameAssignment:()=>aC,findNodeForKeyword:()=>ab,findNodeForProperty:()=>a$,findNodesForKeyword:()=>aR,findNodesForKeywordInternal:()=>aA,findNodesForProperty:()=>aT,getActionAtElement:()=>ak,getActionType:()=>aM,getAllReachableRules:()=>ad,getAllRulesUsedForCrossReferences:()=>ah,getCrossReferenceTerminal:()=>ay,getEntryRule:()=>ap,getExplicitRuleType:()=>aD,getHiddenRules:()=>af,getRuleType:()=>aF,getRuleTypeName:()=>aj,getTypeName:()=>aL,isArrayCardinality:()=>aN,isArrayOperator:()=>aI,isCommentTerminal:()=>ag,isDataType:()=>aP,isDataTypeRule:()=>a_,isOptionalCardinality:()=>ax,terminalRegex:()=>az});var iV=class extends Error{static{tA(this,"ErrorWithLocation")}constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}};function iH(e,t="Error: Got unexpected value."){throw Error(t)}function iY(e,t="Error: Condition is violated."){if(!e)throw Error(t)}tA(iH,"assertUnreachable"),tA(iY,"assertCondition");var iX={};function iZ(e){return e.charCodeAt(0)}function iJ(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function iQ(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t],e[t]=!0}function i0(e){if(void 0===e)throw Error("Internal Error - Should never get here!");return!0}function i1(){throw Error("Internal Error - Should never get here!")}function i2(e){return"Character"===e.type}tC(iX,{NEWLINE_REGEXP:()=>at,escapeRegExp:()=>al,getTerminalParts:()=>ai,isMultilineComment:()=>aa,isWhitespace:()=>ao,partialMatches:()=>au,partialRegExp:()=>ac,whitespaceCharacters:()=>as}),tA(iZ,"cc"),tA(iJ,"insertToSet"),tA(iQ,"addFlag"),tA(i0,"ASSERT_EXISTS"),tA(i1,"ASSERT_NEVER_REACH_HERE"),tA(i2,"isCharacter");var i3=[];for(let e=iZ("0");e<=iZ("9");e++)i3.push(e);var i9=[iZ("_")].concat(i3);for(let e=iZ("a");e<=iZ("z");e++)i9.push(e);for(let e=iZ("A");e<=iZ("Z");e++)i9.push(e);var i4=[iZ(" "),iZ("\f"),iZ("\n"),iZ("\r"),iZ("	"),iZ("\v"),iZ("	"),iZ("\xa0"),iZ(" "),iZ(" "),iZ(" "),iZ(" "),iZ(" "),iZ(" "),iZ(" "),iZ(" "),iZ(" "),iZ(" "),iZ(" "),iZ(" "),iZ("\u2028"),iZ("\u2029"),iZ(" "),iZ(" "),iZ(" "),iZ("\uFEFF")],i5=/[0-9a-fA-F]/,i8=/[0-9]/,i6=/[1-9]/,i7=class{static{tA(this,"RegExpParser")}constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");let t=this.disjunction();this.consumeChar("/");let r={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":iQ(r,"global");break;case"i":iQ(r,"ignoreCase");break;case"m":iQ(r,"multiLine");break;case"u":iQ(r,"unicode");break;case"y":iQ(r,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:t,loc:this.loc(0)}}disjunction(){let e=[],t=this.idx;for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":let t;switch(this.consumeChar("?"),this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}}i0(t);let r=this.disjunction();return this.consumeChar(")"),{type:t,value:r,loc:this.loc(e)}}return i1()}quantifier(e=!1){let t,r=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":let n=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:n,atMost:n};break;case",":t=this.isDigit()?{atLeast:n,atMost:this.integerIncludingZero()}:{atLeast:n,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;i0(t)}if((!0!==e||void 0!==t)&&i0(t))return"?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(r),t}atom(){let e,t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return(void 0===e&&this.isPatternCharacter()&&(e=this.patternCharacter()),i0(e))?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):i1()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[iZ("\n"),iZ("\r"),iZ("\u2028"),iZ("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=i3;break;case"D":e=i3,t=!0;break;case"s":e=i4;break;case"S":e=i4,t=!0;break;case"w":e=i9;break;case"W":e=i9,t=!0}return i0(e)?{type:"Set",value:e,complement:t}:i1()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=iZ("\f");break;case"n":e=iZ("\n");break;case"r":e=iZ("\r");break;case"t":e=iZ("	");break;case"v":e=iZ("\v")}return i0(e)?{type:"Character",value:e}:i1()}controlLetterEscapeAtom(){this.consumeChar("c");let e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:iZ("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){return{type:"Character",value:iZ(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:iZ(this.popChar())}}}characterClass(){let e=[],t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){let t=this.classAtom();if(t.type,i2(t)&&this.isRangeDash()){this.consumeChar("-");let r=this.classAtom();if(r.type,i2(r)){if(r.value=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}},ae=class{static{tA(this,"BaseRegExpVisitor")}visitChildren(e){for(let t in e){let r=e[t];e.hasOwnProperty(t)&&(void 0!==r.type?this.visit(r):Array.isArray(r)&&r.forEach(e=>{this.visit(e)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}},at=/\r?\n/gm,ar=new i7,an=new class extends ae{static{tA(this,"TerminalRegExpVisitor")}constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){let t=String.fromCharCode(e.value);if(this.multiline||"\n"!==t||(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let e=al(t);this.endRegexpStack.push(e),this.isStarting&&(this.startRegexp+=e)}}visitSet(e){if(!this.multiline){let t=new RegExp(this.regex.substring(e.loc.begin,e.loc.end));this.multiline=!!"\n".match(t)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let t=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t)}}visitChildren(e){"Group"===e.type&&e.quantifier||super.visitChildren(e)}};function ai(e){try{"string"!=typeof e&&(e=e.source),e=`/${e}/`;let t=ar.pattern(e),r=[];for(let n of t.value.value)an.reset(e),an.visit(n),r.push({start:an.startRegexp,end:an.endRegex});return r}catch{return[]}}function aa(e){try{return"string"==typeof e&&(e=new RegExp(e)),e=e.toString(),an.reset(e),an.visit(ar.pattern(e)),an.multiline}catch{return!1}}tA(ai,"getTerminalParts"),tA(aa,"isMultilineComment");var as="\f\n\r	\v \xa0            \u2028\u2029   \uFEFF".split("");function ao(e){let t="string"==typeof e?new RegExp(e):e;return as.some(e=>t.test(e))}function al(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function au(e,t){let r=ac(e),n=t.match(r);return!!n&&n[0].length>0}function ac(e){"string"==typeof e&&(e=new RegExp(e));let t=e,r=e.source,n=0;function i(){let e="",a;function s(t){e+=r.substr(n,t),n+=t}function o(t){e+="(?:"+r.substr(n,t)+"|$)",n+=t}for(tA(s,"appendRaw"),tA(o,"appendOptional");n",n)-n+1);break;default:o(2)}break;case"[":(a=/\[(?:\\.|.)*?\]/g).lastIndex=n,o((a=a.exec(r)||[])[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":s(1);break;case"{":(a=/\{\d+,?\d*\}/g).lastIndex=n,(a=a.exec(r))?s(a[0].length):o(1);break;case"(":if("?"===r[n+1])switch(r[n+2]){case":":e+="(?:",n+=3,e+=i()+"|$)";break;case"=":e+="(?=",n+=3,e+=i()+")";break;case"!":a=n,n+=3,i(),e+=r.substr(a,n-a);break;case"<":switch(r[n+3]){case"=":case"!":a=n,n+=4,i(),e+=r.substr(a,n-a);break;default:s(r.indexOf(">",n)-n+1),e+=i()+"|$)"}}else s(1),e+=i()+"|$)";break;case")":return++n,e;default:o(1)}return e}return tA(i,"process"),new RegExp(i(),e.flags)}function ap(e){return e.rules.find(e=>nW(e)&&e.entry)}function af(e){return e.rules.filter(e=>ir(e)&&e.hidden)}function ad(e,t){let r=new Set,n=ap(e);if(!n)return new Set(e.rules);for(let i of[n].concat(af(e)))am(i,r,t);let i=new Set;for(let t of e.rules)(r.has(t.name)||ir(t)&&t.hidden)&&i.add(t);return i}function am(e,t,r){t.add(e.name),rj(e).forEach(e=>{if(n0(e)||r&&ia(e)){let n=e.rule.ref;n&&!t.has(n.name)&&am(n,t,r)}})}function ah(e){let t=new Set;return rj(e).forEach(e=>{nc(e)&&(nW(e.type.ref)&&t.add(e.type.ref),nb(e.type.ref)&&nW(e.type.ref.$container)&&t.add(e.type.ref.$container))}),t}function ay(e){if(e.terminal)return e.terminal;if(e.type.ref){let t=aC(e.type.ref);return t?.terminal}}function ag(e){return e.hidden&&!ao(az(e))}function aT(e,t){return e&&t?av(e,t,e.astNode,!0):[]}function a$(e,t,r){if(!e||!t)return;let n=av(e,t,e.astNode,!0);if(0!==n.length)return r=void 0!==r?Math.max(0,Math.min(r,n.length-1)):0,n[r]}function av(e,t,r,n){if(!n){let r=rw(e.grammarSource,ne);if(r&&r.feature===t)return[e]}return rv(e)&&e.astNode===r?e.content.flatMap(e=>av(e,t,r,!1)):[]}function aR(e,t){return e?aA(e,t,e?.astNode):[]}function ab(e,t,r){if(!e)return;let n=aA(e,t,e?.astNode);if(0!==n.length)return r=void 0!==r?Math.max(0,Math.min(r,n.length-1)):0,n[r]}function aA(e,t,r){let n;if(e.astNode!==r)return[];if(nw(e.grammarSource)&&e.grammarSource.value===t)return[e];let i=iS(e).iterator(),a=[];do if(!(n=i.next()).done){let e=n.value;e.astNode===r?nw(e.grammarSource)&&e.grammarSource.value===t&&a.push(e):i.prune()}while(!n.done);return a}function aE(e){let t=e.astNode;for(;t===e.container?.astNode;){let t=rw(e.grammarSource,ne);if(t)return t;e=e.container}}function aC(e){let t=e;return nb(t)&&(r2(t.$container)?t=t.$container.$container:rX(t.$container)?t=t.$container:iH(t.$container)),aS(e,t,new Map)}function aS(e,t,r){function n(t,n){let i;return rw(t,ne)||(i=aS(n,n,r)),r.set(e,i),i}if(tA(n,"go"),r.has(e))return r.get(e);for(let i of(r.set(e,void 0),rj(t)))if(ne(i)&&"name"===i.feature.toLowerCase())return r.set(e,i),i;else if(n0(i)&&nW(i.rule.ref))return n(i,i.rule.ref);else if(n2(i)&&i.typeRef?.ref)return n(i,i.typeRef.ref)}function ak(e){let t=e.$container;if(nv(t)){let r=t.elements,n=r.indexOf(e);for(let e=n-1;e>=0;e--){let t=r[e];if(r2(t))return t;{let t=rj(r[e]).find(r2);if(t)return t}}}return rH(t)?ak(t):void 0}function ax(e,t){return"?"===e||"*"===e||nv(t)&&!!t.guardCondition}function aN(e){return"*"===e||"+"===e}function aI(e){return"+="===e}function a_(e){return aw(e,new Set)}function aw(e,t){if(t.has(e))return!0;for(let r of(t.add(e),rj(e)))if(n0(r)){if(!r.rule.ref||nW(r.rule.ref)&&!aw(r.rule.ref,t)||nE(r.rule.ref))return!1}else if(ne(r))return!1;else if(r2(r))return!1;return!!e.definition}function aP(e){return aO(e.type,new Set)}function aO(e,t){if(t.has(e))return!0;if(t.add(e),r6(e)||nH(e))return!1;if(im(e))return e.types.every(e=>aO(e,t));{if(!n2(e))return!1;if(void 0!==e.primitiveType||void 0!==e.stringType)return!0;if(void 0===e.typeRef)return!1;let r=e.typeRef.ref;return!!io(r)&&aO(r.type,t)}}function aD(e){if(!ir(e)){if(e.inferredType)return e.inferredType.name;else if(e.dataType)return e.dataType;else if(e.returnType){let t=e.returnType.ref;if(t)return t.name}}}function aL(e){if(rX(e))return nW(e)&&a_(e)?e.name:aD(e)??e.name;if(nI(e)||io(e)||nJ(e))return e.name;if(r2(e)){let t=aM(e);if(t)return t}else if(nb(e))return e.name;throw Error("Cannot get name of Unknown Type")}function aM(e){return e.inferredType?e.inferredType.name:e.type?.ref?aL(e.type.ref):void 0}function aj(e){return ir(e)?e.type?.name??"string":nW(e)&&a_(e)?e.name:aD(e)??e.name}function aF(e){return ir(e)?e.type?.name??"string":aD(e)??e.name}function az(e){let t={s:!1,i:!1,u:!1};return new RegExp(aK(e.definition,t),Object.entries(t).filter(([,e])=>e).map(([e])=>e).join(""))}tA(ao,"isWhitespace"),tA(al,"escapeRegExp"),tA(au,"partialMatches"),tA(ac,"partialRegExp"),tA(ap,"getEntryRule"),tA(af,"getHiddenRules"),tA(ad,"getAllReachableRules"),tA(am,"ruleDfs"),tA(ah,"getAllRulesUsedForCrossReferences"),tA(ay,"getCrossReferenceTerminal"),tA(ag,"isCommentTerminal"),tA(aT,"findNodesForProperty"),tA(a$,"findNodeForProperty"),tA(av,"findNodesForPropertyInternal"),tA(aR,"findNodesForKeyword"),tA(ab,"findNodeForKeyword"),tA(aA,"findNodesForKeywordInternal"),tA(aE,"findAssignment"),tA(aC,"findNameAssignment"),tA(aS,"findNameAssignmentInternal"),tA(ak,"getActionAtElement"),tA(ax,"isOptionalCardinality"),tA(aN,"isArrayCardinality"),tA(aI,"isArrayOperator"),tA(a_,"isDataTypeRule"),tA(aw,"isDataTypeRuleInternal"),tA(aP,"isDataType"),tA(aO,"isDataTypeInternal"),tA(aD,"getExplicitRuleType"),tA(aL,"getTypeName"),tA(aM,"getActionType"),tA(aj,"getRuleTypeName"),tA(aF,"getRuleType"),tA(az,"terminalRegex");var aG=/[\s\S]/.source;function aK(e,t){if(n5(e))return aq(e);if(ie(e))return aU(e);if(ni(e))return aV(e);if(ia(e)){let t=e.rule.ref;if(!t)throw Error("Missing rule reference.");return aY(aK(t.definition),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}if(nL(e))return aW(e);else if(iT(e))return aB(e);else if(nX(e)){let r=e.regex.lastIndexOf("/"),n=e.regex.substring(1,r),i=e.regex.substring(r+1);return t&&(t.i=i.includes("i"),t.s=i.includes("s"),t.u=i.includes("u")),aY(n,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}else if(ib(e))return aY(aG,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized});else throw Error(`Invalid terminal element: ${e?.$type}, ${e?.$cstNode?.text}`)}function aq(e){return aY(e.elements.map(e=>aK(e)).join("|"),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function aU(e){return aY(e.elements.map(e=>aK(e)).join(""),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function aB(e){return aY(`${aG}*?${aK(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function aW(e){return aY(`(?!${aK(e.terminal)})${aG}*?`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function aV(e){return e.right?aY(`[${aH(e.left)}-${aH(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1}):aY(aH(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function aH(e){return al(e.value)}function aY(e,t){if(t.parenthesized||t.lookahead||!1!==t.wrap){let r=t.lookahead??(t.parenthesized?"":"?:");e=`(${r}${e})`}return t.cardinality?`${e}${t.cardinality}`:e}function aX(e){let t=[];for(let r of e.Grammar.rules)ir(r)&&ag(r)&&aa(az(r))&&t.push(r.name);return{multilineCommentRules:t,nameRegexp:iP}}tA(aK,"abstractElementToRegex"),tA(aq,"terminalAlternativesToRegex"),tA(aU,"terminalGroupToRegex"),tA(aB,"untilTokenToRegex"),tA(aW,"negateTokenToRegex"),tA(aV,"characterRangeToRegex"),tA(aH,"keywordToRegex"),tA(aY,"withCardinality"),tA(aX,"createGrammarConfig");var aZ="object"==typeof global&&global&&global.Object===Object&&global,aJ="object"==typeof self&&self&&self.Object===Object&&self,aQ=aZ||aJ||Function("return this")(),a0=aQ.Symbol,a1=Object.prototype,a2=a1.hasOwnProperty,a3=a1.toString,a9=a0?a0.toStringTag:void 0;function a4(e){var t=a2.call(e,a9),r=e[a9];try{e[a9]=void 0;var n=!0}catch(e){}var i=a3.call(e);return n&&(t?e[a9]=r:delete e[a9]),i}tA(a4,"getRawTag");var a5=Object.prototype.toString;function a8(e){return a5.call(e)}tA(a8,"objectToString");var a6=a0?a0.toStringTag:void 0;function a7(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a6&&a6 in Object(e)?a4(e):a8(e)}function se(e){return null!=e&&"object"==typeof e}function st(e){return"symbol"==typeof e||se(e)&&"[object Symbol]"==a7(e)}function sr(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function sB(e){return function(){return e}}tA(sU,"shortOut"),tA(sB,"constant");var sW=function(){try{var e=sL(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),sV=sU(sW?function(e,t){return sW(e,"toString",{configurable:!0,enumerable:!1,value:sB(t),writable:!0})}:sb);function sH(e,t){for(var r=-1,n=null==e?0:e.length;++r-1}tA(sH,"arrayEach"),tA(sY,"baseFindIndex"),tA(sX,"baseIsNaN"),tA(sZ,"strictIndexOf"),tA(sJ,"baseIndexOf"),tA(sQ,"arrayIncludes");var s0=/^(?:0|[1-9]\d*)$/;function s1(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&s0.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=0x1fffffffffffff}function ot(e){return null!=e&&oe(e.length)&&!sA(e)}function or(e,t,r){if(!sf(r))return!1;var n=typeof t;return("number"==n?!!(ot(r)&&s1(t,r.length)):"string"==n&&t in r)&&s3(r[t],e)}function on(e){return s7(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&or(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++n-1}function o3(e,t){var r=this.__data__,n=oJ(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function o9(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t0&&r(o)?t>1?lT(o,t-1,r,n,i):lh(i,o):n||(i[i.length]=o)}return i}function l$(e){return(null==e?0:e.length)?lT(e,1):[]}tA(lg,"isFlattenable"),tA(lT,"baseFlatten"),tA(l$,"flatten");var lv=ox(Object.getPrototypeOf,Object);function lR(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++no))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var p=-1,f=!0,d=2&r?new uS:void 0;for(a.set(e,t),a.set(t,e);++p2?t[2]:void 0;for(i&&or(t[0],t[1],i)&&(n=1);++r=200&&(a=ux,s=!1,t=new uS(t));t:for(;++i-1?i[a?t[s]:s]:void 0}}tA(co,"last"),tA(cl,"drop"),tA(cu,"dropRight"),tA(cc,"castFunction"),tA(cp,"forEach"),tA(cf,"arrayEvery"),tA(cd,"baseEvery"),tA(cm,"every"),tA(ch,"baseFilter"),tA(cy,"filter"),tA(cg,"createFind");var cT=Math.max;function c$(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:sR(r);return i<0&&(i=cT(n+i,0)),sY(e,u1(t,3),i)}tA(c$,"findIndex");var cv=cg(c$);function cR(e){return e&&e.length?e[0]:void 0}function cb(e,t){var r=-1,n=ot(e)?Array(e.length):[];return u8(e,function(e,i,a){n[++r]=t(e,i,a)}),n}function cA(e,t){return(sn(e)?sr:cb)(e,u1(t,3))}function cE(e,t){return lT(cA(e,t),1)}tA(cR,"head"),tA(cb,"baseMap"),tA(cA,"map"),tA(cE,"flatMap");var cC=Object.prototype.hasOwnProperty,cS=u7(function(e,t,r){cC.call(e,r)?e[r].push(t):s2(e,r,[t])}),ck=Object.prototype.hasOwnProperty;function cx(e,t){return null!=e&&ck.call(e,t)}function cN(e,t){return null!=e&&uY(e,t,cx)}function cI(e){return"string"==typeof e||!sn(e)&&se(e)&&"[object String]"==a7(e)}function c_(e,t){return sr(t,function(t){return e[t]})}function cw(e){return null==e?[]:c_(e,ow(e))}tA(cx,"baseHas"),tA(cN,"has"),tA(cI,"isString"),tA(c_,"baseValues"),tA(cw,"values");var cP=Math.max;function cO(e,t,r,n){e=ot(e)?e:cw(e),r=r&&!n?sR(r):0;var i=e.length;return r<0&&(r=cP(i+r,0)),cI(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&sJ(e,t,r)>-1}tA(cO,"includes");var cD=Math.max;function cL(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:sR(r);return i<0&&(i=cD(n+i,0)),sJ(e,t,i)}tA(cL,"indexOf");var cM=Object.prototype.hasOwnProperty;function cj(e){if(null==e)return!0;if(ot(e)&&(sn(e)||"string"==typeof e||"function"==typeof e.splice||oy(e)||oC(e)||op(e)))return!e.length;var t=l8(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(oa(e))return!o_(e).length;for(var r in e)if(cM.call(e,r))return!1;return!0}function cF(e){return se(e)&&"[object RegExp]"==a7(e)}tA(cj,"isEmpty"),tA(cF,"baseIsRegExp");var cz=oA&&oA.isRegExp,cG=cz?o$(cz):cF;function cK(e){return void 0===e}function cq(e){if("function"!=typeof e)throw TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function cU(e,t,r,n){if(!sf(e))return e;t=lc(t,e);for(var i=-1,a=t.length,s=a-1,o=e;null!=o&&++i=200){var u=t?null:cJ(e);if(u)return u_(u);s=!1,i=ux,l=new uS}else l=t?[]:o;t:for(;++n{t.accept(e)})}},c6=class extends c8{static{tA(this,"NonTerminal")}constructor(e){super([]),this.idx=1,oO(this,cW(e,e=>void 0!==e))}set definition(e){}get definition(){return void 0!==this.referencedRule?this.referencedRule.definition:[]}accept(e){e.visit(this)}},c7=class extends c8{static{tA(this,"Rule")}constructor(e){super(e.definition),this.orgText="",oO(this,cW(e,e=>void 0!==e))}},pe=class extends c8{static{tA(this,"Alternative")}constructor(e){super(e.definition),this.ignoreAmbiguities=!1,oO(this,cW(e,e=>void 0!==e))}},pt=class extends c8{static{tA(this,"Option")}constructor(e){super(e.definition),this.idx=1,oO(this,cW(e,e=>void 0!==e))}},pr=class extends c8{static{tA(this,"RepetitionMandatory")}constructor(e){super(e.definition),this.idx=1,oO(this,cW(e,e=>void 0!==e))}},pn=class extends c8{static{tA(this,"RepetitionMandatoryWithSeparator")}constructor(e){super(e.definition),this.idx=1,oO(this,cW(e,e=>void 0!==e))}},pi=class extends c8{static{tA(this,"Repetition")}constructor(e){super(e.definition),this.idx=1,oO(this,cW(e,e=>void 0!==e))}},pa=class extends c8{static{tA(this,"RepetitionWithSeparator")}constructor(e){super(e.definition),this.idx=1,oO(this,cW(e,e=>void 0!==e))}},ps=class extends c8{static{tA(this,"Alternation")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,oO(this,cW(e,e=>void 0!==e))}},po=class{static{tA(this,"Terminal")}constructor(e){this.idx=1,oO(this,cW(e,e=>void 0!==e))}accept(e){e.visit(this)}};function pl(e){return cA(e,pu)}function pu(e){function t(e){return cA(e,pu)}if(tA(t,"convertDefinition"),e instanceof c6){let t={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};return cI(e.label)&&(t.label=e.label),t}if(e instanceof pe)return{type:"Alternative",definition:t(e.definition)};if(e instanceof pt)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof pr)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof pn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:pu(new po({terminalType:e.separator})),definition:t(e.definition)};else if(e instanceof pa)return{type:"RepetitionWithSeparator",idx:e.idx,separator:pu(new po({terminalType:e.separator})),definition:t(e.definition)};else if(e instanceof pi)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};else if(e instanceof ps)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};else if(e instanceof po){let t={type:"Terminal",name:e.terminalType.name,label:c4(e.terminalType),idx:e.idx};cI(e.label)&&(t.terminalLabel=e.label);let r=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(t.pattern=cG(r)?r.source:r),t}else if(e instanceof c7)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};else throw Error("non exhaustive match")}tA(pl,"serializeGrammar"),tA(pu,"serializeProduction");var pc=class{static{tA(this,"GAstVisitor")}visit(e){switch(e.constructor){case c6:return this.visitNonTerminal(e);case pe:return this.visitAlternative(e);case pt:return this.visitOption(e);case pr:return this.visitRepetitionMandatory(e);case pn:return this.visitRepetitionMandatoryWithSeparator(e);case pa:return this.visitRepetitionWithSeparator(e);case pi:return this.visitRepetition(e);case ps:return this.visitAlternation(e);case po:return this.visitTerminal(e);case c7:return this.visitRule(e);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}};function pp(e){return e instanceof pe||e instanceof pt||e instanceof pi||e instanceof pr||e instanceof pn||e instanceof pa||e instanceof po||e instanceof c7}function pf(e,t=[]){return e instanceof pt||e instanceof pi||e instanceof pa||(e instanceof ps?cZ(e.definition,e=>pf(e,t)):!(e instanceof c6&&cO(t,e))&&e instanceof c8&&(e instanceof c6&&t.push(e),cm(e.definition,e=>pf(e,t))))}function pd(e){return e instanceof ps}function pm(e){if(e instanceof c6)return"SUBRULE";if(e instanceof pt)return"OPTION";if(e instanceof ps)return"OR";if(e instanceof pr)return"AT_LEAST_ONE";if(e instanceof pn)return"AT_LEAST_ONE_SEP";else if(e instanceof pa)return"MANY_SEP";else if(e instanceof pi)return"MANY";else if(e instanceof po)return"CONSUME";else throw Error("non exhaustive match")}tA(pp,"isSequenceProd"),tA(pf,"isOptionalProd"),tA(pd,"isBranchingProd"),tA(pm,"getProductionDslName");var ph=class{static{tA(this,"RestWalker")}walk(e,t=[]){cp(e.definition,(r,n)=>{let i=cl(e.definition,n+1);if(r instanceof c6)this.walkProdRef(r,i,t);else if(r instanceof po)this.walkTerminal(r,i,t);else if(r instanceof pe)this.walkFlat(r,i,t);else if(r instanceof pt)this.walkOption(r,i,t);else if(r instanceof pr)this.walkAtLeastOne(r,i,t);else if(r instanceof pn)this.walkAtLeastOneSep(r,i,t);else if(r instanceof pa)this.walkManySep(r,i,t);else if(r instanceof pi)this.walkMany(r,i,t);else if(r instanceof ps)this.walkOr(r,i,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,r){}walkProdRef(e,t,r){}walkFlat(e,t,r){let n=t.concat(r);this.walk(e,n)}walkOption(e,t,r){let n=t.concat(r);this.walk(e,n)}walkAtLeastOne(e,t,r){let n=[new pt({definition:e.definition})].concat(t,r);this.walk(e,n)}walkAtLeastOneSep(e,t,r){let n=py(e,t,r);this.walk(e,n)}walkMany(e,t,r){let n=[new pt({definition:e.definition})].concat(t,r);this.walk(e,n)}walkManySep(e,t,r){let n=py(e,t,r);this.walk(e,n)}walkOr(e,t,r){let n=t.concat(r);cp(e.definition,e=>{let t=new pe({definition:[e]});this.walk(t,n)})}};function py(e,t,r){return[new pt({definition:[new po({terminalType:e.separator})].concat(e.definition)})].concat(t,r)}function pg(e){if(e instanceof c6)return pg(e.referencedRule);if(e instanceof po)return pv(e);if(pp(e))return pT(e);if(pd(e))return p$(e);throw Error("non exhaustive match")}function pT(e){let t,r=[],n=e.definition,i=0,a=n.length>i,s=!0;for(;a&&s;)s=pf(t=n[i]),r=r.concat(pg(t)),i+=1,a=n.length>i;return c0(r)}function p$(e){return c0(l$(cA(e.definition,e=>pg(e))))}function pv(e){return[e.terminalType]}tA(py,"restForRepetitionWithSeparator"),tA(pg,"first"),tA(pT,"firstForSequence"),tA(p$,"firstForBranching"),tA(pv,"firstForTerminal");var pR="_~IN~_",pb=class extends ph{static{tA(this,"ResyncFollowsWalker")}constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,r){}walkProdRef(e,t,r){let n=pE(e.referencedRule,e.idx)+this.topProd.name,i=pg(new pe({definition:t.concat(r)}));this.follows[n]=i}};function pA(e){let t={};return cp(e,e=>{oO(t,new pb(e).startWalking())}),t}function pE(e,t){return e.name+t+pR}tA(pA,"computeAllProdsFollows"),tA(pE,"buildBetweenProdsFollowPrefix");var pC={},pS=new i7;function pk(e){let t=e.toString();if(pC.hasOwnProperty(t))return pC[t];{let e=pS.pattern(t);return pC[t]=e,e}}function px(){pC={}}tA(pk,"getRegExpAst"),tA(px,"clearRegExpParserCache");var pN="Complement Sets are not supported for first char optimization",pI='Unable to use "first char" lexer optimizations:\n';function p_(e,t=!1){try{let t=pk(e);return pw(t.value,{},t.flags.ignoreCase)}catch(r){if(r.message===pN)t&&c2(`${pI}	Unable to optimize: < ${e.toString()} >
    -	Complement Sets cannot be automatically optimized.
    -	This will disable the lexer's first char optimizations.
    -	See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let r="";t&&(r="\n	This will disable the lexer's first char optimizations.\n	See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),c1(`${pI}
    -	Failed parsing: < ${e.toString()} >
    -	Using the @chevrotain/regexp-to-ast library
    -	Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+r)}}return[]}function pw(e,t,r){switch(e.type){case"Disjunction":for(let n=0;n{if("number"==typeof e)pP(e,t,r);else if(!0===r)for(let n=e.from;n<=e.to;n++)pP(n,t,r);else{for(let n=e.from;n<=e.to&&n=fo){let r=e.from>=fo?e.from:fo,n=e.to,i=fu(r),a=fu(n);for(let e=i;e<=a;e++)t[e]=e}}});break;case"Group":pw(i.value,t,r);break;default:throw Error("Non Exhaustive Match")}let a=void 0!==i.quantifier&&0===i.quantifier.atLeast;if("Group"===i.type&&!1===pL(i)||"Group"!==i.type&&!1===a)break}break;default:throw Error("non exhaustive match!")}return cw(t)}function pP(e,t,r){let n=fu(e);t[n]=n,!0===r&&pO(e,t)}function pO(e,t){let r=String.fromCharCode(e),n=r.toUpperCase();if(n!==r){let e=fu(n.charCodeAt(0));t[e]=e}else{let e=r.toLowerCase();if(e!==r){let r=fu(e.charCodeAt(0));t[r]=r}}}function pD(e,t){return cv(e.value,e=>"number"==typeof e?cO(t,e):void 0!==cv(t,t=>e.from<=t&&t<=e.to))}function pL(e){let t=e.quantifier;return!!t&&0===t.atLeast||!!e.value&&(sn(e.value)?cm(e.value,pL):pL(e.value))}tA(p_,"getOptimizedStartCodesIndices"),tA(pw,"firstCharOptimizedIndices"),tA(pP,"addOptimizedIdxToResult"),tA(pO,"handleIgnoreCase"),tA(pD,"findCode"),tA(pL,"isWholeOptional");var pM=class extends ae{static{tA(this,"CharCodeFinder")}constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(!0!==this.found){switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return;case"Lookbehind":this.visitLookbehind(e);return;case"NegativeLookbehind":this.visitNegativeLookbehind(e);return}super.visitChildren(e)}}visitCharacter(e){cO(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?void 0===pD(e,this.targetCharCodes)&&(this.found=!0):void 0!==pD(e,this.targetCharCodes)&&(this.found=!0)}};function pj(e,t){if(!(t instanceof RegExp))return void 0!==cv(t,t=>cO(e,t.charCodeAt(0)));{let r=pk(t),n=new pM(e);return n.visit(r),n.found}}tA(pj,"canMatchCharCode");var pF="PATTERN",pz="defaultMode",pG="modes";function pK(e,t){let r,n,i,a,s,o,l,u,c,p,f,d,m=(t=cr(t,{debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:tA((e,t)=>t(),"tracer")})).tracer;m("initCharCodeToOptimizedIndexMap",()=>{fc()}),m("Reject Lexer.NA",()=>{r=cY(e,e=>e[pF]===fx.NA)});let h=!1;m("Transform Patterns",()=>{h=!1,n=cA(r,e=>{let t=e[pF];if(cG(t)){let e=t.source;return 1!==e.length||"^"===e||"$"===e||"."===e||t.ignoreCase?2!==e.length||"\\"!==e[0]||cO(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],e[1])?p5(t):e[1]:e}if(sA(t))return h=!0,{exec:t};if("object"==typeof t)return h=!0,t;if("string"==typeof t)if(1===t.length)return t;else return p5(new RegExp(t.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")));throw Error("non exhaustive match")})}),m("misc mapping",()=>{i=cA(r,e=>e.tokenTypeIdx),a=cA(r,e=>{let t=e.GROUP;if(t!==fx.SKIPPED){if(cI(t))return t;if(cK(t))return!1;throw Error("non exhaustive match")}}),s=cA(r,e=>{let t=e.LONGER_ALT;if(t)return sn(t)?cA(t,e=>cL(r,e)):[cL(r,t)]}),o=cA(r,e=>e.PUSH_MODE),l=cA(r,e=>cN(e,"POP_MODE"))}),m("Line Terminator Handling",()=>{let e=fa(t.lineTerminatorCharacters);u=cA(r,e=>!1),"onlyOffset"!==t.positionTracking&&(u=cA(r,t=>cN(t,"LINE_BREAKS")?!!t.LINE_BREAKS:!1===fn(t,e)&&pj(e,t.PATTERN)))}),m("Misc Mapping #2",()=>{c=cA(r,fe),p=cA(n,ft),f=cH(r,(e,t)=>{let r=t.GROUP;return cI(r)&&r!==fx.SKIPPED&&(e[r]=[]),e},{}),d=cA(n,(e,t)=>({pattern:n[t],longerAlt:s[t],canLineTerminator:u[t],isCustom:c[t],short:p[t],group:a[t],push:o[t],pop:l[t],tokenTypeIdx:i[t],tokenType:r[t]}))});let y=!0,g=[];return t.safeMode||m("First Char Optimization",()=>{g=cH(r,(e,r,n)=>{if("string"==typeof r.PATTERN)fs(e,fu(r.PATTERN.charCodeAt(0)),d[n]);else if(sn(r.START_CHARS_HINT)){let t;cp(r.START_CHARS_HINT,r=>{let i=fu("string"==typeof r?r.charCodeAt(0):r);t!==i&&(t=i,fs(e,i,d[n]))})}else if(cG(r.PATTERN))if(r.PATTERN.unicode)y=!1,t.ensureOptimizations&&c1(`${pI}	Unable to analyze < ${r.PATTERN.toString()} > pattern.
    -	The regexp unicode flag is not currently supported by the regexp-to-ast library.
    -	This will disable the lexer's first char optimizations.
    -	For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let i=p_(r.PATTERN,t.ensureOptimizations);cj(i)&&(y=!1),cp(i,t=>{fs(e,t,d[n])})}else t.ensureOptimizations&&c1(`${pI}	TokenType: <${r.name}> is using a custom token pattern without providing  parameter.
    -	This will disable the lexer's first char optimizations.
    -	For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),y=!1;return e},[])}),{emptyGroups:f,patternIdxToConfig:d,charCodeToPatternIdxToConfig:g,hasCustom:h,canBeOptimized:y}}function pq(e,t){let r=[],n=pB(e);r=r.concat(n.errors);let i=pW(n.valid),a=i.valid;return(r=(r=(r=(r=r.concat(i.errors)).concat(pU(a))).concat(p0(a))).concat(p1(a,t))).concat(p2(a))}function pU(e){let t=[],r=cy(e,e=>cG(e[pF]));return(t=(t=(t=(t=t.concat(pH(r))).concat(pZ(r))).concat(pJ(r))).concat(pQ(r))).concat(pY(r))}function pB(e){let t=cy(e,e=>!cN(e,pF));return{errors:cA(t,e=>({message:"Token Type: ->"+e.name+"<- missing static 'PATTERN' property",type:eL.MISSING_PATTERN,tokenTypes:[e]})),valid:cs(e,t)}}function pW(e){let t=cy(e,e=>{let t=e[pF];return!cG(t)&&!sA(t)&&!cN(t,"exec")&&!cI(t)});return{errors:cA(t,e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:eL.INVALID_PATTERN,tokenTypes:[e]})),valid:cs(e,t)}}tA(pK,"analyzeTokenTypes"),tA(pq,"validatePatterns"),tA(pU,"validateRegExpPattern"),tA(pB,"findMissingPatterns"),tA(pW,"findInvalidPatterns");var pV=/[^\\][$]/;function pH(e){class t extends ae{static{tA(this,"EndAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitEndAnchor(e){this.found=!0}}return cA(cy(e,e=>{let r=e.PATTERN;try{let e=pk(r),n=new t;return n.visit(e),n.found}catch(e){return pV.test(r.source)}}),e=>({message:"Unexpected RegExp Anchor Error:\n	Token Type: ->"+e.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n	See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS	for details.",type:eL.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}function pY(e){return cA(cy(e,e=>e.PATTERN.test("")),e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:eL.EMPTY_MATCH_PATTERN,tokenTypes:[e]}))}tA(pH,"findEndOfInputAnchor"),tA(pY,"findEmptyMatchRegExps");var pX=/[^\\[][\^]|^\^/;function pZ(e){class t extends ae{static{tA(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}return cA(cy(e,e=>{let r=e.PATTERN;try{let e=pk(r),n=new t;return n.visit(e),n.found}catch(e){return pX.test(r.source)}}),e=>({message:"Unexpected RegExp Anchor Error:\n	Token Type: ->"+e.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n	See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS	for details.",type:eL.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}function pJ(e){return cA(cy(e,e=>{let t=e[pF];return t instanceof RegExp&&(t.multiline||t.global)}),e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:eL.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}))}function pQ(e){let t=[],r=cA(e,r=>cH(e,(e,n)=>(r.PATTERN.source!==n.PATTERN.source||cO(t,n)||n.PATTERN===fx.NA||(t.push(n),e.push(n)),e),[]));return cA(cy(r=uA(r),e=>e.length>1),e=>{let t=cA(e,e=>e.name),r=cR(e).PATTERN;return{message:`The same RegExp pattern ->${r}<-has been used in all of the following Token Types: ${t.join(", ")} <-`,type:eL.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})}function p0(e){return cA(cy(e,e=>{if(!cN(e,"GROUP"))return!1;let t=e.GROUP;return t!==fx.SKIPPED&&t!==fx.NA&&!cI(t)}),e=>({message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:eL.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}))}function p1(e,t){return cA(cy(e,e=>void 0!==e.PUSH_MODE&&!cO(t,e.PUSH_MODE)),e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:eL.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))}function p2(e){let t=[],r=cH(e,(e,t,r)=>{let n=t.PATTERN;return n===fx.NA||(cI(n)?e.push({str:n,idx:r,tokenType:t}):cG(n)&&p9(n)&&e.push({str:n.source,idx:r,tokenType:t})),e},[]);return cp(e,(e,n)=>{cp(r,({str:r,idx:i,tokenType:a})=>{if(n${a.name}<- can never be matched.
    -Because it appears AFTER the Token Type ->${e.name}<-in the lexer's definition.
    -See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:r,type:eL.UNREACHABLE_PATTERN,tokenTypes:[e,a]})}})}),t}function p3(e,t){if(cG(t)){if(p4(t))return!1;let r=t.exec(e);return null!==r&&0===r.index}if(sA(t))return t(e,0,[],{});if(cN(t,"exec"))return t.exec(e,0,[],{});if("string"==typeof t)return t===e;throw Error("non exhaustive match")}function p9(e){return void 0===cv([".","\\","[","]","|","^","$","(",")","?","*","+","{"],t=>-1!==e.source.indexOf(t))}function p4(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\? property in its definition\n",type:eL.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),cN(e,pG)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+pG+"> property in its definition\n",type:eL.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),cN(e,pG)&&cN(e,pz)&&!cN(e.modes,e.defaultMode)&&n.push({message:`A MultiMode Lexer cannot be initialized with a ${pz}: <${e.defaultMode}>which does not exist
    -`,type:eL.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),cN(e,pG)&&cp(e.modes,(e,t)=>{cp(e,(r,i)=>{cK(r)?n.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${t}> at index: <${i}>
    -`,type:eL.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):cN(r,"LONGER_ALT")&&cp(sn(r.LONGER_ALT)?r.LONGER_ALT:[r.LONGER_ALT],i=>{cK(i)||cO(e,i)||n.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${i.name}> on token <${r.name}> outside of mode <${t}>
    -`,type:eL.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})}),n}function p6(e,t,r){let n=[],i=!1,a=cY(uA(l$(cw(e.modes))),e=>e[pF]===fx.NA),s=fa(r);return t&&cp(a,e=>{let t=fn(e,s);if(!1!==t){let r={message:fi(e,t),type:t.issue,tokenType:e};n.push(r)}else cN(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(i=!0):pj(s,e.PATTERN)&&(i=!0)}),t&&!i&&n.push({message:"Warning: No LINE_BREAKS Found.\n	This Lexer has been defined to track line and column information,\n	But none of the Token Types can be identified as matching a line terminator.\n	See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n	for details.",type:eL.NO_LINE_BREAKS_FLAGS}),n}function p7(e){let t={};return cp(ow(e),r=>{if(sn(e[r]))t[r]=[];else throw Error("non exhaustive match")}),t}function fe(e){let t=e.PATTERN;if(cG(t))return!1;if(sA(t))return!0;if(cN(t,"exec"))return!0;if(cI(t))return!1;throw Error("non exhaustive match")}function ft(e){return!!cI(e)&&1===e.length&&e.charCodeAt(0)}tA(pZ,"findStartOfInputAnchor"),tA(pJ,"findUnsupportedFlags"),tA(pQ,"findDuplicatePatterns"),tA(p0,"findInvalidGroupType"),tA(p1,"findModesThatDoNotExist"),tA(p2,"findUnreachablePatterns"),tA(p3,"tryToMatchStrToPattern"),tA(p9,"noMetaChar"),tA(p4,"usesLookAheadOrBehind"),tA(p5,"addStickyFlag"),tA(p8,"performRuntimeChecks"),tA(p6,"performWarningRuntimeChecks"),tA(p7,"cloneEmptyGroups"),tA(fe,"isCustomPattern"),tA(ft,"isShortPattern");var fr={test:tA(function(e){let t=e.length;for(let r=this.lastIndex;r Token Type
    -	 Root cause: ${t.errMsg}.
    -	For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===eL.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the  option.
    -	The problem is in the <${e.name}> Token Type
    -	For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}function fa(e){return cA(e,e=>cI(e)?e.charCodeAt(0):e)}function fs(e,t,r){void 0===e[t]?e[t]=[r]:e[t].push(r)}tA(fn,"checkLineBreaksIssues"),tA(fi,"buildLineBreakIssueMessage"),tA(fa,"getCharCodes"),tA(fs,"addToMapOfArrays");var fo=256,fl=[];function fu(e){return e255?255+~~(e/255):e}}function fp(e,t){let r=e.tokenTypeIdx;return r===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[r]}function ff(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}tA(fu,"charCodeToOptimizedIndex"),tA(fc,"initCharCodeToOptimizedIndexMap"),tA(fp,"tokenStructuredMatcher"),tA(ff,"tokenStructuredMatcherNoCategories");var fd=1,fm={};function fh(e){let t=fy(e);fg(t),f$(t),fT(t),cp(t,e=>{e.isParent=e.categoryMatches.length>0})}function fy(e){let t=ub(e),r=e,n=!0;for(;n;){let e=cs(r=uA(l$(cA(r,e=>e.CATEGORIES))),t);t=t.concat(e),cj(e)?n=!1:r=e}return t}function fg(e){cp(e,e=>{fR(e)||(fm[fd]=e,e.tokenTypeIdx=fd++),fb(e)&&!sn(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),fb(e)||(e.CATEGORIES=[]),fA(e)||(e.categoryMatches=[]),fE(e)||(e.categoryMatchesMap={})})}function fT(e){cp(e,e=>{e.categoryMatches=[],cp(e.categoryMatchesMap,(t,r)=>{e.categoryMatches.push(fm[r].tokenTypeIdx)})})}function f$(e){cp(e,e=>{fv([],e)})}function fv(e,t){cp(e,e=>{t.categoryMatchesMap[e.tokenTypeIdx]=!0}),cp(t.CATEGORIES,r=>{let n=e.concat(t);cO(n,r)||fv(n,r)})}function fR(e){return cN(e,"tokenTypeIdx")}function fb(e){return cN(e,"CATEGORIES")}function fA(e){return cN(e,"categoryMatches")}function fE(e){return cN(e,"categoryMatchesMap")}function fC(e){return cN(e,"tokenTypeIdx")}tA(fh,"augmentTokenTypes"),tA(fy,"expandCategories"),tA(fg,"assignTokenDefaultProps"),tA(fT,"assignCategoriesTokensProp"),tA(f$,"assignCategoriesMapProp"),tA(fv,"singleAssignCategoriesToksMap"),tA(fR,"hasShortKeyProperty"),tA(fb,"hasCategoriesProperty"),tA(fA,"hasExtendingTokensTypesProperty"),tA(fE,"hasExtendingTokensTypesMapProperty"),tA(fC,"isTokenType");var fS={buildUnableToPopLexerModeMessage:e=>`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`,buildUnexpectedCharactersMessage:(e,t,r,n,i,a)=>`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${r} characters.`};!function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"}(eL||(eL={}));var fk={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:fS,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(fk);var fx=class{static{tA(this,"Lexer")}constructor(e,t=fk){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{if(!0!==this.traceInitPerf)return t();{this.traceInitIndent++;let r=Array(this.traceInitIndent+1).join("	");this.traceInitIndent <${e}>`);let{time:n,value:i}=c3(t),a=n>10?console.warn:console.log;return this.traceInitIndent time: ${n}ms`),this.traceInitIndent--,i}},"boolean"==typeof t)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=oO({},fk,t);let r=this.config.traceInitPerf;!0===r?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof r&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let r,n=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===fk.lineTerminatorsPattern)this.config.lineTerminatorsPattern=fr;else if(this.config.lineTerminatorCharacters===fk.lineTerminatorCharacters)throw Error("Error: Missing  property on the Lexer config.\n	For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),sn(e)?r={modes:{defaultMode:ub(e)},defaultMode:pz}:(n=!1,r=ub(e))}),!1===this.config.skipValidations&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(p8(r,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(p6(r,this.trackStartLines,this.config.lineTerminatorCharacters))})),r.modes=r.modes?r.modes:{},cp(r.modes,(e,t)=>{r.modes[t]=cY(e,e=>cK(e))});let i=ow(r.modes);if(cp(r.modes,(e,r)=>{this.TRACE_INIT(`Mode: <${r}> processing`,()=>{if(this.modes.push(r),!1===this.config.skipValidations&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(pq(e,i))}),cj(this.lexerDefinitionErrors)){let n;fh(e),this.TRACE_INIT("analyzeTokenTypes",()=>{n=pK(e,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[r]=n.patternIdxToConfig,this.charCodeToPatternIdxToConfig[r]=n.charCodeToPatternIdxToConfig,this.emptyGroups=oO({},this.emptyGroups,n.emptyGroups),this.hasCustom=n.hasCustom||this.hasCustom,this.canModeBeOptimized[r]=n.canBeOptimized}})}),this.defaultMode=r.defaultMode,!cj(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling)throw Error("Errors detected in definition of Lexer:\n"+cA(this.lexerDefinitionErrors,e=>e.message).join("-----------------------\n"));cp(this.lexerDefinitionWarning,e=>{c2(e.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(n&&(this.handleModes=sG),!1===this.trackStartLines&&(this.computeNewColumn=sb),!1===this.trackEndLines&&(this.updateTokenEndLineColumnLocation=sG),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid  config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let e=cH(this.canModeBeOptimized,(e,t,r)=>(!1===t&&e.push(r),e),[]);if(t.ensureOptimizations&&!cj(e))throw Error(`Lexer Modes: < ${e.join(", ")} > cannot be optimized.
    -	 Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
    -	 Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{px()}),this.TRACE_INIT("toFastProperties",()=>{c9(this)})})}tokenize(e,t=this.defaultMode){if(!cj(this.lexerDefinitionErrors))throw Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+cA(this.lexerDefinitionErrors,e=>e.message).join("-----------------------\n"));return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let r,n,i,a,s,o,l,u,c,p,f,d,m,h,y,g,T=e.length,$=0,v=0,R=Array(this.hasCustom?0:Math.floor(e.length/10)),b=[],A=this.trackStartLines?1:void 0,E=this.trackStartLines?1:void 0,C=p7(this.emptyGroups),S=this.trackStartLines,k=this.config.lineTerminatorsPattern,x=0,N=[],I=[],_=[],w=[];Object.freeze(w);let P=!1,O=tA(e=>{if(1===_.length&&void 0===e.tokenType.PUSH_MODE){let t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);b.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})}else{_.pop();let e=co(_);N=this.patternIdxToConfig[e],I=this.charCodeToPatternIdxToConfig[e],x=N.length;let t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;P=!!I&&!!t}},"pop_mode");function D(e){_.push(e),I=this.charCodeToPatternIdxToConfig[e],x=(N=this.patternIdxToConfig[e]).length,x=N.length;let t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;P=!!I&&!!t}tA(D,"push_mode"),D.call(this,t);let L=this.config.recoveryEnabled;for(;$o.length){o=a,c=a.length,l=u,g=t;break}}}break}}if(-1!==c){if(void 0!==(p=g.group)&&(o=null!==o?o:e.substring($,$+c),f=g.tokenTypeIdx,d=this.createTokenInstance(o,$,f,g.tokenType,A,E,c),this.handlePayload(d,l),!1===p?v=this.addToken(R,v,d):C[p].push(d)),!0===S&&!0===g.canLineTerminator){let t,r,n=0;k.lastIndex=0;do o=null!==o?o:e.substring($,$+c),!0===(t=k.test(o))&&(r=k.lastIndex-1,n++);while(!0===t);0!==n?(A+=n,E=c-r,this.updateTokenEndLineColumnLocation(d,p,r,n,A,E,c)):E=this.computeNewColumn(E,c)}else E=this.computeNewColumn(E,c);$+=c,this.handleModes(g,O,D,d)}else{let t=$,r=A,i=E,a=!1===L;for(;!1===a&&$ ${fN(e)} <--`:`token of type --> ${e.name} <--`;return`Expecting ${i} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage:({firstRedundant:e,ruleName:t})=>"Redundant input, expecting EOF but found: "+e.image,buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:r,customUserDescription:n,ruleName:i}){let a="Expecting: ",s="\nbut found: '"+cR(t).image+"'";if(n)return a+n+s;{let t=cA(cH(e,(e,t)=>e.concat(t),[]),e=>`[${cA(e,e=>fN(e)).join(", ")}]`),r=cA(t,(e,t)=>`  ${t+1}. ${e}`);return a+`one of these possible Token sequences:
    -${r.join("\n")}`+s}},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:r,ruleName:n}){let i="Expecting: ",a="\nbut found: '"+cR(t).image+"'";if(r)return i+r+a;{let t=cA(e,e=>`[${cA(e,e=>fN(e)).join(",")}]`);return i+`expecting at least one iteration which starts with one of these possible Token sequences::
    -  <${t.join(" ,")}>`+a}}};Object.freeze(fU);var fB={buildRuleNotFoundError:(e,t)=>"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+"<-\ninside top level rule: ->"+e.name+"<-"},fW={buildDuplicateFoundError(e,t){function r(e){return e instanceof po?e.terminalType.name:e instanceof c6?e.nonTerminalName:""}tA(r,"getExtraProductionArgument");let n=e.name,i=cR(t),a=i.idx,s=pm(i),o=r(i),l=`->${s}${a>0?a:""}<- ${o?`with argument: ->${o}<-`:""}
    -                  appears more than once (${t.length} times) in the top level rule: ->${n}<-.                  
    -                  For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES 
    -                  `;return(l=l.replace(/[ \t]+/g," ")).replace(/\s\s+/g,"\n")},buildNamespaceConflictError:e=>`Namespace conflict found in grammar.
    -The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.
    -To resolve this make sure each Terminal and Non-Terminal names are unique
    -This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
    -and Non-Terminal names start with a lower case letter.`,buildAlternationPrefixAmbiguityError(e){let t=cA(e.prefixPath,e=>fN(e)).join(", "),r=0===e.alternation.idx?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix
    -in  inside <${e.topLevelRule.name}> Rule,
    -<${t}> may appears as a prefix path in all these alternatives.
    -See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
    -For Further details.`},buildAlternationAmbiguityError(e){let t=0===e.alternation.idx?"":e.alternation.idx,r=0===e.prefixPath.length,n=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in  inside <${e.topLevelRule.name}> Rule,
    -`;if(r)n+=`These alternatives are all empty (match no tokens), making them indistinguishable.
    -Only the last alternative may be empty.
    -`;else{let t=cA(e.prefixPath,e=>fN(e)).join(", ");n+=`<${t}> may appears as a prefix path in all these alternatives.
    -`}return n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
    -For Further details.`},buildEmptyRepetitionError(e){let t=pm(e.repetition);return 0!==e.repetition.idx&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.
    -This could lead to an infinite loop.`},buildTokenNameError:e=>"deprecated",buildEmptyAlternationError:e=>`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in  inside <${e.topLevelRule.name}> Rule.
    -Only the last alternative may be an empty alternative.`,buildTooManyAlternativesError:e=>`An Alternation cannot have more than 256 alternatives:
    - inside <${e.topLevelRule.name}> Rule.
    - has ${e.alternation.definition.length+1} alternatives.`,buildLeftRecursionError(e){let t=e.topLevelRule.name,r=cA(e.leftRecursionPath,e=>e.name),n=`${t} --> ${r.concat([t]).join(" --\x3e ")}`;return`Left Recursion found in grammar.
    -rule: <${t}> can be invoked from itself (directly or indirectly)
    -without consuming any Tokens. The grammar path that causes this is: 
    - ${n}
    - To fix this refactor your grammar to remove the left recursion.
    -see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError:e=>"deprecated",buildDuplicateRuleNameError(e){let t;return t=e.topLevelRule instanceof c7?e.topLevelRule.name:e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};function fV(e,t){let r=new fH(e,t);return r.resolveRefs(),r.errors}tA(fV,"resolveGrammar");var fH=class extends pc{static{tA(this,"GastRefResolverVisitor")}constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){cp(cw(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{let t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:eF.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},fY=class extends ph{static{tA(this,"AbstractNextPossibleTokensWalker")}constructor(e,t){super(),this.topProd=e,this.path=t,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=ub(this.path.ruleStack).reverse(),this.occurrenceStack=ub(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,r){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let n=t.concat(r);this.updateExpectedNext(),this.walk(e.referencedRule,n)}}updateExpectedNext(){cj(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},fX=class extends fY{static{tA(this,"NextAfterTokenWalker")}constructor(e,t){super(e,t),this.path=t,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,r){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let e=new pe({definition:t.concat(r)});this.possibleTokTypes=pg(e),this.found=!0}}},fZ=class extends ph{static{tA(this,"AbstractNextTerminalAfterProductionWalker")}constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},fJ=class extends fZ{static{tA(this,"NextTerminalAfterManyWalker")}walkMany(e,t,r){if(e.idx===this.occurrence){let e=cR(t.concat(r));this.result.isEndOfRule=void 0===e,e instanceof po&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,r)}},fQ=class extends fZ{static{tA(this,"NextTerminalAfterManySepWalker")}walkManySep(e,t,r){if(e.idx===this.occurrence){let e=cR(t.concat(r));this.result.isEndOfRule=void 0===e,e instanceof po&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,r)}},f0=class extends fZ{static{tA(this,"NextTerminalAfterAtLeastOneWalker")}walkAtLeastOne(e,t,r){if(e.idx===this.occurrence){let e=cR(t.concat(r));this.result.isEndOfRule=void 0===e,e instanceof po&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,r)}},f1=class extends fZ{static{tA(this,"NextTerminalAfterAtLeastOneSepWalker")}walkAtLeastOneSep(e,t,r){if(e.idx===this.occurrence){let e=cR(t.concat(r));this.result.isEndOfRule=void 0===e,e instanceof po&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,r)}};function f2(e,t,r=[]){r=ub(r);let n=[],i=0;function a(t){return t.concat(cl(e,i+1))}function s(e){let i=f2(a(e),t,r);return n.concat(i)}for(tA(a,"remainingPathWith"),tA(s,"getAlternativesForProd");r.length{!1===cj(e.definition)&&(n=s(e.definition))}),n;else if(t instanceof po)r.push(t.terminalType);else throw Error("non exhaustive match");i++}return n.push({partialPath:r,suffixDef:cl(e,i)}),n}function f3(e,t,r,n){let i="EXIT_NONE_TERMINAL",a=[i],s="EXIT_ALTERNATIVE",o=!1,l=t.length,u=l-n-1,c=[],p=[];for(p.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!cj(p);){let e=p.pop();if(e===s){o&&co(p).idx<=u&&p.pop();continue}let n=e.def,f=e.idx,d=e.ruleStack,m=e.occurrenceStack;if(cj(n))continue;let h=n[0];if(h===i){let e={idx:f,def:cl(n),ruleStack:cu(d),occurrenceStack:cu(m)};p.push(e)}else if(h instanceof po)if(f=0;e--){let t={idx:f,def:h.definition[e].definition.concat(cl(n)),ruleStack:d,occurrenceStack:m};p.push(t),p.push(s)}else if(h instanceof pe)p.push({idx:f,def:h.definition.concat(cl(n)),ruleStack:d,occurrenceStack:m});else if(h instanceof c7)p.push(f9(h,f,d,m));else throw Error("non exhaustive match")}return c}function f9(e,t,r,n){let i=ub(r);i.push(e.name);let a=ub(n);return a.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:a}}function f4(e){if(e instanceof pt||"Option"===e)return eM.OPTION;if(e instanceof pi||"Repetition"===e)return eM.REPETITION;if(e instanceof pr||"RepetitionMandatory"===e)return eM.REPETITION_MANDATORY;if(e instanceof pn||"RepetitionMandatoryWithSeparator"===e)return eM.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof pa||"RepetitionWithSeparator"===e)return eM.REPETITION_WITH_SEPARATOR;else if(e instanceof ps||"Alternation"===e)return eM.ALTERNATION;else throw Error("non exhaustive match")}function f5(e){let{occurrence:t,rule:r,prodType:n,maxLookahead:i}=e,a=f4(n);return a===eM.ALTERNATION?dl(t,r,i):du(t,r,a,i)}function f8(e,t,r,n,i,a){let s=dl(e,t,r),o=df(s)?ff:fp;return a(s,n,o,i)}function f6(e,t,r,n,i,a){let s=du(e,t,i,r),o=df(s)?ff:fp;return a(s[0],o,n)}function f7(e,t,r,n){let i=e.length,a=cm(e,e=>cm(e,e=>1===e.length));if(t)return function(t){let n=cA(t,e=>e.GATE);for(let t=0;tl$(e)),(e,t,r)=>(cp(t,t=>{cN(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=r),cp(t.categoryMatches,t=>{cN(e,t)||(e[t]=r)})}),e),{});return function(){return t[this.LA(1).tokenTypeIdx]}}}function de(e,t,r){let n=cm(e,e=>1===e.length),i=e.length;if(!n||r)return function(){r:for(let r=0;r(e[t.tokenTypeIdx]=!0,cp(t.categoryMatches,t=>{e[t]=!0}),e),[]);return function(){return!0===e[this.LA(1).tokenTypeIdx]}}}}tA(f2,"possiblePathsFrom"),tA(f3,"nextPossibleTokensAfter"),tA(f9,"expandTopLevelRule"),function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"}(eM||(eM={})),tA(f4,"getProdType"),tA(f5,"getLookaheadPaths"),tA(f8,"buildLookaheadFuncForOr"),tA(f6,"buildLookaheadFuncForOptionalProd"),tA(f7,"buildAlternativesLookAheadFunc"),tA(de,"buildSingleAlternativeLookaheadFunction");var dt=class extends ph{static{tA(this,"RestDefinitionFinderWalker")}constructor(e,t,r){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=r}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,r,n){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=r.concat(n),!0)}walkOption(e,t,r){this.checkIsTarget(e,eM.OPTION,t,r)||super.walkOption(e,t,r)}walkAtLeastOne(e,t,r){this.checkIsTarget(e,eM.REPETITION_MANDATORY,t,r)||super.walkOption(e,t,r)}walkAtLeastOneSep(e,t,r){this.checkIsTarget(e,eM.REPETITION_MANDATORY_WITH_SEPARATOR,t,r)||super.walkOption(e,t,r)}walkMany(e,t,r){this.checkIsTarget(e,eM.REPETITION,t,r)||super.walkOption(e,t,r)}walkManySep(e,t,r){this.checkIsTarget(e,eM.REPETITION_WITH_SEPARATOR,t,r)||super.walkOption(e,t,r)}},dr=class extends pc{static{tA(this,"InsideDefinitionFinderVisitor")}constructor(e,t,r){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=r,this.result=[]}checkIsTarget(e,t){e.idx===this.targetOccurrence&&this.targetProdType===t&&(void 0===this.targetRef||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,eM.OPTION)}visitRepetition(e){this.checkIsTarget(e,eM.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,eM.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,eM.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,eM.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,eM.ALTERNATION)}};function dn(e){let t=Array(e);for(let r=0;rf2([e],1)),n=dn(r.length),i=cA(r,e=>{let t={};return cp(e,e=>{cp(di(e.partialPath),e=>{t[e]=!0})}),t}),a=r;for(let e=1;e<=t;e++){let r=a;a=dn(r.length);for(let s=0;s{cp(di(e.partialPath),e=>{i[s][e]=!0})})}}}}return n}function dl(e,t,r,n){let i=new dr(e,eM.ALTERNATION,n);return t.accept(i),ds(i.result,r)}function du(e,t,r,n){let i=new dr(e,r);t.accept(i);let a=i.result,s=new dt(t,e,r).startWalking();return ds([new pe({definition:a}),new pe({definition:s})],n)}function dc(e,t){n:for(let r=0;r{let n=t[r];return e===n||n.categoryMatchesMap[e.tokenTypeIdx]})}function df(e){return cm(e,e=>cm(e,e=>cm(e,e=>cj(e.categoryMatches))))}function dd(e){return cA(e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}),e=>Object.assign({type:eF.CUSTOM_LOOKAHEAD_VALIDATION},e))}function dm(e,t,r,n){let i=cE(e,e=>dh(e,r)),a=d_(e,t,r),s=cE(e,e=>dk(e,r)),o=cE(e,t=>d$(t,e,n,r));return i.concat(a,s,o)}function dh(e,t){let r=new dT;return e.accept(r),cA(cw(cW(cS(r.allProductions,dy),e=>e.length>1)),r=>{let n=cR(r),i=t.buildDuplicateFoundError(e,r),a=pm(n),s={message:i,type:eF.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:a,occurrence:n.idx},o=dg(n);return o&&(s.parameter=o),s})}function dy(e){return`${pm(e)}_#_${e.idx}_#_${dg(e)}`}function dg(e){return e instanceof po?e.terminalType.name:e instanceof c6?e.nonTerminalName:""}tA(dn,"initializeArrayOfArrays"),tA(di,"pathToHashKeys"),tA(da,"isUniquePrefixHash"),tA(ds,"lookAheadSequenceFromAlternatives"),tA(dl,"getLookaheadPathsForOr"),tA(du,"getLookaheadPathsForOptionalProd"),tA(dc,"containsPath"),tA(dp,"isStrictPrefixOfPath"),tA(df,"areTokenCategoriesNotUsed"),tA(dd,"validateLookahead"),tA(dm,"validateGrammar"),tA(dh,"validateDuplicateProductions"),tA(dy,"identifyProductionForDuplicates"),tA(dg,"getExtraProductionArgument");var dT=class extends pc{static{tA(this,"OccurrenceValidationCollector")}constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}};function d$(e,t,r,n){let i=[];if(cH(t,(t,r)=>r.name===e.name?t+1:t,0)>1){let t=n.buildDuplicateRuleNameError({topLevelRule:e,grammarName:r});i.push({message:t,type:eF.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}function dv(e,t,r){let n=[];return cO(t,e)||n.push({message:`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `,type:eF.INVALID_RULE_OVERRIDE,ruleName:e}),n}function dR(e,t,r,n=[]){let i=[],a=db(t.definition);if(cj(a))return[];{let t=e.name;cO(a,e)&&i.push({message:r.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:n}),type:eF.LEFT_RECURSION,ruleName:t});let s=cE(cs(a,n.concat([e])),t=>{let i=ub(n);return i.push(t),dR(e,t,r,i)});return i.concat(s)}}function db(e){let t=[];if(cj(e))return t;let r=cR(e);if(r instanceof c6)t.push(r.referencedRule);else if(r instanceof pe||r instanceof pt||r instanceof pr||r instanceof pn||r instanceof pa||r instanceof pi)t=t.concat(db(r.definition));else if(r instanceof ps)t=l$(cA(r.definition,e=>db(e.definition)));else if(r instanceof po);else throw Error("non exhaustive match");let n=pf(r),i=e.length>1;if(!n||!i)return t;{let r=cl(e);return t.concat(db(r))}}tA(d$,"validateRuleDoesNotAlreadyExist"),tA(dv,"validateRuleIsOverridden"),tA(dR,"validateNoLeftRecursion"),tA(db,"getFirstNoneTerminal");var dA=class extends pc{static{tA(this,"OrCollector")}constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};function dE(e,t){let r=new dA;return e.accept(r),cE(r.alternations,r=>cE(cu(r.definition),(n,i)=>cj(f3([n],[],fp,1))?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:r,emptyChoiceIdx:i}),type:eF.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:r.idx,alternative:i+1}]:[]))}function dC(e,t,r){let n=new dA;e.accept(n);let i=n.alternations;return cE(i=cY(i,e=>!0===e.ignoreAmbiguities),n=>{let i=dl(n.idx,e,n.maxLookahead||t,n),a=dN(i,n,e,r),s=dI(i,n,e,r);return a.concat(s)})}tA(dE,"validateEmptyOrAlternative"),tA(dC,"validateAmbiguousAlternationAlternatives");var dS=class extends pc{static{tA(this,"RepetitionCollector")}constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}};function dk(e,t){let r=new dA;return e.accept(r),cE(r.alternations,r=>r.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:r}),type:eF.TOO_MANY_ALTS,ruleName:e.name,occurrence:r.idx}]:[])}function dx(e,t,r){let n=[];return cp(e,e=>{let i=new dS;e.accept(i),cp(i.allProductions,i=>{let a=f4(i),s=i.maxLookahead||t;if(cj(l$(du(i.idx,e,a,s)[0]))){let t=r.buildEmptyRepetitionError({topLevelRule:e,repetition:i});n.push({message:t,type:eF.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),n}function dN(e,t,r,n){let i=[];return cA(cH(e,(r,n,a)=>(!0===t.definition[a].ignoreAmbiguities||cp(n,n=>{let s=[a];cp(e,(e,r)=>{a!==r&&dc(e,n)&&!0!==t.definition[r].ignoreAmbiguities&&s.push(r)}),s.length>1&&!dc(i,n)&&(i.push(n),r.push({alts:s,path:n}))}),r),[]),e=>{let i=cA(e.alts,e=>e+1);return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:eF.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:t.idx,alternatives:e.alts}})}function dI(e,t,r,n){let i=cH(e,(e,t,r)=>{let n=cA(t,e=>({idx:r,path:e}));return e.concat(n)},[]);return uA(cE(i,e=>{if(!0===t.definition[e.idx].ignoreAmbiguities)return[];let a=e.idx,s=e.path;return cA(cy(i,e=>!0!==t.definition[e.idx].ignoreAmbiguities&&e.idx{let i=[e.idx+1,a+1],s=0===t.idx?"":t.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:eF.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:s,alternatives:i}})}))}function d_(e,t,r){let n=[],i=cA(t,e=>e.name);return cp(e,e=>{let t=e.name;if(cO(i,t)){let i=r.buildNamespaceConflictError(e);n.push({message:i,type:eF.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),n}function dw(e){let t=cr(e,{errMsgProvider:fB}),r={};return cp(e.rules,e=>{r[e.name]=e}),fV(r,t.errMsgProvider)}function dP(e){return dm((e=cr(e,{errMsgProvider:fW})).rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}tA(dk,"validateTooManyAlts"),tA(dx,"validateSomeNonEmptyLookaheadPath"),tA(dN,"checkAlternativesAmbiguities"),tA(dI,"checkPrefixAlternativesAmbiguities"),tA(d_,"checkTerminalAndNoneTerminalsNameSpace"),tA(dw,"resolveGrammar"),tA(dP,"validateGrammar");var dO="MismatchedTokenException",dD="NoViableAltException",dL="EarlyExitException",dM="NotAllInputParsedException",dj=[dO,dD,dL,dM];function dF(e){return cO(dj,e.name)}Object.freeze(dj),tA(dF,"isRecognitionException");var dz=class extends Error{static{tA(this,"RecognitionException")}constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},dG=class extends dz{static{tA(this,"MismatchedTokenException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=dO}},dK=class extends dz{static{tA(this,"NoViableAltException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=dD}},dq=class extends dz{static{tA(this,"NotAllInputParsedException")}constructor(e,t){super(e,t),this.name=dM}},dU=class extends dz{static{tA(this,"EarlyExitException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=dL}},dB={},dW="InRuleRecoveryException",dV=class extends Error{static{tA(this,"InRuleRecoveryException")}constructor(e){super(e),this.name=dW}},dH=class{static{tA(this,"Recoverable")}initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=cN(e,"recoveryEnabled")?e.recoveryEnabled:m$.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=dY)}getTokenToInsert(e){let t=fK(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,r,n){let i=this.findReSyncTokenType(),a=this.exportLexerState(),s=[],o=!1,l=this.LA(1),u=this.LA(1),c=tA(()=>{let e=this.LA(0),t=new dG(this.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:l,previous:e,ruleName:this.getCurrRuleFullName()}),l,this.LA(0));t.resyncedTokens=cu(s),this.SAVE_ERROR(t)},"generateErrorMessage");for(;!o;)if(this.tokenMatcher(u,n))return void c();else if(r.call(this)){c(),e.apply(this,t);return}else this.tokenMatcher(u,i)?o=!0:(u=this.SKIP_TOKEN(),this.addToResyncTokens(u,s));this.importLexerState(a)}shouldInRepetitionRecoveryBeTried(e,t,r){return!(!1===r||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getFollowsForInRuleRecovery(e,t){let r=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(r)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new dV("sad sad panda")}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||cj(t))return!1;let r=this.LA(1);return void 0!==cv(t,e=>this.tokenMatcher(r,e))}canRecoverWithSingleTokenDeletion(e){return!!this.canTokenTypeBeDeletedInRecovery(e)&&this.tokenMatcher(this.LA(2),e)}isInCurrentRuleReSyncSet(e){let t=this.getCurrFollowKey();return cO(this.getFollowSetFromFollowKey(t),e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA(1),r=2;for(;;){let n=cv(e,e=>fq(t,e));if(void 0!==n)return n;t=this.LA(r),r++}}getCurrFollowKey(){if(1===this.RULE_STACK.length)return dB;let e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),r=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(r)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK;return cA(e,(r,n)=>0===n?dB:{ruleName:this.shortRuleNameToFullName(r),idxInCallingRule:t[n],inRule:this.shortRuleNameToFullName(e[n-1])})}flattenFollowSet(){return l$(cA(this.buildFullFollowKeyStack(),e=>this.getFollowSetFromFollowKey(e)))}getFollowSetFromFollowKey(e){if(e===dB)return[fG];let t=e.ruleName+e.idxInCallingRule+pR+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,fG)||t.push(e),t}reSyncTo(e){let t=[],r=this.LA(1);for(;!1===this.tokenMatcher(r,e);)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,t);return cu(t)}attemptInRepetitionRecovery(e,t,r,n,i,a,s){}getCurrentGrammarPath(e,t){let r=this.getHumanReadableRuleStack();return{ruleStack:r,occurrenceStack:ub(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){return cA(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}};function dY(e,t,r,n,i,a,s){let o=this.getKeyForAutomaticLookahead(n,i),l=this.firstAfterRepMap[o];if(void 0===l){let e=this.getCurrRuleFullName();l=new a(this.getGAstProductions()[e],i).startWalking(),this.firstAfterRepMap[o]=l}let u=l.token,c=l.occurrence,p=l.isEndOfRule;1===this.RULE_STACK.length&&p&&void 0===u&&(u=fG,c=1),void 0!==u&&void 0!==c&&this.shouldInRepetitionRecoveryBeTried(u,c,s)&&this.tryInRepetitionRecovery(e,t,r,u)}tA(dY,"attemptInRepetitionRecovery");function dX(e,t,r){return r|t|e}tA(dX,"getKeyForAutomaticLookahead");var dZ=class{static{tA(this,"LLkLookaheadStrategy")}constructor(e){var t;this.maxLookahead=null!=(t=null==e?void 0:e.maxLookahead)?t:m$.maxLookahead}validate(e){let t=this.validateNoLeftRecursion(e.rules);if(cj(t)){let r=this.validateEmptyOrAlternatives(e.rules);return[...t,...r,...this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),...this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead)]}return t}validateNoLeftRecursion(e){return cE(e,e=>dR(e,e,fW))}validateEmptyOrAlternatives(e){return cE(e,e=>dE(e,fW))}validateAmbiguousAlternationAlternatives(e,t){return cE(e,e=>dC(e,t,fW))}validateSomeNonEmptyLookaheadPath(e,t){return dx(e,t,fW)}buildLookaheadForAlternation(e){return f8(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,f7)}buildLookaheadForOptional(e){return f6(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,f4(e.prodType),de)}},dJ=class{static{tA(this,"LooksAhead")}initLooksAhead(e){this.dynamicTokensEnabled=cN(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:m$.dynamicTokensEnabled,this.maxLookahead=cN(e,"maxLookahead")?e.maxLookahead:m$.maxLookahead,this.lookaheadStrategy=cN(e,"lookaheadStrategy")?e.lookaheadStrategy:new dZ({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){cp(e,e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,()=>{let{alternation:t,repetition:r,option:n,repetitionMandatory:i,repetitionMandatoryWithSeparator:a,repetitionWithSeparator:s}=d0(e);cp(t,t=>{let r=0===t.idx?"":t.idx;this.TRACE_INIT(`${pm(t)}${r}`,()=>{let r=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),n=dX(this.fullRuleNameToShort[e.name],256,t.idx);this.setLaFuncCache(n,r)})}),cp(r,t=>{this.computeLookaheadFunc(e,t.idx,768,"Repetition",t.maxLookahead,pm(t))}),cp(n,t=>{this.computeLookaheadFunc(e,t.idx,512,"Option",t.maxLookahead,pm(t))}),cp(i,t=>{this.computeLookaheadFunc(e,t.idx,1024,"RepetitionMandatory",t.maxLookahead,pm(t))}),cp(a,t=>{this.computeLookaheadFunc(e,t.idx,1536,"RepetitionMandatoryWithSeparator",t.maxLookahead,pm(t))}),cp(s,t=>{this.computeLookaheadFunc(e,t.idx,1280,"RepetitionWithSeparator",t.maxLookahead,pm(t))})})})}computeLookaheadFunc(e,t,r,n,i,a){this.TRACE_INIT(`${a}${0===t?"":t}`,()=>{let a=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:n}),s=dX(this.fullRuleNameToShort[e.name],r,t);this.setLaFuncCache(s,a)})}getKeyForAutomaticLookahead(e,t){return dX(this.getLastExplicitRuleShortName(),e,t)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}},dQ=new class extends pc{static{tA(this,"DslMethodsCollectorVisitor")}constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}};function d0(e){dQ.reset(),e.accept(dQ);let t=dQ.dslMethods;return dQ.reset(),t}function d1(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffsete.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
    -	${t.join("\n\n").replace(/\n/g,"\n	")}`)}},"validateVisitor")},r.prototype.constructor=r,r._RULE_NAMES=t,r}function d6(e,t,r){let n=tA(function(){},"derivedConstructor");d4(n,e+"BaseSemanticsWithDefaults");let i=Object.create(r.prototype);return cp(t,e=>{i[e]=d5}),n.prototype=i,n.prototype.constructor=n,n}function d7(e,t){return me(e,t)}function me(e,t){return uA(cA(cy(t,t=>!1===sA(e[t])),t=>({msg:`Missing visitor method: <${t}> on ${e.constructor.name} CST Visitor.`,type:ej.MISSING_METHOD,methodName:t})))}tA(d0,"collectMethods"),tA(d1,"setNodeLocationOnlyOffset"),tA(d2,"setNodeLocationFull"),tA(d3,"addTerminalToCst"),tA(d9,"addNoneTerminalToCst"),tA(d4,"defineNameProp"),tA(d5,"defaultVisit"),tA(d8,"createBaseSemanticVisitorConstructor"),tA(d6,"createBaseVisitorConstructorWithDefaults"),function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"}(ej||(ej={})),tA(d7,"validateVisitor"),tA(me,"validateMissingCstMethods");var mt=class{static{tA(this,"TreeBuilder")}initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=cN(e,"nodeLocationTracking")?e.nodeLocationTracking:m$.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=d2,this.setNodeLocationFromNode=d2,this.cstPostRule=sG,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=sG,this.setNodeLocationFromNode=sG,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=d1,this.setNodeLocationFromNode=d1,this.cstPostRule=sG,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=sG,this.setNodeLocationFromNode=sG,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=sG,this.setNodeLocationFromNode=sG,this.cstPostRule=sG,this.setInitialNodeLocation=sG;else throw Error(`Invalid  config option: "${e.nodeLocationTracking}"`);else this.cstInvocationStateUpdate=sG,this.cstFinallyStateUpdate=sG,this.cstPostTerminal=sG,this.cstPostNonTerminal=sG,this.cstPostRule=sG}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){let t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){let t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let t=this.LA(0),r=e.location;r.startOffset<=t.startOffset==!0?(r.endOffset=t.endOffset,r.endLine=t.endLine,r.endColumn=t.endColumn):(r.startOffset=NaN,r.startLine=NaN,r.startColumn=NaN)}cstPostRuleOnlyOffset(e){let t=this.LA(0),r=e.location;r.startOffset<=t.startOffset==!0?r.endOffset=t.endOffset:r.startOffset=NaN}cstPostTerminal(e,t){let r=this.CST_STACK[this.CST_STACK.length-1];d3(r,t,e),this.setNodeLocationFromToken(r.location,t)}cstPostNonTerminal(e,t){let r=this.CST_STACK[this.CST_STACK.length-1];d9(r,t,e),this.setNodeLocationFromNode(r.location,e.location)}getBaseCstVisitorConstructor(){if(cK(this.baseCstVisitorConstructor)){let e=d8(this.className,ow(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(cK(this.baseCstVisitorWithDefaultsConstructor)){let e=d6(this.className,ow(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){let e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){let e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}},mr=class{static{tA(this,"LexerAdapter")}initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(!0!==this.selfAnalysisDone)throw Error("Missing  invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):mT}LA(e){let t=this.currIdx+e;return t<0||this.tokVectorLength<=t?mT:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}},mn=class{static{tA(this,"RecognizerApi")}ACTION(e){return e.call(this)}consume(e,t,r){return this.consumeInternal(t,e,r)}subrule(e,t,r){return this.subruleInternal(t,e,r)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,t,r=mv){if(cO(this.definedRulesNames,e)){let t={message:fW.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:eF.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(t)}this.definedRulesNames.push(e);let n=this.defineRule(e,t,r);return this[e]=n,n}OVERRIDE_RULE(e,t,r=mv){let n=dv(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(n);let i=this.defineRule(e,t,r);return this[e]=i,i}BACKTRACK(e,t){return function(){this.isBackTrackingStack.push(1);let r=this.saveRecogState();try{return e.apply(this,t),!0}catch(e){if(dF(e))return!1;throw e}finally{this.reloadRecogState(r),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return pl(cw(this.gastProductionsCache))}},mi=class{static{tA(this,"RecognizerEngine")}initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=ff,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},cN(t,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a  property.\n	See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n	For Further details.");if(sn(e)){if(cj(e))throw Error("A Token Vocabulary cannot be empty.\n	Note that the first argument for the parser constructor\n	is no longer a Token vector (since v4.0).");if("number"==typeof e[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n	See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n	For Further details.")}if(sn(e))this.tokensMap=cH(e,(e,t)=>(e[t.name]=t,e),{});else if(cN(e,"modes")&&cm(l$(cw(e.modes)),fC)){let t=c0(l$(cw(e.modes)));this.tokensMap=cH(t,(e,t)=>(e[t.name]=t,e),{})}else if(sf(e))this.tokensMap=ub(e);else throw Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=fG;let r=cm(cN(e,"modes")?l$(cw(e.modes)):cw(e),e=>cj(e.categoryMatches));this.tokenMatcher=r?ff:fp,fh(cw(this.tokensMap))}defineRule(e,t,r){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'
    -Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let n=cN(r,"resyncEnabled")?r.resyncEnabled:mv.resyncEnabled,i=cN(r,"recoveryValueFunc")?r.recoveryValueFunc:mv.recoveryValueFunc,a=this.ruleShortNameIdx<<12;return this.ruleShortNameIdx++,this.shortRuleNameToFull[a]=e,this.fullRuleNameToShort[e]=a,Object.assign(!0===this.outputCst?tA(function(...r){try{this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,r);let n=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(n),n}catch(e){return this.invokeRuleCatch(e,n,i)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"):tA(function(...r){try{return this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,r)}catch(e){return this.invokeRuleCatch(e,n,i)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),{ruleName:e,originalGrammarAction:t})}invokeRuleCatch(e,t,r){let n=1===this.RULE_STACK.length,i=t&&!this.isBackTracking()&&this.recoveryEnabled;if(dF(e)){if(i){let t=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(t)){if(e.resyncedTokens=this.reSyncTo(t),!this.outputCst)return r(e);{let e=this.CST_STACK[this.CST_STACK.length-1];return e.recoveredNode=!0,e}}if(this.outputCst){let t=this.CST_STACK[this.CST_STACK.length-1];t.recoveredNode=!0,e.partialCstResult=t}throw e}if(n)return this.moveToTerminatedState(),r(e)}throw e}optionInternal(e,t){let r=this.getKeyForAutomaticLookahead(512,t);return this.optionInternalLogic(e,t,r)}optionInternalLogic(e,t,r){let n,i=this.getLaFuncFromCache(r);if("function"!=typeof e){n=e.DEF;let t=e.GATE;if(void 0!==t){let e=i;i=tA(()=>t.call(this)&&e.call(this),"lookAheadFunc")}}else n=e;if(!0===i.call(this))return n.call(this)}atLeastOneInternal(e,t){let r=this.getKeyForAutomaticLookahead(1024,e);return this.atLeastOneInternalLogic(e,t,r)}atLeastOneInternalLogic(e,t,r){let n,i=this.getLaFuncFromCache(r);if("function"!=typeof t){n=t.DEF;let e=t.GATE;if(void 0!==e){let t=i;i=tA(()=>e.call(this)&&t.call(this),"lookAheadFunc")}}else n=t;if(!0===i.call(this)){let e=this.doSingleRepetition(n);for(;!0===i.call(this)&&!0===e;)e=this.doSingleRepetition(n)}else throw this.raiseEarlyExitException(e,eM.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],i,1024,e,f0)}atLeastOneSepFirstInternal(e,t){let r=this.getKeyForAutomaticLookahead(1536,e);this.atLeastOneSepFirstInternalLogic(e,t,r)}atLeastOneSepFirstInternalLogic(e,t,r){let n=t.DEF,i=t.SEP;if(!0===this.getLaFuncFromCache(r).call(this)){n.call(this);let t=tA(()=>this.tokenMatcher(this.LA(1),i),"separatorLookAheadFunc");for(;!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,n,f1],t,1536,e,f1)}else throw this.raiseEarlyExitException(e,eM.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}manyInternal(e,t){let r=this.getKeyForAutomaticLookahead(768,e);return this.manyInternalLogic(e,t,r)}manyInternalLogic(e,t,r){let n,i=this.getLaFuncFromCache(r);if("function"!=typeof t){n=t.DEF;let e=t.GATE;if(void 0!==e){let t=i;i=tA(()=>e.call(this)&&t.call(this),"lookaheadFunction")}}else n=t;let a=!0;for(;!0===i.call(this)&&!0===a;)a=this.doSingleRepetition(n);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],i,768,e,fJ,a)}manySepFirstInternal(e,t){let r=this.getKeyForAutomaticLookahead(1280,e);this.manySepFirstInternalLogic(e,t,r)}manySepFirstInternalLogic(e,t,r){let n=t.DEF,i=t.SEP;if(!0===this.getLaFuncFromCache(r).call(this)){n.call(this);let t=tA(()=>this.tokenMatcher(this.LA(1),i),"separatorLookAheadFunc");for(;!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,n,fQ],t,1280,e,fQ)}}repetitionSepSecondInternal(e,t,r,n,i){for(;r();)this.CONSUME(t),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,r,n,i],r,1536,e,i)}doSingleRepetition(e){let t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){let r=this.getKeyForAutomaticLookahead(256,t),n=sn(e)?e:e.DEF,i=this.getLaFuncFromCache(r).call(this,n);if(void 0!==i)return n[i].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){let e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new dq(t,e))}}subruleInternal(e,t,r){let n;try{let i=void 0!==r?r.ARGS:void 0;return this.subruleIdx=t,n=e.apply(this,i),this.cstPostNonTerminal(n,void 0!==r&&void 0!==r.LABEL?r.LABEL:e.ruleName),n}catch(t){throw this.subruleInternalError(t,r,e.ruleName)}}subruleInternalError(e,t,r){throw dF(e)&&void 0!==e.partialCstResult&&(this.cstPostNonTerminal(e.partialCstResult,void 0!==t&&void 0!==t.LABEL?t.LABEL:r),delete e.partialCstResult),e}consumeInternal(e,t,r){let n;try{let t=this.LA(1);!0===this.tokenMatcher(t,e)?(this.consumeToken(),n=t):this.consumeInternalError(e,t,r)}catch(r){n=this.consumeInternalRecovery(e,t,r)}return this.cstPostTerminal(void 0!==r&&void 0!==r.LABEL?r.LABEL:e.name,n),n}consumeInternalError(e,t,r){let n,i=this.LA(0);throw n=void 0!==r&&r.ERR_MSG?r.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:i,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new dG(n,t,i))}consumeInternalRecovery(e,t,r){if(this.recoveryEnabled&&"MismatchedTokenException"===r.name&&!this.isBackTracking()){let n=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,n)}catch(e){if(e.name===dW)throw r;throw e}}throw r}saveRecogState(){let e=this.errors,t=ub(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,t,r){this.RULE_OCCURRENCE_STACK.push(r),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t)}isBackTracking(){return 0!==this.isBackTrackingStack.length}getCurrRuleFullName(){let e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),fG)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},ma=class{static{tA(this,"ErrorHandler")}initErrorHandler(e){this._errors=[],this.errorMessageProvider=cN(e,"errorMessageProvider")?e.errorMessageProvider:m$.errorMessageProvider}SAVE_ERROR(e){if(dF(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:ub(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return ub(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,t,r){let n=this.getCurrRuleFullName(),i=du(e,this.getGAstProductions()[n],t,this.maxLookahead)[0],a=[];for(let e=1;e<=this.maxLookahead;e++)a.push(this.LA(e));let s=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:i,actual:a,previous:this.LA(0),customUserDescription:r,ruleName:n});throw this.SAVE_ERROR(new dU(s,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){let r=this.getCurrRuleFullName(),n=dl(e,this.getGAstProductions()[r],this.maxLookahead),i=[];for(let e=1;e<=this.maxLookahead;e++)i.push(this.LA(e));let a=this.LA(0),s=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:n,actual:i,previous:a,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new dK(s,this.LA(1),a))}},ms=class{static{tA(this,"ContentAssist")}initContentAssist(){}computeContentAssist(e,t){let r=this.gastProductionsCache[e];if(cK(r))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return f3([r],t,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){let t=cR(e.ruleStack);return new fX(this.getGAstProductions()[t],e).startWalking()}},mo={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(mo);var ml=fF({name:"RECORDING_PHASE_TOKEN",pattern:fx.NA});fh([ml]);var mu=fK(ml,"This IToken indicates the Parser is in Recording Phase\n	See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(mu);var mc={name:"This CSTNode indicates the Parser is in Recording Phase\n	See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",children:{}},mp=class{static{tA(this,"GastRecorder")}initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){let t=e>0?e:"";this[`CONSUME${t}`]=function(t,r){return this.consumeInternalRecord(t,e,r)},this[`SUBRULE${t}`]=function(t,r){return this.subruleInternalRecord(t,e,r)},this[`OPTION${t}`]=function(t){return this.optionInternalRecord(t,e)},this[`OR${t}`]=function(t){return this.orInternalRecord(t,e)},this[`MANY${t}`]=function(t){this.manyInternalRecord(e,t)},this[`MANY_SEP${t}`]=function(t){this.manySepFirstInternalRecord(e,t)},this[`AT_LEAST_ONE${t}`]=function(t){this.atLeastOneInternalRecord(e,t)},this[`AT_LEAST_ONE_SEP${t}`]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}}this.consume=function(e,t,r){return this.consumeInternalRecord(t,e,r)},this.subrule=function(e,t,r){return this.subruleInternalRecord(t,e,r)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{for(let e=0;e<10;e++){let t=e>0?e:"";delete this[`CONSUME${t}`],delete this[`SUBRULE${t}`],delete this[`OPTION${t}`],delete this[`OR${t}`],delete this[`MANY${t}`],delete this[`MANY_SEP${t}`],delete this[`AT_LEAST_ONE${t}`],delete this[`AT_LEAST_ONE_SEP${t}`]}delete this.consume,delete this.subrule,delete this.option,delete this.or,delete this.many,delete this.atLeastOne,delete this.ACTION,delete this.BACKTRACK,delete this.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return mT}topLevelRuleRecord(e,t){try{let r=new c7({definition:[],name:e});return r.name=e,this.recordingProdStack.push(r),t.call(this),this.recordingProdStack.pop(),r}catch(e){if(!0!==e.KNOWN_RECORDER_ERROR)try{e.message=e.message+'\n	 This error was thrown during the "grammar recording phase" For more info see:\n	https://chevrotain.io/docs/guide/internals.html#grammar-recording'}catch(e){}throw e}}optionInternalRecord(e,t){return mf.call(this,pt,e,t)}atLeastOneInternalRecord(e,t){mf.call(this,pr,t,e)}atLeastOneSepFirstInternalRecord(e,t){mf.call(this,pn,t,e,!0)}manyInternalRecord(e,t){mf.call(this,pi,t,e)}manySepFirstInternalRecord(e,t){mf.call(this,pa,t,e,!0)}orInternalRecord(e,t){return md.call(this,e,t)}subruleInternalRecord(e,t,r){if(mh(t),!e||!1===cN(e,"ruleName")){let r=Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>
    - inside top level rule: <${this.recordingProdStack[0].name}>`);throw r.KNOWN_RECORDER_ERROR=!0,r}let n=co(this.recordingProdStack),i=new c6({idx:t,nonTerminalName:e.ruleName,label:null==r?void 0:r.LABEL,referencedRule:void 0});return n.definition.push(i),this.outputCst?mc:mo}consumeInternalRecord(e,t,r){if(mh(t),!fR(e)){let r=Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>
    - inside top level rule: <${this.recordingProdStack[0].name}>`);throw r.KNOWN_RECORDER_ERROR=!0,r}let n=co(this.recordingProdStack),i=new po({idx:t,terminalType:e,label:null==r?void 0:r.LABEL});return n.definition.push(i),mu}};function mf(e,t,r,n=!1){mh(r);let i=co(this.recordingProdStack),a=sA(t)?t:t.DEF,s=new e({definition:[],idx:r});return n&&(s.separator=t.SEP),cN(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),i.definition.push(s),this.recordingProdStack.pop(),mo}function md(e,t){mh(t);let r=co(this.recordingProdStack),n=!1===sn(e),i=!1===n?e:e.DEF,a=new ps({definition:[],idx:t,ignoreAmbiguities:n&&!0===e.IGNORE_AMBIGUITIES});return cN(e,"MAX_LOOKAHEAD")&&(a.maxLookahead=e.MAX_LOOKAHEAD),a.hasPredicates=cZ(i,e=>sA(e.GATE)),r.definition.push(a),cp(i,e=>{let t=new pe({definition:[]});a.definition.push(t),cN(e,"IGNORE_AMBIGUITIES")?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:cN(e,"GATE")&&(t.ignoreAmbiguities=!0),this.recordingProdStack.push(t),e.ALT.call(this),this.recordingProdStack.pop()}),mo}function mm(e){return 0===e?"":`${e}`}function mh(e){if(e<0||e>255){let t=Error(`Invalid DSL Method idx value: <${e}>
    -	Idx value must be a none negative value smaller than ${256}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}tA(mf,"recordProd"),tA(md,"recordOrProd"),tA(mm,"getIdxSuffix"),tA(mh,"assertMethodIdxIsValid");var my=class{static{tA(this,"PerformanceTracer")}initPerformanceTracer(e){if(cN(e,"traceInitPerf")){let t=e.traceInitPerf,r="number"==typeof t;this.traceInitMaxIdent=r?t:1/0,this.traceInitPerf=r?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=m$.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(!0!==this.traceInitPerf)return t();{this.traceInitIndent++;let r=Array(this.traceInitIndent+1).join("	");this.traceInitIndent <${e}>`);let{time:n,value:i}=c3(t),a=n>10?console.warn:console.log;return this.traceInitIndent time: ${n}ms`),this.traceInitIndent--,i}}};function mg(e,t){t.forEach(t=>{let r=t.prototype;Object.getOwnPropertyNames(r).forEach(n=>{if("constructor"===n)return;let i=Object.getOwnPropertyDescriptor(r,n);i&&(i.get||i.set)?Object.defineProperty(e.prototype,n,i):e.prototype[n]=t.prototype[n]})})}tA(mg,"applyMixins");var mT=fK(fG,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(mT);var m$=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:fU,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),mv=Object.freeze({recoveryValueFunc:tA(()=>void 0,"recoveryValueFunc"),resyncEnabled:!0});function mR(e){return function(){return e}}!function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"}(eF||(eF={})),tA(mR,"EMPTY_ALT");var mb=class e{static{tA(this,"Parser")}static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated.	\nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let t;this.selfAnalysisDone=!0;let r=this.className;this.TRACE_INIT("toFastProps",()=>{c9(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),cp(this.definedRulesNames,e=>{let t,r=this[e].originalGrammarAction;this.TRACE_INIT(`${e} Rule`,()=>{t=this.topLevelRuleRecord(e,r)}),this.gastProductionsCache[e]=t})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=dw({rules:cw(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(cj(n)&&!1===this.skipValidations){let e=dP({rules:cw(this.gastProductionsCache),tokenTypes:cw(this.tokensMap),errMsgProvider:fW,grammarName:r}),t=dd({lookaheadStrategy:this.lookaheadStrategy,rules:cw(this.gastProductionsCache),tokenTypes:cw(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(e,t)}}),cj(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{let e=pA(cw(this.gastProductionsCache));this.resyncFollows=e}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var e,t;null==(t=(e=this.lookaheadStrategy).initialize)||t.call(e,{rules:cw(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(cw(this.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!cj(this.definitionErrors))throw t=cA(this.definitionErrors,e=>e.message),Error(`Parser Definition Errors detected:
    - ${t.join("\n-------------------------------\n")}`)})}constructor(e,t){if(this.definitionErrors=[],this.selfAnalysisDone=!1,this.initErrorHandler(t),this.initLexerAdapter(),this.initLooksAhead(t),this.initRecognizerEngine(e,t),this.initRecoverable(t),this.initTreeBuilder(t),this.initContentAssist(),this.initGastRecorder(t),this.initPerformanceTracer(t),cN(t,"ignoredIssues"))throw Error("The  IParserConfig property has been deprecated.\n	Please use the  flag on the relevant DSL method instead.\n	See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n	For further details.");this.skipValidations=cN(t,"skipValidations")?t.skipValidations:m$.skipValidations}};mb.DEFER_DEFINITION_ERRORS_HANDLING=!1,mg(mb,[dH,dJ,mt,mr,mi,mn,ma,ms,mp,my]);var mA=class extends mb{static{tA(this,"EmbeddedActionsParser")}constructor(e,t=m$){let r=ub(t);r.outputCst=!1,super(e,r)}};function mE(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r-1}function mw(e,t){var r=this.__data__,n=mk(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function mP(e){var t=-1,r=null==e?0:e.length;for(this.clear();++to))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var p=-1,f=!0,d=2&r?new hE:void 0;for(a.set(e,t),a.set(t,e);++p-1&&e%1==0&&e-1&&e%1==0&&e<=0x1fffffffffffff}tA(h1,"isIndex"),tA(h2,"isLength");var h3={};function h9(e){return hq(e)&&h2(e.length)&&!!h3[mX(e)]}function h4(e){return function(t){return e(t)}}h3["[object Float32Array]"]=h3["[object Float64Array]"]=h3["[object Int8Array]"]=h3["[object Int16Array]"]=h3["[object Int32Array]"]=h3["[object Uint8Array]"]=h3["[object Uint8ClampedArray]"]=h3["[object Uint16Array]"]=h3["[object Uint32Array]"]=!0,h3["[object Arguments]"]=h3["[object Array]"]=h3["[object ArrayBuffer]"]=h3["[object Boolean]"]=h3["[object DataView]"]=h3["[object Date]"]=h3["[object Error]"]=h3["[object Function]"]=h3["[object Map]"]=h3["[object Number]"]=h3["[object Object]"]=h3["[object RegExp]"]=h3["[object Set]"]=h3["[object String]"]=h3["[object WeakMap]"]=!1,tA(h9,"baseIsTypedArray"),tA(h4,"baseUnary");var h5="object"==typeof exports&&exports&&!exports.nodeType&&exports,h8=h5&&"object"==typeof module&&module&&!module.nodeType&&module,h6=h8&&h8.exports===h5&&mj.process,h7=function(){try{var e=h8&&h8.require&&h8.require("util").types;if(e)return e;return h6&&h6.binding&&h6.binding("util")}catch(e){}}(),ye=h7&&h7.isTypedArray,yt=ye?h4(ye):h9,yr=Object.prototype.hasOwnProperty;function yn(e,t){var r=hD(e),n=!r&&hH(e),i=!r&&!n&&hQ(e),a=!r&&!n&&!i&&yt(e),s=r||n||i||a,o=s?hK(e.length,String):[],l=o.length;for(var u in e)(t||yr.call(e,u))&&!(s&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||h1(u,l)))&&o.push(u);return o}tA(yn,"arrayLikeKeys");var yi=Object.prototype;function ya(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||yi)}function ys(e,t){return function(r){return e(t(r))}}tA(ya,"isPrototype"),tA(ys,"overArg");var yo=ys(Object.keys,Object),yl=Object.prototype.hasOwnProperty;function yu(e){if(!ya(e))return yo(e);var t=[];for(var r in Object(e))yl.call(e,r)&&"constructor"!=r&&t.push(r);return t}function yc(e){return null!=e&&h2(e.length)&&!mJ(e)}function yp(e){return yc(e)?yn(e):yu(e)}function yf(e){return hL(e,yp,hG)}tA(yu,"baseKeys"),tA(yc,"isArrayLike"),tA(yp,"keys"),tA(yf,"getAllKeys");var yd=Object.prototype.hasOwnProperty;function ym(e,t,r,n,i,a){var s=1&r,o=yf(e),l=o.length;if(l!=yf(t).length&&!s)return!1;for(var u=l;u--;){var c=o[u];if(!(s?c in t:yd.call(t,c)))return!1}var p=a.get(e),f=a.get(t);if(p&&f)return p==t&&f==e;var d=!0;a.set(e,t),a.set(t,e);for(var m=s;++ugb(e,t,r));return gO(e,t,n,r,...i)}function gx(e,t,r){let n=gG(e,t,r,{type:1});gP(e,n);let i=gO(e,t,n,r,gN(e,t,r));return gw(e,t,r,i)}function gN(e,t,r){let n=gm(gf(r.definition,r=>gb(e,t,r)),e=>void 0!==e);return 1===n.length?n[0]:0===n.length?void 0:gL(e,n)}function gI(e,t,r,n,i){let a=n.left,s=n.right,o=gG(e,t,r,{type:11});gP(e,o);let l=gG(e,t,r,{type:12});return a.loopback=o,l.loopback=o,e.decisionMap[gh(t,i?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=o,gz(s,o),void 0===i?(gz(o,a),gz(o,l)):(gz(o,l),gz(o,i.left),gz(i.right,a)),{left:a,right:l}}function g_(e,t,r,n,i){let a=n.left,s=n.right,o=gG(e,t,r,{type:10});gP(e,o);let l=gG(e,t,r,{type:12}),u=gG(e,t,r,{type:9});return o.loopback=u,l.loopback=u,gz(o,a),gz(o,l),gz(s,u),void 0!==i?(gz(u,l),gz(u,i.left),gz(i.right,a)):gz(u,o),e.decisionMap[gh(t,i?"RepetitionWithSeparator":"Repetition",r.idx)]=o,{left:o,right:l}}function gw(e,t,r,n){let i=n.left;return gz(i,n.right),e.decisionMap[gh(t,"Option",r.idx)]=i,n}function gP(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}function gO(e,t,r,n,...i){let a=gG(e,t,n,{type:8,start:r});for(let e of(r.end=a,i))void 0!==e?(gz(r,e.left),gz(e.right,a)):gz(r,a);return e.decisionMap[gh(t,gD(n),n.idx)]=r,{left:r,right:a}}function gD(e){if(e instanceof ps)return"Alternation";if(e instanceof pt)return"Option";if(e instanceof pi)return"Repetition";if(e instanceof pa)return"RepetitionWithSeparator";if(e instanceof pr)return"RepetitionMandatory";else if(e instanceof pn)return"RepetitionMandatoryWithSeparator";else throw Error("Invalid production type encountered")}function gL(e,t){let r=t.length;for(let n=0;ne.alt)}get key(){let e="";for(let t in this.map)e+=t+":";return e}};function gW(e,t=!0){return`${t?`a${e.alt}`:""}s${e.state.stateNumber}:${e.stack.map(e=>e.stateNumber.toString()).join("_")}`}function gV(e,t,r){for(var n=-1,i=e.length;++n0&&r(o)?t>1?gJ(o,t-1,r,n,i):hO(i,o):n||(i[i.length]=o)}return i}function gQ(e,t){return gJ(gf(e,t),1)}function g0(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a-1}function g4(e,t,r){for(var n=-1,i=null==e?0:e.length;++n=200){var u=t?null:g8(e);if(u)return hI(u);s=!1,i=hS,l=new hE}else l=t?[]:o;t:for(;++n{let i=n.toString(),a=r[i];return void 0!==a||(a={atnStartState:e,decision:t,states:{}},r[i]=a),a}}tA(Ta,"isEmpty"),tA(Ts,"arrayReduce"),tA(To,"baseReduce"),tA(Tl,"reduce"),tA(Tu,"createDFACache");var Tc=class{static{tA(this,"PredicateSet")}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let e="",t=this.predicates.length;for(let r=0;rconsole.log(e)}initialize(e){this.atn=gv(e.rules),this.dfas=Tm(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:t,rule:r,hasPredicates:n,dynamicTokensEnabled:i}=e,a=this.dfas,s=this.logging,o=gh(r,"Alternation",t),l=this.atn.decisionMap[o].decision,u=gf(f5({maxLookahead:1,occurrence:t,prodType:"Alternation",rule:r}),e=>gf(e,e=>e[0]));if(Td(u,!1)&&!i){let e=Tl(u,(e,t,r)=>(Tn(t,t=>{t&&(e[t.tokenTypeIdx]=r,Tn(t.categoryMatches,t=>{e[t]=r}))}),e),{});return n?function(t){var r;let n=e[this.LA(1).tokenTypeIdx];if(void 0!==t&&void 0!==n){let e=null==(r=t[n])?void 0:r.GATE;if(void 0!==e&&!1===e.call(this))return}return n}:function(){return e[this.LA(1).tokenTypeIdx]}}return n?function(e){let t=new Tc,r=void 0===e?0:e.length;for(let n=0;ngf(e,e=>e[0]));if(Td(u)&&u[0][0]&&!i){let e=Te(u[0]);if(1===e.length&&Ta(e[0].categoryMatches)){let t=e[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===t}}{let t=Tl(e,(e,t)=>(void 0!==t&&(e[t.tokenTypeIdx]=!0,Tn(t.categoryMatches,t=>{e[t]=!0})),e),{});return function(){return!0===t[this.LA(1).tokenTypeIdx]}}}return function(){let e=Th.call(this,a,l,Tp,s);return"object"!=typeof e&&0===e}}};function Td(e,t=!0){let r=new Set;for(let n of e){let e=new Set;for(let i of n){if(void 0===i)if(!t)return!1;else break;for(let t of[i.tokenTypeIdx].concat(i.categoryMatches))if(r.has(t)){if(!e.has(t))return!1}else r.add(t),e.add(t)}}return!0}function Tm(e){let t=e.decisionStates.length,r=Array(t);for(let n=0;nfN(e)).join(", "),r=0===e.production.idx?"":e.production.idx,n=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${Tv(e.production)}${r}> inside <${e.topLevelRule.name}> Rule,
    -<${t}> may appears as a prefix path in all these alternatives.
    -`;return n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
    -For Further details.`}function Tv(e){if(e instanceof c6)return"SUBRULE";if(e instanceof pt)return"OPTION";if(e instanceof ps)return"OR";if(e instanceof pr)return"AT_LEAST_ONE";if(e instanceof pn)return"AT_LEAST_ONE_SEP";else if(e instanceof pa)return"MANY_SEP";else if(e instanceof pi)return"MANY";else if(e instanceof po)return"CONSUME";else throw Error("non exhaustive match")}function TR(e,t,r){return{actualToken:r,possibleTokenTypes:g7(gQ(t.configs.elements,e=>e.state.transitions).filter(e=>e instanceof gg).map(e=>e.tokenType),e=>e.tokenTypeIdx),tokenPath:e}}function Tb(e,t){return e.edges[t.tokenTypeIdx]}function TA(e,t,r){let n,i=new gB,a=[];for(let n of e.elements){if(!1===r.is(n.alt))continue;if(7===n.state.type){a.push(n);continue}let e=n.state.transitions.length;for(let r=0;r0&&!Tw(n))for(let e of a)n.add(e);return n}function TE(e,t){if(e instanceof gg&&fq(t,e.tokenType))return e.target}function TC(e,t){let r;for(let n of e.elements)if(!0===t.is(n.alt)){if(void 0===r)r=n.alt;else if(r!==n.alt)return}return r}function TS(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function Tk(e,t,r,n){return n=Tx(e,n),t.edges[r.tokenTypeIdx]=n,n}function Tx(e,t){if(t===gU)return t;let r=t.configs.key,n=e.states[r];return void 0!==n?n:(t.configs.finalize(),e.states[r]=t,t)}function TN(e){let t=new gB,r=e.transitions.length;for(let n=0;n0){let r=[...e.stack];TI({state:r.pop(),alt:e.alt,stack:r},t)}else t.add(e);return}r.epsilonOnlyTransitions||t.add(e);let n=r.transitions.length;for(let i=0;i1)return!0;return!1}function TM(e){for(let t of Array.from(e.values()))if(1===Object.keys(t).length)return!0;return!1}tA(Td,"isLL1Sequence"),tA(Tm,"initATNSimulator"),tA(Th,"adaptivePredict"),tA(Ty,"performLookahead"),tA(Tg,"computeLookaheadTarget"),tA(TT,"reportLookaheadAmbiguity"),tA(T$,"buildAmbiguityError"),tA(Tv,"getProductionDslName"),tA(TR,"buildAdaptivePredictError"),tA(Tb,"getExistingTargetState"),tA(TA,"computeReachSet"),tA(TE,"getReachableTarget"),tA(TC,"getUniqueAlt"),tA(TS,"newDFAState"),tA(Tk,"addDFAEdge"),tA(Tx,"addDFAState"),tA(TN,"computeStartState"),tA(TI,"closure"),tA(T_,"getEpsilonTarget"),tA(Tw,"hasConfigInRuleStopState"),tA(TP,"allConfigsInRuleStopStates"),tA(TO,"hasConflictTerminatingPrediction"),tA(TD,"getConflictingAltSets"),tA(TL,"hasConflictingAltSet"),tA(TM,"hasStateAssociatedWithOneAlt"),t_();var Tj=class{static{tA(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new Tq(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){let t=new TG;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){let r=new Tz(e.startOffset,e.image.length,iN(e),e.tokenType,!t);return r.grammarSource=t,r.root=this.rootNode,this.current.content.push(r),r}removeNode(e){let t=e.container;if(t){let r=t.content.indexOf(e);r>=0&&t.content.splice(r,1)}}addHiddenNodes(e){let t=[];for(let r of e){let e=new Tz(r.startOffset,r.image.length,iN(r),r.tokenType,!0);e.root=this.rootNode,t.push(e)}let r=this.current,n=!1;if(r.content.length>0)return void r.content.push(...t);for(;r.container;){let e=r.container.content.indexOf(r);if(e>0){r.container.content.splice(e,0,...t),n=!0;break}r=r.container}n||this.rootNode.content.unshift(...t)}construct(e){let t=this.current;"string"!=typeof e.$type||e.$infixName||(this.current.astNode=e),e.$cstNode=t;let r=this.nodeStack.pop();r?.content.length===0&&this.removeNode(r)}},TF=class{static{tA(this,"AbstractCstNode")}get hidden(){return!1}get astNode(){let e="string"==typeof this._astNode?.$type?this._astNode:this.container?.astNode;if(!e)throw Error("This node has no associated AST element");return e}set astNode(e){this._astNode=e}get text(){return this.root.fullText.substring(this.offset,this.end)}},Tz=class extends TF{static{tA(this,"LeafCstNodeImpl")}get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,t,r,n,i=!1){super(),this._hidden=i,this._offset=e,this._tokenType=n,this._length=t,this._range=r}},TG=class extends TF{static{tA(this,"CompositeCstNodeImpl")}constructor(){super(...arguments),this.content=new TK(this)}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){let e=this.firstNonHiddenNode,t=this.lastNonHiddenNode;if(!e||!t)return{start:o.create(0,0),end:o.create(0,0)};if(void 0===this._rangeCache){let{range:r}=e,{range:n}=t;this._rangeCache={start:r.start,end:n.end.line=0;e--){let t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}},TK=class e extends Array{static{tA(this,"CstNodeContainer")}constructor(t){super(),this.parent=t,Object.setPrototypeOf(this,e.prototype)}push(...e){return this.addParents(e),super.push(...e)}unshift(...e){return this.addParents(e),super.unshift(...e)}splice(e,t,...r){return this.addParents(r),super.splice(e,t,...r)}addParents(e){for(let t of e)t.container=this.parent}},Tq=class extends TG{static{tA(this,"RootCstNodeImpl")}get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}},TU=Symbol("Datatype");function TB(e){return e.$type===TU}tA(TB,"isDataTypeNode");var TW=tA(e=>e.endsWith("​")?e:e+"​","withRuleSuffix"),TV=class{static{tA(this,"AbstractLangiumParser")}constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;let t=this.lexer.definition,r="production"===e.LanguageMetaData.mode;e.shared.profilers.LangiumProfiler?.isActive("parsing")?this.wrapper=new T0(t,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask("parsing",e.LanguageMetaData.languageId)):this.wrapper=new TQ(t,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider})}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},TH=class extends TV{static{tA(this,"LangiumParser")}get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new Tj,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,t){let r,n=this.computeRuleType(e);nE(e)&&(r=e.name,this.registerPrecedenceMap(e));let i=this.wrapper.DEFINE_RULE(TW(e.name),this.startImplementation(n,r,t).bind(this));return this.allRules.set(e.name,i),nW(e)&&e.entry&&(this.mainRule=i),i}registerPrecedenceMap(e){let t=e.name,r=new Map;for(let t=0;t0&&(t=this.construct()),void 0===t)throw Error("No result from parser");if(this.stack.length>0)throw Error("Parser stack is not empty after parsing");return t}startImplementation(e,t,r){return n=>{let i=!this.isRecording()&&void 0!==e;if(i){let r={$type:e};this.stack.push(r),e===TU?r.value="":void 0!==t&&(r.$infixName=t)}return r(n),i?this.construct():void 0}}extractHiddenTokens(e){let t=this.lexerResult.hidden;if(!t.length)return[];let r=e.startOffset;for(let e=0;er)return t.splice(0,e);return t.splice(0,t.length)}consume(e,t,r){let n=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(n)){let e=this.extractHiddenTokens(n);this.nodeBuilder.addHiddenNodes(e);let t=this.nodeBuilder.buildLeafNode(n,r),{assignment:i,crossRef:a}=this.getAssignment(r),s=this.current;if(i){let e=nw(r)?n.image:this.converter.convert(n.image,t);this.assign(i.operator,i.feature,e,t,a)}else if(TB(s)){let e=n.image;nw(r)||(e=this.converter.convert(e,t).toString()),s.value+=e}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&"number"==typeof e.endOffset&&!isNaN(e.endOffset)}subrule(e,t,r,n,i){let a,s;this.isRecording()||r||(a=this.nodeBuilder.buildCompositeNode(n));try{s=this.wrapper.wrapSubrule(e,t,i)}finally{!this.isRecording()&&(void 0!==s||r||(s=this.construct()),void 0!==s&&a&&a.length>0&&this.performSubruleAssignment(s,n,a))}}performSubruleAssignment(e,t,r){let{assignment:n,crossRef:i}=this.getAssignment(t);if(n)this.assign(n.operator,n.feature,e,r,i);else if(!n){let t=this.current;if(TB(t))t.value+=e.toString();else if("object"==typeof e&&e){let r=this.assignWithoutOverride(e,t);this.stack.pop(),this.stack.push(r)}}}action(e,t){if(!this.isRecording()){let r=this.current;t.feature&&t.operator?(r=this.construct(),this.nodeBuilder.removeNode(r.$cstNode),this.nodeBuilder.buildCompositeNode(t).content.push(r.$cstNode),this.stack.push({$type:e}),this.assign(t.operator,t.feature,r,r.$cstNode)):r.$type=e}}construct(){if(this.isRecording())return;let e=this.stack.pop();return(this.nodeBuilder.construct(e),"$infixName"in e)?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):TB(e)?this.converter.convert(e.value,e.$cstNode):(rK(this.astReflection,e),e)}constructInfix(e,t){let r=e.parts;if(!Array.isArray(r)||0===r.length)return;let n=e.operators;if(!Array.isArray(n)||r.length<2)return r[0];let i=0,a=-1;for(let e=0;ea?(a=s.precedence,i=e):s.precedence!==a||s.rightAssoc||(i=e)}let s=n.slice(0,i),o=n.slice(i+1),l=r.slice(0,i+1),u=r.slice(i+1),c={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:l,operators:s},p={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:u,operators:o},f=this.constructInfix(c,t),d=this.constructInfix(p,t);return{$type:e.$type,$cstNode:e.$cstNode,left:f,operator:n[i],right:d}}getAssignment(e){if(!this.assignmentMap.has(e)){let t=rw(e,ne);this.assignmentMap.set(e,{assignment:t,crossRef:t&&nc(t.terminal)?t.terminal.isMulti?"multi":"single":void 0})}return this.assignmentMap.get(e)}assign(e,t,r,n,i){let a,s=this.current;switch(a="single"===i&&"string"==typeof r?this.linker.buildReference(s,t,n,r):"multi"===i&&"string"==typeof r?this.linker.buildMultiReference(s,t,n,r):r,e){case"=":s[t]=a;break;case"?=":s[t]=!0;break;case"+=":Array.isArray(s[t])||(s[t]=[]),s[t].push(a)}}assignWithoutOverride(e,t){for(let[r,n]of Object.entries(t)){let t=e[r];void 0===t?e[r]=n:Array.isArray(t)&&Array.isArray(n)&&(n.push(...t),e[r]=n)}let r=e.$cstNode;return r&&(r.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},TY=class{static{tA(this,"AbstractParserErrorMessageProvider")}buildMismatchTokenMessage(e){return fU.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return fU.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return fU.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return fU.buildEarlyExitMessage(e)}},TX=class extends TY{static{tA(this,"LangiumParserErrorMessageProvider")}buildMismatchTokenMessage({expected:e,actual:t}){let r=e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`;return`Expecting ${r} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},TZ=class extends TV{static{tA(this,"LangiumCompletionParser")}constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();let t=this.lexer.tokenize(e,{mode:"partial"});return this.tokens=t.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){let r=this.wrapper.DEFINE_RULE(TW(e.name),this.startImplementation(t).bind(this));return this.allRules.set(e.name,r),e.entry&&(this.mainRule=r),r}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return t=>{let r=this.keepStackSize();try{e(t)}finally{this.resetStackSize(r)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,r){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,r],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,r,n,i){this.before(n),this.wrapper.wrapSubrule(e,t,i),this.after(n)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){let t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}},TJ={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new TX},TQ=class extends mA{static{tA(this,"ChevrotainWrapper")}constructor(e,t){super(e,{...TJ,lookaheadStrategy:t&&"maxLookahead"in t?new dZ({maxLookahead:t.maxLookahead}):new Tf({logging:t.skipValidations?()=>{}:void 0}),...t})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t,r){return this.RULE(e,t,r)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t,void 0)}wrapSubrule(e,t,r){return this.subrule(e,t,{ARGS:[r]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}rule(e){return e.call(this,{})}},T0=class extends TQ{static{tA(this,"ProfilerWrapper")}constructor(e,t,r){super(e,t),this.task=r}rule(e){this.task.start(),this.task.startSubTask(this.ruleName(e));try{return super.rule(e)}finally{this.task.stopSubTask(this.ruleName(e)),this.task.stop()}}ruleName(e){return e.ruleName}subrule(e,t,r){this.task.startSubTask(this.ruleName(t));try{return super.subrule(e,t,r)}finally{this.task.stopSubTask(this.ruleName(t))}}};function T1(e,t,r){return T2({parser:t,tokens:r,ruleNames:new Map},e),t}function T2(e,t){let r=ad(t,!1);for(let n of rx(t.rules).filter(nW).filter(e=>r.has(e))){let t={...e,consume:1,optional:1,subrule:1,many:1,or:1};e.parser.rule(n,T9(t,n.definition))}for(let n of rx(t.rules).filter(nE).filter(e=>r.has(e)))e.parser.rule(n,T3(e,n))}function T3(e,t){let r,n=t.call.rule.ref;if(!n)throw Error("Could not resolve reference to infix operator rule: "+t.call.rule.$refText);if(ir(n))throw Error("Cannot use terminal rule in infix expression");let i=t.operators.precedences.flatMap(e=>e.operators),a={$type:"Group",elements:[]},s={$container:a,$type:"Assignment",feature:"parts",operator:"+=",terminal:t.call},o={$container:a,$type:"Group",elements:[],cardinality:"*"};a.elements.push(s,o);let l={$container:o,$type:"Assignment",feature:"operators",operator:"+=",terminal:{$type:"Alternatives",elements:i}},u={...s,$container:o};o.elements.push(l,u);let c=i.map(t=>e.tokens[t.value]).map((t,r)=>({ALT:tA(()=>e.parser.consume(r,t,l),"ALT")}));return t=>{r??(r=$s(e,n)),e.parser.subrule(0,r,!1,s,t),e.parser.many(0,{DEF:tA(()=>{e.parser.alternatives(0,c),e.parser.subrule(1,r,!1,u,t)},"DEF")})}}function T9(e,t,r=!1){let n;if(nw(t))n=$i(e,t);else if(r2(t))n=T4(e,t);else if(ne(t))n=T9(e,t.terminal);else if(nc(t))n=$n(e,t);else if(n0(t))n=T5(e,t);else if(r9(t))n=T7(e,t);else if(iy(t))n=$e(e,t);else if(nv(t))n=$t(e,t);else if(nm(t)){let r=e.consume++;n=tA(()=>e.parser.consume(r,fG,t),"method")}else throw new iV(t.$cstNode,`Unexpected element type: ${t.$type}`);return $a(e,r?void 0:$r(t),n,t.cardinality)}function T4(e,t){let r=aL(t);return()=>e.parser.action(r,t)}function T5(e,t){let r=t.rule.ref;if(rX(r)){let n,i=e.subrule++,a=nW(r)&&r.fragment,s=t.arguments.length>0?T8(r,t.arguments):()=>({});return o=>{n??(n=$s(e,r)),e.parser.subrule(i,n,a,t,s(o))}}if(ir(r)){let n=e.consume++,i=$l(e,r.name);return()=>e.parser.consume(n,i,t)}if(r)iH(r);else throw new iV(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}function T8(e,t){if(t.some(e=>e.calledByName)){let e=t.map(e=>({parameterName:e.parameter?.ref?.name,predicate:T6(e.value)}));return t=>{let r={};for(let{parameterName:n,predicate:i}of e)n&&(r[n]=i(t));return r}}{let r=t.map(e=>T6(e.value));return t=>{let n={};for(let i=0;it(e)||r(e)}if(nl(e)){let t=T6(e.left),r=T6(e.right);return e=>t(e)&&r(e)}if(nj(e)){let t=T6(e.value);return e=>!t(e)}if(nU(e)){let t=e.parameter.ref.name;return e=>void 0!==e&&!0===e[t]}if(nr(e)){let t=!!e.true;return()=>t}iH(e)}function T7(e,t){if(1===t.elements.length)return T9(e,t.elements[0]);{let r=[];for(let n of t.elements){let t={ALT:T9(e,n,!0)},i=$r(n);i&&(t.GATE=T6(i)),r.push(t)}let n=e.or++;return t=>e.parser.alternatives(n,r.map(e=>{let r={ALT:tA(()=>e.ALT(t),"ALT")},n=e.GATE;return n&&(r.GATE=()=>n(t)),r}))}}function $e(e,t){if(1===t.elements.length)return T9(e,t.elements[0]);let r=[];for(let n of t.elements){let t={ALT:T9(e,n,!0)},i=$r(n);i&&(t.GATE=T6(i)),r.push(t)}let n=e.or++,i=tA((e,t)=>{let r=t.getRuleStack().join("-");return`uGroup_${e}_${r}`},"idFunc"),a=tA(t=>e.parser.alternatives(n,r.map((r,a)=>{let s={ALT:tA(()=>!0,"ALT")},o=e.parser;s.ALT=()=>{if(r.ALT(t),!o.isRecording()){let e=i(n,o);o.unorderedGroups.get(e)||o.unorderedGroups.set(e,[]);let t=o.unorderedGroups.get(e);void 0===t?.[a]&&(t[a]=!0)}};let l=r.GATE;return l?s.GATE=()=>l(t):s.GATE=()=>{let e=o.unorderedGroups.get(i(n,o));return!e?.[a]},s})),"alternatives"),s=$a(e,$r(t),a,"*");return t=>{s(t),e.parser.isRecording()||e.parser.unorderedGroups.delete(i(n,e.parser))}}function $t(e,t){let r=t.elements.map(t=>T9(e,t));return e=>r.forEach(t=>t(e))}function $r(e){if(nv(e))return e.guardCondition}function $n(e,t,r=t.terminal){if(r)if(n0(r)&&nW(r.rule.ref)){let n,i=r.rule.ref,a=e.subrule++;return r=>{n??(n=$s(e,i)),e.parser.subrule(a,n,!1,t,r)}}else if(n0(r)&&ir(r.rule.ref)){let n=e.consume++,i=$l(e,r.rule.ref.name);return()=>e.parser.consume(n,i,t)}else if(nw(r)){let n=e.consume++,i=$l(e,r.value);return()=>e.parser.consume(n,i,t)}else throw Error("Could not build cross reference parser");{if(!t.type.ref)throw Error("Could not resolve reference to type: "+t.type.$refText);let r=aC(t.type.ref),n=r?.terminal;if(!n)throw Error("Could not find name assignment for type: "+aL(t.type.ref));return $n(e,t,n)}}function $i(e,t){let r=e.consume++,n=e.tokens[t.value];if(!n)throw Error("Could not find token for keyword: "+t.value);return()=>e.parser.consume(r,n,t)}function $a(e,t,r,n){let i=t&&T6(t);if(!n)if(!i)return r;else{let t=e.or++;return n=>e.parser.alternatives(t,[{ALT:tA(()=>r(n),"ALT"),GATE:tA(()=>i(n),"GATE")},{ALT:mR(),GATE:tA(()=>!i(n),"GATE")}])}if("*"===n){let t=e.many++;return n=>e.parser.many(t,{DEF:tA(()=>r(n),"DEF"),GATE:i?()=>i(n):void 0})}if("+"===n){let t=e.many++;if(!i)return n=>e.parser.atLeastOne(t,{DEF:tA(()=>r(n),"DEF")});{let n=e.or++;return a=>e.parser.alternatives(n,[{ALT:tA(()=>e.parser.atLeastOne(t,{DEF:tA(()=>r(a),"DEF")}),"ALT"),GATE:tA(()=>i(a),"GATE")},{ALT:mR(),GATE:tA(()=>!i(a),"GATE")}])}}if("?"===n){let t=e.optional++;return n=>e.parser.optional(t,{DEF:tA(()=>r(n),"DEF"),GATE:i?()=>i(n):void 0})}iH(n)}function $s(e,t){let r=$o(e,t),n=e.parser.getRule(r);if(!n)throw Error(`Rule "${r}" not found."`);return n}function $o(e,t){if(rX(t))return t.name;{if(e.ruleNames.has(t))return e.ruleNames.get(t);let r=t,n=r.$container,i=t.$type;for(;!nW(n);)(nv(n)||r9(n)||iy(n))&&(i=n.elements.indexOf(r).toString()+":"+i),r=n,n=n.$container;return i=n.name+":"+i,e.ruleNames.set(t,i),i}}function $l(e,t){let r=e.tokens[t];if(!r)throw Error(`Token "${t}" not found."`);return r}function $u(e){let t=e.Grammar,r=e.parser.Lexer,n=new TZ(e);return T1(t,n,r.definition),n.finalize(),n}function $c(e){let t=$p(e);return t.finalize(),t}function $p(e){let t=e.Grammar,r=e.parser.Lexer;return T1(t,new TH(e),r.definition)}tA(T1,"createParser"),tA(T2,"buildRules"),tA(T3,"buildInfixRule"),tA(T9,"buildElement"),tA(T4,"buildAction"),tA(T5,"buildRuleCall"),tA(T8,"buildRuleCallPredicate"),tA(T6,"buildPredicate"),tA(T7,"buildAlternatives"),tA($e,"buildUnorderedGroup"),tA($t,"buildGroup"),tA($r,"getGuardCondition"),tA($n,"buildCrossReference"),tA($i,"buildKeyword"),tA($a,"wrap"),tA($s,"getRule"),tA($o,"getRuleName"),tA($l,"getToken"),tA($u,"createCompletionParser"),tA($c,"createLangiumParser"),tA($p,"prepareLangiumParser");var $f=class{static{tA(this,"DefaultTokenBuilder")}constructor(){this.diagnostics=[]}buildTokens(e,t){let r=rx(ad(e,!1)),n=this.buildTerminalTokens(r),i=this.buildKeywordTokens(r,n,t);return i.push(...n),i}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){let e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(ir).filter(e=>!e.fragment).map(e=>this.buildTerminalToken(e)).toArray()}buildTerminalToken(e){let t=az(e),r=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,n={name:e.name,PATTERN:r};return"function"==typeof r&&(n.LINE_BREAKS=!0),e.hidden&&(n.GROUP=ao(t)?fx.SKIPPED:"hidden"),n}requiresCustomPattern(e){return!!(e.flags.includes("u")||e.flags.includes("s"))}regexPatternFunction(e){let t=RegExp(e,e.flags+"y");return(e,r)=>(t.lastIndex=r,t.exec(e))}buildKeywordTokens(e,t,r){return e.filter(rX).flatMap(e=>rj(e).filter(nw)).distinct(e=>e.value).toArray().sort((e,t)=>t.value.length-e.value.length).map(e=>this.buildKeywordToken(e,t,!!r?.caseInsensitive))}buildKeywordToken(e,t,r){let n=this.buildKeywordPattern(e,r),i={name:e.value,PATTERN:n,LONGER_ALT:this.findLongerAlt(e,t)};return"function"==typeof n&&(i.LINE_BREAKS=!0),i}buildKeywordPattern(e,t){return t?RegExp(al(e.value),"i"):e.value}findLongerAlt(e,t){return t.reduce((t,r)=>{let n=r?.PATTERN;return n?.source&&au("^"+n.source+"$",e.value)&&t.push(r),t},[])}},$d=class{static{tA(this,"DefaultValueConverter")}convert(e,t){let r=t.grammarSource;if(nc(r)&&(r=ay(r)),n0(r)){let n=r.rule.ref;if(!n)throw Error("This cst node was not parsed by a rule.");return this.runConverter(n,e,t)}return e}runConverter(e,t,r){switch(e.name.toUpperCase()){case"INT":return ez.convertInt(t);case"STRING":return ez.convertString(t);case"ID":return ez.convertID(t)}switch(aF(e)?.toLowerCase()){case"number":return ez.convertNumber(t);case"boolean":return ez.convertBoolean(t);case"bigint":return ez.convertBigint(t);case"date":return ez.convertDate(t);default:return t}}};!function(e){function t(e){let t="";for(let n=1;n{"undefined"==typeof setImmediate?setTimeout(e,0):setImmediate(e)})}tk($m,tx(tD(),1)),tA($h,"delayNextTick");var $y=0,$g=10;function $T(){return $y=performance.now(),new $m.CancellationTokenSource}function $$(e){$g=e}tA($T,"startCancelableOperation"),tA($$,"setInterruptionPeriod");var $v=Symbol("OperationCancelled");function $R(e){return e===$v}async function $b(e){if(e===$m.CancellationToken.None)return;let t=performance.now();if(t-$y>=$g&&($y=t,await $h(),$y=performance.now()),e.isCancellationRequested)throw $v}tA($R,"isOperationCancelled"),tA($b,"interruptAndCheck");var $A=class{static{tA(this,"Deferred")}constructor(){this.promise=new Promise((e,t)=>{this.resolve=t=>(e(t),this),this.reject=e=>(t(e),this)})}},$E=class e{static{tA(this,"FullTextDocument")}constructor(e,t,r,n){this._uri=e,this._languageId=t,this._version=r,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(t,r)}return this._content}update(t,r){for(let r of t)if(e.isIncremental(r)){let e=$x(r.range),t=this.offsetAt(e.start),n=this.offsetAt(e.end);this._content=this._content.substring(0,t)+r.text+this._content.substring(n,this._content.length);let i=Math.max(e.start.line,0),a=Math.max(e.end.line,0),s=this._lineOffsets,o=$S(r.text,!1,t);if(a-i===o.length)for(let e=0,t=o.length;ee?n=i:r=i+1}let i=r-1;return e=this.ensureBeforeEOL(e,t[i]),{line:i,character:e-t[i]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let r=t[e.line];if(e.character<=0)return r;let n=e.line+1t&&$k(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){return null!=e&&"string"==typeof e.text&&void 0!==e.range&&(void 0===e.rangeLength||"number"==typeof e.rangeLength)}static isFull(e){return null!=e&&"string"==typeof e.text&&void 0===e.range&&void 0===e.rangeLength}};function $C(e,t){if(e.length<=1)return e;let r=e.length/2|0,n=e.slice(0,r),i=e.slice(r);$C(n,t),$C(i,t);let a=0,s=0,o=0;for(;a=t(n[a],i[s])?e[o++]=n[a++]:e[o++]=i[s++];for(;ar.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function $N(e){let t=$x(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){function t(e,t,r,n){return new $E(e,t,r,n)}function r(e,t,r){if(e instanceof $E)return e.update(t,r),e;throw Error("TextDocument.update: document must be created by TextDocument.create")}function n(e,t){let r=e.getText(),n=$C(t.map($N),(e,t)=>{let r=e.range.start.line-t.range.start.line;return 0===r?e.range.start.character-t.range.start.character:r}),i=0,a=[];for(let t of n){let n=e.offsetAt(t.range.start);if(ni&&a.push(r.substring(i,n)),t.newText.length&&a.push(t.newText),i=e.offsetAt(t.range.end)}return a.push(r.substr(i)),a.join("")}tA(t,"create"),e.create=t,tA(r,"update"),e.update=r,tA(n,"applyEdits"),e.applyEdits=n}(eG||(eG={})),tA($C,"mergeSort"),tA($S,"computeLineOffsets"),tA($k,"isEOL"),tA($x,"getWellformedRange"),tA($N,"getWellformedEdit"),(()=>{let e;var t,r={975:e=>{function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",i=0,a=-1,s=0,o=0;o<=e.length;++o){if(o2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",i=0):i=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),a=o,s=0;continue}}else if(2===n.length||1===n.length){n="",i=0,a=o,s=0;continue}}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),i=o-a-1;a=o,s=0}else 46===r&&-1!==s?++s:s=-1}return n}tA(t,"e"),tA(r,"r");var n={resolve:tA(function(){for(var e,n,i="",a=!1,s=arguments.length-1;s>=-1&&!a;s--)s>=0?e=arguments[s]:(void 0===n&&(n=ty.cwd()),e=n),t(e),0!==e.length&&(i=e+"/"+i,a=47===e.charCodeAt(0));return i=r(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},"resolve"),normalize:tA(function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&i&&(e+="/"),n?"/"+e:e},"normalize"),isAbsolute:tA(function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},"isAbsolute"),join:tA(function(){if(0==arguments.length)return".";for(var e,r=0;r0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":n.normalize(e)},"join"),relative:tA(function(e,r){if(t(e),t(r),e===r||(e=n.resolve(e))===(r=n.resolve(r)))return"";for(var i=1;iu){if(47===r.charCodeAt(o+p))return r.slice(o+p+1);if(0===p)return r.slice(o+p)}else s>u&&(47===e.charCodeAt(i+p)?c=p:0===p&&(c=0));break}var f=e.charCodeAt(i+p);if(f!==r.charCodeAt(o+p))break;47===f&&(c=p)}var d="";for(p=i+c+1;p<=a;++p)p!==a&&47!==e.charCodeAt(p)||(0===d.length?d+="..":d+="/..");return d.length>0?d+r.slice(o+c):(o+=c,47===r.charCodeAt(o)&&++o,r.slice(o))},"relative"),_makeLong:tA(function(e){return e},"_makeLong"),dirname:tA(function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,i=-1,a=!0,s=e.length-1;s>=1;--s)if(47===(r=e.charCodeAt(s))){if(!a){i=s;break}}else a=!1;return -1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},"dirname"),basename:tA(function(e,r){if(void 0!==r&&"string"!=typeof r)throw TypeError('"ext" argument must be a string');t(e);var n,i=0,a=-1,s=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var o=r.length-1,l=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!s){i=n+1;break}}else -1===l&&(s=!1,l=n+1),o>=0&&(u===r.charCodeAt(o)?-1==--o&&(a=n):(o=-1,a=l))}return i===a?a=l:-1===a&&(a=e.length),e.slice(i,a)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!s){i=n+1;break}}else -1===a&&(s=!1,a=n+1);return -1===a?"":e.slice(i,a)},"basename"),extname:tA(function(e){t(e);for(var r=-1,n=0,i=-1,a=!0,s=0,o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(47!==l)-1===i&&(a=!1,i=o+1),46===l?-1===r?r=o:1!==s&&(s=1):-1!==r&&(s=-1);else if(!a){n=o+1;break}}return -1===r||-1===i||0===s||1===s&&r===i-1&&r===n+1?"":e.slice(r,i)},"extname"),format:tA(function(e){var t,r;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+r:t+"/"+r:r},"format"),parse:tA(function(e){t(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n,i=e.charCodeAt(0),a=47===i;a?(r.root="/",n=1):n=0;for(var s=-1,o=0,l=-1,u=!0,c=e.length-1,p=0;c>=n;--c)if(47!==(i=e.charCodeAt(c)))-1===l&&(u=!1,l=c+1),46===i?-1===s?s=c:1!==p&&(p=1):-1!==s&&(p=-1);else if(!u){o=c+1;break}return -1===s||-1===l||0===p||1===p&&s===l-1&&s===o+1?-1!==l&&(r.base=r.name=0===o&&a?e.slice(1,l):e.slice(o,l)):(0===o&&a?(r.name=e.slice(1,s),r.base=e.slice(1,l)):(r.name=e.slice(o,s),r.base=e.slice(o,l)),r.ext=e.slice(s,l)),o>0?r.dir=e.slice(0,o-1):a&&(r.dir="/"),r},"parse"),sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return r[e](a,a.exports,i),a.exports}tA(i,"r"),i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(i.r(a),i.d(a,{URI:tA(()=>p,"URI"),Utils:tA(()=>t,"Utils")}),"object"==typeof ty)?e="win32"===ty.platform:"object"==typeof navigator&&(e=navigator.userAgent.indexOf("Windows")>=0);let s=/^\w[\w\d+.-]*$/,o=/^\//,l=/^\/\//;function u(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!o.test(e.path))throw Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(e.path))throw Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}tA(u,"a");let c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class p{static{tA(this,"l")}static isUri(e){return e instanceof p||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,r,n,i,a=!1){"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=function(e,t){return e||t?e:"file"}(e,a),this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?"/"!==t[0]&&(t="/"+t):t="/"}return t}(this.scheme,r||""),this.query=n||"",this.fragment=i||"",u(this,a))}get fsPath(){return g(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:r,path:n,query:i,fragment:a}=e;return void 0===t?t=this.scheme:null===t&&(t=""),void 0===r?r=this.authority:null===r&&(r=""),void 0===n?n=this.path:null===n&&(n=""),void 0===i?i=this.query:null===i&&(i=""),void 0===a?a=this.fragment:null===a&&(a=""),t===this.scheme&&r===this.authority&&n===this.path&&i===this.query&&a===this.fragment?this:new d(t,r,n,i,a)}static parse(e,t=!1){let r=c.exec(e);return r?new d(r[2]||"",R(r[4]||""),R(r[5]||""),R(r[7]||""),R(r[9]||""),t):new d("","","","","")}static file(t){let r="";if(e&&(t=t.replace(/\\/g,"/")),"/"===t[0]&&"/"===t[1]){let e=t.indexOf("/",2);-1===e?(r=t.substring(2),t="/"):(r=t.substring(2,e),t=t.substring(e)||"/")}return new d("file",r,t,"","")}static from(e){let t=new d(e.scheme,e.authority,e.path,e.query,e.fragment);return u(t,!0),t}toString(e=!1){return T(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof p)return e;{let t=new d(e);return t._formatted=e.external,t._fsPath=e._sep===f?e.fsPath:null,t}}return e}}let f=e?1:void 0;class d extends p{static{tA(this,"d")}_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=g(this,!1)),this._fsPath}toString(e=!1){return e?T(this,!0):(this._formatted||(this._formatted=T(this,!1)),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=f),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}let m={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function h(e,t,r){let n,i=-1;for(let a=0;a=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||r&&91===s||r&&93===s||r&&58===s)-1!==i&&(n+=encodeURIComponent(e.substring(i,a)),i=-1),void 0!==n&&(n+=e.charAt(a));else{void 0===n&&(n=e.substr(0,a));let t=m[s];void 0!==t?(-1!==i&&(n+=encodeURIComponent(e.substring(i,a)),i=-1),n+=t):-1===i&&(i=a)}}return -1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function y(e){let t;for(let r=0;r1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&90>=t.path.charCodeAt(1)||t.path.charCodeAt(1)>=97&&122>=t.path.charCodeAt(1))&&58===t.path.charCodeAt(2)?r?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(n=n.replace(/\//g,"\\")),n}function T(e,t){let r=t?y:h,n="",{scheme:i,authority:a,path:s,query:o,fragment:l}=e;if(i&&(n+=i,n+=":"),(a||"file"===i)&&(n+="/",n+="/"),a){let e=a.indexOf("@");if(-1!==e){let t=a.substr(0,e);a=a.substr(e+1),-1===(e=t.lastIndexOf(":"))?n+=r(t,!1,!1):(n+=r(t.substr(0,e),!1,!1),n+=":",n+=r(t.substr(e+1),!1,!0)),n+="@"}-1===(e=(a=a.toLowerCase()).lastIndexOf(":"))?n+=r(a,!1,!0):(n+=r(a.substr(0,e),!1,!0),n+=a.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){let e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){let e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}n+=r(s,!0,!1)}return o&&(n+="?",n+=r(o,!1,!1)),l&&(n+="#",n+=t?l:h(l,!1,!1)),n}function $(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+$(e.substr(3)):e}}tA(h,"m"),tA(y,"y"),tA(g,"v"),tA(T,"b"),tA($,"C");let v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function R(e){return e.match(v)?e.replace(v,e=>$(e)):e}tA(R,"w");var b=i(975);let A=b.posix||b;!function(e){e.joinPath=function(e,...t){return e.with({path:A.join(e.path,...t)})},e.resolvePath=function(e,...t){let r=e.path,n=!1;"/"!==r[0]&&(r="/"+r,n=!0);let i=A.resolve(r,...t);return n&&"/"===i[0]&&!e.authority&&(i=i.substring(1)),e.with({path:i})},e.dirname=function(e){if(0===e.path.length||"/"===e.path)return e;let t=A.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},e.basename=function(e){return A.basename(e.path)},e.extname=function(e){return A.extname(e.path)}}(t||(t={})),eK=a})();var{URI:$I,Utils:$_}=eK;!function(e){e.basename=$_.basename,e.dirname=$_.dirname,e.extname=$_.extname,e.joinPath=$_.joinPath,e.resolvePath=$_.resolvePath;let t="object"==typeof ty&&ty?.platform==="win32";function r(e,t){return e?.toString()===t?.toString()}function n(e,r){let n="string"==typeof e?$I.parse(e).path:e.path,i="string"==typeof r?$I.parse(r).path:r.path,a=n.split("/").filter(e=>e.length>0),s=i.split("/").filter(e=>e.length>0);if(t){let e=/^[A-Z]:$/;if(a[0]&&e.test(a[0])&&(a[0]=a[0].toLowerCase()),s[0]&&e.test(s[0])&&(s[0]=s[0].toLowerCase()),a[0]!==s[0])return i.substring(1)}let o=0;for(;o({name:e.name,uri:eq.joinPath($I.parse(t),e.name).toString(),element:e.element})):[]}all(){return this.collectValues(this.root)}findAll(e){let t=this.getNode(eq.normalize(e),!1);return t?this.collectValues(t):[]}getNode(e,t){let r=e.split("/");"/"===e.charAt(e.length-1)&&r.pop();let n=this.root;for(let e of r){let r=n.children.get(e);if(!r)if(!t)return;else r={name:e,children:new Map,parent:n},n.children.set(e,r);n=r}return n}collectValues(e){let t=[];for(let r of(e.element&&t.push(e.element),e.children.values()))t.push(...this.collectValues(r));return t}};!function(e){e[e.Changed=0]="Changed",e[e.Parsed=1]="Parsed",e[e.IndexedContent=2]="IndexedContent",e[e.ComputedScopes=3]="ComputedScopes",e[e.Linked=4]="Linked",e[e.IndexedReferences=5]="IndexedReferences",e[e.Validated=6]="Validated"}(eU||(eU={}));var $P=class{static{tA(this,"DefaultLangiumDocumentFactory")}constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,t=$m.CancellationToken.None){let r=await this.fileSystemProvider.readFile(e);return this.createAsync(e,r,t)}fromTextDocument(e,t,r){return(t=t??$I.parse(e.uri),$m.CancellationToken.is(r))?this.createAsync(t,e,r):this.create(t,e,r)}fromString(e,t,r){return $m.CancellationToken.is(r)?this.createAsync(t,e,r):this.create(t,e,r)}fromModel(e,t){return this.create(t,{$model:e})}create(e,t,r){if("string"==typeof t){let n=this.parse(e,t,r);return this.createLangiumDocument(n,e,void 0,t)}if("$model"in t){let r={value:t.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(r,e)}{let n=this.parse(e,t.getText(),r);return this.createLangiumDocument(n,e,t)}}async createAsync(e,t,r){if("string"==typeof t){let n=await this.parseAsync(e,t,r);return this.createLangiumDocument(n,e,void 0,t)}{let n=await this.parseAsync(e,t.getText(),r);return this.createLangiumDocument(n,e,t)}}createLangiumDocument(e,t,r,n){let i;if(r)i={parseResult:e,uri:t,state:eU.Parsed,references:[],textDocument:r};else{let r=this.createTextDocumentGetter(t,n);i={parseResult:e,uri:t,state:eU.Parsed,references:[],get textDocument(){return r()}}}return e.value.$document=i,i}async update(e,t){let r=e.parseResult.value.$cstNode?.root.fullText,n=this.textDocuments?.get(e.uri.toString()),i=n?n.getText():await this.fileSystemProvider.readFile(e.uri);if(n)Object.defineProperty(e,"textDocument",{value:n});else{let t=this.createTextDocumentGetter(e.uri,i);Object.defineProperty(e,"textDocument",{get:t})}return r!==i&&(e.parseResult=await this.parseAsync(e.uri,i,t),e.parseResult.value.$document=e),e.state=eU.Parsed,e}parse(e,t,r){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(t,r)}parseAsync(e,t,r){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(t,r)}createTextDocumentGetter(e,t){let r,n=this.serviceRegistry;return()=>r??(r=eG.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,t??""))}},$O=class{static{tA(this,"DefaultLangiumDocuments")}constructor(e){this.documentTrie=new $w,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return rx(this.documentTrie.all())}addDocument(e){let t=e.uri.toString();if(this.documentTrie.has(t))throw Error(`A document with the URI '${t}' is already present.`);this.documentTrie.insert(t,e)}getDocument(e){let t=e.toString();return this.documentTrie.find(t)}getDocuments(e){let t=e.toString();return this.documentTrie.findAll(t)}async getOrCreateDocument(e,t){let r=this.getDocument(e);return r||(r=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(r)),r}createDocument(e,t,r){if(r)return this.langiumDocumentFactory.fromString(t,e,r).then(e=>(this.addDocument(e),e));{let r=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(r),r}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){let t=e.toString(),r=this.documentTrie.find(t);return r&&this.documentBuilder().resetToState(r,eU.Changed),r}deleteDocument(e){let t=e.toString(),r=this.documentTrie.find(t);return r&&(r.state=eU.Changed,this.documentTrie.delete(t)),r}deleteDocuments(e){let t=e.toString(),r=this.documentTrie.findAll(t);for(let e of r)e.state=eU.Changed;return this.documentTrie.delete(t),r}},$D=Symbol("RefResolving"),$L=class{static{tA(this,"DefaultLinker")}constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async link(e,t=$m.CancellationToken.None){if(this.profiler?.isActive("linking")){let r=this.profiler.createTask("linking",this.languageId);r.start();try{for(let n of rF(e.parseResult.value))await $b(t),rG(n).forEach(t=>{let i=`${n.$type}:${t.property}`;r.startSubTask(i);try{this.doLink(t,e)}finally{r.stopSubTask(i)}})}finally{r.stop()}}else for(let r of rF(e.parseResult.value))await $b(t),rG(r).forEach(t=>this.doLink(t,e))}doLink(e,t){let r=e.reference;if("_ref"in r&&void 0===r._ref){r._ref=$D;try{let t=this.getCandidate(e);rT(t)?r._ref=t:(r._nodeDescription=t,r._ref=this.loadAstNode(t)??this.createLinkingError(e,t))}catch(n){console.error(`An error occurred while resolving reference to '${r.$refText}':`,n);let t=n.message??String(n);r._ref={info:e,message:`An error occurred while resolving reference to '${r.$refText}': ${t}`}}t.references.push(r)}else if("_items"in r&&void 0===r._items){r._items=$D;try{let t=this.getCandidates(e),n=[];if(rT(t))r._linkingError=t;else for(let e of t){let t=this.loadAstNode(e);t&&n.push({ref:t,$nodeDescription:e})}r._items=n}catch(t){r._linkingError={info:e,message:`An error occurred while resolving reference to '${r.$refText}': ${t}`},r._items=[]}t.references.push(r)}}unlink(e){for(let t of e.references)"_ref"in t?(t._ref=void 0,delete t._nodeDescription):"_items"in t&&(t._items=void 0,delete t._linkingError);e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){let t=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct(e=>`${e.documentUri}#${e.path}`).toArray();return t.length>0?t:this.createLinkingError(e)}buildReference(e,t,r,n){let i=this,a={$refNode:r,$refText:n,_ref:void 0,get ref(){if(rm(this._ref))return this._ref;if(rg(this._nodeDescription)){let r=i.loadAstNode(this._nodeDescription);this._ref=r??i.createLinkingError({reference:a,container:e,property:t},this._nodeDescription)}else if(void 0===this._ref){this._ref=$D;let r=rD(e).$document,n=i.getLinkedNode({reference:a,container:e,property:t});if(n.error&&r&&r.state0)return;return this._linkingError=i.createLinkingError({reference:a,container:e,property:t})}};return a}throwCyclicReferenceError(e,t,r){throw Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(e)}/${t} (symbol '${r}')`)}getLinkedNode(e){try{let t=this.getCandidate(e);if(rT(t))return{error:t};let r=this.loadAstNode(t);if(r)return{node:r,descr:t};return{descr:t,error:this.createLinkingError(e,t)}}catch(r){console.error(`An error occurred while resolving reference to '${e.reference.$refText}':`,r);let t=r.message??String(r);return{error:{info:e,message:`An error occurred while resolving reference to '${e.reference.$refText}': ${t}`}}}}loadAstNode(e){if(e.node)return e.node;let t=this.langiumDocuments().getDocument(e.documentUri);if(t)return this.astNodeLocator.getAstNode(t.parseResult.value,e.path)}createLinkingError(e,t){let r=rD(e.container).$document;r&&r.statenc(e)&&e.isMulti)}findDeclarations(e){if(e){let t=aE(e),r=e.astNode;if(t&&r){let n=r[t.feature];if(rh(n)||ry(n))return rL(n);if(Array.isArray(n)){for(let t of n)if((rh(t)||ry(t))&&t.$refNode&&t.$refNode.offset<=e.offset&&t.$refNode.end>=e.end)return rL(t)}}if(r){let t=this.nameProvider.getNameNode(r);if(t&&(t===e||ix(e,t)))return this.getSelfNodes(r)}}return[]}getSelfNodes(e){if(!this.hasMultiReference)return[e];{let t=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),r=this.getNodeFromReferenceDescription(t.head());if(r){for(let t of rG(r))if(ry(t.reference)&&t.reference.items.some(t=>t.ref===e))return t.reference.items.map(e=>e.ref)}return[e]}}getNodeFromReferenceDescription(e){if(!e)return;let t=this.documents.getDocument(e.sourceUri);if(t)return this.nodeLocator.getAstNode(t.parseResult.value,e.sourcePath)}findDeclarationNodes(e){let t=this.findDeclarations(e),r=[];for(let e of t){let t=this.nameProvider.getNameNode(e)??e.$cstNode;t&&r.push(t)}return r}findReferences(e,t){let r=[];t.includeDeclaration&&r.push(...this.getSelfReferences(e));let n=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(n=n.filter(e=>eq.equals(e.sourceUri,t.documentUri))),r.push(...n),rx(r)}getSelfReferences(e){let t=this.getSelfNodes(e),r=[];for(let e of t){let t=this.nameProvider.getNameNode(e);if(t){let n=rO(e),i=this.nodeLocator.getAstNodePath(e);r.push({sourceUri:n.uri,sourcePath:i,targetUri:n.uri,targetPath:i,segment:iI(t),local:!0})}}return r}},$z=class{static{tA(this,"MultiMap")}constructor(e){if(this.map=new Map,e)for(let[t,r]of e)this.add(t,r)}get size(){return eO.sum(rx(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(void 0===t)return this.map.delete(e);{let r=this.map.get(e);if(r){let n=r.indexOf(t);if(n>=0)return 1===r.length?this.map.delete(e):r.splice(n,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){let t=this.map.get(e);return t?rx(t):rS}has(e,t){if(void 0===t)return this.map.has(e);{let r=this.map.get(e);return!!r&&r.indexOf(t)>=0}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,r)=>t.forEach(t=>e(t,r,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return rx(this.map.entries()).flatMap(([e,t])=>t.map(t=>[e,t]))}keys(){return rx(this.map.keys())}values(){return rx(this.map.values()).flat()}entriesGroupedByKey(){return rx(this.map.entries())}},$G=class{static{tA(this,"BiMap")}get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(let[t,r]of e)this.set(t,r)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){let t=this.map.get(e);return void 0!==t&&(this.map.delete(e),this.inverse.delete(t),!0)}},$K=class{static{tA(this,"DefaultScopeComputation")}constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,t=$m.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,t)}async collectExportedSymbolsForNode(e,t,r=rM,n=$m.CancellationToken.None){let i=[];for(let a of(this.addExportedSymbol(e,i,t),r(e)))await $b(n),this.addExportedSymbol(a,i,t);return i}addExportedSymbol(e,t,r){let n=this.nameProvider.getName(e);n&&t.push(this.descriptions.createDescription(e,n,r))}async collectLocalSymbols(e,t=$m.CancellationToken.None){let r=e.parseResult.value,n=new $z;for(let i of rj(r))await $b(t),this.addLocalSymbol(i,e,n);return n}addLocalSymbol(e,t,r){let n=e.$container;if(n){let i=this.nameProvider.getName(e);i&&r.add(n,this.descriptions.createDescription(e,i,t))}}},$q=class{static{tA(this,"StreamScope")}constructor(e,t,r){this.elements=e,this.outerScope=t,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.caseInsensitive?this.elements.find(e=>e.name.toLowerCase()===t):this.elements.find(t=>t.name===e);return r||(this.outerScope?this.outerScope.getElement(e):void 0)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.caseInsensitive?this.elements.filter(e=>e.name.toLowerCase()===t):this.elements.filter(t=>t.name===e);return(this.concatOuterScope||r.isEmpty())&&this.outerScope?r.concat(this.outerScope.getElements(e)):r}},$U=class{static{tA(this,"MapScope")}constructor(e,t,r){for(let t of(this.elements=new Map,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0,e)){let e=this.caseInsensitive?t.name.toLowerCase():t.name;this.elements.set(e,t)}this.outerScope=t}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);return r||(this.outerScope?this.outerScope.getElement(e):void 0)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t),n=r?[r]:[];return(this.concatOuterScope||n.length>0)&&this.outerScope?rx(n).concat(this.outerScope.getElements(e)):rx(n)}getAllElements(){let e=rx(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},$B=class{static{tA(this,"MultiMapScope")}constructor(e,t,r){for(let t of(this.elements=new $z,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0,e)){let e=this.caseInsensitive?t.name.toLowerCase():t.name;this.elements.add(e,t)}this.outerScope=t}getElement(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t)[0];return r||(this.outerScope?this.outerScope.getElement(e):void 0)}getElements(e){let t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);return(this.concatOuterScope||0===r.length)&&this.outerScope?rx(r).concat(this.outerScope.getElements(e)):rx(r)}getAllElements(){let e=rx(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},$W={getElement(){},getElements:()=>rS,getAllElements:()=>rS},$V=class{static{tA(this,"DisposableCache")}constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw Error("This cache has already been disposed")}},$H=class extends $V{static{tA(this,"SimpleCache")}constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){let r=t();return this.cache.set(e,r),r}}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},$Y=class extends $V{static{tA(this,"ContextCache")}constructor(e){super(),this.cache=new Map,this.converter=e??(e=>e)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,r){this.throwIfDisposed(),this.cacheForContext(e).set(t,r)}get(e,t,r){this.throwIfDisposed();let n=this.cacheForContext(e);if(n.has(t))return n.get(t);if(r){let e=r();return n.set(t,e),e}}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){let t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){let t=this.converter(e),r=this.cache.get(t);return r||(r=new Map,this.cache.set(t,r)),r}},$X=class extends $Y{static{tA(this,"DocumentCache")}constructor(e,t){super(e=>e.toString()),t?(this.toDispose.push(e.workspace.DocumentBuilder.onDocumentPhase(t,e=>{this.clear(e.uri.toString())})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{for(let e of t)this.clear(e)}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{for(let r of e.concat(t))this.clear(r)}))}},$Z=class extends $H{static{tA(this,"WorkspaceCache")}constructor(e,t){super(),t?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(t,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((e,t)=>{t.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},$J=class{static{tA(this,"DefaultScopeProvider")}constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new $Z(e.shared)}getScope(e){let t=[],r=this.reflection.getReferenceType(e),n=rO(e.container).localSymbols;if(n){let i=e.container;do n.has(i)&&t.push(n.getStream(i).filter(e=>this.reflection.isSubtype(e.type,r))),i=i.$container;while(i)}let i=this.getGlobalScope(r,e);for(let e=t.length-1;e>=0;e--)i=this.createScope(t[e],i);return i}createScope(e,t,r){return new $q(rx(e),t,r)}createScopeForNodes(e,t,r){return new $q(rx(e).map(e=>{let t=this.nameProvider.getName(e);if(t)return this.descriptions.createDescription(e,t)}).nonNullable(),t,r)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new $B(this.indexManager.allElements(e)))}};function $Q(e){return"string"==typeof e.$comment}function $0(e){return"object"==typeof e&&!!e&&("$ref"in e||"$error"in e)}tA($Q,"isAstNodeWithComment"),tA($0,"isIntermediateReference");var $1=class{static{tA(this,"DefaultJsonSerializer")}constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t){let r=t??{},n=t?.replacer,i=tA((e,t)=>this.replacer(e,t,r),"defaultReplacer"),a=n?(e,t)=>n(e,t,i):i;try{return this.currentDocument=rO(e),JSON.stringify(e,a,t?.space)}finally{this.currentDocument=void 0}}deserialize(e,t){let r=JSON.parse(e);return this.linkNode(r,r,t??{}),r}replacer(e,t,{refText:r,sourceText:n,textRegions:i,comments:a,uriConverter:s}){if(!this.ignoreProperties.has(e)){if(rh(t)){let e=t.ref,n=r?t.$refText:void 0;if(!e)return{$error:t.error?.message??"Could not resolve reference",$refText:n};{let t=rO(e),r="";this.currentDocument&&this.currentDocument!==t&&(r=s?s(t.uri,e):t.uri.toString());let i=this.astNodeLocator.getAstNodePath(e);return{$ref:`${r}#${i}`,$refText:n}}}if(ry(t)){let e=r?t.$refText:void 0,n=[];for(let e of t.items){let t=e.ref,r=rO(e.ref),i="";this.currentDocument&&this.currentDocument!==r&&(i=s?s(r.uri,t):r.uri.toString());let a=this.astNodeLocator.getAstNodePath(t);n.push(`${i}#${a}`)}return{$refs:n,$refText:e}}{let r;if(!rm(t))return t;if(i&&(r=this.addAstNodeRegionWithAssignmentsTo({...t}),(!e||t.$document)&&r?.$textRegion&&(r.$textRegion.documentURI=this.currentDocument?.uri.toString())),n&&!e&&(r??(r={...t}),r.$sourceText=t.$cstNode?.text),a){r??(r={...t});let e=this.commentProvider.getComment(t);e&&(r.$comment=e.replace(/\r/g,""))}return r??t}}}addAstNodeRegionWithAssignmentsTo(e){let t=tA(e=>({offset:e.offset,end:e.end,length:e.length,range:e.range}),"createDocumentSegment");if(e.$cstNode){let r=(e.$textRegion=t(e.$cstNode)).assignments={};return Object.keys(e).filter(e=>!e.startsWith("$")).forEach(n=>{let i=aT(e.$cstNode,n).map(t);0!==i.length&&(r[n]=i)}),e}}linkNode(e,t,r,n,i,a){for(let[n,i]of Object.entries(e))if(Array.isArray(i))for(let a=0;a{await this.handleException(()=>e.call(t,r,n,i),"An error occurred during validation",n,r)}}async handleException(e,t,r,n){try{await e()}catch(i){if($R(i))throw i;console.error(`${t}:`,i),i instanceof Error&&i.stack&&console.error(i.stack);let e=i instanceof Error?i.message:String(i);r("error",`${t}: ${e}`,{node:n})}}addEntry(e,t){if("AstNode"===e)return void this.entries.add("AstNode",t);for(let r of this.reflection.getAllSubTypes(e))this.entries.add(r,t)}getChecks(e,t){let r=rx(this.entries.get(e)).concat(this.entries.get("AstNode"));return t&&(r=r.filter(e=>t.includes(e.category))),r.map(e=>e.check)}registerBeforeDocument(e,t=this){this.entriesBefore.push(this.wrapPreparationException(e,"An error occurred during set-up of the validation",t))}registerAfterDocument(e,t=this){this.entriesAfter.push(this.wrapPreparationException(e,"An error occurred during tear-down of the validation",t))}wrapPreparationException(e,t,r){return async(n,i,a,s)=>{await this.handleException(()=>e.call(r,n,i,a,s),t,i,n)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},$4=Object.freeze({validateNode:!0,validateChildren:!0}),$5=class{static{tA(this,"DefaultDocumentValidator")}constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async validateDocument(e,t={},r=$m.CancellationToken.None){let n=e.parseResult,i=[];if((await $b(r),!t.categories||t.categories.includes("built-in"))&&(this.processLexingErrors(n,i,t),t.stopAfterLexingErrors&&i.some(e=>e.data?.code===eW.LexingError)||(this.processParsingErrors(n,i,t),t.stopAfterParsingErrors&&i.some(e=>e.data?.code===eW.ParsingError))||(this.processLinkingErrors(e,i,t),t.stopAfterLinkingErrors&&i.some(e=>e.data?.code===eW.LinkingError))))return i;try{i.push(...await this.validateAst(n.value,t,r))}catch(e){if($R(e))throw e;console.error("An error occurred during validation:",e)}return await $b(r),i}processLexingErrors(e,t,r){for(let r of[...e.lexerErrors,...e.lexerReport?.diagnostics??[]]){let e=r.severity??"error",n={severity:$6(e),range:{start:{line:r.line-1,character:r.column-1},end:{line:r.line-1,character:r.column+r.length-1}},message:r.message,data:$7(e),source:this.getSource()};t.push(n)}}processParsingErrors(e,t,r){for(let r of e.parserErrors){let e;if(isNaN(r.token.startOffset)){if("previousToken"in r){let t=r.previousToken;if(isNaN(t.startOffset)){let t={line:0,character:0};e={start:t,end:t}}else{let r={line:t.endLine-1,character:t.endColumn};e={start:r,end:r}}}}else e=iN(r.token);if(e){let n={severity:$6("error"),range:e,message:r.message,data:$3(eW.ParsingError),source:this.getSource()};t.push(n)}}}processLinkingErrors(e,t,r){for(let r of e.references){let e=r.error;if(e){let n={node:e.info.container,range:r.$refNode?.range,property:e.info.property,index:e.info.index,data:{code:eW.LinkingError,containerType:e.info.container.$type,property:e.info.property,refText:e.info.reference.$refText}};t.push(this.toDiagnostic("error",e.message,n))}}}async validateAst(e,t,r=$m.CancellationToken.None){let n=[],i=tA((e,t,r)=>{n.push(this.toDiagnostic(e,t,r))},"acceptor");return await this.validateAstBefore(e,t,i,r),await this.validateAstNodes(e,t,i,r),await this.validateAstAfter(e,t,i,r),n}async validateAstBefore(e,t,r,n=$m.CancellationToken.None){for(let i of this.validationRegistry.checksBefore)await $b(n),await i(e,r,t.categories??[],n)}async validateAstNodes(e,t,r,n=$m.CancellationToken.None){if(this.profiler?.isActive("validating")){let i=this.profiler.createTask("validating",this.languageId);i.start();try{let a=rF(e).iterator();for(let e of a){i.startSubTask(e.$type);let s=this.validateSingleNodeOptions(e,t);if(s.validateNode)try{for(let i of this.validationRegistry.getChecks(e.$type,t.categories))await i(e,r,n)}finally{i.stopSubTask(e.$type)}s.validateChildren||a.prune()}}finally{i.stop()}}else{let i=rF(e).iterator();for(let e of i){await $b(n);let a=this.validateSingleNodeOptions(e,t);if(a.validateNode)for(let i of this.validationRegistry.getChecks(e.$type,t.categories))await i(e,r,n);a.validateChildren||i.prune()}}}validateSingleNodeOptions(e,t){return $4}async validateAstAfter(e,t,r,n=$m.CancellationToken.None){for(let i of this.validationRegistry.checksAfter)await $b(n),await i(e,r,t.categories??[],n)}toDiagnostic(e,t,r){return{message:t,range:$8(r),severity:$6(e),code:r.code,codeDescription:r.codeDescription,tags:r.tags,relatedInformation:r.relatedInformation,data:r.data,source:this.getSource()}}getSource(){return this.metadata.languageId}};function $8(e){let t;return e.range?e.range:("string"==typeof e.property?t=a$(e.node.$cstNode,e.property,e.index):"string"==typeof e.keyword&&(t=ab(e.node.$cstNode,e.keyword,e.index)),t??(t=e.node.$cstNode),t)?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}function $6(e){switch(e){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw Error("Invalid diagnostic severity: "+e)}}function $7(e){switch(e){case"error":return $3(eW.LexingError);case"warning":return $3(eW.LexingWarning);case"info":return $3(eW.LexingInfo);case"hint":return $3(eW.LexingHint);default:throw Error("Invalid diagnostic severity: "+e)}}tA($8,"getDiagnosticRange"),tA($6,"toDiagnosticSeverity"),tA($7,"toDiagnosticData"),function(e){e.LexingError="lexing-error",e.LexingWarning="lexing-warning",e.LexingInfo="lexing-info",e.LexingHint="lexing-hint",e.ParsingError="parsing-error",e.LinkingError="linking-error"}(eW||(eW={}));var ve=class{static{tA(this,"DefaultAstNodeDescriptionProvider")}constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,r){let n,i=r??rO(e);t??(t=this.nameProvider.getName(e));let a=this.astNodeLocator.getAstNodePath(e);if(!t)throw Error(`Node at path ${a} has no name.`);let s=tA(()=>n??(n=iI(this.nameProvider.getNameNode(e)??e.$cstNode)),"nameSegmentGetter");return{node:e,name:t,get nameSegment(){return s()},selectionSegment:iI(e.$cstNode),type:e.$type,documentUri:i.uri,path:a}}},vt=class{static{tA(this,"DefaultReferenceDescriptionProvider")}constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=$m.CancellationToken.None){let r=[];for(let n of rF(e.parseResult.value))await $b(t),rG(n).forEach(e=>{e.reference.error||r.push(...this.createInfoDescriptions(e))});return r}createInfoDescriptions(e){let t=e.reference;if(t.error||!t.$refNode)return[];let r=[];rh(t)&&t.$nodeDescription?r=[t.$nodeDescription]:ry(t)&&(r=t.items.map(e=>e.$nodeDescription).filter(e=>void 0!==e));let n=rO(e.container).uri,i=this.nodeLocator.getAstNodePath(e.container),a=[],s=iI(t.$refNode);for(let e of r)a.push({sourceUri:n,sourcePath:i,targetUri:e.documentUri,targetPath:e.path,segment:s,local:eq.equals(e.documentUri,n)});return a}},vr=class{static{tA(this,"DefaultAstNodeLocator")}constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){let t=this.getAstNodePath(e.$container),r=this.getPathSegment(e);return t+this.segmentSeparator+r}return""}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw Error("Missing '$containerProperty' in AST node.");return void 0!==t?e+this.indexSeparator+t:e}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((e,t)=>{if(!e||0===t.length)return e;let r=t.indexOf(this.indexSeparator);if(r>0){let n=t.substring(0,r),i=parseInt(t.substring(r+1)),a=e[n];return a?.[i]}return e[t]},e)}},vn={};tk(vn,tx(tO(),1));var vi=class{static{tA(this,"DefaultConfigurationProvider")}constructor(e){this._ready=new $A,this.onConfigurationSectionUpdateEmitter=new vn.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){this.workspaceConfig=e.capabilities.workspace?.configuration??!1}async initialized(e){if(this.workspaceConfig){if(e.register){let t=this.serviceRegistry.all;e.register({section:t.map(e=>this.toSectionName(e.LanguageMetaData.languageId))})}if(e.fetchConfiguration){let t=this.serviceRegistry.all.map(e=>({section:this.toSectionName(e.LanguageMetaData.languageId)})),r=await e.fetchConfiguration(t);t.forEach((e,t)=>{this.updateSectionConfiguration(e.section,r[t])})}}this._ready.resolve()}updateConfiguration(e){"object"==typeof e.settings&&null!==e.settings&&Object.entries(e.settings).forEach(([e,t])=>{this.updateSectionConfiguration(e,t),this.onConfigurationSectionUpdateEmitter.fire({section:e,configuration:t})})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;let r=this.toSectionName(e);if(this.settings[r])return this.settings[r][t]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},va=tx(rp(),1);!function(e){function t(e){return{dispose:tA(async()=>await e(),"dispose")}}tA(t,"create"),e.create=t}(eV||(eV={}));var vs=class{static{tA(this,"DefaultDocumentBuilder")}constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new $z,this.documentPhaseListeners=new $z,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=eU.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.fileSystemProvider=e.workspace.FileSystemProvider,this.workspaceManager=()=>e.workspace.WorkspaceManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},r=$m.CancellationToken.None){for(let r of e){let e=r.uri.toString();if(r.state===eU.Validated){if("boolean"==typeof t.validation&&t.validation)this.resetToState(r,eU.IndexedReferences);else if("object"==typeof t.validation){let n=this.findMissingValidationCategories(r,t);n.length>0&&(this.buildState.set(e,{completed:!1,options:{validation:{categories:n}},result:this.buildState.get(e)?.result}),r.state=eU.IndexedReferences)}}else this.buildState.delete(e)}this.currentState=eU.Changed,await this.emitUpdate(e.map(e=>e.uri),[]),await this.buildDocuments(e,t,r)}async update(e,t,r=$m.CancellationToken.None){this.currentState=eU.Changed;let n=[];for(let e of t)for(let t of this.langiumDocuments.deleteDocuments(e))n.push(t.uri),this.cleanUpDeleted(t);let i=(await Promise.all(e.map(e=>this.findChangedUris(e)))).flat();for(let e of i){let t=this.langiumDocuments.getDocument(e);void 0===t&&((t=this.langiumDocumentFactory.fromModel({$type:"INVALID"},e)).state=eU.Changed,this.langiumDocuments.addDocument(t)),this.resetToState(t,eU.Changed)}let a=rx(i).concat(n).map(e=>e.toString()).toSet();this.langiumDocuments.all.filter(e=>!a.has(e.uri.toString())&&this.shouldRelink(e,a)).forEach(e=>this.resetToState(e,eU.ComputedScopes)),await this.emitUpdate(i,n),await $b(r);let s=this.sortDocuments(this.langiumDocuments.all.filter(e=>e.state=1}findMissingValidationCategories(e,t){let r=this.buildState.get(e.uri.toString()),n=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),i=r?.result?.validationChecks?new Set(r?.result?.validationChecks):r?.completed?n:new Set;return rx(void 0===t||!0===t.validation?n:"object"==typeof t.validation?t.validation.categories??n:[]).filter(e=>!i.has(e)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{let t=await this.fileSystemProvider.stat(e);if(t.isDirectory)return await this.workspaceManager().searchFolder(e);if(this.workspaceManager().shouldIncludeEntry(t))return[e]}catch{}return[]}async emitUpdate(e,t){await Promise.all(this.updateListeners.map(r=>r(e,t)))}sortDocuments(e){let t=0,r=e.length-1;for(;t=0&&!this.hasTextDocument(e[r]);)r--;tvoid 0!==e.error)||this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),eV.create(()=>{let t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}resetToState(e,t){switch(t){case eU.Changed:case eU.Parsed:this.indexManager.removeContent(e.uri);case eU.IndexedContent:e.localSymbols=void 0;case eU.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case eU.Linked:this.indexManager.removeReferences(e.uri);case eU.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case eU.Validated:}e.state>t&&(e.state=t)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=eU.Changed}async buildDocuments(e,t,r){this.prepareBuild(e,t),await this.runCancelable(e,eU.Parsed,r,e=>this.langiumDocumentFactory.update(e,r)),await this.runCancelable(e,eU.IndexedContent,r,e=>this.indexManager.updateContent(e,r)),await this.runCancelable(e,eU.ComputedScopes,r,async e=>{let t=this.serviceRegistry.getServices(e.uri).references.ScopeComputation;e.localSymbols=await t.collectLocalSymbols(e,r)});let n=e.filter(e=>this.shouldLink(e));await this.runCancelable(n,eU.Linked,r,e=>this.serviceRegistry.getServices(e.uri).references.Linker.link(e,r)),await this.runCancelable(n,eU.IndexedReferences,r,e=>this.indexManager.updateReferences(e,r));let i=e.filter(e=>!!this.shouldValidate(e)||(this.markAsCompleted(e),!1));await this.runCancelable(i,eU.Validated,r,async e=>{await this.validate(e,r),this.markAsCompleted(e)})}markAsCompleted(e){let t=this.buildState.get(e.uri.toString());t&&(t.completed=!0)}prepareBuild(e,t){for(let r of e){let e=r.uri.toString(),n=this.buildState.get(e);(!n||n.completed)&&this.buildState.set(e,{completed:!1,options:t,result:n?.result})}}async runCancelable(e,t,r,n){for(let i of e)i.statee.state===t);await this.notifyBuildPhase(i,t,r),this.currentState=t}onBuildPhase(e,t){return this.buildPhaseListeners.add(e,t),eV.create(()=>{this.buildPhaseListeners.delete(e,t)})}onDocumentPhase(e,t){return this.documentPhaseListeners.add(e,t),eV.create(()=>{this.documentPhaseListeners.delete(e,t)})}waitUntil(e,t,r){let n;return(t&&"path"in t?n=t:r=t,r??(r=$m.CancellationToken.None),n)?this.awaitDocumentState(e,n,r):this.awaitBuilderState(e,r)}awaitDocumentState(e,t,r){let n=this.langiumDocuments.getDocument(t);return n?n.state>=e?Promise.resolve(t):r.isCancellationRequested?Promise.reject($v):this.currentState>=e&&e>n.state?Promise.reject(new va.ResponseError(va.LSPErrorCodes.RequestFailed,`Document state of ${t.toString()} is ${eU[n.state]}, requiring ${eU[e]}, but workspace state is already ${eU[this.currentState]}. Returning undefined.`)):new Promise((n,i)=>{let a=this.onDocumentPhase(e,e=>{eq.equals(e.uri,t)&&(a.dispose(),s.dispose(),n(e.uri))}),s=r.onCancellationRequested(()=>{a.dispose(),s.dispose(),i($v)})}):Promise.reject(new va.ResponseError(va.LSPErrorCodes.ServerCancelled,`No document found for URI: ${t.toString()}`))}awaitBuilderState(e,t){return this.currentState>=e?Promise.resolve():t.isCancellationRequested?Promise.reject($v):new Promise((r,n)=>{let i=this.onBuildPhase(e,()=>{i.dispose(),a.dispose(),r()}),a=t.onCancellationRequested(()=>{i.dispose(),a.dispose(),n($v)})})}async notifyDocumentPhase(e,t,r){for(let n of this.documentPhaseListeners.get(t).slice())try{await $b(r),await n(e,r)}catch(e){if(!$R(e))throw e}}async notifyBuildPhase(e,t,r){if(0!==e.length)for(let n of this.buildPhaseListeners.get(t).slice())await $b(r),await n(e,r)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){let r=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,n=this.getBuildOptions(e),i="object"==typeof n.validation?{...n.validation}:{};i.categories=this.findMissingValidationCategories(e,n);let a=await r.validateDocument(e,i,t);e.diagnostics?e.diagnostics.push(...a):e.diagnostics=a;let s=this.buildState.get(e.uri.toString());s&&(s.result??(s.result={}),s.result.validationChecks?s.result.validationChecks=rx(s.result.validationChecks).concat(i.categories).distinct().toArray():s.result.validationChecks=[...i.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},vo=class{static{tA(this,"DefaultIndexManager")}constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new $Y,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){let r=rO(e).uri,n=[];return this.referenceIndex.forEach(e=>{e.forEach(e=>{eq.equals(e.targetUri,r)&&e.targetPath===t&&n.push(e)})}),rx(n)}allElements(e,t){let r=rx(this.symbolIndex.keys());return t&&(r=r.filter(e=>!t||t.has(e))),r.map(t=>this.getFileDescriptions(t,e)).flat()}getFileDescriptions(e,t){return t?this.symbolByTypeIndex.get(e,t,()=>(this.symbolIndex.get(e)??[]).filter(e=>this.astReflection.isSubtype(e.type,t))):this.symbolIndex.get(e)??[]}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){let t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t)}removeReferences(e){let t=e.toString();this.referenceIndex.delete(t)}async updateContent(e,t=$m.CancellationToken.None){let r=this.serviceRegistry.getServices(e.uri),n=await r.references.ScopeComputation.collectExportedSymbols(e,t),i=e.uri.toString();this.symbolIndex.set(i,n),this.symbolByTypeIndex.clear(i)}async updateReferences(e,t=$m.CancellationToken.None){let r=this.serviceRegistry.getServices(e.uri),n=await r.workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),n)}isAffected(e,t){let r=this.referenceIndex.get(e.uri.toString());return!!r&&r.some(e=>!e.local&&t.has(e.targetUri.toString()))}},vl=class{static{tA(this,"DefaultWorkspaceManager")}constructor(e){this.initialBuildOptions={},this._ready=new $A,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=e.workspaceFolders??void 0}initialized(e){return this.mutex.write(e=>this.initializeWorkspace(this.folders??[],e))}async initializeWorkspace(e,t=$m.CancellationToken.None){let r=await this.performStartup(e);await $b(t),await this.documentBuilder.build(r,this.initialBuildOptions,t)}async performStartup(e){let t=[],r=tA(e=>{t.push(e),this.langiumDocuments.hasDocument(e.uri)||this.langiumDocuments.addDocument(e)},"collector");await this.loadAdditionalDocuments(e,r);let n=[];await Promise.all(e.map(e=>this.getRootFolder(e)).map(async e=>this.traverseFolder(e,n)));let i=rx(n).distinct(e=>e.toString()).filter(e=>!this.langiumDocuments.hasDocument(e));return await this.loadWorkspaceDocuments(i,r),this._ready.resolve(),t}async loadWorkspaceDocuments(e,t){await Promise.all(e.map(async e=>{t(await this.langiumDocuments.getOrCreateDocument(e))}))}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return $I.parse(e.uri)}async traverseFolder(e,t){try{let r=await this.fileSystemProvider.readDirectory(e);await Promise.all(r.map(async e=>{this.shouldIncludeEntry(e)&&(e.isDirectory?await this.traverseFolder(e.uri,t):e.isFile&&t.push(e.uri))}))}catch(t){console.error("Failure to read directory content of "+e.toString(!0),t)}}async searchFolder(e){let t=[];return await this.traverseFolder(e,t),t}shouldIncludeEntry(e){let t=eq.basename(e.uri);return!t.startsWith(".")&&(e.isDirectory?"node_modules"!==t&&"out"!==t:!!e.isFile&&this.serviceRegistry.hasServices(e.uri))}},vu=class{static{tA(this,"DefaultLexerErrorMessageProvider")}buildUnexpectedCharactersMessage(e,t,r,n,i){return fS.buildUnexpectedCharactersMessage(e,t,r,n,i)}buildUnableToPopLexerModeMessage(e){return fS.buildUnableToPopLexerModeMessage(e)}},vc={mode:"full"},vp=class{static{tA(this,"DefaultLexer")}constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;let t=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);let r=vm(t)?Object.values(t):t,n="production"===e.LanguageMetaData.mode;this.chevrotainLexer=new fx(r,{positionTracking:"full",skipValidations:n,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,t=vc){let r=this.chevrotainLexer.tokenize(e);return{tokens:r.tokens,errors:r.errors,hidden:r.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(vm(e))return e;let t=vd(e)?Object.values(e.modes).flat():e,r={};return t.forEach(e=>r[e.name]=e),r}};function vf(e){return Array.isArray(e)&&(0===e.length||"name"in e[0])}function vd(e){return e&&"modes"in e&&"defaultMode"in e}function vm(e){return!vf(e)&&!vd(e)}function vh(e,t,r){let n,i;return"string"==typeof e?(i=t,n=r):(i=e.range.start,n=t),i||(i=o.create(0,0)),vS({index:0,tokens:vv({lines:vg(e),position:i,options:vP(n)}),position:i})}function vy(e,t){let r=vP(t),n=vg(e);if(0===n.length)return!1;let i=n[0],a=n[n.length-1],s=r.start,o=r.end;return!!s?.exec(i)&&!!o?.exec(a)}function vg(e){return("string"==typeof e?e:e.text).split(at)}tA(vf,"isTokenTypeArray"),tA(vd,"isIMultiModeLexerDefinition"),tA(vm,"isTokenTypeDictionary"),t_(),tA(vh,"parseJSDoc"),tA(vy,"isJSDoc"),tA(vg,"getLines");var vT=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,v$=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function vv(e){let t=[],r=e.position.line,n=e.position.character;for(let i=0;i=u.length){if(t.length>0){let e=o.create(r,n);t.push({type:"break",content:"",range:l.create(e,e)})}}else{vT.lastIndex=c;let e=vT.exec(u);if(e){let i=e[0],a=e[1],s=o.create(r,n+c),p=o.create(r,n+c+i.length);t.push({type:"tag",content:a,range:l.create(s,p)}),c+=i.length,c=vE(u,c)}if(c0&&"break"===t[t.length-1].type?t.slice(0,-1):t}function vR(e,t,r,n){let i=[];if(0===e.length){let e=o.create(r,n),a=o.create(r,n+t.length);i.push({type:"text",content:t,range:l.create(e,a)})}else{let a=0;for(let s of e){let e=s.index,u=t.substring(a,e);u.length>0&&i.push({type:"text",content:t.substring(a,e),range:l.create(o.create(r,a+n),o.create(r,e+n))});let c=u.length+1,p=s[1];if(i.push({type:"inline-tag",content:p,range:l.create(o.create(r,a+c+n),o.create(r,a+c+p.length+n))}),c+=p.length,4===s.length){c+=s[2].length;let e=s[3];i.push({type:"text",content:e,range:l.create(o.create(r,a+c+n),o.create(r,a+c+e.length+n))})}else i.push({type:"text",content:"",range:l.create(o.create(r,a+c+n),o.create(r,a+c+n))});a=e+s[0].length}let s=t.substring(a);s.length>0&&i.push({type:"text",content:s,range:l.create(o.create(r,a+n),o.create(r,a+n+s.length))})}return i}tA(vv,"tokenize"),tA(vR,"buildInlineTokens");var vb=/\S/,vA=/\s*$/;function vE(e,t){let r=e.substring(t).match(vb);return r?t+r.index:e.length}function vC(e){let t=e.match(vA);if(t&&"number"==typeof t.index)return t.index}function vS(e){let t=o.create(e.position.line,e.position.character);if(0===e.tokens.length)return new vD([],l.create(t,t));let r=[];for(;e.indext.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(let t of this.elements)if(0===e.length)e=t.toString();else{let r=t.toString();e+=vG(e)+r}return e.trim()}toMarkdown(e){let t="";for(let r of this.elements)if(0===t.length)t=r.toMarkdown(e);else{let n=r.toMarkdown(e);t+=vG(t)+n}return t.trim()}},vL=class{static{tA(this,"JSDocTagImpl")}constructor(e,t,r,n){this.name=e,this.content=t,this.inline=r,this.range=n}toString(){let e=`@${this.name}`,t=this.content.toString();return(1===this.content.inlines.length?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e}
    -${t}`),this.inline)?`{${e}}`:e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){let t=this.content.toMarkdown(e);if(this.inline){let r=vM(this.name,t,e??{});if("string"==typeof r)return r}let r="";e?.tag==="italic"||e?.tag===void 0?r="*":e?.tag==="bold"?r="**":e?.tag==="bold-italic"&&(r="***");let n=`${r}@${this.name}${r}`;return(1===this.content.inlines.length?n=`${n} \u2014 ${t}`:this.content.inlines.length>1&&(n=`${n}
    -${t}`),this.inline)?`{${n}}`:n}};function vM(e,t,r){if("linkplain"===e||"linkcode"===e||"link"===e){let n=t.indexOf(" "),i=t;if(n>0){let e=vE(t,n);i=t.substring(e),t=t.substring(0,n)}return("linkcode"===e||"link"===e&&"code"===r.link)&&(i=`\`${i}\``),r.renderLink?.(t,i)??vj(t,i)}}function vj(e,t){try{return $I.parse(e,!0),`[${t}](${e})`}catch{return e}}tA(vM,"renderInlineTag"),tA(vj,"renderLinkDefault");var vF=class{static{tA(this,"JSDocTextImpl")}constructor(e,t){this.inlines=e,this.range=t}toString(){let e="";for(let t=0;tr.range.start.line&&(e+="\n")}return e}toMarkdown(e){let t="";for(let r=0;rn.range.start.line&&(t+="\n")}return t}},vz=class{static{tA(this,"JSDocLineImpl")}constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}};function vG(e){return e.endsWith("\n")?"\n":"\n\n"}tA(vG,"fillNewlines");var vK=class{static{tA(this,"JSDocDocumentationProvider")}constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){let t=this.commentProvider.getComment(e);if(t&&vy(t))return vh(t).toMarkdown({renderLink:tA((t,r)=>this.documentationLinkRenderer(e,t,r),"renderLink"),renderTag:tA(t=>this.documentationTagRenderer(e,t),"renderTag")})}documentationLinkRenderer(e,t,r){let n=this.findNameInLocalSymbols(e,t)??this.findNameInGlobalScope(e,t);if(n&&n.nameSegment){let e=n.nameSegment.range.start.line+1,t=n.nameSegment.range.start.character+1,i=n.documentUri.with({fragment:`L${e},${t}`});return`[${r}](${i.toString()})`}}documentationTagRenderer(e,t){}findNameInLocalSymbols(e,t){let r=rO(e).localSymbols;if(!r)return;let n=e;do{let e=r.getStream(n).find(e=>e.name===t);if(e)return e;n=n.$container}while(n)}findNameInGlobalScope(e,t){return this.indexManager.allElements().find(e=>e.name===t)}},vq=class{static{tA(this,"DefaultCommentProvider")}constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return $Q(e)?e.$comment:iD(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},vU=class{static{tA(this,"DefaultAsyncParser")}constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}},vB=class{static{tA(this,"AbstractThreadedAsyncParser")}constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length{if(this.queue.length>0){let t=this.queue.shift();t&&(e.lock(),t.resolve(e))}}),this.workerPool.push(e)}}async parse(e,t){let r,n=await this.acquireParserWorker(t),i=new $A,a=t.onCancellationRequested(()=>{r=setTimeout(()=>{this.terminateWorker(n)},this.terminationDelay)});return n.parse(e).then(e=>{let t=this.hydrator.hydrate(e);i.resolve(t)}).catch(e=>{i.reject(e)}).finally(()=>{a.dispose(),clearTimeout(r)}),i.promise}terminateWorker(e){e.terminate();let t=this.workerPool.indexOf(e);t>=0&&this.workerPool.splice(t,1)}async acquireParserWorker(e){for(let e of(this.initializeWorkers(),this.workerPool))if(e.ready)return e.lock(),e;let t=new $A;return e.onCancellationRequested(()=>{let e=this.queue.indexOf(t);e>=0&&this.queue.splice(e,1),t.reject($v)}),this.queue.push(t),t.promise}},vW=class{static{tA(this,"ParserWorker")}get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,t,r,n){this.onReadyEmitter=new vn.Emitter,this.deferred=new $A,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=n,t(e=>{this.deferred.resolve(e),this.unlock()}),r(e=>{this.deferred.reject(e),this.unlock()})}terminate(){this.deferred.reject($v),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw Error("Parser worker is busy");return this._parsing=!0,this.deferred=new $A,this.sendMessage(e),this.deferred.promise}},vV=class{static{tA(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new $m.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();let t=$T();return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,r=$m.CancellationToken.None){let n=new $A;return e.push({action:t,deferred:n,cancellationToken:r}),this.performNextOperation(),n.promise}async performNextOperation(){if(!this.done)return;let e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else{if(!(this.readQueue.length>0))return;e.push(...this.readQueue.splice(0,this.readQueue.length))}this.done=!1,await Promise.all(e.map(async({action:e,deferred:t,cancellationToken:r})=>{try{let n=await Promise.resolve().then(()=>e(r));t.resolve(n)}catch(e){$R(e)?t.resolve(void 0):t.reject(e)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},vH=class{static{tA(this,"DefaultHydrator")}constructor(e){this.grammarElementIdMap=new $G,this.tokenTypeIdMap=new $G,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map(e=>({...e,message:e.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){let t=new Map,r=new Map;for(let r of rF(e))t.set(r,{});if(e.$cstNode)for(let t of iS(e.$cstNode))r.set(t,{});return{astNodes:t,cstNodes:r}}dehydrateAstNode(e,t){let r=t.astNodes.get(e);for(let[n,i]of(r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,void 0!==e.$cstNode&&(r.$cstNode=this.dehydrateCstNode(e.$cstNode,t)),Object.entries(e)))if(!n.startsWith("$"))if(Array.isArray(i)){let e=[];for(let a of(r[n]=e,i))rm(a)?e.push(this.dehydrateAstNode(a,t)):rh(a)?e.push(this.dehydrateReference(a,t)):e.push(a)}else rm(i)?r[n]=this.dehydrateAstNode(i,t):rh(i)?r[n]=this.dehydrateReference(i,t):void 0!==i&&(r[n]=i);return r}dehydrateReference(e,t){let r={};return r.$refText=e.$refText,e.$refNode&&(r.$refNode=t.cstNodes.get(e.$refNode)),r}dehydrateCstNode(e,t){let r=t.cstNodes.get(e);return rb(e)?r.fullText=e.fullText:r.grammarSource=this.getGrammarElementId(e.grammarSource),r.hidden=e.hidden,r.astNode=t.astNodes.get(e.astNode),rv(e)?r.content=e.content.map(e=>this.dehydrateCstNode(e,t)):rR(e)&&(r.tokenType=e.tokenType.name,r.offset=e.offset,r.length=e.length,r.startLine=e.range.start.line,r.startColumn=e.range.start.character,r.endLine=e.range.end.line,r.endColumn=e.range.end.character),r}hydrate(e){let t=e.value,r=this.createHydrationContext(t);return"$cstNode"in t&&this.hydrateCstNode(t.$cstNode,r),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(t,r)}}createHydrationContext(e){let t,r=new Map,n=new Map;for(let t of rF(e))r.set(t,{});if(e.$cstNode)for(let r of iS(e.$cstNode)){let e;"fullText"in r?t=e=new Tq(r.fullText):"content"in r?e=new TG:"tokenType"in r&&(e=this.hydrateCstLeafNode(r)),e&&(n.set(r,e),e.root=t)}return{astNodes:r,cstNodes:n}}hydrateAstNode(e,t){let r=t.astNodes.get(e);for(let[n,i]of(r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,e.$cstNode&&(r.$cstNode=t.cstNodes.get(e.$cstNode)),Object.entries(e)))if(!n.startsWith("$"))if(Array.isArray(i)){let e=[];for(let a of(r[n]=e,i))rm(a)?e.push(this.setParent(this.hydrateAstNode(a,t),r)):rh(a)?e.push(this.hydrateReference(a,r,n,t)):e.push(a)}else rm(i)?r[n]=this.setParent(this.hydrateAstNode(i,t),r):rh(i)?r[n]=this.hydrateReference(i,r,n,t):void 0!==i&&(r[n]=i);return r}setParent(e,t){return e.$container=t,e}hydrateReference(e,t,r,n){return this.linker.buildReference(t,r,n.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,t,r=0){let n=t.cstNodes.get(e);if("number"==typeof e.grammarSource&&(n.grammarSource=this.getGrammarElement(e.grammarSource)),n.astNode=t.astNodes.get(e.astNode),rv(n))for(let i of e.content){let e=this.hydrateCstNode(i,t,r++);n.content.push(e)}return n}hydrateCstLeafNode(e){let t=this.getTokenType(e.tokenType),r=e.offset,n=e.length,i=e.startLine,a=e.startColumn,s=e.endLine;return new Tz(r,n,{start:{line:i,character:a},end:{line:s,character:e.endColumn}},t,e.hidden)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(e)return 0===this.grammarElementIdMap.size&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){return 0===this.grammarElementIdMap.size&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(let t of rF(this.grammar))rH(t)&&this.grammarElementIdMap.set(t,e++)}};function vY(e){return{documentation:{CommentProvider:tA(e=>new vq(e),"CommentProvider"),DocumentationProvider:tA(e=>new vK(e),"DocumentationProvider")},parser:{AsyncParser:tA(e=>new vU(e),"AsyncParser"),GrammarConfig:tA(e=>aX(e),"GrammarConfig"),LangiumParser:tA(e=>$c(e),"LangiumParser"),CompletionParser:tA(e=>$u(e),"CompletionParser"),ValueConverter:tA(()=>new $d,"ValueConverter"),TokenBuilder:tA(()=>new $f,"TokenBuilder"),Lexer:tA(e=>new vp(e),"Lexer"),ParserErrorMessageProvider:tA(()=>new TX,"ParserErrorMessageProvider"),LexerErrorMessageProvider:tA(()=>new vu,"LexerErrorMessageProvider")},workspace:{AstNodeLocator:tA(()=>new vr,"AstNodeLocator"),AstNodeDescriptionProvider:tA(e=>new ve(e),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:tA(e=>new vt(e),"ReferenceDescriptionProvider")},references:{Linker:tA(e=>new $L(e),"Linker"),NameProvider:tA(()=>new $j,"NameProvider"),ScopeProvider:tA(e=>new $J(e),"ScopeProvider"),ScopeComputation:tA(e=>new $K(e),"ScopeComputation"),References:tA(e=>new $F(e),"References")},serializer:{Hydrator:tA(e=>new vH(e),"Hydrator"),JsonSerializer:tA(e=>new $1(e),"JsonSerializer")},validation:{DocumentValidator:tA(e=>new $5(e),"DocumentValidator"),ValidationRegistry:tA(e=>new $9(e),"ValidationRegistry")},shared:tA(()=>e.shared,"shared")}}function vX(e){return{ServiceRegistry:tA(e=>new $2(e),"ServiceRegistry"),workspace:{LangiumDocuments:tA(e=>new $O(e),"LangiumDocuments"),LangiumDocumentFactory:tA(e=>new $P(e),"LangiumDocumentFactory"),DocumentBuilder:tA(e=>new vs(e),"DocumentBuilder"),IndexManager:tA(e=>new vo(e),"IndexManager"),WorkspaceManager:tA(e=>new vl(e),"WorkspaceManager"),FileSystemProvider:tA(t=>e.fileSystemProvider(t),"FileSystemProvider"),WorkspaceLock:tA(()=>new vV,"WorkspaceLock"),ConfigurationProvider:tA(e=>new vi(e),"ConfigurationProvider")},profilers:{}}}function vZ(e,t,r,n,i,a,s,o,l){return v0([e,t,r,n,i,a,s,o,l].reduce(v3,{}))}tA(vY,"createDefaultCoreModule"),tA(vX,"createDefaultSharedCoreModule"),(eH||(eH={})).merge=(e,t)=>v3(v3({},e),t),tA(vZ,"inject");var vJ=Symbol("isProxy");function vQ(e){if(e&&e[vJ])for(let t of Object.values(e))vQ(t);return e}function v0(e,t){let r=new Proxy({},{deleteProperty:tA(()=>!1,"deleteProperty"),set:tA(()=>{throw Error("Cannot set property on injected service container")},"set"),get:tA((n,i)=>i===vJ||v2(n,i,e,t||r),"get"),getOwnPropertyDescriptor:tA((n,i)=>(v2(n,i,e,t||r),Object.getOwnPropertyDescriptor(n,i)),"getOwnPropertyDescriptor"),has:tA((t,r)=>r in e,"has"),ownKeys:tA(()=>[...Object.getOwnPropertyNames(e)],"ownKeys")});return r}tA(vQ,"eagerLoad"),tA(v0,"_inject");var v1=Symbol();function v2(e,t,r,n){if(t in e){if(e[t]instanceof Error)throw Error("Construction failure. Please make sure that your dependencies are constructable. Cause: "+e[t]);if(e[t]===v1)throw Error('Cycle detected. Please make "'+String(t)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return e[t]}if(t in r){let i=r[t];e[t]=v1;try{e[t]="function"==typeof i?i(n):v0(i,n)}catch(r){throw e[t]=r instanceof Error?r:void 0,r}return e[t]}}function v3(e,t){if(t){for(let[r,n]of Object.entries(t))if(null!=n)if("object"==typeof n){let t=e[r];"object"==typeof t&&null!==t?e[r]=v3(t,n):e[r]=v3({},n)}else e[r]=n}return e}tA(v2,"_resolve"),tA(v3,"_merge");var v9={indentTokenName:"INDENT",dedentTokenName:"DEDENT",whitespaceTokenName:"WS",ignoreIndentationDelimiters:[]};!function(e){e.REGULAR="indentation-sensitive",e.IGNORE_INDENTATION="ignore-indentation"}(eY||(eY={}));var v4=class extends $f{static{tA(this,"IndentationAwareTokenBuilder")}constructor(e=v9){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options={...v9,...e},this.indentTokenType=fF({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=fF({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(e,t){let r,n,i,a=super.buildTokens(e,t);if(!vf(a))throw Error("Invalid tokens built by default builder");let{indentTokenName:s,dedentTokenName:o,whitespaceTokenName:l,ignoreIndentationDelimiters:u}=this.options,c=[];for(let e of a){for(let[t,r]of u)e.name===t?e.PUSH_MODE=eY.IGNORE_INDENTATION:e.name===r&&(e.POP_MODE=!0);e.name===o?r=e:e.name===s?n=e:e.name===l?i=e:c.push(e)}if(!r||!n||!i)throw Error("Some indentation/whitespace tokens not found!");return u.length>0?{modes:{[eY.REGULAR]:[r,n,...c,i],[eY.IGNORE_INDENTATION]:[...c,i]},defaultMode:eY.REGULAR}:[r,n,i,...c]}flushLexingReport(e){return{...super.flushLexingReport(e),remainingDedents:this.flushRemainingDedents(e)}}isStartOfLine(e,t){return 0===t||"\r\n".includes(e[t-1])}matchWhitespace(e,t,r,n){this.whitespaceRegExp.lastIndex=t;let i=this.whitespaceRegExp.exec(e);return{currIndentLevel:i?.[0].length??0,prevIndentLevel:this.indentationStack.at(-1),match:i}}createIndentationTokenInstance(e,t,r,n){let i=this.getLineNumber(t,n);return fK(e,r,n,n+r.length,i,i,1,r.length)}getLineNumber(e,t){return e.substring(0,t).split(/\r\n|\r|\n/).length}indentMatcher(e,t,r,n){if(!this.isStartOfLine(e,t))return null;let{currIndentLevel:i,prevIndentLevel:a,match:s}=this.matchWhitespace(e,t,r,n);return i<=a?null:(this.indentationStack.push(i),s)}dedentMatcher(e,t,r,n){if(!this.isStartOfLine(e,t))return null;let{currIndentLevel:i,prevIndentLevel:a,match:s}=this.matchWhitespace(e,t,r,n);if(i>=a)return null;let o=this.indentationStack.lastIndexOf(i);if(-1===o)return this.diagnostics.push({severity:"error",message:`Invalid dedent level ${i} at offset: ${t}. Current indentation stack: ${this.indentationStack}`,offset:t,length:s?.[0]?.length??0,line:this.getLineNumber(e,t),column:1}),null;let l=this.indentationStack.length-o-1,u=e.substring(0,t).match(/[\r\n]+$/)?.[0].length??1;for(let n=0;n1;)t.push(this.createIndentationTokenInstance(this.dedentTokenType,e,"",e.length)),this.indentationStack.pop();return this.indentationStack=[0],t}},v5=class extends vp{static{tA(this,"IndentationAwareLexer")}constructor(e){if(super(e),e.parser.TokenBuilder instanceof v4)this.indentationTokenBuilder=e.parser.TokenBuilder;else throw Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder")}tokenize(e,t=vc){let r=super.tokenize(e),n=r.report;t?.mode==="full"&&r.tokens.push(...n.remainingDedents),n.remainingDedents=[];let{indentTokenType:i,dedentTokenType:a}=this.indentationTokenBuilder,s=i.tokenTypeIdx,o=a.tokenTypeIdx,l=[],u=r.tokens.length-1;for(let e=0;e=0&&l.push(r.tokens[u]),r.tokens=l,r}},v8={};tC(v8,{AstUtils:()=>rI,BiMap:()=>$G,Cancellation:()=>$m,ContextCache:()=>$Y,CstUtils:()=>rd,DONE_RESULT:()=>rk,Deferred:()=>$A,Disposable:()=>eV,DisposableCache:()=>$V,DocumentCache:()=>$X,EMPTY_STREAM:()=>rS,ErrorWithLocation:()=>iV,GrammarUtils:()=>iW,MultiMap:()=>$z,OperationCancelled:()=>$v,Reduction:()=>eO,RegExpUtils:()=>iX,SimpleCache:()=>$H,StreamImpl:()=>rA,TreeStreamImpl:()=>rN,URI:()=>$I,UriTrie:()=>$w,UriUtils:()=>eq,WorkspaceCache:()=>$Z,assertCondition:()=>iY,assertUnreachable:()=>iH,delayNextTick:()=>$h,interruptAndCheck:()=>$b,isOperationCancelled:()=>$R,loadGrammarFromJson:()=>Rn,setInterruptionPeriod:()=>$$,startCancelableOperation:()=>$T,stream:()=>rx}),tk(v8,vn);var v6=class{static{tA(this,"EmptyFileSystemProvider")}stat(e){throw Error("No file system is available.")}statSync(e){throw Error("No file system is available.")}async exists(){return!1}existsSync(){return!1}readBinary(){throw Error("No file system is available.")}readBinarySync(){throw Error("No file system is available.")}readFile(){throw Error("No file system is available.")}readFileSync(){throw Error("No file system is available.")}async readDirectory(){return[]}readDirectorySync(){return[]}},v7={fileSystemProvider:tA(()=>new v6,"fileSystemProvider")},Re={Grammar:tA(()=>void 0,"Grammar"),LanguageMetaData:tA(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},Rt={AstReflection:tA(()=>new iA,"AstReflection")};function Rr(){let e=vZ(vX(v7),Rt),t=vZ(vY({shared:e}),Re);return e.ServiceRegistry.register(t),t}function Rn(e){let t=Rr(),r=t.serializer.JsonSerializer.deserialize(e);return t.shared.workspace.LangiumDocumentFactory.fromModel(r,$I.parse(`memory:/${r.name??"grammar"}.langium`)),r}tA(Rr,"createMinimalGrammarServices"),tA(Rn,"loadGrammarFromJson"),tk(rf,v8);var Ri=class{static{tA(this,"DefaultLangiumProfiler")}constructor(e){this.activeCategories=new Set,this.allCategories=new Set(["validating","parsing","linking"]),this.activeCategories=e??new Set(this.allCategories),this.records=new $z}isActive(e){return this.activeCategories.has(e)}start(...e){e?e.forEach(e=>this.activeCategories.add(e)):this.activeCategories=new Set(this.allCategories)}stop(...e){e?e.forEach(e=>this.activeCategories.delete(e)):this.activeCategories.clear()}createTask(e,t){if(!this.isActive(e))throw Error(`Category "${e}" is not active.`);return console.log(`Creating profiling task for '${e}.${t}'.`),new Ra(t=>this.records.add(e,this.dumpRecord(e,t)),t)}dumpRecord(e,t){console.info(`Task ${e}.${t.identifier} executed in ${t.duration.toFixed(2)}ms and ended at ${t.date.toISOString()}`);let r=[];for(let e of t.entries.keys()){let n=t.entries.get(e),i=n.reduce((e,t)=>e+t);r.push({name:`${t.identifier}.${e}`,count:n.length,duration:i})}let n=t.duration-r.map(e=>e.duration).reduce((e,t)=>e+t,0);function i(e){return Math.round(100*e)/100}return r.push({name:t.identifier,count:1,duration:n}),r.sort((e,t)=>t.duration-e.duration),tA(i,"Round"),console.table(r.map(e=>({Element:e.name,Count:e.count,"Self %":i(100*e.duration/t.duration),"Time (ms)":i(e.duration)}))),t}getRecords(...e){return 0===e.length?this.records.values():this.records.entries().filter(t=>e.some(e=>e===t[0])).flatMap(e=>e[1])}},Ra=class{static{tA(this,"ProfilingTask")}constructor(e,t){this.stack=[],this.entries=new $z,this.addRecord=e,this.identifier=t}start(){if(void 0!==this.startTime)throw Error(`Task "${this.identifier}" is already started.`);this.startTime=performance.now()}stop(){if(void 0===this.startTime)throw Error(`Task "${this.identifier}" was not started.`);if(0!==this.stack.length)throw Error(`Task "${this.identifier}" cannot be stopped before sub-task(s): ${this.stack.map(e=>e.id).join(", ")}.`);let e={identifier:this.identifier,date:new Date,duration:performance.now()-this.startTime,entries:this.entries};this.addRecord(e),this.startTime=void 0,this.entries.clear()}startSubTask(e){this.stack.push({id:e,start:performance.now(),content:0})}stopSubTask(e){let t=this.stack.pop();if(!t)throw Error(`Task "${this.identifier}.${e}" was not started.`);if(t.id!==e)throw Error(`Sub-Task "${t.id}" is not already stopped.`);let r=performance.now()-t.start;void 0!==this.stack.at(-1)&&(this.stack[this.stack.length-1].content+=r);let n=r-t.content;this.entries.add(e,n)}};(eX||(eX={})).Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[^\[\]\r\n]+)\]/},(eZ||(eZ={})).Terminals={DOMAIN_NAME:/complex|complicated|clear|chaotic|confusion/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},(eJ||(eJ={})).Terminals={EM_ID:/[_a-zA-Z][\w_]*/,EM_FID:/\d{1,3}/,EM_DATA_INLINE:/\{(.*)\}|"(.*)"|'(.*)'/,EM_DATA_BLOCK:/\{[\t ]*\r?\n(?:[\S\s]*?\r?\n)?\}(?:\r?\n|(?!\S))/,EM_ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EM_ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,EM_TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,EM_WS:/\s+/,EM_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EM_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EM_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EM_ML_COMMENT:/\/\*[\s\S]*?\*\//,EM_SL_COMMENT:/\/\/[^\n\r]*/},(eQ||(eQ={})).Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/},(e0||(e0={})).Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},(e1||(e1={})).Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},(e2||(e2={})).Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},(e3||(e3={})).Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},(e9||(e9={})).Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ABNF_RULENAME:/[A-Za-z][A-Za-z0-9-]*/,ABNF_STRING:/"[^"]*"/,ABNF_NUMVAL:/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\.[0-9A-Fa-f]+)*/,ABNF_REPEAT:/[0-9]*\*[0-9]*/,ABNF_EXACT_REPEAT:/[0-9]+/,ABNF_WHITESPACE:/[\t \r\n]+/,ABNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,ABNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,ABNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ABNF_COMMENT:/;[^\n\r]*/},(e4||(e4={})).Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EBNF_ID:/[A-Z_a-z][\w-]*/,EBNF_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,EBNF_SPECIAL_SEQUENCE:/\?(?=[^?;]*[^?\s;][^?;]*\?)[^?;]*\?/,EBNF_WHITESPACE:/[\t \r\n]+/,EBNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EBNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EBNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EBNF_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//,EBNF_ISO_COMMENT:/\(\*[\s\S]*?\*\)/},(e5||(e5={})).Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,RR_ID:/[A-Z_a-z][\w-]*/,RR_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,RR_WHITESPACE:/[\t \r\n]+/,RR_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,RR_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,RR_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,RR_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//},(e8||(e8={})).Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,PEG_ID:/[A-Z_a-z][\w-]*/,PEG_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,PEG_WHITESPACE:/[\t \r\n]+/,PEG_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,PEG_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,PEG_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,PEG_LINE_COMMENT:/#[^\n\r]*/},(e6||(e6={})).Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/},(e7||(e7={})).Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,CLASS_ANNOTATION:/[ \t]+:::[ \t]*[A-Za-z_][\w-]*/,ICON_ANNOTATION:/[ \t]+icon\([\w-]*(?::[\w-]+)?\)/,DESC_ANNOTATION:/[ \t]+##[^\n\r]*/,INDENTATION:/[ \t]{1,}/,QUOTED_NAME:/"[^"]*"|'[^']*'/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,BARE_NAME:/(?!:::|icon\(|##)[^ \t\n\r"'](?:(?![ \t]+:::[ \t]*[A-Za-z_]|[ \t]+icon\(|[ \t]+##)[^\n\r])*/},(te||(te={})).Terminals={WARDLEY_NUMBER:/[0-9]+\.[0-9]+/,ARROW:/->/,LINK_PORT:/\+<>|\+>|\+|-\.->|>|\+'[^']*'<>|\+'[^']*'<|\+'[^']*'>/,LINK_LABEL:/;[^\n\r]+/,STRATEGY:/build|buy|outsource|market/,KW_WARDLEY:/wardley-beta/,KW_SIZE:/size/,KW_EVOLUTION:/evolution/,KW_ANCHOR:/anchor/,KW_COMPONENT:/component/,KW_LABEL:/label/,KW_INERTIA:/inertia/,KW_EVOLVE:/evolve/,KW_PIPELINE:/pipeline/,KW_NOTE:/note/,KW_ANNOTATIONS:/annotations/,KW_ANNOTATION:/annotation/,KW_ACCELERATOR:/accelerator/,KW_DEACCELERATOR:/deaccelerator/,NAME_WITH_SPACES:/(?!title\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/,WS:/[ \t]+/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/},eX.Terminals,eZ.Terminals,eJ.Terminals,eQ.Terminals,e0.Terminals,e1.Terminals,e2.Terminals,e3.Terminals,e9.Terminals,e4.Terminals,e5.Terminals,e8.Terminals,e7.Terminals,e6.Terminals,te.Terminals;var Rs={$type:"AbnfAlternation",alternatives:"alternatives"},Ro={$type:"AbnfConcatenation",elements:"elements"},Rl={$type:"AbnfElement",primary:"primary",repeat:"repeat"},Ru={$type:"AbnfGroup",element:"element"},Rc={$type:"AbnfNumVal",value:"value"},Rp={$type:"AbnfOptionalGroup",element:"element"},Rf={$type:"AbnfPrimary"},Rd={$type:"AbnfRule",definition:"definition",name:"name"},Rm={$type:"AbnfRuleName",name:"name"},Rh={$type:"AbnfStringLiteral",value:"value"},Ry={$type:"Accelerator",name:"name",x:"x",y:"y"},Rg={$type:"Alignment",direction:"direction",members:"members"},RT={$type:"Anchor",evolution:"evolution",name:"name",visibility:"visibility"},R$={$type:"Annotation",number:"number",text:"text",x:"x",y:"y"},Rv={$type:"Annotations",x:"x",y:"y"},RR={$type:"Architecture",accDescr:"accDescr",accTitle:"accTitle",alignments:"alignments",edges:"edges",groups:"groups",junctions:"junctions",services:"services",title:"title"};tA(function(e){return b3.isInstance(e,RR.$type)},"isArchitecture");var Rb={$type:"Axis",label:"label",name:"name"},RA={$type:"Branch",name:"name",order:"order"};tA(function(e){return b3.isInstance(e,RA.$type)},"isBranch");var RE={$type:"Checkout",branch:"branch"},RC={$type:"CherryPicking",id:"id",parent:"parent",tags:"tags"},RS={$type:"ClassDefStatement",className:"className",styleText:"styleText"},Rk={$type:"Commit",id:"id",message:"message",tags:"tags",type:"type"};tA(function(e){return b3.isInstance(e,Rk.$type)},"isCommit");var Rx={$type:"Common",accDescr:"accDescr",accTitle:"accTitle",title:"title"},RN={$type:"Component",decorator:"decorator",evolution:"evolution",inertia:"inertia",label:"label",name:"name",visibility:"visibility"},RI={$type:"Curve",entries:"entries",label:"label",name:"name"},R_={$type:"Cynefin",accDescr:"accDescr",accTitle:"accTitle",domains:"domains",title:"title",transitions:"transitions"};tA(function(e){return b3.isInstance(e,R_.$type)},"isCynefin");var Rw={$type:"Deaccelerator",name:"name",x:"x",y:"y"},RP={$type:"Decorator",strategy:"strategy"},RO={$type:"Direction",accDescr:"accDescr",accTitle:"accTitle",dir:"dir",statements:"statements",title:"title"},RD={$type:"DomainBlock",domain:"domain",items:"items"};tA(function(e){return b3.isInstance(e,RD.$type)},"isDomainBlock");var RL={$type:"DomainItem",label:"label"};tA(function(e){return b3.isInstance(e,RL.$type)},"isDomainItem");var RM={$type:"EbnfChoice",alternatives:"alternatives"},Rj={$type:"EbnfExceptionPostfix",except:"except"},RF={$type:"EbnfGroup",element:"element"},Rz={$type:"EbnfNonTerminal",name:"name"},RG={$type:"EbnfOneOrMorePostfix",operator:"operator"},RK={$type:"EbnfOptional",element:"element"},Rq={$type:"EbnfOptionalPostfix",operator:"operator"},RU={$type:"EbnfPostfix"},RB={$type:"EbnfPrimary"},RW={$type:"EbnfRepetition",element:"element"},RV={$type:"EbnfRule",definition:"definition",name:"name"},RH={$type:"EbnfSequence",elements:"elements"},RY={$type:"EbnfSpecial",text:"text"},RX={$type:"EbnfTerm",base:"base",postfixes:"postfixes"},RZ={$type:"EbnfTerminal",value:"value"},RJ={$type:"EbnfZeroOrMorePostfix",operator:"operator"},RQ={$type:"Edge",lhsDir:"lhsDir",lhsGroup:"lhsGroup",lhsId:"lhsId",lhsInto:"lhsInto",rhsDir:"rhsDir",rhsGroup:"rhsGroup",rhsId:"rhsId",rhsInto:"rhsInto",title:"title"},R0={$type:"EmDataEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",name:"name"},R1={$type:"EmFrame"},R2={$type:"EmGwt",givenStatements:"givenStatements",sourceFrame:"sourceFrame",thenStatements:"thenStatements",whenStatements:"whenStatements"},R3={$type:"EmGwtStatement",entityIdentifier:"entityIdentifier"},R9={$type:"EmModelEntity",name:"name"};tA(function(e){return"rmo"===e||"readmodel"===e||"ui"===e||"cmd"===e||"command"===e||"evt"===e||"event"===e||"pcr"===e||"processor"===e},"isEmModelEntityType");var R4={$type:"EmNoteEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",sourceFrame:"sourceFrame"},R5={$type:"EmResetFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"};function R8(e){return b3.isInstance(e,R5.$type)}tA(R8,"isEmResetFrame");var R6={$type:"EmTimeFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"},R7={$type:"Entry",axis:"axis",value:"value"},be={$type:"EventModel",accDescr:"accDescr",accTitle:"accTitle",dataEntities:"dataEntities",frames:"frames",gwtEntities:"gwtEntities",modelEntities:"modelEntities",noteEntities:"noteEntities",title:"title"},bt={$type:"Evolution",stages:"stages"},br={$type:"EvolutionStage",boundary:"boundary",name:"name",secondName:"secondName"},bn={$type:"Evolve",component:"component",target:"target"},bi={$type:"GitGraph",accDescr:"accDescr",accTitle:"accTitle",statements:"statements",title:"title"};tA(function(e){return b3.isInstance(e,bi.$type)},"isGitGraph");var ba={$type:"Group",icon:"icon",id:"id",in:"in",title:"title"},bs={$type:"Info",accDescr:"accDescr",accTitle:"accTitle",title:"title"};tA(function(e){return b3.isInstance(e,bs.$type)},"isInfo");var bo={$type:"Item",classSelector:"classSelector",name:"name"},bl={$type:"Junction",id:"id",in:"in"},bu={$type:"Label",negX:"negX",negY:"negY",offsetX:"offsetX",offsetY:"offsetY"},bc={$type:"Leaf",classSelector:"classSelector",name:"name",value:"value"},bp={$type:"Link",arrow:"arrow",from:"from",fromPort:"fromPort",linkLabel:"linkLabel",to:"to",toPort:"toPort"},bf={$type:"Merge",branch:"branch",id:"id",tags:"tags",type:"type"};tA(function(e){return b3.isInstance(e,bf.$type)},"isMerge");var bd={$type:"Note",evolution:"evolution",text:"text",visibility:"visibility"},bm={$type:"Option",name:"name",value:"value"},bh={$type:"Packet",accDescr:"accDescr",accTitle:"accTitle",blocks:"blocks",title:"title"};tA(function(e){return b3.isInstance(e,bh.$type)},"isPacket");var by={$type:"PacketBlock",bits:"bits",end:"end",label:"label",start:"start"};tA(function(e){return b3.isInstance(e,by.$type)},"isPacketBlock");var bg={$type:"PegAny",dot:"dot"},bT={$type:"PegGroup",element:"element"},b$={$type:"PegIdentifier",name:"name"},bv={$type:"PegLiteral",value:"value"},bR={$type:"PegOrderedChoice",alternatives:"alternatives"},bb={$type:"PegPrefix",operator:"operator",suffix:"suffix"},bA={$type:"PegPrimary"},bE={$type:"PegRule",definition:"definition",name:"name"},bC={$type:"PegSequence",elements:"elements"},bS={$type:"PegSuffix",operator:"operator",primary:"primary"},bk={$type:"Pie",accDescr:"accDescr",accTitle:"accTitle",sections:"sections",showData:"showData",title:"title"};tA(function(e){return b3.isInstance(e,bk.$type)},"isPie");var bx={$type:"PieSection",label:"label",value:"value"};tA(function(e){return b3.isInstance(e,bx.$type)},"isPieSection");var bN={$type:"Pipeline",components:"components",parent:"parent"},bI={$type:"PipelineComponent",evolution:"evolution",label:"label",name:"name"},b_={$type:"Radar",accDescr:"accDescr",accTitle:"accTitle",axes:"axes",curves:"curves",options:"options",title:"title"},bw={$type:"Railroad",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};tA(function(e){return b3.isInstance(e,bw.$type)},"isRailroad");var bP={$type:"RailroadAbnf",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};tA(function(e){return b3.isInstance(e,bP.$type)},"isRailroadAbnf");var bO={$type:"RailroadChoiceExpr",alternatives:"alternatives"},bD={$type:"RailroadEbnf",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};tA(function(e){return b3.isInstance(e,bD.$type)},"isRailroadEbnf");var bL={$type:"RailroadExpression"},bM={$type:"RailroadNonTerminalExpr",name:"name"},bj={$type:"RailroadOneOrMoreExpr",element:"element"},bF={$type:"RailroadOptionalExpr",element:"element"},bz={$type:"RailroadPeg",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};tA(function(e){return b3.isInstance(e,bz.$type)},"isRailroadPeg");var bG={$type:"RailroadRule",definition:"definition",name:"name"},bK={$type:"RailroadSequenceExpr",elements:"elements"},bq={$type:"RailroadSpecialExpr",text:"text"},bU={$type:"RailroadTerminalExpr",value:"value"},bB={$type:"RailroadZeroOrMoreExpr",element:"element"},bW={$type:"Section",classSelector:"classSelector",name:"name"},bV={$type:"Service",icon:"icon",iconText:"iconText",id:"id",in:"in",title:"title"},bH={$type:"Size",height:"height",width:"width"},bY={$type:"Statement"},bX={$type:"Transition",from:"from",label:"label",to:"to"};tA(function(e){return b3.isInstance(e,bX.$type)},"isTransition");var bZ={$type:"Treemap",accDescr:"accDescr",accTitle:"accTitle",title:"title",TreemapRows:"TreemapRows"};tA(function(e){return b3.isInstance(e,bZ.$type)},"isTreemap");var bJ={$type:"TreemapRow",indent:"indent",item:"item"},bQ={$type:"TreeNode",classAnnotation:"classAnnotation",descAnnotation:"descAnnotation",iconAnnotation:"iconAnnotation",indent:"indent",name:"name"},b0={$type:"TreeView",accDescr:"accDescr",accTitle:"accTitle",nodes:"nodes",title:"title"},b1={$type:"Wardley",accDescr:"accDescr",accelerators:"accelerators",accTitle:"accTitle",anchors:"anchors",annotation:"annotation",annotations:"annotations",components:"components",deaccelerators:"deaccelerators",evolution:"evolution",evolves:"evolves",links:"links",notes:"notes",pipelines:"pipelines",size:"size",title:"title"};tA(function(e){return b3.isInstance(e,b1.$type)},"isWardley");var b2=class extends r${constructor(){super(...arguments),this.types={AbnfAlternation:{name:Rs.$type,properties:{alternatives:{name:Rs.alternatives,defaultValue:[]}},superTypes:[]},AbnfConcatenation:{name:Ro.$type,properties:{elements:{name:Ro.elements,defaultValue:[]}},superTypes:[]},AbnfElement:{name:Rl.$type,properties:{primary:{name:Rl.primary},repeat:{name:Rl.repeat}},superTypes:[]},AbnfGroup:{name:Ru.$type,properties:{element:{name:Ru.element}},superTypes:[Rf.$type]},AbnfNumVal:{name:Rc.$type,properties:{value:{name:Rc.value}},superTypes:[Rf.$type]},AbnfOptionalGroup:{name:Rp.$type,properties:{element:{name:Rp.element}},superTypes:[Rf.$type]},AbnfPrimary:{name:Rf.$type,properties:{},superTypes:[]},AbnfRule:{name:Rd.$type,properties:{definition:{name:Rd.definition},name:{name:Rd.name}},superTypes:[]},AbnfRuleName:{name:Rm.$type,properties:{name:{name:Rm.name}},superTypes:[Rf.$type]},AbnfStringLiteral:{name:Rh.$type,properties:{value:{name:Rh.value}},superTypes:[Rf.$type]},Accelerator:{name:Ry.$type,properties:{name:{name:Ry.name},x:{name:Ry.x},y:{name:Ry.y}},superTypes:[]},Alignment:{name:Rg.$type,properties:{direction:{name:Rg.direction},members:{name:Rg.members,defaultValue:[]}},superTypes:[]},Anchor:{name:RT.$type,properties:{evolution:{name:RT.evolution},name:{name:RT.name},visibility:{name:RT.visibility}},superTypes:[]},Annotation:{name:R$.$type,properties:{number:{name:R$.number},text:{name:R$.text},x:{name:R$.x},y:{name:R$.y}},superTypes:[]},Annotations:{name:Rv.$type,properties:{x:{name:Rv.x},y:{name:Rv.y}},superTypes:[]},Architecture:{name:RR.$type,properties:{accDescr:{name:RR.accDescr},accTitle:{name:RR.accTitle},alignments:{name:RR.alignments,defaultValue:[]},edges:{name:RR.edges,defaultValue:[]},groups:{name:RR.groups,defaultValue:[]},junctions:{name:RR.junctions,defaultValue:[]},services:{name:RR.services,defaultValue:[]},title:{name:RR.title}},superTypes:[]},Axis:{name:Rb.$type,properties:{label:{name:Rb.label},name:{name:Rb.name}},superTypes:[]},Branch:{name:RA.$type,properties:{name:{name:RA.name},order:{name:RA.order}},superTypes:[bY.$type]},Checkout:{name:RE.$type,properties:{branch:{name:RE.branch}},superTypes:[bY.$type]},CherryPicking:{name:RC.$type,properties:{id:{name:RC.id},parent:{name:RC.parent},tags:{name:RC.tags,defaultValue:[]}},superTypes:[bY.$type]},ClassDefStatement:{name:RS.$type,properties:{className:{name:RS.className},styleText:{name:RS.styleText}},superTypes:[]},Commit:{name:Rk.$type,properties:{id:{name:Rk.id},message:{name:Rk.message},tags:{name:Rk.tags,defaultValue:[]},type:{name:Rk.type}},superTypes:[bY.$type]},Common:{name:Rx.$type,properties:{accDescr:{name:Rx.accDescr},accTitle:{name:Rx.accTitle},title:{name:Rx.title}},superTypes:[]},Component:{name:RN.$type,properties:{decorator:{name:RN.decorator},evolution:{name:RN.evolution},inertia:{name:RN.inertia,defaultValue:!1},label:{name:RN.label},name:{name:RN.name},visibility:{name:RN.visibility}},superTypes:[]},Curve:{name:RI.$type,properties:{entries:{name:RI.entries,defaultValue:[]},label:{name:RI.label},name:{name:RI.name}},superTypes:[]},Cynefin:{name:R_.$type,properties:{accDescr:{name:R_.accDescr},accTitle:{name:R_.accTitle},domains:{name:R_.domains,defaultValue:[]},title:{name:R_.title},transitions:{name:R_.transitions,defaultValue:[]}},superTypes:[]},Deaccelerator:{name:Rw.$type,properties:{name:{name:Rw.name},x:{name:Rw.x},y:{name:Rw.y}},superTypes:[]},Decorator:{name:RP.$type,properties:{strategy:{name:RP.strategy}},superTypes:[]},Direction:{name:RO.$type,properties:{accDescr:{name:RO.accDescr},accTitle:{name:RO.accTitle},dir:{name:RO.dir},statements:{name:RO.statements,defaultValue:[]},title:{name:RO.title}},superTypes:[bi.$type]},DomainBlock:{name:RD.$type,properties:{domain:{name:RD.domain},items:{name:RD.items,defaultValue:[]}},superTypes:[]},DomainItem:{name:RL.$type,properties:{label:{name:RL.label}},superTypes:[]},EbnfChoice:{name:RM.$type,properties:{alternatives:{name:RM.alternatives,defaultValue:[]}},superTypes:[]},EbnfExceptionPostfix:{name:Rj.$type,properties:{except:{name:Rj.except}},superTypes:[RU.$type]},EbnfGroup:{name:RF.$type,properties:{element:{name:RF.element}},superTypes:[RB.$type]},EbnfNonTerminal:{name:Rz.$type,properties:{name:{name:Rz.name}},superTypes:[RB.$type]},EbnfOneOrMorePostfix:{name:RG.$type,properties:{operator:{name:RG.operator}},superTypes:[RU.$type]},EbnfOptional:{name:RK.$type,properties:{element:{name:RK.element}},superTypes:[RB.$type]},EbnfOptionalPostfix:{name:Rq.$type,properties:{operator:{name:Rq.operator}},superTypes:[RU.$type]},EbnfPostfix:{name:RU.$type,properties:{},superTypes:[]},EbnfPrimary:{name:RB.$type,properties:{},superTypes:[]},EbnfRepetition:{name:RW.$type,properties:{element:{name:RW.element}},superTypes:[RB.$type]},EbnfRule:{name:RV.$type,properties:{definition:{name:RV.definition},name:{name:RV.name}},superTypes:[]},EbnfSequence:{name:RH.$type,properties:{elements:{name:RH.elements,defaultValue:[]}},superTypes:[]},EbnfSpecial:{name:RY.$type,properties:{text:{name:RY.text}},superTypes:[RB.$type]},EbnfTerm:{name:RX.$type,properties:{base:{name:RX.base},postfixes:{name:RX.postfixes,defaultValue:[]}},superTypes:[]},EbnfTerminal:{name:RZ.$type,properties:{value:{name:RZ.value}},superTypes:[RB.$type]},EbnfZeroOrMorePostfix:{name:RJ.$type,properties:{operator:{name:RJ.operator}},superTypes:[RU.$type]},Edge:{name:RQ.$type,properties:{lhsDir:{name:RQ.lhsDir},lhsGroup:{name:RQ.lhsGroup,defaultValue:!1},lhsId:{name:RQ.lhsId},lhsInto:{name:RQ.lhsInto,defaultValue:!1},rhsDir:{name:RQ.rhsDir},rhsGroup:{name:RQ.rhsGroup,defaultValue:!1},rhsId:{name:RQ.rhsId},rhsInto:{name:RQ.rhsInto,defaultValue:!1},title:{name:RQ.title}},superTypes:[]},EmDataEntity:{name:R0.$type,properties:{dataBlockValue:{name:R0.dataBlockValue},dataType:{name:R0.dataType},name:{name:R0.name}},superTypes:[]},EmFrame:{name:R1.$type,properties:{},superTypes:[]},EmGwt:{name:R2.$type,properties:{givenStatements:{name:R2.givenStatements,defaultValue:[]},sourceFrame:{name:R2.sourceFrame,referenceType:R1.$type},thenStatements:{name:R2.thenStatements,defaultValue:[]},whenStatements:{name:R2.whenStatements,defaultValue:[]}},superTypes:[]},EmGwtStatement:{name:R3.$type,properties:{entityIdentifier:{name:R3.entityIdentifier,referenceType:R9.$type}},superTypes:[]},EmModelEntity:{name:R9.$type,properties:{name:{name:R9.name}},superTypes:[]},EmNoteEntity:{name:R4.$type,properties:{dataBlockValue:{name:R4.dataBlockValue},dataType:{name:R4.dataType},sourceFrame:{name:R4.sourceFrame,referenceType:R1.$type}},superTypes:[]},EmResetFrame:{name:R5.$type,properties:{dataInlineValue:{name:R5.dataInlineValue},dataReference:{name:R5.dataReference,referenceType:R0.$type},dataType:{name:R5.dataType},entityIdentifier:{name:R5.entityIdentifier},modelEntityType:{name:R5.modelEntityType},name:{name:R5.name},sourceFrames:{name:R5.sourceFrames,defaultValue:[],referenceType:R1.$type}},superTypes:[R1.$type]},EmTimeFrame:{name:R6.$type,properties:{dataInlineValue:{name:R6.dataInlineValue},dataReference:{name:R6.dataReference,referenceType:R0.$type},dataType:{name:R6.dataType},entityIdentifier:{name:R6.entityIdentifier},modelEntityType:{name:R6.modelEntityType},name:{name:R6.name},sourceFrames:{name:R6.sourceFrames,defaultValue:[],referenceType:R1.$type}},superTypes:[R1.$type]},Entry:{name:R7.$type,properties:{axis:{name:R7.axis,referenceType:Rb.$type},value:{name:R7.value}},superTypes:[]},EventModel:{name:be.$type,properties:{accDescr:{name:be.accDescr},accTitle:{name:be.accTitle},dataEntities:{name:be.dataEntities,defaultValue:[]},frames:{name:be.frames,defaultValue:[]},gwtEntities:{name:be.gwtEntities,defaultValue:[]},modelEntities:{name:be.modelEntities,defaultValue:[]},noteEntities:{name:be.noteEntities,defaultValue:[]},title:{name:be.title}},superTypes:[]},Evolution:{name:bt.$type,properties:{stages:{name:bt.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:br.$type,properties:{boundary:{name:br.boundary},name:{name:br.name},secondName:{name:br.secondName}},superTypes:[]},Evolve:{name:bn.$type,properties:{component:{name:bn.component},target:{name:bn.target}},superTypes:[]},GitGraph:{name:bi.$type,properties:{accDescr:{name:bi.accDescr},accTitle:{name:bi.accTitle},statements:{name:bi.statements,defaultValue:[]},title:{name:bi.title}},superTypes:[]},Group:{name:ba.$type,properties:{icon:{name:ba.icon},id:{name:ba.id},in:{name:ba.in},title:{name:ba.title}},superTypes:[]},Info:{name:bs.$type,properties:{accDescr:{name:bs.accDescr},accTitle:{name:bs.accTitle},title:{name:bs.title}},superTypes:[]},Item:{name:bo.$type,properties:{classSelector:{name:bo.classSelector},name:{name:bo.name}},superTypes:[]},Junction:{name:bl.$type,properties:{id:{name:bl.id},in:{name:bl.in}},superTypes:[]},Label:{name:bu.$type,properties:{negX:{name:bu.negX,defaultValue:!1},negY:{name:bu.negY,defaultValue:!1},offsetX:{name:bu.offsetX},offsetY:{name:bu.offsetY}},superTypes:[]},Leaf:{name:bc.$type,properties:{classSelector:{name:bc.classSelector},name:{name:bc.name},value:{name:bc.value}},superTypes:[bo.$type]},Link:{name:bp.$type,properties:{arrow:{name:bp.arrow},from:{name:bp.from},fromPort:{name:bp.fromPort},linkLabel:{name:bp.linkLabel},to:{name:bp.to},toPort:{name:bp.toPort}},superTypes:[]},Merge:{name:bf.$type,properties:{branch:{name:bf.branch},id:{name:bf.id},tags:{name:bf.tags,defaultValue:[]},type:{name:bf.type}},superTypes:[bY.$type]},Note:{name:bd.$type,properties:{evolution:{name:bd.evolution},text:{name:bd.text},visibility:{name:bd.visibility}},superTypes:[]},Option:{name:bm.$type,properties:{name:{name:bm.name},value:{name:bm.value,defaultValue:!1}},superTypes:[]},Packet:{name:bh.$type,properties:{accDescr:{name:bh.accDescr},accTitle:{name:bh.accTitle},blocks:{name:bh.blocks,defaultValue:[]},title:{name:bh.title}},superTypes:[]},PacketBlock:{name:by.$type,properties:{bits:{name:by.bits},end:{name:by.end},label:{name:by.label},start:{name:by.start}},superTypes:[]},PegAny:{name:bg.$type,properties:{dot:{name:bg.dot}},superTypes:[bA.$type]},PegGroup:{name:bT.$type,properties:{element:{name:bT.element}},superTypes:[bA.$type]},PegIdentifier:{name:b$.$type,properties:{name:{name:b$.name}},superTypes:[bA.$type]},PegLiteral:{name:bv.$type,properties:{value:{name:bv.value}},superTypes:[bA.$type]},PegOrderedChoice:{name:bR.$type,properties:{alternatives:{name:bR.alternatives,defaultValue:[]}},superTypes:[]},PegPrefix:{name:bb.$type,properties:{operator:{name:bb.operator},suffix:{name:bb.suffix}},superTypes:[]},PegPrimary:{name:bA.$type,properties:{},superTypes:[]},PegRule:{name:bE.$type,properties:{definition:{name:bE.definition},name:{name:bE.name}},superTypes:[]},PegSequence:{name:bC.$type,properties:{elements:{name:bC.elements,defaultValue:[]}},superTypes:[]},PegSuffix:{name:bS.$type,properties:{operator:{name:bS.operator},primary:{name:bS.primary}},superTypes:[]},Pie:{name:bk.$type,properties:{accDescr:{name:bk.accDescr},accTitle:{name:bk.accTitle},sections:{name:bk.sections,defaultValue:[]},showData:{name:bk.showData,defaultValue:!1},title:{name:bk.title}},superTypes:[]},PieSection:{name:bx.$type,properties:{label:{name:bx.label},value:{name:bx.value}},superTypes:[]},Pipeline:{name:bN.$type,properties:{components:{name:bN.components,defaultValue:[]},parent:{name:bN.parent}},superTypes:[]},PipelineComponent:{name:bI.$type,properties:{evolution:{name:bI.evolution},label:{name:bI.label},name:{name:bI.name}},superTypes:[]},Radar:{name:b_.$type,properties:{accDescr:{name:b_.accDescr},accTitle:{name:b_.accTitle},axes:{name:b_.axes,defaultValue:[]},curves:{name:b_.curves,defaultValue:[]},options:{name:b_.options,defaultValue:[]},title:{name:b_.title}},superTypes:[]},Railroad:{name:bw.$type,properties:{accDescr:{name:bw.accDescr},accTitle:{name:bw.accTitle},rules:{name:bw.rules,defaultValue:[]},title:{name:bw.title}},superTypes:[]},RailroadAbnf:{name:bP.$type,properties:{accDescr:{name:bP.accDescr},accTitle:{name:bP.accTitle},rules:{name:bP.rules,defaultValue:[]},title:{name:bP.title}},superTypes:[]},RailroadChoiceExpr:{name:bO.$type,properties:{alternatives:{name:bO.alternatives,defaultValue:[]}},superTypes:[bL.$type]},RailroadEbnf:{name:bD.$type,properties:{accDescr:{name:bD.accDescr},accTitle:{name:bD.accTitle},rules:{name:bD.rules,defaultValue:[]},title:{name:bD.title}},superTypes:[]},RailroadExpression:{name:bL.$type,properties:{},superTypes:[]},RailroadNonTerminalExpr:{name:bM.$type,properties:{name:{name:bM.name}},superTypes:[bL.$type]},RailroadOneOrMoreExpr:{name:bj.$type,properties:{element:{name:bj.element}},superTypes:[bL.$type]},RailroadOptionalExpr:{name:bF.$type,properties:{element:{name:bF.element}},superTypes:[bL.$type]},RailroadPeg:{name:bz.$type,properties:{accDescr:{name:bz.accDescr},accTitle:{name:bz.accTitle},rules:{name:bz.rules,defaultValue:[]},title:{name:bz.title}},superTypes:[]},RailroadRule:{name:bG.$type,properties:{definition:{name:bG.definition},name:{name:bG.name}},superTypes:[]},RailroadSequenceExpr:{name:bK.$type,properties:{elements:{name:bK.elements,defaultValue:[]}},superTypes:[bL.$type]},RailroadSpecialExpr:{name:bq.$type,properties:{text:{name:bq.text}},superTypes:[bL.$type]},RailroadTerminalExpr:{name:bU.$type,properties:{value:{name:bU.value}},superTypes:[bL.$type]},RailroadZeroOrMoreExpr:{name:bB.$type,properties:{element:{name:bB.element}},superTypes:[bL.$type]},Section:{name:bW.$type,properties:{classSelector:{name:bW.classSelector},name:{name:bW.name}},superTypes:[bo.$type]},Service:{name:bV.$type,properties:{icon:{name:bV.icon},iconText:{name:bV.iconText},id:{name:bV.id},in:{name:bV.in},title:{name:bV.title}},superTypes:[]},Size:{name:bH.$type,properties:{height:{name:bH.height},width:{name:bH.width}},superTypes:[]},Statement:{name:bY.$type,properties:{},superTypes:[]},Transition:{name:bX.$type,properties:{from:{name:bX.from},label:{name:bX.label},to:{name:bX.to}},superTypes:[]},TreeNode:{name:bQ.$type,properties:{classAnnotation:{name:bQ.classAnnotation},descAnnotation:{name:bQ.descAnnotation},iconAnnotation:{name:bQ.iconAnnotation},indent:{name:bQ.indent},name:{name:bQ.name}},superTypes:[]},TreeView:{name:b0.$type,properties:{accDescr:{name:b0.accDescr},accTitle:{name:b0.accTitle},nodes:{name:b0.nodes,defaultValue:[]},title:{name:b0.title}},superTypes:[]},Treemap:{name:bZ.$type,properties:{accDescr:{name:bZ.accDescr},accTitle:{name:bZ.accTitle},title:{name:bZ.title},TreemapRows:{name:bZ.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:bJ.$type,properties:{indent:{name:bJ.indent},item:{name:bJ.item}},superTypes:[]},Wardley:{name:b1.$type,properties:{accDescr:{name:b1.accDescr},accelerators:{name:b1.accelerators,defaultValue:[]},accTitle:{name:b1.accTitle},anchors:{name:b1.anchors,defaultValue:[]},annotation:{name:b1.annotation,defaultValue:[]},annotations:{name:b1.annotations,defaultValue:[]},components:{name:b1.components,defaultValue:[]},deaccelerators:{name:b1.deaccelerators,defaultValue:[]},evolution:{name:b1.evolution},evolves:{name:b1.evolves,defaultValue:[]},links:{name:b1.links,defaultValue:[]},notes:{name:b1.notes,defaultValue:[]},pipelines:{name:b1.pipelines,defaultValue:[]},size:{name:b1.size},title:{name:b1.title}},superTypes:[]}}}static{tA(this,"MermaidAstReflection")}},b3=new b2,b9=tA(()=>tt??(tt=Rn(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"alignments","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Alignment","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"align"},{"$type":"Assignment","feature":"direction","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"row"},{"$type":"Keyword","value":"column"}]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@20"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[^\\\\[\\\\]\\\\r\\\\n]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"ArchitectureGrammarGrammar"),b4=tA(()=>tr??(tr=Rn(`{"$type":"Grammar","isDeclared":true,"name":"CynefinGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Cynefin","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"cynefin-beta"},{"$type":"Keyword","value":"cynefin-beta:"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"domains","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"transitions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"domain","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Assignment","feature":"items","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainItem","definition":{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Transition","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":"-->"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"DOMAIN_NAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complex"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complicated"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"clear"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"chaotic"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"confusion"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"CynefinGrammarGrammar"),b5=tA(()=>tn??(tn=Rn('{"$type":"Grammar","isDeclared":true,"name":"EventModeling","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","entry":true,"name":"EventModel","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"eventmodeling"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"frames","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"dataEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"noteEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"gwtEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntityType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rmo"},{"$type":"Keyword","value":"readmodel"},{"$type":"Keyword","value":"ui"},{"$type":"Keyword","value":"cmd"},{"$type":"Keyword","value":"command"},{"$type":"Keyword","value":"evt"},{"$type":"Keyword","value":"event"},{"$type":"Keyword","value":"pcr"},{"$type":"Keyword","value":"processor"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"json"},{"$type":"Keyword","value":"jsobj"},{"$type":"Keyword","value":"figma"},{"$type":"Keyword","value":"salt"},{"$type":"Keyword","value":"uri"},{"$type":"Keyword","value":"md"},{"$type":"Keyword","value":"html"},{"$type":"Keyword","value":"text"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataInline","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataInlineValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataBlock","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataBlockValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"QualifiedName","dataType":"string","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"."},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmTimeFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"tf"},{"$type":"Keyword","value":"timeframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmResetFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rf"},{"$type":"Keyword","value":"resetframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmFrame","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"entity"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"data"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmNoteEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"note"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwt","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"gwt"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"given"},{"$type":"Assignment","feature":"givenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"},{"$type":"Group","elements":[{"$type":"Keyword","value":"when"},{"$type":"Assignment","feature":"whenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}],"cardinality":"?"},{"$type":"Keyword","value":"then"},{"$type":"Assignment","feature":"thenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwtStatement","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@9"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_EID","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_FI","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"EM_ID","definition":{"$type":"RegexToken","regex":"/[_a-zA-Z][\\\\w_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_FID","definition":{"$type":"RegexToken","regex":"/\\\\d{1,3}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_INLINE","definition":{"$type":"RegexToken","regex":"/\\\\{(.*)\\\\}|\\"(.*)\\"|\'(.*)\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_BLOCK","definition":{"$type":"RegexToken","regex":"/\\\\{[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?\\\\}(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EM_WS","definition":{"$type":"RegexToken","regex":"/\\\\s+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SL_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\/[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"imports":[],"types":[]}')),"EventModelingGrammar"),b8=tA(()=>ti??(ti=Rn(`{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"GitGraphGrammarGrammar"),b6=tA(()=>ta??(ta=Rn(`{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"InfoGrammarGrammar"),b7=tA(()=>ts??(ts=Rn(`{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PacketGrammarGrammar"),Ae=tA(()=>to??(to=Rn(`{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PieGrammarGrammar"),At=tA(()=>tl??(tl=Rn(`{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}`)),"RadarGrammarGrammar"),Ar=tA(()=>tu??(tu=Rn('{"$type":"Grammar","isDeclared":true,"name":"RailroadAbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_RULENAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Za-z][A-Za-z0-9-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_NUMVAL","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\\\\.[0-9A-Fa-f]+)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]*\\\\*[0-9]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_EXACT_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_COMMENT","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadAbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-abnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfAlternation","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfConcatenation","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfElement","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfStringLiteral","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfNumVal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRuleName","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfOptionalGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadAbnf","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfAlternation","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfConcatenation","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfElement","attributes":[{"$type":"TypeAttribute","name":"repeat","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"AbnfStringLiteral","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfNumVal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfRuleName","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"AbnfOptionalGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadAbnfGrammarGrammar"),An=tA(()=>tc??(tc=Rn(`{"$type":"Grammar","isDeclared":true,"name":"RailroadEbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_SPECIAL_SEQUENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\?(?=[^?;]*[^?\\\\s;][^?;]*\\\\?)[^?;]*\\\\?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_ISO_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\(\\\\*[\\\\s\\\\S]*?\\\\*\\\\)/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadEbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-ebnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"="},{"$type":"Keyword","value":"::="}]},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"|"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":",","cardinality":"?"},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerm","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"base","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"postfixes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerminal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfNonTerminal","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSpecial","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptional","returnType":{"$ref":"#/interfaces@11"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRepetition","returnType":{"$ref":"#/interfaces@12"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"{"},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPostfix","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptionalPostfix","returnType":{"$ref":"#/interfaces@13"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfZeroOrMorePostfix","returnType":{"$ref":"#/interfaces@14"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOneOrMorePostfix","returnType":{"$ref":"#/interfaces@15"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfExceptionPostfix","returnType":{"$ref":"#/interfaces@16"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"except","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadEbnf","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfTerm","attributes":[{"$type":"TypeAttribute","name":"base","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false},{"$type":"TypeAttribute","name":"postfixes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfPostfix","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfNonTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfSpecial","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptional","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfRepetition","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptionalPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfZeroOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfOneOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfExceptionPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"except","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}]}],"imports":[],"types":[]}`)),"RailroadEbnfGrammarGrammar"),Ai=tA(()=>tp??(tp=Rn(`{"$type":"Grammar","isDeclared":true,"name":"RailroadGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"RR_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"Railroad","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadExpression","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSequenceExpr","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"sequence"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadChoiceExpr","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"choice"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOptionalExpr","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"optional"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOneOrMoreExpr","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"oneOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadZeroOrMoreExpr","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"zeroOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadTerminalExpr","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"terminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadNonTerminalExpr","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"nonterminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSpecialExpr","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"special"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"Railroad","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadExpression","attributes":[],"superTypes":[]},{"$type":"Interface","name":"RailroadSequenceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadChoiceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOptionalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOneOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadZeroOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadNonTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadSpecialExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}`)),"RailroadGrammarGrammar"),Aa=tA(()=>tf??(tf=Rn(`{"$type":"Grammar","isDeclared":true,"name":"RailroadPegGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/#[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadPeg","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-peg-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"<-"},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegOrderedChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrefix","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"&"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"!"}}],"cardinality":"?"},{"$type":"Assignment","feature":"suffix","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSuffix","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrimary","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegLiteral","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegIdentifier","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegAny","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Assignment","feature":"dot","operator":"=","terminal":{"$type":"Keyword","value":"."}},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadPeg","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegOrderedChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegPrefix","attributes":[{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"suffix","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSuffix","attributes":[{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}},"isOptional":false},{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"PegPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"PegLiteral","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegIdentifier","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegGroup","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"PegAny","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"dot","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}`)),"RailroadPegGrammarGrammar"),As=tA(()=>td??(td=Rn(`{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`)),"TreemapGrammarGrammar"),Ao=tA(()=>tm??(tm=Rn(`{"$type":"Grammar","isDeclared":true,"name":"TreeViewGrammar","rules":[{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"TreeView","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"treeView-beta"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"nodes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"CLASS_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+:::[ \\\\t]*[A-Za-z_][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ICON_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+icon\\\\([\\\\w-]*(?::[\\\\w-]+)?\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"DESC_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+##[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"QUOTED_NAME","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"BARE_NAME","definition":{"$type":"RegexToken","regex":"/(?!:::|icon\\\\(|##)[^ \\\\t\\\\n\\\\r\\"'](?:(?![ \\\\t]+:::[ \\\\t]*[A-Za-z_]|[ \\\\t]+icon\\\\(|[ \\\\t]+##)[^\\\\n\\\\r])*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"classAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"iconAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"descAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@14"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * TreeView grammar for Langium\\n *\\n * Supports both quoted labels (\\"my file\\") and bare labels (index.js).\\n * Annotations (:::class, icon(), ## description) are parsed directly into\\n * AST fields by the grammar. Value conversion for stripping quotes, extracting\\n * class names, icon names, and description text happens in valueConverter.ts.\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treeView keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}`)),"TreeViewGrammarGrammar"),Al=tA(()=>th??(th=Rn(`{"$type":"Grammar","isDeclared":true,"name":"WardleyGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Wardley","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@42"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"size","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"anchors","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"links","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"evolves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"pipelines","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"notes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"annotations","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Assignment","feature":"annotation","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"deaccelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Size","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"width","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"height","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolution","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EvolutionStage","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"@"},{"$type":"Assignment","feature":"boundary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}],"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"secondName","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Anchor","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Component","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"decorator","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Keyword","value":")"}]}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Label","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"negX","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetX","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"negY","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetY","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Decorator","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"strategy","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Link","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"fromPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"arrow","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"cardinality":"?"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"toPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"linkLabel","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolve","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@32"},"arguments":[]},{"$type":"Assignment","feature":"component","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"target","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Pipeline","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@33"},"arguments":[]},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"+"},{"$type":"Keyword","value":"}"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PipelineComponent","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Note","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@34"},"arguments":[]},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotations","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@35"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotation","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@36"},"arguments":[]},{"$type":"Assignment","feature":"number","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CoordinateValue","dataType":"number","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Accelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@37"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Deaccelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@38"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"WARDLEY_NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"->"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_PORT","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<>"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+>"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_ARROW","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-->"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-.->"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":">"},"parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'<>/","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'/","parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_LABEL","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRATEGY","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"build"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"buy"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"outsource"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"market"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_WARDLEY","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"wardley-beta"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_SIZE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"size"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLUTION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolution"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANCHOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"anchor"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_COMPONENT","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"component"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_LABEL","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"label"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_INERTIA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"inertia"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLVE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolve"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_PIPELINE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"pipeline"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_NOTE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"note"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATIONS","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotations"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotation"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"accelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_DEACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"deaccelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NAME_WITH_SPACES","definition":{"$type":"RegexToken","regex":"/(?!title\\\\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \\\\t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@44"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@45"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@46"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@47"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@48"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"WardleyGrammarGrammar"),Au={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Ac={languageId:"cynefin",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Ap={languageId:"eventmodeling",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Af={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Ad={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Am={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Ah={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Ay={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Ag={languageId:"railroadAbnf",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},AT={languageId:"railroadEbnf",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},A$={languageId:"railroad",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Av={languageId:"railroadPeg",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},AR={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Ab={languageId:"treeView",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},AA={languageId:"wardley",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},AE={AstReflection:tA(()=>new b2,"AstReflection")},AC={Grammar:tA(()=>b9(),"Grammar"),LanguageMetaData:tA(()=>Au,"LanguageMetaData"),parser:{}},AS={Grammar:tA(()=>b4(),"Grammar"),LanguageMetaData:tA(()=>Ac,"LanguageMetaData"),parser:{}},Ak={Grammar:tA(()=>b5(),"Grammar"),LanguageMetaData:tA(()=>Ap,"LanguageMetaData"),parser:{}},Ax={Grammar:tA(()=>b8(),"Grammar"),LanguageMetaData:tA(()=>Af,"LanguageMetaData"),parser:{}},AN={Grammar:tA(()=>b6(),"Grammar"),LanguageMetaData:tA(()=>Ad,"LanguageMetaData"),parser:{}},AI={Grammar:tA(()=>b7(),"Grammar"),LanguageMetaData:tA(()=>Am,"LanguageMetaData"),parser:{}},A_={Grammar:tA(()=>Ae(),"Grammar"),LanguageMetaData:tA(()=>Ah,"LanguageMetaData"),parser:{}},Aw={Grammar:tA(()=>At(),"Grammar"),LanguageMetaData:tA(()=>Ay,"LanguageMetaData"),parser:{}},AP={Grammar:tA(()=>Ar(),"Grammar"),LanguageMetaData:tA(()=>Ag,"LanguageMetaData"),parser:{}},AO={Grammar:tA(()=>An(),"Grammar"),LanguageMetaData:tA(()=>AT,"LanguageMetaData"),parser:{}},AD={Grammar:tA(()=>Ai(),"Grammar"),LanguageMetaData:tA(()=>A$,"LanguageMetaData"),parser:{}},AL={Grammar:tA(()=>Aa(),"Grammar"),LanguageMetaData:tA(()=>Av,"LanguageMetaData"),parser:{}},AM={Grammar:tA(()=>As(),"Grammar"),LanguageMetaData:tA(()=>AR,"LanguageMetaData"),parser:{}},Aj={Grammar:tA(()=>Ao(),"Grammar"),LanguageMetaData:tA(()=>Ab,"LanguageMetaData"),parser:{}},AF={Grammar:tA(()=>Al(),"Grammar"),LanguageMetaData:tA(()=>AA,"LanguageMetaData"),parser:{}},Az={ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/accTitle[\t ]*:([^\n\r]*)/,TITLE:/title([\t ][^\n\r]*|)/},AG=class extends $d{static{tA(this,"AbstractMermaidValueConverter")}runConverter(e,t,r){let n=this.runCommonConverter(e,t,r);return(void 0===n&&(n=this.runCustomConverter(e,t,r)),void 0===n)?super.runConverter(e,t,r):n}runCommonConverter(e,t,r){let n=Az[e.name];if(void 0===n)return;let i=n.exec(t);if(null!==i){if(void 0!==i[1])return i[1].trim().replace(/[\t ]{2,}/gm," ");if(void 0!==i[2])return i[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,"\n")}}},AK=class extends AG{static{tA(this,"CommonValueConverter")}runCustomConverter(e,t,r){}},Aq=class extends $f{static{tA(this,"AbstractMermaidTokenBuilder")}constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,r){let n=super.buildKeywordTokens(e,t,r);return n.forEach(e=>{this.keywords.has(e.name)&&void 0!==e.PATTERN&&(e.PATTERN=RegExp(e.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),n}};(class extends Aq{static{tA(this,"CommonTokenBuilder")}})}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/cdfede43.0755e9a3e2ca31d4.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/cdfede43.0755e9a3e2ca31d4.js
    deleted file mode 100644
    index 80ad599bd..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/cdfede43.0755e9a3e2ca31d4.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4287],{40524:(e,t,r)=>{r.d(t,{default:()=>aZ});class a extends Error{constructor(e,t){var r="KaTeX parse error: "+e,n=t&&t.loc;if(n&&n.start<=n.end){var i,s,o=n.lexer.input;i=n.start,s=n.end,i===o.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=o.slice(i,s).replace(/[^]/g,"$&̲");r+=(i>15?"…"+o.slice(i-15,i):o.slice(0,i))+l+(s+15e.replace(o,"-$1").toLowerCase(),h={"&":"&",">":">","<":"<",'"':""","'":"'"},m=/[&><"']/g,c=e=>String(e).replace(m,e=>h[e]),u=e=>{if("ordgroup"===e.type||"color"===e.type)if(1===e.body.length)return u(e.body[0]);else return e;return"font"===e.type?u(e.body):e},p=new Set(["mathord","textord","atom"]),d=e=>p.has(u(e).type),g={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};class f{constructor(e){for(var t of(void 0===e&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},Object.keys(g))){var r=g[t];r&&function(e,t,r,a){var n=r[t];e[t]=void 0!==n?a.processor?a.processor(n):n:function(e){if(void 0!==e.default)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;if("string"!=typeof t)return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw Error("Unexpected schema type; settings must declare an explicit default.")}}(a)}(this,t,e,r)}}reportNonstrict(e,t,r){var n=this.strict;if("function"==typeof n&&(n=n(e,t,r)),n&&"ignore"!==n){if(!0===n||"error"===n)throw new a("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" [")+e+"]",r);"warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" [")+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" [")+e+"]")}}useStrictBehavior(e,t,r){var a=this.strict;if("function"==typeof a)try{a=a(e,t,r)}catch(e){a="error"}return!!a&&"ignore"!==a&&(!0===a||"error"===a||("warn"===a?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" [")+e+"]"),!1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+t+" [")+e+"]"),!1)))}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var t,r,a=(t=e.url,(r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t))?":"===r[2]&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?r[1].toLowerCase():null:"_relative");if(null==a)return!1;e.protocol=a}return!!("function"==typeof this.trust?this.trust(e):this.trust)}}class v{constructor(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}sup(){return b[y[this.id]]}sub(){return b[x[this.id]]}fracNum(){return b[w[this.id]]}fracDen(){return b[k[this.id]]}cramp(){return b[z[this.id]]}text(){return b[S[this.id]]}isTight(){return this.size>=2}}var b=[new v(0,0,!1),new v(1,0,!0),new v(2,1,!1),new v(3,1,!0),new v(4,2,!1),new v(5,2,!0),new v(6,3,!1),new v(7,3,!0)],y=[4,5,4,5,6,7,6,7],x=[5,5,5,5,7,7,7,7],w=[2,3,4,5,6,7,6,7],k=[3,3,5,5,7,7,7,7],z=[1,1,3,3,5,5,7,7],S=[0,1,2,3,2,3,2,3],M={DISPLAY:b[0],TEXT:b[2],SCRIPT:b[4],SCRIPTSCRIPT:b[6]},A=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],T=[];function C(e){for(var t=0;t=T[t]&&e<=T[t+1])return!0;return!1}A.forEach(e=>e.blocks.forEach(e=>T.push(...e)));var B=function(e,t,r){t*=1e3;var a,n,i,s,o,l,h="";switch(e){case"sqrtMain":h="M95,"+(622+(a=t)+80)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+a/2.075+" -"+a+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+a)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+a)+" 80h400000v"+(40+a)+"h-400000z";break;case"sqrtSize1":h="M263,"+(601+(n=t)+80)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+n/2.084+" -"+n+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+n)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+n)+" 80h400000v"+(40+n)+"h-400000z";break;case"sqrtSize2":h="M983 "+(10+(i=t)+80)+"\nl"+i/3.13+" -"+i+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+i)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+i)+" 80h400000v"+(40+i)+"h-400000z";break;case"sqrtSize3":h="M424,"+(2398+(s=t)+80)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+s/4.223+" -"+s+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+s)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+s)+" 80\nh400000v"+(40+s)+"h-400000z";break;case"sqrtSize4":h="M473,"+(2713+(o=t)+80)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+o/5.298+" -"+o+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+o)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+o)+" 80h400000v"+(40+o)+"H1017.7z";break;case"sqrtTall":h="M702 "+((l=t)+80)+"H400000"+(40+l)+"\nH742v"+(r-54-80-l)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 80H400000v"+(40+l)+"H742z"}return h},q=function(e,t){switch(e){case"⎜":let r;return(r="M291 0 H417 V"+t+" H291z")+" "+r;case"∣":let a;return(a="M145 0 H188 V"+t+" H145z")+" "+a;case"∥":let n,i;return(n="M145 0 H188 V"+t+" H145z")+" "+n+((i="M367 0 H410 V"+t+" H367z")+" ")+i;case"⎟":let s;return(s="M457 0 H583 V"+t+" H457z")+" "+s;case"⎢":let o;return(o="M319 0 H403 V"+t+" H319z")+" "+o;case"⎥":let l;return(l="M263 0 H347 V"+t+" H263z")+" "+l;case"⎪":let h;return(h="M384 0 H504 V"+t+" H384z")+" "+h;case"⏐":let m;return(m="M312 0 H355 V"+t+" H312z")+" "+m;case"‖":let c,u;return(c="M257 0 H300 V"+t+" H257z")+" "+c+((u="M478 0 H521 V"+t+" H478z")+" ")+u;default:return""}},I={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:(e=>e+" "+e)("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:(e=>e+" "+e)("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:(e=>e+" "+e)("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:(e=>e+" "+e)("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:(e=>e+" "+e)("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:(e=>e+" "+e)("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:(e=>e+" "+e)("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:(e=>e+" "+e)("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},R=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 v84 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw Error("Unknown stretchy delimiter.")}};class E{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t{if("toText"in e)return e.toText();throw Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}}var H={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},O={ex:!0,em:!0,mu:!0},D=function(e){return"string"!=typeof e&&(e=e.unit),e in H||e in O||"ex"===e},N=function(e,t){var r,n;if(e.unit in H)r=H[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{if(n=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=n.fontMetrics().xHeight;else if("em"===e.unit)r=n.fontMetrics().quad;else throw new a("Invalid unit: '"+e.unit+"'");n!==t&&(r*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},L=function(e){return+e.toFixed(4)+"em"},F=function(e){return e.filter(e=>e).join(" ")},P=function(e){var t="";for(var r of Object.keys(e)){var a=e[r];void 0!==a&&(t+=l(r)+":"+a+";")}return t},V=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var a=t.getColor();a&&(this.style.color=a)}},G=function(e){var t=document.createElement(e);for(var r of(t.className=F(this.classes),Object.assign(t.style,this.style),Object.keys(this.attributes)))t.setAttribute(r,this.attributes[r]);for(var a=0;a/=\x00-\x1f]/,X=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+c(F(this.classes))+'"');var r=P(this.style);for(var n of(r&&(t+=' style="'+c(r)+'"'),Object.keys(this.attributes))){if(U.test(n))throw new a("Invalid attribute name '"+n+"'");t+=" "+n+'="'+c(this.attributes[n])+'"'}t+=">";for(var i=0;i")};class Y{constructor(e,t,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,V.call(this,e,r,a),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return G.call(this,"span")}toMarkup(){return X.call(this,"span")}}class j{constructor(e,t,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,V.call(this,t,a),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return G.call(this,"a")}toMarkup(){return X.call(this,"a")}}class W{constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=r}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");return e.src=this.src,e.alt=this.alt,e.className="mord",Object.assign(e.style,this.style),e}toMarkup(){var e=''+c(this.alt)+'=n[0]&&e<=n[1])return r.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=_[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return(this.italic>0&&((t=document.createElement("span")).style.marginRight=L(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=F(this.classes)),Object.keys(this.style).length>0&&Object.assign((t=t||document.createElement("span")).style,this.style),t)?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="0&&(r+="margin-right:"+L(this.italic)+";"),(r+=P(this.style))&&(e=!0,t+=' style="'+c(r)+'"');var a=c(this.text);return e?(t+=">",t+=a,t+=""):a}}class Z{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var r=0;r"}}class K{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",I[this.pathName]),e}toMarkup(){return this.alternate?'':''}}class J{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=""}}var Q={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ee={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},et={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function er(e,t,r){if(!Q[t])throw Error("Font metrics not found for font: "+t+".");var a=e.charCodeAt(0),n=Q[t][a];if(!n&&e[0]in et&&(a=et[e[0]].charCodeAt(0),n=Q[t][a]),!n&&"text"===r&&C(a)&&(n=Q[t][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var ea={},en={math:{},text:{}};function ei(e,t,r,a,n,i){en[e][n]={font:t,group:r,replace:a},i&&a&&(en[e][a]=en[e][n])}var es="math",eo="text",el="main",eh="accent-token",em="close",ec="inner",eu="mathord",ep="op-token",ed="open",eg="punct",ef="spacing",ev="textord";ei(es,el,"rel","≡","\\equiv",!0),ei(es,el,"rel","≺","\\prec",!0),ei(es,el,"rel","≻","\\succ",!0),ei(es,el,"rel","∼","\\sim",!0),ei(es,el,"rel","⊥","\\perp"),ei(es,el,"rel","⪯","\\preceq",!0),ei(es,el,"rel","⪰","\\succeq",!0),ei(es,el,"rel","≃","\\simeq",!0),ei(es,el,"rel","∣","\\mid",!0),ei(es,el,"rel","≪","\\ll",!0),ei(es,el,"rel","≫","\\gg",!0),ei(es,el,"rel","≍","\\asymp",!0),ei(es,el,"rel","∥","\\parallel"),ei(es,el,"rel","⋈","\\bowtie",!0),ei(es,el,"rel","⌣","\\smile",!0),ei(es,el,"rel","⊑","\\sqsubseteq",!0),ei(es,el,"rel","⊒","\\sqsupseteq",!0),ei(es,el,"rel","≐","\\doteq",!0),ei(es,el,"rel","⌢","\\frown",!0),ei(es,el,"rel","∋","\\ni",!0),ei(es,el,"rel","∝","\\propto",!0),ei(es,el,"rel","⊢","\\vdash",!0),ei(es,el,"rel","⊣","\\dashv",!0),ei(es,el,"rel","∋","\\owns"),ei(es,el,eg,".","\\ldotp"),ei(es,el,eg,"⋅","\\cdotp"),ei(es,el,eg,"⋅","\xb7"),ei(eo,el,ev,"⋅","\xb7"),ei(es,el,ev,"#","\\#"),ei(eo,el,ev,"#","\\#"),ei(es,el,ev,"&","\\&"),ei(eo,el,ev,"&","\\&"),ei(es,el,ev,"ℵ","\\aleph",!0),ei(es,el,ev,"∀","\\forall",!0),ei(es,el,ev,"ℏ","\\hbar",!0),ei(es,el,ev,"∃","\\exists",!0),ei(es,el,ev,"∇","\\nabla",!0),ei(es,el,ev,"♭","\\flat",!0),ei(es,el,ev,"ℓ","\\ell",!0),ei(es,el,ev,"♮","\\natural",!0),ei(es,el,ev,"♣","\\clubsuit",!0),ei(es,el,ev,"℘","\\wp",!0),ei(es,el,ev,"♯","\\sharp",!0),ei(es,el,ev,"♢","\\diamondsuit",!0),ei(es,el,ev,"ℜ","\\Re",!0),ei(es,el,ev,"♡","\\heartsuit",!0),ei(es,el,ev,"ℑ","\\Im",!0),ei(es,el,ev,"♠","\\spadesuit",!0),ei(es,el,ev,"\xa7","\\S",!0),ei(eo,el,ev,"\xa7","\\S"),ei(es,el,ev,"\xb6","\\P",!0),ei(eo,el,ev,"\xb6","\\P"),ei(es,el,ev,"†","\\dag"),ei(eo,el,ev,"†","\\dag"),ei(eo,el,ev,"†","\\textdagger"),ei(es,el,ev,"‡","\\ddag"),ei(eo,el,ev,"‡","\\ddag"),ei(eo,el,ev,"‡","\\textdaggerdbl"),ei(es,el,em,"⎱","\\rmoustache",!0),ei(es,el,ed,"⎰","\\lmoustache",!0),ei(es,el,em,"⟯","\\rgroup",!0),ei(es,el,ed,"⟮","\\lgroup",!0),ei(es,el,"bin","∓","\\mp",!0),ei(es,el,"bin","⊖","\\ominus",!0),ei(es,el,"bin","⊎","\\uplus",!0),ei(es,el,"bin","⊓","\\sqcap",!0),ei(es,el,"bin","∗","\\ast"),ei(es,el,"bin","⊔","\\sqcup",!0),ei(es,el,"bin","◯","\\bigcirc",!0),ei(es,el,"bin","∙","\\bullet",!0),ei(es,el,"bin","‡","\\ddagger"),ei(es,el,"bin","≀","\\wr",!0),ei(es,el,"bin","⨿","\\amalg"),ei(es,el,"bin","&","\\And"),ei(es,el,"rel","⟵","\\longleftarrow",!0),ei(es,el,"rel","⇐","\\Leftarrow",!0),ei(es,el,"rel","⟸","\\Longleftarrow",!0),ei(es,el,"rel","⟶","\\longrightarrow",!0),ei(es,el,"rel","⇒","\\Rightarrow",!0),ei(es,el,"rel","⟹","\\Longrightarrow",!0),ei(es,el,"rel","↔","\\leftrightarrow",!0),ei(es,el,"rel","⟷","\\longleftrightarrow",!0),ei(es,el,"rel","⇔","\\Leftrightarrow",!0),ei(es,el,"rel","⟺","\\Longleftrightarrow",!0),ei(es,el,"rel","↦","\\mapsto",!0),ei(es,el,"rel","⟼","\\longmapsto",!0),ei(es,el,"rel","↗","\\nearrow",!0),ei(es,el,"rel","↩","\\hookleftarrow",!0),ei(es,el,"rel","↪","\\hookrightarrow",!0),ei(es,el,"rel","↘","\\searrow",!0),ei(es,el,"rel","↼","\\leftharpoonup",!0),ei(es,el,"rel","⇀","\\rightharpoonup",!0),ei(es,el,"rel","↙","\\swarrow",!0),ei(es,el,"rel","↽","\\leftharpoondown",!0),ei(es,el,"rel","⇁","\\rightharpoondown",!0),ei(es,el,"rel","↖","\\nwarrow",!0),ei(es,el,"rel","⇌","\\rightleftharpoons",!0),ei(es,"ams","rel","≮","\\nless",!0),ei(es,"ams","rel","","\\@nleqslant"),ei(es,"ams","rel","","\\@nleqq"),ei(es,"ams","rel","⪇","\\lneq",!0),ei(es,"ams","rel","≨","\\lneqq",!0),ei(es,"ams","rel","","\\@lvertneqq"),ei(es,"ams","rel","⋦","\\lnsim",!0),ei(es,"ams","rel","⪉","\\lnapprox",!0),ei(es,"ams","rel","⊀","\\nprec",!0),ei(es,"ams","rel","⋠","\\npreceq",!0),ei(es,"ams","rel","⋨","\\precnsim",!0),ei(es,"ams","rel","⪹","\\precnapprox",!0),ei(es,"ams","rel","≁","\\nsim",!0),ei(es,"ams","rel","","\\@nshortmid"),ei(es,"ams","rel","∤","\\nmid",!0),ei(es,"ams","rel","⊬","\\nvdash",!0),ei(es,"ams","rel","⊭","\\nvDash",!0),ei(es,"ams","rel","⋪","\\ntriangleleft"),ei(es,"ams","rel","⋬","\\ntrianglelefteq",!0),ei(es,"ams","rel","⊊","\\subsetneq",!0),ei(es,"ams","rel","","\\@varsubsetneq"),ei(es,"ams","rel","⫋","\\subsetneqq",!0),ei(es,"ams","rel","","\\@varsubsetneqq"),ei(es,"ams","rel","≯","\\ngtr",!0),ei(es,"ams","rel","","\\@ngeqslant"),ei(es,"ams","rel","","\\@ngeqq"),ei(es,"ams","rel","⪈","\\gneq",!0),ei(es,"ams","rel","≩","\\gneqq",!0),ei(es,"ams","rel","","\\@gvertneqq"),ei(es,"ams","rel","⋧","\\gnsim",!0),ei(es,"ams","rel","⪊","\\gnapprox",!0),ei(es,"ams","rel","⊁","\\nsucc",!0),ei(es,"ams","rel","⋡","\\nsucceq",!0),ei(es,"ams","rel","⋩","\\succnsim",!0),ei(es,"ams","rel","⪺","\\succnapprox",!0),ei(es,"ams","rel","≆","\\ncong",!0),ei(es,"ams","rel","","\\@nshortparallel"),ei(es,"ams","rel","∦","\\nparallel",!0),ei(es,"ams","rel","⊯","\\nVDash",!0),ei(es,"ams","rel","⋫","\\ntriangleright"),ei(es,"ams","rel","⋭","\\ntrianglerighteq",!0),ei(es,"ams","rel","","\\@nsupseteqq"),ei(es,"ams","rel","⊋","\\supsetneq",!0),ei(es,"ams","rel","","\\@varsupsetneq"),ei(es,"ams","rel","⫌","\\supsetneqq",!0),ei(es,"ams","rel","","\\@varsupsetneqq"),ei(es,"ams","rel","⊮","\\nVdash",!0),ei(es,"ams","rel","⪵","\\precneqq",!0),ei(es,"ams","rel","⪶","\\succneqq",!0),ei(es,"ams","rel","","\\@nsubseteqq"),ei(es,"ams","bin","⊴","\\unlhd"),ei(es,"ams","bin","⊵","\\unrhd"),ei(es,"ams","rel","↚","\\nleftarrow",!0),ei(es,"ams","rel","↛","\\nrightarrow",!0),ei(es,"ams","rel","⇍","\\nLeftarrow",!0),ei(es,"ams","rel","⇏","\\nRightarrow",!0),ei(es,"ams","rel","↮","\\nleftrightarrow",!0),ei(es,"ams","rel","⇎","\\nLeftrightarrow",!0),ei(es,"ams","rel","△","\\vartriangle"),ei(es,"ams",ev,"ℏ","\\hslash"),ei(es,"ams",ev,"▽","\\triangledown"),ei(es,"ams",ev,"◊","\\lozenge"),ei(es,"ams",ev,"Ⓢ","\\circledS"),ei(es,"ams",ev,"\xae","\\circledR"),ei(eo,"ams",ev,"\xae","\\circledR"),ei(es,"ams",ev,"∡","\\measuredangle",!0),ei(es,"ams",ev,"∄","\\nexists"),ei(es,"ams",ev,"℧","\\mho"),ei(es,"ams",ev,"Ⅎ","\\Finv",!0),ei(es,"ams",ev,"⅁","\\Game",!0),ei(es,"ams",ev,"‵","\\backprime"),ei(es,"ams",ev,"▲","\\blacktriangle"),ei(es,"ams",ev,"▼","\\blacktriangledown"),ei(es,"ams",ev,"■","\\blacksquare"),ei(es,"ams",ev,"⧫","\\blacklozenge"),ei(es,"ams",ev,"★","\\bigstar"),ei(es,"ams",ev,"∢","\\sphericalangle",!0),ei(es,"ams",ev,"∁","\\complement",!0),ei(es,"ams",ev,"\xf0","\\eth",!0),ei(eo,el,ev,"\xf0","\xf0"),ei(es,"ams",ev,"╱","\\diagup"),ei(es,"ams",ev,"╲","\\diagdown"),ei(es,"ams",ev,"□","\\square"),ei(es,"ams",ev,"□","\\Box"),ei(es,"ams",ev,"◊","\\Diamond"),ei(es,"ams",ev,"\xa5","\\yen",!0),ei(eo,"ams",ev,"\xa5","\\yen",!0),ei(es,"ams",ev,"✓","\\checkmark",!0),ei(eo,"ams",ev,"✓","\\checkmark"),ei(es,"ams",ev,"ℶ","\\beth",!0),ei(es,"ams",ev,"ℸ","\\daleth",!0),ei(es,"ams",ev,"ℷ","\\gimel",!0),ei(es,"ams",ev,"ϝ","\\digamma",!0),ei(es,"ams",ev,"ϰ","\\varkappa"),ei(es,"ams",ed,"┌","\\@ulcorner",!0),ei(es,"ams",em,"┐","\\@urcorner",!0),ei(es,"ams",ed,"└","\\@llcorner",!0),ei(es,"ams",em,"┘","\\@lrcorner",!0),ei(es,"ams","rel","≦","\\leqq",!0),ei(es,"ams","rel","⩽","\\leqslant",!0),ei(es,"ams","rel","⪕","\\eqslantless",!0),ei(es,"ams","rel","≲","\\lesssim",!0),ei(es,"ams","rel","⪅","\\lessapprox",!0),ei(es,"ams","rel","≊","\\approxeq",!0),ei(es,"ams","bin","⋖","\\lessdot"),ei(es,"ams","rel","⋘","\\lll",!0),ei(es,"ams","rel","≶","\\lessgtr",!0),ei(es,"ams","rel","⋚","\\lesseqgtr",!0),ei(es,"ams","rel","⪋","\\lesseqqgtr",!0),ei(es,"ams","rel","≑","\\doteqdot"),ei(es,"ams","rel","≓","\\risingdotseq",!0),ei(es,"ams","rel","≒","\\fallingdotseq",!0),ei(es,"ams","rel","∽","\\backsim",!0),ei(es,"ams","rel","⋍","\\backsimeq",!0),ei(es,"ams","rel","⫅","\\subseteqq",!0),ei(es,"ams","rel","⋐","\\Subset",!0),ei(es,"ams","rel","⊏","\\sqsubset",!0),ei(es,"ams","rel","≼","\\preccurlyeq",!0),ei(es,"ams","rel","⋞","\\curlyeqprec",!0),ei(es,"ams","rel","≾","\\precsim",!0),ei(es,"ams","rel","⪷","\\precapprox",!0),ei(es,"ams","rel","⊲","\\vartriangleleft"),ei(es,"ams","rel","⊴","\\trianglelefteq"),ei(es,"ams","rel","⊨","\\vDash",!0),ei(es,"ams","rel","⊪","\\Vvdash",!0),ei(es,"ams","rel","⌣","\\smallsmile"),ei(es,"ams","rel","⌢","\\smallfrown"),ei(es,"ams","rel","≏","\\bumpeq",!0),ei(es,"ams","rel","≎","\\Bumpeq",!0),ei(es,"ams","rel","≧","\\geqq",!0),ei(es,"ams","rel","⩾","\\geqslant",!0),ei(es,"ams","rel","⪖","\\eqslantgtr",!0),ei(es,"ams","rel","≳","\\gtrsim",!0),ei(es,"ams","rel","⪆","\\gtrapprox",!0),ei(es,"ams","bin","⋗","\\gtrdot"),ei(es,"ams","rel","⋙","\\ggg",!0),ei(es,"ams","rel","≷","\\gtrless",!0),ei(es,"ams","rel","⋛","\\gtreqless",!0),ei(es,"ams","rel","⪌","\\gtreqqless",!0),ei(es,"ams","rel","≖","\\eqcirc",!0),ei(es,"ams","rel","≗","\\circeq",!0),ei(es,"ams","rel","≜","\\triangleq",!0),ei(es,"ams","rel","∼","\\thicksim"),ei(es,"ams","rel","≈","\\thickapprox"),ei(es,"ams","rel","⫆","\\supseteqq",!0),ei(es,"ams","rel","⋑","\\Supset",!0),ei(es,"ams","rel","⊐","\\sqsupset",!0),ei(es,"ams","rel","≽","\\succcurlyeq",!0),ei(es,"ams","rel","⋟","\\curlyeqsucc",!0),ei(es,"ams","rel","≿","\\succsim",!0),ei(es,"ams","rel","⪸","\\succapprox",!0),ei(es,"ams","rel","⊳","\\vartriangleright"),ei(es,"ams","rel","⊵","\\trianglerighteq"),ei(es,"ams","rel","⊩","\\Vdash",!0),ei(es,"ams","rel","∣","\\shortmid"),ei(es,"ams","rel","∥","\\shortparallel"),ei(es,"ams","rel","≬","\\between",!0),ei(es,"ams","rel","⋔","\\pitchfork",!0),ei(es,"ams","rel","∝","\\varpropto"),ei(es,"ams","rel","◀","\\blacktriangleleft"),ei(es,"ams","rel","∴","\\therefore",!0),ei(es,"ams","rel","∍","\\backepsilon"),ei(es,"ams","rel","▶","\\blacktriangleright"),ei(es,"ams","rel","∵","\\because",!0),ei(es,"ams","rel","⋘","\\llless"),ei(es,"ams","rel","⋙","\\gggtr"),ei(es,"ams","bin","⊲","\\lhd"),ei(es,"ams","bin","⊳","\\rhd"),ei(es,"ams","rel","≂","\\eqsim",!0),ei(es,el,"rel","⋈","\\Join"),ei(es,"ams","rel","≑","\\Doteq",!0),ei(es,"ams","bin","∔","\\dotplus",!0),ei(es,"ams","bin","∖","\\smallsetminus"),ei(es,"ams","bin","⋒","\\Cap",!0),ei(es,"ams","bin","⋓","\\Cup",!0),ei(es,"ams","bin","⩞","\\doublebarwedge",!0),ei(es,"ams","bin","⊟","\\boxminus",!0),ei(es,"ams","bin","⊞","\\boxplus",!0),ei(es,"ams","bin","⋇","\\divideontimes",!0),ei(es,"ams","bin","⋉","\\ltimes",!0),ei(es,"ams","bin","⋊","\\rtimes",!0),ei(es,"ams","bin","⋋","\\leftthreetimes",!0),ei(es,"ams","bin","⋌","\\rightthreetimes",!0),ei(es,"ams","bin","⋏","\\curlywedge",!0),ei(es,"ams","bin","⋎","\\curlyvee",!0),ei(es,"ams","bin","⊝","\\circleddash",!0),ei(es,"ams","bin","⊛","\\circledast",!0),ei(es,"ams","bin","⋅","\\centerdot"),ei(es,"ams","bin","⊺","\\intercal",!0),ei(es,"ams","bin","⋒","\\doublecap"),ei(es,"ams","bin","⋓","\\doublecup"),ei(es,"ams","bin","⊠","\\boxtimes",!0),ei(es,"ams","rel","⇢","\\dashrightarrow",!0),ei(es,"ams","rel","⇠","\\dashleftarrow",!0),ei(es,"ams","rel","⇇","\\leftleftarrows",!0),ei(es,"ams","rel","⇆","\\leftrightarrows",!0),ei(es,"ams","rel","⇚","\\Lleftarrow",!0),ei(es,"ams","rel","↞","\\twoheadleftarrow",!0),ei(es,"ams","rel","↢","\\leftarrowtail",!0),ei(es,"ams","rel","↫","\\looparrowleft",!0),ei(es,"ams","rel","⇋","\\leftrightharpoons",!0),ei(es,"ams","rel","↶","\\curvearrowleft",!0),ei(es,"ams","rel","↺","\\circlearrowleft",!0),ei(es,"ams","rel","↰","\\Lsh",!0),ei(es,"ams","rel","⇈","\\upuparrows",!0),ei(es,"ams","rel","↿","\\upharpoonleft",!0),ei(es,"ams","rel","⇃","\\downharpoonleft",!0),ei(es,el,"rel","⊶","\\origof",!0),ei(es,el,"rel","⊷","\\imageof",!0),ei(es,"ams","rel","⊸","\\multimap",!0),ei(es,"ams","rel","↭","\\leftrightsquigarrow",!0),ei(es,"ams","rel","⇉","\\rightrightarrows",!0),ei(es,"ams","rel","⇄","\\rightleftarrows",!0),ei(es,"ams","rel","↠","\\twoheadrightarrow",!0),ei(es,"ams","rel","↣","\\rightarrowtail",!0),ei(es,"ams","rel","↬","\\looparrowright",!0),ei(es,"ams","rel","↷","\\curvearrowright",!0),ei(es,"ams","rel","↻","\\circlearrowright",!0),ei(es,"ams","rel","↱","\\Rsh",!0),ei(es,"ams","rel","⇊","\\downdownarrows",!0),ei(es,"ams","rel","↾","\\upharpoonright",!0),ei(es,"ams","rel","⇂","\\downharpoonright",!0),ei(es,"ams","rel","⇝","\\rightsquigarrow",!0),ei(es,"ams","rel","⇝","\\leadsto"),ei(es,"ams","rel","⇛","\\Rrightarrow",!0),ei(es,"ams","rel","↾","\\restriction"),ei(es,el,ev,"‘","`"),ei(es,el,ev,"$","\\$"),ei(eo,el,ev,"$","\\$"),ei(eo,el,ev,"$","\\textdollar"),ei(es,el,ev,"%","\\%"),ei(eo,el,ev,"%","\\%"),ei(es,el,ev,"_","\\_"),ei(eo,el,ev,"_","\\_"),ei(eo,el,ev,"_","\\textunderscore"),ei(es,el,ev,"∠","\\angle",!0),ei(es,el,ev,"∞","\\infty",!0),ei(es,el,ev,"′","\\prime"),ei(es,el,ev,"△","\\triangle"),ei(es,el,ev,"Γ","\\Gamma",!0),ei(es,el,ev,"Δ","\\Delta",!0),ei(es,el,ev,"Θ","\\Theta",!0),ei(es,el,ev,"Λ","\\Lambda",!0),ei(es,el,ev,"Ξ","\\Xi",!0),ei(es,el,ev,"Π","\\Pi",!0),ei(es,el,ev,"Σ","\\Sigma",!0),ei(es,el,ev,"Υ","\\Upsilon",!0),ei(es,el,ev,"Φ","\\Phi",!0),ei(es,el,ev,"Ψ","\\Psi",!0),ei(es,el,ev,"Ω","\\Omega",!0),ei(es,el,ev,"A","Α"),ei(es,el,ev,"B","Β"),ei(es,el,ev,"E","Ε"),ei(es,el,ev,"Z","Ζ"),ei(es,el,ev,"H","Η"),ei(es,el,ev,"I","Ι"),ei(es,el,ev,"K","Κ"),ei(es,el,ev,"M","Μ"),ei(es,el,ev,"N","Ν"),ei(es,el,ev,"O","Ο"),ei(es,el,ev,"P","Ρ"),ei(es,el,ev,"T","Τ"),ei(es,el,ev,"X","Χ"),ei(es,el,ev,"\xac","\\neg",!0),ei(es,el,ev,"\xac","\\lnot"),ei(es,el,ev,"⊤","\\top"),ei(es,el,ev,"⊥","\\bot"),ei(es,el,ev,"∅","\\emptyset"),ei(es,"ams",ev,"∅","\\varnothing"),ei(es,el,eu,"α","\\alpha",!0),ei(es,el,eu,"β","\\beta",!0),ei(es,el,eu,"γ","\\gamma",!0),ei(es,el,eu,"δ","\\delta",!0),ei(es,el,eu,"ϵ","\\epsilon",!0),ei(es,el,eu,"ζ","\\zeta",!0),ei(es,el,eu,"η","\\eta",!0),ei(es,el,eu,"θ","\\theta",!0),ei(es,el,eu,"ι","\\iota",!0),ei(es,el,eu,"κ","\\kappa",!0),ei(es,el,eu,"λ","\\lambda",!0),ei(es,el,eu,"μ","\\mu",!0),ei(es,el,eu,"ν","\\nu",!0),ei(es,el,eu,"ξ","\\xi",!0),ei(es,el,eu,"ο","\\omicron",!0),ei(es,el,eu,"π","\\pi",!0),ei(es,el,eu,"ρ","\\rho",!0),ei(es,el,eu,"σ","\\sigma",!0),ei(es,el,eu,"τ","\\tau",!0),ei(es,el,eu,"υ","\\upsilon",!0),ei(es,el,eu,"ϕ","\\phi",!0),ei(es,el,eu,"χ","\\chi",!0),ei(es,el,eu,"ψ","\\psi",!0),ei(es,el,eu,"ω","\\omega",!0),ei(es,el,eu,"ε","\\varepsilon",!0),ei(es,el,eu,"ϑ","\\vartheta",!0),ei(es,el,eu,"ϖ","\\varpi",!0),ei(es,el,eu,"ϱ","\\varrho",!0),ei(es,el,eu,"ς","\\varsigma",!0),ei(es,el,eu,"φ","\\varphi",!0),ei(es,el,"bin","∗","*",!0),ei(es,el,"bin","+","+"),ei(es,el,"bin","−","-",!0),ei(es,el,"bin","⋅","\\cdot",!0),ei(es,el,"bin","∘","\\circ",!0),ei(es,el,"bin","\xf7","\\div",!0),ei(es,el,"bin","\xb1","\\pm",!0),ei(es,el,"bin","\xd7","\\times",!0),ei(es,el,"bin","∩","\\cap",!0),ei(es,el,"bin","∪","\\cup",!0),ei(es,el,"bin","∖","\\setminus",!0),ei(es,el,"bin","∧","\\land"),ei(es,el,"bin","∨","\\lor"),ei(es,el,"bin","∧","\\wedge",!0),ei(es,el,"bin","∨","\\vee",!0),ei(es,el,ev,"√","\\surd"),ei(es,el,ed,"⟨","\\langle",!0),ei(es,el,ed,"∣","\\lvert"),ei(es,el,ed,"∥","\\lVert"),ei(es,el,em,"?","?"),ei(es,el,em,"!","!"),ei(es,el,em,"⟩","\\rangle",!0),ei(es,el,em,"∣","\\rvert"),ei(es,el,em,"∥","\\rVert"),ei(es,el,"rel","=","="),ei(es,el,"rel",":",":"),ei(es,el,"rel","≈","\\approx",!0),ei(es,el,"rel","≅","\\cong",!0),ei(es,el,"rel","≥","\\ge"),ei(es,el,"rel","≥","\\geq",!0),ei(es,el,"rel","←","\\gets"),ei(es,el,"rel",">","\\gt",!0),ei(es,el,"rel","∈","\\in",!0),ei(es,el,"rel","","\\@not"),ei(es,el,"rel","⊂","\\subset",!0),ei(es,el,"rel","⊃","\\supset",!0),ei(es,el,"rel","⊆","\\subseteq",!0),ei(es,el,"rel","⊇","\\supseteq",!0),ei(es,"ams","rel","⊈","\\nsubseteq",!0),ei(es,"ams","rel","⊉","\\nsupseteq",!0),ei(es,el,"rel","⊨","\\models"),ei(es,el,"rel","←","\\leftarrow",!0),ei(es,el,"rel","≤","\\le"),ei(es,el,"rel","≤","\\leq",!0),ei(es,el,"rel","<","\\lt",!0),ei(es,el,"rel","→","\\rightarrow",!0),ei(es,el,"rel","→","\\to"),ei(es,"ams","rel","≱","\\ngeq",!0),ei(es,"ams","rel","≰","\\nleq",!0),ei(es,el,ef,"\xa0","\\ "),ei(es,el,ef,"\xa0","\\space"),ei(es,el,ef,"\xa0","\\nobreakspace"),ei(eo,el,ef,"\xa0","\\ "),ei(eo,el,ef,"\xa0"," "),ei(eo,el,ef,"\xa0","\\space"),ei(eo,el,ef,"\xa0","\\nobreakspace"),ei(es,el,ef,"","\\nobreak"),ei(es,el,ef,"","\\allowbreak"),ei(es,el,eg,",",","),ei(es,el,eg,";",";"),ei(es,"ams","bin","⊼","\\barwedge",!0),ei(es,"ams","bin","⊻","\\veebar",!0),ei(es,el,"bin","⊙","\\odot",!0),ei(es,el,"bin","⊕","\\oplus",!0),ei(es,el,"bin","⊗","\\otimes",!0),ei(es,el,ev,"∂","\\partial",!0),ei(es,el,"bin","⊘","\\oslash",!0),ei(es,"ams","bin","⊚","\\circledcirc",!0),ei(es,"ams","bin","⊡","\\boxdot",!0),ei(es,el,"bin","△","\\bigtriangleup"),ei(es,el,"bin","▽","\\bigtriangledown"),ei(es,el,"bin","†","\\dagger"),ei(es,el,"bin","⋄","\\diamond"),ei(es,el,"bin","⋆","\\star"),ei(es,el,"bin","◃","\\triangleleft"),ei(es,el,"bin","▹","\\triangleright"),ei(es,el,ed,"{","\\{"),ei(eo,el,ev,"{","\\{"),ei(eo,el,ev,"{","\\textbraceleft"),ei(es,el,em,"}","\\}"),ei(eo,el,ev,"}","\\}"),ei(eo,el,ev,"}","\\textbraceright"),ei(es,el,ed,"{","\\lbrace"),ei(es,el,em,"}","\\rbrace"),ei(es,el,ed,"[","\\lbrack",!0),ei(eo,el,ev,"[","\\lbrack",!0),ei(es,el,em,"]","\\rbrack",!0),ei(eo,el,ev,"]","\\rbrack",!0),ei(es,el,ed,"(","\\lparen",!0),ei(es,el,em,")","\\rparen",!0),ei(eo,el,ev,"<","\\textless",!0),ei(eo,el,ev,">","\\textgreater",!0),ei(es,el,ed,"⌊","\\lfloor",!0),ei(es,el,em,"⌋","\\rfloor",!0),ei(es,el,ed,"⌈","\\lceil",!0),ei(es,el,em,"⌉","\\rceil",!0),ei(es,el,ev,"\\","\\backslash"),ei(es,el,ev,"∣","|"),ei(es,el,ev,"∣","\\vert"),ei(eo,el,ev,"|","\\textbar",!0),ei(es,el,ev,"∥","\\|"),ei(es,el,ev,"∥","\\Vert"),ei(eo,el,ev,"∥","\\textbardbl"),ei(eo,el,ev,"~","\\textasciitilde"),ei(eo,el,ev,"\\","\\textbackslash"),ei(eo,el,ev,"^","\\textasciicircum"),ei(es,el,"rel","↑","\\uparrow",!0),ei(es,el,"rel","⇑","\\Uparrow",!0),ei(es,el,"rel","↓","\\downarrow",!0),ei(es,el,"rel","⇓","\\Downarrow",!0),ei(es,el,"rel","↕","\\updownarrow",!0),ei(es,el,"rel","⇕","\\Updownarrow",!0),ei(es,el,ep,"∐","\\coprod"),ei(es,el,ep,"⋁","\\bigvee"),ei(es,el,ep,"⋀","\\bigwedge"),ei(es,el,ep,"⨄","\\biguplus"),ei(es,el,ep,"⋂","\\bigcap"),ei(es,el,ep,"⋃","\\bigcup"),ei(es,el,ep,"∫","\\int"),ei(es,el,ep,"∫","\\intop"),ei(es,el,ep,"∬","\\iint"),ei(es,el,ep,"∭","\\iiint"),ei(es,el,ep,"∏","\\prod"),ei(es,el,ep,"∑","\\sum"),ei(es,el,ep,"⨂","\\bigotimes"),ei(es,el,ep,"⨁","\\bigoplus"),ei(es,el,ep,"⨀","\\bigodot"),ei(es,el,ep,"∮","\\oint"),ei(es,el,ep,"∯","\\oiint"),ei(es,el,ep,"∰","\\oiiint"),ei(es,el,ep,"⨆","\\bigsqcup"),ei(es,el,ep,"∫","\\smallint"),ei(eo,el,ec,"…","\\textellipsis"),ei(es,el,ec,"…","\\mathellipsis"),ei(eo,el,ec,"…","\\ldots",!0),ei(es,el,ec,"…","\\ldots",!0),ei(es,el,ec,"⋯","\\@cdots",!0),ei(es,el,ec,"⋱","\\ddots",!0),ei(es,el,ev,"⋮","\\varvdots"),ei(eo,el,ev,"⋮","\\varvdots"),ei(es,el,eh,"ˊ","\\acute"),ei(es,el,eh,"ˋ","\\grave"),ei(es,el,eh,"\xa8","\\ddot"),ei(es,el,eh,"~","\\tilde"),ei(es,el,eh,"ˉ","\\bar"),ei(es,el,eh,"˘","\\breve"),ei(es,el,eh,"ˇ","\\check"),ei(es,el,eh,"^","\\hat"),ei(es,el,eh,"⃗","\\vec"),ei(es,el,eh,"˙","\\dot"),ei(es,el,eh,"˚","\\mathring"),ei(es,el,eu,"","\\@imath"),ei(es,el,eu,"","\\@jmath"),ei(es,el,ev,"ı","ı"),ei(es,el,ev,"ȷ","ȷ"),ei(eo,el,ev,"ı","\\i",!0),ei(eo,el,ev,"ȷ","\\j",!0),ei(eo,el,ev,"\xdf","\\ss",!0),ei(eo,el,ev,"\xe6","\\ae",!0),ei(eo,el,ev,"œ","\\oe",!0),ei(eo,el,ev,"\xf8","\\o",!0),ei(eo,el,ev,"\xc6","\\AE",!0),ei(eo,el,ev,"Œ","\\OE",!0),ei(eo,el,ev,"\xd8","\\O",!0),ei(eo,el,eh,"ˊ","\\'"),ei(eo,el,eh,"ˋ","\\`"),ei(eo,el,eh,"ˆ","\\^"),ei(eo,el,eh,"˜","\\~"),ei(eo,el,eh,"ˉ","\\="),ei(eo,el,eh,"˘","\\u"),ei(eo,el,eh,"˙","\\."),ei(eo,el,eh,"\xb8","\\c"),ei(eo,el,eh,"˚","\\r"),ei(eo,el,eh,"ˇ","\\v"),ei(eo,el,eh,"\xa8",'\\"'),ei(eo,el,eh,"˝","\\H"),ei(eo,el,eh,"◯","\\textcircled");var eb={"--":!0,"---":!0,"``":!0,"''":!0};ei(eo,el,ev,"–","--",!0),ei(eo,el,ev,"–","\\textendash"),ei(eo,el,ev,"—","---",!0),ei(eo,el,ev,"—","\\textemdash"),ei(eo,el,ev,"‘","`",!0),ei(eo,el,ev,"‘","\\textquoteleft"),ei(eo,el,ev,"’","'",!0),ei(eo,el,ev,"’","\\textquoteright"),ei(eo,el,ev,"“","``",!0),ei(eo,el,ev,"“","\\textquotedblleft"),ei(eo,el,ev,"”","''",!0),ei(eo,el,ev,"”","\\textquotedblright"),ei(es,el,ev,"\xb0","\\degree",!0),ei(eo,el,ev,"\xb0","\\degree"),ei(eo,el,ev,"\xb0","\\textdegree",!0),ei(es,el,ev,"\xa3","\\pounds"),ei(es,el,ev,"\xa3","\\mathsterling",!0),ei(eo,el,ev,"\xa3","\\pounds"),ei(eo,el,ev,"\xa3","\\textsterling",!0),ei(es,"ams",ev,"✠","\\maltese"),ei(eo,"ams",ev,"✠","\\maltese");for(var ey='0123456789/@."',ex=0;ex{var t=(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320)+65536;if(119808<=t&&t<120484)return ej[Math.floor((t-119808)/26)];if(120782<=t&&t<=120831)return eW[Math.floor((t-120782)/10)];if(120485===t||120486===t)return ej[0];if(120486{if(F(e.classes)!==F(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||0!==e.italic&&e.hasClass("mathnormal"))return!1;if(1===e.classes.length){var r=e.classes[0];if("mbin"===r||"mord"===r)return!1}for(var a of Object.keys(e.style))if(e.style[a]!==t.style[a])return!1;for(var n of Object.keys(t.style))if(e.style[n]!==t.style[n])return!1;return!0},eQ=e=>{for(var t=0;tt&&(t=i.height),i.depth>r&&(r=i.depth),i.maxFontSize>a&&(a=i.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=a},e1=function(e,t,r,a){var n=new Y(e,t,r,a);return e0(n),n},e4=(e,t,r,a)=>new Y(e,t,r,a),e5=function(e,t,r){var a=e1([e],[],t);return a.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),a.style.borderBottomWidth=L(a.height),a.maxFontSize=1,a},e6=function(e,t,r,a){var n=new j(e,t,r,a);return e0(n),n},e7=function(e){var t=new E(e);return e0(t),t},e3=function(e,t){return e instanceof E?e1([],[e],t):e},e8=function(e){if("individualShift"===e.positionType){for(var t,r=e.children,a=[r[0]],n=-r[0].shift-r[0].elem.depth,i=n,s=1;s{var r=e1(["mspace"],[],t),a=N(e,t);return r.style.marginRight=L(a),r},te=(e,t,r)=>{var a;switch(e){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=e}return a+"-"+("textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===r?"Italic":"Regular")},tt={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},tr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ta=function(e,t){var[r,a,n]=tr[e],i=e4(["overlay"],[new Z([new K(r)],{width:L(a),height:L(n),style:"width:"+L(a),viewBox:"0 0 "+1e3*a+" "+1e3*n,preserveAspectRatio:"xMinYMin"})],t);return i.height=n,i.style.height=L(n),i.style.width=L(a),i},tn={number:3,unit:"mu"},ti={number:4,unit:"mu"},ts={number:5,unit:"mu"},to={mord:{mop:tn,mbin:ti,mrel:ts,minner:tn},mop:{mord:tn,mop:tn,mrel:ts,minner:tn},mbin:{mord:ti,mop:ti,mopen:ti,minner:ti},mrel:{mord:ts,mop:ts,mopen:ts,minner:ts},mopen:{},mclose:{mop:tn,mbin:ti,mrel:ts,minner:tn},mpunct:{mord:tn,mop:tn,mrel:ts,mopen:tn,mclose:tn,mpunct:tn,minner:tn},minner:{mord:tn,mop:tn,mbin:ti,mrel:ts,mopen:tn,mpunct:tn,minner:tn}},tl={mord:{mop:tn},mop:{mord:tn,mop:tn},mbin:{},mrel:{},mopen:{},mclose:{mop:tn},mpunct:{},minner:{mop:tn}},th={},tm={},tc={};function tu(e){for(var{type:t,names:r,props:a,handler:n,htmlBuilder:i,mathmlBuilder:s}=e,o={type:t,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:void 0===a.allowedInMath||a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:n},l=0;l{var r=t.classes[0],a=e.classes[0];"mbin"===r&&tv.has(a)?t.classes[0]="mord":"mbin"===a&&tf.has(r)&&(e.classes[0]="mord")},{node:m},c,u),tw(n,(e,t)=>{var r,a,n=tS(t),i=tS(e),s=n&&i?e.hasClass("mtight")?null==(r=tl[n])?void 0:r[i]:null==(a=to[n])?void 0:a[i]:null;if(s)return e9(s,l)},{node:m},c,u),n},tw=function(e,t,r,a,n){a&&e.push(a);for(var i=0;i{e.splice(a+1,0,t),i++}}a&&e.pop()},tk=function(e){return e instanceof E||e instanceof j||e instanceof Y&&e.hasClass("enclosing")?e:null},tz=function(e,t){var r=tk(e);if(r){var a=r.children;if(a.length){if("right"===t)return tz(a[a.length-1],"right");else if("left"===t)return tz(a[0],"left")}}return e},tS=function(e,t){return e?(t&&(e=tz(e,t)),ty[e.classes[0]]||null):null},tM=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return e1(t.concat(r))},tA=function(e,t,r){if(!e)return e1();if(tm[e.type]){var n=tm[e.type](e,t);if(r&&t.size!==r.size){n=e1(t.sizingClasses(r),[n],t);var i=t.sizeMultiplier/r.sizeMultiplier;n.height*=i,n.depth*=i}return n}throw new a("Got group of unknown type: '"+e.type+"'")};function tT(e,t){var r=e1(["base"],e,t),a=e1(["strut"]);return a.style.height=L(r.height+r.depth),r.depth&&(a.style.verticalAlign=L(-r.depth)),r.children.unshift(a),r}function tC(e,t){var r,a,n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);var i=tx(e,t,"root");2===i.length&&i[1].hasClass("tag")&&(r=i.pop());for(var s=[],o=[],l=0;l0&&(s.push(tT(o,t)),o=[]),s.push(i[l]));o.length>0&&s.push(tT(o,t)),n?((a=tT(tx(n,t,!0),t)).classes=["tag"],s.push(a)):r&&s.push(r);var m=e1(["katex-html"],s);if(m.setAttribute("aria-hidden","true"),a){var c=a.children[0];c.style.height=L(m.height+m.depth),m.depth&&(c.style.verticalAlign=L(-m.depth))}return m}class tB{constructor(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=F(this.classes));for(var r=0;r0&&(e+=' class ="'+c(F(this.classes))+'"'),e+=">";for(var r=0;r")}toText(){return this.children.map(e=>e.toText()).join("")}}class tq{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return c(this.toText())}toText(){return this.text}}class tI{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",L(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var tR=new Set(["\\imath","\\jmath"]),tE=new Set(["mrow","mtable"]),tH=function(e,t,r){return en[t][e]&&en[t][e].replace&&55349!==e.charCodeAt(0)&&!(eb.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.slice(4,6)||r.font&&"tt"===r.font.slice(4,6)))&&(e=en[t][e].replace),new tq(e)},tO=function(e){return 1===e.length?e[0]:new tB("mrow",e)},tD={mathit:"italic",boldsymbol:e=>"textord"===e.type?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},tN=(e,t)=>{if("text"===e.mode){if("texttt"===t.fontFamily)return"monospace";else if("textsf"===t.fontFamily)if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"sans-serif-bold-italic";else if("textit"===t.fontShape)return"sans-serif-italic";else if("textbf"===t.fontWeight)return"bold-sans-serif";else return"sans-serif";else if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";else if("textit"===t.fontShape)return"italic";else if("textbf"===t.fontWeight)return"bold"}var r=t.font;if(!r||"mathnormal"===r)return null;var a=e.mode,n=tD[r];if(n)return"function"==typeof n?n(e):n;var i=e.text;if(tR.has(i))return null;if(en[a][i]){var s=en[a][i].replace;s&&(i=s)}return er(i,tt[r].fontName,a)?tt[r].variant:null};function tL(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof tq&&"."===t.text}if("mo"!==e.type||1!==e.children.length||"true"!==e.getAttribute("separator")||"0em"!==e.getAttribute("lspace")||"0em"!==e.getAttribute("rspace"))return!1;var r=e.children[0];return r instanceof tq&&","===r.text}var tF=function(e,t,r){if(1===e.length){var a,n=tV(e[0],t);return r&&n instanceof tB&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var i=[],s=0;s=1&&("mn"===a.type||tL(a))){var l=o.children[0];l instanceof tB&&"mn"===l.type&&(l.children=[...a.children,...l.children],i.pop())}else if("mi"===a.type&&1===a.children.length){var h=a.children[0];if(h instanceof tq&&"̸"===h.text&&("mo"===o.type||"mi"===o.type||"mn"===o.type)){var m=o.children[0];m instanceof tq&&m.text.length>0&&(m.text=m.text.slice(0,1)+"̸"+m.text.slice(1),i.pop())}}}i.push(o),a=o}return i},tP=function(e,t,r){return tO(tF(e,t,r))},tV=function(e,t){if(!e)return new tB("mrow");if(tc[e.type])return tc[e.type](e,t);throw new a("Got group of unknown type: '"+e.type+"'")};function tG(e,t,r,a,n){var i,s=tF(e,r);i=1===s.length&&s[0]instanceof tB&&tE.has(s[0].type)?s[0]:new tB("mrow",s);var o=new tB("annotation",[new tq(t)]);o.setAttribute("encoding","application/x-tex");var l=new tB("semantics",[i,o]),h=new tB("math",[l]);return h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&h.setAttribute("display","block"),e1([n?"katex":"katex-mathml"],[h])}var tU=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],tX=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],tY=function(e,t){return t.size<2?e:tU[e-1][t.size-1]};class tj{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||tj.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=tX[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(t,e),new tj(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:tY(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:tX[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=tY(tj.BASESIZE,e);return this.size===t&&this.textSize===tj.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==tj.BASESIZE?["sizing","reset-size"+this.size,"size"+tj.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!ea[t=e>=5?0:e>=3?1:2]){var r=ea[t]={cssEmPerMu:ee.quad[t]/18};for(var a in ee)ee.hasOwnProperty(a)&&(r[a]=ee[a][t])}return ea[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}tj.BASESIZE=6;var tW=function(e){return new tj({style:e.displayMode?M.DISPLAY:M.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},t_=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=e1(r,[e])}return e},t$=function(e,t,r){var a=tW(r);return"mathml"===r.output?tG(e,t,a,r.displayMode,!0):t_("html"===r.output?e1(["katex"],[tC(e,a)]):e1(["katex"],[tG(e,t,a,r.displayMode,!1),tC(e,a)]),r)},tZ={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},tK=function(e){var t=new tB("mo",[new tq(tZ[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},tJ={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},tQ=new Set(["widehat","widecheck","widetilde","utilde"]),t0=function(e,t){var{span:r,minWidth:a,height:n}=function(){var r=4e5,a=e.label.slice(1);if(tQ.has(a)&&"base"in e){var n,i,s,o="ordgroup"===e.base.type?e.base.body.length:1;if(o>5)"widehat"===a||"widecheck"===a?(n=420,r=2364,s=.42,i=a+"4"):(n=312,r=2340,s=.34,i="tilde4");else{var l=[1,1,2,2,3,3][o];"widehat"===a||"widecheck"===a?(r=[0,1062,2364,2364,2364][l],n=[0,239,300,360,420][l],s=[0,.24,.3,.3,.36,.42][l],i=a+l):(r=[0,600,1033,2339,2340][l],n=[0,260,286,306,312][l],s=[0,.26,.286,.3,.306,.34][l],i="tilde"+l)}return{span:e4([],[new Z([new K(i)],{width:"100%",height:L(s),viewBox:"0 0 "+r+" "+n,preserveAspectRatio:"none"})],t),minWidth:0,height:s}}var h,m,c=[],u=tJ[a];if(!u)throw Error('No SVG data for "'+a+'".');var[p,d,g]=u,f=g/1e3,v=p.length;if(1===v){if(4!==u.length)throw Error('Expected 4-tuple for single-path SVG data "'+a+'".');h=["hide-tail"],m=[u[3]]}else if(2===v)h=["halfarrow-left","halfarrow-right"],m=["xMinYMin","xMaxYMin"];else if(3===v)h=["brace-left","brace-center","brace-right"],m=["xMinYMin","xMidYMin","xMaxYMin"];else throw Error("Correct katexImagesData or update code here to support\n                    "+v+" children.");for(var b=0;b0&&(r.style.minWidth=L(a)),r},t1=function(e,t,r,a,n){var i,s=e.height+e.depth+r+a;if(/fbox|color|angl/.test(t)){if(i=e1(["stretchy",t],[],n),"fbox"===t){var o=n.color&&n.getColor();o&&(i.style.borderColor=o)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new J({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new J({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"})),i=e4([],[new Z(l,{width:"100%",height:L(s)})],n)}return i.height=s,i.style.height=L(s),i},t4={bin:1,close:1,inner:1,open:1,punct:1,rel:1},t5={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function t6(e,t){if(!e||e.type!==t)throw Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function t7(e){var t=t3(e);if(!t)throw Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function t3(e){return e&&("atom"===e.type||t5.hasOwnProperty(e.type))?e:null}var t8=e=>e instanceof $?e:(e=>e instanceof Y||e instanceof j||e instanceof E)(e)&&1===e.children.length?t8(e.children[0]):void 0,t2=(e,t)=>{e&&"supsub"===e.type?(o=(l=t6(e.base,"accent")).base,e.base=o,h=function(e){if(e instanceof Y)return e;throw Error("Expected span but got "+String(e)+".")}(tA(e,t)),e.base=l):o=(l=t6(e,"accent")).base;var r=tA(o,t.havingCrampedStyle()),a=l.isShifty&&d(o),n=0;a&&(n=null!=(m=null==(c=t8(r))?void 0:c.skew)?m:0);var i="\\c"===l.label,s=i?r.height+r.depth:Math.min(r.height,t.fontMetrics().xHeight);if(l.isStretchy)g=e2({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"elem",elem:g=t0(l,t),wrapperClasses:["svg-align"],wrapperStyle:n>0?{width:"calc(100% - "+L(2*n)+")",marginLeft:L(2*n)}:void 0}]});else{"\\vec"===l.label?(u=ta("vec",t),p=tr.vec[1]):((u=function(e){if(e instanceof $)return e;throw Error("Expected symbolNode but got "+String(e)+".")}(u=eK({type:"textord",mode:l.mode,text:l.label},t,"textord"))).italic=0,p=u.width,i&&(s+=u.depth));var o,l,h,m,c,u,p,g=e1(["accent-body"],[u]),f="\\textcircled"===l.label;f&&(g.classes.push("accent-full"),s=r.height);var v=n;f||(v-=p/2),g.style.left=L(v),"\\textcircled"===l.label&&(g.style.top=".2em"),g=e2({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:-s},{type:"elem",elem:g}]})}var b=e1(["mord","accent"],[g],t);return h?(h.children[0]=b,h.height=Math.max(b.height,h.height),h.classes[0]="mord",h):b},t9=(e,t)=>{var r=e.isStretchy?tK(e.label):new tB("mo",[tH(e.label,e.mode)]),a=new tB("mover",[tV(e.base,t),r]);return a.setAttribute("accent","true"),a},re=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));tu({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=td(t[0]),a=!re.test(e.funcName),n=!a||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:n,base:r}},htmlBuilder:t2,mathmlBuilder:t9}),tu({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],a=e.parser.mode;return"math"===a&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:t2,mathmlBuilder:t9}),tu({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"accentUnder",mode:r.mode,label:a,base:n}},htmlBuilder:(e,t)=>{var r=tA(e.base,t),a=t0(e,t),n=.12*("\\utilde"===e.label);return e1(["mord","accentunder"],[e2({positionType:"top",positionData:r.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:r}]})],t)},mathmlBuilder:(e,t)=>{var r=tK(e.label),a=new tB("munder",[tV(e.base,t),r]);return a.setAttribute("accentunder","true"),a}});var rt=e=>{var t=new tB("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};function rr(e,t){var r=tx(e.body,t,!0);return e1([e.mclass],r,t)}function ra(e,t){var r,a=tF(e.body,t);return"minner"===e.mclass?r=new tB("mpadded",a):"mord"===e.mclass?e.isCharacterBox?(r=a[0]).type="mi":r=new tB("mi",a):(e.isCharacterBox?(r=a[0]).type="mo":r=new tB("mo",a),"mbin"===e.mclass?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0em"):"minner"===e.mclass&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}tu({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a,funcName:n}=e;return{type:"xArrow",mode:a.mode,label:n,body:t[0],below:r[0]}},htmlBuilder(e,t){var r,a,n=t.style,i=t.havingStyle(n.sup()),s=e3(tA(e.body,i,t),t),o="\\x"===e.label.slice(0,2)?"x":"cd";s.classes.push(o+"-arrow-pad"),e.below&&(i=t.havingStyle(n.sub()),(r=e3(tA(e.below,i,t),t)).classes.push(o+"-arrow-pad"));var l=t0(e,t),h=-t.fontMetrics().axisHeight+.5*l.height,m=-t.fontMetrics().axisHeight-.5*l.height-.111;if((s.depth>.25||"\\xleftequilibrium"===e.label)&&(m-=s.depth),r){var c=-t.fontMetrics().axisHeight+r.height+.5*l.height+.111;a=e2({positionType:"individualShift",children:[{type:"elem",elem:s,shift:m},{type:"elem",elem:l,shift:h,wrapperClasses:["svg-align"]},{type:"elem",elem:r,shift:c}]})}else a=e2({positionType:"individualShift",children:[{type:"elem",elem:s,shift:m},{type:"elem",elem:l,shift:h,wrapperClasses:["svg-align"]}]});return e1(["mrel","x-arrow"],[a],t)},mathmlBuilder(e,t){var r,a=tK(e.label);if(a.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var n=rt(tV(e.body,t));r=e.below?new tB("munderover",[a,rt(tV(e.below,t)),n]):new tB("mover",[a,n])}else r=e.below?new tB("munder",[a,rt(tV(e.below,t))]):new tB("mover",[a,r=rt()]);return r}}),tu({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+a.slice(5),body:tg(n),isCharacterBox:d(n)}},htmlBuilder:rr,mathmlBuilder:ra});var rn=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"===t.type&&("bin"===t.family||"rel"===t.family)?"m"+t.family:"mord"};tu({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:rn(t[0]),body:tg(t[1]),isCharacterBox:d(t[1])}}}),tu({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var r,{parser:a,funcName:n}=e,i=t[1],s=t[0];r="\\stackrel"!==n?rn(i):"mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==n,body:tg(i)},l={type:"supsub",mode:s.mode,base:o,sup:"\\underset"===n?null:s,sub:"\\underset"===n?s:null};return{type:"mclass",mode:a.mode,mclass:r,body:[l],isCharacterBox:d(l)}},htmlBuilder:rr,mathmlBuilder:ra}),tu({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:rn(t[0]),body:tg(t[0])}},htmlBuilder(e,t){var r=tx(e.body,t,!0),a=e1([e.mclass],r,t);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(e,t){var r=new tB("mstyle",tF(e.body,t));return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var ri={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},rs=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),ro=e=>"textord"===e.type&&"@"===e.text,rl=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;tu({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"cdlabel",mode:r.mode,side:a.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),a=e3(tA(e.label,r,t),t);return a.classes.push("cd-label-"+e.side),a.style.bottom=L(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(e,t){var r=new tB("mrow",[tV(e.label,t)]);return(r=new tB("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new tB("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),tu({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=e3(tA(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:(e,t)=>new tB("mrow",[tV(e.fragment,t)])}),tu({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var r,{parser:n}=e,i=t6(t[0],"ordgroup").body,s="",o=0;o=1114111)throw new a("\\@char with invalid code point "+s);return l<=65535?r=String.fromCharCode(l):(l-=65536,r=String.fromCharCode((l>>10)+55296,(1023&l)+56320)),{type:"textord",mode:n.mode,text:r}}});var rh=(e,t)=>e7(tx(e.body,t.withColor(e.color),!1)),rm=(e,t)=>{var r=new tB("mstyle",tF(e.body,t.withColor(e.color)));return r.setAttribute("mathcolor",e.color),r};tu({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,a=t6(t[0],"color-token").color,n=t[1];return{type:"color",mode:r.mode,color:a,body:tg(n)}},htmlBuilder:rh,mathmlBuilder:rm}),tu({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:a}=e,n=t6(t[0],"color-token").color;r.gullet.macros.set("\\current@color",n);var i=r.parseExpression(!0,a);return{type:"color",mode:r.mode,color:n,body:i}},htmlBuilder:rh,mathmlBuilder:rm}),tu({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:a}=e,n="["===a.gullet.future().text?a.parseSizeGroup(!0):null,i=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:i,size:n&&t6(n,"size").value}},htmlBuilder(e,t){var r=e1(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=L(N(e.size,t)))),r},mathmlBuilder(e,t){var r=new tB("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",L(N(e.size,t)))),r}});var rc={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},ru=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new a("Expected a control sequence",e);return t},rp=(e,t,r,a)=>{var n=e.gullet.macros.get(r.text);null==n&&(r.noexpand=!0,n={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,n,a)};tu({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(rc[n.text])return("\\global"===r||"\\\\globallong"===r)&&(n.text=rc[n.text]),t6(t.parseFunction(),"internal");throw new a("Invalid token after macro prefix",n)}}),tu({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var t,{parser:r,funcName:n}=e,i=r.gullet.popToken(),s=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(s))throw new a("Expected a control sequence",i);for(var o=0,l=[[]];"{"!==r.gullet.future().text;)if("#"===(i=r.gullet.popToken()).text){if("{"===r.gullet.future().text){t=r.gullet.future(),l[o].push("{");break}if(i=r.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new a('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==o+1)throw new a('Argument number "'+i.text+'" out of order');o++,l.push([])}else if("EOF"===i.text)throw new a("Expected a macro definition");else l[o].push(i.text);var{tokens:h}=r.gullet.consumeArg();return t&&h.unshift(t),("\\edef"===n||"\\xdef"===n)&&(h=r.gullet.expandTokens(h)).reverse(),r.gullet.macros.set(s,{tokens:h,numArgs:o,delimiters:l},n===rc[n]),{type:"internal",mode:r.mode}}}),tu({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var t,{parser:r,funcName:a}=e,n=ru(r.gullet.popToken());r.gullet.consumeSpaces();var i=("="===(t=r.gullet.popToken()).text&&" "===(t=r.gullet.popToken()).text&&(t=r.gullet.popToken()),t);return rp(r,n,i,"\\\\globallet"===a),{type:"internal",mode:r.mode}}}),tu({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=ru(t.gullet.popToken()),n=t.gullet.popToken(),i=t.gullet.popToken();return rp(t,a,i,"\\\\globalfuture"===r),t.gullet.pushToken(i),t.gullet.pushToken(n),{type:"internal",mode:t.mode}}});var rd=function(e,t,r){var a=er(en.math[e]&&en.math[e].replace||e,t,r);if(!a)throw Error("Unsupported symbol "+e+" and font size "+t+".");return a},rg=function(e,t,r,a){var n=r.havingBaseStyle(t),i=e1(a.concat(n.sizingClasses(r)),[e],r),s=n.sizeMultiplier/r.sizeMultiplier;return i.height*=s,i.depth*=s,i.maxFontSize=n.sizeMultiplier,i},rf=function(e,t,r){var a=t.havingBaseStyle(r),n=(1-t.sizeMultiplier/a.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=L(n),e.height-=n,e.depth+=n},rv=function(e,t,r,a,n,i){var s=rg(e$(e,"Main-Regular",n,a),t,a,i);return r&&rf(s,a,t),s},rb=function(e,t,r,a,n,i){var s=e$(e,"Size"+t+"-Regular",n,a),o=rg(e1(["delimsizing","size"+t],[s],a),M.TEXT,a,i);return r&&rf(o,a,M.TEXT),o},ry=function(e,t,r){return{type:"elem",elem:e1(["delimsizinginner","Size1-Regular"===t?"delim-size1":"delim-size4"],[e1([],[e$(e,t,r)])])}},rx=function(e,t,r){var a=Q["Size4-Regular"][e.charCodeAt(0)]?Q["Size4-Regular"][e.charCodeAt(0)][4]:Q["Size1-Regular"][e.charCodeAt(0)][4],n=e4([],[new Z([new K("inner",q(e,Math.round(1e3*t)))],{width:L(a),height:L(t),style:"width:"+L(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"})],r);return n.height=t,n.style.height=L(t),n.style.width=L(a),{type:"elem",elem:n}},rw={type:"kern",size:-.008},rk=new Set(["|","\\lvert","\\rvert","\\vert"]),rz=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),rS=function(e,t,r,a,n,i){var s,o,l,h,m="",c=0;s=l=h=e,o=null;var u="Size1-Regular";"\\uparrow"===e?l=h="⏐":"\\Uparrow"===e?l=h="‖":"\\downarrow"===e?s=l="⏐":"\\Downarrow"===e?s=l="‖":"\\updownarrow"===e?(s="\\uparrow",l="⏐",h="\\downarrow"):"\\Updownarrow"===e?(s="\\Uparrow",l="‖",h="\\Downarrow"):rk.has(e)?(l="∣",m="vert",c=333):rz.has(e)?(l="∥",m="doublevert",c=556):"["===e||"\\lbrack"===e?(s="⎡",l="⎢",h="⎣",u="Size4-Regular",m="lbrack",c=667):"]"===e||"\\rbrack"===e?(s="⎤",l="⎥",h="⎦",u="Size4-Regular",m="rbrack",c=667):"\\lfloor"===e||"⌊"===e?(l=s="⎢",h="⎣",u="Size4-Regular",m="lfloor",c=667):"\\lceil"===e||"⌈"===e?(s="⎡",l=h="⎢",u="Size4-Regular",m="lceil",c=667):"\\rfloor"===e||"⌋"===e?(l=s="⎥",h="⎦",u="Size4-Regular",m="rfloor",c=667):"\\rceil"===e||"⌉"===e?(s="⎤",l=h="⎥",u="Size4-Regular",m="rceil",c=667):"("===e||"\\lparen"===e?(s="⎛",l="⎜",h="⎝",u="Size4-Regular",m="lparen",c=875):")"===e||"\\rparen"===e?(s="⎞",l="⎟",h="⎠",u="Size4-Regular",m="rparen",c=875):"\\{"===e||"\\lbrace"===e?(s="⎧",o="⎨",h="⎩",l="⎪",u="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(s="⎫",o="⎬",h="⎭",l="⎪",u="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(s="⎧",h="⎩",l="⎪",u="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(s="⎫",h="⎭",l="⎪",u="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(s="⎧",h="⎭",l="⎪",u="Size4-Regular"):("\\rmoustache"===e||"⎱"===e)&&(s="⎫",h="⎩",l="⎪",u="Size4-Regular");var p=rd(s,u,n),d=p.height+p.depth,g=rd(l,u,n),f=g.height+g.depth,v=rd(h,u,n),b=v.height+v.depth,y=0,x=1;if(null!==o){var w=rd(o,u,n);y=w.height+w.depth,x=2}var k=d+b+y,z=Math.max(0,Math.ceil((t-k)/(x*f))),S=k+z*x*f,A=a.fontMetrics().axisHeight;r&&(A*=a.sizeMultiplier);var T=S/2-A,C=[];if(m.length>0){var B=Math.round(1e3*S),q=R(m,Math.round(1e3*(S-d-b))),I=new K(m,q),E=L(c/1e3),H=L(B/1e3),O=e4([],[new Z([I],{width:E,height:H,viewBox:"0 0 "+c+" "+B})],a);O.height=B/1e3,O.style.width=E,O.style.height=H,C.push({type:"elem",elem:O})}else{if(C.push(ry(h,u,n)),C.push(rw),null===o)C.push(rx(l,S-d-b+.016,a));else{var D=(S-d-b-y)/2+.016;C.push(rx(l,D,a)),C.push(rw),C.push(ry(o,u,n)),C.push(rw),C.push(rx(l,D,a))}C.push(rw),C.push(ry(s,u,n))}var N=a.havingBaseStyle(M.TEXT);return rg(e1(["delimsizing","mult"],[e2({positionType:"bottom",positionData:T,children:C})],N),M.TEXT,a,i)},rM=function(e,t,r,a,n){var i=B(e,a,r);return e4(["hide-tail"],[new Z([new K(e,i)],{width:"400em",height:L(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"})],n)},rA=function(e,t){var r,a,n,i,s,o=t.havingBaseSizing(),l=rD("\\surd",e*o.sizeMultiplier,rH,o),h=o.sizeMultiplier,m=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness);return"small"===l.type?(i=1e3+1e3*m+80,e<1?h=1:e<1.4&&(h=.7),a=(1+m+.08)/h,n=(1+m)/h,(r=rM("sqrtMain",a,i,m,t)).style.minWidth="0.853em",s=.833/h):"large"===l.type?(i=1080*rq[l.size],n=(rq[l.size]+m)/h,a=(rq[l.size]+m+.08)/h,(r=rM("sqrtSize"+l.size,a,i,m,t)).style.minWidth="1.02em",s=1/h):(a=e+m+.08,n=e+m,(r=rM("sqrtTall",a,i=Math.floor(1e3*e+m)+80,m,t)).style.minWidth="0.742em",s=1.056),r.height=n,r.style.height=L(a),{span:r,advanceWidth:s,ruleWidth:(t.fontMetrics().sqrtRuleThickness+m)*h}},rT=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),rC=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),rB=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),rq=[0,1.2,1.8,2.4,3],rI=function(e,t,r,n,i){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":(">"===e||"\\gt"===e||"⟩"===e)&&(e="\\rangle"),rT.has(e)||rB.has(e))return rb(e,t,!1,r,n,i);if(rC.has(e))return rS(e,rq[t],!1,r,n,i);throw new a("Illegal delimiter: '"+e+"'")},rR=[{type:"small",style:M.SCRIPTSCRIPT},{type:"small",style:M.SCRIPT},{type:"small",style:M.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],rE=[{type:"small",style:M.SCRIPTSCRIPT},{type:"small",style:M.SCRIPT},{type:"small",style:M.TEXT},{type:"stack"}],rH=[{type:"small",style:M.SCRIPTSCRIPT},{type:"small",style:M.SCRIPT},{type:"small",style:M.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],rO=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw Error("Add support for delim type '"+e.type+"' here.")},rD=function(e,t,r,a){for(var n=Math.min(2,3-a.style.size),i=n;it)return s}return r[r.length-1]},rN=function(e,t,r,a,n,i){"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":(">"===e||"\\gt"===e||"⟩"===e)&&(e="\\rangle");var s=rB.has(e)?rR:rT.has(e)?rH:rE,o=rD(e,t,s,a);return"small"===o.type?rv(e,o.style,r,a,n,i):"large"===o.type?rb(e,o.size,r,a,n,i):rS(e,t,r,a,n,i)},rL=function(e,t,r,a,n,i){var s=a.fontMetrics().axisHeight*a.sizeMultiplier,o=5/a.fontMetrics().ptPerEm,l=Math.max(t-s,r+s);return rN(e,Math.max(l/500*901,2*l-o),!0,a,n,i)},rF={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},rP=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function rV(e){return"isMiddle"in e}function rG(e,t){var r=t3(e);if(r&&rP.has(r.text))return r;if(r)throw new a("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e);throw new a("Invalid delimiter type '"+e.type+"'",e)}function rU(e){if(!e.body)throw Error("Bug: The leftright ParseNode wasn't fully parsed.")}tu({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=rG(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:rF[e.funcName].size,mclass:rF[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>"."===e.delim?e1([e.mclass]):rI(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(tH(e.delim,e.mode));var r=new tB("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var a=L(rq[e.size]);return r.setAttribute("minsize",a),r.setAttribute("maxsize",a),r}}),tu({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new a("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:rG(t[0],e).text,color:r}}}),tu({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=rG(t[0],e),a=e.parser;++a.leftrightDepth;var n=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var i=t6(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:n,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{rU(e);for(var r,a,n=tx(e.body,t,!0,["mopen","mclose"]),i=0,s=0,o=!1,l=0;l{rU(e);var r=tF(e.body,t);if("."!==e.left){var a=new tB("mo",[tH(e.left,e.mode)]);a.setAttribute("fence","true"),r.unshift(a)}if("."!==e.right){var n=new tB("mo",[tH(e.right,e.mode)]);n.setAttribute("fence","true"),e.rightColor&&n.setAttribute("mathcolor",e.rightColor),r.push(n)}return tO(r)}}),tu({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=rG(t[0],e);if(!e.parser.leftrightDepth)throw new a("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;return"."===e.delim?r=tM(t,[]):(r=rI(e.delim,1,t,e.mode,[])).isMiddle={delim:e.delim,options:t},r},mathmlBuilder:(e,t)=>{var r=new tB("mo",["\\vert"===e.delim||"|"===e.delim?tH("|","text"):tH(e.delim,e.mode)]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var rX=(e,t)=>{var r,a=e3(tA(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,s=d(e.body);if("sout"===n)(c=e1(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/i,u=-.5*t.fontMetrics().xHeight;else if("phase"===n){var o=N({number:.6,unit:"pt"},t),l=N({number:.35,unit:"ex"},t);i/=t.havingBaseSizing().sizeMultiplier;var h=a.height+a.depth+o+l;a.style.paddingLeft=L(h/2+o);var m=Math.floor(1e3*h*i);(c=e4(["hide-tail"],[new Z([new K("phase","M400000 "+m+" H0 L"+m/2+" 0 l65 45 L145 "+(m-80)+" H400000z")],{width:"400em",height:L(m/1e3),viewBox:"0 0 400000 "+m,preserveAspectRatio:"xMinYMin slice"})],t)).style.height=L(h),u=a.depth+o+l}else{/cancel/.test(n)?s||a.classes.push("cancel-pad"):"angl"===n?a.classes.push("anglpad"):a.classes.push("boxpad");var c,u,p,g,f=0;/box/.test(n)?(f=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),g=p=t.fontMetrics().fboxsep+("colorbox"===n?0:f)):"angl"===n?(p=4*(f=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),g=Math.max(0,.25-a.depth)):g=p=.2*!!s,c=t1(a,n,p,g,t),/fbox|boxed|fcolorbox/.test(n)?(c.style.borderStyle="solid",c.style.borderWidth=L(f)):"angl"===n&&.049!==f&&(c.style.borderTopWidth=L(f),c.style.borderRightWidth=L(f)),u=a.depth+g,e.backgroundColor&&(c.style.backgroundColor=e.backgroundColor,e.borderColor&&(c.style.borderColor=e.borderColor))}return(r=e.backgroundColor?e2({positionType:"individualShift",children:[{type:"elem",elem:c,shift:u},{type:"elem",elem:a,shift:0}]}):e2({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:c,shift:u,wrapperClasses:/cancel|phase/.test(n)?["svg-align"]:[]}]}),/cancel/.test(n)&&(r.height=a.height,r.depth=a.depth),/cancel/.test(n)&&!s)?e1(["mord","cancel-lap"],[r],t):e1(["mord"],[r],t)},rY=(e,t)=>{var r,a=new tB(e.label.includes("colorbox")?"mpadded":"menclose",[tV(e.body,t)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*r+"pt"),a.setAttribute("height","+"+2*r+"pt"),a.setAttribute("lspace",r+"pt"),a.setAttribute("voffset",r+"pt"),"\\fcolorbox"===e.label){var n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);a.setAttribute("style","border: "+L(n)+" solid "+e.borderColor)}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&a.setAttribute("mathbackground",e.backgroundColor),a};tu({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(e,t,r){var{parser:a,funcName:n}=e,i=t6(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:a.mode,label:n,backgroundColor:i,body:s}},htmlBuilder:rX,mathmlBuilder:rY}),tu({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(e,t,r){var{parser:a,funcName:n}=e,i=t6(t[0],"color-token").color,s=t6(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:a.mode,label:n,backgroundColor:s,borderColor:i,body:o}},htmlBuilder:rX,mathmlBuilder:rY}),tu({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),tu({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"enclose",mode:r.mode,label:a,body:n}},htmlBuilder:rX,mathmlBuilder:rY}),tu({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e;"math"===r.mode&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var n=t[0];return{type:"enclose",mode:r.mode,label:a,body:n}},htmlBuilder:rX,mathmlBuilder:rY}),tu({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var rj={};function rW(e){for(var{type:t,names:r,props:a,handler:n,htmlBuilder:i,mathmlBuilder:s}=e,o={type:t,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},l=0;l{if(!e.parser.settings.displayMode)throw new a("{"+e.envName+"} can be used only in display mode.")},rQ=new Set(["gather","gather*"]);function r0(e){if(!e.includes("ed"))return!e.includes("*")}function r1(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:s,arraystretch:o,colSeparationType:l,autoTag:h,singleRow:m,emptySingleRow:c,maxNumCols:u,leqno:p}=t;if(e.gullet.beginGroup(),m||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var d=e.gullet.expandMacroAsText("\\arraystretch");if(null==d)o=1;else if(!(o=parseFloat(d))||o<0)throw new a("Invalid \\arraystretch: "+d)}e.gullet.beginGroup();var g=[],f=[g],v=[],b=[],y=null!=h?[]:void 0;function x(){h&&e.gullet.macros.set("\\@eqnsw","1",!0)}function w(){y&&(e.gullet.macros.get("\\df@tag")?(y.push(e.subparse([new rZ("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):y.push(!!h&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(x(),b.push(rK(e));;){var k=e.parseExpression(!1,m?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var z={type:"ordgroup",mode:e.mode,body:k};r&&(z={type:"styling",mode:e.mode,style:r,resetFont:!0,body:[z]}),g.push(z);var S=e.fetch().text;if("&"===S){if(u&&g.length===u)if(m||l)throw new a("Too many tab characters: &",e.nextToken);else e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.");e.consume()}else if("\\end"===S){w(),1===g.length&&"styling"===z.type&&1===z.body.length&&"ordgroup"===z.body[0].type&&0===z.body[0].body.length&&(f.length>1||!c)&&f.pop(),b.length0&&(f+=.25),o.push({pos:f,isDashed:e[t]})}for(v(n[0]),H=0;H0&&(x<(S+=g)&&(x=S),S=0),e.addJot&&He))for(H=0;H=i)){var K=void 0;(O>0||e.hskipBeforeAndAfter)&&0!==(K=null!=(G=null==(U=j)?void 0:U.pregap)?G:m)&&((D=e1(["arraycolsep"],[])).style.width=L(K),C.push(D));var J=[];for(H=0;H0){for(var ei=e5("hline",t,l),es=e5("hdashline",t,l),eo=[{type:"elem",elem:en,shift:0}];o.length>0;){var el=o.pop(),eh=el.pos-A;el.isDashed?eo.push({type:"elem",elem:es,shift:eh}):eo.push({type:"elem",elem:ei,shift:eh})}en=e2({positionType:"individualShift",children:eo})}return 0===B.length?e1(["mord"],[en],t):e7([en,e1(["tag"],[e2({positionType:"individualShift",children:B})],t)])},r6={c:"center ",l:"left ",r:"right "},r7=function(e,t){for(var r=[],a=new tB("mtd",[],["mtr-glue"]),n=new tB("mtd",[],["mml-eqn-num"]),i=0;i0){var p=e.cols,d="",g=!1,f=0,v=p.length;"separator"===p[0].type&&(c+="top ",f=1),"separator"===p[p.length-1].type&&(c+="bottom ",v-=1);for(var b=f;b0?"left ":"")+(S[S.length-1].length>0?"right ":"");for(var M=1;M0&&u&&(g=1),r[p]={type:"align",align:d,pregap:g,postgap:0}}return s.colSeparationType=u?"align":"alignat",s};rW({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=(t3(t[0])?[t[0]]:t6(t[0],"ordgroup").body).map(function(e){var t=t7(e).text;if("lcr".includes(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new a("Unknown column alignment: "+t,e)}),n={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return r1(e.parser,n,r4(e.envName))},htmlBuilder:r5,mathmlBuilder:r7}),rW({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if("*"===e.envName.charAt(e.envName.length-1)){var i=e.parser;if(i.consumeSpaces(),"["===i.fetch().text){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new a("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var s=r1(e.parser,n,r4(e.envName)),o=Math.max(0,...s.body.map(e=>e.length));return s.cols=Array(o).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:r5,mathmlBuilder:r7}),rW({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=r1(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:r5,mathmlBuilder:r7}),rW({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=(t3(t[0])?[t[0]]:t6(t[0],"ordgroup").body).map(function(e){var t=t7(e).text;if("lc".includes(t))return{type:"align",align:t};throw new a("Unknown column alignment: "+t,e)});if(r.length>1)throw new a("{subarray} can contain only one column");var n=r1(e.parser,{cols:r,hskipBeforeAndAfter:!1,arraystretch:.5},"script");if(n.body.length>0&&n.body[0].length>1)throw new a("{subarray} can contain only one column");return n},htmlBuilder:r5,mathmlBuilder:r7}),rW({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=r1(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r4(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:r5,mathmlBuilder:r7}),rW({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:r3,htmlBuilder:r5,mathmlBuilder:r7}),rW({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){rQ.has(e.envName)&&rJ(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:r0(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return r1(e.parser,t,"display")},htmlBuilder:r5,mathmlBuilder:r7}),rW({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:r3,htmlBuilder:r5,mathmlBuilder:r7}),rW({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){rJ(e);var t={autoTag:r0(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return r1(e.parser,t,"display")},htmlBuilder:r5,mathmlBuilder:r7}),rW({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(rJ(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if("&"===r||"\\\\"===r)e.consume();else if("\\end"===r){0===t[t.length-1].length&&t.pop();break}else throw new a("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],s=0;sAV".includes(m))for(var u=0;u<2;u++){for(var p=!0,d=h+1;dAV=|." after @',o[h]);var g={type:"styling",body:[function(e,t,r){var a=ri[e];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(a,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var n=r.callFunction("\\\\cdleft",[t[0]],[]),i=r.callFunction("\\Big",[{type:"atom",text:a,mode:"math",family:"rel"}],[]),s=r.callFunction("\\\\cdright",[t[1]],[]);return r.callFunction("\\\\cdparent",[{type:"ordgroup",mode:"math",body:[n,i,s]}],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}(m,c,e)],mode:"math",style:"display",resetFont:!0};n.push(g),l=rs()}else l.body.push(o[h]);s%2==0?n.push(l):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var f=Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:f,colSeparationType:"CD",hLinesBeforeRow:Array(i.length+1).fill([])}}(e.parser)),htmlBuilder:r5,mathmlBuilder:r7}),r_["\\nonumber"]="\\gdef\\@eqnsw{0}",r_["\\notag"]="\\nonumber",tu({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new a(e.funcName+" valid only within array environment")}}),tu({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];if("ordgroup"!==i.type)throw new a("Invalid environment name",i);for(var s="",o=0;o{var r=e.font,a=t.withFont(r);return tA(e.body,a)},r2=(e,t)=>{var r=e.font,a=t.withFont(r);return tV(e.body,a)},r9={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};tu({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=td(t[0]),i=a;return i in r9&&(i=r9[i]),{type:"font",mode:r.mode,font:i.slice(1),body:n}},htmlBuilder:r8,mathmlBuilder:r2}),tu({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"mclass",mode:r.mode,mclass:rn(a),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:a}],isCharacterBox:d(a)}}}),tu({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a,breakOnTokenText:n}=e,{mode:i}=r,s=r.parseExpression(!0,n);return{type:"font",mode:i,font:"math"+a.slice(1),body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:r8,mathmlBuilder:r2});var ae=(e,t)=>t?{type:"styling",mode:e.mode,style:t,body:[e]}:e;tu({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var r,{parser:a,funcName:n}=e,i=t[0],s=t[1],o=null,l=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":r=!0;break;case"\\\\atopfrac":r=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":r=!1,o="(",l=")";break;case"\\\\bracefrac":r=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":r=!1,o="[",l="]";break;default:throw Error("Unrecognized genfrac command")}var h="\\cfrac"===n,m=null;return h||n.startsWith("\\d")?m="display":n.startsWith("\\t")&&(m="text"),ae({type:"genfrac",mode:a.mode,numer:i,denom:s,continued:h,hasBarLine:r,leftDelim:o,rightDelim:l,barSize:null},m)},htmlBuilder:(e,t)=>{var r,a,n,i,s,o,l,h,m,c,u,p=t.style,d=p.fracNum(),g=p.fracDen();r=t.havingStyle(d);var f=tA(e.numer,r,t);if(e.continued){var v=8.5/t.fontMetrics().ptPerEm,b=3.5/t.fontMetrics().ptPerEm;f.height=f.height0?3*i:7*i,l=t.fontMetrics().denom1):(n>0?(s=t.fontMetrics().num2,o=i):(s=t.fontMetrics().num3,o=3*i),l=t.fontMetrics().denom2),a){var x=t.fontMetrics().axisHeight;s-f.depth-(x+.5*n){var r=new tB("mfrac",[tV(e.numer,t),tV(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var a=N(e.barSize,t);r.setAttribute("linethickness",L(a))}}else r.setAttribute("linethickness","0px");if(null!=e.leftDelim||null!=e.rightDelim){var n=[];if(null!=e.leftDelim){var i=new tB("mo",[new tq(e.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),n.push(i)}if(n.push(r),null!=e.rightDelim){var s=new tB("mo",[new tq(e.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),n.push(s)}return tO(n)}return r}}),tu({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:r,funcName:a,token:n}=e;switch(a){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:n}}});var at=["display","text","script","scriptscript"],ar=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};tu({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var r,{parser:a}=e,n=t[4],i=t[5],s=td(t[0]),o="atom"===s.type&&"open"===s.family?ar(s.text):null,l=td(t[1]),h="atom"===l.type&&"close"===l.family?ar(l.text):null,m=t6(t[2],"size"),c=null;r=!!m.isBlank||(c=m.value).number>0;var u=null,p=t[3];return"ordgroup"===p.type?p.body.length>0&&(u=at[Number(t6(p.body[0],"textord").text)]):u=at[Number((p=t6(p,"textord")).text)],ae({type:"genfrac",mode:a.mode,numer:n,denom:i,continued:!1,hasBarLine:r,barSize:c,leftDelim:o,rightDelim:h},u)}}),tu({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:a,token:n}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:t6(t[0],"size").value,token:n}}}),tu({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0],i=t6(t[1],"infix").size;if(!i)throw Error("\\\\abovefrac expected size, but got "+String(i));var s=t[2],o=i.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:s,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}});var aa=(e,t)=>{var r,a,n,i=t.style;"supsub"===e.type?(r=e.sup?tA(e.sup,t.havingStyle(i.sup()),t):tA(e.sub,t.havingStyle(i.sub()),t),a=t6(e.base,"horizBrace")):a=t6(e,"horizBrace");var s=tA(a.base,t.havingBaseStyle(M.DISPLAY)),o=t0(a,t);if(n=a.isOver?e2({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o,wrapperClasses:["svg-align"]}]}):e2({positionType:"bottom",positionData:s.depth+.1+o.height,children:[{type:"elem",elem:o,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:s}]}),r){var l=e1(["minner",a.isOver?"mover":"munder"],[n],t);n=a.isOver?e2({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]}):e2({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]})}return e1(["minner",a.isOver?"mover":"munder"],[n],t)};tu({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"horizBrace",mode:r.mode,label:a,isOver:a.includes("\\over"),base:t[0]}},htmlBuilder:aa,mathmlBuilder:(e,t)=>{var r=tK(e.label);return new tB(e.isOver?"mover":"munder",[tV(e.base,t),r])}}),tu({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[1],n=t6(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:r.mode,href:n,body:tg(a)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=tx(e.body,t,!1);return e6(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=tP(e.body,t);return r instanceof tB||(r=new tB("mrow",[r])),r.setAttribute("href",e.href),r}}),tu({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t6(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:a}))return r.formatUnsupportedCmd("\\url");for(var n=[],i=0;ie7(tx(e.body,t.withFont(""),!1)),mathmlBuilder:(e,t)=>new tB("mrow",tF(e.body,t.withFont("")))}),tu({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var r,{parser:n,funcName:i,token:s}=e,o=t6(t[0],"raw").string,l=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var h={};switch(i){case"\\htmlClass":h.class=o,r={command:"\\htmlClass",class:o};break;case"\\htmlId":h.id=o,r={command:"\\htmlId",id:o};break;case"\\htmlStyle":h.style=o,r={command:"\\htmlStyle",style:o};break;case"\\htmlData":for(var m=o.split(","),c=0;c{var r=tx(e.body,t,!1),a=["enclosing"];e.attributes.class&&a.push(...e.attributes.class.trim().split(/\s+/));var n=e1(a,r,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&n.setAttribute(i,e.attributes[i]);return n},mathmlBuilder:(e,t)=>tP(e.body,t)}),tu({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:tg(t[0]),mathml:tg(t[1])}},htmlBuilder:(e,t)=>e7(tx(e.html,t,!1)),mathmlBuilder:(e,t)=>tP(e.mathml,t)});var an=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new a("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!D(r))throw new a("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};tu({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},l="";if(r[0])for(var h=t6(r[0],"raw").string.split(","),m=0;m{var r=N(e.height,t),a=0;e.totalheight.number>0&&(a=N(e.totalheight,t)-r);var n=0;e.width.number>0&&(n=N(e.width,t));var i={height:L(r+a)};n>0&&(i.width=L(n)),a>0&&(i.verticalAlign=L(-a));var s=new W(e.src,e.alt,i);return s.height=r,s.depth=a,s},mathmlBuilder:(e,t)=>{var r=new tB("mglyph",[]);r.setAttribute("alt",e.alt);var a=N(e.height,t),n=0;if(e.totalheight.number>0&&(n=N(e.totalheight,t)-a,r.setAttribute("valign",L(-n))),r.setAttribute("height",L(a+n)),e.width.number>0){var i=N(e.width,t);r.setAttribute("width",L(i))}return r.setAttribute("src",e.src),r}}),tu({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,n=t6(t[0],"size");if(r.settings.strict){var i="m"===a[1],s="mu"===n.value.unit;i?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, not "+n.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:n.value}},htmlBuilder:(e,t)=>e9(e.dimension,t),mathmlBuilder:(e,t)=>new tI(N(e.dimension,t))}),tu({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"lap",mode:r.mode,alignment:a.slice(5),body:n}},htmlBuilder:(e,t)=>{"clap"===e.alignment?(r=e1([],[tA(e.body,t)]),r=e1(["inner"],[r],t)):r=e1(["inner"],[tA(e.body,t)]);var r,a=e1(["fix"],[]),n=e1([e.alignment],[r,a],t),i=e1(["strut"]);return i.style.height=L(n.height+n.depth),n.depth&&(i.style.verticalAlign=L(-n.depth)),n.children.unshift(i),n=e1(["thinbox"],[n],t),e1(["mord","vbox"],[n],t)},mathmlBuilder:(e,t)=>{var r=new tB("mpadded",[tV(e.body,t)]);if("rlap"!==e.alignment){var a="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",a+"width")}return r.setAttribute("width","0px"),r}}),tu({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:a}=e,n=a.mode;a.switchMode("math");var i="\\("===r?"\\)":"$",s=a.parseExpression(!1,i);return a.expect(i),a.switchMode(n),{type:"styling",mode:a.mode,style:"text",resetFont:!0,body:s}}}),tu({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new a("Mismatched "+e.funcName)}});var ai=(e,t)=>{switch(t.style.size){case M.DISPLAY.size:return e.display;case M.TEXT.size:return e.text;case M.SCRIPT.size:return e.script;case M.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};tu({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:tg(t[0]),text:tg(t[1]),script:tg(t[2]),scriptscript:tg(t[3])}},htmlBuilder:(e,t)=>e7(tx(ai(e,t),t,!1)),mathmlBuilder:(e,t)=>tP(ai(e,t),t)});var as=(e,t,r,a,n,i,s)=>{e=e1([],[e]);var o,l,h,m=r&&d(r);if(t){var c=tA(t,a.havingStyle(n.sup()),a);l={elem:c,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-c.depth)}}if(r){var u=tA(r,a.havingStyle(n.sub()),a);o={elem:u,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-u.height)}}if(l&&o)h=e2({positionType:"bottom",positionData:a.fontMetrics().bigOpSpacing5+o.elem.height+o.elem.depth+o.kern+e.depth+s,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:o.elem,marginLeft:L(-i)},{type:"kern",size:o.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:L(i)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]});else if(o)h=e2({positionType:"top",positionData:e.height-s,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:o.elem,marginLeft:L(-i)},{type:"kern",size:o.kern},{type:"elem",elem:e}]});else{if(!l)return e;h=e2({positionType:"bottom",positionData:e.depth+s,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:L(i)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]})}var p=[h];if(o&&0!==i&&!m){var g=e1(["mspace"],[],a);g.style.marginRight=L(i),p.unshift(g)}return e1(["mop","op-limits"],p,a)},ao=new Set(["\\smallint"]),al=(e,t)=>{var r,a,n,i,s,o,l=!1;"supsub"===e.type?(r=e.sup,a=e.sub,n=t6(e.base,"op"),l=!0):n=t6(e,"op");var h=t.style,m=!1;if(h.size===M.DISPLAY.size&&n.symbol&&!ao.has(n.name)&&(m=!0),n.symbol){var c=m?"Size2-Regular":"Size1-Regular",u="";("\\oiint"===n.name||"\\oiiint"===n.name)&&(u=n.name.slice(1),n.name="oiint"===u?"\\iint":"\\iiint"),s=(i=e$(n.name,c,"math",t,["mop","op-symbol",m?"large-op":"small-op"])).italic,u.length>0&&(i=e2({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:ta(u+"Size"+(m?"2":"1"),t),shift:.08*!!m}]}),n.name="\\"+u,i.classes.unshift("mop"),i.italic=s)}else if(n.body){var p=tx(n.body,t,!0);1===p.length&&p[0]instanceof $?(i=p[0]).classes[0]="mop":i=e1(["mop"],p,t)}else{for(var d=[],g=1;g{var r;if(e.symbol)r=new tB("mo",[tH(e.name,e.mode)]),ao.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new tB("mo",tF(e.body,t));else{r=new tB("mi",[new tq(e.name.slice(1))]);var a=new tB("mo",[tH("⁡","text")]);r=e.parentIsSupSub?new tB("mrow",[r,a]):new E([r,a])}return r},am={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};tu({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=a;return 1===n.length&&(n=am[n]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:al,mathmlBuilder:ah}),tu({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:tg(a)}},htmlBuilder:al,mathmlBuilder:ah});var ac={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};tu({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:al,mathmlBuilder:ah}),tu({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:al,mathmlBuilder:ah}),tu({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,a=r;return 1===a.length&&(a=ac[a]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:al,mathmlBuilder:ah});var au=(e,t)=>{var r,a,n,i,s=!1;if("supsub"===e.type?(r=e.sup,a=e.sub,n=t6(e.base,"operatorname"),s=!0):n=t6(e,"operatorname"),n.body.length>0){for(var o=tx(n.body.map(e=>{var t="text"in e?e.text:void 0;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),t.withFont("mathrm"),!0),l=0;l{var{parser:r,funcName:a}=e,n=t[0];return{type:"operatorname",mode:r.mode,body:tg(n),alwaysHandleSupSub:"\\operatornamewithlimits"===a,limits:!1,parentIsSupSub:!1}},htmlBuilder:au,mathmlBuilder:(e,t)=>{for(var r=tF(e.body,t.withFont("mathrm")),a=!0,n=0;ne.toText()).join(""))]);var o=new tB("mi",r);o.setAttribute("mathvariant","normal");var l=new tB("mo",[tH("⁡","text")]);return e.parentIsSupSub?new tB("mrow",[o,l]):new E([o,l])}}),r_["\\operatorname"]="\\@ifstar\\operatornamewithlimits\\operatorname@",tp({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?e7(tx(e.body,t,!1)):e1(["mord"],tx(e.body,t,!0),t),mathmlBuilder:(e,t)=>tP(e.body,t,!0)}),tu({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,a=t[0];return{type:"overline",mode:r.mode,body:a}},htmlBuilder(e,t){var r=tA(e.body,t.havingCrampedStyle()),a=e5("overline-line",t),n=t.fontMetrics().defaultRuleThickness;return e1(["mord","overline"],[e2({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*n},{type:"elem",elem:a},{type:"kern",size:n}]})],t)},mathmlBuilder(e,t){var r=new tB("mo",[new tq("‾")]);r.setAttribute("stretchy","true");var a=new tB("mover",[tV(e.body,t),r]);return a.setAttribute("accent","true"),a}}),tu({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"phantom",mode:r.mode,body:tg(a)}},htmlBuilder:(e,t)=>e7(tx(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new tB("mphantom",tF(e.body,t))}),r_["\\hphantom"]="\\smash{\\phantom{#1}}",tu({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"vphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=e1(["inner"],[tA(e.body,t.withPhantom())]),a=e1(["fix"],[]);return e1(["mord","rlap"],[r,a],t)},mathmlBuilder:(e,t)=>{var r=new tB("mphantom",tF(tg(e.body),t)),a=new tB("mpadded",[r]);return a.setAttribute("width","0px"),a}}),tu({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,a=t6(t[0],"size").value,n=t[1];return{type:"raisebox",mode:r.mode,dy:a,body:n}},htmlBuilder(e,t){var r=tA(e.body,t);return e2({positionType:"shift",positionData:-N(e.dy,t),children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new tB("mpadded",[tV(e.body,t)]),a=e.dy.number+e.dy.unit;return r.setAttribute("voffset",a),r}}),tu({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),tu({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:a}=e,n=r[0],i=t6(t[0],"size"),s=t6(t[1],"size");return{type:"rule",mode:a.mode,shift:n&&t6(n,"size").value,width:i.value,height:s.value}},htmlBuilder(e,t){var r=e1(["mord","rule"],[],t),a=N(e.width,t),n=N(e.height,t),i=e.shift?N(e.shift,t):0;return r.style.borderRightWidth=L(a),r.style.borderTopWidth=L(n),r.style.bottom=L(i),r.width=a,r.height=n+i,r.depth=-i,r.maxFontSize=1.125*n*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=N(e.width,t),a=N(e.height,t),n=e.shift?N(e.shift,t):0,i=t.color&&t.getColor()||"black",s=new tB("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",L(r)),s.setAttribute("height",L(a));var o=new tB("mpadded",[s]);return n>=0?o.setAttribute("height",L(n)):(o.setAttribute("height",L(n)),o.setAttribute("depth",L(-n))),o.setAttribute("voffset",L(n)),o}});var ad=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];tu({type:"sizing",names:ad,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:a,parser:n}=e,i=n.parseExpression(!1,r);return{type:"sizing",mode:n.mode,size:ad.indexOf(a)+1,body:i}},htmlBuilder:(e,t)=>{var r=t.havingSize(e.size);return ap(e.body,r,t)},mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),a=new tB("mstyle",tF(e.body,r));return a.setAttribute("mathsize",L(r.sizeMultiplier)),a}}),tu({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var a,{parser:n}=e,i=!1,s=!1,o=r[0]&&t6(r[0],"ordgroup");if(o)for(var l=0;l{var r=e1([],[tA(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return e1(["mord","smash"],[r],t);if(r.children)for(var a=0;a{var r=new tB("mpadded",[tV(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),tu({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a}=e,n=r[0],i=t[0];return{type:"sqrt",mode:a.mode,body:i,index:n}},htmlBuilder(e,t){var r=tA(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=e3(r,t);var a=t.fontMetrics().defaultRuleThickness,n=a;t.style.idr.height+r.depth+i&&(i=(i+h-r.height-r.depth)/2);var m=s.height-r.height-i-o;r.style.paddingLeft=L(l);var c=e2({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+m)},{type:"elem",elem:s},{type:"kern",size:o}]});if(!e.index)return e1(["mord","sqrt"],[c],t);var u=t.havingStyle(M.SCRIPTSCRIPT),p=tA(e.index,u,t),d=e1(["root"],[e2({positionType:"shift",positionData:-(.6*(c.height-c.depth)),children:[{type:"elem",elem:p}]})]);return e1(["mord","sqrt"],[d,c],t)},mathmlBuilder(e,t){var{body:r,index:a}=e;return a?new tB("mroot",[tV(r,t),tV(a,t)]):new tB("msqrt",[tV(r,t)])}});var ag={display:M.DISPLAY,text:M.TEXT,script:M.SCRIPT,scriptscript:M.SCRIPTSCRIPT};tu({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:a,parser:n}=e,i=n.parseExpression(!0,r),s=a.slice(1,a.length-5);if(!(s in ag))throw Error("Unknown style: "+s);return{type:"styling",mode:n.mode,style:s,body:i}},htmlBuilder(e,t){var r=ag[e.style],a=t.havingStyle(r);return e.resetFont&&(a=a.withFont("")),ap(e.body,a,t)},mathmlBuilder(e,t){var r=ag[e.style],a=t.havingStyle(r);e.resetFont&&(a=a.withFont(""));var n=new tB("mstyle",tF(e.body,a)),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return n.setAttribute("scriptlevel",i[0]),n.setAttribute("displaystyle",i[1]),n}});var af=function(e,t){var r=e.base;if(!r)return null;if("op"===r.type)return r.limits&&(t.style.size===M.DISPLAY.size||r.alwaysHandleSupSub)?al:null;if("operatorname"===r.type)return r.alwaysHandleSupSub&&(t.style.size===M.DISPLAY.size||r.limits)?au:null;if("accent"===r.type)return d(r.base)?t2:null;if("horizBrace"===r.type)return!e.sub===r.isOver?aa:null;else return null};tp({type:"supsub",htmlBuilder(e,t){var r,a=af(e,t);if(a)return a(e,t);var{base:n,sup:i,sub:s}=e,o=tA(n,t),l=t.fontMetrics(),h=0,m=0,c=n&&d(n);if(i){var u=t.havingStyle(t.style.sup());b=tA(i,u,t),c||(h=o.height-u.fontMetrics().supDrop*u.sizeMultiplier/t.sizeMultiplier)}if(s){var p=t.havingStyle(t.style.sub());y=tA(s,p,t),c||(m=o.depth+p.fontMetrics().subDrop*p.sizeMultiplier/t.sizeMultiplier)}x=t.style===M.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2;var g=t.sizeMultiplier,f=L(.5/l.ptPerEm/g),v=null;if(y){var b,y,x,w,k=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(o instanceof $||k)&&(v=L(-(null!=(w=o.italic)?w:0)))}if(b&&y){h=Math.max(h,x,b.depth+.25*l.xHeight),m=Math.max(m,l.sub2);var z=4*l.defaultRuleThickness;if(h-b.depth-(y.height-m)0&&(h+=S,m-=S)}r=e2({positionType:"individualShift",children:[{type:"elem",elem:y,shift:m,marginRight:f,marginLeft:v},{type:"elem",elem:b,shift:-h,marginRight:f}]})}else if(y)r=e2({positionType:"shift",positionData:m=Math.max(m,l.sub1,y.height-.8*l.xHeight),children:[{type:"elem",elem:y,marginLeft:v,marginRight:f}]});else if(b)r=e2({positionType:"shift",positionData:-(h=Math.max(h,x,b.depth+.25*l.xHeight)),children:[{type:"elem",elem:b,marginRight:f}]});else throw Error("supsub must have either sup or sub.");return e1([tS(o,"right")||"mord"],[o,e1(["msupsub"],[r])],t)},mathmlBuilder(e,t){var r,a,n=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(n=!0,r=e.base.isOver),e.base&&("op"===e.base.type||"operatorname"===e.base.type)&&(e.base.parentIsSupSub=!0);var i=[tV(e.base,t)];if(e.sub&&i.push(tV(e.sub,t)),e.sup&&i.push(tV(e.sup,t)),n)a=r?"mover":"munder";else if(e.sub)if(e.sup){var s=e.base;a=s&&"op"===s.type&&s.limits&&t.style===M.DISPLAY||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(t.style===M.DISPLAY||s.limits)?"munderover":"msubsup"}else{var o=e.base;a=o&&"op"===o.type&&o.limits&&(t.style===M.DISPLAY||o.alwaysHandleSupSub)||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(o.limits||t.style===M.DISPLAY)?"munder":"msub"}else{var l=e.base;a=l&&"op"===l.type&&l.limits&&(t.style===M.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===M.DISPLAY)?"mover":"msup"}return new tB(a,i)}}),tp({type:"atom",htmlBuilder:(e,t)=>eZ(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var r=new tB("mo",[tH(e.text,e.mode)]);if("bin"===e.family){var a=tN(e,t);"bold-italic"===a&&r.setAttribute("mathvariant",a)}else"punct"===e.family?r.setAttribute("separator","true"):("open"===e.family||"close"===e.family)&&r.setAttribute("stretchy","false");return r}});var av={mi:"italic",mn:"normal",mtext:"normal"};tp({type:"mathord",htmlBuilder:(e,t)=>eK(e,t,"mathord"),mathmlBuilder(e,t){var r=new tB("mi",[tH(e.text,e.mode,t)]),a=tN(e,t)||"italic";return a!==av[r.type]&&r.setAttribute("mathvariant",a),r}}),tp({type:"textord",htmlBuilder:(e,t)=>eK(e,t,"textord"),mathmlBuilder(e,t){var r,a=tH(e.text,e.mode,t),n=tN(e,t)||"normal";return n!==av[(r="text"===e.mode?new tB("mtext",[a]):/[0-9]/.test(e.text)?new tB("mn",[a]):"\\prime"===e.text?new tB("mo",[a]):new tB("mi",[a])).type]&&r.setAttribute("mathvariant",n),r}});var ab={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},ay={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};tp({type:"spacing",htmlBuilder(e,t){if(ay.hasOwnProperty(e.text)){var r=ay[e.text].className||"";if("text"!==e.mode)return e1(["mspace",r],[eZ(e.text,e.mode,t)],t);var n=eK(e,t,"textord");return n.classes.push(r),n}if(ab.hasOwnProperty(e.text))return e1(["mspace",ab[e.text]],[],t);throw new a('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){var r;if(ay.hasOwnProperty(e.text))r=new tB("mtext",[new tq("\xa0")]);else if(ab.hasOwnProperty(e.text))return new tB("mspace");else throw new a('Unknown type of space "'+e.text+'"');return r}});var ax=()=>{var e=new tB("mtd",[]);return e.setAttribute("width","50%"),e};tp({type:"tag",mathmlBuilder(e,t){var r=new tB("mtable",[new tB("mtr",[ax(),new tB("mtd",[tP(e.body,t)]),ax(),new tB("mtd",[tP(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var aw={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},ak={"\\textbf":"textbf","\\textmd":"textmd"},az={"\\textit":"textit","\\textup":"textup"},aS=(e,t)=>{var r=e.font;return r?aw[r]?t.withTextFontFamily(aw[r]):ak[r]?t.withTextFontWeight(ak[r]):"\\emph"===r?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(az[r]):t};tu({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"text",mode:r.mode,body:tg(n),font:a}},htmlBuilder(e,t){var r=aS(e,t);return e1(["mord","text"],tx(e.body,r,!0),r)},mathmlBuilder(e,t){var r=aS(e,t);return tP(e.body,r)}}),tu({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=tA(e.body,t),a=e5("underline-line",t),n=t.fontMetrics().defaultRuleThickness;return e1(["mord","underline"],[e2({positionType:"top",positionData:r.height,children:[{type:"kern",size:n},{type:"elem",elem:a},{type:"kern",size:3*n},{type:"elem",elem:r}]})],t)},mathmlBuilder(e,t){var r=new tB("mo",[new tq("‾")]);r.setAttribute("stretchy","true");var a=new tB("munder",[tV(e.body,t),r]);return a.setAttribute("accentunder","true"),a}}),tu({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=tA(e.body,t),a=t.fontMetrics().axisHeight;return e2({positionType:"shift",positionData:.5*(r.height-a-(r.depth+a)),children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new tB("mpadded",[tV(e.body,t)],["vcenter"]);return new tB("mrow",[r])}}),tu({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new a("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=aM(e),a=[],n=t.havingStyle(t.style.text()),i=0;ie.body.replace(/ /g,e.star?"␣":"\xa0"),aA="[ \r\n	]",aT="[̀-ͯ]",aC=RegExp(aT+"+$"),aB="("+aA+"+)|\\\\(\n|[ \r	]+\n?)[ \r	]*|([!-\\[\\]-‧‪-퟿豈-￿]"+aT+"*|[\uD800-\uDBFF][\uDC00-\uDFFF]"+aT+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)"+aA+"*|\\\\[^\uD800-\uDFFF])";class aq{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=RegExp(aB,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new rZ("EOF",new r$(this,t,t));var r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new a("Unexpected character: '"+e[t]+"'",new rZ(e[t],new r$(this,t,t+1)));var n=r[6]||r[3]||(r[2]?"\\ ":" ");if(14===this.catcodes[n]){var i=e.indexOf("\n",this.tokenRegex.lastIndex);return -1===i?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new rZ(n,new r$(this,t,this.tokenRegex.lastIndex))}}class aI{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new a("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,r){if(void 0===r&&(r=!1),r){for(var a=0;a0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var n=this.undefStack[this.undefStack.length-1];n&&!n.hasOwnProperty(e)&&(n[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}r_["\\noexpand"]=function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}},r_["\\expandafter"]=function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}},r_["\\@firstoftwo"]=function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}},r_["\\@secondoftwo"]=function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}},r_["\\@ifnextchar"]=function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}},r_["\\@ifstar"]="\\@ifnextchar *{\\@firstoftwo{#1}}",r_["\\TextOrMath"]=function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}};var aR={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};r_["\\char"]=function(e){var t,r,n=e.popToken(),i=0;if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])i=n.text.charCodeAt(1);else if("EOF"===n.text)throw new a("\\char` missing argument");else i=n.text.charCodeAt(0);else t=10;if(t){if(null==(i=aR[n.text])||i>=t)throw new a("Invalid base-"+t+" digit "+n.text);for(;null!=(r=aR[e.future().text])&&r{var i=e.consumeArg().tokens;if(1!==i.length)throw new a("\\newcommand's first argument must be a macro name");var s=i[0].text,o=e.isDefined(s);if(o&&!t)throw new a("\\newcommand{"+s+"} attempting to redefine "+s+"; use \\renewcommand");if(!o&&!r)throw new a("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var l=0;if(1===(i=e.consumeArg().tokens).length&&"["===i[0].text){for(var h="",m=e.expandNextToken();"]"!==m.text&&"EOF"!==m.text;)h+=m.text,m=e.expandNextToken();if(!h.match(/^\s*[0-9]+\s*$/))throw new a("Invalid number of arguments: "+h);l=parseInt(h),i=e.consumeArg().tokens}return o&&n||e.macros.set(s,{tokens:i,numArgs:l}),""};r_["\\newcommand"]=e=>aE(e,!1,!0,!1),r_["\\renewcommand"]=e=>aE(e,!0,!1,!1),r_["\\providecommand"]=e=>aE(e,!0,!0,!0),r_["\\message"]=e=>(console.log(e.consumeArgs(1)[0].reverse().map(e=>e.text).join("")),""),r_["\\errmessage"]=e=>(console.error(e.consumeArgs(1)[0].reverse().map(e=>e.text).join("")),""),r_["\\show"]=e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),th[r],en.math[r],en.text[r]),""},r_["\\bgroup"]="{",r_["\\egroup"]="}",r_["~"]="\\nobreakspace",r_["\\lq"]="`",r_["\\rq"]="'",r_["\\aa"]="\\r a",r_["\\AA"]="\\r A",r_["\\textcopyright"]="\\html@mathml{\\textcircled{c}}{\\char`\xa9}",r_["\\copyright"]="\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}",r_["\\textregistered"]="\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xae}",r_["ℬ"]="\\mathscr{B}",r_["ℰ"]="\\mathscr{E}",r_["ℱ"]="\\mathscr{F}",r_["ℋ"]="\\mathscr{H}",r_["ℐ"]="\\mathscr{I}",r_["ℒ"]="\\mathscr{L}",r_["ℳ"]="\\mathscr{M}",r_["ℛ"]="\\mathscr{R}",r_["ℭ"]="\\mathfrak{C}",r_["ℌ"]="\\mathfrak{H}",r_["ℨ"]="\\mathfrak{Z}",r_["\\Bbbk"]="\\Bbb{k}",r_["\\llap"]="\\mathllap{\\textrm{#1}}",r_["\\rlap"]="\\mathrlap{\\textrm{#1}}",r_["\\clap"]="\\mathclap{\\textrm{#1}}",r_["\\mathstrut"]="\\vphantom{(}",r_["\\underbar"]="\\underline{\\text{#1}}",r_["\\not"]='\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}',r_["\\neq"]="\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}",r_["\\ne"]="\\neq",r_["≠"]="\\neq",r_["\\notin"]="\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}",r_["∉"]="\\notin",r_["≘"]="\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}",r_["≙"]="\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}",r_["≚"]="\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}",r_["≛"]="\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}",r_["≝"]="\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}",r_["≞"]="\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}",r_["≟"]="\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}",r_["⟂"]="\\perp",r_["‼"]="\\mathclose{!\\mkern-0.8mu!}",r_["∌"]="\\notni",r_["⌜"]="\\ulcorner",r_["⌝"]="\\urcorner",r_["⌞"]="\\llcorner",r_["⌟"]="\\lrcorner",r_["\xa9"]="\\copyright",r_["\xae"]="\\textregistered",r_["\\ulcorner"]='\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}',r_["\\urcorner"]='\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}',r_["\\llcorner"]='\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}',r_["\\lrcorner"]='\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}',r_["\\vdots"]="{\\varvdots\\rule{0pt}{15pt}}",r_["⋮"]="\\vdots",r_["\\varGamma"]="\\mathit{\\Gamma}",r_["\\varDelta"]="\\mathit{\\Delta}",r_["\\varTheta"]="\\mathit{\\Theta}",r_["\\varLambda"]="\\mathit{\\Lambda}",r_["\\varXi"]="\\mathit{\\Xi}",r_["\\varPi"]="\\mathit{\\Pi}",r_["\\varSigma"]="\\mathit{\\Sigma}",r_["\\varUpsilon"]="\\mathit{\\Upsilon}",r_["\\varPhi"]="\\mathit{\\Phi}",r_["\\varPsi"]="\\mathit{\\Psi}",r_["\\varOmega"]="\\mathit{\\Omega}",r_["\\substack"]="\\begin{subarray}{c}#1\\end{subarray}",r_["\\colon"]="\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax",r_["\\boxed"]="\\fbox{$\\displaystyle{#1}$}",r_["\\iff"]="\\DOTSB\\;\\Longleftrightarrow\\;",r_["\\implies"]="\\DOTSB\\;\\Longrightarrow\\;",r_["\\impliedby"]="\\DOTSB\\;\\Longleftarrow\\;",r_["\\dddot"]="{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}",r_["\\ddddot"]="{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}";var aH={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},aO=new Set(["bin","rel"]);r_["\\dots"]=function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in aH?t=aH[r]:"\\not"===r.slice(0,4)?t="\\dotsb":r in en.math&&aO.has(en.math[r].group)&&(t="\\dotsb"),t};var aD={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};r_["\\dotso"]=function(e){return e.future().text in aD?"\\ldots\\,":"\\ldots"},r_["\\dotsc"]=function(e){var t=e.future().text;return t in aD&&","!==t?"\\ldots\\,":"\\ldots"},r_["\\cdots"]=function(e){return e.future().text in aD?"\\@cdots\\,":"\\@cdots"},r_["\\dotsb"]="\\cdots",r_["\\dotsm"]="\\cdots",r_["\\dotsi"]="\\!\\cdots",r_["\\dotsx"]="\\ldots\\,",r_["\\DOTSI"]="\\relax",r_["\\DOTSB"]="\\relax",r_["\\DOTSX"]="\\relax",r_["\\tmspace"]="\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax",r_["\\,"]="\\tmspace+{3mu}{.1667em}",r_["\\thinspace"]="\\,",r_["\\>"]="\\mskip{4mu}",r_["\\:"]="\\tmspace+{4mu}{.2222em}",r_["\\medspace"]="\\:",r_["\\;"]="\\tmspace+{5mu}{.2777em}",r_["\\thickspace"]="\\;",r_["\\!"]="\\tmspace-{3mu}{.1667em}",r_["\\negthinspace"]="\\!",r_["\\negmedspace"]="\\tmspace-{4mu}{.2222em}",r_["\\negthickspace"]="\\tmspace-{5mu}{.277em}",r_["\\enspace"]="\\kern.5em ",r_["\\enskip"]="\\hskip.5em\\relax",r_["\\quad"]="\\hskip1em\\relax",r_["\\qquad"]="\\hskip2em\\relax",r_["\\tag"]="\\@ifstar\\tag@literal\\tag@paren",r_["\\tag@paren"]="\\tag@literal{({#1})}",r_["\\tag@literal"]=e=>{if(e.macros.get("\\df@tag"))throw new a("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"},r_["\\bmod"]="\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}",r_["\\pod"]="\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)",r_["\\pmod"]="\\pod{{\\rm mod}\\mkern6mu#1}",r_["\\mod"]="\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1",r_["\\newline"]="\\\\\\relax",r_["\\TeX"]="\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}";var aN=L(Q["Main-Regular"][84][1]-.7*Q["Main-Regular"][65][1]);r_["\\LaTeX"]="\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+aN+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}",r_["\\KaTeX"]="\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+aN+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}",r_["\\hspace"]="\\@ifstar\\@hspacer\\@hspace",r_["\\@hspace"]="\\hskip #1\\relax",r_["\\@hspacer"]="\\rule{0pt}{0pt}\\hskip #1\\relax",r_["\\ordinarycolon"]=":",r_["\\vcentcolon"]="\\mathrel{\\mathop\\ordinarycolon}",r_["\\dblcolon"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}',r_["\\coloneqq"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}',r_["\\Coloneqq"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}',r_["\\coloneq"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}',r_["\\Coloneq"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}',r_["\\eqqcolon"]='\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}',r_["\\Eqqcolon"]='\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}',r_["\\eqcolon"]='\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}',r_["\\Eqcolon"]='\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}',r_["\\colonapprox"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}',r_["\\Colonapprox"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}',r_["\\colonsim"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}',r_["\\Colonsim"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}',r_["∷"]="\\dblcolon",r_["∹"]="\\eqcolon",r_["≔"]="\\coloneqq",r_["≕"]="\\eqqcolon",r_["⩴"]="\\Coloneqq",r_["\\ratio"]="\\vcentcolon",r_["\\coloncolon"]="\\dblcolon",r_["\\colonequals"]="\\coloneqq",r_["\\coloncolonequals"]="\\Coloneqq",r_["\\equalscolon"]="\\eqqcolon",r_["\\equalscoloncolon"]="\\Eqqcolon",r_["\\colonminus"]="\\coloneq",r_["\\coloncolonminus"]="\\Coloneq",r_["\\minuscolon"]="\\eqcolon",r_["\\minuscoloncolon"]="\\Eqcolon",r_["\\coloncolonapprox"]="\\Colonapprox",r_["\\coloncolonsim"]="\\Colonsim",r_["\\simcolon"]="\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}",r_["\\simcoloncolon"]="\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",r_["\\approxcolon"]="\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}",r_["\\approxcoloncolon"]="\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",r_["\\notni"]="\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}",r_["\\limsup"]="\\DOTSB\\operatorname*{lim\\,sup}",r_["\\liminf"]="\\DOTSB\\operatorname*{lim\\,inf}",r_["\\injlim"]="\\DOTSB\\operatorname*{inj\\,lim}",r_["\\projlim"]="\\DOTSB\\operatorname*{proj\\,lim}",r_["\\varlimsup"]="\\DOTSB\\operatorname*{\\overline{lim}}",r_["\\varliminf"]="\\DOTSB\\operatorname*{\\underline{lim}}",r_["\\varinjlim"]="\\DOTSB\\operatorname*{\\underrightarrow{lim}}",r_["\\varprojlim"]="\\DOTSB\\operatorname*{\\underleftarrow{lim}}",r_["\\gvertneqq"]="\\html@mathml{\\@gvertneqq}{≩}",r_["\\lvertneqq"]="\\html@mathml{\\@lvertneqq}{≨}",r_["\\ngeqq"]="\\html@mathml{\\@ngeqq}{≱}",r_["\\ngeqslant"]="\\html@mathml{\\@ngeqslant}{≱}",r_["\\nleqq"]="\\html@mathml{\\@nleqq}{≰}",r_["\\nleqslant"]="\\html@mathml{\\@nleqslant}{≰}",r_["\\nshortmid"]="\\html@mathml{\\@nshortmid}{∤}",r_["\\nshortparallel"]="\\html@mathml{\\@nshortparallel}{∦}",r_["\\nsubseteqq"]="\\html@mathml{\\@nsubseteqq}{⊈}",r_["\\nsupseteqq"]="\\html@mathml{\\@nsupseteqq}{⊉}",r_["\\varsubsetneq"]="\\html@mathml{\\@varsubsetneq}{⊊}",r_["\\varsubsetneqq"]="\\html@mathml{\\@varsubsetneqq}{⫋}",r_["\\varsupsetneq"]="\\html@mathml{\\@varsupsetneq}{⊋}",r_["\\varsupsetneqq"]="\\html@mathml{\\@varsupsetneqq}{⫌}",r_["\\imath"]="\\html@mathml{\\@imath}{ı}",r_["\\jmath"]="\\html@mathml{\\@jmath}{ȷ}",r_["\\llbracket"]="\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}",r_["\\rrbracket"]="\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}",r_["⟦"]="\\llbracket",r_["⟧"]="\\rrbracket",r_["\\lBrace"]="\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}",r_["\\rBrace"]="\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}",r_["⦃"]="\\lBrace",r_["⦄"]="\\rBrace",r_["\\minuso"]="\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}",r_["⦵"]="\\minuso",r_["\\darr"]="\\downarrow",r_["\\dArr"]="\\Downarrow",r_["\\Darr"]="\\Downarrow",r_["\\lang"]="\\langle",r_["\\rang"]="\\rangle",r_["\\uarr"]="\\uparrow",r_["\\uArr"]="\\Uparrow",r_["\\Uarr"]="\\Uparrow",r_["\\N"]="\\mathbb{N}",r_["\\R"]="\\mathbb{R}",r_["\\Z"]="\\mathbb{Z}",r_["\\alef"]="\\aleph",r_["\\alefsym"]="\\aleph",r_["\\Alpha"]="\\mathrm{A}",r_["\\Beta"]="\\mathrm{B}",r_["\\bull"]="\\bullet",r_["\\Chi"]="\\mathrm{X}",r_["\\clubs"]="\\clubsuit",r_["\\cnums"]="\\mathbb{C}",r_["\\Complex"]="\\mathbb{C}",r_["\\Dagger"]="\\ddagger",r_["\\diamonds"]="\\diamondsuit",r_["\\empty"]="\\emptyset",r_["\\Epsilon"]="\\mathrm{E}",r_["\\Eta"]="\\mathrm{H}",r_["\\exist"]="\\exists",r_["\\harr"]="\\leftrightarrow",r_["\\hArr"]="\\Leftrightarrow",r_["\\Harr"]="\\Leftrightarrow",r_["\\hearts"]="\\heartsuit",r_["\\image"]="\\Im",r_["\\infin"]="\\infty",r_["\\Iota"]="\\mathrm{I}",r_["\\isin"]="\\in",r_["\\Kappa"]="\\mathrm{K}",r_["\\larr"]="\\leftarrow",r_["\\lArr"]="\\Leftarrow",r_["\\Larr"]="\\Leftarrow",r_["\\lrarr"]="\\leftrightarrow",r_["\\lrArr"]="\\Leftrightarrow",r_["\\Lrarr"]="\\Leftrightarrow",r_["\\Mu"]="\\mathrm{M}",r_["\\natnums"]="\\mathbb{N}",r_["\\Nu"]="\\mathrm{N}",r_["\\Omicron"]="\\mathrm{O}",r_["\\plusmn"]="\\pm",r_["\\rarr"]="\\rightarrow",r_["\\rArr"]="\\Rightarrow",r_["\\Rarr"]="\\Rightarrow",r_["\\real"]="\\Re",r_["\\reals"]="\\mathbb{R}",r_["\\Reals"]="\\mathbb{R}",r_["\\Rho"]="\\mathrm{P}",r_["\\sdot"]="\\cdot",r_["\\sect"]="\\S",r_["\\spades"]="\\spadesuit",r_["\\sub"]="\\subset",r_["\\sube"]="\\subseteq",r_["\\supe"]="\\supseteq",r_["\\Tau"]="\\mathrm{T}",r_["\\thetasym"]="\\vartheta",r_["\\weierp"]="\\wp",r_["\\Zeta"]="\\mathrm{Z}",r_["\\argmin"]="\\DOTSB\\operatorname*{arg\\,min}",r_["\\argmax"]="\\DOTSB\\operatorname*{arg\\,max}",r_["\\plim"]="\\DOTSB\\mathop{\\operatorname{plim}}\\limits",r_["\\bra"]="\\mathinner{\\langle{#1}|}",r_["\\ket"]="\\mathinner{|{#1}\\rangle}",r_["\\braket"]="\\mathinner{\\langle{#1}\\rangle}",r_["\\Bra"]="\\left\\langle#1\\right|",r_["\\Ket"]="\\left|#1\\right\\rangle";var aL=e=>t=>{var r=t.consumeArg().tokens,a=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var l=t=>r=>{e&&(r.macros.set("|",s),n.length&&r.macros.set("\\|",o));var i=t;return!t&&n.length&&"|"===r.future().text&&(r.popToken(),i=!0),{tokens:i?n:a,numArgs:0}};t.macros.set("|",l(!1)),n.length&&t.macros.set("\\|",l(!0));var h=t.consumeArg().tokens,m=t.expandTokens([...i,...h,...r]);return t.macros.endGroup(),{tokens:m.reverse(),numArgs:0}};n=aL(!1),r_["\\bra@ket"]=n,i=aL(!0),r_["\\bra@set"]=i,r_["\\Braket"]="\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}",r_["\\Set"]="\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}",r_["\\set"]="\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}",r_["\\angln"]="{\\angl n}",r_["\\blue"]="\\textcolor{##6495ed}{#1}",r_["\\orange"]="\\textcolor{##ffa500}{#1}",r_["\\pink"]="\\textcolor{##ff00af}{#1}",r_["\\red"]="\\textcolor{##df0030}{#1}",r_["\\green"]="\\textcolor{##28ae7b}{#1}",r_["\\gray"]="\\textcolor{gray}{#1}",r_["\\purple"]="\\textcolor{##9d38bd}{#1}",r_["\\blueA"]="\\textcolor{##ccfaff}{#1}",r_["\\blueB"]="\\textcolor{##80f6ff}{#1}",r_["\\blueC"]="\\textcolor{##63d9ea}{#1}",r_["\\blueD"]="\\textcolor{##11accd}{#1}",r_["\\blueE"]="\\textcolor{##0c7f99}{#1}",r_["\\tealA"]="\\textcolor{##94fff5}{#1}",r_["\\tealB"]="\\textcolor{##26edd5}{#1}",r_["\\tealC"]="\\textcolor{##01d1c1}{#1}",r_["\\tealD"]="\\textcolor{##01a995}{#1}",r_["\\tealE"]="\\textcolor{##208170}{#1}",r_["\\greenA"]="\\textcolor{##b6ffb0}{#1}",r_["\\greenB"]="\\textcolor{##8af281}{#1}",r_["\\greenC"]="\\textcolor{##74cf70}{#1}",r_["\\greenD"]="\\textcolor{##1fab54}{#1}",r_["\\greenE"]="\\textcolor{##0d923f}{#1}",r_["\\goldA"]="\\textcolor{##ffd0a9}{#1}",r_["\\goldB"]="\\textcolor{##ffbb71}{#1}",r_["\\goldC"]="\\textcolor{##ff9c39}{#1}",r_["\\goldD"]="\\textcolor{##e07d10}{#1}",r_["\\goldE"]="\\textcolor{##a75a05}{#1}",r_["\\redA"]="\\textcolor{##fca9a9}{#1}",r_["\\redB"]="\\textcolor{##ff8482}{#1}",r_["\\redC"]="\\textcolor{##f9685d}{#1}",r_["\\redD"]="\\textcolor{##e84d39}{#1}",r_["\\redE"]="\\textcolor{##bc2612}{#1}",r_["\\maroonA"]="\\textcolor{##ffbde0}{#1}",r_["\\maroonB"]="\\textcolor{##ff92c6}{#1}",r_["\\maroonC"]="\\textcolor{##ed5fa6}{#1}",r_["\\maroonD"]="\\textcolor{##ca337c}{#1}",r_["\\maroonE"]="\\textcolor{##9e034e}{#1}",r_["\\purpleA"]="\\textcolor{##ddd7ff}{#1}",r_["\\purpleB"]="\\textcolor{##c6b9fc}{#1}",r_["\\purpleC"]="\\textcolor{##aa87ff}{#1}",r_["\\purpleD"]="\\textcolor{##7854ab}{#1}",r_["\\purpleE"]="\\textcolor{##543b78}{#1}",r_["\\mintA"]="\\textcolor{##f5f9e8}{#1}",r_["\\mintB"]="\\textcolor{##edf2df}{#1}",r_["\\mintC"]="\\textcolor{##e0e5cc}{#1}",r_["\\grayA"]="\\textcolor{##f6f7f7}{#1}",r_["\\grayB"]="\\textcolor{##f0f1f2}{#1}",r_["\\grayC"]="\\textcolor{##e3e5e6}{#1}",r_["\\grayD"]="\\textcolor{##d6d8da}{#1}",r_["\\grayE"]="\\textcolor{##babec2}{#1}",r_["\\grayF"]="\\textcolor{##888d93}{#1}",r_["\\grayG"]="\\textcolor{##626569}{#1}",r_["\\grayH"]="\\textcolor{##3b3e40}{#1}",r_["\\grayI"]="\\textcolor{##21242c}{#1}",r_["\\kaBlue"]="\\textcolor{##314453}{#1}",r_["\\kaGreen"]="\\textcolor{##71B307}{#1}";var aF={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class aP{constructor(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new aI(r_,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new aq(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,r,a;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),{tokens:a,end:r}=this.consumeArg(["]"])}else({tokens:a,start:t,end:r}=this.consumeArg());return this.pushToken(new rZ("EOF",r.loc)),this.pushTokens(a),new rZ("",r$.range(t,r))}consumeSpaces(){for(;;)if(" "===this.future().text)this.stack.pop();else break}consumeArg(e){var t,r=[],n=e&&e.length>0;n||this.consumeSpaces();var i=this.future(),s=0,o=0;do{if(t=this.popToken(),r.push(t),"{"===t.text)++s;else if("}"===t.text){if(-1==--s)throw new a("Extra }",t)}else if("EOF"===t.text)throw new a("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",t);if(e&&n)if((0===s||1===s&&"{"===e[o])&&t.text===e[o]){if(++o===e.length){r.splice(-o,o);break}}else o=0}while(0!==s||n);return"{"===i.text&&"}"===r[r.length-1].text&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:t}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new a("The length of delimiters doesn't match the number of args!");for(var r=t[0],n=0;nthis.settings.maxExpand)throw new a("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),r=t.text,n=t.noexpand?null:this._getExpansion(r);if(null==n||e&&n.unexpandable){if(e&&null==n&&"\\"===r[0]&&!this.isDefined(r))throw new a("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);var i=n.tokens,s=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var l=i[o];if("#"===l.text){if(0===o)throw new a("Incomplete placeholder at end of macro body",l);if("#"===(l=i[--o]).text)i.splice(o+1,1);else if(/^[1-9]$/.test(l.text))i.splice(o,2,...s[l.text-1]);else throw new a("Not a valid argument number",l)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new rZ(e)]):void 0}expandTokens(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(!1===this.expandOnce(!0)){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),t.push(a)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var r=this.lexer.catcodes[e];if(null!=r&&13!==r)return}var a="function"==typeof t?t(this):t;if("string"==typeof a){var n=0;if(a.includes("#"))for(var i=a.replace(/##/g,"");i.includes("#"+(n+1));)++n;for(var s=new aq(a,this.settings),o=[],l=s.lex();"EOF"!==l.text;)o.push(l),l=s.lex();return o.reverse(),{tokens:o,numArgs:n}}return a}isDefined(e){return this.macros.has(e)||th.hasOwnProperty(e)||en.math.hasOwnProperty(e)||en.text.hasOwnProperty(e)||aF.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:th.hasOwnProperty(e)&&!th[e].primitive}}var aV=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,aG=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9",ₐ:"a",ₑ:"e",ₕ:"h",ᵢ:"i",ⱼ:"j",ₖ:"k",ₗ:"l",ₘ:"m",ₙ:"n",ₒ:"o",ₚ:"p",ᵣ:"r",ₛ:"s",ₜ:"t",ᵤ:"u",ᵥ:"v",ₓ:"x",ᵦ:"β",ᵧ:"γ",ᵨ:"ρ",ᵩ:"ϕ",ᵪ:"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","\xb9":"1","\xb2":"2","\xb3":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9",ᴬ:"A",ᴮ:"B",ᴰ:"D",ᴱ:"E",ᴳ:"G",ᴴ:"H",ᴵ:"I",ᴶ:"J",ᴷ:"K",ᴸ:"L",ᴹ:"M",ᴺ:"N",ᴼ:"O",ᴾ:"P",ᴿ:"R",ᵀ:"T",ᵁ:"U",ⱽ:"V",ᵂ:"W",ᵃ:"a",ᵇ:"b",ᶜ:"c",ᵈ:"d",ᵉ:"e",ᶠ:"f",ᵍ:"g",ʰ:"h",ⁱ:"i",ʲ:"j",ᵏ:"k",ˡ:"l",ᵐ:"m",ⁿ:"n",ᵒ:"o",ᵖ:"p",ʳ:"r",ˢ:"s",ᵗ:"t",ᵘ:"u",ᵛ:"v",ʷ:"w",ˣ:"x",ʸ:"y",ᶻ:"z",ᵝ:"β",ᵞ:"γ",ᵟ:"δ",ᵠ:"ϕ",ᵡ:"χ",ᶿ:"θ"}),aU={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},aX={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class aY{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new aP(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new a("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new rZ("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var a=this.fetch();if(aY.endOfExpression.has(a.text)||t&&a.text===t||e&&th[a.text]&&th[a.text].infix)break;var n=this.parseAtom(t);if(n){if("internal"===n.type)continue}else break;r.push(n)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,r=0;r=128))return null;this.settings.strict&&(C(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),s={type:"textord",mode:"text",loc:r$.range(e),text:t}}if(this.consume(),i)for(var m=0;m{e.exports=n(60808)},15339:(e,t,n)=>{var r=n(50148);function l(e){var t="https://react.dev/errors/"+e;if(1{var r,l=n(60910),a=n(50435),o=n(50148),i=n(87897);function u(e){var t="https://react.dev/errors/"+e;if(1I||(e.current=M[I],M[I]=null,I--)}function H(e,t){M[++I]=e.current,e.current=t}var $=U(null),V=U(null),B=U(null),Q=U(null);function W(e,t){switch(H(B,t),H(V,e),H($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?si(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=su(t=si(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}j($),H($,e)}function q(){j($),j(V),j(B)}function K(e){null!==e.memoizedState&&H(Q,e);var t=$.current,n=su(t,e.type);t!==n&&(H(V,e),H($,n))}function Y(e){V.current===e&&(j($),j(V)),Q.current===e&&(j(Q),sX._currentValue=F)}var G=Object.prototype.hasOwnProperty,X=a.unstable_scheduleCallback,Z=a.unstable_cancelCallback,J=a.unstable_shouldYield,ee=a.unstable_requestPaint,et=a.unstable_now,en=a.unstable_getCurrentPriorityLevel,er=a.unstable_ImmediatePriority,el=a.unstable_UserBlockingPriority,ea=a.unstable_NormalPriority,eo=a.unstable_LowPriority,ei=a.unstable_IdlePriority,eu=a.log,es=a.unstable_setDisableYieldValue,ec=null,ef=null;function ed(e){if("function"==typeof eu&&es(e),ef&&"function"==typeof ef.setStrictMode)try{ef.setStrictMode(ec,e)}catch(e){}}var ep=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(em(e)/eh|0)|0},em=Math.log,eh=Math.LN2,eg=256,ey=4194304;function ev(e){var t=42&e;if(0!==t)return t;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:return 64;case 128:return 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 4194048&e;case 4194304:case 8388608:case 0x1000000:case 0x2000000:return 0x3c00000&e;case 0x4000000:return 0x4000000;case 0x8000000:return 0x8000000;case 0x10000000:return 0x10000000;case 0x20000000:return 0x20000000;case 0x40000000:return 0;default:return e}}function eb(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var l=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var i=0x7ffffff&r;return 0!==i?0!=(r=i&~a)?l=ev(r):0!=(o&=i)?l=ev(o):n||0!=(n=i&~e)&&(l=ev(n)):0!=(i=r&~a)?l=ev(i):0!==o?l=ev(o):n||0!=(n=r&~e)&&(l=ev(n)),0===l?0:0!==t&&t!==l&&0==(t&a)&&((a=l&-l)>=(n=t&-t)||32===a&&0!=(4194048&n))?t:l}function ek(e,t){return 0==(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function ew(){var e=eg;return 0==(4194048&(eg<<=1))&&(eg=256),e}function eS(){var e=ey;return 0==(0x3c00000&(ey<<=1))&&(ey=4194304),e}function ex(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function eE(e,t){e.pendingLanes|=t,0x10000000!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function eC(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ep(t);e.entangledLanes|=t,e.entanglements[r]=0x40000000|e.entanglements[r]|4194090&n}function e_(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ep(n),l=1<)":-1l||u[r]!==s[l]){var c="\n"+u[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{e2=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?e1(n):""}function e4(e){try{var t="";do t+=function(e){switch(e.tag){case 26:case 27:case 5:return e1(e.type);case 16:return e1("Lazy");case 13:return e1("Suspense");case 19:return e1("SuspenseList");case 0:case 15:return e3(e.type,!1);case 11:return e3(e.type.render,!1);case 1:return e3(e.type,!0);case 31:return e1("Activity");default:return""}}(e),e=e.return;while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function e8(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function e6(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function e5(e){e._valueTracker||(e._valueTracker=function(e){var t=e6(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function e9(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=e6(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function e7(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var te=/[\n"\\]/g;function tt(e){return e.replace(te,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function tn(e,t,n,r,l,a,o,i){e.name="",null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.type=o:e.removeAttribute("type"),null!=t?"number"===o?(0===t&&""===e.value||e.value!=t)&&(e.value=""+e8(t)):e.value!==""+e8(t)&&(e.value=""+e8(t)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=t?tl(e,o,e8(t)):null!=n?tl(e,o,e8(n)):null!=r&&e.removeAttribute("value"),null==l&&null!=a&&(e.defaultChecked=!!a),null!=l&&(e.checked=l&&"function"!=typeof l&&"symbol"!=typeof l),null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.name=""+e8(i):e.removeAttribute("name")}function tr(e,t,n,r,l,a,o,i){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=t||null!=n){if(("submit"===a||"reset"===a)&&null==t)return;n=null!=n?""+e8(n):"",t=null!=t?""+e8(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:l)&&"symbol"!=typeof r&&!!r,e.checked=i?e.checked:!!r,e.defaultChecked=!!r,null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.name=o)}function tl(e,t,n){"number"===t&&e7(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ta(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l=ne),nr=!1;function nl(e,t){switch(e){case"keyup":return -1!==t9.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function na(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var no=!1,ni={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ni[e.type]:"textarea"===t}function ns(e,t,n,r){tv?tb?tb.push(r):tb=[r]:tv=r,0<(t=u3(t,"onChange")).length&&(n=new tH("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nc=null,nf=null;function nd(e){uY(e,0)}function np(e){if(e9(e$(e)))return e}function nm(e,t){if("change"===e)return t}var nh=!1;if(tE){if(tE){var ng="oninput"in document;if(!ng){var ny=document.createElement("div");ny.setAttribute("oninput","return;"),ng="function"==typeof ny.oninput}r=ng}else r=!1;nh=r&&(!document.documentMode||9=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=n_(r)}}function nz(e){e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;for(var t=e7(e.document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=e7(e.document)}return t}function nN(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var nT=tE&&"documentMode"in document&&11>=document.documentMode,nL=null,nO=null,nR=null,nD=!1;function nA(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;nD||null==nL||nL!==e7(r)||(r="selectionStart"in(r=nL)&&nN(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},nR&&nC(nR,r)||(nR=r,0<(r=u3(nO,"onSelect")).length&&(t=new tH("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=nL)))}function nF(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nM={animationend:nF("Animation","AnimationEnd"),animationiteration:nF("Animation","AnimationIteration"),animationstart:nF("Animation","AnimationStart"),transitionrun:nF("Transition","TransitionRun"),transitionstart:nF("Transition","TransitionStart"),transitioncancel:nF("Transition","TransitionCancel"),transitionend:nF("Transition","TransitionEnd")},nI={},nU={};function nj(e){if(nI[e])return nI[e];if(!nM[e])return e;var t,n=nM[e];for(t in n)if(n.hasOwnProperty(t)&&t in nU)return nI[e]=n[t];return e}tE&&(nU=document.createElement("div").style,"AnimationEvent"in window||(delete nM.animationend.animation,delete nM.animationiteration.animation,delete nM.animationstart.animation),"TransitionEvent"in window||delete nM.transitionend.transition);var nH=nj("animationend"),n$=nj("animationiteration"),nV=nj("animationstart"),nB=nj("transitionrun"),nQ=nj("transitionstart"),nW=nj("transitioncancel"),nq=nj("transitionend"),nK=new Map,nY="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function nG(e,t){nK.set(e,t),eq(t,[e])}nY.push("scrollEnd");var nX=new WeakMap;function nZ(e,t){if("object"==typeof e&&null!==e){var n=nX.get(e);return void 0!==n?n:(t={value:e,source:t,stack:e4(t)},nX.set(e,t),t)}return{value:e,source:t,stack:e4(t)}}var nJ=[],n0=0,n1=0;function n2(){for(var e=n0,t=n1=n0=0;t>=o,l-=o,rh=1<<32-ep(t)+l|n<a?a:8;var o=D.T,i={};D.T=i,aj(e,!1,t,n);try{var u=l(),s=D.S;if(null!==s&&s(i,u),null!==u&&"object"==typeof u&&"function"==typeof u.then){var c,f,d=(c=[],f={status:"pending",value:null,reason:null,then:function(e){c.push(e)}},u.then(function(){f.status="fulfilled",f.value=r;for(var e=0;eh?(g=f,f=null):g=f.sibling;var y=p(l,f,i[h],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(l,f),o=a(y,o,h),null===c?s=y:c.sibling=y,c=y,f=g}if(h===i.length)return n(l,f),rx&&ry(l,h),s;if(null===f){for(;hg?(y=h,h=null):y=h.sibling;var b=p(l,h,v.value,s);if(null===b){null===h&&(h=y);break}e&&h&&null===b.alternate&&t(l,h),o=a(b,o,g),null===f?c=b:f.sibling=b,f=b,h=y}if(v.done)return n(l,h),rx&&ry(l,g),c;if(null===h){for(;!v.done;g++,v=i.next())null!==(v=d(l,v.value,s))&&(o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return rx&&ry(l,g),c}for(h=r(h);!v.done;g++,v=i.next())null!==(v=m(h,l,g,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return e&&h.forEach(function(e){return t(l,e)}),rx&&ry(l,g),c}(s,c,f=b.call(f),v)}if("function"==typeof f.then)return i(s,c,aG(f),v);if(f.$$typeof===S)return i(s,c,rQ(s,f),v);aZ(s,f)}return"string"==typeof f&&""!==f||"number"==typeof f||"bigint"==typeof f?(f=""+f,null!==c&&6===c.tag?(n(s,c.sibling),(v=l(c,f)).return=s):(n(s,c),(v=ro(f,s.mode,v)).return=s),o(s=v)):n(s,c)}(i,s,c,f);return aK=null,v}catch(e){if(e===r7||e===lt)throw e;var b=re(29,e,null,i.mode);return b.lanes=f,b.return=i,b}finally{}}}var a1=a0(!0),a2=a0(!1),a3=U(null),a4=null;function a8(e){var t=e.alternate;H(a7,1&a7.current),H(a3,e),null===a4&&(null===t||null!==lw.current?a4=e:null!==t.memoizedState&&(a4=e))}function a6(e){if(22===e.tag){if(H(a7,a7.current),H(a3,e),null===a4){var t=e.alternate;null!==t&&null!==t.memoizedState&&(a4=e)}}else a5(e)}function a5(){H(a7,a7.current),H(a3,a3.current)}function a9(e){j(a3),a4===e&&(a4=null),j(a7)}var a7=U(0);function oe(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||sb(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ot(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:p({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var on={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=i6(),l=ld(r);l.payload=t,null!=n&&(l.callback=n),null!==(t=lp(e,l,r))&&(i9(t,e,r),lm(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=i6(),l=ld(r);l.tag=1,l.payload=t,null!=n&&(l.callback=n),null!==(t=lp(e,l,r))&&(i9(t,e,r),lm(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=i6(),r=ld(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=lp(e,r,n))&&(i9(t,e,n),lm(t,e,n))}};function or(e,t,n,r,l,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||!nC(n,r)||!nC(l,a)}function ol(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&on.enqueueReplaceState(t,t.state,null)}function oa(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var l in n===t&&(n=p({},n)),e)void 0===n[l]&&(n[l]=e[l]);return n}var oo="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof l&&"function"==typeof l.emit)return void l.emit("uncaughtException",e);console.error(e)};function oi(e){oo(e)}function ou(e){console.error(e)}function os(e){oo(e)}function oc(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function of(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function od(e,t,n){return(n=ld(n)).tag=3,n.payload={element:null},n.callback=function(){oc(e,t)},n}function op(e){return(e=ld(e)).tag=3,e}function om(e,t,n,r){var l=n.type.getDerivedStateFromError;if("function"==typeof l){var a=r.value;e.payload=function(){return l(a)},e.callback=function(){of(t,n,r)}}var o=n.stateNode;null!==o&&"function"==typeof o.componentDidCatch&&(e.callback=function(){of(t,n,r),"function"!=typeof l&&(null===iG?iG=new Set([this]):iG.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var oh=Error(u(461)),og=!1;function oy(e,t,n,r){t.child=null===e?a2(t,null,n,r):a1(t,e.child,n,r)}function ov(e,t,n,r,l){n=n.render;var a=t.ref;if("ref"in r){var o={};for(var i in r)"ref"!==i&&(o[i]=r[i])}else o=r;return(rV(t),r=lU(e,t,n,o,a,l),i=lV(),null===e||og)?(rx&&i&&rb(t),t.flags|=1,oy(e,t,r,l),t.child):(lB(e,t,l),oI(e,t,l))}function ob(e,t,n,r,l){if(null===e){var a=n.type;return"function"!=typeof a||rt(a)||void 0!==a.defaultProps||null!==n.compare?((e=rl(n.type,null,r,t,t.mode,l)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ok(e,t,a,r,l))}if(a=e.child,!oU(e,l)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:nC)(o,r)&&e.ref===t.ref)return oI(e,t,l)}return t.flags|=1,(e=rn(a,r)).ref=t.ref,e.return=t,t.child=e}function ok(e,t,n,r,l){if(null!==e){var a=e.memoizedProps;if(nC(a,r)&&e.ref===t.ref)if(og=!1,t.pendingProps=r=a,!oU(e,l))return t.lanes=e.lanes,oI(e,t,l);else 0!=(131072&e.flags)&&(og=!0)}return oE(e,t,n,r,l)}function ow(e,t,n){var r=t.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(0!=(128&t.flags)){if(r=null!==a?a.baseLanes|n:n,null!==e){for(a=0,l=t.child=e.child;null!==l;)a=a|l.lanes|l.childLanes,l=l.sibling;t.childLanes=a&~r}else t.childLanes=0,t.child=null;return oS(e,t,r,n)}if(0==(0x20000000&n))return t.lanes=t.childLanes=0x20000000,oS(e,t,null!==a?a.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&r5(t,null!==a?a.cachePool:null),null!==a?lx(t,a):lE(),a6(t)}else null!==a?(r5(t,a.cachePool),lx(t,a),a5(t),t.memoizedState=null):(null!==e&&r5(t,null),lE(),a5(t));return oy(e,t,l,n),t.child}function oS(e,t,n,r){var l=r6();return t.memoizedState={baseLanes:n,cachePool:l=null===l?null:{parent:rG._currentValue,pool:l}},null!==e&&r5(t,null),lE(),a6(t),null!==e&&rH(e,t,r,!0),null}function ox(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(u(284));(null===e||e.ref!==n)&&(t.flags|=4194816)}}function oE(e,t,n,r,l){return(rV(t),n=lU(e,t,n,r,void 0,l),r=lV(),null===e||og)?(rx&&r&&rb(t),t.flags|=1,oy(e,t,n,l),t.child):(lB(e,t,l),oI(e,t,l))}function oC(e,t,n,r,l,a){return(rV(t),t.updateQueue=null,n=lH(t,r,n,l),lj(e),r=lV(),null===e||og)?(rx&&r&&rb(t),t.flags|=1,oy(e,t,n,a),t.child):(lB(e,t,a),oI(e,t,a))}function o_(e,t,n,r,l){if(rV(t),null===t.stateNode){var a=n9,o=n.contextType;"object"==typeof o&&null!==o&&(a=rB(o)),t.memoizedState=null!==(a=new n(r,a)).state&&void 0!==a.state?a.state:null,a.updater=on,t.stateNode=a,a._reactInternals=t,(a=t.stateNode).props=r,a.state=t.memoizedState,a.refs={},lc(t),o=n.contextType,a.context="object"==typeof o&&null!==o?rB(o):n9,a.state=t.memoizedState,"function"==typeof(o=n.getDerivedStateFromProps)&&(ot(t,n,o,r),a.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(o=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),o!==a.state&&on.enqueueReplaceState(a,a.state,null),lv(t,r,a,l),ly(),a.state=t.memoizedState),"function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){a=t.stateNode;var i=t.memoizedProps,u=oa(n,i);a.props=u;var s=a.context,c=n.contextType;o=n9,"object"==typeof c&&null!==c&&(o=rB(c));var f=n.getDerivedStateFromProps;c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate,i=t.pendingProps!==i,c||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(i||s!==o)&&ol(t,a,r,o),ls=!1;var d=t.memoizedState;a.state=d,lv(t,r,a,l),ly(),s=t.memoizedState,i||d!==s||ls?("function"==typeof f&&(ot(t,n,f,r),s=t.memoizedState),(u=ls||or(t,n,u,r,d,s,o))?(c||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=o,r=u):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,lf(e,t),c=oa(n,o=t.memoizedProps),a.props=c,f=t.pendingProps,d=a.context,s=n.contextType,u=n9,"object"==typeof s&&null!==s&&(u=rB(s)),(s="function"==typeof(i=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(o!==f||d!==u)&&ol(t,a,r,u),ls=!1,d=t.memoizedState,a.state=d,lv(t,r,a,l),ly();var p=t.memoizedState;o!==f||d!==p||ls||null!==e&&null!==e.dependencies&&r$(e.dependencies)?("function"==typeof i&&(ot(t,n,i,r),p=t.memoizedState),(c=ls||or(t,n,c,r,d,p,u)||null!==e&&null!==e.dependencies&&r$(e.dependencies))?(s||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,ox(e,t),r=0!=(128&t.flags),a||r?(a=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:a.render(),t.flags|=1,null!==e&&r?(t.child=a1(t,e.child,null,l),t.child=a1(t,null,n,l)):oy(e,t,n,l),t.memoizedState=a.state,e=t.child):e=oI(e,t,l),e}function oP(e,t,n,r){return rL(),t.flags|=256,oy(e,t,n,r),t.child}var oz={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function oN(e){return{baseLanes:e,cachePool:r9()}}function oT(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=i$),e}function oL(e,t,n){var r,l=t.pendingProps,a=!1,o=0!=(128&t.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a7.current)),r&&(a=!0,t.flags&=-129),r=0!=(32&t.flags),t.flags&=-33,null===e){if(rx){if(a?a8(t):a5(t),rx){var i,s=rS;if(i=s){n:{for(i=s,s=rC;8!==i.nodeType;)if(!s||null===(i=sk(i.nextSibling))){s=null;break n}s=i}null!==s?(t.memoizedState={dehydrated:s,treeContext:null!==rm?{id:rh,overflow:rg}:null,retryLane:0x20000000,hydrationErrors:null},(i=re(18,null,null,0)).stateNode=s,i.return=t,t.child=i,rw=t,rS=null,i=!0):i=!1}i||rP(t)}if(null!==(s=t.memoizedState)&&null!==(s=s.dehydrated))return sb(s)?t.lanes=32:t.lanes=0x20000000,null;a9(t)}return(s=l.children,l=l.fallback,a)?(a5(t),s=oR({mode:"hidden",children:s},a=t.mode),l=ra(l,a,n,null),s.return=t,l.return=t,s.sibling=l,t.child=s,(a=t.child).memoizedState=oN(n),a.childLanes=oT(e,r,n),t.memoizedState=oz,l):(a8(t),oO(t,s))}if(null!==(i=e.memoizedState)&&null!==(s=i.dehydrated)){if(o)256&t.flags?(a8(t),t.flags&=-257,t=oD(e,t,n)):null!==t.memoizedState?(a5(t),t.child=e.child,t.flags|=128,t=null):(a5(t),a=l.fallback,s=t.mode,l=oR({mode:"visible",children:l.children},s),a=ra(a,s,n,null),a.flags|=2,l.return=t,a.return=t,l.sibling=a,t.child=l,a1(t,e.child,null,n),(l=t.child).memoizedState=oN(n),l.childLanes=oT(e,r,n),t.memoizedState=oz,t=a);else if(a8(t),sb(s)){if(r=s.nextSibling&&s.nextSibling.dataset)var c=r.dgst;r=c,(l=Error(u(419))).stack="",l.digest=r,rR({value:l,source:null,stack:null}),t=oD(e,t,n)}else if(og||rH(e,t,n,!1),r=0!=(n&e.childLanes),og||r){if(null!==(r=iN)&&0!==(l=0!=((l=0!=(42&(l=n&-n))?1:eP(l))&(r.suspendedLanes|n))?0:l)&&l!==i.retryLane)throw i.retryLane=l,n8(e,l),i9(r,e,l),oh;"$?"===s.data||uu(),t=oD(e,t,n)}else"$?"===s.data?(t.flags|=192,t.child=e.child,t=null):(e=i.treeContext,rS=sk(s.nextSibling),rw=t,rx=!0,rE=null,rC=!1,null!==e&&(rd[rp++]=rh,rd[rp++]=rg,rd[rp++]=rm,rh=e.id,rg=e.overflow,rm=t),t=oO(t,l.children),t.flags|=4096);return t}return a?(a5(t),a=l.fallback,s=t.mode,c=(i=e.child).sibling,(l=rn(i,{mode:"hidden",children:l.children})).subtreeFlags=0x3e00000&i.subtreeFlags,null!==c?a=rn(c,a):(a=ra(a,s,n,null),a.flags|=2),a.return=t,l.return=t,l.sibling=a,t.child=l,l=a,a=t.child,null===(s=e.child.memoizedState)?s=oN(n):(null!==(i=s.cachePool)?(c=rG._currentValue,i=i.parent!==c?{parent:c,pool:c}:i):i=r9(),s={baseLanes:s.baseLanes|n,cachePool:i}),a.memoizedState=s,a.childLanes=oT(e,r,n),t.memoizedState=oz,l):(a8(t),e=(n=e.child).sibling,(n=rn(n,{mode:"visible",children:l.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function oO(e,t){return(t=oR({mode:"visible",children:t},e.mode)).return=e,e.child=t}function oR(e,t){return(e=re(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function oD(e,t,n){return a1(t,e.child,null,n),e=oO(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function oA(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),rU(e.return,t,n)}function oF(e,t,n,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=l)}function oM(e,t,n){var r=t.pendingProps,l=r.revealOrder,a=r.tail;if(oy(e,t,r.children,n),0!=(2&(r=a7.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&oA(e,n,t);else if(19===e.tag)oA(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(H(a7,r),l){case"forwards":for(l=null,n=t.child;null!==n;)null!==(e=n.alternate)&&null===oe(e)&&(l=n),n=n.sibling;null===(n=l)?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),oF(t,!1,l,n,a);break;case"backwards":for(n=null,l=t.child,t.child=null;null!==l;){if(null!==(e=l.alternate)&&null===oe(e)){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}oF(t,!0,n,null,a);break;case"together":oF(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function oI(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),iU|=t.lanes,0==(n&t.childLanes)){if(null===e)return null;else if(rH(e,t,n,!1),0==(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(u(153));if(null!==t.child){for(n=rn(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=rn(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function oU(e,t){return 0!=(e.lanes&t)||!!(null!==(e=e.dependencies)&&r$(e))}function oj(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)og=!0;else{if(!oU(e,n)&&0==(128&t.flags))return og=!1,function(e,t,n){switch(t.tag){case 3:W(t,t.stateNode.containerInfo),rM(t,rG,e.memoizedState.cache),rL();break;case 27:case 5:K(t);break;case 4:W(t,t.stateNode.containerInfo);break;case 10:rM(t,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r){if(null!==r.dehydrated)return a8(t),t.flags|=128,null;if(0!=(n&t.child.childLanes))return oL(e,t,n);return a8(t),null!==(e=oI(e,t,n))?e.sibling:null}a8(t);break;case 19:var l=0!=(128&e.flags);if((r=0!=(n&t.childLanes))||(rH(e,t,n,!1),r=0!=(n&t.childLanes)),l){if(r)return oM(e,t,n);t.flags|=128}if(null!==(l=t.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),H(a7,a7.current),!r)return null;break;case 22:case 23:return t.lanes=0,ow(e,t,n);case 24:rM(t,rG,e.memoizedState.cache)}return oI(e,t,n)}(e,t,n);og=0!=(131072&e.flags)}else og=!1,rx&&0!=(1048576&t.flags)&&rv(t,rf,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,l=r._init;if(r=l(r._payload),t.type=r,"function"==typeof r)rt(r)?(e=oa(r,e),t.tag=1,t=o_(null,t,r,e,n)):(t.tag=0,t=oE(null,t,r,e,n));else{if(null!=r){if((l=r.$$typeof)===x){t.tag=11,t=ov(null,t,r,e,n);break e}else if(l===_){t.tag=14,t=ob(null,t,r,e,n);break e}}throw Error(u(306,t=function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===O?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case y:return"Fragment";case b:return"Profiler";case v:return"StrictMode";case E:return"Suspense";case C:return"SuspenseList";case z:return"Activity"}if("object"==typeof t)switch(t.$$typeof){case g:return"Portal";case S:return(t.displayName||"Context")+".Provider";case w:return(t._context.displayName||"Context")+".Consumer";case x:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case _:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case P:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}(r)||r,""))}}return t;case 0:return oE(e,t,t.type,t.pendingProps,n);case 1:return l=oa(r=t.type,t.pendingProps),o_(e,t,r,l,n);case 3:e:{if(W(t,t.stateNode.containerInfo),null===e)throw Error(u(387));r=t.pendingProps;var a=t.memoizedState;l=a.element,lf(e,t),lv(t,r,null,n);var o=t.memoizedState;if(rM(t,rG,r=o.cache),r!==a.cache&&rj(t,[rG],n,!0),ly(),r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=oP(e,t,r,n);break e}else if(r!==l){rR(l=nZ(Error(u(424)),t)),t=oP(e,t,r,n);break e}else for(rS=sk((e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e).firstChild),rw=t,rx=!0,rE=null,rC=!0,n=a2(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling;else{if(rL(),r===l){t=oI(e,t,n);break e}oy(e,t,r,n)}t=t.child}return t;case 26:return ox(e,t),null===e?(n=sL(t.type,null,t.pendingProps,null))?t.memoizedState=n:rx||(n=t.type,e=t.pendingProps,(r=so(B.current).createElement(n))[eL]=t,r[eO]=e,sr(r,n,e),eB(r),t.stateNode=r):t.memoizedState=sL(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return K(t),null===e&&rx&&(r=t.stateNode=sx(t.type,t.pendingProps,B.current),rw=t,rC=!0,l=rS,sg(t.type)?(sw=l,rS=sk(r.firstChild)):rS=l),oy(e,t,t.pendingProps.children,n),ox(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&rx&&((l=r=rS)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[eI])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(l=e.getAttribute("rel"))&&e.hasAttribute("data-precedence")||l!==n.rel||e.getAttribute("href")!==(null==n.href||""===n.href?null:n.href)||e.getAttribute("crossorigin")!==(null==n.crossOrigin?null:n.crossOrigin)||e.getAttribute("title")!==(null==n.title?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((l=e.getAttribute("src"))!==(null==n.src?null:n.src)||e.getAttribute("type")!==(null==n.type?null:n.type)||e.getAttribute("crossorigin")!==(null==n.crossOrigin?null:n.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var l=null==n.name?null:""+n.name;if("hidden"===n.type&&e.getAttribute("name")===l)return e}if(null===(e=sk(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,rC))?(t.stateNode=r,rw=t,rS=sk(r.firstChild),rC=!1,l=!0):l=!1),l||rP(t)),K(t),l=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,r=a.children,ss(l,a)?r=null:null!==o&&ss(l,o)&&(t.flags|=32),null!==t.memoizedState&&(sX._currentValue=l=lU(e,t,l$,null,null,n)),ox(e,t),oy(e,t,r,n),t.child;case 6:return null===e&&rx&&((e=n=rS)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;)if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n||null===(e=sk(e.nextSibling)))return null;return e}(n,t.pendingProps,rC))?(t.stateNode=n,rw=t,rS=null,e=!0):e=!1),e||rP(t)),null;case 13:return oL(e,t,n);case 4:return W(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=a1(t,null,r,n):oy(e,t,r,n),t.child;case 11:return ov(e,t,t.type,t.pendingProps,n);case 7:return oy(e,t,t.pendingProps,n),t.child;case 8:case 12:return oy(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,rM(t,t.type,r.value),oy(e,t,r.children,n),t.child;case 9:return l=t.type._context,r=t.pendingProps.children,rV(t),r=r(l=rB(l)),t.flags|=1,oy(e,t,r,n),t.child;case 14:return ob(e,t,t.type,t.pendingProps,n);case 15:return ok(e,t,t.type,t.pendingProps,n);case 19:return oM(e,t,n);case 31:return r=t.pendingProps,n=t.mode,r={mode:r.mode,children:r.children},null===e?(n=oR(r,n)).ref=t.ref:(n=rn(e.child,r)).ref=t.ref,t.child=n,n.return=t,t=n;case 22:return ow(e,t,n);case 24:return rV(t),r=rB(rG),null===e?(null===(l=r6())&&(l=iN,a=rX(),l.pooledCache=a,a.refCount++,null!==a&&(l.pooledCacheLanes|=n),l=a),t.memoizedState={parent:r,cache:l},lc(t),rM(t,rG,l)):(0!=(e.lanes&n)&&(lf(e,t),lv(t,null,null,n),ly()),l=e.memoizedState,a=t.memoizedState,l.parent!==r?(l={parent:r,cache:r},t.memoizedState=l,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=l),rM(t,rG,r)):(rM(t,rG,r=a.cache),r!==l.cache&&rj(t,[rG],n,!0))),oy(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function oH(e){e.flags|=4}function o$(e,t){if("stylesheet"!==t.type||0!=(4&t.state.loading))e.flags&=-0x1000001;else if(e.flags|=0x1000000,!sB(t)){if(null!==(t=a3.current)&&((4194048&iL)===iL?null!==a4:(0x3c00000&iL)!==iL&&0==(0x20000000&iL)||t!==a4))throw lo=ln,le;e.flags|=8192}}function oV(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?eS():0x20000000,e.lanes|=t,iV|=t)}function oB(e,t){if(!rx)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function oQ(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=0x3e00000&l.subtreeFlags,r|=0x3e00000&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function oW(e,t){switch(rk(t),t.tag){case 3:rI(rG),q();break;case 26:case 27:case 5:Y(t);break;case 4:q();break;case 13:a9(t);break;case 19:j(a7);break;case 10:rI(t.type);break;case 22:case 23:a9(t),lC(),null!==e&&j(r8);break;case 24:rI(rG)}}function oq(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var l=r.next;n=l;do{if((n.tag&e)===e){r=void 0;var a=n.create;n.inst.destroy=r=a()}n=n.next}while(n!==l)}}catch(e){ux(t,t.return,e)}}function oK(e,t,n){try{var r=t.updateQueue,l=null!==r?r.lastEffect:null;if(null!==l){var a=l.next;r=a;do{if((r.tag&e)===e){var o=r.inst,i=o.destroy;if(void 0!==i){o.destroy=void 0,l=t;try{i()}catch(e){ux(l,n,e)}}}r=r.next}while(r!==a)}}catch(e){ux(t,t.return,e)}}function oY(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{lk(t,n)}catch(t){ux(e,e.return,t)}}}function oG(e,t,n){n.props=oa(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){ux(e,t,n)}}function oX(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){ux(e,t,n)}}function oZ(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){ux(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){ux(e,t,n)}else n.current=null}function oJ(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){ux(e,e.return,t)}}function o0(e,t,n){try{var r=e.stateNode;(function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,a=null,o=null,i=null,s=null,c=null,f=null;for(m in n){var d=n[m];if(n.hasOwnProperty(m)&&null!=d)switch(m){case"checked":case"value":break;case"defaultValue":s=d;default:r.hasOwnProperty(m)||st(e,t,m,null,r,d)}}for(var p in r){var m=r[p];if(d=n[p],r.hasOwnProperty(p)&&(null!=m||null!=d))switch(p){case"type":a=m;break;case"name":l=m;break;case"checked":c=m;break;case"defaultChecked":f=m;break;case"value":o=m;break;case"defaultValue":i=m;break;case"children":case"dangerouslySetInnerHTML":if(null!=m)throw Error(u(137,t));break;default:m!==d&&st(e,t,p,m,r,d)}}tn(e,o,i,s,c,f,a,l);return;case"select":for(a in m=o=i=p=null,n)if(s=n[a],n.hasOwnProperty(a)&&null!=s)switch(a){case"value":break;case"multiple":m=s;default:r.hasOwnProperty(a)||st(e,t,a,null,r,s)}for(l in r)if(a=r[l],s=n[l],r.hasOwnProperty(l)&&(null!=a||null!=s))switch(l){case"value":p=a;break;case"defaultValue":i=a;break;case"multiple":o=a;default:a!==s&&st(e,t,l,a,r,s)}t=i,n=o,r=m,null!=p?ta(e,!!n,p,!1):!!r!=!!n&&(null!=t?ta(e,!!n,t,!0):ta(e,!!n,n?[]:"",!1));return;case"textarea":for(i in m=p=null,n)if(l=n[i],n.hasOwnProperty(i)&&null!=l&&!r.hasOwnProperty(i))switch(i){case"value":case"children":break;default:st(e,t,i,null,r,l)}for(o in r)if(l=r[o],a=n[o],r.hasOwnProperty(o)&&(null!=l||null!=a))switch(o){case"value":p=l;break;case"defaultValue":m=l;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(u(91));break;default:l!==a&&st(e,t,o,l,r,a)}to(e,p,m);return;case"option":for(var h in n)p=n[h],n.hasOwnProperty(h)&&null!=p&&!r.hasOwnProperty(h)&&("selected"===h?e.selected=!1:st(e,t,h,null,r,p));for(s in r)p=r[s],m=n[s],r.hasOwnProperty(s)&&p!==m&&(null!=p||null!=m)&&("selected"===s?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:st(e,t,s,p,r,m));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&st(e,t,g,null,r,p);for(c in r)if(p=r[c],m=n[c],r.hasOwnProperty(c)&&p!==m&&(null!=p||null!=m))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(u(137,t));break;default:st(e,t,c,p,r,m)}return;default:if(td(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!r.hasOwnProperty(y)&&sn(e,t,y,void 0,r,p);for(f in r)p=r[f],m=n[f],r.hasOwnProperty(f)&&p!==m&&(void 0!==p||void 0!==m)&&sn(e,t,f,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!r.hasOwnProperty(v)&&st(e,t,v,null,r,p);for(d in r)p=r[d],m=n[d],r.hasOwnProperty(d)&&p!==m&&(null!=p||null!=m)&&st(e,t,d,p,r,m)})(r,e.type,n,t),r[eO]=t}catch(t){ux(e,e.return,t)}}function o1(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&sg(e.type)||4===e.tag}function o2(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||o1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&sg(e.type)||2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function o3(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&sg(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(o3(e,t,n),e=e.sibling;null!==e;)o3(e,t,n),e=e.sibling}function o4(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);sr(t,r,n),t[eL]=e,t[eO]=n}catch(t){ux(e,e.return,t)}}var o8=!1,o6=!1,o5=!1,o9="function"==typeof WeakSet?WeakSet:Set,o7=null;function ie(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ip(e,n),4&r&&oq(5,n);break;case 1:if(ip(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){ux(n,n.return,e)}else{var l=oa(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){ux(n,n.return,e)}}64&r&&oY(n),512&r&&oX(n,n.return);break;case 3:if(ip(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{lk(e,t)}catch(e){ux(n,n.return,e)}}break;case 27:null===t&&4&r&&o4(n);case 26:case 5:ip(e,n),null===t&&4&r&&oJ(n),512&r&&oX(n,n.return);break;case 12:default:ip(e,n);break;case 13:ip(e,n),4&r&&io(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$?"!==e.data||"complete"===n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=uP.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||o8)){t=null!==t&&null!==t.memoizedState||o6,l=o8;var a=o6;o8=r,(o6=t)&&!a?function e(t,n,r){for(r=r&&0!=(8772&n.subtreeFlags),n=n.child;null!==n;){var l=n.alternate,a=t,o=n,i=o.flags;switch(o.tag){case 0:case 11:case 15:e(a,o,r),oq(4,o);break;case 1:if(e(a,o,r),"function"==typeof(a=(l=o).stateNode).componentDidMount)try{a.componentDidMount()}catch(e){ux(l,l.return,e)}if(null!==(a=(l=o).updateQueue)){var u=l.stateNode;try{var s=a.shared.hiddenCallbacks;if(null!==s)for(a.shared.hiddenCallbacks=null,a=0;a title"))),sr(a,r,n),a[eL]=e,eB(a),r=a;break e;case"link":var o=s$("link","href",l).get(r+(n.href||""));if(o){for(var i=0;i<\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?l.createElement(n,{is:r.is}):l.createElement(n)}}e[eL]=t,e[eO]=r;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(t.stateNode=e,sr(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break;case"img":e=!0;break;default:e=!1}e&&oH(t)}}return oQ(t),t.flags&=-0x1000001,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&oH(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(u(166));if(e=B.current,rT(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(l=rw))switch(l.tag){case 27:case 5:r=l.memoizedProps}e[eL]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||u7(e.nodeValue,n)))||rP(t)}else(e=so(e).createTextNode(r))[eL]=t,t.stateNode=e}return oQ(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(l=rT(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(u(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(u(317));l[eL]=t}else rL(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;oQ(t),l=!1}else l=rO(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l){if(256&t.flags)return a9(t),t;return a9(t),null}}if(a9(t),0!=(128&t.flags))return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){r=t.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool);var a=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),oV(t,t.updateQueue),oQ(t),null;case 4:return q(),null===e&&uJ(t.stateNode.containerInfo),oQ(t),null;case 10:return rI(t.type),oQ(t),null;case 19:if(j(a7),null===(l=t.memoizedState))return oQ(t),null;if(r=0!=(128&t.flags),null===(a=l.rendering))if(r)oB(l,!1);else{if(0!==iI||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=oe(e))){for(t.flags|=128,oB(l,!1),e=a.updateQueue,t.updateQueue=e,oV(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)rr(n,e),n=n.sibling;return H(a7,1&a7.current|2),t.child}e=e.sibling}null!==l.tail&&et()>iK&&(t.flags|=128,r=!0,oB(l,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=oe(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,oV(t,e),oB(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate&&!rx)return oQ(t),null}else 2*et()-l.renderingStartTime>iK&&0x20000000!==n&&(t.flags|=128,r=!0,oB(l,!1),t.lanes=4194304);l.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=l.last)?e.sibling=a:t.child=a,l.last=a)}if(null!==l.tail)return t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=et(),t.sibling=null,e=a7.current,H(a7,r?1&e|2:1&e),t;return oQ(t),null;case 22:case 23:return a9(t),lC(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!=(0x20000000&n)&&0==(128&t.flags)&&(oQ(t),6&t.subtreeFlags&&(t.flags|=8192)):oQ(t),null!==(n=t.updateQueue)&&oV(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&j(r8),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),rI(rG),oQ(t),null;case 25:case 30:return null}throw Error(u(156,t.tag))}(t.alternate,t,iM);if(null!==n){iT=n;return}if(null!==(t=t.sibling)){iT=t;return}iT=t=e}while(null!==t);0===iI&&(iI=5)}function um(e,t){do{var n=function(e,t){switch(rk(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return rI(rG),q(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return Y(t),null;case 13:if(a9(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(u(340));rL()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return j(a7),null;case 4:return q(),null;case 10:return rI(t.type),null;case 22:case 23:return a9(t),lC(),null!==e&&j(r8),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return rI(rG),null;default:return null}}(e.alternate,e);if(null!==n){n.flags&=32767,iT=n;return}if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling)){iT=e;return}iT=e=n}while(null!==e);iI=6,iT=null}function uh(e,t,n,r,l,a,o,i,s){e.cancelPendingCommit=null;do uk();while(0!==iX);if(0!=(6&iz))throw Error(u(327));if(null!==t){if(t===e.current)throw Error(u(177));if(!function(e,t,n,r,l,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var i=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(n=o&~n;0g&&(o=g,g=h,h=o);var y=nP(i,h),v=nP(i,g);if(y&&v&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var b=f.createRange();b.setStart(y.node,y.offset),p.removeAllRanges(),h>g?(p.addRange(b),p.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),p.addRange(b))}}}}for(f=[],p=i;p=p.parentNode;)1===p.nodeType&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof i.focus&&i.focus(),i=0;in?32:n,D.T=null,n=i2,i2=null;var a=iZ,o=i0;if(iX=0,iJ=iZ=null,i0=0,0!=(6&iz))throw Error(u(331));var i=iz;if(iz|=4,iE(a.current),iy(a,a.current,o,n),iz=i,uF(0,!1),ef&&"function"==typeof ef.onPostCommitFiberRoot)try{ef.onPostCommitFiberRoot(ec,a)}catch(e){}return!0}finally{A.p=l,D.T=r,ub(e,t)}}function uS(e,t,n){t=nZ(n,t),t=od(e.stateNode,t,2),null!==(e=lp(e,t,2))&&(eE(e,2),uA(e))}function ux(e,t,n){if(3===e.tag)uS(e,e,n);else for(;null!==t;){if(3===t.tag){uS(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===iG||!iG.has(r))){e=nZ(n,e),null!==(r=lp(t,n=op(2),2))&&(om(n,r,t,e),eE(r,2),uA(r));break}}t=t.return}}function uE(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new iP;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(iF=!0,l.add(n),e=uC.bind(null,e,t,n),t.then(e,e))}function uC(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,iN===e&&(iL&n)===n&&(4===iI||3===iI&&(0x3c00000&iL)===iL&&300>et()-iq?0==(2&iz)&&ul(e,0):iH|=n,iV===iL&&(iV=0)),uA(e)}function u_(e,t){0===t&&(t=eS()),null!==(e=n8(e,t))&&(eE(e,t),uA(e))}function uP(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),u_(e,n)}function uz(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(u(314))}null!==r&&r.delete(t),u_(e,n)}var uN=null,uT=null,uL=!1,uO=!1,uR=!1,uD=0;function uA(e){e!==uT&&null===e.next&&(null===uT?uN=uT=e:uT=uT.next=e),uO=!0,uL||(uL=!0,sm(function(){0!=(6&iz)?X(er,uM):uI()}))}function uF(e,t){if(!uR&&uO){uR=!0;do for(var n=!1,r=uN;null!==r;){if(!t)if(0!==e){var l=r.pendingLanes;if(0===l)var a=0;else{var o=r.suspendedLanes,i=r.pingedLanes;a=0xc000095&(a=(1<<31-ep(42|e)+1)-1&(l&~(o&~i)))?0xc000095&a|1:a?2|a:0}0!==a&&(n=!0,uH(r,a))}else a=iL,0==(3&(a=eb(r,r===iN?a:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||ek(r,a)||(n=!0,uH(r,a));r=r.next}while(n);uR=!1}}function uM(){uI()}function uI(){uO=uL=!1;var e,t=0;0!==uD&&(((e=window.event)&&"popstate"===e.type?e===sc||(sc=e,0):(sc=null,1))||(t=uD),uD=0);for(var n=et(),r=null,l=uN;null!==l;){var a=l.next,o=uU(l,n);0===o?(l.next=null,null===r?uN=a:r.next=a,null===a&&(uT=r)):(r=l,(0!==t||0!=(3&o))&&(uO=!0)),l=a}uF(t,!1)}function uU(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-0x3c00001&e.pendingLanes;0r){n=r;var o=e.ownerDocument;if(1&n&&sE(o.documentElement),2&n&&sE(o.body),4&n)for(sE(n=o.head),o=n.firstChild;o;){var i=o.nextSibling,u=o.nodeName;o[eI]||"SCRIPT"===u||"STYLE"===u||"LINK"===u&&"stylesheet"===o.rel.toLowerCase()||n.removeChild(o),o=i}}if(0===l){e.removeChild(a),cb(t);return}l--}else"$"===n||"$?"===n||"$!"===n?l++:r=n.charCodeAt(0)-48;else r=0;n=a}while(n);cb(t)}function sv(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":sv(n),eU(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function sb(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function sk(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var sw=null;function sS(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function sx(e,t,n){switch(t=so(n),e){case"html":if(!(e=t.documentElement))throw Error(u(452));return e;case"head":if(!(e=t.head))throw Error(u(453));return e;case"body":if(!(e=t.body))throw Error(u(454));return e;default:throw Error(u(451))}}function sE(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);eU(e)}var sC=new Map,s_=new Set;function sP(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var sz=A.d;A.d={f:function(){var e=sz.f(),t=un();return e||t},r:function(e){var t=eH(e);null!==t&&5===t.tag&&"form"===t.type?aO(t):sz.r(e)},D:function(e){sz.D(e),sT("dns-prefetch",e,null)},C:function(e,t){sz.C(e,t),sT("preconnect",e,t)},L:function(e,t,n){if(sz.L(e,t,n),sN&&e&&t){var r='link[rel="preload"][as="'+tt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(r+='[imagesrcset="'+tt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(r+='[imagesizes="'+tt(n.imageSizes)+'"]')):r+='[href="'+tt(e)+'"]';var l=r;switch(t){case"style":l=sO(e);break;case"script":l=sA(e)}sC.has(l)||(e=p({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),sC.set(l,e),null!==sN.querySelector(r)||"style"===t&&sN.querySelector(sR(l))||"script"===t&&sN.querySelector(sF(l))||(sr(t=sN.createElement("link"),"link",e),eB(t),sN.head.appendChild(t)))}},m:function(e,t){if(sz.m(e,t),sN&&e){var n=t&&"string"==typeof t.as?t.as:"script",r='link[rel="modulepreload"][as="'+tt(n)+'"][href="'+tt(e)+'"]',l=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=sA(e)}if(!sC.has(l)&&(e=p({rel:"modulepreload",href:e},t),sC.set(l,e),null===sN.querySelector(r))){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(sN.querySelector(sF(l)))return}sr(n=sN.createElement("link"),"link",e),eB(n),sN.head.appendChild(n)}}},X:function(e,t){if(sz.X(e,t),sN&&e){var n=eV(sN).hoistableScripts,r=sA(e),l=n.get(r);l||((l=sN.querySelector(sF(r)))||(e=p({src:e,async:!0},t),(t=sC.get(r))&&sj(e,t),eB(l=sN.createElement("script")),sr(l,"link",e),sN.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},n.set(r,l))}},S:function(e,t,n){if(sz.S(e,t,n),sN&&e){var r=eV(sN).hoistableStyles,l=sO(e);t=t||"default";var a=r.get(l);if(!a){var o={loading:0,preload:null};if(a=sN.querySelector(sR(l)))o.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},n),(n=sC.get(l))&&sU(e,n);var i=a=sN.createElement("link");eB(i),sr(i,"link",e),i._p=new Promise(function(e,t){i.onload=e,i.onerror=t}),i.addEventListener("load",function(){o.loading|=1}),i.addEventListener("error",function(){o.loading|=2}),o.loading|=4,sI(a,t,sN)}a={type:"stylesheet",instance:a,count:1,state:o},r.set(l,a)}}},M:function(e,t){if(sz.M(e,t),sN&&e){var n=eV(sN).hoistableScripts,r=sA(e),l=n.get(r);l||((l=sN.querySelector(sF(r)))||(e=p({src:e,async:!0,type:"module"},t),(t=sC.get(r))&&sj(e,t),eB(l=sN.createElement("script")),sr(l,"link",e),sN.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},n.set(r,l))}}};var sN="undefined"==typeof document?null:document;function sT(e,t,n){if(sN&&"string"==typeof t&&t){var r=tt(t);r='link[rel="'+e+'"][href="'+r+'"]',"string"==typeof n&&(r+='[crossorigin="'+n+'"]'),s_.has(r)||(s_.add(r),e={rel:e,crossOrigin:n,href:t},null===sN.querySelector(r)&&(sr(t=sN.createElement("link"),"link",e),eB(t),sN.head.appendChild(t)))}}function sL(e,t,n,r){var l=(l=B.current)?sP(l):null;if(!l)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=sO(n.href),(r=(n=eV(l).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=sO(n.href);var a,o,i,s,c=eV(l).hoistableStyles,f=c.get(e);if(f||(l=l.ownerDocument||l,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,f),(c=l.querySelector(sR(e)))&&!c._p&&(f.instance=c,f.state.loading=5),sC.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},sC.set(e,n),c||(a=l,o=e,i=n,s=f.state,a.querySelector('link[rel="preload"][as="style"]['+o+"]")?s.loading=1:(s.preload=o=a.createElement("link"),o.addEventListener("load",function(){return s.loading|=1}),o.addEventListener("error",function(){return s.loading|=2}),sr(o,"link",i),eB(o),a.head.appendChild(o))))),t&&null===r)throw Error(u(528,""));return f}if(t&&null!==r)throw Error(u(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=sA(n),(r=(n=eV(l).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function sO(e){return'href="'+tt(e)+'"'}function sR(e){return'link[rel="stylesheet"]['+e+"]"}function sD(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function sA(e){return'[src="'+tt(e)+'"]'}function sF(e){return"script[async]"+e}function sM(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+tt(n.href)+'"]');if(r)return t.instance=r,eB(r),r;var l=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return eB(r=(e.ownerDocument||e).createElement("style")),sr(r,"style",l),sI(r,n.precedence,e),t.instance=r;case"stylesheet":l=sO(n.href);var a=e.querySelector(sR(l));if(a)return t.state.loading|=4,t.instance=a,eB(a),a;r=sD(n),(l=sC.get(l))&&sU(r,l),eB(a=(e.ownerDocument||e).createElement("link"));var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),sr(a,"link",r),t.state.loading|=4,sI(a,n.precedence,e),t.instance=a;case"script":if(a=sA(n.src),l=e.querySelector(sF(a)))return t.instance=l,eB(l),l;return r=n,(l=sC.get(a))&&sj(r=p({},n),l),eB(l=(e=e.ownerDocument||e).createElement("script")),sr(l,"link",r),e.head.appendChild(l),t.instance=l;case"void":return null;default:throw Error(u(443,t.type))}return"stylesheet"===t.type&&0==(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,sI(r,n.precedence,e)),t.instance}function sI(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=r.length?r[r.length-1]:null,a=l,o=0;o title"):null)}function sB(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}var sQ=null;function sW(){}function sq(){if(this.count--,0===this.count){if(this.stylesheets)sY(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var sK=null;function sY(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,sK=new Map,t.forEach(sG,e),sK=null,sq.call(e))}function sG(e,t){if(!(4&t.state.loading)){var n=sK.get(e);if(n)var r=n.get(null);else{n=new Map,sK.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a{e.exports=n(54035)},50435:(e,t,n)=>{e.exports=n(61608)},54035:(e,t,n)=>{var r=n(60910),l=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.iterator,g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,v={};function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}function k(){}function w(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("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")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=b.prototype;var S=w.prototype=new k;S.constructor=w,y(S,b.prototype),S.isPureReactComponent=!0;var x=Array.isArray,E={H:null,A:null,T:null,S:null,V:null},C=Object.prototype.hasOwnProperty;function _(e,t,n,r,a,o){return{$$typeof:l,type:e,key:t,ref:void 0!==(n=o.ref)?n:null,props:o}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}var z=/\/+/g;function N(e,t){var n,r;return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36)}function T(){}function L(e,t,n){if(null==e)return e;var r=[],o=0;return!function e(t,n,r,o,i){var u,s,c,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case l:case a:d=!0;break;case m:return e((d=t._init)(t._payload),n,r,o,i)}}if(d)return i=i(t),d=""===o?"."+N(t,0):o,x(i)?(r="",null!=d&&(r=d.replace(z,"$&/")+"/"),e(i,n,r,"",function(e){return e})):null!=i&&(P(i)&&(u=i,s=r+(null==i.key||t&&t.key===i.key?"":(""+i.key).replace(z,"$&/")+"/")+d,i=_(u.type,s,void 0,void 0,void 0,u.props)),n.push(i)),1;d=0;var p=""===o?".":o+":";if(x(t))for(var g=0;g{var n=Symbol.for("react.transitional.element");function r(e,t,r){var l=null;if(void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return{$$typeof:n,type:e,key:l,ref:void 0!==(t=r.ref)?t:null,props:r}}t.Fragment=Symbol.for("react.fragment"),t.jsx=r,t.jsxs=r},61608:(e,t)=>{function n(e,t){var n=e.length;for(e.push(t);0>>1,l=e[r];if(0>>1;ra(u,n))sa(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[i]=n,r=i);else if(sa(c,n))e[r]=c,e[s]=n,r=s;else break}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o,i=performance;t.unstable_now=function(){return i.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}var c=[],f=[],d=1,p=null,m=3,h=!1,g=!1,y=!1,v=!1,b="function"==typeof setTimeout?setTimeout:null,k="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function S(e){for(var t=r(f);null!==t;){if(null===t.callback)l(f);else if(t.startTime<=e)l(f),t.sortIndex=t.expirationTime,n(c,t);else break;t=r(f)}}function x(e){if(y=!1,S(e),!g)if(null!==r(c))g=!0,E||(E=!0,o());else{var t=r(f);null!==t&&O(x,t.startTime-e)}}var E=!1,C=-1,_=5,P=-1;function z(){return!!v||!(t.unstable_now()-P<_)}function N(){if(v=!1,E){var e=t.unstable_now();P=e;var n=!0;try{e:{g=!1,y&&(y=!1,k(C),C=-1),h=!0;var a=m;try{t:{for(S(e),p=r(c);null!==p&&!(p.expirationTime>e&&z());){var i=p.callback;if("function"==typeof i){p.callback=null,m=p.priorityLevel;var u=i(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof u){p.callback=u,S(e),n=!0;break t}p===r(c)&&l(c),S(e)}else l(c);p=r(c)}if(null!==p)n=!0;else{var s=r(f);null!==s&&O(x,s.startTime-e),n=!1}}break e}finally{p=null,m=a,h=!1}}}finally{n?o():E=!1}}}if("function"==typeof w)o=function(){w(N)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,L=T.port2;T.port1.onmessage=N,o=function(){L.postMessage(null)}}else o=function(){b(N,0)};function O(e,n){C=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125i?(e.sortIndex=a,n(f,e),null===r(c)&&e===r(f)&&(y?(k(C),C=-1):y=!0,O(x,a-i))):(e.sortIndex=u,n(c,e),g||h||(g=!0,E||(E=!0,o()))),e},t.unstable_shouldYield=z,t.unstable_wrapCallback=function(e){var t=m;return function(){var n=m;m=t;try{return e.apply(this,arguments)}finally{m=n}}}},77324:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(18803)},87897:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(15339)}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/main-a5ecb6fffed1b8e9.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/main-a5ecb6fffed1b8e9.js
    deleted file mode 100644
    index 74a9d92bf..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/main-a5ecb6fffed1b8e9.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8792],{653:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RouteAnnouncer:function(){return l},default:function(){return s}});let n=r(51532),o=r(5640),a=n._(r(50148)),i=r(78119),u={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",top:0,width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},l=()=>{let{asPath:e}=(0,i.useRouter)(),[t,r]=a.default.useState(""),n=a.default.useRef(e);return a.default.useEffect(()=>{if(n.current!==e)if(n.current=e,document.title)r(document.title);else{var t;let n=document.querySelector("h1");r((null!=(t=null==n?void 0:n.innerText)?t:null==n?void 0:n.textContent)||e)}},[e]),(0,o.jsx)("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:u,children:t})},s=l;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3398:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathnameContextProviderAdapter:function(){return p},adaptForAppRouterInstance:function(){return c},adaptForPathParams:function(){return d},adaptForSearchParams:function(){return f}});let n=r(98781),o=r(5640),a=n._(r(50148)),i=r(40372),u=r(44964),l=r(33270),s=r(59315);function c(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},hmrRefresh(){},push(t,r){let{scroll:n}=void 0===r?{}:r;e.push(t,void 0,{scroll:n})},replace(t,r){let{scroll:n}=void 0===r?{}:r;e.replace(t,void 0,{scroll:n})},prefetch(t){e.prefetch(t)}}}function f(e){return e.isReady&&e.query?(0,l.asPathToSearchParams)(e.asPath):new URLSearchParams}function d(e){if(!e.isReady||!e.query)return null;let t={};for(let r of Object.keys((0,s.getRouteRegex)(e.pathname).groups))t[r]=e.query[r];return t}function p(e){let{children:t,router:r,...n}=e,l=(0,a.useRef)(n.isAutoExport),s=(0,a.useMemo)(()=>{let e,t=l.current;if(t&&(l.current=!1),(0,u.isDynamicRoute)(r.pathname)&&(r.isFallback||t&&!r.isReady))return null;try{e=new URL(r.asPath,"http://f")}catch(e){return"/"}return e.pathname},[r.asPath,r.isFallback,r.isReady,r.pathname]);return(0,o.jsx)(i.PathnameContext.Provider,{value:s,children:t})}},5224:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(51532)._(r(50148)).default.createContext({})},5748:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});let n=r(54507),o=r(37197),a=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:a}=(0,o.parsePath)(e);return""+(0,n.removeTrailingSlash)(t)+r+a};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7123:e=>{!function(){var t={229:function(e){var t,r,n,o=e.exports={};function a(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}function u(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var l=[],s=!1,c=-1;function f(){s&&n&&(s=!1,n.length?l=n.concat(l):c=-1,l.length&&d())}function d(){if(!s){var e=u(f);s=!0;for(var t=l.length;t;){for(n=l,l=[];++c1)for(var r=1;r{"use strict";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o{e(...n)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},10382:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(74239);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Object.defineProperty(Error((0,n.isPlainObject)(e)?function(e){let t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})}(e):e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},11426:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTML_LIMITED_BOT_UA_RE",{enumerable:!0,get:function(){return r}});let r=/[\w-]+-Google|Google-[\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight/i},12697:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return i},LayoutRouterContext:function(){return a},MissingSlotContext:function(){return l},TemplateContext:function(){return u}});let n=r(51532)._(r(50148)),o=n.default.createContext(null),a=n.default.createContext(null),i=n.default.createContext(null),u=n.default.createContext(null),l=n.default.createContext(new Set)},13040:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});let n=r(57053),o=r(90251),a=r(67953),i=r(14485),u=r(5748),l=r(75986),s=r(44964),c=r(16090),f=r(59315),d=r(17902);function p(e,t,r){let p,h="string"==typeof t?t:(0,o.formatWithValidation)(t),_=h.match(/^[a-z][a-z0-9+.-]*:\/\//i),m=_?h.slice(_[0].length):h;if((m.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+h+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(m);h=(_?_[0]:"")+t}if(!(0,l.isLocalURL)(h))return r?[h]:h;try{let t=h.startsWith("#")?e.asPath:e.pathname;if(h.startsWith("?")&&(t=e.asPath,(0,s.isDynamicRoute)(e.pathname))){t=e.pathname;let r=(0,f.getRouteRegex)(e.pathname);(0,d.getRouteMatcher)(r)(e.asPath)||(t=e.asPath)}p=new URL(t,"http://n")}catch(e){p=new URL("/","http://n")}try{let e=new URL(h,p);e.pathname=(0,u.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:u}=(0,c.interpolateAs)(e.pathname,e.pathname,r);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(r,u)}))}let i=e.origin===p.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[h]:h}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14485:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return E},MissingStaticPage:function(){return g},NormalizeError:function(){return _},PageNotFoundError:function(){return m},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return i},getURL:function(){return u},isAbsoluteUrl:function(){return a},isResSent:function(){return s},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return y}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;ao.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function u(){let{href:e}=window.location,t=i();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&s(r))return n;if(!n)throw Object.defineProperty(Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class _ extends Error{}class m extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function y(e){return JSON.stringify({message:e.message,stack:e.stack})}},14749:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return u}});let n=r(54507),o=r(82868),a=r(84837),i=r(84660);function u(e){let t=(0,i.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,o.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,o.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},15526:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return a},normalizeRscURL:function(){return i}});let n=r(93507),o=r(22553);function a(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function i(e){return e.replace(/\.rsc($|\?)/,"$1")}},16090:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(17902),o=r(59315);function a(e,t,r){let a="",i=(0,o.getRouteRegex)(e),u=i.groups,l=(t!==e?(0,n.getRouteMatcher)(i)(t):"")||r;a=e;let s=Object.keys(u);return s.every(e=>{let t=l[e]||"",{repeat:r,optional:n}=u[e],o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(a=a.replace(o,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:s,result:a}}},16460:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}}),r(51532);let n=r(5640);r(50148);let o=r(78119);function a(e){function t(t){return(0,n.jsx)(e,{router:(0,o.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17165:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(37197);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},17333:(e,t)=>{"use strict";let r;function n(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17902:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return a}});let n=r(14485),o=r(29197);function a(e){let{re:t,groups:r}=e;return(0,o.safeRouteMatcher)(e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw Object.defineProperty(new n.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},i={};for(let[e,t]of Object.entries(r)){let r=o[t.pos];void 0!==r&&(t.repeat?i[e]=r.split("/").map(e=>a(e)):i[e]=a(r))}return i})}},17916:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});let n=r(79219),o=r(63671),a=r(17165);function i(e,t){var r,i;let{basePath:u,i18n:l,trailingSlash:s}=null!=(r=t.nextConfig)?r:{},c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):s};u&&(0,a.pathHasPrefix)(c.pathname,u)&&(c.pathname=(0,o.removePathPrefix)(c.pathname,u),c.basePath=u);let f=c.pathname;if(c.pathname.startsWith("/_next/data/")&&c.pathname.endsWith(".json")){let e=c.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");c.buildId=e[0],f="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(c.pathname=f)}if(l){let e=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,n.normalizeLocalePath)(c.pathname,l.locales);c.locale=e.detectedLocale,c.pathname=null!=(i=e.pathname)?i:c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(f):(0,n.normalizeLocalePath)(f,l.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},18686:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRouteObjects:function(){return o},getSortedRoutes:function(){return n}});class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").'),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Object.defineProperty(Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let r=o.slice(1,-1),i=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),i=!0),r.startsWith("…"))throw Object.defineProperty(Error("Detected a three-dot character ('…') at ('"+r+"'). Did you mean ('...')?"),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Object.defineProperty(Error("Segment names may not start or end with extra brackets ('"+r+"')."),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(r.startsWith("."))throw Object.defineProperty(Error("Segment names may not start with erroneous periods ('"+r+"')."),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function a(e,r){if(null!==e&&e!==r)throw Object.defineProperty(Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"')."),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});t.forEach(e=>{if(e===r)throw Object.defineProperty(Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path'),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Object.defineProperty(Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path'),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),t.push(r)}if(n)if(i){if(null!=this.restSlugName)throw Object.defineProperty(Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).'),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").'),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});a(this.restSlugName,r),this.restSlugName=r,o="[...]"}else{if(i)throw Object.defineProperty(Error('Optional route parameters are not yet supported ("'+e[0]+'").'),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});a(this.slugName,r),this.slugName=r,o="[]"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}function o(e,t){let r={},o=[];for(let n=0;ne[r[t]])}},19231:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(51532),o=r(5640),a=n._(r(50148)),i=r(14485);async function u(e){let{Component:t,ctx:r}=e;return{pageProps:await (0,i.loadGetInitialProps)(t,r)}}class l extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,o.jsx)(e,{...t})}}l.origGetInitialProps=u,l.getInitialProps=u,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19943:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let n=r(51532),o=r(74503),a=r(16090),i=n._(r(21914)),u=r(41158),l=r(91064),s=r(70390),c=r(54507),f=r(83469);r(78473);class d{getPageList(){return(0,f.getClientBuildManifest)().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[],window.__MIDDLEWARE_MATCHERS}getDataHref(e){let{asPath:t,href:r,locale:n}=e,{pathname:f,query:d,search:p}=(0,s.parseRelativeUrl)(r),{pathname:h}=(0,s.parseRelativeUrl)(t),_=(0,c.removeTrailingSlash)(f);if("/"!==_[0])throw Object.defineProperty(Error('Route name should start with a "/", got "'+_+'"'),"__NEXT_ERROR_CODE",{value:"E303",enumerable:!1,configurable:!0});var m=e.skipInterpolation?h:(0,l.isDynamicRoute)(_)?(0,a.interpolateAs)(f,h,d).result:_;let g=(0,i.default)((0,c.removeTrailingSlash)((0,u.addLocale)(m,n)),".json");return(0,o.addBasePath)("/_next/data/"+this.buildId+g+p,!0)}_isSsg(e){return this.promisedSsgManifest.then(t=>t.has(e))}loadPage(e){return this.routeLoader.loadRoute(e).then(e=>{if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map(e=>({href:e.href,text:e.content}))};throw e.error})}prefetch(e){return this.routeLoader.prefetch(e)}constructor(e,t){this.routeLoader=(0,f.createRouteLoader)(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise(e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},20467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{hasAdjacentParameterIssues:function(){return n},normalizeAdjacentParameters:function(){return o},normalizeTokensForRegexp:function(){return a},stripParameterSeparators:function(){return i}});let r="_NEXTSEP_";function n(e){return"string"==typeof e&&!!(/\/\(\.{1,3}\):[^/\s]+/.test(e)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(e))}function o(e){let t=e;return(t=t.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${r}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${r}`)}function a(e){return e.map(e=>"object"==typeof e&&null!==e&&"modifier"in e&&("*"===e.modifier||"+"===e.modifier)&&"prefix"in e&&"suffix"in e&&""===e.prefix&&""===e.suffix?{...e,prefix:"/"}:e)}function i(e){let t={};for(let[n,o]of Object.entries(e))"string"==typeof o?t[n]=o.replace(RegExp(`^${r}`),""):Array.isArray(o)?t[n]=o.map(e=>"string"==typeof e?e.replace(RegExp(`^${r}`),""):e):t[n]=o;return t}},21914:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=""),("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:e)+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},22553:(e,t)=>{"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}function n(e){return e.startsWith("@")&&"@children"!==e}function o(e,t){if(e.includes(a)){let e=JSON.stringify(t);return"{}"!==e?a+"?"+e:a}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DEFAULT_SEGMENT_KEY:function(){return i},PAGE_SEGMENT_KEY:function(){return a},addSearchParamsIfPageSegment:function(){return o},isGroupSegment:function(){return r},isParallelRouteSegment:function(){return n}});let a="__PAGE__",i="__DEFAULT__"},22554:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let n=r(51532),o=r(5640),a=n._(r(50148)),i=n._(r(31226)),u={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function l(e){let{req:t,res:r,err:n}=e;return{statusCode:r&&r.statusCode?r.statusCode:n?n.statusCode:404,hostname:window.location.hostname}}let s={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};class c extends a.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||u[e]||"An unexpected error has occurred";return(0,o.jsxs)("div",{style:s.error,children:[(0,o.jsx)(i.default,{children:(0,o.jsx)("title",{children:e?e+": "+r:"Application error: a client-side exception has occurred"})}),(0,o.jsxs)("div",{style:s.desc,children:[(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?(0,o.jsx)("h1",{className:"next-error-h1",style:s.h1,children:e}):null,(0,o.jsx)("div",{style:s.wrap,children:(0,o.jsxs)("h2",{style:s.h2,children:[this.props.title||e?r:(0,o.jsxs)(o.Fragment,{children:["Application error: a client-side exception has occurred"," ",!!this.props.hostname&&(0,o.jsxs)(o.Fragment,{children:["while loading ",this.props.hostname]})," ","(see the browser console for more information)"]}),"."]})})]})]})}}c.displayName="ErrorPage",c.getInitialProps=l,c.origGetInitialProps=l,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23157:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return E},handleClientScriptLoad:function(){return _},initScriptLoader:function(){return m}});let n=r(51532),o=r(98781),a=r(5640),i=n._(r(87897)),u=o._(r(50148)),l=r(5224),s=r(83920),c=r(58052),f=r(95198),d=new Map,p=new Set,h=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:u="",strategy:l="afterInteractive",onError:c,stylesheets:f}=e,h=r||t;if(h&&p.has(h))return;if(d.has(t)){p.add(h),d.get(t).then(n,c);return}let _=()=>{o&&o(),p.add(h)},m=document.createElement("script"),g=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),n&&n.call(this,t),_()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});a?(m.innerHTML=a.__html||"",_()):u?(m.textContent="string"==typeof u?u:Array.isArray(u)?u.join(""):"",_()):t&&(m.src=t,d.set(t,g)),(0,s.setAttributesFromProps)(m,e),"worker"===l&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",l),f&&(e=>{if(i.default.preinit)return e.forEach(e=>{i.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(f),document.body.appendChild(m)};function _(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>h(e))}):h(e)}function m(e){e.forEach(_),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");p.add(t)})}function g(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:o=null,strategy:s="afterInteractive",onError:d,stylesheets:_,...m}=e,{updateScripts:g,scripts:E,getIsSsr:y,appDir:b,nonce:P}=(0,u.useContext)(l.HeadManagerContext);P=m.nonce||P;let v=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||r;v.current||(o&&e&&p.has(e)&&o(),v.current=!0)},[o,t,r]);let R=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{if(!R.current){if("afterInteractive"===s)h(e);else"lazyOnload"===s&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>h(e))}));R.current=!0}},[e,s]),("beforeInteractive"===s||"worker"===s)&&(g?(E[s]=(E[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:d,...m,nonce:P}]),g(E)):y&&y()?p.add(t||r):y&&!y()&&h({...e,nonce:P})),b){if(_&&_.forEach(e=>{i.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)if(!r)return m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:P,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,f.htmlEscapeJsonString)(JSON.stringify([0,{...m,id:t}]))+")"}});else return i.default.preload(r,m.integrity?{as:"script",integrity:m.integrity,nonce:P,crossOrigin:m.crossOrigin}:{as:"script",nonce:P,crossOrigin:m.crossOrigin}),(0,a.jsx)("script",{nonce:P,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,f.htmlEscapeJsonString)(JSON.stringify([r,{...m,id:t}]))+")"}});"afterInteractive"===s&&r&&i.default.preload(r,m.integrity?{as:"script",integrity:m.integrity,nonce:P,crossOrigin:m.crossOrigin}:{as:"script",nonce:P,crossOrigin:m.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let E=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23424:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let n=r(17165);function o(e){return(0,n.pathHasPrefix)(e,"/chatui")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24723:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(50148),o=n.useLayoutEffect,a=n.useEffect;function i(e){let{headManager:t,reduceComponentsToState:r}=e;function i(){if(t&&t.mountedInstances){let o=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(o,e))}}return o(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=i),()=>{t&&(t._pendingUpdate=i)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},26880:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{REDIRECT_ERROR_CODE:function(){return o},RedirectType:function(){return a},isRedirectError:function(){return i}});let n=r(52646),o="NEXT_REDIRECT";var a=function(e){return e.push="push",e.replace="replace",e}({});function i(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,a]=t,i=t.slice(2,-2).join(";"),u=Number(t.at(-2));return r===o&&("replace"===a||"push"===a)&&"string"==typeof i&&!isNaN(u)&&u in n.RedirectStatusCode}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27154:(e,t)=>{"use strict";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},28489:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});let r=function(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_SUFFIX:function(){return h},APP_DIR_ALIAS:function(){return M},CACHE_ONE_YEAR:function(){return T},DOT_NEXT_ALIAS:function(){return I},ESLINT_DEFAULT_DIRS:function(){return ee},GSP_NO_RETURNED_VALUE:function(){return Y},GSSP_COMPONENT_MEMBER_ERROR:function(){return J},GSSP_NO_RETURNED_VALUE:function(){return K},HTML_CONTENT_TYPE_HEADER:function(){return n},INFINITE_CACHE:function(){return j},INSTRUMENTATION_HOOK_FILENAME:function(){return w},JSON_CONTENT_TYPE_HEADER:function(){return o},MATCHED_PATH_HEADER:function(){return u},MIDDLEWARE_FILENAME:function(){return A},MIDDLEWARE_LOCATION_REGEXP:function(){return x},NEXT_BODY_SUFFIX:function(){return g},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return S},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return y},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return b},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return O},NEXT_CACHE_TAGS_HEADER:function(){return E},NEXT_CACHE_TAG_MAX_ITEMS:function(){return v},NEXT_CACHE_TAG_MAX_LENGTH:function(){return R},NEXT_DATA_SUFFIX:function(){return _},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return i},NEXT_META_SUFFIX:function(){return m},NEXT_QUERY_PARAM_PREFIX:function(){return a},NEXT_RESUME_HEADER:function(){return P},NON_STANDARD_NODE_ENV:function(){return Q},PAGES_DIR_ALIAS:function(){return C},PRERENDER_REVALIDATE_HEADER:function(){return l},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return s},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return X},ROOT_DIR_ALIAS:function(){return N},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return H},RSC_ACTION_ENCRYPTION_ALIAS:function(){return B},RSC_ACTION_PROXY_ALIAS:function(){return U},RSC_ACTION_VALIDATE_ALIAS:function(){return D},RSC_CACHE_WRAPPER_ALIAS:function(){return F},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return k},RSC_MOD_REF_PROXY_ALIAS:function(){return L},RSC_PREFETCH_SUFFIX:function(){return c},RSC_SEGMENTS_DIR_SUFFIX:function(){return f},RSC_SEGMENT_SUFFIX:function(){return d},RSC_SUFFIX:function(){return p},SERVER_PROPS_EXPORT_ERROR:function(){return V},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return G},SERVER_PROPS_SSG_CONFLICT:function(){return q},SERVER_RUNTIME:function(){return et},SSG_FALLBACK_EXPORT_ERROR:function(){return Z},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return W},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return z},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return r},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return $},WEBPACK_LAYERS:function(){return en},WEBPACK_RESOURCE_QUERIES:function(){return eo}});let r="text/plain",n="text/html; charset=utf-8",o="application/json; charset=utf-8",a="nxtP",i="nxtI",u="x-matched-path",l="x-prerender-revalidate",s="x-prerender-revalidate-if-generated",c=".prefetch.rsc",f=".segments",d=".segment.rsc",p=".rsc",h=".action",_=".json",m=".meta",g=".body",E="x-next-cache-tags",y="x-next-revalidated-tags",b="x-next-revalidate-tag-token",P="next-resume",v=128,R=256,O=1024,S="_N_T_",T=31536e3,j=0xfffffffe,A="middleware",x=`(?:src/)?${A}`,w="instrumentation",C="private-next-pages",I="private-dot-next",N="private-next-root-dir",M="private-next-app-dir",L="private-next-rsc-mod-ref-proxy",D="private-next-rsc-action-validate",U="private-next-rsc-server-reference",F="private-next-rsc-cache-wrapper",k="private-next-rsc-track-dynamic-import",B="private-next-rsc-action-encryption",H="private-next-rsc-action-client-wrapper",X="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",W="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",G="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",q="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",z="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",V="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",Y="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",K="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",$="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",J="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",Q='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',Z="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",ee=["app","pages","components","lib","src"],et={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},er={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},en={...er,GROUP:{builtinReact:[er.reactServerComponents,er.actionBrowser],serverOnly:[er.reactServerComponents,er.actionBrowser,er.instrument,er.middleware],neutralTarget:[er.apiNode,er.apiEdge],clientOnly:[er.serverSideRendering,er.appPagesBrowser],bundled:[er.reactServerComponents,er.actionBrowser,er.serverSideRendering,er.appPagesBrowser,er.shared,er.instrument,er.middleware],appPages:[er.reactServerComponents,er.serverSideRendering,er.appPagesBrowser,er.actionBrowser]}},eo={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},29197:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{safeCompile:function(){return i},safePathToRegexp:function(){return a},safeRegexpToFunction:function(){return u},safeRouteMatcher:function(){return l}});let n=r(86859),o=r(20467);function a(e,t,r){if("string"!=typeof e)return(0,n.pathToRegexp)(e,t,r);let a=(0,o.hasAdjacentParameterIssues)(e),i=a?(0,o.normalizeAdjacentParameters)(e):e;try{return(0,n.pathToRegexp)(i,t,r)}catch(i){if(!a)try{let a=(0,o.normalizeAdjacentParameters)(e);return(0,n.pathToRegexp)(a,t,r)}catch(e){}throw i}}function i(e,t){let r=(0,o.hasAdjacentParameterIssues)(e),a=r?(0,o.normalizeAdjacentParameters)(e):e;try{return(0,n.compile)(a,t)}catch(a){if(!r)try{let r=(0,o.normalizeAdjacentParameters)(e);return(0,n.compile)(r,t)}catch(e){}throw a}}function u(e,t){let r=(0,n.regexpToFunction)(e,t||[]);return e=>{let t=r(e);return!!t&&{...t,params:(0,o.stripParameterSeparators)(t.params)}}}function l(e){return t=>{let r=e(t);return!!r&&(0,o.stripParameterSeparators)(r)}}},30453:(e,t,r)=>{"use strict";function n(e,t){if(void 0===t&&(t={}),t.onlyHashChange)return void e();let r=document.documentElement;r.dataset.scrollBehavior;let n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return n}}),r(69516)},31226:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return _},defaultHead:function(){return f}});let n=r(51532),o=r(98781),a=r(5640),i=o._(r(50148)),u=n._(r(24723)),l=r(52886),s=r(5224),c=r(27154);function f(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function d(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(69516);let p=["name","httpEquiv","charSet","itemProp"];function h(e,t){let{inAmpMode:r}=t;return e.reduce(d,[]).reverse().concat(f(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return o=>{let a=!0,i=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){i=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?a=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?a=!1:t.add(o.type);break;case"meta":for(let e=0,t=p.length;e{let r=e.key||t;return i.default.cloneElement(e,{key:r})})}let _=function(e){let{children:t}=e,r=(0,i.useContext)(l.AmpStateContext),n=(0,i.useContext)(s.HeadManagerContext);return(0,a.jsx)(u.default,{reduceComponentsToState:h,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},33270:(e,t)=>{"use strict";function r(e){return new URL(e,"http://n").searchParams}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"asPathToSearchParams",{enumerable:!0,get:function(){return r}})},33995:(e,t)=>{"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},34209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return i},isInterceptionRouteAppPath:function(){return a}});let n=r(15526),o=["(..)(..)","(.)","(..)","(...)"];function a(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function i(e){let t,r,a;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)throw Object.defineProperty(Error("Invalid interception route: "+e+". Must be in the format //(..|...|..)(..)/"),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":a="/"===t?"/"+a:t+"/"+a;break;case"(..)":if("/"===t)throw Object.defineProperty(Error("Invalid interception route: "+e+". Cannot use (..) marker at the root level, use (.) instead."),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});a=t.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":let i=t.split("/");if(i.length<=2)throw Object.defineProperty(Error("Invalid interception route: "+e+". Cannot use (..)(..) marker at the root level or one level up."),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});a=i.slice(0,-2).concat(a).join("/");break;default:throw Object.defineProperty(Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:t,interceptedRoute:a}}},35768:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isRecoverableError:function(){return l},onRecoverableError:function(){return s}});let n=r(51532),o=r(38148),a=n._(r(10382)),i=r(49288),u=new WeakSet;function l(e){return u.has(e)}let s=e=>{let t=(0,a.default)(e)&&"cause"in e?e.cause:e;(0,o.isBailoutToCSRError)(t)||(0,i.reportGlobalError)(t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},37019:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,"\\$&"):e}},37197:(e,t)=>{"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},38148:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return o}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},40372:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathParamsContext:function(){return i},PathnameContext:function(){return a},SearchParamsContext:function(){return o}});let n=r(50148),o=(0,n.createContext)(null),a=(0,n.createContext)(null),i=(0,n.createContext)(null)},41158:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(5748);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(44964),o=r(79186);function a(e){let t=(0,o.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},43024:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=1e-4);let n=new r(e.length,t);for(let t of e)n.add(t);return n}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r>>13,t=Math.imul(t,0x5bd1e995);return t>>>0}(""+e+r)%this.numBits;t.push(n)}return t}constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},44213:()=>{"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),"canParse"in URL||(URL.canParse=function(e,t){try{return new URL(e,t),!0}catch(e){return!1}})},44964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRouteObjects:function(){return n.getSortedRouteObjects},getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(18686),o=r(91064)},45123:(e,t,r)=>{"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(37197),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},46107:(e,t)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"encodeURIPath",{enumerable:!0,get:function(){return r}})},47776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTML_LIMITED_BOT_UA_RE:function(){return n.HTML_LIMITED_BOT_UA_RE},HTML_LIMITED_BOT_UA_RE_STRING:function(){return a},getBotType:function(){return l},isBot:function(){return u}});let n=r(11426),o=/Googlebot(?!-)|Googlebot$/i,a=n.HTML_LIMITED_BOT_UA_RE.source;function i(e){return n.HTML_LIMITED_BOT_UA_RE.test(e)}function u(e){return o.test(e)||i(e)}function l(e){return o.test(e)?"dom":i(e)?"html":void 0}},49288:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reportGlobalError",{enumerable:!0,get:function(){return r}});let r="function"==typeof reportError?reportError:e=>{globalThis.console.error(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50967:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createKey:function(){return G},default:function(){return V},matchesMiddleware:function(){return D}});let n=r(51532),o=r(98781),a=r(54507),i=r(83469),u=r(23157),l=o._(r(10382)),s=r(42632),c=r(79219),f=n._(r(7234)),d=r(14485),p=r(91064),h=r(70390),_=r(17902),m=r(59315),g=r(90251);r(28489);let E=r(37197),y=r(41158),b=r(45123),P=r(68176),v=r(74503),R=r(23424),O=r(13040),S=r(73020),T=r(17916),j=r(14749),A=r(58708),x=r(75986),w=r(47776),C=r(67953),I=r(16090),N=r(30453),M=r(28738);function L(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function D(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,E.parsePath)(e.asPath),n=(0,R.hasBasePath)(r)?(0,P.removeBasePath)(r):r,o=(0,v.addBasePath)((0,y.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(o))}function U(e){let t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function F(e,t,r){let[n,o]=(0,O.resolveHref)(e,t,!0),a=(0,d.getLocationOrigin)(),i=n.startsWith(a),u=o&&o.startsWith(a);n=U(n),o=o?U(o):o;let l=i?n:(0,v.addBasePath)(n),s=r?U((0,O.resolveHref)(e,r)):o||n;return{url:l,as:u?s:(0,v.addBasePath)(s)}}function k(e,t){let r=(0,a.removeTrailingSlash)((0,s.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,m.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function B(e){if(!await D(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},o=t.headers.get("x-nextjs-rewrite"),u=o||t.headers.get("x-nextjs-matched-path"),l=t.headers.get(M.MATCHED_PATH_HEADER);if(!l||u||l.includes("__next_data_catchall")||l.includes("/_error")||l.includes("/404")||(u=l),u){if(u.startsWith("/")){let t=(0,h.parseRelativeUrl)(u),l=(0,T.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),s=(0,a.removeTrailingSlash)(l.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,i.getClientBuildManifest)()]).then(a=>{let[i,{__rewrites:u}]=a,f=(0,y.addLocale)(l.pathname,l.locale);if((0,p.isDynamicRoute)(f)||!o&&i.includes((0,c.normalizeLocalePath)((0,P.removeBasePath)(f),r.router.locales).pathname)){let r=(0,T.getNextPathnameInfo)((0,h.parseRelativeUrl)(e).pathname,{nextConfig:n,parseData:!0});t.pathname=f=(0,v.addBasePath)(r.pathname)}if(!i.includes(s)){let e=k(s,i);e!==s&&(s=e)}let d=i.includes(s)?s:k((0,c.normalizeLocalePath)((0,P.removeBasePath)(t.pathname),r.router.locales).pathname,i);if((0,p.isDynamicRoute)(d)){let e=(0,_.getRouteMatcher)((0,m.getRouteRegex)(d))(f);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:d}})}let t=(0,E.parsePath)(e);return Promise.resolve({type:"redirect-external",destination:""+(0,j.formatNextPathnameInfo)({...(0,T.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""})+t.query+t.hash})}let s=t.headers.get("x-nextjs-redirect");if(s){if(s.startsWith("/")){let e=(0,E.parsePath)(s),t=(0,j.formatNextPathnameInfo)({...(0,T.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:s})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}let H=Symbol("SSG_DATA_NOT_FOUND");function X(e){try{return JSON.parse(e)}catch(e){return null}}function W(e){let{dataHref:t,inflightCache:r,isPrefetch:n,hasMiddleware:o,isServerRender:a,parseJSON:u,persistCache:l,isBackground:s,unstable_skipClientCache:c}=e,{href:f}=new URL(t,window.location.href),d=e=>{var s;return(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(o=>!o.ok&&r>1&&o.status>=500?e(t,r-1,n):o)})(t,a?3:1,{headers:Object.assign({},n?{purpose:"prefetch"}:{},n&&o?{"x-middleware-prefetch":"1"}:{},{}),method:null!=(s=null==e?void 0:e.method)?s:"GET"}).then(r=>r.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:t,response:r,text:"",json:{},cacheKey:f}:r.text().then(e=>{if(!r.ok){if(o&&[301,302,307,308].includes(r.status))return{dataHref:t,response:r,text:e,json:{},cacheKey:f};if(404===r.status){var n;if(null==(n=X(e))?void 0:n.notFound)return{dataHref:t,json:{notFound:H},response:r,text:e,cacheKey:f}}let u=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw a||(0,i.markAssetError)(u),u}return{dataHref:t,json:u?X(e):null,response:r,text:e,cacheKey:f}})).then(e=>(l&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete r[f],e)).catch(e=>{throw c||delete r[f],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,i.markAssetError)(e),e})};return c&&l?d({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(r[f]=Promise.resolve(e)),e)):void 0!==r[f]?r[f]:r[f]=d(s?{method:"HEAD"}:{})}function G(){return Math.random().toString(36).slice(2,10)}function q(e){let{url:t,router:r}=e;if(t===(0,v.addBasePath)((0,y.addLocale)(r.asPath,r.locale)))throw Object.defineProperty(Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=t}let z=e=>{let{route:t,router:r}=e,n=!1,o=r.clc=()=>{n=!0};return()=>{if(n){let e=Object.defineProperty(Error('Abort fetching component for route: "'+t+'"'),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}};class V{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=F(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=F(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,n,o){{if(!this._bfl_s&&!this._bfl_d){let t,a,{BloomFilter:u}=r(43024);try{({__routerFilterStatic:t,__routerFilterDynamic:a}=await (0,i.getClientBuildManifest)())}catch(t){if(console.error(t),o)return!0;return q({url:(0,v.addBasePath)((0,y.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}(null==t?void 0:t.numHashes)&&(this._bfl_s=new u(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==a?void 0:a.numHashes)&&(this._bfl_d=new u(a.numItems,a.errorRate),this._bfl_d.import(a))}let c=!1,f=!1;for(let{as:r,allowMatchCurrent:i}of[{as:e},{as:t}])if(r){let t=(0,a.removeTrailingSlash)(new URL(r,"http://n").pathname),d=(0,v.addBasePath)((0,y.addLocale)(t,n||this.locale));if(i||t!==(0,a.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var u,l,s;for(let e of(c=c||!!(null==(u=this._bfl_s)?void 0:u.contains(t))||!!(null==(l=this._bfl_s)?void 0:l.contains(d)),[t,d])){let t=e.split("/");for(let e=0;!f&&e{})}}}}return!1}async change(e,t,r,n,o){var s,c,f,O,S,T,j,w,N;let M,U;if(!(0,x.isLocalURL)(t))return q({url:t,router:this}),!1;let B=1===n._h;B||n.shallow||await this._bfl(r,void 0,n.locale);let X=B||n._shouldResolveHref||(0,E.parsePath)(t).pathname===(0,E.parsePath)(r).pathname,W={...this.state},G=!0!==this.isReady;this.isReady=!0;let z=this.isSsr;if(B||(this.isSsr=!1),B&&this.clc)return!1;let Y=W.locale;d.ST&&performance.mark("routeChange");let{shallow:K=!1,scroll:$=!0}=n,J={shallow:K};this._inFlightRoute&&this.clc&&(z||V.events.emit("routeChangeError",L(),this._inFlightRoute,J),this.clc(),this.clc=null),r=(0,v.addBasePath)((0,y.addLocale)((0,R.hasBasePath)(r)?(0,P.removeBasePath)(r):r,n.locale,this.defaultLocale));let Q=(0,b.removeLocale)((0,R.hasBasePath)(r)?(0,P.removeBasePath)(r):r,W.locale);this._inFlightRoute=r;let Z=Y!==W.locale;if(!B&&this.onlyAHashChange(Q)&&!Z){W.asPath=Q,V.events.emit("hashChangeStart",r,J),this.changeState(e,t,r,{...n,scroll:!1}),$&&this.scrollToHash(Q);try{await this.set(W,this.components[W.route],null)}catch(e){throw(0,l.default)(e)&&e.cancelled&&V.events.emit("routeChangeError",e,Q,J),e}return V.events.emit("hashChangeComplete",r,J),!0}let ee=(0,h.parseRelativeUrl)(t),{pathname:et,query:er}=ee;try{[M,{__rewrites:U}]=await Promise.all([this.pageLoader.getPageList(),(0,i.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return q({url:r,router:this}),!1}this.urlIsNew(Q)||Z||(e="replaceState");let en=r;et=et?(0,a.removeTrailingSlash)((0,P.removeBasePath)(et)):et;let eo=(0,a.removeTrailingSlash)(et),ea=r.startsWith("/")&&(0,h.parseRelativeUrl)(r).pathname;if(null==(s=this.components[et])?void 0:s.__appRouter)return q({url:r,router:this}),new Promise(()=>{});let ei=!!(ea&&eo!==ea&&(!(0,p.isDynamicRoute)(eo)||!(0,_.getRouteMatcher)((0,m.getRouteRegex)(eo))(ea))),eu=!n.shallow&&await D({asPath:r,locale:W.locale,router:this});if(B&&eu&&(X=!1),X&&"/_error"!==et&&(n._shouldResolveHref=!0,ee.pathname=k(et,M),ee.pathname!==et&&(et=ee.pathname,ee.pathname=(0,v.addBasePath)(et),eu||(t=(0,g.formatWithValidation)(ee)))),!(0,x.isLocalURL)(r))return q({url:r,router:this}),!1;en=(0,b.removeLocale)((0,P.removeBasePath)(en),W.locale),eo=(0,a.removeTrailingSlash)(et);let el=!1;if((0,p.isDynamicRoute)(eo)){let e=(0,h.parseRelativeUrl)(en),n=e.pathname,o=(0,m.getRouteRegex)(eo);el=(0,_.getRouteMatcher)(o)(n);let a=eo===n,i=a?(0,I.interpolateAs)(eo,n,er):{};if(el&&(!a||i.result))a?r=(0,g.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,C.omit)(er,i.params)})):Object.assign(er,el);else{let e=Object.keys(o.groups).filter(e=>!er[e]&&!o.groups[e].optional);if(e.length>0&&!eu)throw Object.defineProperty(Error((a?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+n+") is incompatible with the `href` value ("+eo+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as")),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,configurable:!0})}}B||V.events.emit("routeChangeStart",r,J);let es="/404"===this.pathname||"/_error"===this.pathname;try{let a=await this.getRouteInfo({route:eo,pathname:et,query:er,as:r,resolvedAs:en,routeProps:J,locale:W.locale,isPreview:W.isPreview,hasMiddleware:eu,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:B&&!this.isFallback,isMiddlewareRewrite:ei});if(B||n.shallow||await this._bfl(r,"resolvedAs"in a?a.resolvedAs:void 0,W.locale),"route"in a&&eu){eo=et=a.route||eo,J.shallow||(er=Object.assign({},a.query||{},er));let e=(0,R.hasBasePath)(ee.pathname)?(0,P.removeBasePath)(ee.pathname):ee.pathname;if(el&&et!==e&&Object.keys(el).forEach(e=>{el&&er[e]===el[e]&&delete er[e]}),(0,p.isDynamicRoute)(et)){let e=!J.shallow&&a.resolvedAs?a.resolvedAs:(0,v.addBasePath)((0,y.addLocale)(new URL(r,location.href).pathname,W.locale),!0);(0,R.hasBasePath)(e)&&(e=(0,P.removeBasePath)(e));let t=(0,m.getRouteRegex)(et),n=(0,_.getRouteMatcher)(t)(new URL(e,location.href).pathname);n&&Object.assign(er,n)}}if("type"in a)if("redirect-internal"===a.type)return this.change(e,a.newUrl,a.newAs,n);else return q({url:a.destination,router:this}),new Promise(()=>{});let i=a.Component;if(i&&i.unstable_scriptLoader&&[].concat(i.unstable_scriptLoader()).forEach(e=>{(0,u.handleClientScriptLoad)(e.props)}),(a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){n.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,h.parseRelativeUrl)(t);r.pathname=k(r.pathname,M);let{url:o,as:a}=F(this,t,t);return this.change(e,o,a,n)}return q({url:t,router:this}),new Promise(()=>{})}if(W.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===H){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(a=await this.getRouteInfo({route:e,pathname:e,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isNotFound:!0}),"type"in a)throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,configurable:!0})}}B&&"/_error"===this.pathname&&(null==(f=self.__NEXT_DATA__.props)||null==(c=f.pageProps)?void 0:c.statusCode)===500&&(null==(O=a.props)?void 0:O.pageProps)&&(a.props.pageProps.statusCode=500);let s=n.shallow&&W.route===(null!=(S=a.route)?S:eo),d=null!=(T=n.scroll)?T:!B&&!s,g=null!=o?o:d?{x:0,y:0}:null,E={...W,route:eo,pathname:et,query:er,asPath:Q,isFallback:!1};if(B&&es){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isQueryUpdating:B&&!this.isFallback}),"type"in a)throw Object.defineProperty(Error("Unexpected middleware effect on "+this.pathname),"__NEXT_ERROR_CODE",{value:"E225",enumerable:!1,configurable:!0});"/_error"===this.pathname&&(null==(w=self.__NEXT_DATA__.props)||null==(j=w.pageProps)?void 0:j.statusCode)===500&&(null==(N=a.props)?void 0:N.pageProps)&&(a.props.pageProps.statusCode=500);try{await this.set(E,a,g)}catch(e){throw(0,l.default)(e)&&e.cancelled&&V.events.emit("routeChangeError",e,Q,J),e}return!0}if(V.events.emit("beforeHistoryChange",r,J),this.changeState(e,t,r,n),!(B&&!g&&!G&&!Z&&(0,A.compareRouterStates)(E,this.state))){try{await this.set(E,a,g)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw B||V.events.emit("routeChangeError",a.error,Q,J),a.error;B||V.events.emit("routeChangeComplete",r,J),d&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,l.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),("pushState"!==e||(0,d.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:G()},"",r))}async handleRouteInfoError(e,t,r,n,o,a){if(e.cancelled)throw e;if((0,i.isAssetError)(e)||a)throw V.events.emit("routeChangeError",e,n,o),q({url:n,router:this}),L();console.error(e);try{let n,{page:o,styleSheets:a}=await this.fetchComponent("/_error"),i={props:n,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,l.default)(e)?e:Object.defineProperty(Error(e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0}),t,r,n,o,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:o,resolvedAs:i,routeProps:u,locale:s,hasMiddleware:f,isPreview:d,unstable_skipClientCache:p,isQueryUpdating:h,isMiddlewareRewrite:_,isNotFound:m}=e,E=t;try{var y,b,v,R;let e=this.components[E];if(u.shallow&&e&&this.route===E)return e;let t=z({route:E,router:this});f&&(e=void 0);let l=!e||"initial"in e?void 0:e,O={dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:m?"/404":i,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:h?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p,isBackground:h},T=h&&!_?null:await B({fetchData:()=>W(O),asPath:m?"/404":i,locale:s,router:this}).catch(e=>{if(h)return null;throw e});if(T&&("/_error"===r||"/404"===r)&&(T.effect=void 0),h&&(T?T.json=self.__NEXT_DATA__.props:T={json:self.__NEXT_DATA__.props}),t(),(null==T||null==(y=T.effect)?void 0:y.type)==="redirect-internal"||(null==T||null==(b=T.effect)?void 0:b.type)==="redirect-external")return T.effect;if((null==T||null==(v=T.effect)?void 0:v.type)==="rewrite"){let t=(0,a.removeTrailingSlash)(T.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!h||o.includes(t))&&(E=t,r=T.effect.resolvedHref,n={...n,...T.effect.parsedAs.query},i=(0,P.removeBasePath)((0,c.normalizeLocalePath)(T.effect.parsedAs.pathname,this.locales).pathname),e=this.components[E],u.shallow&&e&&this.route===E&&!f))return{...e,route:E}}if((0,S.isAPIRoute)(E))return q({url:o,router:this}),new Promise(()=>{});let j=l||await this.fetchComponent(E).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),A=null==T||null==(R=T.response)?void 0:R.headers.get("x-middleware-skip"),x=j.__N_SSG||j.__N_SSP;A&&(null==T?void 0:T.dataHref)&&delete this.sdc[T.dataHref];let{props:w,cacheKey:C}=await this._getData(async()=>{if(x){if((null==T?void 0:T.json)&&!A)return{cacheKey:T.cacheKey,props:T.json};let e=(null==T?void 0:T.dataHref)?T.dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),asPath:i,locale:s}),t=await W({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:A?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(j.Component,{pathname:r,query:n,asPath:o,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}});return j.__N_SSP&&O.dataHref&&C&&delete this.sdc[C],this.isPreview||!j.__N_SSG||h||W(Object.assign({},O,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),w.pageProps=Object.assign({},w.pageProps),j.props=w,j.route=E,j.query=n,j.resolvedAs=i,this.components[E]=j,j}catch(e){return this.handleRouteInfoError((0,l.getProperError)(e),r,n,o,u)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[n,o]=e.split("#",2);return!!o&&t===n&&r===o||t===n&&r!==o}scrollToHash(e){let[,t=""]=e.split("#",2);(0,N.disableSmoothScrollDuringRouteTransition)(()=>{if(""===t||"top"===t)return void window.scrollTo(0,0);let e=decodeURIComponent(t),r=document.getElementById(e);if(r)return void r.scrollIntoView();let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),(0,w.isBot)(window.navigator.userAgent))return;let n=(0,h.parseRelativeUrl)(e),o=n.pathname,{pathname:i,query:u}=n,l=i,s=await this.pageLoader.getPageList(),c=t,f=void 0!==r.locale?r.locale||void 0:this.locale,d=await D({asPath:t,locale:f,router:this});n.pathname=k(n.pathname,s),(0,p.isDynamicRoute)(n.pathname)&&(i=n.pathname,n.pathname=i,Object.assign(u,(0,_.getRouteMatcher)((0,m.getRouteRegex)(n.pathname))((0,E.parsePath)(t).pathname)||{}),d||(e=(0,g.formatWithValidation)(n)));let y=await B({fetchData:()=>W({dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:l,query:u}),skipInterpolation:!0,asPath:c,locale:f}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if((null==y?void 0:y.effect.type)==="rewrite"&&(n.pathname=y.effect.resolvedHref,i=y.effect.resolvedHref,u={...u,...y.effect.parsedAs.query},c=y.effect.parsedAs.pathname,e=(0,g.formatWithValidation)(n)),(null==y?void 0:y.effect.type)==="redirect-external")return;let b=(0,a.removeTrailingSlash)(i);await this._bfl(t,c,r.locale,!0)&&(this.components[o]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(b).then(t=>!!t&&W({dataHref:(null==y?void 0:y.json)?null==y?void 0:y.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:f}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](b)])}async fetchComponent(e){let t=z({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Object.defineProperty(Error("Loading initial props cancelled"),"__NEXT_ERROR_CODE",{value:"E405",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}return e})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,d.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,r,{initialProps:n,pageLoader:o,App:i,wrapApp:u,Component:l,err:s,subscription:c,isFallback:f,locale:_,locales:m,defaultLocale:E,domainLocales:y,isPreview:b}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=G(),this.onPopState=e=>{let t,{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,g.formatWithValidation)({pathname:(0,v.addBasePath)(e),query:t}),(0,d.getURL)());return}if(n.__NA)return void window.location.reload();if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:o,as:a,options:i,key:u}=n;this._key=u;let{pathname:l}=(0,h.parseRelativeUrl)(o);(!this.isSsr||a!==(0,v.addBasePath)(this.asPath)||l!==(0,v.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};let P=(0,a.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[P]={Component:l,initial:!0,props:n,err:s,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:i,styleSheets:[]},this.events=V.events,this.pageLoader=o;let R=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="/chatui",this.sub=c,this.clc=null,this._wrapApp=u,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!R&&!self.location.search),this.state={route:P,pathname:e,query:t,asPath:R?e:r,isPreview:!!b,locale:void 0,isFallback:f},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!r.startsWith("//")){let n={locale:_},o=(0,d.getURL)();this._initialMatchesMiddlewarePromise=D({router:this,locale:_,asPath:o}).then(a=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",a?o:(0,g.formatWithValidation)({pathname:(0,v.addBasePath)(e),query:t}),o,n),a))}window.addEventListener("popstate",this.onPopState)}}V.events=(0,f.default)()},51532:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n})},52534:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumResponseBody:5e7,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},52646:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}});var r=function(e){return e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52886:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(51532)._(r(50148)).default.createContext({})},54507:(e,t)=>{"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},57053:(e,t)=>{"use strict";function r(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e))if(Array.isArray(o))for(let e of o)t.append(r,n(e));else t.set(r,n(o));return t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58708:(e,t)=>{"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let o=r[n];if("query"===o){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},59315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getNamedMiddlewareRegex:function(){return p},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return s}});let n=r(28738),o=r(34209),a=r(37019),i=r(54507),u=r(81208);function l(e,t,r){let n={},l=1,s=[];for(let c of(0,i.removeTrailingSlash)(e).slice(1).split("/")){let e=o.INTERCEPTION_ROUTE_MARKERS.find(e=>c.startsWith(e)),i=c.match(u.PARAMETER_PATTERN);if(e&&i&&i[2]){let{key:t,optional:r,repeat:o}=(0,u.parseMatchedParameter)(i[2]);n[t]={pos:l++,repeat:o,optional:r},s.push("/"+(0,a.escapeStringRegexp)(e)+"([^/]+?)")}else if(i&&i[2]){let{key:e,repeat:t,optional:o}=(0,u.parseMatchedParameter)(i[2]);n[e]={pos:l++,repeat:t,optional:o},r&&i[1]&&s.push("/"+(0,a.escapeStringRegexp)(i[1]));let c=t?o?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";r&&i[1]&&(c=c.substring(1)),s.push(c)}else s.push("/"+(0,a.escapeStringRegexp)(c));t&&i&&i[3]&&s.push((0,a.escapeStringRegexp)(i[3]))}return{parameterizedRoute:s.join(""),groups:n}}function s(e,t){let{includeSuffix:r=!1,includePrefix:n=!1,excludeOptionalTrailingSlash:o=!1}=void 0===t?{}:t,{parameterizedRoute:a,groups:i}=l(e,r,n),u=a;return o||(u+="(?:/)?"),{re:RegExp("^"+u+"$"),groups:i}}function c(e){let t,{interceptionMarker:r,getSafeRouteKey:n,segment:o,routeKeys:i,keyPrefix:l,backreferenceDuplicateKeys:s}=e,{key:c,optional:f,repeat:d}=(0,u.parseMatchedParameter)(o),p=c.replace(/\W/g,"");l&&(p=""+l+p);let h=!1;(0===p.length||p.length>30)&&(h=!0),isNaN(parseInt(p.slice(0,1)))||(h=!0),h&&(p=n());let _=p in i;l?i[p]=""+l+c:i[p]=c;let m=r?(0,a.escapeStringRegexp)(r):"";return t=_&&s?"\\k<"+p+">":d?"(?<"+p+">.+?)":"(?<"+p+">[^/]+?)",f?"(?:/"+m+t+")?":"/"+m+t}function f(e,t,r,l,s){let f,d=(f=0,()=>{let e="",t=++f;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),p={},h=[];for(let f of(0,i.removeTrailingSlash)(e).slice(1).split("/")){let e=o.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)),i=f.match(u.PARAMETER_PATTERN);if(e&&i&&i[2])h.push(c({getSafeRouteKey:d,interceptionMarker:i[1],segment:i[2],routeKeys:p,keyPrefix:t?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,backreferenceDuplicateKeys:s}));else if(i&&i[2]){l&&i[1]&&h.push("/"+(0,a.escapeStringRegexp)(i[1]));let e=c({getSafeRouteKey:d,segment:i[2],routeKeys:p,keyPrefix:t?n.NEXT_QUERY_PARAM_PREFIX:void 0,backreferenceDuplicateKeys:s});l&&i[1]&&(e=e.substring(1)),h.push(e)}else h.push("/"+(0,a.escapeStringRegexp)(f));r&&i&&i[3]&&h.push((0,a.escapeStringRegexp)(i[3]))}return{namedParameterizedRoute:h.join(""),routeKeys:p}}function d(e,t){var r,n,o;let a=f(e,t.prefixRouteKeys,null!=(r=t.includeSuffix)&&r,null!=(n=t.includePrefix)&&n,null!=(o=t.backreferenceDuplicateKeys)&&o),i=a.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(i+="(?:/)?"),{...s(e,t),namedRegex:"^"+i+"$",routeKeys:a.routeKeys}}function p(e,t){let{parameterizedRoute:r}=l(e,!1,!1),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:o}=f(e,!1,!1,!1,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}},60910:(e,t,r)=>{"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(7123)},63671:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return o}});let n=r(17165);function o(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},65374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return a},isEqualNode:function(){return o}});let n=r(83920);function o(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){let n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}function a(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"])if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;else e.props.href=e.props["data-href"],e.props["data-href"]=void 0;let r=t[e.type]||[];r.push(e),t[e.type]=r});let r=t.title?t.title[0]:null,a="";if(r){let{children:e}=r.props;a="string"==typeof e?e:Array.isArray(e)?e.join(""):""}a!==document.title&&(document.title=a),["meta","base","link","style","script"].forEach(e=>{!function(e,t){let r=document.querySelector("head");if(!r)return;let a=new Set(r.querySelectorAll(""+e+"[data-next-head]"));if("meta"===e){let e=r.querySelector("meta[charset]");null!==e&&a.add(e)}let i=[];for(let e=0;e{"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},68176:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return o}}),r(23424);let n="/chatui";function o(e){return 0===n.length||(e=e.slice(n.length)).startsWith("/")||(e="/"+e),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68691:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Portal",{enumerable:!0,get:function(){return a}});let n=r(50148),o=r(87897),a=e=>{let{children:t,type:r}=e,[a,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.createElement(r);return document.body.appendChild(e),i(e),()=>{document.body.removeChild(e)}},[r]),a?(0,o.createPortal)(t,a):null};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69055:e=>{"use strict";e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},69516:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},69787:()=>{},70390:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let n=r(14485),o=r(57053);function a(e,t,r){void 0===r&&(r=!0);let a=new URL((0,n.getLocationOrigin)()),i=t?new URL(t,a):e.startsWith(".")?new URL(window.location.href):a,{pathname:u,searchParams:l,search:s,hash:c,href:f,origin:d}=new URL(e,i);if(d!==a.origin)throw Object.defineProperty(Error("invariant: invalid relative URL, router received "+e),"__NEXT_ERROR_CODE",{value:"E159",enumerable:!1,configurable:!0});return{pathname:u,query:r?(0,o.searchParamsToUrlQuery)(l):void 0,search:s,hash:c,href:f.slice(d.length),slashes:void 0}}},73020:(e,t)=>{"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},74239:(e,t)=>{"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},74503:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});let n=r(82868),o=r(5748);function a(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,"/chatui"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74888:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTTPAccessErrorStatus:function(){return r},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return o},getAccessFallbackErrorTypeByStatus:function(){return u},getAccessFallbackHTTPStatus:function(){return i},isHTTPAccessFallbackError:function(){return a}});let r={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},n=new Set(Object.values(r)),o="NEXT_HTTP_ERROR_FALLBACK";function a(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return t===o&&n.has(Number(r))}function i(e){return Number(e.digest.split(";")[1])}function u(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75305:(e,t,r)=>{"use strict";e.exports=r(69787)},75986:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(14485),o=r(23424);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},76376:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return a}});let n=r(74888),o=r(26880);function a(e){return(0,o.isRedirectError)(e)||(0,n.isHTTPAccessFallbackError)(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78119:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return a.default},createRouter:function(){return _},default:function(){return p},makePublicRouterInstance:function(){return m},useRouter:function(){return h},withRouter:function(){return l.default}});let n=r(51532),o=n._(r(50148)),a=n._(r(50967)),i=r(86095),u=n._(r(10382)),l=n._(r(16460)),s={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!s.router)throw Object.defineProperty(Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return s.router}Object.defineProperty(s,"events",{get:()=>a.default.events}),c.forEach(e=>{Object.defineProperty(s,e,{get:()=>d()[e]})}),f.forEach(e=>{s[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{s.ready(()=>{a.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;ne()),s.readyCallbacks=[],s.router}function m(e){let t={};for(let r of c){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=a.default.events,f.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{APP_BUILD_MANIFEST:function(){return b},APP_CLIENT_INTERNALS:function(){return Z},APP_PATHS_MANIFEST:function(){return g},APP_PATH_ROUTES_MANIFEST:function(){return E},AdapterOutputType:function(){return a},BARREL_OPTIMIZATION_PREFIX:function(){return G},BLOCKED_PAGES:function(){return k},BUILD_ID_FILE:function(){return F},BUILD_MANIFEST:function(){return y},CLIENT_PUBLIC_FILES_PATH:function(){return B},CLIENT_REFERENCE_MANIFEST:function(){return q},CLIENT_STATIC_FILES_PATH:function(){return H},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return et},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return J},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return Q},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return en},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return eo},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return ee},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return er},COMPILER_INDEXES:function(){return i},COMPILER_NAMES:function(){return o},CONFIG_FILES:function(){return U},DEFAULT_RUNTIME_WEBPACK:function(){return ea},DEFAULT_SANS_SERIF_FONT:function(){return ec},DEFAULT_SERIF_FONT:function(){return es},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return M},DEV_CLIENT_PAGES_MANIFEST:function(){return w},DYNAMIC_CSS_MANIFEST:function(){return $},EDGE_RUNTIME_WEBPACK:function(){return ei},EDGE_UNSUPPORTED_NODE_APIS:function(){return e_},EXPORT_DETAIL:function(){return S},EXPORT_MARKER:function(){return O},FUNCTIONS_CONFIG_MANIFEST:function(){return P},IMAGES_MANIFEST:function(){return A},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return K},MIDDLEWARE_BUILD_MANIFEST:function(){return V},MIDDLEWARE_MANIFEST:function(){return C},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return Y},MODERN_BROWSERSLIST_TARGET:function(){return n.default},NEXT_BUILTIN_DOCUMENT:function(){return W},NEXT_FONT_MANIFEST:function(){return R},PAGES_MANIFEST:function(){return _},PHASE_DEVELOPMENT_SERVER:function(){return d},PHASE_EXPORT:function(){return s},PHASE_INFO:function(){return h},PHASE_PRODUCTION_BUILD:function(){return c},PHASE_PRODUCTION_SERVER:function(){return f},PHASE_TEST:function(){return p},PRERENDER_MANIFEST:function(){return T},REACT_LOADABLE_MANIFEST:function(){return L},ROUTES_MANIFEST:function(){return j},RSC_MODULE_TYPES:function(){return eh},SERVER_DIRECTORY:function(){return D},SERVER_FILES_MANIFEST:function(){return x},SERVER_PROPS_ID:function(){return el},SERVER_REFERENCE_MANIFEST:function(){return z},STATIC_PROPS_ID:function(){return eu},STATIC_STATUS_PAGES:function(){return ef},STRING_LITERAL_DROP_BUNDLE:function(){return X},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return v},SYSTEM_ENTRYPOINTS:function(){return em},TRACE_OUTPUT_VERSION:function(){return ed},TURBOPACK_CLIENT_BUILD_MANIFEST:function(){return N},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return I},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return ep},UNDERSCORE_NOT_FOUND_ROUTE:function(){return u},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return l},WEBPACK_STATS:function(){return m}});let n=r(51532)._(r(69055)),o={client:"client",server:"server",edgeServer:"edge-server"};var a=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.PRERENDER="PRERENDER",e.STATIC_FILE="STATIC_FILE",e.MIDDLEWARE="MIDDLEWARE",e}({});let i={[o.client]:0,[o.server]:1,[o.edgeServer]:2},u="/_not-found",l=""+u+"/page",s="phase-export",c="phase-production-build",f="phase-production-server",d="phase-development-server",p="phase-test",h="phase-info",_="pages-manifest.json",m="webpack-stats.json",g="app-paths-manifest.json",E="app-path-routes-manifest.json",y="build-manifest.json",b="app-build-manifest.json",P="functions-config-manifest.json",v="subresource-integrity-manifest",R="next-font-manifest",O="export-marker.json",S="export-detail.json",T="prerender-manifest.json",j="routes-manifest.json",A="images-manifest.json",x="required-server-files.json",w="_devPagesManifest.json",C="middleware-manifest.json",I="_clientMiddlewareManifest.json",N="client-build-manifest.json",M="_devMiddlewareManifest.json",L="react-loadable-manifest.json",D="server",U=["next.config.js","next.config.mjs","next.config.ts"],F="BUILD_ID",k=["/_document","/_app","/_error"],B="public",H="static",X="__NEXT_DROP_CLIENT_FILE__",W="__NEXT_BUILTIN_DOCUMENT__",G="__barrel_optimize__",q="client-reference-manifest",z="server-reference-manifest",V="middleware-build-manifest",Y="middleware-react-loadable-manifest",K="interception-route-rewrite-manifest",$="dynamic-css-manifest",J="main",Q=""+J+"-app",Z="app-pages-internals",ee="react-refresh",et="amp",er="webpack",en="polyfills",eo=Symbol(en),ea="webpack-runtime",ei="edge-runtime-webpack",eu="__N_SSG",el="__N_SSP",es={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},ec={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},ef=["/500"],ed=1,ep=6e3,eh={client:"client",server:"server"},e_=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],em=new Set([J,ee,et,Q]);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79186:(e,t)=>{"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},79219:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let r=new WeakMap;function n(e,t){let n;if(!t)return{pathname:e};let o=r.get(t);o||(o=t.map(e=>e.toLowerCase()),r.set(t,o));let a=e.split("/",2);if(!a[1])return{pathname:e};let i=a[1].toLowerCase(),u=o.indexOf(i);return u<0?{pathname:e}:(n=t[u],{pathname:e=e.slice(n.length+1)||"/",detectedLocale:n})}},81208:(e,t)=>{"use strict";function r(e,t,r,n,a){let i=e[t];if(a&&a.has(t)?i=a.get(t):Array.isArray(i)?i=i.map(e=>encodeURIComponent(e)):"string"==typeof i&&(i=encodeURIComponent(i)),!i){let a="oc"===r;if("c"===r||a)return a?{param:t,value:null,type:r,treeSegment:[t,"",r]}:{param:t,value:i=n.split("/").slice(1).flatMap(t=>{var r;let n=o(t);return null!=(r=e[n.key])?r:n.key}),type:r,treeSegment:[t,i.join("/"),r]}}return{param:t,value:i,treeSegment:[t,Array.isArray(i)?i.join("/"):i,r],type:r}}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PARAMETER_PATTERN:function(){return n},getDynamicParam:function(){return r},parseMatchedParameter:function(){return a},parseParameter:function(){return o}});let n=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function o(e){let t=e.match(n);return t?a(t[2]):a(e)}function a(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}},81262:(e,t,r)=>{"use strict";let n,o,a,i,u,l,s,c,f,d,p,h;Object.defineProperty(t,"__esModule",{value:!0});let _=r(98781);Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{emitter:function(){return X},hydrate:function(){return el},initialize:function(){return z},router:function(){return n},version:function(){return H}});let m=r(51532),g=r(5640);r(44213);let E=m._(r(50148)),y=m._(r(77324)),b=r(5224),P=m._(r(7234)),v=r(86095),R=r(30453),O=r(91064),S=r(57053),T=r(85654),j=r(14485),A=r(68691),x=m._(r(65374)),w=m._(r(19943)),C=r(653),I=r(78119),N=r(10382),M=r(93850),L=r(68176),D=r(23424),U=r(12697),F=r(3398),k=r(40372),B=r(35768);r(92980),r(76376);let H="15.5.21",X=(0,P.default)(),W=e=>[].slice.call(e),G=!1;class q extends E.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),n.isSsr&&(o.isFallback||o.nextExport&&((0,O.isDynamicRoute)(n.pathname)||location.search||G)||o.props&&o.props.__N_SSG&&(location.search||G))&&n.replace(n.pathname+"?"+String((0,S.assign)((0,S.urlQueryToSearchParams)(n.query),new URLSearchParams(location.search))),a,{_h:1,shallow:!o.isFallback&&!G}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}async function z(e){void 0===e&&(e={}),o=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=o,h=o.defaultLocale;let t=o.assetPrefix||"";if(self.__next_set_public_path__(""+t+"/_next/"),(0,T.setConfig)({serverRuntimeConfig:{},publicRuntimeConfig:o.runtimeConfig||{}}),a=(0,j.getURL)(),(0,D.hasBasePath)(a)&&(a=(0,L.removeBasePath)(a)),o.scriptLoader){let{initScriptLoader:e}=r(23157);e(o.scriptLoader)}i=new w.default(o.buildId,t);let s=e=>{let[t,r]=e;return i.routeLoader.onEntrypoint(t,r)};return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>s(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=s,(l=(0,x.default)()).getIsSsr=()=>n.isSsr,u=document.getElementById("__next"),{assetPrefix:t}}function V(e,t){return(0,g.jsx)(e,{...t})}function Y(e){var t;let{children:r}=e,o=E.default.useMemo(()=>(0,F.adaptForAppRouterInstance)(n),[]);return(0,g.jsx)(q,{fn:e=>$({App:f,err:e}).catch(e=>console.error("Error rendering page: ",e)),children:(0,g.jsx)(U.AppRouterContext.Provider,{value:o,children:(0,g.jsx)(k.SearchParamsContext.Provider,{value:(0,F.adaptForSearchParams)(n),children:(0,g.jsx)(F.PathnameContextProviderAdapter,{router:n,isAutoExport:null!=(t=self.__NEXT_DATA__.autoExport)&&t,children:(0,g.jsx)(k.PathParamsContext.Provider,{value:(0,F.adaptForPathParams)(n),children:(0,g.jsx)(v.RouterContext.Provider,{value:(0,I.makePublicRouterInstance)(n),children:(0,g.jsx)(b.HeadManagerContext.Provider,{value:l,children:(0,g.jsx)(M.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/chatui/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1},children:r})})})})})})})})}let K=e=>t=>{let r={...t,Component:p,err:o.err,router:n};return(0,g.jsx)(Y,{children:V(e,r)})};function $(e){let{App:t,err:u}=e;return console.error(u),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),i.loadPage("/_error").then(n=>{let{page:o,styleSheets:a}=n;return(null==s?void 0:s.Component)===o?Promise.resolve().then(()=>_._(r(22554))).then(n=>Promise.resolve().then(()=>_._(r(19231))).then(r=>(e.App=t=r.default,n))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:o,styleSheets:a}}).then(r=>{var i;let{ErrorComponent:l,styleSheets:s}=r,c=K(t),f={Component:l,AppTree:c,router:n,ctx:{err:u,pathname:o.page,query:o.query,asPath:a,AppTree:c}};return Promise.resolve((null==(i=e.props)?void 0:i.err)?e.props:(0,j.loadGetInitialProps)(t,f)).then(t=>ei({...e,err:u,Component:l,styleSheets:s,props:t}))})}function J(e){let{callback:t}=e;return E.default.useLayoutEffect(()=>t(),[t]),null}let Q={navigationStart:"navigationStart",beforeRender:"beforeRender",afterRender:"afterRender",afterHydrate:"afterHydrate",routeChange:"routeChange"},Z={hydration:"Next.js-hydration",beforeHydration:"Next.js-before-hydration",routeChangeToRender:"Next.js-route-change-to-render",render:"Next.js-render"},ee=null,et=!0;function er(){[Q.beforeRender,Q.afterHydrate,Q.afterRender,Q.routeChange].forEach(e=>performance.clearMarks(e))}function en(){j.ST&&(performance.mark(Q.afterHydrate),performance.getEntriesByName(Q.beforeRender,"mark").length&&(performance.measure(Z.beforeHydration,Q.navigationStart,Q.beforeRender),performance.measure(Z.hydration,Q.beforeRender,Q.afterHydrate)),d&&performance.getEntriesByName(Z.hydration).forEach(d),er())}function eo(){if(!j.ST)return;performance.mark(Q.afterRender);let e=performance.getEntriesByName(Q.routeChange,"mark");e.length&&(performance.getEntriesByName(Q.beforeRender,"mark").length&&(performance.measure(Z.routeChangeToRender,e[0].name,Q.beforeRender),performance.measure(Z.render,Q.beforeRender,Q.afterRender),d&&(performance.getEntriesByName(Z.render).forEach(d),performance.getEntriesByName(Z.routeChangeToRender).forEach(d))),er(),[Z.routeChangeToRender,Z.render].forEach(e=>performance.clearMeasures(e)))}function ea(e){let{callbacks:t,children:r}=e;return E.default.useLayoutEffect(()=>t.forEach(e=>e()),[t]),r}function ei(e){let t,r,{App:o,Component:a,props:i,err:l}=e,f="initial"in e?void 0:e.styleSheets;a=a||s.Component;let d={...i=i||s.props,Component:a,err:l,router:n};s=d;let p=!1,h=new Promise((e,t)=>{c&&c(),r=()=>{c=null,e()},c=()=>{p=!0,c=null;let e=Object.defineProperty(Error("Cancel rendering route"),"__NEXT_ERROR_CODE",{value:"E503",enumerable:!1,configurable:!0});e.cancelled=!0,t(e)}});function _(){r()}!function(){if(!f)return;let e=new Set(W(document.querySelectorAll("style[data-n-href]")).map(e=>e.getAttribute("data-n-href"))),t=document.querySelector("noscript[data-n-css]"),r=null==t?void 0:t.getAttribute("data-n-css");f.forEach(t=>{let{href:n,text:o}=t;if(!e.has(n)){let e=document.createElement("style");e.setAttribute("data-n-href",n),e.setAttribute("media","x"),r&&e.setAttribute("nonce",r),document.head.appendChild(e),e.appendChild(document.createTextNode(o))}})}();let m=(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(J,{callback:function(){if(f&&!p){let e=new Set(f.map(e=>e.href)),t=W(document.querySelectorAll("style[data-n-href]")),r=t.map(e=>e.getAttribute("data-n-href"));for(let n=0;n{let{href:t}=e,r=document.querySelector('style[data-n-href="'+t+'"]');r&&(n.parentNode.insertBefore(r,n.nextSibling),n=r)}),W(document.querySelectorAll("link[data-n-p]")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let{x:t,y:r}=e.scroll;(0,R.disableSmoothScrollDuringRouteTransition)(()=>{window.scrollTo(t,r)})}}}),(0,g.jsxs)(Y,{children:[V(o,d),(0,g.jsx)(A.Portal,{type:"next-route-announcer",children:(0,g.jsx)(C.RouteAnnouncer,{})})]})]});var b=u;j.ST&&performance.mark(Q.beforeRender);let P=(t=et?en:eo,(0,g.jsx)(ea,{callbacks:[t,_],children:(0,g.jsx)(E.default.StrictMode,{children:m})}));return ee?(0,E.default.startTransition)(()=>{ee.render(P)}):(ee=y.default.hydrateRoot(b,P,{onRecoverableError:B.onRecoverableError}),et=!1),h}async function eu(e){if(e.err&&(void 0===e.Component||!e.isHydratePass))return void await $(e);try{await ei(e)}catch(r){let t=(0,N.getProperError)(r);if(t.cancelled)throw t;await $({...e,err:t})}}async function el(e){let t=o.err;try{let e=await i.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;let{component:t,exports:r}=e;f=t,r&&r.reportWebVitals&&(d=e=>{let t,{id:n,name:o,startTime:a,value:i,duration:u,entryType:l,entries:s,attribution:c}=e,f=Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12);s&&s.length&&(t=s[0].startTime);let d={id:n||f,name:o,startTime:a||t,value:null==i?u:i,label:"mark"===l||"measure"===l?"custom":"web-vital"};c&&(d.attribution=c),r.reportWebVitals(d)});let n=await i.routeLoader.whenEntrypoint(o.page);if("error"in n)throw n.error;p=n.component}catch(e){t=(0,N.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(o.dynamicIds),n=(0,I.createRouter)(o.page,o.query,a,{initialProps:o.props,pageLoader:i,App:f,Component:p,wrapApp:K,err:t,isFallback:!!o.isFallback,subscription:(e,t,r)=>eu(Object.assign({},e,{App:t,scroll:r})),locale:o.locale,locales:o.locales,defaultLocale:h,domainLocales:o.domainLocales,isPreview:o.isPreview}),G=await n._initialMatchesMiddlewarePromise;let r={App:f,initial:!0,Component:p,props:o.props,err:t,isHydratePass:!0};(null==e?void 0:e.beforeRender)&&await e.beforeRender(),eu(r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(37197);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+t+r+o+a}},83469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createRouteLoader:function(){return m},getClientBuildManifest:function(){return h},isAssetError:function(){return c},markAssetError:function(){return s}}),r(51532),r(21914);let n=r(17333),o=r(58052),a=r(33995),i=r(46107);function u(e,t,r){let n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);let a=new Promise(e=>{n=e});return t.set(e,{resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let l=Symbol("ASSET_LOAD_ERROR");function s(e){return Object.defineProperty(e,l,{})}function c(e){return e&&l in e}let f=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),d=()=>(0,a.getDeploymentIdQueryOrEmptyString)();function p(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,o.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function h(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):p(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,s(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,configurable:!0})))}function _(e,t){return h().then(r=>{if(!(t in r))throw s(Object.defineProperty(Error("Failed to lookup route: "+t),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));let o=r[t].map(t=>e+"/_next/"+(0,i.encodeURIPath)(t));return{scripts:o.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+d()),css:o.filter(e=>e.endsWith(".css")).map(e=>e+d())}})}function m(e){let t=new Map,r=new Map,n=new Map,a=new Map;function i(e){{var t;let n=r.get(e.toString());return n?n:document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(s(Object.defineProperty(Error("Failed to load script: "+e),"__NEXT_ERROR_CODE",{value:"E74",enumerable:!1,configurable:!0}))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n)}}function l(e){let t=n.get(e);return t||n.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Object.defineProperty(Error("Failed to load stylesheet: "+e),"__NEXT_ERROR_CODE",{value:"E189",enumerable:!1,configurable:!0});return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw s(e)})),t}return{whenEntrypoint:e=>u(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),a.delete(e))})},loadRoute(r,n){return u(r,a,()=>{let o;return p(_(e,r).then(e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(i)),Promise.all(o.map(l))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,s(Object.defineProperty(Error("Route did not complete loading: "+r),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0}))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==o?void 0:o())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():_(e,t).then(e=>Promise.all(f?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,o)=>{let a='\n      link[rel="prefetch"][href^="'+t+'"],\n      link[rel="preload"][href^="'+t+'"],\n      script[src^="'+t+'"]';if(document.querySelector(a))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>o(s(Object.defineProperty(Error("Failed to prefetch: "+t),"__NEXT_ERROR_CODE",{value:"E268",enumerable:!1,configurable:!0}))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},83920:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setAttributesFromProps",{enumerable:!0,get:function(){return a}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},n=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function o(e){return["async","defer","noModule"].includes(e)}function a(e,t){for(let[a,i]of Object.entries(t)){if(!t.hasOwnProperty(a)||n.includes(a)||void 0===i)continue;let u=r[a]||a.toLowerCase();"SCRIPT"===e.tagName&&o(u)?e[u]=!!i:e.setAttribute(u,String(i)),(!1===i||"SCRIPT"===e.tagName&&o(u)&&(!i||"false"===i))&&(e.setAttribute(u,""),e.removeAttribute(u))}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84660:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let n=r(82868),o=r(17165);function a(e,t,r,a){if(!t||t===r)return e;let i=e.toLowerCase();return!a&&((0,o.pathHasPrefix)(i,"/api")||(0,o.pathHasPrefix)(i,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},84837:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return o}});let n=r(37197);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+r+t+o+a}},85654:(e,t)=>{"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return n},setConfig:function(){return o}});let n=()=>r;function o(e){r=e}},86095:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(51532)._(r(50148)).default.createContext(null)},86859:e=>{(()=>{"use strict";"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab="//");var t={};(()=>{function e(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||95===i){o+=e[a++];continue}break}if(!o)throw TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:o}),r=a;continue}if("("===n){var u=1,l="",a=r+1;if("?"===e[a])throw TypeError('Pattern cannot start with "?" at '.concat(a));for(;a-1)return!0}return!1},m=function(e){var t=l[l.length-1],r=e||(t&&"string"==typeof t?t:"");if(t&&!r)throw TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!r||_(r)?"[^".concat(o(u),"]+?"):"(?:(?!".concat(o(r),")[^").concat(o(u),"])+?")};c-1:void 0===P;i||(_+="(?:".concat(h,"(?=").concat(p,"))?")),v||(_+="(?=".concat(h,"|").concat(p,")"))}return new RegExp(_,a(r))}function u(t,r,n){if(t instanceof RegExp){var o;if(!r)return t;for(var l=/\((?:\?<(.*?)>)?(?!\?)/g,s=0,c=l.exec(t.source);c;)r.push({name:c[1]||s++,prefix:"",suffix:"",modifier:"",pattern:""}),c=l.exec(t.source);return t}return Array.isArray(t)?(o=t.map(function(e){return u(e,r,n).source}),new RegExp("(?:".concat(o.join("|"),")"),a(n))):i(e(t,n),r,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.pathToRegexp=t.tokensToRegexp=t.regexpToFunction=t.match=t.tokensToFunction=t.compile=t.parse=void 0,t.parse=e,t.compile=function(t,n){return r(e(t,n),n)},t.tokensToFunction=r,t.match=function(e,t){var r=[];return n(u(e,r,t),r,t)},t.regexpToFunction=n,t.tokensToRegexp=i,t.pathToRegexp=u})(),e.exports=t})()},90251:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return i}});let n=r(98781)._(r(57053)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,a=e.protocol||"",i=e.pathname||"",u=e.hash||"",l=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(s+=":"+e.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||o.test(a))&&!1!==s?(s="//"+(s||""),i&&"/"!==i[0]&&(i="/"+i)):s||(s=""),u&&"#"!==u[0]&&(u="#"+u),c&&"?"!==c[0]&&(c="?"+c),""+a+s+(i=i.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+u}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return a(e)}},91064:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return i}});let n=r(34209),o=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,a=/\/\[[^/]+\](?=\/|$)/;function i(e,t){return(void 0===t&&(t=!0),(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),t)?a.test(e):o.test(e)}},92515:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(97025),r(75305);let n=r(81262);window.next={version:n.version,get router(){return n.router},emitter:n.emitter},(0,n.initialize)({}).then(()=>(0,n.hydrate)()).catch(console.error),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92980:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(51532)._(r(7234));class o{end(e){if("ended"===this.state.state)throw Object.defineProperty(Error("Span has already ended"),"__NEXT_ERROR_CODE",{value:"E17",enumerable:!1,configurable:!0});this.state={state:"ended",endTime:null!=e?e:Date.now()},this.onSpanEnd(this)}constructor(e,t,r){var n,o;this.name=e,this.attributes=null!=(n=t.attributes)?n:{},this.startTime=null!=(o=t.startTime)?o:Date.now(),this.onSpanEnd=r,this.state={state:"inprogress"}}}class a{startSpan(e,t){return new o(e,t,this.handleSpanEnd)}onSpanEnd(e){return this._emitter.on("spanend",e),()=>{this._emitter.off("spanend",e)}}constructor(){this._emitter=(0,n.default)(),this.handleSpanEnd=e=>{this._emitter.emit("spanend",e)}}}let i=new a;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93507:(e,t)=>{"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},93850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=r(51532)._(r(50148)),o=r(52534),a=n.default.createContext(o.imageConfigDefault)},95198:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ESCAPE_REGEX:function(){return n},htmlEscapeAttributeString:function(){return u},htmlEscapeJsonString:function(){return i}});let r={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},n=/[&><\u2028\u2029]/g,o={"&":"&",'"':""","'":"'","<":"<",">":">"},a=/[&"'<>]/g;function i(e){return e.replace(n,e=>r[e])}function u(e){return e.replace(a,e=>o[e])}},97025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(33995),self.__next_set_public_path__=e=>{r.p=e},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98781:(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:()=>o})}},e=>{e.O(0,[6593],()=>e(e.s=92515)),_N_E=e.O()}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/main-app-a8477e90689da5f0.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/main-app-a8477e90689da5f0.js
    deleted file mode 100644
    index 6f20bccc9..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/main-app-a8477e90689da5f0.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7358],{69787:()=>{},81095:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,9220,23)),Promise.resolve().then(n.t.bind(n,56917,23)),Promise.resolve().then(n.t.bind(n,13671,23)),Promise.resolve().then(n.t.bind(n,8188,23)),Promise.resolve().then(n.t.bind(n,53608,23)),Promise.resolve().then(n.t.bind(n,66352,23)),Promise.resolve().then(n.t.bind(n,50622,23)),Promise.resolve().then(n.t.bind(n,60005,23)),Promise.resolve().then(n.bind(n,42464))}},e=>{var s=s=>e(e.s=s);e.O(0,[510,4065],()=>(s(81812),s(81095))),_N_E=e.O()}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/pages/_app-414ed5458f3bf089.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/pages/_app-414ed5458f3bf089.js
    deleted file mode 100644
    index 4af67f0a2..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/pages/_app-414ed5458f3bf089.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{21828:(_,n,p)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return p(19231)}])}},_=>{var n=n=>_(_.s=n);_.O(0,[6593,8792],()=>(n(21828),n(78119))),_N_E=_.O()}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/pages/_error-eaadcc31fe242814.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/pages/_error-eaadcc31fe242814.js
    deleted file mode 100644
    index 2ce660b7c..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/pages/_error-eaadcc31fe242814.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2731],{58530:(_,n,e)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_error",function(){return e(22554)}])}},_=>{_.O(0,[636,6593,8792],()=>_(_.s=58530)),_N_E=_.O()}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter/refractor-core-import.7790887794ba0ac3.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter/refractor-core-import.7790887794ba0ac3.js
    deleted file mode 100644
    index 8563d267c..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter/refractor-core-import.7790887794ba0ac3.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6943],{92747:(e,t,r)=>{r.r(t),r.d(t,{refractor:()=>x});var n=r(23764);let a=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],i={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function o(e){let t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function l(e){let t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function c(e){return function(e){let t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||o(e)}var u=r(28111);let s=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];var f=0,g={},h={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++f}),e.__id},clone:function e(t,r){var n,a;switch(r=r||{},h.util.type(t)){case"Object":if(r[a=h.util.objId(t)])return r[a];for(var i in n={},r[a]=n,t)t.hasOwnProperty(i)&&(n[i]=e(t[i],r));return n;case"Array":if(r[a=h.util.objId(t)])return r[a];return n=[],r[a]=n,t.forEach(function(t,a){n[a]=e(t,r)}),n;default:return t}}},languages:{plain:g,plaintext:g,text:g,txt:g,extend:function(e,t){var r=h.util.clone(h.languages[e]);for(var n in t)r[n]=t[n];return r},insertBefore:function(e,t,r,n){var a=(n=n||h.languages)[e],i={};for(var o in a)if(a.hasOwnProperty(o)){if(o==t)for(var l in r)r.hasOwnProperty(l)&&(i[l]=r[l]);r.hasOwnProperty(o)||(i[o]=a[o])}var c=n[e];return n[e]=i,h.languages.DFS(h.languages,function(t,r){r===c&&t!=e&&(this[t]=i)}),i},DFS:function e(t,r,n,a){a=a||{};var i=h.util.objId;for(var o in t)if(t.hasOwnProperty(o)){r.call(t,o,t[o],n||o);var l=t[o],c=h.util.type(l);"Object"!==c||a[i(l)]?"Array"!==c||a[i(l)]||(a[i(l)]=!0,e(l,r,o,a)):(a[i(l)]=!0,e(l,r,null,a))}}},plugins:{},highlight:function(e,t,r){var n={code:e,grammar:t,language:r};if(h.hooks.run("before-tokenize",n),!n.grammar)throw Error('The language "'+n.language+'" has no grammar.');return n.tokens=h.tokenize(n.code,n.grammar),h.hooks.run("after-tokenize",n),d.stringify(h.util.encode(n.tokens),n.language)},tokenize:function(e,t){var r=t.rest;if(r){for(var n in r)t[n]=r[n];delete t.rest}var a=new v;return m(a,a.head,e),function e(t,r,n,a,i,o){for(var l in n)if(n.hasOwnProperty(l)&&n[l]){var c=n[l];c=Array.isArray(c)?c:[c];for(var u=0;u=o.reach));w+=O.value.length,O=O.next){var C,k=O.value;if(r.length>t.length)return;if(!(k instanceof d)){var A=1;if(v){if(!(C=p(b,w,t,g))||C.index>=t.length)break;var E=C.index,N=C.index+C[0].length,j=w;for(j+=O.value.length;E>=j;)j+=(O=O.next).value.length;if(j-=O.value.length,w=j,O.value instanceof d)continue;for(var T=O;T!==r.tail&&(jo.reach&&(o.reach=P);var U=O.prev;if(S&&(U=m(r,U,S),w+=S.length),function(e,t,r){for(var n=t.next,a=0;a1){var z={cause:l+","+u,reach:P};e(t,r,n,O.prev,w,z),o&&z.reach>o.reach&&(o.reach=z.reach)}}}}}}(e,a,t,a.head,0),function(e){for(var t=[],r=e.head.next;r!==e.tail;)t.push(r.value),r=r.next;return t}(a)},hooks:{all:{},add:function(e,t){var r=h.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){var r=h.hooks.all[e];if(r&&r.length)for(var n,a=0;n=r[a++];)n(t)}},Token:d};function d(e,t,r,n){this.type=e,this.content=t,this.alias=r,this.length=0|(n||"").length}function p(e,t,r,n){e.lastIndex=t;var a=e.exec(r);if(a&&n&&a[1]){var i=a[1].length;a.index+=i,a[0]=a[0].slice(i)}return a}function v(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function m(e,t,r){var n=t.next,a={value:r,prev:t,next:n};return t.next=a,n.prev=a,e.length++,a}function y(){}y.prototype=h;let x=new y;x.highlight=function(e,t){let r,n;if("string"!=typeof e)throw TypeError("Expected `string` for `value`, got `"+e+"`");if(t&&"object"==typeof t)r=t;else{if("string"!=typeof(n=t))throw TypeError("Expected `string` for `name`, got `"+n+"`");if(Object.hasOwn(x.languages,n))r=x.languages[n];else throw Error("Unknown language: `"+n+"` is not registered")}return{type:"root",children:h.highlight.call(x,e,r,n)}},x.register=function(e){if("function"!=typeof e||!e.displayName)throw Error("Expected `function` for `syntax`, got `"+e+"`");Object.hasOwn(x.languages,e.displayName)||e(x)},x.alias=function(e,t){let r,n=x.languages,a={};for(r in"string"==typeof e?t&&(a[e]=t):a=e,a)if(Object.hasOwn(a,r)){let e=a[r],t="string"==typeof e?[e]:e,i=-1;for(;++i=55296&&O<=57343||O>1114111)k(7,I),S=String.fromCharCode(65533);else if(e in i)k(6,I),S=i[e];else{let t="";((w=e)>=1&&w<=8||11===w||w>=13&&w<=31||w>=127&&w<=159||w>=64976&&w<=65007||(65535&w)==65535||(65535&w)==65534)&&k(6,I),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|1023&e),S=t+String.fromCharCode(e)}}else"named"!==t&&k(4,I);if(S){A(),b=C(),p=v-1,x+=v-n+1,d.push(S);let t=C();t.offset++,g.reference&&g.reference.call(g.referenceContext||void 0,S,{start:b,end:t},e.slice(n-1,v)),b=t}else N=e.slice(n-1,v),m+=N,x+=N.length,p=v-1}else 10===f&&(y++,v++,x=0),Number.isNaN(f)?A():(m+=String.fromCharCode(f),x++);return d.join("");function C(){return{line:y,column:x,offset:p+((r?r.offset:0)||0)}}function k(e,t){let r;g.warning&&(r=C(),r.column+=t,r.offset+=t,g.warning.call(g.warningContext||void 0,s[e],r,e))}function A(){m&&(d.push(m),g.text&&g.text.call(g.textContext||void 0,m,{start:b,end:C()}),m="")}}(e[t]));return e}(f.attributes),f.content)}}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_abap.b906e7786d1c9f74.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_abap.b906e7786d1c9f74.js
    deleted file mode 100644
    index 44a99e896..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_abap.b906e7786d1c9f74.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2078],{14883:(E,N,T)=>{function I(E){E.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}T.r(N),T.d(N,{default:()=>I}),I.displayName="abap",I.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_abnf.66ba0222a6e6becb.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_abnf.66ba0222a6e6becb.js
    deleted file mode 100644
    index 3dcef0e69..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_abnf.66ba0222a6e6becb.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8497],{13802:(n,e,a)=>{function i(n){n.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)|<(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)>)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}}a.r(e),a.d(e,{default:()=>i}),i.displayName="abnf",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_actionscript.927a51bc15ac2bb0.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_actionscript.927a51bc15ac2bb0.js
    deleted file mode 100644
    index fec3abe23..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_actionscript.927a51bc15ac2bb0.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5611],{43380:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var s=t(52622);function i(e){e.register(s.default),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}i.displayName="actionscript",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ada.030afdb5a24111d5.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ada.030afdb5a24111d5.js
    deleted file mode 100644
    index 297e57a2b..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ada.030afdb5a24111d5.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8300],{58419:(e,a,t)=>{function r(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}t.r(a),t.d(a,{default:()=>r}),r.displayName="ada",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_agda.501bbf3cbcf8322a.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_agda.501bbf3cbcf8322a.js
    deleted file mode 100644
    index 5ea6dcaed..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_agda.501bbf3cbcf8322a.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3657],{1598:(e,t,a)=>{function n(e){e.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}}a.r(t),a.d(t,{default:()=>n}),n.displayName="agda",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_al.9d54a1183c3b30d4.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_al.9d54a1183c3b30d4.js
    deleted file mode 100644
    index b3860b166..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_al.9d54a1183c3b30d4.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9887],{67004:(e,t,o)=>{function a(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}o.r(t),o.d(t,{default:()=>a}),a.displayName="al",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_antlr4.c7206db0724b6622.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_antlr4.c7206db0724b6622.js
    deleted file mode 100644
    index 5649f26a6..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_antlr4.c7206db0724b6622.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5747],{44644:(a,n,t)=>{function e(a){a.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},a.languages.g4=a.languages.antlr4}t.r(n),t.d(n,{default:()=>e}),e.displayName="antlr4",e.aliases=["g4"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_apacheconf.9496ddf250086c25.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_apacheconf.9496ddf250086c25.js
    deleted file mode 100644
    index 6fcb1c986..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_apacheconf.9496ddf250086c25.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[904],{9985:(e,r,i)=>{function t(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}i.r(r),i.d(r,{default:()=>t}),t.displayName="apacheconf",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_apex.027c3407272b5627.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_apex.027c3407272b5627.js
    deleted file mode 100644
    index a265be13a..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_apex.027c3407272b5627.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1060,4572],{59131:(E,e,T)=>{function I(E){E.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:/[;[\]()`,.]/}}T.r(e),T.d(e,{default:()=>I}),I.displayName="sql",I.aliases=[]},87305:(E,e,T)=>{T.r(e),T.d(e,{default:()=>R});var I=T(22557),N=T(59131);function R(E){E.register(I.default),E.register(N.default);var e=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,T=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return e.source});function R(E){return RegExp(E.replace(//g,function(){return T}),"i")}var A={keyword:e,punctuation:/[()\[\]{};,:.<>]/};E.languages.apex={comment:E.languages.clike.comment,string:E.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:E.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:R(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:A},{pattern:R(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:A},{pattern:R(/(?=\s*\w+\s*[;=,(){:])/.source),inside:A}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:e,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}R.displayName="apex",R.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_apl.d8c1779d94d22ba0.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_apl.d8c1779d94d22ba0.js
    deleted file mode 100644
    index 133f861ac..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_apl.d8c1779d94d22ba0.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4789],{28424:(a,t,n)=>{function e(a){a.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}n.r(t),n.d(t,{default:()=>e}),e.displayName="apl",e.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_applescript.5c7c80d90c31a9ac.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_applescript.5c7c80d90c31a9ac.js
    deleted file mode 100644
    index 8f65283b0..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_applescript.5c7c80d90c31a9ac.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5873],{69236:(e,t,s)=>{function i(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}s.r(t),s.d(t,{default:()=>i}),i.displayName="applescript",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_aql.2cf427617d9567a9.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_aql.2cf427617d9567a9.js
    deleted file mode 100644
    index 87ef4dc73..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_aql.2cf427617d9567a9.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2258],{36749:(e,a,n)=>{function t(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}n.r(a),n.d(a,{default:()=>t}),t.displayName="aql",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_arduino.6d33a2c49472a5dc.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_arduino.6d33a2c49472a5dc.js
    deleted file mode 100644
    index ad2ac5bd3..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_arduino.6d33a2c49472a5dc.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[267,3539,5256],{39:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var n=r(65410);function a(e){e.register(n.default),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}a.displayName="arduino",a.aliases=["ino"]},65410:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var n=r(72386);function a(e){var t,r;e.register(n.default),t=/\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/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return t.source}),e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return t.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:t,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/}),e.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 r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.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:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}a.displayName="cpp",a.aliases=[]},72386:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var n=r(22557);function a(e){e.register(n.default),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.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},e.languages.c.string],char:e.languages.c.char,comment:e.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:e.languages.c}}}}),e.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 e.languages.c.boolean}a.displayName="c",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_arff.48399ab2da410613.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_arff.48399ab2da410613.js
    deleted file mode 100644
    index b932dfaf6..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_arff.48399ab2da410613.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1353],{77554:(e,a,t)=>{function n(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}t.r(a),t.d(a,{default:()=>n}),n.displayName="arff",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_armasm.11589bc8eb24f21f.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_armasm.11589bc8eb24f21f.js
    deleted file mode 100644
    index 7f14b8784..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_armasm.11589bc8eb24f21f.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6203],{14380:(a,e,E)=>{function r(a){a.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},a.languages["arm-asm"]=a.languages.armasm}E.r(e),E.d(e,{default:()=>r}),r.displayName="armasm",r.aliases=["arm-asm"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_arturo.8b3344c179699e4d.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_arturo.8b3344c179699e4d.js
    deleted file mode 100644
    index ebb765223..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_arturo.8b3344c179699e4d.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2985],{57010:(e,a,t)=>{function r(e){var a;a=function(a,t){return{pattern:RegExp(/\{!/.source+"(?:"+(t||a)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+a,inside:e.languages[a]},string:/[\s\S]+/}}},e.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":a("html"),"css-string":a("css"),"js-string":a("js"),"md-string":a("md"),"sql-string":a("sql"),"sh-string":a("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},e.languages.art=e.languages.arturo}t.r(a),t.d(a,{default:()=>r}),r.displayName="arturo",r.aliases=["art"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_asciidoc.2c03c17e8960e5c1.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_asciidoc.2c03c17e8960e5c1.js
    deleted file mode 100644
    index ea6ec84e5..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_asciidoc.2c03c17e8960e5c1.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3189],{81366:(t,n,e)=>{function i(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},e=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(t){t=t.split(" ");for(var n={},i=0,a=t.length;ii}),i.displayName="asciidoc",i.aliases=["adoc"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_asm6502.016af9f1ee94598d.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_asm6502.016af9f1ee94598d.js
    deleted file mode 100644
    index a022a6423..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_asm6502.016af9f1ee94598d.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1740],{5755:(a,e,t)=>{function r(a){a.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}t.r(e),t.d(e,{default:()=>r}),r.displayName="asm6502",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_asmatmel.a7cf6700d3bc437f.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_asmatmel.a7cf6700d3bc437f.js
    deleted file mode 100644
    index 38d59c99e..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_asmatmel.a7cf6700d3bc437f.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7228],{47981:(r,e,s)=>{function a(r){r.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}s.r(e),s.d(e,{default:()=>a}),a.displayName="asmatmel",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_aspnet.f33dcbb9dbeab83c.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_aspnet.f33dcbb9dbeab83c.js
    deleted file mode 100644
    index f1ba5e141..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_aspnet.f33dcbb9dbeab83c.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[953,6305],{95938:(e,s,a)=>{a.r(s),a.d(s,{default:()=>t});var n=a(95974),r=a(83309);function t(e){e.register(n.default),e.register(r.default),e.languages.aspnet=e.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}t.displayName="aspnet",t.aliases=[]},95974:(e,s,a)=>{a.r(s),a.d(s,{default:()=>r});var n=a(22557);function r(e){e.register(n.default),function(e){function s(e,s){return e.replace(/<<(\d+)>>/g,function(e,a){return"(?:"+s[+a]+")"})}function a(e,a,n){return RegExp(s(e,a),n||"")}function n(e,s){for(var a=0;a>/g,function(){return"(?:"+e+")"});return e.replace(/<>/g,"[^\\s\\S]")}var r="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",t="class enum interface record struct",i="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",o="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function u(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=u(t),l=RegExp(u(r+" "+t+" "+i+" "+o)),p=u(t+" "+i+" "+o),d=u(r+" "+t+" "+o),g=n(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),b=n(/\((?:[^()]|<>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,f=s(/<<0>>(?:\s*<<1>>)?/.source,[h,g]),m=s(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[p,f]),k=/\[\s*(?:,\s*)*\]/.source,y=s(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,k]),v=s(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[g,b,k]),w=s(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),x=s(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,m,k]),_={keyword:l,punctuation:/[<>()?,.:[\]]/},$=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,B=/"(?:\\.|[^\\"\r\n])*"/.source,E=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:_},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,x]),lookbehind:!0,inside:_},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[c,f]),lookbehind:!0,inside:_},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:_},{pattern:a(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:_},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,d,h]),inside:_}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[b]),lookbehind:!0,alias:"class-name",inside:_},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,m]),inside:_,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:_,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,g]),inside:{function:a(/^<<0>>/.source,[h]),generic:{pattern:RegExp(g),alias:"class-name",inside:_}}},"type-list":{pattern:a(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,f,h,x,l.source,b,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[f,b]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:l,"class-name":{pattern:RegExp(x),greedy:!0,inside:_},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var R=B+"|"+$,S=s(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[R]),C=n(s(/[^"'/()]|<<0>>|\(<>*\)/.source,[S]),2),N=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,j=s(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,C]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[N,j]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[N]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[C]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var z=/:[^}\r\n]+/.source,A=n(s(/[^"'/()]|<<0>>|\(<>*\)/.source,[S]),2),P=s(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[A,z]),I=n(s(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[R]),2),T=s(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[I,z]);function F(s,n){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[s]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[n,z]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[P]),lookbehind:!0,greedy:!0,inside:F(P,A)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[T]),lookbehind:!0,greedy:!0,inside:F(T,I)}],char:{pattern:RegExp($),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}r.displayName="csharp",r.aliases=["cs","dotnet"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_autohotkey.21902a3ee5b59425.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_autohotkey.21902a3ee5b59425.js
    deleted file mode 100644
    index 723673291..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_autohotkey.21902a3ee5b59425.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4447],{16944:(e,t,a)=>{function o(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}a.r(t),a.d(t,{default:()=>o}),o.displayName="autohotkey",o.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_autoit.17463f8cefceae6b.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_autoit.17463f8cefceae6b.js
    deleted file mode 100644
    index 3c2de15c7..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_autoit.17463f8cefceae6b.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2038],{56467:(e,t,n)=>{function i(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}n.r(t),n.d(t,{default:()=>i}),i.displayName="autoit",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_avisynth.5c44b177998c6c9f.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_avisynth.5c44b177998c6c9f.js
    deleted file mode 100644
    index 13f1a0fc6..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_avisynth.5c44b177998c6c9f.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6268],{32477:(e,r,a)=>{function o(e){function r(e,r,a){return RegExp(e.replace(/<<(\d+)>>/g,function(e,a){return r[+a]}),a||"")}var a=/bool|clip|float|int|string|val/.source,o=[[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|")].join("|");e.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[a],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[o],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[a],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},e.languages.avs=e.languages.avisynth}a.r(r),a.d(r,{default:()=>o}),o.displayName="avisynth",o.aliases=["avs"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_avroIdl.941b5a64552308f1.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_avroIdl.941b5a64552308f1.js
    deleted file mode 100644
    index 3c5afd2ff..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_avroIdl.941b5a64552308f1.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3257],{60567:(e,a,n)=>{function r(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}n.r(a),n.d(a,{default:()=>r}),r.displayName="avro-idl",r.aliases=["avdl"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_awk.dc4abc92fc2c13f9.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_awk.dc4abc92fc2c13f9.js
    deleted file mode 100644
    index 38cf17443..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_awk.dc4abc92fc2c13f9.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6759],{1970:(e,a,n)=>{function t(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}n.r(a),n.d(a,{default:()=>t}),t.displayName="awk",t.aliases=["gawk"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bash.bc50e97523194f55.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bash.bc50e97523194f55.js
    deleted file mode 100644
    index 0ca0006b4..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bash.bc50e97523194f55.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6514],{55731:(e,t,a)=>{function n(e){!function(e){var 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",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:a,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})/};e.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:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:n.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}},a.inside=e.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=n.variable[1].inside,i=0;in}),n.displayName="bash",n.aliases=["sh","shell"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_basic.01bb62e4aa51a6b1.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_basic.01bb62e4aa51a6b1.js
    deleted file mode 100644
    index 3bd8c6e9e..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_basic.01bb62e4aa51a6b1.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9322],{22653:(E,T,R)=>{function I(E){E.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}R.r(T),R.d(T,{default:()=>I}),I.displayName="basic",I.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_batch.469d4cc1356fa69d.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_batch.469d4cc1356fa69d.js
    deleted file mode 100644
    index e33bcf0b6..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_batch.469d4cc1356fa69d.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4336],{65651:(e,r,t)=>{function a(e){var r,t,a,n;r=/%%?[~:\w]+%?|!\S+!/,t={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},a=/"(?:[\\"]"|[^"])*"(?!")/,n=/(?:\b|-)\d+\b/,e.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:a,parameter:t,variable:r,number:n,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:a,parameter:t,variable:r,number:n,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:a,parameter:t,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:n,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:a,parameter:t,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:n,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}}t.r(r),t.d(r,{default:()=>a}),a.displayName="batch",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bbcode.40499c6cbb4dba6b.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bbcode.40499c6cbb4dba6b.js
    deleted file mode 100644
    index 581be2221..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bbcode.40499c6cbb4dba6b.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8755],{72368:(s,a,e)=>{function t(s){s.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},s.languages.shortcode=s.languages.bbcode}e.r(a),e.d(a,{default:()=>t}),t.displayName="bbcode",t.aliases=["shortcode"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bbj.f3863462b44ce003.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bbj.f3863462b44ce003.js
    deleted file mode 100644
    index d3e734492..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bbj.f3863462b44ce003.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5246],{21909:(e,t,s)=>{function r(e){e.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}}s.r(t),s.d(t,{default:()=>r}),r.displayName="bbj",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bicep.10fc88b07c9f771d.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bicep.10fc88b07c9f771d.js
    deleted file mode 100644
    index 7ec14af79..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bicep.10fc88b07c9f771d.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3565],{9472:(e,n,t)=>{function r(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}t.r(n),t.d(n,{default:()=>r}),r.displayName="bicep",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_birb.fffdce60276b41cb.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_birb.fffdce60276b41cb.js
    deleted file mode 100644
    index 89a5be18c..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_birb.fffdce60276b41cb.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6783],{2688:(e,a,s)=>{s.r(a),s.d(a,{default:()=>t});var r=s(22557);function t(e){e.register(r.default),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}t.displayName="birb",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bison.9ba59400a737cc02.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bison.9ba59400a737cc02.js
    deleted file mode 100644
    index e9c7e2f53..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bison.9ba59400a737cc02.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3539,9841],{36648:(e,n,a)=>{a.r(n),a.d(n,{default:()=>s});var t=a(72386);function s(e){e.register(t.default),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}s.displayName="bison",s.aliases=[]},72386:(e,n,a)=>{a.r(n),a.d(n,{default:()=>s});var t=a(22557);function s(e){e.register(t.default),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.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},e.languages.c.string],char:e.languages.c.char,comment:e.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:e.languages.c}}}}),e.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 e.languages.c.boolean}s.displayName="c",s.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bnf.cbd9bc931cc126e4.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bnf.cbd9bc931cc126e4.js
    deleted file mode 100644
    index b955aa9e6..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bnf.cbd9bc931cc126e4.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1126],{69021:(n,a,e)=>{function t(n){n.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},n.languages.rbnf=n.languages.bnf}e.r(a),e.d(a,{default:()=>t}),t.displayName="bnf",t.aliases=["rbnf"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bqn.ec3093cf639e8d88.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bqn.ec3093cf639e8d88.js
    deleted file mode 100644
    index 173d19c29..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bqn.ec3093cf639e8d88.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7179],{83682:(a,e,t)=>{function r(a){a.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}t.r(e),t.d(e,{default:()=>r}),r.displayName="bqn",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_brainfuck.a4035c8176e2da59.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_brainfuck.a4035c8176e2da59.js
    deleted file mode 100644
    index 34310d573..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_brainfuck.a4035c8176e2da59.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9101],{16964:(e,a,t)=>{function n(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}t.r(a),t.d(a,{default:()=>n}),n.displayName="brainfuck",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_brightscript.5503740ed718e6fd.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_brightscript.5503740ed718e6fd.js
    deleted file mode 100644
    index 7bb57a692..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_brightscript.5503740ed718e6fd.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6333],{71986:(e,t,i)=>{function r(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}i.r(t),i.d(t,{default:()=>r}),r.displayName="brightscript",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bro.d83eb4e5b4cc3c65.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bro.d83eb4e5b4cc3c65.js
    deleted file mode 100644
    index 6e0860fb2..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bro.d83eb4e5b4cc3c65.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8435],{62998:(e,t,n)=>{function o(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}n.r(t),n.d(t,{default:()=>o}),o.displayName="bro",o.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bsl.567976a147774690.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bsl.567976a147774690.js
    deleted file mode 100644
    index 2c153733f..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_bsl.567976a147774690.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9907],{44102:(e,u,d)=>{function t(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}d.r(u),d.d(u,{default:()=>t}),t.displayName="bsl",t.aliases=["oscript"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_c.d27551a8704f0be0.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_c.d27551a8704f0be0.js
    deleted file mode 100644
    index 9780b2729..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_c.d27551a8704f0be0.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3539],{72386:(e,n,t)=>{t.r(n),t.d(n,{default:()=>r});var a=t(22557);function r(e){e.register(a.default),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.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},e.languages.c.string],char:e.languages.c.char,comment:e.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:e.languages.c}}}}),e.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 e.languages.c.boolean}r.displayName="c",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cfscript.a7f68ebe52e889e7.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cfscript.a7f68ebe52e889e7.js
    deleted file mode 100644
    index 90927762e..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cfscript.a7f68ebe52e889e7.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3134],{57999:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var n=t(22557);function i(e){e.register(n.default),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}i.displayName="cfscript",i.aliases=["cfc"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_chaiscript.10166a7de552ac91.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_chaiscript.10166a7de552ac91.js
    deleted file mode 100644
    index 265a4b04b..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_chaiscript.10166a7de552ac91.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[267,1374,3539],{28235:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var a=n(22557),s=n(65410);function r(e){e.register(a.default),e.register(s.default),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}r.displayName="chaiscript",r.aliases=[]},65410:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var a=n(72386);function s(e){var t,n;e.register(a.default),t=/\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/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return t.source}),e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return t.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:t,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/}),e.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 n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.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:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}s.displayName="cpp",s.aliases=[]},72386:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var a=n(22557);function s(e){e.register(a.default),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.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},e.languages.c.string],char:e.languages.c.char,comment:e.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:e.languages.c}}}}),e.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 e.languages.c.boolean}s.displayName="c",s.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cil.fe8d375b3cd77f42.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cil.fe8d375b3cd77f42.js
    deleted file mode 100644
    index f40110414..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cil.fe8d375b3cd77f42.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9812],{14531:(e,l,a)=>{function n(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}a.r(l),a.d(l,{default:()=>n}),n.displayName="cil",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cilkc.406e3b45fcb92976.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cilkc.406e3b45fcb92976.js
    deleted file mode 100644
    index ee3f53bb2..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cilkc.406e3b45fcb92976.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3539,6086],{35293:(e,n,a)=>{a.r(n),a.d(n,{default:()=>r});var t=a(72386);function r(e){e.register(t.default),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}r.displayName="cilkc",r.aliases=["cilk-c"]},72386:(e,n,a)=>{a.r(n),a.d(n,{default:()=>r});var t=a(22557);function r(e){e.register(t.default),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.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},e.languages.c.string],char:e.languages.c.char,comment:e.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:e.languages.c}}}}),e.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 e.languages.c.boolean}r.displayName="c",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cilkcpp.f4dc4eb9144b565a.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cilkcpp.f4dc4eb9144b565a.js
    deleted file mode 100644
    index 3b06f38ad..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cilkcpp.f4dc4eb9144b565a.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[267,3539,4150],{1941:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var a=n(65410);function s(e){e.register(a.default),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}s.displayName="cilkcpp",s.aliases=["cilk","cilk-cpp"]},65410:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var a=n(72386);function s(e){var t,n;e.register(a.default),t=/\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/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return t.source}),e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return t.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:t,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/}),e.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 n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.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:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}s.displayName="cpp",s.aliases=[]},72386:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var a=n(22557);function s(e){e.register(a.default),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.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},e.languages.c.string],char:e.languages.c.char,comment:e.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:e.languages.c}}}}),e.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 e.languages.c.boolean}s.displayName="c",s.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_clojure.7a5ed230801872f8.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_clojure.7a5ed230801872f8.js
    deleted file mode 100644
    index 4eccf0e06..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_clojure.7a5ed230801872f8.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4804],{13731:(e,t,r)=>{function n(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}r.r(t),r.d(t,{default:()=>n}),n.displayName="clojure",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cmake.30829791a1006768.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cmake.30829791a1006768.js
    deleted file mode 100644
    index 871111c4b..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cmake.30829791a1006768.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1355],{23536:(E,_,T)=>{function I(E){E.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}T.r(_),T.d(_,{default:()=>I}),I.displayName="cmake",I.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cobol.75a35dce703c40af.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cobol.75a35dce703c40af.js
    deleted file mode 100644
    index bf0848fc8..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cobol.75a35dce703c40af.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3281],{15284:(E,T,N)=>{function I(E){E.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}N.r(T),N.d(T,{default:()=>I}),I.displayName="cobol",I.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_coffeescript.612878e0793a688d.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_coffeescript.612878e0793a688d.js
    deleted file mode 100644
    index bafdf9139..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_coffeescript.612878e0793a688d.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9245],{65602:(e,t,a)=>{a.r(t),a.d(t,{default:()=>s});var n=a(52622);function s(e){var t,a;e.register(n.default),t=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"},e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:a}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}s.displayName="coffeescript",s.aliases=["coffee"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_concurnas.46782e018759f9f2.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_concurnas.46782e018759f9f2.js
    deleted file mode 100644
    index 00d76d71c..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_concurnas.46782e018759f9f2.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2928],{30195:(e,n,a)=>{function t(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}a.r(n),a.d(n,{default:()=>t}),t.displayName="concurnas",t.aliases=["conc"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cooklang.75e2679088addad4.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cooklang.75e2679088addad4.js
    deleted file mode 100644
    index a8bc6c097..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cooklang.75e2679088addad4.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9696],{23881:(e,a,t)=>{function r(e){var a,t,r,n;a=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=(t=/[^{}@#]+/.source)+/\{[^}#@]*\}/.source,n=/(?:h|hours|hrs|m|min|minutes)/.source,e.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:RegExp("#(?:"+r+"|"+a+")"),inside:{cookware:{pattern:RegExp("(^#)(?:"+t+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+t),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:RegExp("@(?:"+r+"|"+a+")"),inside:{ingredient:{pattern:RegExp("(^@)(?:"+t+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":{pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}}}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+n+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}}t.r(a),t.d(a,{default:()=>r}),r.displayName="cooklang",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_coq.2b9e8aa81d71fb34.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_coq.2b9e8aa81d71fb34.js
    deleted file mode 100644
    index eb5c78f34..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_coq.2b9e8aa81d71fb34.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5203],{55974:(e,t,i)=>{function a(e){for(var t=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,i=0;i<2;i++)t=t.replace(//g,function(){return t});t=t.replace(//g,"[]"),e.languages.coq={comment:RegExp(t),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return t})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(t),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}}i.r(t),i.d(t,{default:()=>a}),a.displayName="coq",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cpp.634534bcda1dd47a.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cpp.634534bcda1dd47a.js
    deleted file mode 100644
    index d1a42152e..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cpp.634534bcda1dd47a.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[267,3539],{65410:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var a=n(72386);function s(e){var t,n;e.register(a.default),t=/\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/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return t.source}),e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return t.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:t,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/}),e.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 n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.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:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}s.displayName="cpp",s.aliases=[]},72386:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var a=n(22557);function s(e){e.register(a.default),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.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},e.languages.c.string],char:e.languages.c.char,comment:e.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:e.languages.c}}}}),e.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 e.languages.c.boolean}s.displayName="c",s.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_crystal.642d5c8d227d482d.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_crystal.642d5c8d227d482d.js
    deleted file mode 100644
    index 780f00f2f..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_crystal.642d5c8d227d482d.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2270,3440],{19305:(e,n,t)=>{t.r(n),t.d(n,{default:()=>a});var r=t(54021);function a(e){e.register(r.default),e.languages.crystal=e.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,e.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),e.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:e.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:e.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}a.displayName="crystal",a.aliases=[]},54021:(e,n,t)=>{t.r(n),t.d(n,{default:()=>a});var r=t(22557);function a(e){var n,t,a;e.register(r.default),e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}},delete e.languages.ruby.function,t="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",a=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source,e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+t+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+a),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+a+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+t),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+t),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}a.displayName="ruby",a.aliases=["rb"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_csharp.d6fab8aa860f7c59.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_csharp.d6fab8aa860f7c59.js
    deleted file mode 100644
    index 6fe7bd67d..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_csharp.d6fab8aa860f7c59.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6305],{95974:(e,s,n)=>{n.r(s),n.d(s,{default:()=>a});var r=n(22557);function a(e){e.register(r.default),function(e){function s(e,s){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+s[+n]+")"})}function n(e,n,r){return RegExp(s(e,n),r||"")}function r(e,s){for(var n=0;n>/g,function(){return"(?:"+e+")"});return e.replace(/<>/g,"[^\\s\\S]")}var a="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",t="class enum interface record struct",o="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",i="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function c(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var u=c(t),l=RegExp(c(a+" "+t+" "+o+" "+i)),d=c(t+" "+o+" "+i),p=c(a+" "+t+" "+i),g=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),b=r(/\((?:[^()]|<>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,f=s(/<<0>>(?:\s*<<1>>)?/.source,[h,g]),m=s(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,f]),k=/\[\s*(?:,\s*)*\]/.source,y=s(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,k]),w=s(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[g,b,k]),v=s(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=s(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[v,m,k]),_={keyword:l,punctuation:/[<>()?,.:[\]]/},$=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,B=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:_},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,x]),lookbehind:!0,inside:_},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[u,f]),lookbehind:!0,inside:_},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:_},{pattern:n(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:_},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,p,h]),inside:_}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[b]),lookbehind:!0,alias:"class-name",inside:_},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,m]),inside:_,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:_,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,g]),inside:{function:n(/^<<0>>/.source,[h]),generic:{pattern:RegExp(g),alias:"class-name",inside:_}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,f,h,x,l.source,b,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[f,b]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:l,"class-name":{pattern:RegExp(x),greedy:!0,inside:_},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var R=E+"|"+$,S=s(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[R]),z=r(s(/[^"'/()]|<<0>>|\(<>*\)/.source,[S]),2),N=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,j=s(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,z]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[N,j]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[N]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[z]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var A=/:[^}\r\n]+/.source,C=r(s(/[^"'/()]|<<0>>|\(<>*\)/.source,[S]),2),F=s(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[C,A]),U=r(s(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[R]),2),Z=s(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[U,A]);function q(s,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[s]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,A]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[F]),lookbehind:!0,greedy:!0,inside:q(F,C)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Z]),lookbehind:!0,greedy:!0,inside:q(Z,U)}],char:{pattern:RegExp($),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}a.displayName="csharp",a.aliases=["cs","dotnet"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cshtml.ac0e49bc6c91eca0.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cshtml.ac0e49bc6c91eca0.js
    deleted file mode 100644
    index 34d84d5cb..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cshtml.ac0e49bc6c91eca0.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6305,7681],{4342:(e,s,r)=>{r.r(s),r.d(s,{default:()=>t});var a=r(95974),n=r(83309);function t(e){e.register(a.default),e.register(n.default),function(e){var s=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function a(e,a){for(var n=0;n/g,function(){return"(?:"+e+")"});return e.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+s+")")}var n=a(/\((?:[^()'"@/]|||)*\)/.source,2),t=a(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),o=a(/\{(?:[^{}'"@/]|||)*\}/.source,2),i=a(/<(?:[^<>'"@/]||)*>/.source,1),c=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+n+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+i+")?"+n+"|"+t+")*"+/(?![?!\.(\[]|<(?!\/))/.source,u=/@(?![\w()])/.source+"|"+c,l="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+"|[\"'][^\"'@]*(?:(?:"+u+")[^\"'@]*)+[\"'])",d=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,l),p=/(?!\d)[^\s>\/=$<%]+/.source+d+/\s*\/?>/.source,g=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+d+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+p)+"|"+a(/<\1/.source+d+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source)+p+"|)*"+/<\/\1\s*>/.source,2)+")*"+/<\/\1\s*>/.source+"|"+/{r.r(s),r.d(s,{default:()=>n});var a=r(22557);function n(e){e.register(a.default),function(e){function s(e,s){return e.replace(/<<(\d+)>>/g,function(e,r){return"(?:"+s[+r]+")"})}function r(e,r,a){return RegExp(s(e,r),a||"")}function a(e,s){for(var r=0;r>/g,function(){return"(?:"+e+")"});return e.replace(/<>/g,"[^\\s\\S]")}var n="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",t="class enum interface record struct",o="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",i="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function c(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var u=c(t),l=RegExp(c(n+" "+t+" "+o+" "+i)),d=c(t+" "+o+" "+i),p=c(n+" "+t+" "+i),g=a(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),h=a(/\((?:[^()]|<>)*\)/.source,2),b=/@?\b[A-Za-z_]\w*\b/.source,f=s(/<<0>>(?:\s*<<1>>)?/.source,[b,g]),m=s(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,f]),k=/\[\s*(?:,\s*)*\]/.source,y=s(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,k]),w=s(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[g,h,k]),v=s(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=s(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[v,m,k]),E={keyword:l,punctuation:/[<>()?,.:[\]]/},R=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,_=/"(?:\\.|[^\\"\r\n])*"/.source,B=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[_]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:E},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[b,x]),lookbehind:!0,inside:E},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[b]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[u,f]),lookbehind:!0,inside:E},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:E},{pattern:r(/(\bwhere\s+)<<0>>/.source,[b]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:E},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,p,b]),inside:E}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[b]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[b]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,m]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[b,g]),inside:{function:r(/^<<0>>/.source,[b]),generic:{pattern:RegExp(g),alias:"class-name",inside:E}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,f,b,x,l.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[f,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:l,"class-name":{pattern:RegExp(x),greedy:!0,inside:E},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var S=_+"|"+R,$=s(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[S]),z=a(s(/[^"'/()]|<<0>>|\(<>*\)/.source,[$]),2),A=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,j=s(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,z]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[A,j]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[A]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[z]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var N=/:[^}\r\n]+/.source,H=a(s(/[^"'/()]|<<0>>|\(<>*\)/.source,[$]),2),C=s(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[H,N]),F=a(s(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[S]),2),T=s(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,N]);function U(s,a){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[s]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[a,N]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[C]),lookbehind:!0,greedy:!0,inside:U(C,H)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[T]),lookbehind:!0,greedy:!0,inside:U(T,F)}],char:{pattern:RegExp(R),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}n.displayName="csharp",n.aliases=["cs","dotnet"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_csp.03770d725c164d81.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_csp.03770d725c164d81.js
    deleted file mode 100644
    index 337929b3d..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_csp.03770d725c164d81.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4118],{26181:(e,s,r)=>{function o(e){function s(e){return RegExp(/([ \t])/.source+"(?:"+e+")"+/(?=[\s;]|$)/.source,"i")}e.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:s(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:s(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:s(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:s(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:s(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:s(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:s(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}}r.r(s),r.d(s,{default:()=>o}),o.displayName="csp",o.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_css.2f9ae537dda5a659.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_css.2f9ae537dda5a659.js
    deleted file mode 100644
    index 21bf61525..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_css.2f9ae537dda5a659.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3533],{23740:(s,e,t)=>{function n(s){var e,t;e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,s.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.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\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,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:/[(){};:,]/},s.languages.css.atrule.inside.rest=s.languages.css,(t=s.languages.markup)&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}t.r(e),t.d(e,{default:()=>n}),n.displayName="css",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cssExtras.f5bf4ecb99cabd24.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cssExtras.f5bf4ecb99cabd24.js
    deleted file mode 100644
    index af1144911..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cssExtras.f5bf4ecb99cabd24.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3533,4928],{23740:(e,a,n)=>{function r(e){var a,n;a=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+a.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\\((?:"+a.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+a.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+a.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:a,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:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,(n=e.languages.markup)&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}n.r(a),n.d(a,{default:()=>r}),r.displayName="css",r.aliases=[]},58536:(e,a,n)=>{n.r(a),n.d(a,{default:()=>t});var r=n(23740);function t(e){var a,n,t,i;e.register(r.default),n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:a={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=a,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),t={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},i={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?: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|RebeccaPurple|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)(?![\w-])/i,lookbehind:!0},{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:t,number:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:i})}t.displayName="css-extras",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_csv.5e480722475d2b3c.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_csv.5e480722475d2b3c.js
    deleted file mode 100644
    index 50aa9fb7d..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_csv.5e480722475d2b3c.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7904],{71835:(a,s,e)=>{function u(a){a.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}e.r(s),e.d(s,{default:()=>u}),u.displayName="csv",u.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cue.0673da2ad97baf31.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cue.0673da2ad97baf31.js
    deleted file mode 100644
    index fb3d9449b..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cue.0673da2ad97baf31.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[865],{13276:(e,n,t)=>{function a(e){var n,t;n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,t="(?:"+(/"""(?:[^\\"]|"(?!""\2)|)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|)*'/.source).replace(//g,n)+")",e.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+t+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},e.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=e.languages.cue}t.r(n),t.d(n,{default:()=>a}),a.displayName="cue",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cypher.f27fdfd4f4e345b0.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cypher.f27fdfd4f4e345b0.js
    deleted file mode 100644
    index 322486834..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_cypher.f27fdfd4f4e345b0.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9493],{6634:(E,e,N)=>{function n(E){E.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}N.r(e),N.d(e,{default:()=>n}),n.displayName="cypher",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_d.822a138a48af0ba1.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_d.822a138a48af0ba1.js
    deleted file mode 100644
    index f74647706..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_d.822a138a48af0ba1.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2700],{70131:(e,t,r)=>{r.r(t),r.d(t,{default:()=>s});var a=r(22557);function s(e){e.register(a.default),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}s.displayName="d",s.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_dart.d338f30d3aea41f0.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_dart.d338f30d3aea41f0.js
    deleted file mode 100644
    index 393c52830..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_dart.d338f30d3aea41f0.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2875],{19992:(e,a,s)=>{s.r(a),s.d(a,{default:()=>n});var t=s(22557);function n(e){var a,s,n;e.register(t.default),a=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],n={pattern:RegExp((s=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source)+/[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:/\./}}}},e.languages.dart=e.languages.extend("clike",{"class-name":[n,{pattern:RegExp(s+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:n.inside}],keyword:a,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),e.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.dart}}},string:/[\s\S]+/}},string:void 0}),e.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),e.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":n,keyword:a,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}n.displayName="dart",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_dataweave.d9375fb47c032d26.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_dataweave.d9375fb47c032d26.js
    deleted file mode 100644
    index 64572f1d3..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_dataweave.d9375fb47c032d26.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2490],{72657:(e,t,a)=>{function n(e){e.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}}a.r(t),a.d(t,{default:()=>n}),n.displayName="dataweave",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_dax.603f347f9c3429ba.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_dax.603f347f9c3429ba.js
    deleted file mode 100644
    index 10555cd10..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_dax.603f347f9c3429ba.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3151],{19934:(E,T,A)=>{function N(E){E.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}A.r(T),A.d(T,{default:()=>N}),N.displayName="dax",N.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_dhall.370f9472cbcc9d35.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_dhall.370f9472cbcc9d35.js
    deleted file mode 100644
    index 8f9e81fcf..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_dhall.370f9472cbcc9d35.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[893],{99552:(e,n,a)=>{function i(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}a.r(n),a.d(n,{default:()=>i}),i.displayName="dhall",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_diff.ed75b95151db31b3.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_diff.ed75b95151db31b3.js
    deleted file mode 100644
    index 4ce585692..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_diff.ed75b95151db31b3.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9117],{48194:(e,a,n)=>{function s(e){var a;e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]},Object.keys(a={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"}).forEach(function(n){var s=a[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+s+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(e.languages.diff,"PREFIXES",{value:a})}n.r(a),n.d(a,{default:()=>s}),s.displayName="diff",s.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_django.1341df142a30373c.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_django.1341df142a30373c.js
    deleted file mode 100644
    index 9750713a4..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_django.1341df142a30373c.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5529,6403],{59518:(e,n,a)=>{a.r(n),a.d(n,{default:()=>o});var t=a(97769);function o(e){var n,a;e.register(t.default),e.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/},n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,a=e.languages["markup-templating"],e.hooks.add("before-tokenize",function(e){a.buildPlaceholders(e,"django",n)}),e.hooks.add("after-tokenize",function(e){a.tokenizePlaceholders(e,"django")}),e.languages.jinja2=e.languages.django,e.hooks.add("before-tokenize",function(e){a.buildPlaceholders(e,"jinja2",n)}),e.hooks.add("after-tokenize",function(e){a.tokenizePlaceholders(e,"jinja2")})}o.displayName="django",o.aliases=["jinja2"]},97769:(e,n,a)=>{a.r(n),a.d(n,{default:()=>o});var t=a(83309);function o(e){e.register(t.default);function n(e,n){return"___"+e.toUpperCase()+n+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,t,o,i){if(a.language===t){var r=a.tokenStack=[];a.code=a.code.replace(o,function(e){if("function"==typeof i&&!i(e))return e;for(var o,s=r.length;-1!==a.code.indexOf(o=n(t,s));)++s;return r[s]=e,o}),a.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(a,t){if(a.language===t&&a.tokenStack){a.grammar=e.languages[t];var o=0,i=Object.keys(a.tokenStack);!function r(s){for(var l=0;l=i.length);l++){var u=s[l];if("string"==typeof u||u.content&&"string"==typeof u.content){var c=i[o],g=a.tokenStack[c],d="string"==typeof u?u:u.content,f=n(t,c),p=d.indexOf(f);if(p>-1){++o;var k=d.substring(0,p),b=new e.Token(t,e.tokenize(g,a.grammar),"language-"+t,g),h=d.substring(p+f.length),m=[];k&&m.push.apply(m,r([k])),m.push(b),h&&m.push.apply(m,r([h])),"string"==typeof u?s.splice.apply(s,[l,1].concat(m)):u.content=m}}else u.content&&r(u.content)}return s}(a.tokens)}}}})}o.displayName="markup-templating",o.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_dnsZoneFile.d96c3cb267bde6f2.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_dnsZoneFile.d96c3cb267bde6f2.js
    deleted file mode 100644
    index f2204d5c8..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_dnsZoneFile.d96c3cb267bde6f2.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1385],{47710:(e,N,n)=>{function S(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}n.r(N),n.d(N,{default:()=>S}),S.displayName="dns-zone-file",S.aliases=["dns-zone"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_docker.e9489489c4675dee.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_docker.e9489489c4675dee.js
    deleted file mode 100644
    index 42a513fff..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_docker.e9489489c4675dee.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[724],{94813:(e,r,n)=>{function t(e){!function(e){var r=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return r}),t=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return t}),i={pattern:RegExp(t),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function a(e,r){return RegExp(e=e.replace(//g,function(){return o}).replace(//g,function(){return n}),r)}e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:a(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[i,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:a(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:a(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:a(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:s,string:i,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},e.languages.dockerfile=e.languages.docker}(e)}n.r(r),n.d(r,{default:()=>t}),t.displayName="docker",t.aliases=["dockerfile"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_dot.bd9a9d2d7c806310.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_dot.bd9a9d2d7c806310.js
    deleted file mode 100644
    index 34a098167..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_dot.bd9a9d2d7c806310.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6285],{20004:(e,a,n)=>{function r(e){var a="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",n={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:e.languages.markup}};function r(e,n){return RegExp(e.replace(//g,function(){return a}),n)}e.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:r(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:n},"attr-value":{pattern:r(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:n},"attr-name":{pattern:r(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:n},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:r(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:n},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},e.languages.gv=e.languages.dot}n.r(a),n.d(a,{default:()=>r}),r.displayName="dot",r.aliases=["gv"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ebnf.ce8fddd69c322666.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ebnf.ce8fddd69c322666.js
    deleted file mode 100644
    index 5019b87e3..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ebnf.ce8fddd69c322666.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6829],{7310:(e,a,n)=>{function t(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}n.r(a),n.d(a,{default:()=>t}),t.displayName="ebnf",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_editorconfig.59cd0ab487637161.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_editorconfig.59cd0ab487637161.js
    deleted file mode 100644
    index 6bedf865c..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_editorconfig.59cd0ab487637161.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8217],{36682:(e,t,a)=>{function n(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}a.r(t),a.d(t,{default:()=>n}),n.displayName="editorconfig",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_eiffel.a65f7dedf5c8c2c9.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_eiffel.a65f7dedf5c8c2c9.js
    deleted file mode 100644
    index fc8cb1fbe..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_eiffel.a65f7dedf5c8c2c9.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7581],{57978:(e,a,r)=>{function n(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}r.r(a),r.d(a,{default:()=>n}),n.displayName="eiffel",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ejs.442bd4132210d0e5.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ejs.442bd4132210d0e5.js
    deleted file mode 100644
    index c96b8cd18..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ejs.442bd4132210d0e5.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6403,7508],{57559:(e,a,t)=>{t.r(a),t.d(a,{default:()=>s});var n=t(52622),r=t(97769);function s(e){e.register(n.default),e.register(r.default),e.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:e.languages.javascript}},e.hooks.add("before-tokenize",function(a){e.languages["markup-templating"].buildPlaceholders(a,"ejs",/<%(?!%)[\s\S]+?%>/g)}),e.hooks.add("after-tokenize",function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),e.languages.eta=e.languages.ejs}s.displayName="ejs",s.aliases=["eta"]},97769:(e,a,t)=>{t.r(a),t.d(a,{default:()=>r});var n=t(83309);function r(e){e.register(n.default);function a(e,a){return"___"+e.toUpperCase()+a+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,n,r,s){if(t.language===n){var i=t.tokenStack=[];t.code=t.code.replace(r,function(e){if("function"==typeof s&&!s(e))return e;for(var r,l=i.length;-1!==t.code.indexOf(r=a(n,l));)++l;return i[l]=e,r}),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,n){if(t.language===n&&t.tokenStack){t.grammar=e.languages[n];var r=0,s=Object.keys(t.tokenStack);!function i(l){for(var u=0;u=s.length);u++){var o=l[u];if("string"==typeof o||o.content&&"string"==typeof o.content){var g=s[r],c=t.tokenStack[g],p="string"==typeof o?o:o.content,f=a(n,g),d=p.indexOf(f);if(d>-1){++r;var k=p.substring(0,d),m=new e.Token(n,e.tokenize(c,t.grammar),"language-"+n,c),h=p.substring(d+f.length),v=[];k&&v.push.apply(v,i([k])),v.push(m),h&&v.push.apply(v,i([h])),"string"==typeof o?l.splice.apply(l,[u,1].concat(v)):o.content=v}}else o.content&&i(o.content)}return l}(t.tokens)}}}})}r.displayName="markup-templating",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_elixir.6bf683af514ab4b5.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_elixir.6bf683af514ab4b5.js
    deleted file mode 100644
    index 182388b25..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_elixir.6bf683af514ab4b5.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2961],{47302:(e,n,r)=>{function a(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(n){n.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}r.r(n),r.d(n,{default:()=>a}),a.displayName="elixir",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_elm.51bdd02919a78007.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_elm.51bdd02919a78007.js
    deleted file mode 100644
    index c98e084ad..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_elm.51bdd02919a78007.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4972],{7555:(e,a,n)=>{function t(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}n.r(a),n.d(a,{default:()=>t}),t.displayName="elm",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_erb.dfbeff3eaf4a196d.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_erb.dfbeff3eaf4a196d.js
    deleted file mode 100644
    index b445c04e3..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_erb.dfbeff3eaf4a196d.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1749,3440,6403],{54021:(e,n,t)=>{t.r(n),t.d(n,{default:()=>a});var r=t(22557);function a(e){var n,t,a;e.register(r.default),e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}},delete e.languages.ruby.function,t="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",a=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source,e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+t+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+a),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+a+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+t),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+t),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}a.displayName="ruby",a.aliases=["rb"]},79260:(e,n,t)=>{t.r(n),t.d(n,{default:()=>i});var r=t(97769),a=t(54021);function i(e){e.register(r.default),e.register(a.default),e.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:e.languages.ruby}},e.hooks.add("before-tokenize",function(n){e.languages["markup-templating"].buildPlaceholders(n,"erb",/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g)}),e.hooks.add("after-tokenize",function(n){e.languages["markup-templating"].tokenizePlaceholders(n,"erb")})}i.displayName="erb",i.aliases=[]},97769:(e,n,t)=>{t.r(n),t.d(n,{default:()=>a});var r=t(83309);function a(e){e.register(r.default);function n(e,n){return"___"+e.toUpperCase()+n+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,r,a,i){if(t.language===r){var s=t.tokenStack=[];t.code=t.code.replace(a,function(e){if("function"==typeof i&&!i(e))return e;for(var a,o=s.length;-1!==t.code.indexOf(a=n(r,o));)++o;return s[o]=e,a}),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,r){if(t.language===r&&t.tokenStack){t.grammar=e.languages[r];var a=0,i=Object.keys(t.tokenStack);!function s(o){for(var l=0;l=i.length);l++){var u=o[l];if("string"==typeof u||u.content&&"string"==typeof u.content){var g=i[a],d=t.tokenStack[g],c="string"==typeof u?u:u.content,p=n(r,g),b=c.indexOf(p);if(b>-1){++a;var f=c.substring(0,b),m=new e.Token(r,e.tokenize(d,t.grammar),"language-"+r,d),y=c.substring(b+p.length),k=[];f&&k.push.apply(k,s([f])),k.push(m),y&&k.push.apply(k,s([y])),"string"==typeof u?o.splice.apply(o,[l,1].concat(k)):u.content=k}}else u.content&&s(u.content)}return o}(t.tokens)}}}})}a.displayName="markup-templating",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_erlang.0c806bd40c64f062.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_erlang.0c806bd40c64f062.js
    deleted file mode 100644
    index e5b072767..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_erlang.0c806bd40c64f062.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[269],{48446:(e,a,n)=>{function t(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}n.r(a),n.d(a,{default:()=>t}),t.displayName="erlang",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_etlua.0b300efd8e670927.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_etlua.0b300efd8e670927.js
    deleted file mode 100644
    index c141aa412..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_etlua.0b300efd8e670927.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4903,5578,6403],{66933:(e,a,n)=>{function t(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}n.r(a),n.d(a,{default:()=>t}),t.displayName="lua",t.aliases=[]},77262:(e,a,n)=>{n.r(a),n.d(a,{default:()=>l});var t=n(66933),r=n(97769);function l(e){e.register(t.default),e.register(r.default),e.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:e.languages.lua}},e.hooks.add("before-tokenize",function(a){e.languages["markup-templating"].buildPlaceholders(a,"etlua",/<%[\s\S]+?%>/g)}),e.hooks.add("after-tokenize",function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"etlua")})}l.displayName="etlua",l.aliases=[]},97769:(e,a,n)=>{n.r(a),n.d(a,{default:()=>r});var t=n(83309);function r(e){e.register(t.default);function a(e,a){return"___"+e.toUpperCase()+a+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,t,r,l){if(n.language===t){var u=n.tokenStack=[];n.code=n.code.replace(r,function(e){if("function"==typeof l&&!l(e))return e;for(var r,o=u.length;-1!==n.code.indexOf(r=a(t,o));)++o;return u[o]=e,r}),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,t){if(n.language===t&&n.tokenStack){n.grammar=e.languages[t];var r=0,l=Object.keys(n.tokenStack);!function u(o){for(var i=0;i=l.length);i++){var s=o[i];if("string"==typeof s||s.content&&"string"==typeof s.content){var g=l[r],d=n.tokenStack[g],f="string"==typeof s?s:s.content,c=a(t,g),p=f.indexOf(c);if(p>-1){++r;var k=f.substring(0,p),m=new e.Token(t,e.tokenize(d,n.grammar),"language-"+t,d),b=f.substring(p+c.length),h=[];k&&h.push.apply(h,u([k])),h.push(m),b&&h.push.apply(h,u([b])),"string"==typeof s?o.splice.apply(o,[i,1].concat(h)):s.content=h}}else s.content&&u(s.content)}return o}(n.tokens)}}}})}r.displayName="markup-templating",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_excelFormula.5b9bb68593fca278.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_excelFormula.5b9bb68593fca278.js
    deleted file mode 100644
    index 24efb19fd..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_excelFormula.5b9bb68593fca278.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8665],{87287:(e,a,n)=>{function t(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}n.r(a),n.d(a,{default:()=>t}),t.displayName="excel-formula",t.aliases=["xls","xlsx"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_factor.6b5bf465f7507f06.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_factor.6b5bf465f7507f06.js
    deleted file mode 100644
    index 053faa171..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_factor.6b5bf465f7507f06.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8369],{33558:(e,t,s)=>{function i(e){var t,s,i,n,r,a;i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:t={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/}},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:t},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:t}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:(s={number:/\\[^\s']|%\w/}).number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:s},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:s}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:s}},n=function(e){return(e+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},r=function(e){return RegExp("(^|\\s)(?:"+e.map(n).join("|")+")(?=\\s|$)")},Object.keys(a={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]}).forEach(function(e){i[e].pattern=r(a[e])}),i.combinators.pattern=r(["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"]),e.languages.factor=i}s.r(t),s.d(t,{default:()=>i}),i.displayName="factor",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_falselang.474ed284e9d1dac1.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_falselang.474ed284e9d1dac1.js
    deleted file mode 100644
    index 53e51a460..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_falselang.474ed284e9d1dac1.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[345],{26896:(a,e,t)=>{function n(a){a.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()n}),n.displayName="false",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_firestoreSecurityRules.381a5de1d8945e8e.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_firestoreSecurityRules.381a5de1d8945e8e.js
    deleted file mode 100644
    index a90ba2461..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_firestoreSecurityRules.381a5de1d8945e8e.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6878],{98637:(e,s,r)=>{r.r(s),r.d(s,{default:()=>a});var t=r(22557);function a(e){e.register(t.default),e.languages["firestore-security-rules"]=e.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}a.displayName="firestore-security-rules",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_flow.f8250db98781e591.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_flow.f8250db98781e591.js
    deleted file mode 100644
    index a7841b649..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_flow.f8250db98781e591.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2688],{16057:(e,a,n)=>{n.r(a),n.d(a,{default:()=>l});var s=n(52622);function l(e){e.register(s.default),e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}l.displayName="flow",l.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_fortran.cc1797e652231526.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_fortran.cc1797e652231526.js
    deleted file mode 100644
    index 238d1c003..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_fortran.cc1797e652231526.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8494],{57157:(E,N,T)=>{function L(E){E.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}T.r(N),T.d(N,{default:()=>L}),L.displayName="fortran",L.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_fsharp.e617db15cb704465.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_fsharp.e617db15cb704465.js
    deleted file mode 100644
    index 7b31cc4ad..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_fsharp.e617db15cb704465.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4830],{91867:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var a=n(22557);function r(e){e.register(a.default),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}r.displayName="fsharp",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ftl.ea33095c291e5e23.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ftl.ea33095c291e5e23.js
    deleted file mode 100644
    index 77a8d61fa..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ftl.ea33095c291e5e23.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2102,6403],{91265:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var a=n(97769);function r(e){e.register(a.default);for(var t=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,n=0;n<2;n++)t=t.replace(//g,function(){return t});t=t.replace(//g,/[^\s\S]/.source);var r={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return t})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return t})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};r.string[1].inside.interpolation.inside.rest=r,e.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:r}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:r}}}},e.hooks.add("before-tokenize",function(n){var a=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return t}),"gi");e.languages["markup-templating"].buildPlaceholders(n,"ftl",a)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"ftl")})}r.displayName="ftl",r.aliases=[]},97769:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var a=n(83309);function r(e){e.register(a.default);function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,a,r,i){if(n.language===a){var o=n.tokenStack=[];n.code=n.code.replace(r,function(e){if("function"==typeof i&&!i(e))return e;for(var r,l=o.length;-1!==n.code.indexOf(r=t(a,l));)++l;return o[l]=e,r}),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,a){if(n.language===a&&n.tokenStack){n.grammar=e.languages[a];var r=0,i=Object.keys(n.tokenStack);!function o(l){for(var s=0;s=i.length);s++){var u=l[s];if("string"==typeof u||u.content&&"string"==typeof u.content){var p=i[r],c=n.tokenStack[p],g="string"==typeof u?u:u.content,f=t(a,p),d=g.indexOf(f);if(d>-1){++r;var k=g.substring(0,d),b=new e.Token(a,e.tokenize(c,n.grammar),"language-"+a,c),m=g.substring(d+f.length),h=[];k&&h.push.apply(h,o([k])),h.push(b),m&&h.push.apply(h,o([m])),"string"==typeof u?l.splice.apply(l,[s,1].concat(h)):u.content=h}}else u.content&&o(u.content)}return l}(n.tokens)}}}})}r.displayName="markup-templating",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gap.20a814d8f24a3476.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gap.20a814d8f24a3476.js
    deleted file mode 100644
    index f1e2e893b..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gap.20a814d8f24a3476.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6148],{15443:(n,e,a)=>{function t(n){n.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},n.languages.gap.shell.inside.gap.inside=n.languages.gap}a.r(e),a.d(e,{default:()=>t}),t.displayName="gap",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gcode.ddd203418421fc78.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gcode.ddd203418421fc78.js
    deleted file mode 100644
    index a85e6b5ff..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gcode.ddd203418421fc78.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1156],{16855:(e,a,n)=>{function t(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}n.r(a),n.d(a,{default:()=>t}),t.displayName="gcode",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gdscript.57a0dd5970718713.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gdscript.57a0dd5970718713.js
    deleted file mode 100644
    index aa8da9afe..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gdscript.57a0dd5970718713.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9060],{54293:(e,t,s)=>{function a(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}s.r(t),s.d(t,{default:()=>a}),a.displayName="gdscript",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gedcom.454b1f62884a828c.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gedcom.454b1f62884a828c.js
    deleted file mode 100644
    index 4a808b9e2..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gedcom.454b1f62884a828c.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1451],{50836:(e,a,t)=>{function l(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}t.r(a),t.d(a,{default:()=>l}),l.displayName="gedcom",l.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gettext.7da7cfd6ad90fe03.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gettext.7da7cfd6ad90fe03.js
    deleted file mode 100644
    index edc3094ac..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gettext.7da7cfd6ad90fe03.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1801],{34020:(e,t,a)=>{function n(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}a.r(t),a.d(t,{default:()=>n}),n.displayName="gettext",n.aliases=["po"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gherkin.2210fbb2a5edb175.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gherkin.2210fbb2a5edb175.js
    deleted file mode 100644
    index 2163c50ad..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gherkin.2210fbb2a5edb175.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2690],{92281:(a,e,n)=>{function i(a){var e;e=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source,a.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+e+")(?:"+e+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(e),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}}n.r(e),n.d(e,{default:()=>i}),i.displayName="gherkin",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_git.1f6dff5c8d2311a4.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_git.1f6dff5c8d2311a4.js
    deleted file mode 100644
    index 05ceec86b..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_git.1f6dff5c8d2311a4.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9688],{89519:(e,m,t)=>{function a(e){e.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}}t.r(m),t.d(m,{default:()=>a}),a.displayName="git",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_glsl.992e81b3eb8056f1.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_glsl.992e81b3eb8056f1.js
    deleted file mode 100644
    index 1d19950aa..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_glsl.992e81b3eb8056f1.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3539,5084],{59505:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var r=t(72386);function i(e){e.register(r.default),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}i.displayName="glsl",i.aliases=[]},72386:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var r=t(22557);function i(e){e.register(r.default),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.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},e.languages.c.string],char:e.languages.c.char,comment:e.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:e.languages.c}}}}),e.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 e.languages.c.boolean}i.displayName="c",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gml.25cb4d0b22c18b94.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gml.25cb4d0b22c18b94.js
    deleted file mode 100644
    index bb839f87c..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gml.25cb4d0b22c18b94.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9964],{32667:(e,o,t)=>{t.r(o),t.d(o,{default:()=>a});var i=t(22557);function a(e){e.register(i.default),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}a.displayName="gml",a.aliases=["gamemakerlanguage"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gn.efad1647fb3cb4d0.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gn.efad1647fb3cb4d0.js
    deleted file mode 100644
    index a9dff1380..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gn.efad1647fb3cb4d0.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5963],{88620:(n,t,e)=>{function i(n){n.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},n.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=n.languages.gn,n.languages.gni=n.languages.gn}e.r(t),e.d(t,{default:()=>i}),i.displayName="gn",i.aliases=["gni"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_go.896fb5b4a60811a0.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_go.896fb5b4a60811a0.js
    deleted file mode 100644
    index 03bbfcb6c..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_go.896fb5b4a60811a0.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3154],{66015:(e,a,r)=>{r.r(a),r.d(a,{default:()=>t});var n=r(22557);function t(e){e.register(n.default),e.languages.go=e.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/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}t.displayName="go",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_goModule.c758247e9d722e68.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_goModule.c758247e9d722e68.js
    deleted file mode 100644
    index 1e703f4ce..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_goModule.c758247e9d722e68.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2742],{45094:(e,o,a)=>{function n(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}a.r(o),a.d(o,{default:()=>n}),n.displayName="go-module",n.aliases=["go-mod"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gradle.70c97fa874036771.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gradle.70c97fa874036771.js
    deleted file mode 100644
    index 51118a853..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_gradle.70c97fa874036771.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4985],{89174:(e,n,a)=>{a.r(n),a.d(n,{default:()=>i});var t=a(22557);function i(e){var n;e.register(t.default),n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},e.languages.gradle=e.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),e.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=e.languages.gradle}i.displayName="gradle",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_graphql.bcb6d46b444d2f92.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_graphql.bcb6d46b444d2f92.js
    deleted file mode 100644
    index fb428bbdc..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_graphql.bcb6d46b444d2f92.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[451],{44366:(t,n,e)=>{function a(t){t.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:t.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},t.hooks.add("after-tokenize",function(t){if("graphql"===t.language)for(var n=t.tokens.filter(function(t){return"string"!=typeof t&&"comment"!==t.type&&"scalar"!==t.type}),e=0;e0)){var s=c(/^\{$/,/^\}$/);if(-1===s)continue;for(var u=e;u=0&&f(p,"variable-input")}}}}function l(t,a){a=a||0;for(var r=0;ra}),a.displayName="graphql",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_groovy.cf87ba49b8e8fa02.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_groovy.cf87ba49b8e8fa02.js
    deleted file mode 100644
    index e560a2ce7..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_groovy.cf87ba49b8e8fa02.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[622],{31751:(e,n,t)=>{t.r(n),t.d(n,{default:()=>i});var a=t(22557);function i(e){var n;e.register(a.default),n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},e.languages.groovy=e.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=e.languages.groovy}i.displayName="groovy",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_haml.c716463706b8c002.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_haml.c716463706b8c002.js
    deleted file mode 100644
    index 3764f7ad9..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_haml.c716463706b8c002.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3440,6118],{41591:(e,n,t)=>{t.r(n),t.d(n,{default:()=>a});var r=t(54021);function a(e){e.register(r.default),function(e){e.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:e.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:e.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:e.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:e.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:e.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:e.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],t={},r=0,a=n.length;r{t.r(n),t.d(n,{default:()=>a});var r=t(22557);function a(e){var n,t,a;e.register(r.default),e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}},delete e.languages.ruby.function,t="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",a=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source,e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+t+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+a),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+a+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+t),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+t),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}a.displayName="ruby",a.aliases=["rb"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_handlebars.7e2d4d0d4f3d372d.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_handlebars.7e2d4d0d4f3d372d.js
    deleted file mode 100644
    index 596e049b1..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_handlebars.7e2d4d0d4f3d372d.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6403,6804],{23053:(e,a,n)=>{n.r(a),n.d(a,{default:()=>s});var t=n(97769);function s(e){e.register(t.default),e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",function(a){e.languages["markup-templating"].buildPlaceholders(a,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)}),e.hooks.add("after-tokenize",function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),e.languages.hbs=e.languages.handlebars,e.languages.mustache=e.languages.handlebars}s.displayName="handlebars",s.aliases=["hbs","mustache"]},97769:(e,a,n)=>{n.r(a),n.d(a,{default:()=>s});var t=n(83309);function s(e){e.register(t.default);function a(e,a){return"___"+e.toUpperCase()+a+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,t,s,r){if(n.language===t){var l=n.tokenStack=[];n.code=n.code.replace(s,function(e){if("function"==typeof r&&!r(e))return e;for(var s,o=l.length;-1!==n.code.indexOf(s=a(t,o));)++o;return l[o]=e,s}),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,t){if(n.language===t&&n.tokenStack){n.grammar=e.languages[t];var s=0,r=Object.keys(n.tokenStack);!function l(o){for(var u=0;u=r.length);u++){var i=o[u];if("string"==typeof i||i.content&&"string"==typeof i.content){var g=r[s],c=n.tokenStack[g],d="string"==typeof i?i:i.content,p=a(t,g),f=d.indexOf(p);if(f>-1){++s;var k=d.substring(0,f),b=new e.Token(t,e.tokenize(c,n.grammar),"language-"+t,c),h=d.substring(f+p.length),m=[];k&&m.push.apply(m,l([k])),m.push(b),h&&m.push.apply(m,l([h])),"string"==typeof i?o.splice.apply(o,[u,1].concat(m)):i.content=m}}else i.content&&l(i.content)}return o}(n.tokens)}}}})}s.displayName="markup-templating",s.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_haskell.574f07fe48ee0d87.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_haskell.574f07fe48ee0d87.js
    deleted file mode 100644
    index bc074630d..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_haskell.574f07fe48ee0d87.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8524],{35935:(e,a,i)=>{function t(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}i.r(a),i.d(a,{default:()=>t}),t.displayName="haskell",t.aliases=["hs"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_haxe.b1d4aad1a68c6006.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_haxe.b1d4aad1a68c6006.js
    deleted file mode 100644
    index fc3eee9ae..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_haxe.b1d4aad1a68c6006.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1220],{89257:(e,a,t)=>{t.r(a),t.d(a,{default:()=>r});var n=t(22557);function r(e){e.register(n.default),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}r.displayName="haxe",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_hcl.a3567565d96f0fe3.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_hcl.a3567565d96f0fe3.js
    deleted file mode 100644
    index ee55725c0..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_hcl.a3567565d96f0fe3.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[365],{86660:(e,a,t)=>{function r(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}t.r(a),t.d(a,{default:()=>r}),r.displayName="hcl",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_hlsl.84bf234545b8ad59.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_hlsl.84bf234545b8ad59.js
    deleted file mode 100644
    index 441ebc937..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_hlsl.84bf234545b8ad59.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2465,3539],{22922:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});var a=r(72386);function n(e){e.register(a.default),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}n.displayName="hlsl",n.aliases=[]},72386:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});var a=r(22557);function n(e){e.register(a.default),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.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},e.languages.c.string],char:e.languages.c.char,comment:e.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:e.languages.c}}}}),e.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 e.languages.c.boolean}n.displayName="c",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_hoon.71c731e6519f5a34.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_hoon.71c731e6519f5a34.js
    deleted file mode 100644
    index d80259aec..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_hoon.71c731e6519f5a34.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5208],{84621:(a,e,n)=>{function s(a){a.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}n.r(e),n.d(e,{default:()=>s}),s.displayName="hoon",s.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_hpkp.efe46c733e180745.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_hpkp.efe46c733e180745.js
    deleted file mode 100644
    index 6f8699fb1..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_hpkp.efe46c733e180745.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2281],{15074:(a,e,p)=>{function t(a){a.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}p.r(e),p.d(e,{default:()=>t}),t.displayName="hpkp",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_hsts.a46c95e4b9d451c8.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_hsts.a46c95e4b9d451c8.js
    deleted file mode 100644
    index 0961aebfe..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_hsts.a46c95e4b9d451c8.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[452],{61377:(a,e,s)=>{function t(a){a.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}s.r(e),s.d(e,{default:()=>t}),t.displayName="hsts",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_http.c4450347c41736be.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_http.c4450347c41736be.js
    deleted file mode 100644
    index 86e201789..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_http.c4450347c41736be.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9048],{25477:(e,t,a)=>{function n(e){!function(e){function t(e){return RegExp("(^(?:"+e+"):[ 	]*(?![ 	]))[^]+","i")}e.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:e.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:t(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:e.languages.csp},{pattern:t(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:e.languages.hpkp},{pattern:t(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:e.languages.hsts},{pattern:t(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a,n=e.languages,s={"application/javascript":n.javascript,"application/json":n.json||n.javascript,"application/xml":n.xml,"text/xml":n.xml,"text/html":n.html,"text/css":n.css,"text/plain":n.plain},i={"application/json":!0,"application/xml":!0};for(var r in s)if(s[r]){a=a||{};var p=i[r]?function(e){var t=e.replace(/^[a-z]+\//,"");return"(?:"+e+"|\\w+/(?:[\\w.-]+\\+)+"+t+"(?![+\\w.-]))"}(r):r;a[r.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+p+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:s[r]}}a&&e.languages.insertBefore("http","header",a)}(e)}a.r(t),a.d(t,{default:()=>n}),n.displayName="http",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ichigojam.8ff44cd63859a8c6.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ichigojam.8ff44cd63859a8c6.js
    deleted file mode 100644
    index 37dbabb38..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ichigojam.8ff44cd63859a8c6.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8813],{65112:(E,N,R)=>{function T(E){E.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}R.r(N),R.d(N,{default:()=>T}),T.displayName="ichigojam",T.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_icon.30a3810d43d97e2a.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_icon.30a3810d43d97e2a.js
    deleted file mode 100644
    index ab0f82d9e..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_icon.30a3810d43d97e2a.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4779],{1680:(e,t,a)=>{function i(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}a.r(t),a.d(t,{default:()=>i}),i.displayName="icon",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_icuMessageFormat.cedde3a2e0bc519e.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_icuMessageFormat.cedde3a2e0bc519e.js
    deleted file mode 100644
    index 48d2d1d73..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_icuMessageFormat.cedde3a2e0bc519e.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[535],{16218:(e,s,t)=>{function n(e){!function(e){function s(e,t){return t<=0?/[]/.source:e.replace(//g,function(){return s(e,t-1)})}var t=/'[{}:=,](?:[^']|'')*'(?!')/,n={pattern:/''/,greedy:!0,alias:"operator"},a=s(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return t.source}),8),r={pattern:RegExp(a),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};e.languages["icu-message-format"]={argument:{pattern:RegExp(a),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":r,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":r,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+s(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:n,string:{pattern:t,greedy:!0,inside:{escape:n}}},r.inside.message.inside=e.languages["icu-message-format"],e.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=e.languages["icu-message-format"]}(e)}t.r(s),t.d(s,{default:()=>n}),n.displayName="icu-message-format",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_idris.98770d3d49ff09eb.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_idris.98770d3d49ff09eb.js
    deleted file mode 100644
    index b79469ca9..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_idris.98770d3d49ff09eb.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3887,8524],{35935:(e,i,a)=>{function t(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}a.r(i),a.d(i,{default:()=>t}),t.displayName="haskell",t.aliases=["hs"]},65550:(e,i,a)=>{a.r(i),a.d(i,{default:()=>n});var t=a(35935);function n(e){e.register(t.default),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}n.displayName="idris",n.aliases=["idr"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_iecst.d08a711eee9bf1dc.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_iecst.d08a711eee9bf1dc.js
    deleted file mode 100644
    index 9e06ee955..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_iecst.d08a711eee9bf1dc.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6100],{16847:(T,E,N)=>{function O(T){T.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}N.r(E),N.d(E,{default:()=>O}),O.displayName="iecst",O.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ignore.af71a0f13efeb60f.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ignore.af71a0f13efeb60f.js
    deleted file mode 100644
    index 13c05f8e9..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ignore.af71a0f13efeb60f.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3294],{51807:(e,n,g)=>{function a(e){e.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},e.languages.gitignore=e.languages.ignore,e.languages.hgignore=e.languages.ignore,e.languages.npmignore=e.languages.ignore}g.r(n),g.d(n,{default:()=>a}),a.displayName="ignore",a.aliases=["gitignore","hgignore","npmignore"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_inform7.812cac3f4635345f.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_inform7.812cac3f4635345f.js
    deleted file mode 100644
    index 2d33fe501..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_inform7.812cac3f4635345f.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7818],{6501:(e,n,i)=>{function t(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}i.r(n),i.d(n,{default:()=>t}),t.displayName="inform7",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ini.de6151e12e476bd8.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ini.de6151e12e476bd8.js
    deleted file mode 100644
    index 420c1b17e..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ini.de6151e12e476bd8.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2638],{17405:(t,n,e)=>{function a(t){t.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}e.r(n),e.d(n,{default:()=>a}),a.displayName="ini",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_io.6b22ecfff8919f29.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_io.6b22ecfff8919f29.js
    deleted file mode 100644
    index b07297b82..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_io.6b22ecfff8919f29.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7148],{38493:(e,r,t)=>{function o(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<o}),o.displayName="io",o.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_j.06b5f9686e580d6e.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_j.06b5f9686e580d6e.js
    deleted file mode 100644
    index b7124a2b0..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_j.06b5f9686e580d6e.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7474],{76981:(e,a,t)=>{function n(e){e.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}t.r(a),t.d(a,{default:()=>n}),n.displayName="j",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_java.be564e8bd7c4d1ca.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_java.be564e8bd7c4d1ca.js
    deleted file mode 100644
    index e08d1c706..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_java.be564e8bd7c4d1ca.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2168],{12837:(e,s,a)=>{a.r(s),a.d(s,{default:()=>t});var n=a(22557);function t(e){var s,a,t;e.register(n.default),s=/\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/,a=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,t={pattern:RegExp(/(^|[^\w.])/.source+a+/[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:/\./}},e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[t,{pattern:RegExp(/(^|[^\w.])/.source+a+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:t.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+a+/[A-Z]\w*\b/.source),lookbehind:!0,inside:t.inside}],keyword:s,function:[e.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/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.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":t,keyword:s,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+a+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:t.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+a+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:t.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 s.source})),lookbehind:!0,inside:{punctuation:/\./}}})}t.displayName="java",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_javadoc.771cacc5a7d433f0.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_javadoc.771cacc5a7d433f0.js
    deleted file mode 100644
    index f9ed3fec4..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_javadoc.771cacc5a7d433f0.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[546,2168,5655],{9358:(e,a,n)=>{function s(e){var a;Object.defineProperty(a=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/},"addSupport",{value:function(a,n){"string"==typeof a&&(a=[a]),a.forEach(function(a){!function(a,n){var s="doc-comment",t=e.languages[a];if(t){var i=t[s];if(!i){var r={};r[s]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},i=(t=e.languages.insertBefore(a,"comment",r))[s]}if(i instanceof RegExp&&(i=t[s]={pattern:i}),Array.isArray(i))for(var o=0,d=i.length;os}),s.displayName="javadoclike",s.aliases=[]},12837:(e,a,n)=>{n.r(a),n.d(a,{default:()=>t});var s=n(22557);function t(e){var a,n,t;e.register(s.default),a=/\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/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,t={pattern:RegExp(/(^|[^\w.])/.source+n+/[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:/\./}},e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[t,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:t.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:t.inside}],keyword:a,function:[e.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/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.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":t,keyword:a,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:t.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:t.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 a.source})),lookbehind:!0,inside:{punctuation:/\./}}})}t.displayName="java",t.aliases=[]},68777:(e,a,n)=>{n.r(a),n.d(a,{default:()=>r});var s=n(12837),t=n(9358),i=n(83309);function r(e){var a,n,r;e.register(s.default),e.register(t.default),e.register(i.default),a=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,n=/#\s*\w+(?:\s*\([^()]*\))?/.source,r=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return n}),e.languages.javadoc=e.languages.extend("javadoclike",{}),e.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+r+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:e.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:a,lookbehind:!0,inside:e.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:a,lookbehind:!0,inside:{tag:e.languages.markup.tag,entity:e.languages.markup.entity,code:{pattern:/.+/,inside:e.languages.java,alias:"language-java"}}}}}],tag:e.languages.markup.tag,entity:e.languages.markup.entity}),e.languages.javadoclike.addSupport("java",e.languages.javadoc)}r.displayName="javadoc",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_javadoclike.f8047304ca4d959c.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_javadoclike.f8047304ca4d959c.js
    deleted file mode 100644
    index cd954c0e3..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_javadoclike.f8047304ca4d959c.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5655],{9358:(a,e,n)=>{function t(a){var e;Object.defineProperty(e=a.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/},"addSupport",{value:function(e,n){"string"==typeof e&&(e=[e]),e.forEach(function(e){!function(e,n){var t="doc-comment",r=a.languages[e];if(r){var i=r[t];if(!i){var o={};o[t]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},i=(r=a.languages.insertBefore(e,"comment",o))[t]}if(i instanceof RegExp&&(i=r[t]={pattern:i}),Array.isArray(i))for(var s=0,p=i.length;st}),t.displayName="javadoclike",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_javastacktrace.bd6e253a780da705.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_javastacktrace.bd6e253a780da705.js
    deleted file mode 100644
    index 31d7d9f06..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_javastacktrace.bd6e253a780da705.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[891],{796:(e,n,a)=>{function t(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}a.r(n),a.d(n,{default:()=>t}),t.displayName="javastacktrace",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jexl.744f92d83ecdb77c.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jexl.744f92d83ecdb77c.js
    deleted file mode 100644
    index 4ded7ffb9..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jexl.744f92d83ecdb77c.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3943],{13364:(u,a,e)=>{function n(u){u.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}e.r(a),e.d(a,{default:()=>n}),n.displayName="jexl",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jolie.1b34fdf47d05b82b.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jolie.1b34fdf47d05b82b.js
    deleted file mode 100644
    index 3a381b9b2..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jolie.1b34fdf47d05b82b.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8857],{95896:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var i=n(22557);function s(e){e.register(i.default),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}s.displayName="jolie",s.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jq.fd7f33cf2f3bf983.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jq.fd7f33cf2f3bf983.js
    deleted file mode 100644
    index f7c797838..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jq.fd7f33cf2f3bf983.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4415],{61908:(e,n,t)=>{function a(e){var n,t,a,i;n=/\\\((?:[^()]|\([^()]*\))*\)/.source,t=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),a={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},i=e.languages.jq={comment:/#.*/,property:{pattern:RegExp(t.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:a},string:{pattern:t,lookbehind:!0,greedy:!0,inside:a},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}},a.interpolation.inside.content.inside=i}t.r(n),t.d(n,{default:()=>a}),a.displayName="jq",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jsExtras.790240a250d17570.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jsExtras.790240a250d17570.js
    deleted file mode 100644
    index 7911323c3..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jsExtras.790240a250d17570.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2224],{12778:(a,e,t)=>{t.r(e),t.d(e,{default:()=>s});var r=t(52622);function s(a){a.register(r.default),function(a){function e(a,e){return RegExp(a.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),e)}a.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+a.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),a.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+a.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),a.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),a.languages.insertBefore("javascript","keyword",{imports:{pattern:e(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:a.languages.javascript},exports:{pattern:e(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:a.languages.javascript}}),a.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),a.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),a.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:e(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var t=["function","function-variable","method","method-variable","property-access"],r=0;r{n.r(t),n.d(t,{default:()=>a});var r=n(52622);function a(e){e.register(r.default),function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,a=r.inside["interpolation-punctuation"],s=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function o(t,n,r){var a={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",a),a.tokens=e.tokenize(a.code,a.grammar),e.hooks.run("after-tokenize",a),a.tokens}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};e.hooks.add("after-tokenize",function(t){t.language in p&&function t(n){for(var i=0,p=n.length;i=g.length)return;var i=n[s];if("string"==typeof i||"string"==typeof i.content){var p=g[l],c="string"==typeof i?i:i.content,f=c.indexOf(p);if(-1!==f){++l;var y=c.substring(0,f),d=function(t){var n={};n["interpolation-punctuation"]=a;var s=e.tokenize(t,n);if(3===s.length){var i=[1,1];i.push.apply(i,o(s[1],e.languages.javascript,"javascript")),s.splice.apply(s,i)}return new e.Token("interpolation",s,r.alias,t)}(u[p]),v=c.substring(f+p.length),k=[];if(y&&k.push(y),k.push(d),v){var h=[v];t(h),k.push.apply(k,h)}"string"==typeof i?(n.splice.apply(n,[s,1].concat(k)),s+=k.length-1):i.content=k}}else{var m=i.content;Array.isArray(m)?t(m):t([m])}}}(c),new e.Token(i,c,"language-"+i,t)}(g,d,y)}}else t(u)}}}(t.tokens)})}(e)}a.displayName="js-templates",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jsdoc.8e6c08083d65a076.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jsdoc.8e6c08083d65a076.js
    deleted file mode 100644
    index d14fb78aa..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jsdoc.8e6c08083d65a076.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5655,8625],{9358:(e,a,n)=>{function t(e){var a;Object.defineProperty(a=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/},"addSupport",{value:function(a,n){"string"==typeof a&&(a=[a]),a.forEach(function(a){!function(a,n){var t="doc-comment",s=e.languages[a];if(s){var r=s[t];if(!r){var i={};i[t]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},r=(s=e.languages.insertBefore(a,"comment",i))[t]}if(r instanceof RegExp&&(r=s[t]={pattern:r}),Array.isArray(r))for(var o=0,p=r.length;ot}),t.displayName="javadoclike",t.aliases=[]},55748:(e,a,n)=>{n.r(a),n.d(a,{default:()=>i});var t=n(9358),s=n(52622),r=n(80726);function i(e){var a,n,i;e.register(t.default),e.register(s.default),e.register(r.default),a=e.languages.javascript,i="(@(?:arg|argument|param|property)\\s+(?:"+(n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source)+"\\s+)?)",e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(i+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(i+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:a,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:a.string,number:a.number,boolean:a.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:a,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}i.displayName="jsdoc",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_json.59856a02996612e3.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_json.59856a02996612e3.js
    deleted file mode 100644
    index d42a55488..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_json.59856a02996612e3.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3950],{25751:(e,n,a)=>{function s(e){e.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"}},e.languages.webmanifest=e.languages.json}a.r(n),a.d(n,{default:()=>s}),s.displayName="json",s.aliases=["webmanifest"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_json5.b6e5c954e6046625.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_json5.b6e5c954e6046625.js
    deleted file mode 100644
    index 3aa05b245..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_json5.b6e5c954e6046625.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3950,7351],{19598:(e,n,a)=>{a.r(n),a.d(n,{default:()=>r});var s=a(25751);function r(e){var n;e.register(s.default),n=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/,e.languages.json5=e.languages.extend("json",{property:[{pattern:RegExp(n.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:n,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}r.displayName="json5",r.aliases=[]},25751:(e,n,a)=>{function s(e){e.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"}},e.languages.webmanifest=e.languages.json}a.r(n),a.d(n,{default:()=>s}),s.displayName="json",s.aliases=["webmanifest"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jsonp.ec15dcfec9338e5c.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jsonp.ec15dcfec9338e5c.js
    deleted file mode 100644
    index c0f026bda..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jsonp.ec15dcfec9338e5c.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3950,9706],{25751:(e,n,a)=>{function s(e){e.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"}},e.languages.webmanifest=e.languages.json}a.r(n),a.d(n,{default:()=>s}),s.displayName="json",s.aliases=["webmanifest"]},30365:(e,n,a)=>{a.r(n),a.d(n,{default:()=>t});var s=a(25751);function t(e){e.register(s.default),e.languages.jsonp=e.languages.extend("json",{punctuation:/[{}[\]();,.]/}),e.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}t.displayName="jsonp",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jsstacktrace.6671967aa9292e26.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jsstacktrace.6671967aa9292e26.js
    deleted file mode 100644
    index 462b9dff3..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_jsstacktrace.6671967aa9292e26.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[902],{36455:(a,n,e)=>{function t(a){a.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js||.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}e.r(n),e.d(n,{default:()=>t}),t.displayName="jsstacktrace",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_julia.22bac9b9a09c9a8b.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_julia.22bac9b9a09c9a8b.js
    deleted file mode 100644
    index f0ac24f83..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_julia.22bac9b9a09c9a8b.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9259],{73234:(e,t,n)=>{function a(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}n.r(t),n.d(t,{default:()=>a}),a.displayName="julia",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_keepalived.dcf4663ecc3e7254.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_keepalived.dcf4663ecc3e7254.js
    deleted file mode 100644
    index 75ae05338..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_keepalived.dcf4663ecc3e7254.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8030],{5051:(e,r,_)=>{function t(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}_.r(r),_.d(r,{default:()=>t}),t.displayName="keepalived",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_keyman.142b7abc6060f8d6.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_keyman.142b7abc6060f8d6.js
    deleted file mode 100644
    index afb9c679d..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_keyman.142b7abc6060f8d6.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9771],{94852:(e,a,t)=>{function n(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}t.r(a),t.d(a,{default:()=>n}),n.displayName="keyman",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_kotlin.0460b4c363a9ee36.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_kotlin.0460b4c363a9ee36.js
    deleted file mode 100644
    index a2e5cb31b..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_kotlin.0460b4c363a9ee36.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1999],{62220:(e,n,a)=>{a.r(n),a.d(n,{default:()=>i});var t=a(22557);function i(e){var n;e.register(t.default),e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"],n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}},e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}i.displayName="kotlin",i.aliases=["kt","kts"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_kumir.fcb222db4ba18103.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_kumir.fcb222db4ba18103.js
    deleted file mode 100644
    index 9a8b6c55f..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_kumir.fcb222db4ba18103.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2996],{51627:(n,e,o)=>{function r(n){var e=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function o(n,o){return RegExp(n.replace(//g,e),o)}n.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:o(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:o(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:o(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:o(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:o(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:o(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:o(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:o(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},n.languages.kum=n.languages.kumir}o.r(e),o.d(e,{default:()=>r}),r.displayName="kumir",r.aliases=["kum"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_kusto.21bfa7b5427ed782.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_kusto.21bfa7b5427ed782.js
    deleted file mode 100644
    index 1f0d040ce..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_kusto.21bfa7b5427ed782.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3244],{76275:(e,a,n)=>{function t(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}n.r(a),n.d(a,{default:()=>t}),t.displayName="kusto",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_latex.0504f61139ce5989.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_latex.0504f61139ce5989.js
    deleted file mode 100644
    index ec49b1a84..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_latex.0504f61139ce5989.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8156],{50787:(a,e,t)=>{function n(a){var e,t;t={"equation-command":{pattern:e=/\\(?:[^a-z()[\]]|[a-z*]+)/i,alias:"regex"}},a.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:t,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:t,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:e,alias:"selector"},punctuation:/[[\]{}&]/},a.languages.tex=a.languages.latex,a.languages.context=a.languages.latex}t.r(e),t.d(e,{default:()=>n}),n.displayName="latex",n.aliases=["context","tex"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_latte.6fd30a8dcc452faa.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_latte.6fd30a8dcc452faa.js
    deleted file mode 100644
    index 88764ffe5..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_latte.6fd30a8dcc452faa.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2208,6403,7394],{12983:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var n=t(97769);function i(e){var a,t,i,s,r,l,o;e.register(n.default),a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,t=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,r=/[{}\[\](),:;]/,e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:s,punctuation:r},o=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:l={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php}}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:l}}],e.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:o,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,number:i,operator:s,punctuation:r}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(a){/<\?/.test(a.code)&&e.languages["markup-templating"].buildPlaceholders(a,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add("after-tokenize",function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"php")})}i.displayName="php",i.aliases=[]},60597:(e,a,t)=>{t.r(a),t.d(a,{default:()=>r});var n=t(22557),i=t(97769),s=t(12983);function r(e){var a;e.register(n.default),e.register(i.default),e.register(s.default),e.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:e.languages.php}},a=e.languages.extend("markup",{}),e.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:e.languages.php}}}}}},a.tag),e.hooks.add("before-tokenize",function(t){"latte"===t.language&&(e.languages["markup-templating"].buildPlaceholders(t,"latte",/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g),t.grammar=a)}),e.hooks.add("after-tokenize",function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"latte")})}r.displayName="latte",r.aliases=[]},97769:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var n=t(83309);function i(e){e.register(n.default);function a(e,a){return"___"+e.toUpperCase()+a+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,n,i,s){if(t.language===n){var r=t.tokenStack=[];t.code=t.code.replace(i,function(e){if("function"==typeof s&&!s(e))return e;for(var i,l=r.length;-1!==t.code.indexOf(i=a(n,l));)++l;return r[l]=e,i}),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,n){if(t.language===n&&t.tokenStack){t.grammar=e.languages[n];var i=0,s=Object.keys(t.tokenStack);!function r(l){for(var o=0;o=s.length);o++){var d=l[o];if("string"==typeof d||d.content&&"string"==typeof d.content){var p=s[i],u=t.tokenStack[p],c="string"==typeof d?d:d.content,b=a(n,p),g=c.indexOf(b);if(g>-1){++i;var f=c.substring(0,g),m=new e.Token(n,e.tokenize(u,t.grammar),"language-"+n,u),h=c.substring(g+b.length),y=[];f&&y.push.apply(y,r([f])),y.push(m),h&&y.push.apply(y,r([h])),"string"==typeof d?l.splice.apply(l,[o,1].concat(y)):d.content=y}}else d.content&&r(d.content)}return l}(t.tokens)}}}})}i.displayName="markup-templating",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_less.2e3126666759a760.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_less.2e3126666759a760.js
    deleted file mode 100644
    index 3766266bc..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_less.2e3126666759a760.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3533,9059],{23740:(s,e,t)=>{function n(s){var e,t;e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,s.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.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\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,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:/[(){};:,]/},s.languages.css.atrule.inside.rest=s.languages.css,(t=s.languages.markup)&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}t.r(e),t.d(e,{default:()=>n}),n.displayName="css",n.aliases=[]},31020:(s,e,t)=>{t.r(e),t.d(e,{default:()=>a});var n=t(23740);function a(s){s.register(n.default),s.languages.less=s.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),s.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}a.displayName="less",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_lilypond.6d0ad62ae9c3bede.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_lilypond.6d0ad62ae9c3bede.js
    deleted file mode 100644
    index a69c27dd6..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_lilypond.6d0ad62ae9c3bede.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[925,3733],{24554:(e,r,n)=>{function t(e){e.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(function(e){for(var r in e)e[r]=e[r].replace(/<[\w\s]+>/g,function(r){return"(?:"+e[r].trim()+")"});return e[r]}({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/}}n.r(r),n.d(r,{default:()=>t}),t.displayName="scheme",t.aliases=[]},95498:(e,r,n)=>{n.r(r),n.d(r,{default:()=>a});var t=n(24554);function a(e){e.register(t.default);for(var r=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,n=0;n<5;n++)r=r.replace(//g,function(){return r});r=r.replace(//g,/[^\s\S]/.source);var a=e.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return r}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:e.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,e.languages.ly=a}a.displayName="lilypond",a.aliases=["ly"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_linkerScript.e18e46ab44576c9c.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_linkerScript.e18e46ab44576c9c.js
    deleted file mode 100644
    index 7df2f438f..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_linkerScript.e18e46ab44576c9c.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5432],{97350:(e,n,a)=>{function t(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}a.r(n),a.d(n,{default:()=>t}),t.displayName="linker-script",t.aliases=["ld"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_liquid.9d6f9f6de9487412.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_liquid.9d6f9f6de9487412.js
    deleted file mode 100644
    index 3196322e5..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_liquid.9d6f9f6de9487412.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6403,7912],{23493:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var a=n(97769);function r(e){e.register(a.default),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,function(e){var t=/^\{%-?\s*(\w+)/.exec(e);if(t){var a=t[1];if("raw"===a&&!n)return n=!0,!0;if("endraw"===a)return n=!1,!0}return!n})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}r.displayName="liquid",r.aliases=[]},97769:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var a=n(83309);function r(e){e.register(a.default);function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,a,r,o){if(n.language===a){var i=n.tokenStack=[];n.code=n.code.replace(r,function(e){if("function"==typeof o&&!o(e))return e;for(var r,l=i.length;-1!==n.code.indexOf(r=t(a,l));)++l;return i[l]=e,r}),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,a){if(n.language===a&&n.tokenStack){n.grammar=e.languages[a];var r=0,o=Object.keys(n.tokenStack);!function i(l){for(var s=0;s=o.length);s++){var c=l[s];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=o[r],p=n.tokenStack[u],d="string"==typeof c?c:c.content,g=t(a,u),m=d.indexOf(g);if(m>-1){++r;var f=d.substring(0,m),_=new e.Token(a,e.tokenize(p,n.grammar),"language-"+a,p),k=d.substring(m+g.length),b=[];f&&b.push.apply(b,i([f])),b.push(_),k&&b.push.apply(b,i([k])),"string"==typeof c?l.splice.apply(l,[s,1].concat(b)):c.content=b}}else c.content&&i(c.content)}return l}(n.tokens)}}}})}r.displayName="markup-templating",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_lisp.85b8a37eccfca630.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_lisp.85b8a37eccfca630.js
    deleted file mode 100644
    index a07b59222..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_lisp.85b8a37eccfca630.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4916],{75833:(e,a,n)=>{function s(e){!function(e){function a(e){return RegExp(/(\()/.source+"(?:"+e+")"+/(?=[\s\)])/.source)}function n(e){return RegExp(/([\s([])/.source+"(?:"+e+")"+/(?=[\s)])/.source)}var s=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,r="&"+s,t="(\\()",o="(?=\\s)",i=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,l={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+s+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+s),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+s),alias:"property"},splice:{pattern:RegExp(",@?"+s),alias:["symbol","variable"]},keyword:[{pattern:RegExp(t+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+o),lookbehind:!0},{pattern:RegExp(t+"(?:append|by|collect|concat|do|finally|for|in|return)"+o),lookbehind:!0}],declare:{pattern:a(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:a(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:n(/nil|t/.source),lookbehind:!0},number:{pattern:n(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(t+"def(?:const|custom|group|var)\\s+"+s),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(s)}},defun:{pattern:RegExp(t+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+s+/\s+\(/.source+i+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+s),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(t+"lambda\\s+\\(\\s*(?:&?"+s+"(?:\\s+&?"+s+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(t+s),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},p={"lisp-marker":RegExp(r),varform:{pattern:RegExp(/\(/.source+s+/\s+(?=\S)/.source+i+/\)/.source),inside:l},argument:{pattern:RegExp(/(^|[\s(])/.source+s),lookbehind:!0,alias:"variable"},rest:l},u="\\S+(?:\\s+\\S+)*",d={pattern:RegExp(t+i+"(?=\\))"),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+u),inside:p},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+u),inside:p},keys:{pattern:RegExp("&key\\s+"+u+"(?:\\s+&allow-other-keys)?"),inside:p},argument:{pattern:RegExp(s),alias:"variable"},punctuation:/[()]/}};l.lambda.inside.arguments=d,l.defun.inside.arguments=e.util.clone(d),l.defun.inside.arguments.inside.sublist=d,e.languages.lisp=l,e.languages.elisp=l,e.languages.emacs=l,e.languages["emacs-lisp"]=l}(e)}n.r(a),n.d(a,{default:()=>s}),s.displayName="lisp",s.aliases=["elisp","emacs","emacs-lisp"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_livescript.b687bd3a3dc364e2.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_livescript.b687bd3a3dc364e2.js
    deleted file mode 100644
    index 301fb0027..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_livescript.b687bd3a3dc364e2.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2419],{22820:(e,t,n)=>{function i(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}n.r(t),n.d(t,{default:()=>i}),i.displayName="livescript",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_llvm.1de64a509815bc5e.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_llvm.1de64a509815bc5e.js
    deleted file mode 100644
    index 061973347..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_llvm.1de64a509815bc5e.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1239],{85484:(a,e,b)=>{function l(a){a.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}}b.r(e),b.d(e,{default:()=>l}),l.displayName="llvm",l.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_log.e960aa2b13400562.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_log.e960aa2b13400562.js
    deleted file mode 100644
    index 916017594..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_log.e960aa2b13400562.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6942],{76549:(a,t,e)=>{function n(a){a.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:a.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}e.r(t),e.d(t,{default:()=>n}),n.displayName="log",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_lolcode.f96887618c4f0782.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_lolcode.f96887618c4f0782.js
    deleted file mode 100644
    index ed91caf29..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_lolcode.f96887618c4f0782.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2778],{63277:(I,e,s)=>{function n(I){I.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}s.r(e),s.d(e,{default:()=>n}),n.displayName="lolcode",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_lua.821db3475c4af06f.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_lua.821db3475c4af06f.js
    deleted file mode 100644
    index f24329303..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_lua.821db3475c4af06f.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5578],{66933:(e,n,a)=>{function t(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}a.r(n),a.d(n,{default:()=>t}),t.displayName="lua",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_magma.370933a719541e90.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_magma.370933a719541e90.js
    deleted file mode 100644
    index 83dd9429d..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_magma.370933a719541e90.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4967],{63398:(e,r,n)=>{function t(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}n.r(r),n.d(r,{default:()=>t}),t.displayName="magma",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_makefile.a2238ff1d517761c.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_makefile.a2238ff1d517761c.js
    deleted file mode 100644
    index eb315a81d..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_makefile.a2238ff1d517761c.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9084],{35593:(e,i,a)=>{function n(e){e.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:/[:;(){}]/}}a.r(i),a.d(i,{default:()=>n}),n.displayName="makefile",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_markdown.364293f9e0184054.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_markdown.364293f9e0184054.js
    deleted file mode 100644
    index 1c95372df..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_markdown.364293f9e0184054.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9627],{17484:(n,e,t)=>{t.r(e),t.d(e,{default:()=>r});var a=t(83309);function r(n){n.register(a.default),function(n){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function t(n){return n=n.replace(//g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+n+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,r=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return a}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.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:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+r+i+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+i+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:n.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:t(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:t(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:t(/(~~?)(?:(?!~))+\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:t(/!?\[(?:(?!\]))+\](?:\([^\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){e!==t&&(n.languages.markdown[e].inside.content.inside[t]=n.languages.markdown[t])})}),n.hooks.add("after-tokenize",function(n){("markdown"===n.language||"md"===n.language)&&function n(e){if(e&&"string"!=typeof e)for(var t=0,a=e.length;t{t.r(n),t.d(n,{default:()=>r});var a=t(83309);function r(e){e.register(a.default);function n(e,n){return"___"+e.toUpperCase()+n+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,a,r,o){if(t.language===a){var u=t.tokenStack=[];t.code=t.code.replace(r,function(e){if("function"==typeof o&&!o(e))return e;for(var r,i=u.length;-1!==t.code.indexOf(r=n(a,i));)++i;return u[i]=e,r}),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,a){if(t.language===a&&t.tokenStack){t.grammar=e.languages[a];var r=0,o=Object.keys(t.tokenStack);!function u(i){for(var c=0;c=o.length);c++){var l=i[c];if("string"==typeof l||l.content&&"string"==typeof l.content){var s=o[r],g=t.tokenStack[s],p="string"==typeof l?l:l.content,f=n(a,s),k=p.indexOf(f);if(k>-1){++r;var d=p.substring(0,k),h=new e.Token(a,e.tokenize(g,t.grammar),"language-"+a,g),m=p.substring(k+f.length),v=[];d&&v.push.apply(v,u([d])),v.push(h),m&&v.push.apply(v,u([m])),"string"==typeof l?i.splice.apply(i,[c,1].concat(v)):l.content=v}}else l.content&&u(l.content)}return i}(t.tokens)}}}})}r.displayName="markup-templating",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_mata.4a6b0ebca0e429f4.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_mata.4a6b0ebca0e429f4.js
    deleted file mode 100644
    index 2958a6d96..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_mata.4a6b0ebca0e429f4.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3747],{5656:(e,t,a)=>{function s(e){var t,a;t=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,a=/\bvoid\b||\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*)?/.source.replace(//g,t),e.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(a),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}}a.r(t),a.d(t,{default:()=>s}),s.displayName="mata",s.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_matlab.27d836c59a179561.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_matlab.27d836c59a179561.js
    deleted file mode 100644
    index 40ba22512..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_matlab.27d836c59a179561.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5507],{19772:(e,a,n)=>{function t(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}n.r(a),n.d(a,{default:()=>t}),t.displayName="matlab",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_maxscript.47aa513aff88e584.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_maxscript.47aa513aff88e584.js
    deleted file mode 100644
    index fde4091fa..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_maxscript.47aa513aff88e584.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4559],{25286:(e,t,n)=>{function o(e){var t;t=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i,e.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source)+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source+")[ 	]*)(?!"+t.source+")"+/[a-z_]\w*\b/.source+"(?=[ 	]*(?:"+("(?!"+t.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source)+"|"+/[({'"$@#?]/.source+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:t,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}}n.r(t),n.d(t,{default:()=>o}),o.displayName="maxscript",o.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_mel.36d778aea31c46a0.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_mel.36d778aea31c46a0.js
    deleted file mode 100644
    index f6246c1c5..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_mel.36d778aea31c46a0.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5570],{85717:(e,t,a)=>{function n(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}a.r(t),a.d(t,{default:()=>n}),n.displayName="mel",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_mermaid.22fe049388110c5e.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_mermaid.22fe049388110c5e.js
    deleted file mode 100644
    index ac9262c0f..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_mermaid.22fe049388110c5e.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8169],{56380:(t,a,e)=>{function r(t){t.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}e.r(a),e.d(a,{default:()=>r}),r.displayName="mermaid",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_metafont.6943d3974e6b06a4.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_metafont.6943d3974e6b06a4.js
    deleted file mode 100644
    index 1dbb53f0b..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_metafont.6943d3974e6b06a4.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7384],{76881:(e,t,n)=>{function r(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}n.r(t),n.d(t,{default:()=>r}),r.displayName="metafont",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_mizar.def06c997505deca.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_mizar.def06c997505deca.js
    deleted file mode 100644
    index c550e8167..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_mizar.def06c997505deca.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7233],{57396:(e,t,i)=>{function s(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}i.r(t),i.d(t,{default:()=>s}),s.displayName="mizar",s.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_mongodb.0dbbcab0226a5f32.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_mongodb.0dbbcab0226a5f32.js
    deleted file mode 100644
    index 16a152352..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_mongodb.0dbbcab0226a5f32.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7046],{65153:(e,$,t)=>{t.r($),t.d($,{default:()=>n});var a=t(52622);function n(e){var $;e.register(a.default),$="(?:"+["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"].map(function(e){return e.replace("$","\\$")}).join("|")+")\\b",e.languages.mongodb=e.languages.extend("javascript",{}),e.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp("^(['\"])?"+$+"(?:\\1)?$")}}}),e.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},e.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:ObjectId|Code|BinData|DBRef|Timestamp|NumberLong|NumberDecimal|MaxKey|MinKey|RegExp|ISODate|UUID)\\b"),alias:"keyword"}})}n.displayName="mongodb",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_monkey.82aa4747f6efa11a.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_monkey.82aa4747f6efa11a.js
    deleted file mode 100644
    index 6c3710ab0..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_monkey.82aa4747f6efa11a.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7747],{21784:(e,t,n)=>{function r(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}n.r(t),n.d(t,{default:()=>r}),r.displayName="monkey",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_moonscript.3eb99a2b98bf3898.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_moonscript.3eb99a2b98bf3898.js
    deleted file mode 100644
    index b95007773..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_moonscript.3eb99a2b98bf3898.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3874],{56047:(e,t,a)=>{function n(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}a.r(t),a.d(t,{default:()=>n}),n.displayName="moonscript",n.aliases=["moon"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_n1ql.f4f7a7e004d5e0dc.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_n1ql.f4f7a7e004d5e0dc.js
    deleted file mode 100644
    index 5e07f6f44..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_n1ql.f4f7a7e004d5e0dc.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8628],{59689:(E,T,N)=>{function R(E){E.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}N.r(T),N.d(T,{default:()=>R}),R.displayName="n1ql",R.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_n4js.50a20aaad080ecb3.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_n4js.50a20aaad080ecb3.js
    deleted file mode 100644
    index 6a6813735..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_n4js.50a20aaad080ecb3.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6659],{86020:(e,t,a)=>{a.r(t),a.d(t,{default:()=>s});var n=a(52622);function s(e){e.register(n.default),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}s.displayName="n4js",s.aliases=["n4jsd"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nand2tetrisHdl.19d455c8a9f437aa.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nand2tetrisHdl.19d455c8a9f437aa.js
    deleted file mode 100644
    index d7de58d7f..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nand2tetrisHdl.19d455c8a9f437aa.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1550],{65940:(e,a,n)=>{function t(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}n.r(a),n.d(a,{default:()=>t}),t.displayName="nand2tetris-hdl",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_naniscript.2e235aed423918c3.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_naniscript.2e235aed423918c3.js
    deleted file mode 100644
    index 133ff24b9..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_naniscript.2e235aed423918c3.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8141],{26946:(a,e,n)=>{function t(a){var e,n;n={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:e=/\{[^\r\n\[\]{}]*\}/,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]},a.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:e,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:n}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:e,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:n},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},a.languages.nani=a.languages.naniscript,a.hooks.add("after-tokenize",function(a){a.tokens.forEach(function(a){if("string"!=typeof a&&"generic-text"===a.type){var e=function a(e){return"string"==typeof e?e:Array.isArray(e)?e.map(a).join(""):a(e.content)}(a);!function(a){for(var e=[],n=0;nt}),t.displayName="naniscript",t.aliases=["nani"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nasm.f8e7671e82af497b.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nasm.f8e7671e82af497b.js
    deleted file mode 100644
    index 4991b0998..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nasm.f8e7671e82af497b.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4715],{19448:(d,a,e)=>{function s(d){d.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}e.r(a),e.d(a,{default:()=>s}),s.displayName="nasm",s.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_neon.da3b95896083dbb3.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_neon.da3b95896083dbb3.js
    deleted file mode 100644
    index bd07d0c1d..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_neon.da3b95896083dbb3.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7696],{96057:(e,n,d)=>{function s(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}d.r(n),d.d(n,{default:()=>s}),s.displayName="neon",s.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nevod.10f687ec8b0cd8db.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nevod.10f687ec8b0cd8db.js
    deleted file mode 100644
    index 2fdb69a0f..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nevod.10f687ec8b0cd8db.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9558],{47293:(a,e,t)=>{function n(a){a.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}t.r(e),t.d(e,{default:()=>n}),n.displayName="nevod",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nginx.73eaaf367f9c2e46.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nginx.73eaaf367f9c2e46.js
    deleted file mode 100644
    index 59fd08fc7..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nginx.73eaaf367f9c2e46.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9548],{50515:(e,n,a)=>{function t(e){var n;n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i,e.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}}a.r(n),a.d(n,{default:()=>t}),t.displayName="nginx",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nim.40b2a85b7b5d1603.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nim.40b2a85b7b5d1603.js
    deleted file mode 100644
    index 9477f410e..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nim.40b2a85b7b5d1603.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6060],{82027:(e,t,n)=>{function r(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}n.r(t),n.d(t,{default:()=>r}),r.displayName="nim",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nix.c92e5359ac8c1329.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nix.c92e5359ac8c1329.js
    deleted file mode 100644
    index aa899b474..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nix.c92e5359ac8c1329.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8417],{77276:(t,e,n)=>{function i(t){t.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},t.languages.nix.string.inside.interpolation.inside=t.languages.nix}n.r(e),n.d(e,{default:()=>i}),i.displayName="nix",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nsis.235d6d5fcfdcaf3a.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nsis.235d6d5fcfdcaf3a.js
    deleted file mode 100644
    index b863f28ed..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_nsis.235d6d5fcfdcaf3a.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6277],{52270:(e,t,n)=>{function r(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}n.r(t),n.d(t,{default:()=>r}),r.displayName="nsis",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_objectivec.f9a7624ea391a517.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_objectivec.f9a7624ea391a517.js
    deleted file mode 100644
    index a165695d5..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_objectivec.f9a7624ea391a517.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3224,3539],{18793:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var a=n(72386);function r(e){e.register(a.default),e.languages.objectivec=e.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}r.displayName="objectivec",r.aliases=["objc"]},72386:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var a=n(22557);function r(e){e.register(a.default),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.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},e.languages.c.string],char:e.languages.c.char,comment:e.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:e.languages.c}}}}),e.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 e.languages.c.boolean}r.displayName="c",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ocaml.fc0af14fa90343d8.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ocaml.fc0af14fa90343d8.js
    deleted file mode 100644
    index a3898dde8..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ocaml.fc0af14fa90343d8.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[96],{23483:(e,a,t)=>{function n(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}t.r(a),t.d(a,{default:()=>n}),n.displayName="ocaml",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_odin.a05842fe184c37ca.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_odin.a05842fe184c37ca.js
    deleted file mode 100644
    index 750e3f1bb..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_odin.a05842fe184c37ca.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7440],{81217:(e,t,a)=>{function r(e){var t;t=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/,e.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:t}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:t}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}}a.r(t),a.d(t,{default:()=>r}),r.displayName="odin",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_opencl.b4bbf9bd4353a428.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_opencl.b4bbf9bd4353a428.js
    deleted file mode 100644
    index ccf3234e9..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_opencl.b4bbf9bd4353a428.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2957,3539],{72386:(E,_,e)=>{e.r(_),e.d(_,{default:()=>R});var I=e(22557);function R(E){E.register(I.default),E.languages.c=E.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),E.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),E.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},E.languages.c.string],char:E.languages.c.char,comment:E.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:E.languages.c}}}}),E.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 E.languages.c.boolean}R.displayName="c",R.aliases=[]},88274:(E,_,e)=>{e.r(_),e.d(_,{default:()=>R});var I=e(72386);function R(E){var _;E.register(I.default),E.languages.opencl=E.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),E.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}}),_={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}},E.languages.insertBefore("c","keyword",_),E.languages.cpp&&(_["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},E.languages.insertBefore("cpp","keyword",_))}R.displayName="opencl",R.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_openqasm.127d4c405b9dbf78.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_openqasm.127d4c405b9dbf78.js
    deleted file mode 100644
    index 4b1d488f0..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_openqasm.127d4c405b9dbf78.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7202],{10279:(e,n,t)=>{function a(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}t.r(n),t.d(n,{default:()=>a}),a.displayName="openqasm",a.aliases=["qasm"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_oz.80249748fc0d2031.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_oz.80249748fc0d2031.js
    deleted file mode 100644
    index caf1ed7f6..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_oz.80249748fc0d2031.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4983],{85552:(e,a,t)=>{function r(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}t.r(a),t.d(a,{default:()=>r}),r.displayName="oz",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_parigp.9a99266bd6608376.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_parigp.9a99266bd6608376.js
    deleted file mode 100644
    index 1a70f94e8..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_parigp.9a99266bd6608376.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9099],{42024:(r,e,o)=>{function n(r){r.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:RegExp("\\b(?:"+["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"].map(function(r){return r.split("").join(" *")}).join("|")+")\\b"),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}o.r(e),o.d(e,{default:()=>n}),n.displayName="parigp",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_parser.46bae8598947a006.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_parser.46bae8598947a006.js
    deleted file mode 100644
    index 718a4acbb..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_parser.46bae8598947a006.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2650],{95430:(e,a,n)=>{n.r(a),n.d(a,{default:()=>i});var t=n(83309);function i(e){var a;e.register(t.default),a=e.languages.parser=e.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/}),a=e.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:a.keyword,variable:a.variable,function:a.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:a.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:a.punctuation}}}),e.languages.insertBefore("inside","punctuation",{expression:a.expression,keyword:a.keyword,variable:a.variable,function:a.function,escape:a.escape,"parser-punctuation":{pattern:a.punctuation,alias:"punctuation"}},a.tag.inside["attr-value"])}i.displayName="parser",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_pascal.abd5f35e075c00a5.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_pascal.abd5f35e075c00a5.js
    deleted file mode 100644
    index f7c758b04..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_pascal.abd5f35e075c00a5.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[204],{39509:(e,a,r)=>{function t(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}r.r(a),r.d(a,{default:()=>t}),t.displayName="pascal",t.aliases=["objectpascal"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_pascaligo.8bd7c03ff1c193bf.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_pascaligo.8bd7c03ff1c193bf.js
    deleted file mode 100644
    index 5afb0d3ec..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_pascaligo.8bd7c03ff1c193bf.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7735],{84614:(e,n,t)=>{function i(e){var n,t,i,r;n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,t=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=e.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return t}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return t}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return t})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},r=["comment","keyword","builtin","operator","punctuation"].reduce(function(e,n){return e[n]=i[n],e},{}),i["class-name"].forEach(function(e){e.inside=r})}t.r(n),t.d(n,{default:()=>i}),i.displayName="pascaligo",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_pcaxis.6ae5bee04f821970.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_pcaxis.6ae5bee04f821970.js
    deleted file mode 100644
    index 168835663..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_pcaxis.6ae5bee04f821970.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5424],{49221:(e,s,n)=>{function t(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}n.r(s),n.d(s,{default:()=>t}),t.displayName="pcaxis",t.aliases=["px"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_peoplecode.87023c86e8424cb0.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_peoplecode.87023c86e8424cb0.js
    deleted file mode 100644
    index 3cc457f26..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_peoplecode.87023c86e8424cb0.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2310],{31699:(e,t,o)=>{function a(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}o.r(t),o.d(t,{default:()=>a}),a.displayName="peoplecode",a.aliases=["pcode"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_perl.72de3ea7c27ff12f.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_perl.72de3ea7c27ff12f.js
    deleted file mode 100644
    index 87fdf5f03..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_perl.72de3ea7c27ff12f.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2795],{80456:(e,r,s)=>{function a(e){var r;r=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source,e.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,r].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,r+/\s*/.source+r].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}}s.r(r),s.d(r,{default:()=>a}),a.displayName="perl",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_php.6f46e9fd30ca574c.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_php.6f46e9fd30ca574c.js
    deleted file mode 100644
    index 2fe7da7de..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_php.6f46e9fd30ca574c.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2208,6403],{12983:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var n=t(97769);function i(e){var a,t,i,s,r,l,o;e.register(n.default),a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,t=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,r=/[{}\[\](),:;]/,e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:s,punctuation:r},o=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:l={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php}}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:l}}],e.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:o,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,number:i,operator:s,punctuation:r}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(a){/<\?/.test(a.code)&&e.languages["markup-templating"].buildPlaceholders(a,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add("after-tokenize",function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"php")})}i.displayName="php",i.aliases=[]},97769:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var n=t(83309);function i(e){e.register(n.default);function a(e,a){return"___"+e.toUpperCase()+a+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,n,i,s){if(t.language===n){var r=t.tokenStack=[];t.code=t.code.replace(i,function(e){if("function"==typeof s&&!s(e))return e;for(var i,l=r.length;-1!==t.code.indexOf(i=a(n,l));)++l;return r[l]=e,i}),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,n){if(t.language===n&&t.tokenStack){t.grammar=e.languages[n];var i=0,s=Object.keys(t.tokenStack);!function r(l){for(var o=0;o=s.length);o++){var d=l[o];if("string"==typeof d||d.content&&"string"==typeof d.content){var c=s[i],b=t.tokenStack[c],p="string"==typeof d?d:d.content,u=a(n,c),f=p.indexOf(u);if(f>-1){++i;var g=p.substring(0,f),y=new e.Token(n,e.tokenize(b,t.grammar),"language-"+n,b),h=p.substring(f+u.length),m=[];g&&m.push.apply(m,r([g])),m.push(y),h&&m.push.apply(m,r([h])),"string"==typeof d?l.splice.apply(l,[o,1].concat(m)):d.content=m}}else d.content&&r(d.content)}return l}(t.tokens)}}}})}i.displayName="markup-templating",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_phpExtras.ffb2f48e64db9908.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_phpExtras.ffb2f48e64db9908.js
    deleted file mode 100644
    index 0c5868d54..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_phpExtras.ffb2f48e64db9908.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2208,6403,7645],{12983:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var n=t(97769);function i(e){var a,t,i,s,r,l,o;e.register(n.default),a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,t=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,r=/[{}\[\](),:;]/,e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:s,punctuation:r},o=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:l={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php}}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:l}}],e.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:o,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,number:i,operator:s,punctuation:r}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(a){/<\?/.test(a.code)&&e.languages["markup-templating"].buildPlaceholders(a,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add("after-tokenize",function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"php")})}i.displayName="php",i.aliases=[]},85349:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var n=t(12983);function i(e){e.register(n.default),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}i.displayName="php-extras",i.aliases=[]},97769:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var n=t(83309);function i(e){e.register(n.default);function a(e,a){return"___"+e.toUpperCase()+a+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,n,i,s){if(t.language===n){var r=t.tokenStack=[];t.code=t.code.replace(i,function(e){if("function"==typeof s&&!s(e))return e;for(var i,l=r.length;-1!==t.code.indexOf(i=a(n,l));)++l;return r[l]=e,i}),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,n){if(t.language===n&&t.tokenStack){t.grammar=e.languages[n];var i=0,s=Object.keys(t.tokenStack);!function r(l){for(var o=0;o=s.length);o++){var d=l[o];if("string"==typeof d||d.content&&"string"==typeof d.content){var p=s[i],c=t.tokenStack[p],b="string"==typeof d?d:d.content,u=a(n,p),f=b.indexOf(u);if(f>-1){++i;var g=b.substring(0,f),y=new e.Token(n,e.tokenize(c,t.grammar),"language-"+n,c),h=b.substring(f+u.length),m=[];g&&m.push.apply(m,r([g])),m.push(y),h&&m.push.apply(m,r([h])),"string"==typeof d?l.splice.apply(l,[o,1].concat(m)):d.content=m}}else d.content&&r(d.content)}return l}(t.tokens)}}}})}i.displayName="markup-templating",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_phpdoc.74f72f3508f233d9.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_phpdoc.74f72f3508f233d9.js
    deleted file mode 100644
    index 6d9139438..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_phpdoc.74f72f3508f233d9.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2208,5655,6403,8874],{9358:(e,a,t)=>{function n(e){var a;Object.defineProperty(a=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/},"addSupport",{value:function(a,t){"string"==typeof a&&(a=[a]),a.forEach(function(a){!function(a,t){var n="doc-comment",i=e.languages[a];if(i){var s=i[n];if(!s){var r={};r[n]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},s=(i=e.languages.insertBefore(a,"comment",r))[n]}if(s instanceof RegExp&&(s=i[n]={pattern:s}),Array.isArray(s))for(var l=0,o=s.length;ln}),n.displayName="javadoclike",n.aliases=[]},12983:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var n=t(97769);function i(e){var a,t,i,s,r,l,o;e.register(n.default),a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,t=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,r=/[{}\[\](),:;]/,e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:s,punctuation:r},o=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:l={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php}}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:l}}],e.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:o,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:t,number:i,operator:s,punctuation:r}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(a){/<\?/.test(a.code)&&e.languages["markup-templating"].buildPlaceholders(a,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add("after-tokenize",function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"php")})}i.displayName="php",i.aliases=[]},32487:(e,a,t)=>{t.r(a),t.d(a,{default:()=>s});var n=t(9358),i=t(12983);function s(e){var a;e.register(n.default),e.register(i.default),a=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source,e.languages.phpdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+a+"\\s+)?)\\$\\w+"),lookbehind:!0}}),e.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+a),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),e.languages.javadoclike.addSupport("php",e.languages.phpdoc)}s.displayName="phpdoc",s.aliases=[]},97769:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i});var n=t(83309);function i(e){e.register(n.default);function a(e,a){return"___"+e.toUpperCase()+a+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,n,i,s){if(t.language===n){var r=t.tokenStack=[];t.code=t.code.replace(i,function(e){if("function"==typeof s&&!s(e))return e;for(var i,l=r.length;-1!==t.code.indexOf(i=a(n,l));)++l;return r[l]=e,i}),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,n){if(t.language===n&&t.tokenStack){t.grammar=e.languages[n];var i=0,s=Object.keys(t.tokenStack);!function r(l){for(var o=0;o=s.length);o++){var d=l[o];if("string"==typeof d||d.content&&"string"==typeof d.content){var p=s[i],c=t.tokenStack[p],u="string"==typeof d?d:d.content,b=a(n,p),g=u.indexOf(b);if(g>-1){++i;var f=u.substring(0,g),y=new e.Token(n,e.tokenize(c,t.grammar),"language-"+n,c),m=u.substring(g+b.length),h=[];f&&h.push.apply(h,r([f])),h.push(y),m&&h.push.apply(h,r([m])),"string"==typeof d?l.splice.apply(l,[o,1].concat(h)):d.content=h}}else d.content&&r(d.content)}return l}(t.tokens)}}}})}i.displayName="markup-templating",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_plantUml.41534de67ab29c97.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_plantUml.41534de67ab29c97.js
    deleted file mode 100644
    index f134d1b48..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_plantUml.41534de67ab29c97.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1019],{41433:(e,a,t)=>{function r(e){var a,t,r,n,o,s,i;a=/\$\w+|%[a-z]+%/,n="(?:-+"+(r=/(?:[drlu]|do|down|le|left|ri|right|up)/.source)+"-+|\\.+"+r+"\\.+|-+(?:"+(t=/\[[^[\]]*\]/.source)+"-*)?|"+t+"-+|\\.+(?:"+t+"\\.*)?|"+t+"\\.+)",o=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,s=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,i=/[[?]?[ox]?/.source+"(?:"+n+s+"|"+o+n+"(?:"+s+")?)"+/[ox]?[\]?]?/.source,e.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:a}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+i+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:a,punctuation:/[:,;()[\]{}]|\.{3}/},e.languages["plant-uml"].arrow.inside.expression.inside=e.languages["plant-uml"],e.languages.plantuml=e.languages["plant-uml"]}t.r(a),t.d(a,{default:()=>r}),r.displayName="plant-uml",r.aliases=["plantuml"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_plsql.a0005e1656a02bef.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_plsql.a0005e1656a02bef.js
    deleted file mode 100644
    index ddcc1d574..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_plsql.a0005e1656a02bef.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4572,8584],{45287:(E,T,I)=>{I.r(T),I.d(T,{default:()=>R});var A=I(59131);function R(E){E.register(A.default),E.languages.plsql=E.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),E.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}R.displayName="plsql",R.aliases=[]},59131:(E,T,I)=>{function A(E){E.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:/[;[\]()`,.]/}}I.r(T),I.d(T,{default:()=>A}),A.displayName="sql",A.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_powerquery.b22e3b266c69a61c.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_powerquery.b22e3b266c69a61c.js
    deleted file mode 100644
    index 1eaa2626e..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_powerquery.b22e3b266c69a61c.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4469],{17330:(e,n,t)=>{function a(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}t.r(n),t.d(n,{default:()=>a}),a.displayName="powerquery",a.aliases=["mscript","pq"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_powershell.aa861420f4e8a841.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_powershell.aa861420f4e8a841.js
    deleted file mode 100644
    index 3e9ee8d3e..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_powershell.aa861420f4e8a841.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1719],{25132:(e,i,r)=>{function t(e){var i;(i=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/}).string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:i},boolean:i.boolean,variable:i.variable}}r.r(i),r.d(i,{default:()=>t}),t.displayName="powershell",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_processing.8e279447da7d3075.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_processing.8e279447da7d3075.js
    deleted file mode 100644
    index 3e1e341d0..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_processing.8e279447da7d3075.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4753],{70234:(e,s,a)=>{a.r(s),a.d(s,{default:()=>n});var t=a(22557);function n(e){e.register(t.default),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}n.displayName="processing",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_prolog.cf52e5831c040499.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_prolog.cf52e5831c040499.js
    deleted file mode 100644
    index eff4de5ec..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_prolog.cf52e5831c040499.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4649],{8938:(e,n,t)=>{function r(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}t.r(n),t.d(n,{default:()=>r}),r.displayName="prolog",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_promql.965007c08f8bb248.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_promql.965007c08f8bb248.js
    deleted file mode 100644
    index 782115088..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_promql.965007c08f8bb248.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3909],{86978:(t,a,e)=>{function n(t){var a,e;e=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"].concat(a=["on","ignoring","group_right","group_left","by","without"],["offset"]),t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:RegExp("((?:"+a.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:RegExp("\\b(?:"+e.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}}e.r(a),e.d(a,{default:()=>n}),n.displayName="promql",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_properties.61a1cf8cc1745e1a.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_properties.61a1cf8cc1745e1a.js
    deleted file mode 100644
    index 7c8af1300..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_properties.61a1cf8cc1745e1a.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5559],{43560:(a,e,t)=>{function s(a){a.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}t.r(e),t.d(e,{default:()=>s}),s.displayName="properties",s.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_protobuf.51b5ab2fd806b9d3.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_protobuf.51b5ab2fd806b9d3.js
    deleted file mode 100644
    index 4184ad555..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_protobuf.51b5ab2fd806b9d3.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7261],{98994:(e,s,a)=>{a.r(s),a.d(s,{default:()=>t});var n=a(22557);function t(e){var s;e.register(n.default),s=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/,e.languages.protobuf=e.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),e.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:s}},builtin:s,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}t.displayName="protobuf",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_psl.52e5fce240d66a0d.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_psl.52e5fce240d66a0d.js
    deleted file mode 100644
    index a5cff065a..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_psl.52e5fce240d66a0d.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8565],{14780:(e,t,_)=>{function n(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}_.r(t),_.d(t,{default:()=>n}),n.displayName="psl",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_pug.bd2d6605e1f4891d.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_pug.bd2d6605e1f4891d.js
    deleted file mode 100644
    index 519c65c70..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_pug.bd2d6605e1f4891d.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2272],{88359:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var n=a(52622),i=a(83309);function r(e){e.register(n.default),e.register(i.default),function(e){e.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:e.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:e.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:e.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:e.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:e.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:e.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:e.languages.javascript}],punctuation:/[.\-!=|]+/};for(var t=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,a=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],n={},i=0,r=a.length;i",function(){return s.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:e.languages[s.language]}}})}e.languages.insertBefore("pug","filter",n)}(e)}r.displayName="pug",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_puppet.14c0d534dc1821ec.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_puppet.14c0d534dc1821ec.js
    deleted file mode 100644
    index 652dfd7fb..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_puppet.14c0d534dc1821ec.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6314],{98155:(e,n,t)=>{function a(e){var n;e.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/},n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:e.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}],e.languages.puppet.heredoc[0].inside.interpolation=n,e.languages.puppet.string.inside["double-quoted"].inside.interpolation=n}t.r(n),t.d(n,{default:()=>a}),a.displayName="puppet",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_pure.e10f685f5b4e5aa8.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_pure.e10f685f5b4e5aa8.js
    deleted file mode 100644
    index 00fb430c8..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_pure.e10f685f5b4e5aa8.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3146],{8323:(e,t,a)=>{function r(e){var t;e.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/},t=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source,["c",{lang:"c++",alias:"cpp"},"fortran"].forEach(function(a){var r=a;if("string"!=typeof a&&(r=a.alias,a=a.lang),e.languages[r]){var i={};i["inline-lang-"+r]={pattern:RegExp(t.replace("",a.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:e.util.clone(e.languages.pure["inline-lang"].inside)},i["inline-lang-"+r].inside.rest=e.util.clone(e.languages[r]),e.languages.insertBefore("pure","inline-lang",i)}}),e.languages.c&&(e.languages.pure["inline-lang"].inside.rest=e.util.clone(e.languages.c))}a.r(t),a.d(t,{default:()=>r}),r.displayName="pure",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_purebasic.1018552c3eece90a.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_purebasic.1018552c3eece90a.js
    deleted file mode 100644
    index 719139323..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_purebasic.1018552c3eece90a.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8884],{47555:(e,a,r)=>{r.r(a),r.d(a,{default:()=>l});var d=r(22557);function l(e){e.register(d.default),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}l.displayName="purebasic",l.aliases=["pbfasm"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_purescript.ca318dfc3bc32a70.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_purescript.ca318dfc3bc32a70.js
    deleted file mode 100644
    index 6e6a4bb26..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_purescript.ca318dfc3bc32a70.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8407,8524],{35935:(u,e,a)=>{function i(u){u.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},u.languages.hs=u.languages.haskell}a.r(e),a.d(e,{default:()=>i}),i.displayName="haskell",i.aliases=["hs"]},47696:(u,e,a)=>{a.r(e),a.d(e,{default:()=>t});var i=a(35935);function t(u){u.register(i.default),u.languages.purescript=u.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[u.languages.haskell.operator[0],u.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),u.languages.purs=u.languages.purescript}t.displayName="purescript",t.aliases=["purs"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_q.b736bf4b7070e9c5.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_q.b736bf4b7070e9c5.js
    deleted file mode 100644
    index 26a09ad8d..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_q.b736bf4b7070e9c5.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6641],{56004:(e,t,r)=>{function s(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}r.r(t),r.d(t,{default:()=>s}),s.displayName="q",s.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_qml.8984fc112663eb4c.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_qml.8984fc112663eb4c.js
    deleted file mode 100644
    index 2dbc25d3b..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_qml.8984fc112663eb4c.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6814],{85369:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n=t(52622);function a(e){e.register(n.default);for(var r=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,t=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,a=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return r}).replace(//g,function(){return t}),s=0;s<2;s++)a=a.replace(//g,function(){return a});a=a.replace(//g,"[^\\s\\S]"),e.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:e.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:e.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}a.displayName="qml",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_qore.fdf7794372bddfae.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_qore.fdf7794372bddfae.js
    deleted file mode 100644
    index 54a0bfe5a..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_qore.fdf7794372bddfae.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6503],{54360:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var a=n(22557);function r(e){e.register(a.default),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}r.displayName="qore",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_qsharp.42f279d8af75756e.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_qsharp.42f279d8af75756e.js
    deleted file mode 100644
    index a7384e943..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_qsharp.42f279d8af75756e.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[587],{81348:(e,n,r)=>{r.r(n),r.d(n,{default:()=>t});var a=r(22557);function t(e){e.register(a.default),function(e){function n(e,n){return e.replace(/<<(\d+)>>/g,function(e,r){return"(?:"+n[+r]+")"})}function r(e,r,a){return RegExp(n(e,r),a||"")}var a=RegExp("\\b(?:"+"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within".trim().replace(/ /g,"|")+")\\b"),t=/\b[A-Za-z_]\w*\b/.source,s=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[t]),i={keyword:a,punctuation:/[<>()?,.:[\]]/},o=/"(?:\\.|[^\\"])*"/.source;e.languages.qsharp=e.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[o]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[s]),lookbehind:!0,inside:i},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[s]),lookbehind:!0,inside:i}],keyword:a,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),e.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var u=function(e,n){for(var r=0;r<2;r++)e=e.replace(/<>/g,function(){return"(?:"+e+")"});return e.replace(/<>/g,"[^\\s\\S]")}(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[o]),0);e.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[u]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[u]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:e.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}t.displayName="qsharp",t.aliases=["qs"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_r.fe598dee48eafa68.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_r.fe598dee48eafa68.js
    deleted file mode 100644
    index cf18757fa..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_r.fe598dee48eafa68.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9450],{91533:(e,a,r)=>{function n(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}r.r(a),r.d(a,{default:()=>n}),n.displayName="r",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_racket.cb6d83488db0e121.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_racket.cb6d83488db0e121.js
    deleted file mode 100644
    index c98255c47..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_racket.cb6d83488db0e121.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[925,5254],{491:(e,r,a)=>{a.r(r),a.d(r,{default:()=>n});var t=a(24554);function n(e){e.register(t.default),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}n.displayName="racket",n.aliases=["rkt"]},24554:(e,r,a)=>{function t(e){e.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(function(e){for(var r in e)e[r]=e[r].replace(/<[\w\s]+>/g,function(r){return"(?:"+e[r].trim()+")"});return e[r]}({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/}}a.r(r),a.d(r,{default:()=>t}),t.displayName="scheme",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_reason.267cdc7e8113fc8f.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_reason.267cdc7e8113fc8f.js
    deleted file mode 100644
    index 1bb03ddc8..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_reason.267cdc7e8113fc8f.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9340],{905:(e,n,a)=>{a.r(n),a.d(n,{default:()=>t});var r=a(22557);function t(e){e.register(r.default),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}t.displayName="reason",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_regex.71c89c47e6c9ecda.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_regex.71c89c47e6c9ecda.js
    deleted file mode 100644
    index 9e8031c17..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_regex.71c89c47e6c9ecda.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4165],{82480:(a,e,n)=>{function t(a){var e,n,t,s,i;e={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},s=RegExp((t="(?:[^\\\\-]|"+(n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")")+"-"+t),i={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},a.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:s,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":e,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":e,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":i}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|t}),t.displayName="regex",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_rego.f3d2cd5715a8074d.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_rego.f3d2cd5715a8074d.js
    deleted file mode 100644
    index 62c4f1eb8..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_rego.f3d2cd5715a8074d.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7765],{44850:(e,a,n)=>{function t(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}n.r(a),n.d(a,{default:()=>t}),t.displayName="rego",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_renpy.38bc864fe8abdf18.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_renpy.38bc864fe8abdf18.js
    deleted file mode 100644
    index 7e5228a0b..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_renpy.38bc864fe8abdf18.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1406],{21137:(e,t,i)=>{function n(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}i.r(t),i.d(t,{default:()=>n}),n.displayName="renpy",n.aliases=["rpy"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_rescript.f56434aa1227525e.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_rescript.f56434aa1227525e.js
    deleted file mode 100644
    index 3b8b377ba..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_rescript.f56434aa1227525e.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8922],{64207:(e,t,n)=>{function a(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}n.r(t),n.d(t,{default:()=>a}),a.displayName="rescript",a.aliases=["res"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_rest.1b29dcae8eefff05.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_rest.1b29dcae8eefff05.js
    deleted file mode 100644
    index 2409b47cb..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_rest.1b29dcae8eefff05.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4226],{13139:(t,n,i)=>{function a(t){t.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}i.r(n),i.d(n,{default:()=>a}),a.displayName="rest",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_rip.6a4cc1e708c662d5.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_rip.6a4cc1e708c662d5.js
    deleted file mode 100644
    index b25bfbba8..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_rip.6a4cc1e708c662d5.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2269],{72560:(e,d,r)=>{function t(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}r.r(d),r.d(d,{default:()=>t}),t.displayName="rip",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_roboconf.6c19bc17fdf36dfa.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_roboconf.6c19bc17fdf36dfa.js
    deleted file mode 100644
    index 0183a0b29..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_roboconf.6c19bc17fdf36dfa.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3750],{87015:(a,t,e)=>{function o(a){a.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}e.r(t),e.d(t,{default:()=>o}),o.displayName="roboconf",o.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_robotframework.b6686eee66ab3d18.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_robotframework.b6686eee66ab3d18.js
    deleted file mode 100644
    index 892bbc314..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_robotframework.b6686eee66ab3d18.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2824],{33353:(t,e,n)=>{function a(t){!function(t){var e={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},n={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function a(t,a){var r={};for(var o in r["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"},a)r[o]=a[o];return r.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},r.variable=n,r.comment=e,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return t}),"im"),alias:"section",inside:r}}var r={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},o={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:n}},i={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:n}};t.languages.robotframework={settings:a("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:a("Variables"),"test-cases":a("Test Cases",{"test-name":o,documentation:r,property:i}),keywords:a("Keywords",{"keyword-name":o,documentation:r,property:i}),tasks:a("Tasks",{"task-name":o,documentation:r,property:i}),comment:e},t.languages.robot=t.languages.robotframework}(t)}n.r(e),n.d(e,{default:()=>a}),a.displayName="robotframework",a.aliases=["robot"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ruby.9b9c4d7588efa2d4.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ruby.9b9c4d7588efa2d4.js
    deleted file mode 100644
    index 6e75ae56a..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_ruby.9b9c4d7588efa2d4.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3440],{54021:(e,n,r)=>{r.r(n),r.d(n,{default:()=>i});var t=r(22557);function i(e){var n,r,i;e.register(t.default),e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}},delete e.languages.ruby.function,r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source,e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}i.displayName="ruby",i.aliases=["rb"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_rust.734dded32835b3fc.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_rust.734dded32835b3fc.js
    deleted file mode 100644
    index e8652812a..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_rust.734dded32835b3fc.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2674],{57507:(e,a,t)=>{function n(e){for(var a=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,t=0;t<2;t++)a=a.replace(//g,function(){return a});a=a.replace(//g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+a),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}t.r(a),t.d(a,{default:()=>n}),n.displayName="rust",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_sas.514a0db3475d131e.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_sas.514a0db3475d131e.js
    deleted file mode 100644
    index d231b91a1..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_sas.514a0db3475d131e.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2331],{53605:(e,t,a)=>{function n(e){var t,a,n,i,s,r,o,l,c,u,d,p,m,b,g,k,y,w;t=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,n={pattern:RegExp(t+"[bx]"),alias:"number"},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},r={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},o=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],d={function:u={pattern:/%?\b\w+(?=\()/,alias:"keyword"},"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":i={pattern:/&[a-z_]\w*/i},arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":n,punctuation:c=/[$%@.(){}\[\];,\\]/,string:l={pattern:RegExp(t),greedy:!0}},p={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},m={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},b={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},g={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},k=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,y={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return k}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return k}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:o,function:u,"arg-value":d["arg-value"],operator:d.operator,argument:d.arg,number:a,"numeric-constant":n,punctuation:c,string:l}},w={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0},e.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return t}),"im"),alias:"language-sql",inside:e.languages.sql},"global-statements":b,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":n,punctuation:c,string:l}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:o,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return t}),"im"),lookbehind:!0,alias:"language-groovy",inside:e.languages.groovy},keyword:w,"submit-statement":g,"global-statements":b,number:a,"numeric-constant":n,punctuation:c,string:l}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:o,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return t}),"im"),lookbehind:!0,alias:"language-lua",inside:e.languages.lua},keyword:w,"submit-statement":g,"global-statements":b,number:a,"numeric-constant":n,punctuation:c,string:l}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:o,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:d}},"cas-actions":y,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:d},step:r,keyword:w,function:u,format:p,altformat:m,"global-statements":b,number:a,"numeric-constant":n,punctuation:c,string:l}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return t}),"im"),lookbehind:!0,inside:d},"macro-keyword":s,"macro-variable":i,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":i,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:c}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:o,number:a,"numeric-constant":n}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:d},"cas-actions":y,comment:o,function:u,format:p,altformat:m,"numeric-constant":n,datetime:{pattern:RegExp(t+"(?:dt?|t)"),alias:"number"},string:l,step:r,keyword:w,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:c}}a.r(t),a.d(t,{default:()=>n}),n.displayName="sas",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_sass.440d40b753cf03f1.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_sass.440d40b753cf03f1.js
    deleted file mode 100644
    index 5f4aa6a7c..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_sass.440d40b753cf03f1.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3533,6458],{23740:(e,s,t)=>{function a(e){var s,t;s=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+s.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\\((?:"+s.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+s.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+s.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:s,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:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,(t=e.languages.markup)&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}t.r(s),t.d(s,{default:()=>a}),a.displayName="css",a.aliases=[]},39967:(e,s,t)=>{t.r(s),t.d(s,{default:()=>r});var a=t(23740);function r(e){var s,t;e.register(a.default),e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule,s=/\$[-\w]+|#\{\$[-\w]+\}/,t=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:s,operator:t}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:s,operator:t,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.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}})}r.displayName="sass",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_scala.6da2728afcaa1b69.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_scala.6da2728afcaa1b69.js
    deleted file mode 100644
    index 2cbb478dd..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_scala.6da2728afcaa1b69.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2168,2266],{12837:(e,a,t)=>{t.r(a),t.d(a,{default:()=>s});var n=t(22557);function s(e){var a,t,s;e.register(n.default),a=/\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/,t=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,s={pattern:RegExp(/(^|[^\w.])/.source+t+/[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:/\./}},e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[s,{pattern:RegExp(/(^|[^\w.])/.source+t+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:s.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+t+/[A-Z]\w*\b/.source),lookbehind:!0,inside:s.inside}],keyword:a,function:[e.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/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.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":s,keyword:a,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+t+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:s.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+t+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:s.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 a.source})),lookbehind:!0,inside:{punctuation:/\./}}})}s.displayName="java",s.aliases=[]},77009:(e,a,t)=>{t.r(a),t.d(a,{default:()=>s});var n=t(12837);function s(e){e.register(n.default),e.languages.scala=e.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}s.displayName="scala",s.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_scheme.45ad3a6e4bf29239.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_scheme.45ad3a6e4bf29239.js
    deleted file mode 100644
    index 4344f9e26..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_scheme.45ad3a6e4bf29239.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[925],{24554:(e,r,t)=>{function a(e){e.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(function(e){for(var r in e)e[r]=e[r].replace(/<[\w\s]+>/g,function(r){return"(?:"+e[r].trim()+")"});return e[r]}({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/}}t.r(r),t.d(r,{default:()=>a}),a.displayName="scheme",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_scss.75ba1167747ec8ff.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_scss.75ba1167747ec8ff.js
    deleted file mode 100644
    index 7ba23d185..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_scss.75ba1167747ec8ff.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3533,9196],{23740:(e,s,a)=>{function t(e){var s,a;s=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+s.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\\((?:"+s.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+s.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+s.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:s,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:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,(a=e.languages.markup)&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))}a.r(s),a.d(s,{default:()=>t}),t.displayName="css",t.aliases=[]},88449:(e,s,a)=>{a.r(s),a.d(s,{default:()=>r});var t=a(23740);function r(e){e.register(t.default),e.languages.scss=e.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]+\}/}}}),e.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}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.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}}),e.languages.scss.atrule.inside.rest=e.languages.scss}r.displayName="scss",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_shellSession.bb55832a8415d286.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_shellSession.bb55832a8415d286.js
    deleted file mode 100644
    index 8094aa66e..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_shellSession.bb55832a8415d286.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3514,6514],{11568:(e,s,a)=>{a.r(s),a.d(s,{default:()=>t});var n=a(55731);function t(e){var s;e.register(n.default),s=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|"),e.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return s}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:e.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},e.languages["sh-session"]=e.languages.shellsession=e.languages["shell-session"]}t.displayName="shell-session",t.aliases=["sh-session","shellsession"]},55731:(e,s,a)=>{function n(e){!function(e){var s="\\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",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:a,environment:{pattern:RegExp("\\$"+s),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("(\\{)"+s),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})/};e.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;|&]|[<>]\\()"+s),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:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+s),alias:"constant"},variable:n.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}},a.inside=e.languages.bash;for(var t=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],r=n.variable[1].inside,o=0;on}),n.displayName="bash",n.aliases=["sh","shell"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_smali.60f9a8bdb49fb2a4.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_smali.60f9a8bdb49fb2a4.js
    deleted file mode 100644
    index a40a5a7c3..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_smali.60f9a8bdb49fb2a4.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9536],{10167:(e,n,t)=>{function a(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}t.r(n),t.d(n,{default:()=>a}),a.displayName="smali",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_smalltalk.9349b88d7cf70cea.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_smalltalk.9349b88d7cf70cea.js
    deleted file mode 100644
    index a020c6ad0..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_smalltalk.9349b88d7cf70cea.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1191],{2574:(e,a,t)=>{function n(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}t.r(a),t.d(a,{default:()=>n}),n.displayName="smalltalk",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_smarty.b8005b12f2b4090f.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_smarty.b8005b12f2b4090f.js
    deleted file mode 100644
    index cbdc4d242..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_smarty.b8005b12f2b4090f.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2336,6403],{95305:(e,n,t)=>{t.r(n),t.d(n,{default:()=>r});var a=t(97769);function r(e){var n,t;e.register(a.default),e.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:e.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},e.languages.smarty["embedded-php"].inside.smarty.inside=e.languages.smarty,e.languages.smarty.string[0].inside.interpolation.inside.expression.inside=e.languages.smarty,n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,t=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g"),e.hooks.add("before-tokenize",function(n){var a=!1;e.languages["markup-templating"].buildPlaceholders(n,"smarty",t,function(e){return"{/literal}"===e&&(a=!1),!a&&("{literal}"===e&&(a=!0),!0)})}),e.hooks.add("after-tokenize",function(n){e.languages["markup-templating"].tokenizePlaceholders(n,"smarty")})}r.displayName="smarty",r.aliases=[]},97769:(e,n,t)=>{t.r(n),t.d(n,{default:()=>r});var a=t(83309);function r(e){e.register(a.default);function n(e,n){return"___"+e.toUpperCase()+n+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,a,r,i){if(t.language===a){var s=t.tokenStack=[];t.code=t.code.replace(r,function(e){if("function"==typeof i&&!i(e))return e;for(var r,o=s.length;-1!==t.code.indexOf(r=n(a,o));)++o;return s[o]=e,r}),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,a){if(t.language===a&&t.tokenStack){t.grammar=e.languages[a];var r=0,i=Object.keys(t.tokenStack);!function s(o){for(var p=0;p=i.length);p++){var l=o[p];if("string"==typeof l||l.content&&"string"==typeof l.content){var u=i[r],d=t.tokenStack[u],g="string"==typeof l?l:l.content,c=n(a,u),f=g.indexOf(c);if(f>-1){++r;var m=g.substring(0,f),b=new e.Token(a,e.tokenize(d,t.grammar),"language-"+a,d),k=g.substring(f+c.length),h=[];m&&h.push.apply(h,s([m])),h.push(b),k&&h.push.apply(h,s([k])),"string"==typeof l?o.splice.apply(o,[p,1].concat(h)):l.content=h}}else l.content&&s(l.content)}return o}(t.tokens)}}}})}r.displayName="markup-templating",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_sml.52fb4b22f620c131.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_sml.52fb4b22f620c131.js
    deleted file mode 100644
    index efbdf9fe5..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_sml.52fb4b22f620c131.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7880],{78463:(e,n,a)=>{function s(e){var n;n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i,e.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},e.languages.sml["class-name"][0].inside=e.languages.sml,e.languages.smlnj=e.languages.sml}a.r(n),a.d(n,{default:()=>s}),s.displayName="sml",s.aliases=["smlnj"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_solidity.44bae97650333c26.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_solidity.44bae97650333c26.js
    deleted file mode 100644
    index 1a28eb43e..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_solidity.44bae97650333c26.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5779],{59556:(e,t,a)=>{a.r(t),a.d(t,{default:()=>s});var i=a(22557);function s(e){e.register(i.default),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}s.displayName="solidity",s.aliases=["sol"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_solutionFile.bb0b3a69ed3774c0.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_solutionFile.bb0b3a69ed3774c0.js
    deleted file mode 100644
    index 84bf1d999..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_solutionFile.bb0b3a69ed3774c0.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7419],{1475:(n,e,a)=>{function t(n){var e;e={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}},n.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:e}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:e}},guid:e,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},n.languages.sln=n.languages["solution-file"]}a.r(e),a.d(e,{default:()=>t}),t.displayName="solution-file",t.aliases=["sln"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_soy.2c9a0daafb7a8af9.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_soy.2c9a0daafb7a8af9.js
    deleted file mode 100644
    index af32e6f90..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_soy.2c9a0daafb7a8af9.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3563,6403],{16318:(e,a,t)=>{t.r(a),t.d(a,{default:()=>r});var n=t(97769);function r(e){var a,t;e.register(n.default),a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,t=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/,e.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:t,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:t,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},e.hooks.add("before-tokenize",function(a){var t=!1;e.languages["markup-templating"].buildPlaceholders(a,"soy",/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,function(e){return"{/literal}"===e&&(t=!1),!t&&("{literal}"===e&&(t=!0),!0)})}),e.hooks.add("after-tokenize",function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"soy")})}r.displayName="soy",r.aliases=[]},97769:(e,a,t)=>{t.r(a),t.d(a,{default:()=>r});var n=t(83309);function r(e){e.register(n.default);function a(e,a){return"___"+e.toUpperCase()+a+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,n,r,l){if(t.language===n){var i=t.tokenStack=[];t.code=t.code.replace(r,function(e){if("function"==typeof l&&!l(e))return e;for(var r,o=i.length;-1!==t.code.indexOf(r=a(n,o));)++o;return i[o]=e,r}),t.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(t,n){if(t.language===n&&t.tokenStack){t.grammar=e.languages[n];var r=0,l=Object.keys(t.tokenStack);!function i(o){for(var s=0;s=l.length);s++){var u=o[s];if("string"==typeof u||u.content&&"string"==typeof u.content){var p=l[r],c=t.tokenStack[p],d="string"==typeof u?u:u.content,g=a(n,p),f=d.indexOf(g);if(f>-1){++r;var m=d.substring(0,f),k=new e.Token(n,e.tokenize(c,t.grammar),"language-"+n,c),b=d.substring(f+g.length),h=[];m&&h.push.apply(h,i([m])),h.push(k),b&&h.push.apply(h,i([b])),"string"==typeof u?o.splice.apply(o,[s,1].concat(h)):u.content=h}}else u.content&&i(u.content)}return o}(t.tokens)}}}})}r.displayName="markup-templating",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_sparql.a05ba62f8f2e2083.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_sparql.a05ba62f8f2e2083.js
    deleted file mode 100644
    index cb1e17201..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_sparql.a05ba62f8f2e2083.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[206,9523],{14428:(e,a,E)=>{E.r(a),E.d(a,{default:()=>n});var t=E(26319);function n(e){e.register(t.default),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}n.displayName="sparql",n.aliases=["rq"]},26319:(e,a,E)=>{function t(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}E.r(a),E.d(a,{default:()=>t}),t.displayName="turtle",t.aliases=["trig"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_splunkSpl.5ae87d42f840fd9c.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_splunkSpl.5ae87d42f840fd9c.js
    deleted file mode 100644
    index 578e4e251..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_splunkSpl.5ae87d42f840fd9c.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3764],{50502:(e,t,a)=>{function r(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}a.r(t),a.d(t,{default:()=>r}),r.displayName="splunk-spl",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_sqf.f51f962c0dc64056.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_sqf.f51f962c0dc64056.js
    deleted file mode 100644
    index b5fa3bddc..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_sqf.f51f962c0dc64056.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8358],{7193:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var o=a(22557);function r(e){e.register(o.default),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}r.displayName="sqf",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_sql.cd3ae8ac77cf6060.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_sql.cd3ae8ac77cf6060.js
    deleted file mode 100644
    index db6a53163..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_sql.cd3ae8ac77cf6060.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4572],{59131:(E,T,I)=>{function N(E){E.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:/[;[\]()`,.]/}}I.r(T),I.d(T,{default:()=>N}),N.displayName="sql",N.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_squirrel.f2854e6268774354.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_squirrel.f2854e6268774354.js
    deleted file mode 100644
    index 5439e26bb..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_squirrel.f2854e6268774354.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[429],{53986:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var n=a(22557);function r(e){e.register(n.default),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}r.displayName="squirrel",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_stan.e82ca29b0e4d0105.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_stan.e82ca29b0e4d0105.js
    deleted file mode 100644
    index 1966bd1a2..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_stan.e82ca29b0e4d0105.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2628],{71789:(e,r,t)=>{function a(e){var r;r=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/,e.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+r.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,r],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},e.languages.stan.constraint.inside.expression.inside=e.languages.stan}t.r(r),t.d(r,{default:()=>a}),a.displayName="stan",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_stata.5a20f49b15366369.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_stata.5a20f49b15366369.js
    deleted file mode 100644
    index 203d20298..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_stata.5a20f49b15366369.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2168,3747,6131],{5656:(e,t,a)=>{function s(e){var t,a;t=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,a=/\bvoid\b||\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*)?/.source.replace(//g,t),e.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(a),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}}a.r(t),a.d(t,{default:()=>s}),s.displayName="mata",s.aliases=[]},12837:(e,t,a)=>{a.r(t),a.d(t,{default:()=>n});var s=a(22557);function n(e){var t,a,n;e.register(s.default),t=/\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/,a=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(/(^|[^\w.])/.source+a+/[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:/\./}},e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[n,{pattern:RegExp(/(^|[^\w.])/.source+a+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:n.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+a+/[A-Z]\w*\b/.source),lookbehind:!0,inside:n.inside}],keyword:t,function:[e.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/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.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":n,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+a+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:n.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+a+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:n.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 t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}n.displayName="java",n.aliases=[]},19530:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var s=a(12837),n=a(5656),i=a(75147);function r(e){e.register(s.default),e.register(n.default),e.register(i.default),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}r.displayName="stata",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_stylus.a1f672d01e10085b.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_stylus.a1f672d01e10085b.js
    deleted file mode 100644
    index 234e65f08..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_stylus.a1f672d01e10085b.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[158],{62075:(e,n,r)=>{function t(e){var n,r,t;(t={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:n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},number:r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/}).interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:t}},t.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:t}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:t}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:t}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:t}},"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:t.interpolation}},rest:t}},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:t.interpolation,comment:t.comment,punctuation:/[{},]/}},func:t.func,string:t.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:t.interpolation,punctuation:/[{}()\[\];:.]/}}r.r(n),r.d(n,{default:()=>t}),t.displayName="stylus",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_supercollider.27063a63faa53b18.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_supercollider.27063a63faa53b18.js
    deleted file mode 100644
    index f067b4854..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_supercollider.27063a63faa53b18.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1037],{79252:(e,a,r)=>{function s(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}r.r(a),r.d(a,{default:()=>s}),s.displayName="supercollider",s.aliases=["sclang"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_swift.58ee2839cde9bad3.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_swift.58ee2839cde9bad3.js
    deleted file mode 100644
    index 42593af5a..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_swift.58ee2839cde9bad3.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7129],{38972:(e,t,n)=>{function i(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ 	]*")+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}n.r(t),n.d(t,{default:()=>i}),i.displayName="swift",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_systemd.b16e05336ba971ff.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_systemd.b16e05336ba971ff.js
    deleted file mode 100644
    index 032ace28b..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_systemd.b16e05336ba971ff.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6309],{29168:(e,t,n)=>{function a(e){var t,n;t={pattern:/^[;#].*/m,greedy:!0},n=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source,e.languages.systemd={comment:t,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+n+'|(?=[^"\r\n]))(?:'+(/[^\s\\]/.source+'|[ 	]+(?:(?![ 	"])|'+n)+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:t,quoted:{pattern:RegExp(/(^|\s)/.source+n),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}}n.r(t),n.d(t,{default:()=>a}),a.displayName="systemd",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_t4Cs.e7f449ad1eb1553f.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_t4Cs.e7f449ad1eb1553f.js
    deleted file mode 100644
    index 256b0b619..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_t4Cs.e7f449ad1eb1553f.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2279,4970,6305],{673:(e,s,n)=>{function r(e){function s(e,s,n){return{pattern:RegExp("<#"+e+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+e+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:s,alias:n}}}}e.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:function(n){var r=e.languages[n],a="language-"+n;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:s("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:s("=",r,a),"class-feature":s("\\+",r,a),standard:s("",r,a)}}}}})}n.r(s),n.d(s,{default:()=>r}),r.displayName="t4-templating",r.aliases=[]},94418:(e,s,n)=>{n.r(s),n.d(s,{default:()=>t});var r=n(95974),a=n(673);function t(e){e.register(r.default),e.register(a.default),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}t.displayName="t4-cs",t.aliases=["t4"]},95974:(e,s,n)=>{n.r(s),n.d(s,{default:()=>a});var r=n(22557);function a(e){e.register(r.default),function(e){function s(e,s){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+s[+n]+")"})}function n(e,n,r){return RegExp(s(e,n),r||"")}function r(e,s){for(var n=0;n>/g,function(){return"(?:"+e+")"});return e.replace(/<>/g,"[^\\s\\S]")}var a="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",t="class enum interface record struct",i="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",o="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function u(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=u(t),l=RegExp(u(a+" "+t+" "+i+" "+o)),d=u(t+" "+i+" "+o),p=u(a+" "+t+" "+o),g=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),b=r(/\((?:[^()]|<>)*\)/.source,2),f=/@?\b[A-Za-z_]\w*\b/.source,h=s(/<<0>>(?:\s*<<1>>)?/.source,[f,g]),m=s(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,h]),k=/\[\s*(?:,\s*)*\]/.source,y=s(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,k]),w=s(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[g,b,k]),v=s(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=s(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[v,m,k]),$={keyword:l,punctuation:/[<>()?,.:[\]]/},_=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,S=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:$},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[f,x]),lookbehind:!0,inside:$},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[f]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[c,h]),lookbehind:!0,inside:$},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:$},{pattern:n(/(\bwhere\s+)<<0>>/.source,[f]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[y]),lookbehind:!0,inside:$},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,p,f]),inside:$}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[f]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[f]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[b]),lookbehind:!0,alias:"class-name",inside:$},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,m]),inside:$,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:$,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[f,g]),inside:{function:n(/^<<0>>/.source,[f]),generic:{pattern:RegExp(g),alias:"class-name",inside:$}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,h,f,x,l.source,b,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[h,b]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:l,"class-name":{pattern:RegExp(x),greedy:!0,inside:$},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var R=E+"|"+_,B=s(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[R]),N=r(s(/[^"'/()]|<<0>>|\(<>*\)/.source,[B]),2),j=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,z=s(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,N]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[j,z]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[j]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[N]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var A=/:[^}\r\n]+/.source,C=r(s(/[^"'/()]|<<0>>|\(<>*\)/.source,[B]),2),T=s(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[C,A]),F=r(s(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[R]),2),O=s(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,A]);function P(s,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[s]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,A]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[T]),lookbehind:!0,greedy:!0,inside:P(T,C)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[O]),lookbehind:!0,greedy:!0,inside:P(O,F)}],char:{pattern:RegExp(_),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}a.displayName="csharp",a.aliases=["cs","dotnet"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_t4Templating.3056c39cb7e27616.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_t4Templating.3056c39cb7e27616.js
    deleted file mode 100644
    index c6196dc07..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_t4Templating.3056c39cb7e27616.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2279],{673:(e,t,a)=>{function n(e){function t(e,t,a){return{pattern:RegExp("<#"+e+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+e+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:t,alias:a}}}}e.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:function(a){var n=e.languages[a],s="language-"+a;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:t("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:t("=",n,s),"class-feature":t("\\+",n,s),standard:t("",n,s)}}}}})}a.r(t),a.d(t,{default:()=>n}),n.displayName="t4-templating",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_t4Vb.fcc9ddbcb8974084.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_t4Vb.fcc9ddbcb8974084.js
    deleted file mode 100644
    index ec31f8691..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_t4Vb.fcc9ddbcb8974084.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2279,3792,5593,9322],{673:(E,T,R)=>{function N(E){function T(E,T,R){return{pattern:RegExp("<#"+E+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+E+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:T,alias:R}}}}E.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:function(R){var N=E.languages[R],I="language-"+R;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:T("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:T("=",N,I),"class-feature":T("\\+",N,I),standard:T("",N,I)}}}}})}R.r(T),R.d(T,{default:()=>N}),N.displayName="t4-templating",N.aliases=[]},984:(E,T,R)=>{R.r(T),R.d(T,{default:()=>O});var N=R(673),I=R(60160);function O(E){E.register(N.default),E.register(I.default),E.languages["t4-vb"]=E.languages["t4-templating"].createT4("vbnet")}O.displayName="t4-vb",O.aliases=[]},22653:(E,T,R)=>{function N(E){E.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}R.r(T),R.d(T,{default:()=>N}),N.displayName="basic",N.aliases=[]},60160:(E,T,R)=>{R.r(T),R.d(T,{default:()=>I});var N=R(22653);function I(E){E.register(N.default),E.languages.vbnet=E.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}I.displayName="vbnet",I.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_tap.49e2f7592e4fcb43.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_tap.49e2f7592e4fcb43.js
    deleted file mode 100644
    index 9dec163f8..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_tap.49e2f7592e4fcb43.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7029,7495],{9318:(e,a,r)=>{function n(e){!function(e){var a=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,n="(?:"+r.source+"(?:[ 	]+"+a.source+")?|"+a.source+"(?:[ 	]+"+r.source+")?)",t=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),u=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(e,a){return a=(a||"").replace(/m/g,"")+"m",RegExp(/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return n}).replace(/<>/g,function(){return e}),a)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return n})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return n}).replace(/<>/g,function(){return"(?:"+t+"|"+u+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\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:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(u),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:a,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(e)}r.r(a),r.d(a,{default:()=>n}),n.displayName="yaml",n.aliases=["yml"]},28774:(e,a,r)=>{r.r(a),r.d(a,{default:()=>t});var n=r(9318);function t(e){e.register(n.default),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}t.displayName="tap",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_tcl.6aaece7e988d7c2b.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_tcl.6aaece7e988d7c2b.js
    deleted file mode 100644
    index 0fdaa5e60..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_tcl.6aaece7e988d7c2b.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5281],{85600:(e,t,a)=>{function r(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}a.r(t),a.d(t,{default:()=>r}),r.displayName="tcl",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_textile.feef58afc8346912.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_textile.feef58afc8346912.js
    deleted file mode 100644
    index 5ab49f6f2..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_textile.feef58afc8346912.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8615],{21262:(e,n,i)=>{i.r(n),i.d(n,{default:()=>o});var t=i(83309);function o(e){e.register(t.default),function(e){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,i=/\)|\((?![^|()\n]+\))/.source;function t(e,t){return RegExp(e.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+i+")"}),t||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:e.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},a=e.languages.textile=e.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:t(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:t(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:t(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:t(/(^[*#]+)+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:t(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:t(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:t(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:t(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:t(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:t(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:t(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:t(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:t(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:t(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:t(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:t(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:t(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:t(/(^")+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:t(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:t(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:t(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),r=a.phrase.inside,s={inline:r.inline,link:r.link,image:r.image,footnote:r.footnote,acronym:r.acronym,mark:r.mark};a.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var d=r.inline.inside;d.bold.inside=s,d.italic.inside=s,d.inserted.inside=s,d.deleted.inside=s,d.span.inside=s;var l=r.table.inside;l.inline=s.inline,l.link=s.link,l.image=s.image,l.footnote=s.footnote,l.acronym=s.acronym,l.mark=s.mark}(e)}o.displayName="textile",o.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_toml.993af31ec1481a63.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_toml.993af31ec1481a63.js
    deleted file mode 100644
    index 93e61e238..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_toml.993af31ec1481a63.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8296],{48009:(e,a,n)=>{function r(e){var a=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function n(e){return e.replace(/__/g,function(){return a})}e.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(n(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(n(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}}n.r(a),n.d(a,{default:()=>r}),r.displayName="toml",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_tremor.f700b1f85f180b8f.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_tremor.f700b1f85f180b8f.js
    deleted file mode 100644
    index 3a87933ea..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_tremor.f700b1f85f180b8f.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3311],{12660:(e,n,t)=>{function r(e){var n;e.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/},n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source,e.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.tremor}}},string:/[\s\S]+/}},e.languages.troy=e.languages.tremor,e.languages.trickle=e.languages.tremor}t.r(n),t.d(n,{default:()=>r}),r.displayName="tremor",r.aliases=["trickle","troy"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_tt2.d797d246e77072b8.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_tt2.d797d246e77072b8.js
    deleted file mode 100644
    index 48f9e3acf..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_tt2.d797d246e77072b8.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4930,6403],{79117:(e,t,a)=>{a.r(t),a.d(t,{default:()=>i});var n=a(22557),r=a(97769);function i(e){e.register(n.default),e.register(r.default),e.languages.tt2=e.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),e.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),e.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),e.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete e.languages.tt2.string,e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"tt2",/\[%[\s\S]+?%\]/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"tt2")})}i.displayName="tt2",i.aliases=[]},97769:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var n=a(83309);function r(e){e.register(n.default);function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,n,r,i){if(a.language===n){var s=a.tokenStack=[];a.code=a.code.replace(r,function(e){if("function"==typeof i&&!i(e))return e;for(var r,o=s.length;-1!==a.code.indexOf(r=t(n,o));)++o;return s[o]=e,r}),a.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(a,n){if(a.language===n&&a.tokenStack){a.grammar=e.languages[n];var r=0,i=Object.keys(a.tokenStack);!function s(o){for(var l=0;l=i.length);l++){var u=o[l];if("string"==typeof u||u.content&&"string"==typeof u.content){var g=i[r],p=a.tokenStack[g],c="string"==typeof u?u:u.content,d=t(n,g),f=c.indexOf(d);if(f>-1){++r;var k=c.substring(0,f),E=new e.Token(n,e.tokenize(p,a.grammar),"language-"+n,p),S=c.substring(f+d.length),m=[];k&&m.push.apply(m,s([k])),m.push(E),S&&m.push.apply(m,s([S])),"string"==typeof u?o.splice.apply(o,[l,1].concat(m)):u.content=m}}else u.content&&s(u.content)}return o}(a.tokens)}}}})}r.displayName="markup-templating",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_turtle.9416fd9ae2754e14.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_turtle.9416fd9ae2754e14.js
    deleted file mode 100644
    index 272362c91..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_turtle.9416fd9ae2754e14.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[206],{26319:(e,t,n)=>{function a(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}n.r(t),n.d(t,{default:()=>a}),a.displayName="turtle",a.aliases=["trig"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_twig.b46d2f4a2c5ef550.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_twig.b46d2f4a2c5ef550.js
    deleted file mode 100644
    index a9dcc0399..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_twig.b46d2f4a2c5ef550.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3375,6403],{34892:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var a=n(97769);function r(e){e.register(a.default),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){"twig"===t.language&&e.languages["markup-templating"].buildPlaceholders(t,"twig",/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}r.displayName="twig",r.aliases=[]},97769:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var a=n(83309);function r(e){e.register(a.default);function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,a,r,o){if(n.language===a){var i=n.tokenStack=[];n.code=n.code.replace(r,function(e){if("function"==typeof o&&!o(e))return e;for(var r,s=i.length;-1!==n.code.indexOf(r=t(a,s));)++s;return i[s]=e,r}),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,a){if(n.language===a&&n.tokenStack){n.grammar=e.languages[a];var r=0,o=Object.keys(n.tokenStack);!function i(s){for(var l=0;l=o.length);l++){var u=s[l];if("string"==typeof u||u.content&&"string"==typeof u.content){var g=o[r],c=n.tokenStack[g],p="string"==typeof u?u:u.content,d=t(a,g),f=p.indexOf(d);if(f>-1){++r;var k=p.substring(0,f),m=new e.Token(a,e.tokenize(c,n.grammar),"language-"+a,c),b=p.substring(f+d.length),h=[];k&&h.push.apply(h,i([k])),h.push(m),b&&h.push.apply(h,i([b])),"string"==typeof u?s.splice.apply(s,[l,1].concat(h)):u.content=h}}else u.content&&i(u.content)}return s}(n.tokens)}}}})}r.displayName="markup-templating",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_typoscript.5bd47dbbbd58ca31.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_typoscript.5bd47dbbbd58ca31.js
    deleted file mode 100644
    index b431e8873..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_typoscript.5bd47dbbbd58ca31.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4743],{74484:(E,n,t)=>{function e(E){var n;n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/,E.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},E.languages.tsconfig=E.languages.typoscript}t.r(n),t.d(n,{default:()=>e}),e.displayName="typoscript",e.aliases=["tsconfig"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_unrealscript.a2232a0fc1e60d6e.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_unrealscript.a2232a0fc1e60d6e.js
    deleted file mode 100644
    index 461f4c23f..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_unrealscript.a2232a0fc1e60d6e.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7824],{89901:(e,t,a)=>{function r(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}a.r(t),a.d(t,{default:()=>r}),r.displayName="unrealscript",r.aliases=["uc","uscript"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_uorazor.42b00279f5d91e51.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_uorazor.42b00279f5d91e51.js
    deleted file mode 100644
    index 9e6fe7253..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_uorazor.42b00279f5d91e51.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6684],{62187:(e,t,a)=>{function s(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}a.r(t),a.d(t,{default:()=>s}),s.displayName="uorazor",s.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_uri.730df5a1eb3bfb05.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_uri.730df5a1eb3bfb05.js
    deleted file mode 100644
    index 4ee5b80ee..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_uri.730df5a1eb3bfb05.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7702],{76317:(e,i,r)=>{function t(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|")+/[\w\-.~!$&'()*+,;=%]*/.source+")"+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}r.r(i),r.d(i,{default:()=>t}),t.displayName="uri",t.aliases=["url"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_v.838a5a3317a87cb5.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_v.838a5a3317a87cb5.js
    deleted file mode 100644
    index e492369a6..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_v.838a5a3317a87cb5.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8462],{62905:(e,n,t)=>{t.r(n),t.d(n,{default:()=>i});var a=t(22557);function i(e){var n;e.register(a.default),n={pattern:/[\s\S]+/,inside:null},e.languages.v=e.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=e.languages.v,e.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),e.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),e.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:e.languages.v.generic.inside}}}})}i.displayName="v",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_vala.ea1746ac016aea5a.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_vala.ea1746ac016aea5a.js
    deleted file mode 100644
    index 6cf71e4dd..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_vala.ea1746ac016aea5a.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2374],{23695:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var a=n(22557);function i(e){e.register(a.default),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}i.displayName="vala",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_vbnet.c317e0e2693129c1.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_vbnet.c317e0e2693129c1.js
    deleted file mode 100644
    index b753f86d9..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_vbnet.c317e0e2693129c1.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5593,9322],{22653:(E,T,R)=>{function N(E){E.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}R.r(T),R.d(T,{default:()=>N}),N.displayName="basic",N.aliases=[]},60160:(E,T,R)=>{R.r(T),R.d(T,{default:()=>I});var N=R(22653);function I(E){E.register(N.default),E.languages.vbnet=E.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}I.displayName="vbnet",I.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_velocity.fed08384ce7c145b.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_velocity.fed08384ce7c145b.js
    deleted file mode 100644
    index 0fc5bca5e..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_velocity.fed08384ce7c145b.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6817],{8302:(e,a,n)=>{n.r(a),n.d(a,{default:()=>i});var t=n(83309);function i(e){var a;e.register(t.default),e.languages.velocity=e.languages.extend("markup",{}),(a={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/}).variable.inside={string:a.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:a.number,boolean:a.boolean,punctuation:a.punctuation},e.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:a}},variable:a.variable}),e.languages.velocity.tag.inside["attr-value"].inside.rest=e.languages.velocity}i.displayName="velocity",i.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_verilog.86f41347d0aac3b4.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_verilog.86f41347d0aac3b4.js
    deleted file mode 100644
    index 2ab5d3e72..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_verilog.86f41347d0aac3b4.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1114],{1617:(e,n,r)=>{function t(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}r.r(n),r.d(n,{default:()=>t}),t.displayName="verilog",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_vhdl.e66db4295c8cd81b.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_vhdl.e66db4295c8cd81b.js
    deleted file mode 100644
    index b95b1fe49..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_vhdl.e66db4295c8cd81b.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8330],{53491:(e,t,r)=>{function n(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}r.r(t),r.d(t,{default:()=>n}),n.displayName="vhdl",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_vim.58e5d155ef730596.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_vim.58e5d155ef730596.js
    deleted file mode 100644
    index 2f1cd8f8b..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_vim.58e5d155ef730596.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6660],{8707:(e,n,i)=>{function t(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}i.r(n),i.d(n,{default:()=>t}),t.displayName="vim",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_visualBasic.68a3174982cb8d34.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_visualBasic.68a3174982cb8d34.js
    deleted file mode 100644
    index 365afbc3d..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_visualBasic.68a3174982cb8d34.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9638],{33526:(e,t,a)=>{function r(e){e.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:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}a.r(t),a.d(t,{default:()=>r}),r.displayName="visual-basic",r.aliases=["vb","vba"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_warpscript.0b2651998d3846d9.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_warpscript.0b2651998d3846d9.js
    deleted file mode 100644
    index 82811994b..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_warpscript.0b2651998d3846d9.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7743],{13456:(a,e,r)=>{function t(a){a.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}r.r(e),r.d(e,{default:()=>t}),t.displayName="warpscript",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_wasm.7980dee8e0bfe77d.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_wasm.7980dee8e0bfe77d.js
    deleted file mode 100644
    index 6b6ad9f62..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_wasm.7980dee8e0bfe77d.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9416],{50821:(e,t,a)=>{function r(e){e.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:/[()]/}}a.r(t),a.d(t,{default:()=>r}),r.displayName="wasm",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_webIdl.df724ec19d59174d.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_webIdl.df724ec19d59174d.js
    deleted file mode 100644
    index 4334a8103..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_webIdl.df724ec19d59174d.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8967],{10095:(e,r,n)=>{function t(e){var r=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,n="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+r+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,t={};for(var i in e.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+r),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:t},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+n),lookbehind:!0,inside:t},{pattern:RegExp("("+/\bcallback\s+/.source+r+/\s*=\s*/.source+")"+n),lookbehind:!0,inside:t},{pattern:RegExp(/(\btypedef\b\s*)/.source+n),lookbehind:!0,inside:t},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+r),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+r),lookbehind:!0},RegExp(r+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+r),lookbehind:!0},{pattern:RegExp(n+"(?="+/\s*(?:\.{3}\s*)?/.source+r+/\s*[(),;=]/.source+")"),inside:t}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/},e.languages["web-idl"])"class-name"!==i&&(t[i]=e.languages["web-idl"][i]);e.languages.webidl=e.languages["web-idl"]}n.r(r),n.d(r,{default:()=>t}),t.displayName="web-idl",t.aliases=["webidl"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_wgsl.82c0edc09e29b6ec.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_wgsl.82c0edc09e29b6ec.js
    deleted file mode 100644
    index f94ab31db..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_wgsl.82c0edc09e29b6ec.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3507],{44508:(t,e,a)=>{function r(t){t.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}a.r(e),a.d(e,{default:()=>r}),r.displayName="wgsl",r.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_wiki.a2d6f64bc952b011.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_wiki.a2d6f64bc952b011.js
    deleted file mode 100644
    index 2000c6ef1..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_wiki.a2d6f64bc952b011.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3660],{11505:(i,a,e)=>{e.r(a),e.d(a,{default:()=>n});var t=e(83309);function n(i){i.register(t.default),i.languages.wiki=i.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:i.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),i.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:i.languages.markup.tag.inside}}}})}n.displayName="wiki",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_wolfram.b46e9a033fe42595.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_wolfram.b46e9a033fe42595.js
    deleted file mode 100644
    index 0fed802ed..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_wolfram.b46e9a033fe42595.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5792],{13071:(a,e,l)=>{function n(a){a.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},a.languages.mathematica=a.languages.wolfram,a.languages.wl=a.languages.wolfram,a.languages.nb=a.languages.wolfram}l.r(e),l.d(e,{default:()=>n}),n.displayName="wolfram",n.aliases=["mathematica","nb","wl"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_wren.ebaf1832441655d9.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_wren.ebaf1832441655d9.js
    deleted file mode 100644
    index 52f3c453b..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_wren.ebaf1832441655d9.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3702],{20023:(e,n,t)=>{function a(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}t.r(n),t.d(n,{default:()=>a}),a.displayName="wren",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_xeora.6a9b661c750f62ed.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_xeora.6a9b661c750f62ed.js
    deleted file mode 100644
    index 4d24b7aa4..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_xeora.6a9b661c750f62ed.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4911],{74146:(n,t,a)=>{a.r(t),a.d(t,{default:()=>i});var e=a(83309);function i(n){n.register(e.default),n.languages.xeora=n.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),n.languages.insertBefore("inside","punctuation",{variable:n.languages.xeora["function-inline"].inside.variable},n.languages.xeora["function-block"]),n.languages.xeoracube=n.languages.xeora}i.displayName="xeora",i.aliases=["xeoracube"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_xmlDoc.512b236e01c9f0d8.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_xmlDoc.512b236e01c9f0d8.js
    deleted file mode 100644
    index d01b580f7..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_xmlDoc.512b236e01c9f0d8.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7019],{23565:(e,a,t)=>{t.r(a),t.d(a,{default:()=>s});var n=t(83309);function s(e){e.register(n.default);function a(a,t){e.languages[a]&&e.languages.insertBefore(a,"comment",{"doc-comment":t})}var t=e.languages.markup.tag,s={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:t}};a("csharp",s),a("fsharp",s),a("vbnet",{pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:t}})}s.displayName="xml-doc",s.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_xojo.fd1307262204137d.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_xojo.fd1307262204137d.js
    deleted file mode 100644
    index 2b0c20672..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_xojo.fd1307262204137d.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8490],{85387:(e,t,r)=>{function n(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}r.r(t),r.d(t,{default:()=>n}),n.displayName="xojo",n.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_xquery.3538f2ec362708ce.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_xquery.3538f2ec362708ce.js
    deleted file mode 100644
    index c79350a90..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_xquery.3538f2ec362708ce.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5852],{18849:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});var a=n(83309);function o(e){var t,n;e.register(a.default),e.languages.xquery=e.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),e.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,e.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,e.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:e.languages.xquery,alias:"language-xquery"},t=function(e){return"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(t).join("")},n=function(a){for(var o=[],i=0;i0&&o[o.length-1].tagName===t(r.content[0].content[1])&&o.pop():"/>"===r.content[r.content.length-1].content||o.push({tagName:t(r.content[0].content[1]),openedBraces:0}):!(o.length>0)||"punctuation"!==r.type||"{"!==r.content||a[i+1]&&"punctuation"===a[i+1].type&&"{"===a[i+1].content||a[i-1]&&"plain-text"===a[i-1].type&&"{"===a[i-1].content?o.length>0&&o[o.length-1].openedBraces>0&&"punctuation"===r.type&&"}"===r.content?o[o.length-1].openedBraces--:"comment"!==r.type&&(s=!0):o[o.length-1].openedBraces++),(s||"string"==typeof r)&&o.length>0&&0===o[o.length-1].openedBraces){var l=t(r);i0&&("string"==typeof a[i-1]||"plain-text"===a[i-1].type)&&(l=t(a[i-1])+l,a.splice(i-1,1),i--),/^\s+$/.test(l)?a[i]=l:a[i]=new e.Token("plain-text",l,null,l)}r.content&&"string"!=typeof r.content&&n(r.content)}},e.hooks.add("after-tokenize",function(e){"xquery"===e.language&&n(e.tokens)})}o.displayName="xquery",o.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_yaml.a06d25bc18f8eabf.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_yaml.a06d25bc18f8eabf.js
    deleted file mode 100644
    index 37c40b004..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_yaml.a06d25bc18f8eabf.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7029],{9318:(e,r,n)=>{function t(e){!function(e){var r=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,t="(?:"+n.source+"(?:[ 	]+"+r.source+")?|"+r.source+"(?:[ 	]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),u=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(e,r){return r=(r||"").replace(/m/g,"")+"m",RegExp(/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return t}).replace(/<>/g,function(){return e}),r)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return t})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return t}).replace(/<>/g,function(){return"(?:"+a+"|"+u+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\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:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(u),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(e)}n.r(r),n.d(r,{default:()=>t}),t.displayName="yaml",t.aliases=["yml"]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_yang.09087311f1e81a74.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_yang.09087311f1e81a74.js
    deleted file mode 100644
    index 875a22b53..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_yang.09087311f1e81a74.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9876],{63480:(e,a,n)=>{function t(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}n.r(a),n.d(a,{default:()=>t}),t.displayName="yang",t.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_zig.a7d2ce9c4ada2085.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_zig.a7d2ce9c4ada2085.js
    deleted file mode 100644
    index 321f70939..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/react-syntax-highlighter_languages_refractor_zig.a7d2ce9c4ada2085.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9802],{49621:(e,n,r)=>{function a(e){!function(e){function n(e){return function(){return e}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,a="\\b(?!"+r.source+")(?!\\d)\\w+\\b",s=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,o="(?!\\s)(?:!?\\s*(?:"+/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(s))+"\\s*)*"+/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(a))+")+";e.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(o)).replace(//g,n(s))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(o)).replace(//g,n(s))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},e.languages.zig["class-name"].forEach(function(n){null===n.inside&&(n.inside=e.languages.zig)})}(e)}r.r(n),r.d(n,{default:()=>a}),a.displayName="zig",a.aliases=[]}}]);
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/webpack-19497010c878c786.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/webpack-19497010c878c786.js
    deleted file mode 100644
    index abdffd5ca..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/webpack-19497010c878c786.js
    +++ /dev/null
    @@ -1 +0,0 @@
    -(()=>{"use strict";var a={},e={};function r(t){var g=e[t];if(void 0!==g)return g.exports;var c=e[t]={exports:{}},h=!0;try{a[t].call(c.exports,c,c.exports,r),h=!1}finally{h&&delete e[t]}return c.exports}r.m=a,(()=>{var a=[];r.O=(e,t,g,c)=>{if(t){c=c||0;for(var h=a.length;h>0&&a[h-1][2]>c;h--)a[h]=a[h-1];a[h]=[t,g,c];return}for(var _=1/0,h=0;h=c)&&Object.keys(r.O).every(a=>r.O[a](t[l]))?t.splice(l--,1):(i=!1,c<_&&(_=c));if(i){a.splice(h--,1);var s=g();void 0!==s&&(e=s)}}return e}})(),r.n=a=>{var e=a&&a.__esModule?()=>a.default:()=>a;return r.d(e,{a:e}),e},(()=>{var a,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;r.t=function(t,g){if(1&g&&(t=this(t)),8&g||"object"==typeof t&&t&&(4&g&&t.__esModule||16&g&&"function"==typeof t.then))return t;var c=Object.create(null);r.r(c);var h={};a=a||[null,e({}),e([]),e(e)];for(var _=2&g&&t;"object"==typeof _&&!~a.indexOf(_);_=e(_))Object.getOwnPropertyNames(_).forEach(a=>h[a]=()=>t[a]);return h.default=()=>t,r.d(c,h),c}})(),r.d=(a,e)=>{for(var t in e)r.o(e,t)&&!r.o(a,t)&&Object.defineProperty(a,t,{enumerable:!0,get:e[t]})},r.f={},r.e=a=>Promise.all(Object.keys(r.f).reduce((e,t)=>(r.f[t](a,e),e),[])),r.u=a=>"static/chunks/"+(({96:"react-syntax-highlighter_languages_refractor_ocaml",158:"react-syntax-highlighter_languages_refractor_stylus",204:"react-syntax-highlighter_languages_refractor_pascal",206:"react-syntax-highlighter_languages_refractor_turtle",267:"react-syntax-highlighter_languages_refractor_cpp",269:"react-syntax-highlighter_languages_refractor_erlang",345:"react-syntax-highlighter_languages_refractor_falselang",365:"react-syntax-highlighter_languages_refractor_hcl",429:"react-syntax-highlighter_languages_refractor_squirrel",451:"react-syntax-highlighter_languages_refractor_graphql",452:"react-syntax-highlighter_languages_refractor_hsts",535:"react-syntax-highlighter_languages_refractor_icuMessageFormat",546:"react-syntax-highlighter_languages_refractor_javadoc",587:"react-syntax-highlighter_languages_refractor_qsharp",622:"react-syntax-highlighter_languages_refractor_groovy",724:"react-syntax-highlighter_languages_refractor_docker",865:"react-syntax-highlighter_languages_refractor_cue",891:"react-syntax-highlighter_languages_refractor_javastacktrace",893:"react-syntax-highlighter_languages_refractor_dhall",902:"react-syntax-highlighter_languages_refractor_jsstacktrace",904:"react-syntax-highlighter_languages_refractor_apacheconf",925:"react-syntax-highlighter_languages_refractor_scheme",953:"react-syntax-highlighter_languages_refractor_aspnet",1019:"react-syntax-highlighter_languages_refractor_plantUml",1037:"react-syntax-highlighter_languages_refractor_supercollider",1060:"react-syntax-highlighter_languages_refractor_apex",1114:"react-syntax-highlighter_languages_refractor_verilog",1126:"react-syntax-highlighter_languages_refractor_bnf",1156:"react-syntax-highlighter_languages_refractor_gcode",1191:"react-syntax-highlighter_languages_refractor_smalltalk",1220:"react-syntax-highlighter_languages_refractor_haxe",1239:"react-syntax-highlighter_languages_refractor_llvm",1353:"react-syntax-highlighter_languages_refractor_arff",1355:"react-syntax-highlighter_languages_refractor_cmake",1374:"react-syntax-highlighter_languages_refractor_chaiscript",1385:"react-syntax-highlighter_languages_refractor_dnsZoneFile",1406:"react-syntax-highlighter_languages_refractor_renpy",1451:"react-syntax-highlighter_languages_refractor_gedcom",1550:"react-syntax-highlighter_languages_refractor_nand2tetrisHdl",1719:"react-syntax-highlighter_languages_refractor_powershell",1740:"react-syntax-highlighter_languages_refractor_asm6502",1749:"react-syntax-highlighter_languages_refractor_erb",1801:"react-syntax-highlighter_languages_refractor_gettext",1999:"react-syntax-highlighter_languages_refractor_kotlin",2038:"react-syntax-highlighter_languages_refractor_autoit",2078:"react-syntax-highlighter_languages_refractor_abap",2102:"react-syntax-highlighter_languages_refractor_ftl",2168:"react-syntax-highlighter_languages_refractor_java",2208:"react-syntax-highlighter_languages_refractor_php",2224:"react-syntax-highlighter_languages_refractor_jsExtras",2258:"react-syntax-highlighter_languages_refractor_aql",2266:"react-syntax-highlighter_languages_refractor_scala",2269:"react-syntax-highlighter_languages_refractor_rip",2270:"react-syntax-highlighter_languages_refractor_crystal",2272:"react-syntax-highlighter_languages_refractor_pug",2279:"react-syntax-highlighter_languages_refractor_t4Templating",2281:"react-syntax-highlighter_languages_refractor_hpkp",2310:"react-syntax-highlighter_languages_refractor_peoplecode",2331:"react-syntax-highlighter_languages_refractor_sas",2336:"react-syntax-highlighter_languages_refractor_smarty",2374:"react-syntax-highlighter_languages_refractor_vala",2419:"react-syntax-highlighter_languages_refractor_livescript",2465:"react-syntax-highlighter_languages_refractor_hlsl",2490:"react-syntax-highlighter_languages_refractor_dataweave",2561:"4954bb62",2628:"react-syntax-highlighter_languages_refractor_stan",2638:"react-syntax-highlighter_languages_refractor_ini",2650:"react-syntax-highlighter_languages_refractor_parser",2674:"react-syntax-highlighter_languages_refractor_rust",2688:"react-syntax-highlighter_languages_refractor_flow",2690:"react-syntax-highlighter_languages_refractor_gherkin",2700:"react-syntax-highlighter_languages_refractor_d",2742:"react-syntax-highlighter_languages_refractor_goModule",2778:"react-syntax-highlighter_languages_refractor_lolcode",2795:"react-syntax-highlighter_languages_refractor_perl",2824:"react-syntax-highlighter_languages_refractor_robotframework",2875:"react-syntax-highlighter_languages_refractor_dart",2928:"react-syntax-highlighter_languages_refractor_concurnas",2957:"react-syntax-highlighter_languages_refractor_opencl",2961:"react-syntax-highlighter_languages_refractor_elixir",2985:"react-syntax-highlighter_languages_refractor_arturo",2996:"react-syntax-highlighter_languages_refractor_kumir",3134:"react-syntax-highlighter_languages_refractor_cfscript",3146:"react-syntax-highlighter_languages_refractor_pure",3151:"react-syntax-highlighter_languages_refractor_dax",3154:"react-syntax-highlighter_languages_refractor_go",3189:"react-syntax-highlighter_languages_refractor_asciidoc",3224:"react-syntax-highlighter_languages_refractor_objectivec",3244:"react-syntax-highlighter_languages_refractor_kusto",3257:"react-syntax-highlighter_languages_refractor_avroIdl",3281:"react-syntax-highlighter_languages_refractor_cobol",3294:"react-syntax-highlighter_languages_refractor_ignore",3311:"react-syntax-highlighter_languages_refractor_tremor",3375:"react-syntax-highlighter_languages_refractor_twig",3440:"react-syntax-highlighter_languages_refractor_ruby",3507:"react-syntax-highlighter_languages_refractor_wgsl",3514:"react-syntax-highlighter_languages_refractor_shellSession",3533:"react-syntax-highlighter_languages_refractor_css",3539:"react-syntax-highlighter_languages_refractor_c",3563:"react-syntax-highlighter_languages_refractor_soy",3565:"react-syntax-highlighter_languages_refractor_bicep",3657:"react-syntax-highlighter_languages_refractor_agda",3660:"react-syntax-highlighter_languages_refractor_wiki",3702:"react-syntax-highlighter_languages_refractor_wren",3733:"react-syntax-highlighter_languages_refractor_lilypond",3747:"react-syntax-highlighter_languages_refractor_mata",3750:"react-syntax-highlighter_languages_refractor_roboconf",3764:"react-syntax-highlighter_languages_refractor_splunkSpl",3792:"react-syntax-highlighter_languages_refractor_t4Vb",3874:"react-syntax-highlighter_languages_refractor_moonscript",3887:"react-syntax-highlighter_languages_refractor_idris",3909:"react-syntax-highlighter_languages_refractor_promql",3943:"react-syntax-highlighter_languages_refractor_jexl",3950:"react-syntax-highlighter_languages_refractor_json",4118:"react-syntax-highlighter_languages_refractor_csp",4150:"react-syntax-highlighter_languages_refractor_cilkcpp",4165:"react-syntax-highlighter_languages_refractor_regex",4226:"react-syntax-highlighter_languages_refractor_rest",4287:"cdfede43",4336:"react-syntax-highlighter_languages_refractor_batch",4415:"react-syntax-highlighter_languages_refractor_jq",4447:"react-syntax-highlighter_languages_refractor_autohotkey",4469:"react-syntax-highlighter_languages_refractor_powerquery",4559:"react-syntax-highlighter_languages_refractor_maxscript",4572:"react-syntax-highlighter_languages_refractor_sql",4649:"react-syntax-highlighter_languages_refractor_prolog",4715:"react-syntax-highlighter_languages_refractor_nasm",4743:"react-syntax-highlighter_languages_refractor_typoscript",4753:"react-syntax-highlighter_languages_refractor_processing",4779:"react-syntax-highlighter_languages_refractor_icon",4789:"react-syntax-highlighter_languages_refractor_apl",4804:"react-syntax-highlighter_languages_refractor_clojure",4814:"react-syntax-highlighter_languages_refractor_jsTemplates",4830:"react-syntax-highlighter_languages_refractor_fsharp",4888:"7c218f26",4903:"react-syntax-highlighter_languages_refractor_etlua",4911:"react-syntax-highlighter_languages_refractor_xeora",4916:"react-syntax-highlighter_languages_refractor_lisp",4928:"react-syntax-highlighter_languages_refractor_cssExtras",4930:"react-syntax-highlighter_languages_refractor_tt2",4967:"react-syntax-highlighter_languages_refractor_magma",4970:"react-syntax-highlighter_languages_refractor_t4Cs",4972:"react-syntax-highlighter_languages_refractor_elm",4983:"react-syntax-highlighter_languages_refractor_oz",4985:"react-syntax-highlighter_languages_refractor_gradle",5084:"react-syntax-highlighter_languages_refractor_glsl",5203:"react-syntax-highlighter_languages_refractor_coq",5208:"react-syntax-highlighter_languages_refractor_hoon",5246:"react-syntax-highlighter_languages_refractor_bbj",5254:"react-syntax-highlighter_languages_refractor_racket",5256:"react-syntax-highlighter_languages_refractor_arduino",5281:"react-syntax-highlighter_languages_refractor_tcl",5424:"react-syntax-highlighter_languages_refractor_pcaxis",5432:"react-syntax-highlighter_languages_refractor_linkerScript",5507:"react-syntax-highlighter_languages_refractor_matlab",5529:"react-syntax-highlighter_languages_refractor_django",5559:"react-syntax-highlighter_languages_refractor_properties",5570:"react-syntax-highlighter_languages_refractor_mel",5578:"react-syntax-highlighter_languages_refractor_lua",5593:"react-syntax-highlighter_languages_refractor_vbnet",5611:"react-syntax-highlighter_languages_refractor_actionscript",5655:"react-syntax-highlighter_languages_refractor_javadoclike",5747:"react-syntax-highlighter_languages_refractor_antlr4",5779:"react-syntax-highlighter_languages_refractor_solidity",5792:"react-syntax-highlighter_languages_refractor_wolfram",5852:"react-syntax-highlighter_languages_refractor_xquery",5873:"react-syntax-highlighter_languages_refractor_applescript",5885:"abea47b0",5894:"8625284b",5963:"react-syntax-highlighter_languages_refractor_gn",6060:"react-syntax-highlighter_languages_refractor_nim",6086:"react-syntax-highlighter_languages_refractor_cilkc",6100:"react-syntax-highlighter_languages_refractor_iecst",6118:"react-syntax-highlighter_languages_refractor_haml",6131:"react-syntax-highlighter_languages_refractor_stata",6148:"react-syntax-highlighter_languages_refractor_gap",6203:"react-syntax-highlighter_languages_refractor_armasm",6268:"react-syntax-highlighter_languages_refractor_avisynth",6277:"react-syntax-highlighter_languages_refractor_nsis",6285:"react-syntax-highlighter_languages_refractor_dot",6305:"react-syntax-highlighter_languages_refractor_csharp",6309:"react-syntax-highlighter_languages_refractor_systemd",6314:"react-syntax-highlighter_languages_refractor_puppet",6333:"react-syntax-highlighter_languages_refractor_brightscript",6358:"b67e1640",6403:"react-syntax-highlighter_languages_refractor_markupTemplating",6458:"react-syntax-highlighter_languages_refractor_sass",6503:"react-syntax-highlighter_languages_refractor_qore",6514:"react-syntax-highlighter_languages_refractor_bash",6641:"react-syntax-highlighter_languages_refractor_q",6659:"react-syntax-highlighter_languages_refractor_n4js",6660:"react-syntax-highlighter_languages_refractor_vim",6684:"react-syntax-highlighter_languages_refractor_uorazor",6759:"react-syntax-highlighter_languages_refractor_awk",6783:"react-syntax-highlighter_languages_refractor_birb",6804:"react-syntax-highlighter_languages_refractor_handlebars",6814:"react-syntax-highlighter_languages_refractor_qml",6817:"react-syntax-highlighter_languages_refractor_velocity",6829:"react-syntax-highlighter_languages_refractor_ebnf",6878:"react-syntax-highlighter_languages_refractor_firestoreSecurityRules",6942:"react-syntax-highlighter_languages_refractor_log",6943:"react-syntax-highlighter/refractor-core-import",7019:"react-syntax-highlighter_languages_refractor_xmlDoc",7029:"react-syntax-highlighter_languages_refractor_yaml",7046:"react-syntax-highlighter_languages_refractor_mongodb",7129:"react-syntax-highlighter_languages_refractor_swift",7148:"react-syntax-highlighter_languages_refractor_io",7179:"react-syntax-highlighter_languages_refractor_bqn",7202:"react-syntax-highlighter_languages_refractor_openqasm",7228:"react-syntax-highlighter_languages_refractor_asmatmel",7233:"react-syntax-highlighter_languages_refractor_mizar",7261:"react-syntax-highlighter_languages_refractor_protobuf",7351:"react-syntax-highlighter_languages_refractor_json5",7384:"react-syntax-highlighter_languages_refractor_metafont",7394:"react-syntax-highlighter_languages_refractor_latte",7419:"react-syntax-highlighter_languages_refractor_solutionFile",7440:"react-syntax-highlighter_languages_refractor_odin",7474:"react-syntax-highlighter_languages_refractor_j",7495:"react-syntax-highlighter_languages_refractor_tap",7508:"react-syntax-highlighter_languages_refractor_ejs",7581:"react-syntax-highlighter_languages_refractor_eiffel",7645:"react-syntax-highlighter_languages_refractor_phpExtras",7681:"react-syntax-highlighter_languages_refractor_cshtml",7696:"react-syntax-highlighter_languages_refractor_neon",7702:"react-syntax-highlighter_languages_refractor_uri",7735:"react-syntax-highlighter_languages_refractor_pascaligo",7743:"react-syntax-highlighter_languages_refractor_warpscript",7747:"react-syntax-highlighter_languages_refractor_monkey",7765:"react-syntax-highlighter_languages_refractor_rego",7818:"react-syntax-highlighter_languages_refractor_inform7",7824:"react-syntax-highlighter_languages_refractor_unrealscript",7880:"react-syntax-highlighter_languages_refractor_sml",7904:"react-syntax-highlighter_languages_refractor_csv",7912:"react-syntax-highlighter_languages_refractor_liquid",8030:"react-syntax-highlighter_languages_refractor_keepalived",8141:"react-syntax-highlighter_languages_refractor_naniscript",8156:"react-syntax-highlighter_languages_refractor_latex",8169:"react-syntax-highlighter_languages_refractor_mermaid",8217:"react-syntax-highlighter_languages_refractor_editorconfig",8296:"react-syntax-highlighter_languages_refractor_toml",8300:"react-syntax-highlighter_languages_refractor_ada",8330:"react-syntax-highlighter_languages_refractor_vhdl",8358:"react-syntax-highlighter_languages_refractor_sqf",8369:"react-syntax-highlighter_languages_refractor_factor",8407:"react-syntax-highlighter_languages_refractor_purescript",8417:"react-syntax-highlighter_languages_refractor_nix",8435:"react-syntax-highlighter_languages_refractor_bro",8462:"react-syntax-highlighter_languages_refractor_v",8490:"react-syntax-highlighter_languages_refractor_xojo",8494:"react-syntax-highlighter_languages_refractor_fortran",8497:"react-syntax-highlighter_languages_refractor_abnf",8524:"react-syntax-highlighter_languages_refractor_haskell",8565:"react-syntax-highlighter_languages_refractor_psl",8584:"react-syntax-highlighter_languages_refractor_plsql",8615:"react-syntax-highlighter_languages_refractor_textile",8625:"react-syntax-highlighter_languages_refractor_jsdoc",8628:"react-syntax-highlighter_languages_refractor_n1ql",8665:"react-syntax-highlighter_languages_refractor_excelFormula",8755:"react-syntax-highlighter_languages_refractor_bbcode",8813:"react-syntax-highlighter_languages_refractor_ichigojam",8857:"react-syntax-highlighter_languages_refractor_jolie",8874:"react-syntax-highlighter_languages_refractor_phpdoc",8884:"react-syntax-highlighter_languages_refractor_purebasic",8922:"react-syntax-highlighter_languages_refractor_rescript",8967:"react-syntax-highlighter_languages_refractor_webIdl",9048:"react-syntax-highlighter_languages_refractor_http",9059:"react-syntax-highlighter_languages_refractor_less",9060:"react-syntax-highlighter_languages_refractor_gdscript",9084:"react-syntax-highlighter_languages_refractor_makefile",9099:"react-syntax-highlighter_languages_refractor_parigp",9101:"react-syntax-highlighter_languages_refractor_brainfuck",9117:"react-syntax-highlighter_languages_refractor_diff",9196:"react-syntax-highlighter_languages_refractor_scss",9245:"react-syntax-highlighter_languages_refractor_coffeescript",9259:"react-syntax-highlighter_languages_refractor_julia",9322:"react-syntax-highlighter_languages_refractor_basic",9340:"react-syntax-highlighter_languages_refractor_reason",9416:"react-syntax-highlighter_languages_refractor_wasm",9450:"react-syntax-highlighter_languages_refractor_r",9493:"react-syntax-highlighter_languages_refractor_cypher",9523:"react-syntax-highlighter_languages_refractor_sparql",9536:"react-syntax-highlighter_languages_refractor_smali",9548:"react-syntax-highlighter_languages_refractor_nginx",9558:"react-syntax-highlighter_languages_refractor_nevod",9627:"react-syntax-highlighter_languages_refractor_markdown",9638:"react-syntax-highlighter_languages_refractor_visualBasic",9688:"react-syntax-highlighter_languages_refractor_git",9696:"react-syntax-highlighter_languages_refractor_cooklang",9706:"react-syntax-highlighter_languages_refractor_jsonp",9760:"02c5145a",9771:"react-syntax-highlighter_languages_refractor_keyman",9802:"react-syntax-highlighter_languages_refractor_zig",9812:"react-syntax-highlighter_languages_refractor_cil",9841:"react-syntax-highlighter_languages_refractor_bison",9876:"react-syntax-highlighter_languages_refractor_yang",9887:"react-syntax-highlighter_languages_refractor_al",9907:"react-syntax-highlighter_languages_refractor_bsl",9964:"react-syntax-highlighter_languages_refractor_gml"})[a]||a)+"."+({96:"fc0af14fa90343d8",145:"319dc2a103ad1b4c",158:"a1f672d01e10085b",204:"abd5f35e075c00a5",206:"9416fd9ae2754e14",267:"634534bcda1dd47a",269:"0c806bd40c64f062",270:"7aa60507da3c347a",345:"474ed284e9d1dac1",365:"a3567565d96f0fe3",429:"f2854e6268774354",443:"c8f79794b9249b4f",451:"bcb6d46b444d2f92",452:"a46c95e4b9d451c8",455:"567a2b907c21839f",461:"2aee2b74f0caa583",494:"575dafa6590b2ff0",535:"cedde3a2e0bc519e",546:"771cacc5a7d433f0",587:"42f279d8af75756e",622:"cf87ba49b8e8fa02",724:"e9489489c4675dee",865:"0673da2ad97baf31",891:"bd6e253a780da705",893:"370f9472cbcc9d35",902:"6671967aa9292e26",904:"9496ddf250086c25",925:"45ad3a6e4bf29239",953:"f33dcbb9dbeab83c",1019:"41534de67ab29c97",1037:"27063a63faa53b18",1060:"027c3407272b5627",1114:"86f41347d0aac3b4",1126:"cbd9bc931cc126e4",1156:"ddd203418421fc78",1161:"69bf3db9f455907d",1191:"9349b88d7cf70cea",1220:"b1d4aad1a68c6006",1239:"1de64a509815bc5e",1331:"eabb2f8646c750f7",1341:"d7a3a3c0395b436b",1353:"48399ab2da410613",1355:"30829791a1006768",1363:"40382452a688246c",1374:"10166a7de552ac91",1385:"d96c3cb267bde6f2",1406:"38bc864fe8abdf18",1451:"454b1f62884a828c",1550:"19d455c8a9f437aa",1719:"aa861420f4e8a841",1740:"016af9f1ee94598d",1749:"dfbeff3eaf4a196d",1801:"7da7cfd6ad90fe03",1831:"cd1ebb817d72dfcf",1962:"a81a752546d4f646",1999:"0460b4c363a9ee36",2038:"17463f8cefceae6b",2078:"b906e7786d1c9f74",2102:"ea33095c291e5e23",2158:"e9e9735d49fb2ef8",2168:"be564e8bd7c4d1ca",2208:"6f46e9fd30ca574c",2224:"790240a250d17570",2258:"2cf427617d9567a9",2266:"6da2728afcaa1b69",2269:"6a4cc1e708c662d5",2270:"642d5c8d227d482d",2272:"bd2d6605e1f4891d",2279:"3056c39cb7e27616",2281:"efe46c733e180745",2310:"87023c86e8424cb0",2328:"8b6dabf1d8eacebf",2331:"514a0db3475d131e",2336:"b8005b12f2b4090f",2374:"ea1746ac016aea5a",2419:"b687bd3a3dc364e2",2440:"ee94f3cc365fddfe",2459:"e7dba3820e8e2824",2465:"84bf234545b8ad59",2483:"cc7d37cb7855171b",2490:"d9375fb47c032d26",2499:"f2c3570c1a931305",2557:"c92b26cc451ca01e",2561:"0b028c07faeba5d6",2628:"e82ca29b0e4d0105",2638:"de6151e12e476bd8",2650:"46bae8598947a006",2674:"734dded32835b3fc",2688:"f8250db98781e591",2690:"2210fbb2a5edb175",2700:"822a138a48af0ba1",2742:"c758247e9d722e68",2778:"f96887618c4f0782",2795:"72de3ea7c27ff12f",2824:"b6686eee66ab3d18",2829:"a98d8ca3d080dd49",2875:"d338f30d3aea41f0",2918:"39b223fabcb9cb5e",2928:"46782e018759f9f2",2957:"b4bbf9bd4353a428",2961:"6bf683af514ab4b5",2985:"8b3344c179699e4d",2996:"fcb222db4ba18103",3134:"a7f68ebe52e889e7",3146:"e10f685f5b4e5aa8",3151:"603f347f9c3429ba",3154:"896fb5b4a60811a0",3189:"2c03c17e8960e5c1",3224:"f9a7624ea391a517",3244:"21bfa7b5427ed782",3257:"941b5a64552308f1",3281:"75a35dce703c40af",3294:"af71a0f13efeb60f",3311:"f700b1f85f180b8f",3375:"b46d2f4a2c5ef550",3440:"9b9c4d7588efa2d4",3507:"82c0edc09e29b6ec",3514:"bb55832a8415d286",3533:"2f9ae537dda5a659",3539:"d27551a8704f0be0",3550:"c14b56f51871ec25",3563:"2c9a0daafb7a8af9",3565:"10fc88b07c9f771d",3657:"501bbf3cbcf8322a",3660:"a2d6f64bc952b011",3702:"ebaf1832441655d9",3733:"6d0ad62ae9c3bede",3747:"4a6b0ebca0e429f4",3750:"6c19bc17fdf36dfa",3764:"5ae87d42f840fd9c",3792:"fcc9ddbcb8974084",3874:"3eb99a2b98bf3898",3887:"98770d3d49ff09eb",3909:"965007c08f8bb248",3922:"410fe2f0ee610f5a",3943:"744f92d83ecdb77c",3950:"59856a02996612e3",4118:"03770d725c164d81",4150:"f4dc4eb9144b565a",4165:"71c89c47e6c9ecda",4174:"83efc74a694697ac",4226:"1b29dcae8eefff05",4238:"bd3eb957dc3dee41",4287:"0755e9a3e2ca31d4",4336:"469d4cc1356fa69d",4415:"fd7f33cf2f3bf983",4447:"21902a3ee5b59425",4469:"b22e3b266c69a61c",4559:"47aa513aff88e584",4572:"cd3ae8ac77cf6060",4624:"6d7b8868bc28a86a",4649:"cf52e5831c040499",4673:"ef9c94061a152f03",4715:"f8e7671e82af497b",4743:"5bd47dbbbd58ca31",4753:"8e279447da7d3075",4779:"30a3810d43d97e2a",4789:"d8c1779d94d22ba0",4804:"7a5ed230801872f8",4814:"a80189d978fc84a5",4830:"e617db15cb704465",4835:"065aebe1f4c46cd1",4888:"68679c641b1e8a96",4891:"2f8cc211cb3597d9",4903:"0b300efd8e670927",4911:"6a9b661c750f62ed",4916:"85b8a37eccfca630",4928:"f5bf4ecb99cabd24",4930:"d797d246e77072b8",4967:"370933a719541e90",4970:"e7f449ad1eb1553f",4972:"51bdd02919a78007",4983:"80249748fc0d2031",4985:"70c97fa874036771",5076:"b4eae12a60961079",5077:"0d92e9864ef762a5",5084:"992e81b3eb8056f1",5203:"2b9e8aa81d71fb34",5208:"71c731e6519f5a34",5246:"f3863462b44ce003",5254:"cb6d83488db0e121",5256:"6d33a2c49472a5dc",5281:"6aaece7e988d7c2b",5424:"6ae5bee04f821970",5432:"e18e46ab44576c9c",5507:"27d836c59a179561",5529:"1341df142a30373c",5559:"61a1cf8cc1745e1a",5567:"df37c7cf4627fbd5",5570:"36d778aea31c46a0",5578:"821db3475c4af06f",5593:"c317e0e2693129c1",5611:"927a51bc15ac2bb0",5655:"f8047304ca4d959c",5747:"c7206db0724b6622",5779:"44bae97650333c26",5792:"b46e9a033fe42595",5852:"3538f2ec362708ce",5873:"5c7c80d90c31a9ac",5885:"3eac0b7adcc4eb9e",5894:"1981ee0267fffc28",5942:"819150bbf865063b",5963:"efad1647fb3cb4d0",6060:"40b2a85b7b5d1603",6086:"406e3b45fcb92976",6100:"d08a711eee9bf1dc",6118:"c716463706b8c002",6131:"5a20f49b15366369",6148:"20a814d8f24a3476",6203:"11589bc8eb24f21f",6229:"bfd99ee01524983e",6268:"5c44b177998c6c9f",6277:"235d6d5fcfdcaf3a",6285:"bd9a9d2d7c806310",6305:"d6fab8aa860f7c59",6309:"b16e05336ba971ff",6314:"14c0d534dc1821ec",6327:"c01c6b5bc4a40635",6333:"5503740ed718e6fd",6358:"d07037075aa49223",6403:"70aaae1354a46676",6458:"440d40b753cf03f1",6503:"fdf7794372bddfae",6514:"bc50e97523194f55",6552:"5c6a153f149f266a",6590:"0d9262ce5271f7e4",6600:"0cb0446874379e68",6641:"b736bf4b7070e9c5",6659:"50a20aaad080ecb3",6660:"58e5d155ef730596",6684:"42b00279f5d91e51",6759:"dc4abc92fc2c13f9",6765:"fca70e565dc5288a",6783:"fffdce60276b41cb",6804:"7e2d4d0d4f3d372d",6814:"8984fc112663eb4c",6817:"fed08384ce7c145b",6829:"ce8fddd69c322666",6878:"381a5de1d8945e8e",6942:"e960aa2b13400562",6943:"7790887794ba0ac3",7013:"5679fd8be26e0517",7019:"512b236e01c9f0d8",7029:"a06d25bc18f8eabf",7046:"0dbbcab0226a5f32",7084:"216e296574ecd7c2",7129:"58ee2839cde9bad3",7148:"6b22ecfff8919f29",7178:"285d08d65c3f3c2f",7179:"ec3093cf639e8d88",7202:"127d4c405b9dbf78",7228:"a7cf6700d3bc437f",7233:"def06c997505deca",7261:"51b5ab2fd806b9d3",7351:"b6e5c954e6046625",7356:"fdcb416534885079",7384:"6943d3974e6b06a4",7394:"6fd30a8dcc452faa",7419:"bb0b3a69ed3774c0",7440:"a05842fe184c37ca",7474:"06b5f9686e580d6e",7495:"49e2f7592e4fcb43",7508:"442bd4132210d0e5",7581:"a65f7dedf5c8c2c9",7645:"ffb2f48e64db9908",7681:"ac0e49bc6c91eca0",7696:"da3b95896083dbb3",7702:"730df5a1eb3bfb05",7735:"8bd7c03ff1c193bf",7743:"0b2651998d3846d9",7747:"82aa4747f6efa11a",7765:"f3d2cd5715a8074d",7818:"812cac3f4635345f",7824:"a2232a0fc1e60d6e",7880:"52fb4b22f620c131",7904:"5e480722475d2b3c",7912:"9d6f9f6de9487412",8030:"dcf4663ecc3e7254",8141:"2e235aed423918c3",8156:"0504f61139ce5989",8169:"22fe049388110c5e",8217:"59cd0ab487637161",8235:"9a1d2101b54e4e70",8236:"9db2b13d8cfda8d3",8296:"993af31ec1481a63",8300:"030afdb5a24111d5",8306:"c0f664734c226768",8330:"e66db4295c8cd81b",8348:"dc8f38aa58d39ac6",8358:"f51f962c0dc64056",8369:"6b5bf465f7507f06",8407:"ca318dfc3bc32a70",8417:"c92e5359ac8c1329",8435:"d83eb4e5b4cc3c65",8462:"838a5a3317a87cb5",8490:"fd1307262204137d",8492:"96012aabb6249baf",8494:"cc1797e652231526",8497:"66ba0222a6e6becb",8524:"574f07fe48ee0d87",8531:"ea756af0ac737fda",8565:"52e5fce240d66a0d",8584:"a0005e1656a02bef",8615:"feef58afc8346912",8618:"c2a806f381fcd63e",8625:"8e6c08083d65a076",8628:"f4f7a7e004d5e0dc",8665:"5b9bb68593fca278",8755:"40499c6cbb4dba6b",8763:"bd76fa337ddf423a",8771:"36a6d7dfe89e4b3a",8804:"8c0af37bc3da70a9",8813:"8ff44cd63859a8c6",8857:"1b34fdf47d05b82b",8874:"74f72f3508f233d9",8884:"1018552c3eece90a",8922:"f56434aa1227525e",8967:"df724ec19d59174d",9048:"c4450347c41736be",9059:"2e3126666759a760",9060:"57a0dd5970718713",9084:"a2238ff1d517761c",9088:"53fefb3424562e65",9099:"9a99266bd6608376",9101:"a4035c8176e2da59",9117:"ed75b95151db31b3",9196:"75ba1167747ec8ff",9245:"612878e0793a688d",9259:"22bac9b9a09c9a8b",9321:"a3453b5be642f5ad",9322:"01bb62e4aa51a6b1",9339:"9b5d86bf71d45225",9340:"267cdc7e8113fc8f",9367:"c0dda83769b13c18",9416:"7980dee8e0bfe77d",9450:"fe598dee48eafa68",9493:"f27fdfd4f4e345b0",9523:"a05ba62f8f2e2083",9534:"4c9c4e9da63ee489",9536:"60f9a8bdb49fb2a4",9548:"73eaaf367f9c2e46",9558:"10f687ec8b0cd8db",9580:"45f9edb3be5a4beb",9627:"364293f9e0184054",9638:"68a3174982cb8d34",9688:"1f6dff5c8d2311a4",9696:"75e2679088addad4",9706:"ec15dcfec9338e5c",9760:"219b3b017214f8c4",9771:"142b7abc6060f8d6",9782:"b282107136a26989",9802:"a7d2ce9c4ada2085",9812:"fe8d375b3cd77f42",9841:"9ba59400a737cc02",9875:"2000e389cbe8a830",9876:"09087311f1e81a74",9887:"9d54a1183c3b30d4",9907:"567976a147774690",9933:"d2dd69acd3615a1f",9964:"25cb4d0b22c18b94"})[a]+".js",r.miniCssF=a=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(a){if("object"==typeof window)return window}}(),r.o=(a,e)=>Object.prototype.hasOwnProperty.call(a,e),(()=>{var a={},e="_N_E:";r.l=(t,g,c,h)=>{if(a[t])return void a[t].push(g);if(void 0!==c)for(var _,i,l=document.getElementsByTagName("script"),s=0;s{_.onerror=_.onload=null,clearTimeout(o);var g=a[t];if(delete a[t],_.parentNode&&_.parentNode.removeChild(_),g&&g.forEach(a=>a(r)),e)return e(r)},o=setTimeout(f.bind(null,void 0,{type:"timeout",target:_}),12e4);_.onerror=f.bind(null,_.onerror),_.onload=f.bind(null,_.onload),i&&document.head.appendChild(_)}})(),r.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},(()=>{var a;r.tt=()=>(void 0===a&&(a={createScriptURL:a=>a},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(a=trustedTypes.createPolicy("nextjs#bundler",a))),a)})(),r.tu=a=>r.tt().createScriptURL(a),r.p="/chatui/_next/",(()=>{var a={8068:0,9658:0,1535:0};r.f.j=(e,t)=>{var g=r.o(a,e)?a[e]:void 0;if(0!==g)if(g)t.push(g[2]);else if(/^(1535|8068|9658)$/.test(e))a[e]=0;else{var c=new Promise((r,t)=>g=a[e]=[r,t]);t.push(g[2]=c);var h=r.p+r.u(e),_=Error();r.l(h,t=>{if(r.o(a,e)&&(0!==(g=a[e])&&(a[e]=void 0),g)){var c=t&&("load"===t.type?"missing":t.type),h=t&&t.target&&t.target.src;_.message="Loading chunk "+e+" failed.\n("+c+": "+h+")",_.name="ChunkLoadError",_.type=c,_.request=h,g[1](_)}},"chunk-"+e,e)}},r.O.j=e=>0===a[e];var e=(e,t)=>{var g,c,[h,_,i]=t,l=0;if(h.some(e=>0!==a[e])){for(g in _)r.o(_,g)&&(r.m[g]=_[g]);if(i)var s=i(r)}for(e&&e(t);l:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-border>:not(:last-child)){border-color:var(--border)}:where(.divide-gray-200>:not(:last-child)){border-color:var(--color-gray-200)}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-scroll{overflow-y:scroll}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\[2px\]{border-radius:2px}.rounded-full{border-radius:3.40282e+38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t,.border-t-\[1px\]{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r,.border-r-\[1px\]{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-dotted{--tw-border-style:dotted;border-style:dotted}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\[\#2F6868\]{border-color:#2f6868}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-300{border-color:var(--color-blue-300)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-green-200{border-color:var(--color-green-200)}.border-green-300{border-color:var(--color-green-300)}.border-input{border-color:var(--input)}.border-muted-foreground\/30{border-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.border-muted-foreground\/30{border-color:color-mix(in oklab,var(--muted-foreground) 30%,transparent)}}.border-primary{border-color:var(--primary)}.border-red-300{border-color:var(--color-red-300)}.border-slate-300{border-color:var(--color-slate-300)}.border-transparent{border-color:#0000}.border-yellow-200{border-color:var(--color-yellow-200)}.border-yellow-300{border-color:var(--color-yellow-300)}.border-l-primary{border-left-color:var(--primary)}.bg-\[\#2F6868\]{background-color:#2f6868}.bg-background{background-color:var(--background)}.bg-black{background-color:var(--color-black)}.bg-black\/80{background-color:#000c}@supports (color:color-mix(in lab,red,red)){.bg-black\/80{background-color:color-mix(in oklab,var(--color-black) 80%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-400{background-color:var(--color-gray-400)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-600{background-color:var(--color-green-600)}.bg-muted,.bg-muted\/20{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/20{background-color:color-mix(in oklab,var(--muted) 20%,transparent)}}.bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/30{background-color:color-mix(in oklab,var(--muted) 30%,transparent)}}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,var(--muted) 50%,transparent)}}.bg-primary,.bg-primary\/10{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\/10{background-color:color-mix(in oklab,var(--primary) 10%,transparent)}}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-secondary{background-color:var(--secondary)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\/80{background-color:#fffc}@supports (color:color-mix(in lab,red,red)){.bg-white\/80{background-color:color-mix(in oklab,var(--color-white) 80%,transparent)}}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-yellow-600{background-color:var(--color-yellow-600)}.bg-zinc-900{background-color:var(--color-zinc-900)}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-background{--tw-gradient-from:var(--background);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from) var(--tw-gradient-from-position),var(--tw-gradient-to) var(--tw-gradient-to-position))}.from-slate-50{--tw-gradient-from:var(--color-slate-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from) var(--tw-gradient-from-position),var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-background\/0{--tw-gradient-to:var(--background)}@supports (color:color-mix(in lab,red,red)){.to-background\/0{--tw-gradient-to:color-mix(in oklab,var(--background) 0%,transparent)}}.to-background\/0{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from) var(--tw-gradient-from-position),var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-white{--tw-gradient-to:var(--color-white);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from) var(--tw-gradient-from-position),var(--tw-gradient-to) var(--tw-gradient-to-position))}.fill-primary{fill:var(--primary)}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:var(--spacing)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-3\.5{padding:calc(var(--spacing) * 3.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-12{padding:calc(var(--spacing) * 12)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-12{padding-block:calc(var(--spacing) * 12)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-0{padding-top:0}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pb-0{padding-bottom:0}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-16{padding-bottom:calc(var(--spacing) * 16)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-6{padding-left:calc(var(--spacing) * 6)}.pl-8{padding-left:calc(var(--spacing) * 8)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-7{--tw-leading:calc(var(--spacing) * 7);line-height:calc(var(--spacing) * 7)}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.text-balance{text-wrap:balance}.break-all{word-break:break-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-card-foreground{color:var(--card-foreground)}.text-foreground{color:var(--foreground)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-muted-foreground{color:var(--muted-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-teal-700{color:var(--color-teal-700)}.text-white{color:var(--color-white)}.text-yellow-600{color:var(--color-yellow-600)}.text-yellow-700{color:var(--color-yellow-700)}.text-yellow-800{color:var(--color-yellow-800)}.lowercase{text-transform:lowercase}.italic{font-style:italic}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a)}.shadow-lg,.shadow-md{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a)}.shadow-none{--tw-shadow:0 0 #0000}.shadow-none,.shadow-sm{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d)}.ring,.shadow-xs{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor)}.ring-0,.ring-1{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor)}.ring-gray-400{--tw-ring-color:var(--color-gray-400)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.animate-in{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-name:enter;animation-duration:.15s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.duration-200{animation-duration:.2s}.duration-500{animation-duration:.5s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *){opacity:.5}.group-\[\.toast\]\:bg-muted:is(:where(.group).toast *){background-color:var(--muted)}.group-\[\.toast\]\:bg-primary:is(:where(.group).toast *){background-color:var(--primary)}.group-\[\.toast\]\:text-muted-foreground:is(:where(.group).toast *){color:var(--muted-foreground)}.group-\[\.toast\]\:text-primary-foreground:is(:where(.group).toast *){color:var(--primary-foreground)}.group-\[\.toaster\]\:border-border:is(:where(.group).toaster *){border-color:var(--border)}.group-\[\.toaster\]\:bg-background:is(:where(.group).toaster *){background-color:var(--background)}.group-\[\.toaster\]\:text-foreground:is(:where(.group).toaster *){color:var(--foreground)}.group-\[\.toaster\]\:shadow-lg:is(:where(.group).toaster *){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.selection\:bg-primary ::selection{background-color:var(--primary)}.selection\:bg-primary::selection{background-color:var(--primary)}.selection\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--primary-foreground)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-7::file-selector-button{height:calc(var(--spacing) * 7)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.first\:mt-0:first-child{margin-top:0}.first\:rounded-tl-lg:first-child{border-top-left-radius:var(--radius)}.first\:border-t:first-child{border-top-style:var(--tw-border-style);border-top-width:1px}.last\:mb-0:last-child{margin-bottom:0}.last\:rounded-tr-lg:last-child{border-top-right-radius:var(--radius)}.last\:border-r:last-child{border-right-style:var(--tw-border-style);border-right-width:1px}@media (hover:hover){.hover\:border-primary:hover{border-color:var(--primary)}.hover\:bg-\[\#2F6868\]\/90:hover{background-color:oklab(47.939% -.0574807 -.0157767/.9)}.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive) 90%,transparent)}}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\:bg-gray-700:hover{background-color:var(--color-gray-700)}.hover\:bg-green-50:hover{background-color:var(--color-green-50)}.hover\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\:bg-muted\/50:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/50:hover{background-color:color-mix(in oklab,var(--muted) 50%,transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary) 90%,transparent)}}.hover\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary) 80%,transparent)}}.hover\:bg-transparent:hover{background-color:#0000}.hover\:bg-yellow-700:hover{background-color:var(--color-yellow-700)}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-blue-800:hover{color:var(--color-blue-800)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-gray-600:hover{color:var(--color-gray-600)}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\:ring-0:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor)}.focus\:ring-0:focus,.focus\:ring-2:focus{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring) 50%,transparent)}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing) * 2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing) * 3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing) * 4)}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive) 20%,transparent)}}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:h-full[data-orientation=vertical]{height:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:.5rem}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=closed\]\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\[state\=closed\]\:animate-out[data-state=closed]{--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial;animation-name:exit;animation-duration:.15s}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:var(--secondary)}.data-\[state\=open\]\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-name:enter;animation-duration:.15s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:var(--input)}@media (min-width:40rem){.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:48rem){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media (min-width:64rem){.lg\:flex{display:flex}.lg\:hidden{display:none}}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive) 40%,transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive) 40%,transparent)}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:h-auto svg{height:auto}.\[\&_svg\]\:max-w-full svg{max-width:100%}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\&\:\:-webkit-scrollbar\]\:w-1\.5::-webkit-scrollbar{width:calc(var(--spacing) * 1.5)}.\[\&\:\:-webkit-scrollbar-thumb\]\:rounded-full::-webkit-scrollbar-thumb{border-radius:3.40282e+38px}.\[\&\:\:-webkit-scrollbar-thumb\]\:bg-gray-300::-webkit-scrollbar-thumb{background-color:var(--color-gray-300)}.\[\&\:\:-webkit-scrollbar-track\]\:bg-transparent::-webkit-scrollbar-track{background-color:#0000}.\[\&\:last-child\>td\:first-child\]\:rounded-bl-lg:last-child>td:first-child{border-bottom-left-radius:var(--radius)}.\[\&\:last-child\>td\:last-child\]\:rounded-br-lg:last-child>td:last-child{border-bottom-right-radius:var(--radius)}.\[\&\>a\]\:text-xs>a{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&\>a\]\:no-underline>a{text-decoration-line:none}.\[\&\>li\]\:mt-2>li{margin-top:calc(var(--spacing) * 2)}.\[\&\>span\]\:text-xs>span{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&\[align\=center\]\]\:text-center[align=center]{text-align:center}.\[\&\[align\=right\]\]\:text-right[align=right]{text-align:right}.shadow-inner-right{box-shadow:inset -9px 0 6px -1px #00000005}.shadow-inner-left{box-shadow:inset 9px 0 6px -1px #00000005}}:root{--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--destructive-foreground:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(87% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--radius:.625rem;--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(87% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(14.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(14.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(98.5% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(39.6% .141 25.723);--destructive-foreground:oklch(63.7% .237 25.331);--border:oklch(26.9% 0 0);--input:oklch(26.9% 0 0);--ring:oklch(43.9% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(26.9% 0 0);--sidebar-ring:oklch(43.9% 0 0)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}@property --tw-border-spacing-x{syntax:"";inherits:false;initial-value:0}@property --tw-border-spacing-y{syntax:"";inherits:false;initial-value:0}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"";inherits:false;initial-value:0}@property --tw-gradient-via-position{syntax:"";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(1turn)}}@keyframes pulse{50%{opacity:.5}}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/chatui/_next/static/media/ba9851c3c22cd980-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/chatui/_next/static/media/21350d82a1f187e9-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/chatui/_next/static/media/c5fe6dc8356a8c31-s.woff2) format("woff2");unicode-range:u+1f??}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/chatui/_next/static/media/19cfc7226ec3afaa-s.woff2) format("woff2");unicode-range:u+0370-0377,u+037a-037f,u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ff}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/chatui/_next/static/media/df0a9ae256c0569c-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/chatui/_next/static/media/8e9860b6e62d6359-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/chatui/_next/static/media/e4af272ccee01ff0-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:Inter Fallback;src:local("Arial");ascent-override:90.44%;descent-override:22.52%;line-gap-override:0.00%;size-adjust:107.12%}.__className_9a245f{font-family:Inter,Inter Fallback;font-style:normal}
    \ No newline at end of file
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/19cfc7226ec3afaa-s.woff2 b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/19cfc7226ec3afaa-s.woff2
    deleted file mode 100644
    index 9c71603a5..000000000
    Binary files a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/19cfc7226ec3afaa-s.woff2 and /dev/null differ
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/21350d82a1f187e9-s.woff2 b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/21350d82a1f187e9-s.woff2
    deleted file mode 100644
    index bc0e0ab26..000000000
    Binary files a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/21350d82a1f187e9-s.woff2 and /dev/null differ
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/8e9860b6e62d6359-s.woff2 b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/8e9860b6e62d6359-s.woff2
    deleted file mode 100644
    index 57da6f8d4..000000000
    Binary files a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/8e9860b6e62d6359-s.woff2 and /dev/null differ
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/ba9851c3c22cd980-s.woff2 b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/ba9851c3c22cd980-s.woff2
    deleted file mode 100644
    index 2cd45edf4..000000000
    Binary files a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/ba9851c3c22cd980-s.woff2 and /dev/null differ
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/c5fe6dc8356a8c31-s.woff2 b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/c5fe6dc8356a8c31-s.woff2
    deleted file mode 100644
    index b6dd1facb..000000000
    Binary files a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/c5fe6dc8356a8c31-s.woff2 and /dev/null differ
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/df0a9ae256c0569c-s.woff2 b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/df0a9ae256c0569c-s.woff2
    deleted file mode 100644
    index 072229b87..000000000
    Binary files a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/df0a9ae256c0569c-s.woff2 and /dev/null differ
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/e4af272ccee01ff0-s.p.woff2 b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/e4af272ccee01ff0-s.p.woff2
    deleted file mode 100644
    index 91dc3e852..000000000
    Binary files a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/media/e4af272ccee01ff0-s.p.woff2 and /dev/null differ
    diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/agent/__.html b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/agent/__.html
    deleted file mode 100644
    index d9e6d323b..000000000
    --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/agent/__.html
    +++ /dev/null
    @@ -1 +0,0 @@
    -Agent Chat
    Loading...
    \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/agent/__.txt b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/agent/__.txt deleted file mode 100644 index 450e65f9e..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/agent/__.txt +++ /dev/null @@ -1,20 +0,0 @@ -1:"$Sreact.fragment" -2:I[75658,["7177","static/chunks/app/layout-724e81d88e2ac312.js"],"NuqsAdapter"] -3:I[53608,[],""] -4:I[50622,[],""] -6:I[60005,[],"OutletBoundary"] -8:I[66352,[],"AsyncMetadataOutlet"] -a:I[60005,[],"ViewportBoundary"] -c:I[60005,[],"MetadataBoundary"] -d:"$Sreact.suspense" -f:I[9220,[],""] -:HL["/chatui/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -:HL["/chatui/_next/static/css/a636baa91c8d5099.css","style"] -:HL["/chatui/_next/static/css/a229bec8e039844c.css","style"] -0:{"P":null,"b":"AzzkO6kUXrjbalazKqsOf","p":"/chatui","c":["","agent","__"],"i":false,"f":[[["",{"children":["agent",{"children":[["agentName","__","d"],{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/chatui/_next/static/css/a636baa91c8d5099.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__className_9a245f","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]]}],{"children":["agent",["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["agentName","__","d"],["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":["$L5",[["$","link","0",{"rel":"stylesheet","href":"/chatui/_next/static/css/a229bec8e039844c.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L6",null,{"children":["$L7",["$","$L8",null,{"promise":"$@9"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$La",null,{"children":"$Lb"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Lc",null,{"children":["$","div",null,{"hidden":true,"children":["$","$d",null,{"fallback":null,"children":"$Le"}]}]}]]}],false]],"m":"$undefined","G":["$f",[]],"s":false,"S":true} -10:I[10483,["8447","static/chunks/75146d7d-18d3744ca4421dd9.js","9155","static/chunks/9155-f16e877949e0e565.js","8276","static/chunks/8276-151a7d1fbd73cc2c.js","7362","static/chunks/7362-ec13e4ad937ab3be.js","483","static/chunks/483-64f6250fdfd0cb86.js","6155","static/chunks/app/agent/%5BagentName%5D/page-efba2e31a23b7b89.js"],"AgentPageClient"] -5:["$","$L10",null,{"agentName":"__"}] -b:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -7:null -9:{"metadata":[["$","title","0",{"children":"Agent Chat"}],["$","meta","1",{"name":"description","content":"Agent Chat UX by Spring AI Alibaba"}]],"error":null,"digest":"$undefined"} -e:"$9:metadata" diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/graph/__.html b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/graph/__.html deleted file mode 100644 index 8404ba822..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/graph/__.html +++ /dev/null @@ -1 +0,0 @@ -Agent Chat
    \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/graph/__.txt b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/graph/__.txt deleted file mode 100644 index 8f6d331c5..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/graph/__.txt +++ /dev/null @@ -1,19 +0,0 @@ -1:"$Sreact.fragment" -2:I[75658,["7177","static/chunks/app/layout-724e81d88e2ac312.js"],"NuqsAdapter"] -3:I[53608,[],""] -4:I[50622,[],""] -6:I[60005,[],"OutletBoundary"] -8:I[66352,[],"AsyncMetadataOutlet"] -a:I[60005,[],"ViewportBoundary"] -c:I[60005,[],"MetadataBoundary"] -d:"$Sreact.suspense" -f:I[9220,[],""] -:HL["/chatui/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -:HL["/chatui/_next/static/css/a636baa91c8d5099.css","style"] -0:{"P":null,"b":"AzzkO6kUXrjbalazKqsOf","p":"/chatui","c":["","graph","__"],"i":false,"f":[[["",{"children":["graph",{"children":[["graphName","__","d"],{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/chatui/_next/static/css/a636baa91c8d5099.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__className_9a245f","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]]}],{"children":["graph",["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["graphName","__","d"],["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":["$L5",null,["$","$L6",null,{"children":["$L7",["$","$L8",null,{"promise":"$@9"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$La",null,{"children":"$Lb"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Lc",null,{"children":["$","div",null,{"hidden":true,"children":["$","$d",null,{"fallback":null,"children":"$Le"}]}]}]]}],false]],"m":"$undefined","G":["$f",[]],"s":false,"S":true} -10:I[38881,["9155","static/chunks/9155-f16e877949e0e565.js","7362","static/chunks/7362-ec13e4ad937ab3be.js","8881","static/chunks/8881-fdf9cb0eaae77899.js","5381","static/chunks/app/graph/%5BgraphName%5D/page-b874a8588ff2cd43.js"],"GraphPageClient"] -5:["$","$L10",null,{"graphName":"__"}] -b:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -7:null -9:{"metadata":[["$","title","0",{"children":"Agent Chat"}],["$","meta","1",{"name":"description","content":"Agent Chat UX by Spring AI Alibaba"}]],"error":null,"digest":"$undefined"} -e:"$9:metadata" diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/index.html b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/index.html deleted file mode 100644 index 763e63e65..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/index.html +++ /dev/null @@ -1 +0,0 @@ -Agent Chat
    \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/index.txt b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/index.txt deleted file mode 100644 index 35eb174ae..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/index.txt +++ /dev/null @@ -1,22 +0,0 @@ -1:"$Sreact.fragment" -2:I[75658,["7177","static/chunks/app/layout-724e81d88e2ac312.js"],"NuqsAdapter"] -3:I[53608,[],""] -4:I[50622,[],""] -5:I[56917,[],"ClientPageRoot"] -6:I[5073,["8447","static/chunks/75146d7d-18d3744ca4421dd9.js","9155","static/chunks/9155-f16e877949e0e565.js","8276","static/chunks/8276-151a7d1fbd73cc2c.js","7362","static/chunks/7362-ec13e4ad937ab3be.js","483","static/chunks/483-64f6250fdfd0cb86.js","8881","static/chunks/8881-fdf9cb0eaae77899.js","8974","static/chunks/app/page-5abf978952c32f27.js"],"default"] -9:I[60005,[],"OutletBoundary"] -b:I[66352,[],"AsyncMetadataOutlet"] -d:I[60005,[],"ViewportBoundary"] -f:I[60005,[],"MetadataBoundary"] -10:"$Sreact.suspense" -12:I[9220,[],""] -:HL["/chatui/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -:HL["/chatui/_next/static/css/a636baa91c8d5099.css","style"] -:HL["/chatui/_next/static/css/a229bec8e039844c.css","style"] -0:{"P":null,"b":"AzzkO6kUXrjbalazKqsOf","p":"/chatui","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/chatui/_next/static/css/a636baa91c8d5099.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__className_9a245f","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L5",null,{"Component":"$6","searchParams":{},"params":{},"promises":["$@7","$@8"]}],[["$","link","0",{"rel":"stylesheet","href":"/chatui/_next/static/css/a229bec8e039844c.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L9",null,{"children":["$La",["$","$Lb",null,{"promise":"$@c"}]]}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Ld",null,{"children":"$Le"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Lf",null,{"children":["$","div",null,{"hidden":true,"children":["$","$10",null,{"fallback":null,"children":"$L11"}]}]}]]}],false]],"m":"$undefined","G":["$12",[]],"s":false,"S":true} -7:{} -8:"$0:f:0:1:2:children:1:props:children:0:props:params" -e:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -a:null -c:{"metadata":[["$","title","0",{"children":"Agent Chat"}],["$","meta","1",{"name":"description","content":"Agent Chat UX by Spring AI Alibaba"}]],"error":null,"digest":"$undefined"} -11:"$c:metadata" diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/logo.svg b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/logo.svg deleted file mode 100644 index e43fc0085..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/logo.svg +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SAA - - - - - - - - - - - Spring AI Alibaba - - - - - - - diff --git a/agentic-ai-studio/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/agentic-ai-studio/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports deleted file mode 100644 index ff4199c0d..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports +++ /dev/null @@ -1 +0,0 @@ -io.github.agentic.spring.ai.agent.studio.SaaStudioWebModuleAutoConfiguration diff --git a/agentic-ai-studio/src/test/java/io/github/agentic/spring/ai/agentic/PoetTool.java b/agentic-ai-studio/src/test/java/io/github/agentic/spring/ai/agentic/PoetTool.java deleted file mode 100644 index 07adeb803..000000000 --- a/agentic-ai-studio/src/test/java/io/github/agentic/spring/ai/agentic/PoetTool.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2024-2026 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.github.agentic.spring.ai.agentic; - -import org.springframework.ai.chat.model.ToolContext; -import org.springframework.ai.tool.ToolCallback; -import org.springframework.ai.tool.annotation.ToolParam; -import org.springframework.ai.tool.function.FunctionToolCallback; - -import java.util.function.BiFunction; - -public class PoetTool implements BiFunction { - public int count = 0; - - public PoetTool() { - } - - public static ToolCallback createPoetToolCallback() { - return FunctionToolCallback.builder("poem", new PoetTool()) - .description("用来写诗或者散文的工具") - .inputType(String.class) - .build(); - } - - public static ToolCallback createPoetToolCallback(String name, PoetTool poetTool) { - return FunctionToolCallback.builder(name, poetTool) - .description("用来写诗或者散文的工具") - .inputType(String.class) - .build(); - } - - @Override - public String apply( - @ToolParam(description = "The original user query that triggered this tool call") String originalUserQuery, - ToolContext toolContext) { - count++; - System.out.println("Poet tool called : " + originalUserQuery); - return "在城市的缝隙里, \n" + "一束光悄悄发芽, \n" + "穿过钢筋水泥的沉默, \n" + "在风中轻轻说话。 \n" + "\n" + "夜色如墨,却不再黑, \n" - + "星星点亮了每一个角落, \n" + "我站在时间的边缘, \n" + "等一朵云,轻轻落下"; - } - -} diff --git a/agentic-ai-studio/src/test/resources/application-graph.yml b/agentic-ai-studio/src/test/resources/application-graph.yml deleted file mode 100644 index 0bbefc23b..000000000 --- a/agentic-ai-studio/src/test/resources/application-graph.yml +++ /dev/null @@ -1,10 +0,0 @@ -spring: - application: - name: agentic-ai-studio-graph-test - main: - web-application-type: servlet - -spring.ai.dashscope.api-key: ${AI_DASHSCOPE_API_KEY:test-key-for-graph-integration-test} - -server: - port: 0 diff --git a/agentic-ai-studio/src/test/resources/compatibility/2.1.0/studio-metadata.json b/agentic-ai-studio/src/test/resources/compatibility/2.1.0/studio-metadata.json deleted file mode 100644 index a2d8b0b09..000000000 --- a/agentic-ai-studio/src/test/resources/compatibility/2.1.0/studio-metadata.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "properties": [ - { - "name": "spring.ai.alibaba.agent.studio.execution.auth-token", - "type": "java.lang.String" - } - ] -} diff --git a/agentic-ai-studio/src/test/resources/logback-test.xml b/agentic-ai-studio/src/test/resources/logback-test.xml deleted file mode 100644 index f9b62a48c..000000000 --- a/agentic-ai-studio/src/test/resources/logback-test.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n - - - - - - - - - - - diff --git a/argi-agent-framework/README.md b/argi-agent-framework/README.md new file mode 100644 index 000000000..36276c26a --- /dev/null +++ b/argi-agent-framework/README.md @@ -0,0 +1,45 @@ +# ARGI Agent Framework + +## What's Agent Framework + +ARGI Agent Framework is created for Java developers to quickly and easily building, orchestrating, and deploying AI agents. This framework is built upon the ReactAgent concept which features a Reasoning-Acting loop while at the same time supports multi-agent orchestration. + +## Core Features +* **ReactAgent** +* **Multi-Agent Orchestration** +* **Context Engineering** +* **Human In The Loop** +* **A2A** +* **Rich Model, Tool and MCP Support** + +## Model Call Error Handling + +By default, exceptions caught during a synchronous model call or synchronous +streaming setup are converted into an `AssistantMessage` prefixed with +`Exception:`. To propagate those exceptions instead, opt in when building an agent: + +```java +ReactAgent agent = ReactAgent.builder() + .name("assistant") + .model(chatModel) + .throwOnModelError(true) + .build(); +``` + +`throwOnModelError` defaults to `false` and is also available on +`AgentLlmNode.builder()`. When enabled, model interceptors receive the original +exception with its type and cause intact; graph execution may wrap it while +preserving the cause chain. This allows applications to distinguish model failures +from normal responses without parsing error text. + +This setting does not add retries or change tool exception handling. Errors emitted +by a streaming publisher after setup continue to propagate in either mode, including +errors after partial output. Existing retry interceptors can still retry or wrap +exceptions according to their own configuration. + +## Related Projects +ARGI Agent Framework depends on the following projects: + +* argi-graph-core: [https://github.com/agentic-ai-java/argi/tree/main/argi-graph-core](https://github.com/agentic-ai-java/argi/tree/main/argi-graph-core) +* spring-ai-extensions: [https://github.com/agentic-ai-java/argi-extensions](https://github.com/agentic-ai-java/argi-extensions) +* spring-ai: [https://github.com/spring-projects/spring-ai](https://github.com/spring-projects/spring-ai) diff --git a/argi-agent-framework/pom.xml b/argi-agent-framework/pom.xml new file mode 100644 index 000000000..e1869b24e --- /dev/null +++ b/argi-agent-framework/pom.xml @@ -0,0 +1,134 @@ + + + + + + 4.0.0 + + + io.github.agentic-ai + argi + ${revision} + ../pom.xml + + + argi-agent-framework + jar + ARGI Agent Framework + A library for building stateful, multi-agents applications with LLMs + https://github.com/agentic-ai-java/argi + + git://github.com/agentic-ai-java/argi.git + git@github.com:agentic-ai-java/argi.git + https://github.com/agentic-ai-java/argi + + + + + io.github.agentic-ai + argi-graph-core + ${project.parent.version} + + + + io.github.a2asdk + a2a-java-sdk-client + + + + org.apache.commons + commons-collections4 + ${commons-collections4.version} + + + + com.vladsch.flexmark + flexmark-html2md-converter + 0.64.8 + + + + org.apache.httpcomponents.client5 + httpclient5 + + + + org.yaml + snakeyaml + + + + com.github.ben-manes.caffeine + caffeine + + + + org.junit.jupiter + junit-jupiter + test + + + + org.springframework.boot + spring-boot-starter-test + test + + + + org.springframework.ai + spring-ai-starter-model-openai + test + + + + org.springframework.ai + spring-ai-starter-model-deepseek + test + + + + + org.graalvm.polyglot + polyglot + ${graalvm.polyglot.version} + test + + + org.graalvm.polyglot + python-community + ${graalvm.polyglot.version} + pom + test + + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + ${maven-javadoc-plugin.version} + + + + + + + diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/Agent.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/Agent.java similarity index 96% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/Agent.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/Agent.java index 7e8d80307..cb066cd4b 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/Agent.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/Agent.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; import java.util.HashMap; import java.util.List; @@ -21,20 +21,20 @@ import java.util.Optional; import java.util.concurrent.Executor; -import io.github.agentic.spring.ai.graph.CompileConfig; -import io.github.agentic.spring.ai.graph.CompiledGraph; -import io.github.agentic.spring.ai.graph.NodeOutput; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.StateGraph; -import io.github.agentic.spring.ai.graph.exception.GraphRunnerException; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; -import io.github.agentic.spring.ai.graph.scheduling.ScheduleConfig; -import io.github.agentic.spring.ai.graph.scheduling.ScheduledAgentTask; -import io.github.agentic.spring.ai.graph.state.StateSnapshot; - -import io.github.agentic.spring.ai.graph.streaming.OutputType; -import io.github.agentic.spring.ai.graph.streaming.StreamingOutput; +import io.github.agentic.ai.graph.CompileConfig; +import io.github.agentic.ai.graph.CompiledGraph; +import io.github.agentic.ai.graph.NodeOutput; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.StateGraph; +import io.github.agentic.ai.graph.exception.GraphRunnerException; +import io.github.agentic.ai.graph.exception.GraphStateException; +import io.github.agentic.ai.graph.scheduling.ScheduleConfig; +import io.github.agentic.ai.graph.scheduling.ScheduledAgentTask; +import io.github.agentic.ai.graph.state.StateSnapshot; + +import io.github.agentic.ai.graph.streaming.OutputType; +import io.github.agentic.ai.graph.streaming.StreamingOutput; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; import org.springframework.ai.chat.messages.UserMessage; @@ -43,7 +43,7 @@ import org.springframework.scheduling.Trigger; -import static io.github.agentic.spring.ai.graph.utils.Messageutils.convertToMessages; +import static io.github.agentic.ai.graph.utils.Messageutils.convertToMessages; /** * Abstract base class for all agents in the graph system. Contains common properties and diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/AgentTool.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/AgentTool.java similarity index 96% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/AgentTool.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/AgentTool.java index edb2803b2..f2862f88f 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/AgentTool.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/AgentTool.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.tool.StateAwareToolCallback; -import io.github.agentic.spring.ai.graph.agent.tools.ToolContextHelper; -import io.github.agentic.spring.ai.graph.exception.GraphRunnerException; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.tool.StateAwareToolCallback; +import io.github.agentic.ai.graph.agent.tools.ToolContextHelper; +import io.github.agentic.ai.graph.exception.GraphRunnerException; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/BaseAgent.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/BaseAgent.java similarity index 94% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/BaseAgent.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/BaseAgent.java index 0fc80d613..14f5c649f 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/BaseAgent.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/BaseAgent.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; -import io.github.agentic.spring.ai.graph.KeyStrategy; -import io.github.agentic.spring.ai.graph.internal.node.Node; +import io.github.agentic.ai.graph.KeyStrategy; +import io.github.agentic.ai.graph.internal.node.Node; import java.lang.reflect.Type; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/Builder.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/Builder.java similarity index 94% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/Builder.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/Builder.java index 5a54199b5..ff13d0730 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/Builder.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/Builder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; import java.lang.reflect.Type; import java.time.Duration; @@ -25,18 +25,18 @@ import java.util.Objects; import java.util.concurrent.Executor; -import io.github.agentic.spring.ai.graph.CompileConfig; -import io.github.agentic.spring.ai.graph.KeyStrategy; -import io.github.agentic.spring.ai.graph.agent.hook.Hook; -import io.github.agentic.spring.ai.graph.agent.interceptor.Interceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelInterceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.StreamingModelInterceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolInterceptor; -import io.github.agentic.spring.ai.graph.checkpoint.BaseCheckpointSaver; -import io.github.agentic.spring.ai.graph.checkpoint.config.SaverConfig; - -import io.github.agentic.spring.ai.graph.serializer.StateSerializer; -import io.github.agentic.spring.ai.graph.serializer.std.SpringAIStateSerializer; +import io.github.agentic.ai.graph.CompileConfig; +import io.github.agentic.ai.graph.KeyStrategy; +import io.github.agentic.ai.graph.agent.hook.Hook; +import io.github.agentic.ai.graph.agent.interceptor.Interceptor; +import io.github.agentic.ai.graph.agent.interceptor.ModelInterceptor; +import io.github.agentic.ai.graph.agent.interceptor.StreamingModelInterceptor; +import io.github.agentic.ai.graph.agent.interceptor.ToolInterceptor; +import io.github.agentic.ai.graph.checkpoint.BaseCheckpointSaver; +import io.github.agentic.ai.graph.checkpoint.config.SaverConfig; + +import io.github.agentic.ai.graph.serializer.StateSerializer; +import io.github.agentic.ai.graph.serializer.std.SpringAIStateSerializer; import io.micrometer.observation.ObservationRegistry; import org.springframework.ai.chat.client.ChatClient; @@ -64,7 +64,7 @@ public abstract class Builder { protected String systemPrompt; // Provide customized template renderer instance, for example - // SaaStTemplateRenderer.builder().startDelimiterToken("{{").endDelimiterToken("}}").build() + // ArgiStTemplateRenderer.builder().startDelimiterToken("{{").endDelimiterToken("}}").build() protected TemplateRenderer templateRenderer; protected ChatModel model; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/DefaultBuilder.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/DefaultBuilder.java similarity index 96% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/DefaultBuilder.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/DefaultBuilder.java index 6f4684e58..683b18950 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/DefaultBuilder.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/DefaultBuilder.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; - -import io.github.agentic.spring.ai.graph.agent.extension.interceptor.AssistantMessageSanitizerInterceptor; -import io.github.agentic.spring.ai.graph.agent.hook.Hook; -import io.github.agentic.spring.ai.graph.agent.interceptor.Interceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelInterceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolInterceptor; -import io.github.agentic.spring.ai.graph.agent.node.AgentLlmNode; -import io.github.agentic.spring.ai.graph.agent.node.AgentToolNode; -import io.github.agentic.spring.ai.graph.agent.tool.ToolCallbackUtils; +package io.github.agentic.ai.graph.agent; + +import io.github.agentic.ai.graph.agent.extension.interceptor.AssistantMessageSanitizerInterceptor; +import io.github.agentic.ai.graph.agent.hook.Hook; +import io.github.agentic.ai.graph.agent.interceptor.Interceptor; +import io.github.agentic.ai.graph.agent.interceptor.ModelInterceptor; +import io.github.agentic.ai.graph.agent.interceptor.ToolInterceptor; +import io.github.agentic.ai.graph.agent.node.AgentLlmNode; +import io.github.agentic.ai.graph.agent.node.AgentToolNode; +import io.github.agentic.ai.graph.agent.tool.ToolCallbackUtils; import io.micrometer.observation.ObservationRegistry; import org.apache.commons.collections4.CollectionUtils; import org.slf4j.Logger; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/MessageToolCallResultConverter.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/MessageToolCallResultConverter.java similarity index 98% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/MessageToolCallResultConverter.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/MessageToolCallResultConverter.java index f9b6c3915..6a115e11d 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/MessageToolCallResultConverter.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/MessageToolCallResultConverter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.tool.execution.ToolCallResultConverter; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/Prioritized.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/Prioritized.java similarity index 97% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/Prioritized.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/Prioritized.java index d4f93cb7a..4d18a92bc 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/Prioritized.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/Prioritized.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; /** * Interface for objects that can be prioritized and sorted by their order value. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/ReactAgent.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/ReactAgent.java similarity index 91% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/ReactAgent.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/ReactAgent.java index 1724219c0..008dd3daf 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/ReactAgent.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/ReactAgent.java @@ -13,51 +13,51 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; - -import io.github.agentic.spring.ai.graph.CompileConfig; -import io.github.agentic.spring.ai.graph.CompiledGraph; -import io.github.agentic.spring.ai.graph.GraphResponse; -import io.github.agentic.spring.ai.graph.KeyStrategy; -import io.github.agentic.spring.ai.graph.KeyStrategyFactory; -import io.github.agentic.spring.ai.graph.NodeOutput; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.StateGraph; -import io.github.agentic.spring.ai.graph.SubGraphNode; -import io.github.agentic.spring.ai.graph.action.EdgeAction; -import io.github.agentic.spring.ai.graph.action.NodeActionWithConfig; -import io.github.agentic.spring.ai.graph.agent.exception.AgentException; -import io.github.agentic.spring.ai.graph.agent.factory.AgentBuilderFactory; -import io.github.agentic.spring.ai.graph.agent.factory.DefaultAgentBuilderFactory; -import io.github.agentic.spring.ai.graph.agent.hook.AbstractInterruptableModelHook; -import io.github.agentic.spring.ai.graph.agent.hook.AgentHook; -import io.github.agentic.spring.ai.graph.agent.hook.Hook; -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition; -import io.github.agentic.spring.ai.graph.agent.hook.InstructionAgentHook; -import io.github.agentic.spring.ai.graph.agent.hook.JumpTo; -import io.github.agentic.spring.ai.graph.agent.hook.ModelHook; -import io.github.agentic.spring.ai.graph.agent.hook.ToolInjection; -import io.github.agentic.spring.ai.graph.agent.hook.messages.MessagesAgentHook; -import io.github.agentic.spring.ai.graph.agent.hook.messages.MessagesModelHook; -import io.github.agentic.spring.ai.graph.agent.hook.returndirect.ReturnDirectModelHook; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelInterceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.StreamingModelInterceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolInterceptor; -import io.github.agentic.spring.ai.graph.agent.node.AgentLlmNode; -import io.github.agentic.spring.ai.graph.agent.node.AgentToolNode; -import io.github.agentic.spring.ai.graph.checkpoint.BaseCheckpointSaver; -import io.github.agentic.spring.ai.graph.checkpoint.Checkpoint; -import io.github.agentic.spring.ai.graph.exception.GraphRunnerException; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; -import io.github.agentic.spring.ai.graph.internal.node.Node; -import io.github.agentic.spring.ai.graph.internal.node.ResumableSubGraphAction; -import io.github.agentic.spring.ai.graph.serializer.AgentInstructionMessage; -import io.github.agentic.spring.ai.graph.serializer.StateSerializer; -import io.github.agentic.spring.ai.graph.serializer.plain_text.jackson.SpringAIJacksonStateSerializer; -import io.github.agentic.spring.ai.graph.state.strategy.AppendStrategy; -import io.github.agentic.spring.ai.graph.state.strategy.ReplaceStrategy; -import io.github.agentic.spring.ai.graph.utils.TypeRef; +package io.github.agentic.ai.graph.agent; + +import io.github.agentic.ai.graph.CompileConfig; +import io.github.agentic.ai.graph.CompiledGraph; +import io.github.agentic.ai.graph.GraphResponse; +import io.github.agentic.ai.graph.KeyStrategy; +import io.github.agentic.ai.graph.KeyStrategyFactory; +import io.github.agentic.ai.graph.NodeOutput; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.StateGraph; +import io.github.agentic.ai.graph.SubGraphNode; +import io.github.agentic.ai.graph.action.EdgeAction; +import io.github.agentic.ai.graph.action.NodeActionWithConfig; +import io.github.agentic.ai.graph.agent.exception.AgentException; +import io.github.agentic.ai.graph.agent.factory.AgentBuilderFactory; +import io.github.agentic.ai.graph.agent.factory.DefaultAgentBuilderFactory; +import io.github.agentic.ai.graph.agent.hook.AbstractInterruptableModelHook; +import io.github.agentic.ai.graph.agent.hook.AgentHook; +import io.github.agentic.ai.graph.agent.hook.Hook; +import io.github.agentic.ai.graph.agent.hook.HookPosition; +import io.github.agentic.ai.graph.agent.hook.InstructionAgentHook; +import io.github.agentic.ai.graph.agent.hook.JumpTo; +import io.github.agentic.ai.graph.agent.hook.ModelHook; +import io.github.agentic.ai.graph.agent.hook.ToolInjection; +import io.github.agentic.ai.graph.agent.hook.messages.MessagesAgentHook; +import io.github.agentic.ai.graph.agent.hook.messages.MessagesModelHook; +import io.github.agentic.ai.graph.agent.hook.returndirect.ReturnDirectModelHook; +import io.github.agentic.ai.graph.agent.interceptor.ModelInterceptor; +import io.github.agentic.ai.graph.agent.interceptor.StreamingModelInterceptor; +import io.github.agentic.ai.graph.agent.interceptor.ToolInterceptor; +import io.github.agentic.ai.graph.agent.node.AgentLlmNode; +import io.github.agentic.ai.graph.agent.node.AgentToolNode; +import io.github.agentic.ai.graph.checkpoint.BaseCheckpointSaver; +import io.github.agentic.ai.graph.checkpoint.Checkpoint; +import io.github.agentic.ai.graph.exception.GraphRunnerException; +import io.github.agentic.ai.graph.exception.GraphStateException; +import io.github.agentic.ai.graph.internal.node.Node; +import io.github.agentic.ai.graph.internal.node.ResumableSubGraphAction; +import io.github.agentic.ai.graph.serializer.AgentInstructionMessage; +import io.github.agentic.ai.graph.serializer.StateSerializer; +import io.github.agentic.ai.graph.serializer.plain_text.jackson.SpringAIJacksonStateSerializer; +import io.github.agentic.ai.graph.state.strategy.AppendStrategy; +import io.github.agentic.ai.graph.state.strategy.ReplaceStrategy; +import io.github.agentic.ai.graph.utils.TypeRef; import org.jspecify.annotations.NonNull; import org.slf4j.Logger; @@ -86,15 +86,15 @@ import java.util.concurrent.ConcurrentMap; import java.util.stream.Collectors; -import static io.github.agentic.spring.ai.graph.RunnableConfig.AGENT_MODEL_NAME; -import static io.github.agentic.spring.ai.graph.RunnableConfig.AGENT_TOOL_NAME; -import static io.github.agentic.spring.ai.graph.OverAllState.MARK_FOR_REMOVAL; -import static io.github.agentic.spring.ai.graph.StateGraph.START; -import static io.github.agentic.spring.ai.graph.action.AsyncEdgeAction.edge_async; -import static io.github.agentic.spring.ai.graph.action.AsyncNodeActionWithConfig.node_async; -import static io.github.agentic.spring.ai.graph.agent.hook.InterruptionHook.INTERRUPTION_FEEDBACK_KEY; -import static io.github.agentic.spring.ai.graph.internal.node.ResumableSubGraphAction.resumeSubGraphId; -import static io.github.agentic.spring.ai.graph.internal.node.ResumableSubGraphAction.subGraphId; +import static io.github.agentic.ai.graph.RunnableConfig.AGENT_MODEL_NAME; +import static io.github.agentic.ai.graph.RunnableConfig.AGENT_TOOL_NAME; +import static io.github.agentic.ai.graph.OverAllState.MARK_FOR_REMOVAL; +import static io.github.agentic.ai.graph.StateGraph.START; +import static io.github.agentic.ai.graph.action.AsyncEdgeAction.edge_async; +import static io.github.agentic.ai.graph.action.AsyncNodeActionWithConfig.node_async; +import static io.github.agentic.ai.graph.agent.hook.InterruptionHook.INTERRUPTION_FEEDBACK_KEY; +import static io.github.agentic.ai.graph.internal.node.ResumableSubGraphAction.resumeSubGraphId; +import static io.github.agentic.ai.graph.internal.node.ResumableSubGraphAction.subGraphId; import static java.lang.String.format; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/a2a/A2aNodeActionWithConfig.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/a2a/A2aNodeActionWithConfig.java similarity index 97% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/a2a/A2aNodeActionWithConfig.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/a2a/A2aNodeActionWithConfig.java index 241483a36..6dff17a0b 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/a2a/A2aNodeActionWithConfig.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/a2a/A2aNodeActionWithConfig.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.a2a; - -import io.github.agentic.spring.ai.graph.CompileConfig; -import io.github.agentic.spring.ai.graph.GraphResponse; -import io.github.agentic.spring.ai.graph.NodeOutput; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.action.NodeActionWithConfig; -import io.github.agentic.spring.ai.graph.async.AsyncGenerator; -import io.github.agentic.spring.ai.graph.async.AsyncGeneratorQueue; -import io.github.agentic.spring.ai.graph.streaming.OutputType; -import io.github.agentic.spring.ai.graph.streaming.StreamingOutput; +package io.github.agentic.ai.graph.agent.a2a; + +import io.github.agentic.ai.graph.CompileConfig; +import io.github.agentic.ai.graph.GraphResponse; +import io.github.agentic.ai.graph.NodeOutput; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.action.NodeActionWithConfig; +import io.github.agentic.ai.graph.async.AsyncGenerator; +import io.github.agentic.ai.graph.async.AsyncGeneratorQueue; +import io.github.agentic.ai.graph.streaming.OutputType; +import io.github.agentic.ai.graph.streaming.StreamingOutput; import org.apache.hc.client5.http.classic.methods.HttpPost; import org.apache.hc.client5.http.impl.classic.CloseableHttpClient; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/a2a/A2aRemoteAgent.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/a2a/A2aRemoteAgent.java similarity index 88% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/a2a/A2aRemoteAgent.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/a2a/A2aRemoteAgent.java index d3cff2c0b..a56867185 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/a2a/A2aRemoteAgent.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/a2a/A2aRemoteAgent.java @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.a2a; - -import io.github.agentic.spring.ai.graph.CompileConfig; -import io.github.agentic.spring.ai.graph.CompiledGraph; -import io.github.agentic.spring.ai.graph.KeyStrategy; -import io.github.agentic.spring.ai.graph.KeyStrategyFactory; -import io.github.agentic.spring.ai.graph.StateGraph; -import io.github.agentic.spring.ai.graph.SubGraphNode; -import io.github.agentic.spring.ai.graph.action.AsyncNodeActionWithConfig; -import io.github.agentic.spring.ai.graph.agent.BaseAgent; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; -import io.github.agentic.spring.ai.graph.internal.node.Node; -import io.github.agentic.spring.ai.graph.scheduling.ScheduleConfig; -import io.github.agentic.spring.ai.graph.scheduling.ScheduledAgentTask; -import io.github.agentic.spring.ai.graph.state.strategy.AppendStrategy; +package io.github.agentic.ai.graph.agent.a2a; + +import io.github.agentic.ai.graph.CompileConfig; +import io.github.agentic.ai.graph.CompiledGraph; +import io.github.agentic.ai.graph.KeyStrategy; +import io.github.agentic.ai.graph.KeyStrategyFactory; +import io.github.agentic.ai.graph.StateGraph; +import io.github.agentic.ai.graph.SubGraphNode; +import io.github.agentic.ai.graph.action.AsyncNodeActionWithConfig; +import io.github.agentic.ai.graph.agent.BaseAgent; +import io.github.agentic.ai.graph.exception.GraphStateException; +import io.github.agentic.ai.graph.internal.node.Node; +import io.github.agentic.ai.graph.scheduling.ScheduleConfig; +import io.github.agentic.ai.graph.scheduling.ScheduledAgentTask; +import io.github.agentic.ai.graph.state.strategy.AppendStrategy; import io.a2a.spec.AgentCard; import java.util.HashMap; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/a2a/AgentCardProvider.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/a2a/AgentCardProvider.java similarity index 96% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/a2a/AgentCardProvider.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/a2a/AgentCardProvider.java index 97c432091..e29b53046 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/a2a/AgentCardProvider.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/a2a/AgentCardProvider.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.a2a; +package io.github.agentic.ai.graph.agent.a2a; /** * A2A Agent Card Provider. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/a2a/AgentCardWrapper.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/a2a/AgentCardWrapper.java similarity index 98% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/a2a/AgentCardWrapper.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/a2a/AgentCardWrapper.java index 8a7b6e3d3..9978aca9e 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/a2a/AgentCardWrapper.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/a2a/AgentCardWrapper.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.a2a; +package io.github.agentic.ai.graph.agent.a2a; import java.util.List; import java.util.Map; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/a2a/RemoteAgentCardProvider.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/a2a/RemoteAgentCardProvider.java similarity index 97% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/a2a/RemoteAgentCardProvider.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/a2a/RemoteAgentCardProvider.java index f6267a08b..6e0cfbfe5 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/a2a/RemoteAgentCardProvider.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/a2a/RemoteAgentCardProvider.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.a2a; +package io.github.agentic.ai.graph.agent.a2a; import java.util.HashMap; import java.util.Map; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/exception/AgentException.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/exception/AgentException.java similarity index 94% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/exception/AgentException.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/exception/AgentException.java index 98d6baac4..74617792f 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/exception/AgentException.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/exception/AgentException.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.exception; +package io.github.agentic.ai.graph.agent.exception; /** * @author yuluo diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/EditResult.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/EditResult.java similarity index 95% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/EditResult.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/EditResult.java index b8362bb67..d1a599384 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/EditResult.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/EditResult.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.file; +package io.github.agentic.ai.graph.agent.extension.file; import java.util.Map; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/FileData.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/FileData.java similarity index 95% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/FileData.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/FileData.java index 2501e2c26..04e37a9e8 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/FileData.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/FileData.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.file; +package io.github.agentic.ai.graph.agent.extension.file; import java.util.List; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/FileInfo.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/FileInfo.java similarity index 95% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/FileInfo.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/FileInfo.java index e57b315f1..706157800 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/FileInfo.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/FileInfo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.file; +package io.github.agentic.ai.graph.agent.extension.file; /** * Structured file listing information. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/FilesystemBackend.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/FilesystemBackend.java similarity index 98% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/FilesystemBackend.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/FilesystemBackend.java index 39a97c029..b05baa9d1 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/FilesystemBackend.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/FilesystemBackend.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.file; +package io.github.agentic.ai.graph.agent.extension.file; import java.util.List; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/GrepMatch.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/GrepMatch.java similarity index 94% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/GrepMatch.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/GrepMatch.java index 578f5f55e..74fab4a83 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/GrepMatch.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/GrepMatch.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.file; +package io.github.agentic.ai.graph.agent.extension.file; /** * Structured grep match entry. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/LocalFilesystemBackend.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/LocalFilesystemBackend.java similarity index 99% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/LocalFilesystemBackend.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/LocalFilesystemBackend.java index acbd906df..e5810ce0c 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/LocalFilesystemBackend.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/LocalFilesystemBackend.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.file; +package io.github.agentic.ai.graph.agent.extension.file; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/WriteResult.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/WriteResult.java similarity index 94% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/WriteResult.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/WriteResult.java index a11a0ca4a..63f8e6a71 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/file/WriteResult.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/file/WriteResult.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.file; +package io.github.agentic.ai.graph.agent.extension.file; import java.util.Map; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/AssistantMessageSanitizerInterceptor.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/interceptor/AssistantMessageSanitizerInterceptor.java similarity index 91% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/AssistantMessageSanitizerInterceptor.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/interceptor/AssistantMessageSanitizerInterceptor.java index 49816ca23..6c90b17f4 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/AssistantMessageSanitizerInterceptor.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/interceptor/AssistantMessageSanitizerInterceptor.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.interceptor; +package io.github.agentic.ai.graph.agent.extension.interceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelCallHandler; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelInterceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelResponse; +import io.github.agentic.ai.graph.agent.interceptor.ModelCallHandler; +import io.github.agentic.ai.graph.agent.interceptor.ModelInterceptor; +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest; +import io.github.agentic.ai.graph.agent.interceptor.ModelResponse; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; @@ -60,7 +60,7 @@ * disabled via {@code ReactAgent.builder().assistantMessageSanitizerEnabled(false)} for users * who require a literal {@code "content": null} once upstream provides it.

    * - * @see Issue #4561 + * @see Issue #4561 */ public class AssistantMessageSanitizerInterceptor extends ModelInterceptor { diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/FilesystemInterceptor.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/interceptor/FilesystemInterceptor.java similarity index 89% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/FilesystemInterceptor.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/interceptor/FilesystemInterceptor.java index 6d87cb58f..0b1db3fef 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/FilesystemInterceptor.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/interceptor/FilesystemInterceptor.java @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.interceptor; - -import io.github.agentic.spring.ai.graph.agent.extension.file.FilesystemBackend; -import io.github.agentic.spring.ai.graph.agent.extension.file.LocalFilesystemBackend; -import io.github.agentic.spring.ai.graph.agent.extension.tools.filesystem.EditFileTool; -import io.github.agentic.spring.ai.graph.agent.extension.tools.filesystem.GlobTool; -import io.github.agentic.spring.ai.graph.agent.extension.tools.filesystem.GrepTool; -import io.github.agentic.spring.ai.graph.agent.extension.tools.filesystem.ListFilesTool; -import io.github.agentic.spring.ai.graph.agent.extension.tools.filesystem.ReadFileTool; -import io.github.agentic.spring.ai.graph.agent.extension.tools.filesystem.WriteFileTool; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelCallHandler; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelInterceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelResponse; +package io.github.agentic.ai.graph.agent.extension.interceptor; + +import io.github.agentic.ai.graph.agent.extension.file.FilesystemBackend; +import io.github.agentic.ai.graph.agent.extension.file.LocalFilesystemBackend; +import io.github.agentic.ai.graph.agent.extension.tools.filesystem.EditFileTool; +import io.github.agentic.ai.graph.agent.extension.tools.filesystem.GlobTool; +import io.github.agentic.ai.graph.agent.extension.tools.filesystem.GrepTool; +import io.github.agentic.ai.graph.agent.extension.tools.filesystem.ListFilesTool; +import io.github.agentic.ai.graph.agent.extension.tools.filesystem.ReadFileTool; +import io.github.agentic.ai.graph.agent.extension.tools.filesystem.WriteFileTool; +import io.github.agentic.ai.graph.agent.interceptor.ModelCallHandler; +import io.github.agentic.ai.graph.agent.interceptor.ModelInterceptor; +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest; +import io.github.agentic.ai.graph.agent.interceptor.ModelResponse; import org.springframework.ai.chat.messages.SystemMessage; import org.springframework.ai.tool.ToolCallback; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/LargeResultEvictionInterceptor.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/interceptor/LargeResultEvictionInterceptor.java similarity index 94% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/LargeResultEvictionInterceptor.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/interceptor/LargeResultEvictionInterceptor.java index aa1a74394..8fdf42ff6 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/LargeResultEvictionInterceptor.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/interceptor/LargeResultEvictionInterceptor.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.interceptor; - -import io.github.agentic.spring.ai.graph.agent.extension.file.FilesystemBackend; -import io.github.agentic.spring.ai.graph.agent.extension.file.LocalFilesystemBackend; -import io.github.agentic.spring.ai.graph.agent.extension.file.WriteResult; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallHandler; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallRequest; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallResponse; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolInterceptor; +package io.github.agentic.ai.graph.agent.extension.interceptor; + +import io.github.agentic.ai.graph.agent.extension.file.FilesystemBackend; +import io.github.agentic.ai.graph.agent.extension.file.LocalFilesystemBackend; +import io.github.agentic.ai.graph.agent.extension.file.WriteResult; +import io.github.agentic.ai.graph.agent.interceptor.ToolCallHandler; +import io.github.agentic.ai.graph.agent.interceptor.ToolCallRequest; +import io.github.agentic.ai.graph.agent.interceptor.ToolCallResponse; +import io.github.agentic.ai.graph.agent.interceptor.ToolInterceptor; import java.util.ArrayList; import java.util.HashSet; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/PatchToolCallsInterceptor.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/interceptor/PatchToolCallsInterceptor.java similarity index 93% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/PatchToolCallsInterceptor.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/interceptor/PatchToolCallsInterceptor.java index f7c4cdb6a..bdcc3eb1c 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/PatchToolCallsInterceptor.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/interceptor/PatchToolCallsInterceptor.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.interceptor; +package io.github.agentic.ai.graph.agent.extension.interceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelCallHandler; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelInterceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelResponse; +import io.github.agentic.ai.graph.agent.interceptor.ModelCallHandler; +import io.github.agentic.ai.graph.agent.interceptor.ModelInterceptor; +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest; +import io.github.agentic.ai.graph.agent.interceptor.ModelResponse; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/SubAgentInterceptor.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/interceptor/SubAgentInterceptor.java similarity index 95% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/SubAgentInterceptor.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/interceptor/SubAgentInterceptor.java index cba531c54..ed6def56f 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/SubAgentInterceptor.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/interceptor/SubAgentInterceptor.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.interceptor; - -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.extension.tools.model.TaskTool; -import io.github.agentic.spring.ai.graph.agent.hook.Hook; -import io.github.agentic.spring.ai.graph.agent.interceptor.Interceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelCallHandler; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelInterceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelResponse; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +package io.github.agentic.ai.graph.agent.extension.interceptor; + +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.extension.tools.model.TaskTool; +import io.github.agentic.ai.graph.agent.hook.Hook; +import io.github.agentic.ai.graph.agent.interceptor.Interceptor; +import io.github.agentic.ai.graph.agent.interceptor.ModelCallHandler; +import io.github.agentic.ai.graph.agent.interceptor.ModelInterceptor; +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest; +import io.github.agentic.ai.graph.agent.interceptor.ModelResponse; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.springframework.ai.chat.messages.SystemMessage; import org.springframework.ai.chat.model.ChatModel; @@ -245,7 +245,7 @@ private ReactAgent createGeneralPurposeAgent( List tools, List interceptors) { - io.github.agentic.spring.ai.graph.agent.Builder builder = ReactAgent.builder() + io.github.agentic.ai.graph.agent.Builder builder = ReactAgent.builder() .name("general-purpose") .model(model) .systemPrompt(DEFAULT_SUBAGENT_PROMPT) @@ -392,7 +392,7 @@ public Builder includeGeneralPurpose(boolean include) { } private ReactAgent createSubAgentFromSpec(SubAgentSpec spec) { - io.github.agentic.spring.ai.graph.agent.Builder builder = ReactAgent.builder() + io.github.agentic.ai.graph.agent.Builder builder = ReactAgent.builder() .name(spec.getName()) .description(spec.getDescription()) .instruction(spec.getSystemPrompt()) diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/SubAgentSpec.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/interceptor/SubAgentSpec.java similarity index 96% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/SubAgentSpec.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/interceptor/SubAgentSpec.java index a632f0a1c..323958447 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/SubAgentSpec.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/interceptor/SubAgentSpec.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.interceptor; +package io.github.agentic.ai.graph.agent.extension.interceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelInterceptor; +import io.github.agentic.ai.graph.agent.interceptor.ModelInterceptor; import org.springframework.ai.chat.model.ChatModel; import org.springframework.ai.tool.ToolCallback; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/EditFileTool.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/EditFileTool.java similarity index 96% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/EditFileTool.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/EditFileTool.java index 156de6567..b4544a681 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/EditFileTool.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/EditFileTool.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.tools.filesystem; +package io.github.agentic.ai.graph.agent.extension.tools.filesystem; -import io.github.agentic.spring.ai.graph.agent.extension.file.EditResult; -import io.github.agentic.spring.ai.graph.agent.extension.file.FilesystemBackend; +import io.github.agentic.ai.graph.agent.extension.file.EditResult; +import io.github.agentic.ai.graph.agent.extension.file.FilesystemBackend; import org.springframework.ai.chat.model.ToolContext; import org.springframework.ai.tool.ToolCallback; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/FileSystemTools.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/FileSystemTools.java similarity index 95% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/FileSystemTools.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/FileSystemTools.java index eea9dbd58..08ca6ceb5 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/FileSystemTools.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/FileSystemTools.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.tools.filesystem; +package io.github.agentic.ai.graph.agent.extension.tools.filesystem; -import io.github.agentic.spring.ai.graph.agent.extension.file.EditResult; -import io.github.agentic.spring.ai.graph.agent.extension.file.FileInfo; -import io.github.agentic.spring.ai.graph.agent.extension.file.LocalFilesystemBackend; -import io.github.agentic.spring.ai.graph.agent.extension.file.WriteResult; +import io.github.agentic.ai.graph.agent.extension.file.EditResult; +import io.github.agentic.ai.graph.agent.extension.file.FileInfo; +import io.github.agentic.ai.graph.agent.extension.file.LocalFilesystemBackend; +import io.github.agentic.ai.graph.agent.extension.file.WriteResult; import org.springframework.ai.chat.model.ToolContext; import org.springframework.ai.tool.annotation.Tool; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/GlobTool.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/GlobTool.java similarity index 96% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/GlobTool.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/GlobTool.java index 20b07dcd2..c022344d5 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/GlobTool.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/GlobTool.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.tools.filesystem; +package io.github.agentic.ai.graph.agent.extension.tools.filesystem; -import io.github.agentic.spring.ai.graph.agent.extension.file.FilesystemBackend; +import io.github.agentic.ai.graph.agent.extension.file.FilesystemBackend; import org.springframework.ai.chat.model.ToolContext; import org.springframework.ai.tool.ToolCallback; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/GrepTool.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/GrepTool.java similarity index 96% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/GrepTool.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/GrepTool.java index aaf314f17..38874be89 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/GrepTool.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/GrepTool.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.tools.filesystem; +package io.github.agentic.ai.graph.agent.extension.tools.filesystem; -import io.github.agentic.spring.ai.graph.agent.extension.file.FilesystemBackend; -import io.github.agentic.spring.ai.graph.agent.extension.file.GrepMatch; +import io.github.agentic.ai.graph.agent.extension.file.FilesystemBackend; +import io.github.agentic.ai.graph.agent.extension.file.GrepMatch; import org.springframework.ai.chat.model.ToolContext; import org.springframework.ai.tool.ToolCallback; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/ListFilesTool.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/ListFilesTool.java similarity index 97% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/ListFilesTool.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/ListFilesTool.java index b081a19b3..05bd2fb9d 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/ListFilesTool.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/ListFilesTool.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.tools.filesystem; +package io.github.agentic.ai.graph.agent.extension.tools.filesystem; -import io.github.agentic.spring.ai.graph.agent.extension.file.FileInfo; -import io.github.agentic.spring.ai.graph.agent.extension.file.FilesystemBackend; +import io.github.agentic.ai.graph.agent.extension.file.FileInfo; +import io.github.agentic.ai.graph.agent.extension.file.FilesystemBackend; import org.springframework.ai.chat.model.ToolContext; import org.springframework.ai.tool.ToolCallback; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/ReadFileTool.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/ReadFileTool.java similarity index 98% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/ReadFileTool.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/ReadFileTool.java index fc591b9ea..76de3604a 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/ReadFileTool.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/ReadFileTool.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.tools.filesystem; +package io.github.agentic.ai.graph.agent.extension.tools.filesystem; -import io.github.agentic.spring.ai.graph.agent.extension.file.FilesystemBackend; +import io.github.agentic.ai.graph.agent.extension.file.FilesystemBackend; import org.springframework.ai.chat.model.ToolContext; import org.springframework.ai.tool.ToolCallback; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/WriteFileTool.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/WriteFileTool.java similarity index 94% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/WriteFileTool.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/WriteFileTool.java index 29ba197aa..729ea3f03 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/WriteFileTool.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/WriteFileTool.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.tools.filesystem; +package io.github.agentic.ai.graph.agent.extension.tools.filesystem; -import io.github.agentic.spring.ai.graph.agent.extension.file.FilesystemBackend; -import io.github.agentic.spring.ai.graph.agent.extension.file.WriteResult; +import io.github.agentic.ai.graph.agent.extension.file.FilesystemBackend; +import io.github.agentic.ai.graph.agent.extension.file.WriteResult; import org.springframework.ai.chat.model.ToolContext; import org.springframework.ai.tool.ToolCallback; diff --git a/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/model/TaskTool.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/model/TaskTool.java new file mode 100644 index 000000000..5b6178045 --- /dev/null +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/extension/tools/model/TaskTool.java @@ -0,0 +1,100 @@ +/* + * Copyright 2024-2026 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.github.agentic.ai.graph.agent.extension.tools.model; + +import io.github.agentic.ai.graph.agent.ReactAgent; + +import org.springframework.ai.chat.messages.AssistantMessage; +import org.springframework.ai.chat.model.ToolContext; +import org.springframework.ai.tool.ToolCallback; +import org.springframework.ai.tool.function.FunctionToolCallback; + +import java.util.Map; +import java.util.function.BiFunction; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; + +/** + * Tool that enables invoking subagents to handle complex, isolated tasks. + * + * This tool allows the main agent to delegate work to specialized subagents, + * each with their own context and capabilities. + */ +public class TaskTool implements BiFunction { + + private final Map subAgents; + + public TaskTool(Map subAgents) { + this.subAgents = subAgents; + } + + @Override + public String apply(TaskRequest request, ToolContext toolContext) { + // Validate subagent type + if (!subAgents.containsKey(request.subagentType)) { + return "Error: invoked agent of type " + request.subagentType + + ", the only allowed types are " + subAgents.keySet(); + } + + // Get the subagent + ReactAgent subAgent = subAgents.get(request.subagentType); + + try { + // Invoke the subagent with the task description + AssistantMessage result = subAgent.call(request.description); + + // Return the subagent's response + return result.getText(); + } + catch (Exception e) { + return "Error executing subagent task: " + e.getMessage(); + } + } + + /** + * Create a ToolCallback for the task tool. + */ + public static ToolCallback createTaskToolCallback(Map subAgents, String description) { + return FunctionToolCallback.builder("task", new TaskTool(subAgents)) + .description(description) + .inputType(TaskRequest.class) + .build(); + } + + /** + * Request structure for the task tool. + */ + public static class TaskRequest { + + @JsonProperty(required = true) + @JsonPropertyDescription("Detailed description of the task to be performed by the subagent") + public String description; + + @JsonProperty(required = true, value = "subagent_type") + @JsonPropertyDescription("The type of subagent to use for this task") + public String subagentType; + + public TaskRequest() { + } + + public TaskRequest(String description, String subagentType) { + this.description = description; + this.subagentType = subagentType; + } + } +} + diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/factory/AgentBuilderFactory.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/factory/AgentBuilderFactory.java similarity index 85% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/factory/AgentBuilderFactory.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/factory/AgentBuilderFactory.java index 4c5330f1f..eb2ccccfd 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/factory/AgentBuilderFactory.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/factory/AgentBuilderFactory.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.factory; +package io.github.agentic.ai.graph.agent.factory; -import io.github.agentic.spring.ai.graph.agent.Builder; +import io.github.agentic.ai.graph.agent.Builder; public interface AgentBuilderFactory { diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/factory/DefaultAgentBuilderFactory.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/factory/DefaultAgentBuilderFactory.java similarity index 81% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/factory/DefaultAgentBuilderFactory.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/factory/DefaultAgentBuilderFactory.java index 8a72a32b7..9c658f081 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/factory/DefaultAgentBuilderFactory.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/factory/DefaultAgentBuilderFactory.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.factory; +package io.github.agentic.ai.graph.agent.factory; -import io.github.agentic.spring.ai.graph.agent.Builder; -import io.github.agentic.spring.ai.graph.agent.DefaultBuilder; +import io.github.agentic.ai.graph.agent.Builder; +import io.github.agentic.ai.graph.agent.DefaultBuilder; public class DefaultAgentBuilderFactory implements AgentBuilderFactory { diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/FlowAgent.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/FlowAgent.java similarity index 84% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/FlowAgent.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/FlowAgent.java index 72f48c3df..85be7c114 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/FlowAgent.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/FlowAgent.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.agent; - -import io.github.agentic.spring.ai.graph.CompileConfig; -import io.github.agentic.spring.ai.graph.CompiledGraph; -import io.github.agentic.spring.ai.graph.StateGraph; -import io.github.agentic.spring.ai.graph.agent.Agent; -import io.github.agentic.spring.ai.graph.agent.flow.builder.FlowGraphBuilder; -import io.github.agentic.spring.ai.graph.agent.hook.Hook; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; -import io.github.agentic.spring.ai.graph.scheduling.ScheduleConfig; -import io.github.agentic.spring.ai.graph.scheduling.ScheduledAgentTask; -import io.github.agentic.spring.ai.graph.serializer.StateSerializer; +package io.github.agentic.ai.graph.agent.flow.agent; + +import io.github.agentic.ai.graph.CompileConfig; +import io.github.agentic.ai.graph.CompiledGraph; +import io.github.agentic.ai.graph.StateGraph; +import io.github.agentic.ai.graph.agent.Agent; +import io.github.agentic.ai.graph.agent.flow.builder.FlowGraphBuilder; +import io.github.agentic.ai.graph.agent.hook.Hook; +import io.github.agentic.ai.graph.exception.GraphStateException; +import io.github.agentic.ai.graph.scheduling.ScheduleConfig; +import io.github.agentic.ai.graph.scheduling.ScheduledAgentTask; +import io.github.agentic.ai.graph.serializer.StateSerializer; import java.util.List; import java.util.concurrent.Executor; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/LlmRoutingAgent.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/LlmRoutingAgent.java similarity index 88% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/LlmRoutingAgent.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/LlmRoutingAgent.java index a2aa93fd6..1e69a88b6 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/LlmRoutingAgent.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/LlmRoutingAgent.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.agent; +package io.github.agentic.ai.graph.agent.flow.agent; -import io.github.agentic.spring.ai.graph.StateGraph; -import io.github.agentic.spring.ai.graph.agent.flow.builder.FlowAgentBuilder; -import io.github.agentic.spring.ai.graph.agent.flow.builder.FlowGraphBuilder; -import io.github.agentic.spring.ai.graph.agent.flow.enums.FlowAgentEnum; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; +import io.github.agentic.ai.graph.StateGraph; +import io.github.agentic.ai.graph.agent.flow.builder.FlowAgentBuilder; +import io.github.agentic.ai.graph.agent.flow.builder.FlowGraphBuilder; +import io.github.agentic.ai.graph.agent.flow.enums.FlowAgentEnum; +import io.github.agentic.ai.graph.exception.GraphStateException; import org.springframework.ai.chat.model.ChatModel; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/LoopAgent.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/LoopAgent.java similarity index 86% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/LoopAgent.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/LoopAgent.java index dba85dfd7..da23192f1 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/LoopAgent.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/LoopAgent.java @@ -14,15 +14,15 @@ * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.agent; - -import io.github.agentic.spring.ai.graph.StateGraph; -import io.github.agentic.spring.ai.graph.agent.Agent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.loop.LoopStrategy; -import io.github.agentic.spring.ai.graph.agent.flow.builder.FlowAgentBuilder; -import io.github.agentic.spring.ai.graph.agent.flow.builder.FlowGraphBuilder; -import io.github.agentic.spring.ai.graph.agent.flow.enums.FlowAgentEnum; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; +package io.github.agentic.ai.graph.agent.flow.agent; + +import io.github.agentic.ai.graph.StateGraph; +import io.github.agentic.ai.graph.agent.Agent; +import io.github.agentic.ai.graph.agent.flow.agent.loop.LoopStrategy; +import io.github.agentic.ai.graph.agent.flow.builder.FlowAgentBuilder; +import io.github.agentic.ai.graph.agent.flow.builder.FlowGraphBuilder; +import io.github.agentic.ai.graph.agent.flow.enums.FlowAgentEnum; +import io.github.agentic.ai.graph.exception.GraphStateException; import java.util.List; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/ParallelAgent.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/ParallelAgent.java similarity index 94% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/ParallelAgent.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/ParallelAgent.java index 19b8189bc..878d7064f 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/ParallelAgent.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/ParallelAgent.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.agent; - -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.StateGraph; -import io.github.agentic.spring.ai.graph.agent.Agent; -import io.github.agentic.spring.ai.graph.agent.BaseAgent; -import io.github.agentic.spring.ai.graph.agent.flow.builder.FlowAgentBuilder; -import io.github.agentic.spring.ai.graph.agent.flow.builder.FlowGraphBuilder; -import io.github.agentic.spring.ai.graph.agent.flow.enums.FlowAgentEnum; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; -import io.github.agentic.spring.ai.graph.internal.node.ParallelNode; +package io.github.agentic.ai.graph.agent.flow.agent; + +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.StateGraph; +import io.github.agentic.ai.graph.agent.Agent; +import io.github.agentic.ai.graph.agent.BaseAgent; +import io.github.agentic.ai.graph.agent.flow.builder.FlowAgentBuilder; +import io.github.agentic.ai.graph.agent.flow.builder.FlowGraphBuilder; +import io.github.agentic.ai.graph.agent.flow.enums.FlowAgentEnum; +import io.github.agentic.ai.graph.exception.GraphStateException; +import io.github.agentic.ai.graph.internal.node.ParallelNode; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/SequentialAgent.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/SequentialAgent.java similarity index 80% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/SequentialAgent.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/SequentialAgent.java index b66cea670..7caea3e6d 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/SequentialAgent.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/SequentialAgent.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.agent; +package io.github.agentic.ai.graph.agent.flow.agent; -import io.github.agentic.spring.ai.graph.StateGraph; -import io.github.agentic.spring.ai.graph.agent.flow.builder.FlowAgentBuilder; -import io.github.agentic.spring.ai.graph.agent.flow.builder.FlowGraphBuilder; -import io.github.agentic.spring.ai.graph.agent.flow.enums.FlowAgentEnum; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; +import io.github.agentic.ai.graph.StateGraph; +import io.github.agentic.ai.graph.agent.flow.builder.FlowAgentBuilder; +import io.github.agentic.ai.graph.agent.flow.builder.FlowGraphBuilder; +import io.github.agentic.ai.graph.agent.flow.enums.FlowAgentEnum; +import io.github.agentic.ai.graph.exception.GraphStateException; public class SequentialAgent extends FlowAgent { diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/loop/ArrayLoopStrategy.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/loop/ArrayLoopStrategy.java similarity index 96% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/loop/ArrayLoopStrategy.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/loop/ArrayLoopStrategy.java index 50f6a9284..d45628052 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/loop/ArrayLoopStrategy.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/loop/ArrayLoopStrategy.java @@ -14,9 +14,9 @@ * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.agent.loop; +package io.github.agentic.ai.graph.agent.flow.agent.loop; -import io.github.agentic.spring.ai.graph.OverAllState; +import io.github.agentic.ai.graph.OverAllState; import org.springframework.ai.chat.messages.Message; import org.springframework.ai.chat.messages.SystemMessage; import org.springframework.ai.chat.messages.UserMessage; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/loop/ConditionLoopStrategy.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/loop/ConditionLoopStrategy.java similarity index 94% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/loop/ConditionLoopStrategy.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/loop/ConditionLoopStrategy.java index b5c736229..baa2c0faf 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/loop/ConditionLoopStrategy.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/loop/ConditionLoopStrategy.java @@ -14,9 +14,9 @@ * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.agent.loop; +package io.github.agentic.ai.graph.agent.flow.agent.loop; -import io.github.agentic.spring.ai.graph.OverAllState; +import io.github.agentic.ai.graph.OverAllState; import org.springframework.ai.chat.messages.Message; import org.springframework.ai.chat.messages.SystemMessage; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/loop/CountLoopStrategy.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/loop/CountLoopStrategy.java similarity index 92% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/loop/CountLoopStrategy.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/loop/CountLoopStrategy.java index 383af8aa9..59ceef044 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/loop/CountLoopStrategy.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/loop/CountLoopStrategy.java @@ -14,9 +14,9 @@ * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.agent.loop; +package io.github.agentic.ai.graph.agent.flow.agent.loop; -import io.github.agentic.spring.ai.graph.OverAllState; +import io.github.agentic.ai.graph.OverAllState; import java.util.Map; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/loop/LoopMode.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/loop/LoopMode.java similarity index 95% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/loop/LoopMode.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/loop/LoopMode.java index 9f20dbe76..634746407 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/loop/LoopMode.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/loop/LoopMode.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.agent.loop; +package io.github.agentic.ai.graph.agent.flow.agent.loop; import org.springframework.ai.chat.messages.Message; import org.springframework.core.convert.converter.Converter; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/loop/LoopStrategy.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/loop/LoopStrategy.java similarity index 95% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/loop/LoopStrategy.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/loop/LoopStrategy.java index 94520864b..d2edae0b7 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/agent/loop/LoopStrategy.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/agent/loop/LoopStrategy.java @@ -14,9 +14,9 @@ * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.agent.loop; +package io.github.agentic.ai.graph.agent.flow.agent.loop; -import io.github.agentic.spring.ai.graph.OverAllState; +import io.github.agentic.ai.graph.OverAllState; import java.util.List; import java.util.Map; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/builder/FlowAgentBuilder.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/builder/FlowAgentBuilder.java similarity index 90% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/builder/FlowAgentBuilder.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/builder/FlowAgentBuilder.java index 3c57df35f..3ec6ef66b 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/builder/FlowAgentBuilder.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/builder/FlowAgentBuilder.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.builder; - -import io.github.agentic.spring.ai.graph.CompileConfig; -import io.github.agentic.spring.ai.graph.agent.Agent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.FlowAgent; -import io.github.agentic.spring.ai.graph.agent.hook.Hook; -import io.github.agentic.spring.ai.graph.checkpoint.BaseCheckpointSaver; -import io.github.agentic.spring.ai.graph.checkpoint.config.SaverConfig; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; -import io.github.agentic.spring.ai.graph.serializer.StateSerializer; +package io.github.agentic.ai.graph.agent.flow.builder; + +import io.github.agentic.ai.graph.CompileConfig; +import io.github.agentic.ai.graph.agent.Agent; +import io.github.agentic.ai.graph.agent.flow.agent.FlowAgent; +import io.github.agentic.ai.graph.agent.hook.Hook; +import io.github.agentic.ai.graph.checkpoint.BaseCheckpointSaver; +import io.github.agentic.ai.graph.checkpoint.config.SaverConfig; +import io.github.agentic.ai.graph.exception.GraphStateException; +import io.github.agentic.ai.graph.serializer.StateSerializer; import java.util.ArrayList; import java.util.Arrays; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/builder/FlowGraphBuilder.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/builder/FlowGraphBuilder.java similarity index 89% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/builder/FlowGraphBuilder.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/builder/FlowGraphBuilder.java index d814922e1..6f2aa7122 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/builder/FlowGraphBuilder.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/builder/FlowGraphBuilder.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.builder; - -import io.github.agentic.spring.ai.graph.KeyStrategyFactory; -import io.github.agentic.spring.ai.graph.StateGraph; -import io.github.agentic.spring.ai.graph.agent.Agent; -import io.github.agentic.spring.ai.graph.agent.flow.strategy.FlowGraphBuildingStrategy; -import io.github.agentic.spring.ai.graph.agent.flow.strategy.FlowGraphBuildingStrategyRegistry; -import io.github.agentic.spring.ai.graph.agent.hook.Hook; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; -import io.github.agentic.spring.ai.graph.serializer.StateSerializer; +package io.github.agentic.ai.graph.agent.flow.builder; + +import io.github.agentic.ai.graph.KeyStrategyFactory; +import io.github.agentic.ai.graph.StateGraph; +import io.github.agentic.ai.graph.agent.Agent; +import io.github.agentic.ai.graph.agent.flow.strategy.FlowGraphBuildingStrategy; +import io.github.agentic.ai.graph.agent.flow.strategy.FlowGraphBuildingStrategyRegistry; +import io.github.agentic.ai.graph.agent.hook.Hook; +import io.github.agentic.ai.graph.exception.GraphStateException; +import io.github.agentic.ai.graph.serializer.StateSerializer; import org.springframework.ai.chat.model.ChatModel; import java.util.HashMap; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/enums/FlowAgentEnum.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/enums/FlowAgentEnum.java similarity index 93% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/enums/FlowAgentEnum.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/enums/FlowAgentEnum.java index 738b59091..81c3c5a2f 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/enums/FlowAgentEnum.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/enums/FlowAgentEnum.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.enums; +package io.github.agentic.ai.graph.agent.flow.enums; public enum FlowAgentEnum { diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/ConditionEvaluator.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/ConditionEvaluator.java similarity index 92% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/ConditionEvaluator.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/ConditionEvaluator.java index 82a7bf8a8..77f550ee7 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/ConditionEvaluator.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/ConditionEvaluator.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.node; +package io.github.agentic.ai.graph.agent.flow.node; import java.util.HashMap; import java.util.Map; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.action.NodeAction; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.action.NodeAction; /** * A node action that evaluates conditions to determine the next execution path. This diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/ConditionEvaluatorAction.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/ConditionEvaluatorAction.java similarity index 88% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/ConditionEvaluatorAction.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/ConditionEvaluatorAction.java index d5ba21b3f..ea3fb5ac9 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/ConditionEvaluatorAction.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/ConditionEvaluatorAction.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.node; +package io.github.agentic.ai.graph.agent.flow.node; import java.util.concurrent.CompletableFuture; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.action.AsyncEdgeAction; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.action.AsyncEdgeAction; /** * An async edge action that evaluates conditions to determine routing paths. This class diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/EnhancedParallelResultAggregator.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/EnhancedParallelResultAggregator.java similarity index 94% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/EnhancedParallelResultAggregator.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/EnhancedParallelResultAggregator.java index b82e59ba5..7e8f6fd0f 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/EnhancedParallelResultAggregator.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/EnhancedParallelResultAggregator.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.node; - -import io.github.agentic.spring.ai.graph.GraphLifecycleListener; -import io.github.agentic.spring.ai.graph.GraphResponse; -import io.github.agentic.spring.ai.graph.KeyStrategy; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.action.NodeAction; -import io.github.agentic.spring.ai.graph.agent.BaseAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.ParallelAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.loop.LoopStrategy; +package io.github.agentic.ai.graph.agent.flow.node; + +import io.github.agentic.ai.graph.GraphLifecycleListener; +import io.github.agentic.ai.graph.GraphResponse; +import io.github.agentic.ai.graph.KeyStrategy; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.action.NodeAction; +import io.github.agentic.ai.graph.agent.BaseAgent; +import io.github.agentic.ai.graph.agent.flow.agent.ParallelAgent; +import io.github.agentic.ai.graph.agent.flow.agent.loop.LoopStrategy; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/ParallelResultAggregator.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/ParallelResultAggregator.java similarity index 93% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/ParallelResultAggregator.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/ParallelResultAggregator.java index 738d8beb2..b6a662f5c 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/ParallelResultAggregator.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/ParallelResultAggregator.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.node; +package io.github.agentic.ai.graph.agent.flow.node; import java.util.HashMap; import java.util.Map; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.action.NodeAction; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.action.NodeAction; /** * A node action that aggregates results from parallel execution of multiple agents. This diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/RoutingEdgeAction.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/RoutingEdgeAction.java similarity index 96% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/RoutingEdgeAction.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/RoutingEdgeAction.java index 4beb61af7..107c41e91 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/RoutingEdgeAction.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/RoutingEdgeAction.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.node; +package io.github.agentic.ai.graph.agent.flow.node; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.action.AsyncEdgeAction; -import io.github.agentic.spring.ai.graph.agent.Agent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.LlmRoutingAgent; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.action.AsyncEdgeAction; +import io.github.agentic.ai.graph.agent.Agent; +import io.github.agentic.ai.graph.agent.flow.agent.LlmRoutingAgent; import org.springframework.ai.chat.client.ChatClient; import org.springframework.ai.chat.messages.Message; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/RoutingMergeNode.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/RoutingMergeNode.java similarity index 95% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/RoutingMergeNode.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/RoutingMergeNode.java index cd64801bb..4fe658b56 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/RoutingMergeNode.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/RoutingMergeNode.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.node; +package io.github.agentic.ai.graph.agent.flow.node; -import io.github.agentic.spring.ai.graph.GraphResponse; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.action.NodeAction; -import io.github.agentic.spring.ai.graph.agent.BaseAgent; +import io.github.agentic.ai.graph.GraphResponse; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.action.NodeAction; +import io.github.agentic.ai.graph.agent.BaseAgent; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.ai.chat.messages.Message; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/RoutingNode.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/RoutingNode.java similarity index 96% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/RoutingNode.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/RoutingNode.java index ffe9276d6..4b1d9f4a9 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/RoutingNode.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/RoutingNode.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.node; - -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.action.MultiCommand; -import io.github.agentic.spring.ai.graph.action.MultiCommandAction; -import io.github.agentic.spring.ai.graph.agent.Agent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.LlmRoutingAgent; +package io.github.agentic.ai.graph.agent.flow.node; + +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.action.MultiCommand; +import io.github.agentic.ai.graph.action.MultiCommandAction; +import io.github.agentic.ai.graph.agent.Agent; +import io.github.agentic.ai.graph.agent.flow.agent.LlmRoutingAgent; import org.springframework.ai.chat.client.ChatClient; import org.springframework.ai.chat.messages.Message; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/TransparentNode.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/TransparentNode.java similarity index 82% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/TransparentNode.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/TransparentNode.java index 63ca00017..9211b5067 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/node/TransparentNode.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/node/TransparentNode.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.node; +package io.github.agentic.ai.graph.agent.flow.node; import java.util.Map; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.action.NodeAction; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.action.NodeAction; public class TransparentNode implements NodeAction { diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/AbstractFlowGraphBuildingStrategy.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/AbstractFlowGraphBuildingStrategy.java similarity index 94% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/AbstractFlowGraphBuildingStrategy.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/AbstractFlowGraphBuildingStrategy.java index c352b1de0..50da7f900 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/AbstractFlowGraphBuildingStrategy.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/AbstractFlowGraphBuildingStrategy.java @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.strategy; - -import io.github.agentic.spring.ai.graph.StateGraph; -import io.github.agentic.spring.ai.graph.agent.Agent; -import io.github.agentic.spring.ai.graph.agent.Prioritized; -import io.github.agentic.spring.ai.graph.agent.flow.builder.FlowGraphBuilder; -import io.github.agentic.spring.ai.graph.agent.flow.node.TransparentNode; -import io.github.agentic.spring.ai.graph.agent.hook.AgentHook; -import io.github.agentic.spring.ai.graph.agent.hook.Hook; -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition; -import io.github.agentic.spring.ai.graph.agent.hook.InterruptionHook; -import io.github.agentic.spring.ai.graph.agent.hook.ModelHook; -import io.github.agentic.spring.ai.graph.agent.hook.messages.MessagesAgentHook; -import io.github.agentic.spring.ai.graph.agent.hook.messages.MessagesModelHook; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; +package io.github.agentic.ai.graph.agent.flow.strategy; + +import io.github.agentic.ai.graph.StateGraph; +import io.github.agentic.ai.graph.agent.Agent; +import io.github.agentic.ai.graph.agent.Prioritized; +import io.github.agentic.ai.graph.agent.flow.builder.FlowGraphBuilder; +import io.github.agentic.ai.graph.agent.flow.node.TransparentNode; +import io.github.agentic.ai.graph.agent.hook.AgentHook; +import io.github.agentic.ai.graph.agent.hook.Hook; +import io.github.agentic.ai.graph.agent.hook.HookPosition; +import io.github.agentic.ai.graph.agent.hook.InterruptionHook; +import io.github.agentic.ai.graph.agent.hook.ModelHook; +import io.github.agentic.ai.graph.agent.hook.messages.MessagesAgentHook; +import io.github.agentic.ai.graph.agent.hook.messages.MessagesModelHook; +import io.github.agentic.ai.graph.exception.GraphStateException; import java.util.ArrayList; import java.util.Arrays; @@ -35,9 +35,9 @@ import java.util.List; import java.util.stream.Collectors; -import static io.github.agentic.spring.ai.graph.StateGraph.END; -import static io.github.agentic.spring.ai.graph.StateGraph.START; -import static io.github.agentic.spring.ai.graph.action.AsyncNodeAction.node_async; +import static io.github.agentic.ai.graph.StateGraph.END; +import static io.github.agentic.ai.graph.StateGraph.START; +import static io.github.agentic.ai.graph.action.AsyncNodeAction.node_async; /** * Abstract base class for FlowGraphBuildingStrategy implementations. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/ConditionalGraphBuildingStrategy.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/ConditionalGraphBuildingStrategy.java similarity index 87% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/ConditionalGraphBuildingStrategy.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/ConditionalGraphBuildingStrategy.java index ed3dd1043..1bbbf5e45 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/ConditionalGraphBuildingStrategy.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/ConditionalGraphBuildingStrategy.java @@ -13,22 +13,22 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.strategy; +package io.github.agentic.ai.graph.agent.flow.strategy; import java.util.HashMap; import java.util.Map; -import io.github.agentic.spring.ai.graph.agent.Agent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.FlowAgent; -import io.github.agentic.spring.ai.graph.agent.flow.builder.FlowGraphBuilder; -import io.github.agentic.spring.ai.graph.agent.flow.enums.FlowAgentEnum; -import io.github.agentic.spring.ai.graph.agent.flow.node.ConditionEvaluator; -import io.github.agentic.spring.ai.graph.agent.flow.node.ConditionEvaluatorAction; -import io.github.agentic.spring.ai.graph.agent.flow.node.TransparentNode; -import io.github.agentic.spring.ai.graph.agent.hook.Hook; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; - -import static io.github.agentic.spring.ai.graph.action.AsyncNodeAction.node_async; +import io.github.agentic.ai.graph.agent.Agent; +import io.github.agentic.ai.graph.agent.flow.agent.FlowAgent; +import io.github.agentic.ai.graph.agent.flow.builder.FlowGraphBuilder; +import io.github.agentic.ai.graph.agent.flow.enums.FlowAgentEnum; +import io.github.agentic.ai.graph.agent.flow.node.ConditionEvaluator; +import io.github.agentic.ai.graph.agent.flow.node.ConditionEvaluatorAction; +import io.github.agentic.ai.graph.agent.flow.node.TransparentNode; +import io.github.agentic.ai.graph.agent.hook.Hook; +import io.github.agentic.ai.graph.exception.GraphStateException; + +import static io.github.agentic.ai.graph.action.AsyncNodeAction.node_async; /** * Strategy for building conditional execution graphs. In a conditional graph, the diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/FlowGraphBuildingStrategy.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/FlowGraphBuildingStrategy.java similarity index 86% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/FlowGraphBuildingStrategy.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/FlowGraphBuildingStrategy.java index 582d2e34a..b9765ed84 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/FlowGraphBuildingStrategy.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/FlowGraphBuildingStrategy.java @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.strategy; +package io.github.agentic.ai.graph.agent.flow.strategy; -import io.github.agentic.spring.ai.graph.KeyStrategy; -import io.github.agentic.spring.ai.graph.KeyStrategyFactory; -import io.github.agentic.spring.ai.graph.StateGraph; -import io.github.agentic.spring.ai.graph.agent.Agent; -import io.github.agentic.spring.ai.graph.agent.BaseAgent; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.FlowAgent; -import io.github.agentic.spring.ai.graph.agent.flow.builder.FlowGraphBuilder; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; -import io.github.agentic.spring.ai.graph.internal.node.SubCompiledGraphNode; -import io.github.agentic.spring.ai.graph.state.strategy.AppendStrategy; -import io.github.agentic.spring.ai.graph.state.strategy.ReplaceStrategy; +import io.github.agentic.ai.graph.KeyStrategy; +import io.github.agentic.ai.graph.KeyStrategyFactory; +import io.github.agentic.ai.graph.StateGraph; +import io.github.agentic.ai.graph.agent.Agent; +import io.github.agentic.ai.graph.agent.BaseAgent; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.flow.agent.FlowAgent; +import io.github.agentic.ai.graph.agent.flow.builder.FlowGraphBuilder; +import io.github.agentic.ai.graph.exception.GraphStateException; +import io.github.agentic.ai.graph.internal.node.SubCompiledGraphNode; +import io.github.agentic.ai.graph.state.strategy.AppendStrategy; +import io.github.agentic.ai.graph.state.strategy.ReplaceStrategy; import java.util.HashMap; import java.util.Map; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/FlowGraphBuildingStrategyRegistry.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/FlowGraphBuildingStrategyRegistry.java similarity index 97% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/FlowGraphBuildingStrategyRegistry.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/FlowGraphBuildingStrategyRegistry.java index e75edfff2..6a2013897 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/FlowGraphBuildingStrategyRegistry.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/FlowGraphBuildingStrategyRegistry.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.strategy; +package io.github.agentic.ai.graph.agent.flow.strategy; -import io.github.agentic.spring.ai.graph.agent.flow.enums.FlowAgentEnum; +import io.github.agentic.ai.graph.agent.flow.enums.FlowAgentEnum; import java.util.Map; import java.util.Set; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/LoopGraphBuildingStrategy.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/LoopGraphBuildingStrategy.java similarity index 86% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/LoopGraphBuildingStrategy.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/LoopGraphBuildingStrategy.java index a101fdf96..64c0aadd6 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/LoopGraphBuildingStrategy.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/LoopGraphBuildingStrategy.java @@ -14,26 +14,26 @@ * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.strategy; - -import io.github.agentic.spring.ai.graph.KeyStrategy; -import io.github.agentic.spring.ai.graph.KeyStrategyFactory; -import io.github.agentic.spring.ai.graph.agent.Agent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.LoopAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.loop.LoopStrategy; -import io.github.agentic.spring.ai.graph.agent.flow.builder.FlowGraphBuilder; -import io.github.agentic.spring.ai.graph.agent.flow.enums.FlowAgentEnum; -import io.github.agentic.spring.ai.graph.agent.flow.node.TransparentNode; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; -import io.github.agentic.spring.ai.graph.state.strategy.ReplaceStrategy; +package io.github.agentic.ai.graph.agent.flow.strategy; + +import io.github.agentic.ai.graph.KeyStrategy; +import io.github.agentic.ai.graph.KeyStrategyFactory; +import io.github.agentic.ai.graph.agent.Agent; +import io.github.agentic.ai.graph.agent.flow.agent.LoopAgent; +import io.github.agentic.ai.graph.agent.flow.agent.loop.LoopStrategy; +import io.github.agentic.ai.graph.agent.flow.builder.FlowGraphBuilder; +import io.github.agentic.ai.graph.agent.flow.enums.FlowAgentEnum; +import io.github.agentic.ai.graph.agent.flow.node.TransparentNode; +import io.github.agentic.ai.graph.exception.GraphStateException; +import io.github.agentic.ai.graph.state.strategy.ReplaceStrategy; import java.util.List; import java.util.Map; import java.util.stream.Collectors; import java.util.stream.Stream; -import static io.github.agentic.spring.ai.graph.action.AsyncEdgeAction.edge_async; -import static io.github.agentic.spring.ai.graph.action.AsyncNodeAction.node_async; +import static io.github.agentic.ai.graph.action.AsyncEdgeAction.edge_async; +import static io.github.agentic.ai.graph.action.AsyncNodeAction.node_async; /** * Converts a LoopAgent into its corresponding StateGraph. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/ParallelGraphBuildingStrategy.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/ParallelGraphBuildingStrategy.java similarity index 87% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/ParallelGraphBuildingStrategy.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/ParallelGraphBuildingStrategy.java index 8a9fcbd41..692b1405e 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/ParallelGraphBuildingStrategy.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/ParallelGraphBuildingStrategy.java @@ -13,26 +13,26 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.strategy; - -import io.github.agentic.spring.ai.graph.KeyStrategy; -import io.github.agentic.spring.ai.graph.agent.Agent; -import io.github.agentic.spring.ai.graph.agent.BaseAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.FlowAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.ParallelAgent; -import io.github.agentic.spring.ai.graph.agent.flow.builder.FlowGraphBuilder; -import io.github.agentic.spring.ai.graph.agent.flow.enums.FlowAgentEnum; -import io.github.agentic.spring.ai.graph.agent.flow.node.EnhancedParallelResultAggregator; -import io.github.agentic.spring.ai.graph.agent.flow.node.TransparentNode; -import io.github.agentic.spring.ai.graph.agent.hook.Hook; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; +package io.github.agentic.ai.graph.agent.flow.strategy; + +import io.github.agentic.ai.graph.KeyStrategy; +import io.github.agentic.ai.graph.agent.Agent; +import io.github.agentic.ai.graph.agent.BaseAgent; +import io.github.agentic.ai.graph.agent.flow.agent.FlowAgent; +import io.github.agentic.ai.graph.agent.flow.agent.ParallelAgent; +import io.github.agentic.ai.graph.agent.flow.builder.FlowGraphBuilder; +import io.github.agentic.ai.graph.agent.flow.enums.FlowAgentEnum; +import io.github.agentic.ai.graph.agent.flow.node.EnhancedParallelResultAggregator; +import io.github.agentic.ai.graph.agent.flow.node.TransparentNode; +import io.github.agentic.ai.graph.agent.hook.Hook; +import io.github.agentic.ai.graph.exception.GraphStateException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -import static io.github.agentic.spring.ai.graph.action.AsyncNodeAction.node_async; +import static io.github.agentic.ai.graph.action.AsyncNodeAction.node_async; /** * Strategy for building parallel execution graphs. In a parallel graph, all sub-agents diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/RoutingGraphBuildingStrategy.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/RoutingGraphBuildingStrategy.java similarity index 84% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/RoutingGraphBuildingStrategy.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/RoutingGraphBuildingStrategy.java index 898ab66ee..eda1a4c1b 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/RoutingGraphBuildingStrategy.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/RoutingGraphBuildingStrategy.java @@ -13,27 +13,27 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.strategy; +package io.github.agentic.ai.graph.agent.flow.strategy; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -import io.github.agentic.spring.ai.graph.KeyStrategyFactory; -import io.github.agentic.spring.ai.graph.action.AsyncMultiCommandAction; -import io.github.agentic.spring.ai.graph.agent.Agent; -import io.github.agentic.spring.ai.graph.agent.BaseAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.FlowAgent; -import io.github.agentic.spring.ai.graph.agent.flow.builder.FlowGraphBuilder; -import io.github.agentic.spring.ai.graph.agent.flow.enums.FlowAgentEnum; -import io.github.agentic.spring.ai.graph.agent.flow.node.RoutingMergeNode; -import io.github.agentic.spring.ai.graph.agent.flow.node.RoutingNode; -import io.github.agentic.spring.ai.graph.agent.flow.node.TransparentNode; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; -import io.github.agentic.spring.ai.graph.state.strategy.ReplaceStrategy; - -import static io.github.agentic.spring.ai.graph.action.AsyncNodeAction.node_async; +import io.github.agentic.ai.graph.KeyStrategyFactory; +import io.github.agentic.ai.graph.action.AsyncMultiCommandAction; +import io.github.agentic.ai.graph.agent.Agent; +import io.github.agentic.ai.graph.agent.BaseAgent; +import io.github.agentic.ai.graph.agent.flow.agent.FlowAgent; +import io.github.agentic.ai.graph.agent.flow.builder.FlowGraphBuilder; +import io.github.agentic.ai.graph.agent.flow.enums.FlowAgentEnum; +import io.github.agentic.ai.graph.agent.flow.node.RoutingMergeNode; +import io.github.agentic.ai.graph.agent.flow.node.RoutingNode; +import io.github.agentic.ai.graph.agent.flow.node.TransparentNode; +import io.github.agentic.ai.graph.exception.GraphStateException; +import io.github.agentic.ai.graph.state.strategy.ReplaceStrategy; + +import static io.github.agentic.ai.graph.action.AsyncNodeAction.node_async; /** * Strategy for building LLM-based routing graphs. In a routing graph, an LLM decides @@ -129,7 +129,7 @@ public String getStrategyType() { public KeyStrategyFactory generateKeyStrategyFactory(FlowGraphBuilder.FlowGraphConfig config) { KeyStrategyFactory parent = super.generateKeyStrategyFactory(config); return () -> { - Map strategies = new HashMap<>(parent.apply()); + Map strategies = new HashMap<>(parent.apply()); strategies.put(RoutingMergeNode.DEFAULT_MERGED_OUTPUT_KEY, new ReplaceStrategy()); return strategies; }; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/SequentialGraphBuildingStrategy.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/SequentialGraphBuildingStrategy.java similarity index 86% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/SequentialGraphBuildingStrategy.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/SequentialGraphBuildingStrategy.java index b8daede39..583bc24f3 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/flow/strategy/SequentialGraphBuildingStrategy.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/flow/strategy/SequentialGraphBuildingStrategy.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.strategy; +package io.github.agentic.ai.graph.agent.flow.strategy; -import io.github.agentic.spring.ai.graph.agent.Agent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.FlowAgent; -import io.github.agentic.spring.ai.graph.agent.flow.builder.FlowGraphBuilder; -import io.github.agentic.spring.ai.graph.agent.flow.enums.FlowAgentEnum; -import io.github.agentic.spring.ai.graph.agent.flow.node.TransparentNode; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; +import io.github.agentic.ai.graph.agent.Agent; +import io.github.agentic.ai.graph.agent.flow.agent.FlowAgent; +import io.github.agentic.ai.graph.agent.flow.builder.FlowGraphBuilder; +import io.github.agentic.ai.graph.agent.flow.enums.FlowAgentEnum; +import io.github.agentic.ai.graph.agent.flow.node.TransparentNode; +import io.github.agentic.ai.graph.exception.GraphStateException; -import static io.github.agentic.spring.ai.graph.action.AsyncNodeAction.node_async; +import static io.github.agentic.ai.graph.action.AsyncNodeAction.node_async; /** * Strategy for building sequential execution graphs. In a sequential graph, agents are diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/AbstractInterruptableModelHook.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/AbstractInterruptableModelHook.java similarity index 82% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/AbstractInterruptableModelHook.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/AbstractInterruptableModelHook.java index 90c4ab822..78686a632 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/AbstractInterruptableModelHook.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/AbstractInterruptableModelHook.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook; +package io.github.agentic.ai.graph.agent.hook; -import io.github.agentic.spring.ai.graph.action.AsyncNodeActionWithConfig; -import io.github.agentic.spring.ai.graph.action.InterruptableAction; +import io.github.agentic.ai.graph.action.AsyncNodeActionWithConfig; +import io.github.agentic.ai.graph.action.InterruptableAction; /** * Base class for model hooks that need to participate in graph interruption as full diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/AgentHook.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/AgentHook.java similarity index 87% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/AgentHook.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/AgentHook.java index a2f80ce54..b0b9198c6 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/AgentHook.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/AgentHook.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook; +package io.github.agentic.ai.graph.agent.hook; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.ReactAgent; import java.util.Map; import java.util.concurrent.CompletableFuture; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/Hook.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/Hook.java similarity index 90% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/Hook.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/Hook.java index c58816189..42b8ffb9a 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/Hook.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/Hook.java @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook; +package io.github.agentic.ai.graph.agent.hook; -import io.github.agentic.spring.ai.graph.KeyStrategy; -import io.github.agentic.spring.ai.graph.agent.Prioritized; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelInterceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolInterceptor; +import io.github.agentic.ai.graph.KeyStrategy; +import io.github.agentic.ai.graph.agent.Prioritized; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.interceptor.ModelInterceptor; +import io.github.agentic.ai.graph.agent.interceptor.ToolInterceptor; import org.springframework.ai.tool.ToolCallback; import java.util.List; import java.util.Map; -import static io.github.agentic.spring.ai.graph.RunnableConfig.AGENT_HOOK_NAME_PREFIX; +import static io.github.agentic.ai.graph.RunnableConfig.AGENT_HOOK_NAME_PREFIX; /** * Hook interface for intercepting and customizing agent execution flow. @@ -162,8 +162,8 @@ default List canJumpTo() { *

    * Common strategies include: *

      - *
    • {@link io.github.agentic.spring.ai.graph.state.strategy.AppendStrategy}: Append to existing values
    • - *
    • {@link io.github.agentic.spring.ai.graph.state.strategy.ReplaceStrategy}: Replace existing values
    • + *
    • {@link io.github.agentic.ai.graph.state.strategy.AppendStrategy}: Append to existing values
    • + *
    • {@link io.github.agentic.ai.graph.state.strategy.ReplaceStrategy}: Replace existing values
    • *
    * * @return map of key names to their strategies, empty map by default diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/HookPosition.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/HookPosition.java similarity index 95% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/HookPosition.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/HookPosition.java index d50318a5f..95aebb68a 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/HookPosition.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/HookPosition.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook; +package io.github.agentic.ai.graph.agent.hook; /** * Enum representing the position where a hook should be executed in the agent workflow. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/HookPositions.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/HookPositions.java similarity index 96% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/HookPositions.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/HookPositions.java index e2e157b31..262665fc2 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/HookPositions.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/HookPositions.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook; +package io.github.agentic.ai.graph.agent.hook; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/InstructionAgentHook.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/InstructionAgentHook.java similarity index 89% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/InstructionAgentHook.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/InstructionAgentHook.java index 9f4e679e8..a58d65fc8 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/InstructionAgentHook.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/InstructionAgentHook.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook; +package io.github.agentic.ai.graph.agent.hook; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.hook.messages.AgentCommand; -import io.github.agentic.spring.ai.graph.agent.hook.messages.MessagesAgentHook; -import io.github.agentic.spring.ai.graph.serializer.AgentInstructionMessage; -import io.github.agentic.spring.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.hook.messages.AgentCommand; +import io.github.agentic.ai.graph.agent.hook.messages.MessagesAgentHook; +import io.github.agentic.ai.graph.serializer.AgentInstructionMessage; +import io.github.agentic.ai.graph.RunnableConfig; import org.springframework.ai.chat.messages.Message; import org.springframework.util.StringUtils; @@ -34,7 +34,7 @@ * When this hook is active, it runs at {@link HookPosition#BEFORE_AGENT} and reads * {@link ReactAgent#instruction()} from {@link #getAgent()}. If the instruction is non-empty, * it appends an {@link AgentInstructionMessage} to the given messages and returns an - * {@link AgentCommand} with {@link io.github.agentic.spring.ai.graph.agent.hook.messages.UpdatePolicy#REPLACE}. + * {@link AgentCommand} with {@link io.github.agentic.ai.graph.agent.hook.messages.UpdatePolicy#REPLACE}. * This allows ReactAgent to avoid adding instruction again in the subgraph adapter when used as a subgraph node. *

    * The hook is idempotent: a copy of this agent's own instruction is never duplicated. A copy is diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/InterruptionHook.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/InterruptionHook.java similarity index 93% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/InterruptionHook.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/InterruptionHook.java index 5722a310e..41137d985 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/InterruptionHook.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/InterruptionHook.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook; +package io.github.agentic.ai.graph.agent.hook; -import io.github.agentic.spring.ai.graph.KeyStrategy; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.action.InterruptionMetadata; -import io.github.agentic.spring.ai.graph.state.strategy.ReplaceStrategy; +import io.github.agentic.ai.graph.KeyStrategy; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.action.InterruptionMetadata; +import io.github.agentic.ai.graph.state.strategy.ReplaceStrategy; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; @@ -35,7 +35,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import static io.github.agentic.spring.ai.graph.checkpoint.BaseCheckpointSaver.THREAD_ID_DEFAULT; +import static io.github.agentic.ai.graph.checkpoint.BaseCheckpointSaver.THREAD_ID_DEFAULT; /** * Hook that supports interruption and feedback mechanism. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/JumpTo.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/JumpTo.java similarity index 97% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/JumpTo.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/JumpTo.java index 6e9dfcc18..9921564c6 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/JumpTo.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/JumpTo.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook; +package io.github.agentic.ai.graph.agent.hook; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/ModelHook.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/ModelHook.java similarity index 87% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/ModelHook.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/ModelHook.java index 47423232c..3339ca523 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/ModelHook.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/ModelHook.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook; +package io.github.agentic.ai.graph.agent.hook; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.ReactAgent; import java.util.Map; import java.util.concurrent.CompletableFuture; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/TokenCounter.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/TokenCounter.java similarity index 98% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/TokenCounter.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/TokenCounter.java index 41bc5740f..73795ef68 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/TokenCounter.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/TokenCounter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook; +package io.github.agentic.ai.graph.agent.hook; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/ToolInjection.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/ToolInjection.java similarity index 96% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/ToolInjection.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/ToolInjection.java index 65cd912cd..78213f51c 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/ToolInjection.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/ToolInjection.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook; +package io.github.agentic.ai.graph.agent.hook; import org.springframework.ai.tool.ToolCallback; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/hip/ConsoleInteractionHandler.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/hip/ConsoleInteractionHandler.java similarity index 91% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/hip/ConsoleInteractionHandler.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/hip/ConsoleInteractionHandler.java index 59aa65953..24b9ece56 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/hip/ConsoleInteractionHandler.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/hip/ConsoleInteractionHandler.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.hip; +package io.github.agentic.ai.graph.agent.hook.hip; -import io.github.agentic.spring.ai.graph.action.InterruptionMetadata.ToolFeedback; +import io.github.agentic.ai.graph.action.InterruptionMetadata.ToolFeedback; import java.util.ArrayList; import java.util.List; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/hip/HumanInTheLoopHook.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/hip/HumanInTheLoopHook.java similarity index 92% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/hip/HumanInTheLoopHook.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/hip/HumanInTheLoopHook.java index 40fb42986..152389f0c 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/hip/HumanInTheLoopHook.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/hip/HumanInTheLoopHook.java @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.hip; - -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.action.InterruptionMetadata; -import io.github.agentic.spring.ai.graph.agent.hook.AbstractInterruptableModelHook; -import io.github.agentic.spring.ai.graph.action.InterruptionMetadata.ToolFeedback; -import io.github.agentic.spring.ai.graph.action.InterruptionMetadata.ToolFeedback.FeedbackResult; -import io.github.agentic.spring.ai.graph.agent.hook.Hook; -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition; -import io.github.agentic.spring.ai.graph.agent.hook.HookPositions; -import io.github.agentic.spring.ai.graph.agent.hook.JumpTo; -import io.github.agentic.spring.ai.graph.state.RemoveByHash; -import io.github.agentic.spring.ai.graph.utils.TypeRef; +package io.github.agentic.ai.graph.agent.hook.hip; + +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.action.InterruptionMetadata; +import io.github.agentic.ai.graph.agent.hook.AbstractInterruptableModelHook; +import io.github.agentic.ai.graph.action.InterruptionMetadata.ToolFeedback; +import io.github.agentic.ai.graph.action.InterruptionMetadata.ToolFeedback.FeedbackResult; +import io.github.agentic.ai.graph.agent.hook.Hook; +import io.github.agentic.ai.graph.agent.hook.HookPosition; +import io.github.agentic.ai.graph.agent.hook.HookPositions; +import io.github.agentic.ai.graph.agent.hook.JumpTo; +import io.github.agentic.ai.graph.state.RemoveByHash; +import io.github.agentic.ai.graph.utils.TypeRef; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/hip/HumanInteractionHandler.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/hip/HumanInteractionHandler.java similarity index 86% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/hip/HumanInteractionHandler.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/hip/HumanInteractionHandler.java index 486c8d4c4..dacc09a97 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/hip/HumanInteractionHandler.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/hip/HumanInteractionHandler.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.hip; +package io.github.agentic.ai.graph.agent.hook.hip; -import io.github.agentic.spring.ai.graph.action.InterruptionMetadata; +import io.github.agentic.ai.graph.action.InterruptionMetadata; import java.util.List; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/hip/ToolConfig.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/hip/ToolConfig.java similarity index 95% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/hip/ToolConfig.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/hip/ToolConfig.java index b6f51fcd8..50c57df39 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/hip/ToolConfig.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/hip/ToolConfig.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.hip; +package io.github.agentic.ai.graph.agent.hook.hip; public class ToolConfig { private String description; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/messages/AgentCommand.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/messages/AgentCommand.java similarity index 93% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/messages/AgentCommand.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/messages/AgentCommand.java index a90c7e445..a92a3f4a0 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/messages/AgentCommand.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/messages/AgentCommand.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.messages; +package io.github.agentic.ai.graph.agent.hook.messages; -import io.github.agentic.spring.ai.graph.agent.hook.JumpTo; +import io.github.agentic.ai.graph.agent.hook.JumpTo; import org.springframework.ai.chat.messages.Message; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/messages/MessagesAgentHook.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/messages/MessagesAgentHook.java similarity index 91% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/messages/MessagesAgentHook.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/messages/MessagesAgentHook.java index aa7e2dad0..888784885 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/messages/MessagesAgentHook.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/messages/MessagesAgentHook.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.messages; +package io.github.agentic.ai.graph.agent.hook.messages; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.action.AsyncNodeActionWithConfig; -import io.github.agentic.spring.ai.graph.agent.hook.Hook; -import io.github.agentic.spring.ai.graph.state.ReplaceAllWith; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.action.AsyncNodeActionWithConfig; +import io.github.agentic.ai.graph.agent.hook.Hook; +import io.github.agentic.ai.graph.state.ReplaceAllWith; import org.springframework.ai.chat.messages.Message; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/messages/MessagesModelHook.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/messages/MessagesModelHook.java similarity index 91% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/messages/MessagesModelHook.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/messages/MessagesModelHook.java index e39be2cde..3010954ab 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/messages/MessagesModelHook.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/messages/MessagesModelHook.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.messages; - -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.action.AsyncNodeActionWithConfig; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.hook.Hook; -import io.github.agentic.spring.ai.graph.state.ReplaceAllWith; +package io.github.agentic.ai.graph.agent.hook.messages; + +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.action.AsyncNodeActionWithConfig; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.hook.Hook; +import io.github.agentic.ai.graph.state.ReplaceAllWith; import org.springframework.ai.chat.messages.Message; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/messages/UpdatePolicy.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/messages/UpdatePolicy.java similarity index 93% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/messages/UpdatePolicy.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/messages/UpdatePolicy.java index d0feb2da4..ef7fd6525 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/messages/UpdatePolicy.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/messages/UpdatePolicy.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.messages; +package io.github.agentic.ai.graph.agent.hook.messages; /** * Enumeration for message append policy. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/modelcalllimit/ModelCallLimitExceededException.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/modelcalllimit/ModelCallLimitExceededException.java similarity index 96% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/modelcalllimit/ModelCallLimitExceededException.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/modelcalllimit/ModelCallLimitExceededException.java index d72ea592a..36d2f8f68 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/modelcalllimit/ModelCallLimitExceededException.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/modelcalllimit/ModelCallLimitExceededException.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.modelcalllimit; +package io.github.agentic.ai.graph.agent.hook.modelcalllimit; /** * Exception raised when model call limits are exceeded. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/modelcalllimit/ModelCallLimitHook.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/modelcalllimit/ModelCallLimitHook.java similarity index 92% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/modelcalllimit/ModelCallLimitHook.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/modelcalllimit/ModelCallLimitHook.java index 1dad6bb73..64faaa571 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/modelcalllimit/ModelCallLimitHook.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/modelcalllimit/ModelCallLimitHook.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.modelcalllimit; - -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition; -import io.github.agentic.spring.ai.graph.agent.hook.HookPositions; -import io.github.agentic.spring.ai.graph.agent.hook.JumpTo; -import io.github.agentic.spring.ai.graph.agent.hook.ModelHook; +package io.github.agentic.ai.graph.agent.hook.modelcalllimit; + +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.hook.HookPosition; +import io.github.agentic.ai.graph.agent.hook.HookPositions; +import io.github.agentic.ai.graph.agent.hook.JumpTo; +import io.github.agentic.ai.graph.agent.hook.ModelHook; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/PIIDetectionException.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/PIIDetectionException.java similarity index 95% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/PIIDetectionException.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/PIIDetectionException.java index cc81d2e69..14a6e225d 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/PIIDetectionException.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/PIIDetectionException.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.pii; +package io.github.agentic.ai.graph.agent.hook.pii; import java.util.List; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/PIIDetectionHook.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/PIIDetectionHook.java similarity index 95% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/PIIDetectionHook.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/PIIDetectionHook.java index 1275b5c4f..88610f38c 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/PIIDetectionHook.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/PIIDetectionHook.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.pii; - -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition; -import io.github.agentic.spring.ai.graph.agent.hook.HookPositions; -import io.github.agentic.spring.ai.graph.agent.hook.JumpTo; -import io.github.agentic.spring.ai.graph.agent.hook.messages.AgentCommand; -import io.github.agentic.spring.ai.graph.agent.hook.messages.MessagesModelHook; -import io.github.agentic.spring.ai.graph.agent.hook.messages.UpdatePolicy; +package io.github.agentic.ai.graph.agent.hook.pii; + +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.hook.HookPosition; +import io.github.agentic.ai.graph.agent.hook.HookPositions; +import io.github.agentic.ai.graph.agent.hook.JumpTo; +import io.github.agentic.ai.graph.agent.hook.messages.AgentCommand; +import io.github.agentic.ai.graph.agent.hook.messages.MessagesModelHook; +import io.github.agentic.ai.graph.agent.hook.messages.UpdatePolicy; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/PIIDetector.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/PIIDetector.java similarity index 94% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/PIIDetector.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/PIIDetector.java index 1130d3724..9793a4292 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/PIIDetector.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/PIIDetector.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.pii; +package io.github.agentic.ai.graph.agent.hook.pii; import java.util.List; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/PIIDetectors.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/PIIDetectors.java similarity index 98% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/PIIDetectors.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/PIIDetectors.java index 1a43c30f8..e26c3715d 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/PIIDetectors.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/PIIDetectors.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.pii; +package io.github.agentic.ai.graph.agent.hook.pii; import java.net.InetAddress; import java.util.ArrayList; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/PIIMatch.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/PIIMatch.java similarity index 95% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/PIIMatch.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/PIIMatch.java index 8e9f33188..2985e4eaa 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/PIIMatch.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/PIIMatch.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.pii; +package io.github.agentic.ai.graph.agent.hook.pii; /** * Represents a detected instance of PII in text. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/PIIType.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/PIIType.java similarity index 93% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/PIIType.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/PIIType.java index 3ac347783..0c9e7120a 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/PIIType.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/PIIType.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.pii; +package io.github.agentic.ai.graph.agent.hook.pii; /** * Types of Personally Identifiable Information that can be detected. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/RedactionStrategy.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/RedactionStrategy.java similarity index 94% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/RedactionStrategy.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/RedactionStrategy.java index 25b0c733c..d91108f9c 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/pii/RedactionStrategy.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/pii/RedactionStrategy.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.pii; +package io.github.agentic.ai.graph.agent.hook.pii; /** * Strategies for handling detected PII. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/returndirect/ReturnDirectConstants.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/returndirect/ReturnDirectConstants.java similarity index 94% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/returndirect/ReturnDirectConstants.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/returndirect/ReturnDirectConstants.java index 74fd97e39..e6cd648b3 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/returndirect/ReturnDirectConstants.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/returndirect/ReturnDirectConstants.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.returndirect; +package io.github.agentic.ai.graph.agent.hook.returndirect; public final class ReturnDirectConstants { diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/returndirect/ReturnDirectModelHook.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/returndirect/ReturnDirectModelHook.java similarity index 89% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/returndirect/ReturnDirectModelHook.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/returndirect/ReturnDirectModelHook.java index 350fc3c0f..61f3a3389 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/returndirect/ReturnDirectModelHook.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/returndirect/ReturnDirectModelHook.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.returndirect; +package io.github.agentic.ai.graph.agent.hook.returndirect; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.Prioritized; -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition; -import io.github.agentic.spring.ai.graph.agent.hook.HookPositions; -import io.github.agentic.spring.ai.graph.agent.hook.JumpTo; -import io.github.agentic.spring.ai.graph.agent.hook.messages.AgentCommand; -import io.github.agentic.spring.ai.graph.agent.hook.messages.MessagesModelHook; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.Prioritized; +import io.github.agentic.ai.graph.agent.hook.HookPosition; +import io.github.agentic.ai.graph.agent.hook.HookPositions; +import io.github.agentic.ai.graph.agent.hook.JumpTo; +import io.github.agentic.ai.graph.agent.hook.messages.AgentCommand; +import io.github.agentic.ai.graph.agent.hook.messages.MessagesModelHook; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; @@ -31,7 +31,7 @@ import java.util.List; import java.util.Map; -import static io.github.agentic.spring.ai.graph.agent.hook.returndirect.ReturnDirectConstants.FINISH_REASON_METADATA_KEY; +import static io.github.agentic.ai.graph.agent.hook.returndirect.ReturnDirectConstants.FINISH_REASON_METADATA_KEY; import static org.springframework.ai.model.tool.ToolExecutionResult.FINISH_REASON; /** diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/shelltool/ShellToolAgentHook.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/shelltool/ShellToolAgentHook.java similarity index 92% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/shelltool/ShellToolAgentHook.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/shelltool/ShellToolAgentHook.java index 22ef811fc..a1c095a40 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/shelltool/ShellToolAgentHook.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/shelltool/ShellToolAgentHook.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.shelltool; - -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.hook.AgentHook; -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition; -import io.github.agentic.spring.ai.graph.agent.hook.HookPositions; -import io.github.agentic.spring.ai.graph.agent.hook.ToolInjection; -import io.github.agentic.spring.ai.graph.agent.tools.ShellSessionManager; -import io.github.agentic.spring.ai.graph.agent.tools.ShellTool2; +package io.github.agentic.ai.graph.agent.hook.shelltool; + +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.hook.AgentHook; +import io.github.agentic.ai.graph.agent.hook.HookPosition; +import io.github.agentic.ai.graph.agent.hook.HookPositions; +import io.github.agentic.ai.graph.agent.hook.ToolInjection; +import io.github.agentic.ai.graph.agent.tools.ShellSessionManager; +import io.github.agentic.ai.graph.agent.tools.ShellTool2; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/skills/DisableSkillTool.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/skills/DisableSkillTool.java similarity index 95% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/skills/DisableSkillTool.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/skills/DisableSkillTool.java index 685fe8c10..8606b5a76 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/skills/DisableSkillTool.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/skills/DisableSkillTool.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.skills; +package io.github.agentic.ai.graph.agent.hook.skills; -import io.github.agentic.spring.ai.graph.skills.SkillMetadata; -import io.github.agentic.spring.ai.graph.skills.registry.SkillRegistry; +import io.github.agentic.ai.graph.skills.SkillMetadata; +import io.github.agentic.ai.graph.skills.registry.SkillRegistry; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyDescription; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/skills/ReadSkillTool.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/skills/ReadSkillTool.java similarity index 96% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/skills/ReadSkillTool.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/skills/ReadSkillTool.java index c01f5c938..c72adcc8b 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/skills/ReadSkillTool.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/skills/ReadSkillTool.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.skills; +package io.github.agentic.ai.graph.agent.hook.skills; -import io.github.agentic.spring.ai.graph.skills.SkillMetadata; -import io.github.agentic.spring.ai.graph.skills.registry.SkillRegistry; +import io.github.agentic.ai.graph.skills.SkillMetadata; +import io.github.agentic.ai.graph.skills.registry.SkillRegistry; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyDescription; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/skills/SearchSkillsTool.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/skills/SearchSkillsTool.java similarity index 94% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/skills/SearchSkillsTool.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/skills/SearchSkillsTool.java index f14242ab9..6f356b114 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/skills/SearchSkillsTool.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/skills/SearchSkillsTool.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.skills; +package io.github.agentic.ai.graph.agent.hook.skills; -import io.github.agentic.spring.ai.graph.skills.SkillMetadata; -import io.github.agentic.spring.ai.graph.skills.registry.SkillRegistry; +import io.github.agentic.ai.graph.skills.SkillMetadata; +import io.github.agentic.ai.graph.skills.registry.SkillRegistry; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyDescription; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/skills/SkillsAgentHook.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/skills/SkillsAgentHook.java similarity index 92% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/skills/SkillsAgentHook.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/skills/SkillsAgentHook.java index 7a7c9b13a..7ed7a67eb 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/skills/SkillsAgentHook.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/skills/SkillsAgentHook.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.skills; +package io.github.agentic.ai.graph.agent.hook.skills; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.hook.AgentHook; -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition; -import io.github.agentic.spring.ai.graph.agent.hook.HookPositions; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelInterceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.skills.SkillsInterceptor; -import io.github.agentic.spring.ai.graph.skills.SkillMetadata; -import io.github.agentic.spring.ai.graph.skills.registry.SkillRegistry; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.hook.AgentHook; +import io.github.agentic.ai.graph.agent.hook.HookPosition; +import io.github.agentic.ai.graph.agent.hook.HookPositions; +import io.github.agentic.ai.graph.agent.interceptor.ModelInterceptor; +import io.github.agentic.ai.graph.agent.interceptor.skills.SkillsInterceptor; +import io.github.agentic.ai.graph.skills.SkillMetadata; +import io.github.agentic.ai.graph.skills.registry.SkillRegistry; import org.springframework.ai.tool.ToolCallback; import org.springframework.ai.tool.resolution.ToolCallbackResolver; @@ -55,7 +55,7 @@ *

    {@code
      * // Create a FileSystemSkillRegistry first
      * FileSystemSkillRegistry registry = FileSystemSkillRegistry.builder()
    - *     .userSkillsDirectory("~/saa/skills")
    + *     .userSkillsDirectory("~/argi/skills")
      *     .projectSkillsDirectory("./skills")
      *     .build();
      *
    @@ -187,7 +187,7 @@ public String getName() {
     	 * 
    {@code
     	 * // Create a FileSystemSkillRegistry first
     	 * FileSystemSkillRegistry registry = FileSystemSkillRegistry.builder()
    -	 *     .userSkillsDirectory("~/saa/skills")
    +	 *     .userSkillsDirectory("~/argi/skills")
     	 *     .projectSkillsDirectory("./skills")
     	 *     .build();
     	 *
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/summarization/SummarizationHook.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/summarization/SummarizationHook.java
    similarity index 95%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/summarization/SummarizationHook.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/summarization/SummarizationHook.java
    index c0f9bb86e..54ce60302 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/summarization/SummarizationHook.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/summarization/SummarizationHook.java
    @@ -13,16 +13,16 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.hook.summarization;
    -
    -import io.github.agentic.spring.ai.graph.RunnableConfig;
    -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition;
    -import io.github.agentic.spring.ai.graph.agent.hook.HookPositions;
    -import io.github.agentic.spring.ai.graph.agent.hook.JumpTo;
    -import io.github.agentic.spring.ai.graph.agent.hook.TokenCounter;
    -import io.github.agentic.spring.ai.graph.agent.hook.messages.AgentCommand;
    -import io.github.agentic.spring.ai.graph.agent.hook.messages.UpdatePolicy;
    -import io.github.agentic.spring.ai.graph.agent.hook.messages.MessagesModelHook;
    +package io.github.agentic.ai.graph.agent.hook.summarization;
    +
    +import io.github.agentic.ai.graph.RunnableConfig;
    +import io.github.agentic.ai.graph.agent.hook.HookPosition;
    +import io.github.agentic.ai.graph.agent.hook.HookPositions;
    +import io.github.agentic.ai.graph.agent.hook.JumpTo;
    +import io.github.agentic.ai.graph.agent.hook.TokenCounter;
    +import io.github.agentic.ai.graph.agent.hook.messages.AgentCommand;
    +import io.github.agentic.ai.graph.agent.hook.messages.UpdatePolicy;
    +import io.github.agentic.ai.graph.agent.hook.messages.MessagesModelHook;
     
     import org.springframework.ai.chat.messages.AssistantMessage;
     import org.springframework.ai.chat.messages.Message;
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/toolcalllimit/ToolCallLimitExceededException.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/toolcalllimit/ToolCallLimitExceededException.java
    similarity index 97%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/toolcalllimit/ToolCallLimitExceededException.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/toolcalllimit/ToolCallLimitExceededException.java
    index 54b97e451..aded8b045 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/toolcalllimit/ToolCallLimitExceededException.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/toolcalllimit/ToolCallLimitExceededException.java
    @@ -13,7 +13,7 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.hook.toolcalllimit;
    +package io.github.agentic.ai.graph.agent.hook.toolcalllimit;
     
     /**
      * Exception raised when tool call limits are exceeded.
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/toolcalllimit/ToolCallLimitHook.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/toolcalllimit/ToolCallLimitHook.java
    similarity index 94%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/toolcalllimit/ToolCallLimitHook.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/toolcalllimit/ToolCallLimitHook.java
    index 311c3158d..aace921ce 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/hook/toolcalllimit/ToolCallLimitHook.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/hook/toolcalllimit/ToolCallLimitHook.java
    @@ -13,14 +13,14 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.hook.toolcalllimit;
    -
    -import io.github.agentic.spring.ai.graph.OverAllState;
    -import io.github.agentic.spring.ai.graph.RunnableConfig;
    -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition;
    -import io.github.agentic.spring.ai.graph.agent.hook.HookPositions;
    -import io.github.agentic.spring.ai.graph.agent.hook.JumpTo;
    -import io.github.agentic.spring.ai.graph.agent.hook.ModelHook;
    +package io.github.agentic.ai.graph.agent.hook.toolcalllimit;
    +
    +import io.github.agentic.ai.graph.OverAllState;
    +import io.github.agentic.ai.graph.RunnableConfig;
    +import io.github.agentic.ai.graph.agent.hook.HookPosition;
    +import io.github.agentic.ai.graph.agent.hook.HookPositions;
    +import io.github.agentic.ai.graph.agent.hook.JumpTo;
    +import io.github.agentic.ai.graph.agent.hook.ModelHook;
     import org.springframework.ai.chat.messages.AssistantMessage;
     import org.springframework.ai.chat.messages.Message;
     
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/Interceptor.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/Interceptor.java
    similarity index 91%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/Interceptor.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/Interceptor.java
    index e80d4a398..a6599b73b 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/Interceptor.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/Interceptor.java
    @@ -13,7 +13,7 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor;
    +package io.github.agentic.ai.graph.agent.interceptor;
     
     public interface Interceptor {
     	String getName();
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/InterceptorChain.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/InterceptorChain.java
    similarity index 99%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/InterceptorChain.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/InterceptorChain.java
    index 490e4e4c5..e90a79740 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/InterceptorChain.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/InterceptorChain.java
    @@ -13,7 +13,7 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor;
    +package io.github.agentic.ai.graph.agent.interceptor;
     
     import java.util.ArrayList;
     import java.util.List;
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/InterceptorType.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/InterceptorType.java
    similarity index 91%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/InterceptorType.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/InterceptorType.java
    index 524fd17fa..7263f84cb 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/InterceptorType.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/InterceptorType.java
    @@ -13,7 +13,7 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor;
    +package io.github.agentic.ai.graph.agent.interceptor;
     
     public enum InterceptorType {
     	MODEL,
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ModelCallHandler.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ModelCallHandler.java
    similarity index 93%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ModelCallHandler.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ModelCallHandler.java
    index 6b2e19b6a..13c33cd1f 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ModelCallHandler.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ModelCallHandler.java
    @@ -13,7 +13,7 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor;
    +package io.github.agentic.ai.graph.agent.interceptor;
     
     /**
      * Handler interface for model call interceptors.
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ModelInterceptor.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ModelInterceptor.java
    similarity index 96%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ModelInterceptor.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ModelInterceptor.java
    index 721e104fc..169811fd5 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ModelInterceptor.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ModelInterceptor.java
    @@ -13,7 +13,7 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor;
    +package io.github.agentic.ai.graph.agent.interceptor;
     
     import org.springframework.ai.tool.ToolCallback;
     
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ModelRequest.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ModelRequest.java
    similarity index 98%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ModelRequest.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ModelRequest.java
    index 6b6cd3b3b..efd2d5c87 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ModelRequest.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ModelRequest.java
    @@ -13,7 +13,7 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor;
    +package io.github.agentic.ai.graph.agent.interceptor;
     
     import org.springframework.ai.chat.messages.Message;
     import org.springframework.ai.chat.messages.SystemMessage;
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ModelResponse.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ModelResponse.java
    similarity index 96%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ModelResponse.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ModelResponse.java
    index 30840cf67..f66e42455 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ModelResponse.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ModelResponse.java
    @@ -13,7 +13,7 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor;
    +package io.github.agentic.ai.graph.agent.interceptor;
     
     import org.springframework.ai.chat.messages.AssistantMessage;
     import org.springframework.ai.chat.model.ChatResponse;
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/StreamingModelInterceptor.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/StreamingModelInterceptor.java
    similarity index 98%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/StreamingModelInterceptor.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/StreamingModelInterceptor.java
    index 5a0d0b746..43cf1eced 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/StreamingModelInterceptor.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/StreamingModelInterceptor.java
    @@ -13,7 +13,7 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor;
    +package io.github.agentic.ai.graph.agent.interceptor;
     
     import org.springframework.ai.chat.messages.AssistantMessage;
     import org.springframework.ai.chat.model.ChatResponse;
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ToolCallExecutionContext.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ToolCallExecutionContext.java
    similarity index 90%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ToolCallExecutionContext.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ToolCallExecutionContext.java
    index d94fcefea..d5b72d6ee 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ToolCallExecutionContext.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ToolCallExecutionContext.java
    @@ -13,10 +13,10 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor;
    +package io.github.agentic.ai.graph.agent.interceptor;
     
    -import io.github.agentic.spring.ai.graph.OverAllState;
    -import io.github.agentic.spring.ai.graph.RunnableConfig;
    +import io.github.agentic.ai.graph.OverAllState;
    +import io.github.agentic.ai.graph.RunnableConfig;
     
     import java.util.Optional;
     
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ToolCallHandler.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ToolCallHandler.java
    similarity index 94%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ToolCallHandler.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ToolCallHandler.java
    index cb7205f62..33e0dbe79 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ToolCallHandler.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ToolCallHandler.java
    @@ -13,7 +13,7 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor;
    +package io.github.agentic.ai.graph.agent.interceptor;
     
     /**
      * Handler interface for tool call interceptors.
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ToolCallRequest.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ToolCallRequest.java
    similarity index 98%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ToolCallRequest.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ToolCallRequest.java
    index e22eed7eb..c1ca17847 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ToolCallRequest.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ToolCallRequest.java
    @@ -13,7 +13,7 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor;
    +package io.github.agentic.ai.graph.agent.interceptor;
     
     import org.springframework.ai.chat.messages.AssistantMessage;
     
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ToolCallResponse.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ToolCallResponse.java
    similarity index 98%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ToolCallResponse.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ToolCallResponse.java
    index 65c705bbd..8cf7ddaef 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ToolCallResponse.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ToolCallResponse.java
    @@ -13,7 +13,7 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor;
    +package io.github.agentic.ai.graph.agent.interceptor;
     
     import org.springframework.ai.chat.messages.ToolResponseMessage;
     
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ToolInterceptor.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ToolInterceptor.java
    similarity index 95%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ToolInterceptor.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ToolInterceptor.java
    index b440c73f9..35d427824 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/ToolInterceptor.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/ToolInterceptor.java
    @@ -13,7 +13,7 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor;
    +package io.github.agentic.ai.graph.agent.interceptor;
     
     /**
      * Tool interceptor that can wrap tool calls.
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/contextediting/ContextEditingInterceptor.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/contextediting/ContextEditingInterceptor.java
    similarity index 95%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/contextediting/ContextEditingInterceptor.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/contextediting/ContextEditingInterceptor.java
    index 87afec9c4..c72890543 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/contextediting/ContextEditingInterceptor.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/contextediting/ContextEditingInterceptor.java
    @@ -13,13 +13,13 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor.contextediting;
    +package io.github.agentic.ai.graph.agent.interceptor.contextediting;
     
    -import io.github.agentic.spring.ai.graph.agent.hook.TokenCounter;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelCallHandler;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelInterceptor;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelResponse;
    +import io.github.agentic.ai.graph.agent.hook.TokenCounter;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelCallHandler;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelInterceptor;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelResponse;
     
     import org.springframework.ai.chat.messages.AssistantMessage;
     import org.springframework.ai.chat.messages.Message;
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/modelfallback/ModelFallbackInterceptor.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/modelfallback/ModelFallbackInterceptor.java
    similarity index 90%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/modelfallback/ModelFallbackInterceptor.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/modelfallback/ModelFallbackInterceptor.java
    index b8cf16ba5..937957305 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/modelfallback/ModelFallbackInterceptor.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/modelfallback/ModelFallbackInterceptor.java
    @@ -13,12 +13,12 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor.modelfallback;
    +package io.github.agentic.ai.graph.agent.interceptor.modelfallback;
     
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelCallHandler;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelInterceptor;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelResponse;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelCallHandler;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelInterceptor;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelResponse;
     
     import org.springframework.ai.chat.messages.Message;
     import org.springframework.ai.chat.model.ChatModel;
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/modelretry/ModelRetryInterceptor.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/modelretry/ModelRetryInterceptor.java
    similarity index 97%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/modelretry/ModelRetryInterceptor.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/modelretry/ModelRetryInterceptor.java
    index 539a64360..a0d5ac95a 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/modelretry/ModelRetryInterceptor.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/modelretry/ModelRetryInterceptor.java
    @@ -13,12 +13,12 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor.modelretry;
    +package io.github.agentic.ai.graph.agent.interceptor.modelretry;
     
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelCallHandler;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelInterceptor;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelResponse;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelCallHandler;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelInterceptor;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelResponse;
     
     import org.springframework.ai.chat.messages.AssistantMessage;
     import org.springframework.ai.chat.messages.Message;
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/modelretry/RetryDelayCalculator.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/modelretry/RetryDelayCalculator.java
    similarity index 92%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/modelretry/RetryDelayCalculator.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/modelretry/RetryDelayCalculator.java
    index 64f1e05d0..4e24dda22 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/modelretry/RetryDelayCalculator.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/modelretry/RetryDelayCalculator.java
    @@ -13,7 +13,7 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor.modelretry;
    +package io.github.agentic.ai.graph.agent.interceptor.modelretry;
     
     final class RetryDelayCalculator {
     
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/skills/SkillsInterceptor.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/skills/SkillsInterceptor.java
    similarity index 93%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/skills/SkillsInterceptor.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/skills/SkillsInterceptor.java
    index e984d5911..4e53cb978 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/skills/SkillsInterceptor.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/skills/SkillsInterceptor.java
    @@ -13,17 +13,17 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor.skills;
    -
    -import io.github.agentic.spring.ai.graph.agent.hook.skills.ReadSkillTool;
    -import io.github.agentic.spring.ai.graph.agent.hook.skills.SkillsAgentHook;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelCallHandler;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelInterceptor;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelResponse;
    -import io.github.agentic.spring.ai.graph.agent.tool.ToolCallbackUtils;
    -import io.github.agentic.spring.ai.graph.skills.SkillMetadata;
    -import io.github.agentic.spring.ai.graph.skills.registry.SkillRegistry;
    +package io.github.agentic.ai.graph.agent.interceptor.skills;
    +
    +import io.github.agentic.ai.graph.agent.hook.skills.ReadSkillTool;
    +import io.github.agentic.ai.graph.agent.hook.skills.SkillsAgentHook;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelCallHandler;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelInterceptor;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelResponse;
    +import io.github.agentic.ai.graph.agent.tool.ToolCallbackUtils;
    +import io.github.agentic.ai.graph.skills.SkillMetadata;
    +import io.github.agentic.ai.graph.skills.registry.SkillRegistry;
     
     import org.springframework.ai.chat.messages.AssistantMessage;
     import org.springframework.ai.chat.messages.Message;
    @@ -44,7 +44,7 @@
     import org.slf4j.Logger;
     import org.slf4j.LoggerFactory;
     
    -import static io.github.agentic.spring.ai.graph.skills.SkillPromptConstants.buildSkillsPrompt;
    +import static io.github.agentic.ai.graph.skills.SkillPromptConstants.buildSkillsPrompt;
     
     /**
      * Interceptor for integrating Claude-style Skills into ReactAgent.
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/todolist/TodoListInterceptor.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/todolist/TodoListInterceptor.java
    similarity index 94%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/todolist/TodoListInterceptor.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/todolist/TodoListInterceptor.java
    index 94db92fe1..2ea812ba4 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/todolist/TodoListInterceptor.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/todolist/TodoListInterceptor.java
    @@ -13,13 +13,13 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor.todolist;
    +package io.github.agentic.ai.graph.agent.interceptor.todolist;
     
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelCallHandler;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelInterceptor;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelResponse;
    -import io.github.agentic.spring.ai.graph.agent.tools.WriteTodosTool;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelCallHandler;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelInterceptor;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelResponse;
    +import io.github.agentic.ai.graph.agent.tools.WriteTodosTool;
     
     import org.springframework.ai.chat.messages.SystemMessage;
     import org.springframework.ai.tool.ToolCallback;
    @@ -33,7 +33,7 @@
     import com.fasterxml.jackson.annotation.JsonPropertyDescription;
     import com.fasterxml.jackson.annotation.JsonValue;
     
    -import static io.github.agentic.spring.ai.graph.agent.tools.WriteTodosTool.DEFAULT_TOOL_DESCRIPTION;
    +import static io.github.agentic.ai.graph.agent.tools.WriteTodosTool.DEFAULT_TOOL_DESCRIPTION;
     
     /**
      * Model interceptor that provides todo list management capabilities to agents.
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/toolemulator/ToolEmulatorInterceptor.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/toolemulator/ToolEmulatorInterceptor.java
    similarity index 93%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/toolemulator/ToolEmulatorInterceptor.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/toolemulator/ToolEmulatorInterceptor.java
    index 8234620bb..4ef1d80bf 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/toolemulator/ToolEmulatorInterceptor.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/toolemulator/ToolEmulatorInterceptor.java
    @@ -13,12 +13,12 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor.toolemulator;
    +package io.github.agentic.ai.graph.agent.interceptor.toolemulator;
     
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallHandler;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallRequest;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallResponse;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolInterceptor;
    +import io.github.agentic.ai.graph.agent.interceptor.ToolCallHandler;
    +import io.github.agentic.ai.graph.agent.interceptor.ToolCallRequest;
    +import io.github.agentic.ai.graph.agent.interceptor.ToolCallResponse;
    +import io.github.agentic.ai.graph.agent.interceptor.ToolInterceptor;
     
     import org.springframework.ai.chat.messages.UserMessage;
     import org.springframework.ai.chat.model.ChatModel;
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/toolerror/ToolErrorInterceptor.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/toolerror/ToolErrorInterceptor.java
    similarity index 76%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/toolerror/ToolErrorInterceptor.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/toolerror/ToolErrorInterceptor.java
    index f8d714c27..5410292ea 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/toolerror/ToolErrorInterceptor.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/toolerror/ToolErrorInterceptor.java
    @@ -13,12 +13,12 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor.toolerror;
    +package io.github.agentic.ai.graph.agent.interceptor.toolerror;
     
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallHandler;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallRequest;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallResponse;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolInterceptor;
    +import io.github.agentic.ai.graph.agent.interceptor.ToolCallHandler;
    +import io.github.agentic.ai.graph.agent.interceptor.ToolCallRequest;
    +import io.github.agentic.ai.graph.agent.interceptor.ToolCallResponse;
    +import io.github.agentic.ai.graph.agent.interceptor.ToolInterceptor;
     
     public class ToolErrorInterceptor extends ToolInterceptor {
     
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/toolretry/ToolRetryInterceptor.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/toolretry/ToolRetryInterceptor.java
    similarity index 95%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/toolretry/ToolRetryInterceptor.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/toolretry/ToolRetryInterceptor.java
    index 5bf2ad698..7e3b6a2f2 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/toolretry/ToolRetryInterceptor.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/toolretry/ToolRetryInterceptor.java
    @@ -13,12 +13,12 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor.toolretry;
    +package io.github.agentic.ai.graph.agent.interceptor.toolretry;
     
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallHandler;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallRequest;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallResponse;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolInterceptor;
    +import io.github.agentic.ai.graph.agent.interceptor.ToolCallHandler;
    +import io.github.agentic.ai.graph.agent.interceptor.ToolCallRequest;
    +import io.github.agentic.ai.graph.agent.interceptor.ToolCallResponse;
    +import io.github.agentic.ai.graph.agent.interceptor.ToolInterceptor;
     
     import java.util.Arrays;
     import java.util.HashSet;
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/toolselection/ToolSelectionInterceptor.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/toolselection/ToolSelectionInterceptor.java
    similarity index 95%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/toolselection/ToolSelectionInterceptor.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/toolselection/ToolSelectionInterceptor.java
    index 05d97ec11..55a76ef39 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/interceptor/toolselection/ToolSelectionInterceptor.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/interceptor/toolselection/ToolSelectionInterceptor.java
    @@ -13,12 +13,12 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.interceptor.toolselection;
    +package io.github.agentic.ai.graph.agent.interceptor.toolselection;
     
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelCallHandler;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelInterceptor;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelResponse;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelCallHandler;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelInterceptor;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelResponse;
     
     import org.springframework.ai.chat.messages.Message;
     import org.springframework.ai.chat.messages.SystemMessage;
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/node/AgentLlmNode.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/node/AgentLlmNode.java
    similarity index 95%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/node/AgentLlmNode.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/node/AgentLlmNode.java
    index 1d1d3d5cc..e14cf0eef 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/node/AgentLlmNode.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/node/AgentLlmNode.java
    @@ -13,20 +13,20 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.node;
    -
    -import io.github.agentic.spring.ai.graph.OverAllState;
    -import io.github.agentic.spring.ai.graph.RunnableConfig;
    -import io.github.agentic.spring.ai.graph.action.NodeActionWithConfig;
    -import io.github.agentic.spring.ai.graph.serializer.AgentInstructionMessage;
    -import io.github.agentic.spring.ai.graph.utils.TypeRef;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelInterceptor;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelResponse;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelCallHandler;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.InterceptorChain;
    -import io.github.agentic.spring.ai.graph.agent.tool.ToolCallbackUtils;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.StreamingModelInterceptor;
    +package io.github.agentic.ai.graph.agent.node;
    +
    +import io.github.agentic.ai.graph.OverAllState;
    +import io.github.agentic.ai.graph.RunnableConfig;
    +import io.github.agentic.ai.graph.action.NodeActionWithConfig;
    +import io.github.agentic.ai.graph.serializer.AgentInstructionMessage;
    +import io.github.agentic.ai.graph.utils.TypeRef;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelInterceptor;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelResponse;
    +import io.github.agentic.ai.graph.agent.interceptor.ModelCallHandler;
    +import io.github.agentic.ai.graph.agent.interceptor.InterceptorChain;
    +import io.github.agentic.ai.graph.agent.tool.ToolCallbackUtils;
    +import io.github.agentic.ai.graph.agent.interceptor.StreamingModelInterceptor;
     
     import org.springframework.ai.chat.client.ChatClient;
     import org.springframework.ai.chat.client.ChatClientAttributes;
    @@ -60,8 +60,8 @@
     
     import reactor.core.publisher.Flux;
     
    -import static io.github.agentic.spring.ai.graph.RunnableConfig.AGENT_MODEL_NAME;
    -import static io.github.agentic.spring.ai.graph.checkpoint.BaseCheckpointSaver.THREAD_ID_DEFAULT;
    +import static io.github.agentic.ai.graph.RunnableConfig.AGENT_MODEL_NAME;
    +import static io.github.agentic.ai.graph.checkpoint.BaseCheckpointSaver.THREAD_ID_DEFAULT;
     
     public class AgentLlmNode implements NodeActionWithConfig {
     	private static final Logger logger = LoggerFactory.getLogger(AgentLlmNode.class);
    diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNode.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/node/AgentToolNode.java
    similarity index 94%
    rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNode.java
    rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/node/AgentToolNode.java
    index 9ca9fbd7a..342709208 100644
    --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNode.java
    +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/node/AgentToolNode.java
    @@ -13,26 +13,26 @@
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
    -package io.github.agentic.spring.ai.graph.agent.node;
    -
    -import io.github.agentic.spring.ai.graph.OverAllState;
    -import io.github.agentic.spring.ai.graph.RunnableConfig;
    -import io.github.agentic.spring.ai.graph.action.NodeActionWithConfig;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.InterceptorChain;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallExecutionContext;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallHandler;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallRequest;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallResponse;
    -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolInterceptor;
    -import io.github.agentic.spring.ai.graph.agent.tool.AsyncToolCallback;
    -import io.github.agentic.spring.ai.graph.agent.tool.AsyncToolCallbackAdapter;
    -import io.github.agentic.spring.ai.graph.agent.tool.CancellableAsyncToolCallback;
    -import io.github.agentic.spring.ai.graph.agent.tool.DefaultCancellationToken;
    -import io.github.agentic.spring.ai.graph.agent.tool.StateAwareToolCallback;
    -import io.github.agentic.spring.ai.graph.agent.tool.ToolCancelledException;
    -import io.github.agentic.spring.ai.graph.agent.tool.ToolStateCollector;
    -import io.github.agentic.spring.ai.graph.internal.node.ParallelNode;
    -import io.github.agentic.spring.ai.graph.state.RemoveByHash;
    +package io.github.agentic.ai.graph.agent.node;
    +
    +import io.github.agentic.ai.graph.OverAllState;
    +import io.github.agentic.ai.graph.RunnableConfig;
    +import io.github.agentic.ai.graph.action.NodeActionWithConfig;
    +import io.github.agentic.ai.graph.agent.interceptor.InterceptorChain;
    +import io.github.agentic.ai.graph.agent.interceptor.ToolCallExecutionContext;
    +import io.github.agentic.ai.graph.agent.interceptor.ToolCallHandler;
    +import io.github.agentic.ai.graph.agent.interceptor.ToolCallRequest;
    +import io.github.agentic.ai.graph.agent.interceptor.ToolCallResponse;
    +import io.github.agentic.ai.graph.agent.interceptor.ToolInterceptor;
    +import io.github.agentic.ai.graph.agent.tool.AsyncToolCallback;
    +import io.github.agentic.ai.graph.agent.tool.AsyncToolCallbackAdapter;
    +import io.github.agentic.ai.graph.agent.tool.CancellableAsyncToolCallback;
    +import io.github.agentic.ai.graph.agent.tool.DefaultCancellationToken;
    +import io.github.agentic.ai.graph.agent.tool.StateAwareToolCallback;
    +import io.github.agentic.ai.graph.agent.tool.ToolCancelledException;
    +import io.github.agentic.ai.graph.agent.tool.ToolStateCollector;
    +import io.github.agentic.ai.graph.internal.node.ParallelNode;
    +import io.github.agentic.ai.graph.state.RemoveByHash;
     
     import org.slf4j.Logger;
     import org.slf4j.LoggerFactory;
    @@ -68,13 +68,13 @@
     import java.util.stream.Collectors;
     import java.util.stream.IntStream;
     
    -import static io.github.agentic.spring.ai.graph.RunnableConfig.AGENT_TOOL_NAME;
    -import static io.github.agentic.spring.ai.graph.agent.DefaultBuilder.POSSIBLE_LLM_TOOL_NAME_CHANGE_WARNING;
    -import static io.github.agentic.spring.ai.graph.agent.hook.returndirect.ReturnDirectConstants.FINISH_REASON_METADATA_KEY;
    -import static io.github.agentic.spring.ai.graph.agent.tools.ToolContextConstants.AGENT_CONFIG_CONTEXT_KEY;
    -import static io.github.agentic.spring.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_CONTEXT_KEY;
    -import static io.github.agentic.spring.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_FOR_UPDATE_CONTEXT_KEY;
    -import static io.github.agentic.spring.ai.graph.checkpoint.BaseCheckpointSaver.THREAD_ID_DEFAULT;
    +import static io.github.agentic.ai.graph.RunnableConfig.AGENT_TOOL_NAME;
    +import static io.github.agentic.ai.graph.agent.DefaultBuilder.POSSIBLE_LLM_TOOL_NAME_CHANGE_WARNING;
    +import static io.github.agentic.ai.graph.agent.hook.returndirect.ReturnDirectConstants.FINISH_REASON_METADATA_KEY;
    +import static io.github.agentic.ai.graph.agent.tools.ToolContextConstants.AGENT_CONFIG_CONTEXT_KEY;
    +import static io.github.agentic.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_CONTEXT_KEY;
    +import static io.github.agentic.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_FOR_UPDATE_CONTEXT_KEY;
    +import static io.github.agentic.ai.graph.checkpoint.BaseCheckpointSaver.THREAD_ID_DEFAULT;
     import static org.springframework.ai.model.tool.ToolExecutionResult.FINISH_REASON;
     
     /**
    @@ -237,7 +237,7 @@ else if (lastMessage instanceof ToolResponseMessage toolResponseMessage) {
     	 * 

    *

    * Note: This differs from parallel execution mode, which respects - * {@link io.github.agentic.spring.ai.graph.KeyStrategy} for merge operations. If you + * {@link io.github.agentic.ai.graph.KeyStrategy} for merge operations. If you * need deterministic merge behavior (e.g., APPEND for lists), use parallel execution * mode instead. *

    @@ -294,7 +294,7 @@ private Map executeToolCallsSequential(ListState Merge Semantics *

    * Parallel mode uses {@link ToolStateCollector} which respects the - * {@link io.github.agentic.spring.ai.graph.KeyStrategy} configured for each state key. + * {@link io.github.agentic.ai.graph.KeyStrategy} configured for each state key. * This provides deterministic merge behavior even when multiple tools write to the * same key concurrently: *

      diff --git a/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/renderer/ArgiStTemplateRenderer.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/renderer/ArgiStTemplateRenderer.java new file mode 100644 index 000000000..08b052d11 --- /dev/null +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/renderer/ArgiStTemplateRenderer.java @@ -0,0 +1,649 @@ +/* + * Copyright 2024-2025 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.github.agentic.ai.graph.agent.renderer; + +import org.springframework.ai.template.TemplateRenderer; +import org.springframework.ai.template.ValidationMode; + +import org.springframework.util.Assert; + +import java.util.HashSet; +import java.util.Map; +import java.util.Set; + +import org.antlr.runtime.Token; +import org.antlr.runtime.TokenStream; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.stringtemplate.v4.ST; +import org.stringtemplate.v4.STGroup; +import org.stringtemplate.v4.compiler.Compiler; +import org.stringtemplate.v4.compiler.STLexer; + +public class ArgiStTemplateRenderer implements TemplateRenderer { + + private static final Logger logger = LoggerFactory.getLogger(ArgiStTemplateRenderer.class); + + private static final String VALIDATION_MESSAGE = "Not all variables were replaced in the template. Missing variable names are: %s."; + + private static final char DEFAULT_START_DELIMITER_TOKEN = '{'; + + private static final char DEFAULT_END_DELIMITER_TOKEN = '}'; + + private static final String DEFAULT_START_DELIMITER_STRING = "{"; + + private static final String DEFAULT_END_DELIMITER_STRING = "}"; + + private static final ValidationMode DEFAULT_VALIDATION_MODE = ValidationMode.THROW; + + private static final boolean DEFAULT_VALIDATE_ST_FUNCTIONS = false; + + // Use uncommon characters as temporary delimiters for string-based delimiter conversion + private static final char TEMP_START_DELIMITER = '\u0001'; + + private static final char TEMP_END_DELIMITER = '\u0002'; + + private final char startDelimiterToken; + + private final char endDelimiterToken; + + private final String startDelimiterString; + + private final String endDelimiterString; + + private final boolean useStringDelimiters; + + private final ValidationMode validationMode; + + private final boolean validateStFunctions; + + /** + * Constructs a new {@code ArgiStTemplateRenderer} with the specified delimiter tokens, + * validation mode, and function validation flag. + * @param startDelimiterToken the character used to denote the start of a template + * variable (e.g., '{') + * @param endDelimiterToken the character used to denote the end of a template + * variable (e.g., '}') + * @param validationMode the mode to use for template variable validation; must not be + * null + * @param validateStFunctions whether to validate StringTemplate functions in the + * template + */ + public ArgiStTemplateRenderer(char startDelimiterToken, char endDelimiterToken, ValidationMode validationMode, + boolean validateStFunctions) { + Assert.notNull(validationMode, "validationMode cannot be null"); + this.startDelimiterToken = startDelimiterToken; + this.endDelimiterToken = endDelimiterToken; + this.startDelimiterString = String.valueOf(startDelimiterToken); + this.endDelimiterString = String.valueOf(endDelimiterToken); + this.useStringDelimiters = false; + this.validationMode = validationMode; + this.validateStFunctions = validateStFunctions; + } + + /** + * Constructs a new {@code ArgiStTemplateRenderer} with the specified string delimiter tokens, + * validation mode, and function validation flag. + *

      + * This constructor supports multi-character delimiters (e.g., "{{" and "}}"), which is + * useful for avoiding conflicts with JSON content or other text that uses single-character + * delimiters. + * @param startDelimiterString the string used to denote the start of a template + * variable (e.g., "{{") + * @param endDelimiterString the string used to denote the end of a template + * variable (e.g., "}}") + * @param validationMode the mode to use for template variable validation; must not be + * null + * @param validateStFunctions whether to validate StringTemplate functions in the + * template + */ + public ArgiStTemplateRenderer(String startDelimiterString, String endDelimiterString, ValidationMode validationMode, + boolean validateStFunctions) { + Assert.notNull(validationMode, "validationMode cannot be null"); + Assert.hasText(startDelimiterString, "startDelimiterString cannot be null or empty"); + Assert.hasText(endDelimiterString, "endDelimiterString cannot be null or empty"); + this.startDelimiterString = startDelimiterString; + this.endDelimiterString = endDelimiterString; + this.useStringDelimiters = true; + // For string delimiters, we use temporary single-char delimiters internally + this.startDelimiterToken = TEMP_START_DELIMITER; + this.endDelimiterToken = TEMP_END_DELIMITER; + this.validationMode = validationMode; + this.validateStFunctions = validateStFunctions; + } + + @Override + public String apply(String template, Map variables) { + Assert.hasText(template, "template cannot be null or empty"); + Assert.notNull(variables, "variables cannot be null"); + Assert.noNullElements(variables.keySet(), "variables keys cannot be null"); + + ST st = createST(template); + for (Map.Entry entry : variables.entrySet()) { + st.add(entry.getKey(), entry.getValue()); + } + if (this.validationMode != ValidationMode.NONE) { + validate(st, variables); + } + String result = st.render(); + // Restore protected JSON content in the result + if (!this.useStringDelimiters) { + result = restoreJsonContentInResult(result); + } + return result; + } + + private ST createST(String template) { + try { + String processedTemplate = template; + // If using string delimiters, convert them to single-char delimiters for ST + if (this.useStringDelimiters) { + processedTemplate = convertStringDelimitersToChar(template); + } + else { + // For single-char delimiters, protect JSON content to avoid conflicts + processedTemplate = protectJsonContent(template); + } + STGroup group = new STGroup(this.startDelimiterToken, this.endDelimiterToken); + group.setListener(new Slf4jStErrorListener(logger)); + return new ST(group, processedTemplate); + } + catch (Exception ex) { + throw new IllegalArgumentException("The template string is not valid.", ex); + } + } + + // Temporary placeholders for JSON braces + private static final String JSON_OPEN_PLACEHOLDER = "\uE000"; + private static final String JSON_CLOSE_PLACEHOLDER = "\uE001"; + + /** + * Protects JSON content in templates when using single-character delimiters. + * This method identifies JSON objects/arrays and replaces their braces with placeholders + * to prevent StringTemplate from treating them as template variables. + * @param template the original template + * @return template with JSON braces protected + */ + private String protectJsonContent(String template) { + StringBuilder result = new StringBuilder(); + int i = 0; + int len = template.length(); + + while (i < len) { + // Look for potential JSON start: { followed by quote or whitespace+quote + int braceIdx = template.indexOf(this.startDelimiterToken, i); + if (braceIdx == -1) { + result.append(template.substring(i)); + break; + } + + // Append text before the brace + result.append(template.substring(i, braceIdx)); + + // Check if this is a template variable or JSON content + int afterBrace = braceIdx + 1; + if (afterBrace < len) { + char nextChar = template.charAt(afterBrace); + // If followed by a valid identifier start (letter, underscore, $), it's a template variable + boolean isTemplateVar = (Character.isLetter(nextChar) || nextChar == '_' || nextChar == '$'); + + if (!isTemplateVar) { + // Check if it looks like JSON: { followed by quote, whitespace+quote, or other JSON chars + boolean looksLikeJson = false; + if (nextChar == '"' || nextChar == '\'' || nextChar == '[' || nextChar == '{') { + looksLikeJson = true; + } + else if (Character.isWhitespace(nextChar)) { + // Check if whitespace is followed by a quote (JSON-like) + int nextNonWhitespace = afterBrace + 1; + while (nextNonWhitespace < len && Character.isWhitespace(template.charAt(nextNonWhitespace))) { + nextNonWhitespace++; + } + if (nextNonWhitespace < len) { + char afterWhitespace = template.charAt(nextNonWhitespace); + if (afterWhitespace == '"' || afterWhitespace == '\'' || afterWhitespace == '[') { + looksLikeJson = true; + } + } + } + + if (looksLikeJson) { + // This looks like JSON, find the matching closing brace + int closeBraceIdx = findMatchingJsonBrace(template, afterBrace); + if (closeBraceIdx != -1) { + // Replace JSON braces with placeholders + result.append(JSON_OPEN_PLACEHOLDER); + result.append(template.substring(afterBrace, closeBraceIdx)); + result.append(JSON_CLOSE_PLACEHOLDER); + i = closeBraceIdx + 1; + continue; + } + } + } + } + + // Not JSON, keep as-is (it's a template variable) + result.append(this.startDelimiterToken); + i = braceIdx + 1; + } + + return result.toString(); + } + + /** + * Finds the matching closing brace for a JSON object/array, handling nested structures. + * @param template the template string + * @param startPos the position after the opening brace + * @return the index of the matching closing brace, or -1 if not found + */ + private int findMatchingJsonBrace(String template, int startPos) { + int depth = 1; + int i = startPos; + int len = template.length(); + boolean inString = false; + char stringChar = 0; + + while (i < len && depth > 0) { + char ch = template.charAt(i); + + // Handle string literals + if (!inString && (ch == '"' || ch == '\'')) { + inString = true; + stringChar = ch; + } + else if (inString && ch == stringChar) { + // Check if it's escaped + if (i == 0 || template.charAt(i - 1) != '\\') { + inString = false; + stringChar = 0; + } + } + + if (!inString) { + if (ch == this.startDelimiterToken) { + depth++; + } + else if (ch == this.endDelimiterToken) { + depth--; + if (depth == 0) { + return i; + } + } + } + + i++; + } + + return -1; + } + + /** + * Restores protected JSON content in the rendered result by replacing placeholders back to braces. + * @param result the rendered result string + * @return result with JSON braces restored + */ + private String restoreJsonContentInResult(String result) { + return result.replace(JSON_OPEN_PLACEHOLDER, String.valueOf(this.startDelimiterToken)) + .replace(JSON_CLOSE_PLACEHOLDER, String.valueOf(this.endDelimiterToken)); + } + + /** + * Converts string-based delimiters (e.g., "{{" and "}}") to single-character delimiters + * for StringTemplate processing. This allows support for multi-character delimiters while + * working with StringTemplate V4's char-based API. + *

      + * The conversion uses a pattern matching approach to identify template variables while + * avoiding conflicts with literal text that might contain the delimiter strings. + * This method handles StringTemplate expressions including: + *

        + *
      • Simple variables: {{name}}
      • + *
      • Property access: {{user.name}}
      • + *
      • Function calls: {{first(items)}}
      • + *
      • Conditional expressions: {{name ?: "default"}}
      • + *
      • List operations: {{items; separator=", "}}
      • + *
      + * @param template the original template with string delimiters + * @return the template with converted single-character delimiters + */ + private String convertStringDelimitersToChar(String template) { + StringBuilder result = new StringBuilder(); + int i = 0; + int len = template.length(); + int startLen = this.startDelimiterString.length(); + int endLen = this.endDelimiterString.length(); + + while (i < len) { + // Look for start delimiter + int startIdx = template.indexOf(this.startDelimiterString, i); + if (startIdx == -1) { + // No more start delimiters, append the rest + result.append(template.substring(i)); + break; + } + + // Append text before the start delimiter + result.append(template.substring(i, startIdx)); + + // Check if this is a valid template variable start + // A valid start should be followed by an identifier or StringTemplate expression + int afterStart = startIdx + startLen; + if (afterStart < len) { + char nextChar = template.charAt(afterStart); + // Check if next character is a valid identifier start (letter, underscore, $, or whitespace for expressions) + // Also allow whitespace after delimiter for expressions like "{{ name }}" + if (Character.isLetter(nextChar) || nextChar == '_' || nextChar == '$' + || Character.isWhitespace(nextChar)) { + // This looks like a template variable, find the matching end delimiter + // We need to handle nested delimiters and balanced matching + int endIdx = findMatchingEndDelimiter(template, afterStart, startLen, endLen); + if (endIdx != -1) { + // Found matching end delimiter + // Extract the variable content + String variableContent = template.substring(afterStart, endIdx); + // Trim whitespace if needed, but preserve internal structure + variableContent = variableContent.trim(); + // Convert to single-char delimiter format + result.append(this.startDelimiterToken); + result.append(variableContent); + result.append(this.endDelimiterToken); + i = endIdx + endLen; + continue; + } + } + } + + // Not a valid template variable, keep the original delimiter as-is + result.append(this.startDelimiterString); + i = startIdx + startLen; + } + + return result.toString(); + } + + /** + * Finds the matching end delimiter for a template expression, handling nested delimiters + * and balanced matching. + * @param template the template string + * @param startPos the position after the start delimiter + * @param startLen the length of the start delimiter string + * @param endLen the length of the end delimiter string + * @return the index of the matching end delimiter, or -1 if not found + */ + private int findMatchingEndDelimiter(String template, int startPos, int startLen, int endLen) { + int depth = 1; // We've already found one start delimiter + int i = startPos; + int len = template.length(); + boolean inString = false; + char stringChar = 0; + + while (i < len) { + // Check for string delimiters (single or double quotes) + if (!inString) { + char ch = template.charAt(i); + if (ch == '"' || ch == '\'') { + inString = true; + stringChar = ch; + i++; + continue; + } + } + else { + char ch = template.charAt(i); + if (ch == stringChar && (i == 0 || template.charAt(i - 1) != '\\')) { + inString = false; + stringChar = 0; + i++; + continue; + } + i++; + continue; + } + + // Check for nested start delimiter + if (i + startLen <= len) { + String potentialStart = template.substring(i, i + startLen); + if (potentialStart.equals(this.startDelimiterString)) { + depth++; + i += startLen; + continue; + } + } + + // Check for end delimiter + if (i + endLen <= len) { + String potentialEnd = template.substring(i, i + endLen); + if (potentialEnd.equals(this.endDelimiterString)) { + depth--; + if (depth == 0) { + return i; + } + i += endLen; + continue; + } + } + + i++; + } + + return -1; // No matching end delimiter found + } + + /** + * Validates that all required template variables are provided in the model. Returns + * the set of missing variables for further handling or logging. + * @param st the StringTemplate instance + * @param templateVariables the provided variables + * @return set of missing variable names, or empty set if none are missing + */ + private Set validate(ST st, Map templateVariables) { + Set templateTokens = getInputVariables(st); + Set modelKeys = templateVariables.keySet(); + Set missingVariables = new HashSet<>(templateTokens); + missingVariables.removeAll(modelKeys); + + if (!missingVariables.isEmpty()) { + if (this.validationMode == ValidationMode.WARN) { + logger.warn(VALIDATION_MESSAGE.formatted(missingVariables)); + } + else if (this.validationMode == ValidationMode.THROW) { + throw new IllegalStateException(VALIDATION_MESSAGE.formatted(missingVariables)); + } + } + return missingVariables; + } + + private Set getInputVariables(ST st) { + TokenStream tokens = st.impl.tokens; + Set inputVariables = new HashSet<>(); + boolean isInsideList = false; + + for (int i = 0; i < tokens.size(); i++) { + Token token = tokens.get(i); + + // Handle list variables with option (e.g., {items; separator=", "}) + if (token.getType() == STLexer.LDELIM && i + 1 < tokens.size() + && tokens.get(i + 1).getType() == STLexer.ID) { + if (i + 2 < tokens.size() && tokens.get(i + 2).getType() == STLexer.COLON) { + String text = tokens.get(i + 1).getText(); + if (!org.stringtemplate.v4.compiler.Compiler.funcs.containsKey(text) || this.validateStFunctions) { + inputVariables.add(text); + isInsideList = true; + } + } + } + else if (token.getType() == STLexer.RDELIM) { + isInsideList = false; + } + // Handle regular variables - only add IDs that are at the start of an + // expression + else if (!isInsideList && token.getType() == STLexer.ID) { + // Check if this ID is a function call + boolean isFunctionCall = (i + 1 < tokens.size() && tokens.get(i + 1).getType() == STLexer.LPAREN); + + // Check if this ID is at the beginning of an expression (not a property + // access) + boolean isAfterDot = (i > 0 && tokens.get(i - 1).getType() == STLexer.DOT); + + // Only add IDs that are: + // 1. Not function calls + // 2. Not property values (not preceded by a dot) + // 3. Either not built-in functions or we're validating functions + if (!isFunctionCall && !isAfterDot) { + String varName = token.getText(); + if (!Compiler.funcs.containsKey(varName) || this.validateStFunctions) { + inputVariables.add(varName); + } + } + } + } + return inputVariables; + } + + public static ArgiStTemplateRenderer.Builder builder() { + return new ArgiStTemplateRenderer.Builder(); + } + + /** + * Builder for configuring and creating {@link ArgiStTemplateRenderer} instances. + */ + public static final class Builder { + + private char startDelimiterToken = DEFAULT_START_DELIMITER_TOKEN; + + private char endDelimiterToken = DEFAULT_END_DELIMITER_TOKEN; + + private String startDelimiterString = DEFAULT_START_DELIMITER_STRING; + + private String endDelimiterString = DEFAULT_END_DELIMITER_STRING; + + private boolean useStringDelimiters = false; + + private ValidationMode validationMode = DEFAULT_VALIDATION_MODE; + + private boolean validateStFunctions = DEFAULT_VALIDATE_ST_FUNCTIONS; + + private Builder() { + } + + /** + * Sets the character used as the start delimiter for template expressions. + * Default is '{'. + * @param startDelimiterToken The start delimiter character. + * @return This builder instance for chaining. + */ + public ArgiStTemplateRenderer.Builder startDelimiterToken(char startDelimiterToken) { + this.startDelimiterToken = startDelimiterToken; + this.startDelimiterString = String.valueOf(startDelimiterToken); + this.useStringDelimiters = false; + return this; + } + + /** + * Sets the character used as the end delimiter for template expressions. Default + * is '}'. + * @param endDelimiterToken The end delimiter character. + * @return This builder instance for chaining. + */ + public ArgiStTemplateRenderer.Builder endDelimiterToken(char endDelimiterToken) { + this.endDelimiterToken = endDelimiterToken; + this.endDelimiterString = String.valueOf(endDelimiterToken); + this.useStringDelimiters = false; + return this; + } + + /** + * Sets the string used as the start delimiter for template expressions. + * This allows using multi-character delimiters (e.g., "{{") which is useful + * for avoiding conflicts with JSON content or other text that uses single-character + * delimiters. + *

      + * When string delimiters are set, they take precedence over character delimiters. + * @param startDelimiterString The start delimiter string (e.g., "{{"). + * @return This builder instance for chaining. + */ + public ArgiStTemplateRenderer.Builder startDelimiter(String startDelimiterString) { + Assert.hasText(startDelimiterString, "startDelimiterString cannot be null or empty"); + this.startDelimiterString = startDelimiterString; + this.useStringDelimiters = true; + return this; + } + + /** + * Sets the string used as the end delimiter for template expressions. + * This allows using multi-character delimiters (e.g., "}}") which is useful + * for avoiding conflicts with JSON content or other text that uses single-character + * delimiters. + *

      + * When string delimiters are set, they take precedence over character delimiters. + * @param endDelimiterString The end delimiter string (e.g., "}}"). + * @return This builder instance for chaining. + */ + public ArgiStTemplateRenderer.Builder endDelimiter(String endDelimiterString) { + Assert.hasText(endDelimiterString, "endDelimiterString cannot be null or empty"); + this.endDelimiterString = endDelimiterString; + this.useStringDelimiters = true; + return this; + } + + /** + * Sets the validation mode to control behavior when the provided variables do not + * match the variables required by the template. Default is + * {@link ValidationMode#THROW}. + * @param validationMode The desired validation mode. + * @return This builder instance for chaining. + */ + public ArgiStTemplateRenderer.Builder validationMode(ValidationMode validationMode) { + this.validationMode = validationMode; + return this; + } + + /** + * Configures the renderer to support StringTemplate's built-in functions during + * validation. + *

      + * When enabled (set to true), identifiers in the template that match known ST + * function names (e.g., "first", "rest", "length") will not be treated as + * required input variables during validation. + *

      + * When disabled (default, false), these identifiers are treated like regular + * variables and must be provided in the input map if validation is enabled + * ({@link ValidationMode#WARN} or {@link ValidationMode#THROW}). + * @return This builder instance for chaining. + */ + public ArgiStTemplateRenderer.Builder validateStFunctions() { + this.validateStFunctions = true; + return this; + } + + /** + * Builds and returns a new {@link ArgiStTemplateRenderer} instance with the + * configured settings. + * @return A configured {@link ArgiStTemplateRenderer}. + */ + public ArgiStTemplateRenderer build() { + if (this.useStringDelimiters) { + return new ArgiStTemplateRenderer(this.startDelimiterString, this.endDelimiterString, this.validationMode, + this.validateStFunctions); + } + else { + return new ArgiStTemplateRenderer(this.startDelimiterToken, this.endDelimiterToken, this.validationMode, + this.validateStFunctions); + } + } + + } + +} diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/renderer/Slf4jStErrorListener.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/renderer/Slf4jStErrorListener.java similarity index 96% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/renderer/Slf4jStErrorListener.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/renderer/Slf4jStErrorListener.java index a689edea8..10df4c352 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/renderer/Slf4jStErrorListener.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/renderer/Slf4jStErrorListener.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.renderer; +package io.github.agentic.ai.graph.agent.renderer; import org.slf4j.Logger; import org.stringtemplate.v4.STErrorListener; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/AsyncToolCallback.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/AsyncToolCallback.java similarity index 98% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/AsyncToolCallback.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/AsyncToolCallback.java index c2fbcd083..e7062f0d2 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/AsyncToolCallback.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/AsyncToolCallback.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool; +package io.github.agentic.ai.graph.agent.tool; import org.springframework.ai.chat.model.ToolContext; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/AsyncToolCallbackAdapter.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/AsyncToolCallbackAdapter.java similarity index 99% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/AsyncToolCallbackAdapter.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/AsyncToolCallbackAdapter.java index 8f6fd0a31..1c456ce1e 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/AsyncToolCallbackAdapter.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/AsyncToolCallbackAdapter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool; +package io.github.agentic.ai.graph.agent.tool; import org.springframework.ai.chat.model.ToolContext; import org.springframework.ai.tool.ToolCallback; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/CancellableAsyncToolCallback.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/CancellableAsyncToolCallback.java similarity index 98% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/CancellableAsyncToolCallback.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/CancellableAsyncToolCallback.java index b2bc2fee9..e795745bc 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/CancellableAsyncToolCallback.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/CancellableAsyncToolCallback.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool; +package io.github.agentic.ai.graph.agent.tool; import org.springframework.ai.chat.model.ToolContext; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/CancellationToken.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/CancellationToken.java similarity index 98% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/CancellationToken.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/CancellationToken.java index b98f2a21b..3c7adc994 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/CancellationToken.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/CancellationToken.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool; +package io.github.agentic.ai.graph.agent.tool; /** * Token for cooperative cancellation of tool execution. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/DefaultCancellationToken.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/DefaultCancellationToken.java similarity index 98% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/DefaultCancellationToken.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/DefaultCancellationToken.java index c56912699..fb3560207 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/DefaultCancellationToken.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/DefaultCancellationToken.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool; +package io.github.agentic.ai.graph.agent.tool; import java.util.List; import java.util.concurrent.CompletableFuture; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/StateAwareToolCallback.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/StateAwareToolCallback.java similarity index 96% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/StateAwareToolCallback.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/StateAwareToolCallback.java index 1fdbe1d92..529a6c879 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/StateAwareToolCallback.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/StateAwareToolCallback.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool; +package io.github.agentic.ai.graph.agent.tool; import org.springframework.ai.tool.ToolCallback; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/ToolCallbackUtils.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/ToolCallbackUtils.java similarity index 96% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/ToolCallbackUtils.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/ToolCallbackUtils.java index c9111b740..20513594e 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/ToolCallbackUtils.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/ToolCallbackUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool; +package io.github.agentic.ai.graph.agent.tool; import org.springframework.ai.tool.ToolCallback; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/ToolCancelledException.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/ToolCancelledException.java similarity index 96% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/ToolCancelledException.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/ToolCancelledException.java index ec55547c4..18f24289f 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/ToolCancelledException.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/ToolCancelledException.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool; +package io.github.agentic.ai.graph.agent.tool; /** * Exception thrown when a tool execution is cancelled. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/ToolStateCollector.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/ToolStateCollector.java similarity index 98% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/ToolStateCollector.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/ToolStateCollector.java index 249db843e..5d1e32323 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/ToolStateCollector.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/ToolStateCollector.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool; +package io.github.agentic.ai.graph.agent.tool; -import io.github.agentic.spring.ai.graph.KeyStrategy; +import io.github.agentic.ai.graph.KeyStrategy; import java.util.Collections; import java.util.Map; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/multimodal/MultimodalBase64ToolCallResultConverter.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/multimodal/MultimodalBase64ToolCallResultConverter.java similarity index 94% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/multimodal/MultimodalBase64ToolCallResultConverter.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/multimodal/MultimodalBase64ToolCallResultConverter.java index 90d9c0d76..d856d0030 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/multimodal/MultimodalBase64ToolCallResultConverter.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/multimodal/MultimodalBase64ToolCallResultConverter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool.multimodal; +package io.github.agentic.ai.graph.agent.tool.multimodal; /** * {@link MultimodalToolCallResultConverter} configured for base64 output. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/multimodal/MultimodalToolCallResultConverter.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/multimodal/MultimodalToolCallResultConverter.java similarity index 99% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/multimodal/MultimodalToolCallResultConverter.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/multimodal/MultimodalToolCallResultConverter.java index be40b286d..84679fd7f 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/multimodal/MultimodalToolCallResultConverter.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/multimodal/MultimodalToolCallResultConverter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool.multimodal; +package io.github.agentic.ai.graph.agent.tool.multimodal; import org.springframework.ai.content.Media; import org.springframework.ai.tool.execution.DefaultToolCallResultConverter; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/multimodal/OutputFormat.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/multimodal/OutputFormat.java similarity index 95% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/multimodal/OutputFormat.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/multimodal/OutputFormat.java index 700068201..dd935d5c1 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/multimodal/OutputFormat.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/multimodal/OutputFormat.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool.multimodal; +package io.github.agentic.ai.graph.agent.tool.multimodal; /** * Output format for multimodal tool results. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/multimodal/ToolMultimodalResult.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/multimodal/ToolMultimodalResult.java similarity index 98% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/multimodal/ToolMultimodalResult.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/multimodal/ToolMultimodalResult.java index b59575183..a978762ba 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tool/multimodal/ToolMultimodalResult.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tool/multimodal/ToolMultimodalResult.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool.multimodal; +package io.github.agentic.ai.graph.agent.tool.multimodal; import org.springframework.ai.content.Media; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/GlobSearchTool.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/GlobSearchTool.java similarity index 99% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/GlobSearchTool.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/GlobSearchTool.java index ceab75528..2d615a955 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/GlobSearchTool.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/GlobSearchTool.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools; +package io.github.agentic.ai.graph.agent.tools; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyDescription; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/GrepSearchTool.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/GrepSearchTool.java similarity index 99% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/GrepSearchTool.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/GrepSearchTool.java index fbf83d613..dac7f403e 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/GrepSearchTool.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/GrepSearchTool.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools; +package io.github.agentic.ai.graph.agent.tools; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyDescription; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/ShellSessionManager.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/ShellSessionManager.java similarity index 99% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/ShellSessionManager.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/ShellSessionManager.java index b2f622abd..56e1f7b71 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/ShellSessionManager.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/ShellSessionManager.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools; +package io.github.agentic.ai.graph.agent.tools; -import io.github.agentic.spring.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.RunnableConfig; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/ShellTool.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/ShellTool.java similarity index 97% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/ShellTool.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/ShellTool.java index b91e864c7..704dfa4dd 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/ShellTool.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/ShellTool.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools; +package io.github.agentic.ai.graph.agent.tools; -import io.github.agentic.spring.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.RunnableConfig; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyDescription; @@ -30,7 +30,7 @@ import java.util.Map; import java.util.function.BiFunction; -import static io.github.agentic.spring.ai.graph.agent.tools.ToolContextConstants.AGENT_CONFIG_CONTEXT_KEY; +import static io.github.agentic.ai.graph.agent.tools.ToolContextConstants.AGENT_CONFIG_CONTEXT_KEY; /** * A tool for executing shell commands. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/ShellTool2.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/ShellTool2.java similarity index 97% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/ShellTool2.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/ShellTool2.java index 276f3ab03..4d4051809 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/ShellTool2.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/ShellTool2.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools; +package io.github.agentic.ai.graph.agent.tools; -import io.github.agentic.spring.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.RunnableConfig; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -27,7 +27,7 @@ import java.util.List; import java.util.Map; -import static io.github.agentic.spring.ai.graph.agent.tools.ToolContextConstants.AGENT_CONFIG_CONTEXT_KEY; +import static io.github.agentic.ai.graph.agent.tools.ToolContextConstants.AGENT_CONFIG_CONTEXT_KEY; /** * A tool for executing shell commands using Spring AI Tool annotations. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/ToolContextConstants.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/ToolContextConstants.java similarity index 93% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/ToolContextConstants.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/ToolContextConstants.java index b1110f286..31c3cbd73 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/ToolContextConstants.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/ToolContextConstants.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools; +package io.github.agentic.ai.graph.agent.tools; public interface ToolContextConstants { String AGENT_STATE_CONTEXT_KEY = "_AGENT_STATE_"; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/ToolContextHelper.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/ToolContextHelper.java similarity index 97% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/ToolContextHelper.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/ToolContextHelper.java index 9945c6944..7932acd38 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/ToolContextHelper.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/ToolContextHelper.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools; +package io.github.agentic.ai.graph.agent.tools; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; import org.springframework.ai.chat.model.ToolContext; import org.springframework.lang.Nullable; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/WebFetchTool.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/WebFetchTool.java similarity index 99% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/WebFetchTool.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/WebFetchTool.java index c98e2a10c..529df8288 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/WebFetchTool.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/WebFetchTool.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools; +package io.github.agentic.ai.graph.agent.tools; import java.io.IOException; import java.net.Inet4Address; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/WriteTodosTool.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/WriteTodosTool.java similarity index 98% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/WriteTodosTool.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/WriteTodosTool.java index 9112010e8..72523047e 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/WriteTodosTool.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/WriteTodosTool.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools; +package io.github.agentic.ai.graph.agent.tools; -import io.github.agentic.spring.ai.graph.agent.interceptor.todolist.TodoListInterceptor.Todo; +import io.github.agentic.ai.graph.agent.interceptor.todolist.TodoListInterceptor.Todo; import com.fasterxml.jackson.annotation.JsonClassDescription; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyDescription; @@ -29,7 +29,7 @@ import java.util.Map; import java.util.function.BiFunction; -import static io.github.agentic.spring.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_FOR_UPDATE_CONTEXT_KEY; +import static io.github.agentic.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_FOR_UPDATE_CONTEXT_KEY; /** * Tool for writing and managing todos in the agent workflow. diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/AgentSpec.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/AgentSpec.java similarity index 95% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/AgentSpec.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/AgentSpec.java index 986da1307..5659807de 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/AgentSpec.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/AgentSpec.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools.task; +package io.github.agentic.ai.graph.agent.tools.task; import java.util.List; @@ -23,7 +23,6 @@ * Compatible with spring ai agent spec format. The markdown body becomes * the system prompt; front matter defines name, description, and optional tool filtering. * - * @author Spring AI Alibaba */ public record AgentSpec( /** diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/AgentSpecLoader.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/AgentSpecLoader.java similarity index 98% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/AgentSpecLoader.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/AgentSpecLoader.java index 4834f7658..80c159c6d 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/AgentSpecLoader.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/AgentSpecLoader.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools.task; +package io.github.agentic.ai.graph.agent.tools.task; import java.io.IOException; import java.nio.charset.StandardCharsets; @@ -49,7 +49,6 @@ * You are a file search specialist... *

    * - * @author Spring AI Alibaba */ public final class AgentSpecLoader { diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/AgentSpecReactAgentFactory.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/AgentSpecReactAgentFactory.java similarity index 97% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/AgentSpecReactAgentFactory.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/AgentSpecReactAgentFactory.java index 30a488767..9be7105f1 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/AgentSpecReactAgentFactory.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/AgentSpecReactAgentFactory.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools.task; +package io.github.agentic.ai.graph.agent.tools.task; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.ReactAgent; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.ai.chat.client.ChatClient; @@ -50,7 +50,6 @@ * } * }
    * - * @author Spring AI Alibaba */ public final class AgentSpecReactAgentFactory { diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/BackgroundTask.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/BackgroundTask.java similarity index 97% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/BackgroundTask.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/BackgroundTask.java index 84946b4f4..ddd05e37b 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/BackgroundTask.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/BackgroundTask.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools.task; +package io.github.agentic.ai.graph.agent.tools.task; import java.util.concurrent.CompletableFuture; import java.util.concurrent.TimeUnit; @@ -26,7 +26,6 @@ * Tasks are automatically started upon construction. Callers can check completion * status, wait for completion, cancel tasks, and retrieve results or errors. * - * @author Spring AI Alibaba */ public class BackgroundTask { diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/DefaultTaskRepository.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/DefaultTaskRepository.java similarity index 97% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/DefaultTaskRepository.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/DefaultTaskRepository.java index d2cdc3ecd..1f6f8837f 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/DefaultTaskRepository.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/DefaultTaskRepository.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools.task; +package io.github.agentic.ai.graph.agent.tools.task; import java.util.Map; import java.util.concurrent.CompletableFuture; @@ -26,7 +26,6 @@ /** * Default implementation of TaskRepository using a thread pool for background execution. * - * @author Spring AI Alibaba */ public class DefaultTaskRepository implements TaskRepository { diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/TaskOutputTool.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/TaskOutputTool.java similarity index 98% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/TaskOutputTool.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/TaskOutputTool.java index db50dee4a..3610a7c50 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/TaskOutputTool.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/TaskOutputTool.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools.task; +package io.github.agentic.ai.graph.agent.tools.task; import com.fasterxml.jackson.annotation.JsonClassDescription; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/TaskRepository.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/TaskRepository.java similarity index 94% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/TaskRepository.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/TaskRepository.java index 9385dda72..8669c44e5 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/TaskRepository.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/TaskRepository.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools.task; +package io.github.agentic.ai.graph.agent.tools.task; import java.util.function.Supplier; @@ -23,7 +23,6 @@ * Inspired by spring ai TaskRepository, enables the main agent to * launch sub-agents in the background and retrieve results later via TaskOutputTool. * - * @author Spring AI Alibaba */ public interface TaskRepository { diff --git a/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/TaskTool.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/TaskTool.java new file mode 100644 index 000000000..7199938a7 --- /dev/null +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/TaskTool.java @@ -0,0 +1,205 @@ +/* + * Copyright 2024-2026 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.github.agentic.ai.graph.agent.tools.task; + +import io.github.agentic.ai.graph.agent.ReactAgent; +import com.fasterxml.jackson.annotation.JsonClassDescription; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.ai.chat.messages.AssistantMessage; +import org.springframework.ai.chat.model.ToolContext; +import org.springframework.ai.tool.ToolCallback; +import org.springframework.ai.tool.function.FunctionToolCallback; +import org.springframework.util.Assert; +import org.springframework.util.CollectionUtils; +import org.springframework.util.StringUtils; + +import java.util.HashMap; +import java.util.Map; +import java.util.UUID; +import java.util.function.BiFunction; + +/** + * Tool that enables invoking sub-agents to handle complex, isolated tasks. + *

    + * Inspired by spring ai TaskTool, this allows the main agent to delegate + * work to specialized sub-agents, each with their own context and capabilities. + * Supports both synchronous and background execution. + */ +public class TaskTool implements BiFunction { + + private static final Logger logger = LoggerFactory.getLogger(TaskTool.class); + + // @formatter:off + public static final String DEFAULT_DESCRIPTION = """ + Launch a specialized sub-agent to handle complex, multi-step tasks autonomously. + + Use this tool when: + - The task requires exploring codebases, researching, or multi-step execution + - You need to delegate to an agent with specific expertise (e.g., Explore, general-purpose) + - The task would consume too much context if done directly + + Available sub-agent types and their capabilities: + %s + + Parameters: + - description: Short (3-5 word) summary of what the agent will do + - prompt: The detailed task for the sub-agent to perform + - subagent_type: The type of specialized agent to use (required) + - run_in_background: Set to true to run asynchronously; use TaskOutput tool to retrieve results later + + When run_in_background=true, returns a task_id. Use the TaskOutput tool with that task_id to get results. + """; + // @formatter:on + + private final Map subAgents; + + private final TaskRepository taskRepository; + + public TaskTool(Map subAgents, TaskRepository taskRepository) { + Assert.notEmpty(subAgents, "subAgents must not be empty"); + Assert.notNull(taskRepository, "taskRepository must not be null"); + this.subAgents = Map.copyOf(subAgents); + this.taskRepository = taskRepository; + } + + @Override + public String apply(Request request, ToolContext toolContext) { + String subagentType = request.subagentType(); + if (!StringUtils.hasText(subagentType)) { + return "Error: subagent_type is required"; + } + + if (!subAgents.containsKey(subagentType)) { + return "Error: Unknown subagent type: " + subagentType + ". Allowed types: " + subAgents.keySet(); + } + + ReactAgent subAgent = subAgents.get(subagentType); + String prompt = request.prompt(); + if (!StringUtils.hasText(prompt)) { + return "Error: prompt is required"; + } + + if (Boolean.TRUE.equals(request.runInBackground())) { + String taskId = "task_" + UUID.randomUUID(); + this.taskRepository.putTask(taskId, () -> executeSubAgent(subAgent, prompt)); + return String.format( + "task_id: %s%n%nBackground task started. Use TaskOutput tool with task_id='%s' to retrieve results.", + taskId, taskId); + } + + return executeSubAgent(subAgent, prompt); + } + + private String executeSubAgent(ReactAgent subAgent, String prompt) { + try { + AssistantMessage result = subAgent.call(prompt); + return result != null ? result.getText() : "Sub-agent returned empty response"; + } + catch (Exception e) { + logger.warn("Sub-agent execution failed: {}", e.getMessage()); + return "Error executing sub-agent: " + e.getMessage(); + } + } + + /** + * Request structure for the Task tool. + */ + @JsonClassDescription("Request to launch a sub-agent task") + public record Request( + @JsonProperty(required = true) + @JsonPropertyDescription("Short (3-5 word) description of what the agent will do") + String description, + + @JsonProperty(required = true) + @JsonPropertyDescription("The detailed task for the sub-agent to perform") + String prompt, + + @JsonProperty(required = true, value = "subagent_type") + @JsonPropertyDescription("The type of specialized agent to use") + String subagentType, + + @JsonProperty(value = "run_in_background") + @JsonPropertyDescription("Set to true to run in background; use TaskOutput to retrieve results") + Boolean runInBackground) { + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + + private final Map subAgents = new HashMap<>(); + + private TaskRepository taskRepository = new DefaultTaskRepository(); + + private String name = "Task"; + + private String description; + + public Builder subAgent(String type, ReactAgent agent) { + Assert.hasText(type, "type must not be empty"); + Assert.notNull(agent, "agent must not be null"); + this.subAgents.put(type, agent); + return this; + } + + public Builder subAgents(Map agents) { + if (!CollectionUtils.isEmpty(agents)) { + this.subAgents.putAll(agents); + } + return this; + } + + public Builder taskRepository(TaskRepository taskRepository) { + Assert.notNull(taskRepository, "taskRepository must not be null"); + this.taskRepository = taskRepository; + return this; + } + + public Builder withName(String name) { + this.name = name != null ? name : "Task"; + return this; + } + + public Builder withDescription(String description) { + this.description = description; + return this; + } + + public ToolCallback build() { + Assert.notEmpty(this.subAgents, "At least one sub-agent must be configured"); + + String desc = this.description; + if (!StringUtils.hasText(desc)) { + String agentList = this.subAgents.entrySet().stream() + .map(e -> "- " + e.getKey() + ": " + e.getValue().description()) + .reduce("", (a, b) -> a + b + "\n"); + desc = DEFAULT_DESCRIPTION.formatted(agentList); + } + + TaskTool taskTool = new TaskTool(this.subAgents, this.taskRepository); + return FunctionToolCallback.builder(this.name, taskTool) + .description(desc) + .inputType(Request.class) + .build(); + } + } + +} diff --git a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/TaskToolsBuilder.java b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/TaskToolsBuilder.java similarity index 98% rename from agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/TaskToolsBuilder.java rename to argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/TaskToolsBuilder.java index fd6aa8519..293bda586 100644 --- a/agentic-ai-agent-framework/src/main/java/io/github/agentic/spring/ai/graph/agent/tools/task/TaskToolsBuilder.java +++ b/argi-agent-framework/src/main/java/io/github/agentic/ai/graph/agent/tools/task/TaskToolsBuilder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools.task; +package io.github.agentic.ai.graph.agent.tools.task; import java.io.IOException; import java.util.ArrayList; @@ -21,7 +21,7 @@ import java.util.List; import java.util.Map; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.ReactAgent; import org.springframework.ai.chat.client.ChatClient; import org.springframework.ai.chat.model.ChatModel; import org.springframework.ai.tool.ToolCallback; @@ -57,7 +57,6 @@ * .build(); * }

    Graph: __
    No nodes executed yet. Send a message to run the graph.
    State will appear here as the graph runs.
    * - * @author Spring AI Alibaba */ public final class TaskToolsBuilder { diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/AgentSkillsTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/AgentSkillsTest.java similarity index 93% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/AgentSkillsTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/AgentSkillsTest.java index 7ebcee875..2d3b216e2 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/AgentSkillsTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/AgentSkillsTest.java @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.hook.shelltool.ShellToolAgentHook; -import io.github.agentic.spring.ai.graph.agent.hook.skills.SkillsAgentHook; -import io.github.agentic.spring.ai.graph.agent.interceptor.skills.SkillsInterceptor; -import io.github.agentic.spring.ai.graph.agent.tools.PythonTool; -import io.github.agentic.spring.ai.graph.agent.tools.ShellTool2; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; -import io.github.agentic.spring.ai.graph.skills.SkillMetadata; -import io.github.agentic.spring.ai.graph.skills.registry.SkillRegistry; -import io.github.agentic.spring.ai.graph.skills.registry.classpath.ClasspathSkillRegistry; -import io.github.agentic.spring.ai.graph.skills.registry.filesystem.FileSystemSkillRegistry; +package io.github.agentic.ai.graph.agent; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.hook.shelltool.ShellToolAgentHook; +import io.github.agentic.ai.graph.agent.hook.skills.SkillsAgentHook; +import io.github.agentic.ai.graph.agent.interceptor.skills.SkillsInterceptor; +import io.github.agentic.ai.graph.agent.tools.PythonTool; +import io.github.agentic.ai.graph.agent.tools.ShellTool2; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.skills.SkillMetadata; +import io.github.agentic.ai.graph.skills.registry.SkillRegistry; +import io.github.agentic.ai.graph.skills.registry.classpath.ClasspathSkillRegistry; +import io.github.agentic.ai.graph.skills.registry.filesystem.FileSystemSkillRegistry; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyDescription; @@ -257,7 +257,7 @@ public void testSkillsHookProvidesInterceptor() throws Exception { .build(); // Verify hook provides interceptor - List interceptors = hook.getModelInterceptors(); + List interceptors = hook.getModelInterceptors(); assertNotNull(interceptors, "Interceptors should not be null"); assertFalse(interceptors.isEmpty(), "Interceptors should not be empty"); assertTrue(interceptors.get(0) instanceof SkillsInterceptor, @@ -364,7 +364,7 @@ public void testReactAgentSkillsIntegration() throws Exception { // assertTrue(registry.size() > 0, "Skills should be loaded"); // // Get the response - String path = getTestSkillsDirectory() + "/pdf-extractor/saa-roadmap.pdf"; + String path = getTestSkillsDirectory() + "/pdf-extractor/argi-roadmap.pdf"; AssistantMessage response = agent.call(String.format("请从 %s 文件中提取关键信息。", path)); assertNotNull(response, "Response should not be null"); assertNotNull(response.getText(), "Response text should not be null"); @@ -438,7 +438,7 @@ public void testClasspathSkillRegistryIntegration() throws Exception { // assertTrue(registry.size() > 0, "Skills should be loaded"); // Get the response - String path = getTestSkillsDirectory() + "/pdf-extractor/saa-roadmap.pdf"; + String path = getTestSkillsDirectory() + "/pdf-extractor/argi-roadmap.pdf"; AssistantMessage response = agent.call(String.format("请从 %s 文件中提取关键信息。", path)); assertNotNull(response, "Response should not be null"); assertNotNull(response.getText(), "Response text should not be null"); diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/AgentToolCallingAdvisorBoundaryTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/AgentToolCallingAdvisorBoundaryTest.java similarity index 92% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/AgentToolCallingAdvisorBoundaryTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/AgentToolCallingAdvisorBoundaryTest.java index e531169da..ab10dfa3e 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/AgentToolCallingAdvisorBoundaryTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/AgentToolCallingAdvisorBoundaryTest.java @@ -14,16 +14,16 @@ * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; - -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelCallHandler; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelInterceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelResponse; -import io.github.agentic.spring.ai.graph.agent.hook.returndirect.ReturnDirectModelHook; -import io.github.agentic.spring.ai.graph.agent.tools.ToolContextHelper; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +package io.github.agentic.ai.graph.agent; + +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.interceptor.ModelCallHandler; +import io.github.agentic.ai.graph.agent.interceptor.ModelInterceptor; +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest; +import io.github.agentic.ai.graph.agent.interceptor.ModelResponse; +import io.github.agentic.ai.graph.agent.hook.returndirect.ReturnDirectModelHook; +import io.github.agentic.ai.graph.agent.tools.ToolContextHelper; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.junit.jupiter.api.Test; import org.springframework.ai.chat.messages.AssistantMessage; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/AgentToolConfigPropagationTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/AgentToolConfigPropagationTest.java similarity index 91% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/AgentToolConfigPropagationTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/AgentToolConfigPropagationTest.java index 70cf2158d..eb57d1e5b 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/AgentToolConfigPropagationTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/AgentToolConfigPropagationTest.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; - -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition; -import io.github.agentic.spring.ai.graph.agent.hook.HookPositions; -import io.github.agentic.spring.ai.graph.agent.hook.ModelHook; -import io.github.agentic.spring.ai.graph.agent.tools.ToolContextConstants; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +package io.github.agentic.ai.graph.agent; + +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.hook.HookPosition; +import io.github.agentic.ai.graph.agent.hook.HookPositions; +import io.github.agentic.ai.graph.agent.hook.ModelHook; +import io.github.agentic.ai.graph.agent.tools.ToolContextConstants; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.springframework.ai.chat.messages.AssistantMessage; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/AgentToolJsonTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/AgentToolJsonTest.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/AgentToolJsonTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/AgentToolJsonTest.java index 3f4ed4b06..5de49dc6b 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/AgentToolJsonTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/AgentToolJsonTest.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; import java.lang.reflect.Constructor; import java.util.List; import java.util.Map; import java.util.concurrent.atomic.AtomicReference; -import io.github.agentic.spring.ai.graph.agent.tool.StateAwareToolCallback; +import io.github.agentic.ai.graph.agent.tool.StateAwareToolCallback; import org.junit.jupiter.api.Test; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.UserMessage; @@ -177,7 +177,7 @@ private static Map asMap(Object value) { private static ToolCallback newAgentToolCallback(ToolDefinition toolDefinition, AgentTool.AgentToolExecutor executor) throws Exception { - Class callbackClass = Class.forName("io.github.agentic.spring.ai.graph.agent.AgentTool$AgentToolCallback"); + Class callbackClass = Class.forName("io.github.agentic.ai.graph.agent.AgentTool$AgentToolCallback"); Constructor constructor = callbackClass.getDeclaredConstructor(ToolDefinition.class, AgentTool.AgentToolExecutor.class); constructor.setAccessible(true); diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/AgentToolTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/AgentToolTest.java similarity index 98% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/AgentToolTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/AgentToolTest.java index 6fc68ae77..542eb81a7 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/AgentToolTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/AgentToolTest.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.OverAllState; import org.springframework.ai.chat.messages.UserMessage; import org.springframework.ai.chat.model.ChatModel; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/BuilderAsyncConfigTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/BuilderAsyncConfigTest.java similarity index 99% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/BuilderAsyncConfigTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/BuilderAsyncConfigTest.java index dbd5c5d3b..320d970bb 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/BuilderAsyncConfigTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/BuilderAsyncConfigTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Nested; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/DefaultBuilderChatClientOptionsTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/DefaultBuilderChatClientOptionsTest.java similarity index 95% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/DefaultBuilderChatClientOptionsTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/DefaultBuilderChatClientOptionsTest.java index 336d3c670..c2ac28664 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/DefaultBuilderChatClientOptionsTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/DefaultBuilderChatClientOptionsTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; import java.lang.reflect.Field; -import io.github.agentic.spring.ai.graph.agent.node.AgentLlmNode; +import io.github.agentic.ai.graph.agent.node.AgentLlmNode; import org.junit.jupiter.api.Test; import org.springframework.ai.chat.client.ChatClient; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/DefaultBuilderSanitizerRegistrationTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/DefaultBuilderSanitizerRegistrationTest.java similarity index 92% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/DefaultBuilderSanitizerRegistrationTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/DefaultBuilderSanitizerRegistrationTest.java index 4518270a8..686279473 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/DefaultBuilderSanitizerRegistrationTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/DefaultBuilderSanitizerRegistrationTest.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; -import io.github.agentic.spring.ai.graph.agent.extension.interceptor.AssistantMessageSanitizerInterceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelInterceptor; +import io.github.agentic.ai.graph.agent.extension.interceptor.AssistantMessageSanitizerInterceptor; +import io.github.agentic.ai.graph.agent.interceptor.ModelInterceptor; import org.junit.jupiter.api.Test; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ExecutorConfigTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ExecutorConfigTest.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ExecutorConfigTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ExecutorConfigTest.java index 52f7a37a8..9e6209967 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ExecutorConfigTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ExecutorConfigTest.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; - -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.flow.agent.LlmRoutingAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.LoopAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.ParallelAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.SequentialAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.loop.LoopMode; -import io.github.agentic.spring.ai.graph.agent.utils.ChatClientTestUtils; +package io.github.agentic.ai.graph.agent; + +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.flow.agent.LlmRoutingAgent; +import io.github.agentic.ai.graph.agent.flow.agent.LoopAgent; +import io.github.agentic.ai.graph.agent.flow.agent.ParallelAgent; +import io.github.agentic.ai.graph.agent.flow.agent.SequentialAgent; +import io.github.agentic.ai.graph.agent.flow.agent.loop.LoopMode; +import io.github.agentic.ai.graph.agent.utils.ChatClientTestUtils; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/FlowAgentHookTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/FlowAgentHookTest.java similarity index 92% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/FlowAgentHookTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/FlowAgentHookTest.java index 779cd7def..c6e067236 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/FlowAgentHookTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/FlowAgentHookTest.java @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.GraphRepresentation; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.StateGraph; -import io.github.agentic.spring.ai.graph.agent.flow.agent.FlowAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.LlmRoutingAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.LoopAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.ParallelAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.SequentialAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.loop.CountLoopStrategy; -import io.github.agentic.spring.ai.graph.agent.utils.HookFactory; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; +package io.github.agentic.ai.graph.agent; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.GraphRepresentation; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.StateGraph; +import io.github.agentic.ai.graph.agent.flow.agent.FlowAgent; +import io.github.agentic.ai.graph.agent.flow.agent.LlmRoutingAgent; +import io.github.agentic.ai.graph.agent.flow.agent.LoopAgent; +import io.github.agentic.ai.graph.agent.flow.agent.ParallelAgent; +import io.github.agentic.ai.graph.agent.flow.agent.SequentialAgent; +import io.github.agentic.ai.graph.agent.flow.agent.loop.CountLoopStrategy; +import io.github.agentic.ai.graph.agent.utils.HookFactory; +import io.github.agentic.ai.graph.exception.GraphStateException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; @@ -379,14 +379,14 @@ public void testConditionalFlowWithHook() throws Exception { null, List.of(writerAgent, translatorAgent, reviewerAgent), null, null, List.of(HookFactory.createLogAgentHook(), HookFactory.createLogModelHook())) { @Override - protected StateGraph buildSpecificGraph(io.github.agentic.spring.ai.graph.agent.flow.builder.FlowGraphBuilder.FlowGraphConfig config) + protected StateGraph buildSpecificGraph(io.github.agentic.ai.graph.agent.flow.builder.FlowGraphBuilder.FlowGraphConfig config) throws GraphStateException { Map conditionalAgents = new HashMap<>(); conditionalAgents.put("write", writerAgent); conditionalAgents.put("translate", translatorAgent); conditionalAgents.put("review", reviewerAgent); config.conditionalAgents(conditionalAgents); - return io.github.agentic.spring.ai.graph.agent.flow.builder.FlowGraphBuilder.buildGraph(config.getName(), config); + return io.github.agentic.ai.graph.agent.flow.builder.FlowGraphBuilder.buildGraph(config.getName(), config); } }; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/Issue25StreamCancelCheckpointTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/Issue25StreamCancelCheckpointTest.java similarity index 95% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/Issue25StreamCancelCheckpointTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/Issue25StreamCancelCheckpointTest.java index f7cebb3bd..bc4aa48bb 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/Issue25StreamCancelCheckpointTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/Issue25StreamCancelCheckpointTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; import java.time.Duration; import java.util.List; @@ -21,9 +21,9 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.checkpoint.Checkpoint; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.checkpoint.Checkpoint; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; @@ -48,7 +48,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; /** - * Reproduction for issue #25: + * Reproduction for issue #25: * when a streaming run is cancelled mid-flight (client timeout, SSE disconnect), the persisted * checkpoint may contain a {@link ToolResponseMessage} whose preceding assistant tool_call never * made it into the checkpoint. The next turn then loads an invalid message sequence and the LLM diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/Issue34ReasoningMarkerTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/Issue34ReasoningMarkerTest.java similarity index 92% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/Issue34ReasoningMarkerTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/Issue34ReasoningMarkerTest.java index 0f1db404a..f8541bea4 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/Issue34ReasoningMarkerTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/Issue34ReasoningMarkerTest.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; import java.time.Duration; import java.util.List; import java.util.Map; import java.util.concurrent.atomic.AtomicInteger; -import io.github.agentic.spring.ai.graph.GraphRunnerContext; -import io.github.agentic.spring.ai.graph.NodeOutput; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.streaming.OutputType; -import io.github.agentic.spring.ai.graph.streaming.StreamingOutput; +import io.github.agentic.ai.graph.GraphRunnerContext; +import io.github.agentic.ai.graph.NodeOutput; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.streaming.OutputType; +import io.github.agentic.ai.graph.streaming.StreamingOutput; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/Issue77DuplicateInstructionTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/Issue77DuplicateInstructionTest.java similarity index 93% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/Issue77DuplicateInstructionTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/Issue77DuplicateInstructionTest.java index 26acf0b4a..f12d84b55 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/Issue77DuplicateInstructionTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/Issue77DuplicateInstructionTest.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; -import io.github.agentic.spring.ai.graph.serializer.AgentInstructionMessage; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.serializer.AgentInstructionMessage; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; @@ -40,7 +40,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue; /** - * Reproduction for issue #77: + * Reproduction for issue #77: * when a ReactAgent with an instruction runs through {@link AgentTool}, the instruction used to be * injected twice (once manually by the tool executor, once by the default InstructionAgentHook), * so the model context carried two copies. It must appear exactly once. diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/LlmRoutingAgentTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/LlmRoutingAgentTest.java similarity index 92% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/LlmRoutingAgentTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/LlmRoutingAgentTest.java index 934b76115..275f5b7ab 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/LlmRoutingAgentTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/LlmRoutingAgentTest.java @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.GraphRepresentation; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.flow.agent.LlmRoutingAgent; -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition; -import io.github.agentic.spring.ai.graph.agent.hook.HookPositions; -import io.github.agentic.spring.ai.graph.agent.hook.messages.AgentCommand; -import io.github.agentic.spring.ai.graph.agent.hook.messages.MessagesModelHook; -import io.github.agentic.spring.ai.graph.agent.hook.messages.UpdatePolicy; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +package io.github.agentic.ai.graph.agent; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.GraphRepresentation; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.flow.agent.LlmRoutingAgent; +import io.github.agentic.ai.graph.agent.hook.HookPosition; +import io.github.agentic.ai.graph.agent.hook.HookPositions; +import io.github.agentic.ai.graph.agent.hook.messages.AgentCommand; +import io.github.agentic.ai.graph.agent.hook.messages.MessagesModelHook; +import io.github.agentic.ai.graph.agent.hook.messages.UpdatePolicy; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; @@ -39,7 +39,7 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; -import static io.github.agentic.spring.ai.graph.agent.tools.PoetTool.createPoetToolCallback; +import static io.github.agentic.ai.graph.agent.tools.PoetTool.createPoetToolCallback; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ParallelAgentIntegrationTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ParallelAgentIntegrationTest.java similarity index 97% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ParallelAgentIntegrationTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ParallelAgentIntegrationTest.java index 3ba577e36..081906a2b 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ParallelAgentIntegrationTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ParallelAgentIntegrationTest.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.KeyStrategy; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.agent.flow.agent.ParallelAgent; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.KeyStrategy; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.flow.agent.ParallelAgent; +import io.github.agentic.ai.graph.exception.GraphStateException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ParallelToolContextLossReproductionTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ParallelToolContextLossReproductionTest.java similarity index 94% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ParallelToolContextLossReproductionTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ParallelToolContextLossReproductionTest.java index 24ea3fafe..197bb8073 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ParallelToolContextLossReproductionTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ParallelToolContextLossReproductionTest.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.flow.agent.ParallelAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.SequentialAgent; -import io.github.agentic.spring.ai.graph.agent.hook.AgentHook; +package io.github.agentic.ai.graph.agent; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.flow.agent.ParallelAgent; +import io.github.agentic.ai.graph.agent.flow.agent.SequentialAgent; +import io.github.agentic.ai.graph.agent.hook.AgentHook; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyDescription; import org.junit.jupiter.api.BeforeEach; @@ -38,7 +38,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.function.BiFunction; -import static io.github.agentic.spring.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_FOR_UPDATE_CONTEXT_KEY; +import static io.github.agentic.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_FOR_UPDATE_CONTEXT_KEY; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ReactAgentJumpToStateTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ReactAgentJumpToStateTest.java similarity index 85% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ReactAgentJumpToStateTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ReactAgentJumpToStateTest.java index 395570943..0d170bc75 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ReactAgentJumpToStateTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ReactAgentJumpToStateTest.java @@ -14,16 +14,16 @@ * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; - -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition; -import io.github.agentic.spring.ai.graph.agent.hook.HookPositions; -import io.github.agentic.spring.ai.graph.agent.hook.JumpTo; -import io.github.agentic.spring.ai.graph.agent.hook.messages.AgentCommand; -import io.github.agentic.spring.ai.graph.agent.hook.messages.MessagesModelHook; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +package io.github.agentic.ai.graph.agent; + +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.hook.HookPosition; +import io.github.agentic.ai.graph.agent.hook.HookPositions; +import io.github.agentic.ai.graph.agent.hook.JumpTo; +import io.github.agentic.ai.graph.agent.hook.messages.AgentCommand; +import io.github.agentic.ai.graph.agent.hook.messages.MessagesModelHook; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.junit.jupiter.api.Test; import org.springframework.ai.chat.messages.AssistantMessage; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ReactAgentResolverBugReproductionTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ReactAgentResolverBugReproductionTest.java similarity index 94% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ReactAgentResolverBugReproductionTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ReactAgentResolverBugReproductionTest.java index 2269da3c2..abdcc24a0 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ReactAgentResolverBugReproductionTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ReactAgentResolverBugReproductionTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; -import io.github.agentic.spring.ai.graph.agent.node.AgentLlmNode; -import io.github.agentic.spring.ai.graph.agent.tools.PoetTool; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.agent.node.AgentLlmNode; +import io.github.agentic.ai.graph.agent.tools.PoetTool; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.junit.jupiter.api.Test; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.model.ChatModel; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ReactAgentRewindSubscriptionScopeTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ReactAgentRewindSubscriptionScopeTest.java similarity index 95% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ReactAgentRewindSubscriptionScopeTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ReactAgentRewindSubscriptionScopeTest.java index 81e6b8568..e5e7e3be4 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ReactAgentRewindSubscriptionScopeTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ReactAgentRewindSubscriptionScopeTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; import java.time.Duration; import java.util.Collection; @@ -23,11 +23,11 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; -import io.github.agentic.spring.ai.graph.NodeOutput; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.checkpoint.BaseCheckpointSaver; -import io.github.agentic.spring.ai.graph.checkpoint.Checkpoint; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.NodeOutput; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.checkpoint.BaseCheckpointSaver; +import io.github.agentic.ai.graph.checkpoint.Checkpoint; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ReactAgentStreamingReturnDirectTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ReactAgentStreamingReturnDirectTest.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ReactAgentStreamingReturnDirectTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ReactAgentStreamingReturnDirectTest.java index d9e3ffb2a..13f1882fa 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ReactAgentStreamingReturnDirectTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ReactAgentStreamingReturnDirectTest.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.junit.jupiter.api.Test; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ReactAgentTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ReactAgentTest.java similarity index 97% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ReactAgentTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ReactAgentTest.java index 9aa93a00c..6ed45f47b 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ReactAgentTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ReactAgentTest.java @@ -13,24 +13,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.GraphRepresentation; -import io.github.agentic.spring.ai.graph.NodeOutput; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.StateGraph; -import io.github.agentic.spring.ai.graph.agent.hook.AgentHook; -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition; -import io.github.agentic.spring.ai.graph.agent.hook.ModelHook; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; -import io.github.agentic.spring.ai.graph.exception.GraphRunnerException; -import io.github.agentic.spring.ai.graph.serializer.StateSerializer; -import io.github.agentic.spring.ai.graph.serializer.plain_text.jackson.SpringAIJacksonStateSerializer; -import io.github.agentic.spring.ai.graph.serializer.std.SpringAIStateSerializer; -import io.github.agentic.spring.ai.graph.streaming.OutputType; -import io.github.agentic.spring.ai.graph.streaming.StreamingOutput; +package io.github.agentic.ai.graph.agent; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.GraphRepresentation; +import io.github.agentic.ai.graph.NodeOutput; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.StateGraph; +import io.github.agentic.ai.graph.agent.hook.AgentHook; +import io.github.agentic.ai.graph.agent.hook.HookPosition; +import io.github.agentic.ai.graph.agent.hook.ModelHook; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.exception.GraphRunnerException; +import io.github.agentic.ai.graph.serializer.StateSerializer; +import io.github.agentic.ai.graph.serializer.plain_text.jackson.SpringAIJacksonStateSerializer; +import io.github.agentic.ai.graph.serializer.std.SpringAIStateSerializer; +import io.github.agentic.ai.graph.streaming.OutputType; +import io.github.agentic.ai.graph.streaming.StreamingOutput; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ReactDumpMessageTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ReactDumpMessageTest.java similarity index 92% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ReactDumpMessageTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ReactDumpMessageTest.java index 30642761e..2fbf66ac2 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ReactDumpMessageTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ReactDumpMessageTest.java @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.advisors.SkillPromptAugmentAdvisor; -import io.github.agentic.spring.ai.graph.agent.flow.agent.SequentialAgent; -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition; -import io.github.agentic.spring.ai.graph.agent.hook.HookPositions; -import io.github.agentic.spring.ai.graph.agent.hook.messages.AgentCommand; -import io.github.agentic.spring.ai.graph.agent.hook.messages.MessagesModelHook; -import io.github.agentic.spring.ai.graph.agent.hook.skills.ReadSkillTool; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; -import io.github.agentic.spring.ai.graph.skills.registry.SkillRegistry; -import io.github.agentic.spring.ai.graph.skills.registry.filesystem.FileSystemSkillRegistry; +package io.github.agentic.ai.graph.agent; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.advisors.SkillPromptAugmentAdvisor; +import io.github.agentic.ai.graph.agent.flow.agent.SequentialAgent; +import io.github.agentic.ai.graph.agent.hook.HookPosition; +import io.github.agentic.ai.graph.agent.hook.HookPositions; +import io.github.agentic.ai.graph.agent.hook.messages.AgentCommand; +import io.github.agentic.ai.graph.agent.hook.messages.MessagesModelHook; +import io.github.agentic.ai.graph.agent.hook.skills.ReadSkillTool; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.skills.registry.SkillRegistry; +import io.github.agentic.ai.graph.skills.registry.filesystem.FileSystemSkillRegistry; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/RemoteAgentTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/RemoteAgentTest.java similarity index 90% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/RemoteAgentTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/RemoteAgentTest.java index 00039a0d4..c7796069c 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/RemoteAgentTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/RemoteAgentTest.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.KeyStrategy; -import io.github.agentic.spring.ai.graph.KeyStrategyFactory; -import io.github.agentic.spring.ai.graph.state.strategy.ReplaceStrategy; +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.KeyStrategy; +import io.github.agentic.ai.graph.KeyStrategyFactory; +import io.github.agentic.ai.graph.state.strategy.ReplaceStrategy; import org.springframework.ai.chat.model.ChatModel; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/SequentialAgentTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/SequentialAgentTest.java similarity index 95% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/SequentialAgentTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/SequentialAgentTest.java index 597b1bfa3..d5de6070f 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/SequentialAgentTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/SequentialAgentTest.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.NodeOutput; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.agent.flow.agent.ParallelAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.SequentialAgent; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.NodeOutput; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.flow.agent.ParallelAgent; +import io.github.agentic.ai.graph.agent.flow.agent.SequentialAgent; +import io.github.agentic.ai.graph.exception.GraphStateException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -35,8 +35,8 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; -import static io.github.agentic.spring.ai.graph.agent.tools.PoetTool.createPoetToolCallback; -import static io.github.agentic.spring.ai.graph.agent.tools.ReviewerTool.createReviewerToolCallback; +import static io.github.agentic.ai.graph.agent.tools.PoetTool.createPoetToolCallback; +import static io.github.agentic.ai.graph.agent.tools.ReviewerTool.createReviewerToolCallback; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; @@ -225,7 +225,7 @@ public void testEmbeddedSequentialAgent() throws Exception { .model(chatModel) .description("为文章增加固定的署名。") .includeContents(true) - .instruction("你负责为生成的文章署名,请将署名附加在文章最后。署名:Spring AI Alibaba。") + .instruction("你负责为生成的文章署名,请将署名附加在文章最后。署名:ARGI。") .outputKey("signed_article") .enableLogging(true) .build(); diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/SkillsToolingTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/SkillsToolingTest.java similarity index 86% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/SkillsToolingTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/SkillsToolingTest.java index 63b97796d..5d42d5eb6 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/SkillsToolingTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/SkillsToolingTest.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; - -import io.github.agentic.spring.ai.graph.agent.hook.skills.DisableSkillTool; -import io.github.agentic.spring.ai.graph.agent.hook.skills.ReadSkillTool; -import io.github.agentic.spring.ai.graph.agent.hook.skills.SearchSkillsTool; -import io.github.agentic.spring.ai.graph.agent.hook.skills.SkillsAgentHook; -import io.github.agentic.spring.ai.graph.skills.registry.SkillRegistry; -import io.github.agentic.spring.ai.graph.skills.registry.filesystem.FileSystemSkillRegistry; +package io.github.agentic.ai.graph.agent; + +import io.github.agentic.ai.graph.agent.hook.skills.DisableSkillTool; +import io.github.agentic.ai.graph.agent.hook.skills.ReadSkillTool; +import io.github.agentic.ai.graph.agent.hook.skills.SearchSkillsTool; +import io.github.agentic.ai.graph.agent.hook.skills.SkillsAgentHook; +import io.github.agentic.ai.graph.skills.registry.SkillRegistry; +import io.github.agentic.ai.graph.skills.registry.filesystem.FileSystemSkillRegistry; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/StreamAgentTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/StreamAgentTest.java similarity index 95% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/StreamAgentTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/StreamAgentTest.java index 1cffc12f5..eaa713a7c 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/StreamAgentTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/StreamAgentTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.NodeOutput; -import io.github.agentic.spring.ai.graph.agent.flow.agent.LlmRoutingAgent; +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.NodeOutput; +import io.github.agentic.ai.graph.agent.flow.agent.LlmRoutingAgent; import org.springframework.ai.chat.messages.Message; import org.springframework.ai.chat.messages.ToolResponseMessage; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ToolCallbackTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ToolCallbackTest.java similarity index 98% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ToolCallbackTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ToolCallbackTest.java index c8ac50e43..e7072e49c 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ToolCallbackTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ToolCallbackTest.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.NodeOutput; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; -import io.github.agentic.spring.ai.graph.streaming.StreamingOutput; +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.NodeOutput; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.streaming.StreamingOutput; import org.springframework.ai.chat.model.ChatModel; import org.springframework.ai.chat.model.ToolContext; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ToolContextHelperExample.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ToolContextHelperExample.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ToolContextHelperExample.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ToolContextHelperExample.java index 723aa59c8..2f1b89e0d 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/ToolContextHelperExample.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/ToolContextHelperExample.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent; +package io.github.agentic.ai.graph.agent; -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.tools.ToolContextHelper; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; -import io.github.agentic.spring.ai.graph.exception.GraphRunnerException; +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.tools.ToolContextHelper; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.exception.GraphRunnerException; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyDescription; import org.slf4j.Logger; @@ -52,7 +52,7 @@ *

    How to run:

    *
      * export AI_DASHSCOPE_API_KEY=your-api-key
    - * mvn compile exec:java -Dexec.mainClass="io.github.agentic.spring.ai.examples.studiocorsconditionalit.ToolContextHelperExample"
    + * mvn compile exec:java -Dexec.mainClass="io.github.agentic.ai.examples.studiocorsconditionalit.ToolContextHelperExample"
      * 
    * * @see ToolContextHelper diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/a2a/A2aLlmRoutingAgentShareStateTests.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/a2a/A2aLlmRoutingAgentShareStateTests.java similarity index 93% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/a2a/A2aLlmRoutingAgentShareStateTests.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/a2a/A2aLlmRoutingAgentShareStateTests.java index 79b86168e..a5e3676b2 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/a2a/A2aLlmRoutingAgentShareStateTests.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/a2a/A2aLlmRoutingAgentShareStateTests.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.a2a; +package io.github.agentic.ai.graph.agent.a2a; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.flow.agent.LlmRoutingAgent; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.flow.agent.LlmRoutingAgent; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import io.a2a.spec.AgentCapabilities; import io.a2a.spec.AgentCard; @@ -45,7 +45,7 @@ import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; -/** Regression tests for agentic-spring-ai#47 / spring-ai-alibaba#4015. */ +/** Regression tests for ARGI #47. */ class A2aLlmRoutingAgentShareStateTests { @Test diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/a2a/A2aNodeActionWithConfigTests.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/a2a/A2aNodeActionWithConfigTests.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/a2a/A2aNodeActionWithConfigTests.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/a2a/A2aNodeActionWithConfigTests.java index 76c32d192..2be907d4b 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/a2a/A2aNodeActionWithConfigTests.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/a2a/A2aNodeActionWithConfigTests.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.a2a; +package io.github.agentic.ai.graph.agent.a2a; -import io.github.agentic.spring.ai.graph.GraphResponse; -import io.github.agentic.spring.ai.graph.NodeOutput; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.async.AsyncGenerator; -import io.github.agentic.spring.ai.graph.streaming.OutputType; -import io.github.agentic.spring.ai.graph.streaming.StreamingOutput; +import io.github.agentic.ai.graph.GraphResponse; +import io.github.agentic.ai.graph.NodeOutput; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.async.AsyncGenerator; +import io.github.agentic.ai.graph.streaming.OutputType; +import io.github.agentic.ai.graph.streaming.StreamingOutput; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.metadata.EmptyUsage; @@ -416,7 +416,7 @@ void buildStreamingOutput_populatesMessageChunkAndOutputType() throws Exception } /** - * Regression test for agentic-spring-ai#47 / spring-ai-alibaba#4015. A2A responses targeting + * Regression test for ARGI #47. A2A responses targeting * the shared messages key must be appended as Message instances, otherwise the next routing * decision encounters a String in List<Message> and fails with ClassCastException. */ diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/a2a/A2aRemoteAgentTests.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/a2a/A2aRemoteAgentTests.java similarity index 97% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/a2a/A2aRemoteAgentTests.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/a2a/A2aRemoteAgentTests.java index eed409086..84420881d 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/a2a/A2aRemoteAgentTests.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/a2a/A2aRemoteAgentTests.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.a2a; +package io.github.agentic.ai.graph.agent.a2a; -import io.github.agentic.spring.ai.graph.CompileConfig; -import io.github.agentic.spring.ai.graph.StateGraph; -import io.github.agentic.spring.ai.graph.internal.node.Node; +import io.github.agentic.ai.graph.CompileConfig; +import io.github.agentic.ai.graph.StateGraph; +import io.github.agentic.ai.graph.internal.node.Node; import io.a2a.spec.AgentCapabilities; import io.a2a.spec.AgentCard; import org.junit.jupiter.api.BeforeEach; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/a2a/Issue3608ReproductionTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/a2a/Issue3608ReproductionTest.java similarity index 98% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/a2a/Issue3608ReproductionTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/a2a/Issue3608ReproductionTest.java index 1872f2e0b..aa0c54abe 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/a2a/Issue3608ReproductionTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/a2a/Issue3608ReproductionTest.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.a2a; +package io.github.agentic.ai.graph.agent.a2a; -import io.github.agentic.spring.ai.graph.StateGraph; +import io.github.agentic.ai.graph.StateGraph; import io.a2a.spec.AgentCapabilities; import io.a2a.spec.AgentCard; import org.junit.jupiter.api.BeforeEach; @@ -34,7 +34,7 @@ /** * Reproduction tests for Issue #3608: - * https://github.com/agentic-spring-ai/agentic-spring-ai/issues/3608 + * https://github.com/agentic-ai-java/argi/issues/3608 * * Issue Summary: * 1. shareState parameter not working - always defaults to false diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/compatibility/LegacyAgentBehaviorCompatibilityTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/compatibility/LegacyAgentBehaviorCompatibilityTest.java similarity index 89% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/compatibility/LegacyAgentBehaviorCompatibilityTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/compatibility/LegacyAgentBehaviorCompatibilityTest.java index ec59c14a5..4597edcac 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/compatibility/LegacyAgentBehaviorCompatibilityTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/compatibility/LegacyAgentBehaviorCompatibilityTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.compatibility; +package io.github.agentic.ai.graph.agent.compatibility; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.exception.GraphRunnerException; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.exception.GraphRunnerException; import java.time.Duration; import java.util.List; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/FilesystemInterceptorTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/extension/interceptor/FilesystemInterceptorTest.java similarity index 98% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/FilesystemInterceptorTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/extension/interceptor/FilesystemInterceptorTest.java index f7b598df1..cbace2e22 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/extension/interceptor/FilesystemInterceptorTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/extension/interceptor/FilesystemInterceptorTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.interceptor; +package io.github.agentic.ai.graph.agent.extension.interceptor; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; -import io.github.agentic.spring.ai.graph.agent.extension.file.LocalFilesystemBackend; +import io.github.agentic.ai.graph.agent.extension.file.LocalFilesystemBackend; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.io.TempDir; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/FileSystemToolsTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/FileSystemToolsTest.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/FileSystemToolsTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/FileSystemToolsTest.java index e58c12a10..cd4adffcf 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/extension/tools/filesystem/FileSystemToolsTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/extension/tools/filesystem/FileSystemToolsTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.extension.tools.filesystem; +package io.github.agentic.ai.graph.agent.extension.tools.filesystem; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.io.TempDir; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/flow/FlowAgentArchitectureTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/flow/FlowAgentArchitectureTest.java similarity index 90% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/flow/FlowAgentArchitectureTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/flow/FlowAgentArchitectureTest.java index f40d5a226..d654206c8 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/flow/FlowAgentArchitectureTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/flow/FlowAgentArchitectureTest.java @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow; - -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.LlmRoutingAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.ParallelAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.SequentialAgent; -import io.github.agentic.spring.ai.graph.agent.flow.builder.FlowAgentBuilder; -import io.github.agentic.spring.ai.graph.agent.flow.builder.FlowGraphBuilder; -import io.github.agentic.spring.ai.graph.agent.flow.enums.FlowAgentEnum; -import io.github.agentic.spring.ai.graph.agent.flow.strategy.FlowGraphBuildingStrategy; -import io.github.agentic.spring.ai.graph.agent.flow.strategy.FlowGraphBuildingStrategyRegistry; -import io.github.agentic.spring.ai.graph.agent.flow.strategy.SequentialGraphBuildingStrategy; -import io.github.agentic.spring.ai.graph.agent.utils.ChatClientTestUtils; +package io.github.agentic.ai.graph.agent.flow; + +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.flow.agent.LlmRoutingAgent; +import io.github.agentic.ai.graph.agent.flow.agent.ParallelAgent; +import io.github.agentic.ai.graph.agent.flow.agent.SequentialAgent; +import io.github.agentic.ai.graph.agent.flow.builder.FlowAgentBuilder; +import io.github.agentic.ai.graph.agent.flow.builder.FlowGraphBuilder; +import io.github.agentic.ai.graph.agent.flow.enums.FlowAgentEnum; +import io.github.agentic.ai.graph.agent.flow.strategy.FlowGraphBuildingStrategy; +import io.github.agentic.ai.graph.agent.flow.strategy.FlowGraphBuildingStrategyRegistry; +import io.github.agentic.ai.graph.agent.flow.strategy.SequentialGraphBuildingStrategy; +import io.github.agentic.ai.graph.agent.utils.ChatClientTestUtils; import org.springframework.ai.chat.client.ChatClient; import org.springframework.ai.chat.model.ChatModel; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/flow/FlowAgentSerializerTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/flow/FlowAgentSerializerTest.java similarity index 93% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/flow/FlowAgentSerializerTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/flow/FlowAgentSerializerTest.java index 45d2a36c3..2f44e8e8c 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/flow/FlowAgentSerializerTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/flow/FlowAgentSerializerTest.java @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow; - -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.StateGraph; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.LoopAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.ParallelAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.SequentialAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.loop.LoopMode; -import io.github.agentic.spring.ai.graph.agent.utils.ChatClientTestUtils; -import io.github.agentic.spring.ai.graph.serializer.StateSerializer; -import io.github.agentic.spring.ai.graph.serializer.plain_text.jackson.SpringAIJacksonStateSerializer; -import io.github.agentic.spring.ai.graph.serializer.std.SpringAIStateSerializer; +package io.github.agentic.ai.graph.agent.flow; + +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.StateGraph; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.flow.agent.LoopAgent; +import io.github.agentic.ai.graph.agent.flow.agent.ParallelAgent; +import io.github.agentic.ai.graph.agent.flow.agent.SequentialAgent; +import io.github.agentic.ai.graph.agent.flow.agent.loop.LoopMode; +import io.github.agentic.ai.graph.agent.utils.ChatClientTestUtils; +import io.github.agentic.ai.graph.serializer.StateSerializer; +import io.github.agentic.ai.graph.serializer.plain_text.jackson.SpringAIJacksonStateSerializer; +import io.github.agentic.ai.graph.serializer.std.SpringAIStateSerializer; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mock; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/flow/LoopAgentTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/flow/LoopAgentTest.java similarity index 94% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/flow/LoopAgentTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/flow/LoopAgentTest.java index b8fd15671..8ea84b4d7 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/flow/LoopAgentTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/flow/LoopAgentTest.java @@ -14,17 +14,17 @@ * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.Agent; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.LoopAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.SequentialAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.loop.LoopMode; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; +package io.github.agentic.ai.graph.agent.flow; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.Agent; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.flow.agent.LoopAgent; +import io.github.agentic.ai.graph.agent.flow.agent.SequentialAgent; +import io.github.agentic.ai.graph.agent.flow.agent.loop.LoopMode; +import io.github.agentic.ai.graph.exception.GraphStateException; import org.springframework.ai.chat.model.ChatModel; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/flow/ParallelAgentTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/flow/ParallelAgentTest.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/flow/ParallelAgentTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/flow/ParallelAgentTest.java index 3bcb556d2..a3326cbb9 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/flow/ParallelAgentTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/flow/ParallelAgentTest.java @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow; - -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.StateGraph; -import io.github.agentic.spring.ai.graph.agent.Agent; -import io.github.agentic.spring.ai.graph.agent.BaseAgent; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.ParallelAgent; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; -import io.github.agentic.spring.ai.graph.internal.node.Node; -import io.github.agentic.spring.ai.graph.internal.node.ParallelNode; -import io.github.agentic.spring.ai.graph.serializer.StateSerializer; -import io.github.agentic.spring.ai.graph.serializer.plain_text.jackson.SpringAIJacksonStateSerializer; -import io.github.agentic.spring.ai.graph.serializer.std.SpringAIStateSerializer; +package io.github.agentic.ai.graph.agent.flow; + +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.StateGraph; +import io.github.agentic.ai.graph.agent.Agent; +import io.github.agentic.ai.graph.agent.BaseAgent; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.flow.agent.ParallelAgent; +import io.github.agentic.ai.graph.exception.GraphStateException; +import io.github.agentic.ai.graph.internal.node.Node; +import io.github.agentic.ai.graph.internal.node.ParallelNode; +import io.github.agentic.ai.graph.serializer.StateSerializer; +import io.github.agentic.ai.graph.serializer.plain_text.jackson.SpringAIJacksonStateSerializer; +import io.github.agentic.ai.graph.serializer.std.SpringAIStateSerializer; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.MockitoAnnotations; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/flow/node/EnhancedParallelResultAggregatorTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/flow/node/EnhancedParallelResultAggregatorTest.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/flow/node/EnhancedParallelResultAggregatorTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/flow/node/EnhancedParallelResultAggregatorTest.java index 60b3cdca2..c44325f79 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/flow/node/EnhancedParallelResultAggregatorTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/flow/node/EnhancedParallelResultAggregatorTest.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.node; +package io.github.agentic.ai.graph.agent.flow.node; -import io.github.agentic.spring.ai.graph.GraphResponse; -import io.github.agentic.spring.ai.graph.KeyStrategy; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.agent.BaseAgent; +import io.github.agentic.ai.graph.GraphResponse; +import io.github.agentic.ai.graph.KeyStrategy; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.BaseAgent; import org.junit.jupiter.api.Test; import java.util.HashMap; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/flow/node/RoutingMergeNodeTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/flow/node/RoutingMergeNodeTest.java similarity index 93% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/flow/node/RoutingMergeNodeTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/flow/node/RoutingMergeNodeTest.java index 76d1f73e7..53afee2e7 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/flow/node/RoutingMergeNodeTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/flow/node/RoutingMergeNodeTest.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.flow.node; +package io.github.agentic.ai.graph.agent.flow.node; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.agent.BaseAgent; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.BaseAgent; import org.junit.jupiter.api.Test; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; @@ -29,7 +29,7 @@ import java.util.List; import java.util.Map; -import static io.github.agentic.spring.ai.graph.agent.flow.node.RoutingMergeNode.DEFAULT_MERGED_OUTPUT_KEY; +import static io.github.agentic.ai.graph.agent.flow.node.RoutingMergeNode.DEFAULT_MERGED_OUTPUT_KEY; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.mock; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hook/messages/InstructionAgentHookIdempotencyTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hook/messages/InstructionAgentHookIdempotencyTest.java similarity index 94% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hook/messages/InstructionAgentHookIdempotencyTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hook/messages/InstructionAgentHookIdempotencyTest.java index e8d401087..acc576990 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hook/messages/InstructionAgentHookIdempotencyTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hook/messages/InstructionAgentHookIdempotencyTest.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hook.messages; +package io.github.agentic.ai.graph.agent.hook.messages; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.hook.InstructionAgentHook; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; -import io.github.agentic.spring.ai.graph.serializer.AgentInstructionMessage; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.hook.InstructionAgentHook; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.serializer.AgentInstructionMessage; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/AbstractInterruptableModelHookTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/AbstractInterruptableModelHookTest.java similarity index 83% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/AbstractInterruptableModelHookTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/AbstractInterruptableModelHookTest.java index 48ee15955..e165251ff 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/AbstractInterruptableModelHookTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/AbstractInterruptableModelHookTest.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hooks; - -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.hook.AbstractInterruptableModelHook; -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition; -import io.github.agentic.spring.ai.graph.agent.hook.HookPositions; -import io.github.agentic.spring.ai.graph.action.InterruptionMetadata; +package io.github.agentic.ai.graph.agent.hooks; + +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.hook.AbstractInterruptableModelHook; +import io.github.agentic.ai.graph.agent.hook.HookPosition; +import io.github.agentic.ai.graph.agent.hook.HookPositions; +import io.github.agentic.ai.graph.action.InterruptionMetadata; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.model.ChatModel; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/InterruptionHookTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/InterruptionHookTest.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/InterruptionHookTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/InterruptionHookTest.java index 799dfeab2..2e9e6f85e 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/InterruptionHookTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/InterruptionHookTest.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hooks; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.NodeOutput; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.action.InterruptionMetadata; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.hook.Hook; -import io.github.agentic.spring.ai.graph.agent.hook.InterruptionHook; -import io.github.agentic.spring.ai.graph.agent.tools.PoemTool; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +package io.github.agentic.ai.graph.agent.hooks; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.NodeOutput; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.action.InterruptionMetadata; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.hook.Hook; +import io.github.agentic.ai.graph.agent.hook.InterruptionHook; +import io.github.agentic.ai.graph.agent.tools.PoemTool; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.springframework.ai.chat.messages.Message; import org.springframework.ai.chat.messages.UserMessage; @@ -50,7 +50,7 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; -import static io.github.agentic.spring.ai.graph.RunnableConfig.AGENT_HOOK_NAME_PREFIX; +import static io.github.agentic.ai.graph.RunnableConfig.AGENT_HOOK_NAME_PREFIX; public class InterruptionHookTest { diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/hip/HumanInTheLoopTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/hip/HumanInTheLoopTest.java similarity index 97% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/hip/HumanInTheLoopTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/hip/HumanInTheLoopTest.java index 07a2c0bab..f0301fc34 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/hip/HumanInTheLoopTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/hip/HumanInTheLoopTest.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hooks.hip; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.GraphRepresentation; -import io.github.agentic.spring.ai.graph.NodeOutput; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.action.InterruptionMetadata; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.hook.hip.HumanInTheLoopHook; -import io.github.agentic.spring.ai.graph.agent.hook.hip.ToolConfig; -import io.github.agentic.spring.ai.graph.agent.tools.WeatherTool; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +package io.github.agentic.ai.graph.agent.hooks.hip; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.GraphRepresentation; +import io.github.agentic.ai.graph.NodeOutput; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.action.InterruptionMetadata; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.hook.hip.HumanInTheLoopHook; +import io.github.agentic.ai.graph.agent.hook.hip.ToolConfig; +import io.github.agentic.ai.graph.agent.tools.WeatherTool; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.springframework.ai.chat.model.ChatModel; @@ -37,7 +37,7 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; -import static io.github.agentic.spring.ai.graph.agent.tools.PoetTool.createPoetToolCallback; +import static io.github.agentic.ai.graph.agent.tools.PoetTool.createPoetToolCallback; import static org.junit.jupiter.api.Assertions.fail; @EnabledIfEnvironmentVariable(named = "AI_DASHSCOPE_API_KEY", matches = ".+") @@ -336,7 +336,7 @@ private InterruptionMetadata buildEditedFeedback(InterruptionMetadata interrupti interruptionMetadata.toolFeedbacks().forEach(toolFeedback -> { InterruptionMetadata.ToolFeedback editedFeedback = InterruptionMetadata.ToolFeedback .builder(toolFeedback) - .arguments(toolFeedback.getArguments().replace("。\"", "。By Spring AI Alibaba\"")) + .arguments(toolFeedback.getArguments().replace("。\"", "。By ARGI\"")) .result(InterruptionMetadata.ToolFeedback.FeedbackResult.EDITED) .build(); newBuilder.addToolFeedback(editedFeedback); diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/messages/MessagesModelHookTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/messages/MessagesModelHookTest.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/messages/MessagesModelHookTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/messages/MessagesModelHookTest.java index 8c163a1c1..4b71ade68 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/messages/MessagesModelHookTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/messages/MessagesModelHookTest.java @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hooks.messages; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition; -import io.github.agentic.spring.ai.graph.agent.hook.HookPositions; -import io.github.agentic.spring.ai.graph.agent.hook.JumpTo; -import io.github.agentic.spring.ai.graph.agent.hook.ModelHook; -import io.github.agentic.spring.ai.graph.agent.hook.messages.AgentCommand; -import io.github.agentic.spring.ai.graph.agent.hook.messages.MessagesModelHook; -import io.github.agentic.spring.ai.graph.agent.hook.messages.UpdatePolicy; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; +package io.github.agentic.ai.graph.agent.hooks.messages; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.hook.HookPosition; +import io.github.agentic.ai.graph.agent.hook.HookPositions; +import io.github.agentic.ai.graph.agent.hook.JumpTo; +import io.github.agentic.ai.graph.agent.hook.ModelHook; +import io.github.agentic.ai.graph.agent.hook.messages.AgentCommand; +import io.github.agentic.ai.graph.agent.hook.messages.MessagesModelHook; +import io.github.agentic.ai.graph.agent.hook.messages.UpdatePolicy; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.exception.GraphStateException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/modelcalllimit/ModelCallLimitTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/modelcalllimit/ModelCallLimitTest.java similarity index 84% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/modelcalllimit/ModelCallLimitTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/modelcalllimit/ModelCallLimitTest.java index 4214dd7bc..431b8ea50 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/modelcalllimit/ModelCallLimitTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/modelcalllimit/ModelCallLimitTest.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hooks.modelcalllimit; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.hook.modelcalllimit.ModelCallLimitExceededException; -import io.github.agentic.spring.ai.graph.agent.hook.modelcalllimit.ModelCallLimitHook; -import io.github.agentic.spring.ai.graph.agent.tools.WeatherTool; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; +package io.github.agentic.ai.graph.agent.hooks.modelcalllimit; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.hook.modelcalllimit.ModelCallLimitExceededException; +import io.github.agentic.ai.graph.agent.hook.modelcalllimit.ModelCallLimitHook; +import io.github.agentic.ai.graph.agent.tools.WeatherTool; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.exception.GraphStateException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/pii/PIIDectionHookTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/pii/PIIDectionHookTest.java similarity index 92% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/pii/PIIDectionHookTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/pii/PIIDectionHookTest.java index 4e0c0dee0..0a1054488 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/pii/PIIDectionHookTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/pii/PIIDectionHookTest.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hooks.pii; +package io.github.agentic.ai.graph.agent.hooks.pii; -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.hook.pii.PIIDetectionHook; -import io.github.agentic.spring.ai.graph.agent.hook.pii.PIIDetectors; -import io.github.agentic.spring.ai.graph.agent.hook.pii.PIIType; -import io.github.agentic.spring.ai.graph.agent.hook.pii.RedactionStrategy; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.hook.pii.PIIDetectionHook; +import io.github.agentic.ai.graph.agent.hook.pii.PIIDetectors; +import io.github.agentic.ai.graph.agent.hook.pii.PIIType; +import io.github.agentic.ai.graph.agent.hook.pii.RedactionStrategy; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -145,7 +145,7 @@ public void testPIIDetectionWithBlockStrategy() throws Exception { Optional result = agent.invoke(messages); System.out.println("未抛出异常,可能IP未被正确检测"); } catch (Exception e) { - if (e.getCause() instanceof io.github.agentic.spring.ai.graph.agent.hook.pii.PIIDetectionException) { + if (e.getCause() instanceof io.github.agentic.ai.graph.agent.hook.pii.PIIDetectionException) { System.out.println("✓ 成功检测到IP地址并阻止处理: " + e.getCause().getMessage()); } else { System.out.println("抛出其他异常: " + e.getMessage()); diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/returndirect/ReturnDirectMessagesModelHookTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/returndirect/ReturnDirectMessagesModelHookTest.java similarity index 94% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/returndirect/ReturnDirectMessagesModelHookTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/returndirect/ReturnDirectMessagesModelHookTest.java index b2f895c35..a85e8147b 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/returndirect/ReturnDirectMessagesModelHookTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/returndirect/ReturnDirectMessagesModelHookTest.java @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hooks.returndirect; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition; -import io.github.agentic.spring.ai.graph.agent.hook.HookPositions; -import io.github.agentic.spring.ai.graph.agent.hook.messages.AgentCommand; -import io.github.agentic.spring.ai.graph.agent.hook.messages.MessagesModelHook; -import io.github.agentic.spring.ai.graph.agent.hook.returndirect.ReturnDirectModelHook; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; -import io.github.agentic.spring.ai.graph.exception.GraphRunnerException; +package io.github.agentic.ai.graph.agent.hooks.returndirect; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.hook.HookPosition; +import io.github.agentic.ai.graph.agent.hook.HookPositions; +import io.github.agentic.ai.graph.agent.hook.messages.AgentCommand; +import io.github.agentic.ai.graph.agent.hook.messages.MessagesModelHook; +import io.github.agentic.ai.graph.agent.hook.returndirect.ReturnDirectModelHook; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.exception.GraphRunnerException; import org.springframework.ai.chat.messages.Message; import org.springframework.ai.chat.model.ChatModel; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/shelltool/ShellToolAgentTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/shelltool/ShellToolAgentTest.java similarity index 87% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/shelltool/ShellToolAgentTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/shelltool/ShellToolAgentTest.java index e4c675a02..6c4b38d48 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/shelltool/ShellToolAgentTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/shelltool/ShellToolAgentTest.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hooks.shelltool; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.CompileConfig; -import io.github.agentic.spring.ai.graph.GraphRepresentation; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.hook.shelltool.ShellToolAgentHook; -import io.github.agentic.spring.ai.graph.agent.tools.ShellTool; -import io.github.agentic.spring.ai.graph.checkpoint.config.SaverConfig; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +package io.github.agentic.ai.graph.agent.hooks.shelltool; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.CompileConfig; +import io.github.agentic.ai.graph.GraphRepresentation; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.hook.shelltool.ShellToolAgentHook; +import io.github.agentic.ai.graph.agent.tools.ShellTool; +import io.github.agentic.ai.graph.checkpoint.config.SaverConfig; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/summarization/SummarizationHookTests.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/summarization/SummarizationHookTests.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/summarization/SummarizationHookTests.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/summarization/SummarizationHookTests.java index 85bedc3a0..4386957b3 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/summarization/SummarizationHookTests.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/summarization/SummarizationHookTests.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hooks.summarization; +package io.github.agentic.ai.graph.agent.hooks.summarization; import java.util.ArrayList; import java.util.List; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.hook.summarization.SummarizationHook; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.hook.summarization.SummarizationHook; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/summarization/SummarizationTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/summarization/SummarizationTest.java similarity index 94% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/summarization/SummarizationTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/summarization/SummarizationTest.java index 13255b196..f7cccc8e9 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/summarization/SummarizationTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/summarization/SummarizationTest.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hooks.summarization; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.hook.summarization.SummarizationHook; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; +package io.github.agentic.ai.graph.agent.hooks.summarization; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.hook.summarization.SummarizationHook; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.exception.GraphStateException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/toolcalllimit/ToolCallLimitTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/toolcalllimit/ToolCallLimitTest.java similarity index 84% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/toolcalllimit/ToolCallLimitTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/toolcalllimit/ToolCallLimitTest.java index 43f6d12bd..47b864e4a 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/hooks/toolcalllimit/ToolCallLimitTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/hooks/toolcalllimit/ToolCallLimitTest.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.hooks.toolcalllimit; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.hook.toolcalllimit.ToolCallLimitExceededException; -import io.github.agentic.spring.ai.graph.agent.hook.toolcalllimit.ToolCallLimitHook; -import io.github.agentic.spring.ai.graph.agent.tools.WeatherTool; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; +package io.github.agentic.ai.graph.agent.hooks.toolcalllimit; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.hook.toolcalllimit.ToolCallLimitExceededException; +import io.github.agentic.ai.graph.agent.hook.toolcalllimit.ToolCallLimitHook; +import io.github.agentic.ai.graph.agent.tools.WeatherTool; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.exception.GraphStateException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptor/modelretry/RetryDelayCalculatorTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptor/modelretry/RetryDelayCalculatorTest.java similarity index 93% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptor/modelretry/RetryDelayCalculatorTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptor/modelretry/RetryDelayCalculatorTest.java index 36e52f047..824e59425 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptor/modelretry/RetryDelayCalculatorTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptor/modelretry/RetryDelayCalculatorTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptor.modelretry; +package io.github.agentic.ai.graph.agent.interceptor.modelretry; import org.junit.jupiter.api.Test; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/AbstractDashscopeChatModelTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/AbstractDashscopeChatModelTest.java similarity index 92% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/AbstractDashscopeChatModelTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/AbstractDashscopeChatModelTest.java index 1f2f93d15..0f8bc3779 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/AbstractDashscopeChatModelTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/AbstractDashscopeChatModelTest.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; +package io.github.agentic.ai.graph.agent.interceptors; -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; import org.junit.jupiter.api.Assumptions; import org.junit.jupiter.api.BeforeEach; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/AssistantMessageSanitizerInterceptorTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/AssistantMessageSanitizerInterceptorTest.java similarity index 93% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/AssistantMessageSanitizerInterceptorTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/AssistantMessageSanitizerInterceptorTest.java index a972c784a..12e26ac26 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/AssistantMessageSanitizerInterceptorTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/AssistantMessageSanitizerInterceptorTest.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; +package io.github.agentic.ai.graph.agent.interceptors; import java.net.URI; import java.util.List; import java.util.Map; import java.util.concurrent.atomic.AtomicReference; -import io.github.agentic.spring.ai.graph.agent.extension.interceptor.AssistantMessageSanitizerInterceptor; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelCallHandler; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelResponse; +import io.github.agentic.ai.graph.agent.extension.interceptor.AssistantMessageSanitizerInterceptor; +import io.github.agentic.ai.graph.agent.interceptor.ModelCallHandler; +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest; +import io.github.agentic.ai.graph.agent.interceptor.ModelResponse; import org.junit.jupiter.api.Test; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ChatModelCallCounter.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ChatModelCallCounter.java similarity index 97% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ChatModelCallCounter.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ChatModelCallCounter.java index 5b1e09c5a..08e680bf7 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ChatModelCallCounter.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ChatModelCallCounter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; +package io.github.agentic.ai.graph.agent.interceptors; import org.springframework.ai.chat.model.ChatModel; import org.springframework.ai.chat.model.ChatResponse; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ContextEditingTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ContextEditingTest.java similarity index 94% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ContextEditingTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ContextEditingTest.java index 978719f08..78ac54de6 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ContextEditingTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ContextEditingTest.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; +package io.github.agentic.ai.graph.agent.interceptors; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelResponse; -import io.github.agentic.spring.ai.graph.agent.interceptor.contextediting.ContextEditingInterceptor; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest; +import io.github.agentic.ai.graph.agent.interceptor.ModelResponse; +import io.github.agentic.ai.graph.agent.interceptor.contextediting.ContextEditingInterceptor; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.junit.jupiter.api.Test; import reactor.core.publisher.Flux; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/InterceptorChainStreamingTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/InterceptorChainStreamingTest.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/InterceptorChainStreamingTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/InterceptorChainStreamingTest.java index 03eaabad4..c1d474357 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/InterceptorChainStreamingTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/InterceptorChainStreamingTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; +package io.github.agentic.ai.graph.agent.interceptors; -import io.github.agentic.spring.ai.graph.agent.interceptor.InterceptorChain; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest; -import io.github.agentic.spring.ai.graph.agent.interceptor.StreamingModelInterceptor; +import io.github.agentic.ai.graph.agent.interceptor.InterceptorChain; +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest; +import io.github.agentic.ai.graph.agent.interceptor.StreamingModelInterceptor; import org.junit.jupiter.api.Test; import org.springframework.ai.chat.messages.AssistantMessage; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ModelRequestTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ModelRequestTest.java similarity index 98% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ModelRequestTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ModelRequestTest.java index fd411eabd..a5a805f4d 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ModelRequestTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ModelRequestTest.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; +package io.github.agentic.ai.graph.agent.interceptors; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest; +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest; import org.springframework.ai.chat.messages.SystemMessage; import org.springframework.ai.chat.messages.UserMessage; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ModelRetryInterceptorTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ModelRetryInterceptorTest.java similarity index 97% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ModelRetryInterceptorTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ModelRetryInterceptorTest.java index 18d626ba7..2c1d97623 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ModelRetryInterceptorTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ModelRetryInterceptorTest.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; +package io.github.agentic.ai.graph.agent.interceptors; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelCallHandler; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelResponse; +import io.github.agentic.ai.graph.agent.interceptor.ModelCallHandler; +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest; +import io.github.agentic.ai.graph.agent.interceptor.ModelResponse; -import io.github.agentic.spring.ai.graph.agent.interceptor.modelretry.ModelRetryInterceptor; +import io.github.agentic.ai.graph.agent.interceptor.modelretry.ModelRetryInterceptor; import org.junit.jupiter.api.Test; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.model.ChatResponse; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ModelfallbackTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ModelfallbackTest.java similarity index 86% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ModelfallbackTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ModelfallbackTest.java index 097ef9bf5..adf624b05 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ModelfallbackTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ModelfallbackTest.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.CompileConfig; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.interceptor.modelfallback.ModelFallbackInterceptor; -import io.github.agentic.spring.ai.graph.checkpoint.config.SaverConfig; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +package io.github.agentic.ai.graph.agent.interceptors; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.CompileConfig; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.interceptor.modelfallback.ModelFallbackInterceptor; +import io.github.agentic.ai.graph.checkpoint.config.SaverConfig; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.springframework.ai.chat.model.ChatModel; import org.springframework.ai.openai.OpenAiChatModel; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ParallelAgentToolContextLossTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ParallelAgentToolContextLossTest.java similarity index 95% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ParallelAgentToolContextLossTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ParallelAgentToolContextLossTest.java index c69c47634..04cebc4d1 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ParallelAgentToolContextLossTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ParallelAgentToolContextLossTest.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; - -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.flow.agent.SequentialAgent; -import io.github.agentic.spring.ai.graph.agent.hook.AgentHook; -import io.github.agentic.spring.ai.graph.streaming.StreamingOutput; +package io.github.agentic.ai.graph.agent.interceptors; + +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.flow.agent.SequentialAgent; +import io.github.agentic.ai.graph.agent.hook.AgentHook; +import io.github.agentic.ai.graph.streaming.StreamingOutput; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyDescription; import org.junit.jupiter.api.BeforeEach; @@ -38,7 +38,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.function.BiFunction; -import static io.github.agentic.spring.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_FOR_UPDATE_CONTEXT_KEY; +import static io.github.agentic.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_FOR_UPDATE_CONTEXT_KEY; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/SkillsInterceptorEnhancementsTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/SkillsInterceptorEnhancementsTest.java similarity index 88% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/SkillsInterceptorEnhancementsTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/SkillsInterceptorEnhancementsTest.java index b4a19ea1b..a1d15d336 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/SkillsInterceptorEnhancementsTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/SkillsInterceptorEnhancementsTest.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; - -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.hook.skills.ReadSkillTool; -import io.github.agentic.spring.ai.graph.agent.hook.skills.SkillsAgentHook; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelResponse; -import io.github.agentic.spring.ai.graph.agent.interceptor.skills.SkillsInterceptor; -import io.github.agentic.spring.ai.graph.agent.node.AgentLlmNode; -import io.github.agentic.spring.ai.graph.agent.tools.PoetTool; -import io.github.agentic.spring.ai.graph.skills.registry.SkillRegistry; -import io.github.agentic.spring.ai.graph.skills.registry.filesystem.FileSystemSkillRegistry; +package io.github.agentic.ai.graph.agent.interceptors; + +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.hook.skills.ReadSkillTool; +import io.github.agentic.ai.graph.agent.hook.skills.SkillsAgentHook; +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest; +import io.github.agentic.ai.graph.agent.interceptor.ModelResponse; +import io.github.agentic.ai.graph.agent.interceptor.skills.SkillsInterceptor; +import io.github.agentic.ai.graph.agent.node.AgentLlmNode; +import io.github.agentic.ai.graph.agent.tools.PoetTool; +import io.github.agentic.ai.graph.skills.registry.SkillRegistry; +import io.github.agentic.ai.graph.skills.registry.filesystem.FileSystemSkillRegistry; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/StreamingModelInterceptorTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/StreamingModelInterceptorTest.java similarity index 95% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/StreamingModelInterceptorTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/StreamingModelInterceptorTest.java index 33965ff55..5c4dbb1b1 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/StreamingModelInterceptorTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/StreamingModelInterceptorTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; +package io.github.agentic.ai.graph.agent.interceptors; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest; -import io.github.agentic.spring.ai.graph.agent.interceptor.StreamingModelInterceptor; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest; +import io.github.agentic.ai.graph.agent.interceptor.StreamingModelInterceptor; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyDescription; import org.junit.jupiter.api.Test; @@ -35,7 +35,7 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.function.BiFunction; -import static io.github.agentic.spring.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_FOR_UPDATE_CONTEXT_KEY; +import static io.github.agentic.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_FOR_UPDATE_CONTEXT_KEY; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/TodolistTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/TodolistTest.java similarity index 82% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/TodolistTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/TodolistTest.java index dc6b31ead..1e81d068a 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/TodolistTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/TodolistTest.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.CompileConfig; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.interceptor.todolist.TodoListInterceptor; -import io.github.agentic.spring.ai.graph.agent.tools.HotelTool; -import io.github.agentic.spring.ai.graph.agent.tools.TicketTool; -import io.github.agentic.spring.ai.graph.agent.tools.WeatherTool; -import io.github.agentic.spring.ai.graph.checkpoint.config.SaverConfig; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +package io.github.agentic.ai.graph.agent.interceptors; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.CompileConfig; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.interceptor.todolist.TodoListInterceptor; +import io.github.agentic.ai.graph.agent.tools.HotelTool; +import io.github.agentic.ai.graph.agent.tools.TicketTool; +import io.github.agentic.ai.graph.agent.tools.WeatherTool; +import io.github.agentic.ai.graph.checkpoint.config.SaverConfig; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.springframework.ai.chat.messages.Message; import org.springframework.ai.chat.messages.ToolResponseMessage; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolCallRequestTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolCallRequestTest.java similarity index 98% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolCallRequestTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolCallRequestTest.java index 8c2afedc8..7a24f624a 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolCallRequestTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolCallRequestTest.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; +package io.github.agentic.ai.graph.agent.interceptors; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallRequest; +import io.github.agentic.ai.graph.agent.interceptor.ToolCallRequest; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolCallResponseTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolCallResponseTest.java similarity index 98% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolCallResponseTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolCallResponseTest.java index b0bba0b87..0e5859606 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolCallResponseTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolCallResponseTest.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; +package io.github.agentic.ai.graph.agent.interceptors; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallResponse; +import io.github.agentic.ai.graph.agent.interceptor.ToolCallResponse; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Nested; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolEmulatorTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolEmulatorTest.java similarity index 90% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolEmulatorTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolEmulatorTest.java index bb3d1a221..014bfcad6 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolEmulatorTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolEmulatorTest.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.CompileConfig; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.interceptor.toolemulator.ToolEmulatorInterceptor; -import io.github.agentic.spring.ai.graph.agent.tools.WeatherTool; -import io.github.agentic.spring.ai.graph.checkpoint.config.SaverConfig; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +package io.github.agentic.ai.graph.agent.interceptors; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.CompileConfig; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.interceptor.toolemulator.ToolEmulatorInterceptor; +import io.github.agentic.ai.graph.agent.tools.WeatherTool; +import io.github.agentic.ai.graph.checkpoint.config.SaverConfig; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.springframework.ai.chat.messages.Message; import org.springframework.ai.chat.messages.ToolResponseMessage; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolExecutionContextPropagationTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolExecutionContextPropagationTest.java similarity index 85% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolExecutionContextPropagationTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolExecutionContextPropagationTest.java index f7389b70d..218a4a4c5 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolExecutionContextPropagationTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolExecutionContextPropagationTest.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; +package io.github.agentic.ai.graph.agent.interceptors; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallHandler; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallRequest; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallResponse; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolInterceptor; -import io.github.agentic.spring.ai.graph.agent.node.AgentToolNode; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.interceptor.ToolCallHandler; +import io.github.agentic.ai.graph.agent.interceptor.ToolCallRequest; +import io.github.agentic.ai.graph.agent.interceptor.ToolCallResponse; +import io.github.agentic.ai.graph.agent.interceptor.ToolInterceptor; +import io.github.agentic.ai.graph.agent.node.AgentToolNode; import org.junit.jupiter.api.Test; import org.springframework.ai.chat.messages.AssistantMessage; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolRetryInterceptorUnitTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolRetryInterceptorUnitTest.java similarity index 92% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolRetryInterceptorUnitTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolRetryInterceptorUnitTest.java index 7a0bc18bf..68112f6b6 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolRetryInterceptorUnitTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolRetryInterceptorUnitTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; +package io.github.agentic.ai.graph.agent.interceptors; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallRequest; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallResponse; -import io.github.agentic.spring.ai.graph.agent.interceptor.toolretry.ToolRetryInterceptor; +import io.github.agentic.ai.graph.agent.interceptor.ToolCallRequest; +import io.github.agentic.ai.graph.agent.interceptor.ToolCallResponse; +import io.github.agentic.ai.graph.agent.interceptor.toolretry.ToolRetryInterceptor; import java.util.HashMap; import java.util.concurrent.atomic.AtomicInteger; @@ -30,7 +30,7 @@ /** * Pure unit tests for {@link ToolRetryInterceptor} that exercise the retry loop directly - * with a mock {@link io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallHandler}, so no + * with a mock {@link io.github.agentic.ai.graph.agent.interceptor.ToolCallHandler}, so no * model / API key is required. Guards against the off-by-one regression where the loop * performed one attempt too few, skipped the tool entirely for a single-attempt config * (leading to an NPE), and slept an unused backoff after the final failure. Also verifies diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolRetryTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolRetryTest.java similarity index 92% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolRetryTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolRetryTest.java index 7e5184d41..6c76164b8 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolRetryTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolRetryTest.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.CompileConfig; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.interceptor.toolretry.ToolRetryInterceptor; -import io.github.agentic.spring.ai.graph.agent.tools.PoetTool; -import io.github.agentic.spring.ai.graph.checkpoint.config.SaverConfig; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +package io.github.agentic.ai.graph.agent.interceptors; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.CompileConfig; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.interceptor.toolretry.ToolRetryInterceptor; +import io.github.agentic.ai.graph.agent.tools.PoetTool; +import io.github.agentic.ai.graph.checkpoint.config.SaverConfig; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.springframework.ai.chat.model.ChatModel; import org.springframework.ai.chat.model.ToolContext; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolSelectionTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolSelectionTest.java similarity index 92% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolSelectionTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolSelectionTest.java index 1fa4e136b..1e28e560a 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolSelectionTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolSelectionTest.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.CompileConfig; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.interceptor.toolselection.ToolSelectionInterceptor; -import io.github.agentic.spring.ai.graph.agent.tools.HotelTool; -import io.github.agentic.spring.ai.graph.agent.tools.TicketTool; -import io.github.agentic.spring.ai.graph.agent.tools.WeatherTool; -import io.github.agentic.spring.ai.graph.checkpoint.config.SaverConfig; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +package io.github.agentic.ai.graph.agent.interceptors; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.CompileConfig; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.interceptor.toolselection.ToolSelectionInterceptor; +import io.github.agentic.ai.graph.agent.tools.HotelTool; +import io.github.agentic.ai.graph.agent.tools.TicketTool; +import io.github.agentic.ai.graph.agent.tools.WeatherTool; +import io.github.agentic.ai.graph.checkpoint.config.SaverConfig; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolSelectionWithDescriptionsTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolSelectionWithDescriptionsTest.java similarity index 97% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolSelectionWithDescriptionsTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolSelectionWithDescriptionsTest.java index 9d6f8d933..52724db7b 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/interceptors/ToolSelectionWithDescriptionsTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/interceptors/ToolSelectionWithDescriptionsTest.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.interceptors; +package io.github.agentic.ai.graph.agent.interceptors; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelCallHandler; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelRequest; -import io.github.agentic.spring.ai.graph.agent.interceptor.ModelResponse; -import io.github.agentic.spring.ai.graph.agent.interceptor.toolselection.ToolSelectionInterceptor; +import io.github.agentic.ai.graph.agent.interceptor.ModelCallHandler; +import io.github.agentic.ai.graph.agent.interceptor.ModelRequest; +import io.github.agentic.ai.graph.agent.interceptor.ModelResponse; +import io.github.agentic.ai.graph.agent.interceptor.toolselection.ToolSelectionInterceptor; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.UserMessage; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/memory/LongTermMemoryTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/memory/LongTermMemoryTest.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/memory/LongTermMemoryTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/memory/LongTermMemoryTest.java index c570d2666..6cec4b676 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/memory/LongTermMemoryTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/memory/LongTermMemoryTest.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.memory; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition; -import io.github.agentic.spring.ai.graph.agent.hook.JumpTo; -import io.github.agentic.spring.ai.graph.agent.hook.ModelHook; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; -import io.github.agentic.spring.ai.graph.store.StoreItem; -import io.github.agentic.spring.ai.graph.store.stores.MemoryStore; +package io.github.agentic.ai.graph.agent.memory; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.hook.HookPosition; +import io.github.agentic.ai.graph.agent.hook.JumpTo; +import io.github.agentic.ai.graph.agent.hook.ModelHook; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.store.StoreItem; +import io.github.agentic.ai.graph.store.stores.MemoryStore; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/memory/ShortTermMemoryTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/memory/ShortTermMemoryTest.java similarity index 93% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/memory/ShortTermMemoryTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/memory/ShortTermMemoryTest.java index 2d8a111a0..ded62c7a4 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/memory/ShortTermMemoryTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/memory/ShortTermMemoryTest.java @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.memory; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.hook.HookPosition; -import io.github.agentic.spring.ai.graph.agent.hook.HookPositions; -import io.github.agentic.spring.ai.graph.agent.hook.messages.AgentCommand; -import io.github.agentic.spring.ai.graph.agent.hook.messages.MessagesModelHook; -import io.github.agentic.spring.ai.graph.agent.hook.messages.UpdatePolicy; -import io.github.agentic.spring.ai.graph.agent.tools.WeatherTool; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +package io.github.agentic.ai.graph.agent.memory; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.hook.HookPosition; +import io.github.agentic.ai.graph.agent.hook.HookPositions; +import io.github.agentic.ai.graph.agent.hook.messages.AgentCommand; +import io.github.agentic.ai.graph.agent.hook.messages.MessagesModelHook; +import io.github.agentic.ai.graph.agent.hook.messages.UpdatePolicy; +import io.github.agentic.ai.graph.agent.tools.WeatherTool; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/model/ReactAgentDeepSeekTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/model/ReactAgentDeepSeekTest.java similarity index 97% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/model/ReactAgentDeepSeekTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/model/ReactAgentDeepSeekTest.java index b803f139e..7cfcb17e7 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/model/ReactAgentDeepSeekTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/model/ReactAgentDeepSeekTest.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.model; - -import io.github.agentic.spring.ai.graph.CompileConfig; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.agent.AgentTool; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.checkpoint.config.SaverConfig; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; +package io.github.agentic.ai.graph.agent.model; + +import io.github.agentic.ai.graph.CompileConfig; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.AgentTool; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.checkpoint.config.SaverConfig; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/model/ReactAgentOpenAiTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/model/ReactAgentOpenAiTest.java similarity index 95% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/model/ReactAgentOpenAiTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/model/ReactAgentOpenAiTest.java index 5c215018a..93376db99 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/model/ReactAgentOpenAiTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/model/ReactAgentOpenAiTest.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.model; - -import io.github.agentic.spring.ai.graph.CompileConfig; -import io.github.agentic.spring.ai.graph.NodeOutput; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.checkpoint.config.SaverConfig; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; -import io.github.agentic.spring.ai.graph.streaming.StreamingOutput; +package io.github.agentic.ai.graph.agent.model; + +import io.github.agentic.ai.graph.CompileConfig; +import io.github.agentic.ai.graph.NodeOutput; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.checkpoint.config.SaverConfig; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.streaming.StreamingOutput; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.UserMessage; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentLlmNodeErrorHandlingTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentLlmNodeErrorHandlingTest.java similarity index 97% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentLlmNodeErrorHandlingTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentLlmNodeErrorHandlingTest.java index b873f4b42..797cc7239 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentLlmNodeErrorHandlingTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentLlmNodeErrorHandlingTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.node; +package io.github.agentic.ai.graph.agent.node; import java.net.SocketTimeoutException; import java.time.Duration; @@ -21,10 +21,10 @@ import java.util.List; import java.util.Map; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.agent.interceptor.modelretry.ModelRetryInterceptor; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.interceptor.modelretry.ModelRetryInterceptor; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Timeout; import org.junit.jupiter.params.ParameterizedTest; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeAsyncExecutionTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeAsyncExecutionTest.java similarity index 94% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeAsyncExecutionTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeAsyncExecutionTest.java index 1ad6561cb..b45f95c8c 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeAsyncExecutionTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeAsyncExecutionTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.node; +package io.github.agentic.ai.graph.agent.node; -import io.github.agentic.spring.ai.graph.agent.tool.AsyncToolCallback; -import io.github.agentic.spring.ai.graph.agent.tool.CancellableAsyncToolCallback; -import io.github.agentic.spring.ai.graph.agent.tool.CancellationToken; +import io.github.agentic.ai.graph.agent.tool.AsyncToolCallback; +import io.github.agentic.ai.graph.agent.tool.CancellableAsyncToolCallback; +import io.github.agentic.ai.graph.agent.tool.CancellationToken; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Nested; @@ -131,7 +131,7 @@ public String call(String toolInput) { assertTrue(callback instanceof AsyncToolCallback); // Simulate what AgentToolNode does - call 3-arg version with real token - io.github.agentic.spring.ai.graph.agent.tool.DefaultCancellationToken realToken = new io.github.agentic.spring.ai.graph.agent.tool.DefaultCancellationToken(); + io.github.agentic.ai.graph.agent.tool.DefaultCancellationToken realToken = new io.github.agentic.ai.graph.agent.tool.DefaultCancellationToken(); String result = callback.callAsync("{}", new ToolContext(Map.of()), realToken).join(); assertEquals("cancellable-result", result); @@ -239,7 +239,7 @@ public String call(String toolInput) { try { // Simulate AgentToolNode behavior - io.github.agentic.spring.ai.graph.agent.tool.DefaultCancellationToken token = new io.github.agentic.spring.ai.graph.agent.tool.DefaultCancellationToken(); + io.github.agentic.ai.graph.agent.tool.DefaultCancellationToken token = new io.github.agentic.ai.graph.agent.tool.DefaultCancellationToken(); CompletableFuture future = callback.callAsync("{}", new ToolContext(Map.of()), token); @@ -291,7 +291,7 @@ public String call(String toolInput) { } }; - io.github.agentic.spring.ai.graph.agent.tool.DefaultCancellationToken token = new io.github.agentic.spring.ai.graph.agent.tool.DefaultCancellationToken(); + io.github.agentic.ai.graph.agent.tool.DefaultCancellationToken token = new io.github.agentic.ai.graph.agent.tool.DefaultCancellationToken(); CompletableFuture future = callback.callAsync("{}", new ToolContext(Map.of()), token); @@ -361,7 +361,7 @@ public String call(String toolInput) { }; try { - io.github.agentic.spring.ai.graph.agent.tool.DefaultCancellationToken token = new io.github.agentic.spring.ai.graph.agent.tool.DefaultCancellationToken(); + io.github.agentic.ai.graph.agent.tool.DefaultCancellationToken token = new io.github.agentic.ai.graph.agent.tool.DefaultCancellationToken(); CompletableFuture future = callback.callAsync("{}", new ToolContext(Map.of()), token); @@ -415,7 +415,7 @@ public CompletableFuture callAsync(String arguments, ToolContext context } return "completed"; } - catch (io.github.agentic.spring.ai.graph.agent.tool.ToolCancelledException e) { + catch (io.github.agentic.ai.graph.agent.tool.ToolCancelledException e) { exceptionThrown.set(true); throw e; } @@ -441,7 +441,7 @@ public String call(String toolInput) { }; try { - io.github.agentic.spring.ai.graph.agent.tool.DefaultCancellationToken token = new io.github.agentic.spring.ai.graph.agent.tool.DefaultCancellationToken(); + io.github.agentic.ai.graph.agent.tool.DefaultCancellationToken token = new io.github.agentic.ai.graph.agent.tool.DefaultCancellationToken(); CompletableFuture future = callback.callAsync("{}", new ToolContext(Map.of()), token); @@ -519,7 +519,7 @@ public String call(String toolInput) { }; try { - io.github.agentic.spring.ai.graph.agent.tool.DefaultCancellationToken token = new io.github.agentic.spring.ai.graph.agent.tool.DefaultCancellationToken(); + io.github.agentic.ai.graph.agent.tool.DefaultCancellationToken token = new io.github.agentic.ai.graph.agent.tool.DefaultCancellationToken(); CompletableFuture future = callback.callAsync("{}", new ToolContext(Map.of()), token); @@ -656,7 +656,7 @@ public String call(String toolInput) { try { // Simulate timeout behavior - io.github.agentic.spring.ai.graph.agent.tool.DefaultCancellationToken token = new io.github.agentic.spring.ai.graph.agent.tool.DefaultCancellationToken(); + io.github.agentic.ai.graph.agent.tool.DefaultCancellationToken token = new io.github.agentic.ai.graph.agent.tool.DefaultCancellationToken(); CompletableFuture future = slowCallback.callAsync("{}", new ToolContext(Map.of()), token); diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeBuilderTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeBuilderTest.java similarity index 99% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeBuilderTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeBuilderTest.java index c9317ab05..41856862e 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeBuilderTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeBuilderTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.node; +package io.github.agentic.ai.graph.agent.node; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeDynamicToolCallbackRegistryTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeDynamicToolCallbackRegistryTest.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeDynamicToolCallbackRegistryTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeDynamicToolCallbackRegistryTest.java index 9ad1a164e..6f83fadcd 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeDynamicToolCallbackRegistryTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeDynamicToolCallbackRegistryTest.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.node; +package io.github.agentic.ai.graph.agent.node; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeIntegrationTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeIntegrationTest.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeIntegrationTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeIntegrationTest.java index 1b2d980ca..930b2d482 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeIntegrationTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeIntegrationTest.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.node; - -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallHandler; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallRequest; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallResponse; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolInterceptor; -import io.github.agentic.spring.ai.graph.agent.tool.AsyncToolCallback; -import io.github.agentic.spring.ai.graph.agent.tool.CancellableAsyncToolCallback; -import io.github.agentic.spring.ai.graph.agent.tool.CancellationToken; -import io.github.agentic.spring.ai.graph.agent.tool.StateAwareToolCallback; +package io.github.agentic.ai.graph.agent.node; + +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.interceptor.ToolCallHandler; +import io.github.agentic.ai.graph.agent.interceptor.ToolCallRequest; +import io.github.agentic.ai.graph.agent.interceptor.ToolCallResponse; +import io.github.agentic.ai.graph.agent.interceptor.ToolInterceptor; +import io.github.agentic.ai.graph.agent.tool.AsyncToolCallback; +import io.github.agentic.ai.graph.agent.tool.CancellableAsyncToolCallback; +import io.github.agentic.ai.graph.agent.tool.CancellationToken; +import io.github.agentic.ai.graph.agent.tool.StateAwareToolCallback; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; @@ -54,9 +54,9 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.function.Function; -import static io.github.agentic.spring.ai.graph.agent.tools.ToolContextConstants.AGENT_CONFIG_CONTEXT_KEY; -import static io.github.agentic.spring.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_CONTEXT_KEY; -import static io.github.agentic.spring.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_FOR_UPDATE_CONTEXT_KEY; +import static io.github.agentic.ai.graph.agent.tools.ToolContextConstants.AGENT_CONFIG_CONTEXT_KEY; +import static io.github.agentic.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_CONTEXT_KEY; +import static io.github.agentic.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_FOR_UPDATE_CONTEXT_KEY; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeParallelCancellationTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeParallelCancellationTest.java similarity index 98% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeParallelCancellationTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeParallelCancellationTest.java index eb5246afe..203c15c0b 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeParallelCancellationTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeParallelCancellationTest.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.node; +package io.github.agentic.ai.graph.agent.node; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.tool.CancellableAsyncToolCallback; -import io.github.agentic.spring.ai.graph.agent.tool.CancellationToken; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.tool.CancellableAsyncToolCallback; +import io.github.agentic.ai.graph.agent.tool.CancellationToken; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeParallelExecutionTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeParallelExecutionTest.java similarity index 98% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeParallelExecutionTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeParallelExecutionTest.java index 5df5284dd..b80243278 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeParallelExecutionTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeParallelExecutionTest.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.node; +package io.github.agentic.ai.graph.agent.node; -import io.github.agentic.spring.ai.graph.agent.interceptor.ToolCallResponse; +import io.github.agentic.ai.graph.agent.interceptor.ToolCallResponse; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Nested; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeParallelStarvationTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeParallelStarvationTest.java similarity index 98% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeParallelStarvationTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeParallelStarvationTest.java index 49381e3da..1112eacde 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeParallelStarvationTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeParallelStarvationTest.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.node; +package io.github.agentic.ai.graph.agent.node; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeSequentialStateIsolationTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeSequentialStateIsolationTest.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeSequentialStateIsolationTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeSequentialStateIsolationTest.java index ea55eacc5..045f6c6c3 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/node/AgentToolNodeSequentialStateIsolationTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/node/AgentToolNodeSequentialStateIsolationTest.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.node; +package io.github.agentic.ai.graph.agent.node; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.tool.AsyncToolCallback; -import io.github.agentic.spring.ai.graph.agent.tool.StateAwareToolCallback; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.tool.AsyncToolCallback; +import io.github.agentic.ai.graph.agent.tool.StateAwareToolCallback; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; @@ -41,7 +41,7 @@ import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; -import static io.github.agentic.spring.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_FOR_UPDATE_CONTEXT_KEY; +import static io.github.agentic.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_FOR_UPDATE_CONTEXT_KEY; import static org.assertj.core.api.Assertions.assertThat; /** diff --git a/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/renderer/ArgiStTemplateRendererTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/renderer/ArgiStTemplateRendererTest.java new file mode 100644 index 000000000..f296ef45c --- /dev/null +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/renderer/ArgiStTemplateRendererTest.java @@ -0,0 +1,423 @@ +/* + * Copyright 2024-2025 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.github.agentic.ai.graph.agent.renderer; + +import org.junit.jupiter.api.Test; +import org.springframework.ai.template.ValidationMode; + +import java.util.Map; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +/** + * Unit tests for {@link ArgiStTemplateRenderer}. + * + */ +class ArgiStTemplateRendererTest { + + @Test + void testBasicCharDelimiter() { + ArgiStTemplateRenderer renderer = ArgiStTemplateRenderer.builder() + .startDelimiterToken('{') + .endDelimiterToken('}') + .validationMode(ValidationMode.NONE) + .build(); + + String template = "Hello {name}!"; + Map variables = Map.of("name", "World"); + + String result = renderer.apply(template, variables); + assertEquals("Hello World!", result); + } + + @Test + void testStringDelimiter() { + ArgiStTemplateRenderer renderer = ArgiStTemplateRenderer.builder() + .startDelimiter("{{") + .endDelimiter("}}") + .validationMode(ValidationMode.NONE) + .build(); + + String template = "Hello {{name}}!"; + Map variables = Map.of("name", "World"); + + String result = renderer.apply(template, variables); + assertEquals("Hello World!", result); + } + + @Test + void testJsonContentWithStringDelimiter() { + // 测试使用多字符 delimiter 来避免与 JSON 内容冲突 + ArgiStTemplateRenderer renderer = ArgiStTemplateRenderer.builder() + .startDelimiter("{{") + .endDelimiter("}}") + .validationMode(ValidationMode.NONE) + .build(); + + String template = """ + 请处理以下 JSON 数据:{"name": "test", "value": 123} + 用户信息:{{userName}} + 数据内容:{{jsonData}} + """; + + Map variables = Map.of( + "userName", "张三", + "jsonData", "{\"key\": \"value\"}" + ); + + String result = renderer.apply(template, variables); + + // 验证 JSON 中的 {} 没有被替换 + assertTrue(result.contains("{\"name\": \"test\", \"value\": 123}")); + // 验证模板变量被正确替换 + assertTrue(result.contains("用户信息:张三")); + assertTrue(result.contains("数据内容:{\"key\": \"value\"}")); + } + + @Test + void testJsonContentConflictWithSingleCharDelimiter() { + // 测试单字符 delimiter 与 JSON 内容冲突的情况 + // 实现应该能够自动识别并保护 JSON 内容,避免与模板变量冲突 + ArgiStTemplateRenderer renderer = ArgiStTemplateRenderer.builder() + .startDelimiterToken('{') + .endDelimiterToken('}') + .validationMode(ValidationMode.NONE) + .build(); + + String template = """ + 请处理以下 JSON 数据:{"name": "test", "value": 123} + 用户信息:{userName} + """; + + Map variables = Map.of("userName", "张三"); + + // 实现应该能够识别 JSON 内容并保护它,同时正确替换模板变量 + String result = renderer.apply(template, variables); + + // 验证 JSON 内容被保护(没有被误替换) + assertTrue(result.contains("{\"name\": \"test\", \"value\": 123}")); + // 验证模板变量被正确替换 + assertTrue(result.contains("用户信息:张三")); + } + + @Test + void testComplexJsonWithStringDelimiter() { + // 测试复杂的 JSON 内容与模板变量混合 + ArgiStTemplateRenderer renderer = ArgiStTemplateRenderer.builder() + .startDelimiter("{{") + .endDelimiter("}}") + .validationMode(ValidationMode.NONE) + .build(); + + String template = """ + { + "request": { + "user": "{{userName}}", + "data": {"key": "value", "count": {{count}}}, + "metadata": {"type": "test", "nested": {"level": 2}} + }, + "response": "{{responseText}}" + } + """; + + Map variables = Map.of( + "userName", "Alice", + "count", "42", + "responseText", "Success" + ); + + String result = renderer.apply(template, variables); + + // 验证变量被正确替换 + assertTrue(result.contains("\"user\": \"Alice\"")); + assertTrue(result.contains("\"count\": 42")); + assertTrue(result.contains("\"response\": \"Success\"")); + // 验证 JSON 结构中的普通 {} 没有被误替换 + assertTrue(result.contains("\"metadata\": {\"type\": \"test\"")); + } + + @Test + void testNestedDelimiters() { + // 测试嵌套的 delimiter + ArgiStTemplateRenderer renderer = ArgiStTemplateRenderer.builder() + .startDelimiter("{{") + .endDelimiter("}}") + .validationMode(ValidationMode.NONE) + .build(); + + String template = "Outer: {{outer}}, Inner JSON: {\"key\": \"{{value}}\"}"; + Map variables = Map.of( + "outer", "OUTER_VALUE", + "value", "VALUE" + ); + + String result = renderer.apply(template, variables); + assertTrue(result.contains("Outer: OUTER_VALUE")); + assertTrue(result.contains("\"key\": \"VALUE\"")); + } + + @Test + void testPropertyAccess() { + // 测试属性访问 + ArgiStTemplateRenderer renderer = ArgiStTemplateRenderer.builder() + .startDelimiter("{{") + .endDelimiter("}}") + .validationMode(ValidationMode.NONE) + .build(); + + Map user = Map.of("name", "John", "age", 30); + String template = "User: {{user.name}}, Age: {{user.age}}"; + Map variables = Map.of("user", user); + + String result = renderer.apply(template, variables); + assertTrue(result.contains("User: John")); + assertTrue(result.contains("Age: 30")); + } + + @Test + void testMultipleVariables() { + ArgiStTemplateRenderer renderer = ArgiStTemplateRenderer.builder() + .startDelimiter("{{") + .endDelimiter("}}") + .validationMode(ValidationMode.NONE) + .build(); + + String template = "{{greeting}} {{name}}, today is {{day}}"; + Map variables = Map.of( + "greeting", "Hello", + "name", "Alice", + "day", "Monday" + ); + + String result = renderer.apply(template, variables); + assertEquals("Hello Alice, today is Monday", result); + } + + @Test + void testValidationModeThrow() { + ArgiStTemplateRenderer renderer = ArgiStTemplateRenderer.builder() + .startDelimiter("{{") + .endDelimiter("}}") + .validationMode(ValidationMode.THROW) + .build(); + + String template = "Hello {{name}}, missing: {{missing}}"; + Map variables = Map.of("name", "World"); + + assertThrows(IllegalStateException.class, () -> { + renderer.apply(template, variables); + }); + } + + @Test + void testValidationModeWarn() { + ArgiStTemplateRenderer renderer = ArgiStTemplateRenderer.builder() + .startDelimiter("{{") + .endDelimiter("}}") + .validationMode(ValidationMode.WARN) + .build(); + + String template = "Hello {{name}}, missing: {{missing}}"; + Map variables = Map.of("name", "World"); + + // Should not throw, but log warning + String result = renderer.apply(template, variables); + assertTrue(result.contains("Hello World")); + } + + @Test + void testValidationModeNone() { + ArgiStTemplateRenderer renderer = ArgiStTemplateRenderer.builder() + .startDelimiter("{{") + .endDelimiter("}}") + .validationMode(ValidationMode.NONE) + .build(); + + String template = "Hello {{name}}, missing: {{missing}}"; + Map variables = Map.of("name", "World"); + + // Should not throw + String result = renderer.apply(template, variables); + assertTrue(result.contains("Hello World")); + } + + @Test + void testJsonArrayWithStringDelimiter() { + // 测试包含 JSON 数组的情况 + ArgiStTemplateRenderer renderer = ArgiStTemplateRenderer.builder() + .startDelimiter("{{") + .endDelimiter("}}") + .validationMode(ValidationMode.NONE) + .build(); + + String template = """ + { + "items": [{"id": 1, "name": "item1"}, {"id": 2, "name": "item2"}], + "user": "{{userName}}", + "count": {{count}} + } + """; + + Map variables = Map.of( + "userName", "Bob", + "count", "10" + ); + + String result = renderer.apply(template, variables); + + // 验证 JSON 数组中的 {} 没有被误替换 + assertTrue(result.contains("\"items\": [{\"id\": 1")); + // 验证模板变量被正确替换 + assertTrue(result.contains("\"user\": \"Bob\"")); + assertTrue(result.contains("\"count\": 10")); + } + + @Test + void testMixedContent() { + // 测试混合内容:既有 JSON,又有普通文本和模板变量 + ArgiStTemplateRenderer renderer = ArgiStTemplateRenderer.builder() + .startDelimiter("{{") + .endDelimiter("}}") + .validationMode(ValidationMode.NONE) + .build(); + + String template = """ + 用户 {{userName}} 提交了以下数据: + {"type": "request", "data": {"key": "value"}} + 处理结果:{{result}} + 时间:{{timestamp}} + """; + + Map variables = Map.of( + "userName", "Charlie", + "result", "Success", + "timestamp", "2024-01-01" + ); + + String result = renderer.apply(template, variables); + + // 验证所有变量都被替换 + assertTrue(result.contains("用户 Charlie 提交了以下数据:")); + assertTrue(result.contains("处理结果:Success")); + assertTrue(result.contains("时间:2024-01-01")); + // 验证 JSON 内容保持不变 + assertTrue(result.contains("{\"type\": \"request\"")); + } + + @Test + void testBuilderWithCharDelimiters() { + // 测试 Builder 使用 char delimiter + ArgiStTemplateRenderer renderer = ArgiStTemplateRenderer.builder() + .startDelimiterToken('<') + .endDelimiterToken('>') + .validationMode(ValidationMode.NONE) + .build(); + + String template = "Hello !"; + Map variables = Map.of("name", "World"); + + String result = renderer.apply(template, variables); + assertEquals("Hello World!", result); + } + + @Test + void testBuilderWithStringDelimiters() { + // 测试 Builder 使用 String delimiter + ArgiStTemplateRenderer renderer = ArgiStTemplateRenderer.builder() + .startDelimiter("<<") + .endDelimiter(">>") + .validationMode(ValidationMode.NONE) + .build(); + + String template = "Hello <>!"; + Map variables = Map.of("name", "World"); + + String result = renderer.apply(template, variables); + assertEquals("Hello World!", result); + } + + @Test + void testEmptyTemplate() { + ArgiStTemplateRenderer renderer = ArgiStTemplateRenderer.builder() + .startDelimiter("{{") + .endDelimiter("}}") + .validationMode(ValidationMode.NONE) + .build(); + + String template = ""; + Map variables = Map.of(); + + assertThrows(IllegalArgumentException.class, () -> { + renderer.apply(template, variables); + }); + } + + @Test + void testNullVariables() { + ArgiStTemplateRenderer renderer = ArgiStTemplateRenderer.builder() + .startDelimiter("{{") + .endDelimiter("}}") + .validationMode(ValidationMode.NONE) + .build(); + + String template = "Hello {{name}}!"; + + assertThrows(IllegalArgumentException.class, () -> { + renderer.apply(template, null); + }); + } + + @Test + void testComplexNestedJson() { + // 测试复杂的嵌套 JSON 结构 + ArgiStTemplateRenderer renderer = ArgiStTemplateRenderer.builder() + .startDelimiter("{{") + .endDelimiter("}}") + .validationMode(ValidationMode.NONE) + .build(); + + String template = """ + { + "level1": { + "level2": { + "level3": { + "value": "{{value}}", + "items": [{"a": 1}, {"b": 2}] + } + }, + "user": "{{userName}}" + } + } + """; + + Map variables = Map.of( + "value", "test", + "userName", "User" + ); + + String result = renderer.apply(template, variables); + + // 验证深层嵌套的变量被替换 + assertTrue(result.contains("\"value\": \"test\"")); + assertTrue(result.contains("\"user\": \"User\"")); + // 验证 JSON 结构完整 + assertTrue(result.contains("\"level3\": {")); + assertTrue(result.contains("\"items\": [{\"a\": 1}")); + } + +} diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/scheduling/ScheduledAgentTaskTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/scheduling/ScheduledAgentTaskTest.java similarity index 90% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/scheduling/ScheduledAgentTaskTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/scheduling/ScheduledAgentTaskTest.java index 1b80ea8d4..ce212f3a2 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/scheduling/ScheduledAgentTaskTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/scheduling/ScheduledAgentTaskTest.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.scheduling; - -import io.github.agentic.spring.ai.graph.agent.support.OpenAiCompatibleTestModels; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; -import io.github.agentic.spring.ai.graph.scheduling.DefaultScheduledAgentManager; -import io.github.agentic.spring.ai.graph.scheduling.ScheduleConfig; -import io.github.agentic.spring.ai.graph.scheduling.ScheduleLifecycleListener; -import io.github.agentic.spring.ai.graph.scheduling.ScheduledAgentTask; +package io.github.agentic.ai.graph.agent.scheduling; + +import io.github.agentic.ai.graph.agent.support.OpenAiCompatibleTestModels; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.scheduling.DefaultScheduledAgentManager; +import io.github.agentic.ai.graph.scheduling.ScheduleConfig; +import io.github.agentic.ai.graph.scheduling.ScheduleLifecycleListener; +import io.github.agentic.ai.graph.scheduling.ScheduledAgentTask; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.UserMessage; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/support/OpenAiCompatibleTestModels.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/support/OpenAiCompatibleTestModels.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/support/OpenAiCompatibleTestModels.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/support/OpenAiCompatibleTestModels.java index 1a09cf631..92e8ba3f6 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/support/OpenAiCompatibleTestModels.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/support/OpenAiCompatibleTestModels.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.support; +package io.github.agentic.ai.graph.agent.support; import org.springframework.ai.chat.model.ChatModel; import org.springframework.ai.openai.OpenAiChatModel; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/AsyncToolCallbackAdapterTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/AsyncToolCallbackAdapterTest.java similarity index 99% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/AsyncToolCallbackAdapterTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/AsyncToolCallbackAdapterTest.java index 3f88a0a72..7bc95b2e1 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/AsyncToolCallbackAdapterTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/AsyncToolCallbackAdapterTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool; +package io.github.agentic.ai.graph.agent.tool; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/AsyncToolCallbackTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/AsyncToolCallbackTest.java similarity index 99% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/AsyncToolCallbackTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/AsyncToolCallbackTest.java index 68e857cd6..d3ffee4be 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/AsyncToolCallbackTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/AsyncToolCallbackTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool; +package io.github.agentic.ai.graph.agent.tool; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Nested; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/CancellableAsyncToolCallbackTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/CancellableAsyncToolCallbackTest.java similarity index 99% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/CancellableAsyncToolCallbackTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/CancellableAsyncToolCallbackTest.java index 605287766..4f504243a 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/CancellableAsyncToolCallbackTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/CancellableAsyncToolCallbackTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool; +package io.github.agentic.ai.graph.agent.tool; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Nested; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/DefaultCancellationTokenTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/DefaultCancellationTokenTest.java similarity index 99% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/DefaultCancellationTokenTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/DefaultCancellationTokenTest.java index ea6e1edef..1c44b769e 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/DefaultCancellationTokenTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/DefaultCancellationTokenTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool; +package io.github.agentic.ai.graph.agent.tool; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Nested; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/ToolCancelledExceptionTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/ToolCancelledExceptionTest.java similarity index 98% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/ToolCancelledExceptionTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/ToolCancelledExceptionTest.java index c8d5c23e4..3cf73c469 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/ToolCancelledExceptionTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/ToolCancelledExceptionTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool; +package io.github.agentic.ai.graph.agent.tool; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/ToolStateCollectorTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/ToolStateCollectorTest.java similarity index 99% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/ToolStateCollectorTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/ToolStateCollectorTest.java index b53e58264..a1fd1ccf9 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/ToolStateCollectorTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/ToolStateCollectorTest.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool; +package io.github.agentic.ai.graph.agent.tool; -import io.github.agentic.spring.ai.graph.KeyStrategy; +import io.github.agentic.ai.graph.KeyStrategy; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Nested; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/multimodal/ToolMultimodalResultTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/multimodal/ToolMultimodalResultTest.java similarity index 97% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/multimodal/ToolMultimodalResultTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/multimodal/ToolMultimodalResultTest.java index 397a3eb1c..c46c41a74 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tool/multimodal/ToolMultimodalResultTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tool/multimodal/ToolMultimodalResultTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tool.multimodal; +package io.github.agentic.ai.graph.agent.tool.multimodal; import org.junit.jupiter.api.Test; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/GlobSearchToolTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/GlobSearchToolTest.java similarity index 98% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/GlobSearchToolTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/GlobSearchToolTest.java index 5601e47e8..1feb60cdb 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/GlobSearchToolTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/GlobSearchToolTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools; +package io.github.agentic.ai.graph.agent.tools; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/HotelTool.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/HotelTool.java similarity index 97% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/HotelTool.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/HotelTool.java index a1dadf0c9..52d5ada45 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/HotelTool.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/HotelTool.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools; +package io.github.agentic.ai.graph.agent.tools; import org.springframework.ai.chat.model.ToolContext; import org.springframework.ai.tool.ToolCallback; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/PoemTool.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/PoemTool.java similarity index 98% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/PoemTool.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/PoemTool.java index 06e0612e7..478b67f7b 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/PoemTool.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/PoemTool.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools; +package io.github.agentic.ai.graph.agent.tools; import org.springframework.ai.chat.model.ToolContext; import org.springframework.ai.tool.ToolCallback; diff --git a/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/PoetTool.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/PoetTool.java new file mode 100644 index 000000000..0c7be8940 --- /dev/null +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/PoetTool.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024-2026 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.github.agentic.ai.graph.agent.tools; + +import org.springframework.ai.chat.model.ToolContext; +import org.springframework.ai.tool.ToolCallback; +import org.springframework.ai.tool.annotation.ToolParam; +import org.springframework.ai.tool.function.FunctionToolCallback; + +import java.util.function.BiFunction; + +public class PoetTool implements BiFunction { + public int count = 0; + + public PoetTool() { + } + + @Override + public String apply( + @ToolParam(description = "The original user query that triggered this tool call") String originalUserQuery, + ToolContext toolContext) { + count++; + System.out.println("Poet tool called : " + originalUserQuery); + return "在城市的缝隙里, \n" + "一束光悄悄发芽, \n" + "穿过钢筋水泥的沉默, \n" + "在风中轻轻说话。 \n" + "\n" + "夜色如墨,却不再黑, \n" + + "星星点亮了每一个角落, \n" + "我站在时间的边缘, \n" + "等一朵云,轻轻落下"; + } + + public static ToolCallback createPoetToolCallback() { + return FunctionToolCallback.builder("poem", new PoetTool()) + .description("用来写诗的工具") + .inputType(String.class) + .build(); + } + + public static ToolCallback createPoetToolCallback(String name, PoetTool poetTool) { + return FunctionToolCallback.builder(name, poetTool) + .description("用来写诗的工具") + .inputType(String.class) + .build(); + } + +} diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/PythonTool.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/PythonTool.java similarity index 98% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/PythonTool.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/PythonTool.java index a341bb4a0..04524dd62 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/PythonTool.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/PythonTool.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools; +package io.github.agentic.ai.graph.agent.tools; import org.springframework.ai.chat.model.ToolContext; import org.springframework.ai.tool.ToolCallback; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/ReviewerTool.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/ReviewerTool.java similarity index 97% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/ReviewerTool.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/ReviewerTool.java index 3cbe02dfc..2078e9698 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/ReviewerTool.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/ReviewerTool.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools; +package io.github.agentic.ai.graph.agent.tools; import org.springframework.ai.chat.model.ToolContext; import org.springframework.ai.tool.ToolCallback; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/ShellSessionManagerTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/ShellSessionManagerTest.java similarity index 98% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/ShellSessionManagerTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/ShellSessionManagerTest.java index 5b2723972..248d246a6 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/ShellSessionManagerTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/ShellSessionManagerTest.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools; +package io.github.agentic.ai.graph.agent.tools; -import io.github.agentic.spring.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.RunnableConfig; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/TicketTool.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/TicketTool.java similarity index 97% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/TicketTool.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/TicketTool.java index f4a6a3355..06a4df2d7 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/TicketTool.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/TicketTool.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools; +package io.github.agentic.ai.graph.agent.tools; import com.fasterxml.jackson.annotation.JsonProperty; import org.springframework.ai.chat.model.ToolContext; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/WeatherTool.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/WeatherTool.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/WeatherTool.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/WeatherTool.java index fdaf82e84..53ec4afe9 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/WeatherTool.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/WeatherTool.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools; +package io.github.agentic.ai.graph.agent.tools; import org.springframework.ai.chat.model.ToolContext; import org.springframework.ai.tool.ToolCallback; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/WebFetchToolTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/WebFetchToolTest.java similarity index 99% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/WebFetchToolTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/WebFetchToolTest.java index 952b952df..bfa36131a 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/WebFetchToolTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/WebFetchToolTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools; +package io.github.agentic.ai.graph.agent.tools; import java.lang.reflect.Field; import java.net.InetAddress; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/WriteTodosToolTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/WriteTodosToolTest.java similarity index 95% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/WriteTodosToolTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/WriteTodosToolTest.java index d7bbbac5b..9dec59271 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/WriteTodosToolTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/WriteTodosToolTest.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools; +package io.github.agentic.ai.graph.agent.tools; -import io.github.agentic.spring.ai.graph.agent.interceptor.todolist.TodoListInterceptor.Todo; -import io.github.agentic.spring.ai.graph.agent.interceptor.todolist.TodoListInterceptor.TodoStatus; +import io.github.agentic.ai.graph.agent.interceptor.todolist.TodoListInterceptor.Todo; +import io.github.agentic.ai.graph.agent.interceptor.todolist.TodoListInterceptor.TodoStatus; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.ai.chat.model.ToolContext; @@ -28,7 +28,7 @@ import java.util.List; import java.util.Map; -import static io.github.agentic.spring.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_FOR_UPDATE_CONTEXT_KEY; +import static io.github.agentic.ai.graph.agent.tools.ToolContextConstants.AGENT_STATE_FOR_UPDATE_CONTEXT_KEY; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/task/AgentSpecLoaderTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/task/AgentSpecLoaderTest.java similarity index 98% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/task/AgentSpecLoaderTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/task/AgentSpecLoaderTest.java index 645b6af99..4441d5aba 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/task/AgentSpecLoaderTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/task/AgentSpecLoaderTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools.task; +package io.github.agentic.ai.graph.agent.tools.task; import java.io.IOException; import java.nio.file.Path; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/task/TaskOutputToolTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/task/TaskOutputToolTest.java similarity index 99% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/task/TaskOutputToolTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/task/TaskOutputToolTest.java index c4724d72e..0e4046860 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/task/TaskOutputToolTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/task/TaskOutputToolTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools.task; +package io.github.agentic.ai.graph.agent.tools.task; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/task/TaskToolTest.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/task/TaskToolTest.java similarity index 98% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/task/TaskToolTest.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/task/TaskToolTest.java index e96f134eb..3dbcc7874 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/tools/task/TaskToolTest.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/tools/task/TaskToolTest.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.tools.task; +package io.github.agentic.ai.graph.agent.tools.task; -import io.github.agentic.spring.ai.graph.agent.ReactAgent; +import io.github.agentic.ai.graph.agent.ReactAgent; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Nested; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/utils/ChatClientTestUtils.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/utils/ChatClientTestUtils.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/utils/ChatClientTestUtils.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/utils/ChatClientTestUtils.java index 8ab20925c..e08fcbe60 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/utils/ChatClientTestUtils.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/utils/ChatClientTestUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.agent.utils; +package io.github.agentic.ai.graph.agent.utils; import org.springframework.ai.chat.client.ChatClient; diff --git a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/utils/HookFactory.java b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/utils/HookFactory.java similarity index 96% rename from agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/utils/HookFactory.java rename to argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/utils/HookFactory.java index abf986706..9636121b9 100644 --- a/agentic-ai-agent-framework/src/test/java/io/github/agentic/spring/ai/graph/agent/utils/HookFactory.java +++ b/argi-agent-framework/src/test/java/io/github/agentic/ai/graph/agent/utils/HookFactory.java @@ -1,4 +1,4 @@ -package io.github.agentic.spring.ai.graph.agent.utils; +package io.github.agentic.ai.graph.agent.utils; /* * Copyright 2024-2026 the original author or authors. * @@ -15,10 +15,10 @@ * limitations under the License. */ -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; -import io.github.agentic.spring.ai.graph.agent.hook.AgentHook; -import io.github.agentic.spring.ai.graph.agent.hook.ModelHook; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.agent.hook.AgentHook; +import io.github.agentic.ai.graph.agent.hook.ModelHook; import org.springframework.ai.chat.messages.AssistantMessage; import java.util.Map; diff --git a/agentic-ai-agent-framework/src/test/resources/agent/explore-agent.md b/argi-agent-framework/src/test/resources/agent/explore-agent.md similarity index 100% rename from agentic-ai-agent-framework/src/test/resources/agent/explore-agent.md rename to argi-agent-framework/src/test/resources/agent/explore-agent.md diff --git a/argi-agent-framework/src/test/resources/logback-test.xml b/argi-agent-framework/src/test/resources/logback-test.xml new file mode 100644 index 000000000..ffdfaac92 --- /dev/null +++ b/argi-agent-framework/src/test/resources/logback-test.xml @@ -0,0 +1,16 @@ + + + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + + + + + + + + + diff --git a/agentic-ai-agent-framework/src/test/resources/skills/copywriting/SKILL.md b/argi-agent-framework/src/test/resources/skills/copywriting/SKILL.md similarity index 100% rename from agentic-ai-agent-framework/src/test/resources/skills/copywriting/SKILL.md rename to argi-agent-framework/src/test/resources/skills/copywriting/SKILL.md diff --git a/agentic-ai-agent-framework/src/test/resources/skills/grouped-tools-test/SKILL.md b/argi-agent-framework/src/test/resources/skills/grouped-tools-test/SKILL.md similarity index 100% rename from agentic-ai-agent-framework/src/test/resources/skills/grouped-tools-test/SKILL.md rename to argi-agent-framework/src/test/resources/skills/grouped-tools-test/SKILL.md diff --git a/agentic-ai-agent-framework/src/test/resources/skills/pdf-extractor/SKILL.md b/argi-agent-framework/src/test/resources/skills/pdf-extractor/SKILL.md similarity index 100% rename from agentic-ai-agent-framework/src/test/resources/skills/pdf-extractor/SKILL.md rename to argi-agent-framework/src/test/resources/skills/pdf-extractor/SKILL.md diff --git a/agentic-ai-agent-framework/src/test/resources/skills/pdf-extractor/saa-roadmap.pdf b/argi-agent-framework/src/test/resources/skills/pdf-extractor/argi-roadmap.pdf similarity index 100% rename from agentic-ai-agent-framework/src/test/resources/skills/pdf-extractor/saa-roadmap.pdf rename to argi-agent-framework/src/test/resources/skills/pdf-extractor/argi-roadmap.pdf diff --git a/agentic-ai-agent-framework/src/test/resources/skills/pdf-extractor/scripts/extract_pdf.py b/argi-agent-framework/src/test/resources/skills/pdf-extractor/scripts/extract_pdf.py similarity index 100% rename from agentic-ai-agent-framework/src/test/resources/skills/pdf-extractor/scripts/extract_pdf.py rename to argi-agent-framework/src/test/resources/skills/pdf-extractor/scripts/extract_pdf.py diff --git a/agentic-ai-agent-framework/src/test/resources/skills/product-selection/SKILL.md b/argi-agent-framework/src/test/resources/skills/product-selection/SKILL.md similarity index 100% rename from agentic-ai-agent-framework/src/test/resources/skills/product-selection/SKILL.md rename to argi-agent-framework/src/test/resources/skills/product-selection/SKILL.md diff --git a/argi-bom/pom.xml b/argi-bom/pom.xml new file mode 100644 index 000000000..1144343ef --- /dev/null +++ b/argi-bom/pom.xml @@ -0,0 +1,531 @@ + + + + 4.0.0 + + io.github.agentic-ai + argi-bom + ${revision} + + pom + + ARGI Bom + https://github.com/agentic-ai-java/argi + Bill of Materials POM (BOM) for the ARGI modules + + + + https://github.com/agentic-ai-java/argi + git://github.com/agentic-ai-java/argi.git + git@github.com:agentic-ai-java/argi.git + + + + Github Issues + https://github.com/agentic-ai-java/argi/issues + + + Github Actions + https://github.com/agentic-ai-java/argi/actions + + + + Apache 2.0 + https://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + + yuluo-yx + yuluo-yx + https://github.com/yuluo-yx + + + Aias00 + Aias00 + https://github.com/Aias00 + + + + + 2.1.0-dev + + + 3.16.0 + 3.6.0 + 3.6.0 + 3.12.0 + 3.4.0 + 0.8.15 + 1.8.0 + 3.1.4 + 2.2.3 + 3.7.0 + 3.5.0 + 4.0.0-M16 + 3.4.5 + 3.5.1 + 0.0.48 + + + 0.11.0 + + + + + + io.github.agentic-ai + argi-starter-graph-observation + ${project.version} + + + io.github.agentic-ai + argi-starter-builtin-nodes + ${project.version} + + + + io.github.agentic-ai + argi-agent-framework + ${project.version} + + + + io.github.agentic-ai + argi-graph-core + ${project.version} + + + + + io.github.agentic-ai + argi-studio + ${project.version} + + + + + + + + + + io.spring.javaformat + spring-javaformat-maven-plugin + ${spring-javaformat-maven-plugin.version} + + true + + + + validate + true + + validate + + + + + + org.apache.maven.plugins + maven-site-plugin + ${maven-site-plugin.version} + + + org.apache.maven.plugins + maven-compiler-plugin + ${maven-compiler-plugin.version} + + ${java.version} + + -parameters + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + ${surefireArgLine} + + + + org.apache.maven.plugins + maven-jar-plugin + ${maven-jar-plugin.version} + + + + ${project.artifactId} + ${project.version} + + + + + + org.codehaus.mojo + flatten-maven-plugin + ${flatten-maven-plugin.version} + + + flatten + process-resources + + flatten + + + true + ossrh + + remove + expand + remove + keep + keep + resolve + + + + + clean + clean + + clean + + + + + + com.diffplug.spotless + spotless-maven-plugin + 2.46.1 + + + + + + + + spotless-apply + + apply + + process-sources + + + + + org.apache.maven.plugins + maven-deploy-plugin + ${maven-deploy-plugin.version} + + + + + + + license + + false + + + + + com.mycila + license-maven-plugin + 4.6 + + + validate + + check + + + + + + the original author or authors. + + 2024 + + true + + +
    com/mycila/maven/plugin/license/templates/APACHE-2.txt
    + + **/.antlr/** + **/aot.factories + **/.sdkmanrc + **/*.adoc + **/*.puml + **/pom.xml + **/*.properties + **/*.yaml + **/*.yml + **/*.map + **/*.html + **/*.xhtml + **/*.jsp + **/*.js + **/*.css + **/*.txt + **/*.xjb + **/*.ftl + **/*.xsd + **/*.xml + **/*.sh + **/generated/** + **/Dockerfile + +
    +
    +
    +
    + +
    +
    +
    + + javadoc + + false + + + + + org.apache.maven.plugins + maven-javadoc-plugin + ${maven-javadoc-plugin.version} + + + org.springframework.ai.sample.*,org.springframework.ai.testcontainers.service.connection.* + + + ${project.basedir}/spring-ai-docs/src/main/javadoc/overview.html + + false + none + + true + + + + generate-javadocs + package + + jar + + + + generate-aggregate-javadocs + package + + aggregate + + + + + + + + + integration-tests + + false + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${maven-failsafe-plugin.version} + + + + integration-test + verify + + + + + + + + + test-coverage + + + + org.jacoco + jacoco-maven-plugin + ${jacoco-maven-plugin.version} + + + prepare-agent + + prepare-agent + + + + report + + report + + + + + + + + + release + + 3.2.8 + 1.7.0 + + + + + org.apache.maven.plugins + maven-source-plugin + ${maven-source-plugin.version} + + + package + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + ${maven-javadoc-plugin.version} + + none + + + + package + + jar + + + + + + org.apache.maven.plugins + maven-gpg-plugin + ${maven-gpg-plugin.version} + + + verify + + sign + + + + + + org.codehaus.mojo + flatten-maven-plugin + ${flatten-maven-plugin.version} + + true + resolveCiFriendliesOnly + + + + flatten + process-resources + + flatten + + + + flatten.clean + clean + + clean + + + + + + org.sonatype.central + central-publishing-maven-plugin + ${central.publishing.maven.version} + true + + central + true + published + + + + + + + + central + https://central.sonatype.com/repository/maven-snapshots + + + +
    + + + + spring-milestones + Spring Milestones + https://repo.spring.io/milestone + + false + + + + snapshots + https://central.sonatype.com/repository/maven-snapshots/ + + false + + + true + always + + + + sonatype-snapshots + Sonatype Snapshot Repository + https://oss.sonatype.org/content/repositories/snapshots + + false + + + true + always + + + + +
    diff --git a/argi-graph-core/README.md b/argi-graph-core/README.md new file mode 100644 index 000000000..b9ac1d489 --- /dev/null +++ b/argi-graph-core/README.md @@ -0,0 +1,91 @@ +# ARGI Graph + +## What's ARGI Graph + +ARGI Graph is a **workflow and multi-agent framework** for Java developers to build complex applications composed of multiple AI models or steps. + +ARGI Graph serves as the underlying core engine of the Agent Framework. It provides atomic components for building intelligent agents with interruptible and orchestratable capabilities, offering high flexibility but also relatively high learning costs. In contrast, the Agent Framework is built atop Graph, abstracting away the underlying complexities through concepts like ReactAgent and SequentialAgent. + +Please check [the documentation](https://java2ai.com/docs/frameworks/graph-core/quick-start) on official website for more details + +## Core Concepts & Classes + +Graph is deeply integrated with the Spring Boot ecosystem, providing a declarative API to orchestrate workflows. This allows developers to abstract each step of an AI application as a node (Node) and connect these nodes in the form of a directed graph (Graph) to create a customizable execution flow. Compared to traditional single-agent (one-turn Q&A) solutions, ARGI Graph supports more complex multi-step task flows, helping to address the issue of a **single large model being insufficient for complex tasks**. + +The core of the framework includes: **StateGraph** (the state graph for defining nodes and edges), **Node** (node, encapsulating a specific operation or model call), **Edge** (edge, representing transitions between nodes), and **OverAllState** (global state, carrying shared data throughout the flow). These designs make it convenient to manage state and control flow in the workflow. + +1. StateGraph + The main class for defining a workflow. + Lets you add nodes (addNode) and edges (addEdge, addConditionalEdges). + Supports conditional routing, subgraphs, and validation. + Can be compiled into a CompiledGraph for execution. +2. Node + Represents a single step in the workflow (e.g., a model call, a data transformation). + Nodes can be asynchronous and can encapsulate LLM calls or custom logic. +3. Edge + Represents transitions between nodes. + Can be conditional, with logic to determine the next node based on the current state. +4. OverAllState + A serializable, central state object that holds all workflow data. + Supports key-based strategies for merging/updating state. + Used for checkpointing, resuming, and passing data between nodes. +5. CompiledGraph + The executable form of a StateGraph. + Handles the actual execution, state transitions, and streaming of results. + Supports interruption, parallel nodes, and checkpointing. +6. InterruptableAction + Interface for actions that can interrupt graph execution. + Provides two hook points: `interrupt()` (before execution) and `interruptAfter()` (after execution). + Useful for human-in-the-loop scenarios, approval workflows, and multi-turn conversations. + +## How It's Used (Typical Flow) +- Define StateGraph: In a Spring configuration, you define a StateGraph bean, add nodes (each encapsulating a model call or logic), and connect them with edges. +- Configure State: Use an OverAllStateFactory to define the initial state and key strategies. +- Execution: The graph is compiled and executed, with state flowing through nodes and edges, and conditional logic determining the path. +- Integration: Typically exposed via a REST controller or service in a Spring Boot app. + +## Interruption Support + +ARGI Graph supports interrupting workflow execution at specific points, enabling human-in-the-loop scenarios. + +### InterruptableAction Interface + +```java +public interface InterruptableAction { + // Called BEFORE node execution - can prevent execution + Optional interrupt(String nodeId, OverAllState state, RunnableConfig config); + + // Called AFTER node execution - can inspect results and interrupt + default Optional interruptAfter(String nodeId, OverAllState state, + Map actionResult, RunnableConfig config) { + return Optional.empty(); + } +} +``` + +### Example Usage + +```java +public class ReviewAction implements AsyncNodeActionWithConfig, InterruptableAction { + + @Override + public CompletableFuture> apply(OverAllState state, RunnableConfig config) { + return CompletableFuture.completedFuture(Map.of("result", "generated_content")); + } + + @Override + public Optional interrupt(String nodeId, OverAllState state, RunnableConfig config) { + return Optional.empty(); // Don't interrupt before execution + } + + @Override + public Optional interruptAfter(String nodeId, OverAllState state, + Map actionResult, RunnableConfig config) { + // Interrupt after execution for human review + return Optional.of(InterruptionMetadata.builder(nodeId, state) + .addMetadata("reason", "needs_review") + .addMetadata("content", actionResult.get("result")) + .build()); + } +} +``` diff --git a/argi-graph-core/pom.xml b/argi-graph-core/pom.xml new file mode 100644 index 000000000..e38bb13c0 --- /dev/null +++ b/argi-graph-core/pom.xml @@ -0,0 +1,217 @@ + + + + 4.0.0 + + + io.github.agentic-ai + argi + ${revision} + ../pom.xml + + + argi-graph-core + jar + ARGI Graph Core + A library for building stateful, multi-agents applications with LLMs + https://github.com/agentic-ai-java/argi + + git://github.com/agentic-ai-java/argi.git + git@github.com:agentic-ai-java/argi.git + https://github.com/agentic-ai-java/argi + + + + + com.fasterxml.jackson.core + jackson-databind + + + com.fasterxml.jackson.datatype + jackson-datatype-jsr310 + + + com.fasterxml.jackson.datatype + jackson-datatype-jdk8 + + + + org.postgresql + postgresql + true + + + + com.oracle.database.jdbc + ojdbc11 + true + + + com.oracle.database.jdbc + ojdbc-provider-jackson-oson + true + + + + com.mysql + mysql-connector-j + true + + + + io.projectreactor + reactor-core + + + + org.springframework.ai + spring-ai-commons + + + + org.springframework.ai + spring-ai-deepseek + true + + + + org.springframework.ai + spring-ai-client-chat + + + + org.slf4j + slf4j-api + + + + org.springframework.boot + spring-boot-starter-test + test + + + + org.slf4j + slf4j-jdk14 + test + + + + org.redisson + redisson + ${redisson.version} + true + + + + + org.mongodb + mongodb-driver-sync + true + + + + io.opentelemetry + opentelemetry-context + + + + + junit + junit + test + + + + org.junit.platform + junit-platform-launcher + test + + + + org.junit.vintage + junit-vintage-engine + test + + + + + org.testcontainers + testcontainers + test + + + + org.testcontainers + testcontainers-junit-jupiter + test + + + + org.testcontainers + testcontainers-postgresql + test + + + + org.testcontainers + testcontainers-mysql + test + + + + org.testcontainers + testcontainers-oracle-free + test + + + + + com.h2database + h2 + test + + + + + com.zaxxer + HikariCP + test + + + + + + + + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + + + + + diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/CompileConfig.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/CompileConfig.java similarity index 97% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/CompileConfig.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/CompileConfig.java index 43c7c9ab4..36d10a2cb 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/CompileConfig.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/CompileConfig.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph; +package io.github.agentic.ai.graph; -import io.github.agentic.spring.ai.graph.checkpoint.BaseCheckpointSaver; -import io.github.agentic.spring.ai.graph.checkpoint.config.SaverConfig; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; -import io.github.agentic.spring.ai.graph.store.Store; +import io.github.agentic.ai.graph.checkpoint.BaseCheckpointSaver; +import io.github.agentic.ai.graph.checkpoint.config.SaverConfig; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.store.Store; import io.micrometer.observation.ObservationRegistry; import java.util.Collection; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/CompiledGraph.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/CompiledGraph.java similarity index 95% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/CompiledGraph.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/CompiledGraph.java index 6e96b7eaf..12f578a31 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/CompiledGraph.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/CompiledGraph.java @@ -13,23 +13,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph; - -import io.github.agentic.spring.ai.graph.action.AsyncNodeActionWithConfig; -import io.github.agentic.spring.ai.graph.action.Command; -import io.github.agentic.spring.ai.graph.checkpoint.BaseCheckpointSaver; -import io.github.agentic.spring.ai.graph.checkpoint.Checkpoint; -import io.github.agentic.spring.ai.graph.exception.Errors; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; -import io.github.agentic.spring.ai.graph.exception.RunnableErrors; -import io.github.agentic.spring.ai.graph.internal.edge.Edge; -import io.github.agentic.spring.ai.graph.internal.edge.EdgeValue; -import io.github.agentic.spring.ai.graph.internal.node.ParallelNode; -import io.github.agentic.spring.ai.graph.internal.node.ConditionalParallelNode; -import io.github.agentic.spring.ai.graph.internal.node.Node; -import io.github.agentic.spring.ai.graph.scheduling.ScheduleConfig; -import io.github.agentic.spring.ai.graph.scheduling.ScheduledAgentTask; -import io.github.agentic.spring.ai.graph.state.StateSnapshot; +package io.github.agentic.ai.graph; + +import io.github.agentic.ai.graph.action.AsyncNodeActionWithConfig; +import io.github.agentic.ai.graph.action.Command; +import io.github.agentic.ai.graph.checkpoint.BaseCheckpointSaver; +import io.github.agentic.ai.graph.checkpoint.Checkpoint; +import io.github.agentic.ai.graph.exception.Errors; +import io.github.agentic.ai.graph.exception.GraphStateException; +import io.github.agentic.ai.graph.exception.RunnableErrors; +import io.github.agentic.ai.graph.internal.edge.Edge; +import io.github.agentic.ai.graph.internal.edge.EdgeValue; +import io.github.agentic.ai.graph.internal.node.ParallelNode; +import io.github.agentic.ai.graph.internal.node.ConditionalParallelNode; +import io.github.agentic.ai.graph.internal.node.Node; +import io.github.agentic.ai.graph.scheduling.ScheduleConfig; +import io.github.agentic.ai.graph.scheduling.ScheduledAgentTask; +import io.github.agentic.ai.graph.state.StateSnapshot; import java.io.IOException; import java.util.Collection; @@ -49,7 +49,7 @@ import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; -import static io.github.agentic.spring.ai.graph.StateGraph.START; +import static io.github.agentic.ai.graph.StateGraph.START; import static java.lang.String.format; import static java.util.stream.Collectors.toList; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/DiagramGenerator.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/DiagramGenerator.java similarity index 97% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/DiagramGenerator.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/DiagramGenerator.java index 71eb3e3f3..a81a89b08 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/DiagramGenerator.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/DiagramGenerator.java @@ -13,17 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph; +package io.github.agentic.ai.graph; -import io.github.agentic.spring.ai.graph.internal.edge.EdgeCondition; -import io.github.agentic.spring.ai.graph.internal.node.Node; +import io.github.agentic.ai.graph.internal.edge.EdgeCondition; +import io.github.agentic.ai.graph.internal.node.Node; import java.util.Objects; import java.util.Optional; import java.util.stream.Stream; -import static io.github.agentic.spring.ai.graph.StateGraph.END; -import static io.github.agentic.spring.ai.graph.StateGraph.START; +import static io.github.agentic.ai.graph.StateGraph.END; +import static io.github.agentic.ai.graph.StateGraph.START; import static java.lang.String.format; import static java.util.Optional.ofNullable; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/GraphLifecycleListener.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/GraphLifecycleListener.java similarity index 98% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/GraphLifecycleListener.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/GraphLifecycleListener.java index 76a0b18a0..6b8fd87e5 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/GraphLifecycleListener.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/GraphLifecycleListener.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph; +package io.github.agentic.ai.graph; import java.util.Map; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/GraphRepresentation.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/GraphRepresentation.java similarity index 90% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/GraphRepresentation.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/GraphRepresentation.java index e6bcdc073..26528f61b 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/GraphRepresentation.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/GraphRepresentation.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph; +package io.github.agentic.ai.graph; -import io.github.agentic.spring.ai.graph.diagram.MermaidGenerator; -import io.github.agentic.spring.ai.graph.diagram.PlantUMLGenerator; +import io.github.agentic.ai.graph.diagram.MermaidGenerator; +import io.github.agentic.ai.graph.diagram.PlantUMLGenerator; /** * The graph representation in diagram-as-code format. diff --git a/argi-graph-core/src/main/java/io/github/agentic/ai/graph/GraphResponse.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/GraphResponse.java new file mode 100644 index 000000000..c109b27b4 --- /dev/null +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/GraphResponse.java @@ -0,0 +1,228 @@ +/* + * Copyright 2024-2026 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.github.agentic.ai.graph; + +import com.fasterxml.jackson.annotation.JsonIgnore; + +import reactor.core.publisher.Flux; + +import java.io.Serializable; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Supplier; + +import static java.util.concurrent.CompletableFuture.completedFuture; + +/** + * Represents a graph element in the Flux. + * + * @param the type of the data element + */ +public class GraphResponse implements Serializable { + + private static final Map EMPTY_METADATA = Collections.emptyMap(); + + @JsonIgnore + CompletableFuture output; + + Object resultValue; + + Map metadata = EMPTY_METADATA; + + /** + * Lazy continuation of the graph execution. Executors emit a marker response + * carrying the next execution step instead of recursively nesting it with + * {@code concatWith(Flux.defer(...))}; {@link io.github.agentic.ai.graph.GraphRunner} + * expands these markers iteratively so the reactive operator depth stays constant + * regardless of how many nodes execute (see issue #4594). Markers are internal and + * never emitted to downstream consumers. + */ + @JsonIgnore + transient Supplier>> continuation; + + public GraphResponse(){} + + public GraphResponse(CompletableFuture data, Object resultValue) { + this(data, resultValue, EMPTY_METADATA); + } + + public GraphResponse(CompletableFuture data, Object resultValue, Map metadata) { + this.output = data; + this.resultValue = resultValue; + this.metadata = metadata.isEmpty() ? EMPTY_METADATA : new HashMap<>(metadata); + } + + public static GraphResponse of(CompletableFuture data) { + return new GraphResponse<>(data, null); + } + + public static GraphResponse of(CompletableFuture data, Map metadata) { + return new GraphResponse<>(data, null, metadata); + } + + public static GraphResponse of(E data) { + return new GraphResponse<>(completedFuture(data), null); + } + + public static GraphResponse of(E data, Map metadata) { + return new GraphResponse<>(completedFuture(data), null, metadata); + } + + public static GraphResponse done() { + return new GraphResponse<>(null, null); + } + + public static GraphResponse done(Object resultValue) { + return new GraphResponse<>(null, resultValue); + } + + public static GraphResponse done(Object resultValue, Map metadata) { + return new GraphResponse<>(null, resultValue, metadata); + } + + public static GraphResponse error(Throwable exception) { + CompletableFuture future = new CompletableFuture<>(); + future.completeExceptionally(exception); + return GraphResponse.of(future); + } + + public static GraphResponse error(Throwable exception, Map metadata) { + CompletableFuture future = new CompletableFuture<>(); + future.completeExceptionally(exception); + return GraphResponse.of(future, metadata); + } + + /** + * Creates an internal marker response carrying the next execution step. The supplier + * is invoked lazily by the runner-level driver once all elements preceding the marker + * have been emitted, preserving the ordering semantics of the previous recursive + * {@code concatWith(Flux.defer(...))} chaining without growing the operator chain. + * @param continuation supplier of the next execution step + * @param the type of the data element + * @return a continuation marker response + */ + public static GraphResponse continueWith(Supplier>> continuation) { + GraphResponse response = new GraphResponse<>(null, null); + response.continuation = continuation; + return response; + } + + public CompletableFuture getOutput() { + return output; + } + + public Optional resultValue() { + return resultValue == null ? Optional.empty() : Optional.of(resultValue); + } + + @JsonIgnore + public boolean isDone() { + return output == null; + } + + @JsonIgnore + public Supplier>> getContinuation() { + return continuation; + } + + @JsonIgnore + public boolean hasContinuation() { + return continuation != null; + } + + @JsonIgnore + public boolean isError() { + return output != null && output.isCompletedExceptionally(); + } + + /** + * Add metadata with key and value. + * @param key the metadata key + * @param value the metadata value + */ + public void addMetadata(String key, Object value) { + if (this.metadata.isEmpty()) { + this.metadata = new HashMap<>(); + } + this.metadata.put(key, value); + } + + /** + * Get metadata value by key. + * @param key the metadata key + * @return the metadata value, or null if not found + */ + public Object getMetadata(String key) { + return this.metadata.get(key); + } + + /** + * Get metadata value by key with type casting. + * @param key the metadata key + * @param type the expected type class + * @param the expected type + * @return the metadata value cast to the expected type, or null if not found or + * cannot be cast + */ + @SuppressWarnings("unchecked") + public T getMetadata(String key, Class type) { + Object value = this.metadata.get(key); + if (value != null && type.isAssignableFrom(value.getClass())) { + return (T) value; + } + return null; + } + + /** + * Get all metadata as an immutable map. + * @return a copy of all metadata + */ + @JsonIgnore + public Map getAllMetadata() { + return new HashMap<>(this.metadata); + } + + /** + * Check if metadata contains the specified key. + * @param key the metadata key + * @return true if the key exists, false otherwise + */ + public boolean hasMetadata(String key) { + return this.metadata.containsKey(key); + } + + /** + * Remove metadata by key. + * @param key the metadata key + * @return the previous value associated with the key, or null if no mapping existed + */ + public Object removeMetadata(String key) { + if (this.metadata.isEmpty()) { + return null; + } + Object removed = this.metadata.remove(key); + if (this.metadata.isEmpty()) { + this.metadata = EMPTY_METADATA; + } + return removed; + } + + + +} diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/GraphRunner.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/GraphRunner.java similarity index 96% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/GraphRunner.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/GraphRunner.java index 7c61565cc..99dd1e57e 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/GraphRunner.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/GraphRunner.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph; +package io.github.agentic.ai.graph; -import io.github.agentic.spring.ai.graph.executor.MainGraphExecutor; +import io.github.agentic.ai.graph.executor.MainGraphExecutor; import reactor.core.publisher.Flux; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/GraphRunnerContext.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/GraphRunnerContext.java similarity index 94% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/GraphRunnerContext.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/GraphRunnerContext.java index 384ff4efe..a53427b57 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/GraphRunnerContext.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/GraphRunnerContext.java @@ -13,21 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph; - -import io.github.agentic.spring.ai.graph.action.AsyncNodeActionWithConfig; -import io.github.agentic.spring.ai.graph.action.Command; -import io.github.agentic.spring.ai.graph.internal.edge.EdgeValue; -import io.github.agentic.spring.ai.graph.checkpoint.Checkpoint; -import io.github.agentic.spring.ai.graph.exception.RunnableErrors; -import io.github.agentic.spring.ai.graph.internal.node.ParallelNode; -import io.github.agentic.spring.ai.graph.internal.node.ResumableSubGraphAction; -import io.github.agentic.spring.ai.graph.state.StateSnapshot; -import io.github.agentic.spring.ai.graph.streaming.OutputType; -import io.github.agentic.spring.ai.graph.state.ReplaceAllWith; -import io.github.agentic.spring.ai.graph.streaming.StreamingOutput; -import io.github.agentic.spring.ai.graph.utils.SystemClock; -import io.github.agentic.spring.ai.graph.utils.TypeRef; +package io.github.agentic.ai.graph; + +import io.github.agentic.ai.graph.action.AsyncNodeActionWithConfig; +import io.github.agentic.ai.graph.action.Command; +import io.github.agentic.ai.graph.internal.edge.EdgeValue; +import io.github.agentic.ai.graph.checkpoint.Checkpoint; +import io.github.agentic.ai.graph.exception.RunnableErrors; +import io.github.agentic.ai.graph.internal.node.ParallelNode; +import io.github.agentic.ai.graph.internal.node.ResumableSubGraphAction; +import io.github.agentic.ai.graph.state.StateSnapshot; +import io.github.agentic.ai.graph.streaming.OutputType; +import io.github.agentic.ai.graph.state.ReplaceAllWith; +import io.github.agentic.ai.graph.streaming.StreamingOutput; +import io.github.agentic.ai.graph.utils.SystemClock; +import io.github.agentic.ai.graph.utils.TypeRef; import org.springframework.ai.chat.messages.AssistantMessage; import org.springframework.ai.chat.messages.Message; @@ -45,11 +45,11 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import static io.github.agentic.spring.ai.graph.StateGraph.END; -import static io.github.agentic.spring.ai.graph.StateGraph.NODE_AFTER; -import static io.github.agentic.spring.ai.graph.StateGraph.NODE_BEFORE; -import static io.github.agentic.spring.ai.graph.StateGraph.START; -import static io.github.agentic.spring.ai.graph.StateGraph.ERROR; +import static io.github.agentic.ai.graph.StateGraph.END; +import static io.github.agentic.ai.graph.StateGraph.NODE_AFTER; +import static io.github.agentic.ai.graph.StateGraph.NODE_BEFORE; +import static io.github.agentic.ai.graph.StateGraph.START; +import static io.github.agentic.ai.graph.StateGraph.ERROR; import static java.lang.String.format; import static java.util.Optional.ofNullable; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/HasMetadata.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/HasMetadata.java similarity index 97% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/HasMetadata.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/HasMetadata.java index a47fe53a6..915f47619 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/HasMetadata.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/HasMetadata.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph; +package io.github.agentic.ai.graph; -import io.github.agentic.spring.ai.graph.utils.TypeRef; +import io.github.agentic.ai.graph.utils.TypeRef; import java.util.HashMap; import java.util.Map; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/KeyStrategy.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/KeyStrategy.java similarity index 85% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/KeyStrategy.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/KeyStrategy.java index 8b702898b..91a9d7c93 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/KeyStrategy.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/KeyStrategy.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph; +package io.github.agentic.ai.graph; -import io.github.agentic.spring.ai.graph.state.strategy.AppendStrategy; -import io.github.agentic.spring.ai.graph.state.strategy.MergeStrategy; -import io.github.agentic.spring.ai.graph.state.strategy.ReplaceStrategy; +import io.github.agentic.ai.graph.state.strategy.AppendStrategy; +import io.github.agentic.ai.graph.state.strategy.MergeStrategy; +import io.github.agentic.ai.graph.state.strategy.ReplaceStrategy; import java.util.function.BiFunction; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/KeyStrategyFactory.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/KeyStrategyFactory.java similarity index 97% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/KeyStrategyFactory.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/KeyStrategyFactory.java index 7df5eb85d..a4321b44f 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/KeyStrategyFactory.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/KeyStrategyFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph; +package io.github.agentic.ai.graph; import java.util.Map; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/KeyStrategyFactoryBuilder.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/KeyStrategyFactoryBuilder.java similarity index 99% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/KeyStrategyFactoryBuilder.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/KeyStrategyFactoryBuilder.java index 63309d6b0..22a8e904a 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/KeyStrategyFactoryBuilder.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/KeyStrategyFactoryBuilder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph; +package io.github.agentic.ai.graph; import java.util.HashMap; import java.util.Map; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/NodeAggregationStrategy.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/NodeAggregationStrategy.java similarity index 96% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/NodeAggregationStrategy.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/NodeAggregationStrategy.java index 4674c8d6b..deed33c54 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/NodeAggregationStrategy.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/NodeAggregationStrategy.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph; +package io.github.agentic.ai.graph; /** * Strategy for aggregating results from parallel node execution. diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/NodeOutput.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/NodeOutput.java similarity index 94% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/NodeOutput.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/NodeOutput.java index 40879f241..1c07b56eb 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/NodeOutput.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/NodeOutput.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph; +package io.github.agentic.ai.graph; import org.springframework.ai.chat.metadata.EmptyUsage; import org.springframework.ai.chat.metadata.Usage; import java.util.Objects; -import static io.github.agentic.spring.ai.graph.StateGraph.END; -import static io.github.agentic.spring.ai.graph.StateGraph.START; +import static io.github.agentic.ai.graph.StateGraph.END; +import static io.github.agentic.ai.graph.StateGraph.START; import static java.lang.String.format; /** diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/OverAllState.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/OverAllState.java similarity index 98% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/OverAllState.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/OverAllState.java index 33cfa0f7c..388541848 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/OverAllState.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/OverAllState.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph; +package io.github.agentic.ai.graph; -import io.github.agentic.spring.ai.graph.state.strategy.ReplaceStrategy; -import io.github.agentic.spring.ai.graph.store.Store; +import io.github.agentic.ai.graph.state.strategy.ReplaceStrategy; +import io.github.agentic.ai.graph.store.Store; import org.springframework.ai.util.JsonHelper; import org.springframework.util.CollectionUtils; @@ -33,7 +33,7 @@ import java.util.stream.Collector; import java.util.stream.Stream; -import static io.github.agentic.spring.ai.graph.utils.CollectionsUtils.entryOf; +import static io.github.agentic.ai.graph.utils.CollectionsUtils.entryOf; import static java.util.Collections.unmodifiableMap; import static java.util.Optional.ofNullable; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/OverAllStateBuilder.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/OverAllStateBuilder.java similarity index 95% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/OverAllStateBuilder.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/OverAllStateBuilder.java index 476d7514b..8b1fbfe6f 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/OverAllStateBuilder.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/OverAllStateBuilder.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph; +package io.github.agentic.ai.graph; -import io.github.agentic.spring.ai.graph.state.strategy.ReplaceStrategy; -import io.github.agentic.spring.ai.graph.store.Store; -import io.github.agentic.spring.ai.graph.utils.SerializationUtils; +import io.github.agentic.ai.graph.state.strategy.ReplaceStrategy; +import io.github.agentic.ai.graph.store.Store; +import io.github.agentic.ai.graph.utils.SerializationUtils; import org.springframework.util.CollectionUtils; import java.util.HashMap; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/ProcessedNodesEdgesAndConfig.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/ProcessedNodesEdgesAndConfig.java similarity index 95% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/ProcessedNodesEdgesAndConfig.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/ProcessedNodesEdgesAndConfig.java index 332d561c9..f5f8daaee 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/ProcessedNodesEdgesAndConfig.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/ProcessedNodesEdgesAndConfig.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph; +package io.github.agentic.ai.graph; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; -import io.github.agentic.spring.ai.graph.internal.edge.EdgeValue; +import io.github.agentic.ai.graph.exception.GraphStateException; +import io.github.agentic.ai.graph.internal.edge.EdgeValue; import java.util.LinkedHashMap; import java.util.Map; @@ -25,8 +25,8 @@ import java.util.function.Function; import java.util.stream.Collectors; -import static io.github.agentic.spring.ai.graph.StateGraph.END; -import static io.github.agentic.spring.ai.graph.StateGraph.START; +import static io.github.agentic.ai.graph.StateGraph.END; +import static io.github.agentic.ai.graph.StateGraph.START; import static java.lang.String.format; /** diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/RunnableConfig.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/RunnableConfig.java similarity index 98% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/RunnableConfig.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/RunnableConfig.java index d9209fded..4bdaa6c2b 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/RunnableConfig.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/RunnableConfig.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph; +package io.github.agentic.ai.graph; -import io.github.agentic.spring.ai.graph.action.InterruptionMetadata; -import io.github.agentic.spring.ai.graph.internal.node.ParallelNode; -import io.github.agentic.spring.ai.graph.store.Store; +import io.github.agentic.ai.graph.action.InterruptionMetadata; +import io.github.agentic.ai.graph.internal.node.ParallelNode; +import io.github.agentic.ai.graph.store.Store; import java.util.HashMap; import java.util.Map; @@ -27,7 +27,7 @@ import java.util.concurrent.ConcurrentMap; import java.util.concurrent.Executor; -import static io.github.agentic.spring.ai.graph.checkpoint.BaseCheckpointSaver.CHECKPOINTS_NUM_RETAINED; +import static io.github.agentic.ai.graph.checkpoint.BaseCheckpointSaver.CHECKPOINTS_NUM_RETAINED; import static java.lang.String.format; import static java.util.Objects.requireNonNull; import static java.util.Optional.ofNullable; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/StateGraph.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/StateGraph.java similarity index 93% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/StateGraph.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/StateGraph.java index ee92a144c..b3e9bb670 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/StateGraph.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/StateGraph.java @@ -13,29 +13,29 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph; - -import io.github.agentic.spring.ai.graph.action.AsyncCommandAction; -import io.github.agentic.spring.ai.graph.action.AsyncEdgeAction; -import io.github.agentic.spring.ai.graph.action.AsyncEdgeActionWithConfig; -import io.github.agentic.spring.ai.graph.action.AsyncMultiCommandAction; -import io.github.agentic.spring.ai.graph.action.AsyncNodeAction; -import io.github.agentic.spring.ai.graph.action.AsyncNodeActionWithConfig; -import io.github.agentic.spring.ai.graph.checkpoint.config.SaverConfig; -import io.github.agentic.spring.ai.graph.checkpoint.savers.MemorySaver; -import io.github.agentic.spring.ai.graph.exception.Errors; -import io.github.agentic.spring.ai.graph.exception.GraphStateException; -import io.github.agentic.spring.ai.graph.internal.edge.Edge; -import io.github.agentic.spring.ai.graph.internal.edge.EdgeCondition; -import io.github.agentic.spring.ai.graph.internal.edge.EdgeValue; -import io.github.agentic.spring.ai.graph.internal.node.Node; -import io.github.agentic.spring.ai.graph.internal.node.SubCompiledGraphNode; -import io.github.agentic.spring.ai.graph.internal.node.SubStateGraphNode; -import io.github.agentic.spring.ai.graph.serializer.StateSerializer; -import io.github.agentic.spring.ai.graph.serializer.plain_text.PlainTextStateSerializer; -import io.github.agentic.spring.ai.graph.serializer.plain_text.jackson.SpringAIJacksonStateSerializer; -import io.github.agentic.spring.ai.graph.serializer.std.SpringAIStateSerializer; -import io.github.agentic.spring.ai.graph.state.AgentStateFactory; +package io.github.agentic.ai.graph; + +import io.github.agentic.ai.graph.action.AsyncCommandAction; +import io.github.agentic.ai.graph.action.AsyncEdgeAction; +import io.github.agentic.ai.graph.action.AsyncEdgeActionWithConfig; +import io.github.agentic.ai.graph.action.AsyncMultiCommandAction; +import io.github.agentic.ai.graph.action.AsyncNodeAction; +import io.github.agentic.ai.graph.action.AsyncNodeActionWithConfig; +import io.github.agentic.ai.graph.checkpoint.config.SaverConfig; +import io.github.agentic.ai.graph.checkpoint.savers.MemorySaver; +import io.github.agentic.ai.graph.exception.Errors; +import io.github.agentic.ai.graph.exception.GraphStateException; +import io.github.agentic.ai.graph.internal.edge.Edge; +import io.github.agentic.ai.graph.internal.edge.EdgeCondition; +import io.github.agentic.ai.graph.internal.edge.EdgeValue; +import io.github.agentic.ai.graph.internal.node.Node; +import io.github.agentic.ai.graph.internal.node.SubCompiledGraphNode; +import io.github.agentic.ai.graph.internal.node.SubStateGraphNode; +import io.github.agentic.ai.graph.serializer.StateSerializer; +import io.github.agentic.ai.graph.serializer.plain_text.PlainTextStateSerializer; +import io.github.agentic.ai.graph.serializer.plain_text.jackson.SpringAIJacksonStateSerializer; +import io.github.agentic.ai.graph.serializer.std.SpringAIStateSerializer; +import io.github.agentic.ai.graph.state.AgentStateFactory; import com.fasterxml.jackson.databind.ObjectMapper; import java.util.ArrayList; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/SubGraphNode.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/SubGraphNode.java similarity index 97% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/SubGraphNode.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/SubGraphNode.java index 8f56903ec..31448d4d0 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/SubGraphNode.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/SubGraphNode.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph; +package io.github.agentic.ai.graph; import java.util.Map; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/AsyncCommandAction.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/AsyncCommandAction.java similarity index 90% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/AsyncCommandAction.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/AsyncCommandAction.java index 0023268a0..be086509f 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/AsyncCommandAction.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/AsyncCommandAction.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.action; +package io.github.agentic.ai.graph.action; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; import io.opentelemetry.context.Context; import java.util.concurrent.CompletableFuture; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/AsyncEdgeAction.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/AsyncEdgeAction.java similarity index 94% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/AsyncEdgeAction.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/AsyncEdgeAction.java index d53fea621..2eb0fcfed 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/AsyncEdgeAction.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/AsyncEdgeAction.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.action; +package io.github.agentic.ai.graph.action; -import io.github.agentic.spring.ai.graph.OverAllState; +import io.github.agentic.ai.graph.OverAllState; import io.opentelemetry.context.Context; import java.util.concurrent.CompletableFuture; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/AsyncEdgeActionWithConfig.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/AsyncEdgeActionWithConfig.java similarity index 92% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/AsyncEdgeActionWithConfig.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/AsyncEdgeActionWithConfig.java index ae6d8196e..c673f8ff6 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/AsyncEdgeActionWithConfig.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/AsyncEdgeActionWithConfig.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.action; +package io.github.agentic.ai.graph.action; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; import io.opentelemetry.context.Context; import java.util.concurrent.CompletableFuture; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/AsyncMultiCommandAction.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/AsyncMultiCommandAction.java similarity index 94% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/AsyncMultiCommandAction.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/AsyncMultiCommandAction.java index a1829b619..0fa50274a 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/AsyncMultiCommandAction.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/AsyncMultiCommandAction.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.action; +package io.github.agentic.ai.graph.action; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; import java.util.List; import java.util.concurrent.CompletableFuture; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/AsyncNodeAction.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/AsyncNodeAction.java similarity index 94% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/AsyncNodeAction.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/AsyncNodeAction.java index 006e10398..1d45d291a 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/AsyncNodeAction.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/AsyncNodeAction.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.action; +package io.github.agentic.ai.graph.action; -import io.github.agentic.spring.ai.graph.OverAllState; +import io.github.agentic.ai.graph.OverAllState; import io.opentelemetry.context.Context; import java.util.Map; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/AsyncNodeActionWithConfig.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/AsyncNodeActionWithConfig.java similarity index 94% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/AsyncNodeActionWithConfig.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/AsyncNodeActionWithConfig.java index fe18918b3..cf8031387 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/AsyncNodeActionWithConfig.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/AsyncNodeActionWithConfig.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.action; +package io.github.agentic.ai.graph.action; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; import io.opentelemetry.context.Context; import java.util.Map; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/Command.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/Command.java similarity index 94% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/Command.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/Command.java index 74531b7cf..32cd2f794 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/Command.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/Command.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.action; +package io.github.agentic.ai.graph.action; -import io.github.agentic.spring.ai.graph.OverAllState; +import io.github.agentic.ai.graph.OverAllState; import java.util.Map; import java.util.Objects; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/CommandAction.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/CommandAction.java similarity index 82% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/CommandAction.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/CommandAction.java index b6e0c6a15..d9b6e0e51 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/CommandAction.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/CommandAction.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.action; +package io.github.agentic.ai.graph.action; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; @FunctionalInterface public interface CommandAction { diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/EdgeAction.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/EdgeAction.java similarity index 90% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/EdgeAction.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/EdgeAction.java index 5aa9fa4b8..d2654ddc5 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/EdgeAction.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/EdgeAction.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.action; +package io.github.agentic.ai.graph.action; -import io.github.agentic.spring.ai.graph.OverAllState; +import io.github.agentic.ai.graph.OverAllState; /** * Represents an edge action that operates on an agent state and returns a result. diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/EdgeActionWithConfig.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/EdgeActionWithConfig.java similarity index 86% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/EdgeActionWithConfig.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/EdgeActionWithConfig.java index 5ed64ca16..b838f9139 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/EdgeActionWithConfig.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/EdgeActionWithConfig.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.action; +package io.github.agentic.ai.graph.action; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; @FunctionalInterface public interface EdgeActionWithConfig { diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/InterruptableAction.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/InterruptableAction.java similarity index 95% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/InterruptableAction.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/InterruptableAction.java index 2d6f5abc3..eaff44963 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/InterruptableAction.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/InterruptableAction.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.action; +package io.github.agentic.ai.graph.action; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; import java.util.Map; import java.util.Optional; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/InterruptableActionWithConfig.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/InterruptableActionWithConfig.java similarity index 88% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/InterruptableActionWithConfig.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/InterruptableActionWithConfig.java index 873c510f4..efbe76a8c 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/InterruptableActionWithConfig.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/InterruptableActionWithConfig.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.action; +package io.github.agentic.ai.graph.action; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; import java.util.Optional; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/InterruptionMetadata.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/InterruptionMetadata.java similarity index 96% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/InterruptionMetadata.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/InterruptionMetadata.java index c08bd498f..5aa9d1121 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/InterruptionMetadata.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/InterruptionMetadata.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.action; +package io.github.agentic.ai.graph.action; -import io.github.agentic.spring.ai.graph.HasMetadata; -import io.github.agentic.spring.ai.graph.NodeOutput; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.utils.CollectionsUtils; +import io.github.agentic.ai.graph.HasMetadata; +import io.github.agentic.ai.graph.NodeOutput; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.utils.CollectionsUtils; import org.springframework.ai.chat.messages.AssistantMessage; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/MultiCommand.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/MultiCommand.java similarity index 97% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/MultiCommand.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/MultiCommand.java index 7f1f0cc0f..181567a4e 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/MultiCommand.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/MultiCommand.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.action; +package io.github.agentic.ai.graph.action; import java.util.List; import java.util.Map; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/MultiCommandAction.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/MultiCommandAction.java similarity index 84% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/MultiCommandAction.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/MultiCommandAction.java index 473e3c493..774f31a74 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/MultiCommandAction.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/MultiCommandAction.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.action; +package io.github.agentic.ai.graph.action; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; /** * Synchronous version of MultiCommandAction. diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/NodeAction.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/NodeAction.java similarity index 87% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/NodeAction.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/NodeAction.java index 83e26b999..4171ae218 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/NodeAction.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/NodeAction.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.action; +package io.github.agentic.ai.graph.action; -import io.github.agentic.spring.ai.graph.OverAllState; +import io.github.agentic.ai.graph.OverAllState; import java.util.Map; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/NodeActionWithConfig.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/NodeActionWithConfig.java similarity index 83% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/NodeActionWithConfig.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/NodeActionWithConfig.java index 819ae51df..0c30e71ab 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/action/NodeActionWithConfig.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/NodeActionWithConfig.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.action; +package io.github.agentic.ai.graph.action; -import io.github.agentic.spring.ai.graph.OverAllState; -import io.github.agentic.spring.ai.graph.RunnableConfig; +import io.github.agentic.ai.graph.OverAllState; +import io.github.agentic.ai.graph.RunnableConfig; import java.util.Map; diff --git a/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/package-info.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/package-info.java new file mode 100644 index 000000000..57b929425 --- /dev/null +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/action/package-info.java @@ -0,0 +1,66 @@ +/* + * Copyright 2024-2026 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * Defines the core interfaces and classes for actions that constitute the building blocks + * of a graph. Actions in this context represent the executable logic associated with + * graph nodes and the conditional logic that determines transitions along graph edges. + * They operate on an {@link io.github.agentic.ai.graph.OverAllState} and can optionally + * interact with a {@link io.github.agentic.ai.graph.RunnableConfig}. + * + *

    + * This package provides a clear separation between synchronous and asynchronous + * operations, allowing for flexible graph construction that can accommodate various + * execution models. + *

    + * + *

    Key Components:

    + *
      + *
    • {@link io.github.agentic.ai.graph.action.NodeAction}: Represents a synchronous + * operation performed at a node. It takes the current agent state and returns a + * {@link java.util.Map} representing updates to the state.
    • + *
    • {@link io.github.agentic.ai.graph.action.NodeActionWithConfig}: Similar to + * {@code NodeAction}, but also accepts a + * {@link io.github.agentic.ai.graph.RunnableConfig} parameter, allowing for more + * configurable node behavior at runtime.
    • + *
    • {@link io.github.agentic.ai.graph.action.EdgeAction}: Defines synchronous + * conditional logic for an edge. It evaluates the current agent state and returns a + * {@link java.lang.String} indicating the name of the next node to transition to, or a + * special value to end the graph.
    • + *
    • {@link io.github.agentic.ai.graph.action.CommandAction}: Represents a synchronous + * action that evaluates the agent state and a + * {@link io.github.agentic.ai.graph.RunnableConfig} to produce a + * {@link io.github.agentic.ai.graph.action.Command}. This command encapsulates both + * potential state updates and the next node to transition to, offering a structured way + * to define node outcomes.
    • + *
    • {@link io.github.agentic.ai.graph.action.AsyncNodeAction}: An asynchronous + * counterpart to {@code NodeAction}. It allows for non-blocking operations at nodes, + * returning a {@link java.util.concurrent.CompletableFuture} that will eventually provide + * the {@link java.util.Map} of state updates. This is suitable for I/O-bound tasks or + * long-running computations.
    • + *
    • {@link io.github.agentic.ai.graph.action.AsyncEdgeAction}: The asynchronous version + * of {@code EdgeAction}. It provides a non-blocking way to determine the next path in the + * graph, returning a {@link java.util.concurrent.CompletableFuture} with the name of the + * next node or an indication to end.
    • + *
    + * + *

    + * Implementations of these interfaces are fundamental to defining the behavior and flow + * of control within a stateful agent graph constructed using Graph. + *

    + * + */ +package io.github.agentic.ai.graph.action; diff --git a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/advisors/SkillPromptAugmentAdvisor.java b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/advisors/SkillPromptAugmentAdvisor.java similarity index 94% rename from agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/advisors/SkillPromptAugmentAdvisor.java rename to argi-graph-core/src/main/java/io/github/agentic/ai/graph/advisors/SkillPromptAugmentAdvisor.java index b83b4e351..e8790602a 100644 --- a/agentic-ai-graph-core/src/main/java/io/github/agentic/spring/ai/graph/advisors/SkillPromptAugmentAdvisor.java +++ b/argi-graph-core/src/main/java/io/github/agentic/ai/graph/advisors/SkillPromptAugmentAdvisor.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.github.agentic.spring.ai.graph.advisors; +package io.github.agentic.ai.graph.advisors; -import io.github.agentic.spring.ai.graph.skills.SkillMetadata; -import io.github.agentic.spring.ai.graph.skills.registry.SkillRegistry; -import io.github.agentic.spring.ai.graph.skills.registry.filesystem.FileSystemSkillRegistry; +import io.github.agentic.ai.graph.skills.SkillMetadata; +import io.github.agentic.ai.graph.skills.registry.SkillRegistry; +import io.github.agentic.ai.graph.skills.registry.filesystem.FileSystemSkillRegistry; import org.springframework.ai.chat.client.ChatClientRequest; import org.springframework.ai.chat.client.ChatClientResponse; @@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory; import reactor.core.scheduler.Scheduler; -import static io.github.agentic.spring.ai.graph.skills.SkillPromptConstants.buildSkillsPrompt; +import static io.github.agentic.ai.graph.skills.SkillPromptConstants.buildSkillsPrompt; /** @@ -234,7 +234,7 @@ public List listSkills() { * *

    All configuration parameters are optional and have sensible defaults: *

    \` around edge labels. - * - * TODO: We should probably remove this in a future release. - */ - p { - margin: 0; - padding: 0; - display: inline; - } - rect { - opacity: 0.5; - background-color: ${e.edgeLabelBackground}; - fill: ${e.edgeLabelBackground}; - } - text-align: center; - } - - /* For html labels only */ - .labelBkg { - background-color: ${e.edgeLabelBackground}; - } - - .node .cluster { - // fill: ${et(e.mainBkg,.5)}; - fill: ${et(e.clusterBkg,.5)}; - stroke: ${et(e.clusterBorder,.2)}; - box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; - stroke-width: 1px; - } - - .cluster text { - fill: ${e.titleColor}; - } - - .cluster span { - color: ${e.titleColor}; - } - /* .cluster div { - color: ${e.titleColor}; - } */ - - div.mermaidTooltip { - position: absolute; - text-align: center; - max-width: 200px; - padding: 2px; - font-family: ${e.fontFamily}; - font-size: 12px; - background: ${e.tertiaryColor}; - border: 1px solid ${e.border2}; - border-radius: 2px; - pointer-events: none; - z-index: 100; - } - - .flowchartTitleText { - text-anchor: middle; - font-size: 18px; - fill: ${e.textColor}; - } - ${(0,i.o)()} -`,"getStyles");function ei(e,t){if(0===e||!Number.isInteger(e))throw Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw Error("Position must be a non-negative integer."+t);return e<0?{px:t,py:0}:1===e?{px:0,py:t}:{px:t%e,py:Math.floor(t/e)}}(0,c.K)(ei,"calculateBlockPosition");var er=(0,c.K)(e=>{let t=0,s=0;for(let i of e.children){let{width:e,height:r,x:n,y:a}=i.size??{width:0,height:0,x:0,y:0};if(o.R.debug("getMaxChildSize abc95 child:",i.id,"width:",e,"height:",r,"x:",n,"y:",a,i.type),"space"===i.type)continue;let l=e/(i.widthInColumns??1);l>t&&(t=l),r>s&&(s=r)}return{width:t,height:s}},"getMaxChildSize");function en(e,t,s=0,i=0,r=8){o.R.debug("setBlockSizes abc95 (start)",e.id,e?.size?.x,"block width =",e?.size,"siblingWidth",s),e?.size?.width||(e.size={width:s,height:i,x:0,y:0});let n=0,a=0;if(e.children?.length>0){for(let s of e.children)en(s,t,0,0,r);let l=er(e);for(let t of(n=l.width,a=l.height,o.R.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",n,a),e.children))t.size&&(o.R.debug(`abc95 Setting size of children of ${e.id} id=${t.id} ${n} ${a} ${JSON.stringify(t.size)}`),t.size.width=n*(t.widthInColumns??1)+r*((t.widthInColumns??1)-1),t.size.height=a,t.size.x=0,t.size.y=0,o.R.debug(`abc95 updating size of ${e.id} children child:${t.id} maxWidth:${n} maxHeight:${a}`));for(let s of e.children)en(s,t,n,a,r);let c=e.columns??-1,h=0;for(let t of e.children)h+=t.widthInColumns??1;let u=e.children.length;c>0&&c0?Math.min(e.children.length,c):e.children.length;if(t>0){let s=(d-t*r-r)/t;for(let t of(o.R.debug("abc95 (growing to fit) width",e.id,d,e.size?.width,s),e.children))t.size&&(t.size.width=s)}}e.size={width:d,height:y,x:0,y:0}}o.R.debug("setBlockSizes abc94 (done)",e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}function ea(e,t,s=8){o.R.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let i=e.columns??-1;if(o.R.debug("layoutBlocks columns abc95",e.id,"=>",i,e),e.children&&e.children.length>0){let r=e?.children[0]?.size?.width??0,n=e.children.length*r+(e.children.length-1)*s;o.R.debug("widthOfChildren 88",n,"posX");let a=new Map;{let t=0;for(let s of e.children){if(!s.size)continue;let{py:e}=ei(i,t),r=a.get(e)??0;s.size.height>r&&a.set(e,s.size.height);let n=s?.widthInColumns??1;i>0&&(n=Math.min(n,i-t%i)),t+=n}}let l=new Map;{let e=0;for(let t of[...a.keys()].sort((e,t)=>e-t))l.set(t,e),e+=(a.get(t)??0)+s}let c=0;o.R.debug("abc91 block?.size?.x",e.id,e?.size?.x);let h=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-s,u=0;for(let r of e.children){if(!r.size)continue;let{width:n,height:g}=r.size,{px:d,py:y}=ei(i,c);if(y!=u&&(u=y,h=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-s,o.R.debug("New row in layout for block",e.id," and child ",r.id,u)),o.R.debug(`abc89 layout blocks (child) id: ${r.id} Pos: ${c} (px, py) ${d},${y} (${e?.size?.x},${e?.size?.y}) parent: ${e.id} width: ${n}${s}`),e.size){let t=n/2;r.size.x=h+s+t,o.R.debug(`abc91 layout blocks (calc) px, pyid:${r.id} startingPos=X${h} new startingPosX${r.size.x} ${t} padding=${s} width=${n} halfWidth=${t} => x:${r.size.x} y:${r.size.y} ${r.widthInColumns} (width * (child?.w || 1)) / 2 ${n*(r?.widthInColumns??1)/2}`),h=r.size.x+t;let i=l.get(y)??0,c=a.get(y)??g;r.size.y=e.size.y-e.size.height/2+i+c/2+s,o.R.debug(`abc88 layout blocks (calc) px, pyid:${r.id}startingPosX${h}${s}${t}=>x:${r.size.x}y:${r.size.y}${r.widthInColumns}(width * (child?.w || 1)) / 2${n*(r?.widthInColumns??1)/2}`)}r.children&&ea(r,t,s);let p=r?.widthInColumns??1;i>0&&(p=Math.min(p,i-c%i)),c+=p,o.R.debug("abc88 columnsPos",r,c)}}o.R.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}function el(e,{minX:t,minY:s,maxX:i,maxY:r}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&"root"!==e.id){let{x:n,y:a,width:l,height:o}=e.size;n-l/2i&&(i=n+l/2),a+o/2>r&&(r=a+o/2)}if(e.children)for(let n of e.children)({minX:t,minY:s,maxX:i,maxY:r}=el(n,{minX:t,minY:s,maxX:i,maxY:r}));return{minX:t,minY:s,maxX:i,maxY:r}}function eo(e){let t=e.getBlock("root");if(!t)return;let s=(0,l.D7)()?.block?.padding??8;en(t,e,0,0,s),ea(t,e,s),o.R.debug("getBlocks",JSON.stringify(t,null,2));let{minX:i,minY:r,maxX:n,maxY:a}=el(t);return{x:i,y:r,width:n-i,height:a-r}}function ec(e,t,s=!1){let i,r="default";(e?.classes?.length||0)>0&&(r=(e?.classes??[]).join(" ")),r+=" flowchart-label";let n=(e?.classes??[]).flatMap(e=>t.getClasses().get(e)?.styles??[]),o=0,c="rect";switch(e.type){case"round":o=5,c="rect";break;case"composite":o=0,c="composite",i=0;break;case"square":case"group":default:c="rect";break;case"diamond":c="question";break;case"hexagon":c="hexagon";break;case"block_arrow":c="block_arrow";break;case"odd":case"rect_left_inv_arrow":c="rect_left_inv_arrow";break;case"lean_right":c="lean_right";break;case"lean_left":c="lean_left";break;case"trapezoid":c="trapezoid";break;case"inv_trapezoid":c="inv_trapezoid";break;case"circle":c="circle";break;case"ellipse":c="ellipse";break;case"stadium":c="stadium";break;case"subroutine":c="subroutine";break;case"cylinder":c="cylinder";break;case"doublecircle":c="doublecircle"}let h=(0,a.sM)(e?.styles??[]),u=e.label,g=e.size??{width:0,height:0,x:0,y:0},d=t.getDiagramId();return{labelStyle:h.labelStyle,shape:c,label:u,labelText:u,rx:o,ry:o,class:r,cssClasses:r,cssStyles:e?.styles??[],cssCompiledStyles:n,style:h.style,id:e.id,domId:d?`${d}-${e.id}`:e.id,isGroup:!1,directions:e.directions,width:g.width||void 0,height:g.height||void 0,wrappingWidth:g.width||1/0,x:g.x,y:g.y,positioned:s,intersect:void 0,padding:i??(0,l.zj)()?.block?.padding??0,widthInColumns:e.widthInColumns??1}}async function eh(e,t,s){let i=ec(t,s,!1);if("group"===t.type)return;let r=(0,l.zj)(),a=await (0,n.on)(e,i,{config:r}),o=a.node()?.getBBox()??{width:0,height:0},c=s.getBlock(i.id);c.size={width:o.width,height:o.height,x:0,y:0,node:a},s.setBlock(c),a.remove()}async function eu(e,t,s){let i=ec(t,s,!0);if("space"!==s.getBlock(i.id).type){let s=(0,l.zj)();await (0,n.on)(e,i,{config:s}),t.intersect=i?.intersect,(0,n.U_)(i)}}async function eg(e,t,s,i){for(let r of t)await i(e,r,s),r.children&&await eg(e,r.children,s,i)}async function ed(e,t,s){await eg(e,t,s,eh)}async function ey(e,t,s){await eg(e,t,s,eu)}async function ep(e,t,s,i,n){let a=new S.T({multigraph:!0,compound:!0});for(let e of(a.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8}),s))e.size&&a.setNode(e.id,{width:e.size.width,height:e.size.height,intersect:e.intersect});for(let s of t)if(s.start&&s.end){let t=i.getBlock(s.start),l=i.getBlock(s.end);if(t?.size&&l?.size){let i=t.size,o=l.size,c=[{x:i.x,y:i.y},{x:i.x+(o.x-i.x)/2,y:i.y+(o.y-i.y)/2},{x:o.x,y:o.y}],h=n?`${n}-${s.id}`:s.id,u="thick"===s.thickness?"edge-thickness-thick":"edge-thickness-normal",g="dotted"===s.pattern?"edge-pattern-dotted":"edge-pattern-solid",d=`${u} ${g} flowchart-link LS-a1 LE-b1`;(0,r.Jo)(e,{...s,id:h,arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:c,classes:d},{},"block",a.node(s.start),a.node(s.end),n),s.label&&(await (0,r.jP)(e,{...s,label:s.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:c,classes:d}),(0,r.T_)({...s,x:c[1].x,y:c[1].y},{originalPath:c}))}}}(0,c.K)(en,"setBlockSizes"),(0,c.K)(ea,"layoutBlocks"),(0,c.K)(el,"findBounds"),(0,c.K)(eo,"layout"),(0,c.K)(ec,"getNodeFromBlock"),(0,c.K)(eh,"calculateBlockSize"),(0,c.K)(eu,"insertBlockPositioned"),(0,c.K)(eg,"performOperations"),(0,c.K)(ed,"calculateBlockSizes"),(0,c.K)(ey,"insertBlocks"),(0,c.K)(ep,"insertEdges");var eb=(0,c.K)(function(e,t){return t.db.getClasses()},"getClasses"),ef={parser:x,db:ee,renderer:{draw:(0,c.K)(async function(e,t,s,i){let n,{securityLevel:a,block:c}=(0,l.zj)(),h=i.db;h.setDiagramId(t),"sandbox"===a&&(n=(0,f.Ltv)("#i"+t));let u="sandbox"===a?(0,f.Ltv)(n.nodes()[0].contentDocument.body):(0,f.Ltv)("body"),g="sandbox"===a?u.select(`[id="${t}"]`):(0,f.Ltv)(`[id="${t}"]`);(0,r.g0)(g,["point","circle","cross"],i.type,t);let d=h.getBlocks(),y=h.getBlocksFlat(),p=h.getEdges(),b=g.insert("g").attr("class","block");await ed(b,d,h);let S=eo(h);await ey(b,d,h),await ep(b,p,y,h,t);let x=b.node()?.getBBox(),L=x&&Number.isFinite(x.width)&&Number.isFinite(x.height)?x:S;if(L){let e=Math.max(1,Math.round(.125*(L.width/L.height))),t=L.height+e+10,s=L.width+10,{useMaxWidth:i}=c;(0,l.a$)(g,t,s,!!i),o.R.debug("Here Bounds",S,L),g.attr("viewBox",`${L.x-5} ${L.y-5} ${L.width+10} ${L.height+10}`)}},"draw"),getClasses:eb},styles:es}},82237:(e,t,s)=>{s.d(t,{A:()=>n});var i=s(25866),r=s(70897);let n=(e,t)=>i.A.lang.round(r.A.parse(e)[t])}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/7084.216e296574ecd7c2.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/7084.216e296574ecd7c2.js deleted file mode 100644 index c5baa499c..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/7084.216e296574ecd7c2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7084],{7084:(t,e,i)=>{i.d(e,{diagram:()=>I});var a=i(69301),n=i(98999),s=i(91158),r=i(70668),l=function(){var t=(0,s.K)(function(t,e,i,a){for(i=i||{},a=t.length;a--;i[t[a]]=e);return i},"o"),e=[1,3],i=[1,4],a=[1,5],n=[1,6],r=[1,7],l=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],o=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],h=[55,56,57],c=[2,36],d=[1,37],u=[1,36],x=[1,38],g=[1,35],f=[1,43],p=[1,41],y=[1,45],T=[1,14],m=[1,23],_=[1,18],q=[1,19],A=[1,20],b=[1,21],k=[1,22],S=[1,24],F=[1,25],P=[1,26],C=[1,27],v=[1,28],L=[1,29],I=[1,32],E=[1,33],D=[1,34],z=[1,39],K=[1,40],U=[1,42],w=[1,44],N=[1,63],R=[1,62],B=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],$=[1,66],W=[1,67],O=[1,68],Q=[1,69],X=[1,70],M=[1,71],Y=[1,72],H=[1,73],j=[1,74],G=[1,75],Z=[1,76],V=[1,77],J=[4,5,6,7,8,9,10,11,12,13,14,15,18],tt=[1,91],te=[1,92],ti=[1,93],ta=[1,100],tn=[1,94],ts=[1,97],tr=[1,95],tl=[1,96],to=[1,98],th=[1,99],tc=[1,103],td=[10,55,56,57],tu=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],tx={trace:(0,s.K)(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:(0,s.K)(function(t,e,i,a,n,s,r){var l=s.length-1;switch(n){case 23:case 68:this.$=s[l];break;case 24:case 69:this.$=s[l-1]+""+s[l];break;case 26:this.$=s[l-1]+s[l];break;case 27:this.$=[s[l].trim()];break;case 28:s[l-2].push(s[l].trim()),this.$=s[l-2];break;case 29:this.$=s[l-4],a.addClass(s[l-2],s[l]);break;case 37:this.$=[];break;case 42:this.$=s[l].trim(),a.setDiagramTitle(this.$);break;case 43:this.$=s[l].trim(),a.setAccTitle(this.$);break;case 44:case 45:this.$=s[l].trim(),a.setAccDescription(this.$);break;case 46:a.addSection(s[l].substr(8)),this.$=s[l].substr(8);break;case 47:a.addPoint(s[l-3],"",s[l-1],s[l],[]);break;case 48:a.addPoint(s[l-4],s[l-3],s[l-1],s[l],[]);break;case 49:a.addPoint(s[l-4],"",s[l-2],s[l-1],s[l]);break;case 50:a.addPoint(s[l-5],s[l-4],s[l-2],s[l-1],s[l]);break;case 51:a.setXAxisLeftText(s[l-2]),a.setXAxisRightText(s[l]);break;case 52:s[l-1].text+=" ⟶ ",a.setXAxisLeftText(s[l-1]);break;case 53:a.setXAxisLeftText(s[l]);break;case 54:a.setYAxisBottomText(s[l-2]),a.setYAxisTopText(s[l]);break;case 55:s[l-1].text+=" ⟶ ",a.setYAxisBottomText(s[l-1]);break;case 56:a.setYAxisBottomText(s[l]);break;case 57:a.setQuadrant1Text(s[l]);break;case 58:a.setQuadrant2Text(s[l]);break;case 59:a.setQuadrant3Text(s[l]);break;case 60:a.setQuadrant4Text(s[l]);break;case 64:case 66:this.$={text:s[l],type:"text"};break;case 65:this.$={text:s[l-1].text+""+s[l],type:s[l-1].type};break;case 67:this.$={text:s[l],type:"markdown"}}},"anonymous"),table:[{18:e,26:1,27:2,28:i,55:a,56:n,57:r},{1:[3]},{18:e,26:8,27:2,28:i,55:a,56:n,57:r},{18:e,26:9,27:2,28:i,55:a,56:n,57:r},t(l,[2,33],{29:10}),t(o,[2,61]),t(o,[2,62]),t(o,[2,63]),{1:[2,30]},{1:[2,31]},t(h,c,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:u,10:x,12:g,13:f,14:p,15:y,18:T,25:m,35:_,37:q,39:A,41:b,42:k,48:S,50:F,51:P,52:C,53:v,54:L,60:I,61:E,63:D,64:z,65:K,66:U,67:w}),t(l,[2,34]),{27:46,55:a,56:n,57:r},t(h,[2,37]),t(h,c,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:u,10:x,12:g,13:f,14:p,15:y,18:T,25:m,35:_,37:q,39:A,41:b,42:k,48:S,50:F,51:P,52:C,53:v,54:L,60:I,61:E,63:D,64:z,65:K,66:U,67:w}),t(h,[2,39]),t(h,[2,40]),t(h,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(h,[2,45]),t(h,[2,46]),{18:[1,51]},{4:d,5:u,10:x,12:g,13:f,14:p,15:y,43:52,58:31,60:I,61:E,63:D,64:z,65:K,66:U,67:w},{4:d,5:u,10:x,12:g,13:f,14:p,15:y,43:53,58:31,60:I,61:E,63:D,64:z,65:K,66:U,67:w},{4:d,5:u,10:x,12:g,13:f,14:p,15:y,43:54,58:31,60:I,61:E,63:D,64:z,65:K,66:U,67:w},{4:d,5:u,10:x,12:g,13:f,14:p,15:y,43:55,58:31,60:I,61:E,63:D,64:z,65:K,66:U,67:w},{4:d,5:u,10:x,12:g,13:f,14:p,15:y,43:56,58:31,60:I,61:E,63:D,64:z,65:K,66:U,67:w},{4:d,5:u,10:x,12:g,13:f,14:p,15:y,43:57,58:31,60:I,61:E,63:D,64:z,65:K,66:U,67:w},{4:d,5:u,8:N,10:x,12:g,13:f,14:p,15:y,18:R,44:[1,58],47:[1,59],58:61,59:60,63:D,64:z,65:K,66:U,67:w},t(B,[2,64]),t(B,[2,66]),t(B,[2,67]),t(B,[2,70]),t(B,[2,71]),t(B,[2,72]),t(B,[2,73]),t(B,[2,74]),t(B,[2,75]),t(B,[2,76]),t(B,[2,77]),t(B,[2,78]),t(B,[2,79]),t(B,[2,80]),t(B,[2,81]),t(l,[2,35]),t(h,[2,38]),t(h,[2,42]),t(h,[2,43]),t(h,[2,44]),{3:65,4:$,5:W,6:O,7:Q,8:X,9:M,10:Y,11:H,12:j,13:G,14:Z,15:V,21:64},t(h,[2,53],{59:60,58:61,4:d,5:u,8:N,10:x,12:g,13:f,14:p,15:y,18:R,49:[1,78],63:D,64:z,65:K,66:U,67:w}),t(h,[2,56],{59:60,58:61,4:d,5:u,8:N,10:x,12:g,13:f,14:p,15:y,18:R,49:[1,79],63:D,64:z,65:K,66:U,67:w}),t(h,[2,57],{59:60,58:61,4:d,5:u,8:N,10:x,12:g,13:f,14:p,15:y,18:R,63:D,64:z,65:K,66:U,67:w}),t(h,[2,58],{59:60,58:61,4:d,5:u,8:N,10:x,12:g,13:f,14:p,15:y,18:R,63:D,64:z,65:K,66:U,67:w}),t(h,[2,59],{59:60,58:61,4:d,5:u,8:N,10:x,12:g,13:f,14:p,15:y,18:R,63:D,64:z,65:K,66:U,67:w}),t(h,[2,60],{59:60,58:61,4:d,5:u,8:N,10:x,12:g,13:f,14:p,15:y,18:R,63:D,64:z,65:K,66:U,67:w}),{45:[1,80]},{44:[1,81]},t(B,[2,65]),t(B,[2,82]),t(B,[2,83]),t(B,[2,84]),{3:83,4:$,5:W,6:O,7:Q,8:X,9:M,10:Y,11:H,12:j,13:G,14:Z,15:V,18:[1,82]},t(J,[2,23]),t(J,[2,1]),t(J,[2,2]),t(J,[2,3]),t(J,[2,4]),t(J,[2,5]),t(J,[2,6]),t(J,[2,7]),t(J,[2,8]),t(J,[2,9]),t(J,[2,10]),t(J,[2,11]),t(J,[2,12]),t(h,[2,52],{58:31,43:84,4:d,5:u,10:x,12:g,13:f,14:p,15:y,60:I,61:E,63:D,64:z,65:K,66:U,67:w}),t(h,[2,55],{58:31,43:85,4:d,5:u,10:x,12:g,13:f,14:p,15:y,60:I,61:E,63:D,64:z,65:K,66:U,67:w}),{46:[1,86]},{45:[1,87]},{4:tt,5:te,6:ti,8:ta,11:tn,13:ts,16:90,17:tr,18:tl,19:to,20:th,22:89,23:88},t(J,[2,24]),t(h,[2,51],{59:60,58:61,4:d,5:u,8:N,10:x,12:g,13:f,14:p,15:y,18:R,63:D,64:z,65:K,66:U,67:w}),t(h,[2,54],{59:60,58:61,4:d,5:u,8:N,10:x,12:g,13:f,14:p,15:y,18:R,63:D,64:z,65:K,66:U,67:w}),t(h,[2,47],{22:89,16:90,23:101,4:tt,5:te,6:ti,8:ta,11:tn,13:ts,17:tr,18:tl,19:to,20:th}),{46:[1,102]},t(h,[2,29],{10:tc}),t(td,[2,27],{16:104,4:tt,5:te,6:ti,8:ta,11:tn,13:ts,17:tr,18:tl,19:to,20:th}),t(tu,[2,25]),t(tu,[2,13]),t(tu,[2,14]),t(tu,[2,15]),t(tu,[2,16]),t(tu,[2,17]),t(tu,[2,18]),t(tu,[2,19]),t(tu,[2,20]),t(tu,[2,21]),t(tu,[2,22]),t(h,[2,49],{10:tc}),t(h,[2,48],{22:89,16:90,23:105,4:tt,5:te,6:ti,8:ta,11:tn,13:ts,17:tr,18:tl,19:to,20:th}),{4:tt,5:te,6:ti,8:ta,11:tn,13:ts,16:90,17:tr,18:tl,19:to,20:th,22:106},t(tu,[2,26]),t(h,[2,50],{10:tc}),t(td,[2,28],{16:104,4:tt,5:te,6:ti,8:ta,11:tn,13:ts,17:tr,18:tl,19:to,20:th})],defaultActions:{8:[2,30],9:[2,31]},parseError:(0,s.K)(function(t,e){if(e.recoverable)this.trace(t);else{var i=Error(t);throw i.hash=e,i}},"parseError"),parse:(0,s.K)(function(t){var e=this,i=[0],a=[],n=[null],r=[],l=this.table,o="",h=0,c=0,d=0,u=r.slice.call(arguments,1),x=Object.create(this.lexer),g={};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(g[f]=this.yy[f]);x.setInput(t,g),g.lexer=x,g.parser=this,void 0===x.yylloc&&(x.yylloc={});var p=x.yylloc;r.push(p);var y=x.options&&x.options.ranges;function T(){var t;return"number"!=typeof(t=a.pop()||x.lex()||1)&&(t instanceof Array&&(t=(a=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.parseError?this.parseError=g.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,s.K)(function(t){i.length=i.length-2*t,n.length=n.length-t,r.length=r.length-t},"popStack"),(0,s.K)(T,"lex");for(var m,_,q,A,b,k,S,F,P,C={};;){if(q=i[i.length-1],this.defaultActions[q]?A=this.defaultActions[q]:(null==m&&(m=T()),A=l[q]&&l[q][m]),void 0===A||!A.length||!A[0]){var v="";for(k in P=[],l[q])this.terminals_[k]&&k>2&&P.push("'"+this.terminals_[k]+"'");v=x.showPosition?"Parse error on line "+(h+1)+":\n"+x.showPosition()+"\nExpecting "+P.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(v,{text:x.match,token:this.terminals_[m]||m,line:x.yylineno,loc:p,expected:P})}if(A[0]instanceof Array&&A.length>1)throw Error("Parse Error: multiple actions possible at state: "+q+", token: "+m);switch(A[0]){case 1:i.push(m),n.push(x.yytext),r.push(x.yylloc),i.push(A[1]),m=null,_?(m=_,_=null):(c=x.yyleng,o=x.yytext,h=x.yylineno,p=x.yylloc,d>0&&d--);break;case 2:if(S=this.productions_[A[1]][1],C.$=n[n.length-S],C._$={first_line:r[r.length-(S||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(S||1)].first_column,last_column:r[r.length-1].last_column},y&&(C._$.range=[r[r.length-(S||1)].range[0],r[r.length-1].range[1]]),void 0!==(b=this.performAction.apply(C,[o,c,h,g,A[1],n,r].concat(u))))return b;S&&(i=i.slice(0,-1*S*2),n=n.slice(0,-1*S),r=r.slice(0,-1*S)),i.push(this.productions_[A[1]][0]),n.push(C.$),r.push(C._$),F=l[i[i.length-2]][i[i.length-1]],i.push(F);break;case 3:return!0}}return!0},"parse")};function tg(){this.yy={}}return tx.lexer={EOF:1,parseError:(0,s.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,s.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,s.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,s.K)(function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===a.length?this.yylloc.first_column:0)+a[a.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,s.K)(function(){return this._more=!0,this},"more"),reject:(0,s.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,s.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,s.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,s.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,s.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,s.K)(function(t,e){var i,a,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(a=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var s in n)this[s]=n[s];return!1},"test_match"),next:(0,s.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,a,n=this._currentRules(),s=0;se[0].length)){if(e=i,a=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,n[s])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[a]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,s.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,s.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,s.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,s.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,s.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,s.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,s.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,s.K)(function(t,e,i,a){switch(i){case 0:case 1:case 3:break;case 2:return 55;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 23:case 25:case 31:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 24:this.begin("string");break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}},(0,s.K)(tg,"Parser"),tg.prototype=tx,tx.Parser=tg,new tg}();l.parser=l;var o=(0,a.P$)(),h=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{(0,s.K)(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:a.UI.quadrantChart?.chartWidth||500,chartWidth:a.UI.quadrantChart?.chartHeight||500,titlePadding:a.UI.quadrantChart?.titlePadding||10,titleFontSize:a.UI.quadrantChart?.titleFontSize||20,quadrantPadding:a.UI.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:a.UI.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:a.UI.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:a.UI.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:a.UI.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:a.UI.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:a.UI.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:a.UI.quadrantChart?.pointTextPadding||5,pointLabelFontSize:a.UI.quadrantChart?.pointLabelFontSize||12,pointRadius:a.UI.quadrantChart?.pointRadius||5,xAxisPosition:a.UI.quadrantChart?.xAxisPosition||"top",yAxisPosition:a.UI.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:a.UI.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:a.UI.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:o.quadrant1Fill,quadrant2Fill:o.quadrant2Fill,quadrant3Fill:o.quadrant3Fill,quadrant4Fill:o.quadrant4Fill,quadrant1TextFill:o.quadrant1TextFill,quadrant2TextFill:o.quadrant2TextFill,quadrant3TextFill:o.quadrant3TextFill,quadrant4TextFill:o.quadrant4TextFill,quadrantPointFill:o.quadrantPointFill,quadrantPointTextFill:o.quadrantPointTextFill,quadrantXAxisTextFill:o.quadrantXAxisTextFill,quadrantYAxisTextFill:o.quadrantYAxisTextFill,quadrantTitleFill:o.quadrantTitleFill,quadrantInternalBorderStrokeFill:o.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:o.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,n.R.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}addClass(t,e){this.classes.set(t,e)}setConfig(t){n.R.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){n.R.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,e,i,a){let n=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,s={top:"top"===t&&e?n:0,bottom:"bottom"===t&&e?n:0},r=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,l={left:"left"===this.config.yAxisPosition&&i?r:0,right:"right"===this.config.yAxisPosition&&i?r:0},o=this.config.titleFontSize+2*this.config.titlePadding,h={top:a?o:0},c=this.config.quadrantPadding+l.left,d=this.config.quadrantPadding+s.top+h.top,u=this.config.chartWidth-2*this.config.quadrantPadding-l.left-l.right,x=this.config.chartHeight-2*this.config.quadrantPadding-s.top-s.bottom-h.top;return{xAxisSpace:s,yAxisSpace:l,titleSpace:h,quadrantSpace:{quadrantLeft:c,quadrantTop:d,quadrantWidth:u,quadrantHalfWidth:u/2,quadrantHeight:x,quadrantHalfHeight:x/2}}}getAxisLabels(t,e,i,a){let{quadrantSpace:n,titleSpace:s}=a,{quadrantHalfHeight:r,quadrantHeight:l,quadrantLeft:o,quadrantHalfWidth:h,quadrantTop:c,quadrantWidth:d}=n,u=!!this.data.xAxisRightText,x=!!this.data.yAxisTopText,g=[];return this.data.xAxisLeftText&&e&&g.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:o+(u?h/2:0),y:"top"===t?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+c+l+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:u?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&e&&g.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:o+h+(u?h/2:0),y:"top"===t?this.config.xAxisLabelPadding+s.top:this.config.xAxisLabelPadding+c+l+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:u?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&i&&g.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+o+d+this.config.quadrantPadding,y:c+l-(x?r/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:x?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&i&&g.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+o+d+this.config.quadrantPadding,y:c+r-(x?r/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:x?"center":"left",horizontalPos:"top",rotation:-90}),g}getQuadrants(t){let{quadrantSpace:e}=t,{quadrantHalfHeight:i,quadrantLeft:a,quadrantHalfWidth:n,quadrantTop:s}=e,r=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a+n,y:s,width:n,height:i,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a,y:s,width:n,height:i,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a,y:s+i,width:n,height:i,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a+n,y:s+i,width:n,height:i,fill:this.themeConfig.quadrant4Fill}];for(let t of r)t.text.x=t.x+t.width/2,0===this.data.points.length?(t.text.y=t.y+t.height/2,t.text.horizontalPos="middle"):(t.text.y=t.y+this.config.quadrantTextTopPadding,t.text.horizontalPos="top");return r}getQuadrantPoints(t){let{quadrantSpace:e}=t,{quadrantHeight:i,quadrantLeft:a,quadrantTop:n,quadrantWidth:s}=e,l=(0,r.m4Y)().domain([0,1]).range([a,s+a]),o=(0,r.m4Y)().domain([0,1]).range([i+n,n]);return this.data.points.map(t=>{let e=this.classes.get(t.className);return e&&(t={...e,...t}),{x:l(t.x),y:o(t.y),fill:t.color??this.themeConfig.quadrantPointFill,radius:t.radius??this.config.pointRadius,text:{text:t.text,fill:this.themeConfig.quadrantPointTextFill,x:l(t.x),y:o(t.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:t.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:t.strokeWidth??"0px"}})}getBorders(t){let e=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:i}=t,{quadrantHalfHeight:a,quadrantHeight:n,quadrantLeft:s,quadrantHalfWidth:r,quadrantTop:l,quadrantWidth:o}=i;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-e,y1:l,x2:s+o+e,y2:l},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s+o,y1:l+e,x2:s+o,y2:l+n-e},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s-e,y1:l+n,x2:s+o+e,y2:l+n},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:s,y1:l+e,x2:s,y2:l+n-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+r,y1:l+e,x2:s+r,y2:l+n-e},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:s+e,y1:l+a,x2:s+o-e,y2:l+a}]}getTitle(t){if(t)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let t=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),e=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),i=this.config.showTitle&&!!this.data.titleText,a=this.data.points.length>0?"bottom":this.config.xAxisPosition,n=this.calculateSpace(a,t,e,i);return{points:this.getQuadrantPoints(n),quadrants:this.getQuadrants(n),axisLabels:this.getAxisLabels(a,t,e,n),borderLines:this.getBorders(n),title:this.getTitle(i)}}},c=class extends Error{static{(0,s.K)(this,"InvalidStyleError")}constructor(t,e,i){super(`value for ${t} ${e} is invalid, please use a valid ${i}`),this.name="InvalidStyleError"}};function d(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}function u(t){return!/^\d+$/.test(t)}function x(t){return!/^\d+px$/.test(t)}function g(t){return(0,a.jZ)(t.trim(),(0,a.D7)())}(0,s.K)(d,"validateHexCode"),(0,s.K)(u,"validateNumber"),(0,s.K)(x,"validateSizeInPixels"),(0,s.K)(g,"textSanitizer");var f=new h;function p(t){f.setData({quadrant1Text:g(t.text)})}function y(t){f.setData({quadrant2Text:g(t.text)})}function T(t){f.setData({quadrant3Text:g(t.text)})}function m(t){f.setData({quadrant4Text:g(t.text)})}function _(t){f.setData({xAxisLeftText:g(t.text)})}function q(t){f.setData({xAxisRightText:g(t.text)})}function A(t){f.setData({yAxisTopText:g(t.text)})}function b(t){f.setData({yAxisBottomText:g(t.text)})}function k(t){let e={};for(let i of t){let[t,a]=i.trim().split(/\s*:\s*/);if("radius"===t){if(u(a))throw new c(t,a,"number");e.radius=parseInt(a)}else if("color"===t){if(d(a))throw new c(t,a,"hex code");e.color=a}else if("stroke-color"===t){if(d(a))throw new c(t,a,"hex code");e.strokeColor=a}else if("stroke-width"===t){if(x(a))throw new c(t,a,"number of pixels (eg. 10px)");e.strokeWidth=a}else throw Error(`style named ${t} is not supported.`)}return e}function S(t,e,i,a,n){let s=k(n);f.addPoints([{x:i,y:a,text:g(t.text),className:e,...s}])}function F(t,e){f.addClass(t,k(e))}function P(t){f.setConfig({chartWidth:t})}function C(t){f.setConfig({chartHeight:t})}function v(){let{themeVariables:t,quadrantChart:e}=(0,a.D7)();return e&&f.setConfig(e),f.setThemeConfig({quadrant1Fill:t.quadrant1Fill,quadrant2Fill:t.quadrant2Fill,quadrant3Fill:t.quadrant3Fill,quadrant4Fill:t.quadrant4Fill,quadrant1TextFill:t.quadrant1TextFill,quadrant2TextFill:t.quadrant2TextFill,quadrant3TextFill:t.quadrant3TextFill,quadrant4TextFill:t.quadrant4TextFill,quadrantPointFill:t.quadrantPointFill,quadrantPointTextFill:t.quadrantPointTextFill,quadrantXAxisTextFill:t.quadrantXAxisTextFill,quadrantYAxisTextFill:t.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:t.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:t.quadrantInternalBorderStrokeFill,quadrantTitleFill:t.quadrantTitleFill}),f.setData({titleText:(0,a.ab)()}),f.build()}(0,s.K)(p,"setQuadrant1Text"),(0,s.K)(y,"setQuadrant2Text"),(0,s.K)(T,"setQuadrant3Text"),(0,s.K)(m,"setQuadrant4Text"),(0,s.K)(_,"setXAxisLeftText"),(0,s.K)(q,"setXAxisRightText"),(0,s.K)(A,"setYAxisTopText"),(0,s.K)(b,"setYAxisBottomText"),(0,s.K)(k,"parseStyles"),(0,s.K)(S,"addPoint"),(0,s.K)(F,"addClass"),(0,s.K)(P,"setWidth"),(0,s.K)(C,"setHeight"),(0,s.K)(v,"getQuadrantData");var L={setWidth:P,setHeight:C,setQuadrant1Text:p,setQuadrant2Text:y,setQuadrant3Text:T,setQuadrant4Text:m,setXAxisLeftText:_,setXAxisRightText:q,setYAxisTopText:A,setYAxisBottomText:b,parseStyles:k,addPoint:S,addClass:F,getQuadrantData:v,clear:(0,s.K)(function(){f.clear(),(0,a.IU)()},"clear"),setAccTitle:a.SV,getAccTitle:a.iN,setDiagramTitle:a.ke,getDiagramTitle:a.ab,getAccDescription:a.m7,setAccDescription:a.EI},I={parser:l,db:L,renderer:{draw:(0,s.K)((t,e,i,l)=>{let o;function h(t){return"top"===t?"hanging":"middle"}function c(t){return"left"===t?"start":"middle"}function d(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}(0,s.K)(h,"getDominantBaseLine"),(0,s.K)(c,"getTextAnchor"),(0,s.K)(d,"getTransformation");let u=(0,a.D7)();n.R.debug("Rendering quadrant chart\n"+t);let x=u.securityLevel;"sandbox"===x&&(o=(0,r.Ltv)("#i"+e));let g=("sandbox"===x?(0,r.Ltv)(o.nodes()[0].contentDocument.body):(0,r.Ltv)("body")).select(`[id="${e}"]`),f=g.append("g").attr("class","main"),p=u.quadrantChart?.chartWidth??500,y=u.quadrantChart?.chartHeight??500;(0,a.a$)(g,y,p,u.quadrantChart?.useMaxWidth??!0),g.attr("viewBox","0 0 "+p+" "+y),l.db.setHeight(y),l.db.setWidth(p);let T=l.db.getQuadrantData(),m=f.append("g").attr("class","quadrants"),_=f.append("g").attr("class","border"),q=f.append("g").attr("class","data-points"),A=f.append("g").attr("class","labels"),b=f.append("g").attr("class","title");T.title&&b.append("text").attr("x",0).attr("y",0).attr("fill",T.title.fill).attr("font-size",T.title.fontSize).attr("dominant-baseline",h(T.title.horizontalPos)).attr("text-anchor",c(T.title.verticalPos)).attr("transform",d(T.title)).text(T.title.text),T.borderLines&&_.selectAll("line").data(T.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth);let k=m.selectAll("g.quadrant").data(T.quadrants).enter().append("g").attr("class","quadrant");k.append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),k.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>h(t.text.horizontalPos)).attr("text-anchor",t=>c(t.text.verticalPos)).attr("transform",t=>d(t.text)).text(t=>t.text.text),A.selectAll("g.label").data(T.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>h(t.horizontalPos)).attr("text-anchor",t=>c(t.verticalPos)).attr("transform",t=>d(t));let S=q.selectAll("g.data-point").data(T.points).enter().append("g").attr("class","data-point");S.append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill).attr("stroke",t=>t.strokeColor).attr("stroke-width",t=>t.strokeWidth),S.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>h(t.text.horizontalPos)).attr("text-anchor",t=>c(t.text.verticalPos)).attr("transform",t=>d(t.text))},"draw")},styles:(0,s.K)(()=>"","styles")}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/7178.285d08d65c3f3c2f.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/7178.285d08d65c3f3c2f.js deleted file mode 100644 index 94cdf930a..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/7178.285d08d65c3f3c2f.js +++ /dev/null @@ -1,93 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7178],{3392:(t,e,i)=>{i.d(e,{o:()=>n});var n=(0,i(91158).K)(()=>` - /* Font Awesome icon styling - consolidated */ - .label-icon { - display: inline-block; - height: 1em; - overflow: visible; - vertical-align: -0.125em; - } - - .node .label-icon path { - fill: currentColor; - stroke: revert; - stroke-width: revert; - } -`,"getIconStyles")},57178:(t,e,i)=>{i.d(e,{diagram:()=>w});var n=i(94191),s=i(3392),r=i(44115),o=i(48734),a=i(13031);i(69981),i(5663),i(82142),i(29278),i(13892);var l=i(69301),c=i(98999),h=i(91158),u=i(54333),g=i(80665),d=i(35177),p=function(){var t=(0,h.K)(function(t,e,i,n){for(i=i||{},n=t.length;n--;i[t[n]]=e);return i},"o"),e=[1,4],i=[1,13],n=[1,12],s=[1,15],r=[1,16],o=[1,20],a=[1,19],l=[6,7,8],c=[1,26],u=[1,24],g=[1,25],d=[6,7,11],p=[1,31],y=[6,7,11,24],f=[1,6,13,16,17,20,23],m=[1,35],b=[1,36],_=[1,6,7,11,13,16,17,20,23],k=[1,38],E={trace:(0,h.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:(0,h.K)(function(t,e,i,n,s,r,o){var a=r.length-1;switch(s){case 6:case 7:return n;case 8:n.getLogger().trace("Stop NL ");break;case 9:n.getLogger().trace("Stop EOF ");break;case 11:n.getLogger().trace("Stop NL2 ");break;case 12:n.getLogger().trace("Stop EOF2 ");break;case 15:n.getLogger().info("Node: ",r[a-1].id),n.addNode(r[a-2].length,r[a-1].id,r[a-1].descr,r[a-1].type,r[a]);break;case 16:n.getLogger().info("Node: ",r[a].id),n.addNode(r[a-1].length,r[a].id,r[a].descr,r[a].type);break;case 17:n.getLogger().trace("Icon: ",r[a]),n.decorateNode({icon:r[a]});break;case 18:case 23:n.decorateNode({class:r[a]});break;case 19:n.getLogger().trace("SPACELIST");break;case 20:n.getLogger().trace("Node: ",r[a-1].id),n.addNode(0,r[a-1].id,r[a-1].descr,r[a-1].type,r[a]);break;case 21:n.getLogger().trace("Node: ",r[a].id),n.addNode(0,r[a].id,r[a].descr,r[a].type);break;case 22:n.decorateNode({icon:r[a]});break;case 27:n.getLogger().trace("node found ..",r[a-2]),this.$={id:r[a-1],descr:r[a-1],type:n.getType(r[a-2],r[a])};break;case 28:this.$={id:r[a],descr:r[a],type:0};break;case 29:n.getLogger().trace("node found ..",r[a-3]),this.$={id:r[a-3],descr:r[a-1],type:n.getType(r[a-2],r[a])};break;case 30:this.$=r[a-1]+r[a];break;case 31:this.$=r[a]}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:i,7:[1,10],9:9,12:11,13:n,14:14,16:s,17:r,18:17,19:18,20:o,23:a},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:i,12:21,13:n,14:14,16:s,17:r,18:17,19:18,20:o,23:a},{6:i,9:22,12:11,13:n,14:14,16:s,17:r,18:17,19:18,20:o,23:a},{6:c,7:u,10:23,11:g},t(d,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:o,23:a}),t(d,[2,19]),t(d,[2,21],{15:30,24:p}),t(d,[2,22]),t(d,[2,23]),t(y,[2,25]),t(y,[2,26]),t(y,[2,28],{20:[1,32]}),{21:[1,33]},{6:c,7:u,10:34,11:g},{1:[2,7],6:i,12:21,13:n,14:14,16:s,17:r,18:17,19:18,20:o,23:a},t(f,[2,14],{7:m,11:b}),t(_,[2,8]),t(_,[2,9]),t(_,[2,10]),t(d,[2,16],{15:37,24:p}),t(d,[2,17]),t(d,[2,18]),t(d,[2,20],{24:k}),t(y,[2,31]),{21:[1,39]},{22:[1,40]},t(f,[2,13],{7:m,11:b}),t(_,[2,11]),t(_,[2,12]),t(d,[2,15],{24:k}),t(y,[2,30]),{22:[1,41]},t(y,[2,27]),t(y,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:(0,h.K)(function(t,e){if(e.recoverable)this.trace(t);else{var i=Error(t);throw i.hash=e,i}},"parseError"),parse:(0,h.K)(function(t){var e=this,i=[0],n=[],s=[null],r=[],o=this.table,a="",l=0,c=0,u=0,g=r.slice.call(arguments,1),d=Object.create(this.lexer),p={};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(p[y]=this.yy[y]);d.setInput(t,p),p.lexer=d,p.parser=this,void 0===d.yylloc&&(d.yylloc={});var f=d.yylloc;r.push(f);var m=d.options&&d.options.ranges;function b(){var t;return"number"!=typeof(t=n.pop()||d.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.parseError?this.parseError=p.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,h.K)(function(t){i.length=i.length-2*t,s.length=s.length-t,r.length=r.length-t},"popStack"),(0,h.K)(b,"lex");for(var _,k,E,S,N,x,D,L,I,v={};;){if(E=i[i.length-1],this.defaultActions[E]?S=this.defaultActions[E]:(null==_&&(_=b()),S=o[E]&&o[E][_]),void 0===S||!S.length||!S[0]){var C="";for(x in I=[],o[E])this.terminals_[x]&&x>2&&I.push("'"+this.terminals_[x]+"'");C=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+I.join(", ")+", got '"+(this.terminals_[_]||_)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==_?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(C,{text:d.match,token:this.terminals_[_]||_,line:d.yylineno,loc:f,expected:I})}if(S[0]instanceof Array&&S.length>1)throw Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(S[0]){case 1:i.push(_),s.push(d.yytext),r.push(d.yylloc),i.push(S[1]),_=null,k?(_=k,k=null):(c=d.yyleng,a=d.yytext,l=d.yylineno,f=d.yylloc,u>0&&u--);break;case 2:if(D=this.productions_[S[1]][1],v.$=s[s.length-D],v._$={first_line:r[r.length-(D||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(D||1)].first_column,last_column:r[r.length-1].last_column},m&&(v._$.range=[r[r.length-(D||1)].range[0],r[r.length-1].range[1]]),void 0!==(N=this.performAction.apply(v,[a,c,l,p,S[1],s,r].concat(g))))return N;D&&(i=i.slice(0,-1*D*2),s=s.slice(0,-1*D),r=r.slice(0,-1*D)),i.push(this.productions_[S[1]][0]),s.push(v.$),r.push(v._$),L=o[i[i.length-2]][i[i.length-1]],i.push(L);break;case 3:return!0}}return!0},"parse")};function S(){this.yy={}}return E.lexer={EOF:1,parseError:(0,h.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,h.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,h.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,h.K)(function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,h.K)(function(){return this._more=!0,this},"more"),reject:(0,h.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,h.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,h.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,h.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,h.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,h.K)(function(t,e){var i,n,s;if(this.options.backtrack_lexer&&(s={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(s.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var r in s)this[r]=s[r];return!1},"test_match"),next:(0,h.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,n,s=this._currentRules(),r=0;re[0].length)){if(e=i,n=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,s[r])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,s[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,h.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,h.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,h.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,h.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,h.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,h.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,h.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,h.K)(function(t,e,i,n){switch(i){case 0:return this.pushState("shapeData"),e.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:return e.yytext=e.yytext.replace(/\n\s*/g,"
    "),24;case 4:return 24;case 5:case 10:case 29:case 32:this.popState();break;case 6:return t.getLogger().trace("Found comment",e.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 11:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return t.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:t.getLogger().trace("end icon"),this.popState();break;case 16:return t.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return t.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:case 21:case 22:case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 30:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return t.getLogger().trace("description:",e.yytext),"NODE_DESCR";case 33:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),t.getLogger().trace("node end ...",e.yytext),"NODE_DEND";case 36:case 39:case 40:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 37:case 38:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 41:case 42:return t.getLogger().trace("Long description:",e.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}},(0,h.K)(S,"Parser"),S.prototype=E,E.Parser=S,new S}();p.parser=p;var y=[],f=[],m=0,b={},_=(0,h.K)(()=>{y=[],f=[],m=0,b={}},"clear"),k=(0,h.K)(t=>{if(0===y.length)return null;let e=y[0].level,i=null;for(let t=y.length-1;t>=0;t--)if(y[t].level!==e||i||(i=y[t]),y[t].levelt.parentId===n.id))){let e={id:s.id,parentId:n.id,label:(0,l.jZ)(s.label??"",i),labelType:"markdown",isGroup:!1,ticket:s?.ticket,priority:s?.priority,assigned:s?.assigned,icon:s?.icon,shape:"kanbanItem",level:s.level,rx:5,ry:5,cssStyles:["text-align: left"]};t.push(e)}}return{nodes:t,edges:[],other:{},config:(0,l.D7)()}},"getData"),N=(0,h.K)((t,e,i,n,s)=>{let o=(0,l.D7)(),a=o.mindmap?.padding??l.UI.mindmap.padding;switch(n){case x.ROUNDED_RECT:case x.RECT:case x.HEXAGON:a*=2}let c={id:(0,l.jZ)(e,o)||"kbn"+m++,level:t,label:(0,l.jZ)(i,o),width:o.mindmap?.maxNodeWidth??l.UI.mindmap.maxNodeWidth,padding:a,isGroup:!1};if(void 0!==s){let t;t=s.includes("\n")?s+"\n":"{\n"+s+"\n}";let e=(0,r.H)(t,{schema:r.r});if(e.shape&&(e.shape!==e.shape.toLowerCase()||e.shape.includes("_")))throw Error(`No such shape: ${e.shape}. Shape names should be lowercase.`);e?.shape&&"kanbanItem"===e.shape&&(c.shape=e?.shape),e?.label&&(c.label=e?.label),e?.icon&&(c.icon=e?.icon.toString()),e?.assigned&&(c.assigned=e?.assigned.toString()),e?.ticket&&(c.ticket=e?.ticket.toString()),e?.priority&&(c.priority=e?.priority)}let h=k(t);h?c.parentId=h.id||"kbn"+m++:f.push(c),y.push(c)},"addNode"),x={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},D=(0,h.K)((t,e)=>{switch(c.R.debug("In get type",t,e),t){case"[":return x.RECT;case"(":return")"===e?x.ROUNDED_RECT:x.CLOUD;case"((":return x.CIRCLE;case")":return x.CLOUD;case"))":return x.BANG;case"{{":return x.HEXAGON;default:return x.DEFAULT}},"getType"),L=(0,h.K)((t,e)=>{b[t]=e},"setElementForId"),I=(0,h.K)(t=>{if(!t)return;let e=(0,l.D7)(),i=y[y.length-1];t.icon&&(i.icon=(0,l.jZ)(t.icon,e)),t.class&&(i.cssClasses=(0,l.jZ)(t.class,e))},"decorateNode"),v=(0,h.K)(t=>{switch(t){case x.DEFAULT:return"no-border";case x.RECT:return"rect";case x.ROUNDED_RECT:return"rounded-rect";case x.CIRCLE:return"circle";case x.CLOUD:return"cloud";case x.BANG:return"bang";case x.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),C=(0,h.K)(()=>c.R,"getLogger"),O=(0,h.K)(t=>b[t],"getElementById"),A=(0,h.K)(async(t,e,i,s)=>{c.R.debug("Rendering kanban diagram\n"+t);let r=s.db.getData(),h=(0,l.D7)();h.htmlLabels=!1;let u=(0,n.D)(e);for(let t of r.nodes)t.domId=`${e}-${t.id}`;let g=u.append("g");g.attr("class","sections");let d=u.append("g");d.attr("class","items");let p=r.nodes.filter(t=>t.isGroup),y=0,f=[],m=25;for(let t of p){let e=h?.kanban?.sectionWidth||200;t.x=e*(y+=1)+(y-1)*10/2,t.width=e,t.y=0,t.height=3*e,t.rx=5,t.ry=5,t.cssClasses=t.cssClasses+" section-"+y;let i=await (0,o.U)(g,t);m=Math.max(m,i?.labelBBox?.height),f.push(i)}let b=0;for(let t of p){let e=f[b];b+=1;let i=h?.kanban?.sectionWidth||200,n=-(3*i)/2+m,s=n;for(let e of r.nodes.filter(e=>e.parentId===t.id)){if(e.isGroup)throw Error("Groups within groups are not allowed in Kanban diagrams");e.x=t.x,e.width=i-15;let n=(await (0,a.on)(d,e,{config:h})).node().getBBox();e.y=s+n.height/2,await (0,a.U_)(e),s=e.y+n.height/2+5}let o=e.cluster.select("rect"),l=Math.max(s-n+30,50)+(m-25);o.attr("height",l)}(0,l.ot)(void 0,u,h.mindmap?.padding??l.UI.kanban.padding,h.mindmap?.useMaxWidth??l.UI.kanban.useMaxWidth)},"draw"),K=(0,h.K)(t=>{let e="";for(let e=0;et.darkMode?(0,d.A)(e,i):(0,g.A)(e,i),"adjuster");for(let n=0;n` - .edge { - stroke-width: 3; - } - ${K(t)} - .section-root rect, .section-root path, .section-root circle, .section-root polygon { - fill: ${t.git0}; - } - .section-root text { - fill: ${t.gitBranchLabel0}; - } - .icon-container { - height:100%; - display: flex; - justify-content: center; - align-items: center; - } - .edge { - fill: none; - } - .cluster-label, .label { - color: ${t.textColor}; - fill: ${t.textColor}; - } - .kanban-label { - dy: 1em; - alignment-baseline: middle; - text-anchor: middle; - dominant-baseline: middle; - text-align: center; - } - ${(0,s.o)()} -`,"getStyles")}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/7356.fdcb416534885079.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/7356.fdcb416534885079.js deleted file mode 100644 index 33d777af6..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/7356.fdcb416534885079.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7356],{87356:(t,e,n)=>{n.d(e,{diagram:()=>te});var i=n(69301);n(98999);var r=n(91158),s=n(70668);function o(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function l(t){return t.target.depth}function a(t,e){return t.sourceLinks.length?t.depth:e-1}function h(t,e){let n=0;if(void 0===e)for(let e of t)(e*=1)&&(n+=e);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&(n+=r)}return n}function c(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n=r)&&(n=r)}return n}function u(t){return function(){return t}}function f(t,e){return d(t.source,e.source)||t.index-e.index}function y(t,e){return d(t.target,e.target)||t.index-e.index}function d(t,e){return t.y0-e.y0}function p(t){return t.value}function g(t){return t.index}function _(t){return t.nodes}function x(t){return t.links}function k(t,e){let n=t.get(e);if(!n)throw Error("missing: "+e);return n}function m({nodes:t}){for(let e of t){let t=e.y0,n=t;for(let n of e.sourceLinks)n.y0=t+n.width/2,t+=n.width;for(let t of e.targetLinks)t.y1=n+t.width/2,n+=t.width}}var b=Math.PI,v=2*b,S=v-1e-6;function E(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function w(){return new E}E.prototype=w.prototype={constructor:E,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,s){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+s)},arcTo:function(t,e,n,i,r){t*=1,e*=1,n*=1,i*=1,r*=1;var s=this._x1,o=this._y1,l=n-t,a=i-e,h=s-t,c=o-e,u=h*h+c*c;if(r<0)throw Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(u>1e-6)if(Math.abs(c*l-a*h)>1e-6&&r){var f=n-s,y=i-o,d=l*l+a*a,p=Math.sqrt(d),g=Math.sqrt(u),_=r*Math.tan((b-Math.acos((d+u-(f*f+y*y))/(2*p*g)))/2),x=_/g,k=_/p;Math.abs(x-1)>1e-6&&(this._+="L"+(t+x*h)+","+(e+x*c)),this._+="A"+r+","+r+",0,0,"+ +(c*f>h*y)+","+(this._x1=t+k*l)+","+(this._y1=e+k*a)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,i,r,s){t*=1,e*=1,n*=1,s=!!s;var o=n*Math.cos(i),l=n*Math.sin(i),a=t+o,h=e+l,c=1^s,u=s?i-r:r-i;if(n<0)throw Error("negative radius: "+n);null===this._x1?this._+="M"+a+","+h:(Math.abs(this._x1-a)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+a+","+h),n&&(u<0&&(u=u%v+v),u>S?this._+="A"+n+","+n+",0,1,"+c+","+(t-o)+","+(e-l)+"A"+n+","+n+",0,1,"+c+","+(this._x1=a)+","+(this._y1=h):u>1e-6&&(this._+="A"+n+","+n+",0,"+ +(u>=b)+","+c+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var K=Array.prototype.slice;function L(t){return function(){return t}}function A(t){return t[0]}function M(t){return t[1]}function I(t){return t.source}function T(t){return t.target}function N(t,e,n,i,r){t.moveTo(e,n),t.bezierCurveTo(e=(e+i)/2,n,e,r,i,r)}function P(t){return[t.source.x1,t.y0]}function C(t){return[t.target.x0,t.y1]}var $=function(){var t=(0,r.K)(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),e=[1,9],n=[1,10],i=[1,5,10,12],s={trace:(0,r.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:(0,r.K)(function(t,e,n,i,r,s,o){var l=s.length-1;switch(r){case 7:let a=i.findOrCreateNode(s[l-4].trim().replaceAll('""','"')),h=i.findOrCreateNode(s[l-2].trim().replaceAll('""','"')),c=parseFloat(s[l].trim());i.addLink(a,h,c);break;case 8:case 9:case 11:this.$=s[l];break;case 10:this.$=s[l-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:n},{1:[2,6],7:11,10:[1,12]},t(n,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(i,[2,8]),t(i,[2,9]),{19:[1,16]},t(i,[2,11]),{1:[2,1]},{1:[2,5]},t(n,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:n},{15:18,16:7,17:8,18:e,20:n},{18:[1,19]},t(n,[2,3]),{12:[1,20]},t(i,[2,10]),{15:21,16:7,17:8,18:e,20:n},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:(0,r.K)(function(t,e){if(e.recoverable)this.trace(t);else{var n=Error(t);throw n.hash=e,n}},"parseError"),parse:(0,r.K)(function(t){var e=this,n=[0],i=[],s=[null],o=[],l=this.table,a="",h=0,c=0,u=0,f=o.slice.call(arguments,1),y=Object.create(this.lexer),d={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d[p]=this.yy[p]);y.setInput(t,d),d.lexer=y,d.parser=this,void 0===y.yylloc&&(y.yylloc={});var g=y.yylloc;o.push(g);var _=y.options&&y.options.ranges;function x(){var t;return"number"!=typeof(t=i.pop()||y.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof d.parseError?this.parseError=d.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,r.K)(function(t){n.length=n.length-2*t,s.length=s.length-t,o.length=o.length-t},"popStack"),(0,r.K)(x,"lex");for(var k,m,b,v,S,E,w,K,L,A={};;){if(b=n[n.length-1],this.defaultActions[b]?v=this.defaultActions[b]:(null==k&&(k=x()),v=l[b]&&l[b][k]),void 0===v||!v.length||!v[0]){var M="";for(E in L=[],l[b])this.terminals_[E]&&E>2&&L.push("'"+this.terminals_[E]+"'");M=y.showPosition?"Parse error on line "+(h+1)+":\n"+y.showPosition()+"\nExpecting "+L.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==k?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(M,{text:y.match,token:this.terminals_[k]||k,line:y.yylineno,loc:g,expected:L})}if(v[0]instanceof Array&&v.length>1)throw Error("Parse Error: multiple actions possible at state: "+b+", token: "+k);switch(v[0]){case 1:n.push(k),s.push(y.yytext),o.push(y.yylloc),n.push(v[1]),k=null,m?(k=m,m=null):(c=y.yyleng,a=y.yytext,h=y.yylineno,g=y.yylloc,u>0&&u--);break;case 2:if(w=this.productions_[v[1]][1],A.$=s[s.length-w],A._$={first_line:o[o.length-(w||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(w||1)].first_column,last_column:o[o.length-1].last_column},_&&(A._$.range=[o[o.length-(w||1)].range[0],o[o.length-1].range[1]]),void 0!==(S=this.performAction.apply(A,[a,c,h,d,v[1],s,o].concat(f))))return S;w&&(n=n.slice(0,-1*w*2),s=s.slice(0,-1*w),o=o.slice(0,-1*w)),n.push(this.productions_[v[1]][0]),s.push(A.$),o.push(A._$),K=l[n[n.length-2]][n[n.length-1]],n.push(K);break;case 3:return!0}}return!0},"parse")};function o(){this.yy={}}return s.lexer={EOF:1,parseError:(0,r.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,r.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,r.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,r.K)(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,r.K)(function(){return this._more=!0,this},"more"),reject:(0,r.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,r.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,r.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,r.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,r.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,r.K)(function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var s in r)this[s]=r[s];return!1},"test_match"),next:(0,r.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,n,i,r=this._currentRules(),s=0;se[0].length)){if(e=n,i=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[s])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,r.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,r.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,r.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,r.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,r.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,r.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,r.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,r.K)(function(t,e,n,i){switch(n){case 0:case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}},(0,r.K)(o,"Parser"),o.prototype=s,s.Parser=o,new o}();$.parser=$;var D=[],O=[],j=new Map,z=(0,r.K)(()=>{D=[],O=[],j=new Map,(0,i.IU)()},"clear"),F=class{constructor(t,e,n=0){this.source=t,this.target=e,this.value=n}static{(0,r.K)(this,"SankeyLink")}},U=(0,r.K)((t,e,n)=>{D.push(new F(t,e,n))},"addLink"),W=class{constructor(t){this.ID=t}static{(0,r.K)(this,"SankeyNode")}},V=(0,r.K)(t=>{t=i.Y2.sanitizeText(t,(0,i.D7)());let e=j.get(t);return void 0===e&&(e=new W(t),j.set(t,e),O.push(e)),e},"findOrCreateNode"),G=(0,r.K)(()=>O,"getNodes"),X=(0,r.K)(()=>D,"getLinks"),Y=(0,r.K)(()=>({nodes:O.map(t=>({id:t.ID})),links:D.map(t=>({source:t.source.ID,target:t.target.ID,value:t.value}))}),"getGraph"),q={nodesMap:j,getConfig:(0,r.K)(()=>(0,i.D7)().sankey,"getConfig"),getNodes:G,getLinks:X,getGraph:Y,addLink:U,findOrCreateNode:V,getAccTitle:i.iN,setAccTitle:i.SV,getAccDescription:i.m7,setAccDescription:i.EI,getDiagramTitle:i.ab,setDiagramTitle:i.ke,clear:z},B=class t{static{(0,r.K)(this,"Uid")}static{this.count=0}static next(e){return new t(e+ ++t.count)}constructor(t){this.id=t,this.href=`#${t}`}toString(){return"url("+this.href+")"}},Q={left:function(t){return t.depth},right:function(t,e){return e-1-t.height},center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?o(t.sourceLinks,l)-1:0},justify:a},R=(0,r.K)(t=>{let e=0,n=0;for(let i of t){let t=i.value??0;t>e&&(e=t,n=i.layer??0)}return n},"findCentralNodeLayer"),Z=(0,r.K)(function(t,e,n,l){let b,v,{securityLevel:S,sankey:E}=(0,i.D7)(),$=i.ME.sankey;"sandbox"===S&&(b=(0,s.Ltv)("#i"+e));let D="sandbox"===S?(0,s.Ltv)(b.nodes()[0].contentDocument.body):(0,s.Ltv)("body"),O="sandbox"===S?D.select(`[id="${e}"]`):(0,s.Ltv)(`[id="${e}"]`),j=E?.width??$.width,z=E?.height??$.width,F=E?.useMaxWidth??$.useMaxWidth,U=E?.nodeAlignment??$.nodeAlignment,W=E?.prefix??$.prefix,V=E?.suffix??$.suffix,G=E?.showValues??$.showValues,X=E?.nodeWidth??$.nodeWidth??10,Y=E?.nodePadding??$.nodePadding??12,q=E?.labelStyle??$.labelStyle??"legacy",Z=E?.nodeColors??{},H=l.db.getGraph(),J=Q[U];(function(){let t,e,n=0,i=0,r=1,s=1,l=24,b=8,v,S=g,E=a,w=_,K=x,L=6;function A(){let a={nodes:w.apply(null,arguments),links:K.apply(null,arguments)};return function({nodes:t,links:n}){for(let[e,n]of t.entries())n.index=e,n.sourceLinks=[],n.targetLinks=[];let i=new Map(t.map((e,n)=>[S(e,n,t),e]));for(let[t,e]of n.entries()){e.index=t;let{source:n,target:r}=e;"object"!=typeof n&&(n=e.source=k(i,n)),"object"!=typeof r&&(r=e.target=k(i,r)),n.sourceLinks.push(e),r.targetLinks.push(e)}if(null!=e)for(let{sourceLinks:n,targetLinks:i}of t)n.sort(e),i.sort(e)}(a),function({nodes:t}){for(let e of t)e.value=void 0===e.fixedValue?Math.max(h(e.sourceLinks,p),h(e.targetLinks,p)):e.fixedValue}(a),function({nodes:t}){let e=t.length,n=new Set(t),i=new Set,r=0;for(;n.size;){for(let t of n)for(let{target:e}of(t.depth=r,t.sourceLinks))i.add(e);if(++r>e)throw Error("circular link");n=i,i=new Set}}(a),function({nodes:t}){let e=t.length,n=new Set(t),i=new Set,r=0;for(;n.size;){for(let t of n)for(let{source:e}of(t.height=r,t.targetLinks))i.add(e);if(++r>e)throw Error("circular link");n=i,i=new Set}}(a),function(a){let u=function({nodes:e}){let i=c(e,t=>t.depth)+1,s=(r-n-l)/(i-1),o=Array(i);for(let t of e){let e=Math.max(0,Math.min(i-1,Math.floor(E.call(null,t,i))));t.layer=e,t.x0=n+e*s,t.x1=t.x0+l,o[e]?o[e].push(t):o[e]=[t]}if(t)for(let e of o)e.sort(t);return o}(a);v=Math.min(b,(s-i)/(c(u,t=>t.length)-1));let g=o(u,t=>(s-i-(t.length-1)*v)/h(t,p));for(let t of u){let n=i;for(let e of t)for(let t of(e.y0=n,e.y1=n+e.value*g,n=e.y1+v,e.sourceLinks))t.width=t.value*g;n=(s-n+v)/(t.length+1);for(let e=0;e=0;--s){let r=e[s];for(let t of r){let e=0,i=0;for(let{target:n,value:r}of t.sourceLinks){let s=r*(n.layer-t.layer);e+=function(t,e){let n=e.y0-(e.targetLinks.length-1)*v/2;for(let{source:i,width:r}of e.targetLinks){if(i===t)break;n+=r+v}for(let{target:i,width:r}of t.sourceLinks){if(i===e)break;n-=r}return n}(t,n)*s,i+=s}if(!(i>0))continue;let r=(e/i-t.y0)*n;t.y0+=r,t.y1+=r,N(t)}void 0===t&&r.sort(d),M(r,i)}})(u,n,i),function(e,n,i){for(let r=1,s=e.length;r0))continue;let r=(e/i-t.y0)*n;t.y0+=r,t.y1+=r,N(t)}void 0===t&&s.sort(d),M(s,i)}}(u,n,i)}}(a),m(a),a}function M(t,e){let n=t.length>>1,r=t[n];T(t,r.y0-v,n-1,e),I(t,r.y1+v,n+1,e),T(t,s,t.length-1,e),I(t,i,0,e)}function I(t,e,n,i){for(;n1e-6&&(r.y0+=s,r.y1+=s),e=r.y1+v}}function T(t,e,n,i){for(;n>=0;--n){let r=t[n],s=(r.y1-e)*i;s>1e-6&&(r.y0-=s,r.y1-=s),e=r.y0-v}}function N({sourceLinks:t,targetLinks:n}){if(void 0===e){for(let{source:{sourceLinks:t}}of n)t.sort(y);for(let{target:{targetLinks:e}}of t)e.sort(f)}}return A.update=function(t){return m(t),t},A.nodeId=function(t){return arguments.length?(S="function"==typeof t?t:u(t),A):S},A.nodeAlign=function(t){return arguments.length?(E="function"==typeof t?t:u(t),A):E},A.nodeSort=function(e){return arguments.length?(t=e,A):t},A.nodeWidth=function(t){return arguments.length?(l=+t,A):l},A.nodePadding=function(t){return arguments.length?(b=v=+t,A):b},A.nodes=function(t){return arguments.length?(w="function"==typeof t?t:u(t),A):w},A.links=function(t){return arguments.length?(K="function"==typeof t?t:u(t),A):K},A.linkSort=function(t){return arguments.length?(e=t,A):e},A.size=function(t){return arguments.length?(n=i=0,r=+t[0],s=+t[1],A):[r-n,s-i]},A.extent=function(t){return arguments.length?(n=+t[0][0],r=+t[1][0],i=+t[0][1],s=+t[1][1],A):[[n,i],[r,s]]},A.iterations=function(t){return arguments.length?(L=+t,A):L},A})().nodeId(t=>t.id).nodeWidth(X).nodePadding(Y+15*!!G).nodeAlign(J).extent([[0,0],[j,z]])(H);let tt=R(H.nodes),te=(0,s.UMr)(s.zt),tn=(0,r.K)(t=>Z[t]??te(t),"getNodeColor");O.append("g").attr("class","nodes").selectAll(".node").data(H.nodes).join("g").attr("class","node").attr("id",t=>(t.uid=B.next("node-")).id).attr("transform",function(t){return"translate("+t.x0+","+t.y0+")"}).attr("x",t=>t.x0).attr("y",t=>t.y0).append("rect").attr("height",t=>t.y1-t.y0).attr("width",t=>t.x1-t.x0).attr("fill",t=>tn(t.id));let ti=(0,r.K)(({id:t,value:e})=>G?`${t} -${W}${Math.round(100*e)/100}${V}`:t,"getText"),tr=(0,r.K)(t=>"outlined"===q?(t.layer??0)ts.selectAll(t?`.${t}`:"text").data(H.nodes).join("text").attr("class",t??null).attr("x",t=>tr(t).x).attr("y",t=>(t.y1+t.y0)/2).attr("dy",`${G?"0":"0.35"}em`).attr("text-anchor",t=>tr(t).anchor).text(ti),"appendLabel");"outlined"===q?(to("sankey-label-bg"),to("sankey-label-fg")):to();let tl=O.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(H.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),ta=E?.linkColor??"gradient";if("gradient"===ta){let t=tl.append("linearGradient").attr("id",t=>(t.uid=B.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",t=>t.source.x1).attr("x2",t=>t.target.x0);t.append("stop").attr("offset","0%").attr("stop-color",t=>tn(t.source.id)),t.append("stop").attr("offset","100%").attr("stop-color",t=>tn(t.target.id))}switch(ta){case"gradient":v=(0,r.K)(t=>t.uid,"coloring");break;case"source":v=(0,r.K)(t=>tn(t.source.id),"coloring");break;case"target":v=(0,r.K)(t=>tn(t.target.id),"coloring");break;default:v=ta}tl.append("path").attr("d",(function(t){var e=I,n=T,i=A,r=M,s=null;function o(){var o,l=K.call(arguments),a=e.apply(this,l),h=n.apply(this,l);if(s||(s=o=w()),t(s,+i.apply(this,(l[0]=a,l)),+r.apply(this,l),+i.apply(this,(l[0]=h,l)),+r.apply(this,l)),o)return s=null,o+""||null}return o.source=function(t){return arguments.length?(e=t,o):e},o.target=function(t){return arguments.length?(n=t,o):n},o.x=function(t){return arguments.length?(i="function"==typeof t?t:L(+t),o):i},o.y=function(t){return arguments.length?(r="function"==typeof t?t:L(+t),o):r},o.context=function(t){return arguments.length?(s=null==t?null:t,o):s},o})(N).source(P).target(C)).attr("stroke",v).attr("stroke-width",t=>Math.max(1,t.width)),(0,i.ot)(void 0,O,0,F)},"draw"),H=(0,r.K)(t=>t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,"\n").trim(),"prepareTextForParsing"),J=(0,r.K)(t=>`.label { - font-family: ${t.fontFamily}; - } - - .node-labels { - font-family: ${t.fontFamily}; - } - - /* Outlined label style - background stroke for better readability */ - .sankey-label-bg { - stroke: ${t.mainBkg||t.background||"#fff"}; - stroke-width: 4px; - stroke-linejoin: round; - paint-order: stroke; - } - - /* Foreground label text */ - .sankey-label-fg { - fill: ${t.textColor}; - } - - /* Node styling */ - .node rect { - shape-rendering: crispEdges; - } - - /* Link styling */ - .link { - fill: none; - stroke-opacity: 0.5; - mix-blend-mode: multiply; - } -`,"getStyles"),tt=$.parse.bind($);$.parse=t=>tt(H(t));var te={styles:J,parser:$,db:q,renderer:{draw:Z}}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/7362-ec13e4ad937ab3be.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/7362-ec13e4ad937ab3be.js deleted file mode 100644 index 6ffc7fec0..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/7362-ec13e4ad937ab3be.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7362],{7305:(e,t,a)=>{a.d(t,{l:()=>n});var s=a(97601),r=a(26060),o=a(11119);let n=e=>{let{...t}=e,{theme:a="system"}=(0,r.D)();return(0,s.jsx)(o.l$,{theme:a,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground font-medium",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground font-medium"}},...t})}},9260:(e,t,a)=>{a.d(t,{J:()=>n});var s=a(97601);a(61221);var r=a(40107),o=a(20925);function n(e){let{className:t,...a}=e;return(0,s.jsx)(r.b,{"data-slot":"label",className:(0,o.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...a})}},20925:(e,t,a)=>{a.d(t,{cn:()=>o});var s=a(59207),r=a(6758);function o(){for(var e=arguments.length,t=Array(e),a=0;a{a.d(t,{$:()=>l});var s=a(97601);a(61221);var r=a(57390),o=a(86703),n=a(20925);let i=(0,o.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",outline:"border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",brand:"bg-[#2F6868] hover:bg-[#2F6868]/90 border-[#2F6868] text-white"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function l(e){let{className:t,variant:a,size:o,asChild:l=!1,...c}=e,d=l?r.DX:"button";return(0,s.jsx)(d,{"data-slot":"button",className:(0,n.cn)(i({variant:a,size:o,className:t})),...c})}},31239:(e,t,a)=>{a.d(t,{CG:()=>l,Fm:()=>h,cj:()=>i,h:()=>u,qp:()=>m});var s=a(97601);a(61221);var r=a(45359),o=a(49909),n=a(20925);function i(e){let{...t}=e;return(0,s.jsx)(r.bL,{"data-slot":"sheet",...t})}function l(e){let{...t}=e;return(0,s.jsx)(r.l9,{"data-slot":"sheet-trigger",...t})}function c(e){let{...t}=e;return(0,s.jsx)(r.ZL,{"data-slot":"sheet-portal",...t})}function d(e){let{className:t,...a}=e;return(0,s.jsx)(r.hJ,{"data-slot":"sheet-overlay",className:(0,n.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",t),...a})}function u(e){let{className:t,children:a,side:i="right",...l}=e;return(0,s.jsxs)(c,{children:[(0,s.jsx)(d,{}),(0,s.jsxs)(r.UC,{"data-slot":"sheet-content",className:(0,n.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===i&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","left"===i&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","top"===i&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===i&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...l,children:[a,(0,s.jsxs)(r.bm,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,s.jsx)(o.A,{className:"size-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function h(e){let{className:t,...a}=e;return(0,s.jsx)("div",{"data-slot":"sheet-header",className:(0,n.cn)("flex flex-col gap-1.5 p-4",t),...a})}function m(e){let{className:t,...a}=e;return(0,s.jsx)(r.hE,{"data-slot":"sheet-title",className:(0,n.cn)("text-foreground font-semibold",t),...a})}},37624:(e,t,a)=>{a.d(t,{G:()=>l});var s=a(97601),r=a(1894),o=a(91759),n=a(27470),i=a(31239);function l(){return(0,s.jsxs)(i.cj,{children:[(0,s.jsx)(i.CG,{asChild:!0,children:(0,s.jsx)(n.$,{variant:"ghost",size:"sm","aria-label":"Studio settings",children:(0,s.jsx)(r.A,{className:"h-4 w-4"})})}),(0,s.jsxs)(i.h,{children:[(0,s.jsx)(i.Fm,{children:(0,s.jsx)(i.qp,{children:"Studio Settings"})}),(0,s.jsx)("div",{className:"px-4 pb-4",children:(0,s.jsx)(o.mO,{})})]})]})}},38091:(e,t,a)=>{a.d(t,{B:()=>c,e:()=>d});var s=a(97601),r=a(61221),o=a(63675),n=a(11119),i=a(6638);let l=(0,r.createContext)(void 0);function c(){let e=(0,r.useContext)(l);if(!e)throw Error("useThreads must be used within a ThreadProvider");return e}function d(e){let{children:t,initialLock:a}=e,[c,d]=(0,r.useState)([]),[u,h]=(0,r.useState)(null),[m,p]=(0,r.useState)(!1),[g,f]=(0,r.useState)(new Set),[x,y]=(0,r.useState)([]),[w,b]=(0,r.useState)((null==a?void 0:a.mode)==="agent"?a.agent:""),[v,S]=(0,r.useState)(!a),[j,T]=(0,r.useState)((null==a?void 0:a.mode)==="graph"?"graph":"agent"),[k,N]=(0,r.useState)([]),[C,E]=(0,r.useState)((null==a?void 0:a.mode)==="graph"?a.graph:""),[U,F]=(0,r.useState)(!a),A=!!a,R=i.env.NEXT_PUBLIC_USER_ID||"user-001",_="agent"===j?w:C?"graph:".concat(C):"";(0,r.useEffect)(()=>{if(a)return;let e=!1;return S(!0),(0,o.yS)().listApps().then(t=>{if(e)return;let a=[...t].sort();y(a),b(e=>0===a.length||e&&a.includes(e)?e:a[0])}).catch(t=>{e||(console.error("Failed to fetch agent list:",t),y([]))}).finally(()=>{e||S(!1)}),()=>{e=!0}},[a]),(0,r.useEffect)(()=>{if(a)return;let e=!1;return F(!0),(0,o.yS)().listGraphs().then(t=>{if(e)return;let a=[...t||[]].sort();N(a),E(e=>0===a.length||e&&a.includes(e)?e:a[0])}).catch(t=>{e||(console.warn("Graph list not available (may not be configured):",t.message),N([]))}).finally(()=>{e||F(!1)}),()=>{e=!0}},[a]);let I=(0,r.useCallback)(e=>{A||(b(e),h(null))},[A]),P=(0,r.useCallback)(e=>{A||(T(e),h(null))},[A]),D=(0,r.useCallback)(e=>{A||(E(e),h(null))},[A]),O=(0,r.useCallback)(e=>g.has(e),[g]),G=(0,r.useCallback)(async()=>{if(("agent"!==j||w)&&("graph"!==j||C)){p(!0);try{let e=(0,o.yS)(),t=("graph"===j?await e.listGraphSessions(C,R):await e.listSessions(w,R)).sort((e,t)=>e.thread_id.localeCompare(t.thread_id));d(t)}catch(e){console.error("Failed to load threads:",e),n.oR.error("Failed to load threads: "+(e.message||"Unknown error"))}finally{p(!1)}}},[j,w,C,R]),L=(0,r.useCallback)(async()=>{try{let e=(0,o.yS)(),t="graph"===j?await e.createGraphSession(C,R,{}):await e.createSession(w,R,{});return f(e=>new Set(e).add(t.thread_id)),d(e=>[t,...e]),h(t.thread_id),n.oR.success("New thread created"),t}catch(e){return console.error("Failed to create thread:",e),n.oR.error("Failed to create thread: "+(e.message||"Unknown error")),null}},[j,w,C,R]),J=(0,r.useCallback)(async e=>{try{let t=(0,o.yS)();"graph"===j?await t.deleteGraphSession(C,R,e):await t.deleteSession(w,R,e),d(t=>t.filter(t=>t.thread_id!==e)),u===e&&h(null),n.oR.success("Thread deleted")}catch(e){console.error("Failed to delete thread:",e),n.oR.error("Failed to delete thread: "+(e.message||"Unknown error"))}},[j,w,C,R,u]);(0,r.useEffect)(()=>{"agent"===j&&w?(h(null),G()):"graph"===j&&C&&(h(null),G())},[j,w,C,G]);let q=(0,r.useMemo)(()=>({threads:c,currentThreadId:u,setCurrentThreadId:h,loadThreads:G,createThread:L,deleteThread:J,appName:_,userId:R,agentList:x,selectedAgent:w,setSelectedAgent:I,mode:j,setMode:P,graphList:k,selectedGraph:C,setSelectedGraph:D,isGraphsLoading:U,isLoading:m,isAgentsLoading:v,isNewlyCreatedThread:O,isLocked:A}),[c,u,h,G,L,J,_,R,x,w,I,j,P,k,C,D,U,m,v,O,A]);return(0,s.jsx)(l.Provider,{value:q,children:t})}},63675:(e,t,a)=>{a.d(t,{S0:()=>o,qS:()=>n,yS:()=>d});var s=a(6638);let r="agentic:studio:executionAuthToken";function o(){return window.sessionStorage.getItem(r)||""}function n(e){let t=e.trim();t?window.sessionStorage.setItem(r,t):window.sessionStorage.removeItem(r)}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Headers(e),a=o();return a&&t.set("X-Agentic-Studio-Token",a),t}function l(e){return(null==e?void 0:e.error)?Error(e.errorMessage||e.message||e.errorType||"Studio stream failed"):null}class c{async listApps(){let e=await fetch("".concat(this.baseUrl,"/list-apps"),{headers:i()});if(!e.ok)throw Error("Failed to fetch apps: ".concat(e.statusText));return await e.json()}async listGraphs(){let e=await fetch("".concat(this.baseUrl,"/list-graphs"),{headers:i()});if(404===e.status)return[];if(!e.ok)throw Error("Failed to fetch graphs: ".concat(e.statusText));return await e.json()}async getGraphRepresentation(e){let t=await fetch("".concat(this.baseUrl,"/graphs/").concat(encodeURIComponent(e),"/representation"),{headers:i()});if(!t.ok)throw Error("Failed to fetch graph representation: ".concat(t.statusText));return await t.json()}async listGraphSessions(e,t){let a=await fetch("".concat(this.baseUrl,"/graphs/").concat(encodeURIComponent(e),"/users/").concat(t,"/threads"),{headers:i()});if(!a.ok)throw Error("Failed to fetch graph sessions: ".concat(a.statusText));return await a.json()}async getGraphSession(e,t,a){let s=await fetch("".concat(this.baseUrl,"/graphs/").concat(encodeURIComponent(e),"/users/").concat(t,"/threads/").concat(a),{headers:i()});if(!s.ok)throw Error("Failed to fetch graph session: ".concat(s.statusText));return await s.json()}async createGraphSession(e,t,a){let s=await fetch("".concat(this.baseUrl,"/graphs/").concat(encodeURIComponent(e),"/users/").concat(t,"/threads"),{method:"POST",headers:i({"Content-Type":"application/json"}),body:JSON.stringify(a||{})});if(!s.ok)throw Error("Failed to create graph session: ".concat(s.statusText));return await s.json()}async createGraphSessionWithId(e,t,a,s){let r=await fetch("".concat(this.baseUrl,"/graphs/").concat(encodeURIComponent(e),"/users/").concat(t,"/threads/").concat(a),{method:"POST",headers:i({"Content-Type":"application/json"}),body:JSON.stringify(s||{})});if(!r.ok)throw Error("Failed to create graph session with ID: ".concat(r.statusText));return await r.json()}async deleteGraphSession(e,t,a){let s=await fetch("".concat(this.baseUrl,"/graphs/").concat(encodeURIComponent(e),"/users/").concat(t,"/threads/").concat(a),{method:"DELETE",headers:i()});if(!s.ok)throw Error("Failed to delete graph session: ".concat(s.statusText))}async *runGraphStream(e,t,a,s,r){let o={graphName:e,userId:t,threadId:a,newMessage:{messageType:"user",content:s.content,metadata:s.metadata||{},media:s.media||[]},streaming:!0},n=await fetch("".concat(this.baseUrl,"/graph_run_sse"),{method:"POST",headers:i({"Content-Type":"application/json",Accept:"text/event-stream"}),body:JSON.stringify(o),signal:r});if(!n.ok)throw Error("Failed to run graph stream: ".concat(n.statusText));yield*this._processGraphSSEStream(n)}async *_processGraphSSEStream(e){var t;let a=null==(t=e.body)?void 0:t.getReader();if(!a)throw Error("Response body is not readable");let s=new TextDecoder,r="";try{for(;;){let{done:e,value:t}=await a.read();if(e)break;let o=(r+=s.decode(t,{stream:!0})).split("\n");for(let e of(r=o.pop()||"",o))if(e.trim().startsWith("data:")){let t=e.slice(5).trim();if(t)try{let e=JSON.parse(t),a=l(e);if(a)throw a;yield e}catch(e){if(e instanceof SyntaxError)continue;throw e}}}}finally{a.releaseLock()}}async listSessions(e,t){let a=await fetch("".concat(this.baseUrl,"/apps/").concat(e,"/users/").concat(t,"/threads"),{headers:i()});if(!a.ok)throw Error("Failed to fetch sessions: ".concat(a.statusText));return await a.json()}async getSession(e,t,a){let s=await fetch("".concat(this.baseUrl,"/apps/").concat(e,"/users/").concat(t,"/threads/").concat(a),{headers:i()});if(!s.ok)throw Error("Failed to fetch session: ".concat(s.statusText));return await s.json()}async createSession(e,t,a){let s=await fetch("".concat(this.baseUrl,"/apps/").concat(e,"/users/").concat(t,"/threads"),{method:"POST",headers:i({"Content-Type":"application/json"}),body:JSON.stringify(a||{})});if(!s.ok)throw Error("Failed to create session: ".concat(s.statusText));return await s.json()}async createSessionWithId(e,t,a,s){let r=await fetch("".concat(this.baseUrl,"/apps/").concat(e,"/users/").concat(t,"/threads/").concat(a),{method:"POST",headers:i({"Content-Type":"application/json"}),body:JSON.stringify(s||{})});if(!r.ok)throw Error("Failed to create session with ID: ".concat(r.statusText));return await r.json()}async deleteSession(e,t,a){let s=await fetch("".concat(this.baseUrl,"/apps/").concat(e,"/users/").concat(t,"/threads/").concat(a),{method:"DELETE",headers:i()});if(!s.ok)throw Error("Failed to delete session: ".concat(s.statusText))}async runAgent(e){let t=await fetch("".concat(this.baseUrl,"/run"),{method:"POST",headers:i({"Content-Type":"application/json"}),body:JSON.stringify(e)});if(!t.ok)throw Error("Failed to run agent: ".concat(t.statusText));return await t.json()}async *runAgentStream(e,t,a,s,r){let o={appName:e,userId:t,threadId:a,newMessage:{messageType:"user",content:s.content,metadata:s.metadata||{},media:s.media||[]},streaming:!0},n=await fetch("".concat(this.baseUrl,"/run_sse"),{method:"POST",headers:i({"Content-Type":"application/json",Accept:"text/event-stream"}),body:JSON.stringify(o),signal:r});if(!n.ok)throw Error("Failed to run agent stream: ".concat(n.statusText));yield*this._processSSEStream(n)}async *resumeAgentStream(e,t,a,s,r){let o=await fetch("".concat(this.baseUrl,"/resume_sse"),{method:"POST",headers:i({"Content-Type":"application/json",Accept:"text/event-stream"}),body:JSON.stringify({appName:e,userId:t,threadId:a,toolFeedbacks:s,streaming:!0}),signal:r});if(!o.ok)throw Error("Failed to resume agent stream: ".concat(o.statusText));yield*this._processSSEStream(o)}async *_processSSEStream(e){var t;let a=null==(t=e.body)?void 0:t.getReader();if(!a)throw Error("Response body is not readable");let s=new TextDecoder,r="";try{for(;;){let{done:e,value:t}=await a.read();if(e)break;let o=(r+=s.decode(t,{stream:!0})).split("\n");for(let e of(r=o.pop()||"",o))if(e.trim().startsWith("data:")){let t=e.slice(5).trim();if(t)try{let e=JSON.parse(t),a=l(e);if(a)throw a;yield e}catch(e){if(e instanceof SyntaxError)continue;throw e}}}}finally{a.releaseLock()}}constructor(e){this.baseUrl=e}}function d(){return new c(s.env.NEXT_PUBLIC_API_URL||"")}},77699:(e,t,a)=>{a.d(t,{E:()=>o});var s=a(97601),r=a(20925);function o(e){let{className:t,...a}=e;return(0,s.jsx)("div",{"data-slot":"skeleton",className:(0,r.cn)("bg-primary/10 animate-pulse rounded-md",t),...a})}},83246:(e,t,a)=>{function s(e){return"assistant"===e.messageType}function r(e){return"tool-request"===e.messageType}function o(e){return"tool-confirm"===e.messageType}function n(e){return"tool"===e.messageType}function i(e){switch(e.messageType){case"user":return{messageType:"user",content:e.content||"",metadata:e.metadata||{},media:e.media||[]};case"assistant":return{messageType:"assistant",content:e.content||"",metadata:e.metadata||{},toolCalls:e.toolCalls||[]};case"tool-request":return{messageType:"tool-request",content:e.content||"",metadata:e.metadata||{},toolCalls:e.toolCalls||[]};case"tool-confirm":return{messageType:"tool-confirm",content:e.content||"",metadata:e.metadata||{},toolFeedback:e.toolFeedback||[],toolsAutomaticallyApproved:e.toolsAutomaticallyApproved||[]};case"tool":return{messageType:"tool",content:e.content||"",metadata:e.metadata||{},responses:e.responses||[]};default:return{messageType:"user",content:e.content||"",metadata:e.metadata||{}}}}function l(e,t,a){return{id:t||"".concat(e.messageType,"-").concat(Date.now()),message:e,timestamp:a||Date.now()}}a.d(t,{F9:()=>o,Lj:()=>i,hH:()=>r,ht:()=>n,mj:()=>s,qT:()=>l})},91759:(e,t,a)=>{a.d(t,{mO:()=>v,KW:()=>b,j2:()=>w});var s=a(97601),r=a(61221),o=a(84097),n=a(20925);function i(e){let{className:t,type:a,...r}=e;return(0,s.jsx)("input",{type:a,"data-slot":"input",className:(0,n.cn)("border-input file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...r})}var l=a(9260),c=a(27470),d=a(96268),u=a(57772);let h=r.forwardRef((e,t)=>{let{className:a,...o}=e,[l,h]=r.useState(!1);return(0,s.jsxs)("div",{className:"relative w-full",children:[(0,s.jsx)(i,{type:l?"text":"password",className:(0,n.cn)("hide-password-toggle pr-10",a),ref:t,...o}),(0,s.jsxs)(c.$,{type:"button",variant:"ghost",size:"sm",className:"absolute top-0 right-0 h-full px-3 py-2 hover:bg-transparent",onClick:()=>h(e=>!e),children:[l?(0,s.jsx)(d.A,{className:"h-4 w-4","aria-hidden":"true"}):(0,s.jsx)(u.A,{className:"h-4 w-4","aria-hidden":"true"}),(0,s.jsx)("span",{className:"sr-only",children:l?"Hide password":"Show password"})]}),(0,s.jsx)("style",{children:"\n .hide-password-toggle::-ms-reveal,\n .hide-password-toggle::-ms-clear {\n visibility: hidden;\n pointer-events: none;\n display: none;\n }\n "})]})});h.displayName="PasswordInput";var m=a(38091),p=a(11119),g=a(63675),f=a(83246),x=a(6638);let y=(0,r.createContext)(void 0),w=()=>{let e=(0,r.useContext)(y),{currentThreadId:t}=(0,m.B)();if(!e)throw Error("useStream must be used within a StreamProvider");let{clearMessages:a}=e;return(0,r.useEffect)(()=>{null===t&&a()},[t,a]),e},b=e=>{let{children:t}=e,[a,o]=(0,r.useState)([]),[n,i]=(0,r.useState)(!1),[l,c]=(0,r.useState)(!1),{currentThreadId:d,createThread:u,isNewlyCreatedThread:h,appName:x,userId:w,mode:b,selectedGraph:v}=(0,m.B)(),S=(0,r.useRef)(null),j=async e=>{if(("agent"!==b||x)&&("graph"!==b||v)){c(!0);try{let t=(0,g.yS)(),a="graph"===b?await t.getGraphSession(v,w,e):await t.getSession(x,w,e);if(a.values&&Array.isArray(a.values.messages)&&a.values.messages.length>0){let t=a.values.messages.map((t,a)=>(0,f.qT)((0,f.Lj)(t),"".concat(e,"-").concat(a)));o(t)}else if(h(e))o([]);else{let t=(0,f.qT)({messageType:"assistant",content:"\uD83D\uDCA1 Support for agent message loading is under development.\n\nThis thread exists but its message history cannot be displayed yet.\n\nPlease create a new thread to start a conversation.",metadata:{isPlaceholder:!0}},"".concat(e,"-placeholder"));o([t])}}catch(e){console.error("Failed to load thread messages:",e),p.oR.error("Failed to load thread messages"),o([])}finally{c(!1)}}};(0,r.useEffect)(()=>{d&&x?j(d):d||o([])},[d,x,b,v,w]);let T=(0,r.useCallback)(async e=>{if(!e.trim())return;if("agent"===b&&!x)return void p.oR.error("No agent selected. Please select an agent from the list.");if("graph"===b&&!v)return void p.oR.error("No graph selected. Please select a graph from the list.");let t=d;if(!t){p.oR.info("Creating new thread...");let e=await u();if(!e)return void p.oR.error("Failed to create thread");t=e.thread_id}let a={id:"user-".concat(Date.now()),message:{messageType:"user",content:e.trim(),metadata:{}},timestamp:Date.now()};o(e=>[...e,a]),i(!0),S.current=new AbortController;try{let a=(0,g.yS)(),s={messageType:"user",content:e.trim(),metadata:{},media:[]},r="graph"===b?a.runGraphStream(v,w,t,s,S.current.signal):a.runAgentStream(x,w,t,s,S.current.signal),n=!0;for await(let e of r)if("heartbeat"!==e.node){if(e.chunk)if(e.message&&"assistant"!==e.message.messageType&&console.warn("[Stream] Warning: chunk exists but message type is not assistant:",e.message.messageType,"This indicates a backend data format issue."),n){let t={id:"assistant-".concat(Date.now()),message:{messageType:"assistant",content:e.chunk,metadata:{},toolCalls:[]},timestamp:Date.now()};o(e=>[...e,t]),n=!1}else o(t=>{let a=[...t],s=a[a.length-1];return a[a.length-1]={...s,message:{...s.message,content:s.message.content+e.chunk}},a});else if(e.message){let t=(0,f.Lj)(e.message),a=e.message.messageType;if("assistant"===a||"tool-request"===a)if(n){let e={id:"".concat(a,"-").concat(Date.now()),message:t,timestamp:Date.now()};o(t=>[...t,e]),n=!1}else o(e=>{let a=[...e],s=a[a.length-1],r=t.content||s.message.content;return a[a.length-1]={...s,message:{...t,content:r}},a});else if("tool-confirm"===a||"tool"===a){let e={id:"".concat(a,"-").concat(Date.now()),message:t,timestamp:Date.now()};o(t=>[...t,e]),n=!0}else console.warn("[Stream] Unknown message type:",a)}}}catch(e){"AbortError"===e.name?p.oR.info("Request cancelled"):(console.error("Failed to send message:",e),p.oR.error(e.message||"Failed to send message"))}finally{i(!1),S.current=null}},[d,u,x,w,b,v]),k=(0,r.useCallback)(()=>{o([]),S.current&&(S.current.abort(),S.current=null)},[]),N=(0,r.useCallback)(async e=>{if(!d)return void p.oR.error("No active thread");if("agent"===b&&!x)return void p.oR.error("No agent selected.");if("graph"===b&&!v)return void p.oR.error("No graph selected.");if("graph"===b)return void p.oR.info("Resume with tool feedback is not yet supported for graphs.");i(!0),S.current=new AbortController;try{let t=(0,g.yS)().resumeAgentStream(x,w,d,e,S.current.signal),a=!0;for await(let e of t)if("heartbeat"!==e.node){if(e.chunk)if(a){let t={id:"assistant-".concat(Date.now()),message:{messageType:"assistant",content:e.chunk,metadata:{},toolCalls:[]},timestamp:Date.now()};o(e=>[...e,t]),a=!1}else o(t=>{let a=[...t],s=a[a.length-1];return a[a.length-1]={...s,message:{...s.message,content:s.message.content+e.chunk}},a});else if(e.message){let t=(0,f.Lj)(e.message),s=e.message.messageType;if("assistant"===s||"tool-request"===s)if(a){let e={id:"".concat(s,"-").concat(Date.now()),message:t,timestamp:Date.now()};o(t=>[...t,e]),a=!1}else o(e=>{let a=[...e],s=a[a.length-1],r=t.content||s.message.content;return a[a.length-1]={...s,message:{...t,content:r}},a});else if("tool-confirm"===s||"tool"===s){let e={id:"".concat(s,"-").concat(Date.now()),message:t,timestamp:Date.now()};o(t=>[...t,e]),a=!0}}}}catch(e){"AbortError"===e.name?p.oR.info("Request cancelled"):(console.error("Failed to resume with feedback:",e),p.oR.error(e.message||"Failed to resume execution"))}finally{i(!1),S.current=null}},[d,x,w,b]);(0,r.useEffect)(()=>()=>{S.current&&S.current.abort()},[]);let C=(0,r.useMemo)(()=>({messages:a,isStreaming:n,sendMessage:T,resumeFeedback:N,clearMessages:k}),[a,n,T,N,k]);return(0,s.jsx)(y.Provider,{value:C,children:t})},v=()=>{let[e,t]=(0,o.ZA)("apiUrl",{defaultValue:x.env.NEXT_PUBLIC_API_URL||"http://localhost:8080"}),[a,n]=(0,o.ZA)("appName",{defaultValue:x.env.NEXT_PUBLIC_APP_NAME||""}),[c,d]=(0,o.ZA)("userId",{defaultValue:x.env.NEXT_PUBLIC_USER_ID||"user-001"}),[u,m]=(0,r.useState)("");(0,r.useEffect)(()=>{m((0,g.S0)())},[]);let p=(0,r.useCallback)(e=>{m(e),(0,g.qS)(e)},[]);return(0,s.jsxs)("div",{className:"flex flex-col gap-4 rounded-lg border p-4",children:[(0,s.jsx)("h3",{className:"text-lg font-semibold",children:"Configuration"}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(l.J,{htmlFor:"apiUrl",children:"API URL"}),(0,s.jsx)("div",{className:"flex gap-2",children:(0,s.jsx)(i,{id:"apiUrl",value:e||"",onChange:e=>t(e.target.value),placeholder:"http://localhost:8080"})})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(l.J,{htmlFor:"appName",children:"Application Name"}),(0,s.jsx)("div",{className:"flex gap-2",children:(0,s.jsx)(i,{id:"appName",value:a||"",onChange:e=>n(e.target.value),placeholder:"e.g. sales_agent"})})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(l.J,{htmlFor:"userId",children:"User ID"}),(0,s.jsx)("div",{className:"flex gap-2",children:(0,s.jsx)(i,{id:"userId",value:c||"",onChange:e=>d(e.target.value),placeholder:"user-001"})})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(l.J,{htmlFor:"executionAuthToken",children:"Execution Token"}),(0,s.jsx)("div",{className:"flex gap-2",children:(0,s.jsx)(h,{id:"executionAuthToken",value:u,onChange:e=>p(e.target.value),placeholder:"X-Agentic-Studio-Token",autoComplete:"off"})})]}),(0,s.jsxs)("div",{className:"text-muted-foreground text-sm",children:[(0,s.jsx)("p",{children:"Current configuration:"}),(0,s.jsxs)("ul",{className:"list-inside list-disc",children:[(0,s.jsxs)("li",{children:["API URL: ",e]}),(0,s.jsxs)("li",{children:["App Name: ",a]}),(0,s.jsxs)("li",{children:["User ID: ",c]}),(0,s.jsxs)("li",{children:["Execution Token: ",u?"set":"not set"]})]})]})]})}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/75146d7d-18d3744ca4421dd9.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/75146d7d-18d3744ca4421dd9.js deleted file mode 100644 index 05a667e66..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/75146d7d-18d3744ca4421dd9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8447],{29667:(e,t,r)=>{r.d(t,{Ay:()=>az});class a{constructor(e,t,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=r}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new a(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class n{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new n(t,a.range(this,e))}}class i{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+e,a=t&&t.loc;if(a&&a.start<=a.end){var n,s,o=a.lexer.input;n=a.start,s=a.end,n===o.length?r+=" at end of input: ":r+=" at position "+(n+1)+": ";var l=o.slice(n,s).replace(/[^]/g,"$&̲");r+=(n>15?"…"+o.slice(n-15,n):o.slice(0,n))+l+(s+15":">","<":"<",'"':""","'":"'"},m=/[&><"']/g,c=function e(t){if("ordgroup"===t.type||"color"===t.type)if(1===t.body.length)return e(t.body[0]);else return t;return"font"===t.type?e(t.body):t},p=function(e){if(!e)throw Error("Expected non-null, but got "+String(e));return e},u={contains:function(e,t){return -1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(m,e=>h[e])},hyphenate:function(e){return e.replace(l,"-$1").toLowerCase()},getBaseElem:c,isCharacterBox:function(e){var t=c(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?":"===t[2]&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"}},d={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};class g{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},d)if(d.hasOwnProperty(t)){var r=d[t];this[t]=void 0!==e[t]?r.processor?r.processor(e[t]):e[t]:function(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if("string"!=typeof r)return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}(r)}}reportNonstrict(e,t,r){var a=this.strict;if("function"==typeof a&&(a=a(e,t,r)),a&&"ignore"!==a){if(!0===a||"error"===a)throw new i("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" [")+e+"]",r);"warn"===a?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" [")+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+t+" [")+e+"]")}}useStrictBehavior(e,t,r){var a=this.strict;if("function"==typeof a)try{a=a(e,t,r)}catch(e){a="error"}return!!a&&"ignore"!==a&&(!0===a||"error"===a||("warn"===a?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" [")+e+"]"),!1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+t+" [")+e+"]"),!1)))}isTrusted(e){if(e.url&&!e.protocol){var t=u.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}return!!("function"==typeof this.trust?this.trust(e):this.trust)}}class f{constructor(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}sup(){return v[b[this.id]]}sub(){return v[y[this.id]]}fracNum(){return v[x[this.id]]}fracDen(){return v[w[this.id]]}cramp(){return v[k[this.id]]}text(){return v[S[this.id]]}isTight(){return this.size>=2}}var v=[new f(0,0,!1),new f(1,0,!0),new f(2,1,!1),new f(3,1,!0),new f(4,2,!1),new f(5,2,!0),new f(6,3,!1),new f(7,3,!0)],b=[4,5,4,5,6,7,6,7],y=[5,5,5,5,7,7,7,7],x=[2,3,4,5,6,7,6,7],w=[3,3,5,5,7,7,7,7],k=[1,1,3,3,5,5,7,7],S=[0,1,2,3,2,3,2,3],M={DISPLAY:v[0],TEXT:v[2],SCRIPT:v[4],SCRIPTSCRIPT:v[6]},z=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],A=[];function T(e){for(var t=0;t=A[t]&&e<=A[t+1])return!0;return!1}z.forEach(e=>e.blocks.forEach(e=>A.push(...e)));var B=function(e,t,r){t*=1e3;var a,n,i,s,o,l,h="";switch(e){case"sqrtMain":h="M95,"+(622+(a=t)+80)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+a/2.075+" -"+a+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+a)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+a)+" 80h400000v"+(40+a)+"h-400000z";break;case"sqrtSize1":h="M263,"+(601+(n=t)+80)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+n/2.084+" -"+n+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+n)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+n)+" 80h400000v"+(40+n)+"h-400000z";break;case"sqrtSize2":h="M983 "+(10+(i=t)+80)+"\nl"+i/3.13+" -"+i+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+i)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+i)+" 80h400000v"+(40+i)+"h-400000z";break;case"sqrtSize3":h="M424,"+(2398+(s=t)+80)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+s/4.223+" -"+s+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+s)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+s)+" 80\nh400000v"+(40+s)+"h-400000z";break;case"sqrtSize4":h="M473,"+(2713+(o=t)+80)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+o/5.298+" -"+o+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+o)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+o)+" 80h400000v"+(40+o)+"H1017.7z";break;case"sqrtTall":h="M702 "+((l=t)+80)+"H400000"+(40+l)+"\nH742v"+(r-54-80-l)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 80H400000v"+(40+l)+"H742z"}return h},C=function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z"+("M367 0 H410 V"+t+" H367z M367 0 H410 V")+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257z"+("M478 0 H521 V"+t+" H478z M478 0 H521 V")+t+" H478z";default:return""}},q={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},N=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw Error("Unknown stretchy delimiter.")}};class I{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return u.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;te.toText()).join("")}}var H={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},R={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},O={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function E(e,t,r){if(!H[t])throw Error("Font metrics not found for font: "+t+".");var a=e.charCodeAt(0),n=H[t][a];if(!n&&e[0]in O&&(a=O[e[0]].charCodeAt(0),n=H[t][a]),!n&&"text"===r&&T(a)&&(n=H[t][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var L={},D=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],V=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],P=function(e,t){return t.size<2?e:D[e-1][t.size-1]};class F{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||F.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=V[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return new F(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:P(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:V[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=P(F.BASESIZE,e);return this.size===t&&this.textSize===F.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==F.BASESIZE?["sizing","reset-size"+this.size,"size"+F.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!L[t=e>=5?0:e>=3?1:2]){var r=L[t]={cssEmPerMu:R.quad[t]/18};for(var a in R)R.hasOwnProperty(a)&&(r[a]=R[a][t])}return L[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}F.BASESIZE=6;var G={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},U={ex:!0,em:!0,mu:!0},Y=function(e){return"string"!=typeof e&&(e=e.unit),e in G||e in U||"ex"===e},X=function(e,t){var r,a;if(e.unit in G)r=G[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{if(a=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=a.fontMetrics().xHeight;else if("em"===e.unit)r=a.fontMetrics().quad;else throw new i("Invalid unit: '"+e.unit+"'");a!==t&&(r*=a.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},W=function(e){return+e.toFixed(4)+"em"},_=function(e){return e.filter(e=>e).join(" ")},j=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var a=t.getColor();a&&(this.style.color=a)}},$=function(e){var t=document.createElement(e);for(var r in t.className=_(this.classes),this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&t.setAttribute(a,this.attributes[a]);for(var n=0;n/=\x00-\x1f]/,K=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+u.escape(_(this.classes))+'"');var r="";for(var a in this.style)this.style.hasOwnProperty(a)&&(r+=u.hyphenate(a)+":"+this.style[a]+";");for(var n in r&&(t+=' style="'+u.escape(r)+'"'),this.attributes)if(this.attributes.hasOwnProperty(n)){if(Z.test(n))throw new i("Invalid attribute name '"+n+"'");t+=" "+n+'="'+u.escape(this.attributes[n])+'"'}t+=">";for(var s=0;s")};class J{constructor(e,t,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,j.call(this,e,r,a),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return u.contains(this.classes,e)}toNode(){return $.call(this,"span")}toMarkup(){return K.call(this,"span")}}class Q{constructor(e,t,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,j.call(this,t,a),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return u.contains(this.classes,e)}toNode(){return $.call(this,"a")}toMarkup(){return K.call(this,"a")}}class ee{constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return u.contains(this.classes,e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e=''+u.escape(this.alt)+'=n[0]&&e<=n[1])return r.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=et[this.text])}hasClass(e){return u.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var r in this.italic>0&&((t=document.createElement("span")).style.marginRight=W(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=_(this.classes)),this.style)this.style.hasOwnProperty(r)&&((t=t||document.createElement("span")).style[r]=this.style[r]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(a)&&(r+=u.hyphenate(a)+":"+this.style[a]+";");r&&(e=!0,t+=' style="'+u.escape(r)+'"');var n=u.escape(this.text);return e?(t+=">",t+=n,t+=""):n}}class ea{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var r=0;r"}}class en{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",q[this.pathName]),e}toMarkup(){return this.alternate?'':''}}class ei{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=""}}function es(e){if(e instanceof er)return e;throw Error("Expected symbolNode but got "+String(e)+".")}var eo={bin:1,close:1,inner:1,open:1,punct:1,rel:1},el={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},eh={math:{},text:{}};function em(e,t,r,a,n,i){eh[e][n]={font:t,group:r,replace:a},i&&a&&(eh[e][a]=eh[e][n])}var ec="math",ep="text",eu="main",ed="accent-token",eg="close",ef="inner",ev="mathord",eb="op-token",ey="open",ex="punct",ew="spacing",ek="textord";em(ec,eu,"rel","≡","\\equiv",!0),em(ec,eu,"rel","≺","\\prec",!0),em(ec,eu,"rel","≻","\\succ",!0),em(ec,eu,"rel","∼","\\sim",!0),em(ec,eu,"rel","⊥","\\perp"),em(ec,eu,"rel","⪯","\\preceq",!0),em(ec,eu,"rel","⪰","\\succeq",!0),em(ec,eu,"rel","≃","\\simeq",!0),em(ec,eu,"rel","∣","\\mid",!0),em(ec,eu,"rel","≪","\\ll",!0),em(ec,eu,"rel","≫","\\gg",!0),em(ec,eu,"rel","≍","\\asymp",!0),em(ec,eu,"rel","∥","\\parallel"),em(ec,eu,"rel","⋈","\\bowtie",!0),em(ec,eu,"rel","⌣","\\smile",!0),em(ec,eu,"rel","⊑","\\sqsubseteq",!0),em(ec,eu,"rel","⊒","\\sqsupseteq",!0),em(ec,eu,"rel","≐","\\doteq",!0),em(ec,eu,"rel","⌢","\\frown",!0),em(ec,eu,"rel","∋","\\ni",!0),em(ec,eu,"rel","∝","\\propto",!0),em(ec,eu,"rel","⊢","\\vdash",!0),em(ec,eu,"rel","⊣","\\dashv",!0),em(ec,eu,"rel","∋","\\owns"),em(ec,eu,ex,".","\\ldotp"),em(ec,eu,ex,"⋅","\\cdotp"),em(ec,eu,ek,"#","\\#"),em(ep,eu,ek,"#","\\#"),em(ec,eu,ek,"&","\\&"),em(ep,eu,ek,"&","\\&"),em(ec,eu,ek,"ℵ","\\aleph",!0),em(ec,eu,ek,"∀","\\forall",!0),em(ec,eu,ek,"ℏ","\\hbar",!0),em(ec,eu,ek,"∃","\\exists",!0),em(ec,eu,ek,"∇","\\nabla",!0),em(ec,eu,ek,"♭","\\flat",!0),em(ec,eu,ek,"ℓ","\\ell",!0),em(ec,eu,ek,"♮","\\natural",!0),em(ec,eu,ek,"♣","\\clubsuit",!0),em(ec,eu,ek,"℘","\\wp",!0),em(ec,eu,ek,"♯","\\sharp",!0),em(ec,eu,ek,"♢","\\diamondsuit",!0),em(ec,eu,ek,"ℜ","\\Re",!0),em(ec,eu,ek,"♡","\\heartsuit",!0),em(ec,eu,ek,"ℑ","\\Im",!0),em(ec,eu,ek,"♠","\\spadesuit",!0),em(ec,eu,ek,"\xa7","\\S",!0),em(ep,eu,ek,"\xa7","\\S"),em(ec,eu,ek,"\xb6","\\P",!0),em(ep,eu,ek,"\xb6","\\P"),em(ec,eu,ek,"†","\\dag"),em(ep,eu,ek,"†","\\dag"),em(ep,eu,ek,"†","\\textdagger"),em(ec,eu,ek,"‡","\\ddag"),em(ep,eu,ek,"‡","\\ddag"),em(ep,eu,ek,"‡","\\textdaggerdbl"),em(ec,eu,eg,"⎱","\\rmoustache",!0),em(ec,eu,ey,"⎰","\\lmoustache",!0),em(ec,eu,eg,"⟯","\\rgroup",!0),em(ec,eu,ey,"⟮","\\lgroup",!0),em(ec,eu,"bin","∓","\\mp",!0),em(ec,eu,"bin","⊖","\\ominus",!0),em(ec,eu,"bin","⊎","\\uplus",!0),em(ec,eu,"bin","⊓","\\sqcap",!0),em(ec,eu,"bin","∗","\\ast"),em(ec,eu,"bin","⊔","\\sqcup",!0),em(ec,eu,"bin","◯","\\bigcirc",!0),em(ec,eu,"bin","∙","\\bullet",!0),em(ec,eu,"bin","‡","\\ddagger"),em(ec,eu,"bin","≀","\\wr",!0),em(ec,eu,"bin","⨿","\\amalg"),em(ec,eu,"bin","&","\\And"),em(ec,eu,"rel","⟵","\\longleftarrow",!0),em(ec,eu,"rel","⇐","\\Leftarrow",!0),em(ec,eu,"rel","⟸","\\Longleftarrow",!0),em(ec,eu,"rel","⟶","\\longrightarrow",!0),em(ec,eu,"rel","⇒","\\Rightarrow",!0),em(ec,eu,"rel","⟹","\\Longrightarrow",!0),em(ec,eu,"rel","↔","\\leftrightarrow",!0),em(ec,eu,"rel","⟷","\\longleftrightarrow",!0),em(ec,eu,"rel","⇔","\\Leftrightarrow",!0),em(ec,eu,"rel","⟺","\\Longleftrightarrow",!0),em(ec,eu,"rel","↦","\\mapsto",!0),em(ec,eu,"rel","⟼","\\longmapsto",!0),em(ec,eu,"rel","↗","\\nearrow",!0),em(ec,eu,"rel","↩","\\hookleftarrow",!0),em(ec,eu,"rel","↪","\\hookrightarrow",!0),em(ec,eu,"rel","↘","\\searrow",!0),em(ec,eu,"rel","↼","\\leftharpoonup",!0),em(ec,eu,"rel","⇀","\\rightharpoonup",!0),em(ec,eu,"rel","↙","\\swarrow",!0),em(ec,eu,"rel","↽","\\leftharpoondown",!0),em(ec,eu,"rel","⇁","\\rightharpoondown",!0),em(ec,eu,"rel","↖","\\nwarrow",!0),em(ec,eu,"rel","⇌","\\rightleftharpoons",!0),em(ec,"ams","rel","≮","\\nless",!0),em(ec,"ams","rel","","\\@nleqslant"),em(ec,"ams","rel","","\\@nleqq"),em(ec,"ams","rel","⪇","\\lneq",!0),em(ec,"ams","rel","≨","\\lneqq",!0),em(ec,"ams","rel","","\\@lvertneqq"),em(ec,"ams","rel","⋦","\\lnsim",!0),em(ec,"ams","rel","⪉","\\lnapprox",!0),em(ec,"ams","rel","⊀","\\nprec",!0),em(ec,"ams","rel","⋠","\\npreceq",!0),em(ec,"ams","rel","⋨","\\precnsim",!0),em(ec,"ams","rel","⪹","\\precnapprox",!0),em(ec,"ams","rel","≁","\\nsim",!0),em(ec,"ams","rel","","\\@nshortmid"),em(ec,"ams","rel","∤","\\nmid",!0),em(ec,"ams","rel","⊬","\\nvdash",!0),em(ec,"ams","rel","⊭","\\nvDash",!0),em(ec,"ams","rel","⋪","\\ntriangleleft"),em(ec,"ams","rel","⋬","\\ntrianglelefteq",!0),em(ec,"ams","rel","⊊","\\subsetneq",!0),em(ec,"ams","rel","","\\@varsubsetneq"),em(ec,"ams","rel","⫋","\\subsetneqq",!0),em(ec,"ams","rel","","\\@varsubsetneqq"),em(ec,"ams","rel","≯","\\ngtr",!0),em(ec,"ams","rel","","\\@ngeqslant"),em(ec,"ams","rel","","\\@ngeqq"),em(ec,"ams","rel","⪈","\\gneq",!0),em(ec,"ams","rel","≩","\\gneqq",!0),em(ec,"ams","rel","","\\@gvertneqq"),em(ec,"ams","rel","⋧","\\gnsim",!0),em(ec,"ams","rel","⪊","\\gnapprox",!0),em(ec,"ams","rel","⊁","\\nsucc",!0),em(ec,"ams","rel","⋡","\\nsucceq",!0),em(ec,"ams","rel","⋩","\\succnsim",!0),em(ec,"ams","rel","⪺","\\succnapprox",!0),em(ec,"ams","rel","≆","\\ncong",!0),em(ec,"ams","rel","","\\@nshortparallel"),em(ec,"ams","rel","∦","\\nparallel",!0),em(ec,"ams","rel","⊯","\\nVDash",!0),em(ec,"ams","rel","⋫","\\ntriangleright"),em(ec,"ams","rel","⋭","\\ntrianglerighteq",!0),em(ec,"ams","rel","","\\@nsupseteqq"),em(ec,"ams","rel","⊋","\\supsetneq",!0),em(ec,"ams","rel","","\\@varsupsetneq"),em(ec,"ams","rel","⫌","\\supsetneqq",!0),em(ec,"ams","rel","","\\@varsupsetneqq"),em(ec,"ams","rel","⊮","\\nVdash",!0),em(ec,"ams","rel","⪵","\\precneqq",!0),em(ec,"ams","rel","⪶","\\succneqq",!0),em(ec,"ams","rel","","\\@nsubseteqq"),em(ec,"ams","bin","⊴","\\unlhd"),em(ec,"ams","bin","⊵","\\unrhd"),em(ec,"ams","rel","↚","\\nleftarrow",!0),em(ec,"ams","rel","↛","\\nrightarrow",!0),em(ec,"ams","rel","⇍","\\nLeftarrow",!0),em(ec,"ams","rel","⇏","\\nRightarrow",!0),em(ec,"ams","rel","↮","\\nleftrightarrow",!0),em(ec,"ams","rel","⇎","\\nLeftrightarrow",!0),em(ec,"ams","rel","△","\\vartriangle"),em(ec,"ams",ek,"ℏ","\\hslash"),em(ec,"ams",ek,"▽","\\triangledown"),em(ec,"ams",ek,"◊","\\lozenge"),em(ec,"ams",ek,"Ⓢ","\\circledS"),em(ec,"ams",ek,"\xae","\\circledR"),em(ep,"ams",ek,"\xae","\\circledR"),em(ec,"ams",ek,"∡","\\measuredangle",!0),em(ec,"ams",ek,"∄","\\nexists"),em(ec,"ams",ek,"℧","\\mho"),em(ec,"ams",ek,"Ⅎ","\\Finv",!0),em(ec,"ams",ek,"⅁","\\Game",!0),em(ec,"ams",ek,"‵","\\backprime"),em(ec,"ams",ek,"▲","\\blacktriangle"),em(ec,"ams",ek,"▼","\\blacktriangledown"),em(ec,"ams",ek,"■","\\blacksquare"),em(ec,"ams",ek,"⧫","\\blacklozenge"),em(ec,"ams",ek,"★","\\bigstar"),em(ec,"ams",ek,"∢","\\sphericalangle",!0),em(ec,"ams",ek,"∁","\\complement",!0),em(ec,"ams",ek,"\xf0","\\eth",!0),em(ep,eu,ek,"\xf0","\xf0"),em(ec,"ams",ek,"╱","\\diagup"),em(ec,"ams",ek,"╲","\\diagdown"),em(ec,"ams",ek,"□","\\square"),em(ec,"ams",ek,"□","\\Box"),em(ec,"ams",ek,"◊","\\Diamond"),em(ec,"ams",ek,"\xa5","\\yen",!0),em(ep,"ams",ek,"\xa5","\\yen",!0),em(ec,"ams",ek,"✓","\\checkmark",!0),em(ep,"ams",ek,"✓","\\checkmark"),em(ec,"ams",ek,"ℶ","\\beth",!0),em(ec,"ams",ek,"ℸ","\\daleth",!0),em(ec,"ams",ek,"ℷ","\\gimel",!0),em(ec,"ams",ek,"ϝ","\\digamma",!0),em(ec,"ams",ek,"ϰ","\\varkappa"),em(ec,"ams",ey,"┌","\\@ulcorner",!0),em(ec,"ams",eg,"┐","\\@urcorner",!0),em(ec,"ams",ey,"└","\\@llcorner",!0),em(ec,"ams",eg,"┘","\\@lrcorner",!0),em(ec,"ams","rel","≦","\\leqq",!0),em(ec,"ams","rel","⩽","\\leqslant",!0),em(ec,"ams","rel","⪕","\\eqslantless",!0),em(ec,"ams","rel","≲","\\lesssim",!0),em(ec,"ams","rel","⪅","\\lessapprox",!0),em(ec,"ams","rel","≊","\\approxeq",!0),em(ec,"ams","bin","⋖","\\lessdot"),em(ec,"ams","rel","⋘","\\lll",!0),em(ec,"ams","rel","≶","\\lessgtr",!0),em(ec,"ams","rel","⋚","\\lesseqgtr",!0),em(ec,"ams","rel","⪋","\\lesseqqgtr",!0),em(ec,"ams","rel","≑","\\doteqdot"),em(ec,"ams","rel","≓","\\risingdotseq",!0),em(ec,"ams","rel","≒","\\fallingdotseq",!0),em(ec,"ams","rel","∽","\\backsim",!0),em(ec,"ams","rel","⋍","\\backsimeq",!0),em(ec,"ams","rel","⫅","\\subseteqq",!0),em(ec,"ams","rel","⋐","\\Subset",!0),em(ec,"ams","rel","⊏","\\sqsubset",!0),em(ec,"ams","rel","≼","\\preccurlyeq",!0),em(ec,"ams","rel","⋞","\\curlyeqprec",!0),em(ec,"ams","rel","≾","\\precsim",!0),em(ec,"ams","rel","⪷","\\precapprox",!0),em(ec,"ams","rel","⊲","\\vartriangleleft"),em(ec,"ams","rel","⊴","\\trianglelefteq"),em(ec,"ams","rel","⊨","\\vDash",!0),em(ec,"ams","rel","⊪","\\Vvdash",!0),em(ec,"ams","rel","⌣","\\smallsmile"),em(ec,"ams","rel","⌢","\\smallfrown"),em(ec,"ams","rel","≏","\\bumpeq",!0),em(ec,"ams","rel","≎","\\Bumpeq",!0),em(ec,"ams","rel","≧","\\geqq",!0),em(ec,"ams","rel","⩾","\\geqslant",!0),em(ec,"ams","rel","⪖","\\eqslantgtr",!0),em(ec,"ams","rel","≳","\\gtrsim",!0),em(ec,"ams","rel","⪆","\\gtrapprox",!0),em(ec,"ams","bin","⋗","\\gtrdot"),em(ec,"ams","rel","⋙","\\ggg",!0),em(ec,"ams","rel","≷","\\gtrless",!0),em(ec,"ams","rel","⋛","\\gtreqless",!0),em(ec,"ams","rel","⪌","\\gtreqqless",!0),em(ec,"ams","rel","≖","\\eqcirc",!0),em(ec,"ams","rel","≗","\\circeq",!0),em(ec,"ams","rel","≜","\\triangleq",!0),em(ec,"ams","rel","∼","\\thicksim"),em(ec,"ams","rel","≈","\\thickapprox"),em(ec,"ams","rel","⫆","\\supseteqq",!0),em(ec,"ams","rel","⋑","\\Supset",!0),em(ec,"ams","rel","⊐","\\sqsupset",!0),em(ec,"ams","rel","≽","\\succcurlyeq",!0),em(ec,"ams","rel","⋟","\\curlyeqsucc",!0),em(ec,"ams","rel","≿","\\succsim",!0),em(ec,"ams","rel","⪸","\\succapprox",!0),em(ec,"ams","rel","⊳","\\vartriangleright"),em(ec,"ams","rel","⊵","\\trianglerighteq"),em(ec,"ams","rel","⊩","\\Vdash",!0),em(ec,"ams","rel","∣","\\shortmid"),em(ec,"ams","rel","∥","\\shortparallel"),em(ec,"ams","rel","≬","\\between",!0),em(ec,"ams","rel","⋔","\\pitchfork",!0),em(ec,"ams","rel","∝","\\varpropto"),em(ec,"ams","rel","◀","\\blacktriangleleft"),em(ec,"ams","rel","∴","\\therefore",!0),em(ec,"ams","rel","∍","\\backepsilon"),em(ec,"ams","rel","▶","\\blacktriangleright"),em(ec,"ams","rel","∵","\\because",!0),em(ec,"ams","rel","⋘","\\llless"),em(ec,"ams","rel","⋙","\\gggtr"),em(ec,"ams","bin","⊲","\\lhd"),em(ec,"ams","bin","⊳","\\rhd"),em(ec,"ams","rel","≂","\\eqsim",!0),em(ec,eu,"rel","⋈","\\Join"),em(ec,"ams","rel","≑","\\Doteq",!0),em(ec,"ams","bin","∔","\\dotplus",!0),em(ec,"ams","bin","∖","\\smallsetminus"),em(ec,"ams","bin","⋒","\\Cap",!0),em(ec,"ams","bin","⋓","\\Cup",!0),em(ec,"ams","bin","⩞","\\doublebarwedge",!0),em(ec,"ams","bin","⊟","\\boxminus",!0),em(ec,"ams","bin","⊞","\\boxplus",!0),em(ec,"ams","bin","⋇","\\divideontimes",!0),em(ec,"ams","bin","⋉","\\ltimes",!0),em(ec,"ams","bin","⋊","\\rtimes",!0),em(ec,"ams","bin","⋋","\\leftthreetimes",!0),em(ec,"ams","bin","⋌","\\rightthreetimes",!0),em(ec,"ams","bin","⋏","\\curlywedge",!0),em(ec,"ams","bin","⋎","\\curlyvee",!0),em(ec,"ams","bin","⊝","\\circleddash",!0),em(ec,"ams","bin","⊛","\\circledast",!0),em(ec,"ams","bin","⋅","\\centerdot"),em(ec,"ams","bin","⊺","\\intercal",!0),em(ec,"ams","bin","⋒","\\doublecap"),em(ec,"ams","bin","⋓","\\doublecup"),em(ec,"ams","bin","⊠","\\boxtimes",!0),em(ec,"ams","rel","⇢","\\dashrightarrow",!0),em(ec,"ams","rel","⇠","\\dashleftarrow",!0),em(ec,"ams","rel","⇇","\\leftleftarrows",!0),em(ec,"ams","rel","⇆","\\leftrightarrows",!0),em(ec,"ams","rel","⇚","\\Lleftarrow",!0),em(ec,"ams","rel","↞","\\twoheadleftarrow",!0),em(ec,"ams","rel","↢","\\leftarrowtail",!0),em(ec,"ams","rel","↫","\\looparrowleft",!0),em(ec,"ams","rel","⇋","\\leftrightharpoons",!0),em(ec,"ams","rel","↶","\\curvearrowleft",!0),em(ec,"ams","rel","↺","\\circlearrowleft",!0),em(ec,"ams","rel","↰","\\Lsh",!0),em(ec,"ams","rel","⇈","\\upuparrows",!0),em(ec,"ams","rel","↿","\\upharpoonleft",!0),em(ec,"ams","rel","⇃","\\downharpoonleft",!0),em(ec,eu,"rel","⊶","\\origof",!0),em(ec,eu,"rel","⊷","\\imageof",!0),em(ec,"ams","rel","⊸","\\multimap",!0),em(ec,"ams","rel","↭","\\leftrightsquigarrow",!0),em(ec,"ams","rel","⇉","\\rightrightarrows",!0),em(ec,"ams","rel","⇄","\\rightleftarrows",!0),em(ec,"ams","rel","↠","\\twoheadrightarrow",!0),em(ec,"ams","rel","↣","\\rightarrowtail",!0),em(ec,"ams","rel","↬","\\looparrowright",!0),em(ec,"ams","rel","↷","\\curvearrowright",!0),em(ec,"ams","rel","↻","\\circlearrowright",!0),em(ec,"ams","rel","↱","\\Rsh",!0),em(ec,"ams","rel","⇊","\\downdownarrows",!0),em(ec,"ams","rel","↾","\\upharpoonright",!0),em(ec,"ams","rel","⇂","\\downharpoonright",!0),em(ec,"ams","rel","⇝","\\rightsquigarrow",!0),em(ec,"ams","rel","⇝","\\leadsto"),em(ec,"ams","rel","⇛","\\Rrightarrow",!0),em(ec,"ams","rel","↾","\\restriction"),em(ec,eu,ek,"‘","`"),em(ec,eu,ek,"$","\\$"),em(ep,eu,ek,"$","\\$"),em(ep,eu,ek,"$","\\textdollar"),em(ec,eu,ek,"%","\\%"),em(ep,eu,ek,"%","\\%"),em(ec,eu,ek,"_","\\_"),em(ep,eu,ek,"_","\\_"),em(ep,eu,ek,"_","\\textunderscore"),em(ec,eu,ek,"∠","\\angle",!0),em(ec,eu,ek,"∞","\\infty",!0),em(ec,eu,ek,"′","\\prime"),em(ec,eu,ek,"△","\\triangle"),em(ec,eu,ek,"Γ","\\Gamma",!0),em(ec,eu,ek,"Δ","\\Delta",!0),em(ec,eu,ek,"Θ","\\Theta",!0),em(ec,eu,ek,"Λ","\\Lambda",!0),em(ec,eu,ek,"Ξ","\\Xi",!0),em(ec,eu,ek,"Π","\\Pi",!0),em(ec,eu,ek,"Σ","\\Sigma",!0),em(ec,eu,ek,"Υ","\\Upsilon",!0),em(ec,eu,ek,"Φ","\\Phi",!0),em(ec,eu,ek,"Ψ","\\Psi",!0),em(ec,eu,ek,"Ω","\\Omega",!0),em(ec,eu,ek,"A","Α"),em(ec,eu,ek,"B","Β"),em(ec,eu,ek,"E","Ε"),em(ec,eu,ek,"Z","Ζ"),em(ec,eu,ek,"H","Η"),em(ec,eu,ek,"I","Ι"),em(ec,eu,ek,"K","Κ"),em(ec,eu,ek,"M","Μ"),em(ec,eu,ek,"N","Ν"),em(ec,eu,ek,"O","Ο"),em(ec,eu,ek,"P","Ρ"),em(ec,eu,ek,"T","Τ"),em(ec,eu,ek,"X","Χ"),em(ec,eu,ek,"\xac","\\neg",!0),em(ec,eu,ek,"\xac","\\lnot"),em(ec,eu,ek,"⊤","\\top"),em(ec,eu,ek,"⊥","\\bot"),em(ec,eu,ek,"∅","\\emptyset"),em(ec,"ams",ek,"∅","\\varnothing"),em(ec,eu,ev,"α","\\alpha",!0),em(ec,eu,ev,"β","\\beta",!0),em(ec,eu,ev,"γ","\\gamma",!0),em(ec,eu,ev,"δ","\\delta",!0),em(ec,eu,ev,"ϵ","\\epsilon",!0),em(ec,eu,ev,"ζ","\\zeta",!0),em(ec,eu,ev,"η","\\eta",!0),em(ec,eu,ev,"θ","\\theta",!0),em(ec,eu,ev,"ι","\\iota",!0),em(ec,eu,ev,"κ","\\kappa",!0),em(ec,eu,ev,"λ","\\lambda",!0),em(ec,eu,ev,"μ","\\mu",!0),em(ec,eu,ev,"ν","\\nu",!0),em(ec,eu,ev,"ξ","\\xi",!0),em(ec,eu,ev,"ο","\\omicron",!0),em(ec,eu,ev,"π","\\pi",!0),em(ec,eu,ev,"ρ","\\rho",!0),em(ec,eu,ev,"σ","\\sigma",!0),em(ec,eu,ev,"τ","\\tau",!0),em(ec,eu,ev,"υ","\\upsilon",!0),em(ec,eu,ev,"ϕ","\\phi",!0),em(ec,eu,ev,"χ","\\chi",!0),em(ec,eu,ev,"ψ","\\psi",!0),em(ec,eu,ev,"ω","\\omega",!0),em(ec,eu,ev,"ε","\\varepsilon",!0),em(ec,eu,ev,"ϑ","\\vartheta",!0),em(ec,eu,ev,"ϖ","\\varpi",!0),em(ec,eu,ev,"ϱ","\\varrho",!0),em(ec,eu,ev,"ς","\\varsigma",!0),em(ec,eu,ev,"φ","\\varphi",!0),em(ec,eu,"bin","∗","*",!0),em(ec,eu,"bin","+","+"),em(ec,eu,"bin","−","-",!0),em(ec,eu,"bin","⋅","\\cdot",!0),em(ec,eu,"bin","∘","\\circ",!0),em(ec,eu,"bin","\xf7","\\div",!0),em(ec,eu,"bin","\xb1","\\pm",!0),em(ec,eu,"bin","\xd7","\\times",!0),em(ec,eu,"bin","∩","\\cap",!0),em(ec,eu,"bin","∪","\\cup",!0),em(ec,eu,"bin","∖","\\setminus",!0),em(ec,eu,"bin","∧","\\land"),em(ec,eu,"bin","∨","\\lor"),em(ec,eu,"bin","∧","\\wedge",!0),em(ec,eu,"bin","∨","\\vee",!0),em(ec,eu,ek,"√","\\surd"),em(ec,eu,ey,"⟨","\\langle",!0),em(ec,eu,ey,"∣","\\lvert"),em(ec,eu,ey,"∥","\\lVert"),em(ec,eu,eg,"?","?"),em(ec,eu,eg,"!","!"),em(ec,eu,eg,"⟩","\\rangle",!0),em(ec,eu,eg,"∣","\\rvert"),em(ec,eu,eg,"∥","\\rVert"),em(ec,eu,"rel","=","="),em(ec,eu,"rel",":",":"),em(ec,eu,"rel","≈","\\approx",!0),em(ec,eu,"rel","≅","\\cong",!0),em(ec,eu,"rel","≥","\\ge"),em(ec,eu,"rel","≥","\\geq",!0),em(ec,eu,"rel","←","\\gets"),em(ec,eu,"rel",">","\\gt",!0),em(ec,eu,"rel","∈","\\in",!0),em(ec,eu,"rel","","\\@not"),em(ec,eu,"rel","⊂","\\subset",!0),em(ec,eu,"rel","⊃","\\supset",!0),em(ec,eu,"rel","⊆","\\subseteq",!0),em(ec,eu,"rel","⊇","\\supseteq",!0),em(ec,"ams","rel","⊈","\\nsubseteq",!0),em(ec,"ams","rel","⊉","\\nsupseteq",!0),em(ec,eu,"rel","⊨","\\models"),em(ec,eu,"rel","←","\\leftarrow",!0),em(ec,eu,"rel","≤","\\le"),em(ec,eu,"rel","≤","\\leq",!0),em(ec,eu,"rel","<","\\lt",!0),em(ec,eu,"rel","→","\\rightarrow",!0),em(ec,eu,"rel","→","\\to"),em(ec,"ams","rel","≱","\\ngeq",!0),em(ec,"ams","rel","≰","\\nleq",!0),em(ec,eu,ew,"\xa0","\\ "),em(ec,eu,ew,"\xa0","\\space"),em(ec,eu,ew,"\xa0","\\nobreakspace"),em(ep,eu,ew,"\xa0","\\ "),em(ep,eu,ew,"\xa0"," "),em(ep,eu,ew,"\xa0","\\space"),em(ep,eu,ew,"\xa0","\\nobreakspace"),em(ec,eu,ew,null,"\\nobreak"),em(ec,eu,ew,null,"\\allowbreak"),em(ec,eu,ex,",",","),em(ec,eu,ex,";",";"),em(ec,"ams","bin","⊼","\\barwedge",!0),em(ec,"ams","bin","⊻","\\veebar",!0),em(ec,eu,"bin","⊙","\\odot",!0),em(ec,eu,"bin","⊕","\\oplus",!0),em(ec,eu,"bin","⊗","\\otimes",!0),em(ec,eu,ek,"∂","\\partial",!0),em(ec,eu,"bin","⊘","\\oslash",!0),em(ec,"ams","bin","⊚","\\circledcirc",!0),em(ec,"ams","bin","⊡","\\boxdot",!0),em(ec,eu,"bin","△","\\bigtriangleup"),em(ec,eu,"bin","▽","\\bigtriangledown"),em(ec,eu,"bin","†","\\dagger"),em(ec,eu,"bin","⋄","\\diamond"),em(ec,eu,"bin","⋆","\\star"),em(ec,eu,"bin","◃","\\triangleleft"),em(ec,eu,"bin","▹","\\triangleright"),em(ec,eu,ey,"{","\\{"),em(ep,eu,ek,"{","\\{"),em(ep,eu,ek,"{","\\textbraceleft"),em(ec,eu,eg,"}","\\}"),em(ep,eu,ek,"}","\\}"),em(ep,eu,ek,"}","\\textbraceright"),em(ec,eu,ey,"{","\\lbrace"),em(ec,eu,eg,"}","\\rbrace"),em(ec,eu,ey,"[","\\lbrack",!0),em(ep,eu,ek,"[","\\lbrack",!0),em(ec,eu,eg,"]","\\rbrack",!0),em(ep,eu,ek,"]","\\rbrack",!0),em(ec,eu,ey,"(","\\lparen",!0),em(ec,eu,eg,")","\\rparen",!0),em(ep,eu,ek,"<","\\textless",!0),em(ep,eu,ek,">","\\textgreater",!0),em(ec,eu,ey,"⌊","\\lfloor",!0),em(ec,eu,eg,"⌋","\\rfloor",!0),em(ec,eu,ey,"⌈","\\lceil",!0),em(ec,eu,eg,"⌉","\\rceil",!0),em(ec,eu,ek,"\\","\\backslash"),em(ec,eu,ek,"∣","|"),em(ec,eu,ek,"∣","\\vert"),em(ep,eu,ek,"|","\\textbar",!0),em(ec,eu,ek,"∥","\\|"),em(ec,eu,ek,"∥","\\Vert"),em(ep,eu,ek,"∥","\\textbardbl"),em(ep,eu,ek,"~","\\textasciitilde"),em(ep,eu,ek,"\\","\\textbackslash"),em(ep,eu,ek,"^","\\textasciicircum"),em(ec,eu,"rel","↑","\\uparrow",!0),em(ec,eu,"rel","⇑","\\Uparrow",!0),em(ec,eu,"rel","↓","\\downarrow",!0),em(ec,eu,"rel","⇓","\\Downarrow",!0),em(ec,eu,"rel","↕","\\updownarrow",!0),em(ec,eu,"rel","⇕","\\Updownarrow",!0),em(ec,eu,eb,"∐","\\coprod"),em(ec,eu,eb,"⋁","\\bigvee"),em(ec,eu,eb,"⋀","\\bigwedge"),em(ec,eu,eb,"⨄","\\biguplus"),em(ec,eu,eb,"⋂","\\bigcap"),em(ec,eu,eb,"⋃","\\bigcup"),em(ec,eu,eb,"∫","\\int"),em(ec,eu,eb,"∫","\\intop"),em(ec,eu,eb,"∬","\\iint"),em(ec,eu,eb,"∭","\\iiint"),em(ec,eu,eb,"∏","\\prod"),em(ec,eu,eb,"∑","\\sum"),em(ec,eu,eb,"⨂","\\bigotimes"),em(ec,eu,eb,"⨁","\\bigoplus"),em(ec,eu,eb,"⨀","\\bigodot"),em(ec,eu,eb,"∮","\\oint"),em(ec,eu,eb,"∯","\\oiint"),em(ec,eu,eb,"∰","\\oiiint"),em(ec,eu,eb,"⨆","\\bigsqcup"),em(ec,eu,eb,"∫","\\smallint"),em(ep,eu,ef,"…","\\textellipsis"),em(ec,eu,ef,"…","\\mathellipsis"),em(ep,eu,ef,"…","\\ldots",!0),em(ec,eu,ef,"…","\\ldots",!0),em(ec,eu,ef,"⋯","\\@cdots",!0),em(ec,eu,ef,"⋱","\\ddots",!0),em(ec,eu,ek,"⋮","\\varvdots"),em(ep,eu,ek,"⋮","\\varvdots"),em(ec,eu,ed,"ˊ","\\acute"),em(ec,eu,ed,"ˋ","\\grave"),em(ec,eu,ed,"\xa8","\\ddot"),em(ec,eu,ed,"~","\\tilde"),em(ec,eu,ed,"ˉ","\\bar"),em(ec,eu,ed,"˘","\\breve"),em(ec,eu,ed,"ˇ","\\check"),em(ec,eu,ed,"^","\\hat"),em(ec,eu,ed,"⃗","\\vec"),em(ec,eu,ed,"˙","\\dot"),em(ec,eu,ed,"˚","\\mathring"),em(ec,eu,ev,"","\\@imath"),em(ec,eu,ev,"","\\@jmath"),em(ec,eu,ek,"ı","ı"),em(ec,eu,ek,"ȷ","ȷ"),em(ep,eu,ek,"ı","\\i",!0),em(ep,eu,ek,"ȷ","\\j",!0),em(ep,eu,ek,"\xdf","\\ss",!0),em(ep,eu,ek,"\xe6","\\ae",!0),em(ep,eu,ek,"œ","\\oe",!0),em(ep,eu,ek,"\xf8","\\o",!0),em(ep,eu,ek,"\xc6","\\AE",!0),em(ep,eu,ek,"Œ","\\OE",!0),em(ep,eu,ek,"\xd8","\\O",!0),em(ep,eu,ed,"ˊ","\\'"),em(ep,eu,ed,"ˋ","\\`"),em(ep,eu,ed,"ˆ","\\^"),em(ep,eu,ed,"˜","\\~"),em(ep,eu,ed,"ˉ","\\="),em(ep,eu,ed,"˘","\\u"),em(ep,eu,ed,"˙","\\."),em(ep,eu,ed,"\xb8","\\c"),em(ep,eu,ed,"˚","\\r"),em(ep,eu,ed,"ˇ","\\v"),em(ep,eu,ed,"\xa8",'\\"'),em(ep,eu,ed,"˝","\\H"),em(ep,eu,ed,"◯","\\textcircled");var eS={"--":!0,"---":!0,"``":!0,"''":!0};em(ep,eu,ek,"–","--",!0),em(ep,eu,ek,"–","\\textendash"),em(ep,eu,ek,"—","---",!0),em(ep,eu,ek,"—","\\textemdash"),em(ep,eu,ek,"‘","`",!0),em(ep,eu,ek,"‘","\\textquoteleft"),em(ep,eu,ek,"’","'",!0),em(ep,eu,ek,"’","\\textquoteright"),em(ep,eu,ek,"“","``",!0),em(ep,eu,ek,"“","\\textquotedblleft"),em(ep,eu,ek,"”","''",!0),em(ep,eu,ek,"”","\\textquotedblright"),em(ec,eu,ek,"\xb0","\\degree",!0),em(ep,eu,ek,"\xb0","\\degree"),em(ep,eu,ek,"\xb0","\\textdegree",!0),em(ec,eu,ek,"\xa3","\\pounds"),em(ec,eu,ek,"\xa3","\\mathsterling",!0),em(ep,eu,ek,"\xa3","\\pounds"),em(ep,eu,ek,"\xa3","\\textsterling",!0),em(ec,"ams",ek,"✠","\\maltese"),em(ep,"ams",ek,"✠","\\maltese");for(var eM='0123456789/@."',ez=0;ez{if(_(e.classes)!==_(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var r=e.classes[0];if("mbin"===r||"mord"===r)return!1}for(var a in e.style)if(e.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;for(var n in t.style)if(t.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;return!0},e_=function(e){for(var t=0,r=0,a=0,n=0;nt&&(t=i.height),i.depth>r&&(r=i.depth),i.maxFontSize>a&&(a=i.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=a},ej=function(e,t,r,a){var n=new J(e,t,r,a);return e_(n),n},e$=(e,t,r,a)=>new J(e,t,r,a),eZ=function(e){var t=new I(e);return e_(t),t},eK=function(e){if("individualShift"===e.positionType){for(var t,r=e.children,a=[r[0]],n=-r[0].shift-r[0].elem.depth,i=n,s=1;s0)return eX(n,l,a,t,i.concat(h));if(o){if("boldsymbol"===o){var m,c,p="textord"!==r&&eY(n,"Math-BoldItalic",a).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"};m=p.fontName,c=[p.fontClass]}else s?(m=eQ[o].fontName,c=[o]):(m=eJ(o,t.fontWeight,t.fontShape),c=[o,t.fontWeight,t.fontShape]);if(eY(n,m,a).metrics)return eX(n,m,a,t,i.concat(c));if(eS.hasOwnProperty(n)&&"Typewriter"===m.slice(0,10)){for(var u=[],d=0;d{var r=ej(["mspace"],[],t),a=X(e,t);return r.style.marginRight=W(a),r},staticSvg:function(e,t){var[r,a,n]=e0[e],i=e$(["overlay"],[new ea([new en(r)],{width:W(a),height:W(n),style:"width:"+W(a),viewBox:"0 0 "+1e3*a+" "+1e3*n,preserveAspectRatio:"xMinYMin"})],t);return i.height=n,i.style.height=W(n),i.style.width=W(a),i},svgData:e0,tryCombineChars:e=>{for(var t=0;t{var r=t.classes[0],a=e.classes[0];"mbin"===r&&u.contains(ts,a)?t.classes[0]="mord":"mbin"===a&&u.contains(ti,r)&&(e.classes[0]="mord")},{node:m},c,p),tm(n,(e,t)=>{var r=tu(t),a=tu(e),n=r&&a?e.hasClass("mtight")?e3[r][a]:e7[r][a]:null;if(n)return e1.makeGlue(n,l)},{node:m},c,p),n},tm=function e(t,r,a,n,i){n&&t.push(n);for(var s=0;s{t.splice(n+1,0,e),s++}}n&&t.pop()},tc=function(e){return e instanceof I||e instanceof Q||e instanceof J&&e.hasClass("enclosing")?e:null},tp=function e(t,r){var a=tc(t);if(a){var n=a.children;if(n.length){if("right"===r)return e(n[n.length-1],"right");else if("left"===r)return e(n[0],"left")}}return t},tu=function(e,t){return e?(t&&(e=tp(e,t)),tl[e.classes[0]]||null):null},td=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return tn(t.concat(r))},tg=function(e,t,r){if(!e)return tn();if(e2[e.type]){var a=e2[e.type](e,t);if(r&&t.size!==r.size){a=tn(t.sizingClasses(r),[a],t);var n=t.sizeMultiplier/r.sizeMultiplier;a.height*=n,a.depth*=n}return a}throw new i("Got group of unknown type: '"+e.type+"'")};function tf(e,t){var r=tn(["base"],e,t),a=tn(["strut"]);return a.style.height=W(r.height+r.depth),r.depth&&(a.style.verticalAlign=W(-r.depth)),r.children.unshift(a),r}function tv(e,t){var r,a,n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);var i=th(e,t,"root");2===i.length&&i[1].hasClass("tag")&&(r=i.pop());for(var s=[],o=[],l=0;l0&&(s.push(tf(o,t)),o=[]),s.push(i[l]));o.length>0&&s.push(tf(o,t)),n?((a=tf(th(n,t,!0))).classes=["tag"],s.push(a)):r&&s.push(r);var m=tn(["katex-html"],s);if(m.setAttribute("aria-hidden","true"),a){var c=a.children[0];c.style.height=W(m.height+m.depth),m.depth&&(c.style.verticalAlign=W(-m.depth))}return m}function tb(e){return new I(e)}class ty{constructor(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=_(this.classes));for(var r=0;r0&&(e+=' class ="'+u.escape(_(this.classes))+'"'),e+=">";for(var r=0;r")}toText(){return this.children.map(e=>e.toText()).join("")}}class tx{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return u.escape(this.toText())}toText(){return this.text}}class tw{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",W(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var tk={MathNode:ty,TextNode:tx,SpaceNode:tw,newDocumentFragment:tb},tS=function(e,t,r){return eh[t][e]&&eh[t][e].replace&&55349!==e.charCodeAt(0)&&!(eS.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.slice(4,6)||r.font&&"tt"===r.font.slice(4,6)))&&(e=eh[t][e].replace),new tk.TextNode(e)},tM=function(e){return 1===e.length?e[0]:new tk.MathNode("mrow",e)},tz=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"sans-serif-bold-italic";else if("textit"===t.fontShape)return"sans-serif-italic";else if("textbf"===t.fontWeight)return"bold-sans-serif";else return"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var r=t.font;if(!r||"mathnormal"===r)return null;var a=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===r)return"bold";if("mathbb"===r)return"double-struck";if("mathsfit"===r)return"sans-serif-italic";else if("mathfrak"===r)return"fraktur";else if("mathscr"===r||"mathcal"===r)return"script";else if("mathsf"===r)return"sans-serif";else if("mathtt"===r)return"monospace";var n=e.text;return u.contains(["\\imath","\\jmath"],n)?null:(eh[a][n]&&eh[a][n].replace&&(n=eh[a][n].replace),E(n,e1.fontMap[r].fontName,a))?e1.fontMap[r].variant:null};function tA(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof tx&&"."===t.text}if("mo"!==e.type||1!==e.children.length||"true"!==e.getAttribute("separator")||"0em"!==e.getAttribute("lspace")||"0em"!==e.getAttribute("rspace"))return!1;var r=e.children[0];return r instanceof tx&&","===r.text}var tT=function(e,t,r){if(1===e.length){var a,n=tC(e[0],t);return r&&n instanceof ty&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var i=[],s=0;s=1&&("mn"===a.type||tA(a))){var l=o.children[0];l instanceof ty&&"mn"===l.type&&(l.children=[...a.children,...l.children],i.pop())}else if("mi"===a.type&&1===a.children.length){var h=a.children[0];if(h instanceof tx&&"̸"===h.text&&("mo"===o.type||"mi"===o.type||"mn"===o.type)){var m=o.children[0];m instanceof tx&&m.text.length>0&&(m.text=m.text.slice(0,1)+"̸"+m.text.slice(1),i.pop())}}}i.push(o),a=o}return i},tB=function(e,t,r){return tM(tT(e,t,r))},tC=function(e,t){if(!e)return new tk.MathNode("mrow");if(e9[e.type])return e9[e.type](e,t);throw new i("Got group of unknown type: '"+e.type+"'")};function tq(e,t,r,a,n){var i,s=tT(e,r);i=1===s.length&&s[0]instanceof ty&&u.contains(["mrow","mtable"],s[0].type)?s[0]:new tk.MathNode("mrow",s);var o=new tk.MathNode("annotation",[new tk.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var l=new tk.MathNode("semantics",[i,o]),h=new tk.MathNode("math",[l]);return h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&h.setAttribute("display","block"),e1.makeSpan([n?"katex":"katex-mathml"],[h])}var tN=function(e){return new F({style:e.displayMode?M.DISPLAY:M.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},tI=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=e1.makeSpan(r,[e])}return e},tH=function(e,t,r){var a,n=tN(r);if("mathml"===r.output)return tq(e,t,n,r.displayMode,!0);if("html"===r.output){var i=tv(e,n);a=e1.makeSpan(["katex"],[i])}else{var s=tq(e,t,n,r.displayMode,!1),o=tv(e,n);a=e1.makeSpan(["katex"],[s,o])}return tI(a,r)},tR=function(e,t,r){var a=tv(e,tN(r));return tI(e1.makeSpan(["katex"],[a]),r)},tO={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},tE={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},tL={encloseSpan:function(e,t,r,a,n){var i,s=e.height+e.depth+r+a;if(/fbox|color|angl/.test(t)){if(i=e1.makeSpan(["stretchy",t],[],n),"fbox"===t){var o=n.color&&n.getColor();o&&(i.style.borderColor=o)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new ei({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new ei({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var h=new ea(l,{width:"100%",height:W(s)});i=e1.makeSvgSpan([],[h],n)}return i.height=s,i.style.height=W(s),i},mathMLnode:function(e){var t=new tk.MathNode("mo",[new tk.TextNode(tO[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},svgSpan:function(e,t){var{span:r,minWidth:a,height:n}=function(){var r=4e5,a=e.label.slice(1);if(u.contains(["widehat","widecheck","widetilde","utilde"],a)){var n,i,s,o,l="ordgroup"===(o=e.base).type?o.body.length:1;if(l>5)"widehat"===a||"widecheck"===a?(n=420,r=2364,s=.42,i=a+"4"):(n=312,r=2340,s=.34,i="tilde4");else{var h=[1,1,2,2,3,3][l];"widehat"===a||"widecheck"===a?(r=[0,1062,2364,2364,2364][h],n=[0,239,300,360,420][h],s=[0,.24,.3,.3,.36,.42][h],i=a+h):(r=[0,600,1033,2339,2340][h],n=[0,260,286,306,312][h],s=[0,.26,.286,.3,.306,.34][h],i="tilde"+h)}var m=new ea([new en(i)],{width:"100%",height:W(s),viewBox:"0 0 "+r+" "+n,preserveAspectRatio:"none"});return{span:e1.makeSvgSpan([],[m],t),minWidth:0,height:s}}var c,p,d=[],g=tE[a],[f,v,b]=g,y=b/1e3,x=f.length;if(1===x)c=["hide-tail"],p=[g[3]];else if(2===x)c=["halfarrow-left","halfarrow-right"],p=["xMinYMin","xMaxYMin"];else if(3===x)c=["brace-left","brace-center","brace-right"],p=["xMinYMin","xMidYMin","xMaxYMin"];else throw Error("Correct katexImagesData or update code here to support\n "+x+" children.");for(var w=0;w0&&(r.style.minWidth=W(a)),r}};function tD(e,t){if(!e||e.type!==t)throw Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function tV(e){var t=tP(e);if(!t)throw Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function tP(e){return e&&("atom"===e.type||el.hasOwnProperty(e.type))?e:null}var tF=(e,t)=>{e&&"supsub"===e.type?(o=(l=tD(e.base,"accent")).base,e.base=o,h=function(e){if(e instanceof J)return e;throw Error("Expected span but got "+String(e)+".")}(tg(e,t)),e.base=l):o=(l=tD(e,"accent")).base;var r=tg(o,t.havingCrampedStyle()),a=l.isShifty&&u.isCharacterBox(o),n=0;a&&(n=es(tg(u.getBaseElem(o),t.havingCrampedStyle())).skew);var i="\\c"===l.label,s=i?r.height+r.depth:Math.min(r.height,t.fontMetrics().xHeight);if(l.isStretchy)p=tL.svgSpan(l,t),p=e1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:n>0?{width:"calc(100% - "+W(2*n)+")",marginLeft:W(2*n)}:void 0}]},t);else{"\\vec"===l.label?(m=e1.staticSvg("vec",t),c=e1.svgData.vec[1]):((m=es(m=e1.makeOrd({mode:l.mode,text:l.label},t,"textord"))).italic=0,c=m.width,i&&(s+=m.depth));var o,l,h,m,c,p=e1.makeSpan(["accent-body"],[m]),d="\\textcircled"===l.label;d&&(p.classes.push("accent-full"),s=r.height);var g=n;d||(g-=c/2),p.style.left=W(g),"\\textcircled"===l.label&&(p.style.top=".2em"),p=e1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:-s},{type:"elem",elem:p}]},t)}var f=e1.makeSpan(["mord","accent"],[p],t);return h?(h.children[0]=f,h.height=Math.max(f.height,h.height),h.classes[0]="mord",h):f},tG=(e,t)=>{var r=e.isStretchy?tL.mathMLnode(e.label):new tk.MathNode("mo",[tS(e.label,e.mode)]),a=new tk.MathNode("mover",[tC(e.base,t),r]);return a.setAttribute("accent","true"),a},tU=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));te({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=tr(t[0]),a=!tU.test(e.funcName),n=!a||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:n,base:r}},htmlBuilder:tF,mathmlBuilder:tG}),te({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],a=e.parser.mode;return"math"===a&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:tF,mathmlBuilder:tG}),te({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"accentUnder",mode:r.mode,label:a,base:n}},htmlBuilder:(e,t)=>{var r=tg(e.base,t),a=tL.svgSpan(e,t),n=.12*("\\utilde"===e.label),i=e1.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:r}]},t);return e1.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=tL.mathMLnode(e.label),a=new tk.MathNode("munder",[tC(e.base,t),r]);return a.setAttribute("accentunder","true"),a}});var tY=e=>{var t=new tk.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};te({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a,funcName:n}=e;return{type:"xArrow",mode:a.mode,label:n,body:t[0],below:r[0]}},htmlBuilder(e,t){var r,a,n=t.style,i=t.havingStyle(n.sup()),s=e1.wrapFragment(tg(e.body,i,t),t),o="\\x"===e.label.slice(0,2)?"x":"cd";s.classes.push(o+"-arrow-pad"),e.below&&(i=t.havingStyle(n.sub()),(r=e1.wrapFragment(tg(e.below,i,t),t)).classes.push(o+"-arrow-pad"));var l=tL.svgSpan(e,t),h=-t.fontMetrics().axisHeight+.5*l.height,m=-t.fontMetrics().axisHeight-.5*l.height-.111;if((s.depth>.25||"\\xleftequilibrium"===e.label)&&(m-=s.depth),r){var c=-t.fontMetrics().axisHeight+r.height+.5*l.height+.111;a=e1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:m},{type:"elem",elem:l,shift:h},{type:"elem",elem:r,shift:c}]},t)}else a=e1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:m},{type:"elem",elem:l,shift:h}]},t);return a.children[0].children[0].children[1].classes.push("svg-align"),e1.makeSpan(["mrel","x-arrow"],[a],t)},mathmlBuilder(e,t){var r,a=tL.mathMLnode(e.label);if(a.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var n=tY(tC(e.body,t));if(e.below){var i=tY(tC(e.below,t));r=new tk.MathNode("munderover",[a,i,n])}else r=new tk.MathNode("mover",[a,n])}else if(e.below){var s=tY(tC(e.below,t));r=new tk.MathNode("munder",[a,s])}else r=tY(),r=new tk.MathNode("mover",[a,r]);return r}});var tX=e1.makeSpan;function tW(e,t){var r=th(e.body,t,!0);return tX([e.mclass],r,t)}function t_(e,t){var r,a=tT(e.body,t);return"minner"===e.mclass?r=new tk.MathNode("mpadded",a):"mord"===e.mclass?e.isCharacterBox?(r=a[0]).type="mi":r=new tk.MathNode("mi",a):(e.isCharacterBox?(r=a[0]).type="mo":r=new tk.MathNode("mo",a),"mbin"===e.mclass?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0em"):"minner"===e.mclass&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}te({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+a.slice(5),body:ta(n),isCharacterBox:u.isCharacterBox(n)}},htmlBuilder:tW,mathmlBuilder:t_});var tj=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"===t.type&&("bin"===t.family||"rel"===t.family)?"m"+t.family:"mord"};te({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:tj(t[0]),body:ta(t[1]),isCharacterBox:u.isCharacterBox(t[1])}}}),te({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var r,{parser:a,funcName:n}=e,i=t[1],s=t[0];r="\\stackrel"!==n?tj(i):"mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==n,body:ta(i)},l={type:"supsub",mode:s.mode,base:o,sup:"\\underset"===n?null:s,sub:"\\underset"===n?s:null};return{type:"mclass",mode:a.mode,mclass:r,body:[l],isCharacterBox:u.isCharacterBox(l)}},htmlBuilder:tW,mathmlBuilder:t_}),te({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:tj(t[0]),body:ta(t[0])}},htmlBuilder(e,t){var r=th(e.body,t,!0),a=e1.makeSpan([e.mclass],r,t);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(e,t){var r=tT(e.body,t),a=new tk.MathNode("mstyle",r);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var t$={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},tZ=()=>({type:"styling",body:[],mode:"math",style:"display"}),tK=e=>"textord"===e.type&&"@"===e.text,tJ=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;te({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"cdlabel",mode:r.mode,side:a.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),a=e1.wrapFragment(tg(e.label,r,t),t);return a.classes.push("cd-label-"+e.side),a.style.bottom=W(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(e,t){var r=new tk.MathNode("mrow",[tC(e.label,t)]);return(r=new tk.MathNode("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new tk.MathNode("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),te({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=e1.wrapFragment(tg(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:(e,t)=>new tk.MathNode("mrow",[tC(e.fragment,t)])}),te({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var r,{parser:a}=e,n=tD(t[0],"ordgroup").body,s="",o=0;o=1114111)throw new i("\\@char with invalid code point "+s);return l<=65535?r=String.fromCharCode(l):(l-=65536,r=String.fromCharCode((l>>10)+55296,(1023&l)+56320)),{type:"textord",mode:a.mode,text:r}}});var tQ=(e,t)=>{var r=th(e.body,t.withColor(e.color),!1);return e1.makeFragment(r)},t0=(e,t)=>{var r=tT(e.body,t.withColor(e.color)),a=new tk.MathNode("mstyle",r);return a.setAttribute("mathcolor",e.color),a};te({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,a=tD(t[0],"color-token").color,n=t[1];return{type:"color",mode:r.mode,color:a,body:ta(n)}},htmlBuilder:tQ,mathmlBuilder:t0}),te({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:a}=e,n=tD(t[0],"color-token").color;r.gullet.macros.set("\\current@color",n);var i=r.parseExpression(!0,a);return{type:"color",mode:r.mode,color:n,body:i}},htmlBuilder:tQ,mathmlBuilder:t0}),te({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:a}=e,n="["===a.gullet.future().text?a.parseSizeGroup(!0):null,i=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:i,size:n&&tD(n,"size").value}},htmlBuilder(e,t){var r=e1.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=W(X(e.size,t)))),r},mathmlBuilder(e,t){var r=new tk.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",W(X(e.size,t)))),r}});var t1={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},t4=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new i("Expected a control sequence",e);return t},t5=(e,t,r,a)=>{var n=e.gullet.macros.get(r.text);null==n&&(r.noexpand=!0,n={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,n,a)};te({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var a=t.fetch();if(t1[a.text])return("\\global"===r||"\\\\globallong"===r)&&(a.text=t1[a.text]),tD(t.parseFunction(),"internal");throw new i("Invalid token after macro prefix",a)}}),te({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var t,{parser:r,funcName:a}=e,n=r.gullet.popToken(),s=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(s))throw new i("Expected a control sequence",n);for(var o=0,l=[[]];"{"!==r.gullet.future().text;)if("#"===(n=r.gullet.popToken()).text){if("{"===r.gullet.future().text){t=r.gullet.future(),l[o].push("{");break}if(n=r.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new i('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==o+1)throw new i('Argument number "'+n.text+'" out of order');o++,l.push([])}else if("EOF"===n.text)throw new i("Expected a macro definition");else l[o].push(n.text);var{tokens:h}=r.gullet.consumeArg();return t&&h.unshift(t),("\\edef"===a||"\\xdef"===a)&&(h=r.gullet.expandTokens(h)).reverse(),r.gullet.macros.set(s,{tokens:h,numArgs:o,delimiters:l},a===t1[a]),{type:"internal",mode:r.mode}}}),te({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var t,{parser:r,funcName:a}=e,n=t4(r.gullet.popToken());r.gullet.consumeSpaces();var i=("="===(t=r.gullet.popToken()).text&&" "===(t=r.gullet.popToken()).text&&(t=r.gullet.popToken()),t);return t5(r,n,i,"\\\\globallet"===a),{type:"internal",mode:r.mode}}}),te({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=t4(t.gullet.popToken()),n=t.gullet.popToken(),i=t.gullet.popToken();return t5(t,a,i,"\\\\globalfuture"===r),t.gullet.pushToken(i),t.gullet.pushToken(n),{type:"internal",mode:t.mode}}});var t6=function(e,t,r){var a=E(eh.math[e]&&eh.math[e].replace||e,t,r);if(!a)throw Error("Unsupported symbol "+e+" and font size "+t+".");return a},t7=function(e,t,r,a){var n=r.havingBaseStyle(t),i=e1.makeSpan(a.concat(n.sizingClasses(r)),[e],r),s=n.sizeMultiplier/r.sizeMultiplier;return i.height*=s,i.depth*=s,i.maxFontSize=n.sizeMultiplier,i},t3=function(e,t,r){var a=t.havingBaseStyle(r),n=(1-t.sizeMultiplier/a.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=W(n),e.height-=n,e.depth+=n},t8=function(e,t,r,a,n,i){var s=t7(e1.makeSymbol(e,"Main-Regular",n,a),t,a,i);return r&&t3(s,a,t),s},t2=function(e,t,r,a,n,i){var s=e1.makeSymbol(e,"Size"+t+"-Regular",n,a),o=t7(e1.makeSpan(["delimsizing","size"+t],[s],a),M.TEXT,a,i);return r&&t3(o,a,M.TEXT),o},t9=function(e,t,r){return{type:"elem",elem:e1.makeSpan(["delimsizinginner","Size1-Regular"===t?"delim-size1":"delim-size4"],[e1.makeSpan([],[e1.makeSymbol(e,t,r)])])}},re=function(e,t,r){var a=H["Size4-Regular"][e.charCodeAt(0)]?H["Size4-Regular"][e.charCodeAt(0)][4]:H["Size1-Regular"][e.charCodeAt(0)][4],n=new ea([new en("inner",C(e,Math.round(1e3*t)))],{width:W(a),height:W(t),style:"width:"+W(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),i=e1.makeSvgSpan([],[n],r);return i.height=t,i.style.height=W(t),i.style.width=W(a),{type:"elem",elem:i}},rt={type:"kern",size:-.008},rr=["|","\\lvert","\\rvert","\\vert"],ra=["\\|","\\lVert","\\rVert","\\Vert"],rn=function(e,t,r,a,n,i){var s,o,l,h,m="",c=0;s=l=h=e,o=null;var p="Size1-Regular";"\\uparrow"===e?l=h="⏐":"\\Uparrow"===e?l=h="‖":"\\downarrow"===e?s=l="⏐":"\\Downarrow"===e?s=l="‖":"\\updownarrow"===e?(s="\\uparrow",l="⏐",h="\\downarrow"):"\\Updownarrow"===e?(s="\\Uparrow",l="‖",h="\\Downarrow"):u.contains(rr,e)?(l="∣",m="vert",c=333):u.contains(ra,e)?(l="∥",m="doublevert",c=556):"["===e||"\\lbrack"===e?(s="⎡",l="⎢",h="⎣",p="Size4-Regular",m="lbrack",c=667):"]"===e||"\\rbrack"===e?(s="⎤",l="⎥",h="⎦",p="Size4-Regular",m="rbrack",c=667):"\\lfloor"===e||"⌊"===e?(l=s="⎢",h="⎣",p="Size4-Regular",m="lfloor",c=667):"\\lceil"===e||"⌈"===e?(s="⎡",l=h="⎢",p="Size4-Regular",m="lceil",c=667):"\\rfloor"===e||"⌋"===e?(l=s="⎥",h="⎦",p="Size4-Regular",m="rfloor",c=667):"\\rceil"===e||"⌉"===e?(s="⎤",l=h="⎥",p="Size4-Regular",m="rceil",c=667):"("===e||"\\lparen"===e?(s="⎛",l="⎜",h="⎝",p="Size4-Regular",m="lparen",c=875):")"===e||"\\rparen"===e?(s="⎞",l="⎟",h="⎠",p="Size4-Regular",m="rparen",c=875):"\\{"===e||"\\lbrace"===e?(s="⎧",o="⎨",h="⎩",l="⎪",p="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(s="⎫",o="⎬",h="⎭",l="⎪",p="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(s="⎧",h="⎩",l="⎪",p="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(s="⎫",h="⎭",l="⎪",p="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(s="⎧",h="⎭",l="⎪",p="Size4-Regular"):("\\rmoustache"===e||"⎱"===e)&&(s="⎫",h="⎩",l="⎪",p="Size4-Regular");var d=t6(s,p,n),g=d.height+d.depth,f=t6(l,p,n),v=f.height+f.depth,b=t6(h,p,n),y=b.height+b.depth,x=0,w=1;if(null!==o){var k=t6(o,p,n);x=k.height+k.depth,w=2}var S=g+y+x,z=Math.max(0,Math.ceil((t-S)/(w*v))),A=S+z*w*v,T=a.fontMetrics().axisHeight;r&&(T*=a.sizeMultiplier);var B=A/2-T,C=[];if(m.length>0){var q=Math.round(1e3*A),I=N(m,Math.round(1e3*(A-g-y))),H=new en(m,I),R=(c/1e3).toFixed(3)+"em",O=(q/1e3).toFixed(3)+"em",E=new ea([H],{width:R,height:O,viewBox:"0 0 "+c+" "+q}),L=e1.makeSvgSpan([],[E],a);L.height=q/1e3,L.style.width=R,L.style.height=O,C.push({type:"elem",elem:L})}else{if(C.push(t9(h,p,n)),C.push(rt),null===o)C.push(re(l,A-g-y+.016,a));else{var D=(A-g-y-x)/2+.016;C.push(re(l,D,a)),C.push(rt),C.push(t9(o,p,n)),C.push(rt),C.push(re(l,D,a))}C.push(rt),C.push(t9(s,p,n))}var V=a.havingBaseStyle(M.TEXT),P=e1.makeVList({positionType:"bottom",positionData:B,children:C},V);return t7(e1.makeSpan(["delimsizing","mult"],[P],V),M.TEXT,a,i)},ri=function(e,t,r,a,n){var i=B(e,a,r),s=new ea([new en(e,i)],{width:"400em",height:W(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return e1.makeSvgSpan(["hide-tail"],[s],n)},rs=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],ro=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],rl=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],rh=[0,1.2,1.8,2.4,3],rm=[{type:"small",style:M.SCRIPTSCRIPT},{type:"small",style:M.SCRIPT},{type:"small",style:M.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],rc=[{type:"small",style:M.SCRIPTSCRIPT},{type:"small",style:M.SCRIPT},{type:"small",style:M.TEXT},{type:"stack"}],rp=[{type:"small",style:M.SCRIPTSCRIPT},{type:"small",style:M.SCRIPT},{type:"small",style:M.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],ru=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw Error("Add support for delim type '"+e.type+"' here.")},rd=function(e,t,r,a){for(var n=Math.min(2,3-a.style.size),i=n;it)return r[i]}return r[r.length-1]},rg=function(e,t,r,a,n,i){"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":(">"===e||"\\gt"===e||"⟩"===e)&&(e="\\rangle");var s=u.contains(rl,e)?rm:u.contains(rs,e)?rp:rc,o=rd(e,t,s,a);return"small"===o.type?t8(e,o.style,r,a,n,i):"large"===o.type?t2(e,o.size,r,a,n,i):rn(e,t,r,a,n,i)},rf={sqrtImage:function(e,t){var r,a,n=t.havingBaseSizing(),i=rd("\\surd",e*n.sizeMultiplier,rp,n),s=n.sizeMultiplier,o=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,h=0,m=0;return"small"===i.type?(m=1e3+1e3*o+80,e<1?s=1:e<1.4&&(s=.7),l=(1+o+.08)/s,h=(1+o)/s,(r=ri("sqrtMain",l,m,o,t)).style.minWidth="0.853em",a=.833/s):"large"===i.type?(m=1080*rh[i.size],h=(rh[i.size]+o)/s,l=(rh[i.size]+o+.08)/s,(r=ri("sqrtSize"+i.size,l,m,o,t)).style.minWidth="1.02em",a=1/s):(l=e+o+.08,h=e+o,(r=ri("sqrtTall",l,m=Math.floor(1e3*e+o)+80,o,t)).style.minWidth="0.742em",a=1.056),r.height=h,r.style.height=W(l),{span:r,advanceWidth:a,ruleWidth:(t.fontMetrics().sqrtRuleThickness+o)*s}},sizedDelim:function(e,t,r,a,n){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":(">"===e||"\\gt"===e||"⟩"===e)&&(e="\\rangle"),u.contains(rs,e)||u.contains(rl,e))return t2(e,t,!1,r,a,n);if(u.contains(ro,e))return rn(e,rh[t],!1,r,a,n);throw new i("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:rh,customSizedDelim:rg,leftRightDelim:function(e,t,r,a,n,i){var s=a.fontMetrics().axisHeight*a.sizeMultiplier,o=5/a.fontMetrics().ptPerEm,l=Math.max(t-s,r+s);return rg(e,Math.max(l/500*901,2*l-o),!0,a,n,i)}},rv={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},rb=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function ry(e,t){var r=tP(e);if(r&&u.contains(rb,r.text))return r;if(r)throw new i("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e);throw new i("Invalid delimiter type '"+e.type+"'",e)}function rx(e){if(!e.body)throw Error("Bug: The leftright ParseNode wasn't fully parsed.")}te({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=ry(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:rv[e.funcName].size,mclass:rv[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>"."===e.delim?e1.makeSpan([e.mclass]):rf.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(tS(e.delim,e.mode));var r=new tk.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var a=W(rf.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",a),r.setAttribute("maxsize",a),r}}),te({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new i("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:ry(t[0],e).text,color:r}}}),te({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=ry(t[0],e),a=e.parser;++a.leftrightDepth;var n=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var i=tD(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:n,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{rx(e);for(var r,a,n=th(e.body,t,!0,["mopen","mclose"]),i=0,s=0,o=!1,l=0;l{rx(e);var r=tT(e.body,t);if("."!==e.left){var a=new tk.MathNode("mo",[tS(e.left,e.mode)]);a.setAttribute("fence","true"),r.unshift(a)}if("."!==e.right){var n=new tk.MathNode("mo",[tS(e.right,e.mode)]);n.setAttribute("fence","true"),e.rightColor&&n.setAttribute("mathcolor",e.rightColor),r.push(n)}return tM(r)}}),te({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=ry(t[0],e);if(!e.parser.leftrightDepth)throw new i("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if("."===e.delim)r=td(t,[]);else{r=rf.sizedDelim(e.delim,1,t,e.mode,[]);var a={delim:e.delim,options:t};r.isMiddle=a}return r},mathmlBuilder:(e,t)=>{var r="\\vert"===e.delim||"|"===e.delim?tS("|","text"):tS(e.delim,e.mode),a=new tk.MathNode("mo",[r]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var rw=(e,t)=>{var r,a,n=e1.wrapFragment(tg(e.body,t),t),i=e.label.slice(1),s=t.sizeMultiplier,o=0,l=u.isCharacterBox(e.body);if("sout"===i)(r=e1.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/s,o=-.5*t.fontMetrics().xHeight;else if("phase"===i){var h=X({number:.6,unit:"pt"},t),m=X({number:.35,unit:"ex"},t);s/=t.havingBaseSizing().sizeMultiplier;var c=n.height+n.depth+h+m;n.style.paddingLeft=W(c/2+h);var p=Math.floor(1e3*c*s),d=new ea([new en("phase","M400000 "+p+" H0 L"+p/2+" 0 l65 45 L145 "+(p-80)+" H400000z")],{width:"400em",height:W(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});(r=e1.makeSvgSpan(["hide-tail"],[d],t)).style.height=W(c),o=n.depth+h+m}else{/cancel/.test(i)?l||n.classes.push("cancel-pad"):"angl"===i?n.classes.push("anglpad"):n.classes.push("boxpad");var g=0,f=0,v=0;/box/.test(i)?(v=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),f=g=t.fontMetrics().fboxsep+("colorbox"===i?0:v)):"angl"===i?(g=4*(v=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),f=Math.max(0,.25-n.depth)):f=g=.2*!!l,r=tL.encloseSpan(n,i,g,f,t),/fbox|boxed|fcolorbox/.test(i)?(r.style.borderStyle="solid",r.style.borderWidth=W(v)):"angl"===i&&.049!==v&&(r.style.borderTopWidth=W(v),r.style.borderRightWidth=W(v)),o=n.depth+f,e.backgroundColor&&(r.style.backgroundColor=e.backgroundColor,e.borderColor&&(r.style.borderColor=e.borderColor))}if(e.backgroundColor)a=e1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:o},{type:"elem",elem:n,shift:0}]},t);else{var b=/cancel|phase/.test(i)?["svg-align"]:[];a=e1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:r,shift:o,wrapperClasses:b}]},t)}return(/cancel/.test(i)&&(a.height=n.height,a.depth=n.depth),/cancel/.test(i)&&!l)?e1.makeSpan(["mord","cancel-lap"],[a],t):e1.makeSpan(["mord"],[a],t)},rk=(e,t)=>{var r=0,a=new tk.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[tC(e.body,t)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*r+"pt"),a.setAttribute("height","+"+2*r+"pt"),a.setAttribute("lspace",r+"pt"),a.setAttribute("voffset",r+"pt"),"\\fcolorbox"===e.label){var n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);a.setAttribute("style","border: "+n+"em solid "+String(e.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&a.setAttribute("mathbackground",e.backgroundColor),a};te({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:a,funcName:n}=e,i=tD(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:a.mode,label:n,backgroundColor:i,body:s}},htmlBuilder:rw,mathmlBuilder:rk}),te({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:a,funcName:n}=e,i=tD(t[0],"color-token").color,s=tD(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:a.mode,label:n,backgroundColor:s,borderColor:i,body:o}},htmlBuilder:rw,mathmlBuilder:rk}),te({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),te({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"enclose",mode:r.mode,label:a,body:n}},htmlBuilder:rw,mathmlBuilder:rk}),te({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var rS={};function rM(e){for(var{type:t,names:r,props:a,handler:n,htmlBuilder:i,mathmlBuilder:s}=e,o={type:t,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},l=0;l{if(!e.parser.settings.displayMode)throw new i("{"+e.envName+"} can be used only in display mode.")};function rB(e){if(-1===e.indexOf("ed"))return -1===e.indexOf("*")}function rC(e,t,r){var{hskipBeforeAndAfter:a,addJot:s,cols:o,arraystretch:l,colSeparationType:h,autoTag:m,singleRow:c,emptySingleRow:p,maxNumCols:u,leqno:d}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!l){var g=e.gullet.expandMacroAsText("\\arraystretch");if(null==g)l=1;else if(!(l=parseFloat(g))||l<0)throw new i("Invalid \\arraystretch: "+g)}e.gullet.beginGroup();var f=[],v=[f],b=[],y=[],x=null!=m?[]:void 0;function w(){m&&e.gullet.macros.set("\\@eqnsw","1",!0)}function k(){x&&(e.gullet.macros.get("\\df@tag")?(x.push(e.subparse([new n("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):x.push(!!m&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(w(),y.push(rA(e));;){var S=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),S={type:"ordgroup",mode:e.mode,body:S},r&&(S={type:"styling",mode:e.mode,style:r,body:[S]}),f.push(S);var M=e.fetch().text;if("&"===M){if(u&&f.length===u)if(c||h)throw new i("Too many tab characters: &",e.nextToken);else e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.");e.consume()}else if("\\end"===M){k(),1===f.length&&"styling"===S.type&&0===S.body[0].body.length&&(v.length>1||!p)&&v.pop(),y.length0&&(w+=.25),c.push({pos:w,isDashed:e[t]})}for(k(l[0]),r=0;r0&&(A<(q+=x)&&(A=q),q=0),e.addJot&&(A+=v),T.height=z,T.depth=A,T.pos=w+=z,w+=A+q,m[r]=T,k(l[r+1])}var N=w/2+t.fontMetrics().axisHeight,I=e.cols||[],H=[],R=[];if(e.tags&&e.tags.some(e=>e))for(r=0;r=h)){var Y=void 0;(a>0||e.hskipBeforeAndAfter)&&0!==(Y=u.deflt(V.pregap,g))&&((n=e1.makeSpan(["arraycolsep"],[])).style.width=W(Y),H.push(n));var _=[];for(r=0;r0){for(var K=e1.makeLineSpan("hline",t,p),J=e1.makeLineSpan("hdashline",t,p),Q=[{type:"elem",elem:m,shift:0}];c.length>0;){var ee=c.pop(),et=ee.pos-N;ee.isDashed?Q.push({type:"elem",elem:J,shift:et}):Q.push({type:"elem",elem:K,shift:et})}m=e1.makeVList({positionType:"individualShift",children:Q},t)}if(0===R.length)return e1.makeSpan(["mord"],[m],t);var er=e1.makeVList({positionType:"individualShift",children:R},t);return er=e1.makeSpan(["tag"],[er],t),e1.makeFragment([m,er])},rI={c:"center ",l:"left ",r:"right "},rH=function(e,t){for(var r=[],a=new tk.MathNode("mtd",[],["mtr-glue"]),n=new tk.MathNode("mtd",[],["mml-eqn-num"]),i=0;i0){var u=e.cols,d="",g=!1,f=0,v=u.length;"separator"===u[0].type&&(c+="top ",f=1),"separator"===u[u.length-1].type&&(c+="bottom ",v-=1);for(var b=f;b0?"left ":"")+(S[S.length-1].length>0?"right ":"");for(var M=1;M-1?"alignat":"align",s="split"===e.envName,o=rC(e.parser,{cols:a,addJot:!0,autoTag:s?void 0:rB(e.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:s?2:void 0,leqno:e.parser.settings.leqno},"display"),l=0,h={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var m="",c=0;c0&&p&&(g=1),a[u]={type:"align",align:d,pregap:g,postgap:0}}return o.colSeparationType=p?"align":"alignat",o};rM({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=(tP(t[0])?[t[0]]:tD(t[0],"ordgroup").body).map(function(e){var t=tV(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new i("Unknown column alignment: "+t,e)}),a={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return rC(e.parser,a,rq(e.envName))},htmlBuilder:rN,mathmlBuilder:rH}),rM({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if("*"===e.envName.charAt(e.envName.length-1)){var n=e.parser;if(n.consumeSpaces(),"["===n.fetch().text){if(n.consume(),n.consumeSpaces(),r=n.fetch().text,-1==="lcr".indexOf(r))throw new i("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),a.cols=[{type:"align",align:r}]}}var s=rC(e.parser,a,rq(e.envName)),o=Math.max(0,...s.body.map(e=>e.length));return s.cols=Array(o).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:rN,mathmlBuilder:rH}),rM({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=rC(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:rN,mathmlBuilder:rH}),rM({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=(tP(t[0])?[t[0]]:tD(t[0],"ordgroup").body).map(function(e){var t=tV(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new i("Unknown column alignment: "+t,e)});if(r.length>1)throw new i("{subarray} can contain only one column");var a={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if((a=rC(e.parser,a,"script")).body.length>0&&a.body[0].length>1)throw new i("{subarray} can contain only one column");return a},htmlBuilder:rN,mathmlBuilder:rH}),rM({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=rC(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},rq(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:rN,mathmlBuilder:rH}),rM({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:rR,htmlBuilder:rN,mathmlBuilder:rH}),rM({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){u.contains(["gather","gather*"],e.envName)&&rT(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:rB(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return rC(e.parser,t,"display")},htmlBuilder:rN,mathmlBuilder:rH}),rM({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:rR,htmlBuilder:rN,mathmlBuilder:rH}),rM({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){rT(e);var t={autoTag:rB(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return rC(e.parser,t,"display")},htmlBuilder:rN,mathmlBuilder:rH}),rM({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(rT(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if("&"===r||"\\\\"===r)e.consume();else if("\\end"===r){0===t[t.length-1].length&&t.pop();break}else throw new i("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var a=[],n=[a],s=0;s-1);else if("<>AV".indexOf(m)>-1)for(var p=0;p<2;p++){for(var u=!0,d=h+1;dAV=|." after @',o[h]);var g={type:"styling",body:[function(e,t,r){var a=t$[e];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(a,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var n=r.callFunction("\\\\cdleft",[t[0]],[]),i=r.callFunction("\\Big",[{type:"atom",text:a,mode:"math",family:"rel"}],[]),s=r.callFunction("\\\\cdright",[t[1]],[]);return r.callFunction("\\\\cdparent",[{type:"ordgroup",mode:"math",body:[n,i,s]}],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}(m,c,e)],mode:"math",style:"display"};a.push(g),l=tZ()}else l.body.push(o[h]);s%2==0?a.push(l):a.shift(),a=[],n.push(a)}e.gullet.endGroup(),e.gullet.endGroup();var f=Array(n[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:f,colSeparationType:"CD",hLinesBeforeRow:Array(n.length+1).fill([])}}(e.parser)),htmlBuilder:rN,mathmlBuilder:rH}),rz["\\nonumber"]="\\gdef\\@eqnsw{0}",rz["\\notag"]="\\nonumber",te({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new i(e.funcName+" valid only within array environment")}}),te({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];if("ordgroup"!==n.type)throw new i("Invalid environment name",n);for(var s="",o=0;o{var r=e.font,a=t.withFont(r);return tg(e.body,a)},rE=(e,t)=>{var r=e.font,a=t.withFont(r);return tC(e.body,a)},rL={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};te({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=tr(t[0]),i=a;return i in rL&&(i=rL[i]),{type:"font",mode:r.mode,font:i.slice(1),body:n}},htmlBuilder:rO,mathmlBuilder:rE}),te({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,a=t[0],n=u.isCharacterBox(a);return{type:"mclass",mode:r.mode,mclass:tj(a),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:a}],isCharacterBox:n}}}),te({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a,breakOnTokenText:n}=e,{mode:i}=r,s=r.parseExpression(!0,n);return{type:"font",mode:i,font:"math"+a.slice(1),body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:rO,mathmlBuilder:rE});var rD=(e,t)=>{var r=t;return"display"===e?r=r.id>=M.SCRIPT.id?r.text():M.DISPLAY:"text"===e&&r.size===M.DISPLAY.size?r=M.TEXT:"script"===e?r=M.SCRIPT:"scriptscript"===e&&(r=M.SCRIPTSCRIPT),r},rV=(e,t)=>{var r,a,n,i,s,o,l,h,m,c,p,u=rD(e.size,t.style),d=u.fracNum(),g=u.fracDen();r=t.havingStyle(d);var f=tg(e.numer,r,t);if(e.continued){var v=8.5/t.fontMetrics().ptPerEm,b=3.5/t.fontMetrics().ptPerEm;f.height=f.height0?3*i:7*i,l=t.fontMetrics().denom1):(n>0?(s=t.fontMetrics().num2,o=i):(s=t.fontMetrics().num3,o=3*i),l=t.fontMetrics().denom2),a){var x=t.fontMetrics().axisHeight;s-f.depth-(x+.5*n){var r=new tk.MathNode("mfrac",[tC(e.numer,t),tC(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var a=X(e.barSize,t);r.setAttribute("linethickness",W(a))}}else r.setAttribute("linethickness","0px");var n=rD(e.size,t.style);if(n.size!==t.style.size){r=new tk.MathNode("mstyle",[r]);var i=n.size===M.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",i),r.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var s=[];if(null!=e.leftDelim){var o=new tk.MathNode("mo",[new tk.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(r),null!=e.rightDelim){var l=new tk.MathNode("mo",[new tk.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return tM(s)}return r};te({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var r,{parser:a,funcName:n}=e,i=t[0],s=t[1],o=null,l=null,h="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":r=!0;break;case"\\\\atopfrac":r=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":r=!1,o="(",l=")";break;case"\\\\bracefrac":r=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":r=!1,o="[",l="]";break;default:throw Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text"}return{type:"genfrac",mode:a.mode,continued:!1,numer:i,denom:s,hasBarLine:r,leftDelim:o,rightDelim:l,size:h,barSize:null}},htmlBuilder:rV,mathmlBuilder:rP}),te({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0],i=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:n,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),te({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:r,funcName:a,token:n}=e;switch(a){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:n}}});var rF=["display","text","script","scriptscript"],rG=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};te({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var r,{parser:a}=e,n=t[4],i=t[5],s=tr(t[0]),o="atom"===s.type&&"open"===s.family?rG(s.text):null,l=tr(t[1]),h="atom"===l.type&&"close"===l.family?rG(l.text):null,m=tD(t[2],"size"),c=null;r=!!m.isBlank||(c=m.value).number>0;var p="auto",u=t[3];return"ordgroup"===u.type?u.body.length>0&&(p=rF[Number(tD(u.body[0],"textord").text)]):p=rF[Number((u=tD(u,"textord")).text)],{type:"genfrac",mode:a.mode,numer:n,denom:i,continued:!1,hasBarLine:r,barSize:c,leftDelim:o,rightDelim:h,size:p}},htmlBuilder:rV,mathmlBuilder:rP}),te({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:a,token:n}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:tD(t[0],"size").value,token:n}}}),te({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0],i=p(tD(t[1],"infix").size),s=t[2],o=i.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:s,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:rV,mathmlBuilder:rP});var rU=(e,t)=>{var r,a,n,i=t.style;"supsub"===e.type?(r=e.sup?tg(e.sup,t.havingStyle(i.sup()),t):tg(e.sub,t.havingStyle(i.sub()),t),a=tD(e.base,"horizBrace")):a=tD(e,"horizBrace");var s=tg(a.base,t.havingBaseStyle(M.DISPLAY)),o=tL.svgSpan(a,t);if(a.isOver?(n=e1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(n=e1.makeVList({positionType:"bottom",positionData:s.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[0].classes.push("svg-align"),r){var l=e1.makeSpan(["mord",a.isOver?"mover":"munder"],[n],t);n=a.isOver?e1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):e1.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return e1.makeSpan(["mord",a.isOver?"mover":"munder"],[n],t)};te({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"horizBrace",mode:r.mode,label:a,isOver:/^\\over/.test(a),base:t[0]}},htmlBuilder:rU,mathmlBuilder:(e,t)=>{var r=tL.mathMLnode(e.label);return new tk.MathNode(e.isOver?"mover":"munder",[tC(e.base,t),r])}}),te({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[1],n=tD(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:r.mode,href:n,body:ta(a)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=th(e.body,t,!1);return e1.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=tB(e.body,t);return r instanceof ty||(r=new ty("mrow",[r])),r.setAttribute("href",e.href),r}}),te({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=tD(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:a}))return r.formatUnsupportedCmd("\\url");for(var n=[],i=0;inew tk.MathNode("mrow",tT(e.body,t))}),te({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var r,{parser:a,funcName:n,token:s}=e,o=tD(t[0],"raw").string,l=t[1];a.settings.strict&&a.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var h={};switch(n){case"\\htmlClass":h.class=o,r={command:"\\htmlClass",class:o};break;case"\\htmlId":h.id=o,r={command:"\\htmlId",id:o};break;case"\\htmlStyle":h.style=o,r={command:"\\htmlStyle",style:o};break;case"\\htmlData":for(var m=o.split(","),c=0;c{var r=th(e.body,t,!1),a=["enclosing"];e.attributes.class&&a.push(...e.attributes.class.trim().split(/\s+/));var n=e1.makeSpan(a,r,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&n.setAttribute(i,e.attributes[i]);return n},mathmlBuilder:(e,t)=>tB(e.body,t)}),te({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:ta(t[0]),mathml:ta(t[1])}},htmlBuilder:(e,t)=>{var r=th(e.html,t,!1);return e1.makeFragment(r)},mathmlBuilder:(e,t)=>tB(e.mathml,t)});var rY=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new i("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!Y(r))throw new i("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};te({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:a}=e,n={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},l="";if(r[0])for(var h=tD(r[0],"raw").string.split(","),m=0;m{var r=X(e.height,t),a=0;e.totalheight.number>0&&(a=X(e.totalheight,t)-r);var n=0;e.width.number>0&&(n=X(e.width,t));var i={height:W(r+a)};n>0&&(i.width=W(n)),a>0&&(i.verticalAlign=W(-a));var s=new ee(e.src,e.alt,i);return s.height=r,s.depth=a,s},mathmlBuilder:(e,t)=>{var r=new tk.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var a=X(e.height,t),n=0;if(e.totalheight.number>0&&(n=X(e.totalheight,t)-a,r.setAttribute("valign",W(-n))),r.setAttribute("height",W(a+n)),e.width.number>0){var i=X(e.width,t);r.setAttribute("width",W(i))}return r.setAttribute("src",e.src),r}}),te({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,n=tD(t[0],"size");if(r.settings.strict){var i="m"===a[1],s="mu"===n.value.unit;i?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, not "+n.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:n.value}},htmlBuilder:(e,t)=>e1.makeGlue(e.dimension,t),mathmlBuilder(e,t){var r=X(e.dimension,t);return new tk.SpaceNode(r)}}),te({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"lap",mode:r.mode,alignment:a.slice(5),body:n}},htmlBuilder:(e,t)=>{"clap"===e.alignment?(r=e1.makeSpan([],[tg(e.body,t)]),r=e1.makeSpan(["inner"],[r],t)):r=e1.makeSpan(["inner"],[tg(e.body,t)]);var r,a=e1.makeSpan(["fix"],[]),n=e1.makeSpan([e.alignment],[r,a],t),i=e1.makeSpan(["strut"]);return i.style.height=W(n.height+n.depth),n.depth&&(i.style.verticalAlign=W(-n.depth)),n.children.unshift(i),n=e1.makeSpan(["thinbox"],[n],t),e1.makeSpan(["mord","vbox"],[n],t)},mathmlBuilder:(e,t)=>{var r=new tk.MathNode("mpadded",[tC(e.body,t)]);if("rlap"!==e.alignment){var a="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",a+"width")}return r.setAttribute("width","0px"),r}}),te({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:a}=e,n=a.mode;a.switchMode("math");var i="\\("===r?"\\)":"$",s=a.parseExpression(!1,i);return a.expect(i),a.switchMode(n),{type:"styling",mode:a.mode,style:"text",body:s}}}),te({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new i("Mismatched "+e.funcName)}});var rX=(e,t)=>{switch(t.style.size){case M.DISPLAY.size:return e.display;case M.TEXT.size:return e.text;case M.SCRIPT.size:return e.script;case M.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};te({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:ta(t[0]),text:ta(t[1]),script:ta(t[2]),scriptscript:ta(t[3])}},htmlBuilder:(e,t)=>{var r=th(rX(e,t),t,!1);return e1.makeFragment(r)},mathmlBuilder:(e,t)=>tB(rX(e,t),t)});var rW=(e,t,r,a,n,i,s)=>{e=e1.makeSpan([],[e]);var o,l,h,m=r&&u.isCharacterBox(r);if(t){var c=tg(t,a.havingStyle(n.sup()),a);l={elem:c,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-c.depth)}}if(r){var p=tg(r,a.havingStyle(n.sub()),a);o={elem:p,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-p.height)}}if(l&&o){var d=a.fontMetrics().bigOpSpacing5+o.elem.height+o.elem.depth+o.kern+e.depth+s;h=e1.makeVList({positionType:"bottom",positionData:d,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:o.elem,marginLeft:W(-i)},{type:"kern",size:o.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:W(i)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(o){var g=e.height-s;h=e1.makeVList({positionType:"top",positionData:g,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:o.elem,marginLeft:W(-i)},{type:"kern",size:o.kern},{type:"elem",elem:e}]},a)}else{if(!l)return e;var f=e.depth+s;h=e1.makeVList({positionType:"bottom",positionData:f,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:W(i)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}var v=[h];if(o&&0!==i&&!m){var b=e1.makeSpan(["mspace"],[],a);b.style.marginRight=W(i),v.unshift(b)}return e1.makeSpan(["mop","op-limits"],v,a)},r_=["\\smallint"],rj=(e,t)=>{var r,a,n,i,s=!1;"supsub"===e.type?(r=e.sup,a=e.sub,n=tD(e.base,"op"),s=!0):n=tD(e,"op");var o=t.style,l=!1;if(o.size===M.DISPLAY.size&&n.symbol&&!u.contains(r_,n.name)&&(l=!0),n.symbol){var h=l?"Size2-Regular":"Size1-Regular",m="";if(("\\oiint"===n.name||"\\oiiint"===n.name)&&(m=n.name.slice(1),n.name="oiint"===m?"\\iint":"\\iiint"),i=e1.makeSymbol(n.name,h,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),m.length>0){var c=i.italic,p=e1.staticSvg(m+"Size"+(l?"2":"1"),t);i=e1.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:p,shift:.08*!!l}]},t),n.name="\\"+m,i.classes.unshift("mop"),i.italic=c}}else if(n.body){var d=th(n.body,t,!0);1===d.length&&d[0]instanceof er?(i=d[0]).classes[0]="mop":i=e1.makeSpan(["mop"],d,t)}else{for(var g=[],f=1;f{var r;if(e.symbol)r=new ty("mo",[tS(e.name,e.mode)]),u.contains(r_,e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new ty("mo",tT(e.body,t));else{r=new ty("mi",[new tx(e.name.slice(1))]);var a=new ty("mo",[tS("⁡","text")]);r=e.parentIsSupSub?new ty("mrow",[r,a]):tb([r,a])}return r},rZ={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};te({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=a;return 1===n.length&&(n=rZ[n]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:rj,mathmlBuilder:r$}),te({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ta(a)}},htmlBuilder:rj,mathmlBuilder:r$});var rK={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};te({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:rj,mathmlBuilder:r$}),te({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:rj,mathmlBuilder:r$}),te({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e,a=r;return 1===a.length&&(a=rK[a]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:rj,mathmlBuilder:r$});var rJ=(e,t)=>{var r,a,n,i,s=!1;if("supsub"===e.type?(r=e.sup,a=e.sub,n=tD(e.base,"operatorname"),s=!0):n=tD(e,"operatorname"),n.body.length>0){for(var o=th(n.body.map(e=>{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),t.withFont("mathrm"),!0),l=0;l{var{parser:r,funcName:a}=e,n=t[0];return{type:"operatorname",mode:r.mode,body:ta(n),alwaysHandleSupSub:"\\operatornamewithlimits"===a,limits:!1,parentIsSupSub:!1}},htmlBuilder:rJ,mathmlBuilder:(e,t)=>{for(var r=tT(e.body,t.withFont("mathrm")),a=!0,n=0;ne.toText()).join("");r=[new tk.TextNode(o)]}var l=new tk.MathNode("mi",r);l.setAttribute("mathvariant","normal");var h=new tk.MathNode("mo",[tS("⁡","text")]);return e.parentIsSupSub?new tk.MathNode("mrow",[l,h]):tk.newDocumentFragment([l,h])}}),rz["\\operatorname"]="\\@ifstar\\operatornamewithlimits\\operatorname@",tt({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?e1.makeFragment(th(e.body,t,!1)):e1.makeSpan(["mord"],th(e.body,t,!0),t),mathmlBuilder:(e,t)=>tB(e.body,t,!0)}),te({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,a=t[0];return{type:"overline",mode:r.mode,body:a}},htmlBuilder(e,t){var r=tg(e.body,t.havingCrampedStyle()),a=e1.makeLineSpan("overline-line",t),n=t.fontMetrics().defaultRuleThickness,i=e1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*n},{type:"elem",elem:a},{type:"kern",size:n}]},t);return e1.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new tk.MathNode("mo",[new tk.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new tk.MathNode("mover",[tC(e.body,t),r]);return a.setAttribute("accent","true"),a}}),te({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"phantom",mode:r.mode,body:ta(a)}},htmlBuilder:(e,t)=>{var r=th(e.body,t.withPhantom(),!1);return e1.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=tT(e.body,t);return new tk.MathNode("mphantom",r)}}),te({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"hphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=e1.makeSpan([],[tg(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var a=0;a{var r=tT(ta(e.body),t),a=new tk.MathNode("mphantom",r),n=new tk.MathNode("mpadded",[a]);return n.setAttribute("height","0px"),n.setAttribute("depth","0px"),n}}),te({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"vphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=e1.makeSpan(["inner"],[tg(e.body,t.withPhantom())]),a=e1.makeSpan(["fix"],[]);return e1.makeSpan(["mord","rlap"],[r,a],t)},mathmlBuilder:(e,t)=>{var r=tT(ta(e.body),t),a=new tk.MathNode("mphantom",r),n=new tk.MathNode("mpadded",[a]);return n.setAttribute("width","0px"),n}}),te({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,a=tD(t[0],"size").value,n=t[1];return{type:"raisebox",mode:r.mode,dy:a,body:n}},htmlBuilder(e,t){var r=tg(e.body,t),a=X(e.dy,t);return e1.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new tk.MathNode("mpadded",[tC(e.body,t)]),a=e.dy.number+e.dy.unit;return r.setAttribute("voffset",a),r}}),te({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),te({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:a}=e,n=r[0],i=tD(t[0],"size"),s=tD(t[1],"size");return{type:"rule",mode:a.mode,shift:n&&tD(n,"size").value,width:i.value,height:s.value}},htmlBuilder(e,t){var r=e1.makeSpan(["mord","rule"],[],t),a=X(e.width,t),n=X(e.height,t),i=e.shift?X(e.shift,t):0;return r.style.borderRightWidth=W(a),r.style.borderTopWidth=W(n),r.style.bottom=W(i),r.width=a,r.height=n+i,r.depth=-i,r.maxFontSize=1.125*n*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=X(e.width,t),a=X(e.height,t),n=e.shift?X(e.shift,t):0,i=t.color&&t.getColor()||"black",s=new tk.MathNode("mspace");s.setAttribute("mathbackground",i),s.setAttribute("width",W(r)),s.setAttribute("height",W(a));var o=new tk.MathNode("mpadded",[s]);return n>=0?o.setAttribute("height",W(n)):(o.setAttribute("height",W(n)),o.setAttribute("depth",W(-n))),o.setAttribute("voffset",W(n)),o}});var r0=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];te({type:"sizing",names:r0,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:a,parser:n}=e,i=n.parseExpression(!1,r);return{type:"sizing",mode:n.mode,size:r0.indexOf(a)+1,body:i}},htmlBuilder:(e,t)=>{var r=t.havingSize(e.size);return rQ(e.body,r,t)},mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),a=tT(e.body,r),n=new tk.MathNode("mstyle",a);return n.setAttribute("mathsize",W(r.sizeMultiplier)),n}}),te({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:a}=e,n=!1,i=!1,s=r[0]&&tD(r[0],"ordgroup");if(s)for(var o="",l=0;l{var r=e1.makeSpan([],[tg(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var a=0;a{var r=new tk.MathNode("mpadded",[tC(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),te({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a}=e,n=r[0],i=t[0];return{type:"sqrt",mode:a.mode,body:i,index:n}},htmlBuilder(e,t){var r=tg(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=e1.wrapFragment(r,t);var a=t.fontMetrics().defaultRuleThickness,n=a;t.style.idr.height+r.depth+i&&(i=(i+m-r.height-r.depth)/2);var c=o.height-r.height-i-l;r.style.paddingLeft=W(h);var p=e1.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+c)},{type:"elem",elem:o},{type:"kern",size:l}]},t);if(!e.index)return e1.makeSpan(["mord","sqrt"],[p],t);var u=t.havingStyle(M.SCRIPTSCRIPT),d=tg(e.index,u,t),g=.6*(p.height-p.depth),f=e1.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:d}]},t),v=e1.makeSpan(["root"],[f]);return e1.makeSpan(["mord","sqrt"],[v,p],t)},mathmlBuilder(e,t){var{body:r,index:a}=e;return a?new tk.MathNode("mroot",[tC(r,t),tC(a,t)]):new tk.MathNode("msqrt",[tC(r,t)])}});var r1={display:M.DISPLAY,text:M.TEXT,script:M.SCRIPT,scriptscript:M.SCRIPTSCRIPT};te({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:a,parser:n}=e,i=n.parseExpression(!0,r),s=a.slice(1,a.length-5);return{type:"styling",mode:n.mode,style:s,body:i}},htmlBuilder(e,t){var r=r1[e.style],a=t.havingStyle(r).withFont("");return rQ(e.body,a,t)},mathmlBuilder(e,t){var r=r1[e.style],a=t.havingStyle(r),n=tT(e.body,a),i=new tk.MathNode("mstyle",n),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",s[0]),i.setAttribute("displaystyle",s[1]),i}});var r4=function(e,t){var r=e.base;if(!r)return null;if("op"===r.type)return r.limits&&(t.style.size===M.DISPLAY.size||r.alwaysHandleSupSub)?rj:null;if("operatorname"===r.type)return r.alwaysHandleSupSub&&(t.style.size===M.DISPLAY.size||r.limits)?rJ:null;if("accent"===r.type)return u.isCharacterBox(r.base)?tF:null;if("horizBrace"===r.type)return!e.sub===r.isOver?rU:null;else return null};tt({type:"supsub",htmlBuilder(e,t){var r,a,n,i,s=r4(e,t);if(s)return s(e,t);var{base:o,sup:l,sub:h}=e,m=tg(o,t),c=t.fontMetrics(),p=0,d=0,g=o&&u.isCharacterBox(o);if(l){var f=t.havingStyle(t.style.sup());r=tg(l,f,t),g||(p=m.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(h){var v=t.havingStyle(t.style.sub());a=tg(h,v,t),g||(d=m.depth+v.fontMetrics().subDrop*v.sizeMultiplier/t.sizeMultiplier)}n=t.style===M.DISPLAY?c.sup1:t.style.cramped?c.sup3:c.sup2;var b=t.sizeMultiplier,y=W(.5/c.ptPerEm/b),x=null;if(a){var w=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(m instanceof er||w)&&(x=W(-m.italic))}if(r&&a){p=Math.max(p,n,r.depth+.25*c.xHeight),d=Math.max(d,c.sub2);var k=4*c.defaultRuleThickness;if(p-r.depth-(a.height-d)0&&(p+=S,d-=S)}var z=[{type:"elem",elem:a,shift:d,marginRight:y,marginLeft:x},{type:"elem",elem:r,shift:-p,marginRight:y}];i=e1.makeVList({positionType:"individualShift",children:z},t)}else if(a){d=Math.max(d,c.sub1,a.height-.8*c.xHeight);var A=[{type:"elem",elem:a,marginLeft:x,marginRight:y}];i=e1.makeVList({positionType:"shift",positionData:d,children:A},t)}else if(r)p=Math.max(p,n,r.depth+.25*c.xHeight),i=e1.makeVList({positionType:"shift",positionData:-p,children:[{type:"elem",elem:r,marginRight:y}]},t);else throw Error("supsub must have either sup or sub.");var T=tu(m,"right")||"mord";return e1.makeSpan([T],[m,e1.makeSpan(["msupsub"],[i])],t)},mathmlBuilder(e,t){var r,a,n=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(n=!0,r=e.base.isOver),e.base&&("op"===e.base.type||"operatorname"===e.base.type)&&(e.base.parentIsSupSub=!0);var i=[tC(e.base,t)];if(e.sub&&i.push(tC(e.sub,t)),e.sup&&i.push(tC(e.sup,t)),n)a=r?"mover":"munder";else if(e.sub)if(e.sup){var s=e.base;a=s&&"op"===s.type&&s.limits&&t.style===M.DISPLAY||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(t.style===M.DISPLAY||s.limits)?"munderover":"msubsup"}else{var o=e.base;a=o&&"op"===o.type&&o.limits&&(t.style===M.DISPLAY||o.alwaysHandleSupSub)||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(o.limits||t.style===M.DISPLAY)?"munder":"msub"}else{var l=e.base;a=l&&"op"===l.type&&l.limits&&(t.style===M.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===M.DISPLAY)?"mover":"msup"}return new tk.MathNode(a,i)}}),tt({type:"atom",htmlBuilder:(e,t)=>e1.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var r=new tk.MathNode("mo",[tS(e.text,e.mode)]);if("bin"===e.family){var a=tz(e,t);"bold-italic"===a&&r.setAttribute("mathvariant",a)}else"punct"===e.family?r.setAttribute("separator","true"):("open"===e.family||"close"===e.family)&&r.setAttribute("stretchy","false");return r}});var r5={mi:"italic",mn:"normal",mtext:"normal"};tt({type:"mathord",htmlBuilder:(e,t)=>e1.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){var r=new tk.MathNode("mi",[tS(e.text,e.mode,t)]),a=tz(e,t)||"italic";return a!==r5[r.type]&&r.setAttribute("mathvariant",a),r}}),tt({type:"textord",htmlBuilder:(e,t)=>e1.makeOrd(e,t,"textord"),mathmlBuilder(e,t){var r,a=tS(e.text,e.mode,t),n=tz(e,t)||"normal";return n!==r5[(r="text"===e.mode?new tk.MathNode("mtext",[a]):/[0-9]/.test(e.text)?new tk.MathNode("mn",[a]):"\\prime"===e.text?new tk.MathNode("mo",[a]):new tk.MathNode("mi",[a])).type]&&r.setAttribute("mathvariant",n),r}});var r6={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},r7={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};tt({type:"spacing",htmlBuilder(e,t){if(r7.hasOwnProperty(e.text)){var r=r7[e.text].className||"";if("text"!==e.mode)return e1.makeSpan(["mspace",r],[e1.mathsym(e.text,e.mode,t)],t);var a=e1.makeOrd(e,t,"textord");return a.classes.push(r),a}if(r6.hasOwnProperty(e.text))return e1.makeSpan(["mspace",r6[e.text]],[],t);throw new i('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){var r;if(r7.hasOwnProperty(e.text))r=new tk.MathNode("mtext",[new tk.TextNode("\xa0")]);else if(r6.hasOwnProperty(e.text))return new tk.MathNode("mspace");else throw new i('Unknown type of space "'+e.text+'"');return r}});var r3=()=>{var e=new tk.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};tt({type:"tag",mathmlBuilder(e,t){var r=new tk.MathNode("mtable",[new tk.MathNode("mtr",[r3(),new tk.MathNode("mtd",[tB(e.body,t)]),r3(),new tk.MathNode("mtd",[tB(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var r8={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},r2={"\\textbf":"textbf","\\textmd":"textmd"},r9={"\\textit":"textit","\\textup":"textup"},ae=(e,t)=>{var r=e.font;return r?r8[r]?t.withTextFontFamily(r8[r]):r2[r]?t.withTextFontWeight(r2[r]):"\\emph"===r?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(r9[r]):t};te({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"text",mode:r.mode,body:ta(n),font:a}},htmlBuilder(e,t){var r=ae(e,t),a=th(e.body,r,!0);return e1.makeSpan(["mord","text"],a,r)},mathmlBuilder(e,t){var r=ae(e,t);return tB(e.body,r)}}),te({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=tg(e.body,t),a=e1.makeLineSpan("underline-line",t),n=t.fontMetrics().defaultRuleThickness,i=e1.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:n},{type:"elem",elem:a},{type:"kern",size:3*n},{type:"elem",elem:r}]},t);return e1.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new tk.MathNode("mo",[new tk.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new tk.MathNode("munder",[tC(e.body,t),r]);return a.setAttribute("accentunder","true"),a}}),te({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=tg(e.body,t),a=t.fontMetrics().axisHeight,n=.5*(r.height-a-(r.depth+a));return e1.makeVList({positionType:"shift",positionData:n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder:(e,t)=>new tk.MathNode("mpadded",[tC(e.body,t)],["vcenter"])}),te({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new i("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=at(e),a=[],n=t.havingStyle(t.style.text()),i=0;ie.body.replace(/ /g,e.star?"␣":"\xa0"),ar="[ \r\n ]",aa="[̀-ͯ]",an=RegExp(aa+"+$"),ai="("+ar+"+)|\\\\(\n|[ \r ]+\n?)[ \r ]*|([!-\\[\\]-‧‪-퟿豈-￿]"+aa+"*|[\uD800-\uDBFF][\uDC00-\uDFFF]"+aa+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)"+ar+"*|\\\\[^\uD800-\uDFFF])";class as{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=RegExp(ai,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new n("EOF",new a(this,t,t));var r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new i("Unexpected character: '"+e[t]+"'",new n(e[t],new a(this,t,t+1)));var s=r[6]||r[3]||(r[2]?"\\ ":" ");if(14===this.catcodes[s]){var o=e.indexOf("\n",this.tokenRegex.lastIndex);return -1===o?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=o+1,this.lex()}return new n(s,new a(this,t,this.tokenRegex.lastIndex))}}class ao{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new i("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,r){if(void 0===r&&(r=!1),r){for(var a=0;a0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var n=this.undefStack[this.undefStack.length-1];n&&!n.hasOwnProperty(e)&&(n[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}rz["\\noexpand"]=function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}},rz["\\expandafter"]=function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}},rz["\\@firstoftwo"]=function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}},rz["\\@secondoftwo"]=function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}},rz["\\@ifnextchar"]=function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}},rz["\\@ifstar"]="\\@ifnextchar *{\\@firstoftwo{#1}}",rz["\\TextOrMath"]=function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}};var al={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};rz["\\char"]=function(e){var t,r,a=e.popToken(),n="";if("'"===a.text)t=8,a=e.popToken();else if('"'===a.text)t=16,a=e.popToken();else if("`"===a.text)if("\\"===(a=e.popToken()).text[0])n=a.text.charCodeAt(1);else if("EOF"===a.text)throw new i("\\char` missing argument");else n=a.text.charCodeAt(0);else t=10;if(t){if(null==(n=al[a.text])||n>=t)throw new i("Invalid base-"+t+" digit "+a.text);for(;null!=(r=al[e.future().text])&&r{var n=e.consumeArg().tokens;if(1!==n.length)throw new i("\\newcommand's first argument must be a macro name");var s=n[0].text,o=e.isDefined(s);if(o&&!t)throw new i("\\newcommand{"+s+"} attempting to redefine "+s+"; use \\renewcommand");if(!o&&!r)throw new i("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var l=0;if(1===(n=e.consumeArg().tokens).length&&"["===n[0].text){for(var h="",m=e.expandNextToken();"]"!==m.text&&"EOF"!==m.text;)h+=m.text,m=e.expandNextToken();if(!h.match(/^\s*[0-9]+\s*$/))throw new i("Invalid number of arguments: "+h);l=parseInt(h),n=e.consumeArg().tokens}return o&&a||e.macros.set(s,{tokens:n,numArgs:l}),""};rz["\\newcommand"]=e=>ah(e,!1,!0,!1),rz["\\renewcommand"]=e=>ah(e,!0,!1,!1),rz["\\providecommand"]=e=>ah(e,!0,!0,!0),rz["\\message"]=e=>(console.log(e.consumeArgs(1)[0].reverse().map(e=>e.text).join("")),""),rz["\\errmessage"]=e=>(console.error(e.consumeArgs(1)[0].reverse().map(e=>e.text).join("")),""),rz["\\show"]=e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),e8[r],eh.math[r],eh.text[r]),""},rz["\\bgroup"]="{",rz["\\egroup"]="}",rz["~"]="\\nobreakspace",rz["\\lq"]="`",rz["\\rq"]="'",rz["\\aa"]="\\r a",rz["\\AA"]="\\r A",rz["\\textcopyright"]="\\html@mathml{\\textcircled{c}}{\\char`\xa9}",rz["\\copyright"]="\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}",rz["\\textregistered"]="\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xae}",rz["ℬ"]="\\mathscr{B}",rz["ℰ"]="\\mathscr{E}",rz["ℱ"]="\\mathscr{F}",rz["ℋ"]="\\mathscr{H}",rz["ℐ"]="\\mathscr{I}",rz["ℒ"]="\\mathscr{L}",rz["ℳ"]="\\mathscr{M}",rz["ℛ"]="\\mathscr{R}",rz["ℭ"]="\\mathfrak{C}",rz["ℌ"]="\\mathfrak{H}",rz["ℨ"]="\\mathfrak{Z}",rz["\\Bbbk"]="\\Bbb{k}",rz["\xb7"]="\\cdotp",rz["\\llap"]="\\mathllap{\\textrm{#1}}",rz["\\rlap"]="\\mathrlap{\\textrm{#1}}",rz["\\clap"]="\\mathclap{\\textrm{#1}}",rz["\\mathstrut"]="\\vphantom{(}",rz["\\underbar"]="\\underline{\\text{#1}}",rz["\\not"]='\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}',rz["\\neq"]="\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}",rz["\\ne"]="\\neq",rz["≠"]="\\neq",rz["\\notin"]="\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}",rz["∉"]="\\notin",rz["≘"]="\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}",rz["≙"]="\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}",rz["≚"]="\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}",rz["≛"]="\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}",rz["≝"]="\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}",rz["≞"]="\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}",rz["≟"]="\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}",rz["⟂"]="\\perp",rz["‼"]="\\mathclose{!\\mkern-0.8mu!}",rz["∌"]="\\notni",rz["⌜"]="\\ulcorner",rz["⌝"]="\\urcorner",rz["⌞"]="\\llcorner",rz["⌟"]="\\lrcorner",rz["\xa9"]="\\copyright",rz["\xae"]="\\textregistered",rz["️"]="\\textregistered",rz["\\ulcorner"]='\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}',rz["\\urcorner"]='\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}',rz["\\llcorner"]='\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}',rz["\\lrcorner"]='\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}',rz["\\vdots"]="{\\varvdots\\rule{0pt}{15pt}}",rz["⋮"]="\\vdots",rz["\\varGamma"]="\\mathit{\\Gamma}",rz["\\varDelta"]="\\mathit{\\Delta}",rz["\\varTheta"]="\\mathit{\\Theta}",rz["\\varLambda"]="\\mathit{\\Lambda}",rz["\\varXi"]="\\mathit{\\Xi}",rz["\\varPi"]="\\mathit{\\Pi}",rz["\\varSigma"]="\\mathit{\\Sigma}",rz["\\varUpsilon"]="\\mathit{\\Upsilon}",rz["\\varPhi"]="\\mathit{\\Phi}",rz["\\varPsi"]="\\mathit{\\Psi}",rz["\\varOmega"]="\\mathit{\\Omega}",rz["\\substack"]="\\begin{subarray}{c}#1\\end{subarray}",rz["\\colon"]="\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax",rz["\\boxed"]="\\fbox{$\\displaystyle{#1}$}",rz["\\iff"]="\\DOTSB\\;\\Longleftrightarrow\\;",rz["\\implies"]="\\DOTSB\\;\\Longrightarrow\\;",rz["\\impliedby"]="\\DOTSB\\;\\Longleftarrow\\;",rz["\\dddot"]="{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}",rz["\\ddddot"]="{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}";var am={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};rz["\\dots"]=function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in am?t=am[r]:"\\not"===r.slice(0,4)?t="\\dotsb":r in eh.math&&u.contains(["bin","rel"],eh.math[r].group)&&(t="\\dotsb"),t};var ac={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};rz["\\dotso"]=function(e){return e.future().text in ac?"\\ldots\\,":"\\ldots"},rz["\\dotsc"]=function(e){var t=e.future().text;return t in ac&&","!==t?"\\ldots\\,":"\\ldots"},rz["\\cdots"]=function(e){return e.future().text in ac?"\\@cdots\\,":"\\@cdots"},rz["\\dotsb"]="\\cdots",rz["\\dotsm"]="\\cdots",rz["\\dotsi"]="\\!\\cdots",rz["\\dotsx"]="\\ldots\\,",rz["\\DOTSI"]="\\relax",rz["\\DOTSB"]="\\relax",rz["\\DOTSX"]="\\relax",rz["\\tmspace"]="\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax",rz["\\,"]="\\tmspace+{3mu}{.1667em}",rz["\\thinspace"]="\\,",rz["\\>"]="\\mskip{4mu}",rz["\\:"]="\\tmspace+{4mu}{.2222em}",rz["\\medspace"]="\\:",rz["\\;"]="\\tmspace+{5mu}{.2777em}",rz["\\thickspace"]="\\;",rz["\\!"]="\\tmspace-{3mu}{.1667em}",rz["\\negthinspace"]="\\!",rz["\\negmedspace"]="\\tmspace-{4mu}{.2222em}",rz["\\negthickspace"]="\\tmspace-{5mu}{.277em}",rz["\\enspace"]="\\kern.5em ",rz["\\enskip"]="\\hskip.5em\\relax",rz["\\quad"]="\\hskip1em\\relax",rz["\\qquad"]="\\hskip2em\\relax",rz["\\tag"]="\\@ifstar\\tag@literal\\tag@paren",rz["\\tag@paren"]="\\tag@literal{({#1})}",rz["\\tag@literal"]=e=>{if(e.macros.get("\\df@tag"))throw new i("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"},rz["\\bmod"]="\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}",rz["\\pod"]="\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)",rz["\\pmod"]="\\pod{{\\rm mod}\\mkern6mu#1}",rz["\\mod"]="\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1",rz["\\newline"]="\\\\\\relax",rz["\\TeX"]="\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}";var ap=W(H["Main-Regular"][84][1]-.7*H["Main-Regular"][65][1]);rz["\\LaTeX"]="\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+ap+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}",rz["\\KaTeX"]="\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+ap+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}",rz["\\hspace"]="\\@ifstar\\@hspacer\\@hspace",rz["\\@hspace"]="\\hskip #1\\relax",rz["\\@hspacer"]="\\rule{0pt}{0pt}\\hskip #1\\relax",rz["\\ordinarycolon"]=":",rz["\\vcentcolon"]="\\mathrel{\\mathop\\ordinarycolon}",rz["\\dblcolon"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}',rz["\\coloneqq"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}',rz["\\Coloneqq"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}',rz["\\coloneq"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}',rz["\\Coloneq"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}',rz["\\eqqcolon"]='\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}',rz["\\Eqqcolon"]='\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}',rz["\\eqcolon"]='\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}',rz["\\Eqcolon"]='\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}',rz["\\colonapprox"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}',rz["\\Colonapprox"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}',rz["\\colonsim"]='\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}',rz["\\Colonsim"]='\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}',rz["∷"]="\\dblcolon",rz["∹"]="\\eqcolon",rz["≔"]="\\coloneqq",rz["≕"]="\\eqqcolon",rz["⩴"]="\\Coloneqq",rz["\\ratio"]="\\vcentcolon",rz["\\coloncolon"]="\\dblcolon",rz["\\colonequals"]="\\coloneqq",rz["\\coloncolonequals"]="\\Coloneqq",rz["\\equalscolon"]="\\eqqcolon",rz["\\equalscoloncolon"]="\\Eqqcolon",rz["\\colonminus"]="\\coloneq",rz["\\coloncolonminus"]="\\Coloneq",rz["\\minuscolon"]="\\eqcolon",rz["\\minuscoloncolon"]="\\Eqcolon",rz["\\coloncolonapprox"]="\\Colonapprox",rz["\\coloncolonsim"]="\\Colonsim",rz["\\simcolon"]="\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}",rz["\\simcoloncolon"]="\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",rz["\\approxcolon"]="\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}",rz["\\approxcoloncolon"]="\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",rz["\\notni"]="\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}",rz["\\limsup"]="\\DOTSB\\operatorname*{lim\\,sup}",rz["\\liminf"]="\\DOTSB\\operatorname*{lim\\,inf}",rz["\\injlim"]="\\DOTSB\\operatorname*{inj\\,lim}",rz["\\projlim"]="\\DOTSB\\operatorname*{proj\\,lim}",rz["\\varlimsup"]="\\DOTSB\\operatorname*{\\overline{lim}}",rz["\\varliminf"]="\\DOTSB\\operatorname*{\\underline{lim}}",rz["\\varinjlim"]="\\DOTSB\\operatorname*{\\underrightarrow{lim}}",rz["\\varprojlim"]="\\DOTSB\\operatorname*{\\underleftarrow{lim}}",rz["\\gvertneqq"]="\\html@mathml{\\@gvertneqq}{≩}",rz["\\lvertneqq"]="\\html@mathml{\\@lvertneqq}{≨}",rz["\\ngeqq"]="\\html@mathml{\\@ngeqq}{≱}",rz["\\ngeqslant"]="\\html@mathml{\\@ngeqslant}{≱}",rz["\\nleqq"]="\\html@mathml{\\@nleqq}{≰}",rz["\\nleqslant"]="\\html@mathml{\\@nleqslant}{≰}",rz["\\nshortmid"]="\\html@mathml{\\@nshortmid}{∤}",rz["\\nshortparallel"]="\\html@mathml{\\@nshortparallel}{∦}",rz["\\nsubseteqq"]="\\html@mathml{\\@nsubseteqq}{⊈}",rz["\\nsupseteqq"]="\\html@mathml{\\@nsupseteqq}{⊉}",rz["\\varsubsetneq"]="\\html@mathml{\\@varsubsetneq}{⊊}",rz["\\varsubsetneqq"]="\\html@mathml{\\@varsubsetneqq}{⫋}",rz["\\varsupsetneq"]="\\html@mathml{\\@varsupsetneq}{⊋}",rz["\\varsupsetneqq"]="\\html@mathml{\\@varsupsetneqq}{⫌}",rz["\\imath"]="\\html@mathml{\\@imath}{ı}",rz["\\jmath"]="\\html@mathml{\\@jmath}{ȷ}",rz["\\llbracket"]="\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}",rz["\\rrbracket"]="\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}",rz["⟦"]="\\llbracket",rz["⟧"]="\\rrbracket",rz["\\lBrace"]="\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}",rz["\\rBrace"]="\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}",rz["⦃"]="\\lBrace",rz["⦄"]="\\rBrace",rz["\\minuso"]="\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}",rz["⦵"]="\\minuso",rz["\\darr"]="\\downarrow",rz["\\dArr"]="\\Downarrow",rz["\\Darr"]="\\Downarrow",rz["\\lang"]="\\langle",rz["\\rang"]="\\rangle",rz["\\uarr"]="\\uparrow",rz["\\uArr"]="\\Uparrow",rz["\\Uarr"]="\\Uparrow",rz["\\N"]="\\mathbb{N}",rz["\\R"]="\\mathbb{R}",rz["\\Z"]="\\mathbb{Z}",rz["\\alef"]="\\aleph",rz["\\alefsym"]="\\aleph",rz["\\Alpha"]="\\mathrm{A}",rz["\\Beta"]="\\mathrm{B}",rz["\\bull"]="\\bullet",rz["\\Chi"]="\\mathrm{X}",rz["\\clubs"]="\\clubsuit",rz["\\cnums"]="\\mathbb{C}",rz["\\Complex"]="\\mathbb{C}",rz["\\Dagger"]="\\ddagger",rz["\\diamonds"]="\\diamondsuit",rz["\\empty"]="\\emptyset",rz["\\Epsilon"]="\\mathrm{E}",rz["\\Eta"]="\\mathrm{H}",rz["\\exist"]="\\exists",rz["\\harr"]="\\leftrightarrow",rz["\\hArr"]="\\Leftrightarrow",rz["\\Harr"]="\\Leftrightarrow",rz["\\hearts"]="\\heartsuit",rz["\\image"]="\\Im",rz["\\infin"]="\\infty",rz["\\Iota"]="\\mathrm{I}",rz["\\isin"]="\\in",rz["\\Kappa"]="\\mathrm{K}",rz["\\larr"]="\\leftarrow",rz["\\lArr"]="\\Leftarrow",rz["\\Larr"]="\\Leftarrow",rz["\\lrarr"]="\\leftrightarrow",rz["\\lrArr"]="\\Leftrightarrow",rz["\\Lrarr"]="\\Leftrightarrow",rz["\\Mu"]="\\mathrm{M}",rz["\\natnums"]="\\mathbb{N}",rz["\\Nu"]="\\mathrm{N}",rz["\\Omicron"]="\\mathrm{O}",rz["\\plusmn"]="\\pm",rz["\\rarr"]="\\rightarrow",rz["\\rArr"]="\\Rightarrow",rz["\\Rarr"]="\\Rightarrow",rz["\\real"]="\\Re",rz["\\reals"]="\\mathbb{R}",rz["\\Reals"]="\\mathbb{R}",rz["\\Rho"]="\\mathrm{P}",rz["\\sdot"]="\\cdot",rz["\\sect"]="\\S",rz["\\spades"]="\\spadesuit",rz["\\sub"]="\\subset",rz["\\sube"]="\\subseteq",rz["\\supe"]="\\supseteq",rz["\\Tau"]="\\mathrm{T}",rz["\\thetasym"]="\\vartheta",rz["\\weierp"]="\\wp",rz["\\Zeta"]="\\mathrm{Z}",rz["\\argmin"]="\\DOTSB\\operatorname*{arg\\,min}",rz["\\argmax"]="\\DOTSB\\operatorname*{arg\\,max}",rz["\\plim"]="\\DOTSB\\mathop{\\operatorname{plim}}\\limits",rz["\\bra"]="\\mathinner{\\langle{#1}|}",rz["\\ket"]="\\mathinner{|{#1}\\rangle}",rz["\\braket"]="\\mathinner{\\langle{#1}\\rangle}",rz["\\Bra"]="\\left\\langle#1\\right|",rz["\\Ket"]="\\left|#1\\right\\rangle";var au=e=>t=>{var r=t.consumeArg().tokens,a=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var l=t=>r=>{e&&(r.macros.set("|",s),n.length&&r.macros.set("\\|",o));var i=t;return!t&&n.length&&"|"===r.future().text&&(r.popToken(),i=!0),{tokens:i?n:a,numArgs:0}};t.macros.set("|",l(!1)),n.length&&t.macros.set("\\|",l(!0));var h=t.consumeArg().tokens,m=t.expandTokens([...i,...h,...r]);return t.macros.endGroup(),{tokens:m.reverse(),numArgs:0}};s=au(!1),rz["\\bra@ket"]=s,o=au(!0),rz["\\bra@set"]=o,rz["\\Braket"]="\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}",rz["\\Set"]="\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}",rz["\\set"]="\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}",rz["\\angln"]="{\\angl n}",rz["\\blue"]="\\textcolor{##6495ed}{#1}",rz["\\orange"]="\\textcolor{##ffa500}{#1}",rz["\\pink"]="\\textcolor{##ff00af}{#1}",rz["\\red"]="\\textcolor{##df0030}{#1}",rz["\\green"]="\\textcolor{##28ae7b}{#1}",rz["\\gray"]="\\textcolor{gray}{#1}",rz["\\purple"]="\\textcolor{##9d38bd}{#1}",rz["\\blueA"]="\\textcolor{##ccfaff}{#1}",rz["\\blueB"]="\\textcolor{##80f6ff}{#1}",rz["\\blueC"]="\\textcolor{##63d9ea}{#1}",rz["\\blueD"]="\\textcolor{##11accd}{#1}",rz["\\blueE"]="\\textcolor{##0c7f99}{#1}",rz["\\tealA"]="\\textcolor{##94fff5}{#1}",rz["\\tealB"]="\\textcolor{##26edd5}{#1}",rz["\\tealC"]="\\textcolor{##01d1c1}{#1}",rz["\\tealD"]="\\textcolor{##01a995}{#1}",rz["\\tealE"]="\\textcolor{##208170}{#1}",rz["\\greenA"]="\\textcolor{##b6ffb0}{#1}",rz["\\greenB"]="\\textcolor{##8af281}{#1}",rz["\\greenC"]="\\textcolor{##74cf70}{#1}",rz["\\greenD"]="\\textcolor{##1fab54}{#1}",rz["\\greenE"]="\\textcolor{##0d923f}{#1}",rz["\\goldA"]="\\textcolor{##ffd0a9}{#1}",rz["\\goldB"]="\\textcolor{##ffbb71}{#1}",rz["\\goldC"]="\\textcolor{##ff9c39}{#1}",rz["\\goldD"]="\\textcolor{##e07d10}{#1}",rz["\\goldE"]="\\textcolor{##a75a05}{#1}",rz["\\redA"]="\\textcolor{##fca9a9}{#1}",rz["\\redB"]="\\textcolor{##ff8482}{#1}",rz["\\redC"]="\\textcolor{##f9685d}{#1}",rz["\\redD"]="\\textcolor{##e84d39}{#1}",rz["\\redE"]="\\textcolor{##bc2612}{#1}",rz["\\maroonA"]="\\textcolor{##ffbde0}{#1}",rz["\\maroonB"]="\\textcolor{##ff92c6}{#1}",rz["\\maroonC"]="\\textcolor{##ed5fa6}{#1}",rz["\\maroonD"]="\\textcolor{##ca337c}{#1}",rz["\\maroonE"]="\\textcolor{##9e034e}{#1}",rz["\\purpleA"]="\\textcolor{##ddd7ff}{#1}",rz["\\purpleB"]="\\textcolor{##c6b9fc}{#1}",rz["\\purpleC"]="\\textcolor{##aa87ff}{#1}",rz["\\purpleD"]="\\textcolor{##7854ab}{#1}",rz["\\purpleE"]="\\textcolor{##543b78}{#1}",rz["\\mintA"]="\\textcolor{##f5f9e8}{#1}",rz["\\mintB"]="\\textcolor{##edf2df}{#1}",rz["\\mintC"]="\\textcolor{##e0e5cc}{#1}",rz["\\grayA"]="\\textcolor{##f6f7f7}{#1}",rz["\\grayB"]="\\textcolor{##f0f1f2}{#1}",rz["\\grayC"]="\\textcolor{##e3e5e6}{#1}",rz["\\grayD"]="\\textcolor{##d6d8da}{#1}",rz["\\grayE"]="\\textcolor{##babec2}{#1}",rz["\\grayF"]="\\textcolor{##888d93}{#1}",rz["\\grayG"]="\\textcolor{##626569}{#1}",rz["\\grayH"]="\\textcolor{##3b3e40}{#1}",rz["\\grayI"]="\\textcolor{##21242c}{#1}",rz["\\kaBlue"]="\\textcolor{##314453}{#1}",rz["\\kaGreen"]="\\textcolor{##71B307}{#1}";var ad={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class ag{constructor(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new ao(rz,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new as(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,r,a;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),{tokens:a,end:r}=this.consumeArg(["]"])}else({tokens:a,start:t,end:r}=this.consumeArg());return this.pushToken(new n("EOF",r.loc)),this.pushTokens(a),t.range(r,"")}consumeSpaces(){for(;;)if(" "===this.future().text)this.stack.pop();else break}consumeArg(e){var t,r=[],a=e&&e.length>0;a||this.consumeSpaces();var n=this.future(),s=0,o=0;do{if(t=this.popToken(),r.push(t),"{"===t.text)++s;else if("}"===t.text){if(-1==--s)throw new i("Extra }",t)}else if("EOF"===t.text)throw new i("Unexpected end of input in a macro argument, expected '"+(e&&a?e[o]:"}")+"'",t);if(e&&a)if((0===s||1===s&&"{"===e[o])&&t.text===e[o]){if(++o===e.length){r.splice(-o,o);break}}else o=0}while(0!==s||a);return"{"===n.text&&"}"===r[r.length-1].text&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:n,end:t}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new i("The length of delimiters doesn't match the number of args!");for(var r=t[0],a=0;athis.settings.maxExpand)throw new i("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),r=t.text,a=t.noexpand?null:this._getExpansion(r);if(null==a||e&&a.unexpandable){if(e&&null==a&&"\\"===r[0]&&!this.isDefined(r))throw new i("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);var n=a.tokens,s=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){n=n.slice();for(var o=n.length-1;o>=0;--o){var l=n[o];if("#"===l.text){if(0===o)throw new i("Incomplete placeholder at end of macro body",l);if("#"===(l=n[--o]).text)n.splice(o+1,1);else if(/^[1-9]$/.test(l.text))n.splice(o,2,...s[l.text-1]);else throw new i("Not a valid argument number",l)}}}return this.pushTokens(n),n.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw Error()}expandMacro(e){return this.macros.has(e)?this.expandTokens([new n(e)]):void 0}expandTokens(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(!1===this.expandOnce(!0)){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),t.push(a)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var r=this.lexer.catcodes[e];if(null!=r&&13!==r)return}var a="function"==typeof t?t(this):t;if("string"==typeof a){var n=0;if(-1!==a.indexOf("#"))for(var i=a.replace(/##/g,"");-1!==i.indexOf("#"+(n+1));)++n;for(var s=new as(a,this.settings),o=[],l=s.lex();"EOF"!==l.text;)o.push(l),l=s.lex();return o.reverse(),{tokens:o,numArgs:n}}return a}isDefined(e){return this.macros.has(e)||e8.hasOwnProperty(e)||eh.math.hasOwnProperty(e)||eh.text.hasOwnProperty(e)||ad.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:e8.hasOwnProperty(e)&&!e8[e].primitive}}var af=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,av=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9",ₐ:"a",ₑ:"e",ₕ:"h",ᵢ:"i",ⱼ:"j",ₖ:"k",ₗ:"l",ₘ:"m",ₙ:"n",ₒ:"o",ₚ:"p",ᵣ:"r",ₛ:"s",ₜ:"t",ᵤ:"u",ᵥ:"v",ₓ:"x",ᵦ:"β",ᵧ:"γ",ᵨ:"ρ",ᵩ:"ϕ",ᵪ:"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","\xb9":"1","\xb2":"2","\xb3":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9",ᴬ:"A",ᴮ:"B",ᴰ:"D",ᴱ:"E",ᴳ:"G",ᴴ:"H",ᴵ:"I",ᴶ:"J",ᴷ:"K",ᴸ:"L",ᴹ:"M",ᴺ:"N",ᴼ:"O",ᴾ:"P",ᴿ:"R",ᵀ:"T",ᵁ:"U",ⱽ:"V",ᵂ:"W",ᵃ:"a",ᵇ:"b",ᶜ:"c",ᵈ:"d",ᵉ:"e",ᶠ:"f",ᵍ:"g",ʰ:"h",ⁱ:"i",ʲ:"j",ᵏ:"k",ˡ:"l",ᵐ:"m",ⁿ:"n",ᵒ:"o",ᵖ:"p",ʳ:"r",ˢ:"s",ᵗ:"t",ᵘ:"u",ᵛ:"v",ʷ:"w",ˣ:"x",ʸ:"y",ᶻ:"z",ᵝ:"β",ᵞ:"γ",ᵟ:"δ",ᵠ:"ϕ",ᵡ:"χ",ᶿ:"θ"}),ab={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},ay={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class ax{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new ag(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new i("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new n("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var a=this.fetch();if(-1!==ax.endOfExpression.indexOf(a.text)||t&&a.text===t||e&&e8[a.text]&&e8[a.text].infix)break;var n=this.parseAtom(t);if(n){if("internal"===n.type)continue}else break;r.push(n)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,r=0;r=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var o,l=eh[this.mode][t].group,h=a.range(e);o=eo.hasOwnProperty(l)?{type:"atom",mode:this.mode,family:l,loc:h,text:t}:{type:l,mode:this.mode,loc:h,text:t}}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(T(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),o={type:"textord",mode:"text",loc:a.range(e),text:t}}if(this.consume(),s)for(var m=0;m{function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function s(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||h(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(e){if("string"==typeof e)return r(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}n.d(t,{A:()=>cv});var f,p,g,v,y,b,x,w="undefined"==typeof window?null:window,E=w?w.navigator:null;w&&w.document;var T=d(""),C=d({}),k=d(function(){}),P="undefined"==typeof HTMLElement?"undefined":d(HTMLElement),S=function(e){return e&&e.instanceString&&D(e.instanceString)?e.instanceString():null},B=function(e){return null!=e&&d(e)==T},D=function(e){return null!=e&&d(e)===k},_=function(e){return!N(e)&&(Array.isArray?Array.isArray(e):null!=e&&e instanceof Array)},A=function(e){return null!=e&&d(e)===C&&!_(e)&&e.constructor===Object},M=function(e){return null!=e&&d(e)===d(1)&&!isNaN(e)},R=function(e){return M(e)&&Math.floor(e)===e},I=function(e){if("undefined"!==P)return null!=e&&e instanceof HTMLElement},N=function(e){return L(e)||O(e)},L=function(e){return"collection"===S(e)&&e._private.single},O=function(e){return"collection"===S(e)&&!e._private.single},z=function(e){return"core"===S(e)},V=function(e){return"stylesheet"===S(e)},F=function(e){return null==e||!!(""===e||e.match(/^\s+$/))},X=function(e){return null!=e&&d(e)===C&&D(e.then)},j=function(e,t){t||(t=function(){if(1==arguments.length)return arguments[0];if(0==arguments.length)return"undefined";for(var e=[],t=0;tt)},ee=null!=Object.assign?Object.assign.bind(Object):function(e){for(var t=arguments,n=1;n1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var n,r,i,a,o,s,l,u,c=RegExp("^"+$+"$").exec(e);if(c){if((r=parseInt(c[1]))<0?r=(360- -1*r%360)%360:r>360&&(r%=360),r/=360,(i=parseFloat(c[2]))<0||i>100||(i/=100,(a=parseFloat(c[3]))<0||a>100)||(a/=100,void 0!==(o=c[4])&&((o=parseFloat(o))<0||o>1)))return;if(0===i)s=l=u=Math.round(255*a);else{var d=a<.5?a*(1+i):a+i-a*i,h=2*a-d;s=Math.round(255*t(h,d,r+1/3)),l=Math.round(255*t(h,d,r)),u=Math.round(255*t(h,d,r-1/3))}n=[s,l,u,o]}return n},er=function(e){var t,n=RegExp("^"+K+"$").exec(e);if(n){t=[];for(var r=[],i=1;i<=3;i++){var a=n[i];if("%"===a[a.length-1]&&(r[i]=!0),a=parseFloat(a),r[i]&&(a=a/100*255),a<0||a>255)return;t.push(Math.floor(a))}var o=r[1]||r[2]||r[3],s=r[1]&&r[2]&&r[3];if(o&&!s)return;var l=n[4];if(void 0!==l){if((l=parseFloat(l))<0||l>1)return;t.push(l)}}return t},ei=function(e){return(_(e)?e:null)||ea[e.toLowerCase()]||et(e)||er(e)||en(e)},ea={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},eo=function(e){for(var t=e.map,n=e.keys,r=n.length,i=0;i=o||t<0||v&&n>=c}function w(){var e,n,r,a=t();if(x(a))return E(a);h=setTimeout(w,(e=a-f,n=a-p,r=o-e,v?i(r,c-n):r))}function E(e){return(h=void 0,y&&l)?b(e):(l=u=void 0,d)}function T(){var e,n=t(),r=x(n);if(l=arguments,u=this,f=n,r){if(void 0===h)return p=e=f,h=setTimeout(w,o),g?b(e):d;if(v)return clearTimeout(h),h=setTimeout(w,o),b(f)}return void 0===h&&(h=setTimeout(w,o)),d}return o=n(o)||0,e(s)&&(g=!!s.leading,c=(v="maxWait"in s)?r(n(s.maxWait)||0,o):c,y="trailing"in s?!!s.trailing:y),T.cancel=function(){void 0!==h&&clearTimeout(h),p=0,l=f=u=h=void 0},T.flush=function(){return void 0===h?d:E(t())},T}}()),ev=w?w.performance:null,ey=ev&&ev.now?function(){return ev.now()}:function(){return Date.now()},em=function(){if(w){if(w.requestAnimationFrame)return function(e){w.requestAnimationFrame(e)};else if(w.mozRequestAnimationFrame)return function(e){w.mozRequestAnimationFrame(e)};else if(w.webkitRequestAnimationFrame)return function(e){w.webkitRequestAnimationFrame(e)};else if(w.msRequestAnimationFrame)return function(e){w.msRequestAnimationFrame(e)}}return function(e){e&&setTimeout(function(){e(ey())},1e3/60)}}(),eb=function(e){return em(e)},ex=function(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9261,r=n;!(t=e.next()).done;)r=65599*r+t.value|0;return r},ew=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9261;return 65599*t+e|0},eE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5381;return(t<<5)+t+e|0},eT=function(e){return 2097152*e[0]+e[1]},eC=function(e,t){return[ew(e[0],t[0]),eE(e[1],t[1])]},ek=function(e,t){var n={value:0,done:!1},r=0,i=e.length;return ex({next:function(){return r=0;r--)e[r]===t&&e.splice(r,1)},eU=function(e){e.splice(0,e.length)},eG=function(e,t){for(var n=0;n2)||void 0===arguments[2]||arguments[2];if(void 0===e||void 0===t||!z(e))return void eO("An element must have a core reference and parameters set");var r=t.group;if(null==r&&(r=t.data&&null!=t.data.source&&null!=t.data.target?"edges":"nodes"),"nodes"!==r&&"edges"!==r)return void eO("An element must be of type `nodes` or `edges`; you specified `"+r+"`");this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:r,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:void 0===t.selectable||!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:void 0===t.grabbable||!!t.grabbable,pannable:void 0===t.pannable?"edges"===r:!!t.pannable,active:!1,classes:new eJ,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(null==i.position.x&&(i.position.x=0),null==i.position.y&&(i.position.y=0),t.renderedPosition){var a=t.renderedPosition,o=e.pan(),s=e.zoom();i.position={x:(a.x-o.x)/s,y:(a.y-o.y)/s}}var l=[];_(t.classes)?l=t.classes:B(t.classes)&&(l=t.classes.split(/\s+/));for(var u=0,c=l.length;ut)},l=function(e,r,i,a,o){var s;if(null==i&&(i=0),null==o&&(o=t),i<0)throw Error("lo must be non-negative");for(null==a&&(a=e.length);io(r,e[s=n((i+a)/2)])?a=s:i=s+1;return[].splice.apply(e,[i,i-i].concat(r)),r},a=function(e,n,r){return null==r&&(r=t),e.push(n),f(e,0,e.length-1,r)},i=function(e,n){var r,i;return null==n&&(n=t),r=e.pop(),e.length?(i=e[0],e[0]=r,p(e,0,n)):i=r,i},s=function(e,n,r){var i;return null==r&&(r=t),i=e[0],e[0]=n,p(e,0,r),i},o=function(e,n,r){var i;return null==r&&(r=t),e.length&&0>r(e[0],n)&&(n=(i=[e[0],n])[0],e[0]=i[1],p(e,0,r)),n},r=function(e,r){var i,a,o,s,l,u;for(null==r&&(r=t),s=(function(){u=[];for(var t=0,r=n(e.length/2);0<=r?tr;0<=r?t++:t--)u.push(t);return u}).apply(this).reverse(),l=[],a=0,o=s.length;aa(o=p[d],s)&&(l(c,o,0,null,a),c.pop(),s=c[c.length-1]);return c}for(r(e,a),v=[],h=0,g=u(n,e.length);0<=g?hg;0<=g?++h:--h)v.push(i(e,a));return v},f=function(e,n,r,i){var a,o,s;for(null==i&&(i=t),a=e[r];r>n;){if(0>i(a,o=e[s=r-1>>1])){e[r]=o,r=s;continue}break}return e[r]=a},p=function(e,n,r){var i,a,o,s,l;for(null==r&&(r=t),a=e.length,l=n,o=e[n],i=2*n+1;ir(e[i],e[s]))&&(i=s),e[n]=e[i],i=2*(n=i)+1;return e[n]=o,f(e,l,n,r)},e=function(){function e(e){this.cmp=null!=e?e:t,this.nodes=[]}return e.push=a,e.pop=i,e.replace=s,e.pushpop=o,e.heapify=r,e.updateItem=h,e.nlargest=c,e.nsmallest=d,e.prototype.push=function(e){return a(this.nodes,e,this.cmp)},e.prototype.pop=function(){return i(this.nodes,this.cmp)},e.prototype.peek=function(){return this.nodes[0]},e.prototype.contains=function(e){return -1!==this.nodes.indexOf(e)},e.prototype.replace=function(e){return s(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return o(this.nodes,e,this.cmp)},e.prototype.heapify=function(){return r(this.nodes,this.cmp)},e.prototype.updateItem=function(e){return h(this.nodes,e,this.cmp)},e.prototype.clear=function(){return this.nodes=[]},e.prototype.empty=function(){return 0===this.nodes.length},e.prototype.size=function(){return this.nodes.length},e.prototype.clone=function(){var t;return(t=new e).nodes=this.nodes.slice(0),t},e.prototype.toArray=function(){return this.nodes.slice(0)},e.prototype.insert=e.prototype.push,e.prototype.top=e.prototype.peek,e.prototype.front=e.prototype.peek,e.prototype.has=e.prototype.contains,e.prototype.copy=e.prototype.clone,e}(),e5.exports=e}).call(e3),e5.exports)}())),e9=eq({root:null,weight:function(e){return 1},directed:!1}),e6=eq({root:null,goal:null,weight:function(e){return 1},heuristic:function(e){return 0},directed:!1}),e8=eq({weight:function(e){return 1},directed:!1}),e7=eq({weight:function(e){return 1},directed:!1,root:null}),te=Math.sqrt(2),tt=function(e,t,n){0===n.length&&eO("Karger-Stein must be run on a connected (sub)graph");for(var r=n[e],i=r[1],a=r[2],o=t[i],s=t[a],l=n.length-1;l>=0;l--){var u=n[l],c=u[1],d=u[2];(t[c]===o&&t[d]===s||t[c]===s&&t[d]===o)&&n.splice(l,1)}for(var h=0;hr;)t=tt(Math.floor(Math.random()*t.length),e,t),n--;return t},tr=function(e,t,n){return{x:e.x*t+n.x,y:e.y*t+n.y}},ti=function(e,t,n){return{x:(e.x-n.x)/t,y:(e.y-n.y)/t}},ta=function(e){return{x:e[0],y:e[1]}},to=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=1/0,i=t;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=-1/0,i=t;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=0,i=0,a=t;a1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=!(arguments.length>4)||void 0===arguments[4]||arguments[4],a=!(arguments.length>5)||void 0===arguments[5]||arguments[5];r?e=e.slice(t,n):(n0&&e.splice(0,t));for(var o=0,s=e.length-1;s>=0;s--){var l=e[s];a?!isFinite(l)&&(e[s]=-1/0,o++):e.splice(s,1)}i&&e.sort(function(e,t){return e-t});var u=e.length,c=Math.floor(u/2);return u%2!=0?e[c+1+o]:(e[c-1+o]+e[c+o])/2},tc=function(e,t){return 0===t?e:tc(t,e%t)},td=function(e){for(var t=e[0],n=0;n0&&(t=tc(t,e[n]));return t},th=function(e,t){return Math.atan2(t,e)-Math.PI/2},tf=Math.log2||function(e){return Math.log(e)/Math.log(2)},tp=function(e){return e>0?1:e<0?-1:0},tg=function(e,t){return Math.sqrt(tv(e,t))},tv=function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},ty=function(e){for(var t=e.length,n=0,r=0;r=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};else if(null!=e.w&&null!=e.h&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},tT=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},tC=function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},tk=function(e,t,n){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,n),e.y2=Math.max(e.y2,n),e.h=e.y2-e.y1},tP=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},tS=function(e){var t,n,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0];if(1===a.length)t=n=r=i=a[0];else if(2===a.length)t=r=a[0],i=n=a[1];else if(4===a.length){var o=l(a,4);t=o[0],n=o[1],r=o[2],i=o[3]}return e.x1-=i,e.x2+=n,e.y1-=t,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},tB=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},tD=function(e,t){return!(e.x1>t.x2)&&!(t.x1>e.x2)&&!(e.x2t.y2)&&!(t.y1>e.y2)&&!0},t_=function(e,t,n){return e.x1<=t&&t<=e.x2&&e.y1<=n&&n<=e.y2},tA=function(e,t){return t_(e,t.x,t.y)},tM=function(e,t){return t_(e,t.x1,t.y1)&&t_(e,t.x2,t.y2)},tR=null!=(oI=Math.hypot)?oI:function(e,t){return Math.sqrt(e*e+t*t)},tI=function(e,t,n,r,i,a,o){var s,l,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"auto",c="auto"===u?t3(i,a):u,d=i/2,h=a/2,f=(c=Math.min(c,d,h))!==d,p=c!==h;if(f){var g=n-d+c-o,v=r-h-o,y=n+d-c+o;if((s=tZ(e,t,n,r,g,v,y,v,!1)).length>0)return s}if(p){var b=n+d+o,x=r-h+c-o,w=r+h-c+o;if((s=tZ(e,t,n,r,b,x,b,w,!1)).length>0)return s}if(f){var E=n-d+c-o,T=r+h+o,C=n+d-c+o;if((s=tZ(e,t,n,r,E,T,C,T,!1)).length>0)return s}if(p){var k=n-d-o,P=r-h+c-o,S=r+h-c+o;if((s=tZ(e,t,n,r,k,P,k,S,!1)).length>0)return s}var B=n-d+c,D=r-h+c;if((l=tH(e,t,n,r,B,D,c+o)).length>0&&l[0]<=B&&l[1]<=D)return[l[0],l[1]];var _=n+d-c,A=r-h+c;if((l=tH(e,t,n,r,_,A,c+o)).length>0&&l[0]>=_&&l[1]<=A)return[l[0],l[1]];var M=n+d-c,R=r+h-c;if((l=tH(e,t,n,r,M,R,c+o)).length>0&&l[0]>=M&&l[1]>=R)return[l[0],l[1]];var I=n-d+c,N=r+h-c;return(l=tH(e,t,n,r,I,N,c+o)).length>0&&l[0]<=I&&l[1]>=N?[l[0],l[1]]:[]},tN=function(e,t,n,r,i,a,o){var s=Math.min(n,i),l=Math.max(n,i),u=Math.min(r,a),c=Math.max(r,a);return s-o<=e&&e<=l+o&&u-o<=t&&t<=c+o},tL=function(e,t,n,r,i,a,o,s,l){var u={x1:Math.min(n,o,i)-l,x2:Math.max(n,o,i)+l,y1:Math.min(r,s,a)-l,y2:Math.max(r,s,a)+l};return!(eu.x2)&&!(tu.y2)},tO=function(e,t,n,r){var i=t*t-4*e*(n-=r);if(i<0)return[];var a=Math.sqrt(i),o=2*e;return[(-t+a)/o,(-t-a)/o]},tz=function(e,t,n,r,i){var a,o,s,l,u,c,d,h;if(0===e&&(e=1e-5),t/=e,n/=e,r/=e,a=(o=(3*n-t*t)/9)*o*o+(s=(-(27*r)+t*(9*n-t*t*2))/54)*s,i[1]=0,d=t/3,a>0){u=(u=s+Math.sqrt(a))<0?-Math.pow(-u,1/3):Math.pow(u,1/3),c=(c=s-Math.sqrt(a))<0?-Math.pow(-c,1/3):Math.pow(c,1/3),i[0]=-d+u+c,d+=(u+c)/2,i[4]=i[2]=-d,d=Math.sqrt(3)*(-c+u)/2,i[3]=d,i[5]=-d;return}if(i[5]=i[3]=0,0===a){h=s<0?-Math.pow(-s,1/3):Math.pow(s,1/3),i[0]=-d+2*h,i[4]=i[2]=-(h+d);return}l=Math.acos(s/Math.sqrt(l=(o=-o)*o*o)),h=2*Math.sqrt(o),i[0]=-d+h*Math.cos(l/3),i[2]=-d+h*Math.cos((l+2*Math.PI)/3),i[4]=-d+h*Math.cos((l+4*Math.PI)/3)},tV=function(e,t,n,r,i,a,o,s){var l,u=[];tz(n*n-4*n*i+2*n*o+4*i*i-4*i*o+o*o+r*r-4*r*a+2*r*s+4*a*a-4*a*s+s*s,9*n*i-3*n*n-3*n*o-6*i*i+3*i*o+9*r*a-3*r*r-3*r*s-6*a*a+3*a*s,3*n*n-6*n*i+n*o-n*e+2*i*i+2*i*e-o*e+3*r*r-6*r*a+r*s-r*t+2*a*a+2*a*t-s*t,n*i-n*n+n*e-i*e+r*a-r*r+r*t-a*t,u);for(var c=[],d=0;d<6;d+=2)1e-7>Math.abs(u[d+1])&&u[d]>=0&&u[d]<=1&&c.push(u[d]);c.push(1),c.push(0);for(var h=-1,f=0;f=0?ll?(e-i)*(e-i)+(t-a)*(t-a):u-d},tX=function(e,t,n){for(var r,i,a,o,s=0,l=0;l=e)||!(e>=a))&&(!(r<=e)||!(e<=a)))continue;(e-r)/(a-r)*(o-i)+i>t&&s++}return s%2!=0},tj=function(e,t,n,r,i,a,o,s,l){var u,c=Array(n.length);null!=s[0]?(u=Math.atan(s[1]/s[0]),s[0]<0?u+=Math.PI/2:u=-u-Math.PI/2):u=s;for(var d=Math.cos(-u),h=Math.sin(-u),f=0;f0?tq(tW(c,-l)):c)},tY=function(e,t,n,r,i,a,o,s){for(var l=Array(2*n.length),u=0;u=0&&p<=1&&v.push(p),g>=0&&g<=1&&v.push(g),0===v.length)return[];var y=v[0]*s[0]+e,b=v[0]*s[1]+t;return v.length>1?v[0]==v[1]?[y,b]:[y,b,v[1]*s[0]+e,v[1]*s[1]+t]:[y,b]},tK=function(e,t,n){return t<=e&&e<=n||n<=e&&e<=t?e:e<=t&&t<=n||n<=t&&t<=e?t:n},tZ=function(e,t,n,r,i,a,o,s,l){var u=e-i,c=n-e,d=o-i,h=t-a,f=r-t,p=s-a,g=d*h-p*u,v=c*h-f*u,y=p*c-d*f;if(0!==y){var b=g/y,x=v/y;return -.001<=b&&b<=1.001&&-.001<=x&&x<=1.001||l?[e+b*c,t+b*f]:[]}return 0!==g&&0!==v?[]:tK(e,n,o)===o?[o,s]:tK(e,n,i)===i?[i,a]:tK(i,o,n)===n?[n,r]:[]},t$=function(e,t,n,r,i){var a=[],o=r/2,s=i/2;a.push({x:t+o*e[0],y:n+s*e[1]});for(var l=1;l0?tq(tW(g,-s)):g}else u=n;for(var b=0;b2){for(var f=[c[0],c[1]],p=Math.pow(f[0]-e,2)+Math.pow(f[1]-t,2),g=1;gu&&(u=t)},d=function(e){return l[e]},h=0;h0?x.edgesTo(b)[0]:b.edgesTo(x)[0]);u[b=b.id()]>u[v]+w&&(u[b]=u[v]+w,0>h.nodes.indexOf(b)?h.push(b):h.updateItem(b),l[b]=0,n[b]=[]),u[b]==u[v]+w&&(l[b]=l[b]+l[v],n[b].push(v))}else for(var E=0;E0;){for(var P=t.pop(),S=0;S0&&o.push(n[s]);0!==o.length&&i.push(r.collection(o))}return i},ng=function(e,t){for(var n=0;n5&&void 0!==arguments[5]?arguments[5]:nm,o=r,s=0;s=2?nC(e,t,n,0,nw,nE):nC(e,t,n,0,nx)},squaredEuclidean:function(e,t,n){return nC(e,t,n,0,nw)},manhattan:function(e,t,n){return nC(e,t,n,0,nx)},max:function(e,t,n){return nC(e,t,n,-1/0,nT)}};function nP(e,t,n,r,i,a){var o;return(o=D(e)?e:nk[e]||nk.euclidean,0===t&&D(e))?o(i,a):o(t,n,r,i,a)}nk["squared-euclidean"]=nk.squaredEuclidean,nk.squaredeuclidean=nk.squaredEuclidean;var nS=eq({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),nB=function(e){return nS(e)},nD=function(e,t,n,r,i){var a="kMedoids"!==i?function(e){return n[e]}:function(e){return r[e](n)};return nP(e,r.length,a,function(e){return r[e](t)},n,t)},n_=function(e,t,n){for(var r=n.length,i=Array(r),a=Array(r),o=Array(t),s=null,l=0;ln)return!1;return!0},nI=function(e,t,n){for(var r=0;ri&&(i=t[l][u],a=u);o[a].push(e[l])}for(var c=0;c=i.threshold||"dendrogram"===i.mode&&1===e.length)return!1;var p=t[s],g=t[r[s]];o="dendrogram"===i.mode?{left:p,right:g,key:p.key}:{value:p.value.concat(g.value),key:p.key},e[p.index]=o,e.splice(g.index,1),t[p.key]=o;for(var v=0;vn[g.key][y.key]&&(a=n[g.key][y.key])):"max"===i.linkage?(a=n[p.key][y.key],n[p.key][y.key]0&&r.push(i);return r},n0=function(e,t,n){for(var r=[],i=0;io&&(a=l,o=t[i*e+l])}a>0&&r.push(a)}for(var u=0;ul&&(s=u,l=c)}n[i]=a[s]}return n0(e,t,n)},n2=function(e){for(var t,n,r,i,a,o,s,l=this.cy(),u=this.nodes(),c=nZ(e),d={},h=0;h=S?(B=S,S=_,D=A):_>B&&(B=_);for(var M=0;M0);C[s%c.minIterations*t+z]=V,O+=V}if(O>0&&(s>=c.minIterations-1||s==c.maxIterations-1)){for(var F=0,X=0;X1)}});var u=Object.keys(t).filter(function(e){return t[e].cutVertex}).map(function(t){return e.getElementById(t)});return{cut:e.spawn(u),components:i}},n4=function(){var e=this,t={},n=0,r=[],i=[],a=e.spawn(e),o=function(s){if(i.push(s),t[s]={index:n,low:n++,explored:!1},e.getElementById(s).connectedEdges().intersection(e).forEach(function(e){var n=e.target().id();n!==s&&(n in t||o(n),t[n].explored||(t[s].low=Math.min(t[s].low,t[n].low)))}),t[s].index===t[s].low){for(var l=e.spawn();;){var u=i.pop();if(l.merge(e.getElementById(u)),t[u].low=t[s].index,t[u].explored=!0,u===s)break}var c=l.edgesWith(l),d=l.merge(c);r.push(d),a=a.difference(d)}};return e.forEach(function(e){if(e.isNode()){var n=e.id();n in t||o(n)}}),{cut:a,components:r}},n9={};[e2,{dijkstra:function(e){if(!A(e)){var t=arguments;e={root:t[0],weight:t[1],directed:t[2]}}var n=e9(e),r=n.root,i=n.weight,a=n.directed,o=this,s=B(r)?this.filter(r)[0]:r[0],l={},u={},c={},d=this.byGroup(),h=d.nodes,f=d.edges;f.unmergeBy(function(e){return e.isLoop()});for(var p=function(e){return l[e.id()]},g=new e4(function(e,t){return p(e)-p(t)}),v=0;v0;){var b=g.pop(),x=p(b);if(c[b.id()]=x,x!==1/0)for(var w=b.neighborhood().intersect(h),E=0;E0)for(n.unshift(t);u[i];){var a=u[i];n.unshift(a.edge),n.unshift(a.node),i=(r=a.node).id()}return o.spawn(n)}}}},{kruskal:function(e){e=e||function(e){return 1};for(var t=this.byGroup(),n=t.nodes,r=t.edges,i=n.length,a=Array(i),o=function(e){for(var t=0;t0;){if(n=(t=g.pop()).id(),v.delete(n),w++,n===d){for(var E=[],T=o,C=d,k=b[C];E.unshift(T),null!=k&&E.unshift(k),null!=(T=y[C]);)k=b[C=T.id()];return{found:!0,distance:h[n],path:this.spawn(E),steps:w}}p[n]=!0;for(var P=t._private.edges,S=0;Sk&&(h[C]=k,g[C]=T,v[C]=b),!i){var P=T*l+E;!i&&h[P]>k&&(h[P]=k,g[P]=E,v[P]=b)}}}for(var S=0;S1&&void 0!==arguments[1]?arguments[1]:a,r=y(e),i=[],s=r;;){if(null==s)return t.spawn();var l=v(s),u=l.edge,c=l.pred;if(i.unshift(s[0]),s.same(n)&&i.length>0)break;null!=u&&i.unshift(u),s=c}return o.spawn(i)},hasNegativeWeightCycle:f,negativeWeightCycles:p}}},{kargerStein:function(){var e=this,t=this.byGroup(),n=t.nodes,r=t.edges;r.unmergeBy(function(e){return e.isLoop()});var i=n.length,a=r.length,o=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),s=Math.floor(i/te);if(i<2)return void eO("At least 2 nodes are required for Karger-Stein algorithm");for(var l=[],u=0;u1||o>1)&&(l=!0),u[r]=[],e.outgoers().forEach(function(e){e.isEdge()&&u[r].push(e.id())})}else c[r]=[void 0,e.target().id()]}):this.forEach(function(e){var r=e.id();e.isNode()?(e.degree(!0)%2&&(t?n?l=!0:n=r:t=r),u[r]=[],e.connectedEdges().forEach(function(e){return u[r].push(e.id())})):c[r]=[e.source().id(),e.target().id()]});var d={found:!1,trail:void 0};if(l)return d;if(n&&t)if(s){if(r&&n!=r)return d;r=n}else{if(r&&n!=r&&t!=r)return d;r||(r=n)}else r||(r=this[0].id());var h=function(e){for(var t,n,r,i=e,a=[e];u[i].length;)n=c[t=u[i].shift()][0],i!=(r=c[t][1])?(u[r]=u[r].filter(function(e){return e!=t}),i=r):s||i==n||(u[n]=u[n].filter(function(e){return e!=t}),i=n),a.unshift(t),a.unshift(i);return a},f=[],p=[];for(p=h(r);1!=p.length;)0==u[p[0]].length?(f.unshift(this.getElementById(p.shift())),f.unshift(this.getElementById(p.shift()))):p=h(p.shift()).concat(p);for(var g in f.unshift(this.getElementById(p.shift())),u)if(u[g].length)return d;return d.found=!0,d.trail=this.spawn(f,!0),d}},{hopcroftTarjanBiconnected:n3,htbc:n3,htb:n3,hopcroftTarjanBiconnectedComponents:n3},{tarjanStronglyConnected:n4,tsc:n4,tscc:n4,tarjanStronglyConnectedComponents:n4}].forEach(function(e){ee(n9,e)});var n6=function(e){if(!(this instanceof n6))return new n6(e);this.id="Thenable/1.0.7",this.state=0,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},"function"==typeof e&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};n6.prototype={fulfill:function(e){return n8(this,1,"fulfillValue",e)},reject:function(e){return n8(this,2,"rejectReason",e)},then:function(e,t){var n=new n6;return this.onFulfilled.push(rt(e,n,"fulfill")),this.onRejected.push(rt(t,n,"reject")),n7(this),n.proxy}};var n8=function(e,t,n,r){return 0===e.state&&(e.state=t,e[n]=r,n7(e)),e},n7=function(e){1===e.state?re(e,"onFulfilled",e.fulfillValue):2===e.state&&re(e,"onRejected",e.rejectReason)},re=function(e,t,n){if(0!==e[t].length){var r=e[t];e[t]=[];var i=function(){for(var e=0;e-1}}(),i=function(){if(sv)return sg;sv=1;var e=rc();return sg=function(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this}}();function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&t%1==0&&t0}},clearQueue:function(){return function(){var e=void 0!==this.length?this:[this];if(!(this._private.cy||this).styleEnabled())return this;for(var t=0;t0&&this.spawn(n).updateStyle().emit("class"),this},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var t=this[0];return null!=t&&t._private.classes.has(e)},toggleClass:function(e,t){_(e)||(e=e.match(/\S+/g)||[]);for(var n=void 0===t,r=[],i=0,a=this.length;i0&&this.spawn(r).updateStyle().emit("class"),this},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,t){var n=this;if(null==t)t=250;else if(0===t)return n;return n.addClass(e),setTimeout(function(){n.removeClass(e)},t),n}};rE.className=rE.classNames=rE.classes;var rT={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:"\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'",number:H,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};rT.variable="(?:[\\w-.]|(?:\\\\"+rT.metaChar+"))+",rT.className="(?:[\\w-]|(?:\\\\"+rT.metaChar+"))+",rT.value=rT.string+"|"+rT.number,rT.id=rT.variable,function(){var e,t,n;for(n=0,e=rT.comparatorOp.split("|");n=0||"="!==t&&(rT.comparatorOp+="|\\!"+t)}();var rC=function(){return{checks:[]}},rk={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},rP=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(e,t){return -1*J(e.selector,t.selector)}),rS=function(){for(var e,t={},n=0;n=0&&(t=t.replace("!",""),c=!0),t.indexOf("@")>=0&&(t=t.replace("@",""),u=!0),(o||l||u)&&(i=o||s?""+e:"",a=""+n),u&&(e=i=i.toLowerCase(),n=a=a.toLowerCase()),t){case"*=":r=i.indexOf(a)>=0;break;case"$=":r=i.indexOf(a,i.length-a.length)>=0;break;case"^=":r=0===i.indexOf(a);break;case"=":r=e===n;break;case">":d=!0,r=e>n;break;case">=":d=!0,r=e>=n;break;case"<":d=!0,r=e0&&l.edgeCount>0)return eV("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(l.edgeCount>1)return eV("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;1===l.edgeCount&&eV("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},toString:function(){if(null!=this.toStringCache)return this.toStringCache;for(var e=function(e){return null==e?"":e},t=function(t){return B(t)?'"'+t+'"':e(t)},n=function(e){return" "+e+" "},r=function(r,a){var o=r.type,s=r.value;switch(o){case rk.GROUP:var l=e(s);return l.substring(0,l.length-1);case rk.DATA_COMPARE:return"["+r.field+n(e(r.operator))+t(s)+"]";case rk.DATA_BOOL:var u=r.operator,c=r.field;return"["+e(u)+c+"]";case rk.DATA_EXIST:return"["+r.field+"]";case rk.META_COMPARE:var d=r.operator;return"[["+r.field+n(e(d))+t(s)+"]]";case rk.STATE:return s;case rk.ID:return"#"+s;case rk.CLASS:return"."+s;case rk.PARENT:case rk.CHILD:return i(r.parent,a)+n(">")+i(r.child,a);case rk.ANCESTOR:case rk.DESCENDANT:return i(r.ancestor,a)+" "+i(r.descendant,a);case rk.COMPOUND_SPLIT:var h=i(r.left,a),f=i(r.subject,a),p=i(r.right,a);return h+(h.length>0?" ":"")+f+p;case rk.TRUE:return""}},i=function(e,t){return e.checks.reduce(function(n,i,a){return n+(t===e&&0===a?"$":"")+r(i,t)},"")},a="",o=0;o1&&o0;){var u=i.shift();t(u),a.add(u.id()),o&&r(i,a,u)}return e}function rW(e,t,n){if(n.isParent())for(var r=n._private.children,i=0;i1)||void 0===arguments[1]||arguments[1];return rq(this,e,t,rW)},rY.forEachUp=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return rq(this,e,t,rU)},rY.forEachUpAndDown=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return rq(this,e,t,rG)},rY.ancestors=rY.parents,(lu=lc={data:rx.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:rx.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:rx.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:rx.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:rx.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:rx.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}}).attr=lu.data,lu.removeAttr=lu.removeData;var rH={};function rK(e){return function(t){if(void 0===t&&(t=!0),0!==this.length)if(!this.isNode()||this.removed())return;else{for(var n=0,r=this[0],i=r._private.edges,a=0;at}),minIndegree:rZ("indegree",function(e,t){return et}),minOutdegree:rZ("outdegree",function(e,t){return et})}),ee(rH,{totalDegree:function(e){for(var t=0,n=this.nodes(),r=0;r0;c&&(u=u[0]);var d=c?u.position():{x:0,y:0};void 0!==t?l.position(e,t+d[e]):void 0!==i&&l.position({x:i.x+d.x,y:i.y+d.y})}else{var h=n.position(),f=o?n.parent():null,p=f&&f.length>0;p&&(f=f[0]);var g=p?f.position():{x:0,y:0};return(i={x:h.x-g.x,y:h.y-g.y},void 0===e)?i:i[e]}else if(!a)return;return this}}).modelPosition=ld.point=ld.position,ld.modelPositions=ld.points=ld.positions,ld.renderedPoint=ld.renderedPosition,ld.relativePoint=ld.relativePosition;var rJ=function(e){switch(e){case"left":case"right-inside":return"left";case"right":case"left-inside":return"right";default:return"center"}},r0=function(e){switch(e){case"top":case"bottom-inside":return"top";case"bottom":case"top-inside":return"bottom";default:return"center"}},r1=function(e){switch(e){case"left":case"right-inside":return"right";case"right":case"left-inside":return"left";default:return"center"}};lf=lp={},lp.renderedBoundingBox=function(e){var t=this.boundingBox(e),n=this.cy(),r=n.zoom(),i=n.pan(),a=t.x1*r+i.x,o=t.x2*r+i.x,s=t.y1*r+i.y,l=t.y2*r+i.y;return{x1:a,x2:o,y1:s,y2:l,w:o-a,h:l-s}},lp.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.cy();return t.styleEnabled()&&t.hasCompoundNodes()&&this.forEachUp(function(t){if(t.isParent()){var n=t._private;n.compoundBoundsClean=!1,n.bbCache=null,e||t.emitAndNotify("bounds")}}),this},lp.updateCompoundBounds=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes()||!e&&t.batching())return this;for(var n=0;n0&&(s=100*s/i.width.val);var l=i.width.right.value;"px"===i.width.right.units&&i.width.val>0&&(l=100*l/i.width.val);var u=i.height.top.value;"px"===i.height.top.units&&i.height.val>0&&(u=100*u/i.height.val);var c=i.height.bottom.value;"px"===i.height.bottom.units&&i.height.val>0&&(c=100*c/i.height.val);var d=y(i.width.val-a.w,s,l),h=d.biasDiff,f=d.biasComplementDiff,p=y(i.height.val-a.h,u,c),g=p.biasDiff,v=p.biasComplementDiff;t.autoPadding=function(e,t,n,r){if("%"===n.units)switch(r){case"width":return e>0?n.pfValue*e:0;case"height":return t>0?n.pfValue*t:0;case"average":return e>0&&t>0?n.pfValue*(e+t)/2:0;case"min":return e>0&&t>0?e>t?n.pfValue*t:n.pfValue*e:0;case"max":return e>0&&t>0?e>t?n.pfValue*e:n.pfValue*t:0;default:return 0}return"px"===n.units?n.pfValue:0}(a.w,a.h,e.pstyle("padding"),e.pstyle("padding-relative-to").value),t.autoWidth=Math.max(a.w,i.width.val),o.x=(-h+a.x1+a.x2+f)/2,t.autoHeight=Math.max(a.h,i.height.val),o.y=(-g+a.y1+a.y2+v)/2}function y(e,t,n){var r=0,i=0,a=t+n;return e>0&&a>0&&(r=t/a*e,i=n/a*e),{biasDiff:r,biasComplementDiff:i}}}(r),t.batching()||(i.compoundBoundsClean=!0))}return this};var r2=function(e){return e===1/0||e===-1/0?0:e},r5=function(e,t,n,r,i){r-t!=0&&i-n!=0&&null!=t&&null!=n&&null!=r&&null!=i&&(e.x1=te.x2?r:e.x2,e.y1=ne.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},r3=function(e,t){return null==t?e:r5(e,t.x1,t.y1,t.x2,t.y2)},r4=function(e,t,n){return eH(e,t,n)},r9=function(e,t,n){if(!t.cy().headless()){var r,i,a=t._private,o=a.rstyle,s=o.arrowWidth/2;if("none"!==t.pstyle(n+"-arrow-shape").value){"source"===n?(r=o.srcX,i=o.srcY):"target"===n?(r=o.tgtX,i=o.tgtY):(r=o.midX,i=o.midY);var l=a.arrowBounds=a.arrowBounds||{},u=l[n]=l[n]||{};u.x1=r-s,u.y1=i-s,u.x2=r+s,u.y2=i+s,u.w=u.x2-u.x1,u.h=u.y2-u.y1,tP(u,1),r5(e,u.x1,u.y1,u.x2,u.y2)}}},r6=function(e,t,n){if(!t.cy().headless()){a=n?n+"-":"";var r=t._private,i=r.rstyle;if(t.pstyle(a+"label").strValue){var a,o,s,l,u,c=t.pstyle("text-halign"),d=t.pstyle("text-valign"),h=r4(i,"labelWidth",n),f=r4(i,"labelHeight",n),p=r4(i,"labelX",n),g=r4(i,"labelY",n),v=t.pstyle(a+"text-margin-x").pfValue,y=t.pstyle(a+"text-margin-y").pfValue,b=t.isEdge(),x=t.pstyle(a+"text-rotation"),w=t.pstyle("text-outline-width").pfValue,E=t.pstyle("text-border-width").pfValue/2,T=t.pstyle("text-background-padding").pfValue,C=h/2,k=f/2;if(b)o=p-C,s=p+C,l=g-k,u=g+k;else{switch(rJ(c.value)){case"left":o=p-h,s=p;break;case"center":o=p-C,s=p+C;break;case"right":o=p,s=p+h}switch(r0(d.value)){case"top":l=g-f,u=g;break;case"center":l=g-k,u=g+k;break;case"bottom":l=g,u=g+f}}var P=v-Math.max(w,E)-T-2,S=v+Math.max(w,E)+T+2,B=y-Math.max(w,E)-T-2,D=y+Math.max(w,E)+T+2;o+=P,s+=S,l+=B,u+=D;var _=n||"main",A=r.labelBounds,M=A[_]=A[_]||{};M.x1=o,M.y1=l,M.x2=s,M.y2=u,M.w=s-o,M.h=u-l,M.leftPad=P,M.rightPad=S,M.topPad=B,M.botPad=D;var R=b&&"autorotate"===x.strValue,I=null!=x.pfValue&&0!==x.pfValue;if(R||I){var N=R?r4(r.rstyle,"labelAngle",n):x.pfValue,L=Math.cos(N),O=Math.sin(N),z=(o+s)/2,V=(l+u)/2;if(!b){switch(rJ(c.value)){case"left":z=s;break;case"right":z=o}switch(r0(d.value)){case"top":V=u;break;case"bottom":V=l}}var F=function(e,t){return{x:(e-=z)*L-(t-=V)*O+z,y:e*O+t*L+V}},X=F(o,l),j=F(o,u),Y=F(s,l),q=F(s,u);o=Math.min(X.x,j.x,Y.x,q.x),s=Math.max(X.x,j.x,Y.x,q.x),l=Math.min(X.y,j.y,Y.y,q.y),u=Math.max(X.y,j.y,Y.y,q.y)}var W=_+"Rot",U=A[W]=A[W]||{};U.x1=o,U.y1=l,U.x2=s,U.y2=u,U.w=s-o,U.h=u-l,r5(e,o,l,s,u),r5(r.labelBounds.all,o,l,s,u)}return e}},r8=function(e,t){if(!t.cy().headless()){var n=t.pstyle("outline-opacity").value,r=t.pstyle("outline-width").value+t.pstyle("outline-offset").value;r7(e,t,n,r,"outside",r/2)}},r7=function(e,t,n,r,i,a){if(0!==n&&!(r<=0)&&"inside"!==i){var o=t.cy().renderer(),s=o.nodeShapes[o.getNodeShape(t)];if(s){var l=t.position(),u=l.x,c=l.y,d=t.width(),h=t.height();s.hasMiterBounds?("center"===i&&(r/=2),r3(e,s.miterBounds(u,c,d,h,r))):null!=a&&a>0&&tS(e,[a,a,a,a])}}},ie=function(e,t){if(!t.cy().headless()){var n=t.pstyle("border-opacity").value,r=t.pstyle("border-width").pfValue,i=t.pstyle("border-position").value;r7(e,t,n,r,i)}},it=function(e,t){var n=e._private.cy,r=n.styleEnabled(),i=n.headless(),a=tE(),o=e._private,s=e.isNode(),l=e.isEdge(),u=o.rstyle,c=s&&r?e.pstyle("bounds-expansion").pfValue:[0],d=function(e){return"none"!==e.pstyle("display").value},h=!r||d(e)&&(!l||d(e.source())&&d(e.target()));if(h){var f=0;r&&t.includeOverlays&&0!==e.pstyle("overlay-opacity").value&&(f=e.pstyle("overlay-padding").value);var p=0;r&&t.includeUnderlays&&0!==e.pstyle("underlay-opacity").value&&(p=e.pstyle("underlay-padding").value);var g=Math.max(f,p),v=0;if(r&&(v=e.pstyle("width").pfValue/2),s&&t.includeNodes){var y=e.position();k=y.x,P=y.y;var b=e.outerWidth()/2,x=e.outerHeight()/2;w=k-b,E=k+b,r5(a,w,T=P-x,E,C=P+x),r&&r8(a,e),r&&t.includeOutlines&&!i&&r8(a,e),r&&ie(a,e)}else if(l&&t.includeEdges)if(r&&!i){var w,E,T,C,k,P,S,B=e.pstyle("curve-style").strValue;if(w=Math.min(u.srcX,u.midX,u.tgtX),E=Math.max(u.srcX,u.midX,u.tgtX),T=Math.min(u.srcY,u.midY,u.tgtY),C=Math.max(u.srcY,u.midY,u.tgtY),w-=v,E+=v,r5(a,w,T-=v,E,C+=v),"haystack"===B){var D=u.haystackPts;if(D&&2===D.length){if(w=D[0].x,T=D[0].y,E=D[1].x,C=D[1].y,w>E){var _=w;w=E,E=_}if(T>C){var A=T;T=C,C=A}r5(a,w-v,T-v,E+v,C+v)}}else if("bezier"===B||"unbundled-bezier"===B||G(B,"segments")||G(B,"taxi")){switch(B){case"bezier":case"unbundled-bezier":S=u.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":S=u.linePts}if(null!=S)for(var M=0;ME){var L=w;w=E,E=L}if(T>C){var O=T;T=C,C=O}w-=v,E+=v,r5(a,w,T-=v,E,C+=v)}if(r&&t.includeEdges&&l&&(r9(a,e,"mid-source"),r9(a,e,"mid-target"),r9(a,e,"source"),r9(a,e,"target")),r&&"yes"===e.pstyle("ghost").value){var z=e.pstyle("ghost-offset-x").pfValue,V=e.pstyle("ghost-offset-y").pfValue;r5(a,a.x1+z,a.y1+V,a.x2+z,a.y2+V)}var F=o.bodyBounds=o.bodyBounds||{};tB(F,a),tS(F,c),tP(F,1),r&&(w=a.x1,E=a.x2,T=a.y1,C=a.y2,r5(a,w-g,T-g,E+g,C+g));var X=o.overlayBounds=o.overlayBounds||{};tB(X,a),tS(X,c),tP(X,1);var j=o.labelBounds=o.labelBounds||{};null!=j.all?tT(j.all):j.all=tE(),r&&t.includeLabels&&(t.includeMainLabels&&r6(a,e,null),l&&(t.includeSourceLabels&&r6(a,e,"source"),t.includeTargetLabels&&r6(a,e,"target")))}return a.x1=r2(a.x1),a.y1=r2(a.y1),a.x2=r2(a.x2),a.y2=r2(a.y2),a.w=r2(a.x2-a.x1),a.h=r2(a.y2-a.y1),a.w>0&&a.h>0&&h&&(tS(a,c),tP(a,1)),a},ir=function(e){var t=0,n=function(e){return!!e<0&&void 0!==arguments[0]?arguments[0]:iE,t=arguments.length>1?arguments[1]:void 0,n=0;n=0;s--)o(s);return this},iC.removeAllListeners=function(){return this.removeListener("*")},iC.emit=iC.trigger=function(e,t,n){var r=this.listeners,i=r.length;return this.emitting++,_(t)||(t=[t]),iS(this,function(e,a){null!=n&&(i=(r=[{event:a.event,type:a.type,namespace:a.namespace,callback:n}]).length);for(var o=0;o1&&!r){var i=this.length-1,a=this[i],o=a._private.data.id;this[i]=void 0,this[e]=a,n.set(o,{ele:a,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var t=this._private,n=e._private.data.id,r=t.map.get(n);if(!r)return this;var i=r.index;return this.unmergeAt(i),this},unmerge:function(e){var t=this._private.cy;if(!e)return this;if(e&&B(e)){var n=e;e=t.mutableElements().filter(n)}for(var r=0;r=0;t--)e(this[t])&&this.unmergeAt(t);return this},map:function(e,t){for(var n=[],r=0;rr&&(r=o,n=a)}return{value:r,ele:n}},min:function(e,t){for(var n,r=1/0,i=0;i=0&&i1)||void 0===arguments[1]||arguments[1],n=this[0],r=n.cy();if(r.styleEnabled()&&n){n._private.styleDirty&&(n._private.styleDirty=!1,r.style().apply(n));var i=n._private.style[e];return null!=i?i:t?r.style().getDefaultProperty(e):null}},numericStyle:function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var n=t.pstyle(e);return void 0!==n.pfValue?n.pfValue:n.value}},numericStyleUnits:function(e){var t=this[0];if(t.cy().styleEnabled()&&t)return t.pstyle(e).units},renderedStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=this[0];if(n)return t.style().getRenderedStyle(n,e)},style:function(e,t){var n=this.cy();if(!n.styleEnabled())return this;var r=n.style();if(A(e))r.applyBypass(this,e,!1),this.emitAndNotify("style");else if(B(e))if(void 0===t){var i=this[0];return i?r.getStylePropertyValue(i,e):void 0}else r.applyBypass(this,e,t,!1),this.emitAndNotify("style");else if(void 0===e){var a=this[0];return a?r.getRawStyle(a):void 0}return this},removeStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=t.style();if(void 0===e)for(var r=0;r0&&t.push(c[0]),t.push(s[0])}return this.spawn(t,!0).filter(e)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}}),iU.neighbourhood=iU.neighborhood,iU.closedNeighbourhood=iU.closedNeighborhood,iU.openNeighbourhood=iU.openNeighborhood,ee(iU,{source:rj(function(e){var t,n=this[0];return n&&(t=n._private.source||n.cy().collection()),t&&e?t.filter(e):t},"source"),target:rj(function(e){var t,n=this[0];return n&&(t=n._private.target||n.cy().collection()),t&&e?t.filter(e):t},"target"),sources:iZ({attr:"source"}),targets:iZ({attr:"target"})}),ee(iU,{edgesWith:rj(i$(),"edgesWith"),edgesTo:rj(i$({thisIsSrc:!0}),"edgesTo")}),ee(iU,{connectedEdges:rj(function(e){for(var t=[],n=0;n0);return a},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}}),iU.componentsOf=iU.components;var iJ=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0===e)return void eO("A collection must have a reference to the core");var i=new e$,a=!1;if(t){if(t.length>0&&A(t[0])&&!L(t[0])){a=!0;for(var o=[],s=new eJ,l=0,u=t.length;l0)||void 0===arguments[0]||arguments[0],t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=this.cy(),r=n._private,i=[],a=[],o=0,s=this.length;o0){for(var R,I,N,L=R.length===this.length?this:new iJ(n,R),O=0;O0)||void 0===arguments[0]||arguments[0],t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=[],r={},i=this._private.cy,a=0,o=this.length;a0&&(e?x.emitAndNotify("remove"):t&&x.emit("remove"));for(var w=0;w1e-4&&Math.abs(v.v)>1e-4;);return p?function(e){return b[e*(b.length-1)|0]}:x}}(),i2=function(e,t,n,r){var i=function(e,t,n,r){var i="undefined"!=typeof Float32Array;if(4!=arguments.length)return!1;for(var a=0;a<4;++a)if("number"!=typeof arguments[a]||isNaN(arguments[a])||!isFinite(arguments[a]))return!1;e=Math.min(e,1),n=Math.min(n,1),e=Math.max(e,0),n=Math.max(n,0);var o=i?new Float32Array(11):Array(11);function s(e,t,n){return(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e}function l(e,t,n){return 3*(1-3*n+3*t)*e*e+2*(3*n-6*t)*e+3*t}var u=!1,c=function(i){return(u||(u=!0,(e!==t||n!==r)&&function(){for(var t=0;t<11;++t)o[t]=s(.1*t,e,n)}()),e===t&&n===r)?i:0===i?0:1===i?1:s(function(t){for(var r=0,i=1;10!==i&&o[i]<=t;++i)r+=.1;var a=r+(t-o[--i])/(o[i+1]-o[i])*.1,u=l(a,e,n);if(u>=.001){for(var c=a,d=0;d<4;++d){var h=l(c,e,n);if(0===h)break;var f=s(c,e,n)-t;c-=f/h}return c}return 0===u?a:function(t,r,i){var a,o,l=0;do(a=s(o=r+(i-r)/2,e,n)-t)>0?i=o:r=o;while(Math.abs(a)>1e-7&&++l<10);return o}(t,r,r+.1)}(i),t,r)};c.getControlPoints=function(){return[{x:e,y:t},{x:n,y:r}]};var d="generateBezier("+[e,t,n,r]+")";return c.toString=function(){return d},c}(e,t,n,r);return function(e,t,n){return e+(t-e)*i(n)}},i5={linear:function(e,t,n){return e+(t-e)*n},ease:i2(.25,.1,.25,1),"ease-in":i2(.42,0,1,1),"ease-out":i2(0,0,.58,1),"ease-in-out":i2(.42,0,.58,1),"ease-in-sine":i2(.47,0,.745,.715),"ease-out-sine":i2(.39,.575,.565,1),"ease-in-out-sine":i2(.445,.05,.55,.95),"ease-in-quad":i2(.55,.085,.68,.53),"ease-out-quad":i2(.25,.46,.45,.94),"ease-in-out-quad":i2(.455,.03,.515,.955),"ease-in-cubic":i2(.55,.055,.675,.19),"ease-out-cubic":i2(.215,.61,.355,1),"ease-in-out-cubic":i2(.645,.045,.355,1),"ease-in-quart":i2(.895,.03,.685,.22),"ease-out-quart":i2(.165,.84,.44,1),"ease-in-out-quart":i2(.77,0,.175,1),"ease-in-quint":i2(.755,.05,.855,.06),"ease-out-quint":i2(.23,1,.32,1),"ease-in-out-quint":i2(.86,0,.07,1),"ease-in-expo":i2(.95,.05,.795,.035),"ease-out-expo":i2(.19,1,.22,1),"ease-in-out-expo":i2(1,0,0,1),"ease-in-circ":i2(.6,.04,.98,.335),"ease-out-circ":i2(.075,.82,.165,1),"ease-in-out-circ":i2(.785,.135,.15,.86),spring:function(e,t,n){if(0===n)return i5.linear;var r=i1(e,t,n);return function(e,t,n){return e+(t-e)*r(n)}},"cubic-bezier":i2};function i3(e,t,n,r,i){if(1===r||t===n)return n;var a=i(t,n,r);return null==e||((e.roundValue||e.color)&&(a=Math.round(a)),void 0!==e.min&&(a=Math.max(a,e.min)),void 0!==e.max&&(a=Math.min(a,e.max))),a}function i4(e,t){return null==e.pfValue&&null==e.value?e:null!=e.pfValue&&(null==t||"%"!==t.type.units)?e.pfValue:e.value}function i9(e,t,n,r,i){var a=null!=i?i.type:null;n<0?n=0:n>1&&(n=1);var o=i4(e,i),s=i4(t,i);if(M(o)&&M(s))return i3(a,o,s,n,r);if(_(o)&&_(s)){for(var l=[],u=0;u=0;t--)(0,e[t])();e.splice(0,e.length)},c=a.length-1;c>=0;c--){var d=a[c],h=d._private;if(h.stopped){a.splice(c,1),h.hooked=!1,h.playing=!1,h.started=!1,u(h.frames);continue}(h.playing||h.applying)&&(h.playing&&h.applying&&(h.applying=!1),h.started||function(e,t,n,r){var i=t._private;i.started=!0,i.startTime=n-i.progress*i.duration}(0,d,e),function(e,t,n,r){var i,a,o,s,l=!r,u=e._private,c=t._private,d=c.easing,h=c.startTime,f=(r?e:e.cy()).style();c.easingImpl||(null==d?c.easingImpl=i5.linear:(i=B(d)?f.parse("transition-timing-function",d).value:d,B(i)?(a=i,o=[]):(a=i[1],o=i.slice(2).map(function(e){return+e})),o.length>0?("spring"===a&&o.push(c.duration),c.easingImpl=i5[a].apply(null,o)):c.easingImpl=i5[a]));var p=c.easingImpl;if(s=0===c.duration?1:(n-h)/c.duration,c.applying&&(s=c.progress),s<0?s=0:s>1&&(s=1),null==c.delay){var g=c.startPosition,v=c.position;if(v&&l&&!e.locked()){var y={};i6(g.x,v.x)&&(y.x=i9(g.x,v.x,s,p)),i6(g.y,v.y)&&(y.y=i9(g.y,v.y,s,p)),e.position(y)}var b=c.startPan,x=c.pan,w=u.pan,E=null!=x&&r;E&&(i6(b.x,x.x)&&(w.x=i9(b.x,x.x,s,p)),i6(b.y,x.y)&&(w.y=i9(b.y,x.y,s,p)),e.emit("pan"));var T=c.startZoom,C=c.zoom,k=null!=C&&r;k&&(i6(T,C)&&(u.zoom=tw(u.minZoom,i9(T,C,s,p),u.maxZoom)),e.emit("zoom")),(E||k)&&e.emit("viewport");var P=c.style;if(P&&P.length>0&&l){for(var S=0;S0?t.notify("draw",n):t.notify("draw")),n.unmerge(r),t.emit("step")}var i7={animate:rx.animate(),animation:rx.animation(),animated:rx.animated(),clearQueue:rx.clearQueue(),delay:rx.delay(),delayAnimation:rx.delayAnimation(),stop:rx.stop(),addToAnimationPool:function(e){this.styleEnabled()&&this._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,e.styleEnabled()){var t=e.renderer();t&&t.beforeRender?t.beforeRender(function(t,n){i8(n,e)},t.beforeRenderPriorities.animations):function t(){e._private.animationsRunning&&eb(function(n){i8(n,e),t()})}()}}},ae={qualifierCompare:function(e,t){return null==e||null==t?null==e&&null==t:e.sameText(t)},eventMatches:function(e,t,n){var r=t.qualifier;return null==r||e!==n.target&&L(n.target)&&r.matches(n.target)},addEventFields:function(e,t){t.cy=e,t.target=e},callbackContext:function(e,t,n){return null!=t.qualifier?n.target:e}},at=function(e){return B(e)?new rV(e):e},an={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new iT(ae,this)),this},emitter:function(){return this._private.emitter},on:function(e,t,n){return this.emitter().on(e,at(t),n),this},removeListener:function(e,t,n){return this.emitter().removeListener(e,at(t),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,t,n){return this.emitter().one(e,at(t),n),this},once:function(e,t,n){return this.emitter().one(e,at(t),n),this},emit:function(e,t){return this.emitter().emit(e,t),this},emitAndNotify:function(e,t){return this.emit(e),this.notify(e,t),this}};rx.eventAliasesOn(an);var ar={png:function(e){return e=e||{},this._private.renderer.png(e)},jpg:function(e){var t=this._private.renderer;return(e=e||{}).bg=e.bg||"#fff",t.jpg(e)}};ar.jpeg=ar.jpg;var ai={layout:function(e){if(null==e)return void eO("Layout options must be specified to make a layout");if(null==e.name)return void eO("A `name` must be specified to make a layout");var t,n=e.name,r=this.extension("layout",n);return null==r?void eO("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?"):(t=B(e.eles)?this.$(e.eles):null!=e.eles?e.eles:this.$(),new r(ee({},e,{cy:this,eles:t})))}};ai.createLayout=ai.makeLayout=ai.layout;var aa=eq({hideEdgesOnViewport:!1,textureOnViewport:!1,motionBlur:!1,motionBlurOpacity:.05,pixelRatio:void 0,desktopTapThreshold:4,touchTapThreshold:8,wheelSensitivity:1,debug:!1,showFps:!1,webgl:!1,webglDebug:!1,webglDebugShowAtlases:!1,webglTexSize:2048,webglTexRows:36,webglTexRowsNodes:18,webglBatchSize:2048,webglTexPerBatch:14,webglBgColor:[255,255,255]}),ao={renderTo:function(e,t,n,r){return this._private.renderer.renderTo(e,t,n,r),this},renderer:function(){return this._private.renderer},forceRender:function(){return this.notify("draw"),this},resize:function(){return this.invalidateSize(),this.emitAndNotify("resize"),this},initRenderer:function(e){var t=this.extension("renderer",e.name);if(null==t)return void eO("Can not initialise: No such renderer `".concat(e.name,"` found. Did you forget to import it and `cytoscape.use()` it?"));void 0!==e.wheelSensitivity&&eV("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine.");var n=aa(e);n.cy=this,this._private.renderer=new t(n),this.notify("init")},destroyRenderer:function(){this.notify("destroy");var e=this.container();if(e)for(e._cyreg=null;e.childNodes.length>0;)e.removeChild(e.childNodes[0]);this._private.renderer=null,this.mutableElements().forEach(function(e){var t=e._private;t.rscratch={},t.rstyle={},t.animation.current=[],t.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};ao.invalidateDimensions=ao.resize;var as={collection:function(e,t){return B(e)?this.$(e):N(e)?e.collection():_(e)?(t||(t={}),new iJ(this,e,t.unique,t.removed)):new iJ(this)},nodes:function(e){var t=this.$(function(e){return e.isNode()});return e?t.filter(e):t},edges:function(e){var t=this.$(function(e){return e.isEdge()});return e?t.filter(e):t},$:function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},mutableElements:function(){return this._private.elements}};as.elements=as.filter=as.$;var al={};al.apply=function(e){for(var t=this._private.cy.collection(),n=0;n0;if(d||c&&h){var f=void 0;d&&h||d?f=l.properties:h&&(f=l.mappedProperties);for(var p=0;p1&&(v=1),o.color){var E=r.valueMin[0],T=r.valueMax[0],C=r.valueMin[1],k=r.valueMax[1],P=r.valueMin[2],S=r.valueMax[2],B=null==r.valueMin[3]?1:r.valueMin[3],D=[Math.round(E+(T-E)*v),Math.round(C+(k-C)*v),Math.round(P+(S-P)*v),Math.round(B+((null==r.valueMax[3]?1:r.valueMax[3])-B)*v)];g={bypass:r.bypass,name:r.name,value:D,strValue:"rgb("+D[0]+", "+D[1]+", "+D[2]+")"}}else{if(!o.number)return!1;var _=r.valueMin+(r.valueMax-r.valueMin)*v;g=this.parse(r.name,_,r.bypass,d)}if(!g)return p(),!1;g.mapping=r,r=g;break;case a.data:for(var A=r.field.split("."),R=c.data,I=0;I0&&a>0){for(var s={},l=!1,u=0;u0?e.delayAnimation(o).play().promise().then(t):t()}).then(function(){return e.animation({style:s,duration:a,easing:e.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){n.removeBypasses(e,i),e.emitAndNotify("style"),r.transitioning=!1})}else r.transitioning&&(this.removeBypasses(e,i),e.emitAndNotify("style"),r.transitioning=!1)},al.checkTrigger=function(e,t,n,r,i,a){var o=this.properties[t],s=i(o);!e.removed()&&null!=s&&s(n,r,e)&&a(o)},al.checkZOrderTrigger=function(e,t,n,r){var i=this;this.checkTrigger(e,t,n,r,function(e){return e.triggersZOrder},function(){i._private.cy.notify("zorder",e)})},al.checkBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBounds},function(t){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache()})},al.checkConnectedEdgesBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBoundsOfConnectedEdges},function(t){e.connectedEdges().forEach(function(e){e.dirtyBoundingBoxCache()})})},al.checkParallelEdgesBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBoundsOfParallelEdges},function(t){e.parallelEdges().forEach(function(e){e.dirtyBoundingBoxCache()})})},al.checkTriggers=function(e,t,n,r){e.dirtyStyleCache(),this.checkZOrderTrigger(e,t,n,r),this.checkBoundsTrigger(e,t,n,r),this.checkConnectedEdgesBoundsTrigger(e,t,n,r),this.checkParallelEdgesBoundsTrigger(e,t,n,r)};var au={};au.applyBypass=function(e,t,n,r){var i=[];if("*"===t||"**"===t){if(void 0!==n)for(var a=0;at.length?i.substr(t.length):""}function o(){n=n.length>r.length?n.substr(r.length):""}for(i=i.replace(/[/][*](\s|.)+?[*][/]/g,"");!i.match(/^\s*$/);){var s=i.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!s){eV("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+i);break}t=s[0];var l=s[1];if("core"!==l&&new rV(l).invalid){eV("Skipping parsing of block: Invalid selector found in string stylesheet: "+l),a();continue}var u=s[2],c=!1;n=u;for(var d=[];!n.match(/^\s*$/);){var h=n.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!h){eV("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+u),c=!0;break}r=h[0];var f=h[1],p=h[2];if(!this.properties[f]){eV("Skipping property: Invalid property name in: "+r),o();continue}if(!this.parse(f,p)){eV("Skipping property: Invalid property definition in: "+r),o();continue}d.push({name:f,val:p}),o()}if(c){a();break}this.selector(l);for(var g=0;g=7&&"d"===t[0]&&(g=new RegExp(o.data.regex).exec(t))){if(n)return!1;var u=o.data;return{name:e,value:g,strValue:""+t,mapped:u,field:g[1],bypass:n}}else if(t.length>=10&&"m"===t[0]&&(v=new RegExp(o.mapData.regex).exec(t))){if(n||l.multiple)return!1;var c=o.mapData;if(!(l.color||l.number))return!1;var d=this.parse(e,v[4]);if(!d||d.mapped)return!1;var h=this.parse(e,v[5]);if(!h||h.mapped)return!1;if(d.pfValue===h.pfValue||d.strValue===h.strValue)return eV("`"+e+": "+t+"` is not a valid mapper because the output range is zero; converting to `"+e+": "+d.strValue+"`"),this.parse(e,d.strValue);if(l.color){var f=d.value,p=h.value;if(f[0]===p[0]&&f[1]===p[1]&&f[2]===p[2]&&(f[3]===p[3]||(null==f[3]||1===f[3])&&(null==p[3]||1===p[3])))return!1}return{name:e,value:v,strValue:""+t,mapped:c,field:v[1],fieldMin:parseFloat(v[2]),fieldMax:parseFloat(v[3]),valueMin:d.value,valueMax:h.value,bypass:n}}if(l.multiple&&"multiple"!==r){if(y=s?t.split(/\s+/):_(t)?t:[t],l.evenMultiple&&y.length%2!=0)return null;for(var g,v,y,b=[],x=[],w=[],E="",T=!1,C=0;C0?" ":"")+k.strValue}if(l.validate&&!l.validate(b,x))return null;if(l.singleEnum&&T)if(1===b.length&&B(b[0]))return{name:e,value:b[0],strValue:b[0],bypass:n};else return null;return{name:e,value:b,pfValue:w,strValue:E,bypass:n,units:x}}var P=function(){for(var r=0;rl.max||l.strictMax&&t===l.max))return null;var N={name:e,value:t,strValue:""+t+(S||""),units:S,bypass:n};return l.unitless||"px"!==S&&"em"!==S?N.pfValue=t:N.pfValue="px"!==S&&S?this.getEmSizeInPixels()*t:t,("ms"===S||"s"===S)&&(N.pfValue="ms"===S?t:1e3*t),("deg"===S||"rad"===S)&&(N.pfValue="rad"===S?t:Math.PI*t/180),"%"===S&&(N.pfValue=t/100),N}if(l.propList){var L=[],O=""+t;if("none"===O);else{for(var z=O.split(/\s*,\s*|\s+/),V=0;V0&&l>0&&!isNaN(r.w)&&!isNaN(r.h)&&r.w>0&&r.h>0){i=(i=(i=Math.min((s-2*t)/r.w,(l-2*t)/r.h))>this._private.maxZoom?this._private.maxZoom:i)=n.minZoom&&(n.maxZoom=t),this},minZoom:function(e){return void 0===e?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return void 0===e?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var t,n,r=this._private,i=r.pan,a=r.zoom,o=!1;if(r.zoomingEnabled||(o=!0),M(e)?n=e:A(e)&&(n=e.level,null!=e.position?t=tr(e.position,a,i):null!=e.renderedPosition&&(t=e.renderedPosition),null==t||r.panningEnabled||(o=!0)),n=(n=n>r.maxZoom?r.maxZoom:n)t.maxZoom||!t.zoomingEnabled?a=!0:(t.zoom=s,i.push("zoom"))}if(r&&(!a||!e.cancelOnFailedZoom)&&t.panningEnabled){var l=e.pan;M(l.x)&&(t.pan.x=l.x,o=!1),M(l.y)&&(t.pan.y=l.y,o=!1),o||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(e){var t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,t){if(this._private.panningEnabled){if(B(e)){var n=e;e=this.mutableElements().filter(n)}else N(e)||(e=this.mutableElements());if(0!==e.length){var r=e.boundingBox(),i=this.width(),a=this.height();return{x:(i-(t=void 0===t?this._private.zoom:t)*(r.x1+r.x2))/2,y:(a-t*(r.y1+r.y2))/2}}}},reset:function(){return this._private.panningEnabled&&this._private.zoomingEnabled&&this.viewport({pan:{x:0,y:0},zoom:1}),this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e,t,n=this._private,r=n.container;return n.sizeCache=n.sizeCache||(r?(e=this.window().getComputedStyle(r),t=function(t){return parseFloat(e.getPropertyValue(t))},{width:r.clientWidth-t("padding-left")-t("padding-right"),height:r.clientHeight-t("padding-top")-t("padding-bottom")}):{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,t=this._private.zoom,n=this.renderedExtent(),r={x1:(n.x1-e.x)/t,x2:(n.x2-e.x)/t,y1:(n.y1-e.y)/t,y2:(n.y2-e.y)/t};return r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},renderedExtent:function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},multiClickDebounceTime:function(e){return e?(this._private.multiClickDebounceTime=e,this):this._private.multiClickDebounceTime}};am.centre=am.center,am.autolockNodes=am.autolock,am.autoungrabifyNodes=am.autoungrabify;var ab={data:rx.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:rx.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:rx.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:rx.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};ab.attr=ab.data,ab.removeAttr=ab.removeData;var ax=function(e){var t=this,n=(e=ee({},e)).container;n&&!I(n)&&I(n[0])&&(n=n[0]);var r=n?n._cyreg:null;(r=r||{}).cy&&(r.cy.destroy(),r={});var i=r.readies=r.readies||[];n&&(n._cyreg=r),r.cy=t;var a=void 0!==w&&void 0!==n&&!e.headless,o=e;o.layout=ee({name:a?"grid":"null"},o.layout),o.renderer=ee({name:a?"canvas":"null"},o.renderer);var s=function(e,t,n){return void 0!==t?t:void 0!==n?n:e},l=this._private={container:n,ready:!1,options:o,elements:new iJ(this),listeners:[],aniEles:new iJ(this),data:o.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:s(!0,o.zoomingEnabled),userZoomingEnabled:s(!0,o.userZoomingEnabled),panningEnabled:s(!0,o.panningEnabled),userPanningEnabled:s(!0,o.userPanningEnabled),boxSelectionEnabled:s(!0,o.boxSelectionEnabled),autolock:s(!1,o.autolock,o.autolockNodes),autoungrabify:s(!1,o.autoungrabify,o.autoungrabifyNodes),autounselectify:s(!1,o.autounselectify),styleEnabled:void 0===o.styleEnabled?a:o.styleEnabled,zoom:M(o.zoom)?o.zoom:1,pan:{x:A(o.pan)&&M(o.pan.x)?o.pan.x:0,y:A(o.pan)&&M(o.pan.y)?o.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:s(250,o.multiClickDebounceTime)};this.createEmitter(),this.selectionType(o.selectionType),this.zoomRange({min:o.minZoom,max:o.maxZoom}),l.styleEnabled&&t.setStyle([]);var u=ee({},o,o.renderer);t.initRenderer(u);var c=function(e,n,r){t.notifications(!1);var i=t.mutableElements();i.length>0&&i.remove(),null!=e&&(A(e)||_(e))&&t.add(e),t.one("layoutready",function(e){t.notifications(!0),t.emit(e),t.one("load",n),t.emitAndNotify("load")}).one("layoutstop",function(){t.one("done",r),t.emit("done")});var a=ee({},t._private.options.layout);a.eles=t.elements(),t.layout(a).run()};!function(e,t){if(e.some(X))return rr.all(e).then(t);t(e)}([o.style,o.elements],function(e){var n=e[0],a=e[1];l.styleEnabled&&t.style().append(n),c(a,function(){t.startAnimationLoop(),l.ready=!0,D(o.ready)&&t.on("ready",o.ready);for(var e=0;e0},startBatch:function(){var e=this._private;return null==e.batchCount&&(e.batchCount=0),0===e.batchCount&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(0===e.batchCount)return this;if(e.batchCount--,0===e.batchCount){e.batchStyleEles.updateStyle();var t=this.renderer();Object.keys(e.batchNotifications).forEach(function(n){var r=e.batchNotifications[n];r.empty()?t.notify(n):t.notify(n,r)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var t=this;return this.batch(function(){for(var n=Object.keys(e),r=0;r0,s=!!t.boundingBox,l=tE(s?t.boundingBox:structuredClone(n.extent()));if(N(t.roots))e=t.roots;else if(_(t.roots)){for(var u=[],c=0;c0;){var S=C.shift(),D=function(e,n){for(var i=aC(e),a=e.incomers().filter(function(e){return e.isNode()&&r.has(e)}),o=-1,s=e.id(),l=0;l0&&g[0].length<=3?a/2:0),u=2*Math.PI/g[r].length*i;return 0===r&&1===g[0].length&&(o=1),{x:G.x+o*Math.cos(u),y:G.y+o*Math.sin(u)}}var c=g[r].length,d=Math.max(1===c?0:s?(l.w-2*t.padding-H.w)/((t.grid?Z:c)-1):(l.w-2*t.padding-H.w)/((t.grid?Z:c)+1),A);return{x:G.x+(i+1-(c+1)/2)*d,y:G.y+(r+1-(F+1)/2)*K}},Q={downward:0,leftward:90,upward:180,rightward:-90};return -1===Object.keys(Q).indexOf(t.direction)&&eO("Invalid direction '".concat(t.direction,"' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(Q).join(", "))),r.nodes().layoutPositions(this,t,function(e){return function(e,t,n){if(0===n)return e;var r,i,a,o,s=(t.x1+t.x2)/2,l=(t.y1+t.y2)/2,u=t.w/t.h,c=(r=e.x,i=e.y,{x:Math.cos(a=n*Math.PI/180)*(r-s)-Math.sin(a)*(i-l)+s,y:Math.sin(a)*(r-s)+Math.cos(a)*(i-l)+l}),d=(o=c.x,{x:(o-s)*u+s,y:(c.y-l)*(1/u)+l});return{x:d.x,y:d.y}}($(e),l,Q[t.direction])}),this};var aS={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function aB(e){this.options=ee({},aS,e)}aB.prototype.run=function(){var e,t=this.options,n=t.cy,r=t.eles,i=void 0!==t.counterclockwise?!t.counterclockwise:t.clockwise,a=r.nodes().not(":parent");t.sort&&(a=a.sort(t.sort));for(var o=tE(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),s={x:o.x1+o.w/2,y:o.y1+o.h/2},l=(void 0===t.sweep?2*Math.PI-2*Math.PI/a.length:t.sweep)/Math.max(1,a.length-1),u=0,c=0;c1&&t.avoidOverlap){var h=Math.cos(l)-1,f=Math.sin(l)-0;e=Math.max(Math.sqrt((u*=1.75)*u/(h*h+f*f)),e)}return r.nodes().layoutPositions(this,t,function(n,r){var a=t.startAngle+r*l*(i?1:-1),o=e*Math.cos(a),u=e*Math.sin(a);return{x:s.x+o,y:s.y+u}}),this};var aD={fit:!0,padding:30,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function a_(e){this.options=ee({},aD,e)}a_.prototype.run=function(){for(var e=this.options,t=void 0!==e.counterclockwise?!e.counterclockwise:e.clockwise,n=e.cy,r=e.eles,i=r.nodes().not(":parent"),a=tE(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),o={x:a.x1+a.w/2,y:a.y1+a.h/2},s=[],l=0,u=0;u0&&Math.abs(v[0].value-b.value)>=p&&(v=[],g.push(v)),v.push(b)}var x=l+e.minNodeSpacing;if(!e.avoidOverlap){var w=g.length>0&&g[0].length>1,E=(Math.min(a.w,a.h)/2-x)/(g.length+w?1:0);x=Math.min(x,E)}for(var T=0,C=0;C1&&e.avoidOverlap){var B=Math.cos(S)-1,D=Math.sin(S)-0;T=Math.max(Math.sqrt(x*x/(B*B+D*D)),T)}k.r=T,T+=x}if(e.equidistant){for(var _=0,A=0,M=0;M=e.numIter)&&(aV(r,e),r.temperature=r.temperature*e.coolingFactor,!(r.temperature=e.animationThreshold&&a(),eb(c)):(a$(r,e),s())};c()}else{for(;u;)u=o(l),l++;a$(r,e),s()}return this},aM.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},aM.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var aR=function(e,t,n){for(var r=n.eles.edges(),i=n.eles.nodes(),a=tE(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),o={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:r.size(),temperature:n.initialTemp,clientWidth:a.w,clientHeight:a.h,boundingBox:a},s=n.eles.components(),l={},u=0;u0){o.graphSet.push(C);for(var u=0;ur.count?0:r.graph},aN=function(e,t,n,r){var i=r.graphSet[n];if(-10)var s=r.nodeOverlap*o,l=Math.sqrt(i*i+a*a),u=s*i/l,c=s*a/l;else var d=aq(e,i,a),h=aq(t,-1*i,-1*a),f=h.x-d.x,p=h.y-d.y,g=f*f+p*p,l=Math.sqrt(g),s=(e.nodeRepulsion+t.nodeRepulsion)/g,u=s*f/l,c=s*p/l;e.isLocked||(e.offsetX-=u,e.offsetY-=c),t.isLocked||(t.offsetX+=u,t.offsetY+=c)}},aY=function(e,t,n,r){if(n>0)var i=e.maxX-t.minX;else var i=t.maxX-e.minX;if(r>0)var a=e.maxY-t.minY;else var a=t.maxY-e.minY;return i>=0&&a>=0?Math.sqrt(i*i+a*a):0},aq=function(e,t,n){var r=e.positionX,i=e.positionY,a=e.height||1,o=e.width||1,s=n/t,l=a/o,u={};return 0===t&&0n?(u.x=r,u.y=i+a/2):0t&&-1*l<=s&&s<=l?(u.x=r-o/2,u.y=i-o*n/2/t):0=l)?(u.x=r+a*t/2/n,u.y=i+a/2):0>n&&(s<=-1*l||s>=l)&&(u.x=r-a*t/2/n,u.y=i-a/2),u},aW=function(e,t){for(var n=0;n1){var p=t.gravity*d/f,g=t.gravity*h/f;c.offsetX+=p,c.offsetY+=g}}}}},aG=function(e,t){var n=[],r=0,i=-1;for(n.push.apply(n,e.graphSet[0]),i+=e.graphSet[0].length;r<=i;){var a=n[r++],o=e.idToIndex[a],s=e.layoutNodes[o],l=s.children;if(0n)var i={x:n*e/r,y:n*t/r};else var i={x:e,y:t};return i},aZ=function(e,t){var n=e.parentId;if(null!=n){var r=t.layoutNodes[t.idToIndex[n]],i=!1;if((null==r.maxX||e.maxX+r.padRight>r.maxX)&&(r.maxX=e.maxX+r.padRight,i=!0),(null==r.minX||e.minX-r.padLeftr.maxY)&&(r.maxY=e.maxY+r.padBottom,i=!0),(null==r.minY||e.minY-r.padTopg&&(h+=p+t.componentSpacing,d=0,f=0,p=0)}}},aQ={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function aJ(e){this.options=ee({},aQ,e)}aJ.prototype.run=function(){var e=this.options,t=e.cy,n=e.eles,r=n.nodes().not(":parent");e.sort&&(r=r.sort(e.sort));var i=tE(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()});if(0===i.h||0===i.w)n.nodes().layoutPositions(this,e,function(e){return{x:i.x1,y:i.y1}});else{var a=r.size(),o=Math.sqrt(a*i.h/i.w),s=Math.round(o),l=Math.round(i.w/i.h*o),u=function(e){if(null==e)return Math.min(s,l);Math.min(s,l)==s?s=e:l=e},c=function(e){if(null==e)return Math.max(s,l);Math.max(s,l)==s?s=e:l=e},d=e.rows,h=null!=e.cols?e.cols:e.columns;if(null!=d&&null!=h)s=d,l=h;else if(null!=d&&null==h)l=Math.ceil(a/(s=d));else if(null==d&&null!=h)s=Math.ceil(a/(l=h));else if(l*s>a){var f=u(),p=c();(f-1)*p>=a?u(f-1):(p-1)*f>=a&&c(p-1)}else for(;l*s=a?c(v+1):u(g+1)}var y=i.w/l,b=i.h/s;if(e.condense&&(y=0,b=0),e.avoidOverlap)for(var x=0;x=l&&(A=0,_++)},R={},I=0;I=0;x--){var w=l[x];w.isNode()?y(w)||b(w):function(n){var r,i=n._private,a=i.rscratch,l=n.pstyle("width").pfValue,c=n.pstyle("arrow-scale").value,f=l/2+h,p=f*f,g=2*f,b=i.source,x=i.target;if("segments"===a.edgeType||"straight"===a.edgeType||"haystack"===a.edgeType){for(var w=a.allpts,E=0;E+3(r=tF(e,t,w[E],w[E+1],w[E+2],w[E+3])))return v(n,r),!0}else if("bezier"===a.edgeType||"multibezier"===a.edgeType||"self"===a.edgeType||"compound"===a.edgeType){for(var w=a.allpts,E=0;E+5(r=tV(e,t,w[E],w[E+1],w[E+2],w[E+3],w[E+4],w[E+5])))return v(n,r),!0}for(var b=b||i.source,x=x||i.target,T=o.getArrowWidth(l,c),C=[{name:"source",x:a.arrowStartX,y:a.arrowStartY,angle:a.srcArrowAngle},{name:"target",x:a.arrowEndX,y:a.arrowEndY,angle:a.tgtArrowAngle},{name:"mid-source",x:a.midX,y:a.midY,angle:a.midsrcArrowAngle},{name:"mid-target",x:a.midX,y:a.midY,angle:a.midtgtArrowAngle}],E=0;E0&&(y(b),y(x))}(w)||b(w)||b(w,"source")||b(w,"target")}return u},ot.getAllInBox=function(e,t,n,r){var i=this.getCachedZSortedEles().interactive,a=2/this.cy.zoom(),o=[],s=Math.min(e,n),u=Math.max(e,n),c=Math.min(t,r),d=Math.max(t,r);e=s,n=u;var h=tE({x1:e,y1:t=c,x2:n,y2:r=d}),f=[{x:h.x1,y:h.y1},{x:h.x2,y:h.y1},{x:h.x2,y:h.y2},{x:h.x1,y:h.y2}],p=[[f[0],f[1]],[f[1],f[2]],[f[2],f[3]],[f[3],f[0]]];function g(e,t){var n=e._private;e.boundingBox();var r=n.labelBounds.main;if(!r)return null;var i=eH(n.rscratch,"labelX",t),o=eH(n.rscratch,"labelY",t),s=eH(n.rscratch,"labelAngle",t),l=e.pstyle("text-margin-x").pfValue,u=e.pstyle("text-margin-y").pfValue,c=r.x1-a-l,d=r.x2+a-l,h=r.y1-a-u,f=r.y2+a-u;if(!s)return[{x:c,y:h},{x:d,y:h},{x:d,y:f},{x:c,y:f}];var p=Math.cos(s),g=Math.sin(s),v=function(e,t){return{x:(e-=i)*p-(t-=o)*g+i,y:e*g+t*p+o}};return[v(c,h),v(d,h),v(d,f),v(c,f)]}for(var v=0;v(t.y-e.y)*(n.x-e.x)}return i(e,n,r)!==i(t,n,r)&&i(e,t,n)!==i(e,t,r)}(V,F,j[0],j[1])){o.push(y),I=!0;break}}if(I)break}}}}}return o};var on={};on.calculateArrowAngles=function(e){var t=e._private.rscratch,n="haystack"===t.edgeType,r="bezier"===t.edgeType,i="multibezier"===t.edgeType,a="segments"===t.edgeType,o="compound"===t.edgeType,s="self"===t.edgeType;if(n?(y=t.haystackPts[0],b=t.haystackPts[1],x=t.haystackPts[2],w=t.haystackPts[3]):(y=t.arrowStartX,b=t.arrowStartY,x=t.arrowEndX,w=t.arrowEndY),d=t.midX,h=t.midY,a)g=y-t.segpts[0],v=b-t.segpts[1];else if(i||o||s||r){var l=t.allpts,u=tm(l[0],l[2],l[4],.1),c=tm(l[1],l[3],l[5],.1);g=y-u,v=b-c}else g=y-d,v=b-h;t.srcArrowAngle=th(g,v);var d=t.midX,h=t.midY;if(n&&(d=(y+x)/2,h=(b+w)/2),g=x-y,v=w-b,a){var l=t.allpts;if(l.length/2%2==0){var f=l.length/2,p=f-2;g=l[f]-l[p],v=l[f+1]-l[p+1]}else if(t.isRound)g=t.midVector[1],v=-t.midVector[0];else{var f=l.length/2-1,p=f-2;g=l[f]-l[p],v=l[f+1]-l[p+1]}}else if(i||o||s){var g,v,y,b,x,w,d,h,E,T,C,k,l=t.allpts;if(t.ctrlpts.length/2%2==0){var P=l.length/2-1,S=P+2,B=S+2;E=tm(l[P],l[S],l[B],0),T=tm(l[P+1],l[S+1],l[B+1],0),C=tm(l[P],l[S],l[B],1e-4),k=tm(l[P+1],l[S+1],l[B+1],1e-4)}else{var S=l.length/2-1,P=S-2,B=S+2;E=tm(l[P],l[S],l[B],.4999),T=tm(l[P+1],l[S+1],l[B+1],.4999),C=tm(l[P],l[S],l[B],.5),k=tm(l[P+1],l[S+1],l[B+1],.5)}g=C-E,v=k-T}if(t.midtgtArrowAngle=th(g,v),t.midDispX=g,t.midDispY=v,g*=-1,v*=-1,a){var l=t.allpts;if(l.length/2%2==0);else if(!t.isRound){var f=l.length/2-1,D=f+2;g=-(l[D]-l[f]),v=-(l[D+1]-l[f+1])}}if(t.midsrcArrowAngle=th(g,v),a)g=x-t.segpts[t.segpts.length-2],v=w-t.segpts[t.segpts.length-1];else if(i||o||s||r){var l=t.allpts,_=l.length,u=tm(l[_-6],l[_-4],l[_-2],.9),c=tm(l[_-5],l[_-3],l[_-1],.9);g=x-u,v=w-c}else g=x-d,v=w-h;t.tgtArrowAngle=th(g,v)},on.getArrowWidth=on.getArrowHeight=function(e,t){var n=this.arrowWidthCache=this.arrowWidthCache||{},r=n[e+", "+t];return r||(r=Math.max(Math.pow(13.37*e,.9),29)*t,n[e+", "+t]=r),r};var or,oi,oa,oo,os,ol,ou,oc,od,oh,of,op,og,ov,oy,om,ob,ox,ow,oE,oT,oC,ok,oP,oS,oB,oD,o_,oA,oM,oR,oI,oN,oL,oO,oz,oV,oF,oX,oj,oY,oq,oW,oU,oG,oH,oK,oZ,o$,oQ,oJ,o0,o1,o2,o5,o3,o4,o9,o6,o8,o7,se,st,sn,sr,si,sa,so,ss,sl,su,sc,sd,sh,sf,sp,sg,sv,sy,sm,sb,sx,sw,sE,sT,sC,sk,sP,sS,sB,sD,s_,sA,sM,sR,sI,sN,sL,sO,sz,sV,sF,sX,sj,sY,sq,sW,sU,sG,sH,sK,sZ,s$,sQ,sJ,s0,s1,s2,s5,s3,s4,s9,s6,s8,s7,le,lt,ln,lr,li,la,lo,ls,ll,lu,lc,ld,lh,lf,lp,lg,lv,ly,lm,lb,lx,lw,lE,lT,lC,lk,lP,lS,lB,lD,l_,lA={},lM={},lR=function(e,t,n){n.x=t.x-e.x,n.y=t.y-e.y,n.len=Math.sqrt(n.x*n.x+n.y*n.y),n.nx=n.x/n.len,n.ny=n.y/n.len,n.ang=Math.atan2(n.ny,n.nx)},lI=function(e,t){t.x=-1*e.x,t.y=-1*e.y,t.nx=-1*e.nx,t.ny=-1*e.ny,t.ang=e.ang>0?-(Math.PI-e.ang):Math.PI+e.ang},lN=function(e,t,n,r,i){if(e!==y?lR(t,e,lA):lI(lM,lA),lR(t,n,lM),lw=lA.nx*lM.ny-lA.ny*lM.nx,lE=lA.nx*lM.nx- -(lA.ny*lM.ny),1e-6>Math.abs(lk=Math.asin(Math.max(-1,Math.min(1,lw))))){lb=t.x,lx=t.y,lS=lD=0;return}lT=1,lC=!1,lE<0?lk<0?lk=Math.PI+lk:(lk=Math.PI-lk,lT=-1,lC=!0):lk>0&&(lT=-1,lC=!0),lD=void 0!==t.radius?t.radius:r,lP=lk/2,l_=Math.min(lA.len/2,lM.len/2),lS=i?(lB=Math.abs(Math.cos(lP)*lD/Math.sin(lP)))>l_?Math.abs((lB=l_)*Math.sin(lP)/Math.cos(lP)):lD:Math.abs((lB=Math.min(l_,lD))*Math.sin(lP)/Math.cos(lP)),g=t.x+lM.nx*lB,v=t.y+lM.ny*lB,lb=g-lM.ny*lS*lT,lx=v+lM.nx*lS*lT,f=t.x+lA.nx*lB,p=t.y+lA.ny*lB,y=t};function lL(e,t){0===t.radius?e.lineTo(t.cx,t.cy):e.arc(t.cx,t.cy,t.radius,t.startAngle,t.endAngle,t.counterClockwise)}function lO(e,t,n,r){var i=!(arguments.length>4)||void 0===arguments[4]||arguments[4];return 0===r||0===t.radius?{cx:t.x,cy:t.y,radius:0,startX:t.x,startY:t.y,stopX:t.x,stopY:t.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(lN(e,t,n,r,i),{cx:lb,cy:lx,radius:lS,startX:f,startY:p,stopX:g,stopY:v,startAngle:lA.ang+Math.PI/2*lT,endAngle:lM.ang-Math.PI/2*lT,counterClockwise:lC})}var lz=Math.sqrt(.02),lV={};function lF(e){var t=[];if(null!=e){for(var n=0;n0?Math.max(e-t,0):Math.min(e+t,0)},P=k(T,g?(d+f)/2:0),S=k(C,g?(h+p)/2:0),B=!1;"auto"===y?v=Math.abs(P)>Math.abs(S)?a:i:y===u||y===l?(v=i,B=!0):(y===o||y===s)&&(v=a,B=!0);var D=v===i,_=D?S:P,A=D?C:T,M=tp(A),R=!1;!(B&&(x||w<0))&&(y===l&&A<0||y===u&&A>0||y===o&&A>0||y===s&&A<0)&&(M*=-1,_=M*Math.abs(_),R=!0);var I=function(e){return Math.abs(e)=Math.abs(_)},N=I(n=x?(w<0?1+w:w)*_:(w<0?_:0)+w*M),L=I(Math.abs(_)-Math.abs(n));if((N||L)&&!R)if(D){var O=Math.abs(T)<=f/2;if(Math.abs(A)<=h/2){var z=(c.x1+c.x2)/2;r.segpts=[z,c.y1,z,c.y2]}else if(O){var V=(c.y1+c.y2)/2;r.segpts=[c.x1,V,c.x2,V]}else r.segpts=[c.x1,c.y2]}else{var F=Math.abs(C)<=p/2;if(Math.abs(A)<=d/2){var X=(c.y1+c.y2)/2;r.segpts=[c.x1,X,c.x2,X]}else if(F){var j=(c.x1+c.x2)/2;r.segpts=[j,c.y1,j,c.y2]}else r.segpts=[c.x2,c.y1]}else if(D){var Y=c.y1+n+(g?h/2*M:0);r.segpts=[c.x1,Y,c.x2,Y]}else{var q=c.x1+n+(g?d/2*M:0);r.segpts=[q,c.y1,q,c.y2]}if(r.isRound){var W=e.pstyle("taxi-radius").value,U="arc-radius"===e.pstyle("radius-type").value[0];r.radii=Array(r.segpts.length/2).fill(W),r.isArcRadius=Array(r.segpts.length/2).fill(U)}},lV.tryToCorrectInvalidPoints=function(e,t){var n=e._private.rscratch;if("bezier"===n.edgeType){var r=t.srcPos,i=t.tgtPos,a=t.srcW,o=t.srcH,s=t.tgtW,l=t.tgtH,u=t.srcShape,c=t.tgtShape,d=t.srcCornerRadius,h=t.tgtCornerRadius,f=t.srcRs,p=t.tgtRs,g=!M(n.startX)||!M(n.startY),v=!M(n.arrowStartX)||!M(n.arrowStartY),y=!M(n.endX)||!M(n.endY),b=!M(n.arrowEndX)||!M(n.arrowEndY),x=3*(this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth),w=tg({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.startX,y:n.startY}),E=wf.poolIndex()){var p=h;h=f,f=p}var g=u.srcPos=h.position(),v=u.tgtPos=f.position(),y=u.srcW=h.outerWidth(),b=u.srcH=h.outerHeight(),x=u.tgtW=f.outerWidth(),E=u.tgtH=f.outerHeight(),T=u.srcShape=n.nodeShapes[t.getNodeShape(h)],C=u.tgtShape=n.nodeShapes[t.getNodeShape(f)],k=u.srcCornerRadius="auto"===h.pstyle("corner-radius").value?"auto":h.pstyle("corner-radius").pfValue,P=u.tgtCornerRadius="auto"===f.pstyle("corner-radius").value?"auto":f.pstyle("corner-radius").pfValue,S=u.tgtRs=f._private.rscratch,B=u.srcRs=h._private.rscratch;u.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var D=0;D=lz||(q=Math.sqrt(Math.max(Y*Y,.01)+Math.max(j*j,.01)));var W=u.vector={x:Y,y:j},U=u.vectorNorm={x:W.x/q,y:W.y/q},H={x:-U.y,y:U.x};u.nodesOverlap=!M(q)||C.checkPoint(L[0],L[1],0,x,E,v.x,v.y,P,S)||T.checkPoint(z[0],z[1],0,y,b,g.x,g.y,k,B),u.vectorNormInverse=H,e={nodesOverlap:u.nodesOverlap,dirCounts:u.dirCounts,calculatedIntersection:!0,hasBezier:u.hasBezier,hasUnbundled:u.hasUnbundled,eles:u.eles,srcPos:v,srcRs:S,tgtPos:g,tgtRs:B,srcW:x,srcH:E,tgtW:y,tgtH:b,srcIntn:V,tgtIntn:O,srcShape:C,tgtShape:T,posPts:{x1:X.x2,y1:X.y2,x2:X.x1,y2:X.y1},intersectionPts:{x1:F.x2,y1:F.y2,x2:F.x1,y2:F.y1},vector:{x:-W.x,y:-W.y},vectorNorm:{x:-U.x,y:-U.y},vectorNormInverse:{x:-H.x,y:-H.y}}}var K=N?e:u;A.nodesOverlap=K.nodesOverlap,A.srcIntn=K.srcIntn,A.tgtIntn=K.tgtIntn,A.isRound=R.startsWith("round"),r&&(h.isParent()||h.isChild()||f.isParent()||f.isChild())&&(h.parents().anySame(f)||f.parents().anySame(h)||h.same(f)&&h.isParent())?t.findCompoundLoopPoints(_,K,D,I):h===f?t.findLoopPoints(_,K,D,I):R.endsWith("segments")?t.findSegmentsPoints(_,K):R.endsWith("taxi")?t.findTaxiPoints(_,K):"straight"!==R&&(I||u.eles.length%2!=1||D!==Math.floor(u.eles.length/2))?t.findBezierPoints(_,K,D,I,N):t.findStraightEdgePoints(_),t.findEndpoints(_),t.tryToCorrectInvalidPoints(_,K),t.checkForInvalidEdgeWarning(_),t.storeAllpts(_),t.storeEdgeProjections(_),t.calculateArrowAngles(_),t.recalculateEdgeLabelProjections(_),t.calculateLabelAngles(_)}}();this.findHaystackPoints(s)}},lV.getSegmentPoints=function(e){var t=e[0]._private.rscratch;if(this.recalculateRenderedStyle(e),"segments"===t.edgeType)return lF(t.segpts)},lV.getControlPoints=function(e){var t=e[0]._private.rscratch;this.recalculateRenderedStyle(e);var n=t.edgeType;if("bezier"===n||"multibezier"===n||"self"===n||"compound"===n)return lF(t.ctrlpts)},lV.getEdgeMidpoint=function(e){var t=e[0]._private.rscratch;return this.recalculateRenderedStyle(e),{x:t.midX,y:t.midY}};var lX={};lX.manualEndptToPx=function(e,t){var n=e.position(),r=e.outerWidth(),i=e.outerHeight(),a=e._private.rscratch;if(2===t.value.length){var o=[t.pfValue[0],t.pfValue[1]];return"%"===t.units[0]&&(o[0]=o[0]*r),"%"===t.units[1]&&(o[1]=o[1]*i),o[0]+=n.x,o[1]+=n.y,o}var s=t.pfValue[0];s=-Math.PI/2+s;var l=2*Math.max(r,i),u=[n.x+Math.cos(s)*l,n.y+Math.sin(s)*l];return this.nodeShapes[this.getNodeShape(e)].intersectLine(n.x,n.y,r,i,u[0],u[1],0,"auto"===e.pstyle("corner-radius").value?"auto":e.pstyle("corner-radius").pfValue,a)},lX.findEndpoints=function(e){var t,n,r,i,a,o,s,l,u,c=e.source()[0],d=e.target()[0],h=c.position(),f=d.position(),p=e.pstyle("target-arrow-shape").value,g=e.pstyle("source-arrow-shape").value,v=e.pstyle("target-distance-from-node").pfValue,y=e.pstyle("source-distance-from-node").pfValue,b=c._private.rscratch,x=d._private.rscratch,w=e.pstyle("curve-style").value,E=e._private.rscratch,T=E.edgeType,C=G(w,"taxi"),k="self"===T||"compound"===T,P="bezier"===T||"multibezier"===T||k,S="bezier"!==T,B="straight"===T||"segments"===T,D="segments"===T,_=k||C,A=e.pstyle("source-endpoint"),R=_?"outside-to-node":A.value,I="auto"===c.pstyle("corner-radius").value?"auto":c.pstyle("corner-radius").pfValue,N=e.pstyle("target-endpoint"),L=_?"outside-to-node":N.value,O="auto"===d.pstyle("corner-radius").value?"auto":d.pstyle("corner-radius").pfValue;E.srcManEndpt=A,E.tgtManEndpt=N;var z=null!=(t=(null==N||null==(n=N.pfValue)?void 0:n.length)===2?N.pfValue:null)?t:[0,0],V=null!=(r=(null==A||null==(i=A.pfValue)?void 0:i.length)===2?A.pfValue:null)?r:[0,0];if(P){var F=[E.ctrlpts[0],E.ctrlpts[1]];o=S?[E.ctrlpts[E.ctrlpts.length-2],E.ctrlpts[E.ctrlpts.length-1]]:F,s=F}else if(B){var X=D?E.segpts.slice(0,2):[f.x+z[0],f.y+z[1]];o=D?E.segpts.slice(E.segpts.length-2):[h.x+V[0],h.y+V[1]],s=X}if("inside-to-node"===L)a=[f.x,f.y];else if(N.units)a=this.manualEndptToPx(d,N);else if("outside-to-line"===L)a=E.tgtIntn;else if("outside-to-node"===L||"outside-to-node-or-label"===L?l=o:("outside-to-line"===L||"outside-to-line-or-label"===L)&&(l=[h.x,h.y]),a=this.nodeShapes[this.getNodeShape(d)].intersectLine(f.x,f.y,d.outerWidth(),d.outerHeight(),l[0],l[1],0,O,x),"outside-to-node-or-label"===L||"outside-to-line-or-label"===L){var j=d._private.rscratch,Y=j.labelWidth,q=j.labelHeight,W=j.labelX,U=j.labelY,H=Y/2,K=q/2,Z=d.pstyle("text-valign").value;"top"===(Z=r0(Z))?U-=K:"bottom"===Z&&(U+=K);var $=d.pstyle("text-halign").value;"left"===($=rJ($))?W-=H:"right"===$&&(W+=H);var Q=tQ(l[0],l[1],[W-H,U-K,W+H,U-K,W+H,U+K,W-H,U+K],f.x,f.y);if(Q.length>0){var J=tv(h,ta(a)),ee=tv(h,ta(Q)),et=J;ee2&&tv(h,{x:Q[2],y:Q[3]})0){var ep=tv(f,ta(a)),eg=tv(f,ta(ef)),ev=ep;eg2&&tv(f,{x:ef[2],y:ef[3]})=l||b){c={cp:g,segment:y};break}}if(c)break}var x=c.cp,w=c.segment,E=(l-h)/w.length,T=w.t1-w.t0,C=i?w.t0+T*E:w.t1-T*E;C=tw(0,C,1),t=tb(x.p0,x.p1,x.p2,C),u=lU(x.p0,x.p1,x.p2,C);break;case"straight":case"segments":case"haystack":for(var k,P,S,B,D=0,_=r.allpts.length,A=0;A+3<_&&(i?(k={x:r.allpts[A],y:r.allpts[A+1]},P={x:r.allpts[A+2],y:r.allpts[A+3]}):(k={x:r.allpts[_-2-A],y:r.allpts[_-1-A]},P={x:r.allpts[_-4-A],y:r.allpts[_-3-A]}),S=tg(k,P),B=D,!((D+=S)>=l));A+=2);var M=(l-B)/S;t=tx(k,P,M=tw(0,M,1)),u=lW(k,P)}o("labelX",n,t.x),o("labelY",n,t.y),o("labelAutoAngle",n,u)}};l("source"),l("target"),this.applyLabelDimensions(e)}},lY.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e),e.isEdge()&&(this.applyPrefixedLabelDimensions(e,"source"),this.applyPrefixedLabelDimensions(e,"target"))},lY.applyPrefixedLabelDimensions=function(e,t){var n=e._private,r=this.getLabelText(e,t),i=eP(r,e._private.labelDimsKey);if(eH(n.rscratch,"prefixedLabelDimsKey",t)!==i){eK(n.rscratch,"prefixedLabelDimsKey",t,i);var a=this.calculateLabelDimensions(e,r),o=e.pstyle("line-height").pfValue,s=e.pstyle("font-size").pfValue,l=e.pstyle("text-wrap").strValue,u=eH(n.rscratch,"labelWrapCachedLines",t)||[],c="wrap"!==l?1:Math.max(u.length,1),d=a.width,h=a.height+(c-1)*(o-1)*s;eK(n.rstyle,"labelWidth",t,d),eK(n.rscratch,"labelWidth",t,d),eK(n.rstyle,"labelHeight",t,h),eK(n.rscratch,"labelHeight",t,h),eK(n.rscratch,"labelLineHeight",t,s*o),eK(n.rscratch,"labelActualDescent",t,a.labelActualDescent)}},lY.getLabelText=function(e,t){var n=e._private,r=t?t+"-":"",i=e.pstyle(r+"label").strValue,a=e.pstyle("text-transform").value,s=function(e,r){return r?(eK(n.rscratch,e,t,r),r):eH(n.rscratch,e,t)};if(!i)return"";"none"==a||("uppercase"==a?i=i.toUpperCase():"lowercase"==a&&(i=i.toLowerCase()));var l=e.pstyle("text-wrap").value;if("wrap"===l){var u=s("labelKey");if(null!=u&&s("labelWrapKey")===u)return s("labelWrapCachedText");for(var c=i.split("\n"),d=e.pstyle("text-max-width").pfValue,h="anywhere"===e.pstyle("text-overflow-wrap").value,f=[],p=/[\s\u200b]+|$/g,g=0;gd){var b,x=v.matchAll(p),w="",E=0,T=o(x);try{for(T.s();!(b=T.n()).done;){var C=b.value,k=C[0],P=v.substring(E,C.index);E=C.index+k.length;var S=0===w.length?P:w+P+k;this.calculateLabelDimensions(e,S).width<=d?w+=P+k:(w&&f.push(w),w=P+k)}}catch(e){T.e(e)}finally{T.f()}w.match(/^[\s\u200b]+$/)||f.push(w)}else f.push(v)}s("labelWrapCachedLines",f),i=s("labelWrapCachedText",f.join("\n")),s("labelWrapKey",u)}else if("ellipsis"===l){var B=e.pstyle("text-max-width").pfValue,D="",_=!1;if(this.calculateLabelDimensions(e,i).widthB);A++)D+=i[A],A===i.length-1&&(_=!0);return _||(D+="…"),D}return i},lY.getLabelJustification=function(e){var t=e.pstyle("text-justification").strValue,n=e.pstyle("text-halign").strValue;return"auto"!==t?t:e.isNode()?r1(n):"center"},lY.calculateLabelDimensions=function(e,t){var n=this.cy.window().document,r=e.pstyle("font-style").strValue,i=e.pstyle("font-size").pfValue,a=e.pstyle("font-family").strValue,o=e.pstyle("font-weight").strValue,s=e.pstyle("text-metrics").strValue||"font",l=this.labelCalcCanvas,u=this.labelCalcCanvasContext;if(!l){l=this.labelCalcCanvas=n.createElement("canvas"),u=this.labelCalcCanvasContext=l.getContext("2d");var c=l.style;c.position="absolute",c.left="-9999px",c.top="-9999px",c.zIndex="-1",c.visibility="hidden",c.pointerEvents="none"}u.font="".concat(r," ").concat(o," ").concat(i,"px ").concat(a);for(var d=0,h=0,f=t.split("\n"),p=f.length,g=0,v=0,y=0;ye.width()||28>e.height()))return lH||(eV("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),lH=!0),"rectangle";if(e.isParent())if("rectangle"===t||"roundrectangle"===t||"round-rectangle"===t||"cutrectangle"===t||"cut-rectangle"===t||"barrel"===t)return t;else return"rectangle";if("polygon"===t){var n=e.pstyle("shape-polygon-points").value;return this.nodeShapes.makePolygon(n).name}return t};var lK={};lK.registerCalculationListeners=function(){var e=this.cy,t=e.collection(),n=this,r=function(e){var n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(t.merge(e),n)for(var r=0;r=P.desktopTapThreshold2}var b=_(e);t&&(P.hoverData.tapholdCancelled=!0),r=!0,D(d,["mousemove","vmousemove","tapdrag"],e,{x:s[0],y:s[1]});var x=function(t){return{originalEvent:e,type:t,position:{x:s[0],y:s[1]}}},w=function(){P.data.bgActivePosistion=void 0,P.hoverData.selecting||i.emit(x("boxstart")),c[4]=1,P.hoverData.selecting=!0,P.redrawHint("select",!0),P.redraw()};if(3===P.hoverData.which){if(t){var E=x("cxtdrag");f?f.emit(E):i.emit(E),P.hoverData.cxtDragged=!0,(!P.hoverData.cxtOver||d!==P.hoverData.cxtOver)&&(P.hoverData.cxtOver&&P.hoverData.cxtOver.emit(x("cxtdragout")),P.hoverData.cxtOver=d,d&&d.emit(x("cxtdragover")))}}else if(P.hoverData.dragging){if(r=!0,i.panningEnabled()&&i.userPanningEnabled()){if(P.hoverData.justStartedPan){var T=P.hoverData.mdownPos;n={x:(s[0]-T[0])*a,y:(s[1]-T[1])*a},P.hoverData.justStartedPan=!1}else n={x:p[0]*a,y:p[1]*a};i.panBy(n),i.emit(x("dragpan")),P.hoverData.dragged=!0}s=P.projectIntoViewport(e.clientX,e.clientY)}else if(1==c[4]&&(null==f||f.pannable()))t&&(!P.hoverData.dragging&&i.boxSelectionEnabled()&&(b||!i.panningEnabled()||!i.userPanningEnabled())?w():!P.hoverData.selecting&&i.panningEnabled()&&i.userPanningEnabled()&&A(f,P.hoverData.downs)&&(P.hoverData.dragging=!0,P.hoverData.justStartedPan=!0,c[4]=0,P.data.bgActivePosistion=ta(l),P.redrawHint("select",!0),P.redraw()),f&&f.pannable()&&f.active()&&f.unactivate());else{if(f&&f.pannable()&&f.active()&&f.unactivate(),f&&f.grabbed()||d==h||(h&&D(h,["mouseout","tapdragout"],e,{x:s[0],y:s[1]}),d&&D(d,["mouseover","tapdragover"],e,{x:s[0],y:s[1]}),P.hoverData.last=d),f)if(t){if(i.boxSelectionEnabled()&&b)f&&f.grabbed()&&(F(g),f.emit(x("freeon")),g.emit(x("free")),P.dragData.didDrag&&(f.emit(x("dragfreeon")),g.emit(x("dragfree")))),w();else if(f&&f.grabbed()&&P.nodeIsDraggable(f)){var C,k=!P.dragData.didDrag;k&&P.redrawHint("eles",!0),P.dragData.didDrag=!0,P.hoverData.draggingEles||V(g,{inDragLayer:!0});var S={x:0,y:0};if(M(p[0])&&M(p[1])&&(S.x+=p[0],S.y+=p[1],k)){var B=P.hoverData.dragDelta;B&&M(B[0])&&M(B[1])&&(S.x+=B[0],S.y+=B[1])}P.hoverData.draggingEles=!0,g.silentShift(S).emit(x("position")).emit(x("drag")),P.redrawHint("drag",!0),P.redraw()}}else 0===(C=P.hoverData.dragDelta=P.hoverData.dragDelta||[]).length?(C.push(p[0]),C.push(p[1])):(C[0]+=p[0],C[1]+=p[1]);r=!0}if(c[2]=s[0],c[3]=s[1],r)return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1}},!1),P.registerBinding(S,"mouseup",function(e){if((1!==P.hoverData.which||1===e.which||!P.hoverData.capture)&&P.hoverData.capture){P.hoverData.capture=!1;var i=P.cy,a=P.projectIntoViewport(e.clientX,e.clientY),o=P.selection,s=P.findNearestElement(a[0],a[1],!0,!1),l=P.dragData.possibleDragElements,u=P.hoverData.down,c=_(e);P.data.bgActivePosistion&&(P.redrawHint("select",!0),P.redraw()),P.hoverData.tapholdCancelled=!0,P.data.bgActivePosistion=void 0,u&&u.unactivate();var d=function(t){return{originalEvent:e,type:t,position:{x:a[0],y:a[1]}}};if(3===P.hoverData.which){var h=d("cxttapend");if(u?u.emit(h):i.emit(h),!P.hoverData.cxtDragged){var f=d("cxttap");u?u.emit(f):i.emit(f)}P.hoverData.cxtDragged=!1,P.hoverData.which=null}else if(1===P.hoverData.which){if(D(s,["mouseup","tapend","vmouseup"],e,{x:a[0],y:a[1]}),P.dragData.didDrag||P.hoverData.dragged||P.hoverData.selecting||P.hoverData.isOverThresholdDrag||(D(u,["click","tap","vclick"],e,{x:a[0],y:a[1]}),n=!1,e.timeStamp-r<=i.multiClickDebounceTime()?(t&&clearTimeout(t),n=!0,r=null,D(u,["dblclick","dbltap","vdblclick"],e,{x:a[0],y:a[1]})):(t=setTimeout(function(){n||D(u,["oneclick","onetap","voneclick"],e,{x:a[0],y:a[1]})},i.multiClickDebounceTime()),r=e.timeStamp)),null!=u||P.dragData.didDrag||P.hoverData.selecting||P.hoverData.dragged||_(e)||(i.$(B).unselect(["tapunselect"]),l.length>0&&P.redrawHint("eles",!0),P.dragData.possibleDragElements=l=i.collection()),s!=u||P.dragData.didDrag||P.hoverData.selecting||null==s||!s._private.selectable||(P.hoverData.dragging||("additive"===i.selectionType()||c?s.selected()?s.unselect(["tapunselect"]):s.select(["tapselect"]):c||(i.$(B).unmerge(s).unselect(["tapunselect"]),s.select(["tapselect"]))),P.redrawHint("eles",!0)),P.hoverData.selecting){var p=i.collection(P.getAllInBox(o[0],o[1],o[2],o[3]));P.redrawHint("select",!0),p.length>0&&P.redrawHint("eles",!0),i.emit(d("boxend"));"additive"===i.selectionType()||c||i.$(B).unmerge(p).unselect(),p.emit(d("box")).stdFilter(function(e){return e.selectable()&&!e.selected()}).select().emit(d("boxselect")),P.redraw()}if(P.hoverData.dragging&&(P.hoverData.dragging=!1,P.redrawHint("select",!0),P.redrawHint("eles",!0),P.redraw()),!o[4]){P.redrawHint("drag",!0),P.redrawHint("eles",!0);var g=u&&u.grabbed();F(l),g&&(u.emit(d("freeon")),l.emit(d("free")),P.dragData.didDrag&&(u.emit(d("dragfreeon")),l.emit(d("dragfree"))))}}o[4]=0,P.hoverData.down=null,P.hoverData.cxtStarted=!1,P.hoverData.draggingEles=!1,P.hoverData.selecting=!1,P.hoverData.isOverThresholdDrag=!1,P.dragData.didDrag=!1,P.hoverData.dragged=!1,P.hoverData.dragDelta=[],P.hoverData.mdownPos=null,P.hoverData.mdownGPos=null,P.hoverData.which=null}},!1);var Z=[],$=1e5,Q=function(e){for(var t=Math.abs(e[0]),n=1;n=4?(i=!1,Z[0]>=5&&(u=Q(Z)?Z[0]:td(Z))>1&&(i=!0,$=u)):(Z.push(Math.abs(n)),t=!0):i&&($=Math.min(Math.abs(n),$)),!P.scrollingPage)){var r=P.cy,a=r.zoom(),o=r.pan(),s=P.projectIntoViewport(e.clientX,e.clientY),l=[s[0]*a+o.x,s[1]*a+o.y];if(P.hoverData.draggingEles||P.hoverData.dragging||P.hoverData.cxtStarted||0!==P.selection[4])return void e.preventDefault();if(r.panningEnabled()&&r.userPanningEnabled()&&r.zoomingEnabled()&&r.userZoomingEnabled()){e.preventDefault(),P.data.wheelZooming=!0,clearTimeout(P.data.wheelTimeout),P.data.wheelTimeout=setTimeout(function(){P.data.wheelZooming=!1,P.redrawHint("eles",!0),P.redraw()},150),t&&Math.abs(n)>5&&(n=5*tp(n)),c=-(n/250),i&&(c/=$,c*=3),c*=P.wheelSensitivity,1===e.deltaMode&&(c*=33);var u,c,d=r.zoom()*Math.pow(10,c);"gesturechange"===e.type&&(d=P.gestureStartZoom*e.scale),r.zoom({level:d,renderedPosition:{x:l[0],y:l[1]}}),r.emit({type:"gesturechange"===e.type?"pinchzoom":"scrollzoom",originalEvent:e,position:{x:s[0],y:s[1]}})}}};P.registerBinding(P.container,"wheel",J,!0),P.registerBinding(S,"scroll",function(e){P.scrollingPage=!0,clearTimeout(P.scrollingPageTimeout),P.scrollingPageTimeout=setTimeout(function(){P.scrollingPage=!1},250)},!0),P.registerBinding(P.container,"gesturestart",function(e){P.gestureStartZoom=P.cy.zoom(),P.hasTouchStarted||e.preventDefault()},!0),P.registerBinding(P.container,"gesturechange",function(e){P.hasTouchStarted||J(e)},!0),P.registerBinding(P.container,"mouseout",function(e){var t=P.projectIntoViewport(e.clientX,e.clientY);P.cy.emit({originalEvent:e,type:"mouseout",position:{x:t[0],y:t[1]}})},!1),P.registerBinding(P.container,"mouseover",function(e){var t=P.projectIntoViewport(e.clientX,e.clientY);P.cy.emit({originalEvent:e,type:"mouseover",position:{x:t[0],y:t[1]}})},!1);var ee=function(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))},et=function(e,t,n,r){return(n-e)*(n-e)+(r-t)*(r-t)};if(P.registerBinding(P.container,"touchstart",b=function(e){if(P.hasTouchStarted=!0,H(e)){j(),P.touchData.capture=!0,P.data.bgActivePosistion=void 0;var t=P.cy,n=P.touchData.now,r=P.touchData.earlier;if(e.touches[0]){var i=P.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY);n[0]=i[0],n[1]=i[1]}if(e.touches[1]){var i=P.projectIntoViewport(e.touches[1].clientX,e.touches[1].clientY);n[2]=i[0],n[3]=i[1]}if(e.touches[2]){var i=P.projectIntoViewport(e.touches[2].clientX,e.touches[2].clientY);n[4]=i[0],n[5]=i[1]}var b=function(t){return{originalEvent:e,type:t,position:{x:n[0],y:n[1]}}};if(e.touches[1]){P.touchData.singleTouchMoved=!0,F(P.dragData.touchDragEles);var x=P.findContainerClientCoords();f=x[0],p=x[1],g=x[2],v=x[3],a=e.touches[0].clientX-f,o=e.touches[0].clientY-p,s=e.touches[1].clientX-f,l=e.touches[1].clientY-p,y=0<=a&&a<=g&&0<=s&&s<=g&&0<=o&&o<=v&&0<=l&&l<=v;var w=t.pan(),E=t.zoom();if(u=ee(a,o,s,l),c=et(a,o,s,l),h=[((d=[(a+s)/2,(o+l)/2])[0]-w.x)/E,(d[1]-w.y)/E],c<4e4&&!e.touches[2]){var T=P.findNearestElement(n[0],n[1],!0,!0),C=P.findNearestElement(n[2],n[3],!0,!0);T&&T.isNode()?(T.activate().emit(b("cxttapstart")),P.touchData.start=T):C&&C.isNode()?(C.activate().emit(b("cxttapstart")),P.touchData.start=C):t.emit(b("cxttapstart")),P.touchData.start&&(P.touchData.start._private.grabbed=!1),P.touchData.cxt=!0,P.touchData.cxtDragged=!1,P.data.bgActivePosistion=void 0,P.redraw();return}}if(e.touches[2])t.boxSelectionEnabled()&&e.preventDefault();else if(e.touches[1]);else if(e.touches[0]){var k=P.findNearestElements(n[0],n[1],!0,!0),S=k[0];if(null!=S&&(S.activate(),P.touchData.start=S,P.touchData.starts=k,P.nodeIsGrabbable(S))){var B=P.dragData.touchDragEles=t.collection(),_=null;P.redrawHint("eles",!0),P.redrawHint("drag",!0),S.selected()?V(_=t.$(function(e){return e.selected()&&P.nodeIsGrabbable(e)}),{addToList:B}):V(S,{addToList:B}),N(S),S.emit(b("grabon")),_?_.forEach(function(e){e.emit(b("grab"))}):S.emit(b("grab"))}D(S,["touchstart","tapstart","vmousedown"],e,{x:n[0],y:n[1]}),null==S&&(P.data.bgActivePosistion={x:i[0],y:i[1]},P.redrawHint("select",!0),P.redraw()),P.touchData.singleTouchMoved=!1,P.touchData.singleTouchStartTime=+new Date,clearTimeout(P.touchData.tapholdTimeout),P.touchData.tapholdTimeout=setTimeout(function(){!1!==P.touchData.singleTouchMoved||P.pinching||P.touchData.selecting||D(P.touchData.start,["taphold"],e,{x:n[0],y:n[1]})},P.tapholdDuration)}if(e.touches.length>=1){for(var A=P.touchData.startPosition=[null,null,null,null,null,null],M=0;M=P.touchTapThreshold2}if(t&&P.touchData.cxt){e.preventDefault();var S=e.touches[0].clientX-f,B=e.touches[0].clientY-p,_=e.touches[1].clientX-f,R=e.touches[1].clientY-p,I=et(S,B,_,R);if(I/c>=2.25||I>=22500){P.touchData.cxt=!1,P.data.bgActivePosistion=void 0,P.redrawHint("select",!0);var N=b("cxttapend");P.touchData.start?(P.touchData.start.unactivate().emit(N),P.touchData.start=null):r.emit(N)}}if(t&&P.touchData.cxt){var N=b("cxtdrag");P.data.bgActivePosistion=void 0,P.redrawHint("select",!0),P.touchData.start?P.touchData.start.emit(N):r.emit(N),P.touchData.start&&(P.touchData.start._private.grabbed=!1),P.touchData.cxtDragged=!0;var L=P.findNearestElement(i[0],i[1],!0,!0);(!P.touchData.cxtOver||L!==P.touchData.cxtOver)&&(P.touchData.cxtOver&&P.touchData.cxtOver.emit(b("cxtdragout")),P.touchData.cxtOver=L,L&&L.emit(b("cxtdragover")))}else if(t&&e.touches[2]&&r.boxSelectionEnabled())e.preventDefault(),P.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,P.touchData.selecting||r.emit(b("boxstart")),P.touchData.selecting=!0,P.touchData.didSelect=!0,n[4]=1,n&&0!==n.length&&void 0!==n[0]?(n[2]=(i[0]+i[2]+i[4])/3,n[3]=(i[1]+i[3]+i[5])/3):(n[0]=(i[0]+i[2]+i[4])/3,n[1]=(i[1]+i[3]+i[5])/3,n[2]=(i[0]+i[2]+i[4])/3+1,n[3]=(i[1]+i[3]+i[5])/3+1),P.redrawHint("select",!0),P.redraw();else if(t&&e.touches[1]&&!P.touchData.didSelect&&r.zoomingEnabled()&&r.panningEnabled()&&r.userZoomingEnabled()&&r.userPanningEnabled()){e.preventDefault(),P.data.bgActivePosistion=void 0,P.redrawHint("select",!0);var O=P.dragData.touchDragEles;if(O){P.redrawHint("drag",!0);for(var z=0;z0&&!P.hoverData.draggingEles&&!P.swipePanning&&null!=P.data.bgActivePosistion&&(P.data.bgActivePosistion=void 0,P.redrawHint("select",!0),P.redraw())}},!1),P.registerBinding(S,"touchcancel",w=function(e){var t=P.touchData.start;P.touchData.capture=!1,t&&t.unactivate()}),P.registerBinding(S,"touchend",E=function(e){var t,n=P.touchData.start;if(P.touchData.capture){0===e.touches.length&&(P.touchData.capture=!1),e.preventDefault();var r=P.selection;P.swipePanning=!1,P.hoverData.draggingEles=!1;var i=P.cy,a=i.zoom(),o=P.touchData.now,s=P.touchData.earlier;if(e.touches[0]){var l=P.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY);o[0]=l[0],o[1]=l[1]}if(e.touches[1]){var l=P.projectIntoViewport(e.touches[1].clientX,e.touches[1].clientY);o[2]=l[0],o[3]=l[1]}if(e.touches[2]){var l=P.projectIntoViewport(e.touches[2].clientX,e.touches[2].clientY);o[4]=l[0],o[5]=l[1]}var u=function(t){return{originalEvent:e,type:t,position:{x:o[0],y:o[1]}}};if(n&&n.unactivate(),P.touchData.cxt){if(t=u("cxttapend"),n?n.emit(t):i.emit(t),!P.touchData.cxtDragged){var c=u("cxttap");n?n.emit(c):i.emit(c)}P.touchData.start&&(P.touchData.start._private.grabbed=!1),P.touchData.cxt=!1,P.touchData.start=null,P.redraw();return}if(!e.touches[2]&&i.boxSelectionEnabled()&&P.touchData.selecting){P.touchData.selecting=!1;var d=i.collection(P.getAllInBox(r[0],r[1],r[2],r[3]));r[0]=void 0,r[1]=void 0,r[2]=void 0,r[3]=void 0,r[4]=0,P.redrawHint("select",!0),i.emit(u("boxend")),d.emit(u("box")).stdFilter(function(e){return e.selectable()&&!e.selected()}).select().emit(u("boxselect")),d.nonempty()&&P.redrawHint("eles",!0),P.redraw()}if(null!=n&&n.unactivate(),e.touches[2])P.data.bgActivePosistion=void 0,P.redrawHint("select",!0);else if(e.touches[1]);else if(e.touches[0]);else if(!e.touches[0]){P.data.bgActivePosistion=void 0,P.redrawHint("select",!0);var h=P.dragData.touchDragEles;if(null!=n){var f=n._private.grabbed;F(h),P.redrawHint("drag",!0),P.redrawHint("eles",!0),f&&(n.emit(u("freeon")),h.emit(u("free")),P.dragData.didDrag&&(n.emit(u("dragfreeon")),h.emit(u("dragfree")))),D(n,["touchend","tapend","vmouseup","tapdragout"],e,{x:o[0],y:o[1]}),n.unactivate(),P.touchData.start=null}else D(P.findNearestElement(o[0],o[1],!0,!0),["touchend","tapend","vmouseup","tapdragout"],e,{x:o[0],y:o[1]});var p=P.touchData.startPosition[0]-o[0],g=P.touchData.startPosition[1]-o[1];P.touchData.singleTouchMoved||(n||i.$(":selected").unselect(["tapunselect"]),D(n,["tap","vclick"],e,{x:o[0],y:o[1]}),T=!1,e.timeStamp-k<=i.multiClickDebounceTime()?(C&&clearTimeout(C),T=!0,k=null,D(n,["dbltap","vdblclick"],e,{x:o[0],y:o[1]})):(C=setTimeout(function(){T||D(n,["onetap","voneclick"],e,{x:o[0],y:o[1]})},i.multiClickDebounceTime()),k=e.timeStamp)),null!=n&&!P.dragData.didDrag&&n._private.selectable&&(p*p+g*g)*a*afunction(e){for(var t=0,n=0;nMath.abs(c))return n(e,i(l,.5));var d=a(r(o,e),u)/c;return n(e,i(l,d))}(v.p1,v.p2,y.p1,y.p2);p.push(b)}return p}(t$(o,e,t,n,r),i),l=tE(),s.forEach(function(e){return tk(l,e.x,e.y)}),l}}},l5.generateEllipse=function(){return this.nodeShapes.ellipse={renderer:this,name:"ellipse",draw:function(e,t,n,r,i,a){this.renderer.nodeShapeImpl(this.name,e,t,n,r,i)},intersectLine:function(e,t,n,r,i,a,o,s){return tU(i,a,e,t,n/2+o,r/2+o)},checkPoint:function(e,t,n,r,i,a,o,s){return tG(e,t,r,i,a,o,n)}}},l5.generateRoundPolygon=function(e,t){return this.nodeShapes[e]={renderer:this,name:e,points:t,getOrCreateCorners:function(e,n,r,i,a,o,s){if(void 0!==o[s]&&o[s+"-cx"]===e&&o[s+"-cy"]===n&&o[s+"-w"]===r&&o[s+"-h"]===i&&o[s+"-corner-radius"]===a)return o[s];o[s]=Array(t.length/2),o[s+"-cx"]=e,o[s+"-cy"]=n,o[s+"-w"]=r,o[s+"-h"]=i,o[s+"-corner-radius"]=a;var l=r/2,u=i/2;a="auto"===a?t4(r,i):a;for(var c=Array(t.length/2),d=0;d0)return f[0]}return null}(e,t,p);if(null!=g){var v=tm(p[5],p[3],p[1],g);if(p.isTop&&v<=t||p.isBottom&&t<=v)return!0}}return!1}}},l5.generateBottomRoundrectangle=function(){return this.nodeShapes["bottom-round-rectangle"]=this.nodeShapes.bottomroundrectangle={renderer:this,name:"bottom-round-rectangle",points:t1(4,0),draw:function(e,t,n,r,i,a){this.renderer.nodeShapeImpl(this.name,e,t,n,r,i,this.points,a)},intersectLine:function(e,t,n,r,i,a,o,s){var l=e-(n/2+o),u=t-(r/2+o),c=e+(n/2+o),d=tZ(i,a,e,t,l,u,c,u,!1);return d.length>0?d:tI(i,a,e,t,n,r,o,s)},checkPoint:function(e,t,n,r,i,a,o,s){var l=2*(s="auto"===s?t3(r,i):s);if(tj(e,t,this.points,a,o,r,i-l,[0,-1],n)||tj(e,t,this.points,a,o,r-l,i,[0,-1],n))return!0;var u=r/2+2*n,c=i/2+2*n;return!!(tX(e,t,[a-u,o-c,a-u,o,a+u,o,a+u,o-c])||tG(e,t,l,l,a+r/2-s,o+i/2-s,n)||tG(e,t,l,l,a-r/2+s,o+i/2-s,n))}}},l5.registerNodeShapes=function(){var e=this.nodeShapes={},t=this;this.generateEllipse(),this.generatePolygon("triangle",t1(3,0)),this.generateRoundPolygon("round-triangle",t1(3,0)),this.generatePolygon("rectangle",t1(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();var n=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",n),this.generateRoundPolygon("round-diamond",n),this.generatePolygon("pentagon",t1(5,0)),this.generateRoundPolygon("round-pentagon",t1(5,0)),this.generatePolygon("hexagon",t1(6,0)),this.generateRoundPolygon("round-hexagon",t1(6,0)),this.generatePolygon("heptagon",t1(7,0)),this.generateRoundPolygon("round-heptagon",t1(7,0)),this.generatePolygon("octagon",t1(8,0)),this.generateRoundPolygon("round-octagon",t1(8,0));var r=Array(20),i=t5(5,0),a=t5(5,Math.PI/5),o=.5*(3-Math.sqrt(5));o*=1.57;for(var s=0;st.className.indexOf(o)&&(t.className=(t.className||"")+" "+o),!s){var l=r.createElement("style");l.id=a,l.textContent="."+o+" { position: relative; }",i.insertBefore(l,i.children[0])}"static"===n.getComputedStyle(t).getPropertyValue("position")&&eV("A Cytoscape container has style position:static and so can not use UI extensions properly")}this.selection=[void 0,void 0,void 0,void 0,0],this.bezierProjPcts=[.05,.225,.4,.5,.6,.775,.95],this.hoverData={down:null,last:null,downTime:null,triggerMode:null,dragging:!1,initialPan:[null,null],capture:!1},this.dragData={possibleDragElements:[]},this.touchData={start:null,capture:!1,startPosition:[null,null,null,null,null,null],singleTouchStartTime:null,singleTouchMoved:!0,now:[null,null,null,null,null,null],earlier:[null,null,null,null,null,null]},this.redraws=0,this.showFps=e.showFps,this.debug=e.debug,this.webgl=e.webgl,this.hideEdgesOnViewport=e.hideEdgesOnViewport,this.textureOnViewport=e.textureOnViewport,this.wheelSensitivity=e.wheelSensitivity,this.motionBlurEnabled=e.motionBlur,this.forcedPixelRatio=M(e.pixelRatio)?e.pixelRatio:null,this.motionBlur=e.motionBlur,this.motionBlurOpacity=e.motionBlurOpacity,this.motionBlurTransparency=1-this.motionBlurOpacity,this.motionBlurPxRatio=1,this.mbPxRBlurry=1,this.minMbLowQualFrames=4,this.fullQualityMb=!1,this.clearedForMotionBlur=[],this.desktopTapThreshold=e.desktopTapThreshold,this.desktopTapThreshold2=e.desktopTapThreshold*e.desktopTapThreshold,this.touchTapThreshold=e.touchTapThreshold,this.touchTapThreshold2=e.touchTapThreshold*e.touchTapThreshold,this.tapholdDuration=500,this.bindings=[],this.beforeRenderCallbacks=[],this.beforeRenderPriorities={animations:400,eleCalcs:300,eleTxrDeq:200,lyrTxrDeq:150,lyrTxrSkip:100},this.registerNodeShapes(),this.registerArrowShapes(),this.registerCalculationListeners()},l6.notify=function(e,t){var n=this.cy;if(!this.destroyed){if("init"===e)return void this.load();if("destroy"===e)return void this.destroy();("add"===e||"remove"===e||"move"===e&&n.hasCompoundNodes()||"load"===e||"zorder"===e||"mount"===e)&&this.invalidateCachedZSortedEles(),"viewport"===e&&this.redrawHint("select",!0),"gc"===e&&this.redrawHint("gc",!0),("load"===e||"resize"===e||"mount"===e)&&(this.invalidateContainerClientCoordsCache(),this.matchCanvasSize(this.container)),this.redrawHint("eles",!0),this.redrawHint("drag",!0),this.startRenderLoop(),this.redraw()}},l6.destroy=function(){this.destroyed=!0,this.cy.stopAnimationLoop();for(var e=0;e=e.deqFastCost*g)break}else if(i){if(f>=e.deqCost*l||f>=e.deqAvgCost*s)break}else if(p>=e.deqNoDrawCost*l8)break;var v=e.deq(t,d,c);if(v.length>0)for(var y=0;y0&&(e.onDeqd(t,u),!i&&e.shouldRedraw(t,u,d,c)&&r())},i(t))}}}},ue=a(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eI;i(this,e),this.idsByKey=new e$,this.keyForId=new e$,this.cachesByLvl=new e$,this.lvls=[],this.getKey=t,this.doesEleInvalidateKey=n},[{key:"getIdsFor",value:function(e){null==e&&eO("Can not get id list for null key");var t=this.idsByKey,n=this.idsByKey.get(e);return n||(n=new eJ,t.set(e,n)),n}},{key:"addIdForKey",value:function(e,t){null!=e&&this.getIdsFor(e).add(t)}},{key:"deleteIdForKey",value:function(e,t){null!=e&&this.getIdsFor(e).delete(t)}},{key:"getNumberOfIdsForKey",value:function(e){return null==e?0:this.getIdsFor(e).size}},{key:"updateKeyMappingFor",value:function(e){var t=e.id(),n=this.keyForId.get(t),r=this.getKey(e);this.deleteIdForKey(n,t),this.addIdForKey(r,t),this.keyForId.set(t,r)}},{key:"deleteKeyMappingFor",value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteIdForKey(n,t),this.keyForId.delete(t)}},{key:"keyHasChangedFor",value:function(e){var t=e.id();return this.keyForId.get(t)!==this.getKey(e)}},{key:"isInvalid",value:function(e){return this.keyHasChangedFor(e)||this.doesEleInvalidateKey(e)}},{key:"getCachesAt",value:function(e){var t=this.cachesByLvl,n=this.lvls,r=t.get(e);return r||(r=new e$,t.set(e,r),n.push(e)),r}},{key:"getCache",value:function(e,t){return this.getCachesAt(t).get(e)}},{key:"get",value:function(e,t){var n=this.getKey(e),r=this.getCache(n,t);return null!=r&&this.updateKeyMappingFor(e),r}},{key:"getForCachedKey",value:function(e,t){var n=this.keyForId.get(e.id());return this.getCache(n,t)}},{key:"hasCache",value:function(e,t){return this.getCachesAt(t).has(e)}},{key:"has",value:function(e,t){var n=this.getKey(e);return this.hasCache(n,t)}},{key:"setCache",value:function(e,t,n){n.key=e,this.getCachesAt(t).set(e,n)}},{key:"set",value:function(e,t,n){var r=this.getKey(e);this.setCache(r,t,n),this.updateKeyMappingFor(e)}},{key:"deleteCache",value:function(e,t){this.getCachesAt(t).delete(e)}},{key:"delete",value:function(e,t){var n=this.getKey(e);this.deleteCache(n,t)}},{key:"invalidateKey",value:function(e){var t=this;this.lvls.forEach(function(n){return t.deleteCache(e,n)})}},{key:"invalidate",value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteKeyMappingFor(e);var r=this.doesEleInvalidateKey(e);return r&&this.invalidateKey(n),r||0===this.getNumberOfIdsForKey(n)}}]),ut={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},un=eq({getKey:null,doesEleInvalidateKey:eI,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:eR,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),ur=function(e,t){this.renderer=e,this.onDequeues=[];var n=un(t);ee(this,n),this.lookup=new ue(n.getKey,n.doesEleInvalidateKey),this.setupDequeueing()},ui=ur.prototype;ui.reasons=ut,ui.getTextureQueue=function(e){return this.eleImgCaches=this.eleImgCaches||{},this.eleImgCaches[e]=this.eleImgCaches[e]||[]},ui.getRetiredTextureQueue=function(e){var t=this.eleImgCaches.retired=this.eleImgCaches.retired||{};return t[e]=t[e]||[]},ui.getElementQueue=function(){return this.eleCacheQueue=this.eleCacheQueue||new e4(function(e,t){return t.reqs-e.reqs})},ui.getElementKeyToQueue=function(){return this.eleKeyToCacheQueue=this.eleKeyToCacheQueue||{}},ui.getElement=function(e,t,n,r,i){var a,o,s,l=this,u=this.renderer,c=u.cy.zoom(),d=this.lookup;if(!t||0===t.w||0===t.h||isNaN(t.w)||isNaN(t.h)||!e.visible()||e.removed()||!l.allowEdgeTxrCaching&&e.isEdge()||!l.allowParentTxrCaching&&e.isParent())return null;if(null==r&&(r=Math.ceil(tf(c*n))),r<-4)r=-4;else if(c>=7.99||r>3)return null;var h=Math.pow(2,r),f=t.h*h,p=t.w*h,g=u.eleTextBiggerThanMin(e,h);if(!this.isVisible(e,g))return null;var v=d.get(e,r);if(v&&v.invalidated&&(v.invalidated=!1,v.texture.invalidatedWidth-=v.width),v)return v;if(a=f<=25?25:f<=50?50:50*Math.ceil(f/50),f>1024||p>1024)return null;var y=l.getTextureQueue(a),b=y[y.length-2],x=function(){return l.recycleTexture(a,p)||l.addTexture(a,p)};b||(b=y[y.length-1]),b||(b=x()),b.width-b.usedWidthr;D--)S=l.getElement(e,t,n,D,ut.downscale);B()}else{if(!E&&!T&&!C)for(var _=r-1;_>=-4;_--){var A=d.get(e,_);if(A){s=A;break}}if(w(s))return l.queueElement(e,r),s;b.context.translate(b.usedWidth,0),b.context.scale(h,h),this.drawElement(b.context,e,t,g,!1),b.context.scale(1/h,1/h),b.context.translate(-b.usedWidth,0)}return v={x:b.usedWidth,texture:b,level:r,scale:h,width:p,height:f,scaledLabelShown:g},b.usedWidth+=Math.ceil(p+8),b.eleCaches.push(v),d.set(e,r,v),l.checkTextureFullness(b),v},ui.invalidateElements=function(e){for(var t=0;t=.2*e.width&&this.retireTexture(e)},ui.checkTextureFullness=function(e){var t=this.getTextureQueue(e.height);e.usedWidth/e.width>.8&&e.fullnessChecks>=10?eW(t,e):e.fullnessChecks++},ui.retireTexture=function(e){var t=e.height,n=this.getTextureQueue(t),r=this.lookup;eW(n,e),e.retired=!0;for(var i=e.eleCaches,a=0;a=t)return a.retired=!1,a.usedWidth=0,a.invalidatedWidth=0,a.fullnessChecks=0,eU(a.eleCaches),a.context.setTransform(1,0,0,1,0,0),a.context.clearRect(0,0,a.width,a.height),eW(r,a),n.push(a),a}},ui.queueElement=function(e,t){var n=this.getElementQueue(),r=this.getElementKeyToQueue(),i=this.getKey(e),a=r[i];if(a)a.level=Math.max(a.level,t),a.eles.merge(e),a.reqs++,n.updateItem(a);else{var o={eles:e.spawn().merge(e),level:t,reqs:1,key:i};n.push(o),r[i]=o}},ui.dequeue=function(e){for(var t=this.getElementQueue(),n=this.getElementKeyToQueue(),r=[],i=this.lookup,a=0;a<1;a++)if(t.size()>0){var o=t.pop(),s=o.key,l=o.eles[0],u=i.hasCache(l,o.level);if(n[s]=null,u)continue;r.push(o);var c=this.getBoundingBox(l);this.getElement(l,c,e,o.level,ut.dequeue)}else break;return r},ui.removeFromQueue=function(e){var t=this.getElementQueue(),n=this.getElementKeyToQueue(),r=this.getKey(e),i=n[r];null!=i&&(1===i.eles.length?(i.reqs=eM,t.updateItem(i),t.pop(),n[r]=null):i.eles.unmerge(e))},ui.onDequeue=function(e){this.onDequeues.push(e)},ui.offDequeue=function(e){eW(this.onDequeues,e)},ui.setupDequeueing=l7.setupDequeueing({deqRedrawThreshold:100,deqCost:.15,deqAvgCost:.1,deqNoDrawCost:.9,deqFastCost:.9,deq:function(e,t,n){return e.dequeue(t,n)},onDeqd:function(e,t){for(var n=0;n=3.99||n>2)return null}a.validateLayersElesOrdering(n,e);var l=a.layersByLevel,u=Math.pow(2,n),c=l[n]=l[n]||[];if(a.levelIsComplete(n,e))return c;var d=function(t){if(a.validateLayersElesOrdering(t,e),a.levelIsComplete(t,e))return i=l[t],!0},h=function(e){if(!i)for(var t=n+e;-4<=t&&t<=2&&!d(t);t+=e);};h(1),h(-1);for(var f=c.length-1;f>=0;f--){var p=c[f];p.invalid&&eW(c,p)}var g=function(){if(!r){r=tE();for(var t=0;t=y||!tM(v.bb,w.boundingBox()))&&!(v=function(e){var t=(e=e||{}).after;g();var i=Math.ceil(r.w*u),o=Math.ceil(r.h*u);if(i>32767||o>32767||i*o>16e6)return null;var s=a.makeLayer(r,n);if(null!=t){var l=c.indexOf(t)+1;c.splice(l,0,s)}else(void 0===e.insert||e.insert)&&c.unshift(s);return s}({insert:!0,after:v})))return null;i||b?a.queueLayer(v,w):a.drawEleInLayer(v,w,n,t),v.eles.push(w),T[n]=v}return i||(b?null:c)},uo.getEleLevelForLayerLevel=function(e,t){return e},uo.drawEleInLayer=function(e,t,n,r){var i=this.renderer,a=e.context,o=t.boundingBox();0!==o.w&&0!==o.h&&t.visible()&&(n=this.getEleLevelForLayerLevel(n,r),i.setImgSmoothing(a,!1),i.drawCachedElement(a,t,null,null,n,!0),i.setImgSmoothing(a,!0))},uo.levelIsComplete=function(e,t){var n=this.layersByLevel[e];if(!n||0===n.length)return!1;for(var r=0,i=0;i0||a.invalid)return!1;r+=a.eles.length}return r===t.length},uo.validateLayersElesOrdering=function(e,t){var n=this.layersByLevel[e];if(n)for(var r=0;r0){e=!0;break}}return e},uo.invalidateElements=function(e){var t=this;0!==e.length&&(t.lastInvalidationTime=ey(),0!==e.length&&t.haveLayers()&&t.updateElementsInLayers(e,function(e,n,r){t.invalidateLayer(e)}))},uo.invalidateLayer=function(e){if(this.lastInvalidationTime=ey(),!e.invalid){var t=e.level,n=e.eles;eW(this.layersByLevel[t],e),e.elesQueue=[],e.invalid=!0,e.replacement&&(e.replacement.invalid=!0);for(var r=0;r3)||void 0===arguments[3]||arguments[3],a=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=!(arguments.length>5)||void 0===arguments[5]||arguments[5],s=this,l=t._private.rscratch;if((!o||t.visible())&&!(l.badLine||null==l.allpts||isNaN(l.allpts[0]))){n&&(r=n,e.translate(-r.x1,-r.y1));var u=o?t.pstyle("opacity").value:1,c=o?t.pstyle("line-opacity").value:1,d=t.pstyle("curve-style").value,h=t.pstyle("line-style").value,f=t.pstyle("width").pfValue,p=t.pstyle("line-cap").value,g=t.pstyle("line-outline-width").value,v=t.pstyle("line-outline-color").value,y=u*c,b=u*c,x=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y;"straight-triangle"===d?(s.eleStrokeStyle(e,t,n),s.drawEdgeTrianglePath(t,e,l.allpts)):(e.lineWidth=f,e.lineCap=p,s.eleStrokeStyle(e,t,n),s.drawEdgePath(t,e,l.allpts,h),e.lineCap="butt")},w=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b;s.drawArrowheads(e,t,n)};if(e.lineJoin="round","yes"===t.pstyle("ghost").value){var E=t.pstyle("ghost-offset-x").pfValue,T=t.pstyle("ghost-offset-y").pfValue,C=y*t.pstyle("ghost-opacity").value;e.translate(E,T),x(C),w(C),e.translate(-E,-T)}else!function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y;if(e.lineWidth=f+g,e.lineCap=p,g>0)s.colorStrokeStyle(e,v[0],v[1],v[2],n);else{e.lineCap="butt";return}"straight-triangle"===d?s.drawEdgeTrianglePath(t,e,l.allpts):(s.drawEdgePath(t,e,l.allpts,h),e.lineCap="butt")}();a&&s.drawEdgeUnderlay(e,t),x(),w(),a&&s.drawEdgeOverlay(e,t),s.drawElementText(e,t,null,i),n&&e.translate(r.x1,r.y1)}};var uE=function(e){if(!["overlay","underlay"].includes(e))throw Error("Invalid state");return function(t,n){if(n.visible()){var r=n.pstyle("".concat(e,"-opacity")).value;if(0!==r){var i=this.usePaths(),a=n._private.rscratch,o=n.pstyle("".concat(e,"-padding")).pfValue,s=n.pstyle("".concat(e,"-color")).value;t.lineWidth=2*o,"self"!==a.edgeType||i?t.lineCap="round":t.lineCap="butt",this.colorStrokeStyle(t,s[0],s[1],s[2],r),this.drawEdgePath(n,t,a.allpts,"solid")}}}};uw.drawEdgeOverlay=uE("overlay"),uw.drawEdgeUnderlay=uE("underlay"),uw.drawEdgePath=function(e,t,n,r){var i=e._private.rscratch,a=t,s=!1,l=this.usePaths(),u=e.pstyle("line-dash-pattern").pfValue,c=e.pstyle("line-dash-offset").pfValue;if(l){var d=n.join("$");i.pathCacheKey&&i.pathCacheKey===d?(p=t=i.pathCache,s=!0):(p=t=new Path2D,i.pathCacheKey=d,i.pathCache=p)}if(a.setLineDash)switch(r){case"dotted":a.setLineDash([1,1]);break;case"dashed":a.setLineDash(u),a.lineDashOffset=c;break;case"solid":a.setLineDash([])}if(!s&&!i.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(n[0],n[1]),i.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var h=2;h+35&&void 0!==arguments[5]?arguments[5]:5,o=Math.min(a,r/2,i/2);e.beginPath(),e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.quadraticCurveTo(t+r,n,t+r,n+o),e.lineTo(t+r,n+i-o),e.quadraticCurveTo(t+r,n+i,t+r-o,n+i),e.lineTo(t+o,n+i),e.quadraticCurveTo(t,n+i,t,n+i-o),e.lineTo(t,n+o),e.quadraticCurveTo(t,n,t+o,n),e.closePath()}uC.eleTextBiggerThanMin=function(e,t){return t||(t=Math.pow(2,Math.ceil(tf(e.cy().zoom()*this.getPixelRatio())))),!(e.pstyle("font-size").pfValue*t5)||void 0===arguments[5]||arguments[5];if(null==r){if(o&&!this.eleTextBiggerThanMin(t))return}else if(!1===r)return;if(t.isNode()){var s=t.pstyle("label");if(!s||!s.value)return;var l=this.getLabelJustification(t),u="glyph"===t.pstyle("text-metrics").strValue;e.textAlign=l,e.textBaseline=u?"alphabetic":"bottom"}else{var c=t.element()._private.rscratch.badLine,d=t.pstyle("label"),h=t.pstyle("source-label"),f=t.pstyle("target-label");if(c||(!d||!d.value)&&(!h||!h.value)&&(!f||!f.value))return;e.textAlign="center",e.textBaseline="bottom"}var p=!n;n&&(a=n,e.translate(-a.x1,-a.y1)),null==i?(this.drawText(e,t,null,p,o),t.isEdge()&&(this.drawText(e,t,"source",p,o),this.drawText(e,t,"target",p,o))):this.drawText(e,t,i,p,o),n&&e.translate(a.x1,a.y1)},uC.getFontCache=function(e){var t;this.fontCaches=this.fontCaches||[];for(var n=0;n2)||void 0===arguments[2]||arguments[2],r=t.pstyle("font-style").strValue,i=t.pstyle("font-size").pfValue+"px",a=t.pstyle("font-family").strValue,o=t.pstyle("font-weight").strValue,s=n?t.effectiveOpacity()*t.pstyle("text-opacity").value:1,l=t.pstyle("text-outline-opacity").value*s,u=t.pstyle("color").value,c=t.pstyle("text-outline-color").value;e.font=r+" "+o+" "+i+" "+a,e.lineJoin="round",this.colorFillStyle(e,u[0],u[1],u[2],s),this.colorStrokeStyle(e,c[0],c[1],c[2],l)},uC.getTextAngle=function(e,t){var n,r=e._private.rscratch,i=t?t+"-":"",a=e.pstyle(i+"text-rotation");if("autorotate"===a.strValue){var o=eH(r,"labelAngle",t);n=e.isEdge()?o:0}else n="none"===a.strValue?0:a.pfValue;return n},uC.drawText=function(e,t,n){var r=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=!(arguments.length>4)||void 0===arguments[4]||arguments[4],a=t._private.rscratch,o=i?t.effectiveOpacity():1;if(!i||0!==o&&0!==t.pstyle("text-opacity").value){"main"===n&&(n=null);var s=eH(a,"labelX",n),l=eH(a,"labelY",n),u=this.getLabelText(t,n);if(null!=u&&""!==u&&!isNaN(s)&&!isNaN(l)){this.setupTextStyle(e,t,i);var c,d,h,f=n?n+"-":"",p=eH(a,"labelWidth",n),g=eH(a,"labelHeight",n),v=eH(a,"labelActualDescent",n),y=t.pstyle(f+"text-margin-x").pfValue,b=t.pstyle(f+"text-margin-y").pfValue,x=t.isEdge(),w=t.pstyle("text-halign").value,E=t.pstyle("text-valign").value;x&&(w="center",E="center"),s+=y,l+=b,0!==(h=r?this.getTextAngle(t,n):0)&&(c=s,d=l,e.translate(c,d),e.rotate(h),s=0,l=0);var T=rJ(w),C=r0(E);switch(C){case"top":break;case"center":l+=g/2;break;case"bottom":l+=g}var k=t.pstyle("text-background-opacity").value,P=t.pstyle("text-border-opacity").value,S=t.pstyle("text-border-width").pfValue,B=t.pstyle("text-background-padding").pfValue,D=t.pstyle("text-background-shape").strValue,_="round-rectangle"===D||"roundrectangle"===D;if(k>0||S>0&&P>0){var A,M,R=e.fillStyle,I=e.strokeStyle,N=e.lineWidth,L=t.pstyle("text-background-color").value,O=t.pstyle("text-border-color").value,z=t.pstyle("text-border-style").value,V=k>0,F=S>0&&P>0,X=s-B;switch(T){case"left":X-=p;break;case"center":X-=p/2}var j=l-g-B,Y=p+2*B,q=g+2*B;if(V&&(e.fillStyle="rgba(".concat(L[0],",").concat(L[1],",").concat(L[2],",").concat(k*o,")")),F&&(e.strokeStyle="rgba(".concat(O[0],",").concat(O[1],",").concat(O[2],",").concat(P*o,")"),e.lineWidth=S,e.setLineDash))switch(z){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"double":e.lineWidth=S/4,e.setLineDash([]);break;default:e.setLineDash([])}if(_?(e.beginPath(),uk(e,X,j,Y,q,2)):"circle"===D?(e.beginPath(),A=X,M=Math.min(Y,q),e.beginPath(),e.arc(A+Y/2,j+q/2,M/2,0,2*Math.PI),e.closePath()):(e.beginPath(),e.rect(X,j,Y,q)),V&&e.fill(),F&&e.stroke(),F&&"double"===z){var W=S/2;e.beginPath(),_?uk(e,X+W,j+W,Y-2*W,q-2*W,2):e.rect(X+W,j+W,Y-2*W,q-2*W),e.stroke()}e.fillStyle=R,e.strokeStyle=I,e.lineWidth=N,e.setLineDash&&e.setLineDash([])}var U=2*t.pstyle("text-outline-width").pfValue;if(U>0&&(e.lineWidth=U),l-=v,"wrap"===t.pstyle("text-wrap").value){var G=eH(a,"labelWrapCachedLines",n),H=eH(a,"labelLineHeight",n),K=p/2,Z=this.getLabelJustification(t);switch("auto"===Z||("left"===T?"left"===Z?s+=-p:"center"===Z&&(s+=-K):"center"===T?"left"===Z?s+=-K:"right"===Z&&(s+=K):"right"===T&&("center"===Z?s+=K:"right"===Z&&(s+=p))),C){case"top":case"center":case"bottom":l-=(G.length-1)*H}for(var $=0;$0&&e.strokeText(G[$],s,l),e.fillText(G[$],s,l),l+=H}else U>0&&e.strokeText(u,s,l),e.fillText(u,s,l);0!==h&&(e.rotate(-h),e.translate(-c,-d))}}};var uP={};uP.drawNode=function(e,t,n){var r,i,a,o,s=!(arguments.length>3)||void 0===arguments[3]||arguments[3],l=!(arguments.length>4)||void 0===arguments[4]||arguments[4],u=!(arguments.length>5)||void 0===arguments[5]||arguments[5],c=this,d=t._private,h=d.rscratch,f=t.position();if(M(f.x)&&M(f.y)&&(!u||t.visible())){var p=u?t.effectiveOpacity():1,g=c.usePaths(),v=!1,y=t.padding();r=t.width()+2*y,i=t.height()+2*y,n&&(o=n,e.translate(-o.x1,-o.y1));for(var b=t.pstyle("background-image").value,x=Array(b.length),w=Array(b.length),E=0,T=0;T0&&void 0!==arguments[0]?arguments[0]:B;c.eleFillStyle(e,t,n)},W=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O;c.colorStrokeStyle(e,D[0],D[1],D[2],t)},U=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X;c.colorStrokeStyle(e,V[0],V[1],V[2],t)},G=function(e,t,n,r){var i,a=c.nodePathCache=c.nodePathCache||[],o=eS("polygon"===n?n+","+r.join(","):n,""+t,""+e,""+Y),s=a[o],l=!1;return null!=s?(l=!0,h.pathCache=i=s):(i=new Path2D,a[o]=h.pathCache=i),{path:i,cacheHit:l}},H=t.pstyle("shape").strValue,K=t.pstyle("shape-polygon-points").pfValue;if(g){e.translate(f.x,f.y);var Z=G(r,i,H,K);a=Z.path,v=Z.cacheHit}var $=function(){if(!v){var n=f;g&&(n={x:0,y:0}),c.nodeShapes[c.getNodeShape(t)].draw(a||e,n.x,n.y,r,i,Y,h)}g?e.fill(a):e.fill()},Q=function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,r=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=d.backgrounding,a=0,o=0;o0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;c.hasPie(t)&&(c.drawPie(e,t,a),n&&!g&&c.nodeShapes[c.getNodeShape(t)].draw(e,f.x,f.y,r,i,Y,h))},ee=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;c.hasStripe(t)&&(e.save(),g?e.clip(h.pathCache):(c.nodeShapes[c.getNodeShape(t)].draw(e,f.x,f.y,r,i,Y,h),e.clip()),c.drawStripe(e,t,a),e.restore(),n&&!g&&c.nodeShapes[c.getNodeShape(t)].draw(e,f.x,f.y,r,i,Y,h))},et=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,n=P>0?0:255;0!==P&&(c.colorFillStyle(e,n,n,n,(P>0?P:-P)*t),g?e.fill(a):e.fill())},en=function(){if(S>0){if(e.lineWidth=S,e.lineCap=R,e.lineJoin=A,e.setLineDash)switch(_){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash(N),e.lineDashOffset=L;break;case"solid":case"double":e.setLineDash([])}if("center"!==I){if(e.save(),e.lineWidth*=2,"inside"===I)g?e.clip(a):e.clip();else{var t=new Path2D;t.rect(-r/2-S,-i/2-S,r+2*S,i+2*S),t.addPath(a),e.clip(t,"evenodd")}g?e.stroke(a):e.stroke(),e.restore()}else g?e.stroke(a):e.stroke();if("double"===_){e.lineWidth=S/3;var n=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",g?e.stroke(a):e.stroke(),e.globalCompositeOperation=n}e.setLineDash&&e.setLineDash([])}},er=function(){if(z>0){if(e.lineWidth=z,e.lineCap="butt",e.setLineDash)switch(F){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"solid":case"double":e.setLineDash([])}var n=f;g&&(n={x:0,y:0});var a=c.getNodeShape(t),o=S;"inside"===I&&(o=0),"outside"===I&&(o*=2);var s=(r+o+(z+j))/r,l=(i+o+(z+j))/i,u=r*s,d=i*l,h=c.nodeShapes[a].points;if(g&&(k=G(u,d,a,h).path),"ellipse"===a)c.drawEllipsePath(k||e,n.x,n.y,u,d);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(a)){var p=0,v=0,y=0;"round-diamond"===a?p=(o+j+z)*1.4:"round-heptagon"===a?(p=(o+j+z)*1.075,y=-(o/2+j+z)/35):"round-hexagon"===a?p=(o+j+z)*1.12:"round-pentagon"===a?(p=(o+j+z)*1.13,y=-(o/2+j+z)/15):"round-tag"===a?(p=(o+j+z)*1.12,v=(o/2+z+j)*.07):"round-triangle"===a&&(p=Math.PI/2*(o+j+z),y=-(o+j/2+z)/Math.PI),0!==p&&(s=(r+p)/r,u=r*s,["round-hexagon","round-tag"].includes(a)||(l=(i+p)/i,d=i*l)),Y="auto"===Y?t4(u,d):Y;for(var b=u/2,x=d/2,w=Y+(o+z+j)/2,E=Array(h.length/2),T=Array(h.length/2),C=0;C0){if(r=r||n.position(),null==i||null==a){var d=n.padding();i=n.width()+2*d,a=n.height()+2*d}this.colorFillStyle(t,l[0],l[1],l[2],s),this.nodeShapes[u].draw(t,r.x,r.y,i+2*o,a+2*o,c),t.fill()}}}};uP.drawNodeOverlay=uS("overlay"),uP.drawNodeUnderlay=uS("underlay"),uP.hasPie=function(e){return(e=e[0])._private.hasPie},uP.hasStripe=function(e){return(e=e[0])._private.hasStripe},uP.drawPie=function(e,t,n,r){t=t[0],r=r||t.position();var i,a=t.cy().style(),o=t.pstyle("pie-size"),s=t.pstyle("pie-hole"),l=t.pstyle("pie-start-angle").pfValue,u=r.x,c=r.y,d=Math.min(t.width(),t.height())/2,h=0;if(this.usePaths()&&(u=0,c=0),"%"===o.units?d*=o.pfValue:void 0!==o.pfValue&&(d=o.pfValue/2),"%"===s.units?i=d*s.pfValue:void 0!==s.pfValue&&(i=s.pfValue/2),!(i>=d))for(var f=1;f<=a.pieBackgroundN;f++){var p=t.pstyle("pie-"+f+"-background-size").value,g=t.pstyle("pie-"+f+"-background-color").value,v=t.pstyle("pie-"+f+"-background-opacity").value*n,y=p/100;y+h>1&&(y=1-h);var b=1.5*Math.PI+2*Math.PI*h,x=2*Math.PI*y,w=(b+=l)+x;0===p||h>=1||h+y>1||(0===i?(e.beginPath(),e.moveTo(u,c),e.arc(u,c,d,b,w)):(e.beginPath(),e.arc(u,c,d,b,w),e.arc(u,c,i,w,b,!0)),e.closePath(),this.colorFillStyle(e,g[0],g[1],g[2],v),e.fill(),h+=y)}},uP.drawStripe=function(e,t,n,r){t=t[0],r=r||t.position();var i=t.cy().style(),a=r.x,o=r.y,s=t.width(),l=t.height(),u=0,c=this.usePaths();e.save();var d=t.pstyle("stripe-direction").value,h=t.pstyle("stripe-size");switch(d){case"vertical":break;case"righward":e.rotate(-Math.PI/2)}var f=s,p=l;"%"===h.units?(f*=h.pfValue,p*=h.pfValue):void 0!==h.pfValue&&(f=h.pfValue,p=h.pfValue),c&&(a=0,o=0),o-=f/2,a-=p/2;for(var g=1;g<=i.stripeBackgroundN;g++){var v=t.pstyle("stripe-"+g+"-background-size").value,y=t.pstyle("stripe-"+g+"-background-color").value,b=t.pstyle("stripe-"+g+"-background-opacity").value*n,x=v/100;x+u>1&&(x=1-u),0===v||u>=1||u+x>1||(e.beginPath(),e.rect(a,o+p*u,f,p*x),e.closePath(),this.colorFillStyle(e,y[0],y[1],y[2],b),e.fill(),u+=x)}e.restore()};var uB={};function uD(e,t,n){var r=e.createShader(t);if(e.shaderSource(r,n),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS))throw Error(e.getShaderInfoLog(r));return r}function u_(e,t,n){void 0===n&&(n=t);var r=e.makeOffscreenCanvas(t,n),i=r.context=r.getContext("2d");return r.clear=function(){return i.clearRect(0,0,r.width,r.height)},r.clear(),r}function uA(e){var t=e.pixelRatio,n=e.cy.zoom(),r=e.cy.pan();return{zoom:n*t,pan:{x:r.x*t,y:r.y*t}}}function uM(e,t){return!!t.picking||"solid"===e.pstyle("background-fill").value&&"none"===e.pstyle("background-image").strValue&&(0===e.pstyle("border-width").value||0===e.pstyle("border-opacity").value||"solid"===e.pstyle("border-style").value)}function uR(e,t,n){var r=e[0]/255,i=e[1]/255,a=e[2]/255,o=n||[,,,,];return o[0]=r*t,o[1]=i*t,o[2]=a*t,o[3]=t,o}function uI(e,t){var n=t||[,,,,];return n[0]=((0|e)&255)/255,n[1]=(e>>8&255)/255,n[2]=(e>>16&255)/255,n[3]=(e>>24&255)/255,n}function uN(e,t){switch(t){case"float":return[1,e.FLOAT,4];case"vec2":return[2,e.FLOAT,4];case"vec3":return[3,e.FLOAT,4];case"vec4":return[4,e.FLOAT,4];case"int":return[1,e.INT,4];case"ivec2":return[2,e.INT,4]}}function uL(e,t,n){switch(t){case e.FLOAT:return new Float32Array(n);case e.INT:return new Int32Array(n)}}function uO(e,t,n,r){var i=l(uN(e,n),3),a=i[0],o=i[1],s=i[2],u=uL(e,o,t*a),c=a*s,d=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,d),e.bufferData(e.ARRAY_BUFFER,t*c,e.DYNAMIC_DRAW),e.enableVertexAttribArray(r),o===e.FLOAT?e.vertexAttribPointer(r,a,o,!1,c,0):o===e.INT&&e.vertexAttribIPointer(r,a,o,c,0),e.vertexAttribDivisor(r,1),e.bindBuffer(e.ARRAY_BUFFER,null);for(var h=Array(t),f=0;ft.minMbLowQualFrames&&(t.motionBlurPxRatio=t.mbPxRBlurry)),t.clearingMotionBlur&&(t.motionBlurPxRatio=1),t.textureDrawLastFrame&&!d&&(c[t.NODE]=!0,c[t.SELECT_BOX]=!0);var b=n.style(),x=n.zoom(),w=void 0!==o?o:x,E=n.pan(),T={x:E.x,y:E.y},C={zoom:x,pan:{x:E.x,y:E.y}},k=t.prevViewport;void 0===k||C.zoom!==k.zoom||C.pan.x!==k.pan.x||C.pan.y!==k.pan.y||g&&!p||(t.motionBlurPxRatio=1),s&&(T=s),w*=l,T.x*=l,T.y*=l;var P=t.getCachedZSortedEles();function S(e,n,r,i,a){var o=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",t.colorFillStyle(e,255,255,255,t.motionBlurTransparency),e.fillRect(n,r,i,a),e.globalCompositeOperation=o}function B(e,n){var a,l,c,d;t.clearingMotionBlur||e!==u.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]&&e!==u.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG]?(a=T,l=w,c=t.canvasWidth,d=t.canvasHeight):(a={x:E.x*f,y:E.y*f},l=x*f,c=t.canvasWidth*f,d=t.canvasHeight*f),e.setTransform(1,0,0,1,0,0),"motionBlur"===n?S(e,0,0,c,d):!r&&(void 0===n||n)&&e.clearRect(0,0,c,d),i||(e.translate(a.x,a.y),e.scale(l,l)),s&&e.translate(s.x,s.y),o&&e.scale(o,o)}if(d||(t.textureDrawLastFrame=!1),d){if(t.textureDrawLastFrame=!0,!t.textureCache){t.textureCache={},t.textureCache.bb=n.mutableElements().boundingBox(),t.textureCache.texture=t.data.bufferCanvases[t.TEXTURE_BUFFER];var D=t.data.bufferContexts[t.TEXTURE_BUFFER];D.setTransform(1,0,0,1,0,0),D.clearRect(0,0,t.canvasWidth*t.textureMult,t.canvasHeight*t.textureMult),t.render({forcedContext:D,drawOnlyNodeLayer:!0,forcedPxRatio:l*t.textureMult});var C=t.textureCache.viewport={zoom:n.zoom(),pan:n.pan(),width:t.canvasWidth,height:t.canvasHeight};C.mpan={x:(0-C.pan.x)/C.zoom,y:(0-C.pan.y)/C.zoom}}c[t.DRAG]=!1,c[t.NODE]=!1;var _=u.contexts[t.NODE],A=t.textureCache.texture,C=t.textureCache.viewport;_.setTransform(1,0,0,1,0,0),h?S(_,0,0,C.width,C.height):_.clearRect(0,0,C.width,C.height);var M=b.core("outside-texture-bg-color").value,R=b.core("outside-texture-bg-opacity").value;t.colorFillStyle(_,M[0],M[1],M[2],R),_.fillRect(0,0,C.width,C.height);var x=n.zoom();B(_,!1),_.clearRect(C.mpan.x,C.mpan.y,C.width/C.zoom/l,C.height/C.zoom/l),_.drawImage(A,C.mpan.x,C.mpan.y,C.width/C.zoom/l,C.height/C.zoom/l)}else t.textureOnViewport&&!r&&(t.textureCache=null);var I=n.extent(),N=t.pinching||t.hoverData.dragging||t.swipePanning||t.data.wheelZooming||t.hoverData.draggingEles||t.cy.animated(),L=t.hideEdgesOnViewport&&N,O=[];if(O[t.NODE]=!c[t.NODE]&&h&&!t.clearedForMotionBlur[t.NODE]||t.clearingMotionBlur,O[t.NODE]&&(t.clearedForMotionBlur[t.NODE]=!0),O[t.DRAG]=!c[t.DRAG]&&h&&!t.clearedForMotionBlur[t.DRAG]||t.clearingMotionBlur,O[t.DRAG]&&(t.clearedForMotionBlur[t.DRAG]=!0),c[t.NODE]||i||a||O[t.NODE]){var z=h&&!O[t.NODE]&&1!==f,_=r||(z?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]:u.contexts[t.NODE]);B(_,h&&!z?"motionBlur":void 0),L?t.drawCachedNodes(_,P.nondrag,l,I):t.drawLayeredElements(_,P.nondrag,l,I),t.debug&&t.drawDebugPoints(_,P.nondrag),i||h||(c[t.NODE]=!1)}if(!a&&(c[t.DRAG]||i||O[t.DRAG])){var z=h&&!O[t.DRAG]&&1!==f,_=r||(z?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG]:u.contexts[t.DRAG]);B(_,h&&!z?"motionBlur":void 0),L?t.drawCachedNodes(_,P.drag,l,I):t.drawCachedElements(_,P.drag,l,I),t.debug&&t.drawDebugPoints(_,P.drag),i||h||(c[t.DRAG]=!1)}if(this.drawSelectionRectangle(e,B),h&&1!==f){var V=u.contexts[t.NODE],F=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE],X=u.contexts[t.DRAG],j=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG],Y=function(e,n,r){e.setTransform(1,0,0,1,0,0),r||!y?e.clearRect(0,0,t.canvasWidth,t.canvasHeight):S(e,0,0,t.canvasWidth,t.canvasHeight),e.drawImage(n,0,0,t.canvasWidth*f,t.canvasHeight*f,0,0,t.canvasWidth,t.canvasHeight)};(c[t.NODE]||O[t.NODE])&&(Y(V,F,O[t.NODE]),c[t.NODE]=!1),(c[t.DRAG]||O[t.DRAG])&&(Y(X,j,O[t.DRAG]),c[t.DRAG]=!1)}t.prevViewport=C,t.clearingMotionBlur&&(t.clearingMotionBlur=!1,t.motionBlurCleared=!0,t.motionBlur=!0),h&&(t.motionBlurTimeout=setTimeout(function(){t.motionBlurTimeout=null,t.clearedForMotionBlur[t.NODE]=!1,t.clearedForMotionBlur[t.DRAG]=!1,t.motionBlur=!1,t.clearingMotionBlur=!d,t.mbFrames=0,c[t.NODE]=!0,c[t.DRAG]=!0,t.redraw()},100)),r||n.emit("render")},uB.drawSelectionRectangle=function(e,t){var n=this.cy,r=this.data,i=n.style(),a=e.drawOnlyNodeLayer,o=e.drawAllLayers,s=r.canvasNeedsRedraw,l=e.forcedContext;if(this.showFps||!a&&s[this.SELECT_BOX]&&!o){var u=l||r.contexts[this.SELECT_BOX];if(t(u),1==this.selection[4]&&(this.hoverData.selecting||this.touchData.selecting)){var c=this.cy.zoom(),d=i.core("selection-box-border-width").value/c;u.lineWidth=d,u.fillStyle="rgba("+i.core("selection-box-color").value[0]+","+i.core("selection-box-color").value[1]+","+i.core("selection-box-color").value[2]+","+i.core("selection-box-opacity").value+")",u.fillRect(this.selection[0],this.selection[1],this.selection[2]-this.selection[0],this.selection[3]-this.selection[1]),d>0&&(u.strokeStyle="rgba("+i.core("selection-box-border-color").value[0]+","+i.core("selection-box-border-color").value[1]+","+i.core("selection-box-border-color").value[2]+","+i.core("selection-box-opacity").value+")",u.strokeRect(this.selection[0],this.selection[1],this.selection[2]-this.selection[0],this.selection[3]-this.selection[1]))}if(r.bgActivePosistion&&!this.hoverData.selecting){var c=this.cy.zoom(),h=r.bgActivePosistion;u.fillStyle="rgba("+i.core("active-bg-color").value[0]+","+i.core("active-bg-color").value[1]+","+i.core("active-bg-color").value[2]+","+i.core("active-bg-opacity").value+")",u.beginPath(),u.arc(h.x,h.y,i.core("active-bg-size").pfValue/c,0,2*Math.PI),u.fill()}var f=this.lastRedrawTime;if(this.showFps&&f){var p=Math.round(1e3/(f=Math.round(f))),g="1 frame = "+f+" ms = "+p+" fps";u.setTransform(1,0,0,1,0,0),u.fillStyle="rgba(255, 0, 0, 0.75)",u.strokeStyle="rgba(255, 0, 0, 0.75)",u.font="30px Arial",x||(x=u.measureText(g).actualBoundingBoxAscent),u.fillText(g,0,x),u.strokeRect(0,x+10,250,20),u.fillRect(0,x+10,250*Math.min(p/60,1),20)}o||(s[this.SELECT_BOX]=!1)}};var uz="undefined"!=typeof Float32Array?Float32Array:Array;function uV(){var e=new uz(9);return uz!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function uF(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function uX(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],d=t[8],h=n[0],f=n[1];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e[6]=h*r+f*o+u,e[7]=h*i+f*s+c,e[8]=h*a+f*l+d,e}function uj(e,t,n){var r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],d=t[8],h=Math.sin(n),f=Math.cos(n);return e[0]=f*r+h*o,e[1]=f*i+h*s,e[2]=f*a+h*l,e[3]=f*o-h*r,e[4]=f*s-h*i,e[5]=f*l-h*a,e[6]=u,e[7]=c,e[8]=d,e}function uY(e,t,n){var r=n[0],i=n[1];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=i*t[3],e[4]=i*t[4],e[5]=i*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});var uq=a(function e(t,n,r,a){i(this,e),this.debugID=Math.floor(1e4*Math.random()),this.r=t,this.texSize=n,this.texRows=r,this.texHeight=Math.floor(n/r),this.enableWrapping=!0,this.locked=!1,this.texture=null,this.needsBuffer=!0,this.freePointer={x:0,row:0},this.keyToLocation=new Map,this.canvas=a(t,n,n),this.scratch=a(t,n,this.texHeight,"scratch")},[{key:"lock",value:function(){this.locked=!0}},{key:"getKeys",value:function(){return new Set(this.keyToLocation.keys())}},{key:"getScale",value:function(e){var t=e.w,n=e.h,r=this.texHeight,i=this.texSize,a=r/n,o=t*a,s=n*a;return o>i&&(a=i/t,o=t*a,s=n*a),{scale:a,texW:o,texH:s}}},{key:"draw",value:function(e,t,n){var r,i,a,o,s,l,u,c=this;if(this.locked)throw Error("can't draw, atlas is locked");var d=this.texSize,h=this.texRows,f=this.texHeight,p=this.getScale(t),g=p.scale,v=p.texW,y=p.texH,b=function(e,r){if(n&&r){var i=r.context,a=e.x,o=f*e.row;i.save(),i.translate(a,o),i.scale(g,g),n(i,t),i.restore()}},x=[null,null],w=function(){b(c.freePointer,c.canvas),x[0]={x:c.freePointer.x,y:c.freePointer.row*f,w:v,h:y},x[1]={x:c.freePointer.x+v,y:c.freePointer.row*f,w:0,h:y},c.freePointer.x+=v,c.freePointer.x==d&&(c.freePointer.x=0,c.freePointer.row++)},E=function(){c.freePointer.x=0,c.freePointer.row++};if(this.freePointer.x+v<=d)w();else{if(this.freePointer.row>=h-1)return!1;this.freePointer.x===d?(E(),w()):this.enableWrapping?(r=c.scratch,i=c.canvas,r.clear(),b({x:0,row:0},r),o=v-(a=d-c.freePointer.x),s=c.freePointer.x,l=c.freePointer.row*f,i.context.drawImage(r,0,0,a,f,s,l,a,f),x[0]={x:s,y:l,w:a,h:y},u=(c.freePointer.row+1)*f,i&&i.context.drawImage(r,a,0,o,f,0,u,o,f),x[1]={x:0,y:u,w:o,h:y},c.freePointer.x=o,c.freePointer.row++):(E(),w())}return this.keyToLocation.set(e,x),this.needsBuffer=!0,x}},{key:"getOffsets",value:function(e){return this.keyToLocation.get(e)}},{key:"isEmpty",value:function(){return 0===this.freePointer.x&&0===this.freePointer.row}},{key:"canFit",value:function(e){if(this.locked)return!1;var t=this.texSize,n=this.texRows,r=this.getScale(e).texW;return!(this.freePointer.x+r>t)||this.freePointer.row1&&void 0!==arguments[1]?arguments[1]:{},i=r.forceRedraw,a=void 0!==i&&i,s=r.filterEle,l=void 0===s?function(){return!0}:s,u=r.filterType,c=void 0===u?function(){return!0}:u,d=!1,h=!1,f=o(e);try{for(f.s();!(t=f.n()).done;){var p=t.value;if(l(p)){var g,v=o(this.renderTypes.values());try{for(v.s();!(g=v.n()).done;)!function(){var e=g.value,t=e.type;if(c(t)){var r=n.collections.get(e.collection),i=e.getKey(p),o=Array.isArray(i)?i:[i];if(a)o.forEach(function(e){return r.markKeyForGC(e)}),h=!0;else{var s=e.getID?e.getID(p):p.id(),l=n._key(t,s),u=n.typeAndIdToKey.get(l);void 0!==u&&!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.type,r=this.atlasManager;return n?r.invalidate(e,{filterType:function(e){return e===n},forceRedraw:!0}):r.invalidate(e)}},{key:"gc",value:function(){this.atlasManager.gc()}},{key:"_createShaderProgram",value:function(e){var t=this.gl,n="#version 300 es\n precision highp float;\n\n uniform mat3 uPanZoomMatrix;\n uniform int uAtlasSize;\n \n // instanced\n in vec2 aPosition; // a vertex from the unit square\n \n in mat3 aTransform; // used to transform verticies, eg into a bounding box\n in int aVertType; // the type of thing we are rendering\n\n // the z-index that is output when using picking mode\n in vec4 aIndex;\n \n // For textures\n in int aAtlasId; // which shader unit/atlas to use\n in vec4 aTex; // x/y/w/h of texture in atlas\n\n // for edges\n in vec4 aPointAPointB;\n in vec4 aPointCPointD;\n in vec2 aLineWidth; // also used for node border width\n\n // simple shapes\n in vec4 aCornerRadius; // for round-rectangle [top-right, bottom-right, top-left, bottom-left]\n in vec4 aColor; // also used for edges\n in vec4 aBorderColor; // aLineWidth is used for border width\n\n // output values passed to the fragment shader\n out vec2 vTexCoord;\n out vec4 vColor;\n out vec2 vPosition;\n // flat values are not interpolated\n flat out int vAtlasId; \n flat out int vVertType;\n flat out vec2 vTopRight;\n flat out vec2 vBotLeft;\n flat out vec4 vCornerRadius;\n flat out vec4 vBorderColor;\n flat out vec2 vBorderWidth;\n flat out vec4 vIndex;\n \n void main(void) {\n int vid = gl_VertexID;\n vec2 position = aPosition; // TODO make this a vec3, simplifies some code below\n\n if(aVertType == ".concat(0,") {\n float texX = aTex.x; // texture coordinates\n float texY = aTex.y;\n float texW = aTex.z;\n float texH = aTex.w;\n\n if(vid == 1 || vid == 2 || vid == 4) {\n texX += texW;\n }\n if(vid == 2 || vid == 4 || vid == 5) {\n texY += texH;\n }\n\n float d = float(uAtlasSize);\n vTexCoord = vec2(texX / d, texY / d); // tex coords must be between 0 and 1\n\n gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);\n }\n else if(aVertType == ").concat(4," || aVertType == ").concat(7," \n || aVertType == ").concat(5," || aVertType == ").concat(6,") { // simple shapes\n\n // the bounding box is needed by the fragment shader\n vBotLeft = (aTransform * vec3(0, 0, 1)).xy; // flat\n vTopRight = (aTransform * vec3(1, 1, 1)).xy; // flat\n vPosition = (aTransform * vec3(position, 1)).xy; // will be interpolated\n\n // calculations are done in the fragment shader, just pass these along\n vColor = aColor;\n vCornerRadius = aCornerRadius;\n vBorderColor = aBorderColor;\n vBorderWidth = aLineWidth;\n\n gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);\n }\n else if(aVertType == ").concat(1,") {\n vec2 source = aPointAPointB.xy;\n vec2 target = aPointAPointB.zw;\n\n // adjust the geometry so that the line is centered on the edge\n position.y = position.y - 0.5;\n\n // stretch the unit square into a long skinny rectangle\n vec2 xBasis = target - source;\n vec2 yBasis = normalize(vec2(-xBasis.y, xBasis.x));\n vec2 point = source + xBasis * position.x + yBasis * aLineWidth[0] * position.y;\n\n gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0);\n vColor = aColor;\n } \n else if(aVertType == ").concat(2,") {\n vec2 pointA = aPointAPointB.xy;\n vec2 pointB = aPointAPointB.zw;\n vec2 pointC = aPointCPointD.xy;\n vec2 pointD = aPointCPointD.zw;\n\n // adjust the geometry so that the line is centered on the edge\n position.y = position.y - 0.5;\n\n vec2 p0, p1, p2, pos;\n if(position.x == 0.0) { // The left side of the unit square\n p0 = pointA;\n p1 = pointB;\n p2 = pointC;\n pos = position;\n } else { // The right side of the unit square, use same approach but flip the geometry upside down\n p0 = pointD;\n p1 = pointC;\n p2 = pointB;\n pos = vec2(0.0, -position.y);\n }\n\n vec2 p01 = p1 - p0;\n vec2 p12 = p2 - p1;\n vec2 p21 = p1 - p2;\n\n // Find the normal vector.\n vec2 tangent = normalize(normalize(p12) + normalize(p01));\n vec2 normal = vec2(-tangent.y, tangent.x);\n\n // Find the vector perpendicular to p0 -> p1.\n vec2 p01Norm = normalize(vec2(-p01.y, p01.x));\n\n // Determine the bend direction.\n float sigma = sign(dot(p01 + p21, normal));\n float width = aLineWidth[0];\n\n if(sign(pos.y) == -sigma) {\n // This is an intersecting vertex. Adjust the position so that there's no overlap.\n vec2 point = 0.5 * width * normal * -sigma / dot(normal, p01Norm);\n gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0);\n } else {\n // This is a non-intersecting vertex. Treat it like a mitre join.\n vec2 point = 0.5 * width * normal * sigma * dot(normal, p01Norm);\n gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0);\n }\n\n vColor = aColor;\n } \n else if(aVertType == ").concat(3," && vid < 3) {\n // massage the first triangle into an edge arrow\n if(vid == 0)\n position = vec2(-0.15, -0.3);\n if(vid == 1)\n position = vec2( 0.0, 0.0);\n if(vid == 2)\n position = vec2( 0.15, -0.3);\n\n gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);\n vColor = aColor;\n }\n else {\n gl_Position = vec4(2.0, 0.0, 0.0, 1.0); // discard vertex by putting it outside webgl clip space\n }\n\n vAtlasId = aAtlasId;\n vVertType = aVertType;\n vIndex = aIndex;\n }\n "),r=this.batchManager.getIndexArray(),i=function(e,t,n){var r=uD(e,e.VERTEX_SHADER,t),i=uD(e,e.FRAGMENT_SHADER,n),a=e.createProgram();if(e.attachShader(a,r),e.attachShader(a,i),e.linkProgram(a),!e.getProgramParameter(a,e.LINK_STATUS))throw Error("Could not initialize shaders");return a}(t,n,"#version 300 es\n precision highp float;\n\n // declare texture unit for each texture atlas in the batch\n ".concat(r.map(function(e){return"uniform sampler2D uTexture".concat(e,";")}).join("\n "),"\n\n uniform vec4 uBGColor;\n uniform float uZoom;\n\n in vec2 vTexCoord;\n in vec4 vColor;\n in vec2 vPosition; // model coordinates\n\n flat in int vAtlasId;\n flat in vec4 vIndex;\n flat in int vVertType;\n flat in vec2 vTopRight;\n flat in vec2 vBotLeft;\n flat in vec4 vCornerRadius;\n flat in vec4 vBorderColor;\n flat in vec2 vBorderWidth;\n\n out vec4 outColor;\n\n ").concat("\n float circleSD(vec2 p, float r) {\n return distance(vec2(0), p) - r; // signed distance\n }\n","\n ").concat("\n float rectangleSD(vec2 p, vec2 b) {\n vec2 d = abs(p)-b;\n return distance(vec2(0),max(d,0.0)) + min(max(d.x,d.y),0.0);\n }\n","\n ").concat("\n float roundRectangleSD(vec2 p, vec2 b, vec4 cr) {\n cr.xy = (p.x > 0.0) ? cr.xy : cr.zw;\n cr.x = (p.y > 0.0) ? cr.x : cr.y;\n vec2 q = abs(p) - b + cr.x;\n return min(max(q.x, q.y), 0.0) + distance(vec2(0), max(q, 0.0)) - cr.x;\n }\n","\n ").concat("\n float ellipseSD(vec2 p, vec2 ab) {\n p = abs( p ); // symmetry\n\n // find root with Newton solver\n vec2 q = ab*(p-ab);\n float w = (q.x1.0) ? d : -d;\n }\n","\n\n vec4 blend(vec4 top, vec4 bot) { // blend colors with premultiplied alpha\n return vec4( \n top.rgb + (bot.rgb * (1.0 - top.a)),\n top.a + (bot.a * (1.0 - top.a)) \n );\n }\n\n vec4 distInterp(vec4 cA, vec4 cB, float d) { // interpolate color using Signed Distance\n // scale to the zoom level so that borders don't look blurry when zoomed in\n // note 1.5 is an aribitrary value chosen because it looks good\n return mix(cA, cB, 1.0 - smoothstep(0.0, 1.5 / uZoom, abs(d))); \n }\n\n void main(void) {\n if(vVertType == ").concat(0,") {\n // look up the texel from the texture unit\n ").concat(r.map(function(e){return"if(vAtlasId == ".concat(e,") outColor = texture(uTexture").concat(e,", vTexCoord);")}).join("\n else "),"\n } \n else if(vVertType == ").concat(3,") {\n // mimics how canvas renderer uses context.globalCompositeOperation = 'destination-out';\n outColor = blend(vColor, uBGColor);\n outColor.a = 1.0; // make opaque, masks out line under arrow\n }\n else if(vVertType == ").concat(4," && vBorderWidth == vec2(0.0)) { // simple rectangle with no border\n outColor = vColor; // unit square is already transformed to the rectangle, nothing else needs to be done\n }\n else if(vVertType == ").concat(4," || vVertType == ").concat(7," \n || vVertType == ").concat(5," || vVertType == ").concat(6,") { // use SDF\n\n float outerBorder = vBorderWidth[0];\n float innerBorder = vBorderWidth[1];\n float borderPadding = outerBorder * 2.0;\n float w = vTopRight.x - vBotLeft.x - borderPadding;\n float h = vTopRight.y - vBotLeft.y - borderPadding;\n vec2 b = vec2(w/2.0, h/2.0); // half width, half height\n vec2 p = vPosition - vec2(vTopRight.x - b[0] - outerBorder, vTopRight.y - b[1] - outerBorder); // translate to center\n\n float d; // signed distance\n if(vVertType == ").concat(4,") {\n d = rectangleSD(p, b);\n } else if(vVertType == ").concat(7," && w == h) {\n d = circleSD(p, b.x); // faster than ellipse\n } else if(vVertType == ").concat(7,") {\n d = ellipseSD(p, b);\n } else {\n d = roundRectangleSD(p, b, vCornerRadius.wzyx);\n }\n\n // use the distance to interpolate a color to smooth the edges of the shape, doesn't need multisampling\n // we must smooth colors inwards, because we can't change pixels outside the shape's bounding box\n if(d > 0.0) {\n if(d > outerBorder) {\n discard;\n } else {\n outColor = distInterp(vBorderColor, vec4(0), d - outerBorder);\n }\n } else {\n if(d > innerBorder) {\n vec4 outerColor = outerBorder == 0.0 ? vec4(0) : vBorderColor;\n vec4 innerBorderColor = blend(vBorderColor, vColor);\n outColor = distInterp(innerBorderColor, outerColor, d);\n } \n else {\n vec4 outerColor;\n if(innerBorder == 0.0 && outerBorder == 0.0) {\n outerColor = vec4(0);\n } else if(innerBorder == 0.0) {\n outerColor = vBorderColor;\n } else {\n outerColor = blend(vBorderColor, vColor);\n }\n outColor = distInterp(vColor, outerColor, d - innerBorder);\n }\n }\n }\n else {\n outColor = vColor;\n }\n\n ").concat(e.picking?"if(outColor.a == 0.0) discard;\n else outColor = vIndex;":"","\n }\n "));i.aPosition=t.getAttribLocation(i,"aPosition"),i.aIndex=t.getAttribLocation(i,"aIndex"),i.aVertType=t.getAttribLocation(i,"aVertType"),i.aTransform=t.getAttribLocation(i,"aTransform"),i.aAtlasId=t.getAttribLocation(i,"aAtlasId"),i.aTex=t.getAttribLocation(i,"aTex"),i.aPointAPointB=t.getAttribLocation(i,"aPointAPointB"),i.aPointCPointD=t.getAttribLocation(i,"aPointCPointD"),i.aLineWidth=t.getAttribLocation(i,"aLineWidth"),i.aColor=t.getAttribLocation(i,"aColor"),i.aCornerRadius=t.getAttribLocation(i,"aCornerRadius"),i.aBorderColor=t.getAttribLocation(i,"aBorderColor"),i.uPanZoomMatrix=t.getUniformLocation(i,"uPanZoomMatrix"),i.uAtlasSize=t.getUniformLocation(i,"uAtlasSize"),i.uBGColor=t.getUniformLocation(i,"uBGColor"),i.uZoom=t.getUniformLocation(i,"uZoom"),i.uTextures=[];for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:uH.SCREEN;this.panZoomMatrix=e,this.renderTarget=t,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()}},{key:"startBatch",value:function(){this.instanceCount=0,this.batchManager.startBatch()}},{key:"endFrame",value:function(){this.endBatch()}},{key:"_isVisible",value:function(e,t){return!!e.visible()&&(!t||!t.isVisible||t.isVisible(e))}},{key:"drawTexture",value:function(e,t,n){var r=this.atlasManager,i=this.batchManager,a=r.getRenderTypeOpts(n);if(this._isVisible(e,a)&&(!e.isEdge()||this._isValidEdge(e))){if(this.renderTarget.picking&&a.getTexPickingMode){var s=a.getTexPickingMode(e);if(s===uK.IGNORE)return;if(s==uK.USE_BB)return void this.drawPickingRectangle(e,t,n)}var u,c=o(r.getAtlasInfo(e,n));try{for(c.s();!(u=c.n()).done;){var d=u.value,h=d.atlas,f=d.tex1,p=d.tex2;i.canAddToCurrentBatch(h)||this.endBatch();for(var g=i.getAtlasIndexForBatch(h),v=0,y=[[f,!0],[p,!1]];v=this.maxInstances&&this.endBatch()}}}}catch(e){c.e(e)}finally{c.f()}}}},{key:"setTransformMatrix",value:function(e,t,n,r){var i=!(arguments.length>4)||void 0===arguments[4]||arguments[4],a=0;if(n.shapeProps&&n.shapeProps.padding&&(a=e.pstyle(n.shapeProps.padding).pfValue),r){var o=r.bb,s=r.tex1,l=r.tex2,u=s.w/(s.w+l.w);i||(u=1-u);var c=this._getAdjustedBB(o,a,i,u);this._applyTransformMatrix(t,c,n,e)}else{var d=n.getBoundingBox(e),h=this._getAdjustedBB(d,a,!0,1);this._applyTransformMatrix(t,h,n,e)}}},{key:"_applyTransformMatrix",value:function(e,t,n,r){uF(e);var i,a,o=n.getRotation?n.getRotation(r):0;if(0!==o){var s=n.getRotationPoint(r);uX(e,e,[s.x,s.y]),uj(e,e,o);var l=n.getRotationOffset(r);i=l.x+(t.xOffset||0),a=l.y+(t.yOffset||0)}else i=t.x1,a=t.y1;uX(e,e,[i,a]),uY(e,e,[t.w,t.h])}},{key:"_getAdjustedBB",value:function(e,t,n,r){var i=e.x1,a=e.y1,o=e.w,s=e.h,l=e.yOffset;t&&(i-=t,a-=t,o+=2*t,s+=2*t);var u=0,c=o*r;return n&&r<1?o=c:!n&&r<1&&(i+=u=o-c,o=c),{x1:i,y1:a,w:o,h:s,xOffset:u,yOffset:l}}},{key:"drawPickingRectangle",value:function(e,t,n){var r=this.atlasManager.getRenderTypeOpts(n),i=this.instanceCount;this.vertTypeBuffer.getView(i)[0]=4,uI(t,this.indexBuffer.getView(i)),uR([0,0,0],1,this.colorBuffer.getView(i));var a=this.transformBuffer.getMatrixView(i);this.setTransformMatrix(e,a,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:"drawNode",value:function(e,t,n){var r=this.simpleShapeOptions.get(n);if(this._isVisible(e,r)){var i=r.shapeProps,a=this._getVertTypeForShape(e,i.shape);if(void 0===a||r.isSimple&&!r.isSimple(e,this.renderTarget))return void this.drawTexture(e,t,n);var o=this.instanceCount;if(this.vertTypeBuffer.getView(o)[0]=a,5===a||6===a){var s=r.getBoundingBox(e),l=this._getCornerRadius(e,i.radius,s),u=this.cornerRadiusBuffer.getView(o);u[0]=l,u[1]=l,u[2]=l,u[3]=l,6===a&&(u[0]=0,u[2]=0)}uI(t,this.indexBuffer.getView(o));var c=this.renderTarget.picking?1:"node-body"===n?e.effectiveOpacity():1,d=this.renderTarget.picking?1:e.pstyle(i.opacity).value*c;uR(e.pstyle(i.color).value,d,this.colorBuffer.getView(o));var h=this.lineWidthBuffer.getView(o);if(h[0]=0,h[1]=0,i.border){var f=e.pstyle("border-width").value;if(f>0){uR(e.pstyle("border-color").value,c*e.pstyle("border-opacity").value,this.borderColorBuffer.getView(o));var p=e.pstyle("border-position").value;if("inside"===p)h[0]=0,h[1]=-f;else if("outside"===p)h[0]=f,h[1]=0;else{var g=f/2;h[0]=g,h[1]=-g}}}var v=this.transformBuffer.getMatrixView(o);this.setTransformMatrix(e,v,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}},{key:"_getVertTypeForShape",value:function(e,t){switch(e.pstyle(t).value){case"rectangle":return 4;case"ellipse":return 7;case"roundrectangle":case"round-rectangle":return 5;case"bottom-round-rectangle":return 6;default:return}}},{key:"_getCornerRadius",value:function(e,t,n){var r=n.w,i=n.h;return"auto"===e.pstyle(t).value?t3(r,i):Math.min(e.pstyle(t).pfValue,i/2,r/2)}},{key:"drawEdgeArrow",value:function(e,t,n){if(e.visible()){var r,i,a,o=e._private.rscratch;if(("source"===n?(r=o.arrowStartX,i=o.arrowStartY,a=o.srcArrowAngle):(r=o.arrowEndX,i=o.arrowEndY,a=o.tgtArrowAngle),!(isNaN(r)||null==r||isNaN(i)||null==i||isNaN(a))&&null!=a)&&"none"!==e.pstyle(n+"-arrow-shape").value){var s=e.pstyle(n+"-arrow-color").value,l=e.pstyle("opacity").value,u=e.pstyle("line-opacity").value,c=e.pstyle("width").pfValue,d=e.pstyle("arrow-scale").value,h=this.r.getArrowWidth(c,d),f=this.instanceCount,p=this.transformBuffer.getMatrixView(f);uF(p),uX(p,p,[r,i]),uY(p,p,[h,h]),uj(p,p,a),this.vertTypeBuffer.getView(f)[0]=3,uI(t,this.indexBuffer.getView(f)),uR(s,l*u,this.colorBuffer.getView(f)),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}},{key:"drawEdgeLine",value:function(e,t){if(e.visible()){var n=this._getEdgePoints(e);if(n){var r=e.pstyle("opacity").value,i=e.pstyle("line-opacity").value,a=e.pstyle("width").pfValue,o=e.pstyle("line-color").value,s=r*i;if(n.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),4==n.length){var l=this.instanceCount;this.vertTypeBuffer.getView(l)[0]=1,uI(t,this.indexBuffer.getView(l)),uR(o,s,this.colorBuffer.getView(l)),this.lineWidthBuffer.getView(l)[0]=a;var u=this.pointAPointBBuffer.getView(l);u[0]=n[0],u[1]=n[1],u[2]=n[2],u[3]=n[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var c=0;c=this.maxInstances&&this.endBatch()}}}}},{key:"_isValidEdge",value:function(e){var t=e._private.rscratch;return!(t.badLine||null==t.allpts||isNaN(t.allpts[0]))}},{key:"_getEdgePoints",value:function(e){var t=e._private.rscratch;if(this._isValidEdge(e)){var n=t.allpts;if(4==n.length)return n;var r=this._getNumSegments(e);return this._getCurveSegmentPoints(n,r)}}},{key:"_getNumSegments",value:function(e){return Math.min(15,this.maxInstances)}},{key:"_getCurveSegmentPoints",value:function(e,t){if(4==e.length)return e;for(var n=Array((t+1)*2),r=0;r<=t;r++)if(0==r)n[0]=e[0],n[1]=e[1];else if(r==t)n[2*r]=e[e.length-2],n[2*r+1]=e[e.length-1];else{var i=r/t;this._setCurvePoint(e,i,n,2*r)}return n}},{key:"_setCurvePoint",value:function(e,t,n,r){if(e.length<=2)n[r]=e[0],n[r+1]=e[1];else{for(var i=Array(e.length-2),a=0;a0}},y=function(e){return"yes"===e.pstyle("text-events").strValue?uK.USE_BB:uK.IGNORE},b=function(e){var t=e.position(),n=t.x,r=t.y,i=e.outerWidth(),a=e.outerHeight();return{w:i,h:a,x1:n-i/2,y1:r-a/2}};h.drawing.addAtlasCollection("node",{texRows:e.webglTexRowsNodes}),h.drawing.addAtlasCollection("label",{texRows:e.webglTexRows}),h.drawing.addTextureAtlasRenderType("node-body",{collection:"node",getKey:t.getStyleKey,getBoundingBox:t.getElementBox,drawElement:t.drawElement}),h.drawing.addSimpleShapeRenderType("node-body",{getBoundingBox:b,isSimple:uM,shapeProps:{shape:"shape",color:"background-color",opacity:"background-opacity",radius:"corner-radius",border:!0}}),h.drawing.addSimpleShapeRenderType("node-overlay",{getBoundingBox:b,isVisible:v("overlay"),shapeProps:{shape:"overlay-shape",color:"overlay-color",opacity:"overlay-opacity",padding:"overlay-padding",radius:"overlay-corner-radius"}}),h.drawing.addSimpleShapeRenderType("node-underlay",{getBoundingBox:b,isVisible:v("underlay"),shapeProps:{shape:"underlay-shape",color:"underlay-color",opacity:"underlay-opacity",padding:"underlay-padding",radius:"underlay-corner-radius"}}),h.drawing.addTextureAtlasRenderType("label",{collection:"label",getTexPickingMode:y,getKey:uJ(t.getLabelKey,null),getBoundingBox:u0(t.getLabelBox,null),drawClipped:!0,drawElement:t.drawLabel,getRotation:p(null),getRotationPoint:t.getLabelRotationPoint,getRotationOffset:t.getLabelRotationOffset,isVisible:g("label")}),h.drawing.addTextureAtlasRenderType("edge-source-label",{collection:"label",getTexPickingMode:y,getKey:uJ(t.getSourceLabelKey,"source"),getBoundingBox:u0(t.getSourceLabelBox,"source"),drawClipped:!0,drawElement:t.drawSourceLabel,getRotation:p("source"),getRotationPoint:t.getSourceLabelRotationPoint,getRotationOffset:t.getSourceLabelRotationOffset,isVisible:g("source-label")}),h.drawing.addTextureAtlasRenderType("edge-target-label",{collection:"label",getTexPickingMode:y,getKey:uJ(t.getTargetLabelKey,"target"),getBoundingBox:u0(t.getTargetLabelBox,"target"),drawClipped:!0,drawElement:t.drawTargetLabel,getRotation:p("target"),getRotationPoint:t.getTargetLabelRotationPoint,getRotationOffset:t.getTargetLabelRotationOffset,isVisible:g("target-label")});var x=eg(function(){console.log("garbage collect flag set"),h.data.gc=!0},1e4);h.onUpdateEleCalcs(function(e,t){var n=!1;t&&t.length>0&&(n|=h.drawing.invalidate(t)),n&&x()}),i=(r=h).render,r.render=function(e){e=e||{};var t,n,a,o,s=r.cy;r.webgl&&(s.zoom()>7.99?((n=(t=r).data.contexts[t.WEBGL]).clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT),i.call(r,e)):(a=r,(o=function(e){e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,a.canvasWidth,a.canvasHeight),e.restore()})(a.data.contexts[a.NODE]),o(a.data.contexts[a.DRAG]),u5(r,e,uH.SCREEN)))},a=r.matchCanvasSize,r.matchCanvasSize=function(e){a.call(r,e),r.pickingFrameBuffer.setFramebufferAttachmentSizes(r.canvasWidth,r.canvasHeight),r.pickingFrameBuffer.needsDraw=!0},r.findNearestElements=function(e,t,n,i){return function(e,t,n){var r,i,a,s=function(e,t,n,r,i){var a=uA(e),o=a.pan,s=a.zoom,u=l((v=t*s+o.x,y=n*s+o.y,[v,y=Math.round(e.canvasHeight-y)]),2),c=u[0],d=u[1],h=e.data.contexts[e.WEBGL];h.bindFramebuffer(h.FRAMEBUFFER,e.pickingFrameBuffer),e.pickingFrameBuffer.needsDraw&&(h.viewport(0,0,h.canvas.width,h.canvas.height),u5(e,null,uH.PICKING),e.pickingFrameBuffer.needsDraw=!1);var f=new Uint8Array(144);h.readPixels(c-3,d-3,6,6,h.RGBA,h.UNSIGNED_BYTE,f),h.bindFramebuffer(h.FRAMEBUFFER,null);for(var p=new Set,g=0;g<36;g++){var v,y,b,x=(b=f.slice(4*g,4*g+4))[0]+(b[1]<<8)+(b[2]<<16)+(b[3]<<24)-1;x>=0&&p.add(x)}return p}(e,t,n),u=e.getCachedZSortedEles(),c=o(s);try{for(c.s();!(a=c.n()).done;){var d=u[a.value];if(!r&&d.isNode()&&(r=d),!i&&d.isEdge()&&(i=d),r&&i)break}}catch(e){c.e(e)}finally{c.f()}return[r,i].filter(Boolean)}(r,e,t)},s=r.invalidateCachedZSortedEles,r.invalidateCachedZSortedEles=function(){s.call(r),r.pickingFrameBuffer.needsDraw=!0},u=r.notify,r.notify=function(e,t){u.call(r,e,t),"viewport"===e||"bounds"===e?r.pickingFrameBuffer.needsDraw=!0:"background"===e&&r.drawing.invalidate(t,{type:"node-body"})}};var uJ=function(e,t){return function(n){var r=e(n),i=uQ(n,t);return i.length>1?i.map(function(e,t){return"".concat(r,"_").concat(t)}):r}},u0=function(e,t){return function(n,r){var i=e(n);if("string"==typeof r){var a=r.indexOf("_");if(a>0){var o=Number(r.substring(a+1)),s=uQ(n,t),l=i.h/s.length,u=l*o,c=i.y1+u;return{x1:i.x1,w:i.w,y1:c,h:l,yOffset:u}}}return i}};function u1(e,t){var n=e.canvasWidth,r=e.canvasHeight,i=uA(e),a=i.pan,o=i.zoom;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,n,r),t.translate(a.x,a.y),t.scale(o,o)}function u2(e,t,n){var r=e.drawing;t+=1,n.isNode()?(r.drawNode(n,t,"node-underlay"),r.drawNode(n,t,"node-body"),r.drawTexture(n,t,"label"),r.drawNode(n,t,"node-overlay")):(r.drawEdgeLine(n,t),r.drawEdgeArrow(n,t,"source"),r.drawEdgeArrow(n,t,"target"),r.drawTexture(n,t,"label"),r.drawTexture(n,t,"edge-source-label"),r.drawTexture(n,t,"edge-target-label"))}function u5(e,t,n){e.webglDebug&&(G=performance.now());var r=e.drawing,i=0;if(n.screen&&e.data.canvasNeedsRedraw[e.SELECT_BOX]&&e.drawSelectionRectangle(t,function(t){return u1(e,t)}),e.data.canvasNeedsRedraw[e.NODE]||n.picking){var a,s,l,u,c,d,h,f,p,g,v,y,b,x,w,E,T,C,k,P,S,B,D,_,A,M,R,I,N,L,O,z=e.data.contexts[e.WEBGL];n.screen?(z.clearColor(0,0,0,0),z.enable(z.BLEND),z.blendFunc(z.ONE,z.ONE_MINUS_SRC_ALPHA)):z.disable(z.BLEND),z.clear(z.COLOR_BUFFER_BIT|z.DEPTH_BUFFER_BIT),z.viewport(0,0,z.canvas.width,z.canvas.height);var V=(a=e.canvasWidth,s=e.canvasHeight,u=(l=uA(e)).pan,c=l.zoom,uX(d=uV(),d,[u.x,u.y]),uY(d,d,[c,c]),f=h=uV(),f[0]=2/a,f[1]=0,f[2]=0,f[3]=0,f[4]=-2/s,f[5]=0,f[6]=-1,f[7]=1,f[8]=1,g=p=uV(),v=h[0],y=h[1],b=h[2],x=h[3],w=h[4],E=h[5],T=h[6],C=h[7],k=h[8],P=d[0],S=d[1],B=d[2],D=d[3],_=d[4],A=d[5],M=d[6],R=d[7],I=d[8],g[0]=P*v+S*x+B*T,g[1]=P*y+S*w+B*C,g[2]=P*b+S*E+B*k,g[3]=D*v+_*x+A*T,g[4]=D*y+_*w+A*C,g[5]=D*b+_*E+A*k,g[6]=M*v+R*x+I*T,g[7]=M*y+R*w+I*C,g[8]=M*b+R*E+I*k,p),F=e.getCachedZSortedEles();if(i=F.length,r.startFrame(V,n),n.screen){for(var X=0;X0&&a>0){h.clearRect(0,0,i,a),h.globalCompositeOperation="source-over";var f=this.getCachedZSortedEles();if(e.full)h.translate(-n.x1*l,-n.y1*l),h.scale(l,l),this.drawElements(h,f),h.scale(1/l,1/l),h.translate(n.x1*l,n.y1*l);else{var p=t.pan(),g={x:p.x*l,y:p.y*l};l*=t.zoom(),h.translate(g.x,g.y),h.scale(l,l),this.drawElements(h,f),h.scale(1/l,1/l),h.translate(-g.x,-g.y)}e.bg&&(h.globalCompositeOperation="destination-over",h.fillStyle=e.bg,h.rect(0,0,i,a),h.fill())}return d},u7.png=function(e){return ct(e,this.bufferCanvasImage(e),"image/png")},u7.jpg=function(e){return ct(e,this.bufferCanvasImage(e),"image/jpeg")};var cn={};cn.nodeShapeImpl=function(e,t,n,r,i,a,o,s){switch(e){case"ellipse":return this.drawEllipsePath(t,n,r,i,a);case"polygon":return this.drawPolygonPath(t,n,r,i,a,o);case"round-polygon":return this.drawRoundPolygonPath(t,n,r,i,a,o,s);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(t,n,r,i,a,s);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(t,n,r,i,a,o,s);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(t,n,r,i,a,s);case"barrel":return this.drawBarrelPath(t,n,r,i,a)}};var cr=ci.prototype;function ci(e){var t=this,n=t.cy.window().document;e.webgl&&(cr.CANVAS_LAYERS=t.CANVAS_LAYERS=4,console.log("webgl rendering enabled")),t.data={canvases:Array(cr.CANVAS_LAYERS),contexts:Array(cr.CANVAS_LAYERS),canvasNeedsRedraw:Array(cr.CANVAS_LAYERS),bufferCanvases:Array(cr.BUFFER_COUNT),bufferContexts:Array(cr.CANVAS_LAYERS)};var r="-webkit-tap-highlight-color",i="rgba(0,0,0,0)";t.data.canvasContainer=n.createElement("div");var a=t.data.canvasContainer.style;t.data.canvasContainer.style[r]=i,a.position="relative",a.zIndex="0",a.overflow="hidden";var o=e.cy.container();o.appendChild(t.data.canvasContainer),o.style[r]=i;var s={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};E&&E.userAgent.match(/msie|trident|edge/i)&&(s["-ms-touch-action"]="none",s["touch-action"]="none");for(var l=0;l{r.d(n,{Zp:()=>rx});var t,o=r(22249),i=r(53814),a=0;let u=function(e){var n=++a;return(0,i.A)(e)+n};var c=r(52701),d=r(61716);let f=function(e){return(null==e?0:e.length)?(0,d.A)(e,1):[]};var s=r(96719),v=r(15608),l=r(82888),h=r(34109);let g=function(e,n){var r=-1,t=(0,h.A)(e)?Array(e.length):[];return(0,l.A)(e,function(e,o,i){t[++r]=n(e,o,i)}),t};var p=r(70754);let A=function(e,n){return((0,p.A)(e)?s.A:g)(e,(0,v.A)(n,3))};var b=Math.ceil,w=Math.max;let y=function(e,n,r,t){for(var o=-1,i=w(b((n-e)/(r||1)),0),a=Array(i);i--;)a[t?i:++o]=e,e+=r;return a};var m=r(82683),j=r(4286),x=r(43266);let k=function(e,n,r){if(!(0,x.A)(r))return!1;var t=typeof n;return("number"==t?!!((0,h.A)(r)&&(0,j.A)(n,r.length)):"string"==t&&n in r)&&(0,m.A)(r[n],e)};var O=/\s/;let E=function(e){for(var n=e.length;n--&&O.test(e.charAt(n)););return n};var _=/^\s+/,P=r(88997),N=0/0,M=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,L=/^0o[0-7]+$/i,C=parseInt;let T=function(e){if("number"==typeof e)return e;if((0,P.A)(e))return N;if((0,x.A)(e)){var n,r="function"==typeof e.valueOf?e.valueOf():e;e=(0,x.A)(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(n=e)?n.slice(0,E(n)+1).replace(_,""):n;var t=R.test(e);return t||L.test(e)?C(e.slice(2),t?2:8):M.test(e)?N:+e};var S=1/0;let B=function(e){return e?(e=T(e))===S||e===-S?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0},I=function(e,n,r){return r&&"number"!=typeof r&&k(e,n,r)&&(n=r=void 0),e=B(e),void 0===n?(n=e,e=0):n=B(n),r=void 0===r?e1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&k(r[0],r[1],a)&&(i=o<3?void 0:i,o=1),n=Object(n);++t2?n[2]:void 0;for(o&&k(n[0],n[1],o)&&(t=1);++rn};var eK=r(54135);let eQ=function(e){return e&&e.length?eZ(e,eK.A,eH):void 0},eX=function(e){var n=null==e?0:e.length;return n?e[n-1]:void 0};var eY=r(25634);let e0=function(e,n){var r={};return n=(0,v.A)(n,3),(0,eY.A)(e,function(e,t,o){W(r,t,n(e,t,o))}),r};var e1=r(33135);let e2=function(e,n){return eMath.abs(a)*d?(u<0&&(d=-d),r=d*a/u,t=d):(a<0&&(c=-c),r=c,t=c*u/a),{x:o+r,y:i+t}}function nr(e){var n=A(I(no(e)+1),function(){return[]});return o.A(e.nodes(),function(r){var t=e.node(r),o=t.rank;e1.A(o)||(n[o][t.order]=r)}),n}function nt(e,n,r,t){var o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=t),e9(e,"border",o,n)}function no(e){return eQ(A(e.nodes(),function(n){var r=e.node(n).rank;if(!e1.A(r))return r}))}function ni(e,n){var r=e4();try{return n()}finally{console.log(e+" time: "+(e4()-r)+"ms")}}function na(e,n){return n()}function nu(e,n,r,t,o,i){var a=o[n][i-1],u=e9(e,"border",{width:0,height:0,rank:i,borderType:n},r);o[n][i]=u,e.setParent(u,t),a&&e.setEdge(a,u,{weight:1})}function nc(e){o.A(e.nodes(),function(n){nd(e.node(n))}),o.A(e.edges(),function(n){nd(e.edge(n))})}function nd(e){var n=e.width;e.width=e.height,e.height=n}function nf(e){e.y=-e.y}function ns(e){var n=e.x;e.x=e.y,e.y=n}let nv=function(e,n){return e&&e.length?eZ(e,(0,v.A)(n,2),e2):void 0};function nl(e){var n={};o.A(e.sources(),function r(t){var o=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return o.rank;n[t]=!0;var i=e3(A(e.outEdges(t),function(n){return r(n.w)-e.edge(n).minlen}));return(i===1/0||null==i)&&(i=0),o.rank=i})}function nh(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function ng(e){var n,r,t,i,a=new G.T({directed:!1}),u=e.nodes()[0],c=e.nodeCount();for(a.setNode(u,{});n=a,r=e,o.A(n.nodes(),function e(t){o.A(r.nodeEdges(t),function(o){var i=o.v,a=t===i?o.w:i;n.hasNode(a)||nh(r,o)||(n.setNode(a,{}),n.setEdge(t,a,{}),e(a))})}),n.nodeCount()-1?o[i?e[a]:a]:void 0}),nm=r(75713);c.A(1),c.A(1);var nj=r(16511),nx=r(3449),nk=(0,r(25626).A)("length"),nO=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),nE="\ud800-\udfff",n_="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",nP="\ud83c[\udffb-\udfff]",nN="[^"+nE+"]",nM="(?:\ud83c[\udde6-\uddff]){2}",nR="[\ud800-\udbff][\udc00-\udfff]",nL="(?:"+n_+"|"+nP+")?",nC="[\\ufe0e\\ufe0f]?",nT="(?:\\u200d(?:"+[nN,nM,nR].join("|")+")"+nC+nL+")*",nS=RegExp(nP+"(?="+nP+")|"+("(?:"+[nN+n_+"?",n_,nM,nR,"["+nE+"]"].join("|"))+")"+(nC+nL+nT),"g");function nB(){}function nI(e,n,r){p.A(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return o.A(n,function(n){if(!e.hasNode(n))throw Error("Graph does not have node: "+n);!function e(n,r,t,i,a,u){!Object.prototype.hasOwnProperty.call(i,r)&&(i[r]=!0,t||u.push(r),o.A(a(r),function(r){e(n,r,t,i,a,u)}),t&&u.push(r))}(e,n,"post"===r,a,t,i)}),i}function nG(e){n=e,r=new G.T().setGraph(n.graph()),o.A(n.nodes(),function(e){r.setNode(e,n.node(e))}),o.A(n.edges(),function(e){var t=r.edge(e.v,e.w)||{weight:0,minlen:1},o=n.edge(e);r.setEdge(e.v,e.w,{weight:t.weight+o.weight,minlen:Math.max(t.minlen,o.minlen)})}),nl(e=r);var n,r,t,i,a=ng(e);for(nq(a),nF(a,e);t=nD(a);)i=nz(a,e,t),nV(a,e,t,i)}function nF(e,n){var r=nI(e,e.nodes(),"post");r=r.slice(0,r.length-1),o.A(r,function(r){var t,o,i,a;t=e,o=n,i=r,a=t.node(i).parent,t.edge(i,a).cutvalue=nU(t,o,i)})}function nU(e,n,r){var t=e.node(r).parent,i=!0,a=n.edge(r,t),u=0;return a||(i=!1,a=n.edge(t,r)),u=a.weight,o.A(n.nodeEdges(r),function(o){var a=o.v===r,c=a?o.w:o.v;if(c!==t){var d,f,s,v=a===i,l=n.edge(o).weight;if(u+=v?l:-l,d=e,f=r,s=c,d.hasEdge(f,s)){var h=e.edge(r,c).cutvalue;u+=v?-h:h}}}),u}function nq(e,n){arguments.length<2&&(n=e.nodes()[0]),function e(n,r,t,i,a){var u=t,c=n.node(i);return r[i]=!0,o.A(n.neighbors(i),function(o){Object.prototype.hasOwnProperty.call(r,o)||(t=e(n,r,t,o,i))}),c.low=u,c.lim=t++,a?c.parent=a:delete c.parent,t}(e,{},1,n)}function nD(e){return ny(e.edges(),function(n){return e.edge(n).cutvalue<0})}function nz(e,n,r){var t=r.v,o=r.w;n.hasEdge(t,o)||(t=r.w,o=r.v);var i=e.node(t),a=e.node(o),u=i,c=!1;return i.lim>a.lim&&(u=a,c=!0),nv(nm.A(n.edges(),function(n){return c===n$(e,e.node(n.v),u)&&c!==n$(e,e.node(n.w),u)}),function(e){return nh(n,e)})}function nV(e,n,r,t){var i,a,u,c,d=r.v,f=r.w;e.removeEdge(d,f),e.setEdge(t.v,t.w,{}),nq(e),nF(e,n),i=e,a=n,u=ny(i.nodes(),function(e){return!a.node(e).parent}),c=(c=nI(i,u,"pre")).slice(1),o.A(c,function(e){var n=i.node(e).parent,r=a.edge(e,n),t=!1;r||(r=a.edge(n,e),t=!0),a.node(e).rank=a.node(n).rank+(t?r.minlen:-r.minlen)})}function n$(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}nB.prototype=Error(),r(80153),nG.initLowLimValues=nq,nG.initCutValues=nF,nG.calcCutValue=nU,nG.leaveEdge=nD,nG.enterEdge=nz,nG.exchangeEdges=nV;var nJ=r(38368),nW=r(43411),nZ=r(24770),nH=r(35327),nK=r(68315),nQ=r(34726),nX=Object.getOwnPropertySymbols?function(e){for(var n=[];e;)(0,nK.A)(n,(0,nH.A)(e)),e=ec(e);return n}:nQ.A,nY=r(53865),n0=r(14484);let n1=function(e){return(0,n0.A)(e,eR,nX)};var n2=Object.prototype.hasOwnProperty;let n3=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&n2.call(e,"index")&&(r.index=e.index,r.input=e.input),r},n8=function(e,n){var r=n?et(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)};var n6=/\w*$/;let n5=function(e){var n=new e.constructor(e.source,n6.exec(e));return n.lastIndex=e.lastIndex,n};var n7=r(68550),n4=n7.A?n7.A.prototype:void 0,n9=n4?n4.valueOf:void 0;let re=function(e,n,r){var t=e.constructor;switch(n){case"[object ArrayBuffer]":return et(e);case"[object Boolean]":case"[object Date]":return new t(+e);case"[object DataView]":return n8(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return eo(e,r);case"[object Map]":case"[object Set]":return new t;case"[object Number]":case"[object String]":return new t(e);case"[object RegExp]":return n5(e);case"[object Symbol]":return n9?Object(n9.call(e)):{}}};var rn=r(52578),rr=r(586),rt=rr.A&&rr.A.isMap,ro=rt?(0,rn.A)(rt):function(e){return(0,ep.A)(e)&&"[object Map]"==(0,nx.A)(e)},ri=rr.A&&rr.A.isSet,ra=ri?(0,rn.A)(ri):function(e){return(0,ep.A)(e)&&"[object Set]"==(0,nx.A)(e)},ru="[object Arguments]",rc="[object Function]",rd="[object Object]",rf={};rf[ru]=rf["[object Array]"]=rf["[object ArrayBuffer]"]=rf["[object DataView]"]=rf["[object Boolean]"]=rf["[object Date]"]=rf["[object Float32Array]"]=rf["[object Float64Array]"]=rf["[object Int8Array]"]=rf["[object Int16Array]"]=rf["[object Int32Array]"]=rf["[object Map]"]=rf["[object Number]"]=rf[rd]=rf["[object RegExp]"]=rf["[object Set]"]=rf["[object String]"]=rf["[object Symbol]"]=rf["[object Uint8Array]"]=rf["[object Uint8ClampedArray]"]=rf["[object Uint16Array]"]=rf["[object Uint32Array]"]=!0,rf["[object Error]"]=rf[rc]=rf["[object WeakMap]"]=!1;let rs=function e(n,r,t,o,i,a){var u,c=1&r,d=2&r,f=4&r;if(t&&(u=i?t(n,o,i,a):t(n)),void 0!==u)return u;if(!(0,x.A)(n))return n;var s=(0,p.A)(n);if(s){if(u=n3(n),!c)return ei(n,u)}else{var v,l,h,g,A=(0,nx.A)(n),b=A==rc||"[object GeneratorFunction]"==A;if((0,el.A)(n))return en(n,c);if(A==rd||A==ru||b&&!i){if(u=d||b?{}:ef(n),!c)return d?(l=(v=u)&&eE(n,eR(n),v),eE(n,nX(n),l)):(g=(h=u)&&eE(n,(0,np.A)(n),h),eE(n,(0,nH.A)(n),g))}else{if(!rf[A])return i?n:{};u=re(n,A,c)}}a||(a=new $.A);var w=a.get(n);if(w)return w;a.set(n,u),ra(n)?n.forEach(function(o){u.add(e(o,r,t,o,n,a))}):ro(n)&&n.forEach(function(o,i){u.set(i,e(o,r,t,i,n,a))});var y=f?d?n1:nY.A:d?eR:np.A,m=s?void 0:y(n);return(0,nZ.A)(m||n,function(o,i){m&&(o=n[i=o]),eO(u,i,e(o,r,t,i,n,a))}),u},rv=function(e,n,r){for(var t=-1,o=e.length,i=n.length,a={};++tn||i&&a&&c&&!u&&!d||t&&a&&c||!r&&c||!o)return 1;if(!t&&!i&&!d&&e=u)return c;return c*("desc"==r[t]?-1:1)}}return e.index-n.index},rp=function(e,n,r){n=n.length?(0,s.A)(n,function(e){return(0,p.A)(e)?function(n){return(0,eB.A)(n,1===e.length?e[0]:e)}:e}):[eK.A];var t=-1;return n=(0,s.A)(n,(0,rn.A)(v.A)),rl(g(e,function(e,r,o){return{criteria:(0,s.A)(n,function(n){return n(e)}),index:++t,value:e}}),function(e,n){return rg(e,n,r)})};var rA=(0,eT.A)(function(e,n){if(null==e)return[];var r=n.length;return r>1&&k(e,n[0],n[1])?n=[]:r>2&&k(n[0],n[1],n[2])&&(n=[n[0]]),rp(e,(0,d.A)(n,1),[])});function rb(e,n,r){for(var t;n.length&&(t=eX(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function rw(e,n,r){return A(n,function(n){var t,i;return t=function(e){for(var n;e.hasNode(n=u("_root")););return n}(e),i=new G.T({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(n){return e.node(n)}),o.A(e.nodes(),function(a){var u=e.node(a),c=e.parent(a);(u.rank===n||u.minRank<=n&&n<=u.maxRank)&&(i.setNode(a),i.setParent(a,c||t),o.A(e[r](a),function(n){var r=n.v===a?n.w:n.v,t=i.edge(r,a),o=e1.A(t)?0:t.weight;i.setEdge(r,a,{weight:e.edge(n).weight+o})}),Object.prototype.hasOwnProperty.call(u,"minRank")&&i.setNode(a,{borderLeft:u.borderLeft[n],borderRight:u.borderRight[n]}))}),i})}function ry(e,n){o.A(n,function(n){o.A(n,function(n,r){e.node(n).order=r})})}var rm=r(45705);function rj(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0}),Object.defineProperty(e[n],r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function rx(e,n){var r=n&&n.debugTiming?ni:na;r("layout",()=>{var n=r(" buildLayoutGraph",()=>{var n,r,t;return n=e,r=new G.T({multigraph:!0,compound:!0}),t=rC(n.graph()),r.setGraph(eS({},rO,rL(t,rk),eV(t,rE))),o.A(n.nodes(),function(e){var t=rC(n.node(e));r.setNode(e,eW(rL(t,r_),rP)),r.setParent(e,n.parent(e))}),o.A(n.edges(),function(e){var t=rC(n.edge(e));r.setEdge(e,eS({},rM,rL(t,rN),eV(t,rR)))}),r});r(" runLayout",()=>{var e,t;return e=n,void((t=r)(" makeSpaceForEdgeLabels",()=>{var n,r;return r=(n=e).graph(),void(r.ranksep/=2,o.A(n.edges(),function(e){var t=n.edge(e);t.minlen*=2,"c"!==t.labelpos.toLowerCase()&&("TB"===r.rankdir||"BT"===r.rankdir?t.width+=t.labeloffset:t.height+=t.labeloffset)}))}),t(" removeSelfEdges",()=>{var n;return n=e,void o.A(n.edges(),function(e){if(e.v===e.w){var r=n.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:e,label:n.edge(e)}),n.removeEdge(e)}})}),t(" acyclic",()=>{var n,r,t,i,a,c;return n="greedy"===e.graph().acyclicer?function(e,n){if(1>=e.nodeCount())return[];var r,t,i,a,u,c,d,s=(r=e,t=n||D,i=new G.T,a=0,u=0,o.A(r.nodes(),function(e){i.setNode(e,{v:e,in:0,out:0})}),o.A(r.edges(),function(e){var n=i.edge(e.v,e.w)||0,r=t(e);i.setEdge(e.v,e.w,n+r),u=Math.max(u,i.node(e.v).out+=r),a=Math.max(a,i.node(e.w).in+=r)}),c=I(u+a+3).map(function(){return new F}),d=a+1,o.A(i.nodes(),function(e){V(c,d,i.node(e))}),{graph:i,buckets:c,zeroIdx:d});return f(A(function(e,n,r){for(var t,o=[],i=n[n.length-1],a=n[0];e.nodeCount();){for(;t=a.dequeue();)z(e,n,r,t);for(;t=i.dequeue();)z(e,n,r,t);if(e.nodeCount()){for(var u=n.length-2;u>0;--u)if(t=n[u].dequeue()){o=o.concat(z(e,n,r,t,!0));break}}}return o}(s.graph,s.buckets,s.zeroIdx),function(n){return e.outEdges(n.v,n.w)}))}(e,(r=e,function(e){return r.edge(e).weight})):(t=e,i=[],a={},c={},o.A(t.nodes(),function e(n){Object.prototype.hasOwnProperty.call(c,n)||(c[n]=!0,a[n]=!0,o.A(t.outEdges(n),function(n){Object.prototype.hasOwnProperty.call(a,n.w)?i.push(n):e(n.w)}),delete a[n])}),i),void o.A(n,function(n){var r=e.edge(n);e.removeEdge(n),r.forwardName=n.name,r.reversed=!0,e.setEdge(n.w,n.v,r,u("rev"))})}),t(" nestingGraph.run",()=>{var n,r,t,i,a,u,c,d;return n=e9(e,"root",{},"_root"),u=e,c={},o.A(u.children(),function(e){!function e(n,r){var t=u.children(n);t&&t.length&&o.A(t,function(n){e(n,r+1)}),c[n]=r}(e,1)}),r=c,i=2*(t=eQ(nJ.A(r))-1)+1,e.graph().nestingRoot=n,o.A(e.edges(),function(n){e.edge(n).minlen*=i}),a=(d=e,nW.A(d.edges(),function(e,n){return e+d.edge(n).weight},0)+1),void(o.A(e.children(),function(u){!function e(n,r,t,i,a,u,c){var d=n.children(c);if(!d.length){c!==r&&n.setEdge(r,c,{weight:0,minlen:t});return}var f=nt(n,"_bt"),s=nt(n,"_bb"),v=n.node(c);n.setParent(f,c),v.borderTop=f,n.setParent(s,c),v.borderBottom=s,o.A(d,function(o){e(n,r,t,i,a,u,o);var d=n.node(o),v=d.borderTop?d.borderTop:o,l=d.borderBottom?d.borderBottom:o,h=d.borderTop?i:2*i,g=v!==l?1:a-u[c]+1;n.setEdge(f,v,{weight:h,minlen:g,nestingEdge:!0}),n.setEdge(l,s,{weight:h,minlen:g,nestingEdge:!0})}),n.parent(c)||n.setEdge(r,f,{weight:0,minlen:a+u[c]})}(e,n,i,a,t,r,u)}),e.graph().nodeRankFactor=i)}),t(" rank",()=>(function(e){switch(e.graph().ranker){case"network-simplex":default:nG(e);break;case"tight-tree":var n;nl(n=e),ng(n);break;case"longest-path":nl(e)}})(ne(e))),t(" injectEdgeLabelProxies",()=>{var n;return n=e,void o.A(n.edges(),function(e){var r=n.edge(e);if(r.width&&r.height){var t=n.node(e.v),o={rank:(n.node(e.w).rank-t.rank)/2+t.rank,e:e};e9(n,"edge-proxy",o,"_ep")}})}),t(" removeEmptyRanks",()=>{var n,r,t,i;return n=e3(A(e.nodes(),function(n){return e.node(n).rank})),r=[],o.A(e.nodes(),function(t){var o=e.node(t).rank-n;r[o]||(r[o]=[]),r[o].push(t)}),t=0,i=e.graph().nodeRankFactor,void o.A(r,function(n,r){e1.A(n)&&r%i!=0?--t:t&&o.A(n,function(n){e.node(n).rank+=t})})}),t(" nestingGraph.cleanup",()=>{var n;return n=e.graph(),void(e.removeNode(n.nestingRoot),delete n.nestingRoot,o.A(e.edges(),function(n){e.edge(n).nestingEdge&&e.removeEdge(n)}))}),t(" normalizeRanks",()=>{var n;return n=e3(A(e.nodes(),function(n){return e.node(n).rank})),void o.A(e.nodes(),function(r){var t=e.node(r);e7(t,"rank")&&(t.rank-=n)})}),t(" assignRankMinMax",()=>{var n,r;return n=e,r=0,void(o.A(n.nodes(),function(e){var t=n.node(e);t.borderTop&&(t.minRank=n.node(t.borderTop).rank,t.maxRank=n.node(t.borderBottom).rank,r=eQ(r,t.maxRank))}),n.graph().maxRank=r)}),t(" removeEdgeLabelProxies",()=>{var n;return n=e,void o.A(n.nodes(),function(e){var r=n.node(e);"edge-proxy"===r.dummy&&(n.edge(r.e).labelRank=r.rank,n.removeNode(e))})}),t(" normalize.run",()=>{e.graph().dummyChains=[],o.A(e.edges(),function(n){!function(e,n){var r,t,o=n.v,i=e.node(o).rank,a=n.w,u=e.node(a).rank,c=n.name,d=e.edge(n),f=d.labelRank;if(u!==i+1){e.removeEdge(n);var s=void 0;for(t=0,++i;i{var n,r,t,i;return r=e,t={},i=0,o.A(r.children(),function e(n){var a=i;o.A(r.children(n),e),t[n]={low:a,lim:i++}}),n=t,void o.A(e.graph().dummyChains,function(r){for(var t=e.node(r),o=t.edgeObj,i=function(e,n,r,t){var o,i,a=[],u=[],c=Math.min(n[r].low,n[t].low),d=Math.max(n[r].lim,n[t].lim);o=r;do a.push(o=e.parent(o));while(o&&(n[o].low>c||d>n[o].lim));for(i=o,o=t;(o=e.parent(o))!==i;)u.push(o);return{path:a.concat(u.reverse()),lca:i}}(e,n,o.v,o.w),a=i.path,u=i.lca,c=0,d=a[0],f=!0;r!==o.w;){if(t=e.node(r),f){for(;(d=a[c])!==u&&e.node(d).maxRank{o.A(e.children(),function n(r){var t=e.children(r),i=e.node(r);if(t.length&&o.A(t,n),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,u=i.maxRank+1;a(function(e){var n=no(e),r=rw(e,I(1,n+1),"inEdges"),t=rw(e,I(n-1,-1,-1),"outEdges"),i=(a={},c=eQ(A(u=nm.A(e.nodes(),function(n){return!e.children(n).length}),function(n){return e.node(n).rank})),d=A(I(c+1),function(){return[]}),s=rA(u,function(n){return e.node(n).rank}),o.A(s,function n(r){e7(a,r)||(a[r]=!0,d[e.node(r).rank].push(r),o.A(e.successors(r),n))}),d);ry(e,i);for(var a,u,c,d,s,v,l=1/0,h=0,g=0;g<4;++h,++g){(function(e,n){var r=new G.T;o.A(e,function(e){var t,i,a,u=e.graph().root,c=function e(n,r,t,i){var a,u,c,d,s,v,l,h,g,p,b,w=n.children(r),y=n.node(r),m=y?y.borderLeft:void 0,j=y?y.borderRight:void 0,x={};m&&(w=nm.A(w,function(e){return e!==m&&e!==j}));var k=A(w,function(e){var r=n.inEdges(e);if(!r.length)return{v:e};var t=nW.A(r,function(e,r){var t=n.edge(r),o=n.node(r.v);return{sum:e.sum+t.weight*o.order,weight:e.weight+t.weight}},{sum:0,weight:0});return{v:e,barycenter:t.sum/t.weight,weight:t.weight}});o.A(k,function(r){if(n.children(r.v).length){var o,a,u=e(n,r.v,t,i);x[r.v]=u,Object.prototype.hasOwnProperty.call(u,"barycenter")&&(o=r,a=u,e1.A(o.barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}});var O=(a={},o.A(k,function(e,n){var r=a[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:n};e1.A(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),o.A(t.edges(),function(e){var n=a[e.v],r=a[e.w];e1.A(n)||e1.A(r)||(r.indegree++,n.out.push(a[e.w]))}),function(e){for(var n=[];e.length;){var r=e.pop();n.push(r),o.A(r.in.reverse(),function(e){return function(n){!n.merged&&(e1.A(n.barycenter)||e1.A(e.barycenter)||n.barycenter>=e.barycenter)&&function(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}(e,n)}}(r)),o.A(r.out,function(n){return function(r){r.in.push(n),0==--r.indegree&&e.push(r)}}(r))}return A(nm.A(n,function(e){return!e.merged}),function(e){return eV(e,["vs","i","barycenter","weight"])})}(nm.A(a,function(e){return!e.indegree})));!function(e,n){o.A(e,function(e){e.vs=f(e.vs.map(function(e){return n[e]?n[e].vs:e}))})}(O,x);var E=(s=(u=function(e){return Object.prototype.hasOwnProperty.call(e,"barycenter")},c={lhs:[],rhs:[]},o.A(O,function(e){u(e)?c.lhs.push(e):c.rhs.push(e)}),d=c).lhs,v=rA(d.rhs,function(e){return-e.i}),l=[],h=0,g=0,p=0,s.sort(function(e){return function(n,r){return n.barycenterr.barycenter?1:e?r.i-n.i:n.i-r.i}}(!!i)),p=rb(l,v,p),o.A(s,function(e){p+=e.vs.length,l.push(e.vs),h+=e.barycenter*e.weight,g+=e.weight,p=rb(l,v,p)}),b={vs:f(l)},g&&(b.barycenter=h/g,b.weight=g),b);if(m&&(E.vs=f([m,E.vs,j]),n.predecessors(m).length)){var _=n.node(n.predecessors(m)[0]),P=n.node(n.predecessors(j)[0]);Object.prototype.hasOwnProperty.call(E,"barycenter")||(E.barycenter=0,E.weight=0),E.barycenter=(E.barycenter*E.weight+_.order+P.order)/(E.weight+2),E.weight+=2}return E}(e,u,r,n);o.A(c.vs,function(n,r){e.node(n).order=r}),t=c.vs,a={},o.A(t,function(n){for(var t,o,u=e.parent(n);u;){if((t=e.parent(u))?(o=a[t],a[t]=u):(o=i,i=u),o&&o!==u)return void r.setEdge(o,u);u=t}})})})(h%2?r:t,h%4>=2),i=nr(e);var p=function(e,n){for(var r=0,t=1;t0;)n%2&&(r+=c[n+1]),n=n-1>>1,c[n]+=e.weight;d+=e.weight*r})),d}(e,n[t-1],n[t]);return r}(e,i);p{var n,r;return r=nr(n=e),void o.A(r,function(e){var r=0;o.A(e,function(e,t){var i=n.node(e);i.order=t+r,o.A(i.selfEdges,function(e){e9(n,"selfedge",{width:e.label.width,height:e.label.height,rank:i.rank,order:t+ ++r,e:e.e,label:e.label},"_se")}),delete i.selfEdges})})}),t(" adjustCoordinateSystem",()=>{var n;("lr"===(n=e.graph().rankdir.toLowerCase())||"rl"===n)&&nc(e)}),t(" position",()=>{var n,r,t,i,a,u,c,d,f,s,v,l,h,g,p,b,w;p=nr(g=n=ne(n=e)),b=g.graph().ranksep,w=0,o.A(p,function(e){var n=eQ(A(e,function(e){return g.node(e).height}));o.A(e,function(e){g.node(e).y=w+n/2}),w+=n+b}),i=nr(r=n),u=eS((a={},nW.A(i,function(e,n){var t=0,i=0,u=e.length,c=eX(n);return o.A(n,function(e,d){var f=function(e,n){if(e.node(n).dummy)return ny(e.predecessors(n),function(n){return e.node(n).dummy})}(r,e),s=f?r.node(f).order:u;(f||e===c)&&(o.A(n.slice(i,d+1),function(e){o.A(r.predecessors(e),function(n){var o=r.node(n),i=o.order;(iu)&&rj(r,n,c)})})}return nW.A(n,function(n,r){var i,a=-1,u=0;return o.A(r,function(o,c){if("border"===e.node(o).dummy){var d=e.predecessors(o);d.length&&(i=e.node(d[0]).order,t(r,u,c,a,i),u=c,a=i)}t(r,u,r.length,i,n.length)}),r}),r}(r,i)),c={},o.A(["u","d"],function(e){t="u"===e?i:nJ.A(i).reverse(),o.A(["l","r"],function(n){"r"===n&&(t=A(t,function(e){return nJ.A(e).reverse()}));var i,a,d,f,s=("u"===e?r.predecessors:r.successors).bind(r),v=(i=t,a={},d={},f={},o.A(i,function(e){o.A(e,function(e,n){a[e]=e,d[e]=e,f[e]=n})}),o.A(i,function(e){var n=-1;o.A(e,function(e){var r=s(e);if(r.length)for(var t=((r=rA(r,function(e){return f[e]})).length-1)/2,o=Math.floor(t),i=Math.ceil(t);o<=i;++o){var c=r[o];d[e]===e&&nr){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}(u,e,c)&&(d[c]=e,d[e]=a[e]=a[c],n=f[c])}})}),{root:a,align:d}),l=function(e,n,r,t,i){var a,u,c,d,f,s,v,l,h,g,p={},A=(a=e,u=n,c=r,d=i,l=new G.T,g=(f=(h=a.graph()).nodesep,s=h.edgesep,v=d,function(e,n,r){var t,o,i=e.node(n),a=e.node(r);if(t=0+i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":o=-i.width/2;break;case"r":o=i.width/2}if(o&&(t+=v?o:-o),o=0,t+=(i.dummy?s:f)/2,t+=(a.dummy?s:f)/2,t+=a.width/2,Object.prototype.hasOwnProperty.call(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":o=a.width/2;break;case"r":o=-a.width/2}return o&&(t+=v?o:-o),o=0,t}),o.A(u,function(e){var n;o.A(e,function(e){var r=c[e];if(l.setNode(r),n){var t=c[n],o=l.edge(t,r);l.setEdge(t,r,Math.max(g(a,e,n),o||0))}n=e})}),l),b=i?"borderLeft":"borderRight";function w(e,n){for(var r=A.nodes(),t=r.pop(),o={};t;)o[t]?e(t):(o[t]=!0,r.push(t),r=r.concat(n(t))),t=r.pop()}return w(function(e){p[e]=A.inEdges(e).reduce(function(e,n){return Math.max(e,p[n.v]+A.edge(n))},0)},A.predecessors.bind(A)),w(function(n){var r=A.outEdges(n).reduce(function(e,n){return Math.min(e,p[n.w]-A.edge(n))},1/0),t=e.node(n);r!==1/0&&t.borderType!==b&&(p[n]=Math.max(p[n],r))},A.successors.bind(A)),o.A(t,function(e){p[e]=p[r[e]]}),p}(r,t,v.root,v.align,"r"===n);"r"===n&&(l=e0(l,function(e){return-e})),c[e+n]=l})}),d=nv(nJ.A(c),function(e){var n,t=-1/0,o=1/0;return n=function(e,n){var i,a,u=(i=r,a=n,i.node(a).width/2);t=Math.max(e+u,t),o=Math.min(e-u,o)},null==e||(0,H.A)(e,(0,rm.A)(n),eR),t-o}),s=e3(f=nJ.A(d)),v=eQ(f),o.A(["u","d"],function(e){o.A(["l","r"],function(n){var r,t=e+n,o=c[t];if(o!==d){var i=nJ.A(o);(r="l"===n?s-e3(i):v-eQ(i))&&(c[t]=e0(o,function(e){return e+r}))}})}),l=r.graph().align,h=e0(c.ul,function(e,n){if(l)return c[l.toLowerCase()][n];var r=rA(A(c,n));return(r[1]+r[2])/2}),h&&(0,eY.A)(h,(0,rm.A)(function(e,r){n.node(r).x=e}))}),t(" positionSelfEdges",()=>{var n;return n=e,void o.A(n.nodes(),function(e){var r=n.node(e);if("selfedge"===r.dummy){var t=n.node(r.e.v),o=t.x+t.width/2,i=t.y,a=r.x-o,u=t.height/2;n.setEdge(r.e,r.label),n.removeNode(e),r.label.points=[{x:o+2*a/3,y:i-u},{x:o+5*a/6,y:i-u},{x:o+a,y:i},{x:o+5*a/6,y:i+u},{x:o+2*a/3,y:i+u}],r.label.x=r.x,r.label.y=r.y}})}),t(" removeBorderNodes",()=>{var n;return n=e,void(o.A(n.nodes(),function(e){if(n.children(e).length){var r=n.node(e),t=n.node(r.borderTop),o=n.node(r.borderBottom),i=n.node(eX(r.borderLeft)),a=n.node(eX(r.borderRight));r.width=Math.abs(a.x-i.x),r.height=Math.abs(o.y-t.y),r.x=i.x+r.width/2,r.y=t.y+r.height/2}}),o.A(n.nodes(),function(e){"border"===n.node(e).dummy&&n.removeNode(e)}))}),t(" normalize.undo",()=>{o.A(e.graph().dummyChains,function(n){var r,t=e.node(n),o=t.edgeLabel;for(e.setEdge(t.edgeObj,o);t.dummy;)r=e.successors(n)[0],e.removeNode(n),o.points.push({x:t.x,y:t.y}),"edge-label"===t.dummy&&(o.x=t.x,o.y=t.y,o.width=t.width,o.height=t.height),n=r,t=e.node(n)})}),t(" fixupEdgeLabelCoords",()=>{var n;return n=e,void o.A(n.edges(),function(e){var r=n.edge(e);if(Object.prototype.hasOwnProperty.call(r,"x"))switch(("l"===r.labelpos||"r"===r.labelpos)&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset}})}),t(" undoCoordinateSystem",()=>{var n,r,t;("bt"===(n=e.graph().rankdir.toLowerCase())||"rl"===n)&&(r=e,o.A(r.nodes(),function(e){nf(r.node(e))}),o.A(r.edges(),function(e){var n=r.edge(e);o.A(n.points,nf),Object.prototype.hasOwnProperty.call(n,"y")&&nf(n)})),("lr"===n||"rl"===n)&&(t=e,o.A(t.nodes(),function(e){ns(t.node(e))}),o.A(t.edges(),function(e){var n=t.edge(e);o.A(n.points,ns),Object.prototype.hasOwnProperty.call(n,"x")&&ns(n)}),nc(e))}),t(" translateGraph",()=>(function(e){var n=1/0,r=0,t=1/0,i=0,a=e.graph(),u=a.marginx||0,c=a.marginy||0;function d(e){var o=e.x,a=e.y,u=e.width,c=e.height;n=Math.min(n,o-u/2),r=Math.max(r,o+u/2),t=Math.min(t,a-c/2),i=Math.max(i,a+c/2)}o.A(e.nodes(),function(n){d(e.node(n))}),o.A(e.edges(),function(n){var r=e.edge(n);Object.prototype.hasOwnProperty.call(r,"x")&&d(r)}),n-=u,t-=c,o.A(e.nodes(),function(r){var o=e.node(r);o.x-=n,o.y-=t}),o.A(e.edges(),function(r){var i=e.edge(r);o.A(i.points,function(e){e.x-=n,e.y-=t}),Object.prototype.hasOwnProperty.call(i,"x")&&(i.x-=n),Object.prototype.hasOwnProperty.call(i,"y")&&(i.y-=t)}),a.width=r-n+u,a.height=i-t+c})(e)),t(" assignNodeIntersects",()=>{var n;return n=e,void o.A(n.edges(),function(e){var r,t,o=n.edge(e),i=n.node(e.v),a=n.node(e.w);o.points?(r=o.points[0],t=o.points[o.points.length-1]):(o.points=[],r=a,t=i),o.points.unshift(nn(i,r)),o.points.push(nn(a,t))})}),t(" reversePoints",()=>{var n;return n=e,void o.A(n.edges(),function(e){var r=n.edge(e);r.reversed&&r.points.reverse()})}),t(" acyclic.undo",()=>{o.A(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}))}),r(" updateInputGraph",()=>{var r,t;return r=e,t=n,void(o.A(r.nodes(),function(e){var n=r.node(e),o=t.node(e);n&&(n.x=o.x,n.y=o.y,t.children(e).length&&(n.width=o.width,n.height=o.height))}),o.A(r.edges(),function(e){var n=r.edge(e),o=t.edge(e);n.points=o.points,Object.prototype.hasOwnProperty.call(o,"x")&&(n.x=o.x,n.y=o.y)}),r.graph().width=t.graph().width,r.graph().height=t.graph().height)})})}var rk=["nodesep","edgesep","ranksep","marginx","marginy"],rO={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},rE=["acyclicer","ranker","rankdir","align"],r_=["width","height"],rP={width:0,height:0},rN=["minlen","weight","width","height","labeloffset"],rM={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},rR=["labelpos"];function rL(e,n){return e0(eV(e,n),Number)}function rC(e){var n={};return o.A(e,function(e,r){n[r.toLowerCase()]=e}),n}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8236.9db2b13d8cfda8d3.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8236.9db2b13d8cfda8d3.js deleted file mode 100644 index f054e7ba2..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8236.9db2b13d8cfda8d3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8236],{68236:(e,t,i)=>{i.d(t,{diagram:()=>en});var n=i(84492),a=i(13892),r=i(69301),o=i(98999),l=i(91158),d=i(89321),s=i(70668),m="position frame",c="frame positioned",x="position relation",u="relation positioned",f=(0,l.K)(function(e){o.R.debug("options str",e)},"setOptions"),g=(0,l.K)(function(){return{}},"getOptions"),h=(0,l.K)(function(){b(),(0,r.IU)()},"clear");function b(){v={}}(0,l.K)(b,"reset");var p=r.UI.eventmodeling,w=(0,l.K)(()=>(0,a.$t)({...p,...(0,r.zj)().eventmodeling}),"getConfig"),v={};function y(){let e=K,{ast:t}=v,i=M();if(!t)throw Error("No data for EventModel");return t.frames.forEach((n,a)=>{let r=A(n,t.dataEntities,i);e=L(e,{$kind:m,index:a,frame:n,textProps:r}),O(n)?(o.R.debug("source frame",n.sourceFrames),t.frames.filter(e=>n.sourceFrames.some(t=>t.$refText===e.name)).forEach(t=>{e=L(e,{$kind:x,index:a,frame:n,sourceFrame:t})})):e=L(e,{$kind:x,index:a,frame:n})}),e={...e,sortedSwimlanesArray:H(e.swimlanes)}}function k(e){v.ast=e}(0,l.K)(y,"getState"),(0,l.K)(k,"setAst");var P={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function M(){return P}(0,l.K)(M,"getDiagramProps");var K={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function S(e){let t=e.split(".");if(2===t.length)return t[0]}function B(e){let t=e.split(".");return 2===t.length?t[1]:e}function F(e,t){if(t&&0!==t.length)return Object.values(e).find(e=>e.namespace===t)}function R(e,t,i){return Math.max(t,...Object.keys(e).filter(e=>{let n=Number.parseInt(e);return n>t&&nNumber.parseInt(e)))+1}function E(e,t){let i=S(e.entityIdentifier),n=F(t,i);switch(e.modelEntityType){case"ui":case"pcr":case"processor":if(n)return{index:n.index,label:n.namespace||P.labelUiAutomation};if(i)return{index:R(t,0,100),label:P.labelUiAutomationPrefix+i};return{index:0,label:P.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":if(n)return{index:n.index,label:n.namespace||P.labelCommandReadModel};if(i)return{index:R(t,100,200),label:P.labelCommandReadModelPrefix+i};return{index:100,label:P.labelCommandReadModel};default:if(n)return{index:n.index,label:n.namespace||P.labelEvents};if(i)return{index:R(t,200,300),label:P.labelEventsPrefix+i};return{index:200,label:P.labelEvents}}}function $(e){let{themeVariables:t}=(0,r.zj)();switch(e.modelEntityType){case"ui":return{fill:t.emUiFill??"white",stroke:t.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:t.emProcessorFill??"#edb3f6",stroke:t.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:t.emReadModelFill??"#d3f1a2",stroke:t.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:t.emCommandFill??"#bcd6fe",stroke:t.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:t.emEventFill??"#ffb778",stroke:t.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}function A(e,t,i){let n,l=(0,r.zj)(),d=(0,r.jZ)(B(e.entityIdentifier)??"",l),s={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"
    "},m=(0,a.bH)(d,i.textMaxWidth,s),c=`${m}`;if(e.dataInlineValue&&(n=(n=(n=e.dataInlineValue).substring(n.indexOf("{")+1)).substring(0,n.lastIndexOf("}")-1),n=(0,r.jZ)(n,l),n=(n=(0,a.bH)(n,i.textMaxWidth,s)).replaceAll(" "," ")),e.dataReference){let o=t.find(t=>t.name===e.dataReference?.$refText);o&&(n=(n=(n=o.dataBlockValue).substring(n.indexOf("{\n")+2)).substring(0,n.lastIndexOf("}")-1),n=(0,r.jZ)(n,l),n=(n=(0,a.bH)(n,i.textMaxWidth,s)).replaceAll(" "," ")+"
    ")}let x=void 0!==n;x&&(c+=`

    ${n}`);let u={fontSize:s.fontSize,fontWeight:s.fontWeight,fontFamily:s.fontFamily},f=(0,a.PX)(c,u),g={content:c,width:x?f.width/3:f.width,height:f.height};return o.R.debug(`[${e.name}] ${e.entityIdentifier} text`,g),g}function T(e,t){let i=$(t.frame),n={width:t.textProps.width+2*P.boxTextPadding,height:t.textProps.height+2*P.boxTextPadding};return[{$kind:c,frame:t.frame,index:t.index,visual:i,dimension:n,textProps:t.textProps}]}function W(e,t,i){return void 0===t?P.contentStartX:t.index===e.index&&e.r?e.r+P.boxPadding:void 0===i?P.contentStartX:i.r-P.boxOverlap+P.boxPadding}function D(e,t){return Math.max(...e.map(e=>e.r),t)}function H(e){return Object.values(e).sort((e,t)=>e.index-t.index)}function I(e,t){let i,n=E(t.frame,e.swimlanes);i=n.index in e.swimlanes?e.swimlanes[n.index]:{index:n.index,label:n.label,r:0,y:n.index*P.swimlaneMinHeight+P.swimlaneGap,height:P.swimlaneMinHeight,maxHeight:P.swimlaneMinHeight};let a=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,r=void 0!==e.previousSwimlaneNumber?e.swimlanes[e.previousSwimlaneNumber]:void 0,o={width:Math.max(P.boxMinWidth,Math.min(P.boxMaxWidth,t.dimension.width))+2*P.boxPadding,height:Math.max(P.boxMinHeight,Math.min(P.boxMaxHeight,t.dimension.height))+2*P.boxPadding},l=W(i,r,a),d=l+o.width+P.boxPadding,s=D(Object.values(e.swimlanes),d);i.r=l+o.width,i.maxHeight=Math.max(i.maxHeight,o.height),i.height=Math.max(P.swimlaneMinHeight,i.maxHeight)+2*P.swimlanePadding;let m={x:l,y:P.swimlanePadding+i.y,r:d,dimension:o,leftSibling:!1,swimlane:i,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},c={...e,boxes:[...e.boxes,m],swimlanes:{...e.swimlanes,[`${i.index}`]:i},previousSwimlaneNumber:n.index,previousFrame:t.frame,maxR:s},x=H(c.swimlanes);x.length>0&&(x[0].y=0);for(let e=1;e0}function j(e,t){if(null!=t)return e.find(e=>e.frame.name===t.name)}function N(e,t,i){if(!(i<0))for(let n=i;n>=0;n--){let i=e[n];if(i.swimlane.index!==t)return i}}function U(e,t){let i;if((0,d.F5)(t.frame)||C(t.index,t.frame))return[];let n=j(e.boxes,t.frame);if(void 0===n)throw Error(`Target box not found for frame ${t.frame.name}`);return void 0===(i=t.sourceFrame?j(e.boxes,t.sourceFrame):N(e.boxes,n.swimlane.index,t.index-1))?[]:[{$kind:u,frame:t.frame,index:t.index,sourceBox:i,targetBox:n}]}function z(e,t){let i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}(0,l.K)(S,"extractNamespace"),(0,l.K)(B,"extractName"),(0,l.K)(F,"findSwimlaneByNamespace"),(0,l.K)(R,"findNextAvailableIndex"),(0,l.K)(E,"calculateSwimlaneProps"),(0,l.K)($,"calculateEntityVisualProps"),(0,l.K)(A,"calculateTextProps"),(0,l.K)(T,"decidePositionFrame"),(0,l.K)(W,"calculateX"),(0,l.K)(D,"calculateMaxRight"),(0,l.K)(H,"sortedSwimlanesArray"),(0,l.K)(I,"evolveFramePositioned"),(0,l.K)(C,"isFirstFrame"),(0,l.K)(O,"hasSourceFrame"),(0,l.K)(j,"findBoxByFrame"),(0,l.K)(N,"findBoxByLineIndex"),(0,l.K)(U,"decidePositionRelation"),(0,l.K)(z,"evolveRelationPositioned");var X={[m]:T,[x]:U},V={[c]:I,[u]:z};function _(e,t){let i=X[t.$kind];if(null==i)return[];let n=i(e,t);return o.R.debug("decided events",n),n}function G(e,t){let i=t.reduce((e,t)=>{let i=V[t.$kind];return null==i?e:i(e,t)},e);return o.R.debug("evolve events",{state:e,newState:i,events:t}),i}function L(e,t){let i=_(e,t);return G(e,i)}(0,l.K)(_,"decide"),(0,l.K)(G,"evolve"),(0,l.K)(L,"dispatch");var Z={getConfig:w,setOptions:f,getOptions:g,clear:h,setAccTitle:r.SV,getAccTitle:r.iN,getAccDescription:r.m7,setAccDescription:r.EI,setDiagramTitle:r.ke,getDiagramTitle:r.ab,setAst:k,getDiagramProps:M,getState:y},Y={parse:(0,l.K)(async e=>{let t=await (0,d.qg)("eventmodeling",e);o.R.debug(t),Z.setAst(t),(0,n.S)(t,Z)},"parse")},q=(0,r.D7)(),J=q?.eventmodeling;function Q(e,t){return i=>{let n=i.swimlane.y+t.swimlanePadding,a=e.append("g").attr("class","em-box");a.append("rect").attr("x",i.x).attr("y",n).attr("rx","3").attr("width",i.dimension.width).attr("height",i.dimension.height).attr("stroke",i.visual.stroke).attr("fill",i.visual.fill),a.append("foreignObject").attr("x",i.x+t.boxPadding).attr("y",n+10).attr("width",i.dimension.width-2*t.boxPadding).attr("height",i.dimension.height-2*t.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(i.text)}}function ee(e,t){return e>t}function et(e,t,i,n){return a=>{let r,l,d=a.sourceBox.swimlane.y+t.swimlanePadding,s=a.targetBox.swimlane.y+t.swimlanePadding,m=ee(d,s),c=a.sourceBox.x+2*a.sourceBox.dimension.width/3,x=a.targetBox.x+a.targetBox.dimension.width/3;o.R.debug(`rendering relation up=${m} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),m?(r=d,l=s+a.targetBox.dimension.height):(r=d+a.sourceBox.dimension.height,l=s);let u=n.emRelationStroke??a.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",u).attr("stroke-width","1").attr("marker-end",`url(#${i})`).attr("d",`M${c} ${r} L${x} ${l}`)}}function ei(e,t,i,n){return a=>{let r=e.append("g").attr("class","em-swimlane"),o=n.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=n.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",t+i.swimlanePadding).attr("height",a.height).attr("fill",o).attr("stroke",l),r.append("text").attr("font-weight",i.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}(0,l.K)(Q,"renderD3Box"),(0,l.K)(ee,"dirUpwards"),(0,l.K)(et,"renderD3Relation"),(0,l.K)(ei,"renderD3Swimlane");var en={parser:Y,db:Z,renderer:{draw:(0,l.K)(function(e,t,i,n){if(o.R.debug("in eventmodeling renderer",e+"\n","id:",t,i),!J)throw Error("EventModeling config not found");let a=n.db,{themeVariables:l,eventmodeling:d}=(0,r.D7)(),m=(0,s.Ltv)(`[id="${t}"]`),c=a.getDiagramProps(),x=a.getState(),u=`em-arrowhead-${t}`,f=l.emArrowhead??"#000000";x.sortedSwimlanesArray.forEach(ei(m,x.maxR,c,l)),x.boxes.forEach(Q(m,c)),x.relations.forEach(et(m,c,u,l)),m.append("defs").append("marker").attr("id",u).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",f),(0,r.mj)(void 0,m,d?.padding??30,d?.useMaxWidth)},"draw")},styles:(0,l.K)(e=>"","getStyles")}},84492:(e,t,i)=>{function n(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}i.d(t,{S:()=>n}),(0,i(91158).K)(n,"populateCommonDb")}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8276-151a7d1fbd73cc2c.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8276-151a7d1fbd73cc2c.js deleted file mode 100644 index 44cc53024..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8276-151a7d1fbd73cc2c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8276],{512:(e,t,n)=>{"use strict";n.d(t,{qy:()=>b,JW:()=>y});class o{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function r(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new o(n,r,t)}o.prototype.normal={},o.prototype.property={},o.prototype.space=void 0;var i=n(8232),a=n(50458);function l(e){let t={},n={};for(let[o,r]of Object.entries(e.properties)){let l=new a.E(o,e.transform(e.attributes||{},o),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(l.mustUseProperty=!0),t[o]=l,n[(0,i.S)(o)]=o,n[(0,i.S)(l.attribute)]=o}return new o(t,n,e.space)}var s=n(16867);let c=l({properties:{ariaActiveDescendant:null,ariaAtomic:s.booleanish,ariaAutoComplete:null,ariaBusy:s.booleanish,ariaChecked:s.booleanish,ariaColCount:s.number,ariaColIndex:s.number,ariaColSpan:s.number,ariaControls:s.spaceSeparated,ariaCurrent:null,ariaDescribedBy:s.spaceSeparated,ariaDetails:null,ariaDisabled:s.booleanish,ariaDropEffect:s.spaceSeparated,ariaErrorMessage:null,ariaExpanded:s.booleanish,ariaFlowTo:s.spaceSeparated,ariaGrabbed:s.booleanish,ariaHasPopup:null,ariaHidden:s.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s.spaceSeparated,ariaLevel:s.number,ariaLive:null,ariaModal:s.booleanish,ariaMultiLine:s.booleanish,ariaMultiSelectable:s.booleanish,ariaOrientation:null,ariaOwns:s.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:s.number,ariaPressed:s.booleanish,ariaReadOnly:s.booleanish,ariaRelevant:null,ariaRequired:s.booleanish,ariaRoleDescription:s.spaceSeparated,ariaRowCount:s.number,ariaRowIndex:s.number,ariaRowSpan:s.number,ariaSelected:s.booleanish,ariaSetSize:s.number,ariaSort:null,ariaValueMax:s.number,ariaValueMin:s.number,ariaValueNow:s.number,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function u(e,t){return t in e?e[t]:t}function d(e,t){return u(e,t.toLowerCase())}let p=l({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:s.commaSeparated,acceptCharset:s.spaceSeparated,accessKey:s.spaceSeparated,action:null,allow:null,allowFullScreen:s.boolean,allowPaymentRequest:s.boolean,allowUserMedia:s.boolean,alt:null,as:null,async:s.boolean,autoCapitalize:null,autoComplete:s.spaceSeparated,autoFocus:s.boolean,autoPlay:s.boolean,blocking:s.spaceSeparated,capture:null,charSet:null,checked:s.boolean,cite:null,className:s.spaceSeparated,cols:s.number,colSpan:null,content:null,contentEditable:s.booleanish,controls:s.boolean,controlsList:s.spaceSeparated,coords:s.number|s.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:s.boolean,defer:s.boolean,dir:null,dirName:null,disabled:s.boolean,download:s.overloadedBoolean,draggable:s.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:s.boolean,formTarget:null,headers:s.spaceSeparated,height:s.number,hidden:s.overloadedBoolean,high:s.number,href:null,hrefLang:null,htmlFor:s.spaceSeparated,httpEquiv:s.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:s.boolean,inputMode:null,integrity:null,is:null,isMap:s.boolean,itemId:null,itemProp:s.spaceSeparated,itemRef:s.spaceSeparated,itemScope:s.boolean,itemType:s.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:s.boolean,low:s.number,manifest:null,max:null,maxLength:s.number,media:null,method:null,min:null,minLength:s.number,multiple:s.boolean,muted:s.boolean,name:null,nonce:null,noModule:s.boolean,noValidate:s.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:s.boolean,optimum:s.number,pattern:null,ping:s.spaceSeparated,placeholder:null,playsInline:s.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:s.boolean,referrerPolicy:null,rel:s.spaceSeparated,required:s.boolean,reversed:s.boolean,rows:s.number,rowSpan:s.number,sandbox:s.spaceSeparated,scope:null,scoped:s.boolean,seamless:s.boolean,selected:s.boolean,shadowRootClonable:s.boolean,shadowRootDelegatesFocus:s.boolean,shadowRootMode:null,shape:null,size:s.number,sizes:null,slot:null,span:s.number,spellCheck:s.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:s.number,step:null,style:null,tabIndex:s.number,target:null,title:null,translate:null,type:null,typeMustMatch:s.boolean,useMap:null,value:s.booleanish,width:s.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:s.spaceSeparated,axis:null,background:null,bgColor:null,border:s.number,borderColor:null,bottomMargin:s.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:s.boolean,declare:s.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:s.number,leftMargin:s.number,link:null,longDesc:null,lowSrc:null,marginHeight:s.number,marginWidth:s.number,noResize:s.boolean,noHref:s.boolean,noShade:s.boolean,noWrap:s.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:s.number,rules:null,scheme:null,scrolling:s.booleanish,standby:null,summary:null,text:null,topMargin:s.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:s.boolean,disableRemotePlayback:s.boolean,prefix:null,property:null,results:s.number,security:null,unselectable:null},space:"html",transform:d}),f=l({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:s.commaOrSpaceSeparated,accentHeight:s.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:s.number,amplitude:s.number,arabicForm:null,ascent:s.number,attributeName:null,attributeType:null,azimuth:s.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:s.number,by:null,calcMode:null,capHeight:s.number,className:s.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:s.number,diffuseConstant:s.number,direction:null,display:null,dur:null,divisor:s.number,dominantBaseline:null,download:s.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:s.number,enableBackground:null,end:null,event:null,exponent:s.number,externalResourcesRequired:null,fill:null,fillOpacity:s.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:s.commaSeparated,g2:s.commaSeparated,glyphName:s.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:s.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:s.number,horizOriginX:s.number,horizOriginY:s.number,id:null,ideographic:s.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:s.number,k:s.number,k1:s.number,k2:s.number,k3:s.number,k4:s.number,kernelMatrix:s.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:s.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:s.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:s.number,overlineThickness:s.number,paintOrder:null,panose1:null,path:null,pathLength:s.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:s.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:s.number,pointsAtY:s.number,pointsAtZ:s.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:s.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:s.commaOrSpaceSeparated,rev:s.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:s.commaOrSpaceSeparated,requiredFeatures:s.commaOrSpaceSeparated,requiredFonts:s.commaOrSpaceSeparated,requiredFormats:s.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:s.number,specularExponent:s.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:s.number,strikethroughThickness:s.number,string:null,stroke:null,strokeDashArray:s.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:s.number,strokeOpacity:s.number,strokeWidth:null,style:null,surfaceScale:s.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:s.commaOrSpaceSeparated,tabIndex:s.number,tableValues:null,target:null,targetX:s.number,targetY:s.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:s.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:s.number,underlineThickness:s.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:s.number,values:null,vAlphabetic:s.number,vMathematical:s.number,vectorEffect:null,vHanging:s.number,vIdeographic:s.number,version:null,vertAdvY:s.number,vertOriginX:s.number,vertOriginY:s.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:s.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:u}),h=l({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),g=l({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:d}),m=l({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),b=r([c,p,h,g,m],"html"),y=r([c,f,h,g,m],"svg")},864:(e,t,n)=>{var o=n(37427),r=n(86009);e.exports=function e(t,n){var i;this.next||(r(e.prototype),r(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(e,r,a){function l(){return new n(function(r,i){!function e(r,i,a,l){try{var s=t[r](i),c=s.value;return c instanceof o?n.resolve(c.v).then(function(t){e("next",t,a,l)},function(t){e("throw",t,a,l)}):n.resolve(c).then(function(e){s.value=e,a(s)},function(t){return e("throw",t,a,l)})}catch(e){l(e)}}(e,a,r,i)})}return i=i?i.then(l,l):l()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},3261:(e,t,n)=>{"use strict";function o(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let o=0,r=n.indexOf(t);for(;-1!==r;)o++,r=n.indexOf(t,r+t.length);return o}n.d(t,{A:()=>eD});var r=n(48924),i=n(93987),a=n(72096),l=n(64085);let s="phrasing",c=["autolink","link","image","label"];function u(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function d(e){this.config.enter.autolinkProtocol.call(this,e)}function p(e){this.config.exit.autolinkProtocol.call(this,e)}function f(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];(0,r.ok)("link"===t.type),t.url="http://"+this.sliceSerialize(e)}function h(e){this.config.exit.autolinkEmail.call(this,e)}function g(e){this.exit(e)}function m(e){!function(e,t,n){let o=(0,l.C)((n||{}).ignore||[]),r=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],o=-1;for(;++o0?{type:"text",value:i}:void 0),!1===i?o.lastIndex=n+1:(l!==n&&u.push({type:"text",value:e.value.slice(l,n)}),Array.isArray(i)?u.push(...i):i&&u.push(i),l=n+d[0].length,c=!0),!o.global)break;d=o.exec(e.value)}return c?(l?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=o(e,"("),a=o(e,")");for(;-1!==r&&i>a;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),a++;return[e,n]}(n+r);if(!l[0])return!1;let s={type:"link",title:null,url:a+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[s,{type:"text",value:l[1]}]:s}function y(e,t,n,o){return!(!v(o,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function v(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,i.Ny)(n)||(0,i.es)(n))&&(!t||47!==n)}var k=n(11470);function x(){this.buffer()}function w(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function S(){this.buffer()}function A(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function C(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,r.ok)("footnoteReference"===n.type),n.identifier=(0,k.B)(this.sliceSerialize(e)).toLowerCase(),n.label=t}function M(e){this.exit(e)}function z(e){let t=this.resume(),n=this.stack[this.stack.length-1];(0,r.ok)("footnoteDefinition"===n.type),n.identifier=(0,k.B)(this.sliceSerialize(e)).toLowerCase(),n.label=t}function T(e){this.exit(e)}function E(e,t,n,o){let r=n.createTracker(o),i=r.move("[^"),a=n.enter("footnoteReference"),l=n.enter("reference");return i+=r.move(n.safe(n.associationId(e),{after:"]",before:i})),l(),a(),i+=r.move("]")}function P(e,t,n){return 0===t?e:F(e,t,n)}function F(e,t,n){return(n?"":" ")+e}E.peek=function(){return"["};let O=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function D(e){this.enter({type:"delete",children:[]},e)}function j(e){this.exit(e)}function R(e,t,n,o){let r=n.createTracker(o),i=n.enter("strikethrough"),a=r.move("~~");return a+=n.containerPhrasing(e,{...r.current(),before:a,after:"~"}),a+=r.move("~~"),i(),a}function H(e){return e.length}function L(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}R.peek=function(){return"~"};n(22507);var B=n(49752);n(88058);n(22837);function N(e,t,n){let o=e.value||"",r="`",i=-1;for(;RegExp("(^|[^`])"+r+"([^`]|$)").test(o);)r+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++i-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===r||"mixed"===r&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));let l=n.createTracker(o);l.move(i+" ".repeat(a-i.length)),l.shift(a);let s=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,l.current()),function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?i:i+" ".repeat(a-i.length))+e});return s(),c}};function I(e){let t=e._align;(0,r.ok)(t,"expected `_align` on table"),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function _(e){this.exit(e),this.data.inTable=void 0}function V(e){this.enter({type:"tableRow",children:[]},e)}function U(e){this.exit(e)}function q(e){this.enter({type:"tableCell",children:[]},e)}function $(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,G));let n=this.stack[this.stack.length-1];(0,r.ok)("inlineCode"===n.type),n.value=t,this.exit(e)}function G(e,t){return"|"===t?t:e}function Y(e){let t=this.stack[this.stack.length-2];(0,r.ok)("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function K(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];(0,r.ok)("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let o,r=t.children,i=-1;for(;++i0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}ea[43]=ei,ea[45]=ei,ea[46]=ei,ea[95]=ei,ea[72]=[ei,er],ea[104]=[ei,er],ea[87]=[ei,eo],ea[119]=[ei,eo];var ef=n(17843),eh=n(48620);let eg={tokenize:function(e,t,n){let o=this;return(0,eh.N)(e,function(e){let r=o.events[o.events.length-1];return r&&"gfmFootnoteDefinitionIndent"===r[1].type&&4===r[2].sliceSerialize(r[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function em(e,t,n){let o,r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);for(;i--;){let e=r.events[i][1];if("labelImage"===e.type){o=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!o||!o._balanced)return n(i);let l=(0,k.B)(r.sliceSerialize({start:o.end,end:r.now()}));return 94===l.codePointAt(0)&&a.includes(l.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)):n(i)}}function eb(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;let i={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},l=[e[n+1],e[n+2],["enter",o,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(n,e.length-n+1,...l),e}function ey(e,t,n){let o,r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),l=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(s){if(l>999||93===s&&!o||null===s||91===s||(0,i.Ee)(s))return n(s);if(93===s){e.exit("chunkString");let o=e.exit("gfmFootnoteCallString");return a.includes((0,k.B)(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return(0,i.Ee)(s)||(o=!0),l++,e.consume(s),92===s?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function ev(e,t,n){let o,r,a=this,l=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(s>999||93===t&&!r||null===t||91===t||(0,i.Ee)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return o=(0,k.B)(a.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return(0,i.Ee)(t)||(r=!0),s++,e.consume(t),92===t?d:u}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),l.includes(o)||l.push(o),(0,eh.N)(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function ek(e,t,n){return e.check(ef.B,t,e.attempt(eg,t,n))}function ex(e){e.exit("gfmFootnoteDefinition")}var ew=n(47388),eS=n(14332);class eA{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,o){let r=0;if(0!==n||0!==o.length){for(;r0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let o=n.pop();for(;o;){for(let t of o)e.push(t);o=n.pop()}this.map.length=0}}function eC(e,t,n){let o,r=this,a=0,l=0;return function(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?v:s;return i===v&&r.parser.lazy[r.now().line]?n(e):i(e)};function s(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(o=!0,l+=1),c(n)}function c(t){return null===t?n(t):(0,i.HP)(t)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p):n(t):(0,i.On)(t)?(0,eh.N)(e,c,"whitespace")(t):(l+=1,o&&(o=!1,a+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),u(t))}function u(t){return null===t||124===t||(0,i.Ee)(t)?(e.exit("data"),c(t)):(e.consume(t),92===t?d:u)}function d(t){return 92===t||124===t?(e.consume(t),u):u(t)}function p(t){return(r.interrupt=!1,r.parser.lazy[r.now().line])?n(t):(e.enter("tableDelimiterRow"),o=!1,(0,i.On)(t))?(0,eh.N)(e,f,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t)}function f(t){return 45===t||58===t?g(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):n(t)}function h(t){return(0,i.On)(t)?(0,eh.N)(e,g,"whitespace")(t):g(t)}function g(t){return 58===t?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(l+=1,m(t)):null===t||(0,i.HP)(t)?y(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(n))}(t)):n(t)}function b(t){return(0,i.On)(t)?(0,eh.N)(e,y,"whitespace")(t):y(t)}function y(r){if(124===r)return f(r);if(null===r||(0,i.HP)(r))return o&&a===l?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(r)):n(r);return n(r)}function v(t){return e.enter("tableRow"),k(t)}function k(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),k):null===n||(0,i.HP)(n)?(e.exit("tableRow"),t(n)):(0,i.On)(n)?(0,eh.N)(e,k,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||(0,i.Ee)(t)?(e.exit("data"),k(t)):(e.consume(t),92===t?w:x)}function w(t){return 92===t||124===t?(e.consume(t),x):x(t)}}function eM(e,t){let n,o,r,i=-1,a=!0,l=0,s=[0,0,0,0],c=[0,0,0,0],u=!1,d=0,p=new eA;for(;++in[2]+1){let t=n[2]+1,o=n[3]-n[2]-1;e.add(t,o,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==r&&(i.end=Object.assign({},eE(t.events,r)),e.add(r,0,[["exit",i,t]]),i=void 0),i}function eT(e,t,n,o,r){let i=[],a=eE(t.events,n);r&&(r.end=Object.assign({},a),i.push(["exit",r,t])),o.end=Object.assign({},a),i.push(["exit",o,t]),e.add(n+1,0,i)}function eE(e,t){let n=e[t],o="enter"===n[0]?"start":"end";return n[1][o]}let eP={name:"tasklistCheck",tokenize:function(e,t,n){let o=this;return function(t){return null===o.previous&&o._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),r):n(t)};function r(t){return(0,i.Ee)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(t)}function l(o){return(0,i.HP)(o)?t(o):(0,i.On)(o)?e.check({tokenize:eF},t,n)(o):n(o)}}};function eF(e,t,n){return(0,eh.N)(e,function(e){return null===e?n(e):t(e)},"whitespace")}let eO={};function eD(e){let t,n=e||eO,o=this.data(),r=o.micromarkExtensions||(o.micromarkExtensions=[]),i=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),a=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);r.push((0,X.y)([{text:ea},{document:{91:{name:"gfmFootnoteDefinition",tokenize:ev,continuation:{tokenize:ek},exit:ex}},text:{91:{name:"gfmFootnoteCall",tokenize:ey},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:em,resolveTo:eb}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,o){let r=this.previous,i=this.events,a=0;return function(l){return 126===r&&"characterEscape"!==i[i.length-1][1].type?o(l):(e.enter("strikethroughSequenceTemporary"),function i(l){let s=(0,B.S)(r);if(126===l)return a>1?o(l):(e.consume(l),a++,i);if(a<2&&!t)return o(l);let c=e.exit("strikethroughSequenceTemporary"),u=(0,B.S)(l);return c._open=!u||2===u&&!!s,c._close=!s||2===s&&!!u,n(l)}(l))}},resolveAll:function(e,t){let n=-1;for(;++n0&&(i.shift(4),a+=i.move((t?"\n":" ")+o.indentLines(o.containerFlow(e,i.current()),t?F:P))),l(),a},footnoteReference:E},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:O}],handlers:{delete:R}},function(e){let t=e||{},n=t.tableCellPadding,o=t.tablePipeAlign,r=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let o=W.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(o=o.replace(/\|/g,"\\$&")),o},table:function(e,t,n,o){return l(function(e,t,n){let o=e.children,r=-1,i=[],a=t.enter("table");for(;++rc&&(c=e[u].length);++is[i])&&(s[i]=e)}t.push(a)}a[u]=t,l[u]=o}let p=-1;if("object"==typeof o&&"length"in o)for(;++ps[p]&&(s[p]=r),h[p]=r),f[p]=a}a.splice(1,0,f),l.splice(1,0,h),u=-1;let g=[];for(;++u{"use strict";let o;function r(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function i(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function a(e,t,n,o){if("function"==typeof t){let[r,a]=i(o);t=t(void 0!==n?n:e.custom,r,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[r,a]=i(o);t=t(void 0!==n?n:e.custom,r,a)}return t}function l(e,t,n){let o=e.getProps();return a(o,t,void 0!==n?n:o.custom,e)}function s(e,t){return e?.[t]??e?.default??e}n.d(t,{P:()=>ih});let c=e=>e,u={},d=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],p={value:null,addProjectionMetrics:null};function f(e,t){let n=!1,o=!0,r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=d.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,o=new Set,r=!1,i=!1,a=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},s=0;function c(t){a.has(t)&&(u.schedule(t),e()),s++,t(l)}let u={schedule:(e,t=!1,i=!1)=>{let l=i&&r?n:o;return t&&a.add(e),l.has(e)||l.add(e),e},cancel:e=>{o.delete(e),a.delete(e)},process:e=>{if(l=e,r){i=!0;return}r=!0,[n,o]=[o,n],n.forEach(c),t&&p.value&&p.value.frameloop[t].push(s),s=0,n.clear(),r=!1,i&&(i=!1,u.process(e))}};return u}(i,t?n:void 0),e),{}),{setup:l,read:s,resolveKeyframes:c,preUpdate:f,update:h,preRender:g,render:m,postRender:b}=a,y=()=>{let i=u.useManualTiming?r.timestamp:performance.now();n=!1,u.useManualTiming||(r.delta=o?1e3/60:Math.max(Math.min(i-r.timestamp,40),1)),r.timestamp=i,r.isProcessing=!0,l.process(r),s.process(r),c.process(r),f.process(r),h.process(r),g.process(r),m.process(r),b.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(y))};return{schedule:d.reduce((t,i)=>{let l=a[i];return t[i]=(t,i=!1,a=!1)=>(!n&&(n=!0,o=!0,r.isProcessing||e(y)),l.schedule(t,i,a)),t},{}),cancel:e=>{for(let t=0;t-1&&e.splice(n,1)}class S{constructor(){this.subscriptions=[]}add(e){return x(this.subscriptions,e),()=>w(this.subscriptions,e)}notify(e,t,n){let o=this.subscriptions.length;if(o)if(1===o)this.subscriptions[0](e,t,n);else for(let r=0;r(void 0===o&&C.set(m.isProcessing||u.useManualTiming?m.timestamp:performance.now()),o),set:e=>{o=e,queueMicrotask(A)}},M={current:void 0};class z{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=C.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty();t&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=C.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new S);let n=this.events[e].add(t);return"change"===e?()=>{n(),h.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return M.current&&M.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=C.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function T(e,t){return new z(e,t)}let E=e=>Array.isArray(e),P=e=>!!(e&&e.getVelocity);function F(e,t){let n=e.getValue("willChange");if(P(n)&&n.add)return n.add(t);if(!n&&u.WillChange){let n=new u.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let O=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),D="data-"+O("framerAppearId"),j=(e,t)=>n=>t(e(n)),R=(...e)=>e.reduce(j),H=(e,t,n)=>n>t?t:n1e3*e,B={layout:0,mainThread:0,waapi:0},N=()=>{},W=()=>{},I=e=>t=>"string"==typeof t&&t.startsWith(e),_=I("--"),V=I("var(--"),U=e=>!!V(e)&&q.test(e.split("/*")[0].trim()),q=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},G={...$,transform:e=>H(0,1,e)},Y={...$,default:1},K=e=>Math.round(1e5*e)/1e5,Q=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,X=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Z=(e,t)=>n=>!!("string"==typeof n&&X.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),J=(e,t,n)=>o=>{if("string"!=typeof o)return o;let[r,i,a,l]=o.match(Q);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}},ee={...$,transform:e=>Math.round(H(0,255,e))},et={test:Z("rgb","red"),parse:J("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+ee.transform(e)+", "+ee.transform(t)+", "+ee.transform(n)+", "+K(G.transform(o))+")"},en={test:Z("#"),parse:function(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}},transform:et.transform},eo=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),er=eo("deg"),ei=eo("%"),ea=eo("px"),el=eo("vh"),es=eo("vw"),ec={...ei,parse:e=>ei.parse(e)/100,transform:e=>ei.transform(100*e)},eu={test:Z("hsl","hue"),parse:J("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+ei.transform(K(t))+", "+ei.transform(K(n))+", "+K(G.transform(o))+")"},ed={test:e=>et.test(e)||en.test(e)||eu.test(e),parse:e=>et.test(e)?et.parse(e):eu.test(e)?eu.parse(e):en.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?et.transform(e):eu.transform(e)},ep=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ef="number",eh="color",eg=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function em(e){let t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[],i=0,a=t.replace(eg,e=>(ed.test(e)?(o.color.push(i),r.push(eh),n.push(ed.parse(e))):e.startsWith("var(")?(o.var.push(i),r.push("var"),n.push(e)):(o.number.push(i),r.push(ef),n.push(parseFloat(e))),++i,"${}")).split("${}");return{values:n,split:a,indexes:o,types:r}}function eb(e){return em(e).values}function ey(e){let{split:t,types:n}=em(e),o=t.length;return e=>{let r="";for(let i=0;i"number"==typeof e?0:e,ek={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(Q)?.length||0)+(e.match(ep)?.length||0)>0},parse:eb,createTransformer:ey,getAnimatableNone:function(e){let t=eb(e);return ey(e)(t.map(ev))}};function ex(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ew(e,t){return n=>n>0?t:e}let eS=(e,t,n)=>e+(t-e)*n,eA=(e,t,n)=>{let o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},eC=[en,et,eu];function eM(e){let t=eC.find(t=>t.test(e));if(N(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===eu&&(n=function({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,n/=100;let r=0,i=0,a=0;if(t/=100){let o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;r=ex(l,o,e+1/3),i=ex(l,o,e),a=ex(l,o,e-1/3)}else r=i=a=n;return{red:Math.round(255*r),green:Math.round(255*i),blue:Math.round(255*a),alpha:o}}(n)),n}let ez=(e,t)=>{let n=eM(e),o=eM(t);if(!n||!o)return ew(e,t);let r={...n};return e=>(r.red=eA(n.red,o.red,e),r.green=eA(n.green,o.green,e),r.blue=eA(n.blue,o.blue,e),r.alpha=eS(n.alpha,o.alpha,e),et.transform(r))},eT=new Set(["none","hidden"]);function eE(e,t){return n=>eS(e,t,n)}function eP(e){return"number"==typeof e?eE:"string"==typeof e?U(e)?ew:ed.test(e)?ez:eD:Array.isArray(e)?eF:"object"==typeof e?ed.test(e)?ez:eO:ew}function eF(e,t){let n=[...e],o=n.length,r=e.map((e,n)=>eP(e)(e,t[n]));return e=>{for(let t=0;t{for(let t in o)n[t]=o[t](e);return n}}let eD=(e,t)=>{let n=ek.createTransformer(t),o=em(e),r=em(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?eT.has(e)&&!r.values.length||eT.has(t)&&!o.values.length?function(e,t){return eT.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):R(eF(function(e,t){let n=[],o={color:0,var:0,number:0};for(let r=0;r{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>h.update(t,e),stop:()=>g(t),now:()=>m.isProcessing?m.timestamp:C.now()}},eH=(e,t,n=10)=>{let o="",r=Math.max(Math.round(t/n),2);for(let t=0;t=2e4?1/0:t}function eB(e,t,n){var o,r;let i=Math.max(t-5,0);return o=n-e(i),(r=t-i)?1e3/r*o:0}let eN={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function eW(e,t){return e*Math.sqrt(1-t*t)}let eI=["duration","bounce"],e_=["stiffness","damping","mass"];function eV(e,t){return t.some(t=>void 0!==e[t])}function eU(e=eN.visualDuration,t=eN.bounce){let n,o="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:i}=o,a=o.keyframes[0],l=o.keyframes[o.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:u,mass:d,duration:p,velocity:f,isResolvedFromDuration:h}=function(e){let t={velocity:eN.velocity,stiffness:eN.stiffness,damping:eN.damping,mass:eN.mass,isResolvedFromDuration:!1,...e};if(!eV(e,e_)&&eV(e,eI))if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),o=n*n,r=2*H(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:eN.mass,stiffness:o,damping:r}}else{let n=function({duration:e=eN.duration,bounce:t=eN.bounce,velocity:n=eN.velocity,mass:o=eN.mass}){let r,i;N(e<=L(eN.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=H(eN.minDamping,eN.maxDamping,a),e=H(eN.minDuration,eN.maxDuration,e/1e3),a<1?(r=t=>{let o=t*a,r=o*e;return .001-(o-n)/eW(t,a)*Math.exp(-r)},i=t=>{let o=t*a*e,i=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),s=eW(Math.pow(t,2),a);return(o*n+n-i)*l*(-r(t)+.001>0?-1:1)/s}):(r=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),i=t=>e*e*(n-t)*Math.exp(-t*e));let l=function(e,t,n){let o=n;for(let n=1;n<12;n++)o-=e(o)/t(o);return o}(r,i,5/e);if(e=L(e),isNaN(l))return{stiffness:eN.stiffness,damping:eN.damping,duration:e};{let t=Math.pow(l,2)*o;return{stiffness:t,damping:2*a*Math.sqrt(o*t),duration:e}}}(e);(t={...t,...n,mass:eN.mass}).isResolvedFromDuration=!0}return t}({...o,velocity:-((o.velocity||0)/1e3)}),g=f||0,m=u/(2*Math.sqrt(c*d)),b=l-a,y=Math.sqrt(c/d)/1e3,v=5>Math.abs(b);if(r||(r=v?eN.restSpeed.granular:eN.restSpeed.default),i||(i=v?eN.restDelta.granular:eN.restDelta.default),m<1){let e=eW(y,m);n=t=>l-Math.exp(-m*y*t)*((g+m*y*b)/e*Math.sin(e*t)+b*Math.cos(e*t))}else if(1===m)n=e=>l-Math.exp(-y*e)*(b+(g+y*b)*e);else{let e=y*Math.sqrt(m*m-1);n=t=>{let n=Math.exp(-m*y*t),o=Math.min(e*t,300);return l-n*((g+m*y*b)*Math.sinh(o)+e*b*Math.cosh(o))/e}}let k={calculatedDuration:h&&p||null,next:e=>{let t=n(e);if(h)s.done=e>=p;else{let o=0===e?g:0;m<1&&(o=0===e?L(g):eB(n,e,t));let a=Math.abs(l-t)<=i;s.done=Math.abs(o)<=r&&a}return s.value=s.done?l:t,s},toString:()=>{let e=Math.min(eL(k),2e4),t=eH(t=>k.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return k}function eq({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:a,min:l,max:s,restDelta:c=.5,restSpeed:u}){let d,p,f=e[0],h={done:!1,value:f},g=n*t,m=f+g,b=void 0===a?m:a(m);b!==m&&(g=b-f);let y=e=>-g*Math.exp(-e/o),v=e=>b+y(e),k=e=>{let t=y(e),n=v(e);h.done=Math.abs(t)<=c,h.value=h.done?b:n},x=e=>{let t;if(t=h.value,void 0!==l&&ts){var n;d=e,p=eU({keyframes:[h.value,(n=h.value,void 0===l?s:void 0===s||Math.abs(l-n){let t=!1;return(p||void 0!==d||(t=!0,k(e),x(e)),void 0!==d&&e>=d)?p.next(e-d):(t||k(e),h)}}}eU.applyToOptions=e=>{let t=function(e,t=100,n){let o=n({...e,keyframes:[0,t]}),r=Math.min(eL(o),2e4);return{type:"keyframes",ease:e=>o.next(r*e).value/t,duration:r/1e3}}(e,100,eU);return e.ease=t.ease,e.duration=L(t.duration),e.type="keyframes",e};let e$=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function eG(e,t,n,o){return e===t&&n===o?c:r=>0===r||1===r?r:e$(function(e,t,n,o,r){let i,a,l=0;do(i=e$(a=t+(n-t)/2,o,r)-e)>0?n=a:t=a;while(Math.abs(i)>1e-7&&++l<12);return a}(r,0,1,e,n),t,o)}let eY=eG(.42,0,1,1),eK=eG(0,0,.58,1),eQ=eG(.42,0,.58,1),eX=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,eZ=e=>t=>1-e(1-t),eJ=eG(.33,1.53,.69,.99),e0=eZ(eJ),e1=eX(e0),e2=e=>(e*=2)<1?.5*e0(e):.5*(2-Math.pow(2,-10*(e-1))),e5=e=>1-Math.sin(Math.acos(e)),e3=eZ(e5),e4=eX(e5),e9=e=>Array.isArray(e)&&"number"==typeof e[0],e6={linear:c,easeIn:eY,easeInOut:eQ,easeOut:eK,circIn:e5,circInOut:e4,circOut:e3,backIn:e0,backInOut:e1,backOut:eJ,anticipate:e2},e7=e=>{if(e9(e)){W(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,o,r]=e;return eG(t,n,o,r)}return"string"==typeof e?(W(void 0!==e6[e],`Invalid easing type '${e}'`),e6[e]):e},e8=(e,t,n)=>{let o=t-e;return 0===o?1:(n-e)/o};function te({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){var r;let i=Array.isArray(o)&&"number"!=typeof o[0]?o.map(e7):e7(o),a={done:!1,value:t[0]},l=function(e,t,{clamp:n=!0,ease:o,mixer:r}={}){let i=e.length;if(W(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let l=function(e,t,n){let o=[],r=n||u.mix||ej,i=e.length-1;for(let n=0;n{if(a&&n1)for(;od(H(e[0],e[i-1],t)):d}((r=n&&n.length===t.length?n:function(e){let t=[0];return!function(e,t){let n=e[e.length-1];for(let o=1;o<=t;o++){let r=e8(0,t,o);e.push(eS(n,1,r))}}(t,e.length-1),t}(t),r.map(t=>t*e)),t,{ease:Array.isArray(i)?i:t.map(()=>i||eQ).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=l(t),a.done=t>=e,a)}}let tt=e=>null!==e;function tn(e,{repeat:t,repeatType:n="loop"},o,r=1){let i=e.filter(tt),a=r<0||t&&"loop"!==n&&t%2==1?0:i.length-1;return a&&void 0!==o?o:i[a]}let to={decay:eq,inertia:eq,tween:te,keyframes:te,spring:eU};function tr(e){"string"==typeof e.type&&(e.type=to[e.type])}class ti{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let ta=e=>e/100;class tl extends ti{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=(e=!0)=>{if(e){let{motionValue:e}=this.options;e&&e.updatedAt!==C.now()&&this.tick(C.now())}this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},B.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;tr(e);let{type:t=te,repeat:n=0,repeatDelay:o=0,repeatType:r,velocity:i=0}=e,{keyframes:a}=e,l=t||te;l!==te&&"number"!=typeof a[0]&&(this.mixKeyframes=R(ta,ej(a[0],a[1])),a=[0,100]);let s=l({...e,keyframes:a});"mirror"===r&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-i})),null===s.calculatedDuration&&(s.calculatedDuration=eL(s));let{calculatedDuration:c}=s;this.calculatedDuration=c,this.resolvedDuration=c+o,this.totalDuration=this.resolvedDuration*(n+1)-o,this.generator=s}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:n,totalDuration:o,mixKeyframes:r,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:s=0,keyframes:c,repeat:u,repeatType:d,repeatDelay:p,type:f,onUpdate:h,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-o/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let m=this.currentTime-s*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?m<0:m>o;this.currentTime=Math.max(m,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=o);let y=this.currentTime,v=n;if(u){let e=Math.min(this.currentTime,o)/a,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,u+1))%2&&("reverse"===d?(n=1-n,p&&(n-=p/a)):"mirror"===d&&(v=i)),y=H(0,1,n)*a}let k=b?{done:!1,value:c[0]}:v.next(y);r&&(k.value=r(k.value));let{done:x}=k;b||null===l||(x=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return w&&f!==eq&&(k.value=tn(c,this.options,g,this.speed)),h&&h(k.value),w&&this.finish(),k}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get time(){return this.currentTime/1e3}set time(e){e=L(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(C.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=eR,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(C.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,B.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let ts=e=>180*e/Math.PI,tc=e=>td(ts(Math.atan2(e[1],e[0]))),tu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:tc,rotateZ:tc,skewX:e=>ts(Math.atan(e[1])),skewY:e=>ts(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},td=e=>((e%=360)<0&&(e+=360),e),tp=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),tf=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),th={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tp,scaleY:tf,scale:e=>(tp(e)+tf(e))/2,rotateX:e=>td(ts(Math.atan2(e[6],e[5]))),rotateY:e=>td(ts(Math.atan2(-e[2],e[0]))),rotateZ:tc,rotate:tc,skewX:e=>ts(Math.atan(e[4])),skewY:e=>ts(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function tg(e){return+!!e.includes("scale")}function tm(e,t){let n,o;if(!e||"none"===e)return tg(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)n=th,o=r;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=tu,o=t}if(!o)return tg(t);let i=n[t],a=o[1].split(",").map(tb);return"function"==typeof i?i(a):a[i]}function tb(e){return parseFloat(e.trim())}let ty=e=>e===$||e===ea,tv=new Set(["x","y","z"]),tk=y.filter(e=>!tv.has(e)),tx={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>tm(t,"x"),y:(e,{transform:t})=>tm(t,"y")};tx.translateX=tx.x,tx.translateY=tx.y;let tw=new Set,tS=!1,tA=!1,tC=!1;function tM(){if(tA){let e=Array.from(tw).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return tk.forEach(n=>{let o=e.getValue(n);void 0!==o&&(t.push([n,o.get()]),o.set(+!!n.startsWith("scale")))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}tA=!1,tS=!1,tw.forEach(e=>e.complete(tC)),tw.clear()}function tz(){tw.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tA=!0)})}class tT{constructor(e,t,n,o,r,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=o,this.element=r,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(tw.add(this),tS||(tS=!0,h.read(tz),h.resolveKeyframes(tM))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:o}=this;if(null===e[0]){let r=o?.get(),i=e[e.length-1];if(void 0!==r)e[0]=r;else if(n&&t){let o=n.readValue(t,i);null!=o&&(e[0]=o)}void 0===e[0]&&(e[0]=i),o&&void 0===r&&o.set(e[0])}for(let t=1;t(void 0===t&&(t=e()),t)}let tP=tE(()=>void 0!==window.ScrollTimeline),tF={},tO=function(e,t){let n=tE(e);return()=>tF[t]??n()}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),tD=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,tj={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tD([0,.65,.55,1]),circOut:tD([.55,0,1,.45]),backIn:tD([.31,.01,.66,-.59]),backOut:tD([.33,1.53,.69,.99])};function tR(e){return"function"==typeof e&&"applyToOptions"in e}class tH extends ti{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:n,keyframes:o,pseudoElement:r,allowFlatten:i=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!r,this.allowFlatten=i,this.options=e,W("string"!=typeof e.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let s=function({type:e,...t}){return tR(e)&&tO()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:o=0,duration:r=300,repeat:i=0,repeatType:a="loop",ease:l="easeOut",times:s}={},c){let u={[t]:n};s&&(u.offset=s);let d=function e(t,n){if(t)return"function"==typeof t?tO()?eH(t,n):"ease-out":e9(t)?tD(t):Array.isArray(t)?t.map(t=>e(t,n)||tj.easeOut):tj[t]}(l,r);Array.isArray(d)&&(u.easing=d),p.value&&B.waapi++;let f={delay:o,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"};c&&(f.pseudoElement=c);let h=e.animate(u,f);return p.value&&h.finished.finally(()=>{B.waapi--}),h}(t,n,o,s,r),!1===s.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let e=tn(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):function(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}(t,n,e),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.finishedTime=null,this.animation.currentTime=L(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&tP())?(this.animation.timeline=e,c):t(this)}}let tL={anticipate:e2,backInOut:e1,circInOut:e4};class tB extends tH{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in tL&&(e.ease=tL[e.ease])}(e),tr(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:o,element:r,...i}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new tl({...i,autoplay:!1}),l=L(this.finishedTime??this.time);t.setWithVelocity(a.sample(l-10).value,a.sample(l).value,10),a.stop()}}let tN=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(ek.test(e)||"0"===e)&&!e.startsWith("url("));var tW,tI,t_=n(34944);let tV=new Set(["opacity","clipPath","filter","transform"]),tU=tE(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class tq extends ti{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:i="loop",keyframes:a,name:l,motionValue:s,element:c,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=C.now();let d={autoplay:e,delay:t,type:n,repeat:o,repeatDelay:r,repeatType:i,name:l,motionValue:s,element:c,...u},p=c?.KeyframeResolver||tT;this.keyframeResolver=new p(a,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),l,s,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,o){this.keyframeResolver=void 0;let{name:r,type:i,velocity:a,delay:l,isHandoff:s,onUpdate:d}=n;this.resolvedAt=C.now(),!function(e,t,n,o){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let i=e[e.length-1],a=tN(r,t),l=tN(i,t);return N(a===l,`You are trying to animate ${t} from "${r}" to "${i}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${i} via the \`style\` property.`),!!a&&!!l&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=!s&&function(e){let{motionValue:t,name:n,repeatDelay:o,repeatType:r,damping:i,type:a}=e;if(!(0,t_.s)(t?.owner?.current))return!1;let{onUpdate:l,transformTemplate:s}=t.owner.getProps();return tU()&&n&&tV.has(n)&&("transform"!==n||!s)&&!l&&!o&&"mirror"!==r&&0!==i&&"inertia"!==a}(p)?new tB({...p,element:p.motionValue.owner.current}):new tl(p);f.finished.then(()=>this.notifyFinished()).catch(c),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tC=!0,tz(),tM(),tC=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let t$=e=>null!==e,tG={type:"spring",stiffness:500,damping:25,restSpeed:10},tY={type:"keyframes",duration:.8},tK={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tQ=(e,t,n,o={},r,i)=>a=>{let l=s(o,e)||{},c=l.delay||o.delay||0,{elapsed:d=0}=o;d-=L(c);let p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:r};!function({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:i,repeatType:a,repeatDelay:l,from:s,elapsed:c,...u}){return!!Object.keys(u).length}(l)&&Object.assign(p,((e,{keyframes:t})=>t.length>2?tY:v.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:tG:tK)(e,p)),p.duration&&(p.duration=L(p.duration)),p.repeatDelay&&(p.repeatDelay=L(p.repeatDelay)),void 0!==p.from&&(p.keyframes[0]=p.from);let f=!1;if(!1!==p.type&&(0!==p.duration||p.repeatDelay)||(p.duration=0,0===p.delay&&(f=!0)),(u.instantAnimations||u.skipAnimations)&&(f=!0,p.duration=0,p.delay=0),p.allowFlatten=!l.type&&!l.ease,f&&!i&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:n="loop"},o){let r=e.filter(t$),i=t&&"loop"!==n&&t%2==1?0:r.length-1;return r[i]}(p.keyframes,l);if(void 0!==e)return void h.update(()=>{p.onUpdate(e),p.onComplete()})}return l.isSync?new tl(p):new tq(p)};function tX(e,t,{delay:n=0,transitionOverride:o,type:r}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...c}=t;o&&(i=o);let u=[],d=r&&e.animationState&&e.animationState.getState()[r];for(let t in c){let o=e.getValue(t,e.latestValues[t]??null),r=c[t];if(void 0===r||d&&function({protectedKeys:e,needsAnimating:t},n){let o=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,o}(d,t))continue;let a={delay:n,...s(i||{},t)},l=o.get();if(void 0!==l&&!o.isAnimating&&!Array.isArray(r)&&r===l&&!a.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){let n=e.props[D];if(n){let e=window.MotionHandoffAnimation(n,t,h);null!==e&&(a.startTime=e,p=!0)}}F(e,t),o.start(tQ(t,o,r,e.shouldReduceMotion&&k.has(t)?{type:!1}:a,e,p));let f=o.animation;f&&u.push(f)}return a&&Promise.all(u).then(()=>{h.update(()=>{a&&function(e,t){let{transitionEnd:n={},transition:o={},...r}=l(e,t)||{};for(let t in r={...r,...n}){var i;let n=E(i=r[t])?i[i.length-1]||0:i;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,T(n))}}(e,a)})}),u}function tZ(e,t,n={}){let o=l(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(r=n.transitionOverride);let i=o?()=>Promise.all(tX(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(o=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:l}=r;return function(e,t,n=0,o=0,r=1,i){let a=[],l=(e.variantChildren.size-1)*o,s=1===r?(e=0)=>e*o:(e=0)=>l-e*o;return Array.from(e.variantChildren).sort(tJ).forEach((e,o)=>{e.notify("AnimationStart",t),a.push(tZ(e,t,{...i,delay:n+s(o)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+o,a,l,n)}:()=>Promise.resolve(),{when:s}=r;if(!s)return Promise.all([i(),a(n.delay)]);{let[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then(()=>t())}}function tJ(e,t){return e.sortNodePosition(t)}function t0(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let o=0;oPromise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let o;if(e.notify("AnimationStart",t),Array.isArray(t))o=Promise.all(t.map(t=>tZ(e,t,n)));else if("string"==typeof t)o=tZ(e,t,n);else{let r="function"==typeof t?l(e,t,n.custom):t;o=Promise.all(tX(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=t7(),o=!0,i=t=>(n,o)=>{let r=l(e,o,"exit"===t?e.presenceContext?.custom:void 0);if(r){let{transition:e,transitionEnd:t,...o}=r;n={...n,...o,...t}}return n};function a(a){let{props:s}=e,c=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;ef&&y,S=!1,A=Array.isArray(b)?b:[b],C=A.reduce(i(l),{});!1===v&&(C={});let{prevResolvedValues:M={}}=m,z={...M,...C},T=t=>{w=!0,d.has(t)&&(S=!0,d.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in z){let t=C[e],n=M[e];if(!p.hasOwnProperty(e))(E(t)&&E(n)?t0(t,n):t===n)?void 0!==t&&d.has(e)?T(e):m.protectedKeys[e]=!0:null!=t?T(e):d.add(e)}m.prevProp=b,m.prevResolvedValues=C,m.isActive&&(p={...p,...C}),o&&e.blockInitialAnimation&&(w=!1);let P=!(k&&x)||S;w&&P&&u.push(...A.map(e=>({animation:e,options:{type:l}})))}if(d.size){let t={};if("boolean"!=typeof s.initial){let n=l(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}d.forEach(n=>{let o=e.getBaseTarget(n),r=e.getValue(n);r&&(r.liveStyle=!0),t[n]=o??null}),u.push({animation:t})}let m=!!u.length;return o&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(m=!1),o=!1,m?t(u):Promise.resolve()}return{animateChanges:a,setActive:function(t,o){if(n[t].isActive===o)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,o)),n[t].isActive=o;let r=a(t);for(let e in n)n[e].protectedKeys={};return r},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=t7(),o=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();r(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let nt=0;class nn extends t8{constructor(){super(...arguments),this.id=nt++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let o=this.node.animationState.setActive("exit",!e);t&&!e&&o.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let no={x:!1,y:!1};function nr(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}let ni=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function na(e){return{point:{x:e.pageX,y:e.pageY}}}function nl(e,t,n,o){return nr(e,t,e=>ni(e)&&n(e,na(e)),o)}function ns({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function nc(e){return e.max-e.min}function nu(e,t,n,o=.5){e.origin=o,e.originPoint=eS(t.min,t.max,e.origin),e.scale=nc(n)/nc(t),e.translate=eS(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function nd(e,t,n,o){nu(e.x,t.x,n.x,o?o.originX:void 0),nu(e.y,t.y,n.y,o?o.originY:void 0)}function np(e,t,n){e.min=n.min+t.min,e.max=e.min+nc(t)}function nf(e,t,n){e.min=t.min-n.min,e.max=e.min+nc(t)}function nh(e,t,n){nf(e.x,t.x,n.x),nf(e.y,t.y,n.y)}let ng=()=>({translate:0,scale:1,origin:0,originPoint:0}),nm=()=>({x:ng(),y:ng()}),nb=()=>({min:0,max:0}),ny=()=>({x:nb(),y:nb()});function nv(e){return[e("x"),e("y")]}function nk(e){return void 0===e||1===e}function nx({scale:e,scaleX:t,scaleY:n}){return!nk(e)||!nk(t)||!nk(n)}function nw(e){return nx(e)||nS(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nS(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function nA(e,t,n,o,r){return void 0!==r&&(e=o+r*(e-o)),o+n*(e-o)+t}function nC(e,t=0,n=1,o,r){e.min=nA(e.min,t,n,o,r),e.max=nA(e.max,t,n,o,r)}function nM(e,{x:t,y:n}){nC(e.x,t.translate,t.scale,t.originPoint),nC(e.y,n.translate,n.scale,n.originPoint)}function nz(e,t){e.min=e.min+t,e.max=e.max+t}function nT(e,t,n,o,r=.5){let i=eS(e.min,e.max,r);nC(e,t,n,i,o)}function nE(e,t){nT(e.x,t.x,t.scaleX,t.scale,t.originX),nT(e.y,t.y,t.scaleY,t.scale,t.originY)}function nP(e,t){return ns(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}(e.getBoundingClientRect(),t))}let nF=({current:e})=>e?e.ownerDocument.defaultView:null;function nO(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let nD=(e,t)=>Math.abs(e-t);class nj{constructor(e,t,{transformPagePoint:n,contextWindow:o,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=nL(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(nD(e.x,t.x)**2+nD(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:o}=e,{timestamp:r}=m;this.history.push({...o,timestamp:r});let{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=nR(t,this.transformPagePoint),h.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:o,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=nL("pointercancel"===e.type?this.lastMoveEventInfo:nR(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),o&&o(e,i)},!ni(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=n,this.contextWindow=o||window;let i=nR(na(e),this.transformPagePoint),{point:a}=i,{timestamp:l}=m;this.history=[{...a,timestamp:l}];let{onSessionStart:s}=t;s&&s(e,nL(i,this.history)),this.removeListeners=R(nl(this.contextWindow,"pointermove",this.handlePointerMove),nl(this.contextWindow,"pointerup",this.handlePointerUp),nl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),g(this.updatePoint)}}function nR(e,t){return t?{point:t(e.point)}:e}function nH(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nL({point:e},t){return{point:e,delta:nH(e,nB(t)),offset:nH(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null,r=nB(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>L(.1)));)n--;if(!o)return{x:0,y:0};let i=(r.timestamp-o.timestamp)/1e3;if(0===i)return{x:0,y:0};let a={x:(r.x-o.x)/i,y:(r.y-o.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function nB(e){return e[e.length-1]}function nN(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function nW(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(na(e).point)},r=(e,t)=>{let{drag:n,dragPropagation:o,onDragStart:r}=this.getProps();if(n&&!o&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(no[e])return null;else return no[e]=!0,()=>{no[e]=!1};return no.x||no.y?null:(no.x=no.y=!0,()=>{no.x=no.y=!1})}(n),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nv(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ei.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let o=n.layout.layoutBox[e];o&&(t=nc(o)*(parseFloat(t)/100))}}this.originPoint[e]=t}),r&&h.postRender(()=>r(e,t)),F(this.visualElement,"transform");let{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},i=(e,t)=>{let{dragPropagation:n,dragDirectionLock:o,onDirectionLock:r,onDrag:i}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:a}=t;if(o&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},a=(e,t)=>this.stop(e,t),l=()=>nv(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:s}=this.getProps();this.panSession=new nj(e,{onSessionStart:o,onStart:r,onMove:i,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:nF(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:o}=t;this.startAnimation(o);let{onDragEnd:r}=this.getProps();r&&h.postRender(()=>r(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:o}=this.getProps();if(!n||!nq(e,o,this.currentDirection))return;let r=this.getAxisMotionValue(e),i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},o){return void 0!==t&&en&&(e=o?eS(n,e,o.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),r.set(i)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;e&&nO(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:o,right:r}){return{x:nN(e.x,n,r),y:nN(e.y,t,o)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nI(e,"left","right"),y:nI(e,"top","bottom")}}(t),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&nv(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nO(t))return!1;let o=t.current;W(null!==o,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=function(e,t,n){let o=nP(e,n),{scroll:r}=t;return r&&(nz(o.x,r.offset.x),nz(o.y,r.offset.y)),o}(o,r.root,this.visualElement.getTransformPagePoint()),a=(e=r.layout.layoutBox,{x:nW(e.x,i.x),y:nW(e.y,i.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=ns(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:o,dragTransition:r,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{};return Promise.all(nv(a=>{if(!nq(a,t,this.currentDirection))return;let s=l&&l[a]||{};i&&(s={min:0,max:0});let c={type:"inertia",velocity:n?e[a]:0,bounceStiffness:o?200:1e6,bounceDamping:o?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...s};return this.startAxisValueAnimation(a,c)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return F(this.visualElement,e),n.start(tQ(e,n,0,t,this.visualElement,!1))}stopAnimation(){nv(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){nv(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){nv(t=>{let{drag:n}=this.getProps();if(!nq(t,n,this.currentDirection))return;let{projection:o}=this.visualElement,r=this.getAxisMotionValue(t);if(o&&o.layout){let{min:n,max:i}=o.layout.layoutBox[t];r.set(e[t]-eS(n,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nO(t)||!n||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};nv(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();o[e]=function(e,t){let n=.5,o=nc(e),r=nc(t);return r>o?n=e8(t.min,t.max-o,e.min):o>r&&(n=e8(e.min,e.max-r,t.min)),H(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),nv(t=>{if(!nq(t,e,null))return;let n=this.getAxisMotionValue(t),{min:r,max:i}=this.constraints[t];n.set(eS(r,i,o[t]))})}addListeners(){if(!this.visualElement.current)return;nV.set(this.visualElement,this);let e=nl(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();nO(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,o=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),h.read(t);let r=nr(window,"resize",()=>this.scalePositionWithinConstraints()),i=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(nv(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{r(),e(),o(),i&&i()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:r=!1,dragElastic:i=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:o,dragConstraints:r,dragElastic:i,dragMomentum:a}}}function nq(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class n$ extends t8{constructor(e){super(e),this.removeGroupControls=c,this.removeListeners=c,this.controls=new nU(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||c}unmount(){this.removeGroupControls(),this.removeListeners()}}let nG=e=>(t,n)=>{e&&h.postRender(()=>e(t,n))};class nY extends t8{constructor(){super(...arguments),this.removePointerDownListener=c}onPointerDown(e){this.session=new nj(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nF(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:nG(e),onStart:nG(t),onMove:n,onEnd:(e,t)=>{delete this.session,o&&h.postRender(()=>o(e,t))}}}mount(){this.removePointerDownListener=nl(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var nK=n(97601);let{schedule:nQ}=f(queueMicrotask,!1);var nX=n(61221),nZ=n(18855),nJ=n(65630);let n0=(0,nX.createContext)({}),n1={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function n2(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let n5={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!ea.test(e))return e;else e=parseFloat(e);let n=n2(e,t.target.x),o=n2(e,t.target.y);return`${n}% ${o}%`}},n3={};class n4 extends nX.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:o}=this.props,{projection:r}=e;for(let e in n6)n3[e]=n6[e],_(e)&&(n3[e].isCSSVariable=!0);r&&(t.group&&t.group.add(r),n&&n.register&&o&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),n1.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:o,isPresent:r}=this.props,{projection:i}=n;return i&&(i.isPresent=r,o||e.layoutDependency!==t||void 0===t||e.isPresent!==r?i.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?i.promote():i.relegate()||h.postRender(()=>{let e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),nQ.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:o}=e;o&&(o.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function n9(e){let[t,n]=(0,nZ.xQ)(),o=(0,nX.useContext)(nJ.L);return(0,nK.jsx)(n4,{...e,layoutGroup:o,switchLayoutGroup:(0,nX.useContext)(n0),isPresent:t,safeToRemove:n})}let n6={borderRadius:{...n5,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:n5,borderTopRightRadius:n5,borderBottomLeftRadius:n5,borderBottomRightRadius:n5,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let o=ek.parse(e);if(o.length>5)return e;let r=ek.createTransformer(e),i=+("number"!=typeof o[0]),a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+i]/=a,o[1+i]/=l;let s=eS(a,l,.5);return"number"==typeof o[2+i]&&(o[2+i]/=s),"number"==typeof o[3+i]&&(o[3+i]/=s),r(o)}}};var n7=n(97763);function n8(e){return(0,n7.G)(e)&&"ownerSVGElement"in e}let oe=(e,t)=>e.depth-t.depth;class ot{constructor(){this.children=[],this.isDirty=!1}add(e){x(this.children,e),this.isDirty=!0}remove(e){w(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(oe),this.isDirty=!1,this.children.forEach(e)}}function on(e){return P(e)?e.get():e}let oo=["TopLeft","TopRight","BottomLeft","BottomRight"],or=oo.length,oi=e=>"string"==typeof e?parseFloat(e):e,oa=e=>"number"==typeof e||ea.test(e);function ol(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let os=ou(0,.5,e3),oc=ou(.5,.95,c);function ou(e,t,n){return o=>ot?1:n(e8(e,t,o))}function od(e,t){e.min=t.min,e.max=t.max}function op(e,t){od(e.x,t.x),od(e.y,t.y)}function of(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function oh(e,t,n,o,r){return e-=t,e=o+1/n*(e-o),void 0!==r&&(e=o+1/r*(e-o)),e}function og(e,t,[n,o,r],i,a){!function(e,t=0,n=1,o=.5,r,i=e,a=e){if(ei.test(t)&&(t=parseFloat(t),t=eS(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let l=eS(i.min,i.max,o);e===i&&(l-=t),e.min=oh(e.min,t,n,l,r),e.max=oh(e.max,t,n,l,r)}(e,t[n],t[o],t[r],t.scale,i,a)}let om=["x","scaleX","originX"],ob=["y","scaleY","originY"];function oy(e,t,n,o){og(e.x,t,om,n?n.x:void 0,o?o.x:void 0),og(e.y,t,ob,n?n.y:void 0,o?o.y:void 0)}function ov(e){return 0===e.translate&&1===e.scale}function ok(e){return ov(e.x)&&ov(e.y)}function ox(e,t){return e.min===t.min&&e.max===t.max}function ow(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function oS(e,t){return ow(e.x,t.x)&&ow(e.y,t.y)}function oA(e){return nc(e.x)/nc(e.y)}function oC(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class oM{constructor(){this.members=[]}add(e){x(this.members,e),e.scheduleRender()}remove(e){if(w(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:o}=e.options;!1===o&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let oz={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},oT=["","X","Y","Z"],oE={visibility:"hidden"},oP=0;function oF(e,t,n,o){let{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function oO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(e={},n=t?.()){this.id=oP++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,p.value&&(oz.nodes=oz.calculatedTargetDeltas=oz.calculatedProjections=0),this.nodes.forEach(oR),this.nodes.forEach(o_),this.nodes.forEach(oV),this.nodes.forEach(oH),p.addProjectionMetrics&&p.addProjectionMetrics(oz)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=C.now(),o=({timestamp:t})=>{let r=t-n;r>=250&&(g(o),e(r-250))};return h.setup(o,!0),()=>g(o)}(o,250),n1.hasAnimatedSinceResize&&(n1.hasAnimatedSinceResize=!1,this.nodes.forEach(oI))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:o})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||r.getDefaultTransition()||oK,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=r.getProps(),c=!this.targetLayout||!oS(this.targetLayout,o),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...s(i,"layout"),onPlay:a,onComplete:l};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||oI(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=o})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),g(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(oU),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let o=n.props[D];if(window.MotionHasOptimisedAnimation(o,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(o,"transform",h,!(e||n))}let{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&e(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nc(this.snapshot.measuredBox.x)||nc(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=ny());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(of(this.prevProjectionDelta.x,this.projectionDelta.x),of(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nd(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===i&&this.treeScale.y===a&&oC(this.projectionDelta.x,this.prevProjectionDelta.x)&&oC(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),p.value&&oz.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=nm(),this.projectionDelta=nm(),this.projectionDeltaWithTransform=nm()}setAnimationOrigin(e,t=!1){let n,o=this.snapshot,r=o?o.latestValues:{},i={...this.latestValues},a=nm();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=ny(),s=(o?o.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),u=!c||c.members.length<=1,d=!!(s&&!u&&!0===this.options.crossfade&&!this.path.some(oY));this.animationProgress=0,this.mixTargetDelta=t=>{let o=t/1e3;if(o$(a.x,e.x,o),o$(a.y,e.y,o),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,p,f,h,g,m;nh(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,h=this.relativeTargetOrigin,g=l,m=o,oG(f.x,h.x,g.x,m),oG(f.y,h.y,g.y,m),n&&(c=this.relativeTarget,p=n,ox(c.x,p.x)&&ox(c.y,p.y))&&(this.isProjectionDirty=!1),n||(n=ny()),op(n,this.relativeTarget)}s&&(this.animationValues=i,function(e,t,n,o,r,i){r?(e.opacity=eS(0,n.opacity??1,os(o)),e.opacityExit=eS(t.opacity??1,0,oc(o))):i&&(e.opacity=eS(t.opacity??1,n.opacity??1,o));for(let r=0;r{n1.hasAnimatedSinceResize=!0,B.layout++,this.motionValue||(this.motionValue=T(0)),this.currentAnimation=function(e,t,n){let o=P(e)?e:T(e);return o.start(tQ("",o,t,n)),o.animation}(this.motionValue,[0,1e3],{...e,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{B.layout--},onComplete:()=>{B.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop(!1)),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:o,latestValues:r}=e;if(t&&n&&o){if(this!==e&&this.layout&&o&&oJ(this.options.animationType,this.layout.layoutBox,o.layoutBox)){n=this.target||ny();let t=nc(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let o=nc(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+o}op(t,n),nE(t,r),nd(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new oM),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let o=this.getStack();o&&o.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let o={};n.z&&oF("z",e,o,this.animationValues);for(let t=0;te.currentAnimation?.stop(!1)),this.root.nodes.forEach(oB),this.root.sharedNodes.clear()}}}function oD(e){e.updateLayout()}function oj(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:o}=e.layout,{animationType:r}=e.options,i=t.source!==e.layout.source;"size"===r?nv(e=>{let o=i?t.measuredBox[e]:t.layoutBox[e],r=nc(o);o.min=n[e].min,o.max=o.min+r}):oJ(r,t.layoutBox,n)&&nv(o=>{let r=i?t.measuredBox[o]:t.layoutBox[o],a=nc(n[o]);r.max=r.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[o].max=e.relativeTarget[o].min+a)});let a=nm();nd(a,n,t.layoutBox);let l=nm();i?nd(l,e.applyTransform(o,!0),t.measuredBox):nd(l,n,t.layoutBox);let s=!ok(a),c=!1;if(!e.resumeFrom){let o=e.getClosestProjectingParent();if(o&&!o.resumeFrom){let{snapshot:r,layout:i}=o;if(r&&i){let a=ny();nh(a,t.layoutBox,r.layoutBox);let l=ny();nh(l,n,i.layoutBox),oS(a,l)||(c=!0),o.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=o)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:s,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function oR(e){p.value&&oz.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function oH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function oL(e){e.clearSnapshot()}function oB(e){e.clearMeasurements()}function oN(e){e.isLayoutDirty=!1}function oW(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function oI(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function o_(e){e.resolveTargetDelta()}function oV(e){e.calcProjection()}function oU(e){e.resetSkewAndRotation()}function oq(e){e.removeLeadSnapshot()}function o$(e,t,n){e.translate=eS(t.translate,0,n),e.scale=eS(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function oG(e,t,n,o){e.min=eS(t.min,n.min,o),e.max=eS(t.max,n.max,o)}function oY(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let oK={duration:.45,ease:[.4,0,.1,1]},oQ=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),oX=oQ("applewebkit/")&&!oQ("chrome/")?Math.round:c;function oZ(e){e.min=oX(e.min),e.max=oX(e.max)}function oJ(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(oA(t)-oA(n)))}function o0(e){return e!==e.root&&e.scroll?.wasRoot}let o1=oO({attachResizeListener:(e,t)=>nr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),o2={current:void 0},o5=oO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!o2.current){let e=new o1({});e.mount(window),e.setOptions({layoutScroll:!0}),o2.current=e}return o2.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function o3(e,t){let n=function(e,t,n){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,n=(void 0)??t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),o=new AbortController;return[n,{passive:!0,...t,signal:o.signal},()=>o.abort()]}function o4(e){return!("touch"===e.pointerType||no.x||no.y)}function o9(e,t,n){let{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover","Start"===n);let r=o["onHover"+n];r&&h.postRender(()=>r(t,na(t)))}class o6 extends t8{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[o,r,i]=o3(e,n),a=e=>{if(!o4(e))return;let{target:n}=e,o=t(n,e);if("function"!=typeof o||!n)return;let i=e=>{o4(e)&&(o(e),n.removeEventListener("pointerleave",i))};n.addEventListener("pointerleave",i,r)};return o.forEach(e=>{e.addEventListener("pointerenter",a,r)}),i}(e,(e,t)=>(o9(this.node,t,"Start"),e=>o9(this.node,e,"End"))))}unmount(){}}class o7 extends t8{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=R(nr(this.node.current,"focus",()=>this.onFocus()),nr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let o8=(e,t)=>!!t&&(e===t||o8(e,t.parentElement)),re=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rt=new WeakSet;function rn(e){return t=>{"Enter"===t.key&&e(t)}}function ro(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function rr(e){return ni(e)&&!(no.x||no.y)}function ri(e,t,n){let{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap","Start"===n);let r=o["onTap"+("End"===n?"":n)];r&&h.postRender(()=>r(t,na(t)))}class ra extends t8{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[o,r,i]=o3(e,n),a=e=>{let o=e.currentTarget;if(!rr(e))return;rt.add(o);let i=t(o,e),a=(e,t)=>{window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",s),rt.has(o)&&rt.delete(o),rr(e)&&"function"==typeof i&&i(e,{success:t})},l=e=>{a(e,o===window||o===document||n.useGlobalTarget||o8(o,e.target))},s=e=>{a(e,!1)};window.addEventListener("pointerup",l,r),window.addEventListener("pointercancel",s,r)};return o.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",a,r),(0,t_.s)(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let o=rn(()=>{if(rt.has(n))return;ro(n,"down");let e=rn(()=>{ro(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>ro(n,"cancel"),t)});n.addEventListener("keydown",o,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),t)})(e,r)),re.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),i}(e,(e,t)=>(ri(this.node,t,"Start"),(e,{success:t})=>ri(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let rl=new WeakMap,rs=new WeakMap,rc=e=>{let t=rl.get(e.target);t&&t(e)},ru=e=>{e.forEach(rc)},rd={some:0,all:1};class rp extends t8{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:o="some",once:r}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof o?o:rd[o]},a=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,r&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:o}=this.node.getProps(),i=t?n:o;i&&i(e)};var l=this.node.current;let s=function({root:e,...t}){let n=e||document;rs.has(n)||rs.set(n,{});let o=rs.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(ru,{root:e,...t})),o[r]}(i);return rl.set(l,a),s.observe(l),()=>{rl.delete(l),s.unobserve(l)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}let rf=(0,nX.createContext)({strict:!1});var rh=n(51289);let rg=(0,nX.createContext)({});function rm(e){return r(e.animate)||t5.some(t=>t1(e[t]))}function rb(e){return!!(rm(e)||e.variants)}function ry(e){return Array.isArray(e)?e.join(" "):e}var rv=n(13007);let rk={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},rx={};for(let e in rk)rx[e]={isEnabled:t=>rk[e].some(e=>!!t[e])};let rw=Symbol.for("motionComponentSymbol");var rS=n(75008),rA=n(10771);function rC(e,{layout:t,layoutId:n}){return v.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!n3[e]||"opacity"===e)}let rM=(e,t)=>t&&"number"==typeof e?t.transform(e):e,rz={...$,transform:Math.round},rT={borderWidth:ea,borderTopWidth:ea,borderRightWidth:ea,borderBottomWidth:ea,borderLeftWidth:ea,borderRadius:ea,radius:ea,borderTopLeftRadius:ea,borderTopRightRadius:ea,borderBottomRightRadius:ea,borderBottomLeftRadius:ea,width:ea,maxWidth:ea,height:ea,maxHeight:ea,top:ea,right:ea,bottom:ea,left:ea,padding:ea,paddingTop:ea,paddingRight:ea,paddingBottom:ea,paddingLeft:ea,margin:ea,marginTop:ea,marginRight:ea,marginBottom:ea,marginLeft:ea,backgroundPositionX:ea,backgroundPositionY:ea,rotate:er,rotateX:er,rotateY:er,rotateZ:er,scale:Y,scaleX:Y,scaleY:Y,scaleZ:Y,skew:er,skewX:er,skewY:er,distance:ea,translateX:ea,translateY:ea,translateZ:ea,x:ea,y:ea,z:ea,perspective:ea,transformPerspective:ea,opacity:G,originX:ec,originY:ec,originZ:ea,zIndex:rz,fillOpacity:G,strokeOpacity:G,numOctaves:rz},rE={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rP=y.length;function rF(e,t,n){let{style:o,vars:r,transformOrigin:i}=e,a=!1,l=!1;for(let e in t){let n=t[e];if(v.has(e)){a=!0;continue}if(_(e)){r[e]=n;continue}{let t=rM(n,rT[e]);e.startsWith("origin")?(l=!0,i[e]=t):o[e]=t}}if(!t.transform&&(a||n?o.transform=function(e,t,n){let o="",r=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}});function rD(e,t,n){for(let o in t)P(t[o])||rC(o,n)||(e[o]=t[o])}let rj={offset:"stroke-dashoffset",array:"stroke-dasharray"},rR={offset:"strokeDashoffset",array:"strokeDasharray"};function rH(e,{attrX:t,attrY:n,attrScale:o,pathLength:r,pathSpacing:i=1,pathOffset:a=0,...l},s,c,u){if(rF(e,l,c),s){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=u?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==o&&(d.scale=o),void 0!==r&&function(e,t,n=1,o=0,r=!0){e.pathLength=1;let i=r?rj:rR;e[i.offset]=ea.transform(-o);let a=ea.transform(t),l=ea.transform(n);e[i.array]=`${a} ${l}`}(d,r,i,a,!1)}let rL=()=>({...rO(),attrs:{}}),rB=e=>"string"==typeof e&&"svg"===e.toLowerCase(),rN=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function rW(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rN.has(e)}let rI=e=>!rW(e);try{!function(e){e&&(rI=t=>t.startsWith("on")?!rW(t):e(t))}(require("@emotion/is-prop-valid").default)}catch{}let r_=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function rV(e){if("string"!=typeof e||e.includes("-"));else if(r_.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var rU=n(84250);let rq=e=>(t,n)=>{let o=(0,nX.useContext)(rg),i=(0,nX.useContext)(rS.t),l=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,i){return{latestValues:function(e,t,n,o){let i={},l=o(e,{});for(let e in l)i[e]=on(l[e]);let{initial:s,animate:c}=e,u=rm(e),d=rb(e);t&&d&&!u&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===c&&(c=t.animate));let p=!!n&&!1===n.initial,f=(p=p||!1===s)?c:s;if(f&&"boolean"!=typeof f&&!r(f)){let t=Array.isArray(f)?f:[f];for(let n=0;nt=>t.test(e),rX=[$,ea,ei,er,es,el,{test:e=>"auto"===e,parse:e=>e}],rZ=e=>rX.find(rQ(e)),rJ=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),r0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,r1=e=>/^0[^.\s]+$/u.test(e),r2=new Set(["brightness","contrast","saturate","opacity"]);function r5(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[o]=n.match(Q)||[];if(!o)return e;let r=n.replace(o,""),i=+!!r2.has(t);return o!==n&&(i*=100),t+"("+i+r+")"}let r3=/\b([a-z-]*)\(.*?\)/gu,r4={...ek,getAnimatableNone:e=>{let t=e.match(r3);return t?t.map(r5).join(" "):e}},r9={...rT,color:ed,backgroundColor:ed,outlineColor:ed,fill:ed,stroke:ed,borderColor:ed,borderTopColor:ed,borderRightColor:ed,borderBottomColor:ed,borderLeftColor:ed,filter:r4,WebkitFilter:r4},r6=e=>r9[e];function r7(e,t){let n=r6(e);return n!==r4&&(n=ek),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let r8=new Set(["auto","none","0"]);class ie extends tT{constructor(e,t,n,o,r){super(e,t,n,o,r,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let it=[...rX,ed,ek],io={current:null},ir={current:!1},ii=new WeakMap,ia=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class il{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:r,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tT,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=C.now();this.renderScheduledAtthis.bindToMotionValue(t,e)),ir.current||function(){if(ir.current=!0,rv.B)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>io.current=e.matches;e.addListener(t),t()}else io.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||io.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),g(this.notifyUpdate),g(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let o=v.has(e);o&&this.onBindTransform&&this.onBindTransform();let r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&h.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in rx){let t=rx[e];if(!t)continue;let{isEnabled:n,Feature:o}=t;if(!this.features[e]&&o&&n(this.props)&&(this.features[e]=new o(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ny()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=T(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){if("string"==typeof n&&(rJ(n)||r1(n)))n=parseFloat(n);else{let o;o=n,!it.find(rQ(o))&&ek.test(t)&&(n=r7(e,t))}this.setBaseTarget(e,P(n)?n.get():n)}return P(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let o=a(this.props,n,this.presenceContext?.custom);o&&(t=o[e])}if(n&&void 0!==t)return t;let o=this.getBaseTargetFromProps(this.props,e);return void 0===o||P(o)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new S),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class is extends il{constructor(){super(...arguments),this.KeyframeResolver=ie}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;P(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function ic(e,{style:t,vars:n},o,r){for(let i in Object.assign(e.style,t,r&&r.getProjectionStyles(o)),n)e.style.setProperty(i,n[i])}class iu extends is{constructor(){super(...arguments),this.type="html",this.renderInstance=ic}readValueFromInstance(e,t){if(v.has(t))return this.projection?.isProjecting?tg(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return tm(n,t)})(e,t);{let n=window.getComputedStyle(e),o=(_(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof o?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nP(e,t)}build(e,t,n){rF(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return r$(e,t,n)}}let id=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class ip extends is{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ny}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(v.has(t)){let e=r6(t);return e&&e.default||0}return t=id.has(t)?t:O(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return rY(e,t,n)}build(e,t,n){rH(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,o){for(let n in ic(e,t,void 0,o),t.attrs)e.setAttribute(id.has(n)?n:O(n),t.attrs[n])}mount(e){this.isSVGTag=rB(e.tagName),super.mount(e)}}let ih=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(n,o)=>"create"===o?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}((tW={animation:{Feature:ne},exit:{Feature:nn},inView:{Feature:rp},tap:{Feature:ra},focus:{Feature:o7},hover:{Feature:o6},pan:{Feature:nY},drag:{Feature:n$,ProjectionNode:o5,MeasureLayout:n9},layout:{ProjectionNode:o5,MeasureLayout:n9}},tI=(e,t)=>rV(e)?new ip(t):new iu(t,{allowProjection:e!==nX.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function(e){var t,n;let{preloadedFeatures:o,createVisualElement:r,useRender:i,useVisualState:a,Component:l}=e;function s(e,t){var n;let o,s={...(0,nX.useContext)(rh.Q),...e,layoutId:function(e){let{layoutId:t}=e,n=(0,nX.useContext)(nJ.L).id;return n&&void 0!==t?n+"-"+t:t}(e)},{isStatic:c}=s,u=function(e){let{initial:t,animate:n}=function(e,t){if(rm(e)){let{initial:t,animate:n}=e;return{initial:!1===t||t1(t)?t:void 0,animate:t1(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,nX.useContext)(rg));return(0,nX.useMemo)(()=>({initial:t,animate:n}),[ry(t),ry(n)])}(e),d=a(e,c);if(!c&&rv.B){(0,nX.useContext)(rf).strict;let e=function(e){let{drag:t,layout:n}=rx;if(!t&&!n)return{};let o={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}(s);o=e.MeasureLayout,u.visualElement=function(e,t,n,o,r){let{visualElement:i}=(0,nX.useContext)(rg),a=(0,nX.useContext)(rf),l=(0,nX.useContext)(rS.t),s=(0,nX.useContext)(rh.Q).reducedMotion,c=(0,nX.useRef)(null);o=o||a.renderer,!c.current&&o&&(c.current=o(e,{visualState:t,parent:i,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:s}));let u=c.current,d=(0,nX.useContext)(n0);u&&!u.projection&&r&&("html"===u.type||"svg"===u.type)&&function(e,t,n,o){let{layoutId:r,layout:i,drag:a,dragConstraints:l,layoutScroll:s,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!a||l&&nO(l),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:o,crossfade:u,layoutScroll:s,layoutRoot:c})}(c.current,n,r,d);let p=(0,nX.useRef)(!1);(0,nX.useInsertionEffect)(()=>{u&&p.current&&u.update(n,l)});let f=n[D],h=(0,nX.useRef)(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return(0,rA.E)(()=>{u&&(p.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),nQ.render(u.render),h.current&&u.animationState&&u.animationState.animateChanges())}),(0,nX.useEffect)(()=>{u&&(!h.current&&u.animationState&&u.animationState.animateChanges(),h.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),h.current=!1))}),u}(l,d,s,r,e.ProjectionNode)}return(0,nK.jsxs)(rg.Provider,{value:u,children:[o&&u.visualElement?(0,nK.jsx)(o,{visualElement:u.visualElement,...s}):null,i(l,e,(n=u.visualElement,(0,nX.useCallback)(e=>{e&&d.onMount&&d.onMount(e),n&&(e?n.mount(e):n.unmount()),t&&("function"==typeof t?t(e):nO(t)&&(t.current=e))},[n])),d,c,u.visualElement)]})}o&&function(e){for(let t in e)rx[t]={...rx[t],...e[t]}}(o),s.displayName="motion.".concat("string"==typeof l?l:"create(".concat(null!=(n=null!=(t=l.displayName)?t:l.name)?n:"",")"));let c=(0,nX.forwardRef)(s);return c[rw]=l,c}({...rV(e)?rK:rG,preloadedFeatures:tW,useRender:function(e=!1){return(t,n,o,{latestValues:r},i)=>{let a=(rV(t)?function(e,t,n,o){let r=(0,nX.useMemo)(()=>{let n=rL();return rH(n,t,rB(o),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rD(t,e.style,e),r.style={...t,...r.style}}return r}:function(e,t){let n={},o=function(e,t){let n=e.style||{},o={};return rD(o,n,e),Object.assign(o,function({transformTemplate:e},t){return(0,nX.useMemo)(()=>{let n=rO();return rF(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),o}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n})(n,r,i,t),l=function(e,t,n){let o={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&(rI(r)||!0===n&&rW(r)||!t&&!rW(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}(n,"string"==typeof t,e),s=t!==nX.Fragment?{...l,...a,ref:o}:{},{children:c}=n,u=(0,nX.useMemo)(()=>P(c)?c.get():c,[c]);return(0,nX.createElement)(t,{...s,children:u})}}(t),createVisualElement:tI,Component:e})}))},4599:(e,t,n)=>{"use strict";n.d(t,{bL:()=>x,zi:()=>w});var o=n(61221),r=n(97789),i=n(85319),a=n(42713),l=n(37492),s=n(11444),c=n(86250),u=n(97601),d="Switch",[p,f]=(0,a.A)(d),[h,g]=p(d),m=o.forwardRef((e,t)=>{let{__scopeSwitch:n,name:a,checked:s,defaultChecked:p,required:f,disabled:g,value:m="on",onCheckedChange:b,form:y,...x}=e,[w,S]=o.useState(null),A=(0,i.s)(t,e=>S(e)),C=o.useRef(!1),M=!w||y||!!w.closest("form"),[z,T]=(0,l.i)({prop:s,defaultProp:null!=p&&p,onChange:b,caller:d});return(0,u.jsxs)(h,{scope:n,checked:z,disabled:g,children:[(0,u.jsx)(c.sG.button,{type:"button",role:"switch","aria-checked":z,"aria-required":f,"data-state":k(z),"data-disabled":g?"":void 0,disabled:g,value:m,...x,ref:A,onClick:(0,r.m)(e.onClick,e=>{T(e=>!e),M&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())})}),M&&(0,u.jsx)(v,{control:w,bubbles:!C.current,name:a,value:m,checked:z,required:f,disabled:g,form:y,style:{transform:"translateX(-100%)"}})]})});m.displayName=d;var b="SwitchThumb",y=o.forwardRef((e,t)=>{let{__scopeSwitch:n,...o}=e,r=g(b,n);return(0,u.jsx)(c.sG.span,{"data-state":k(r.checked),"data-disabled":r.disabled?"":void 0,...o,ref:t})});y.displayName=b;var v=o.forwardRef((e,t)=>{let{__scopeSwitch:n,control:r,checked:a,bubbles:l=!0,...c}=e,d=o.useRef(null),p=(0,i.s)(d,t),f=function(e){let t=o.useRef({value:e,previous:e});return o.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(a),h=(0,s.X)(r);return o.useEffect(()=>{let e=d.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(f!==a&&t){let n=new Event("click",{bubbles:l});t.call(e,a),e.dispatchEvent(n)}},[f,a,l]),(0,u.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:a,...c,tabIndex:-1,ref:p,style:{...c.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function k(e){return e?"checked":"unchecked"}v.displayName="SwitchBubbleInput";var x=m,w=y},5299:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#d6deeb",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",fontSize:"1em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"white",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",fontSize:"1em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",background:"#011627"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},':not(pre) > code[class*="language-"]':{color:"white",background:"#011627",padding:"0.1em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"rgb(99, 119, 119)",fontStyle:"italic"},prolog:{color:"rgb(99, 119, 119)",fontStyle:"italic"},cdata:{color:"rgb(99, 119, 119)",fontStyle:"italic"},punctuation:{color:"rgb(199, 146, 234)"},".namespace":{color:"rgb(178, 204, 214)"},deleted:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"},symbol:{color:"rgb(128, 203, 196)"},property:{color:"rgb(128, 203, 196)"},tag:{color:"rgb(127, 219, 202)"},operator:{color:"rgb(127, 219, 202)"},keyword:{color:"rgb(127, 219, 202)"},boolean:{color:"rgb(255, 88, 116)"},number:{color:"rgb(247, 140, 108)"},constant:{color:"rgb(130, 170, 255)"},function:{color:"rgb(130, 170, 255)"},builtin:{color:"rgb(130, 170, 255)"},char:{color:"rgb(130, 170, 255)"},selector:{color:"rgb(199, 146, 234)",fontStyle:"italic"},doctype:{color:"rgb(199, 146, 234)",fontStyle:"italic"},"attr-name":{color:"rgb(173, 219, 103)",fontStyle:"italic"},inserted:{color:"rgb(173, 219, 103)",fontStyle:"italic"},string:{color:"rgb(173, 219, 103)"},url:{color:"rgb(173, 219, 103)"},entity:{color:"rgb(173, 219, 103)"},".language-css .token.string":{color:"rgb(173, 219, 103)"},".style .token.string":{color:"rgb(173, 219, 103)"},"class-name":{color:"rgb(255, 203, 139)"},atrule:{color:"rgb(255, 203, 139)"},"attr-value":{color:"rgb(255, 203, 139)"},regex:{color:"rgb(214, 222, 235)"},important:{color:"rgb(214, 222, 235)",fontWeight:"bold"},variable:{color:"rgb(214, 222, 235)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}},6874:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#22da17",fontFamily:"monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",lineHeight:"25px",fontSize:"18px",margin:"5px 0"},'pre[class*="language-"]':{color:"white",fontFamily:"monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",lineHeight:"25px",fontSize:"18px",margin:"0.5em 0",background:"#0a143c",padding:"1em",overflow:"auto"},'pre[class*="language-"] *':{fontFamily:"monospace"},':not(pre) > code[class*="language-"]':{color:"white",background:"#0a143c",padding:"0.1em",borderRadius:"0.3em",whiteSpace:"normal"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"]::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},'code[class*="language-"] ::selection':{textShadow:"none",background:"rgba(29, 59, 83, 0.99)"},comment:{color:"rgb(99, 119, 119)",fontStyle:"italic"},prolog:{color:"rgb(99, 119, 119)",fontStyle:"italic"},cdata:{color:"rgb(99, 119, 119)",fontStyle:"italic"},punctuation:{color:"rgb(199, 146, 234)"},".namespace":{color:"rgb(178, 204, 214)"},deleted:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"},symbol:{color:"rgb(128, 203, 196)"},property:{color:"rgb(128, 203, 196)"},tag:{color:"rgb(127, 219, 202)"},operator:{color:"rgb(127, 219, 202)"},keyword:{color:"rgb(127, 219, 202)"},boolean:{color:"rgb(255, 88, 116)"},number:{color:"rgb(247, 140, 108)"},constant:{color:"rgb(34 183 199)"},function:{color:"rgb(34 183 199)"},builtin:{color:"rgb(34 183 199)"},char:{color:"rgb(34 183 199)"},selector:{color:"rgb(199, 146, 234)",fontStyle:"italic"},doctype:{color:"rgb(199, 146, 234)",fontStyle:"italic"},"attr-name":{color:"rgb(173, 219, 103)",fontStyle:"italic"},inserted:{color:"rgb(173, 219, 103)",fontStyle:"italic"},string:{color:"rgb(173, 219, 103)"},url:{color:"rgb(173, 219, 103)"},entity:{color:"rgb(173, 219, 103)"},".language-css .token.string":{color:"rgb(173, 219, 103)"},".style .token.string":{color:"rgb(173, 219, 103)"},"class-name":{color:"rgb(255, 203, 139)"},atrule:{color:"rgb(255, 203, 139)"},"attr-value":{color:"rgb(255, 203, 139)"},regex:{color:"rgb(214, 222, 235)"},important:{color:"rgb(214, 222, 235)",fontWeight:"bold"},variable:{color:"rgb(214, 222, 235)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}},7254:(e,t,n)=>{var o=n(86009);function r(){var t,n,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.toStringTag||"@@toStringTag";function s(e,r,i,a){var l=Object.create((r&&r.prototype instanceof u?r:u).prototype);return o(l,"_invoke",function(e,o,r){var i,a,l,s=0,u=r||[],d=!1,p={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return i=e,a=0,l=t,p.n=n,c}};function f(e,o){for(a=e,l=o,n=0;!d&&s&&!r&&n3?(r=h===o)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=f&&((r=e<2&&fo||o>h)&&(i[4]=e,i[5]=o,p.n=h,a=0))}if(r||e>1)return c;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),a=u,l=h;(n=a<2?t:l)||!d;){i||(a?a<3?(a>1&&(p.n=-1),f(a,l)):p.n=l:p.v=l);try{if(s=2,i){if(a||(r="next"),n=i[r]){if(!(n=n.call(i,l)))throw TypeError("iterator result is not an object");if(!n.done)return n;l=n.value,a<2&&(a=0)}else 1===a&&(n=i.return)&&n.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=t}else if((n=(d=p.n<0)?l:e.call(o,p))!==c)break}catch(e){i=t,a=1,l=e}finally{s=1}}return{value:n,done:d}}}(e,i,a),!0),l}var c={};function u(){}function d(){}function p(){}n=Object.getPrototypeOf;var f=p.prototype=u.prototype=Object.create([][a]?n(n([][a]())):(o(n={},a,function(){return this}),n));function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,o(e,l,"GeneratorFunction")),e.prototype=Object.create(f),e}return d.prototype=p,o(f,"constructor",p),o(p,"constructor",d),d.displayName="GeneratorFunction",o(p,l,"GeneratorFunction"),o(f),o(f,l,"Generator"),o(f,a,function(){return this}),o(f,"toString",function(){return"[object Generator]"}),(e.exports=r=function(){return{w:s,m:h}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},7262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#839496",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#839496",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em",background:"#002b36"},':not(pre) > code[class*="language-"]':{background:"#002b36",padding:".1em",borderRadius:".3em"},comment:{color:"#586e75"},prolog:{color:"#586e75"},doctype:{color:"#586e75"},cdata:{color:"#586e75"},punctuation:{color:"#93a1a1"},".namespace":{Opacity:".7"},property:{color:"#268bd2"},keyword:{color:"#268bd2"},tag:{color:"#268bd2"},"class-name":{color:"#FFFFB6",textDecoration:"underline"},boolean:{color:"#b58900"},constant:{color:"#b58900"},symbol:{color:"#dc322f"},deleted:{color:"#dc322f"},number:{color:"#859900"},selector:{color:"#859900"},"attr-name":{color:"#859900"},string:{color:"#859900"},char:{color:"#859900"},builtin:{color:"#859900"},inserted:{color:"#859900"},variable:{color:"#268bd2"},operator:{color:"#EDEDED"},function:{color:"#268bd2"},regex:{color:"#E9C062"},important:{color:"#fd971f",fontWeight:"bold"},entity:{color:"#FFFFB6",cursor:"help"},url:{color:"#96CBFE"},".language-css .token.string":{color:"#87C38A"},".style .token.string":{color:"#87C38A"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},atrule:{color:"#F9EE98"},"attr-value":{color:"#F9EE98"}}},8232:(e,t,n)=>{"use strict";function o(e){return e.toLowerCase()}n.d(t,{S:()=>o})},8743:(e,t)=>{"use strict";function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:o=!1}=void 0===e?{}:e;return t||n&&o}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},9142:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o=n(75147).default},10771:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var o=n(61221);let r=n(13007).B?o.useLayoutEffect:o.useEffect},11444:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});var o=n(61221),r=n(99028);function i(e){let[t,n]=o.useState(void 0);return(0,r.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let o,r;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,r=t.blockSize}else o=e.offsetWidth,r=e.offsetHeight;n({width:o,height:r})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},11470:(e,t,n)=>{"use strict";function o(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{B:()=>o})},13007:(e,t,n)=>{"use strict";n.d(t,{B:()=>o});let o="undefined"!=typeof window},13104:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let o=n(61221),r=o.useLayoutEffect,i=o.useEffect;function a(e){let{headManager:t,reduceComponentsToState:n}=e;function a(){if(t&&t.mountedInstances){let r=o.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(r,e))}}return r(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),r(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),i(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},14025:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return i}});let o=n(17292)._(n(61221)),r=n(17019),i=o.default.createContext(r.imageConfigDefault)},14332:(e,t,n)=>{"use strict";function o(e,t,n){let o=[],r=-1;for(;++ro})},14402:e=>{e.exports=function(e){var t=Object(e),n=[];for(var o in t)n.unshift(o);return function e(){for(;n.length;)if((o=n.pop())in t)return e.value=o,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},14995:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var o=n(48924),r=n(22507),i=n(48620),a=n(93987);let l={tokenize:function(e,t,n){let o=this,r=o.events[o.events.length-1],l=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,c=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(o){return 36===o?(e.consume(o),c++,t):c<2?n(o):(e.exit("mathFlowFenceSequence"),(0,i.N)(e,u,"whitespace")(o))}(t)};function u(t){return null===t||(0,a.HP)(t)?d(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(o){return null===o||(0,a.HP)(o)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),d(o)):36===o?n(o):(e.consume(o),t)}(t))}function d(n){return(e.exit("mathFlowFence"),o.interrupt)?t(n):e.attempt(s,p,g)(n)}function p(t){return e.attempt({tokenize:m,partial:!0},g,f)(t)}function f(t){return(l?(0,i.N)(e,h,"linePrefix",l+1):h)(t)}function h(t){return null===t?g(t):(0,a.HP)(t)?e.attempt(s,p,g)(t):(e.enter("mathFlowValue"),function t(n){return null===n||(0,a.HP)(n)?(e.exit("mathFlowValue"),h(n)):(e.consume(n),t)}(t))}function g(n){return e.exit("mathFlow"),t(n)}function m(e,t,n){let r=0;return(0,i.N)(e,function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(o){return 36===o?(r++,e.consume(o),t):r{"use strict";n.d(t,{A:()=>z});var o=n(23764);let r={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function i(e,t){let n=function(e,t){switch(e.nodeType){case 1:return function(e,t){let n=e.namespaceURI,i=n===r.svg?o.s:o.h,l=n===r.html?e.tagName.toLowerCase():e.tagName,s=n===r.html&&"template"===l?e.content:e,c=e.getAttributeNames(),u={},d=-1;for(;++dn&&(n=e):e&&(void 0!==n&&n>-1&&s.push("\n".repeat(n)||" "),n=-1,s.push(e))}return s.join("")}(h,{whitespace:"pre"});try{r=S.Ay.renderToString(C,{...t,displayMode:p,throwOnError:!0})}catch(a){let i=a.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...o,e],cause:a,place:e.position,ruleId:i,source:"rehype-katex"});try{r=S.Ay.renderToString(C,{...t,displayMode:p,strict:"ignore",throwOnError:!1})}catch{r=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(a)},children:[{type:"text",value:C}]}]}}if("string"==typeof r){var z,T;r=(z=r,T={fragment:!0},i(T?.fragment?function(e){let t=document.createElement("template");return t.innerHTML=e,t.content}(z):l.parseFromString(z,"text/html"),{})||{type:"root",children:[]}).children}let E=f.children.indexOf(h);return f.children.splice(E,1,...r),A._Z})}}},15110:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#90a4ae",background:"#fafafa",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::-moz-selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"]::selection':{background:"#cceae7",color:"#263238"},'code[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},'pre[class*="language-"] ::selection':{background:"#cceae7",color:"#263238"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#f76d47"},".language-sass > code":{color:"#f76d47"},".language-scss > code":{color:"#f76d47"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#7c4dff"},"attr-name":{color:"#39adb5"},"attr-value":{color:"#f6a434"},attribute:{color:"#f6a434"},boolean:{color:"#7c4dff"},builtin:{color:"#39adb5"},cdata:{color:"#39adb5"},char:{color:"#39adb5"},class:{color:"#39adb5"},"class-name":{color:"#6182b8"},comment:{color:"#aabfc9"},constant:{color:"#7c4dff"},deleted:{color:"#e53935"},doctype:{color:"#aabfc9"},entity:{color:"#e53935"},function:{color:"#7c4dff"},hexcode:{color:"#f76d47"},id:{color:"#7c4dff",fontWeight:"bold"},important:{color:"#7c4dff",fontWeight:"bold"},inserted:{color:"#39adb5"},keyword:{color:"#7c4dff"},number:{color:"#f76d47"},operator:{color:"#39adb5"},prolog:{color:"#aabfc9"},property:{color:"#39adb5"},"pseudo-class":{color:"#f6a434"},"pseudo-element":{color:"#f6a434"},punctuation:{color:"#39adb5"},regex:{color:"#6182b8"},selector:{color:"#e53935"},string:{color:"#f6a434"},symbol:{color:"#7c4dff"},tag:{color:"#e53935"},unit:{color:"#f76d47"},url:{color:"#e53935"},variable:{color:"#e53935"}}},15361:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2734",color:"#9a86fd"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2734",color:"#9a86fd",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6a51e6"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6a51e6"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#6a51e6"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"]::selection':{textShadow:"none",background:"#6a51e6"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#6a51e6"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#6c6783"},prolog:{color:"#6c6783"},doctype:{color:"#6c6783"},cdata:{color:"#6c6783"},punctuation:{color:"#6c6783"},namespace:{Opacity:".7"},tag:{color:"#e09142"},operator:{color:"#e09142"},number:{color:"#e09142"},property:{color:"#9a86fd"},function:{color:"#9a86fd"},"tag-id":{color:"#eeebff"},selector:{color:"#eeebff"},"atrule-id":{color:"#eeebff"},"code.language-javascript":{color:"#c4b9fe"},"attr-name":{color:"#c4b9fe"},"code.language-css":{color:"#ffcc99"},"code.language-scss":{color:"#ffcc99"},boolean:{color:"#ffcc99"},string:{color:"#ffcc99"},entity:{color:"#ffcc99",cursor:"help"},url:{color:"#ffcc99"},".language-css .token.string":{color:"#ffcc99"},".language-scss .token.string":{color:"#ffcc99"},".style .token.string":{color:"#ffcc99"},"attr-value":{color:"#ffcc99"},keyword:{color:"#ffcc99"},control:{color:"#ffcc99"},directive:{color:"#ffcc99"},unit:{color:"#ffcc99"},statement:{color:"#ffcc99"},regex:{color:"#ffcc99"},atrule:{color:"#ffcc99"},placeholder:{color:"#ffcc99"},variable:{color:"#ffcc99"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #eeebff",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#c4b9fe"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #8a75f5",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#2c2937"},".line-numbers .line-numbers-rows > span:before":{color:"#3c3949"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(224, 145, 66, 0.2) 70%, rgba(224, 145, 66, 0))"}}},15561:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},15786:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"white",background:"none",textShadow:"0 -.1em .2em black",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"white",background:"hsl(30, 20%, 25%)",textShadow:"0 -.1em .2em black",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",border:".3em solid hsl(30, 20%, 40%)",borderRadius:".5em",boxShadow:"1px 1px .5em black inset"},':not(pre) > code[class*="language-"]':{background:"hsl(30, 20%, 25%)",padding:".15em .2em .05em",borderRadius:".3em",border:".13em solid hsl(30, 20%, 40%)",boxShadow:"1px 1px .3em -.1em black inset",whiteSpace:"normal"},comment:{color:"hsl(30, 20%, 50%)"},prolog:{color:"hsl(30, 20%, 50%)"},doctype:{color:"hsl(30, 20%, 50%)"},cdata:{color:"hsl(30, 20%, 50%)"},punctuation:{Opacity:".7"},namespace:{Opacity:".7"},property:{color:"hsl(350, 40%, 70%)"},tag:{color:"hsl(350, 40%, 70%)"},boolean:{color:"hsl(350, 40%, 70%)"},number:{color:"hsl(350, 40%, 70%)"},constant:{color:"hsl(350, 40%, 70%)"},symbol:{color:"hsl(350, 40%, 70%)"},selector:{color:"hsl(75, 70%, 60%)"},"attr-name":{color:"hsl(75, 70%, 60%)"},string:{color:"hsl(75, 70%, 60%)"},char:{color:"hsl(75, 70%, 60%)"},builtin:{color:"hsl(75, 70%, 60%)"},inserted:{color:"hsl(75, 70%, 60%)"},operator:{color:"hsl(40, 90%, 60%)"},entity:{color:"hsl(40, 90%, 60%)",cursor:"help"},url:{color:"hsl(40, 90%, 60%)"},".language-css .token.string":{color:"hsl(40, 90%, 60%)"},".style .token.string":{color:"hsl(40, 90%, 60%)"},variable:{color:"hsl(40, 90%, 60%)"},atrule:{color:"hsl(350, 40%, 70%)"},"attr-value":{color:"hsl(350, 40%, 70%)"},keyword:{color:"hsl(350, 40%, 70%)"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},deleted:{color:"red"}}},16867:(e,t,n)=>{"use strict";n.r(t),n.d(t,{boolean:()=>r,booleanish:()=>i,commaOrSpaceSeparated:()=>u,commaSeparated:()=>c,number:()=>l,overloadedBoolean:()=>a,spaceSeparated:()=>s});let o=0,r=d(),i=d(),a=d(),l=d(),s=d(),c=d(),u=d();function d(){return 2**++o}},17019:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return o}});let n=["default","imgix","cloudinary","akamai","custom"],o={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumResponseBody:5e7,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},17167:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"]::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'code[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},'pre[class*="language-"] *::selection':{background:"hsl(230, 1%, 90%)",color:"inherit"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},prolog:{color:"hsl(230, 4%, 64%)"},cdata:{color:"hsl(230, 4%, 64%)"},doctype:{color:"hsl(230, 8%, 24%)"},punctuation:{color:"hsl(230, 8%, 24%)"},entity:{color:"hsl(230, 8%, 24%)",cursor:"help"},"attr-name":{color:"hsl(35, 99%, 36%)"},"class-name":{color:"hsl(35, 99%, 36%)"},boolean:{color:"hsl(35, 99%, 36%)"},constant:{color:"hsl(35, 99%, 36%)"},number:{color:"hsl(35, 99%, 36%)"},atrule:{color:"hsl(35, 99%, 36%)"},keyword:{color:"hsl(301, 63%, 40%)"},property:{color:"hsl(5, 74%, 59%)"},tag:{color:"hsl(5, 74%, 59%)"},symbol:{color:"hsl(5, 74%, 59%)"},deleted:{color:"hsl(5, 74%, 59%)"},important:{color:"hsl(5, 74%, 59%)"},selector:{color:"hsl(119, 34%, 47%)"},string:{color:"hsl(119, 34%, 47%)"},char:{color:"hsl(119, 34%, 47%)"},builtin:{color:"hsl(119, 34%, 47%)"},inserted:{color:"hsl(119, 34%, 47%)"},regex:{color:"hsl(119, 34%, 47%)"},"attr-value":{color:"hsl(119, 34%, 47%)"},"attr-value > .token.punctuation":{color:"hsl(119, 34%, 47%)"},variable:{color:"hsl(221, 87%, 60%)"},operator:{color:"hsl(221, 87%, 60%)"},function:{color:"hsl(221, 87%, 60%)"},url:{color:"hsl(198, 99%, 37%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(230, 8%, 24%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(230, 8%, 24%)"},".language-css .token.selector":{color:"hsl(5, 74%, 59%)"},".language-css .token.property":{color:"hsl(230, 8%, 24%)"},".language-css .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.function":{color:"hsl(198, 99%, 37%)"},".language-css .token.url > .token.string.url":{color:"hsl(119, 34%, 47%)"},".language-css .token.important":{color:"hsl(301, 63%, 40%)"},".language-css .token.atrule .token.rule":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.operator":{color:"hsl(301, 63%, 40%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(344, 84%, 43%)"},".language-json .token.operator":{color:"hsl(230, 8%, 24%)"},".language-json .token.null.keyword":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.url":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.operator":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(230, 8%, 24%)"},".language-markdown .token.url > .token.content":{color:"hsl(221, 87%, 60%)"},".language-markdown .token.url > .token.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.url-reference.url":{color:"hsl(198, 99%, 37%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(230, 4%, 64%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(119, 34%, 47%)"},".language-markdown .token.bold .token.content":{color:"hsl(35, 99%, 36%)"},".language-markdown .token.italic .token.content":{color:"hsl(301, 63%, 40%)"},".language-markdown .token.strike .token.content":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.list.punctuation":{color:"hsl(5, 74%, 59%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(5, 74%, 59%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.cr:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.lf:before":{color:"hsla(230, 8%, 24%, 0.2)"},"token.space:before":{color:"hsla(230, 8%, 24%, 0.2)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 6%, 44%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(230, 1%, 78%)",color:"hsl(230, 8%, 24%)"},".line-highlight.line-highlight":{background:"hsla(230, 8%, 24%, 0.05)"},".line-highlight.line-highlight:before":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(230, 1%, 90%)",color:"hsl(230, 8%, 24%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(230, 8%, 24%, 0.05)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".command-line .command-line-prompt":{borderRightColor:"hsla(230, 8%, 24%, 0.2)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(230, 1%, 62%)"},".command-line .command-line-prompt > span:before":{color:"hsl(230, 1%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(5, 74%, 59%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(119, 34%, 47%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(221, 87%, 60%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(301, 63%, 40%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(301, 63%, 40%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(0, 0, 95%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(0, 0, 95%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(0, 0, 95%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(0, 0, 95%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(0, 0%, 100%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(0, 0%, 100%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(230, 8%, 24%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(230, 8%, 24%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(230, 8%, 24%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(230, 8%, 24%)"}}},17748:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#1d262f",color:"#57718e"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#1d262f",color:"#57718e",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#004a9e"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#004a9e"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#004a9e"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"]::selection':{textShadow:"none",background:"#004a9e"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#004a9e"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#4a5f78"},prolog:{color:"#4a5f78"},doctype:{color:"#4a5f78"},cdata:{color:"#4a5f78"},punctuation:{color:"#4a5f78"},namespace:{Opacity:".7"},tag:{color:"#0aa370"},operator:{color:"#0aa370"},number:{color:"#0aa370"},property:{color:"#57718e"},function:{color:"#57718e"},"tag-id":{color:"#ebf4ff"},selector:{color:"#ebf4ff"},"atrule-id":{color:"#ebf4ff"},"code.language-javascript":{color:"#7eb6f6"},"attr-name":{color:"#7eb6f6"},"code.language-css":{color:"#47ebb4"},"code.language-scss":{color:"#47ebb4"},boolean:{color:"#47ebb4"},string:{color:"#47ebb4"},entity:{color:"#47ebb4",cursor:"help"},url:{color:"#47ebb4"},".language-css .token.string":{color:"#47ebb4"},".language-scss .token.string":{color:"#47ebb4"},".style .token.string":{color:"#47ebb4"},"attr-value":{color:"#47ebb4"},keyword:{color:"#47ebb4"},control:{color:"#47ebb4"},directive:{color:"#47ebb4"},unit:{color:"#47ebb4"},statement:{color:"#47ebb4"},regex:{color:"#47ebb4"},atrule:{color:"#47ebb4"},placeholder:{color:"#47ebb4"},variable:{color:"#47ebb4"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #ebf4ff",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#7eb6f6"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #34659d",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#1f2932"},".line-numbers .line-numbers-rows > span:before":{color:"#2c3847"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(10, 163, 112, 0.2) 70%, rgba(10, 163, 112, 0))"}}},17843:(e,t,n)=>{"use strict";n.d(t,{B:()=>i});var o=n(48620),r=n(93987);let i={partial:!0,tokenize:function(e,t,n){return function(t){return(0,r.On)(t)?(0,o.N)(e,i,"linePrefix")(t):i(t)};function i(e){return null===e||(0,r.HP)(e)?t(e):n(e)}}}},18367:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return o}});let o=n(17292)._(n(61221)).default.createContext({})},18583:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordWrap:"normal",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"14px",color:"#76d9e6",textShadow:"none"},'pre[class*="language-"]':{MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordWrap:"normal",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"14px",color:"#76d9e6",textShadow:"none",background:"#2a2a2a",padding:"15px",borderRadius:"4px",border:"1px solid #e1e1e8",overflow:"auto",position:"relative"},'pre > code[class*="language-"]':{fontSize:"1em"},':not(pre) > code[class*="language-"]':{background:"#2a2a2a",padding:"0.15em 0.2em 0.05em",borderRadius:".3em",border:"0.13em solid #7a6652",boxShadow:"1px 1px 0.3em -0.1em #000 inset"},'pre[class*="language-"] code':{whiteSpace:"pre",display:"block"},namespace:{Opacity:".7"},comment:{color:"#6f705e"},prolog:{color:"#6f705e"},doctype:{color:"#6f705e"},cdata:{color:"#6f705e"},operator:{color:"#a77afe"},boolean:{color:"#a77afe"},number:{color:"#a77afe"},"attr-name":{color:"#e6d06c"},string:{color:"#e6d06c"},entity:{color:"#e6d06c",cursor:"help"},url:{color:"#e6d06c"},".language-css .token.string":{color:"#e6d06c"},".style .token.string":{color:"#e6d06c"},selector:{color:"#a6e22d"},inserted:{color:"#a6e22d"},atrule:{color:"#ef3b7d"},"attr-value":{color:"#ef3b7d"},keyword:{color:"#ef3b7d"},important:{color:"#ef3b7d",fontWeight:"bold"},deleted:{color:"#ef3b7d"},regex:{color:"#76d9e6"},statement:{color:"#76d9e6",fontWeight:"bold"},placeholder:{color:"#fff"},variable:{color:"#fff"},bold:{fontWeight:"bold"},punctuation:{color:"#bebec5"},italic:{fontStyle:"italic"},"code.language-markup":{color:"#f9f9f9"},"code.language-markup .token.tag":{color:"#ef3b7d"},"code.language-markup .token.attr-name":{color:"#a6e22d"},"code.language-markup .token.attr-value":{color:"#e6d06c"},"code.language-markup .token.style":{color:"#76d9e6"},"code.language-markup .token.script":{color:"#76d9e6"},"code.language-markup .token.script .token.keyword":{color:"#76d9e6"},".line-highlight.line-highlight":{padding:"0",background:"rgba(255, 255, 255, 0.08)"},".line-highlight.line-highlight:before":{padding:"0.2em 0.5em",backgroundColor:"rgba(255, 255, 255, 0.4)",color:"black",height:"1em",lineHeight:"1em",boxShadow:"0 1px 1px rgba(255, 255, 255, 0.7)"},".line-highlight.line-highlight[data-end]:after":{padding:"0.2em 0.5em",backgroundColor:"rgba(255, 255, 255, 0.4)",color:"black",height:"1em",lineHeight:"1em",boxShadow:"0 1px 1px rgba(255, 255, 255, 0.7)"}}},18855:(e,t,n)=>{"use strict";n.d(t,{xQ:()=>i});var o=n(61221),r=n(75008);function i(e=!0){let t=(0,o.useContext)(r.t);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:a,register:l}=t,s=(0,o.useId)();(0,o.useEffect)(()=>{if(e)return l(s)},[e]);let c=(0,o.useCallback)(()=>e&&a&&a(s),[s,a,e]);return!n&&a?[!1,c]:[!0]}},20360:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#f5f7ff",color:"#5e6687"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#f5f7ff",color:"#5e6687",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#dfe2f1"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#dfe2f1"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"]::selection':{textShadow:"none",background:"#dfe2f1"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#dfe2f1"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#898ea4"},prolog:{color:"#898ea4"},doctype:{color:"#898ea4"},cdata:{color:"#898ea4"},punctuation:{color:"#5e6687"},namespace:{Opacity:".7"},operator:{color:"#c76b29"},boolean:{color:"#c76b29"},number:{color:"#c76b29"},property:{color:"#c08b30"},tag:{color:"#3d8fd1"},string:{color:"#22a2c9"},selector:{color:"#6679cc"},"attr-name":{color:"#c76b29"},entity:{color:"#22a2c9",cursor:"help"},url:{color:"#22a2c9"},".language-css .token.string":{color:"#22a2c9"},".style .token.string":{color:"#22a2c9"},"attr-value":{color:"#ac9739"},keyword:{color:"#ac9739"},control:{color:"#ac9739"},directive:{color:"#ac9739"},unit:{color:"#ac9739"},statement:{color:"#22a2c9"},regex:{color:"#22a2c9"},atrule:{color:"#22a2c9"},placeholder:{color:"#3d8fd1"},variable:{color:"#3d8fd1"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #202746",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#c94922"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:"0.4em solid #c94922",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#dfe2f1"},".line-numbers .line-numbers-rows > span:before":{color:"#979db4"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(107, 115, 148, 0.2) 70%, rgba(107, 115, 148, 0))"}}},21060:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(66514),r=n(80726);function i(e){var t,n;e.register(o.default),e.register(r.default),t=e.util.clone(e.languages.typescript),e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],(n=e.languages.tsx.tag).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}i.displayName="tsx",i.aliases=[]},22507:(e,t,n)=>{"use strict";function o(e,t){let n=String(e),o=n.indexOf(t),r=o,i=0,a=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==o;)o===r?++i>a&&(a=i):i=1,r=o+t.length,o=n.indexOf(t,r);return a}n.d(t,{D:()=>o})},22557:(e,t,n)=>{"use strict";function o(e){e.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:/[{}[\];(),.:]/}}n.r(t),n.d(t,{default:()=>o}),o.displayName="clike",o.aliases=[]},22679:(e,t,n)=>{var o=n(54610)();e.exports=o;try{regeneratorRuntime=o}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},22837:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});let o={};function r(e,t){let n=t||o;return i(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function i(e,t,n){var o;if((o=e)&&"object"==typeof o){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return a(e.children,t,n)}return Array.isArray(e)?a(e,t,n):""}function a(e,t,n){let o=[],r=-1;for(;++r{"use strict";n.d(t,{h:()=>d,s:()=>p});var o=n(512),r=n(56474);let i=/[#.]/g;var a=n(52510),l=n(8232),s=n(93437);function c(e,t,n){let o=n?function(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,l,...c){let d;if(null==n)d={type:"root",children:[]},c.unshift(l);else{let p=(d=function(e,t){let n,o,r=e||"",a={},l=0;for(;l{"use strict";n.d(t,{A:()=>o});let o=(0,n(32403).A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},25439:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#322d29",color:"#88786d"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#322d29",color:"#88786d",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6f5849"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#6f5849"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#6f5849"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"]::selection':{textShadow:"none",background:"#6f5849"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#6f5849"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#6a5f58"},prolog:{color:"#6a5f58"},doctype:{color:"#6a5f58"},cdata:{color:"#6a5f58"},punctuation:{color:"#6a5f58"},namespace:{Opacity:".7"},tag:{color:"#bfa05a"},operator:{color:"#bfa05a"},number:{color:"#bfa05a"},property:{color:"#88786d"},function:{color:"#88786d"},"tag-id":{color:"#fff3eb"},selector:{color:"#fff3eb"},"atrule-id":{color:"#fff3eb"},"code.language-javascript":{color:"#a48774"},"attr-name":{color:"#a48774"},"code.language-css":{color:"#fcc440"},"code.language-scss":{color:"#fcc440"},boolean:{color:"#fcc440"},string:{color:"#fcc440"},entity:{color:"#fcc440",cursor:"help"},url:{color:"#fcc440"},".language-css .token.string":{color:"#fcc440"},".language-scss .token.string":{color:"#fcc440"},".style .token.string":{color:"#fcc440"},"attr-value":{color:"#fcc440"},keyword:{color:"#fcc440"},control:{color:"#fcc440"},directive:{color:"#fcc440"},unit:{color:"#fcc440"},statement:{color:"#fcc440"},regex:{color:"#fcc440"},atrule:{color:"#fcc440"},placeholder:{color:"#fcc440"},variable:{color:"#fcc440"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #fff3eb",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#a48774"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #816d5f",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#35302b"},".line-numbers .line-numbers-rows > span:before":{color:"#46403d"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(191, 160, 90, 0.2) 70%, rgba(191, 160, 90, 0))"}}},27417:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o=(0,n(32403).A)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},28111:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});let o=document.createElement("i");function r(e){let t="&"+e+";";o.innerHTML=t;let n=o.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}},28292:(e,t,n)=>{"use strict";n.d(t,{z:()=>f,B:()=>h});var o=n(97601),r=n(61221);let i={damping:.7,stiffness:.05,mass:1.25},a=1e3/60,l=!1;function s(e,t){let n=(0,r.useCallback)(t=>(n.current=t,e(t)),t);return n}globalThis.document?.addEventListener("mousedown",()=>{l=!0}),globalThis.document?.addEventListener("mouseup",()=>{l=!1}),globalThis.document?.addEventListener("click",()=>{l=!1});let c=new Map;function u(...e){let t={...i},n=!1;for(let o of e){if("instant"===o){n=!0;continue}"object"==typeof o&&(n=!1,t.damping=o.damping??t.damping,t.stiffness=o.stiffness??t.stiffness,t.mass=o.mass??t.mass)}let o=JSON.stringify(t);return c.has(o)||c.set(o,Object.freeze(t)),n?"instant":c.get(o)}let d=(0,r.createContext)(null),p="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function f({instance:e,children:t,resize:n,initial:i,mass:c,damping:f,stiffness:h,targetScrollTop:g,contextRef:m,...b}){let y=(0,r.useRef)(null),v=((e={})=>{let[t,n]=(0,r.useState)(!1),[o,i]=(0,r.useState)(!1!==e.initial),[c,d]=(0,r.useState)(!1),p=(0,r.useRef)(null);p.current=e;let f=(0,r.useCallback)(()=>{if(!l)return!1;let e=window.getSelection();if(!e||!e.rangeCount)return!1;let t=e.getRangeAt(0);return t.commonAncestorContainer.contains(x.current)||x.current?.contains(t.commonAncestorContainer)},[]),h=(0,r.useCallback)(e=>{m.isAtBottom=e,i(e)},[]),g=(0,r.useCallback)(e=>{m.escapedFromLock=e,n(e)},[]),m=(0,r.useMemo)(()=>{let n;return{escapedFromLock:t,isAtBottom:o,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return x.current?.scrollTop??0},set scrollTop(scrollTop){x.current&&(x.current.scrollTop=scrollTop,m.ignoreScrollToTop=x.current.scrollTop)},get targetScrollTop(){if(!x.current||!w.current)return 0;return x.current.scrollHeight-1-x.current.clientHeight},get calculatedTargetScrollTop(){if(!x.current||!w.current)return 0;let{targetScrollTop:t}=this;if(!e.targetScrollTop)return t;if(n?.targetScrollTop===t)return n.calculatedScrollTop;let o=Math.max(Math.min(e.targetScrollTop(t,{scrollElement:x.current,contentElement:w.current}),t),0);return n={targetScrollTop:t,calculatedScrollTop:o},requestAnimationFrame(()=>{n=void 0}),o},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=70}}},[]),b=(0,r.useCallback)((e={})=>{let t;"string"==typeof e&&(e={animation:e}),e.preserveScrollPosition||h(!0);let n=Date.now()+(Number(e.wait)||0),o=u(p.current,e.animation),{ignoreEscapes:r=!1}=e,i=m.calculatedTargetScrollTop;e.duration instanceof Promise?e.duration.finally(()=>{t=Date.now()}):t=n+(e.duration??0);let l=async()=>{let e=new Promise(requestAnimationFrame).then(()=>{if(!m.isAtBottom)return m.animation=void 0,!1;let{scrollTop:s}=m,c=performance.now(),d=(c-(m.lastTick??c))/a;if(m.animation||(m.animation={behavior:o,promise:e,ignoreEscapes:r}),m.animation.behavior===o&&(m.lastTick=c),f()||n>Date.now())return l();if(sDate.now()?(i=m.calculatedTargetScrollTop,l()):(m.animation=void 0,m.scrollTop(requestAnimationFrame(()=>{m.animation||(m.lastTick=void 0,m.velocity=0)}),e))};return(!0!==e.wait&&(m.animation=void 0),m.animation?.behavior===o)?m.animation.promise:l()},[h,f,m]),y=(0,r.useCallback)(()=>{g(!0),h(!1)},[g,h]),v=(0,r.useCallback)(({target:e})=>{if(e!==x.current)return;let{scrollTop:t,ignoreScrollToTop:n}=m,{lastScrollTop:o=t}=m;m.lastScrollTop=t,m.ignoreScrollToTop=void 0,n&&n>t&&(o=n),d(m.isNearBottom),setTimeout(()=>{if(m.resizeDifference||t===n)return;if(f()){g(!0),h(!1);return}let e=t>o,r=t{let n=e;for(;!["scroll","auto"].includes(getComputedStyle(n).overflow);){if(!n.parentElement)return;n=n.parentElement}n===x.current&&t<0&&x.current.scrollHeight>x.current.clientHeight&&!m.animation?.ignoreEscapes&&(g(!0),h(!1))},[g,h,m]),x=s(e=>{x.current?.removeEventListener("scroll",v),x.current?.removeEventListener("wheel",k),e?.addEventListener("scroll",v,{passive:!0}),e?.addEventListener("wheel",k,{passive:!0})},[]),w=s(e=>{let t;m.resizeObserver?.disconnect(),e&&(m.resizeObserver=new ResizeObserver(([e])=>{let{height:n}=e.contentRect,o=n-(t??n);if(m.resizeDifference=o,m.scrollTop>m.targetScrollTop&&(m.scrollTop=m.targetScrollTop),d(m.isNearBottom),o>=0){let e=u(p.current,t?p.current.resize:p.current.initial);b({animation:e,wait:!0,preserveScrollPosition:!0,duration:"instant"===e?void 0:350})}else m.isNearBottom&&(g(!1),h(!0));t=n,requestAnimationFrame(()=>{setTimeout(()=>{m.resizeDifference===o&&(m.resizeDifference=0)},1)})}),m.resizeObserver?.observe(e))},[]);return{contentRef:w,scrollRef:x,scrollToBottom:b,stopScroll:y,isAtBottom:o||c,isNearBottom:c,escapedFromLock:t,state:m}})({mass:c,damping:f,stiffness:h,resize:n,initial:i,targetScrollTop:r.useCallback((e,t)=>{let n=z?.targetScrollTop??g;return n?.(e,t)??e},[g])}),{scrollRef:k,contentRef:x,scrollToBottom:w,stopScroll:S,isAtBottom:A,escapedFromLock:C,state:M}=e??v,z=(0,r.useMemo)(()=>({scrollToBottom:w,stopScroll:S,scrollRef:k,isAtBottom:A,escapedFromLock:C,contentRef:x,state:M,get targetScrollTop(){return y.current},set targetScrollTop(targetScrollTop){y.current=targetScrollTop}}),[w,A,x,k,S,C,M]);return(0,r.useImperativeHandle)(m,()=>z,[z]),p(()=>{k.current&&"visible"===getComputedStyle(k.current).overflow&&(k.current.style.overflow="auto")},[]),(0,o.jsx)(d.Provider,{value:z,children:(0,o.jsx)("div",{...b,children:"function"==typeof t?t(z):t})})}function h(){let e=(0,r.useContext)(d);if(!e)throw Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}(f||(f={})).Content=function({children:e,...t}){let n=h();return(0,o.jsx)("div",{ref:n.scrollRef,style:{height:"100%",width:"100%"},children:(0,o.jsx)("div",{...t,ref:n.contentRef,children:"function"==typeof e?e(n):e})})}},29558:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(51719);let o=n(78703),r=n(17019),i=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var n,s;let c,u,d,{src:p,sizes:f,unoptimized:h=!1,priority:g=!1,loading:m,className:b,quality:y,width:v,height:k,fill:x=!1,style:w,overrideSrc:S,onLoad:A,onLoadingComplete:C,placeholder:M="empty",blurDataURL:z,fetchPriority:T,decoding:E="async",layout:P,objectFit:F,objectPosition:O,lazyBoundary:D,lazyRoot:j,...R}=e,{imgConf:H,showAltText:L,blurComplete:B,defaultLoader:N}=t,W=H||r.imageConfigDefault;if("allSizes"in W)c=W;else{let e=[...W.deviceSizes,...W.imageSizes].sort((e,t)=>e-t),t=W.deviceSizes.sort((e,t)=>e-t),o=null==(n=W.qualities)?void 0:n.sort((e,t)=>e-t);c={...W,allSizes:e,deviceSizes:t,qualities:o}}if(void 0===N)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let I=R.loader||N;delete R.loader,delete R.srcSet;let _="__next_img_default"in I;if(_){if("custom"===c.loader)throw Object.defineProperty(Error('Image with src "'+p+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=I;I=t=>{let{config:n,...o}=t;return e(o)}}if(P){"fill"===P&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[P];e&&(w={...w,...e});let t={responsive:"100vw",fill:"100vw"}[P];t&&!f&&(f=t)}let V="",U=l(v),q=l(k);if((s=p)&&"object"==typeof s&&(a(s)||void 0!==s.src)){let e=a(p)?p.default:p;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(u=e.blurWidth,d=e.blurHeight,z=z||e.blurDataURL,V=e.src,!x)if(U||q){if(U&&!q){let t=U/e.width;q=Math.round(e.height*t)}else if(!U&&q){let t=q/e.height;U=Math.round(e.width*t)}}else U=e.width,q=e.height}let $=!g&&("lazy"===m||void 0===m);(!(p="string"==typeof p?p:V)||p.startsWith("data:")||p.startsWith("blob:"))&&(h=!0,$=!1),c.unoptimized&&(h=!0),_&&!c.dangerouslyAllowSVG&&p.split("?",1)[0].endsWith(".svg")&&(h=!0);let G=l(y),Y=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:F,objectPosition:O}:{},L?{}:{color:"transparent"},w),K=B||"empty"===M?null:"blur"===M?'url("data:image/svg+xml;charset=utf-8,'+(0,o.getImageBlurSvg)({widthInt:U,heightInt:q,blurWidth:u,blurHeight:d,blurDataURL:z||"",objectFit:Y.objectFit})+'")':'url("'+M+'")',Q=i.includes(Y.objectFit)?"fill"===Y.objectFit?"100% 100%":"cover":Y.objectFit,X=K?{backgroundSize:Q,backgroundPosition:Y.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{},Z=function(e){let{config:t,src:n,unoptimized:o,width:r,quality:i,sizes:a,loader:l}=e;if(o)return{src:n,srcSet:void 0,sizes:void 0};let{widths:s,kind:c}=function(e,t,n){let{deviceSizes:o,allSizes:r}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let o;o=e.exec(n);)t.push(parseInt(o[2]));if(t.length){let e=.01*Math.min(...t);return{widths:r.filter(t=>t>=o[0]*e),kind:"w"}}return{widths:r,kind:"w"}}return"number"!=typeof t?{widths:o,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>r.find(t=>t>=e)||r[r.length-1]))],kind:"x"}}(t,r,a),u=s.length-1;return{sizes:a||"w"!==c?a:"100vw",srcSet:s.map((e,o)=>l({config:t,src:n,quality:i,width:e})+" "+("w"===c?e:o+1)+c).join(", "),src:l({config:t,src:n,quality:i,width:s[u]})}}({config:c,src:p,unoptimized:h,width:U,quality:G,sizes:f,loader:I});return{props:{...R,loading:$?"lazy":m,fetchPriority:T,width:U,height:q,decoding:E,className:b,style:{...Y,...X},sizes:Z.sizes,srcSet:Z.srcSet,src:S||Z.src},meta:{unoptimized:h,priority:g,placeholder:M,fill:x}}}},30179:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#fff",textShadow:"0 1px 1px #000",fontFamily:'Menlo, Monaco, "Courier New", monospace',direction:"ltr",textAlign:"left",wordSpacing:"normal",whiteSpace:"pre",wordWrap:"normal",lineHeight:"1.4",background:"none",border:"0",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#fff",textShadow:"0 1px 1px #000",fontFamily:'Menlo, Monaco, "Courier New", monospace',direction:"ltr",textAlign:"left",wordSpacing:"normal",whiteSpace:"pre",wordWrap:"normal",lineHeight:"1.4",background:"#222",border:"0",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"15px",margin:"1em 0",overflow:"auto",MozBorderRadius:"8px",WebkitBorderRadius:"8px",borderRadius:"8px"},'pre[class*="language-"] code':{float:"left",padding:"0 15px 0 0"},':not(pre) > code[class*="language-"]':{background:"#222",padding:"5px 10px",lineHeight:"1",MozBorderRadius:"3px",WebkitBorderRadius:"3px",borderRadius:"3px"},comment:{color:"#797979"},prolog:{color:"#797979"},doctype:{color:"#797979"},cdata:{color:"#797979"},selector:{color:"#fff"},operator:{color:"#fff"},punctuation:{color:"#fff"},namespace:{Opacity:".7"},tag:{color:"#ffd893"},boolean:{color:"#ffd893"},atrule:{color:"#B0C975"},"attr-value":{color:"#B0C975"},hex:{color:"#B0C975"},string:{color:"#B0C975"},property:{color:"#c27628"},entity:{color:"#c27628",cursor:"help"},url:{color:"#c27628"},"attr-name":{color:"#c27628"},keyword:{color:"#c27628"},regex:{color:"#9B71C6"},function:{color:"#e5a638"},constant:{color:"#e5a638"},variable:{color:"#fdfba8"},number:{color:"#8799B0"},important:{color:"#E45734"},deliminator:{color:"#E45734"},".line-highlight.line-highlight":{background:"rgba(255, 255, 255, .2)"},".line-highlight.line-highlight:before":{top:".3em",backgroundColor:"rgba(255, 255, 255, .3)",color:"#fff",MozBorderRadius:"8px",WebkitBorderRadius:"8px",borderRadius:"8px"},".line-highlight.line-highlight[data-end]:after":{top:".3em",backgroundColor:"rgba(255, 255, 255, .3)",color:"#fff",MozBorderRadius:"8px",WebkitBorderRadius:"8px",borderRadius:"8px"},".line-numbers .line-numbers-rows > span":{borderRight:"3px #d9d336 solid"}}},30645:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#24242e",color:"#767693"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#24242e",color:"#767693",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#5151e6"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#5151e6"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#5151e6"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"]::selection':{textShadow:"none",background:"#5151e6"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#5151e6"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#5b5b76"},prolog:{color:"#5b5b76"},doctype:{color:"#5b5b76"},cdata:{color:"#5b5b76"},punctuation:{color:"#5b5b76"},namespace:{Opacity:".7"},tag:{color:"#dd672c"},operator:{color:"#dd672c"},number:{color:"#dd672c"},property:{color:"#767693"},function:{color:"#767693"},"tag-id":{color:"#ebebff"},selector:{color:"#ebebff"},"atrule-id":{color:"#ebebff"},"code.language-javascript":{color:"#aaaaca"},"attr-name":{color:"#aaaaca"},"code.language-css":{color:"#fe8c52"},"code.language-scss":{color:"#fe8c52"},boolean:{color:"#fe8c52"},string:{color:"#fe8c52"},entity:{color:"#fe8c52",cursor:"help"},url:{color:"#fe8c52"},".language-css .token.string":{color:"#fe8c52"},".language-scss .token.string":{color:"#fe8c52"},".style .token.string":{color:"#fe8c52"},"attr-value":{color:"#fe8c52"},keyword:{color:"#fe8c52"},control:{color:"#fe8c52"},directive:{color:"#fe8c52"},unit:{color:"#fe8c52"},statement:{color:"#fe8c52"},regex:{color:"#fe8c52"},atrule:{color:"#fe8c52"},placeholder:{color:"#fe8c52"},variable:{color:"#fe8c52"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #ebebff",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#aaaaca"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #7676f4",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#262631"},".line-numbers .line-numbers-rows > span:before":{color:"#393949"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(221, 103, 44, 0.2) 70%, rgba(221, 103, 44, 0))"}}},31610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"white",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",textShadow:"0 -.1em .2em black",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"white",background:"hsl(0, 0%, 8%)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",textShadow:"0 -.1em .2em black",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",borderRadius:".5em",border:".3em solid hsl(0, 0%, 33%)",boxShadow:"1px 1px .5em black inset",margin:".5em 0",overflow:"auto",padding:"1em"},':not(pre) > code[class*="language-"]':{background:"hsl(0, 0%, 8%)",borderRadius:".3em",border:".13em solid hsl(0, 0%, 33%)",boxShadow:"1px 1px .3em -.1em black inset",padding:".15em .2em .05em",whiteSpace:"normal"},'pre[class*="language-"]::-moz-selection':{background:"hsla(0, 0%, 93%, 0.15)",textShadow:"none"},'pre[class*="language-"]::selection':{background:"hsla(0, 0%, 93%, 0.15)",textShadow:"none"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"]::selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},'code[class*="language-"] ::selection':{textShadow:"none",background:"hsla(0, 0%, 93%, 0.15)"},comment:{color:"hsl(0, 0%, 47%)"},prolog:{color:"hsl(0, 0%, 47%)"},doctype:{color:"hsl(0, 0%, 47%)"},cdata:{color:"hsl(0, 0%, 47%)"},punctuation:{Opacity:".7"},namespace:{Opacity:".7"},tag:{color:"hsl(14, 58%, 55%)"},boolean:{color:"hsl(14, 58%, 55%)"},number:{color:"hsl(14, 58%, 55%)"},deleted:{color:"hsl(14, 58%, 55%)"},keyword:{color:"hsl(53, 89%, 79%)"},property:{color:"hsl(53, 89%, 79%)"},selector:{color:"hsl(53, 89%, 79%)"},constant:{color:"hsl(53, 89%, 79%)"},symbol:{color:"hsl(53, 89%, 79%)"},builtin:{color:"hsl(53, 89%, 79%)"},"attr-name":{color:"hsl(76, 21%, 52%)"},"attr-value":{color:"hsl(76, 21%, 52%)"},string:{color:"hsl(76, 21%, 52%)"},char:{color:"hsl(76, 21%, 52%)"},operator:{color:"hsl(76, 21%, 52%)"},entity:{color:"hsl(76, 21%, 52%)",cursor:"help"},url:{color:"hsl(76, 21%, 52%)"},".language-css .token.string":{color:"hsl(76, 21%, 52%)"},".style .token.string":{color:"hsl(76, 21%, 52%)"},variable:{color:"hsl(76, 21%, 52%)"},inserted:{color:"hsl(76, 21%, 52%)"},atrule:{color:"hsl(218, 22%, 55%)"},regex:{color:"hsl(42, 75%, 65%)"},important:{color:"hsl(42, 75%, 65%)",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},".language-markup .token.tag":{color:"hsl(33, 33%, 52%)"},".language-markup .token.attr-name":{color:"hsl(33, 33%, 52%)"},".language-markup .token.punctuation":{color:"hsl(33, 33%, 52%)"},"":{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"linear-gradient(to right, hsla(0, 0%, 33%, .1) 70%, hsla(0, 0%, 33%, 0))",borderBottom:"1px dashed hsl(0, 0%, 33%)",borderTop:"1px dashed hsl(0, 0%, 33%)",marginTop:"0.75em",zIndex:"0"},".line-highlight.line-highlight:before":{backgroundColor:"hsl(215, 15%, 59%)",color:"hsl(24, 20%, 95%)"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"hsl(215, 15%, 59%)",color:"hsl(24, 20%, 95%)"}}},32980:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#ebdbb2",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#ebdbb2",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",background:"#1d2021"},'pre[class*="language-"]::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'pre[class*="language-"] ::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"]::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"] ::-moz-selection':{color:"#fbf1c7",background:"#7c6f64"},'pre[class*="language-"]::selection':{color:"#fbf1c7",background:"#7c6f64"},'pre[class*="language-"] ::selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"]::selection':{color:"#fbf1c7",background:"#7c6f64"},'code[class*="language-"] ::selection':{color:"#fbf1c7",background:"#7c6f64"},':not(pre) > code[class*="language-"]':{background:"#1d2021",padding:"0.1em",borderRadius:"0.3em"},comment:{color:"#a89984"},prolog:{color:"#a89984"},cdata:{color:"#a89984"},delimiter:{color:"#fb4934"},boolean:{color:"#fb4934"},keyword:{color:"#fb4934"},selector:{color:"#fb4934"},important:{color:"#fb4934"},atrule:{color:"#fb4934"},operator:{color:"#a89984"},punctuation:{color:"#a89984"},"attr-name":{color:"#a89984"},tag:{color:"#fabd2f"},"tag.punctuation":{color:"#fabd2f"},doctype:{color:"#fabd2f"},builtin:{color:"#fabd2f"},entity:{color:"#d3869b"},number:{color:"#d3869b"},symbol:{color:"#d3869b"},property:{color:"#fb4934"},constant:{color:"#fb4934"},variable:{color:"#fb4934"},string:{color:"#b8bb26"},char:{color:"#b8bb26"},"attr-value":{color:"#a89984"},"attr-value.punctuation":{color:"#a89984"},url:{color:"#b8bb26",textDecoration:"underline"},function:{color:"#fabd2f"},regex:{background:"#b8bb26"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#a89984"},deleted:{background:"#fb4934"}}},34944:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});var o=n(97763);function r(e){return(0,o.G)(e)&&"offsetHeight"in e}},37427:e=>{e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},39508:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#3c3836",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#3c3836",fontFamily:'Consolas, Monaco, "Andale Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",background:"#f9f5d7"},'pre[class*="language-"]::-moz-selection':{color:"#282828",background:"#a89984"},'pre[class*="language-"] ::-moz-selection':{color:"#282828",background:"#a89984"},'code[class*="language-"]::-moz-selection':{color:"#282828",background:"#a89984"},'code[class*="language-"] ::-moz-selection':{color:"#282828",background:"#a89984"},'pre[class*="language-"]::selection':{color:"#282828",background:"#a89984"},'pre[class*="language-"] ::selection':{color:"#282828",background:"#a89984"},'code[class*="language-"]::selection':{color:"#282828",background:"#a89984"},'code[class*="language-"] ::selection':{color:"#282828",background:"#a89984"},':not(pre) > code[class*="language-"]':{background:"#f9f5d7",padding:"0.1em",borderRadius:"0.3em"},comment:{color:"#7c6f64"},prolog:{color:"#7c6f64"},cdata:{color:"#7c6f64"},delimiter:{color:"#9d0006"},boolean:{color:"#9d0006"},keyword:{color:"#9d0006"},selector:{color:"#9d0006"},important:{color:"#9d0006"},atrule:{color:"#9d0006"},operator:{color:"#7c6f64"},punctuation:{color:"#7c6f64"},"attr-name":{color:"#7c6f64"},tag:{color:"#b57614"},"tag.punctuation":{color:"#b57614"},doctype:{color:"#b57614"},builtin:{color:"#b57614"},entity:{color:"#8f3f71"},number:{color:"#8f3f71"},symbol:{color:"#8f3f71"},property:{color:"#9d0006"},constant:{color:"#9d0006"},variable:{color:"#9d0006"},string:{color:"#797403"},char:{color:"#797403"},"attr-value":{color:"#7c6f64"},"attr-value.punctuation":{color:"#7c6f64"},url:{color:"#797403",textDecoration:"underline"},function:{color:"#b57614"},regex:{background:"#797403"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#7c6f64"},deleted:{background:"#9d0006"}}},40354:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",position:"relative",borderLeft:"10px solid #358ccb",boxShadow:"-1px 0 0 0 #358ccb, 0 0 0 1px #dfdfdf",backgroundColor:"#fdfdfd",backgroundImage:"linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%)",backgroundSize:"3em 3em",backgroundOrigin:"content-box",backgroundAttachment:"local",margin:".5em 0",padding:"0 1em"},'pre[class*="language-"] > code':{display:"block"},':not(pre) > code[class*="language-"]':{position:"relative",padding:".2em",borderRadius:"0.3em",color:"#c92c2c",border:"1px solid rgba(0, 0, 0, 0.1)",display:"inline",whiteSpace:"normal",backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box"},comment:{color:"#7D8B99"},"block-comment":{color:"#7D8B99"},prolog:{color:"#7D8B99"},doctype:{color:"#7D8B99"},cdata:{color:"#7D8B99"},punctuation:{color:"#5F6364"},property:{color:"#c92c2c"},tag:{color:"#c92c2c"},boolean:{color:"#c92c2c"},number:{color:"#c92c2c"},"function-name":{color:"#c92c2c"},constant:{color:"#c92c2c"},symbol:{color:"#c92c2c"},deleted:{color:"#c92c2c"},selector:{color:"#2f9c0a"},"attr-name":{color:"#2f9c0a"},string:{color:"#2f9c0a"},char:{color:"#2f9c0a"},function:{color:"#2f9c0a"},builtin:{color:"#2f9c0a"},inserted:{color:"#2f9c0a"},operator:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},entity:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)",cursor:"help"},url:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},variable:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},atrule:{color:"#1990b8"},"attr-value":{color:"#1990b8"},keyword:{color:"#1990b8"},"class-name":{color:"#1990b8"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"normal"},".language-css .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},".style .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:".7"}}},40441:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#2b2b2b",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#2b2b2b",padding:"0.1em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#d4d0ab"},prolog:{color:"#d4d0ab"},doctype:{color:"#d4d0ab"},cdata:{color:"#d4d0ab"},punctuation:{color:"#fefefe"},property:{color:"#ffa07a"},tag:{color:"#ffa07a"},constant:{color:"#ffa07a"},symbol:{color:"#ffa07a"},deleted:{color:"#ffa07a"},boolean:{color:"#00e0e0"},number:{color:"#00e0e0"},selector:{color:"#abe338"},"attr-name":{color:"#abe338"},string:{color:"#abe338"},char:{color:"#abe338"},builtin:{color:"#abe338"},inserted:{color:"#abe338"},operator:{color:"#00e0e0"},entity:{color:"#00e0e0",cursor:"help"},url:{color:"#00e0e0"},".language-css .token.string":{color:"#00e0e0"},".style .token.string":{color:"#00e0e0"},variable:{color:"#00e0e0"},atrule:{color:"#ffd700"},"attr-value":{color:"#ffd700"},function:{color:"#ffd700"},keyword:{color:"#00e0e0"},regex:{color:"#ffd700"},important:{color:"#ffd700",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}},40472:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={"code[class*='language-']":{color:"#d6e7ff",background:"#030314",textShadow:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',fontSize:"1em",lineHeight:"1.5",letterSpacing:".2px",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",textAlign:"left",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},"pre[class*='language-']":{color:"#d6e7ff",background:"#030314",textShadow:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',fontSize:"1em",lineHeight:"1.5",letterSpacing:".2px",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",textAlign:"left",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",border:"1px solid #2a4555",borderRadius:"5px",padding:"1.5em 1em",margin:"1em 0",overflow:"auto"},"pre[class*='language-']::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"pre[class*='language-'] ::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-']::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-'] ::-moz-selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"pre[class*='language-']::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"pre[class*='language-'] ::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-']::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},"code[class*='language-'] ::selection":{color:"inherit",background:"#1d3b54",textShadow:"none"},":not(pre) > code[class*='language-']":{color:"#f0f6f6",background:"#2a4555",padding:"0.2em 0.3em",borderRadius:"0.2em",boxDecorationBreak:"clone"},comment:{color:"#446e69"},prolog:{color:"#446e69"},doctype:{color:"#446e69"},cdata:{color:"#446e69"},punctuation:{color:"#d6b007"},property:{color:"#d6e7ff"},tag:{color:"#d6e7ff"},boolean:{color:"#d6e7ff"},number:{color:"#d6e7ff"},constant:{color:"#d6e7ff"},symbol:{color:"#d6e7ff"},deleted:{color:"#d6e7ff"},selector:{color:"#e60067"},"attr-name":{color:"#e60067"},builtin:{color:"#e60067"},inserted:{color:"#e60067"},string:{color:"#49c6ec"},char:{color:"#49c6ec"},operator:{color:"#ec8e01",background:"transparent"},entity:{color:"#ec8e01",background:"transparent"},url:{color:"#ec8e01",background:"transparent"},".language-css .token.string":{color:"#ec8e01",background:"transparent"},".style .token.string":{color:"#ec8e01",background:"transparent"},atrule:{color:"#0fe468"},"attr-value":{color:"#0fe468"},keyword:{color:"#0fe468"},function:{color:"#78f3e9"},"class-name":{color:"#78f3e9"},regex:{color:"#d6e7ff"},important:{color:"#d6e7ff"},variable:{color:"#d6e7ff"}}},41550:(e,t,n)=>{"use strict";n.d(t,{oz:()=>tq});var o={};n.r(o),n.d(o,{attentionMarkers:()=>eY,contentInitial:()=>e_,disable:()=>eK,document:()=>eI,flow:()=>eU,flowInitial:()=>eV,insideSpan:()=>eG,string:()=>eq,text:()=>e$});var r=n(48924),i=n(56474);let a=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s={};function c(e,t){return((t||s).jsx?l:a).test(e)}let u=/[ \t\n\f\r]/g;function d(e){return""===e.replace(u,"")}var p=n(512),f=n(52510);let h={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var g=n(93437),m=n(51715);let b=v("end"),y=v("start");function v(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function k(e){return e&&"object"==typeof e?"position"in e||"type"in e?w(e.position):"start"in e||"end"in e?w(e):"line"in e||"column"in e?x(e):"":""}function x(e){return S(e&&e.line)+":"+S(e&&e.column)}function w(e){return x(e&&e.start)+"-"+x(e&&e.end)}function S(e){return e&&"number"==typeof e?e:1}class A extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let o="",r={},i=!1;if(t&&(r="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?o=e:!r.cause&&e&&(i=!0,o=e.message,r.cause=e),!r.ruleId&&!r.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?r.ruleId=n:(r.source=n.slice(0,e),r.ruleId=n.slice(e+1))}if(!r.place&&r.ancestors&&r.ancestors){let e=r.ancestors[r.ancestors.length-1];e&&(r.place=e.position)}let a=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||void 0,this.cause=r.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=a?a.line:void 0,this.name=k(r.place)||"1:1",this.place=r.place||void 0,this.reason=this.message,this.ruleId=r.ruleId||void 0,this.source=r.source||void 0,this.stack=i&&r.cause&&"string"==typeof r.cause.stack?r.cause.stack:"",this.actual,this.expected,this.note,this.url}}A.prototype.file="",A.prototype.name="",A.prototype.reason="",A.prototype.message="",A.prototype.stack="",A.prototype.column=void 0,A.prototype.line=void 0,A.prototype.ancestors=void 0,A.prototype.cause=void 0,A.prototype.fatal=void 0,A.prototype.place=void 0,A.prototype.ruleId=void 0,A.prototype.source=void 0;let C={}.hasOwnProperty,M=new Map,z=/[A-Z]/g,T=new Set(["table","tbody","thead","tfoot","tr"]),E=new Set(["td","th"]),P="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function F(e,t,n){return"element"===t.type?function(e,t,n){let o=e.schema;"svg"===t.tagName.toLowerCase()&&"html"===o.space&&(e.schema=p.JW),e.ancestors.push(t);let r=R(e,t.tagName,!1),a=function(e,t){let n,o,r={};for(o in t.properties)if("children"!==o&&C.call(t.properties,o)){let a=function(e,t,n){let o=(0,f.I)(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=o.commaSeparated?(0,i.A)(n):(0,g.A)(n)),"style"===o.property){let t="object"==typeof n?n:function(e,t){try{return m(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new A("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=P+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)C.call(e,t)&&(n[function(e){let t=e.replace(z,L);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&o.space?h[o.property]||o.property:o.attribute,n]}}(e,o,t.properties[o]);if(a){let[o,i]=a;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof i&&E.has(t.tagName)?n=i:r[o]=i}}return n&&((r.style||(r.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),r}(e,t),l=j(e,t);return T.has(t.tagName)&&(l=l.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&d(e.value):d(e))})),O(e,a,r,t),D(a,l),e.ancestors.pop(),e.schema=o,e.create(t,r,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return(0,r.ok)("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}H(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let o=e.schema;"svg"===t.name&&"html"===o.space&&(e.schema=p.JW),e.ancestors.push(t);let i=null===t.name?e.Fragment:R(e,t.name,!0),a=function(e,t){let n={};for(let o of t.attributes)if("mdxJsxExpressionAttribute"===o.type)if(o.data&&o.data.estree&&e.evaluater){let t=o.data.estree.body[0];(0,r.ok)("ExpressionStatement"===t.type);let i=t.expression;(0,r.ok)("ObjectExpression"===i.type);let a=i.properties[0];(0,r.ok)("SpreadElement"===a.type),Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else H(e,t.position);else{let i,a=o.name;if(o.value&&"object"==typeof o.value)if(o.value.data&&o.value.data.estree&&e.evaluater){let t=o.value.data.estree.body[0];(0,r.ok)("ExpressionStatement"===t.type),i=e.evaluater.evaluateExpression(t.expression)}else H(e,t.position);else i=null===o.value||o.value;n[a]=i}return n}(e,t),l=j(e,t);return O(e,a,i,t),D(a,l),e.ancestors.pop(),e.schema=o,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);H(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let o={};return D(o,j(e,t)),e.create(t,e.Fragment,o,n)}(e,t,n):"text"===t.type?t.value:void 0}function O(e,t,n,o){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=o)}function D(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function j(e,t){let n=[],o=-1,r=e.passKeys?new Map:M;for(;++o=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let o=this.right.splice(this.right.length-(t||0),1/0);return n&&V(this.left,n),o.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),V(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),V(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(eo))return;let l=r.events.length,s=l;for(;s--;)if("exit"===r.events[s][0]&&"chunkFlow"===r.events[s][1].type){if(e){n=r.events[s][1].end;break}e=!0}for(m(a),i=l;it;){let t=i[n];r.containerState=t[1],t[0].exit.call(r,e)}i.length=t}function b(){t.write([null]),n=void 0,t=void 0,r.containerState._closeFlow=void 0}}},Q={tokenize:function(e,t,n){return(0,$.N)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var X=n(17843);let Z={resolve:function(e){return U(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(t)};function o(t){return null===t?r(t):(0,G.HP)(t)?e.check(J,i,r)(t):(e.consume(t),o)}function r(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}},J={partial:!0,tokenize:function(e,t,n){let o=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,$.N)(e,r,"linePrefix")};function r(r){if(null===r||(0,G.HP)(r))return n(r);let i=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(r):e.interrupt(o.parser.constructs.flow,n,t)(r)}}},ee={tokenize:function(e){let t=this,n=e.attempt(X.B,function(o){return null===o?void e.consume(o):(e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,o,(0,$.N)(e,e.attempt(this.parser.constructs.flow,o,e.attempt(Z,o)),"linePrefix")));return n;function o(o){return null===o?void e.consume(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},et={resolveAll:ei()},en=er("string"),eo=er("text");function er(e){return{resolveAll:ei("text"===e?ea:void 0),tokenize:function(t){let n=this,o=this.parser.constructs[e],r=t.attempt(o,i,a);return i;function i(e){return s(e)?r(e):a(e)}function a(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),l)}function l(e){return s(e)?(t.exit("data"),r(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;let t=o[e],r=-1;if(t)for(;++r=3&&(null===a||(0,G.HP)(a))?(e.exit("thematicBreak"),t(a)):n(a)}(a)}}},es={continuation:{tokenize:function(e,t,n){let o=this;return o.containerState._closeFlow=void 0,e.check(X.B,function(n){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,(0,$.N)(e,t,"listItemIndent",o.containerState.size+1)(n)},function(n){return o.containerState.furtherBlankLines||!(0,G.On)(n)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,r(n)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(eu,t,r)(n))});function r(r){return o.containerState._closeFlow=!0,o.interrupt=void 0,(0,$.N)(e,e.attempt(es,t,n),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(r)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let o=this,r=o.events[o.events.length-1],i=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,a=0;return function(t){let r=o.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===r?!o.containerState.marker||t===o.containerState.marker:(0,G.BM)(t)){if(o.containerState.type||(o.containerState.type=r,e.enter(r,{_container:!0})),"listUnordered"===r)return e.enter("listItemPrefix"),42===t||45===t?e.check(el,n,l)(t):l(t);if(!o.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(r){return(0,G.BM)(r)&&++a<10?(e.consume(r),t):(!o.interrupt||a<2)&&(o.containerState.marker?r===o.containerState.marker:41===r||46===r)?(e.exit("listItemValue"),l(r)):n(r)}(t)}return n(t)};function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||t,e.check(X.B,o.interrupt?n:s,e.attempt(ec,u,c))}function s(e){return o.containerState.initialBlankLine=!0,i++,u(e)}function c(t){return(0,G.On)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return o.containerState.size=i+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},ec={partial:!0,tokenize:function(e,t,n){let o=this;return(0,$.N)(e,function(e){let r=o.events[o.events.length-1];return!(0,G.On)(e)&&r&&"listItemPrefixWhitespace"===r[1].type?t(e):n(e)},"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},eu={partial:!0,tokenize:function(e,t,n){let o=this;return(0,$.N)(e,function(e){let r=o.events[o.events.length-1];return r&&"listItemIndent"===r[1].type&&r[2].sliceSerialize(r[1],!0).length===o.containerState.size?t(e):n(e)},"listItemIndent",o.containerState.size+1)}},ed={continuation:{tokenize:function(e,t,n){let o=this;return function(t){return(0,G.On)(t)?(0,$.N)(e,r,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):r(t)};function r(o){return e.attempt(ed,t,n)(o)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let o=this;return function(t){if(62===t){let n=o.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),r}return n(t)};function r(n){return(0,G.On)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function ep(e,t,n,o,r,i,a,l,s){let c=s||1/0,u=0;return function(t){return 60===t?(e.enter(o),e.enter(r),e.enter(i),e.consume(t),e.exit(i),d):null===t||32===t||41===t||(0,G.JQ)(t)?n(t):(e.enter(o),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),e.exit(o),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||(0,G.HP)(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(r){return!u&&(null===r||41===r||(0,G.Ee)(r))?(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(o),t(r)):u999||null===d||91===d||93===d&&!a||94===d&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?n(d):93===d?(e.exit(i),e.enter(r),e.consume(d),e.exit(r),e.exit(o),t):(0,G.HP)(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||(0,G.HP)(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),a||(a=!(0,G.On)(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function eh(e,t,n,o,r,i){let a;return function(t){return 34===t||39===t||40===t?(e.enter(o),e.enter(r),e.consume(t),e.exit(r),a=40===t?41:t,l):n(t)};function l(n){return n===a?(e.enter(r),e.consume(n),e.exit(r),e.exit(o),t):(e.enter(i),s(n))}function s(t){return t===a?(e.exit(i),l(a)):null===t?n(t):(0,G.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,$.N)(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||(0,G.HP)(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function eg(e,t){let n;return function o(r){return(0,G.HP)(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,o):(0,G.On)(r)?(0,$.N)(e,o,n?"linePrefix":"lineSuffix")(r):t(r)}}var em=n(11470);let eb={partial:!0,tokenize:function(e,t,n){return function(t){return(0,G.Ee)(t)?eg(e,o)(t):n(t)};function o(t){return eh(e,r,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function r(t){return(0,G.On)(t)?(0,$.N)(e,i,"whitespace")(t):i(t)}function i(e){return null===e||(0,G.HP)(e)?t(e):n(e)}}},ey={name:"codeIndented",tokenize:function(e,t,n){let o=this;return function(t){return e.enter("codeIndented"),(0,$.N)(e,r,"linePrefix",5)(t)};function r(t){let r=o.events[o.events.length-1];return r&&"linePrefix"===r[1].type&&r[2].sliceSerialize(r[1],!0).length>=4?function t(n){return null===n?i(n):(0,G.HP)(n)?e.attempt(ev,t,i)(n):(e.enter("codeFlowValue"),function n(o){return null===o||(0,G.HP)(o)?(e.exit("codeFlowValue"),t(o)):(e.consume(o),n)}(n))}(t):n(t)}function i(n){return e.exit("codeIndented"),t(n)}}},ev={partial:!0,tokenize:function(e,t,n){let o=this;return r;function r(t){return o.parser.lazy[o.now().line]?n(t):(0,G.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r):(0,$.N)(e,i,"linePrefix",5)(t)}function i(e){let i=o.events[o.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):(0,G.HP)(e)?r(e):n(e)}}},ek={name:"setextUnderline",resolveTo:function(e,t){let n,o,r,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(o=i)}else"content"===e[i][1].type&&e.splice(i,1),r||"definition"!==e[i][1].type||(r=i);let a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",r?(e.splice(o,0,["enter",a,t]),e.splice(r+1,0,["exit",e[n][1],t]),e[n][1].end={...e[r][1].end}):e[n][1]=a,e.push(["exit",a,t]),e},tokenize:function(e,t,n){let o,r=this;return function(t){var a;let l,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){l="paragraph"===r.events[s][1].type;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||l)?(e.enter("setextHeadingLine"),o=t,a=t,e.enter("setextHeadingLineSequence"),function t(n){return n===o?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,G.On)(n)?(0,$.N)(e,i,"lineSuffix")(n):i(n))}(a)):n(t)};function i(o){return null===o||(0,G.HP)(o)?(e.exit("setextHeadingLine"),t(o)):n(o)}}},ex=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ew=["pre","script","style","textarea"],eS={partial:!0,tokenize:function(e,t,n){return function(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(X.B,t,n)}}},eA={partial:!0,tokenize:function(e,t,n){let o=this;return function(t){return(0,G.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r):n(t)};function r(e){return o.parser.lazy[o.now().line]?n(e):t(e)}}},eC={partial:!0,tokenize:function(e,t,n){let o=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r)};function r(e){return o.parser.lazy[o.now().line]?n(e):t(e)}}},eM={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let o,r=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),(0,G.On)(t)?(0,$.N)(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===o?(e.enter("codeFencedFenceSequence"),function t(r){return r===o?(i++,e.consume(r),t):i>=l?(e.exit("codeFencedFenceSequence"),(0,G.On)(r)?(0,$.N)(e,c,"whitespace")(r):c(r)):n(r)}(t)):n(t)}function c(o){return null===o||(0,G.HP)(o)?(e.exit("codeFencedFence"),t(o)):n(o)}}},a=0,l=0;return function(t){var i=t;let c=r.events[r.events.length-1];return a=c&&"linePrefix"===c[1].type?c[2].sliceSerialize(c[1],!0).length:0,o=i,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(r){return r===o?(l++,e.consume(r),t):l<3?n(r):(e.exit("codeFencedFenceSequence"),(0,G.On)(r)?(0,$.N)(e,s,"whitespace")(r):s(r))}(i)};function s(i){return null===i||(0,G.HP)(i)?(e.exit("codeFencedFence"),r.interrupt?t(i):e.check(eC,u,h)(i)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(r){return null===r||(0,G.HP)(r)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(r)):(0,G.On)(r)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,$.N)(e,c,"whitespace")(r)):96===r&&r===o?n(r):(e.consume(r),t)}(i))}function c(t){return null===t||(0,G.HP)(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(r){return null===r||(0,G.HP)(r)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(r)):96===r&&r===o?n(r):(e.consume(r),t)}(t))}function u(t){return e.attempt(i,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return a>0&&(0,G.On)(t)?(0,$.N)(e,f,"linePrefix",a+1)(t):f(t)}function f(t){return null===t||(0,G.HP)(t)?e.check(eC,u,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,G.HP)(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}};var ez=n(28111);let eT={name:"characterReference",tokenize:function(e,t,n){let o,r,i=this,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,r=G.lV,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,r=G.ok,c):(e.enter("characterReferenceValue"),o=7,r=G.BM,c(t))}function c(l){if(59===l&&a){let o=e.exit("characterReferenceValue");return r!==G.lV||(0,ez.s)(i.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return r(l)&&a++1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let d={...e[n][1].end},p={...e[u][1].start};eN(d,-l),eN(p,l),i={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},r={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},o={type:l>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},e[n][1].end={...i.start},e[u][1].start={...a.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=(0,I.V)(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=(0,I.V)(s,[["enter",o,t],["enter",i,t],["exit",i,t],["enter",r,t]]),s=(0,I.V)(s,(0,eF.W)(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=(0,I.V)(s,[["exit",r,t],["enter",a,t],["exit",a,t],["exit",o,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=(0,I.V)(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,(0,I.m)(e,n-1,u-n+3,s),u=n+s.length-c-2;break}}for(u=-1;++ui&&"whitespace"===e[r][1].type&&(r-=2),"atxHeadingSequence"===e[r][1].type&&(i===r-1||r-4>i&&"whitespace"===e[r-2][1].type)&&(r-=i+1===r?2:4),r>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},o={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},(0,I.m)(e,i,r-i+1,[["enter",n,t],["enter",o,t],["exit",o,t],["exit",n,t]])),e},tokenize:function(e,t,n){let o=0;return function(r){var i;return e.enter("atxHeading"),i=r,e.enter("atxHeadingSequence"),function r(i){return 35===i&&o++<6?(e.consume(i),r):null===i||(0,G.Ee)(i)?(e.exit("atxHeadingSequence"),function n(o){return 35===o?(e.enter("atxHeadingSequence"),function t(o){return 35===o?(e.consume(o),t):(e.exit("atxHeadingSequence"),n(o))}(o)):null===o||(0,G.HP)(o)?(e.exit("atxHeading"),t(o)):(0,G.On)(o)?(0,$.N)(e,n,"whitespace")(o):(e.enter("atxHeadingText"),function t(o){return null===o||35===o||(0,G.Ee)(o)?(e.exit("atxHeadingText"),n(o)):(e.consume(o),t)}(o))}(i)):n(i)}(i)}}},42:el,45:[ek,el],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let o,r,i,a,l,s=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),c};function c(a){return 33===a?(e.consume(a),u):47===a?(e.consume(a),r=!0,f):63===a?(e.consume(a),o=3,s.interrupt?t:O):(0,G.CW)(a)?(e.consume(a),i=String.fromCharCode(a),h):n(a)}function u(r){return 45===r?(e.consume(r),o=2,d):91===r?(e.consume(r),o=5,a=0,p):(0,G.CW)(r)?(e.consume(r),o=4,s.interrupt?t:O):n(r)}function d(o){return 45===o?(e.consume(o),s.interrupt?t:O):n(o)}function p(o){let r="CDATA[";return o===r.charCodeAt(a++)?(e.consume(o),a===r.length)?s.interrupt?t:A:p:n(o)}function f(t){return(0,G.CW)(t)?(e.consume(t),i=String.fromCharCode(t),h):n(t)}function h(a){if(null===a||47===a||62===a||(0,G.Ee)(a)){let l=47===a,c=i.toLowerCase();return!l&&!r&&ew.includes(c)?(o=1,s.interrupt?t(a):A(a)):ex.includes(i.toLowerCase())?(o=6,l)?(e.consume(a),g):s.interrupt?t(a):A(a):(o=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(a):r?function t(n){return(0,G.On)(n)?(e.consume(n),t):w(n)}(a):m(a))}return 45===a||(0,G.lV)(a)?(e.consume(a),i+=String.fromCharCode(a),h):n(a)}function g(o){return 62===o?(e.consume(o),s.interrupt?t:A):n(o)}function m(t){return 47===t?(e.consume(t),w):58===t||95===t||(0,G.CW)(t)?(e.consume(t),b):(0,G.On)(t)?(e.consume(t),m):w(t)}function b(t){return 45===t||46===t||58===t||95===t||(0,G.lV)(t)?(e.consume(t),b):y(t)}function y(t){return 61===t?(e.consume(t),v):(0,G.On)(t)?(e.consume(t),y):m(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,k):(0,G.On)(t)?(e.consume(t),v):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,G.Ee)(n)?y(n):(e.consume(n),t)}(t)}function k(t){return t===l?(e.consume(t),l=null,x):null===t||(0,G.HP)(t)?n(t):(e.consume(t),k)}function x(e){return 47===e||62===e||(0,G.On)(e)?m(e):n(e)}function w(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||(0,G.HP)(t)?A(t):(0,G.On)(t)?(e.consume(t),S):n(t)}function A(t){return 45===t&&2===o?(e.consume(t),T):60===t&&1===o?(e.consume(t),E):62===t&&4===o?(e.consume(t),D):63===t&&3===o?(e.consume(t),O):93===t&&5===o?(e.consume(t),F):(0,G.HP)(t)&&(6===o||7===o)?(e.exit("htmlFlowData"),e.check(eS,j,C)(t)):null===t||(0,G.HP)(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),A)}function C(t){return e.check(eA,M,j)(t)}function M(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),z}function z(t){return null===t||(0,G.HP)(t)?C(t):(e.enter("htmlFlowData"),A(t))}function T(t){return 45===t?(e.consume(t),O):A(t)}function E(t){return 47===t?(e.consume(t),i="",P):A(t)}function P(t){if(62===t){let n=i.toLowerCase();return ew.includes(n)?(e.consume(t),D):A(t)}return(0,G.CW)(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),P):A(t)}function F(t){return 93===t?(e.consume(t),O):A(t)}function O(t){return 62===t?(e.consume(t),D):45===t&&2===o?(e.consume(t),O):A(t)}function D(t){return null===t||(0,G.HP)(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),D)}function j(n){return e.exit("htmlFlow"),t(n)}}},61:ek,95:el,96:eM,126:eM},eq={38:eT,92:eE},e$={[-5]:eP,[-4]:eP,[-3]:eP,33:eH,38:eT,42:eB,60:[{name:"autolink",tokenize:function(e,t,n){let o=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),r};function r(t){return(0,G.CW)(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(t){return 43===t||45===t||46===t||(0,G.lV)(t)?(o=1,function t(n){return 58===n?(e.consume(n),o=0,a):(43===n||45===n||46===n||(0,G.lV)(n))&&o++<32?(e.consume(n),t):(o=0,l(n))}(t)):l(t)}function a(o){return 62===o?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):null===o||32===o||60===o||(0,G.JQ)(o)?n(o):(e.consume(o),a)}function l(t){return 64===t?(e.consume(t),s):(0,G.cx)(t)?(e.consume(t),l):n(t)}function s(r){return(0,G.lV)(r)?function r(i){return 46===i?(e.consume(i),o=0,s):62===i?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(i),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(i){if((45===i||(0,G.lV)(i))&&o++<63){let n=45===i?t:r;return e.consume(i),n}return n(i)}(i)}(r):n(r)}}},{name:"htmlText",tokenize:function(e,t,n){let o,r,i,a=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),k):63===t?(e.consume(t),y):(0,G.CW)(t)?(e.consume(t),w):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),r=0,f):(0,G.CW)(t)?(e.consume(t),b):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):(0,G.HP)(t)?(i=u,P(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?E(e):45===e?d(e):u(e)}function f(t){let o="CDATA[";return t===o.charCodeAt(r++)?(e.consume(t),r===o.length?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),g):(0,G.HP)(t)?(i=h,P(t)):(e.consume(t),h)}function g(t){return 93===t?(e.consume(t),m):h(t)}function m(t){return 62===t?E(t):93===t?(e.consume(t),m):h(t)}function b(t){return null===t||62===t?E(t):(0,G.HP)(t)?(i=b,P(t)):(e.consume(t),b)}function y(t){return null===t?n(t):63===t?(e.consume(t),v):(0,G.HP)(t)?(i=y,P(t)):(e.consume(t),y)}function v(e){return 62===e?E(e):y(e)}function k(t){return(0,G.CW)(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||(0,G.lV)(t)?(e.consume(t),x):function t(n){return(0,G.HP)(n)?(i=t,P(n)):(0,G.On)(n)?(e.consume(n),t):E(n)}(t)}function w(t){return 45===t||(0,G.lV)(t)?(e.consume(t),w):47===t||62===t||(0,G.Ee)(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),E):58===t||95===t||(0,G.CW)(t)?(e.consume(t),A):(0,G.HP)(t)?(i=S,P(t)):(0,G.On)(t)?(e.consume(t),S):E(t)}function A(t){return 45===t||46===t||58===t||95===t||(0,G.lV)(t)?(e.consume(t),A):function t(n){return 61===n?(e.consume(n),C):(0,G.HP)(n)?(i=t,P(n)):(0,G.On)(n)?(e.consume(n),t):S(n)}(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,M):(0,G.HP)(t)?(i=C,P(t)):(0,G.On)(t)?(e.consume(t),C):(e.consume(t),z)}function M(t){return t===o?(e.consume(t),o=void 0,T):null===t?n(t):(0,G.HP)(t)?(i=M,P(t)):(e.consume(t),M)}function z(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,G.Ee)(t)?S(t):(e.consume(t),z)}function T(e){return 47===e||62===e||(0,G.Ee)(e)?S(e):n(e)}function E(o){return 62===o?(e.consume(o),e.exit("htmlTextData"),e.exit("htmlText"),t):n(o)}function P(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),F}function F(t){return(0,G.On)(t)?(0,$.N)(e,O,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):O(t)}function O(t){return e.enter("htmlTextData"),i(t)}}}],91:eW,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),o};function o(o){return(0,G.HP)(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}},eE],93:eO,95:eB,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,o=e.length-4,r=3;if(("lineEnding"===e[3][1].type||"space"===e[r][1].type)&&("lineEnding"===e[o][1].type||"space"===e[o][1].type)){for(t=r;++t13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let eZ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function eJ(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return eX(n.slice(t?2:1),t?16:10)}return(0,ez.s)(n)||e}let e0={}.hasOwnProperty;function e1(e){return{line:e.line,column:e.column,offset:e.offset}}function e2(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+k({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+k({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+k({start:t.start,end:t.end})+") is still open")}function e5(e){let t=this;t.parser=function(n){var r,i;let a,l,s,c;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(b),autolinkProtocol:c,autolinkEmail:c,atxHeading:o(h),blockQuote:o(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:o(f),codeFencedFenceInfo:r,codeFencedFenceMeta:r,codeIndented:o(f,r),codeText:o(function(){return{type:"inlineCode",value:""}},r),codeTextData:c,data:c,codeFlowValue:c,definition:o(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:r,definitionLabelString:r,definitionTitleString:r,emphasis:o(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:o(g),hardBreakTrailing:o(g),htmlFlow:o(m,r),htmlFlowData:c,htmlText:o(m,r),htmlTextData:c,image:o(function(){return{type:"image",title:null,url:"",alt:null}}),label:r,link:o(b),listItem:o(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:o(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:o(y),paragraph:o(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:r,resourceDestinationString:r,resourceTitleString:r,setextHeading:o(h),strong:o(function(){return{type:"strong",children:[]}}),thematicBreak:o(function(){return{type:"thematicBreak"}})},exit:{atxHeading:a(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:a(),autolinkEmail:function(e){u.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:a(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),o=this.data.characterReferenceType;o?(t=eX(n,"characterReferenceMarkerNumeric"===o?10:16),this.data.characterReferenceType=void 0):t=(0,ez.s)(n);let r=this.stack[this.stack.length-1];r.value+=t},characterReference:function(e){this.stack.pop().position.end=e1(e.end)},codeFenced:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:u,codeIndented:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:a(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,em.B)(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(d),hardBreakTrailing:a(d),htmlFlow:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(eZ,eJ),n.identifier=(0,em.B)(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=e1(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),u.call(this,e))},link:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=(0,em.B)(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:a(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:a(),thematicBreak:a()}};!function e(t,n){let o=-1;for(;++o0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||e2).call(a,void 0,e[0])}for(o.position={start:e1(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:e1(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u-1){let e=n[0];"string"==typeof e?n[0]=e.slice(r):n.shift()}a>0&&n.push(e[i].slice(0,a))}return n}(a,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:r,offset:i}=o;return{_bufferIndex:e,_index:t,line:n,column:r,offset:i}}function f(e,t){t.restore()}function h(e,t){return function(n,r,i){var a;let u,d,f,h;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):(a=n,function(e){let t=null!==e&&a[e],n=null!==e&&a.null;return g([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function g(e){return(u=e,d=0,0===e.length)?i:b(e[d])}function b(e){return function(n){return(h=function(){let e=p(),t=c.previous,n=c.currentConstruct,r=c.events.length,i=Array.from(l);return{from:r,restore:function(){o=e,c.previous=t,c.currentConstruct=n,c.events.length=r,l=i,m()}}}(),f=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?v(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,s,y,v)(n)}}function y(t){return e(f,h),r}function v(e){return(h.restore(),++d((e,t)=>{let n=(t,n)=>(e.set(n,t),t),o=r=>{if(e.has(r))return e.get(r);let[i,a]=t[r];switch(i){case 0:case -1:return n(a,r);case 1:{let e=n([],r);for(let t of a)e.push(o(t));return e}case 2:{let e=n({},r);for(let[t,n]of a)e[o(t)]=o(n);return e}case 3:return n(new Date(a),r);case 4:{let{source:e,flags:t}=a;return n(new RegExp(e,t),r)}case 5:{let e=n(new Map,r);for(let[t,n]of a)e.set(o(t),o(n));return e}case 6:{let e=n(new Set,r);for(let t of a)e.add(o(t));return e}case 7:{let{name:e,message:t}=a;return n(new e3[e](t),r)}case 8:return n(BigInt(a),r);case"BigInt":return n(Object(BigInt(a)),r);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{let{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new e3[i](a),r)};return o})(new Map,e)(0),{toString:e9}={},{keys:e6}=Object,e7=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=e9.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},e8=([e,t])=>0===e&&("function"===t||"symbol"===t),te=(e,{json:t,lossy:n}={})=>{let o=[];return((e,t,n,o)=>{let r=(e,t)=>{let r=o.push(e)-1;return n.set(t,r),r},i=o=>{if(n.has(o))return n.get(o);let[a,l]=e7(o);switch(a){case 0:{let t=o;switch(l){case"bigint":a=8,t=o.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+l);t=null;break;case"undefined":return r([-1],o)}return r([a,t],o)}case 1:{if(l){let e=o;return"DataView"===l?e=new Uint8Array(o.buffer):"ArrayBuffer"===l&&(e=new Uint8Array(o)),r([l,[...e]],o)}let e=[],t=r([a,e],o);for(let t of o)e.push(i(t));return t}case 2:{if(l)switch(l){case"BigInt":return r([l,o.toString()],o);case"Boolean":case"Number":case"String":return r([l,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());let n=[],s=r([a,n],o);for(let t of e6(o))(e||!e8(e7(o[t])))&&n.push([i(t),i(o[t])]);return s}case 3:return r([a,o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return r([a,{source:e,flags:t}],o)}case 5:{let t=[],n=r([a,t],o);for(let[n,r]of o)(e||!(e8(e7(n))||e8(e7(r))))&&t.push([i(n),i(r)]);return n}case 6:{let t=[],n=r([a,t],o);for(let n of o)(e||!e8(e7(n)))&&t.push(i(n));return n}}let{message:s}=o;return r([a,{name:l,message:s}],o)};return i})(!(t||n),!!t,new Map,o)(e),o},tt="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?e4(te(e,t)):structuredClone(e):(e,t)=>e4(te(e,t));function tn(e){let t=[],n=-1,o=0,r=0;for(;++n55295&&i<57344){let t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),r=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(o,n),encodeURIComponent(a)),o=n+r+1,a=""),r&&(n+=r,r=0)}return t.join("")+e.slice(o)}function to(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tr(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var ti=n(88058);function ta(e,t){let n=t.referenceType,o="]";if("collapsed"===n?o+="[]":"full"===n&&(o+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+o}];let r=e.all(t),i=r[0];i&&"text"===i.type?i.value="["+i.value:r.unshift({type:"text",value:"["});let a=r[r.length-1];return a&&"text"===a.type?a.value+=o:r.push({type:"text",value:o}),r}function tl(e){let t=e.spread;return null==t?e.children.length>1:t}function ts(e,t,n){let o=0,r=e.length;if(t){let t=e.codePointAt(o);for(;9===t||32===t;)o++,t=e.codePointAt(o)}if(n){let t=e.codePointAt(r-1);for(;9===t||32===t;)r--,t=e.codePointAt(r-1)}return r>o?e.slice(o,r):""}let tc={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",o={},r=t.lang?t.lang.split(/\s+/):[];r.length>0&&(o.className=["language-"+r[0]]);let i={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,o="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=tn(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),n=e.footnoteOrder.length):n=a+1,l+=1,e.footnoteCounts.set(r,l);let s={type:"element",tagName:"a",properties:{href:"#"+o+"fn-"+i,id:o+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return ta(e,t);let r={src:tn(o.url||""),alt:t.alt};null!==o.title&&void 0!==o.title&&(r.title=o.title);let i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){let n={src:tn(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let o={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,o),e.applyData(t,o)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let o={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,o),e.applyData(t,o)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return ta(e,t);let r={href:tn(o.url||"")};null!==o.title&&void 0!==o.title&&(r.title=o.title);let i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){let n={href:tn(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let o={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},listItem:function(e,t,n){let o=e.all(t),r=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,o=-1;for(;!t&&++o0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l0){let o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=y(t.children[1]),a=b(t.children[t.children.length-1]);i&&a&&(o.position={start:i,end:a}),r.push(o)}let i={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let o=n?n.children:void 0,r=0===(o?o.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length,l=-1,s=[];for(;++l0,!0),o[0]),r=o.index+o[0].length,o=n.exec(t);return i.push(ts(t.slice(r),r>0,!1)),i.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:tu,yaml:tu,definition:tu,footnoteDefinition:tu};function tu(){}let td={}.hasOwnProperty,tp={};function tf(e,t){e.position&&(t.position=function(e){let t=y(e),n=b(e);if(t&&n)return{start:t,end:n}}(e))}function th(e,t){let n=t;if(e&&e.data){let t=e.data.hName,o=e.data.hChildren,r=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&r&&Object.assign(n.properties,tt(r)),"children"in n&&n.children&&null!=o&&(n.children=o)}return n}function tg(e,t){let n=[],o=-1;for(t&&n.push({type:"text",value:"\n"});++o0&&n.push({type:"text",value:"\n"}),n}function tm(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function tb(e,t){let n=function(e,t){let n=t||tp,o=new Map,r=new Map,i={all:function(e){let t=[];if("children"in e){let n=e.children,o=-1;for(;++o0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof o?o:o(s,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let f=i[i.length-1];if(f&&"element"===f.type&&"p"===f.tagName){let e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else i.push(...d);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(r,h),l.push(h)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...tt(a),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),a=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return i&&((0,r.ok)("children"in a),a.children.push({type:"text",value:"\n"},i)),a}function ty(e,t){return e&&"run"in e?async function(n,o){let r=tb(n,{file:o,...t});await e.run(r,o)}:function(n,o){return tb(n,{file:o,...e||t})}}function tv(e){if(e)throw e}var tk=n(55248);function tx(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let tw={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');tS(e);let o=0,r=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){o=i+1;break}}else r<0&&(n=!0,r=i+1);return r<0?"":e.slice(o,r)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){o=i+1;break}}else a<0&&(n=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(r=i):(l=-1,r=a));return o===r?r=a:r<0&&(r=e.length),e.slice(o,r)},dirname:function(e){let t;if(tS(e),0===e.length)return".";let n=-1,o=e.length;for(;--o;)if(47===e.codePointAt(o)){if(t){n=o;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;tS(e);let n=e.length,o=-1,r=0,i=-1,a=0;for(;n--;){let l=e.codePointAt(n);if(47===l){if(t){r=n+1;break}continue}o<0&&(t=!0,o=n+1),46===l?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1)}return i<0||o<0||0===a||1===a&&i===o-1&&i===r+1?"":e.slice(i,o)},join:function(...e){let t,n=-1;for(;++n2){if((o=r.lastIndexOf("/"))!==r.length-1){o<0?(r="",i=0):i=(r=r.slice(0,o)).length-1-r.lastIndexOf("/"),a=s,l=0;continue}}else if(r.length>0){r="",i=0,a=s,l=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1;a=s,l=0}else 46===n&&l>-1?l++:l=-1}return r}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function tS(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let tA={cwd:function(){return"/"}};function tC(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let tM=["history","path","basename","stem","extname","dirname"];class tz{constructor(e){let t,n;t=e?tC(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":tA.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++ot.length;a&&t.push(o);try{i=e.apply(this,t)}catch(e){if(a&&n)throw e;return o(e)}a||(i&&i.then&&"function"==typeof i.then?i.then(r,o):i instanceof Error?o(i):r(i))};function o(e,...r){n||(n=!0,t(e,...r))}function r(e){o(null,e)}})(l,r)(...a):o(null,...a)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new tD,t=-1;for(;++t0){let[o,...i]=t,a=n[r][1];tx(a)&&tx(o)&&(o=tk(!0,a,o)),n[r]=[e,o,...i]}}}}let tj=new tD().freeze();function tR(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function tH(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function tL(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function tB(e){if(!tx(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function tN(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function tW(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new tz(e)}let tI=[],t_={allowDangerousHtml:!0},tV=/^(https?|ircs?|mailto|xmpp)$/i,tU=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function tq(e){let t=function(e){let t=e.rehypePlugins||tI,n=e.remarkPlugins||tI,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...t_}:t_;return tj().use(e5).use(n).use(ty,o).use(t)}(e),n=function(e){let t=e.children||"",n=new tz;return"string"==typeof t?n.value=t:(0,r.HB)("Unexpected value `"+t+"` for `children` prop, expected `string`"),n}(e);return function(e,t){let n=t.allowedElements,o=t.allowElement,i=t.components,a=t.disallowedElements,l=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||t$;for(let e of tU)Object.hasOwn(t,e.from)&&(0,r.HB)("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see for more info)");return n&&a&&(0,r.HB)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),(0,ti.YR)(e,function(e,t,r){if("raw"===e.type&&r&&"number"==typeof t)return l?r.children.splice(t,1):r.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in B)if(Object.hasOwn(B,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],o=B[t];(null===o||o.includes(e.tagName))&&(e.properties[t]=c(String(n||""),t,e))}}if("element"===e.type){let i=n?!n.includes(e.tagName):!!a&&a.includes(e.tagName);if(!i&&o&&"number"==typeof t&&(i=!o(e,t,r)),i&&r&&"number"==typeof t)return s&&e.children?r.children.splice(t,1,...e.children):r.children.splice(t,1),t}}),function(e,t){var n,o,r,i;let a;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let l=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=l,o=t.jsxDEV,a=function(e,t,r,i){let a=Array.isArray(r.children),l=y(e);return o(t,r,i,a,{columnNumber:l?l.column-1:void 0,fileName:n,lineNumber:l?l.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");r=t.jsx,i=t.jsxs,a=function(e,t,n,o){let a=Array.isArray(n.children)?i:r;return o?a(t,n,o):a(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?p.JW:p.qy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},c=F(s,e,void 0);return c&&"string"!=typeof c?c:s.create(e,s.Fragment,{children:c||void 0},void 0)}(e,{Fragment:N.Fragment,components:i,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function t$(e){let t=e.indexOf(":"),n=e.indexOf("?"),o=e.indexOf("#"),r=e.indexOf("/");return -1===t||-1!==r&&t>r||-1!==n&&t>n||-1!==o&&t>o||tV.test(e.slice(0,t))?e:""}},42058:(e,t,n)=>{"use strict";n.d(t,{R:()=>o});class o{constructor(e,t){this.attribute=t,this.property=e}}o.prototype.attribute="",o.prototype.booleanish=!1,o.prototype.boolean=!1,o.prototype.commaOrSpaceSeparated=!1,o.prototype.commaSeparated=!1,o.prototype.defined=!1,o.prototype.mustUseProperty=!1,o.prototype.number=!1,o.prototype.overloadedBoolean=!1,o.prototype.property="",o.prototype.spaceSeparated=!1,o.prototype.space=void 0},43972:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#272822",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#272822",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#8292a2"},prolog:{color:"#8292a2"},doctype:{color:"#8292a2"},cdata:{color:"#8292a2"},punctuation:{color:"#f8f8f2"},namespace:{Opacity:".7"},property:{color:"#f92672"},tag:{color:"#f92672"},constant:{color:"#f92672"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},boolean:{color:"#ae81ff"},number:{color:"#ae81ff"},selector:{color:"#a6e22e"},"attr-name":{color:"#a6e22e"},string:{color:"#a6e22e"},char:{color:"#a6e22e"},builtin:{color:"#a6e22e"},inserted:{color:"#a6e22e"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#e6db74"},"attr-value":{color:"#e6db74"},function:{color:"#e6db74"},"class-name":{color:"#e6db74"},keyword:{color:"#66d9ef"},regex:{color:"#fd971f"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}},44317:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o=(0,n(32403).A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},45545:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o=(0,n(32403).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},45723:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#657b83",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#657b83",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em",backgroundColor:"#fdf6e3"},'pre[class*="language-"]::-moz-selection':{background:"#073642"},'pre[class*="language-"] ::-moz-selection':{background:"#073642"},'code[class*="language-"]::-moz-selection':{background:"#073642"},'code[class*="language-"] ::-moz-selection':{background:"#073642"},'pre[class*="language-"]::selection':{background:"#073642"},'pre[class*="language-"] ::selection':{background:"#073642"},'code[class*="language-"]::selection':{background:"#073642"},'code[class*="language-"] ::selection':{background:"#073642"},':not(pre) > code[class*="language-"]':{backgroundColor:"#fdf6e3",padding:".1em",borderRadius:".3em"},comment:{color:"#93a1a1"},prolog:{color:"#93a1a1"},doctype:{color:"#93a1a1"},cdata:{color:"#93a1a1"},punctuation:{color:"#586e75"},namespace:{Opacity:".7"},property:{color:"#268bd2"},tag:{color:"#268bd2"},boolean:{color:"#268bd2"},number:{color:"#268bd2"},constant:{color:"#268bd2"},symbol:{color:"#268bd2"},deleted:{color:"#268bd2"},selector:{color:"#2aa198"},"attr-name":{color:"#2aa198"},string:{color:"#2aa198"},char:{color:"#2aa198"},builtin:{color:"#2aa198"},url:{color:"#2aa198"},inserted:{color:"#2aa198"},entity:{color:"#657b83",background:"#eee8d5",cursor:"help"},atrule:{color:"#859900"},"attr-value":{color:"#859900"},keyword:{color:"#859900"},function:{color:"#b58900"},"class-name":{color:"#b58900"},regex:{color:"#cb4b16"},important:{color:"#cb4b16",fontWeight:"bold"},variable:{color:"#cb4b16"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}},47019:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o=(0,n(32403).A)("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]])},47388:(e,t,n)=>{"use strict";function o(e,t,n,o){let r,i=e.length,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,o.length<1e4)(r=Array.from(o)).unshift(t,n),e.splice(...r);else for(n&&e.splice(t,n);a0?(o(e,e.length,0,t),e):t}n.d(t,{V:()=>r,m:()=>o})},48400:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#c3cee3",background:"#263238",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#c3cee3",background:"#263238",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#363636"},'pre[class*="language-"]::-moz-selection':{background:"#363636"},'code[class*="language-"] ::-moz-selection':{background:"#363636"},'pre[class*="language-"] ::-moz-selection':{background:"#363636"},'code[class*="language-"]::selection':{background:"#363636"},'pre[class*="language-"]::selection':{background:"#363636"},'code[class*="language-"] ::selection':{background:"#363636"},'pre[class*="language-"] ::selection':{background:"#363636"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#fd9170"},".language-sass > code":{color:"#fd9170"},".language-scss > code":{color:"#fd9170"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#c792ea"},"attr-name":{color:"#ffcb6b"},"attr-value":{color:"#c3e88d"},attribute:{color:"#c3e88d"},boolean:{color:"#c792ea"},builtin:{color:"#ffcb6b"},cdata:{color:"#80cbc4"},char:{color:"#80cbc4"},class:{color:"#ffcb6b"},"class-name":{color:"#f2ff00"},color:{color:"#f2ff00"},comment:{color:"#546e7a"},constant:{color:"#c792ea"},deleted:{color:"#f07178"},doctype:{color:"#546e7a"},entity:{color:"#f07178"},function:{color:"#c792ea"},hexcode:{color:"#f2ff00"},id:{color:"#c792ea",fontWeight:"bold"},important:{color:"#c792ea",fontWeight:"bold"},inserted:{color:"#80cbc4"},keyword:{color:"#c792ea",fontStyle:"italic"},number:{color:"#fd9170"},operator:{color:"#89ddff"},prolog:{color:"#546e7a"},property:{color:"#80cbc4"},"pseudo-class":{color:"#c3e88d"},"pseudo-element":{color:"#c3e88d"},punctuation:{color:"#89ddff"},regex:{color:"#f2ff00"},selector:{color:"#f07178"},string:{color:"#c3e88d"},symbol:{color:"#c792ea"},tag:{color:"#f07178"},unit:{color:"#f07178"},url:{color:"#fd9170"},variable:{color:"#f07178"}}},48596:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}},48620:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});var o=n(93987);function r(e,t,n,r){let i=r?r-1:1/0,a=0;return function(r){return(0,o.On)(r)?(e.enter(n),function r(l){return(0,o.On)(l)&&a++{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",maxHeight:"inherit",height:"inherit",padding:"0 1em",display:"block",overflow:"auto"},'pre[class*="language-"]':{color:"black",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",position:"relative",margin:".5em 0",overflow:"visible",padding:"1px",backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box",marginBottom:"1em"},'pre[class*="language-"] > code':{position:"relative",zIndex:"1",borderLeft:"10px solid #358ccb",boxShadow:"-1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf",backgroundColor:"#fdfdfd",backgroundImage:"linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%)",backgroundSize:"3em 3em",backgroundOrigin:"content-box",backgroundAttachment:"local"},':not(pre) > code[class*="language-"]':{backgroundColor:"#fdfdfd",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box",marginBottom:"1em",position:"relative",padding:".2em",borderRadius:"0.3em",color:"#c92c2c",border:"1px solid rgba(0, 0, 0, 0.1)",display:"inline",whiteSpace:"normal"},'pre[class*="language-"]:before':{content:"''",display:"block",position:"absolute",bottom:"0.75em",left:"0.18em",width:"40%",height:"20%",maxHeight:"13em",boxShadow:"0px 13px 8px #979797",WebkitTransform:"rotate(-2deg)",MozTransform:"rotate(-2deg)",msTransform:"rotate(-2deg)",OTransform:"rotate(-2deg)",transform:"rotate(-2deg)"},'pre[class*="language-"]:after':{content:"''",display:"block",position:"absolute",bottom:"0.75em",left:"auto",width:"40%",height:"20%",maxHeight:"13em",boxShadow:"0px 13px 8px #979797",WebkitTransform:"rotate(2deg)",MozTransform:"rotate(2deg)",msTransform:"rotate(2deg)",OTransform:"rotate(2deg)",transform:"rotate(2deg)",right:"0.75em"},comment:{color:"#7D8B99"},"block-comment":{color:"#7D8B99"},prolog:{color:"#7D8B99"},doctype:{color:"#7D8B99"},cdata:{color:"#7D8B99"},punctuation:{color:"#5F6364"},property:{color:"#c92c2c"},tag:{color:"#c92c2c"},boolean:{color:"#c92c2c"},number:{color:"#c92c2c"},"function-name":{color:"#c92c2c"},constant:{color:"#c92c2c"},symbol:{color:"#c92c2c"},deleted:{color:"#c92c2c"},selector:{color:"#2f9c0a"},"attr-name":{color:"#2f9c0a"},string:{color:"#2f9c0a"},char:{color:"#2f9c0a"},function:{color:"#2f9c0a"},builtin:{color:"#2f9c0a"},inserted:{color:"#2f9c0a"},operator:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},entity:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)",cursor:"help"},url:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},variable:{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},atrule:{color:"#1990b8"},"attr-value":{color:"#1990b8"},keyword:{color:"#1990b8"},"class-name":{color:"#1990b8"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"normal"},".language-css .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},".style .token.string":{color:"#a67f59",background:"rgba(255, 255, 255, 0.5)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:".7"},'pre[class*="language-"].line-numbers.line-numbers':{paddingLeft:"0"},'pre[class*="language-"].line-numbers.line-numbers code':{paddingLeft:"3.8em"},'pre[class*="language-"].line-numbers.line-numbers .line-numbers-rows':{left:"0"},'pre[class*="language-"][data-line]':{paddingTop:"0",paddingBottom:"0",paddingLeft:"0"},"pre[data-line] code":{position:"relative",paddingLeft:"4em"},"pre .line-highlight":{marginTop:"0"}}},48913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Monaco, Consolas, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#263E52",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Monaco, Consolas, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#263E52",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#5c98cd"},prolog:{color:"#5c98cd"},doctype:{color:"#5c98cd"},cdata:{color:"#5c98cd"},punctuation:{color:"#f8f8f2"},".namespace":{Opacity:".7"},property:{color:"#F05E5D"},tag:{color:"#F05E5D"},constant:{color:"#F05E5D"},symbol:{color:"#F05E5D"},deleted:{color:"#F05E5D"},boolean:{color:"#BC94F9"},number:{color:"#BC94F9"},selector:{color:"#FCFCD6"},"attr-name":{color:"#FCFCD6"},string:{color:"#FCFCD6"},char:{color:"#FCFCD6"},builtin:{color:"#FCFCD6"},inserted:{color:"#FCFCD6"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#66D8EF"},"attr-value":{color:"#66D8EF"},function:{color:"#66D8EF"},"class-name":{color:"#66D8EF"},keyword:{color:"#6EB26E"},regex:{color:"#F05E5D"},important:{color:"#F05E5D",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}},48924:(e,t,n)=>{"use strict";function o(){}function r(){}n.d(t,{HB:()=>r,ok:()=>o})},49752:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var o=n(93987);function r(e){return null===e||(0,o.Ee)(e)||(0,o.Ny)(e)?1:(0,o.es)(e)?2:void 0}},50362:(e,t,n)=>{"use strict";var o=n(15561);Object.defineProperty(t,"hY",{enumerable:!0,get:function(){return r.default}}),o(n(48787)),o(n(15786)),o(n(74079)),o(n(43972)),o(n(45723)),o(n(61717)),o(n(31610)),o(n(94719)),o(n(40441)),o(n(80326)),o(n(20360)),o(n(30179)),o(n(83601));var r=o(n(87803));o(n(40354)),o(n(99202)),o(n(76900)),o(n(15361)),o(n(25439)),o(n(56592)),o(n(66887)),o(n(17748)),o(n(30645)),o(n(78645)),o(n(32980)),o(n(39508)),o(n(40472)),o(n(74679)),o(n(48913)),o(n(64806)),o(n(15110)),o(n(48400)),o(n(5299)),o(n(66347)),o(n(83065)),o(n(17167)),o(n(97084)),o(n(95459)),o(n(7262)),o(n(61601)),o(n(60065)),o(n(48596)),o(n(18583)),o(n(6874))},50458:(e,t,n)=>{"use strict";n.d(t,{E:()=>a});var o=n(42058),r=n(16867);let i=Object.keys(r);class a extends o.R{constructor(e,t,n,o){let a=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",o),"number"==typeof n)for(;++a{"use strict";n.d(t,{A:()=>o});let o=(0,n(32403).A)("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]])},51289:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});let o=(0,n(61221).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},51715:function(e,t,n){"use strict";var o=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(71833)),r=n(93703);function i(e,t){var n={};return e&&"string"==typeof e&&(0,o.default)(e,function(e,o){e&&o&&(n[(0,r.camelCase)(e,t)]=o)}),n}i.default=i,e.exports=i},52510:(e,t,n)=>{"use strict";n.d(t,{I:()=>c});var o=n(50458),r=n(42058),i=n(8232);let a=/[A-Z]/g,l=/-[a-z]/g,s=/^data[-\w.:]+$/i;function c(e,t){let n=(0,i.S)(t),c=t,p=r.R;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&s.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(l,d);c="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!l.test(e)){let n=e.replace(a,u);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}p=o.E}return new p(c,t)}function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},52622:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(22557);function r(e){e.register(o.default),e.languages.javascript=e.languages.extend("clike",{"class-name":[e.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}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.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:e.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:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.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:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.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:e.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"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.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")),e.languages.js=e.languages.javascript}r.displayName="javascript",r.aliases=["js"]},53760:(e,t,n)=>{"use strict";n.d(t,{i3:()=>tb,UC:()=>tm,ZL:()=>tg,Kq:()=>tp,bL:()=>tf,l9:()=>th});var o=n(61221),r=n(97789),i=n(85319),a=n(42713),l=n(29704),s=n(35184);let c=["top","right","bottom","left"],u=Math.min,d=Math.max,p=Math.round,f=Math.floor,h=e=>({x:e,y:e}),g={left:"right",right:"left",bottom:"top",top:"bottom"},m={start:"end",end:"start"};function b(e,t){return"function"==typeof e?e(t):e}function y(e){return e.split("-")[0]}function v(e){return e.split("-")[1]}function k(e){return"x"===e?"y":"x"}function x(e){return"y"===e?"height":"width"}function w(e){return["top","bottom"].includes(y(e))?"y":"x"}function S(e){return e.replace(/start|end/g,e=>m[e])}function A(e){return e.replace(/left|right|bottom|top/g,e=>g[e])}function C(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function M(e){let{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function z(e,t,n){let o,{reference:r,floating:i}=e,a=w(t),l=k(w(t)),s=x(l),c=y(t),u="y"===a,d=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;switch(c){case"top":o={x:d,y:r.y-i.height};break;case"bottom":o={x:d,y:r.y+r.height};break;case"right":o={x:r.x+r.width,y:p};break;case"left":o={x:r.x-i.width,y:p};break;default:o={x:r.x,y:r.y}}switch(v(t)){case"start":o[l]-=f*(n&&u?-1:1);break;case"end":o[l]+=f*(n&&u?-1:1)}return o}let T=async(e,t,n)=>{let{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=z(c,o,s),p=o,f={},h=0;for(let n=0;ne[t]>=0)}async function O(e,t){let{placement:n,platform:o,elements:r}=e,i=await (null==o.isRTL?void 0:o.isRTL(r.floating)),a=y(n),l=v(n),s="y"===w(n),c=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,d=b(t,e),{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof h&&(f="end"===l?-1*h:h),s?{x:f*u,y:p*c}:{x:p*c,y:f*u}}function D(){return"undefined"!=typeof window}function j(e){return L(e)?(e.nodeName||"").toLowerCase():"#document"}function R(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function H(e){var t;return null==(t=(L(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function L(e){return!!D()&&(e instanceof Node||e instanceof R(e).Node)}function B(e){return!!D()&&(e instanceof Element||e instanceof R(e).Element)}function N(e){return!!D()&&(e instanceof HTMLElement||e instanceof R(e).HTMLElement)}function W(e){return!!D()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof R(e).ShadowRoot)}function I(e){let{overflow:t,overflowX:n,overflowY:o,display:r}=$(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function _(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function V(e){let t=U(),n=B(e)?$(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function U(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function q(e){return["html","body","#document"].includes(j(e))}function $(e){return R(e).getComputedStyle(e)}function G(e){return B(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Y(e){if("html"===j(e))return e;let t=e.assignedSlot||e.parentNode||W(e)&&e.host||H(e);return W(t)?t.host:t}function K(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);let r=function e(t){let n=Y(t);return q(n)?t.ownerDocument?t.ownerDocument.body:t.body:N(n)&&I(n)?n:e(n)}(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=R(r);if(i){let e=Q(a);return t.concat(a,a.visualViewport||[],I(r)?r:[],e&&n?K(e):[])}return t.concat(r,K(r,[],n))}function Q(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function X(e){let t=$(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=N(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,l=p(n)!==i||p(o)!==a;return l&&(n=i,o=a),{width:n,height:o,$:l}}function Z(e){return B(e)?e:e.contextElement}function J(e){let t=Z(e);if(!N(t))return h(1);let n=t.getBoundingClientRect(),{width:o,height:r,$:i}=X(t),a=(i?p(n.width):n.width)/o,l=(i?p(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let ee=h(0);function et(e){let t=R(e);return U()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ee}function en(e,t,n,o){var r;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=Z(e),l=h(1);t&&(o?B(o)&&(l=J(o)):l=J(e));let s=(void 0===(r=n)&&(r=!1),o&&(!r||o===R(a))&&r)?et(a):h(0),c=(i.left+s.x)/l.x,u=(i.top+s.y)/l.y,d=i.width/l.x,p=i.height/l.y;if(a){let e=R(a),t=o&&B(o)?R(o):o,n=e,r=Q(n);for(;r&&o&&t!==n;){let e=J(r),t=r.getBoundingClientRect(),o=$(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,p*=e.y,c+=i,u+=a,r=Q(n=R(r))}}return M({width:d,height:p,x:c,y:u})}function eo(e,t){let n=G(e).scrollLeft;return t?t.left+n:en(H(e)).left+n}function er(e,t,n){void 0===n&&(n=!1);let o=e.getBoundingClientRect();return{x:o.left+t.scrollLeft-(n?0:eo(e,o)),y:o.top+t.scrollTop}}function ei(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=R(e),o=H(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,s=0;if(r){i=r.width,a=r.height;let e=U();(!e||e&&"fixed"===t)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)o=function(e){let t=H(e),n=G(e),o=e.ownerDocument.body,r=d(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=d(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),a=-n.scrollLeft+eo(e),l=-n.scrollTop;return"rtl"===$(o).direction&&(a+=d(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(H(e));else if(B(t))o=function(e,t){let n=en(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=N(e)?J(e):h(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y;return{width:a,height:l,x:r*i.x,y:o*i.y}}(t,n);else{let n=et(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return M(o)}function ea(e){return"static"===$(e).position}function el(e,t){if(!N(e)||"fixed"===$(e).position)return null;if(t)return t(e);let n=e.offsetParent;return H(e)===n&&(n=n.ownerDocument.body),n}function es(e,t){let n=R(e);if(_(e))return n;if(!N(e)){let t=Y(e);for(;t&&!q(t);){if(B(t)&&!ea(t))return t;t=Y(t)}return n}let o=el(e,t);for(;o&&["table","td","th"].includes(j(o))&&ea(o);)o=el(o,t);return o&&q(o)&&ea(o)&&!V(o)?n:o||function(e){let t=Y(e);for(;N(t)&&!q(t);){if(V(t))return t;if(_(t))break;t=Y(t)}return null}(e)||n}let ec=async function(e){let t=this.getOffsetParent||es,n=this.getDimensions,o=await n(e.floating);return{reference:function(e,t,n){let o=N(t),r=H(t),i="fixed"===n,a=en(e,!0,i,t),l={scrollLeft:0,scrollTop:0},s=h(0);if(o||!o&&!i)if(("body"!==j(t)||I(r))&&(l=G(t)),o){let e=en(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else r&&(s.x=eo(r));i&&!o&&r&&(s.x=eo(r));let c=!r||o||i?h(0):er(r,l);return{x:a.left+l.scrollLeft-s.x-c.x,y:a.top+l.scrollTop-s.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},eu={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e,i="fixed"===r,a=H(o),l=!!t&&_(t.floating);if(o===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=h(1),u=h(0),d=N(o);if((d||!d&&!i)&&(("body"!==j(o)||I(a))&&(s=G(o)),N(o))){let e=en(o);c=J(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}let p=!a||d||i?h(0):er(a,s,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-s.scrollTop*c.y+u.y+p.y}},getDocumentElement:H,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e,i=[..."clippingAncestors"===n?_(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let o=K(e,[],!1).filter(e=>B(e)&&"body"!==j(e)),r=null,i="fixed"===$(e).position,a=i?Y(e):e;for(;B(a)&&!q(a);){let t=$(a),n=V(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&!!r&&["absolute","fixed"].includes(r.position)||I(a)&&!n&&function e(t,n){let o=Y(t);return!(o===n||!B(o)||q(o))&&("fixed"===$(o).position||e(o,n))}(e,a))?o=o.filter(e=>e!==a):r=t,a=Y(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],l=i.reduce((e,n)=>{let o=ei(t,n,r);return e.top=d(o.top,e.top),e.right=u(o.right,e.right),e.bottom=u(o.bottom,e.bottom),e.left=d(o.left,e.left),e},ei(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:es,getElementRects:ec,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=X(e);return{width:t,height:n}},getScale:J,isElement:B,isRTL:function(e){return"rtl"===$(e).direction}};function ed(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ep=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:r,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:c,padding:p=0}=b(e,t)||{};if(null==c)return{};let f=C(p),h={x:n,y:o},g=k(w(r)),m=x(g),y=await a.getDimensions(c),S="y"===g,A=S?"clientHeight":"clientWidth",M=i.reference[m]+i.reference[g]-h[g]-i.floating[m],z=h[g]-i.reference[g],T=await (null==a.getOffsetParent?void 0:a.getOffsetParent(c)),E=T?T[A]:0;E&&await (null==a.isElement?void 0:a.isElement(T))||(E=l.floating[A]||i.floating[m]);let P=E/2-y[m]/2-1,F=u(f[S?"top":"left"],P),O=u(f[S?"bottom":"right"],P),D=E-y[m]-O,j=E/2-y[m]/2+(M/2-z/2),R=d(F,u(j,D)),H=!s.arrow&&null!=v(r)&&j!==R&&i.reference[m]/2-(j{t.current=e}),t}var ev=n(86250),ek=n(97601),ex=o.forwardRef((e,t)=>{let{children:n,width:o=10,height:r=5,...i}=e;return(0,ek.jsx)(ev.sG.svg,{...i,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,ek.jsx)("polygon",{points:"0,0 30,0 15,10"})})});ex.displayName="Arrow";var ew=n(15452),eS=n(99028),eA=n(11444),eC="Popper",[eM,ez]=(0,a.A)(eC),[eT,eE]=eM(eC),eP=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return(0,ek.jsx)(eT,{scope:t,anchor:r,onAnchorChange:i,children:n})};eP.displayName=eC;var eF="PopperAnchor",eO=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...a}=e,l=eE(eF,n),s=o.useRef(null),c=(0,i.s)(t,s);return o.useEffect(()=>{l.onAnchorChange((null==r?void 0:r.current)||s.current)}),r?null:(0,ek.jsx)(ev.sG.div,{...a,ref:c})});eO.displayName=eF;var eD="PopperContent",[ej,eR]=eM(eD),eH=o.forwardRef((e,t)=>{var n,r,a,l,s,c,p,h;let{__scopePopper:g,side:m="bottom",sideOffset:C=0,align:M="center",alignOffset:z=0,arrowPadding:D=0,avoidCollisions:j=!0,collisionBoundary:R=[],collisionPadding:L=0,sticky:B="partial",hideWhenDetached:N=!1,updatePositionStrategy:W="optimized",onPlaced:I,..._}=e,V=eE(eD,g),[U,q]=o.useState(null),$=(0,i.s)(t,e=>q(e)),[G,Y]=o.useState(null),Q=(0,eA.X)(G),X=null!=(p=null==Q?void 0:Q.width)?p:0,J=null!=(h=null==Q?void 0:Q.height)?h:0,ee="number"==typeof L?L:{top:0,right:0,bottom:0,left:0,...L},et=Array.isArray(R)?R:[R],eo=et.length>0,er={padding:ee,boundary:et.filter(eW),altBoundary:eo},{refs:ei,floatingStyles:ea,placement:el,isPositioned:es,middlewareData:ec}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:l}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[d,p]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=o.useState(r);eg(f,r)||h(r);let[g,m]=o.useState(null),[b,y]=o.useState(null),v=o.useCallback(e=>{e!==S.current&&(S.current=e,m(e))},[]),k=o.useCallback(e=>{e!==A.current&&(A.current=e,y(e))},[]),x=a||g,w=l||b,S=o.useRef(null),A=o.useRef(null),C=o.useRef(d),M=null!=c,z=ey(c),E=ey(i),P=ey(u),F=o.useCallback(()=>{if(!S.current||!A.current)return;let e={placement:t,strategy:n,middleware:f};E.current&&(e.platform=E.current),((e,t,n)=>{let o=new Map,r={platform:eu,...n},i={...r.platform,_c:o};return T(e,t,{...r,platform:i})})(S.current,A.current,e).then(e=>{let t={...e,isPositioned:!1!==P.current};O.current&&!eg(C.current,t)&&(C.current=t,ef.flushSync(()=>{p(t)}))})},[f,t,n,E,P]);eh(()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);let O=o.useRef(!1);eh(()=>(O.current=!0,()=>{O.current=!1}),[]),eh(()=>{if(x&&(S.current=x),w&&(A.current=w),x&&w){if(z.current)return z.current(x,w,F);F()}},[x,w,F,z,M]);let D=o.useMemo(()=>({reference:S,floating:A,setReference:v,setFloating:k}),[v,k]),j=o.useMemo(()=>({reference:x,floating:w}),[x,w]),R=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=eb(j.floating,d.x),o=eb(j.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+o+"px)",...em(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:o}},[n,s,j.floating,d.x,d.y]);return o.useMemo(()=>({...d,update:F,refs:D,elements:j,floatingStyles:R}),[d,F,D,j,R])}({strategy:"fixed",placement:m+("center"!==M?"-"+M:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let g=p&&s?function(e,t){let n,o=null,r=H(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return!function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();let c=e.getBoundingClientRect(),{left:p,top:h,width:g,height:m}=c;if(l||t(),!g||!m)return;let b=f(h),y=f(r.clientWidth-(p+g)),v={rootMargin:-b+"px "+-y+"px "+-f(r.clientHeight-(h+m))+"px "+-f(p)+"px",threshold:d(0,u(1,s))||1},k=!0;function x(t){let o=t[0].intersectionRatio;if(o!==s){if(!k)return a();o?a(!1,o):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==o||ed(c,e.getBoundingClientRect())||a(),k=!1}try{o=new IntersectionObserver(x,{...v,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(x,v)}o.observe(e)}(!0),i}(p,n):null,m=-1,b=null;l&&(b=new ResizeObserver(e=>{let[o]=e;o&&o.target===p&&b&&(b.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=b)||e.observe(t)})),n()}),p&&!c&&b.observe(p),b.observe(t));let y=c?en(e):null;return c&&function t(){let o=en(e);y&&!ed(y,o)&&n(),y=o,r=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=b)||e.disconnect(),b=null,c&&cancelAnimationFrame(r)}}(...t,{animationFrame:"always"===W})},elements:{reference:V.anchor},middleware:[((e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;let{x:r,y:i,placement:a,middlewareData:l}=t,s=await O(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}}(e),options:[e,t]}))({mainAxis:C+J,alignmentAxis:z}),j&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=b(e,t),c={x:n,y:o},p=await E(t,s),f=w(y(r)),h=k(f),g=c[h],m=c[f];if(i){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=g+p[e],o=g-p[t];g=d(n,u(g,o))}if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=m+p[e],o=m-p[t];m=d(n,u(m,o))}let v=l.fn({...t,[h]:g,[f]:m});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[h]:i,[f]:a}}}}}}(e),options:[e,t]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===B?((e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:o,placement:r,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=b(e,t),u={x:n,y:o},d=w(r),p=k(d),f=u[p],h=u[d],g=b(l,t),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(s){let e="y"===p?"height":"width",t=i.reference[p]-i.floating[e]+m.mainAxis,n=i.reference[p]+i.reference[e]-m.mainAxis;fn&&(f=n)}if(c){var v,x;let e="y"===p?"width":"height",t=["top","left"].includes(y(r)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:m.crossAxis),o=i.reference[d]+i.reference[e]+(t?0:(null==(x=a.offset)?void 0:x[d])||0)-(t?m.crossAxis:0);ho&&(h=o)}return{[p]:f,[d]:h}}}}(e),options:[e,t]}))():void 0,...er}),j&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o,r,i,a,l;let{placement:s,middlewareData:c,rects:u,initialPlacement:d,platform:p,elements:f}=t,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:m,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:z=!0,...T}=b(e,t);if(null!=(n=c.arrow)&&n.alignmentOffset)return{};let P=y(s),F=w(d),O=y(d)===d,D=await (null==p.isRTL?void 0:p.isRTL(f.floating)),j=m||(O||!z?[A(d)]:function(e){let t=A(e);return[S(e),t,S(t)]}(d)),R="none"!==M;!m&&R&&j.push(...function(e,t,n,o){let r=v(e),i=function(e,t,n){let o=["left","right"],r=["right","left"];switch(e){case"top":case"bottom":if(n)return t?r:o;return t?o:r;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(y(e),"start"===n,o);return r&&(i=i.map(e=>e+"-"+r),t&&(i=i.concat(i.map(S)))),i}(d,z,M,D));let H=[d,...j],L=await E(t,T),B=[],N=(null==(o=c.flip)?void 0:o.overflows)||[];if(h&&B.push(L[P]),g){let e=function(e,t,n){void 0===n&&(n=!1);let o=v(e),r=k(w(e)),i=x(r),a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=A(a)),[a,A(a)]}(s,u,D);B.push(L[e[0]],L[e[1]])}if(N=[...N,{placement:s,overflows:B}],!B.every(e=>e<=0)){let e=((null==(r=c.flip)?void 0:r.index)||0)+1,t=H[e];if(t){let n="alignment"===g&&F!==w(t),o=(null==(a=N[0])?void 0:a.overflows[0])>0;if(!n||o)return{data:{index:e,overflows:N},reset:{placement:t}}}let n=null==(i=N.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(C){case"bestFit":{let e=null==(l=N.filter(e=>{if(R){let t=w(e.placement);return t===F||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=d}if(s!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}))({...er}),((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,o;let r,i,{placement:a,rects:l,platform:s,elements:c}=t,{apply:p=()=>{},...f}=b(e,t),h=await E(t,f),g=y(a),m=v(a),k="y"===w(a),{width:x,height:S}=l.floating;"top"===g||"bottom"===g?(r=g,i=m===(await (null==s.isRTL?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(i=g,r="end"===m?"top":"bottom");let A=S-h.top-h.bottom,C=x-h.left-h.right,M=u(S-h[r],A),z=u(x-h[i],C),T=!t.middlewareData.shift,P=M,F=z;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(F=C),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(P=A),T&&!m){let e=d(h.left,0),t=d(h.right,0),n=d(h.top,0),o=d(h.bottom,0);k?F=x-2*(0!==e||0!==t?e+t:d(h.left,h.right)):P=S-2*(0!==n||0!==o?n+o:d(h.top,h.bottom))}await p({...t,availableWidth:F,availableHeight:P});let O=await s.getDimensions(c.floating);return x!==O.width||S!==O.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}))({...er,apply:e=>{let{elements:t,rects:n,availableWidth:o,availableHeight:r}=e,{width:i,height:a}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(o,"px")),l.setProperty("--radix-popper-available-height","".concat(r,"px")),l.setProperty("--radix-popper-anchor-width","".concat(i,"px")),l.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),G&&((e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:o}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?ep({element:n.current,padding:o}).fn(t):{}:n?ep({element:n,padding:o}).fn(t):{}}}))(e),options:[e,t]}))({element:G,padding:D}),eI({arrowWidth:X,arrowHeight:J}),N&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:o="referenceHidden",...r}=b(e,t);switch(o){case"referenceHidden":{let e=P(await E(t,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:F(e)}}}case"escaped":{let e=P(await E(t,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:F(e)}}}default:return{}}}}}(e),options:[e,t]}))({strategy:"referenceHidden",...er})]}),[ex,eC]=e_(el),eM=(0,ew.c)(I);(0,eS.N)(()=>{es&&(null==eM||eM())},[es,eM]);let ez=null==(n=ec.arrow)?void 0:n.x,eT=null==(r=ec.arrow)?void 0:r.y,eP=(null==(a=ec.arrow)?void 0:a.centerOffset)!==0,[eF,eO]=o.useState();return(0,eS.N)(()=>{U&&eO(window.getComputedStyle(U).zIndex)},[U]),(0,ek.jsx)("div",{ref:ei.setFloating,"data-radix-popper-content-wrapper":"",style:{...ea,transform:es?ea.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eF,"--radix-popper-transform-origin":[null==(l=ec.transformOrigin)?void 0:l.x,null==(s=ec.transformOrigin)?void 0:s.y].join(" "),...(null==(c=ec.hide)?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ek.jsx)(ej,{scope:g,placedSide:ex,onArrowChange:Y,arrowX:ez,arrowY:eT,shouldHideArrow:eP,children:(0,ek.jsx)(ev.sG.div,{"data-side":ex,"data-align":eC,..._,ref:$,style:{..._.style,animation:es?void 0:"none"}})})})});eH.displayName=eD;var eL="PopperArrow",eB={top:"bottom",right:"left",bottom:"top",left:"right"},eN=o.forwardRef(function(e,t){let{__scopePopper:n,...o}=e,r=eR(eL,n),i=eB[r.placedSide];return(0,ek.jsx)("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:(0,ek.jsx)(ex,{...o,ref:t,style:{...o.style,display:"block"}})})});function eW(e){return null!==e}eN.displayName=eL;var eI=e=>({name:"transformOrigin",options:e,fn(t){var n,o,r,i,a;let{placement:l,rects:s,middlewareData:c}=t,u=(null==(n=c.arrow)?void 0:n.centerOffset)!==0,d=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[f,h]=e_(l),g={start:"0%",center:"50%",end:"100%"}[h],m=(null!=(i=null==(o=c.arrow)?void 0:o.x)?i:0)+d/2,b=(null!=(a=null==(r=c.arrow)?void 0:r.y)?a:0)+p/2,y="",v="";return"bottom"===f?(y=u?g:"".concat(m,"px"),v="".concat(-p,"px")):"top"===f?(y=u?g:"".concat(m,"px"),v="".concat(s.floating.height+p,"px")):"right"===f?(y="".concat(-p,"px"),v=u?g:"".concat(b,"px")):"left"===f&&(y="".concat(s.floating.width+p,"px"),v=u?g:"".concat(b,"px")),{data:{x:y,y:v}}}});function e_(e){let[t,n="center"]=e.split("-");return[t,n]}var eV=n(42170),eU=n(32630),eq=n(57390),e$=n(37492),eG=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),eY=o.forwardRef((e,t)=>(0,ek.jsx)(ev.sG.span,{...e,ref:t,style:{...eG,...e.style}}));eY.displayName="VisuallyHidden";var[eK,eQ]=(0,a.A)("Tooltip",[ez]),eX=ez(),eZ="TooltipProvider",eJ="tooltip.open",[e0,e1]=eK(eZ),e2=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,l=o.useRef(!0),s=o.useRef(!1),c=o.useRef(0);return o.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,ek.jsx)(e0,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:o.useCallback(()=>{window.clearTimeout(c.current),l.current=!1},[]),onClose:o.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:o.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};e2.displayName=eZ;var e5="Tooltip",[e3,e4]=eK(e5),e9=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:l,delayDuration:c}=e,u=e1(e5,e.__scopeTooltip),d=eX(t),[p,f]=o.useState(null),h=(0,s.B)(),g=o.useRef(0),m=null!=l?l:u.disableHoverableContent,b=null!=c?c:u.delayDuration,y=o.useRef(!1),[v,k]=(0,e$.i)({prop:r,defaultProp:null!=i&&i,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(eJ))):u.onClose(),null==a||a(e)},caller:e5}),x=o.useMemo(()=>v?y.current?"delayed-open":"instant-open":"closed",[v]),w=o.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y.current=!1,k(!0)},[k]),S=o.useCallback(()=>{window.clearTimeout(g.current),g.current=0,k(!1)},[k]),A=o.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{y.current=!0,k(!0),g.current=0},b)},[b,k]);return o.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),(0,ek.jsx)(eP,{...d,children:(0,ek.jsx)(e3,{scope:t,contentId:h,open:v,stateAttribute:x,trigger:p,onTriggerChange:f,onTriggerEnter:o.useCallback(()=>{u.isOpenDelayedRef.current?A():w()},[u.isOpenDelayedRef,A,w]),onTriggerLeave:o.useCallback(()=>{m?S():(window.clearTimeout(g.current),g.current=0)},[S,m]),onOpen:w,onClose:S,disableHoverableContent:m,children:n})})};e9.displayName=e5;var e6="TooltipTrigger",e7=o.forwardRef((e,t)=>{let{__scopeTooltip:n,...a}=e,l=e4(e6,n),s=e1(e6,n),c=eX(n),u=o.useRef(null),d=(0,i.s)(t,u,l.onTriggerChange),p=o.useRef(!1),f=o.useRef(!1),h=o.useCallback(()=>p.current=!1,[]);return o.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),(0,ek.jsx)(eO,{asChild:!0,...c,children:(0,ek.jsx)(ev.sG.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...a,ref:d,onPointerMove:(0,r.m)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(f.current||s.isPointerInTransitRef.current||(l.onTriggerEnter(),f.current=!0))}),onPointerLeave:(0,r.m)(e.onPointerLeave,()=>{l.onTriggerLeave(),f.current=!1}),onPointerDown:(0,r.m)(e.onPointerDown,()=>{l.open&&l.onClose(),p.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:(0,r.m)(e.onFocus,()=>{p.current||l.onOpen()}),onBlur:(0,r.m)(e.onBlur,l.onClose),onClick:(0,r.m)(e.onClick,l.onClose)})})});e7.displayName=e6;var e8="TooltipPortal",[te,tt]=eK(e8,{forceMount:void 0}),tn=e=>{let{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,i=e4(e8,t);return(0,ek.jsx)(te,{scope:t,forceMount:n,children:(0,ek.jsx)(eU.C,{present:n||i.open,children:(0,ek.jsx)(eV.Z,{asChild:!0,container:r,children:o})})})};tn.displayName=e8;var to="TooltipContent",tr=o.forwardRef((e,t)=>{let n=tt(to,e.__scopeTooltip),{forceMount:o=n.forceMount,side:r="top",...i}=e,a=e4(to,e.__scopeTooltip);return(0,ek.jsx)(eU.C,{present:o||a.open,children:a.disableHoverableContent?(0,ek.jsx)(tc,{side:r,...i,ref:t}):(0,ek.jsx)(ti,{side:r,...i,ref:t})})}),ti=o.forwardRef((e,t)=>{let n=e4(to,e.__scopeTooltip),r=e1(to,e.__scopeTooltip),a=o.useRef(null),l=(0,i.s)(t,a),[s,c]=o.useState(null),{trigger:u,onClose:d}=n,p=a.current,{onPointerInTransitChange:f}=r,h=o.useCallback(()=>{c(null),f(!1)},[f]),g=o.useCallback((e,t)=>{let n=e.currentTarget,o={x:e.clientX,y:e.clientY},r=function(e,t){let n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,o,r,i)){case i:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw Error("unreachable")}}(o,n.getBoundingClientRect());c(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(o.y-n.y)>=(e.y-n.y)*(o.x-n.x))t.pop();else break}t.push(o)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let o=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(o.y-t.y)>=(e.y-t.y)*(o.x-t.x))n.pop();else break}n.push(o)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return o}(o,r),...function(e){let{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}(t.getBoundingClientRect())])),f(!0)},[f]);return o.useEffect(()=>()=>h(),[h]),o.useEffect(()=>{if(u&&p){let e=e=>g(e,p),t=e=>g(e,u);return u.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[u,p,g,h]),o.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},o=(null==u?void 0:u.contains(t))||(null==p?void 0:p.contains(t)),r=!function(e,t){let{x:n,y:o}=e,r=!1;for(let e=0,i=t.length-1;eo!=d>o&&n<(u-s)*(o-c)/(d-c)+s&&(r=!r)}return r}(n,s);o?h():r&&(h(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,p,s,d,h]),(0,ek.jsx)(tc,{...e,ref:l})}),[ta,tl]=eK(e5,{isInside:!1}),ts=(0,eq.Dc)("TooltipContent"),tc=o.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,u=e4(to,n),d=eX(n),{onClose:p}=u;return o.useEffect(()=>(document.addEventListener(eJ,p),()=>document.removeEventListener(eJ,p)),[p]),o.useEffect(()=>{if(u.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(u.trigger))&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[u.trigger,p]),(0,ek.jsx)(l.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:(0,ek.jsxs)(eH,{"data-state":u.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,ek.jsx)(ts,{children:r}),(0,ek.jsx)(ta,{scope:n,isInside:!0,children:(0,ek.jsx)(eY,{id:u.contentId,role:"tooltip",children:i||r})})]})})});tr.displayName=to;var tu="TooltipArrow",td=o.forwardRef((e,t)=>{let{__scopeTooltip:n,...o}=e,r=eX(n);return tl(tu,n).isInside?null:(0,ek.jsx)(eN,{...r,...o,ref:t})});td.displayName=tu;var tp=e2,tf=e9,th=e7,tg=tn,tm=tr,tb=td},54610:(e,t,n)=>{var o=n(37427),r=n(7254),i=n(69074),a=n(66960),l=n(864),s=n(14402),c=n(97704);function u(){"use strict";var t=r(),n=t.m(u),d=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function p(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var f={throw:1,return:2,break:3,continue:3};function h(e){var t,n;return function(o){t||(t={stop:function(){return n(o.a,2)},catch:function(){return o.v},abrupt:function(e,t){return n(o.a,f[e],t)},delegateYield:function(e,r,i){return t.resultName=r,n(o.d,c(e),i)},finish:function(e){return n(o.f,e)}},n=function(e,n,r){o.p=t.prev,o.n=t.next;try{return e(n,r)}finally{t.next=o.n}}),t.resultName&&(t[t.resultName]=o.v,t.resultName=void 0),t.sent=o.v,t.next=o.n;try{return e.call(this,t)}finally{o.p=t.prev,o.n=t.next}}}return(e.exports=u=function(){return{wrap:function(e,n,o,r){return t.w(h(e),n,o,r&&r.reverse())},isGeneratorFunction:p,mark:t.m,awrap:function(e,t){return new o(e,t)},AsyncIterator:l,async:function(e,t,n,o,r){return(p(t)?a:i)(h(e),t,n,o,r)},keys:s,values:c}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},55051:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o=(0,n(32403).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},55248:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,o=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var o,r=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;for(o in e);return void 0===o||t.call(e,o)},l=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(r)return r(e,n).value}return e[n]};e.exports=function e(){var t,n,o,r,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p{"use strict";function o(e){let t=[],n=String(e||""),o=n.indexOf(","),r=0,i=!1;for(;!i;){-1===o&&(o=n.length,i=!0);let e=n.slice(r,o).trim();(e||!i)&&t.push(e),r=o+1,o=n.indexOf(",",r)}return t}function r(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}n.d(t,{A:()=>r,q:()=>o})},56592:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2d2a",color:"#687d68"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#2a2d2a",color:"#687d68",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#435643"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#435643"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#435643"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#435643"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#435643"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#435643"},'code[class*="language-"]::selection':{textShadow:"none",background:"#435643"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#435643"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#535f53"},prolog:{color:"#535f53"},doctype:{color:"#535f53"},cdata:{color:"#535f53"},punctuation:{color:"#535f53"},namespace:{Opacity:".7"},tag:{color:"#a2b34d"},operator:{color:"#a2b34d"},number:{color:"#a2b34d"},property:{color:"#687d68"},function:{color:"#687d68"},"tag-id":{color:"#f0fff0"},selector:{color:"#f0fff0"},"atrule-id":{color:"#f0fff0"},"code.language-javascript":{color:"#b3d6b3"},"attr-name":{color:"#b3d6b3"},"code.language-css":{color:"#e5fb79"},"code.language-scss":{color:"#e5fb79"},boolean:{color:"#e5fb79"},string:{color:"#e5fb79"},entity:{color:"#e5fb79",cursor:"help"},url:{color:"#e5fb79"},".language-css .token.string":{color:"#e5fb79"},".language-scss .token.string":{color:"#e5fb79"},".style .token.string":{color:"#e5fb79"},"attr-value":{color:"#e5fb79"},keyword:{color:"#e5fb79"},control:{color:"#e5fb79"},directive:{color:"#e5fb79"},unit:{color:"#e5fb79"},statement:{color:"#e5fb79"},regex:{color:"#e5fb79"},atrule:{color:"#e5fb79"},placeholder:{color:"#e5fb79"},variable:{color:"#e5fb79"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #f0fff0",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#b3d6b3"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #5c705c",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#2c302c"},".line-numbers .line-numbers-rows > span:before":{color:"#3b423b"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(162, 179, 77, 0.2) 70%, rgba(162, 179, 77, 0))"}}},59071:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o=n(21060).default},59498:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o=(0,n(32403).A)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]])},60065:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",border:"1px solid #dddddd",backgroundColor:"white"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{background:"#C1DEF1"},'pre[class*="language-"] ::-moz-selection':{background:"#C1DEF1"},'code[class*="language-"]::-moz-selection':{background:"#C1DEF1"},'code[class*="language-"] ::-moz-selection':{background:"#C1DEF1"},'pre[class*="language-"]::selection':{background:"#C1DEF1"},'pre[class*="language-"] ::selection':{background:"#C1DEF1"},'code[class*="language-"]::selection':{background:"#C1DEF1"},'code[class*="language-"] ::selection':{background:"#C1DEF1"},':not(pre) > code[class*="language-"]':{padding:".2em",paddingTop:"1px",paddingBottom:"1px",background:"#f8f8f8",border:"1px solid #dddddd"},comment:{color:"#008000",fontStyle:"italic"},prolog:{color:"#008000",fontStyle:"italic"},doctype:{color:"#008000",fontStyle:"italic"},cdata:{color:"#008000",fontStyle:"italic"},namespace:{Opacity:".7"},string:{color:"#A31515"},punctuation:{color:"#393A34"},operator:{color:"#393A34"},url:{color:"#36acaa"},symbol:{color:"#36acaa"},number:{color:"#36acaa"},boolean:{color:"#36acaa"},variable:{color:"#36acaa"},constant:{color:"#36acaa"},inserted:{color:"#36acaa"},atrule:{color:"#0000ff"},keyword:{color:"#0000ff"},"attr-value":{color:"#0000ff"},".language-autohotkey .token.selector":{color:"#0000ff"},".language-json .token.boolean":{color:"#0000ff"},".language-json .token.number":{color:"#0000ff"},'code[class*="language-css"]':{color:"#0000ff"},function:{color:"#393A34"},deleted:{color:"#9a050f"},".language-autohotkey .token.tag":{color:"#9a050f"},selector:{color:"#800000"},".language-autohotkey .token.keyword":{color:"#00009f"},important:{color:"#e90",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},"class-name":{color:"#2B91AF"},".language-json .token.property":{color:"#2B91AF"},tag:{color:"#800000"},"attr-name":{color:"#ff0000"},property:{color:"#ff0000"},regex:{color:"#ff0000"},entity:{color:"#ff0000"},"directive.tag.tag":{background:"#ffff00",color:"#393A34"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#a5a5a5"},".line-numbers .line-numbers-rows > span:before":{color:"#2B91AF"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(193, 222, 241, 0.2) 70%, rgba(221, 222, 241, 0))"}}},61601:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",backgroundColor:"transparent !important",backgroundImage:"linear-gradient(to bottom, #2a2139 75%, #34294f)"},':not(pre) > code[class*="language-"]':{backgroundColor:"transparent !important",backgroundImage:"linear-gradient(to bottom, #2a2139 75%, #34294f)",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#8e8e8e"},"block-comment":{color:"#8e8e8e"},prolog:{color:"#8e8e8e"},doctype:{color:"#8e8e8e"},cdata:{color:"#8e8e8e"},punctuation:{color:"#ccc"},tag:{color:"#e2777a"},"attr-name":{color:"#e2777a"},namespace:{color:"#e2777a"},number:{color:"#e2777a"},unit:{color:"#e2777a"},hexcode:{color:"#e2777a"},deleted:{color:"#e2777a"},property:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"},selector:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"},"function-name":{color:"#6196cc"},boolean:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"},"selector.id":{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"},function:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"},"class-name":{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"},constant:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},symbol:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},important:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575",fontWeight:"bold"},atrule:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},keyword:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},"selector.class":{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},builtin:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"},string:{color:"#f87c32"},char:{color:"#f87c32"},"attr-value":{color:"#f87c32"},regex:{color:"#f87c32"},variable:{color:"#f87c32"},operator:{color:"#67cdcc"},entity:{color:"#67cdcc",cursor:"help"},url:{color:"#67cdcc"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{color:"green"}}},61717:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#ccc",background:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#ccc",background:"#2d2d2d",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},':not(pre) > code[class*="language-"]':{background:"#2d2d2d",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#999"},"block-comment":{color:"#999"},prolog:{color:"#999"},doctype:{color:"#999"},cdata:{color:"#999"},punctuation:{color:"#ccc"},tag:{color:"#e2777a"},"attr-name":{color:"#e2777a"},namespace:{color:"#e2777a"},deleted:{color:"#e2777a"},"function-name":{color:"#6196cc"},boolean:{color:"#f08d49"},number:{color:"#f08d49"},function:{color:"#f08d49"},property:{color:"#f8c555"},"class-name":{color:"#f8c555"},constant:{color:"#f8c555"},symbol:{color:"#f8c555"},selector:{color:"#cc99cd"},important:{color:"#cc99cd",fontWeight:"bold"},atrule:{color:"#cc99cd"},keyword:{color:"#cc99cd"},builtin:{color:"#cc99cd"},string:{color:"#7ec699"},char:{color:"#7ec699"},"attr-value":{color:"#7ec699"},regex:{color:"#7ec699"},variable:{color:"#7ec699"},operator:{color:"#67cdcc"},entity:{color:"#67cdcc",cursor:"help"},url:{color:"#67cdcc"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{color:"green"}}},63676:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});var o=n(47388);let r={}.hasOwnProperty;function i(e){let t={},n=-1;for(;++n{"use strict";n.d(t,{C:()=>o});let o=function(e){var t,n;if(null==e)return i;if("function"==typeof e)return r(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n{"use strict";n.d(t,{N:()=>y});var o=n(97601),r=n(61221),i=n(65630),a=n(84250),l=n(10771),s=n(75008),c=n(34944),u=n(51289);class d extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=(0,c.s)(e)&&e.offsetWidth||0,o=this.props.sizeRef.current;o.height=t.offsetHeight||0,o.width=t.offsetWidth||0,o.top=t.offsetTop,o.left=t.offsetLeft,o.right=n-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function p(e){let{children:t,isPresent:n,anchorX:i}=e,a=(0,r.useId)(),l=(0,r.useRef)(null),s=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=(0,r.useContext)(u.Q);return(0,r.useInsertionEffect)(()=>{let{width:e,height:t,top:o,left:r,right:u}=s.current;if(n||!l.current||!e||!t)return;l.current.dataset.motionPopId=a;let d=document.createElement("style");return c&&(d.nonce=c),document.head.appendChild(d),d.sheet&&d.sheet.insertRule('\n [data-motion-pop-id="'.concat(a,'"] {\n position: absolute !important;\n width: ').concat(e,"px !important;\n height: ").concat(t,"px !important;\n ").concat("left"===i?"left: ".concat(r):"right: ".concat(u),"px !important;\n top: ").concat(o,"px !important;\n }\n ")),()=>{document.head.contains(d)&&document.head.removeChild(d)}},[n]),(0,o.jsx)(d,{isPresent:n,childRef:l,sizeRef:s,children:r.cloneElement(t,{ref:l})})}let f=e=>{let{children:t,initial:n,isPresent:i,onExitComplete:l,custom:c,presenceAffectsLayout:u,mode:d,anchorX:f}=e,g=(0,a.M)(h),m=(0,r.useId)(),b=!0,y=(0,r.useMemo)(()=>(b=!1,{id:m,initial:n,isPresent:i,custom:c,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;l&&l()},register:e=>(g.set(e,!1),()=>g.delete(e))}),[i,g,l]);return u&&b&&(y={...y}),(0,r.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[i]),r.useEffect(()=>{i||g.size||!l||l()},[i]),"popLayout"===d&&(t=(0,o.jsx)(p,{isPresent:i,anchorX:f,children:t})),(0,o.jsx)(s.t.Provider,{value:y,children:t})};function h(){return new Map}var g=n(18855);let m=e=>e.key||"";function b(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}let y=e=>{let{children:t,custom:n,initial:s=!0,onExitComplete:c,presenceAffectsLayout:u=!0,mode:d="sync",propagate:p=!1,anchorX:h="left"}=e,[y,v]=(0,g.xQ)(p),k=(0,r.useMemo)(()=>b(t),[t]),x=p&&!y?[]:k.map(m),w=(0,r.useRef)(!0),S=(0,r.useRef)(k),A=(0,a.M)(()=>new Map),[C,M]=(0,r.useState)(k),[z,T]=(0,r.useState)(k);(0,l.E)(()=>{w.current=!1,S.current=k;for(let e=0;e{let t=m(e),r=(!p||!!y)&&(k===z||x.includes(t));return(0,o.jsx)(f,{isPresent:r,initial:(!w.current||!!s)&&void 0,custom:n,presenceAffectsLayout:u,mode:d,onExitComplete:r?void 0:()=>{if(!A.has(t))return;A.set(t,!0);let e=!0;A.forEach(t=>{t||(e=!1)}),e&&(null==P||P(),T(S.current),p&&(null==v||v()),c&&c())},anchorX:h,children:e},t)})})}},64806:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#eee",background:"#2f2f2f",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",color:"#eee",background:"#2f2f2f",fontFamily:"Roboto Mono, monospace",fontSize:"1em",lineHeight:"1.5em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",overflow:"auto",position:"relative",margin:"0.5em 0",padding:"1.25em 1em"},'code[class*="language-"]::-moz-selection':{background:"#363636"},'pre[class*="language-"]::-moz-selection':{background:"#363636"},'code[class*="language-"] ::-moz-selection':{background:"#363636"},'pre[class*="language-"] ::-moz-selection':{background:"#363636"},'code[class*="language-"]::selection':{background:"#363636"},'pre[class*="language-"]::selection':{background:"#363636"},'code[class*="language-"] ::selection':{background:"#363636"},'pre[class*="language-"] ::selection':{background:"#363636"},':not(pre) > code[class*="language-"]':{whiteSpace:"normal",borderRadius:"0.2em",padding:"0.1em"},".language-css > code":{color:"#fd9170"},".language-sass > code":{color:"#fd9170"},".language-scss > code":{color:"#fd9170"},'[class*="language-"] .namespace':{Opacity:"0.7"},atrule:{color:"#c792ea"},"attr-name":{color:"#ffcb6b"},"attr-value":{color:"#a5e844"},attribute:{color:"#a5e844"},boolean:{color:"#c792ea"},builtin:{color:"#ffcb6b"},cdata:{color:"#80cbc4"},char:{color:"#80cbc4"},class:{color:"#ffcb6b"},"class-name":{color:"#f2ff00"},comment:{color:"#616161"},constant:{color:"#c792ea"},deleted:{color:"#ff6666"},doctype:{color:"#616161"},entity:{color:"#ff6666"},function:{color:"#c792ea"},hexcode:{color:"#f2ff00"},id:{color:"#c792ea",fontWeight:"bold"},important:{color:"#c792ea",fontWeight:"bold"},inserted:{color:"#80cbc4"},keyword:{color:"#c792ea"},number:{color:"#fd9170"},operator:{color:"#89ddff"},prolog:{color:"#616161"},property:{color:"#80cbc4"},"pseudo-class":{color:"#a5e844"},"pseudo-element":{color:"#a5e844"},punctuation:{color:"#89ddff"},regex:{color:"#f2ff00"},selector:{color:"#ff6666"},string:{color:"#a5e844"},symbol:{color:"#c792ea"},tag:{color:"#ff6666"},unit:{color:"#fd9170"},url:{color:"#ff6666"},variable:{color:"#ff6666"}}},64966:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return k}});let o=n(17292),r=n(6313),i=n(97601),a=r._(n(61221)),l=o._(n(79944)),s=o._(n(88415)),c=n(29558),u=n(17019),d=n(14025);n(51719);let p=n(88844),f=o._(n(76526)),h=n(67589),g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/chatui/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function m(e,t,n,o,r,i,a){let l=null==e?void 0:e.src;e&&e["data-loaded-src"]!==l&&(e["data-loaded-src"]=l,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&r(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let o=!1,r=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>o,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{o=!0,t.preventDefault()},stopPropagation:()=>{r=!0,t.stopPropagation()}})}(null==o?void 0:o.current)&&o.current(e)}}))}function b(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let y=(0,a.forwardRef)((e,t)=>{let{src:n,srcSet:o,sizes:r,height:l,width:s,decoding:c,className:u,style:d,fetchPriority:p,placeholder:f,loading:g,unoptimized:y,fill:v,onLoadRef:k,onLoadingCompleteRef:x,setBlurComplete:w,setShowAltText:S,sizesInput:A,onLoad:C,onError:M,...z}=e,T=(0,a.useCallback)(e=>{e&&(M&&(e.src=e.src),e.complete&&m(e,f,k,x,w,y,A))},[n,f,k,x,w,M,y,A]),E=(0,h.useMergedRef)(t,T);return(0,i.jsx)("img",{...z,...b(p),loading:g,width:s,height:l,decoding:c,"data-nimg":v?"fill":"1",className:u,style:d,sizes:r,srcSet:o,src:n,ref:E,onLoad:e=>{m(e.currentTarget,f,k,x,w,y,A)},onError:e=>{S(!0),"empty"!==f&&w(!0),M&&M(e)}})});function v(e){let{isAppRouter:t,imgAttributes:n}=e,o={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...b(n.fetchPriority)};return t&&l.default.preload?(l.default.preload(n.src,o),null):(0,i.jsx)(s.default,{children:(0,i.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...o},"__nimg-"+n.src+n.srcSet+n.sizes)})}let k=(0,a.forwardRef)((e,t)=>{let n=(0,a.useContext)(p.RouterContext),o=(0,a.useContext)(d.ImageConfigContext),r=(0,a.useMemo)(()=>{var e;let t=g||o||u.imageConfigDefault,n=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),r=t.deviceSizes.sort((e,t)=>e-t),i=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:n,deviceSizes:r,qualities:i}},[o]),{onLoad:l,onLoadingComplete:s}=e,h=(0,a.useRef)(l);(0,a.useEffect)(()=>{h.current=l},[l]);let m=(0,a.useRef)(s);(0,a.useEffect)(()=>{m.current=s},[s]);let[b,k]=(0,a.useState)(!1),[x,w]=(0,a.useState)(!1),{props:S,meta:A}=(0,c.getImgProps)(e,{defaultLoader:f.default,imgConf:r,blurComplete:b,showAltText:x});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(y,{...S,unoptimized:A.unoptimized,placeholder:A.placeholder,fill:A.fill,onLoadRef:h,onLoadingCompleteRef:m,setBlurComplete:k,setShowAltText:w,sizesInput:e.sizes,ref:t}),A.priority?(0,i.jsx)(v,{isAppRouter:!n,imgAttributes:S}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65577:(e,t,n)=>{"use strict";n.d(t,{default:()=>r.a});var o=n(79214),r=n.n(o)},65630:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});let o=(0,n(61221).createContext)({})},66347:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",fontFamily:"\"Fira Code\", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#2E3440",fontFamily:"\"Fira Code\", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#2E3440",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#636f88"},prolog:{color:"#636f88"},doctype:{color:"#636f88"},cdata:{color:"#636f88"},punctuation:{color:"#81A1C1"},".namespace":{Opacity:".7"},property:{color:"#81A1C1"},tag:{color:"#81A1C1"},constant:{color:"#81A1C1"},symbol:{color:"#81A1C1"},deleted:{color:"#81A1C1"},number:{color:"#B48EAD"},boolean:{color:"#81A1C1"},selector:{color:"#A3BE8C"},"attr-name":{color:"#A3BE8C"},string:{color:"#A3BE8C"},char:{color:"#A3BE8C"},builtin:{color:"#A3BE8C"},inserted:{color:"#A3BE8C"},operator:{color:"#81A1C1"},entity:{color:"#81A1C1",cursor:"help"},url:{color:"#81A1C1"},".language-css .token.string":{color:"#81A1C1"},".style .token.string":{color:"#81A1C1"},variable:{color:"#81A1C1"},atrule:{color:"#88C0D0"},"attr-value":{color:"#88C0D0"},function:{color:"#88C0D0"},"class-name":{color:"#88C0D0"},keyword:{color:"#81A1C1"},regex:{color:"#EBCB8B"},important:{color:"#EBCB8B",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}},66514:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var o=n(52622),r=n(83309);function i(e){e.register(o.default),e.register(r.default),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,o=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,r=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function i(e,t){return RegExp(e=e.replace(//g,function(){return n}).replace(//g,function(){return o}).replace(//g,function(){return r}),t)}r=i(r).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},l=function(t){for(var n=[],o=0;o0&&n[n.length-1].tagName===a(r.content[0].content[1])&&n.pop():"/>"===r.content[r.content.length-1].content||n.push({tagName:a(r.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===r.type&&"{"===r.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===r.type&&"}"===r.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof r)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(r);o0&&("string"==typeof t[o-1]||"plain-text"===t[o-1].type)&&(s=a(t[o-1])+s,t.splice(o-1,1),o--),t[o]=new e.Token("plain-text",s,null,s)}r.content&&"string"!=typeof r.content&&l(r.content)}};e.hooks.add("after-tokenize",function(e){("jsx"===e.language||"tsx"===e.language)&&l(e.tokens)})}(e)}i.displayName="jsx",i.aliases=[]},66887:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb"},'pre[class*="language-"]':{fontFamily:'Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace',fontSize:"14px",lineHeight:"1.375",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"#faf8f5",color:"#728fcb",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"]::selection':{textShadow:"none",background:"#faf8f5"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#faf8f5"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#b6ad9a"},prolog:{color:"#b6ad9a"},doctype:{color:"#b6ad9a"},cdata:{color:"#b6ad9a"},punctuation:{color:"#b6ad9a"},namespace:{Opacity:".7"},tag:{color:"#063289"},operator:{color:"#063289"},number:{color:"#063289"},property:{color:"#b29762"},function:{color:"#b29762"},"tag-id":{color:"#2d2006"},selector:{color:"#2d2006"},"atrule-id":{color:"#2d2006"},"code.language-javascript":{color:"#896724"},"attr-name":{color:"#896724"},"code.language-css":{color:"#728fcb"},"code.language-scss":{color:"#728fcb"},boolean:{color:"#728fcb"},string:{color:"#728fcb"},entity:{color:"#728fcb",cursor:"help"},url:{color:"#728fcb"},".language-css .token.string":{color:"#728fcb"},".language-scss .token.string":{color:"#728fcb"},".style .token.string":{color:"#728fcb"},"attr-value":{color:"#728fcb"},keyword:{color:"#728fcb"},control:{color:"#728fcb"},directive:{color:"#728fcb"},unit:{color:"#728fcb"},statement:{color:"#728fcb"},regex:{color:"#728fcb"},atrule:{color:"#728fcb"},placeholder:{color:"#93abdc"},variable:{color:"#93abdc"},deleted:{textDecoration:"line-through"},inserted:{borderBottom:"1px dotted #2d2006",textDecoration:"none"},italic:{fontStyle:"italic"},important:{fontWeight:"bold",color:"#896724"},bold:{fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid #896724",OutlineOffset:".4em"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"#ece8de"},".line-numbers .line-numbers-rows > span:before":{color:"#cdc4b1"},".line-highlight.line-highlight":{background:"linear-gradient(to right, rgba(45, 32, 6, 0.2) 70%, rgba(45, 32, 6, 0))"}}},66960:(e,t,n)=>{var o=n(7254),r=n(864);e.exports=function(e,t,n,i,a){return new r(o().w(e,t,n,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},69074:(e,t,n)=>{var o=n(66960);e.exports=function(e,t,n,r,i){var a=o(e,t,n,r,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},70665:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o=(0,n(32403).A)("PanelRightClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]])},71833:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var o=(0,r.default)(e),i="function"==typeof t;return o.forEach(function(e){if("declaration"===e.type){var o=e.property,r=e.value;i?t(o,r,e):r&&((n=n||{})[o]=r)}}),n};var r=o(n(86387))},72043:()=>{},72096:(e,t,n)=>{"use strict";n.d(t,{dc:()=>i,_Z:()=>a,VG:()=>l});var o=n(64085);let r=[],i=!1,a="skip";function l(e,t,n,l){let s;"function"==typeof t&&"function"!=typeof n?(l=n,n=t):s=t;let c=(0,o.C)(s),u=l?-1:1;(function e(o,s,d){let p=o&&"object"==typeof o?o:{};if("string"==typeof p.type){let e="string"==typeof p.tagName?p.tagName:"string"==typeof p.name?p.name:void 0;Object.defineProperty(f,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return f;function f(){var p;let f,h,g,m=r;if((!t||c(o,s,d[d.length-1]||void 0))&&(m=Array.isArray(p=n(o,d))?p:"number"==typeof p?[!0,p]:null==p?r:[p])[0]===i)return m;if("children"in o&&o.children&&o.children&&m[0]!==a)for(h=(l?o.children.length:-1)+u,g=d.concat(o);h>-1&&h{"use strict";n.d(t,{A:()=>o});let o=(0,n(32403).A)("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]])},74079:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",background:"black",color:"white",boxShadow:"-.3em 0 0 .3em black, .3em 0 0 .3em black"},'pre[class*="language-"]':{fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:".4em .8em",margin:".5em 0",overflow:"auto",background:'url(\'data:image/svg+xml;charset=utf-8,%0D%0A%0D%0A%0D%0A<%2Fsvg>\')',backgroundSize:"1em 1em"},':not(pre) > code[class*="language-"]':{padding:".2em",borderRadius:".3em",boxShadow:"none",whiteSpace:"normal"},comment:{color:"#aaa"},prolog:{color:"#aaa"},doctype:{color:"#aaa"},cdata:{color:"#aaa"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#0cf"},tag:{color:"#0cf"},boolean:{color:"#0cf"},number:{color:"#0cf"},constant:{color:"#0cf"},symbol:{color:"#0cf"},selector:{color:"yellow"},"attr-name":{color:"yellow"},string:{color:"yellow"},char:{color:"yellow"},builtin:{color:"yellow"},operator:{color:"yellowgreen"},entity:{color:"yellowgreen",cursor:"help"},url:{color:"yellowgreen"},".language-css .token.string":{color:"yellowgreen"},variable:{color:"yellowgreen"},inserted:{color:"yellowgreen"},atrule:{color:"deeppink"},"attr-value":{color:"deeppink"},keyword:{color:"deeppink"},regex:{color:"orange"},important:{color:"orange",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},deleted:{color:"red"},"pre.diff-highlight.diff-highlight > code .token.deleted:not(.prefix)":{backgroundColor:"rgba(255, 0, 0, .3)",display:"inline"},"pre > code.diff-highlight.diff-highlight .token.deleted:not(.prefix)":{backgroundColor:"rgba(255, 0, 0, .3)",display:"inline"},"pre.diff-highlight.diff-highlight > code .token.inserted:not(.prefix)":{backgroundColor:"rgba(0, 255, 128, .3)",display:"inline"},"pre > code.diff-highlight.diff-highlight .token.inserted:not(.prefix)":{backgroundColor:"rgba(0, 255, 128, .3)",display:"inline"}}},74679:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{fontFamily:'"Fira Mono", Menlo, Monaco, "Lucida Console", "Courier New", Courier, monospace',fontSize:"16px",lineHeight:"1.375",direction:"ltr",textAlign:"left",wordSpacing:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",background:"#322931",color:"#b9b5b8"},'pre[class*="language-"]':{fontFamily:'"Fira Mono", Menlo, Monaco, "Lucida Console", "Courier New", Courier, monospace',fontSize:"16px",lineHeight:"1.375",direction:"ltr",textAlign:"left",wordSpacing:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",background:"#322931",color:"#b9b5b8",padding:"1em",margin:".5em 0",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},':not(pre) > code[class*="language-"]':{padding:".1em",borderRadius:".3em"},comment:{color:"#797379"},prolog:{color:"#797379"},doctype:{color:"#797379"},cdata:{color:"#797379"},punctuation:{color:"#b9b5b8"},".namespace":{Opacity:".7"},null:{color:"#fd8b19"},operator:{color:"#fd8b19"},boolean:{color:"#fd8b19"},number:{color:"#fd8b19"},property:{color:"#fdcc59"},tag:{color:"#1290bf"},string:{color:"#149b93"},selector:{color:"#c85e7c"},"attr-name":{color:"#fd8b19"},entity:{color:"#149b93",cursor:"help"},url:{color:"#149b93"},".language-css .token.string":{color:"#149b93"},".style .token.string":{color:"#149b93"},"attr-value":{color:"#8fc13e"},keyword:{color:"#8fc13e"},control:{color:"#8fc13e"},directive:{color:"#8fc13e"},unit:{color:"#8fc13e"},statement:{color:"#149b93"},regex:{color:"#149b93"},atrule:{color:"#149b93"},placeholder:{color:"#1290bf"},variable:{color:"#1290bf"},important:{color:"#dd464c",fontWeight:"bold"},"pre > code.highlight":{Outline:".4em solid red",OutlineOffset:".4em"}}},75008:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});let o=(0,n(61221).createContext)(null)},75147:(e,t,n)=>{"use strict";function o(e){e.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:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}n.r(t),n.d(t,{default:()=>o}),o.displayName="python",o.aliases=["py"]},76526:(e,t)=>{"use strict";function n(e){var t;let{config:n,src:o,width:r,quality:i}=e,a=i||(null==(t=n.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#282a36",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#282a36",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#6272a4"},prolog:{color:"#6272a4"},doctype:{color:"#6272a4"},cdata:{color:"#6272a4"},punctuation:{color:"#f8f8f2"},".namespace":{Opacity:".7"},property:{color:"#ff79c6"},tag:{color:"#ff79c6"},constant:{color:"#ff79c6"},symbol:{color:"#ff79c6"},deleted:{color:"#ff79c6"},boolean:{color:"#bd93f9"},number:{color:"#bd93f9"},selector:{color:"#50fa7b"},"attr-name":{color:"#50fa7b"},string:{color:"#50fa7b"},char:{color:"#50fa7b"},builtin:{color:"#50fa7b"},inserted:{color:"#50fa7b"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#f1fa8c"},"attr-value":{color:"#f1fa8c"},function:{color:"#f1fa8c"},"class-name":{color:"#f1fa8c"},keyword:{color:"#8be9fd"},regex:{color:"#ffb86c"},important:{color:"#ffb86c",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}},78645:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#393A34",fontFamily:'"Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",fontSize:".9em",lineHeight:"1.2em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",border:"1px solid #dddddd",backgroundColor:"white"},'pre > code[class*="language-"]':{fontSize:"1em"},'pre[class*="language-"]::-moz-selection':{background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{background:"#b3d4fc"},'pre[class*="language-"]::selection':{background:"#b3d4fc"},'pre[class*="language-"] ::selection':{background:"#b3d4fc"},'code[class*="language-"]::selection':{background:"#b3d4fc"},'code[class*="language-"] ::selection':{background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{padding:".2em",paddingTop:"1px",paddingBottom:"1px",background:"#f8f8f8",border:"1px solid #dddddd"},comment:{color:"#999988",fontStyle:"italic"},prolog:{color:"#999988",fontStyle:"italic"},doctype:{color:"#999988",fontStyle:"italic"},cdata:{color:"#999988",fontStyle:"italic"},namespace:{Opacity:".7"},string:{color:"#e3116c"},"attr-value":{color:"#e3116c"},punctuation:{color:"#393A34"},operator:{color:"#393A34"},entity:{color:"#36acaa"},url:{color:"#36acaa"},symbol:{color:"#36acaa"},number:{color:"#36acaa"},boolean:{color:"#36acaa"},variable:{color:"#36acaa"},constant:{color:"#36acaa"},property:{color:"#36acaa"},regex:{color:"#36acaa"},inserted:{color:"#36acaa"},atrule:{color:"#00a4db"},keyword:{color:"#00a4db"},"attr-name":{color:"#00a4db"},".language-autohotkey .token.selector":{color:"#00a4db"},function:{color:"#9a050f",fontWeight:"bold"},deleted:{color:"#9a050f"},".language-autohotkey .token.tag":{color:"#9a050f"},tag:{color:"#00009f"},selector:{color:"#00009f"},".language-autohotkey .token.keyword":{color:"#00009f"},important:{fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}},78703:(e,t)=>{"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:o,blurHeight:r,blurDataURL:i,objectFit:a}=e,l=o?40*o:t,s=r?40*r:n,c=l&&s?"viewBox='0 0 "+l+" "+s+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+c+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(c?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},79214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return s},getImageProps:function(){return l}});let o=n(17292),r=n(29558),i=n(64966),a=o._(n(76526));function l(e){let{props:t}=(0,r.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/chatui/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let s=i.Image},79240:(e,t,n)=>{"use strict";function o(e,t,n,o,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(o,r)}function r(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function l(e){o(a,r,i,l,s,"next",e)}function s(e){o(a,r,i,l,s,"throw",e)}l(void 0)})}}function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;tO});var p=n(22679),f=n.n(p),h=n(61221);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(function(e){if(0===e.length||1===e.length)return e;var t,n=e.join(".");return v[n]||(v[n]=0===(t=e.length)||1===t?e:2===t?[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])]:3===t?[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])]:t>=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0),v[n]})(e.filter(function(e){return"token"!==e})).reduce(function(e,t){return y(y({},e),n[t])},t)}(s.className,Object.assign({},s.style,void 0===r?{}:r),o)})}else f=y(y({},s),{},{className:s.className.join(" ")});var x=g(n.children);return h.createElement(u,i({key:l},f),x)}}({node:e,stylesheet:n,useInlineStyles:o,key:"code-segment-".concat(t)})})}function E(e){return e&&void 0!==e.highlightAuto}function P(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(P=function(){return!!e})()}let F=function(e,t){var n;return n=r(f().mark(function n(o){var r;return f().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,t();case 1:o(e,(r=n.sent).default||r);case 2:case"end":return n.stop()}},n)})),function(e){return n.apply(this,arguments)}},O=function(e){var t,n=e.loader,o=e.isLanguageRegistered,l=e.registerLanguage,p=e.languageLoaders,g=e.noAsyncLoadingLanguages,b=function(e){var t,o,d;function g(){var e,t;if(!(this instanceof g))throw TypeError("Cannot call a class as a function");return e=g,t=arguments,e=c(e),function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,P()?Reflect.construct(e,t||[],c(this).constructor):e.apply(this,t))}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return g.prototype=Object.create(e&&e.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),e&&u(g,e),o=[{key:"componentDidUpdate",value:function(){!g.isRegistered(this.props.language)&&p&&this.loadLanguage()}},{key:"componentDidMount",value:function(){var e=this;g.astGeneratorPromise||g.loadAstGenerator(),g.astGenerator||g.astGeneratorPromise.then(function(){e.forceUpdate()}),!g.isRegistered(this.props.language)&&p&&this.loadLanguage()}},{key:"loadLanguage",value:function(){var e=this,t=this.props.language;"text"!==t&&g.loadLanguage(t).then(function(){return e.forceUpdate()}).catch(function(){})}},{key:"normalizeLanguage",value:function(e){return g.isSupportedLanguage(e)?e:"text"}},{key:"render",value:function(){return h.createElement(g.highlightInstance,i({},this.props,{language:this.normalizeLanguage(this.props.language),astGenerator:g.astGenerator}))}}],d=[{key:"preload",value:function(){return g.loadAstGenerator()}},{key:"loadLanguage",value:(t=r(f().mark(function e(t){var n;return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(n=p[t])){e.next=1;break}return e.abrupt("return",n(g.registerLanguage));case 1:throw Error("Language ".concat(t," not supported"));case 2:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})},{key:"isSupportedLanguage",value:function(e){return g.isRegistered(e)||"function"==typeof p[e]}},{key:"loadAstGenerator",value:function(){return g.astGeneratorPromise=n().then(function(e){g.astGenerator=e,l&&g.languages.forEach(function(t,n){return l(e,n,t)})}),g.astGeneratorPromise}}],o&&s(g.prototype,o),d&&s(g,d),Object.defineProperty(g,"prototype",{writable:!1}),g}(h.PureComponent);return d(b,"astGenerator",null),d(b,"highlightInstance",(t={},function(e){var n,o,r=e.language,i=e.children,a=e.style,l=void 0===a?t:a,s=e.customStyle,c=void 0===s?{}:s,u=e.codeTagProps,d=void 0===u?{className:r?"language-".concat(r):void 0,style:w(w({},l['code[class*="language-"]']),l['code[class*="language-'.concat(r,'"]')])}:u,p=e.useInlineStyles,f=void 0===p||p,g=e.showLineNumbers,b=void 0!==g&&g,y=e.showInlineLineNumbers,v=void 0===y||y,x=e.startingLineNumber,P=void 0===x?1:x,F=e.lineNumberContainerStyle,O=e.lineNumberStyle,D=void 0===O?{}:O,j=e.wrapLines,R=e.wrapLongLines,H=void 0!==R&&R,L=e.lineProps,B=e.renderer,N=e.PreTag,W=void 0===N?"pre":N,I=e.CodeTag,_=void 0===I?"code":I,V=e.code,U=void 0===V?(Array.isArray(i)?i[0]:i)||"":V,q=e.astGenerator,$=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if(({}).hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];void 0===t.length&&(t=[t]);for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:[];return t||c.length>0?function(e,i){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return z({children:e,lineNumber:i,lineNumberStyle:l,largestLineNumber:a,showInlineLineNumbers:r,lineProps:n,className:c,showLineNumbers:o,wrapLongLines:s,wrapLines:t})}(e,i,c):function(e,t){if(o&&t&&r){var n=M(l,t,a);e.unshift(C(t,n))}return e}(e,i)}for(;f{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#c5c8c6",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#c5c8c6",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em",background:"#1d1f21"},':not(pre) > code[class*="language-"]':{background:"#1d1f21",padding:".1em",borderRadius:".3em"},comment:{color:"#7C7C7C"},prolog:{color:"#7C7C7C"},doctype:{color:"#7C7C7C"},cdata:{color:"#7C7C7C"},punctuation:{color:"#c5c8c6"},".namespace":{Opacity:".7"},property:{color:"#96CBFE"},keyword:{color:"#96CBFE"},tag:{color:"#96CBFE"},"class-name":{color:"#FFFFB6",textDecoration:"underline"},boolean:{color:"#99CC99"},constant:{color:"#99CC99"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},number:{color:"#FF73FD"},selector:{color:"#A8FF60"},"attr-name":{color:"#A8FF60"},string:{color:"#A8FF60"},char:{color:"#A8FF60"},builtin:{color:"#A8FF60"},inserted:{color:"#A8FF60"},variable:{color:"#C6C5FE"},operator:{color:"#EDEDED"},entity:{color:"#FFFFB6",cursor:"help"},url:{color:"#96CBFE"},".language-css .token.string":{color:"#87C38A"},".style .token.string":{color:"#87C38A"},atrule:{color:"#F9EE98"},"attr-value":{color:"#F9EE98"},function:{color:"#DAD085"},regex:{color:"#E9C062"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}},80726:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var o=n(52622);function r(e){var t;e.register(o.default),e.languages.typescript=e.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/}),e.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 e.languages.typescript.parameter,delete e.languages.typescript["literal-property"],t=e.languages.extend("typescript",{}),delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.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:t}}}}),e.languages.ts=e.languages.typescript}r.displayName="typescript",r.aliases=["ts"]},82453:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o=(0,n(32403).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},83065:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}}},83309:(e,t,n)=>{"use strict";function o(e){e.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]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var o={};o["language-"+n]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[n]},o.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:o}};r["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:r},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\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:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}n.r(t),n.d(t,{default:()=>o}),o.displayName="markup",o.aliases=["atom","html","mathml","rss","ssml","svg","xml"]},83601:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#111b27",background:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#111b27",background:"#e3eaf2",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{background:"#8da1b9"},'pre[class*="language-"] ::-moz-selection':{background:"#8da1b9"},'code[class*="language-"]::-moz-selection':{background:"#8da1b9"},'code[class*="language-"] ::-moz-selection':{background:"#8da1b9"},'pre[class*="language-"]::selection':{background:"#8da1b9"},'pre[class*="language-"] ::selection':{background:"#8da1b9"},'code[class*="language-"]::selection':{background:"#8da1b9"},'code[class*="language-"] ::selection':{background:"#8da1b9"},':not(pre) > code[class*="language-"]':{background:"#e3eaf2",padding:"0.1em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#3c526d"},prolog:{color:"#3c526d"},doctype:{color:"#3c526d"},cdata:{color:"#3c526d"},punctuation:{color:"#111b27"},"delimiter.important":{color:"#006d6d",fontWeight:"inherit"},"selector.parent":{color:"#006d6d"},tag:{color:"#006d6d"},"tag.punctuation":{color:"#006d6d"},"attr-name":{color:"#755f00"},boolean:{color:"#755f00"},"boolean.important":{color:"#755f00"},number:{color:"#755f00"},constant:{color:"#755f00"},"selector.attribute":{color:"#755f00"},"class-name":{color:"#005a8e"},key:{color:"#005a8e"},parameter:{color:"#005a8e"},property:{color:"#005a8e"},"property-access":{color:"#005a8e"},variable:{color:"#005a8e"},"attr-value":{color:"#116b00"},inserted:{color:"#116b00"},color:{color:"#116b00"},"selector.value":{color:"#116b00"},string:{color:"#116b00"},"string.url-link":{color:"#116b00"},builtin:{color:"#af00af"},"keyword-array":{color:"#af00af"},package:{color:"#af00af"},regex:{color:"#af00af"},function:{color:"#7c00aa"},"selector.class":{color:"#7c00aa"},"selector.id":{color:"#7c00aa"},"atrule.rule":{color:"#a04900"},combinator:{color:"#a04900"},keyword:{color:"#a04900"},operator:{color:"#a04900"},"pseudo-class":{color:"#a04900"},"pseudo-element":{color:"#a04900"},selector:{color:"#a04900"},unit:{color:"#a04900"},deleted:{color:"#c22f2e"},important:{color:"#c22f2e",fontWeight:"bold"},"keyword-this":{color:"#005a8e",fontWeight:"bold"},this:{color:"#005a8e",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},entity:{cursor:"help"},".language-markdown .token.title":{color:"#005a8e",fontWeight:"bold"},".language-markdown .token.title .token.punctuation":{color:"#005a8e",fontWeight:"bold"},".language-markdown .token.blockquote.punctuation":{color:"#af00af"},".language-markdown .token.code":{color:"#006d6d"},".language-markdown .token.hr.punctuation":{color:"#005a8e"},".language-markdown .token.url > .token.content":{color:"#116b00"},".language-markdown .token.url-link":{color:"#755f00"},".language-markdown .token.list.punctuation":{color:"#af00af"},".language-markdown .token.table-header":{color:"#111b27"},".language-json .token.operator":{color:"#111b27"},".language-scss .token.variable":{color:"#006d6d"},"token.tab:not(:empty):before":{color:"#3c526d"},"token.cr:before":{color:"#3c526d"},"token.lf:before":{color:"#3c526d"},"token.space:before":{color:"#3c526d"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{color:"#e3eaf2",background:"#005a8e"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{color:"#e3eaf2",background:"#005a8e"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{color:"#e3eaf2",background:"#005a8eda",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{color:"#e3eaf2",background:"#3c526d"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{color:"#e3eaf2",background:"#3c526d"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{color:"#e3eaf2",background:"#3c526d"},".line-highlight.line-highlight":{background:"linear-gradient(to right, #8da1b92f 70%, #8da1b925)"},".line-highlight.line-highlight:before":{backgroundColor:"#3c526d",color:"#e3eaf2",boxShadow:"0 1px #8da1b9"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"#3c526d",color:"#e3eaf2",boxShadow:"0 1px #8da1b9"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"#3c526d1f"},".line-numbers.line-numbers .line-numbers-rows":{borderRight:"1px solid #8da1b97a",background:"#d0dae77a"},".line-numbers .line-numbers-rows > span:before":{color:"#3c526dda"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"#755f00"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"#755f00"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"#755f00"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"#af00af"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"#af00af"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"#af00af"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"#005a8e"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"#005a8e"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"#005a8e"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"#7c00aa"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"#7c00aa"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"#7c00aa"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"#c22f2e1f"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"#c22f2e1f"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"#116b001f"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"#116b001f"},".command-line .command-line-prompt":{borderRight:"1px solid #8da1b97a"},".command-line .command-line-prompt > span:before":{color:"#3c526dda"}}},84250:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var o=n(61221);function r(e){let t=(0,o.useRef)(null);return null===t.current&&(t.current=e()),t.current}},84429:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},86009:e=>{function t(n,o,r,i){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}e.exports=t=function(e,n,o,r){function i(n,o){t(e,n,function(e){return this._invoke(n,o,e)})}n?a?a(e,n,{value:o,enumerable:!r,configurable:!r,writable:!r}):e[n]=o:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,o,r,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},86387:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,o=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g;function c(e){return e?e.replace(s,""):""}e.exports=function(e,s){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];s=s||{};var u=1,d=1;function p(e){var t=e.match(n);t&&(u+=t.length);var o=e.lastIndexOf("\n");d=~o?e.length-o:d+e.length}function f(){var e={line:u,column:d};return function(t){return t.position=new h(e),b(o),t}}function h(e){this.start=e,this.end={line:u,column:d},this.source=s.source}h.prototype.content=e;var g=[];function m(t){var n=Error(s.source+":"+u+":"+d+": "+t);if(n.reason=t,n.filename=s.source,n.line=u,n.column=d,n.source=e,s.silent)g.push(n);else throw n}function b(t){var n=t.exec(e);if(n){var o=n[0];return p(o),e=e.slice(o.length),n}}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var o=e.slice(2,n-2);return d+=2,p(o),e=e.slice(n),d+=2,t({type:"comment",comment:o})}}b(o);var k,x=[];for(y(x);k=function(){var e=f(),n=b(r);if(n){if(v(),!b(i))return m("property missing ':'");var o=b(a),s=e({type:"declaration",property:c(n[0].replace(t,"")),value:o?c(o[0].replace(t,"")):""});return b(l),s}}();)!1!==k&&(x.push(k),y(x));return x}},87803:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#e3eaf2",background:"none",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#e3eaf2",background:"#111b27",fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{background:"#3c526d"},'pre[class*="language-"] ::-moz-selection':{background:"#3c526d"},'code[class*="language-"]::-moz-selection':{background:"#3c526d"},'code[class*="language-"] ::-moz-selection':{background:"#3c526d"},'pre[class*="language-"]::selection':{background:"#3c526d"},'pre[class*="language-"] ::selection':{background:"#3c526d"},'code[class*="language-"]::selection':{background:"#3c526d"},'code[class*="language-"] ::selection':{background:"#3c526d"},':not(pre) > code[class*="language-"]':{background:"#111b27",padding:"0.1em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"#8da1b9"},prolog:{color:"#8da1b9"},doctype:{color:"#8da1b9"},cdata:{color:"#8da1b9"},punctuation:{color:"#e3eaf2"},"delimiter.important":{color:"#66cccc",fontWeight:"inherit"},"selector.parent":{color:"#66cccc"},tag:{color:"#66cccc"},"tag.punctuation":{color:"#66cccc"},"attr-name":{color:"#e6d37a"},boolean:{color:"#e6d37a"},"boolean.important":{color:"#e6d37a"},number:{color:"#e6d37a"},constant:{color:"#e6d37a"},"selector.attribute":{color:"#e6d37a"},"class-name":{color:"#6cb8e6"},key:{color:"#6cb8e6"},parameter:{color:"#6cb8e6"},property:{color:"#6cb8e6"},"property-access":{color:"#6cb8e6"},variable:{color:"#6cb8e6"},"attr-value":{color:"#91d076"},inserted:{color:"#91d076"},color:{color:"#91d076"},"selector.value":{color:"#91d076"},string:{color:"#91d076"},"string.url-link":{color:"#91d076"},builtin:{color:"#f4adf4"},"keyword-array":{color:"#f4adf4"},package:{color:"#f4adf4"},regex:{color:"#f4adf4"},function:{color:"#c699e3"},"selector.class":{color:"#c699e3"},"selector.id":{color:"#c699e3"},"atrule.rule":{color:"#e9ae7e"},combinator:{color:"#e9ae7e"},keyword:{color:"#e9ae7e"},operator:{color:"#e9ae7e"},"pseudo-class":{color:"#e9ae7e"},"pseudo-element":{color:"#e9ae7e"},selector:{color:"#e9ae7e"},unit:{color:"#e9ae7e"},deleted:{color:"#cd6660"},important:{color:"#cd6660",fontWeight:"bold"},"keyword-this":{color:"#6cb8e6",fontWeight:"bold"},this:{color:"#6cb8e6",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},entity:{cursor:"help"},".language-markdown .token.title":{color:"#6cb8e6",fontWeight:"bold"},".language-markdown .token.title .token.punctuation":{color:"#6cb8e6",fontWeight:"bold"},".language-markdown .token.blockquote.punctuation":{color:"#f4adf4"},".language-markdown .token.code":{color:"#66cccc"},".language-markdown .token.hr.punctuation":{color:"#6cb8e6"},".language-markdown .token.url .token.content":{color:"#91d076"},".language-markdown .token.url-link":{color:"#e6d37a"},".language-markdown .token.list.punctuation":{color:"#f4adf4"},".language-markdown .token.table-header":{color:"#e3eaf2"},".language-json .token.operator":{color:"#e3eaf2"},".language-scss .token.variable":{color:"#66cccc"},"token.tab:not(:empty):before":{color:"#8da1b9"},"token.cr:before":{color:"#8da1b9"},"token.lf:before":{color:"#8da1b9"},"token.space:before":{color:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{color:"#111b27",background:"#6cb8e6"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{color:"#111b27",background:"#6cb8e6"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{color:"#111b27",background:"#6cb8e6da",textDecoration:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{color:"#111b27",background:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{color:"#111b27",background:"#8da1b9"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{color:"#111b27",background:"#8da1b9"},".line-highlight.line-highlight":{background:"linear-gradient(to right, #3c526d5f 70%, #3c526d55)"},".line-highlight.line-highlight:before":{backgroundColor:"#8da1b9",color:"#111b27",boxShadow:"0 1px #3c526d"},".line-highlight.line-highlight[data-end]:after":{backgroundColor:"#8da1b9",color:"#111b27",boxShadow:"0 1px #3c526d"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"#8da1b918"},".line-numbers.line-numbers .line-numbers-rows":{borderRight:"1px solid #0b121b",background:"#0b121b7a"},".line-numbers .line-numbers-rows > span:before":{color:"#8da1b9da"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"#e6d37a"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"#f4adf4"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"#6cb8e6"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"#c699e3"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"#c699e3"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"#c699e3"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"#cd66601f"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"#cd66601f"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"#91d0761f"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"#91d0761f"},".command-line .command-line-prompt":{borderRight:"1px solid #0b121b"},".command-line .command-line-prompt > span:before":{color:"#8da1b9da"}}},88058:(e,t,n)=>{"use strict";n.d(t,{YR:()=>r});var o=n(72096);function r(e,t,n,r){let i,a,l;"function"==typeof t&&"function"!=typeof n?(a=void 0,l=t,i=n):(a=t,l=n,i=r),(0,o.VG)(e,a,function(e,t){let n=t[t.length-1],o=n?n.children.indexOf(e):void 0;return l(e,o,n)},i)}},88415:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return g},defaultHead:function(){return d}});let o=n(17292),r=n(6313),i=n(97601),a=r._(n(61221)),l=o._(n(13104)),s=n(18367),c=n(3927),u=n(8743);function d(e){void 0===e&&(e=!1);let t=[(0,i.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,i.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function p(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(51719);let f=["name","httpEquiv","charSet","itemProp"];function h(e,t){let{inAmpMode:n}=t;return e.reduce(p,[]).reverse().concat(d(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,o={};return r=>{let i=!0,a=!1;if(r.key&&"number"!=typeof r.key&&r.key.indexOf("$")>0){a=!0;let t=r.key.slice(r.key.indexOf("$")+1);e.has(t)?i=!1:e.add(t)}switch(r.type){case"title":case"base":t.has(r.type)?i=!1:t.add(r.type);break;case"meta":for(let e=0,t=f.length;e{let n=e.key||t;return a.default.cloneElement(e,{key:n})})}let g=function(e){let{children:t}=e,n=(0,a.useContext)(s.AmpStateContext),o=(0,a.useContext)(c.HeadManagerContext);return(0,i.jsx)(l.default,{reduceComponentsToState:h,headManager:o,inAmpMode:(0,u.isInAmpMode)(n),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88844:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return o}});let o=n(17292)._(n(61221)).default.createContext(null)},90634:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o=(0,n(32403).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},93437:(e,t,n)=>{"use strict";function o(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function r(e){return e.join(" ").trim()}n.d(t,{A:()=>r,q:()=>o})},93703:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,o=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var c;return(void 0===t&&(t={}),!(c=e)||r.test(c)||n.test(c))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,s):e.replace(i,s)).replace(o,l))}},93987:(e,t,n)=>{"use strict";n.d(t,{BM:()=>l,CW:()=>o,Ee:()=>d,HP:()=>u,JQ:()=>a,Ny:()=>h,On:()=>p,cx:()=>i,es:()=>f,lV:()=>r,ok:()=>s,ol:()=>c});let o=g(/[A-Za-z]/),r=g(/[\dA-Za-z]/),i=g(/[#-'*+\--9=?A-Z^-~]/);function a(e){return null!==e&&(e<32||127===e)}let l=g(/\d/),s=g(/[\dA-Fa-f]/),c=g(/[!-/:-@[-`{-~]/);function u(e){return null!==e&&e<-2}function d(e){return null!==e&&(e<0||32===e)}function p(e){return -2===e||-1===e||32===e}let f=g(/\p{P}|\p{S}/u),h=g(/\s/);function g(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}},94719:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}},94868:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o=(0,n(32403).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},95459:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={"code[class*='language-']":{color:"#9efeff",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",fontFamily:"'Operator Mono', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontWeight:"400",fontSize:"17px",lineHeight:"25px",letterSpacing:"0.5px",textShadow:"0 1px #222245"},"pre[class*='language-']":{color:"#9efeff",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",fontFamily:"'Operator Mono', 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontWeight:"400",fontSize:"17px",lineHeight:"25px",letterSpacing:"0.5px",textShadow:"0 1px #222245",padding:"2em",margin:"0.5em 0",overflow:"auto",background:"#1e1e3f"},"pre[class*='language-']::-moz-selection":{color:"inherit",background:"#a599e9"},"pre[class*='language-'] ::-moz-selection":{color:"inherit",background:"#a599e9"},"code[class*='language-']::-moz-selection":{color:"inherit",background:"#a599e9"},"code[class*='language-'] ::-moz-selection":{color:"inherit",background:"#a599e9"},"pre[class*='language-']::selection":{color:"inherit",background:"#a599e9"},"pre[class*='language-'] ::selection":{color:"inherit",background:"#a599e9"},"code[class*='language-']::selection":{color:"inherit",background:"#a599e9"},"code[class*='language-'] ::selection":{color:"inherit",background:"#a599e9"},":not(pre) > code[class*='language-']":{background:"#1e1e3f",padding:"0.1em",borderRadius:"0.3em"},"":{fontWeight:"400"},comment:{color:"#b362ff"},prolog:{color:"#b362ff"},cdata:{color:"#b362ff"},delimiter:{color:"#ff9d00"},keyword:{color:"#ff9d00"},selector:{color:"#ff9d00"},important:{color:"#ff9d00"},atrule:{color:"#ff9d00"},operator:{color:"rgb(255, 180, 84)",background:"none"},"attr-name":{color:"rgb(255, 180, 84)"},punctuation:{color:"#ffffff"},boolean:{color:"rgb(255, 98, 140)"},tag:{color:"rgb(255, 157, 0)"},"tag.punctuation":{color:"rgb(255, 157, 0)"},doctype:{color:"rgb(255, 157, 0)"},builtin:{color:"rgb(255, 157, 0)"},entity:{color:"#6897bb",background:"none"},symbol:{color:"#6897bb"},number:{color:"#ff628c"},property:{color:"#ff628c"},constant:{color:"#ff628c"},variable:{color:"#ff628c"},string:{color:"#a5ff90"},char:{color:"#a5ff90"},"attr-value":{color:"#a5c261"},"attr-value.punctuation":{color:"#a5c261"},"attr-value.punctuation:first-child":{color:"#a9b7c6"},url:{color:"#287bde",textDecoration:"underline",background:"none"},function:{color:"rgb(250, 208, 0)"},regex:{background:"#364135"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#00ff00"},deleted:{background:"#ff000d"},"code.language-css .token.property":{color:"#a9b7c6"},"code.language-css .token.property + .token.punctuation":{color:"#a9b7c6"},"code.language-css .token.id":{color:"#ffc66d"},"code.language-css .token.selector > .token.class":{color:"#ffc66d"},"code.language-css .token.selector > .token.attribute":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-class":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-element":{color:"#ffc66d"},"class-name":{color:"#fb94ff"},".language-css .token.string":{background:"none"},".style .token.string":{background:"none"},".line-highlight.line-highlight":{marginTop:"36px",background:"linear-gradient(to right, rgba(179, 98, 255, 0.17), transparent)"},".line-highlight.line-highlight:before":{content:"''"},".line-highlight.line-highlight[data-end]:after":{content:"''"}}},95667:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o=(0,n(32403).A)("PanelRightOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]])},96962:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o=(0,n(32403).A)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},97084:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"15px",lineHeight:"1.5",color:"#dccf8f",textShadow:"0"},'pre[class*="language-"]':{MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",whiteSpace:"pre-wrap",wordBreak:"break-all",wordWrap:"break-word",fontFamily:'Menlo, Monaco, "Courier New", monospace',fontSize:"15px",lineHeight:"1.5",color:"#DCCF8F",textShadow:"0",borderRadius:"5px",border:"1px solid #000",background:"#181914 url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAMAAA/+4ADkFkb2JlAGTAAAAAAf/bAIQACQYGBgcGCQcHCQ0IBwgNDwsJCQsPEQ4ODw4OERENDg4ODg0RERQUFhQUERoaHBwaGiYmJiYmKysrKysrKysrKwEJCAgJCgkMCgoMDwwODA8TDg4ODhMVDg4PDg4VGhMRERERExoXGhYWFhoXHR0aGh0dJCQjJCQrKysrKysrKysr/8AAEQgAjACMAwEiAAIRAQMRAf/EAF4AAQEBAAAAAAAAAAAAAAAAAAABBwEBAQAAAAAAAAAAAAAAAAAAAAIQAAEDAwIHAQEAAAAAAAAAAADwAREhYaExkUFRcYGxwdHh8REBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AyGFEjHaBS2fDDs2zkhKmBKktb7km+ZwwCnXPkLVmCTMItj6AXFxRS465/BTnkAJvkLkJe+7AKKoi2AtRS2zuAWsCb5GOlBN8gKfmuGHZ8MFqIth3ALmFoFwbwKWyAlTAp17uKqBvgBD8sM4fTjhvAhkzhaRkBMKBrfs7jGPIpzy7gFrAqnC0C0gB0EWwBDW2cBVQwm+QtPpa3wBO3sVvszCnLAhkzgL5/RLf13cLQd8/AGlu0Cb5HTx9KuAEieGJEdcehS3eRTp2ATdt3CpIm+QtZwAhROXFeb7swp/ahaM3kBE/jSIUBc/AWrgBN8uNFAl+b7sAXFxFn2YLUU5Ns7gFX8C4ib+hN8gFWXwK3bZglxEJm+gKdciLPsFV/TClsgJUwKJ5FVA7tvIFrfZhVfGJDcsCKaYgAqv6YRbE+RWOWBtu7+AL3yRalXLyKqAIIfk+zARbDgFyEsncYwJvlgFRW+GEWntIi2P0BooyFxcNr8Ep3+ANLbMO+QyhvbiqdgC0kVvgUUiLYgBS2QtPbiVI1/sgOmG9uO+Y8DW+7jS2zAOnj6O2BndwuIAUtkdRN8gFoK3wwXMQyZwHVbClsuNLd4E3yAUR6FVDBR+BafQGt93LVMxJTv8ABts4CVLhcfYWsCb5kC9/BHdU8CLYFY5bMAd+eX9MGthhpbA1vu4B7+RKkaW2Yq4AQtVBBFsAJU/AuIXBhN8gGWnstefhiZyWvLAEnbYS1uzSFP6Jvn4Baxx70JKkQojLib5AVTey1jjgkKJGO0AKWyOm7N7cSpgSpAdPH0Tfd/gp1z5C1ZgKqN9J2wFxcUUuAFLZAm+QC0Fb4YUVRFsAOvj4KW2dwtYE3yAWk/wS/PLMKfmuGHZ8MAXF/Ja32Yi5haAKWz4Ydm2cSpgU693Atb7km+Zwwh+WGcPpxw3gAkzCLY+iYUDW/Z3Adc/gpzyFrAqnALkJe+7DoItgAtRS2zuKqGE3yAx0oJvkdvYrfZmALURbDuL5/RLf13cAuDeBS2RpbtAm+QFVA3wR+3fUtFHoBDJnC0jIXH0HWsgMY8inPLuOkd9chp4z20ALQLSA8cI9jYAIa2zjzjBd8gRafS1vgiUho/kAKcsCGTOGWvoOpkAtB3z8Hm8x2Ff5ADp4+lXAlIvcmwH/2Q==') repeat left top",padding:"12px",overflow:"auto"},'pre > code[class*="language-"]':{fontSize:"1em"},':not(pre) > code[class*="language-"]':{borderRadius:"5px",border:"1px solid #000",color:"#DCCF8F",background:"#181914 url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAMAAA/+4ADkFkb2JlAGTAAAAAAf/bAIQACQYGBgcGCQcHCQ0IBwgNDwsJCQsPEQ4ODw4OERENDg4ODg0RERQUFhQUERoaHBwaGiYmJiYmKysrKysrKysrKwEJCAgJCgkMCgoMDwwODA8TDg4ODhMVDg4PDg4VGhMRERERExoXGhYWFhoXHR0aGh0dJCQjJCQrKysrKysrKysr/8AAEQgAjACMAwEiAAIRAQMRAf/EAF4AAQEBAAAAAAAAAAAAAAAAAAABBwEBAQAAAAAAAAAAAAAAAAAAAAIQAAEDAwIHAQEAAAAAAAAAAADwAREhYaExkUFRcYGxwdHh8REBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AyGFEjHaBS2fDDs2zkhKmBKktb7km+ZwwCnXPkLVmCTMItj6AXFxRS465/BTnkAJvkLkJe+7AKKoi2AtRS2zuAWsCb5GOlBN8gKfmuGHZ8MFqIth3ALmFoFwbwKWyAlTAp17uKqBvgBD8sM4fTjhvAhkzhaRkBMKBrfs7jGPIpzy7gFrAqnC0C0gB0EWwBDW2cBVQwm+QtPpa3wBO3sVvszCnLAhkzgL5/RLf13cLQd8/AGlu0Cb5HTx9KuAEieGJEdcehS3eRTp2ATdt3CpIm+QtZwAhROXFeb7swp/ahaM3kBE/jSIUBc/AWrgBN8uNFAl+b7sAXFxFn2YLUU5Ns7gFX8C4ib+hN8gFWXwK3bZglxEJm+gKdciLPsFV/TClsgJUwKJ5FVA7tvIFrfZhVfGJDcsCKaYgAqv6YRbE+RWOWBtu7+AL3yRalXLyKqAIIfk+zARbDgFyEsncYwJvlgFRW+GEWntIi2P0BooyFxcNr8Ep3+ANLbMO+QyhvbiqdgC0kVvgUUiLYgBS2QtPbiVI1/sgOmG9uO+Y8DW+7jS2zAOnj6O2BndwuIAUtkdRN8gFoK3wwXMQyZwHVbClsuNLd4E3yAUR6FVDBR+BafQGt93LVMxJTv8ABts4CVLhcfYWsCb5kC9/BHdU8CLYFY5bMAd+eX9MGthhpbA1vu4B7+RKkaW2Yq4AQtVBBFsAJU/AuIXBhN8gGWnstefhiZyWvLAEnbYS1uzSFP6Jvn4Baxx70JKkQojLib5AVTey1jjgkKJGO0AKWyOm7N7cSpgSpAdPH0Tfd/gp1z5C1ZgKqN9J2wFxcUUuAFLZAm+QC0Fb4YUVRFsAOvj4KW2dwtYE3yAWk/wS/PLMKfmuGHZ8MAXF/Ja32Yi5haAKWz4Ydm2cSpgU693Atb7km+Zwwh+WGcPpxw3gAkzCLY+iYUDW/Z3Adc/gpzyFrAqnALkJe+7DoItgAtRS2zuKqGE3yAx0oJvkdvYrfZmALURbDuL5/RLf13cAuDeBS2RpbtAm+QFVA3wR+3fUtFHoBDJnC0jIXH0HWsgMY8inPLuOkd9chp4z20ALQLSA8cI9jYAIa2zjzjBd8gRafS1vgiUho/kAKcsCGTOGWvoOpkAtB3z8Hm8x2Ff5ADp4+lXAlIvcmwH/2Q==') repeat left top",padding:"2px 6px"},namespace:{Opacity:".7"},comment:{color:"#586e75",fontStyle:"italic"},prolog:{color:"#586e75",fontStyle:"italic"},doctype:{color:"#586e75",fontStyle:"italic"},cdata:{color:"#586e75",fontStyle:"italic"},number:{color:"#b89859"},string:{color:"#468966"},char:{color:"#468966"},builtin:{color:"#468966"},inserted:{color:"#468966"},"attr-name":{color:"#b89859"},operator:{color:"#dccf8f"},entity:{color:"#dccf8f",cursor:"help"},url:{color:"#dccf8f"},".language-css .token.string":{color:"#dccf8f"},".style .token.string":{color:"#dccf8f"},selector:{color:"#859900"},regex:{color:"#859900"},atrule:{color:"#cb4b16"},keyword:{color:"#cb4b16"},"attr-value":{color:"#468966"},function:{color:"#b58900"},variable:{color:"#b58900"},placeholder:{color:"#b58900"},property:{color:"#b89859"},tag:{color:"#ffb03b"},boolean:{color:"#b89859"},constant:{color:"#b89859"},symbol:{color:"#b89859"},important:{color:"#dc322f"},statement:{color:"#dc322f"},deleted:{color:"#dc322f"},punctuation:{color:"#dccf8f"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}},97704:(e,t,n)=>{var o=n(84429).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw TypeError(o(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},97763:(e,t,n)=>{"use strict";function o(e){return"object"==typeof e&&null!==e}n.d(t,{G:()=>o})},99202:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={'code[class*="language-"]':{color:"#a9b7c6",fontFamily:"Consolas, Monaco, 'Andale Mono', monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#a9b7c6",fontFamily:"Consolas, Monaco, 'Andale Mono', monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#2b2b2b"},'pre[class*="language-"]::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'pre[class*="language-"] ::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"]::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"] ::-moz-selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'pre[class*="language-"]::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'pre[class*="language-"] ::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"]::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},'code[class*="language-"] ::selection':{color:"inherit",background:"rgba(33, 66, 131, .85)"},':not(pre) > code[class*="language-"]':{background:"#2b2b2b",padding:".1em",borderRadius:".3em"},comment:{color:"#808080"},prolog:{color:"#808080"},cdata:{color:"#808080"},delimiter:{color:"#cc7832"},boolean:{color:"#cc7832"},keyword:{color:"#cc7832"},selector:{color:"#cc7832"},important:{color:"#cc7832"},atrule:{color:"#cc7832"},operator:{color:"#a9b7c6"},punctuation:{color:"#a9b7c6"},"attr-name":{color:"#a9b7c6"},tag:{color:"#e8bf6a"},"tag.punctuation":{color:"#e8bf6a"},doctype:{color:"#e8bf6a"},builtin:{color:"#e8bf6a"},entity:{color:"#6897bb"},number:{color:"#6897bb"},symbol:{color:"#6897bb"},property:{color:"#9876aa"},constant:{color:"#9876aa"},variable:{color:"#9876aa"},string:{color:"#6a8759"},char:{color:"#6a8759"},"attr-value":{color:"#a5c261"},"attr-value.punctuation":{color:"#a5c261"},"attr-value.punctuation:first-child":{color:"#a9b7c6"},url:{color:"#287bde",textDecoration:"underline"},function:{color:"#ffc66d"},regex:{background:"#364135"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},inserted:{background:"#294436"},deleted:{background:"#484a4a"},"code.language-css .token.property":{color:"#a9b7c6"},"code.language-css .token.property + .token.punctuation":{color:"#a9b7c6"},"code.language-css .token.id":{color:"#ffc66d"},"code.language-css .token.selector > .token.class":{color:"#ffc66d"},"code.language-css .token.selector > .token.attribute":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-class":{color:"#ffc66d"},"code.language-css .token.selector > .token.pseudo-element":{color:"#ffc66d"}}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8306.c0f664734c226768.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8306.c0f664734c226768.js deleted file mode 100644 index 364a1ffba..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8306.c0f664734c226768.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8306],{78306:(e,s,c)=>{c.d(s,{createCynefinServices:()=>a.t});var a=c(41077);c(9448)}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8348.dc8f38aa58d39ac6.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8348.dc8f38aa58d39ac6.js deleted file mode 100644 index 2c7a4fb48..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8348.dc8f38aa58d39ac6.js +++ /dev/null @@ -1,226 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8348],{24002:(t,e,s)=>{s.d(e,{P:()=>n});var i=s(69301),r=s(98999),a=s(91158),n=(0,a.K)((t,e,s,a)=>{t.attr("class",s);let{width:n,height:c,x:h,y:d}=o(t,e);(0,i.a$)(t,c,n,a);let u=l(h,d,n,c,e);t.attr("viewBox",u),r.R.debug(`viewBox configured: ${u} with padding: ${e}`)},"setupViewPortForSVG"),o=(0,a.K)((t,e)=>{let s=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+2*e,height:s.height+2*e,x:s.x,y:s.y}},"calculateDimensionsWithPadding"),l=(0,a.K)((t,e,s,i,r)=>`${t-r} ${e-r} ${s} ${i}`,"createViewBox")},33332:(t,e,s)=>{s.d(e,{CP:()=>d,Ck:()=>y,HT:()=>p,PB:()=>u,aC:()=>h,lC:()=>l,m:()=>c,tk:()=>o});var i=s(69301),r=s(91158),a=s(76162),n=s(70668),o=(0,r.K)((t,e)=>{let s=t.append("rect");if(s.attr("x",e.x),s.attr("y",e.y),s.attr("fill",e.fill),s.attr("stroke",e.stroke),s.attr("width",e.width),s.attr("height",e.height),e.name&&s.attr("name",e.name),e.rx&&s.attr("rx",e.rx),e.ry&&s.attr("ry",e.ry),void 0!==e.attrs)for(let t in e.attrs)s.attr(t,e.attrs[t]);return e.class&&s.attr("class",e.class),s},"drawRect"),l=(0,r.K)((t,e)=>{o(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},"drawBackgroundRect"),c=(0,r.K)((t,e)=>{let s=e.text.replace(i.H1," "),r=t.append("text");r.attr("x",e.x),r.attr("y",e.y),r.attr("class","legend"),r.style("text-anchor",e.anchor),e.class&&r.attr("class",e.class);let a=r.append("tspan");return a.attr("x",e.x+2*e.textMargin),a.text(s),r},"drawText"),h=(0,r.K)((t,e,s,i)=>{let r=t.append("image");r.attr("x",e),r.attr("y",s);let n=(0,a.J)(i);r.attr("xlink:href",n)},"drawImage"),d=(0,r.K)((t,e,s,i)=>{let r=t.append("use");r.attr("x",e),r.attr("y",s);let n=(0,a.J)(i);r.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),u=(0,r.K)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=(0,r.K)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),y=(0,r.K)(()=>{let t=(0,n.Ltv)(".mermaidTooltip");return t.empty()&&(t=(0,n.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip")},74773:(t,e,s)=>{s.d(e,{A:()=>a});var i=s(91158),r=s(70668),a=(0,i.K)((t,e)=>{let s;return"sandbox"===e&&(s=(0,r.Ltv)("#i"+t)),("sandbox"===e?(0,r.Ltv)(s.nodes()[0].contentDocument.body):(0,r.Ltv)("body")).select(`[id="${t}"]`)},"getDiagramElement")},88348:(t,e,s)=>{s.d(e,{Zk:()=>y,q7:()=>W,tM:()=>tr,u4:()=>ti});var i=s(74773),r=s(24002),a=s(33807),n=s(33332),o=s(13892),l=s(69301),c=s(98999),h=s(91158),d=s(70668),u=s(74574),p=function(){var t=(0,h.K)(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,2],s=[1,3],i=[1,4],r=[2,4],a=[1,9],n=[1,11],o=[1,16],l=[1,17],c=[1,18],d=[1,19],u=[1,33],p=[1,20],y=[1,21],g=[1,22],f=[1,23],m=[1,24],S=[1,26],T=[1,27],_=[1,28],k=[1,29],b=[1,30],E=[1,31],x=[1,32],D=[1,35],C=[1,36],$=[1,37],v=[1,38],L=[1,34],I=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],A=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],w=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],R={trace:(0,h.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:(0,h.K)(function(t,e,s,i,r,a,n){var o=a.length-1;switch(r){case 3:return i.setRootDoc(a[o]),a[o];case 4:this.$=[];break;case 5:"nl"!=a[o]&&(a[o-1].push(a[o]),this.$=a[o-1]);break;case 6:case 7:case 12:this.$=a[o];break;case 8:this.$="nl";break;case 13:let l=a[o-1];l.description=i.trimColon(a[o]),this.$=l;break;case 14:this.$={stmt:"relation",state1:a[o-2],state2:a[o]};break;case 15:let c=i.trimColon(a[o]);this.$={stmt:"relation",state1:a[o-3],state2:a[o-1],description:c};break;case 19:this.$={stmt:"state",id:a[o-3],type:"default",description:"",doc:a[o-1]};break;case 20:var h=a[o],d=a[o-2].trim();if(a[o].match(":")){var u=a[o].split(":");h=u[0],d=[d,u[1]]}this.$={stmt:"state",id:h,type:"default",description:d};break;case 21:this.$={stmt:"state",id:a[o-3],type:"default",description:a[o-5],doc:a[o-1]};break;case 22:this.$={stmt:"state",id:a[o],type:"fork"};break;case 23:this.$={stmt:"state",id:a[o],type:"join"};break;case 24:this.$={stmt:"state",id:a[o],type:"choice"};break;case 25:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:a[o-1].trim(),note:{position:a[o-2].trim(),text:a[o].trim()}};break;case 29:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 30:case 31:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:a[o-3],url:a[o-2],tooltip:a[o-1]};break;case 33:this.$={stmt:"click",id:a[o-3],url:a[o-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:a[o-1].trim(),classes:a[o].trim()};break;case 36:this.$={stmt:"style",id:a[o-1].trim(),styleClass:a[o].trim()};break;case 37:this.$={stmt:"applyClass",id:a[o-1].trim(),styleClass:a[o].trim()};break;case 38:i.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:i.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:i.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:i.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:a[o].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:a[o-2].trim(),classes:[a[o].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:e,5:s,6:i},{1:[3]},{3:5,4:e,5:s,6:i},{3:6,4:e,5:s,6:i},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:n,8:8,9:10,10:12,11:13,12:14,13:15,16:o,17:l,19:c,22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:T,37:_,38:k,41:b,45:E,48:x,51:D,52:C,53:$,54:v,57:L},t(I,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:o,17:l,19:c,22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:T,37:_,38:k,41:b,45:E,48:x,51:D,52:C,53:$,54:v,57:L},t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,10]),t(I,[2,11]),t(I,[2,12],{14:[1,40],15:[1,41]}),t(I,[2,16]),{18:[1,42]},t(I,[2,18],{20:[1,43]}),{23:[1,44]},t(I,[2,22]),t(I,[2,23]),t(I,[2,24]),t(I,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(I,[2,28]),{34:[1,49]},{36:[1,50]},t(I,[2,31]),{13:51,24:u,57:L},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(A,[2,44],{58:[1,56]}),t(A,[2,45],{58:[1,57]}),t(I,[2,38]),t(I,[2,39]),t(I,[2,40]),t(I,[2,41]),t(I,[2,6]),t(I,[2,13]),{13:58,24:u,57:L},t(I,[2,17]),t(w,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(I,[2,29]),t(I,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(I,[2,14],{14:[1,71]}),{4:a,5:n,8:8,9:10,10:12,11:13,12:14,13:15,16:o,17:l,19:c,21:[1,72],22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:T,37:_,38:k,41:b,45:E,48:x,51:D,52:C,53:$,54:v,57:L},t(I,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(I,[2,34]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(A,[2,46]),t(A,[2,47]),t(I,[2,15]),t(I,[2,19]),t(w,r,{7:78}),t(I,[2,26]),t(I,[2,27]),{5:[1,79]},{5:[1,80]},{4:a,5:n,8:8,9:10,10:12,11:13,12:14,13:15,16:o,17:l,19:c,21:[1,81],22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:T,37:_,38:k,41:b,45:E,48:x,51:D,52:C,53:$,54:v,57:L},t(I,[2,32]),t(I,[2,33]),t(I,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:(0,h.K)(function(t,e){if(e.recoverable)this.trace(t);else{var s=Error(t);throw s.hash=e,s}},"parseError"),parse:(0,h.K)(function(t){var e=this,s=[0],i=[],r=[null],a=[],n=this.table,o="",l=0,c=0,d=0,u=a.slice.call(arguments,1),p=Object.create(this.lexer),y={};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(y[g]=this.yy[g]);p.setInput(t,y),y.lexer=p,y.parser=this,void 0===p.yylloc&&(p.yylloc={});var f=p.yylloc;a.push(f);var m=p.options&&p.options.ranges;function S(){var t;return"number"!=typeof(t=i.pop()||p.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof y.parseError?this.parseError=y.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,h.K)(function(t){s.length=s.length-2*t,r.length=r.length-t,a.length=a.length-t},"popStack"),(0,h.K)(S,"lex");for(var T,_,k,b,E,x,D,C,$,v={};;){if(k=s[s.length-1],this.defaultActions[k]?b=this.defaultActions[k]:(null==T&&(T=S()),b=n[k]&&n[k][T]),void 0===b||!b.length||!b[0]){var L="";for(x in $=[],n[k])this.terminals_[x]&&x>2&&$.push("'"+this.terminals_[x]+"'");L=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+$.join(", ")+", got '"+(this.terminals_[T]||T)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==T?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(L,{text:p.match,token:this.terminals_[T]||T,line:p.yylineno,loc:f,expected:$})}if(b[0]instanceof Array&&b.length>1)throw Error("Parse Error: multiple actions possible at state: "+k+", token: "+T);switch(b[0]){case 1:s.push(T),r.push(p.yytext),a.push(p.yylloc),s.push(b[1]),T=null,_?(T=_,_=null):(c=p.yyleng,o=p.yytext,l=p.yylineno,f=p.yylloc,d>0&&d--);break;case 2:if(D=this.productions_[b[1]][1],v.$=r[r.length-D],v._$={first_line:a[a.length-(D||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(D||1)].first_column,last_column:a[a.length-1].last_column},m&&(v._$.range=[a[a.length-(D||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(v,[o,c,l,y,b[1],r,a].concat(u))))return E;D&&(s=s.slice(0,-1*D*2),r=r.slice(0,-1*D),a=a.slice(0,-1*D)),s.push(this.productions_[b[1]][0]),r.push(v.$),a.push(v._$),C=n[s[s.length-2]][s[s.length-1]],s.push(C);break;case 3:return!0}}return!0},"parse")};function N(){this.yy={}}return R.lexer={EOF:1,parseError:(0,h.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,h.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,h.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,h.K)(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,h.K)(function(){return this._more=!0,this},"more"),reject:(0,h.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,h.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,h.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,h.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,h.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,h.K)(function(t,e){var s,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack)for(var a in r)this[a]=r[a];return!1},"test_match"),next:(0,h.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,s,i,r=this._currentRules(),a=0;ae[0].length)){if(e=s,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,r[a])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,h.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,h.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,h.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,h.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,h.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,h.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,h.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,h.K)(function(t,e,s,i){function r(){let s=e.yytext.indexOf("%%");if(0===s)return!1;if(s>0){let i=e.yytext.slice(0,s),r=e.yytext.slice(s);r&&t.lexer.unput(r),e.yytext=i}return!0}switch((0,h.K)(r,"processId"),s){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:case 43:return 51;case 5:case 44:return 52;case 6:case 45:return 53;case 7:case 46:return 54;case 8:case 78:return 5;case 9:case 10:case 11:case 12:case 57:case 63:break;case 13:case 33:return this.pushState("SCALE"),17;case 14:case 34:return 18;case 15:case 21:case 35:case 50:case 54:this.popState();break;case 16:return this.begin("acc_title"),33;case 17:return this.popState(),"acc_title_value";case 18:return this.begin("acc_descr"),35;case 19:return this.popState(),"acc_descr_value";case 20:this.begin("acc_descr_multiline");break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 25:return this.popState(),this.pushState("CLASSDEFID"),42;case 26:return this.popState(),43;case 27:return this.pushState("CLASS"),48;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;case 29:return this.popState(),50;case 30:return this.pushState("STYLE"),45;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 32:return this.popState(),47;case 36:this.pushState("STATE");break;case 37:case 40:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 38:case 41:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 39:case 42:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";case 49:case 65:if(!r())return;return this.popState(),"ID";case 51:return"STATE_DESCR";case 52:throw Error('Error: State name must be a single word. Found: "'+e.yytext.trim()+'"');case 53:return 19;case 55:return this.popState(),this.pushState("struct"),20;case 56:return this.popState(),21;case 58:return this.begin("NOTE"),29;case 59:return this.popState(),this.pushState("NOTE_ID"),59;case 60:return this.popState(),this.pushState("NOTE_ID"),60;case 61:this.popState(),this.pushState("FLOATING_NOTE");break;case 62:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 64:return"NOTE_TEXT";case 66:if(!r())return;return this.popState(),this.pushState("NOTE_TEXT"),24;case 67:return this.popState(),e.yytext=e.yytext.substr(2).trim(),31;case 68:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),31;case 69:case 70:return 6;case 71:return 16;case 72:return 57;case 73:if(!r())return;return 24;case 74:return e.yytext=e.yytext.trim(),14;case 75:return 15;case 76:return 28;case 77:return 58;case 79:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}},(0,h.K)(N,"Parser"),N.prototype=R,R.Parser=N,new N}();p.parser=p;var y=p,g="TB",f="state",m="root",S="relation",T="default",_="divider",k="fill:none",b="fill: #333",E="markdown",x="normal",D="rect",C="rectWithTitle",$="divider",v="roundedWithTitle",L="statediagram",I=`${L}-state`,A="transition",w=`${A} note-edge`,R=`${L}-note`,N=`${L}-cluster`,O=`${L}-cluster-alt`,K="parent",B="note",Y="----",F=`${Y}${B}`,P=`${Y}${K}`,G=(0,h.K)((t,e=g)=>{if(!t.doc)return e;let s=e;for(let e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir"),W={getClasses:(0,h.K)(function(t,e){return e.db.getClasses()},"getClasses"),draw:(0,h.K)(async function(t,e,s,n){c.R.info("REF0:"),c.R.info("Drawing state diagram (v2)",e);let{securityLevel:h,state:d,layout:u}=(0,l.D7)();n.db.extract(n.db.getRootDocV2());let p=n.db.getData(),y=(0,i.A)(e,h);p.type=n.type,p.layoutAlgorithm=u,p.nodeSpacing=d?.nodeSpacing||50,p.rankSpacing=d?.rankSpacing||50,"neo"===(0,l.D7)().look?p.markers=["barbNeo"]:p.markers=["barb"],p.diagramId=e,await (0,a.XX)(p,y);try{("function"==typeof n.db.getLinks?n.db.getLinks():new Map).forEach((t,e)=>{let s,i="string"==typeof e?e:"string"==typeof e?.id?e.id:"",r=p.nodes.find(t=>t.id===i);if(!i)return void c.R.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(e));let a=y.node()?.querySelectorAll("g.node, g.rough-node");if(a?.forEach(t=>{let e=t.textContent?.trim();(t.id===r?.domId||e===i)&&(s=t)}),!s)return void c.R.warn("⚠️ Could not find node matching text:",i);let n=s.parentNode;if(!n)return void c.R.warn("⚠️ Node has no parent, cannot wrap:",i);let o=document.createElementNS("http://www.w3.org/2000/svg","a"),l=t.url.replace(/^"+|"+$/g,"");if(o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l),o.setAttribute("target","_blank"),t.tooltip){let e=t.tooltip.replace(/^"+|"+$/g,"");o.setAttribute("title",e),s.setAttribute("title",e)}n.replaceChild(o,s),o.appendChild(s),c.R.info("\uD83D\uDD17 Wrapped node in
    tag for:",i,t.url)})}catch(t){c.R.error("❌ Error injecting clickable links:",t)}o._K.insertTitle(y,"statediagramTitleText",d?.titleTopMargin??25,n.db.getDiagramTitle()),(0,r.P)(y,8,L,d?.useMaxWidth??!0)},"draw"),getDir:G},j=new Map,z=0;function M(t="",e=0,s="",i=Y){let r=null!==s&&s.length>0?`${i}${s}`:"";return`state-${t}${r}-${e}`}(0,h.K)(M,"stateDomId");var U=(0,h.K)((t,e,s,i,r,a,n,o)=>{c.R.trace("items",e),e.forEach(e=>{switch(e.stmt){case f:case T:q(t,e,s,i,r,a,n,o);break;case S:{q(t,e.state1,s,i,r,a,n,o),q(t,e.state2,s,i,r,a,n,o);let c="neo"===n,h={id:"edge"+z,start:e.state1.id,end:e.state2.id,arrowhead:"normal",arrowTypeEnd:c?"arrow_barb_neo":"arrow_barb",style:k,labelStyle:"",label:l.Y2.sanitizeText(e.description??"",(0,l.D7)()),arrowheadStyle:b,labelpos:"c",labelType:E,thickness:x,classes:A,look:n};r.push(h),z++}}})},"setupDoc"),X=(0,h.K)((t,e=g)=>{let s=e;if(t.doc)for(let e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir");function H(t,e,s){if(!e.id||""===e.id||""===e.id)return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(t=>{let i=s.get(t);i&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...i.styles])}));let i=t.find(t=>t.id===e.id);i?Object.assign(i,e):t.push(e)}function V(t){return t?.classes?.join(" ")??""}function J(t){return t?.styles??[]}(0,h.K)(H,"insertOrUpdateNode"),(0,h.K)(V,"getClassesFromDbInfo"),(0,h.K)(J,"getStylesFromDbInfo");var q=(0,h.K)((t,e,s,i,r,a,n,o)=>{let h=e.id,d=s.get(h),u=V(d),p=J(d),y=(0,l.D7)();if(c.R.info("dataFetcher parsedItem",e,d,p),"root"!==h){let s=D;!0===e.start?s="stateStart":!1===e.start&&(s="stateEnd"),e.type!==T&&(s=e.type),j.get(h)||j.set(h,{id:h,shape:s,description:l.Y2.sanitizeText(h,y),cssClasses:`${u} ${I}`,cssStyles:p});let d=j.get(h);e.description&&(Array.isArray(d.description)?(d.shape=C,d.description.push(e.description)):d.description?.length&&d.description.length>0?(d.shape=C,d.description===h?d.description=[e.description]:d.description=[d.description,e.description]):(d.shape=D,d.description=e.description),d.description=l.Y2.sanitizeTextOrArray(d.description,y)),d.description?.length===1&&d.shape===C&&("group"===d.type?d.shape=v:d.shape=D),!d.type&&e.doc&&(c.R.info("Setting cluster for XCX",h,X(e)),d.type="group",d.isGroup=!0,d.dir=X(e),d.shape=e.type===_?$:v,d.cssClasses=`${d.cssClasses} ${N} ${a?O:""}`);let g={labelStyle:"",shape:d.shape,label:d.description,cssClasses:d.cssClasses,cssCompiledStyles:[],cssStyles:d.cssStyles,id:h,dir:d.dir,domId:M(h,z),type:d.type,isGroup:"group"===d.type,padding:8,rx:10,ry:10,look:n,labelType:"markdown"};if(g.shape===$&&(g.label=""),t&&"root"!==t.id&&(c.R.trace("Setting node ",h," to be child of its parent ",t.id),g.parentId=t.id),g.centerLabel=!0,e.note){let t={labelStyle:"",shape:"note",label:e.note.text,labelType:"markdown",cssClasses:R,cssStyles:[],cssCompiledStyles:[],id:h+F+"-"+z,domId:M(h,z,B),type:d.type,isGroup:"group"===d.type,padding:y.flowchart?.padding,look:n,position:e.note.position},s=h+P,a={labelStyle:"",shape:"noteGroup",label:e.note.text,cssClasses:d.cssClasses,cssStyles:[],id:h+P,domId:M(h,z,K),type:"group",isGroup:!0,padding:16,look:n,position:e.note.position};z++,a.id=s,t.parentId=s,H(i,a,o),H(i,t,o),H(i,g,o);let l=h,c=t.id;"left of"===e.note.position&&(l=t.id,c=h),r.push({id:l+"-"+c,start:l,end:c,arrowhead:"none",arrowTypeEnd:"",style:k,labelStyle:"",classes:w,arrowheadStyle:b,labelpos:"c",labelType:E,thickness:x,look:n})}else H(i,g,o)}e.doc&&(c.R.trace("Adding nodes children "),U(e,e.doc,s,i,r,!a,n,o))},"dataFetcher"),Z=(0,h.K)(()=>{j.clear(),z=0},"reset"),Q={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},tt=(0,h.K)(()=>new Map,"newClassesList"),te=(0,h.K)(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),ts=(0,h.K)(t=>JSON.parse(JSON.stringify(t)),"clone"),ti=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=tt(),this.documents={root:te()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=l.iN,this.setAccTitle=l.SV,this.getAccDescription=l.m7,this.setAccDescription=l.EI,this.setDiagramTitle=l.ke,this.getDiagramTitle=l.ab,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this),this.bindFunctions=this.bindFunctions.bind(this)}static{(0,h.K)(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(t){for(let e of(this.clear(!0),Array.isArray(t)?t:t.doc))switch(e.stmt){case f:this.addState(e.id.trim(),e.type,e.doc,e.description,e.note);break;case S:this.addRelation(e.state1,e.state2,e.description);break;case"classDef":this.addStyleClass(e.id.trim(),e.classes);break;case"style":this.handleStyleDef(e);break;case"applyClass":this.setCssClass(e.id.trim(),e.styleClass);break;case"click":this.addLink(e.id,e.url,e.tooltip)}let e=this.getStates(),s=(0,l.D7)();for(let t of(Z(),q(void 0,this.getRootDocV2(),e,this.nodes,this.edges,!0,s.look,this.classes),this.nodes))if(Array.isArray(t.label)){if(t.description=t.label.slice(1),t.isGroup&&t.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${t.id}]`);t.label=t.label[0]}}handleStyleDef(t){let e=t.id.trim().split(","),s=t.styleClass.split(",");for(let t of e){let e=this.getState(t);if(!e){let s=t.trim();this.addState(s),e=this.getState(s)}e&&(e.styles=s.map(t=>t.replace(/;/g,"")?.trim()))}}setRootDoc(t){c.R.info("Setting root doc",t),this.rootDoc=t,1===this.version?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,e,s){if(e.stmt===S){this.docTranslator(t,e.state1,!0),this.docTranslator(t,e.state2,!1);return}if(e.stmt===f&&(e.id===Q.START_NODE?(e.id=t.id+(s?"_start":"_end"),e.start=s):e.id=e.id.trim()),e.stmt!==m&&e.stmt!==f||!e.doc)return;let i=[],r=[];for(let t of e.doc)if(t.type===_){let e=ts(t);e.doc=ts(r),i.push(e),r=[]}else r.push(t);if(i.length>0&&r.length>0){let t={stmt:f,id:(0,o.$C)(),type:"divider",doc:ts(r)};i.push(ts(t)),e.doc=i}e.doc.forEach(t=>this.docTranslator(e,t,!0))}getRootDocV2(){return this.docTranslator({id:m,stmt:m},{id:m,stmt:m,doc:this.rootDoc},!0),{id:m,doc:this.rootDoc}}addState(t,e=T,s,i,r,a,n,o){let h=t?.trim();if(this.currentDocument.states.has(h)){let t=this.currentDocument.states.get(h);if(!t)throw Error(`State not found: ${h}`);t.doc||(t.doc=s),t.type||(t.type=e)}else c.R.info("Adding state ",h,i),this.currentDocument.states.set(h,{stmt:f,id:h,descriptions:[],type:e,doc:s,note:r,classes:[],styles:[],textStyles:[]});if(i&&(c.R.info("Setting state description",h,i),(Array.isArray(i)?i:[i]).forEach(t=>this.addDescription(h,t.trim()))),r){let t=this.currentDocument.states.get(h);if(!t)throw Error(`State not found: ${h}`);t.note=r,t.note.text=l.Y2.sanitizeText(t.note.text,(0,l.D7)())}a&&(c.R.info("Setting state classes",h,a),(Array.isArray(a)?a:[a]).forEach(t=>this.setCssClass(h,t.trim()))),n&&(c.R.info("Setting state styles",h,n),(Array.isArray(n)?n:[n]).forEach(t=>this.setStyle(h,t.trim()))),o&&(c.R.info("Setting state styles",h,n),(Array.isArray(o)?o:[o]).forEach(t=>this.setTextStyle(h,t.trim())))}clear(t){this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:te()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=tt(),t||(this.links=new Map,(0,l.IU)())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){c.R.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,e,s){this.links.set(t,{url:e,tooltip:s}),c.R.warn("Adding link",t,e,s)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===Q.START_NODE?(this.startEndCount++,`${Q.START_TYPE}${this.startEndCount}`):t}startTypeIfNeeded(t="",e=T){return t===Q.START_NODE?Q.START_TYPE:e}endIdIfNeeded(t=""){return t===Q.END_NODE?(this.startEndCount++,`${Q.END_TYPE}${this.startEndCount}`):t}endTypeIfNeeded(t="",e=T){return t===Q.END_NODE?Q.END_TYPE:e}addRelationObjs(t,e,s=""){let i=this.startIdIfNeeded(t.id.trim()),r=this.startTypeIfNeeded(t.id.trim(),t.type),a=this.startIdIfNeeded(e.id.trim()),n=this.startTypeIfNeeded(e.id.trim(),e.type);this.addState(i,r,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(a,n,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.currentDocument.relations.push({id1:i,id2:a,relationTitle:l.Y2.sanitizeText(s,(0,l.D7)())})}addRelation(t,e,s){if("object"==typeof t&&"object"==typeof e)this.addRelationObjs(t,e,s);else if("string"==typeof t&&"string"==typeof e){let i=this.startIdIfNeeded(t.trim()),r=this.startTypeIfNeeded(t),a=this.endIdIfNeeded(e.trim()),n=this.endTypeIfNeeded(e);this.addState(i,r),this.addState(a,n),this.currentDocument.relations.push({id1:i,id2:a,relationTitle:s?l.Y2.sanitizeText(s,(0,l.D7)()):void 0})}}addDescription(t,e){let s=this.currentDocument.states.get(t),i=e.startsWith(":")?e.replace(":","").trim():e;s?.descriptions?.push(l.Y2.sanitizeText(i,(0,l.D7)()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,e=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});let s=this.classes.get(t);e&&s&&e.split(Q.STYLECLASS_SEP).forEach(t=>{let e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(Q.COLOR_KEYWORD).exec(t)){let t=e.replace(Q.FILL_KEYWORD,Q.BG_FILL).replace(Q.COLOR_KEYWORD,Q.FILL_KEYWORD);s.textStyles.push(t)}s.styles.push(e)})}getClasses(){return this.classes}setupToolTips(t){let e=(0,n.Ck)();(0,d.Ltv)(t).select("svg").selectAll("g.node, g.rough-node").on("mouseover",t=>{let s=(0,d.Ltv)(t.currentTarget),i=s.attr("title");if(null===i)return;let r=t.currentTarget?.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.style("left",window.scrollX+r.left+(r.right-r.left)/2+"px").style("top",window.scrollY+r.bottom+"px"),e.html(u.A.sanitize(i)),s.classed("hover",!0)}).on("mouseout",t=>{e.transition().duration(500).style("opacity",0),(0,d.Ltv)(t.currentTarget).classed("hover",!1)})}setCssClass(t,e){t.split(",").forEach(t=>{let s=this.getState(t);if(!s){let e=t.trim();this.addState(e),s=this.getState(e)}s?.classes?.push(e)})}setStyle(t,e){this.getState(t)?.styles?.push(e)}setTextStyle(t,e){this.getState(t)?.textStyles?.push(e)}bindFunctions(t){this.funs.forEach(e=>{e(t)})}getDirectionStatement(){return this.rootDoc.find(t=>"dir"===t.stmt)}getDirection(){return this.getDirectionStatement()?.value??"TB"}setDirection(t){let e=this.getDirectionStatement();e?e.value=t:this.rootDoc.unshift({stmt:"dir",value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){let t=(0,l.D7)();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:G(this.getRootDocV2())}}getConfig(){return(0,l.D7)().state}},tr=(0,h.K)(t=>` -defs [id$="-barbEnd"] { - fill: ${t.transitionColor}; - stroke: ${t.transitionColor}; - } -g.stateGroup text { - fill: ${t.nodeBorder}; - stroke: none; - font-size: 10px; -} -g.stateGroup text { - fill: ${t.textColor}; - stroke: none; - font-size: 10px; - -} -g.stateGroup .state-title { - font-weight: bolder; - fill: ${t.stateLabelColor}; -} - -g.stateGroup rect { - fill: ${t.mainBkg}; - stroke: ${t.nodeBorder}; -} - -g.stateGroup line { - stroke: ${t.lineColor}; - stroke-width: ${t.strokeWidth||1}; -} - -.transition { - stroke: ${t.transitionColor}; - stroke-width: ${t.strokeWidth||1}; - fill: none; -} - -.stateGroup .composit { - fill: ${t.background}; - border-bottom: 1px -} - -.stateGroup .alt-composit { - fill: #e0e0e0; - border-bottom: 1px -} - -.state-note { - stroke: ${t.noteBorderColor}; - fill: ${t.noteBkgColor}; - - text { - fill: ${t.noteTextColor}; - stroke: none; - font-size: 10px; - } -} - -.stateLabel .box { - stroke: none; - stroke-width: 0; - fill: ${t.mainBkg}; - opacity: 0.5; -} - -.edgeLabel .label rect { - fill: ${t.labelBackgroundColor}; - opacity: 0.5; -} -.edgeLabel { - background-color: ${t.edgeLabelBackground}; - p { - background-color: ${t.edgeLabelBackground}; - } - rect { - opacity: 0.5; - background-color: ${t.edgeLabelBackground}; - fill: ${t.edgeLabelBackground}; - } - text-align: center; -} -.edgeLabel .label text { - fill: ${t.transitionLabelColor||t.tertiaryTextColor}; -} -.label div .edgeLabel { - color: ${t.transitionLabelColor||t.tertiaryTextColor}; -} - -.stateLabel text { - fill: ${t.stateLabelColor}; - font-size: 10px; - font-weight: bold; -} - -.node circle.state-start { - fill: ${t.specialStateColor}; - stroke: ${t.specialStateColor}; -} - -.node .fork-join { - fill: ${t.specialStateColor}; - stroke: ${t.specialStateColor}; -} - -.node circle.state-end { - fill: ${t.innerEndBackground}; - stroke: ${t.background}; - stroke-width: 1.5 -} -.end-state-inner { - fill: ${t.compositeBackground||t.background}; - // stroke: ${t.background}; - stroke-width: 1.5 -} - -.node rect { - fill: ${t.stateBkg||t.mainBkg}; - stroke: ${t.stateBorder||t.nodeBorder}; - stroke-width: ${t.strokeWidth||1}px; -} -.node polygon { - fill: ${t.mainBkg}; - stroke: ${t.stateBorder||t.nodeBorder};; - stroke-width: ${t.strokeWidth||1}px; -} -[id$="-barbEnd"] { - fill: ${t.lineColor}; -} - -.statediagram-cluster rect { - fill: ${t.compositeTitleBackground}; - stroke: ${t.stateBorder||t.nodeBorder}; - stroke-width: ${t.strokeWidth||1}px; -} - -.cluster-label, .nodeLabel { - color: ${t.stateLabelColor}; - // line-height: 1; -} - -.statediagram-cluster rect.outer { - rx: 5px; - ry: 5px; -} -.statediagram-state .divider { - stroke: ${t.stateBorder||t.nodeBorder}; -} - -.statediagram-state .title-state { - rx: 5px; - ry: 5px; -} -.statediagram-cluster.statediagram-cluster .inner { - fill: ${t.compositeBackground||t.background}; -} -.statediagram-cluster.statediagram-cluster-alt .inner { - fill: ${t.altBackground?t.altBackground:"#efefef"}; -} - -.statediagram-cluster .inner { - rx:0; - ry:0; -} - -.statediagram-state rect.basic { - rx: 5px; - ry: 5px; -} -.statediagram-state rect.divider { - stroke-dasharray: 10,10; - fill: ${t.altBackground?t.altBackground:"#efefef"}; -} - -.note-edge { - stroke-dasharray: 5; -} - -.statediagram-note rect { - fill: ${t.noteBkgColor}; - stroke: ${t.noteBorderColor}; - stroke-width: 1px; - rx: 0; - ry: 0; -} -.statediagram-note rect { - fill: ${t.noteBkgColor}; - stroke: ${t.noteBorderColor}; - stroke-width: 1px; - rx: 0; - ry: 0; -} - -.statediagram-note text { - fill: ${t.noteTextColor}; -} - -.statediagram-note .nodeLabel { - color: ${t.noteTextColor}; -} -.statediagram .edgeLabel { - color: red; // ${t.noteTextColor}; -} - -[id$="-dependencyStart"], [id$="-dependencyEnd"] { - fill: ${t.lineColor}; - stroke: ${t.lineColor}; - stroke-width: ${t.strokeWidth||1}; -} - -.statediagramTitleText { - text-anchor: middle; - font-size: 18px; - fill: ${t.textColor}; -} - -[data-look="neo"].statediagram-cluster rect { - fill: ${t.mainBkg}; - stroke: ${t.useGradient?"url("+t.svgId+"-gradient)":t.stateBorder||t.nodeBorder}; - stroke-width: ${t.strokeWidth??1}; -} -[data-look="neo"].statediagram-cluster rect.outer { - rx: ${t.radius}px; - ry: ${t.radius}px; - filter: ${t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${t.svgId}-drop-shadow)`):"none"} -} -`,"getStyles")}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8492.96012aabb6249baf.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8492.96012aabb6249baf.js deleted file mode 100644 index 38090262f..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8492.96012aabb6249baf.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8492],{48492:(e,a,s)=>{s.d(a,{createRailroadPegServices:()=>c.P});var c=s(51475);s(9448)}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8531.ea756af0ac737fda.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8531.ea756af0ac737fda.js deleted file mode 100644 index 39398fd2e..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8531.ea756af0ac737fda.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8531],{8531:(t,e,a)=>{a.d(e,{diagram:()=>F});var r=a(84492),o=a(94191),n=a(13892),i=a(69301),l=a(98999),s=a(91158),d=a(89321),c=(0,s.K)((t,e)=>{let a=t<=1?100*t:t;if(a<0||a>100)throw Error(`${e} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${t}`);return a},"toPercent"),p=(0,s.K)((t,e,a)=>({x:c(e,`${a} evolution`),y:c(t,`${a} visibility`)}),"toCoordinates"),h=(0,s.K)(t=>{if(t){if("+<>"===t)return"bidirectional";if("+<"===t)return"backward";if("+>"===t)return"forward"}},"getFlowFromPort"),x=(0,s.K)(t=>{if(!t?.startsWith("+"))return{};let e=/^\+'([^']*)'/.exec(t),a=e?.[1];return t.includes("<>")?{flow:"bidirectional",label:a}:t.includes("<")?{flow:"backward",label:a}:t.includes(">")?{flow:"forward",label:a}:{label:a}},"extractFlowFromArrow"),y=(0,s.K)((t,e)=>{if((0,r.S)(t,e),t.size&&e.setSize(t.size.width,t.size.height),t.evolution){let a=t.evolution.stages.map(t=>t.secondName?`${t.name.trim()} / ${t.secondName.trim()}`:t.name.trim()),r=t.evolution.stages.filter(t=>void 0!==t.boundary).map(t=>t.boundary);e.updateAxes({stages:a,stageBoundaries:r})}if(t.anchors.forEach(t=>{let a=p(t.visibility,t.evolution,`Anchor "${t.name}"`);e.addNode(t.name,t.name,a.x,a.y,"anchor")}),t.components.forEach(t=>{let a=p(t.visibility,t.evolution,`Component "${t.name}"`),r=t.label?(t.label.negX?-1:1)*t.label.offsetX:void 0,o=t.label?(t.label.negY?-1:1)*t.label.offsetY:void 0,n=t.decorator?.strategy;e.addNode(t.name,t.name,a.x,a.y,"component",r,o,t.inertia,n)}),t.notes.forEach(t=>{let a=p(t.visibility,t.evolution,`Note "${t.text}"`);e.addNote(t.text,a.x,a.y)}),t.pipelines.forEach(t=>{let a=e.getNode(t.parent);if(!a||"number"!=typeof a.y)throw Error(`Pipeline "${t.parent}" must reference an existing component with coordinates.`);let r=a.y;e.startPipeline(t.parent),t.components.forEach(a=>{let o=`${t.parent}_${a.name}`,n=a.label?(a.label.negX?-1:1)*a.label.offsetX:void 0,i=a.label?(a.label.negY?-1:1)*a.label.offsetY:void 0,l=c(a.evolution,`Pipeline component "${a.name}" evolution`);e.addNode(o,a.name,l,r,"pipeline-component",n,i),e.addPipelineComponent(t.parent,o)})}),t.links.forEach(t=>{let a=!!t.arrow&&(t.arrow.includes("-.->")||t.arrow.includes(".-.")),r=h(t.fromPort)??h(t.toPort),{flow:o,label:n}=x(t.arrow);!r&&o&&(r=o);let i=t.linkLabel;e.addLink(e.resolveNodeId(t.from),e.resolveNodeId(t.to),a,n??i,r)}),t.evolves.forEach(t=>{let a=e.getNode(t.component);if(a?.y!==void 0){let r=c(t.target,`Evolve target for "${t.component}"`);e.addTrend(t.component,r,a.y)}}),t.annotations.length>0){let a=t.annotations[0],r=p(a.x,a.y,"Annotations box");e.setAnnotationsBox(r.x,r.y)}t.annotation.forEach(t=>{let a=p(t.x,t.y,`Annotation ${t.number}`);e.addAnnotation(t.number,[{x:a.x,y:a.y}],t.text)}),t.accelerators.forEach(t=>{let a=p(t.x,t.y,`Accelerator "${t.name}"`);e.addAccelerator(t.name,a.x,a.y)}),t.deaccelerators.forEach(t=>{let a=p(t.x,t.y,`Deaccelerator "${t.name}"`);e.addDeaccelerator(t.name,a.x,a.y)})},"populateDb"),f={parser:{yy:void 0},parse:(0,s.K)(async t=>{let e=await (0,d.qg)("wardley",t);l.R.debug(e);let a=f.parser?.yy;if(!a||"function"!=typeof a.addNode)throw Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");y(e,a)},"parse")},g=new class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{(0,s.K)(this,"WardleyBuilder")}addNode(t){let e=this.nodes.get(t.id)??{id:t.id,label:t.label},a={...e,...t,className:t.className??e.className,labelOffsetX:t.labelOffsetX??e.labelOffsetX,labelOffsetY:t.labelOffsetY??e.labelOffsetY};this.nodes.set(t.id,a)}addLink(t){this.links.push(t)}addTrend(t){this.trends.set(t.nodeId,t)}startPipeline(t){this.pipelines.set(t,{nodeId:t,componentIds:[]});let e=this.nodes.get(t);e&&(e.isPipelineParent=!0)}addPipelineComponent(t,e){let a=this.pipelines.get(t);a&&a.componentIds.push(e);let r=this.nodes.get(e);r&&(r.inPipeline=!0)}addAnnotation(t){this.annotations.push(t)}addNote(t){this.notes.push(t)}addAccelerator(t){this.accelerators.push(t)}addDeaccelerator(t){this.deaccelerators.push(t)}setAnnotationsBox(t,e){this.annotationsBox={x:t,y:e}}setAxes(t){this.axes={...this.axes,...t}}setSize(t,e){this.size={width:t,height:e}}getNode(t){return this.nodes.get(t)}resolveNodeId(t){if(this.nodes.has(t))return t;for(let[e,a]of this.nodes)if(a.label===t)return e;return t}build(){let t=[];for(let e of this.nodes.values()){if("number"!=typeof e.x||"number"!=typeof e.y)throw Error(`Node "${e.label}" is missing coordinates`);t.push(e)}return{nodes:t,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}};function u(){return(0,i.D7)()["wardley-beta"]}function w(t,e,a,r,o,n,i,l,s){g.addNode({id:t,label:e,x:a,y:r,className:o,labelOffsetX:n,labelOffsetY:i,inertia:l,sourceStrategy:s})}function m(t,e,a=!1,r,o){g.addLink({source:t,target:e,dashed:a,label:r,flow:o})}function k(t,e,a){g.addTrend({nodeId:t,targetX:e,targetY:a})}function b(t,e,a){g.addAnnotation({number:t,coordinates:e,text:a})}function $(t,e,a){g.addNote({text:t,x:e,y:a})}function S(t,e,a){g.addAccelerator({name:t,x:e,y:a})}function v(t,e,a){g.addDeaccelerator({name:t,x:e,y:a})}function C(t,e){g.setAnnotationsBox(t,e)}function M(t,e){g.setSize(t,e)}function P(t){g.startPipeline(t)}function N(t,e){g.addPipelineComponent(t,e)}function T(t){g.setAxes(t)}function z(t){return g.getNode(t)}function E(t){return g.resolveNodeId(t)}function L(){return g.build()}function A(){g.clear(),(0,i.IU)()}(0,s.K)(u,"getConfig"),(0,s.K)(w,"addNode"),(0,s.K)(m,"addLink"),(0,s.K)(k,"addTrend"),(0,s.K)(b,"addAnnotation"),(0,s.K)($,"addNote"),(0,s.K)(S,"addAccelerator"),(0,s.K)(v,"addDeaccelerator"),(0,s.K)(C,"setAnnotationsBox"),(0,s.K)(M,"setSize"),(0,s.K)(P,"startPipeline"),(0,s.K)(N,"addPipelineComponent"),(0,s.K)(T,"updateAxes"),(0,s.K)(z,"getNode"),(0,s.K)(E,"resolveNodeId"),(0,s.K)(L,"getWardleyData"),(0,s.K)(A,"clear");var K={getConfig:u,addNode:w,addLink:m,addTrend:k,addAnnotation:b,addNote:$,addAccelerator:S,addDeaccelerator:v,setAnnotationsBox:C,setSize:M,startPipeline:P,addPipelineComponent:N,updateAxes:T,getNode:z,resolveNodeId:E,getWardleyData:L,clear:A,setAccTitle:i.SV,getAccTitle:i.iN,setDiagramTitle:i.ke,getDiagramTitle:i.ab,getAccDescription:i.m7,setAccDescription:i.EI},I=["Genesis","Custom Built","Product","Commodity"],R=(0,s.K)(()=>{let{themeVariables:t}=(0,i.D7)();return{backgroundColor:t.wardley?.backgroundColor??t.background??"#fff",axisColor:t.wardley?.axisColor??"#000",axisTextColor:t.wardley?.axisTextColor??t.primaryTextColor??"#222",gridColor:t.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:t.wardley?.componentFill??"#fff",componentStroke:t.wardley?.componentStroke??"#000",componentLabelColor:t.wardley?.componentLabelColor??t.primaryTextColor??"#222",linkStroke:t.wardley?.linkStroke??"#000",evolutionStroke:t.wardley?.evolutionStroke??"#dc3545",annotationStroke:t.wardley?.annotationStroke??"#000",annotationTextColor:t.wardley?.annotationTextColor??t.primaryTextColor??"#222",annotationFill:t.wardley?.annotationFill??t.background??"#fff"}},"getTheme"),D=(0,s.K)(()=>{let t=(0,i.D7)()["wardley-beta"];return{width:t?.width??900,height:t?.height??600,padding:t?.padding??48,nodeRadius:t?.nodeRadius??6,nodeLabelOffset:t?.nodeLabelOffset??8,axisFontSize:t?.axisFontSize??12,labelFontSize:t?.labelFontSize??10,showGrid:t?.showGrid??!1,useMaxWidth:t?.useMaxWidth??!0}},"getConfigValues"),F={parser:f,db:K,renderer:{draw:(0,s.K)((t,e,a,r)=>{l.R.debug("Rendering Wardley map\n"+t);let n=D(),d=R(),c=1.6*n.nodeRadius,p=r.db,h=p.getWardleyData(),x=p.getDiagramTitle(),y=h.size?.width??n.width,f=h.size?.height??n.height,g=(0,o.D)(e);g.selectAll("*").remove(),(0,i.a$)(g,f,y,n.useMaxWidth),g.attr("viewBox",`0 0 ${y} ${f}`);let u=g.append("g").attr("class","wardley-map"),w=g.append("defs");w.append("marker").attr("id",`arrow-${e}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.evolutionStroke).attr("stroke","none"),w.append("marker").attr("id",`link-arrow-end-${e}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.linkStroke).attr("stroke","none"),w.append("marker").attr("id",`link-arrow-start-${e}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",d.linkStroke).attr("stroke","none"),u.append("rect").attr("class","wardley-background").attr("width",y).attr("height",f).attr("fill",d.backgroundColor);let m=y-2*n.padding,k=f-2*n.padding;x&&u.append("text").attr("class","wardley-title").attr("x",y/2).attr("y",n.padding/2).attr("fill",d.axisTextColor).attr("font-size",1.05*n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(x);let b=(0,s.K)(t=>n.padding+t/100*m,"projectX"),$=(0,s.K)(t=>f-n.padding-t/100*k,"projectY"),S=u.append("g").attr("class","wardley-axes");S.append("line").attr("x1",n.padding).attr("x2",y-n.padding).attr("y1",f-n.padding).attr("y2",f-n.padding).attr("stroke",d.axisColor).attr("stroke-width",1),S.append("line").attr("x1",n.padding).attr("x2",n.padding).attr("y1",n.padding).attr("y2",f-n.padding).attr("stroke",d.axisColor).attr("stroke-width",1);let v=h.axes.xLabel??"Evolution",C=h.axes.yLabel??"Visibility";S.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",n.padding+m/2).attr("y",f-n.padding/4).attr("fill",d.axisTextColor).attr("font-size",n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(v),S.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",n.padding/3).attr("y",n.padding+k/2).attr("fill",d.axisTextColor).attr("font-size",n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${n.padding/3} ${n.padding+k/2})`).text(C);let M=h.axes.stages&&h.axes.stages.length>0?h.axes.stages:I;if(M.length>0){let t=u.append("g").attr("class","wardley-stages"),e=h.axes.stageBoundaries,a=[];if(e&&e.length===M.length){let t=0;e.forEach(e=>{a.push({start:t,end:e}),t=e})}else{let t=1/M.length;M.forEach((e,r)=>{a.push({start:r*t,end:(r+1)*t})})}M.forEach((e,r)=>{let o=a[r],i=n.padding+o.start*m,l=(i+(n.padding+o.end*m))/2;r>0&&t.append("line").attr("x1",i).attr("x2",i).attr("y1",n.padding).attr("y2",f-n.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",l).attr("y",f-n.padding/1.5).attr("fill",d.axisTextColor).attr("font-size",n.axisFontSize-2).attr("text-anchor","middle").text(e)})}if(n.showGrid){let t=u.append("g").attr("class","wardley-grid");for(let e=1;e<4;e++){let a=e/4,r=n.padding+m*a;t.append("line").attr("x1",r).attr("x2",r).attr("y1",n.padding).attr("y2",f-n.padding).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",n.padding).attr("x2",y-n.padding).attr("y1",f-n.padding-k*a).attr("y2",f-n.padding-k*a).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6")}}let P=new Map;if(h.nodes.forEach(t=>{P.set(t.id,{x:b(t.x),y:$(t.y),node:t})}),h.pipelines.length>0){let t=u.append("g").attr("class","wardley-pipelines"),e=u.append("g").attr("class","wardley-pipeline-links");h.pipelines.forEach(a=>{if(0===a.componentIds.length)return;let r=a.componentIds.map(t=>({id:t,pos:P.get(t),node:h.nodes.find(e=>e.id===t)})).filter(t=>t.pos&&t.node).sort((t,e)=>t.node.x-e.node.x);for(let t=0;t{let e=P.get(t);e&&(o=Math.min(o,e.x),i=Math.max(i,e.x),l=e.y)}),o!==1/0&&i!==-1/0){let e=4*n.nodeRadius,r=l-e/2,s=P.get(a.nodeId);s&&(s.x=(o+i)/2,s.y=r-c/6),t.append("rect").attr("class","wardley-pipeline-box").attr("x",o-15).attr("y",r).attr("width",i-o+30).attr("height",e).attr("fill","none").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}let N=u.append("g").attr("class","wardley-links"),T=new Map;h.pipelines.forEach(t=>{T.set(t.nodeId,new Set(t.componentIds))});let z=h.links.filter(t=>{if(!P.has(t.source)||!P.has(t.target))return!1;let e=T.get(t.target);return!e?.has(t.source)});N.selectAll("line").data(z).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{let e=P.get(t.source),a=P.get(t.target),r=h.nodes.find(e=>e.id===t.source).isPipelineParent?c/Math.sqrt(2):n.nodeRadius,o=a.x-e.x,i=a.y-e.y,l=Math.sqrt(o*o+i*i);return e.x+o/l*r}).attr("y1",t=>{let e=P.get(t.source),a=P.get(t.target),r=h.nodes.find(e=>e.id===t.source).isPipelineParent?c/Math.sqrt(2):n.nodeRadius,o=a.x-e.x,i=a.y-e.y,l=Math.sqrt(o*o+i*i);return e.y+i/l*r}).attr("x2",t=>{let e=P.get(t.source),a=P.get(t.target),r=h.nodes.find(e=>e.id===t.target).isPipelineParent?c/Math.sqrt(2):n.nodeRadius,o=e.x-a.x,i=e.y-a.y,l=Math.sqrt(o*o+i*i);return a.x+o/l*r}).attr("y2",t=>{let e=P.get(t.source),a=P.get(t.target),r=h.nodes.find(e=>e.id===t.target).isPipelineParent?c/Math.sqrt(2):n.nodeRadius,o=e.x-a.x,i=e.y-a.y,l=Math.sqrt(o*o+i*i);return a.y+i/l*r}).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>"forward"===t.flow||"bidirectional"===t.flow?`url(#link-arrow-end-${e})`:null).attr("marker-start",t=>"backward"===t.flow||"bidirectional"===t.flow?`url(#link-arrow-start-${e})`:null),N.selectAll("text").data(z.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{let e=P.get(t.source),a=P.get(t.target),r=(e.x+a.x)/2,o=a.y-e.y,n=a.x-e.x,i=Math.sqrt(n*n+o*o);return r+o/i*8}).attr("y",t=>{let e=P.get(t.source),a=P.get(t.target),r=(e.y+a.y)/2,o=a.x-e.x,n=a.y-e.y,i=Math.sqrt(o*o+n*n);return r+-o/i*8}).attr("fill",d.axisTextColor).attr("font-size",n.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{let e=P.get(t.source),a=P.get(t.target),r=(e.x+a.x)/2,o=(e.y+a.y)/2,n=a.x-e.x,i=a.y-e.y,l=Math.sqrt(n*n+i*i),s=180*Math.atan2(i,n)/Math.PI;return(s>90||s<-90)&&(s+=180),`rotate(${s} ${r+i/l*8} ${o+-n/l*8})`}).text(t=>t.label);let E=u.append("g").attr("class","wardley-trends"),L=h.trends.map(t=>{let e=P.get(t.nodeId);if(!e)return null;let a=b(t.targetX),r=$(t.targetY),o=a-e.x,i=r-e.y,l=Math.sqrt(o*o+i*i),s=n.nodeRadius+2;return{origin:e,targetX:a,targetY:r,adjustedX2:l>s?a-o/l*s:a,adjustedY2:l>s?r-i/l*s:r}}).filter(t=>null!==t);E.selectAll("line").data(L).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",d.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${e})`);let A=u.append("g").attr("class","wardley-nodes").selectAll("g").data(h.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));A.filter(t=>"outsource"===t.sourceStrategy).append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>P.get(t.id).x).attr("cy",t=>P.get(t.id).y).attr("r",2*n.nodeRadius).attr("fill","#666").attr("stroke",d.componentStroke).attr("stroke-width",1),A.filter(t=>"buy"===t.sourceStrategy).append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>P.get(t.id).x).attr("cy",t=>P.get(t.id).y).attr("r",2*n.nodeRadius).attr("fill","#ccc").attr("stroke",d.componentStroke).attr("stroke-width",1),A.filter(t=>"build"===t.sourceStrategy).append("circle").attr("class","wardley-build-overlay").attr("cx",t=>P.get(t.id).x).attr("cy",t=>P.get(t.id).y).attr("r",2*n.nodeRadius).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);let K=A.filter(t=>"market"===t.sourceStrategy);K.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>P.get(t.id).x).attr("cy",t=>P.get(t.id).y).attr("r",2*n.nodeRadius).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),A.filter(t=>!t.isPipelineParent&&"market"!==t.sourceStrategy&&"anchor"!==t.className).append("circle").attr("cx",t=>P.get(t.id).x).attr("cy",t=>P.get(t.id).y).attr("r",n.nodeRadius).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1);let F=.7*n.nodeRadius,B=1.2*n.nodeRadius;if(K.append("line").attr("class","wardley-market-line").attr("x1",t=>P.get(t.id).x).attr("y1",t=>P.get(t.id).y-B).attr("x2",t=>P.get(t.id).x-B*Math.cos(Math.PI/6)).attr("y2",t=>P.get(t.id).y+B*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),K.append("line").attr("class","wardley-market-line").attr("x1",t=>P.get(t.id).x-B*Math.cos(Math.PI/6)).attr("y1",t=>P.get(t.id).y+B*Math.sin(Math.PI/6)).attr("x2",t=>P.get(t.id).x+B*Math.cos(Math.PI/6)).attr("y2",t=>P.get(t.id).y+B*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),K.append("line").attr("class","wardley-market-line").attr("x1",t=>P.get(t.id).x+B*Math.cos(Math.PI/6)).attr("y1",t=>P.get(t.id).y+B*Math.sin(Math.PI/6)).attr("x2",t=>P.get(t.id).x).attr("y2",t=>P.get(t.id).y-B).attr("stroke",d.componentStroke).attr("stroke-width",1),K.append("circle").attr("class","wardley-market-dot").attr("cx",t=>P.get(t.id).x).attr("cy",t=>P.get(t.id).y-B).attr("r",F).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),K.append("circle").attr("class","wardley-market-dot").attr("cx",t=>P.get(t.id).x-B*Math.cos(Math.PI/6)).attr("cy",t=>P.get(t.id).y+B*Math.sin(Math.PI/6)).attr("r",F).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),K.append("circle").attr("class","wardley-market-dot").attr("cx",t=>P.get(t.id).x+B*Math.cos(Math.PI/6)).attr("cy",t=>P.get(t.id).y+B*Math.sin(Math.PI/6)).attr("r",F).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),A.filter(t=>!0===t.isPipelineParent).append("rect").attr("x",t=>P.get(t.id).x-c/2).attr("y",t=>P.get(t.id).y-c/2).attr("width",c).attr("height",c).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1),A.filter(t=>!0===t.inertia).append("line").attr("class","wardley-inertia").attr("x1",t=>{let e=P.get(t.id),a=t.isPipelineParent?c/2+15:n.nodeRadius+15;return t.sourceStrategy&&(a+=n.nodeRadius+10),e.x+a}).attr("y1",t=>{let e=P.get(t.id),a=t.isPipelineParent?c:2*n.nodeRadius;return e.y-a/2}).attr("x2",t=>{let e=P.get(t.id),a=t.isPipelineParent?c/2+15:n.nodeRadius+15;return t.sourceStrategy&&(a+=n.nodeRadius+10),e.x+a}).attr("y2",t=>{let e=P.get(t.id),a=t.isPipelineParent?c:2*n.nodeRadius;return e.y+a/2}).attr("stroke",d.componentStroke).attr("stroke-width",6),A.append("text").attr("x",t=>{let e=P.get(t.id);if("anchor"===t.className)return void 0!==t.labelOffsetX?e.x+t.labelOffsetX:e.x;let a=n.nodeLabelOffset;t.sourceStrategy&&void 0===t.labelOffsetX&&(a+=10);let r=t.labelOffsetX??a;return e.x+r}).attr("y",t=>{let e=P.get(t.id);if("anchor"===t.className)return void 0!==t.labelOffsetY?e.y+t.labelOffsetY:e.y-3;let a=-n.nodeLabelOffset;t.sourceStrategy&&void 0===t.labelOffsetY&&(a-=10);let r=t.labelOffsetY??a;return e.y+r}).attr("class","wardley-node-label").attr("fill",t=>"evolved"===t.className?d.evolutionStroke:"anchor"===t.className?"#000":d.componentLabelColor).attr("font-size",n.labelFontSize).attr("font-weight",t=>"anchor"===t.className?"bold":"normal").attr("text-anchor",t=>"anchor"===t.className?"middle":"start").attr("dominant-baseline",t=>"anchor"===t.className?"middle":"auto").text(t=>t.label),h.annotations.length>0){let t=u.append("g").attr("class","wardley-annotations");if(h.annotations.forEach(e=>{let a=e.coordinates.map(t=>({x:b(t.x),y:$(t.y)}));if(a.length>1)for(let e=0;e{let r=t.append("g").attr("class","wardley-annotation");r.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",10).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5),r.append("text").attr("x",a.x).attr("y",a.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(e.number)})}),h.annotationsBox){let e=b(h.annotationsBox.x),a=$(h.annotationsBox.y),r=t.append("g").attr("class","wardley-annotations-box"),o=[...h.annotations].filter(t=>t.text).sort((t,e)=>t.number-e.number),i=[];if(o.forEach((t,o)=>{let n=r.append("text").attr("x",e+10).attr("y",a+10+(o+1)*16).attr("font-size",11).attr("fill",d.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${t.number}. ${t.text}`);i.push(n)}),i.length>0){let t=0,l=0;i.forEach(e=>{let a=e.node(),r=a.getComputedTextLength();t=Math.max(t,r);let o=a.getBBox();l=Math.max(l,o.height)});let s=t+20+105,c=16*o.length+20+l/2,p=n.padding,h=y-n.padding-s,x=n.padding,g=f-n.padding-c;e=Math.max(p,Math.min(e,h)),a=Math.max(x,Math.min(a,g)),i.forEach((t,r)=>{t.attr("x",e+10).attr("y",a+10+(r+1)*16)}),r.insert("rect","text").attr("x",e).attr("y",a).attr("width",s).attr("height",c).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(h.notes.length>0){let t=u.append("g").attr("class","wardley-notes");h.notes.forEach(e=>{let a=b(e.x),r=$(e.y);t.append("text").attr("x",a).attr("y",r).attr("text-anchor","start").attr("font-size",11).attr("fill",d.axisTextColor).attr("font-weight","bold").text(e.text)})}if(h.accelerators.length>0){let t=u.append("g").attr("class","wardley-accelerators");h.accelerators.forEach(e=>{let a=b(e.x),r=$(e.y),o=` - M ${a} ${r-15} - L ${a+60-20} ${r-15} - L ${a+60-20} ${r-15-8} - L ${a+60} ${r} - L ${a+60-20} ${r+15+8} - L ${a+60-20} ${r+15} - L ${a} ${r+15} - Z - `;t.append("path").attr("d",o).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),t.append("text").attr("x",a+30).attr("y",r+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(e.name)})}if(h.deaccelerators.length>0){let t=u.append("g").attr("class","wardley-deaccelerators");h.deaccelerators.forEach(e=>{let a=b(e.x),r=$(e.y),o=` - M ${a+60} ${r-15} - L ${a+20} ${r-15} - L ${a+20} ${r-15-8} - L ${a} ${r} - L ${a+20} ${r+15+8} - L ${a+20} ${r+15} - L ${a+60} ${r+15} - Z - `;t.append("path").attr("d",o).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),t.append("text").attr("x",a+30).attr("y",r+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(e.name)})}},"draw")},styles:(0,s.K)(({wardley:t}={})=>{let e=(0,i.P$)(),a=(0,i.zj)(),r=(0,n.$t)(e,a.themeVariables),o=(0,n.$t)(r.wardley,t);return` - .wardley-background { - fill: ${o.backgroundColor}; - } - .wardley-axes line, .wardley-axes path { - stroke: ${o.axisColor}; - } - .wardley-axis-label { - fill: ${o.axisTextColor}; - } - .wardley-stage-label { - fill: ${o.axisTextColor}; - } - .wardley-grid line { - stroke: ${o.gridColor}; - } - .wardley-node circle { - fill: ${o.componentFill}; - stroke: ${o.componentStroke}; - } - .wardley-node-label { - fill: ${o.componentLabelColor}; - } - .wardley-link { - stroke: ${o.linkStroke}; - } - .wardley-link--dashed { - stroke-dasharray: 4 4; - } - .wardley-link-label { - fill: ${o.axisTextColor}; - } - .wardley-trend line { - stroke: ${o.evolutionStroke}; - } - .wardley-annotation-line { - stroke: ${o.annotationStroke}; - } - .wardley-annotation circle { - fill: ${o.annotationFill}; - stroke: ${o.annotationStroke}; - } - .wardley-annotation text { - fill: ${o.annotationTextColor}; - } - .wardley-annotations-box rect { - fill: ${o.annotationFill}; - stroke: ${o.annotationStroke}; - } - .wardley-annotations-box text { - fill: ${o.annotationTextColor}; - } - .wardley-pipeline-box { - stroke: ${o.componentStroke}; - } - .wardley-notes text { - fill: ${o.axisTextColor}; - } - `},"styles")}},84492:(t,e,a)=>{function r(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}a.d(e,{S:()=>r}),(0,a(91158).K)(r,"populateCommonDb")}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8618.c2a806f381fcd63e.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8618.c2a806f381fcd63e.js deleted file mode 100644 index 121c75838..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8618.c2a806f381fcd63e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8618],{68618:(e,r,t)=>{t.d(r,{diagram:()=>y});var a=t(46597),n=t(84492);t(94191),t(69301);var l=t(98999),s=t(91158),p=t(89321),i=(0,p.sB)().RailroadAbnf.parser.LangiumParser,u=(0,s.K)(e=>{let r=e.alternatives.map(m);return 1===r.length?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),m=(0,s.K)(e=>{let r=e.elements.map(d);return 1===r.length?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),o=(0,s.K)(e=>{if(e.includes("*")){let[r,t]=e.split("*");return{min:r?parseInt(r,10):0,max:t?parseInt(t,10):1/0}}let r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),d=(0,s.K)(e=>{let r=b(e.primary);if(!e.repeat)return r;let{min:t,max:a}=o(e.repeat);return 0===t&&1===a?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:a}},"transformElement"),b=(0,s.K)(e=>{switch(e.$type){case"AbnfStringLiteral":case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return u(e.element);case"AbnfOptionalGroup":return{type:"optional",element:u(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),f=(0,s.K)(e=>({name:e.name,definition:u(e.definition)}),"transformRule"),c=(0,s.K)(e=>{(0,n.S)(e,a.db),e.title&&a.db.setTitle(e.title),e.rules.map(e=>a.db.addRule(f(e)))},"populateDb"),y={parser:{parse:(0,s.K)(e=>{a.db.clear(),l.R.debug("[ABNF Parser] Starting Langium parse");let r=i.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p.zg(r);let t=r.value;l.R.debug("[ABNF Parser] Parsed rules:",t.rules.length),c(t),l.R.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a.db}},db:a.db,renderer:a.U,styles:a.$}}}]); \ No newline at end of file diff --git a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8625284b.1981ee0267fffc28.js b/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8625284b.1981ee0267fffc28.js deleted file mode 100644 index a93fb93ad..000000000 --- a/agentic-ai-studio/src/main/resources/META-INF/resources/chatui/_next/static/chunks/8625284b.1981ee0267fffc28.js +++ /dev/null @@ -1,122 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5894],{69301:(t,i,o)=>{o.d(i,{$i:()=>N,B6:()=>tr,C0:()=>tk,Ch:()=>tT,D7:()=>iC,DB:()=>tm,Df:()=>U,Dl:()=>tN,E:()=>tp,EI:()=>ie,EJ:()=>ty,Gs:()=>ik,H$:()=>P,H1:()=>tS,ID:()=>tW,IU:()=>ii,J$:()=>tA,Js:()=>iu,KG:()=>t2,ME:()=>ig,Nk:()=>ts,P$:()=>F,Q2:()=>te,QO:()=>tR,SV:()=>io,TM:()=>tx,UI:()=>j,UU:()=>ti,Wi:()=>tG,Wt:()=>t6,XV:()=>id,Xd:()=>tb,Y2:()=>tX,_3:()=>X,a$:()=>tQ,ab:()=>il,cL:()=>tn,dj:()=>tY,hH:()=>x,iN:()=>ir,jZ:()=>t_,ke:()=>ih,m7:()=>is,mW:()=>tB,mj:()=>ip,oB:()=>ix,ot:()=>t0,sb:()=>Y,tM:()=>t4,wZ:()=>to,xA:()=>ta,zj:()=>th});var r,e=o(98999),s=o(91158),h=o(43097),l=o(66275),a=o(35177),n=o(80665),c=o(54333),C=o(43500),d=o(74574),g=(0,s.K)((t,i,{depth:o=2}={})=>{let r={depth:o};if(Array.isArray(i)&&!Array.isArray(t))return i.forEach(i=>g(t,i,r)),t;if(Array.isArray(i)&&Array.isArray(t))return i.forEach(i=>{t.includes(i)||t.push(i)}),t;if(null==t||o<=0)if(null!=t&&"object"==typeof t&&"object"==typeof i)return Object.assign(t,i);else return i;return null!=i&&"object"==typeof t&&"object"==typeof i&&Object.entries(i).forEach(([i,r])=>{"object"==typeof r?null!==r&&(Object.hasOwn(t,i)||Object.defineProperty(t,i,{value:void 0,writable:!0,enumerable:!0,configurable:!0}),void 0===t[i]&&(t[i]=Array.isArray(r)?[]:{}),"object"==typeof t[i]&&(t[i]=g(t[i],r,{depth:o-1}))):"object"!=typeof t[i]&&(Object.hasOwn(t,i)?t[i]=r:Object.defineProperty(t,i,{value:r,writable:!0,enumerable:!0,configurable:!0}))}),t},"assignWithDepth"),x=g,p="#ffffff",y="#f2f2f2",m=(0,s.K)((t,i)=>i?(0,h.A)(t,{s:-40,l:10}):(0,h.A)(t,{s:-40,l:-10}),"mkBorder"),u=class{static{(0,s.K)(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||(0,h.A)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,h.A)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||m(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||m(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||m(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||m(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||(0,l.A)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,l.A)(this.tertiaryColor),this.lineColor=this.lineColor||(0,l.A)(this.background),this.arrowheadColor=this.arrowheadColor||(0,l.A)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,a.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,a.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,l.A)(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,n.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||(0,a.A)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,a.A)(this.mainBkg,10)):(this.rowOdd=this.rowOdd||(0,n.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||(0,n.A)(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||(0,h.A)(this.primaryColor,{h:30}),this.cScale4=this.cScale4||(0,h.A)(this.primaryColor,{h:60}),this.cScale5=this.cScale5||(0,h.A)(this.primaryColor,{h:90}),this.cScale6=this.cScale6||(0,h.A)(this.primaryColor,{h:120}),this.cScale7=this.cScale7||(0,h.A)(this.primaryColor,{h:150}),this.cScale8=this.cScale8||(0,h.A)(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||(0,h.A)(this.primaryColor,{h:270}),this.cScale10=this.cScale10||(0,h.A)(this.primaryColor,{h:300}),this.cScale11=this.cScale11||(0,h.A)(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t{this[i]=t[i]}),this.updateColors(),i.forEach(i=>{this[i]=t[i]})}},k=(0,s.K)(t=>{let i=new u;return i.calculate(t),i},"getThemeVariables"),B=class{static{(0,s.K)(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,n.A)(this.primaryColor,16),this.tertiaryColor=(0,h.A)(this.primaryColor,{h:-160}),this.primaryBorderColor=(0,l.A)(this.background),this.secondaryBorderColor=m(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=m(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,l.A)(this.primaryColor),this.secondaryTextColor=(0,l.A)(this.secondaryColor),this.tertiaryTextColor=(0,l.A)(this.tertiaryColor),this.lineColor=(0,l.A)(this.background),this.textColor=(0,l.A)(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,n.A)((0,l.A)("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=(0,C.A)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=(0,a.A)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,a.A)(this.sectionBkgColor,10),this.taskBorderColor=(0,C.A)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,C.A)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||(0,n.A)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,a.A)(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=(0,n.A)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,n.A)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,n.A)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=(0,l.A)(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=(0,h.A)(this.primaryColor,{h:64}),this.fillType3=(0,h.A)(this.secondaryColor,{h:64}),this.fillType4=(0,h.A)(this.primaryColor,{h:-64}),this.fillType5=(0,h.A)(this.secondaryColor,{h:-64}),this.fillType6=(0,h.A)(this.primaryColor,{h:128}),this.fillType7=(0,h.A)(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||(0,h.A)(this.primaryColor,{h:30}),this.cScale4=this.cScale4||(0,h.A)(this.primaryColor,{h:60}),this.cScale5=this.cScale5||(0,h.A)(this.primaryColor,{h:90}),this.cScale6=this.cScale6||(0,h.A)(this.primaryColor,{h:120}),this.cScale7=this.cScale7||(0,h.A)(this.primaryColor,{h:150}),this.cScale8=this.cScale8||(0,h.A)(this.primaryColor,{h:210}),this.cScale9=this.cScale9||(0,h.A)(this.primaryColor,{h:270}),this.cScale10=this.cScale10||(0,h.A)(this.primaryColor,{h:300}),this.cScale11=this.cScale11||(0,h.A)(this.primaryColor,{h:330});for(let t=0;t{this[i]=t[i]}),this.updateColors(),i.forEach(i=>{this[i]=t[i]})}},T=(0,s.K)(t=>{let i=new B;return i.calculate(t),i},"getThemeVariables"),b=class{static{(0,s.K)(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=(0,h.A)(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=(0,h.A)(this.primaryColor,{h:-160}),this.primaryBorderColor=m(this.primaryColor,this.darkMode),this.secondaryBorderColor=m(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=m(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,l.A)(this.primaryColor),this.secondaryTextColor=(0,l.A)(this.secondaryColor),this.tertiaryTextColor=(0,l.A)(this.tertiaryColor),this.lineColor=(0,l.A)(this.background),this.textColor=(0,l.A)(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=m(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=(0,C.A)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||(0,h.A)(this.primaryColor,{h:30}),this.cScale4=this.cScale4||(0,h.A)(this.primaryColor,{h:60}),this.cScale5=this.cScale5||(0,h.A)(this.primaryColor,{h:90}),this.cScale6=this.cScale6||(0,h.A)(this.primaryColor,{h:120}),this.cScale7=this.cScale7||(0,h.A)(this.primaryColor,{h:150}),this.cScale8=this.cScale8||(0,h.A)(this.primaryColor,{h:210}),this.cScale9=this.cScale9||(0,h.A)(this.primaryColor,{h:270}),this.cScale10=this.cScale10||(0,h.A)(this.primaryColor,{h:300}),this.cScale11=this.cScale11||(0,h.A)(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,a.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,a.A)(this.tertiaryColor,40);for(let t=0;t{"calculated"===this[t]&&(this[t]=void 0)}),"object"!=typeof t)return void this.updateColors();let i=Object.keys(t);i.forEach(i=>{this[i]=t[i]}),this.updateColors(),i.forEach(i=>{this[i]=t[i]})}},F=(0,s.K)(t=>{let i=new b;return i.calculate(t),i},"getThemeVariables"),A=class{static{(0,s.K)(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,n.A)("#cde498",10),this.primaryBorderColor=m(this.primaryColor,this.darkMode),this.secondaryBorderColor=m(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=m(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,l.A)(this.primaryColor),this.secondaryTextColor=(0,l.A)(this.secondaryColor),this.tertiaryTextColor=(0,l.A)(this.primaryColor),this.lineColor=(0,l.A)(this.background),this.textColor=(0,l.A)(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=(0,a.A)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||(0,h.A)(this.primaryColor,{h:30}),this.cScale4=this.cScale4||(0,h.A)(this.primaryColor,{h:60}),this.cScale5=this.cScale5||(0,h.A)(this.primaryColor,{h:90}),this.cScale6=this.cScale6||(0,h.A)(this.primaryColor,{h:120}),this.cScale7=this.cScale7||(0,h.A)(this.primaryColor,{h:150}),this.cScale8=this.cScale8||(0,h.A)(this.primaryColor,{h:210}),this.cScale9=this.cScale9||(0,h.A)(this.primaryColor,{h:270}),this.cScale10=this.cScale10||(0,h.A)(this.primaryColor,{h:300}),this.cScale11=this.cScale11||(0,h.A)(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,a.A)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,a.A)(this.tertiaryColor,40);for(let t=0;t{this[i]=t[i]}),this.updateColors(),i.forEach(i=>{this[i]=t[i]})}},S=(0,s.K)(t=>{let i=new A;return i.calculate(t),i},"getThemeVariables"),f=class{static{(0,s.K)(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,n.A)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=(0,h.A)(this.primaryColor,{h:-160}),this.primaryBorderColor=m(this.primaryColor,this.darkMode),this.secondaryBorderColor=m(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=m(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,l.A)(this.primaryColor),this.secondaryTextColor=(0,l.A)(this.secondaryColor),this.tertiaryTextColor=(0,l.A)(this.tertiaryColor),this.lineColor=(0,l.A)(this.background),this.textColor=(0,l.A)(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||(0,n.A)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=(0,n.A)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,n.A)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t{this[i]=t[i]}),this.updateColors(),i.forEach(i=>{this[i]=t[i]})}},L=(0,s.K)(t=>{let i=new f;return i.calculate(t),i},"getThemeVariables"),v=class{static{(0,s.K)(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=m(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||(0,h.A)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,h.A)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||m(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||m(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||m(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||m(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||(0,l.A)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,l.A)(this.tertiaryColor),this.lineColor=this.lineColor||(0,l.A)(this.background),this.arrowheadColor=this.arrowheadColor||(0,l.A)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,a.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,a.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,l.A)(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;let t="#ECECFE",i="#E9E9F1",o=(0,h.A)(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||o,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||i,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,n.A)(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||t,this.cScale1=this.cScale1||i,this.cScale2=this.cScale2||o,this.cScale3=this.cScale3||(0,h.A)(t,{h:30}),this.cScale4=this.cScale4||(0,h.A)(t,{h:60}),this.cScale5=this.cScale5||(0,h.A)(t,{h:90}),this.cScale6=this.cScale6||(0,h.A)(t,{h:120}),this.cScale7=this.cScale7||(0,h.A)(t,{h:150}),this.cScale8=this.cScale8||(0,h.A)(t,{h:210,l:150}),this.cScale9=this.cScale9||(0,h.A)(t,{h:270}),this.cScale10=this.cScale10||(0,h.A)(t,{h:300}),this.cScale11=this.cScale11||(0,h.A)(t,{h:330}),this.darkMode)for(let t=0;t{this[i]=t[i]}),this.updateColors(),i.forEach(i=>{this[i]=t[i]})}},q=(0,s.K)(t=>{let i=new v;return i.calculate(t),i},"getThemeVariables"),E=class{static{(0,s.K)(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,n.A)(this.primaryColor,16),this.tertiaryColor=(0,h.A)(this.primaryColor,{h:-160}),this.primaryBorderColor=(0,l.A)(this.background),this.secondaryBorderColor=m(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=m(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,l.A)(this.primaryColor),this.secondaryTextColor=(0,l.A)(this.secondaryColor),this.tertiaryTextColor=(0,l.A)(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,n.A)((0,l.A)("#323D47"),10),this.border1="#ccc",this.border2=(0,C.A)(255,255,255,.25),this.arrowheadColor=(0,l.A)(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||(0,h.A)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,h.A)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||m(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||m(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||m(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||m(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||(0,l.A)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,l.A)(this.tertiaryColor),this.lineColor=this.lineColor||(0,l.A)(this.background),this.arrowheadColor=this.arrowheadColor||(0,l.A)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,a.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,a.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,l.A)(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,n.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||(0,h.A)(this.primaryColor,{h:30}),this.cScale4=this.cScale4||(0,h.A)(this.primaryColor,{h:60}),this.cScale5=this.cScale5||(0,h.A)(this.primaryColor,{h:90}),this.cScale6=this.cScale6||(0,h.A)(this.primaryColor,{h:120}),this.cScale7=this.cScale7||(0,h.A)(this.primaryColor,{h:150}),this.cScale8=this.cScale8||(0,h.A)(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||(0,h.A)(this.primaryColor,{h:270}),this.cScale10=this.cScale10||(0,h.A)(this.primaryColor,{h:300}),this.cScale11=this.cScale11||(0,h.A)(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t{this[i]=t[i]}),this.updateColors(),i.forEach(i=>{this[i]=t[i]})}},_=(0,s.K)(t=>{let i=new E;return i.calculate(t),i},"getThemeVariables"),w=class{static{(0,s.K)(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=m("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||(0,h.A)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,h.A)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||m(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||m(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||m(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||m(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||(0,l.A)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,l.A)(this.tertiaryColor),this.lineColor=this.lineColor||(0,l.A)(this.background),this.arrowheadColor=this.arrowheadColor||(0,l.A)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,a.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,a.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,l.A)(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;let t="#ECECFE",i="#E9E9F1",o=(0,h.A)(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||o,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||i,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,n.A)(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let t=0;t{this[i]=t[i]}),this.updateColors(),i.forEach(i=>{this[i]=t[i]})}},M=(0,s.K)(t=>{let i=new w;return i.calculate(t),i},"getThemeVariables"),I=class{static{(0,s.K)(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,n.A)(this.primaryColor,16),this.tertiaryColor=(0,h.A)(this.primaryColor,{h:-160}),this.primaryBorderColor=(0,l.A)(this.background),this.secondaryBorderColor=m(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=m(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,l.A)(this.primaryColor),this.secondaryTextColor=(0,l.A)(this.secondaryColor),this.tertiaryTextColor=(0,l.A)(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,n.A)((0,l.A)("#323D47"),10),this.border1="#ccc",this.border2=(0,C.A)(255,255,255,.25),this.arrowheadColor=(0,l.A)(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||(0,h.A)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,h.A)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||m(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||m(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||m(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||m(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||(0,l.A)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,l.A)(this.tertiaryColor),this.lineColor=this.lineColor||(0,l.A)(this.background),this.arrowheadColor=this.arrowheadColor||(0,l.A)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,a.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,a.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,l.A)(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,n.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||(0,h.A)(this.primaryColor,{h:30}),this.cScale4=this.cScale4||(0,h.A)(this.primaryColor,{h:60}),this.cScale5=this.cScale5||(0,h.A)(this.primaryColor,{h:90}),this.cScale6=this.cScale6||(0,h.A)(this.primaryColor,{h:120}),this.cScale7=this.cScale7||(0,h.A)(this.primaryColor,{h:150}),this.cScale8=this.cScale8||(0,h.A)(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||(0,h.A)(this.primaryColor,{h:270}),this.cScale10=this.cScale10||(0,h.A)(this.primaryColor,{h:300}),this.cScale11=this.cScale11||(0,h.A)(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t{this[i]=t[i]}),this.updateColors(),i.forEach(i=>{this[i]=t[i]})}},O=(0,s.K)(t=>{let i=new I;return i.calculate(t),i},"getThemeVariables"),z=class{static{(0,s.K)(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=m(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||(0,h.A)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,h.A)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||m(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||m(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||m(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||m(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||(0,l.A)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,l.A)(this.tertiaryColor),this.lineColor=this.lineColor||(0,l.A)(this.background),this.arrowheadColor=this.arrowheadColor||(0,l.A)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,a.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,a.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,l.A)(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;let t="#ECECFE",i="#E9E9F1",o=(0,h.A)(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||o,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||i,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,n.A)(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let t=0;t{this[i]=t[i]}),this.updateColors(),i.forEach(i=>{this[i]=t[i]})}},W=(0,s.K)(t=>{let i=new z;return i.calculate(t),i},"getThemeVariables"),D=class{static{(0,s.K)(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,n.A)(this.primaryColor,16),this.tertiaryColor=(0,h.A)(this.primaryColor,{h:-160}),this.primaryBorderColor=(0,l.A)(this.background),this.secondaryBorderColor=m(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=m(this.tertiaryColor,this.darkMode),this.primaryTextColor=(0,l.A)(this.primaryColor),this.secondaryTextColor=(0,l.A)(this.secondaryColor),this.tertiaryTextColor=(0,l.A)(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,n.A)((0,l.A)("#323D47"),10),this.border1="#ccc",this.border2=(0,C.A)(255,255,255,.25),this.arrowheadColor=(0,l.A)(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||(0,h.A)(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||(0,h.A)(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||m(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||m(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||m(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||m(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||(0,l.A)(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||(0,l.A)(this.tertiaryColor),this.lineColor=this.lineColor||(0,l.A)(this.background),this.arrowheadColor=this.arrowheadColor||(0,l.A)(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,a.A)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,a.A)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||(0,l.A)(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,n.A)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let t=0;t{this[i]=t[i]}),this.updateColors(),i.forEach(i=>{this[i]=t[i]})}},P={base:{getThemeVariables:k},dark:{getThemeVariables:T},default:{getThemeVariables:F},forest:{getThemeVariables:S},neutral:{getThemeVariables:L},neo:{getThemeVariables:q},"neo-dark":{getThemeVariables:_},redux:{getThemeVariables:M},"redux-dark":{getThemeVariables:O},"redux-color":{getThemeVariables:W},"redux-dark-color":{getThemeVariables:(0,s.K)(t=>{let i=new D;return i.calculate(t),i},"getThemeVariables")}},R={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},swimlane:{useMaxWidth:!0,lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75,donutHole:0,legendPosition:"right",highlightSlice:""},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,showLegend:!0,legendFontSize:14,legendPadding:10,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},K={...R,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",nodePlacementAlignment:"NONE",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES",keepEntryNodeOnTop:!1},themeCSS:void 0,themeVariables:P.default.getThemeVariables(),sequence:{...R.sequence,messageFont:(0,s.K)(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:(0,s.K)(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:(0,s.K)(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{defaultRenderer:"dagre-wrapper",hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...R.gantt,tickInterval:void 0,useWidth:void 0},c4:{...R.c4,useWidth:void 0,personFont:(0,s.K)(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...R.flowchart,inheritDir:!1},external_personFont:(0,s.K)(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:(0,s.K)(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:(0,s.K)(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:(0,s.K)(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:(0,s.K)(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:(0,s.K)(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:(0,s.K)(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:(0,s.K)(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:(0,s.K)(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:(0,s.K)(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:(0,s.K)(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:(0,s.K)(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:(0,s.K)(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:(0,s.K)(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:(0,s.K)(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:(0,s.K)(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:(0,s.K)(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:(0,s.K)(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:(0,s.K)(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:(0,s.K)(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:(0,s.K)(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...R.pie,useWidth:984},xyChart:{...R.xyChart,useWidth:void 0},requirement:{...R.requirement,useWidth:void 0},packet:{...R.packet},eventmodeling:{...R.eventmodeling},treeView:{...R.treeView,useWidth:void 0},radar:{...R.radar},railroad:{...R.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...R.ishikawa},sankey:{...R.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...R.venn},cynefin:{...R.cynefin}},H=(0,s.K)((t,i="")=>Object.keys(t).reduce((o,r)=>Array.isArray(t[r])?o:"object"==typeof t[r]&&null!==t[r]?[...o,i+r,...H(t[r],"")]:[...o,i+r],[]),"keyify"),$=new Set(H(K,"")),j=K,V={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},G=(0,s.K)((t,i)=>{for(let o of Object.keys(t)){let r=t[o];(o.startsWith("__")||o.includes("proto")||o.includes("constr")||"string"!=typeof r||!i.test(r))&&(e.R.debug("sanitize deleting dictionary entry:",o,r),delete t[o])}},"sanitizeDictionaryConfig"),N=(0,s.K)(t=>{if(e.R.debug("sanitizeDirective called with",t),"object"==typeof t&&null!=t){if(Array.isArray(t))return void t.forEach(t=>N(t));for(let i of Object.keys(t)){if(e.R.debug("Checking key",i),i.startsWith("__")||i.includes("proto")||i.includes("constr")||!$.has(i)||null==t[i]){e.R.debug("sanitize deleting key: ",i),delete t[i];continue}if("object"==typeof t[i]){let o=V[i];o?G(t[i],o):(e.R.debug("sanitizing object",i),N(t[i]));continue}for(let o of["themeCSS","fontFamily","altFontFamily"])i.includes(o)&&(e.R.debug("sanitizing css option",i),t[i]=U(t[i]))}if(t.themeVariables)for(let i of Object.keys(t.themeVariables)){let o=t.themeVariables[i];o?.match&&!o.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[i]="")}e.R.debug("After sanitization",t)}},"sanitizeDirective"),U=(0,s.K)(t=>{let i=0,o=0;for(let r of t){if(i!(!1===t||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),Z=x({},Y),J=[],Q=x({},Y),tt=(0,s.K)((t,i)=>{let o=x({},t),e={};for(let t of i)tl(t),e=x(e,t);if(o=x(o,e),e.theme&&e.theme in P){let t=x({},r),i=x(t.themeVariables||{},e.themeVariables);o.theme&&o.theme in P&&(o.themeVariables=P[o.theme].getThemeVariables(i))}return tg(Q=o),Q},"updateCurrentConfig"),ti=(0,s.K)(t=>(Z=x({},Y),Z=x(Z,t),t.theme&&P[t.theme]&&(Z.themeVariables=P[t.theme].getThemeVariables(t.themeVariables)),tt(Z,J),Z),"setSiteConfig"),to=(0,s.K)(t=>{r=x({},t)},"saveConfigFromInitialize"),tr=(0,s.K)(t=>(Z=x(Z,t),tt(Z,J),Z),"updateSiteConfig"),te=(0,s.K)(()=>x({},Z),"getSiteConfig"),ts=(0,s.K)(t=>(tt(Q,[t]),th()),"setConfig"),th=(0,s.K)(()=>x({},Q),"getConfig"),tl=(0,s.K)(t=>{t&&(["secure",...Z.secure??[]].forEach(i=>{Object.hasOwn(t,i)&&(e.R.debug(`Denied attempt to modify a secure key ${i}`,t[i]),delete t[i])}),Object.keys(t).forEach(i=>{i.startsWith("__")&&delete t[i]}),Object.keys(t).forEach(i=>{"string"==typeof t[i]&&(t[i].includes("<")||t[i].includes(">")||t[i].includes("url(data:"))&&delete t[i],"object"==typeof t[i]&&tl(t[i])}))},"sanitize"),ta=(0,s.K)(t=>{N(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),J.push(t),tt(Z,J)},"addDirective"),tn=(0,s.K)((t=Z)=>{tt(t,J=[])},"reset"),tc={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},tC={},td=(0,s.K)(t=>{tC[t]||(e.R.warn(tc[t]),tC[t]=!0)},"issueWarning"),tg=(0,s.K)(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&td("LAZY_LOAD_DEPRECATED")},"checkConfig"),tx=(0,s.K)(()=>{let t={};for(let i of(r&&(t=x(t,r)),J))t=x(t,i);return t},"getUserDefinedConfig"),tp=(0,s.K)(t=>(t.flowchart?.htmlLabels!=void 0&&td("FLOWCHART_HTML_LABELS_DEPRECATED"),X(t.htmlLabels??t.flowchart?.htmlLabels??!0)),"getEffectiveHtmlLabels"),ty=/^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s,tm=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,tu=/\s*%%.*\n/gm,tk=class extends Error{static{(0,s.K)(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}},tB={},tT=(0,s.K)(function(t,i){for(let[o,{detector:r}]of(t=t.replace(ty,"").replace(tm,"").replace(tu,"\n"),Object.entries(tB)))if(r(t,i))return o;throw new tk(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),tb=(0,s.K)((...t)=>{for(let{id:i,detector:o,loader:r}of t)tF(i,o,r)},"registerLazyLoadedDiagrams"),tF=(0,s.K)((t,i,o)=>{tB[t]&&e.R.warn(`Detector with key ${t} already exists. Overwriting.`),tB[t]={detector:i,loader:o},e.R.debug(`Detector with key ${t} added${o?" with loader":""}`)},"addDetector"),tA=(0,s.K)(t=>tB[t].loader,"getDiagramLoader"),tS=//gi,tf=(0,s.K)(t=>t?tz(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),tL=(()=>{let t=!1;return()=>{t||(tv(),t=!0)}})();function tv(){let t="data-temp-href-target";d.A.addHook("beforeSanitizeAttributes",i=>{"A"===i.tagName&&i.hasAttribute("target")&&i.setAttribute(t,i.getAttribute("target")??"")}),d.A.addHook("afterSanitizeAttributes",i=>{"A"===i.tagName&&i.hasAttribute(t)&&(i.setAttribute("target",i.getAttribute(t)??""),i.removeAttribute(t),"_blank"===i.getAttribute("target")&&i.setAttribute("rel","noopener"))})}(0,s.K)(tv,"setupDompurifyHooks");var tq=(0,s.K)(t=>(tL(),d.A.sanitize(t)),"removeScript"),tE=(0,s.K)((t,i)=>{if(tp(i)){let o=i.securityLevel;"antiscript"===o||"strict"===o||"sandbox"===o?t=tq(t):"loose"!==o&&(t=tO(t=(t=(t=tz(t)).replace(//g,">")).replace(/=/g,"=")))}return t},"sanitizeMore"),t_=(0,s.K)((t,i)=>t?t=i.dompurifyConfig?d.A.sanitize(tE(t,i),i.dompurifyConfig).toString():d.A.sanitize(tE(t,i),{FORBID_TAGS:["style"]}).toString():t,"sanitizeText"),tw=(0,s.K)((t,i)=>"string"==typeof t?t_(t,i):t.flat().map(t=>t_(t,i)),"sanitizeTextOrArray"),tM=(0,s.K)(t=>tS.test(t),"hasBreaks"),tI=(0,s.K)(t=>t.split(tS),"splitBreaks"),tO=(0,s.K)(t=>t.replace(/#br#/g,"
    "),"placeholderToBreak"),tz=(0,s.K)(t=>t.replace(tS,"#br#"),"breakToPlaceholder"),tW=(0,s.K)(t=>{let i="";return t&&(i=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,i=CSS.escape(i)),i},"getUrl"),tD=(0,s.K)(function(...t){return Math.max(...t.filter(t=>!isNaN(t)))},"getMax"),tP=(0,s.K)(function(...t){return Math.min(...t.filter(t=>!isNaN(t)))},"getMin"),tR=(0,s.K)(function(t){let i=t.split(/(,)/),o=[];for(let t=0;t0&&t+1Math.max(0,t.split(i).length-1),"countOccurrence"),tH=(0,s.K)((t,i)=>{let o=tK(t,"~"),r=tK(i,"~");return 1===o&&1===r},"shouldCombineSets"),t$=(0,s.K)(t=>{let i=tK(t,"~"),o=!1;if(i<=1)return t;i%2!=0&&t.startsWith("~")&&(t=t.substring(1),o=!0);let r=[...t],e=r.indexOf("~"),s=r.lastIndexOf("~");for(;-1!==e&&-1!==s&&e!==s;)r[e]="<",r[s]=">",e=r.indexOf("~"),s=r.lastIndexOf("~");return o&&r.unshift("~"),r.join("")},"processSet"),tj=(0,s.K)(()=>void 0!==window.MathMLElement,"isMathMLSupported"),tV=/\$\$(.*?)\$\$/g,tG=(0,s.K)(t=>(t.match(tV)?.length??0)>0,"hasKatex"),tN=(0,s.K)(async(t,i)=>{let o=document.createElement("div");o.innerHTML=await tY(t,i),o.id="katex-temp",o.style.visibility="hidden",o.style.position="absolute",o.style.top="0";let r=document.querySelector("body");r?.insertAdjacentElement("beforeend",o);let e={width:o.clientWidth,height:o.clientHeight};return o.remove(),e},"calculateMathMLDimensions"),tU=(0,s.K)(async(t,i)=>{if(!tG(t))return t;if(!(tj()||i.legacyMathML||i.forceLegacyMathML))return t.replace(tV,"MathML is unsupported in this environment.");{let{default:r}=await o.e(4287).then(o.bind(o,40524)),e=i.forceLegacyMathML||!tj()&&i.legacyMathML?"htmlAndMathml":"mathml";return t.split(tS).map(t=>tG(t)?`