diff --git a/app_zentaoimpweb/CHANGELOG.md b/app_zentaoimpweb/CHANGELOG.md
index 1feacacfa7478909eac988b9f76458850e49a26c..bef5985f85e8759ebc8e32f4b41d9e82475a0da4 100644
--- a/app_zentaoimpweb/CHANGELOG.md
+++ b/app_zentaoimpweb/CHANGELOG.md
@@ -7,6 +7,401 @@
## [Unreleased]
+## [0.7.40-alpha.9] - 2025-04-16
+
+### Added
+
+- 新增全局搜索预置组件(预置类型为:RAWITEM_GLOBAL_SEARCH)
+
+### Changed
+
+- 优化视图接口、部件控制器接口以及状态接口定义
+- 优化自动表格下拉,调整为大数据虚拟列表编辑器绘制
+
+### Fixed
+
+- 修复表单多数据部件加载两次异常
+
+## [0.7.40-alpha.8] - 2025-04-15
+
+### Added
+
+- 新增首页默认空白占位预置组件(预置类型为:CONTAINER_INDEX_BLANK_PLACEHOLDER)
+- 新增appVersion环境变量,用于配置应用版本号
+- 新增菜单获取默认打开视图
+- 新增树部件控件参数menuShowMode(上下文分组图标显示模式,default | hover),值为hover时默认隐藏,hover时显示;值为default时默认显示
+
+### Changed
+
+- 优化部件控制器和状态的接口定义,优化表单项接口定义
+- 优化访问权限数据存储区域重置逻辑
+
+### Fixed
+
+- 在表单加载完成后再加载表单多数据部件数据,修复dataQuery报错
+- 修复ai聊天框重置对话时,当前数据丢失
+- 修复markdown编辑器和ai聊天框echarts插件报警告问题
+
+## [0.7.40-alpha.7] - 2025-04-11
+
+### Added
+
+- 动态表格列在不启用编辑时,默认使用标签编辑器
+
+### Changed
+
+- 优化动态表格属性长度校验
+- 优化表格值变更事件参数
+- 优化应用标题样式2图标与标题对齐
+
+## [0.7.40-alpha.6] - 2025-04-10
+
+### Added
+
+- 新增accessStoreArea环境变量,用于配置访问数据存储区域
+
+## [0.7.40-alpha.5] - 2025-04-09
+
+### Fixed
+
+- 修复面板容器点击时触发的界面逻辑里获取不到当前点击项数据的问题
+
+## [0.7.40-alpha.4] - 2025-04-09
+
+### Added
+
+- 新增动态表格属性识别长度限制
+
+### Fixed
+
+- 修复多数据部件内置导航视图为重定向视图的时候,激活项变更但重定向视图未刷新的问题
+- 修复应用菜单获取子系统应用模型报错
+- 修复markdown编辑器暗色主题下预览区样式异常、全屏按钮层级显示异常
+
+## [0.7.40-alpha.3] - 2025-04-08
+
+### Added
+
+- 应用新增应用初始化前、应用授权完成、应用初始化完成、应用销毁4个hook,方便外部扩展能力
+- 新增应用默认主题配置
+
+### Changed
+
+- 优化AI类编辑器终止询问
+- 优化下拉列表编辑器代码表数据解析逻辑
+- 直接内容配置高度时内容超出指定高度出滚动条
+
+### Fixed
+
+- 修复cherry编辑器只读失效
+
+## [0.7.40-alpha.2] - 2025-04-07
+
+### Added
+
+- 新增预加载子应用能力(子应用存在菜单模型需预加载)
+
+### Changed
+
+- 优化AI聊天框MD样式(升级58版本)
+- 优化当前主应用的默认首页作为应用首页
+
+### Fixed
+
+- 修复cherry编辑器内容过多显示异常与主题异常
+- 修复菜单点击省略多余的子项无效问题
+- 修复AI聊天框工具栏显示和点击异常
+- 修复AI聊天框重置和清空对话未中断AI对话
+
+## [0.7.40-alpha.1] - 2025-04-02
+
+### Fixed
+
+- 修复菜单更多下拉变量丢失
+
+## [0.7.40-alpha.0] - 2025-04-02
+
+### Added
+
+- 表格部件识别排序模式,新增本地排序
+- 界面域补充数据更新事件
+
+### Changed
+
+- 优化AI类编辑器AI回填值
+- 升级代码编辑器版本至最新版本
+
+### Fixed
+
+- 修复工具栏首项加分组展开按钮点击事件无效
+- 修复菜单无激活项点击省略多余的子项无效问题
+- 修复用户消息图标在mac环境出现滚动条
+- 修复菜单图标高度过大导致滚动条异常、修复菜单更多下拉变量丢失
+- 修复代码编辑器高度异常
+- 修复菜单合并隐藏失效问题
+
+## [0.7.39-alpha.2] - 2025-03-28
+
+### Added
+
+- 界面域状态变更事件新增isTrusted参数,表示当前状态变更是否可信任,用户脚本执行不可信任,预置逻辑可信任
+- 前端临时模式新建、更新、删除新增识别上下文的srfactiontrusted参数(boolean类型),用于解释当前操作是否可信任
+- 界面行为新增识别enableAI环境参数
+- 输入框,代码编辑器,富文本识别enableAI环境参数,以启用AI辅助
+
+### Changed
+
+- 优化AI类编辑器编辑器参数srfaiappendcurcontent,支持${xxx}动态参数拼接
+
+### Fixed
+
+- 修复工具栏图标样式、按钮样式异常
+- 修复异步动作的界面行为取消时也会出新飘至铃铛的动画
+- 修复值项类编辑器实现仅值项填充文本预置逻辑时,如表单启用自动保存,引发界面域状态异常问题
+
+## [0.7.39-alpha.1] - 2025-03-26
+
+### Added
+
+- 代码编辑器新增AI功能
+- 新增识别ai聊天框查询历史解析推荐提示
+- AI界面行为新增导航上下文参数srfaiappendcurdata,是否传入对象参数,用于历史查询传参;
+- AI编辑器新增编辑器参数srfaiappendcurdata,是否传入对象参数,用于历史查询传参、编辑器参数srfaiappendcurcontent,是否传入编辑内容作为用户消息,获取历史数据后附加
+- 界面域补充状态变更事件
+
+### Changed
+
+- 优化表单消息提示添加间隔
+- markdown编辑器调整全屏相关逻辑及支持Esc按键关闭全屏
+
+### Fixed
+
+- 修复表单不加载时表单项、表单多数据部件不绘制
+- 修复前端基于DTO包数据构造临时数据缓存时,嵌套数据的父标识为空时从嵌套的父数据中获取填入,父数据主键不存在导致异常(调整保存顺序,自上而下保存至缓存)
+
+## [0.7.39-alpha.0] - 2025-03-24
+
+### Added
+
+- 新增自动表格列排序功能
+- 新增应用功能绑定界面行为
+
+### Fixed
+
+- 修复自动表格时间类型编辑器报错
+- 修复用户交互过程中服务响应401未执行刷新token问题
+- 修复打开浮动容器(模态、抽屉、弹出框)ctx丢失问题
+- 修复打开ai无行为数据报错
+- 修复常规提示、警告提示、错误提示界面显示异常
+
+## [0.7.38] - 2025-03-23
+
+### Added
+
+- AI聊天框新增话题批量删除、话题过滤、话题标识增加自填模式标识参数
+
+### Fixed
+
+- 修复表格排序属性标识大小写不同导致的排序异常
+- 调整向导面板样式格式,防止打包后权重异常
+- 修复表单无应用实体导致界面异常问题
+- 修复多应用菜单项合并主菜单项隐藏、子菜单项显示合并结果异常
+
+## [0.7.38-alpha.67] - 2025-03-20
+
+### Changed
+
+- 优化AI工具栏子项行为呈现
+- 优化ai聊天框获取推荐提示参数
+
+## [0.7.38-alpha.66] - 2025-03-19
+
+### Added
+
+- 实体服务新增获取 AI 聊天会话推荐提示能力
+- 新增识别srfrenewsession视图动态参数,值为true时,强制重新构建界面域
+- ai聊天框新增推荐提示、重命名话题、新建|重置|清空话题等能力
+
+### Changed
+
+- 应用标题显示图标判断依据调整为用户自定义样式2
+
+### Fixed
+
+- 修复向导面板高度异常
+
+## [0.7.38-alpha.65] - 2025-03-17
+
+### Added
+
+- 增强临时模式数据查询query忽略大小写、忽略空值
+- 新增可视化调试套件默认参数
+- 新增可视化调试套件识别应用启动环境参数、识别appdata返回modeldesignpath字段和modeldesignmode字段
+
+### Changed
+
+- 优化编辑表单识别command指令(后台发送更新通知时,识别脏检查并更新)
+
+### Fixed
+
+- 修复请求ai填充接口服务异常一直重新请求问题
+
+## [0.7.38-alpha.64] - 2025-03-12
+
+### Added
+
+- 新增识别工具栏界面行为数据部件
+- 新增识别表单项属性集tips
+
+### Changed
+
+- 优化消息通知(失败的和已完成的通知可自动关闭)
+
+### Fixed
+
+- 修复ai聊天框切换话题图标绘制异常
+
+## [0.7.38-alpha.63] - 2025-03-10
+
+### Added
+
+- 新增ai对话框停止对话功能
+- 新增markdown编辑器全屏逻辑
+
+### Changed
+
+- 优化表单项提示
+
+### Fixed
+
+- 修复自动表格编辑器模型未深拷贝导致模型异常
+- 修复Ai提问框切换话题消息异常
+- 修复树右键上下文样式
+
+## [0.7.38-alpha.62] - 2025-03-06
+
+### Added
+
+- 新增mdctrldefaultsort和pickerdefaultsort默认排序参数
+- 新增识别按钮样式(界面行为项、界面行为组成员、表单按钮、面板按钮)
+- 新增代码编辑器新增空白提示
+- 新增识别表单过滤参数
+- 新增识别主题themeUrl参数
+
+### Fixed
+
+- 修复卡片样式异常
+
+## [0.7.38-alpha.61] - 2025-03-03
+
+### Added
+
+- 卡片,列表新增样式2(多选时出现复选框)
+- 新增单选列表框支持显示图标
+- 新增ai聊天框上传素材资源(文件、实体元数据等)能力
+- 新增多数据部件全选能力
+
+### Changed
+
+- 优化设置popover的zindex变量时,动态获取变量前缀
+- 优化部件内置导航,数据变更时才重新导航
+
+### Fixed
+
+- 修复工具栏、上下文菜单分组界面行为打开方式popver视图位置异常问题
+- 修复图表因为加载时机问题可能出现初始化异常的问题
+- 修复协同消息更新不正确异常
+- 修复后续界面行为合并参数异常
+
+## [0.7.38-alpha.60] - 2025-02-26
+
+### Added
+
+- 补充表单设计移动端编辑器的预览呈现
+
+### Changed
+
+- 优化处理popover层级跟随视图时,所有同名的popover的z-index都进行变化hook
+- 更新右键菜单点击时,弹出的popover层级跟随视图层级
+- 更新ai聊天框工具栏、入参格式
+
+### Fixed
+
+- 修复表单多数据部件处于设计预览态时报错异常
+- 修复视图壳上下文缺失应用标识导致请求异常
+- 修复自动表格all编辑模式新建行异常
+
+## [0.7.38-alpha.59] - 2025-02-24
+
+### Changed
+
+- 面板屑点击父项时清除子项缓存
+- 更新Ai聊天框多话题切换、语音输入功能
+
+### Fixed
+
+- 修复门户部件行为组权限计算异常
+- 修复协同编辑访问超时后未自动更新访问状态
+- 修复HTML视图填充路径未识别动态参数(上下文、视图参数、业务数据)
+- 修复树节点行为异常
+- 修复设计调试工具跳转设计视图异常
+
+## [0.7.38-alpha.58] - 2025-02-19
+
+### Added
+
+- 搜索表单新增simple模式
+- 新增支持表单成员预览态呈现内容
+
+### Changed
+
+- 地图下转后刷新地图,防止缩放异常
+- 优化ai聊天框(消息内容不识别换行符)
+
+### Fixed
+
+- 修复界面销毁,当前界面还存在正在处理的网络请求,网络请求报错问题
+
+## [0.7.38-alpha.57] - 2025-02-13
+
+### Added
+
+- 新增popover的zindex层级跟随由应用图层中心统一管理能力
+
+### Changed
+
+- 优化模板调试工具打开设计工具路径参数冗余
+
+### Fixed
+
+- 修复图片背景容器svg中存在中文时不显示异常
+- 修复界面操作后错误提示异常
+- 修复多应用下表单按钮组界面行为初始化异常
+- 修复打开AI聊天框参数未处理界面行为参数问题
+- 修复自动填充、数据选择展开下拉时闪烁问题
+- 修复多应用面板按钮列表初始化界面行为组异常
+- 修复下拉编辑器无值时,表格编辑单元格打开异常
+- 修复403和404页面图片溢出异常
+
+## [0.7.38-alpha.56] - 2025-02-11
+
+### Added
+
+- 前台界面行为新增打开聊天界面处理模式
+- 新增支持表单按钮组界面行为组模型合并能力
+- 新增支持表格列界面行为组模型合并能力
+- 代码编辑器初始化过程出加载遮罩
+
+### Changed
+
+- 优化视图消息,识别消息内容的 HTML 格式
+- 优化按钮组事件参数,增加appId参数
+
+### Fixed
+
+- 修复打开相同链接视图时路由报错异常
+- 修复ai请求路径异常
+
## [0.7.38-alpha.55] - 2025-02-10
### Added
diff --git a/app_zentaoimpweb/LICENSE b/app_zentaoimpweb/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..9fcdc36cae9d626f330b86877eab2c8bb0a0b567
--- /dev/null
+++ b/app_zentaoimpweb/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023-present, iBiz
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/app_zentaoimpweb/README.md b/app_zentaoimpweb/README.md
index a7ff962a8b86228e8e83c14d7a79b69f65cb7f13..f280209ea5674eba89ae59f7db5499b284790f32 100644
--- a/app_zentaoimpweb/README.md
+++ b/app_zentaoimpweb/README.md
@@ -1,3 +1,186 @@
-# 全新一代模板
+## @ibiz-template/next
-基于 vue3 + vite + element-plus + tsx 实现
+### 1. 简介
+
+基于iBiz平台产出的模型和Vue全家桶(Vue3、Vite、Element Plus、TSX)来构建。本文档旨在帮助开发人员快速掌握项目的上手流程,并对代码结构进行详细说明,以便提供开发上的指导和支持。随着我们决定将该框架开源,我们热切期望更多有共同理念的伙伴能加入到iBiz前端web-runner项目的持续迭代和优化中来。欢迎大家的参与,共同推动web-runner项目的发展!
+
+### 2. 开发环境要求
+
+- Node.js
+
+- pnpm
+
+- Vite
+
+### 3. 开发技术要求
+
+掌握`Vue`、`TypeScript`、`scss`、`html`等技术。
+
+### 4. 技术栈
+
+- 前端MVVM框架:vue.js@3.3.8
+
+- 路由:vue-router@4.2.5
+
+- 状态管理:pinia@2.1.7
+
+- 国际化:vue-i18n@9.5.0
+
+- UI框架:element-plus@2.4.1
+
+- 第三方组件:@wangeditor/editor@5.1.23,@wangeditor/editor-for-vue@5.1.12,vue-grid-layout@3.0.0-beta1,@imengyu/vue3-context-menu@1.3.3,vuedraggable@4.1.0
+
+- 第三方工具库:qs@6.11.2,ramda@0.29.1,qx-util@0.4.8,lodash-es@4.17.21,async-validator@4.2.5
+
+### 5. iBiz自研依赖说明
+
+| 库名称 | 功能描述 |
+| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
+| `@ibiz/model-core` | 前端应用层模型对象接口规范,[查看详细说明](https://gitee.com/template-opensource/ibiz-web-model/tree/master/model-core) |
+| `@ibiz/rt-model-api` | iBiz前端运行时模型编译库,[查看详细说明](https://gitee.com/template-opensource/ibiz-web-model/tree/master/rt-model-api) |
+| `@ibiz-template/core` | 运行时核心库,[查看详细说明](https://gitee.com/template-opensource/ibiz-web-core/tree/master/packages/core) |
+| `@ibiz-template/model-helper` | 模型处理工具库[查看详细说明](https://gitee.com/template-opensource/ibiz-web-core/tree/master/packages/model-helper) |
+| `@ibiz-template/runtime` | 运行时逻辑库,[查看详细说明](https://gitee.com/template-opensource/ibiz-web-core/tree/master/packages/runtime) |
+| `@ibiz-template/theme` | 样式功能库[查看详细说明](https://gitee.com/template-opensource/ibiz-web-core/tree/master/packages/theme) |
+| `@ibiz-template/vue3-util` | 通用组件库(vue3),[查看详细说明](https://gitee.com/template-opensource/ibiz-web-core/tree/master/packages/vue3-util) |
+| `@ibiz-template/web-theme` | web端主题样式,[查看详细说明](https://gitee.com/template-opensource/ibiz-web-theme/tree/master/packages/web-theme) |
+| `@ibiz-template/vue3-components` | web 端组件库,[查看详细说明](https://gitee.com/template-opensource/ibiz-web-components/tree/master/ibiz-next-vue3) |
+| `@ibiz-template-plugin/ai-chat` | iBiz AI交互框插件,[查看详细说明](https://gitee.com/template-opensource/ibiz-web-plugin/tree/master/ibiz-ai-chat) |
+| `@ibiz-template-plugin/bi-report` | iBiz 智能报表,[查看详细说明](https://gitee.com/template-opensource/ibiz-web-plugin/tree/master/ibiz-bi-report) |
+| `@ibiz-template-plugin/data-view` | iBiz 数据大屏,[查看详细说明](https://gitee.com/template-opensource/ibiz-web-plugin/tree/master/ibiz-data-view) |
+| `@ibiz-template/devtool` | IBiz系统可视化调试套件,[查看详细说明](https://gitee.com/template-opensource/ibiz-web-plugin/tree/master/ibiz-template-devtools) |
+| `ibiz-template-cli` | iBiz应用开发与部署命令行工具,[查看详细说明](https://gitee.com/template-opensource/ibiz-web-toolkits/blob/master/ibiz-template-cli/packages/cli) |
+
+## 快速上手
+
+### 1. 开发环境
+
+> 在安装使用 `pnpm`前,务必确认 [Node.js](https://nodejs.org) 已经升级到版本16+,强烈建议升级至最新版本。
+> 如果你想了解更多 `pnpm` 工具链的功能和命令,建议访问 [pnpm](https://www.pnpm.cn/) 了解更多。
+
+- 访问 [Node.js](https://nodejs.org) ,根据文档安装 `Node.js`。
+- 访问 [Pnpm](https://www.pnpm.cn/) ,根据文档安装 `pnpm`。
+
+以下为 Windows 环境开发正常配置
+
+
+
+### 2. 安装依赖
+
+打开前端项目,进入工作空间下,执行安装依赖命令。
+
+```bash
+$ pnpm install
+```
+
+### 3. 启动
+
+在工作空间下,执行启动命令。
+
+```bash
+$ pnpm run dev
+```
+
+启动后,访问开发项目。
+
+### 3. 预览
+
+在工作空间下,执行预览命令。
+
+```bash
+$ pnpm run preview
+```
+
+启动后,预览开发项目。
+
+### 4. 打包
+
+在工作空间下,执行打包命令。
+
+```bash
+$ pnpm run build
+```
+
+打包完成,生成最终交付产物。
+
+## 成果物结构
+
+```
+|─ ─ app
+ |─ ─ public public文件夹
+ |─ ─ assets 静态文件夹
+ |─ ─ environments 环境文件
+ |─ ─ extras 依赖包文件
+ |─ ─ model 图标文件
+ |─ ─ cas-login.html 单点登录
+ |─ ─ favicon.ico 图标
+ |─ ─ src 工程文件夹
+ |─ ─ main.ts 入口文件
+ |─ ─ user-register.ts 自定义组件全局注册
+ |─ ─ vite-plugins vite插件集合
+ |─ ─ package.json 依赖管理文件
+ |─ ─ tsconfig.json TypeScript 项目的主要配置文件
+ |─ ─ tsconfig.node.json Node.js 环境的 TypeScript 配置文件
+ |─ ─ vite.config.ts vite 配置文件
+```
+
+## 支持情况
+
+[原生支持 ES2016 的浏览器](https://caniuse.com/es2016)
+
+## 本地开发
+
+### ibiz-template
+
+1. fork 一份ibiz-template包,获取main分支代码;
+
+2. 终端执行pnpm i安装依赖;
+
+3. ctrl+shift+p => 任务:运行任务=> 执行ibiz-template下的run dev命令跑代码,改动代码会有热更新;
+
+4. 终端执行 shell 脚本:./scripts/link2global.sh ,该脚本会将ibiz-template下的几个包通过pnpm link --global的方式 link 到全局;
+
+### @ibiz-template/vue3-components
+
+1. fork 一份@ibiz-template/vue3-components包,获取 main 分支代码;
+
+2. 终端执行pnpm i安装依赖;
+
+3. 终端执行 shell 脚本:./scripts/link.sh ,该脚本会将该包中用到ibiz-template下的几个包 link 到本包内;
+
+4. 终端执行pnpm dev编译组件
+
+5. 终端执行pnpm link --global,将 @ibiz-template/vue3-components 这个包 link 到全局;
+
+### @ibiz-template/next
+
+1. fork 一份@ibiz-template/next包,获取main分支代码;
+
+2. 终端执行pnpm i安装依赖;
+
+3. 终端执行 shell 脚本:./scripts/link.sh,该脚本会将该包中用到ibiz-template下的几个包和@ibiz-template/vue3-components这个包 link 到本包内;
+
+4. 对于不同的应用,主要是改environment.js里的 appId 和 mockDcSystemId;
+
+5. 执行pnpm dev跑项目即可。
+
+## 更新日志
+
+每个版本的详细更改都记录在[发行说明](CHANGELOG.md)中。
+
+## 如何贡献
+
+如果你希望参与贡献,欢迎 [Pull Request](http://172.16.180.230/full-dynamic-ftl/full-dynamic-vue/issues/new),或通过自助服务群给我们报告 Bug。
+
+强烈推荐阅读 [《提问的智慧》](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way)(本指南不提供此项目的实际支持服务!)、[《如何向开源社区提问题》](https://github.com/seajs/seajs/issues/545) 和 [《如何有效地报告 Bug》](https://www.chiark.greenend.org.uk/~sgtatham/bugs-cn.html)、[《如何向开源项目提交无法解答的问题》](https://zhuanlan.zhihu.com/p/25795393),更好的问题更容易获得帮助。
+
+## 授权协议
+
+[MIT](LICENSE)
+
+## 常见问题
+
+#### 1. 启动项目时,出现eslint报错,如何解决?
+
+解决方法: 将vite.config.ts部分代码注释,详见下图。
+
diff --git a/app_zentaoimpweb/build/set-version.js b/app_zentaoimpweb/build/set-version.js
new file mode 100644
index 0000000000000000000000000000000000000000..b42b7bdac819a7c5d8f2f36cee7db1dbcfc2ccf3
--- /dev/null
+++ b/app_zentaoimpweb/build/set-version.js
@@ -0,0 +1,52 @@
+/* eslint-disable import/newline-after-import */
+import { readFileSync, writeFileSync } from 'fs';
+import { dirname, join } from 'path';
+import { fileURLToPath } from 'url';
+import { createRequire } from 'module';
+
+// 获取当前模块的目录路径
+const __dirname = dirname(fileURLToPath(import.meta.url));
+
+// 创建 require 函数来读取 package.json
+const require = createRequire(import.meta.url);
+
+// 获取 package.json 中的版本号
+const packageJson = require('../package.json');
+const version = packageJson.version;
+
+// 环境文件路径
+const envFilePath = join(__dirname, '../public/environments/environment.js');
+
+// 读取现有环境文件内容
+let envFileContent;
+try {
+ envFileContent = readFileSync(envFilePath, 'utf8');
+} catch (err) {
+ console.error(`读取环境文件错误: ${err}`);
+ process.exit(1);
+}
+
+// 判断文件类型并处理
+let updatedContent;
+if (envFileContent.includes('appVersion:')) {
+ // 更新现有 appVersion
+ updatedContent = envFileContent.replace(
+ /appVersion:\s*['"][^'"]*['"]/,
+ `appVersion: '${version}'`,
+ );
+} else {
+ // 添加 appVersion 到全局对象
+ updatedContent = envFileContent.replace(
+ /window\.Environment = \{/,
+ `window.Environment = {\n appVersion: '${version}',`,
+ );
+}
+
+// 写入更新后的内容
+try {
+ writeFileSync(envFilePath, updatedContent, 'utf8');
+ console.log(`Successfully set appVersion to ${version}`);
+} catch (err) {
+ console.error(`写入环境文件错误: ${err}`);
+ process.exit(1);
+}
diff --git a/app_zentaoimpweb/environment.config b/app_zentaoimpweb/environment.config
index 26075cc3048440ea803b575c35872f076204f471..ed75629e448e020027e9efa09ed202b1602afb67 100644
--- a/app_zentaoimpweb/environment.config
+++ b/app_zentaoimpweb/environment.config
@@ -34,4 +34,7 @@ enableEncryption:ENABLEENCRYPTION
cookieDomain:COOKIEDOMAIN
appLoadingTheme:APPLOADINGTHEME
AppLabel:APPLABEL
-environmentTag:ENVIRONMENTTAG
\ No newline at end of file
+environmentTag:ENVIRONMENTTAG
+devtoolConfig:DEVTOOLCONFIG
+enableAI:ENABLEAI
+accessStoreArea:ACCESSSTOREAREA
diff --git a/app_zentaoimpweb/ibiz-generate-doc.config.ts b/app_zentaoimpweb/ibiz-generate-doc.config.ts
new file mode 100644
index 0000000000000000000000000000000000000000..c762af8f0fb7fafa646cc3501b41c42dcbf462ad
--- /dev/null
+++ b/app_zentaoimpweb/ibiz-generate-doc.config.ts
@@ -0,0 +1,58 @@
+/* eslint-disable import/no-extraneous-dependencies */
+import { defineGenerateDocConfig } from '@ibiz-template/cli';
+
+export default defineGenerateDocConfig({
+ // 是否移动端
+ isMob: false,
+ // 输出目录
+ outputDir: './docs',
+ // 路径配置
+ dirPathConfig: {
+ coreBasePath: '/root/workspace/template/ibiz-template/packages/core/',
+ runtimeBasePath: '/root/workspace/template/ibiz-template/packages/runtime/',
+ vueUtilBasePath:
+ '/root/workspace/template/ibiz-template/packages/vue3-util/',
+ vueWebBasePath: '/root/workspace/template/ibiz-next-vue3/',
+ vueMobBasePath: '/root/workspace/template/ibiz-next-mob-vue3/',
+ },
+ // 链接配置
+ linkPathConfig: {
+ coreBasePath:
+ 'https://gitee.com/iBizModeling/ibiz-template/tree/next/packages/core',
+ runtimeBasePath:
+ 'https://gitee.com/iBizModeling/ibiz-template/tree/next/packages/runtime',
+ vueUtilBasePath:
+ 'https://gitee.com/iBizModeling/ibiz-template/tree/next/packages/vue3-util',
+ vueWebBasePath: 'https://gitee.com/iBizModeling/ibiz-next-vue3/tree/next/',
+ vueMobBasePath:
+ 'https://gitee.com/iBizModeling/ibiz-next-mob-vue3/tree/next/',
+ },
+ // 发布文件清单配置
+ items: [
+ {
+ type: 'CTRL',
+ outputFileName: 'edit-form',
+ fieldFilePath:
+ './src/interface/controller/state/control/i-edit-form.state.ts',
+ mainFilePath:
+ './src/interface/controller/controller/control/i-edit-form.controller.ts',
+ eventFilePath:
+ './src/interface/controller/event/control/i-edit-form.event.ts',
+ },
+ {
+ type: 'CTRL',
+ outputFileName: 'grid',
+ fieldFilePath: './src/interface/controller/state/control/i-grid.state.ts',
+ mainFilePath:
+ './src/interface/controller/controller/control/i-grid.controller.ts',
+ eventFilePath: './src/interface/controller/event/control/i-grid.event.ts',
+ },
+ {
+ type: 'EDITOR',
+ outputFileName: 'cascader',
+ fieldFilePath: './src/props/editor/cascader.ts',
+ mainFilePath: './src/editor/cascader/ibiz-cascader/ibiz-cascader.tsx',
+ eventFilePath: './src/props/editor/common.ts',
+ },
+ ],
+});
diff --git a/app_zentaoimpweb/package.json b/app_zentaoimpweb/package.json
index a1f418dbb21bf00d3f6b809fe5fe55371d5ee307..6e1a09dea82f2e26d61a3a551160f8ca55b95bc0 100644
--- a/app_zentaoimpweb/package.json
+++ b/app_zentaoimpweb/package.json
@@ -2,40 +2,44 @@
"name": "@ibiz-template/next",
"private": true,
"type": "module",
- "version": "0.7.38-alpha.55",
+ "version": "0.7.40-alpha.9",
+ "description": "web-runner",
+ "author": "iBiz",
+ "license": "MIT",
"scripts": {
"dev": "vite",
- "build": "vue-tsc --noEmit && vite build",
+ "build": "node build/set-version.js && vue-tsc --noEmit && vite build",
"preview": "vite preview",
"test": "vitest",
"test:ui": "vitest --ui",
"test:run": "vitest run",
"compute-pkg": "ibiz-temp compute-pkg -m /root/workspace/iBizPLM/plm-core/src/main/resources/model/cn/ibizlab/plm --app plmmob",
"download-pkg": "ibiz-temp download-pkg",
+ "generate-doc": "ibiz-temp generate-doc",
"lint": "eslint 'src/**/*.tsx' 'src/**/*.ts' 'src/**/*.vue'",
"lint:style": "stylelint 'src/**/*.scss'"
},
"dependencies": {
"@antv/x6": "^2.18.1",
"@floating-ui/dom": "^1.5.3",
- "@ibiz-template-plugin/ai-chat": "^0.0.5",
- "@ibiz-template-plugin/bi-report": "0.0.25",
- "@ibiz-template-plugin/data-view": "0.0.3",
- "@ibiz-template/core": "0.7.38-alpha.57",
- "@ibiz-template/devtool": "0.0.4",
- "@ibiz-template/model-helper": "0.7.38-alpha.57",
- "@ibiz-template/runtime": "0.7.38-alpha.57",
- "@ibiz-template/theme": "^0.7.0",
- "@ibiz-template/vue3-components": "0.7.38-alpha.56",
- "@ibiz-template/vue3-util": "0.7.38-alpha.57",
- "@ibiz-template/web-theme": "1.1.28-alpha.2",
- "@ibiz/model-core": "^0.1.64",
+ "@ibiz-template-plugin/ai-chat": "^0.0.27",
+ "@ibiz-template-plugin/bi-report": "0.0.26",
+ "@ibiz-template-plugin/data-view": "0.0.4",
+ "@ibiz-template/core": "0.7.40-alpha.7",
+ "@ibiz-template/devtool": "0.0.10",
+ "@ibiz-template/model-helper": "0.7.40-alpha.8",
+ "@ibiz-template/runtime": "0.7.40-alpha.8",
+ "@ibiz-template/theme": "0.7.39",
+ "@ibiz-template/vue3-components": "0.7.40-alpha.9",
+ "@ibiz-template/vue3-util": "0.7.40-alpha.8",
+ "@ibiz-template/web-theme": "3.0.0",
+ "@ibiz/model-core": "^0.1.71",
"@imengyu/vue3-context-menu": "^1.3.5",
"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "^5.1.12",
"async-validator": "^4.2.5",
"axios": "^1.6.5",
- "cherry-markdown": "0.8.26",
+ "cherry-markdown": "0.8.58",
"dayjs": "^1.11.10",
"echarts": "^5.4.3",
"element-plus": "2.4.4",
@@ -59,7 +63,7 @@
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
- "@ibiz-template/cli": "^0.3.12",
+ "@ibiz-template/cli": "^0.3.13",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.10.5",
"@types/nprogress": "^0.2.3",
@@ -108,4 +112,4 @@
"*.{ts,vue}": "eslint --fix",
"*.scss": "stylelint --custom-syntax=postcss-scss"
}
-}
+}
\ No newline at end of file
diff --git a/app_zentaoimpweb/pnpm-lock.yaml b/app_zentaoimpweb/pnpm-lock.yaml
index 022853280af916aa2f8e994e0ceb960e5e00f174..7adc59acf518e1627365981129587e0754114b1e 100644
--- a/app_zentaoimpweb/pnpm-lock.yaml
+++ b/app_zentaoimpweb/pnpm-lock.yaml
@@ -12,41 +12,41 @@ dependencies:
specifier: ^1.5.3
version: 1.5.3
'@ibiz-template-plugin/ai-chat':
- specifier: ^0.0.5
- version: 0.0.5(cherry-markdown@0.8.26)(interactjs@1.10.20)(react@18.3.1)
+ specifier: ^0.0.27
+ version: 0.0.27(cherry-markdown@0.8.58)(interactjs@1.10.20)(react@18.3.1)(vite@5.0.12)
'@ibiz-template-plugin/bi-report':
- specifier: 0.0.25
- version: 0.0.25(@ibiz-template/core@0.7.38-alpha.57)(@ibiz-template/runtime@0.7.38-alpha.57)(@ibiz-template/theme@0.7.0)(@ibiz/model-core@0.1.64)(axios@1.6.5)(dayjs@1.11.10)(element-plus@2.4.4)(qx-util@0.4.8)(ramda@0.29.1)(vue@3.3.8)(vuedraggable@4.1.0)
+ specifier: 0.0.26
+ version: 0.0.26(@ibiz-template/core@0.7.40-alpha.7)(@ibiz-template/runtime@0.7.40-alpha.8)(@ibiz-template/theme@0.7.39)(@ibiz/model-core@0.1.71)(axios@1.6.5)(dayjs@1.11.10)(element-plus@2.4.4)(qx-util@0.4.8)(ramda@0.29.1)(vue@3.3.8)(vuedraggable@4.1.0)
'@ibiz-template-plugin/data-view':
- specifier: 0.0.3
- version: 0.0.3(@ibiz-template/core@0.7.38-alpha.57)(@ibiz-template/runtime@0.7.38-alpha.57)(@ibiz-template/theme@0.7.0)(@ibiz-template/vue3-util@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(axios@1.6.5)(dayjs@1.11.10)(element-plus@2.4.4)(qx-util@0.4.8)(ramda@0.29.1)(vue@3.3.8)(vuedraggable@4.1.0)
+ specifier: 0.0.4
+ version: 0.0.4(@ibiz-template/core@0.7.40-alpha.7)(@ibiz-template/runtime@0.7.40-alpha.8)(@ibiz-template/theme@0.7.39)(@ibiz-template/vue3-util@0.7.40-alpha.8)(@ibiz/model-core@0.1.71)(axios@1.6.5)(dayjs@1.11.10)(element-plus@2.4.4)(qx-util@0.4.8)(ramda@0.29.1)(vue@3.3.8)(vuedraggable@4.1.0)
'@ibiz-template/core':
- specifier: 0.7.38-alpha.57
- version: 0.7.38-alpha.57(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ specifier: 0.7.40-alpha.7
+ version: 0.7.40-alpha.7(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
'@ibiz-template/devtool':
- specifier: 0.0.4
- version: 0.0.4(@ibiz-template/core@0.7.38-alpha.57)(@ibiz-template/model-helper@0.7.38-alpha.57)(@ibiz-template/runtime@0.7.38-alpha.57)(@ibiz-template/theme@0.7.0)(@ibiz-template/vue3-util@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(@monaco-editor/loader@1.4.0)(async-validator@4.2.5)(axios@1.6.5)(dayjs@1.11.10)(lodash-es@4.17.21)(monaco-editor@0.45.0)(pluralize@8.0.0)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)(vuedraggable@4.1.0)
+ specifier: 0.0.10
+ version: 0.0.10(@ibiz-template/core@0.7.40-alpha.7)(@ibiz-template/model-helper@0.7.40-alpha.8)(@ibiz-template/runtime@0.7.40-alpha.8)(@ibiz-template/theme@0.7.39)(@ibiz-template/vue3-util@0.7.40-alpha.8)(@ibiz/model-core@0.1.71)(@monaco-editor/loader@1.4.0)(async-validator@4.2.5)(axios@1.6.5)(dayjs@1.11.10)(lodash-es@4.17.21)(monaco-editor@0.45.0)(pluralize@8.0.0)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)(vuedraggable@4.1.0)
'@ibiz-template/model-helper':
- specifier: 0.7.38-alpha.57
- version: 0.7.38-alpha.57(@ibiz-template/runtime@0.7.38-alpha.57)(ramda@0.29.1)
+ specifier: 0.7.40-alpha.8
+ version: 0.7.40-alpha.8(@ibiz-template/runtime@0.7.40-alpha.8)(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
'@ibiz-template/runtime':
- specifier: 0.7.38-alpha.57
- version: 0.7.38-alpha.57(@ibiz-template/core@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ specifier: 0.7.40-alpha.8
+ version: 0.7.40-alpha.8(@ibiz-template/core@0.7.40-alpha.7)(@ibiz/model-core@0.1.71)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
'@ibiz-template/theme':
- specifier: ^0.7.0
- version: 0.7.0
+ specifier: 0.7.39
+ version: 0.7.39
'@ibiz-template/vue3-components':
- specifier: 0.7.38-alpha.56
- version: 0.7.38-alpha.56(@floating-ui/dom@1.5.3)(@ibiz-template/core@0.7.38-alpha.57)(@ibiz-template/model-helper@0.7.38-alpha.57)(@ibiz-template/runtime@0.7.38-alpha.57)(@ibiz-template/theme@0.7.0)(@ibiz-template/vue3-util@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(@imengyu/vue3-context-menu@1.3.6)(@monaco-editor/loader@1.4.0)(@wangeditor/editor-for-vue@5.1.12)(@wangeditor/editor@5.1.23)(async-validator@4.2.5)(cherry-markdown@0.8.26)(dayjs@1.11.10)(echarts@5.4.3)(element-plus@2.4.4)(handlebars@4.7.8)(lodash-es@4.17.21)(monaco-editor@0.45.0)(mqtt@2.18.9)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(react@18.3.1)(vue-i18n@9.6.5)(vue-router@4.2.5)(vue@3.3.8)(vuedraggable@4.1.0)
+ specifier: 0.7.40-alpha.9
+ version: 0.7.40-alpha.9(@floating-ui/dom@1.5.3)(@ibiz-template/core@0.7.40-alpha.7)(@ibiz-template/model-helper@0.7.40-alpha.8)(@ibiz-template/runtime@0.7.40-alpha.8)(@ibiz-template/theme@0.7.39)(@ibiz-template/vue3-util@0.7.40-alpha.8)(@ibiz/model-core@0.1.71)(@imengyu/vue3-context-menu@1.3.6)(@monaco-editor/loader@1.4.0)(@wangeditor/editor-for-vue@5.1.12)(@wangeditor/editor@5.1.23)(async-validator@4.2.5)(cherry-markdown@0.8.58)(dayjs@1.11.10)(echarts@5.4.3)(element-plus@2.4.4)(handlebars@4.7.8)(lodash-es@4.17.21)(monaco-editor@0.45.0)(mqtt@2.18.9)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(react@18.3.1)(vite@5.0.12)(vue-i18n@9.6.5)(vue-router@4.2.5)(vue@3.3.8)(vuedraggable@4.1.0)
'@ibiz-template/vue3-util':
- specifier: 0.7.38-alpha.57
- version: 0.7.38-alpha.57(@ibiz-template/core@0.7.38-alpha.57)(@ibiz-template/runtime@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(dayjs@1.11.10)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)
+ specifier: 0.7.40-alpha.8
+ version: 0.7.40-alpha.8(@ibiz-template/core@0.7.40-alpha.7)(@ibiz-template/runtime@0.7.40-alpha.8)(@ibiz/model-core@0.1.71)(dayjs@1.11.10)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)
'@ibiz-template/web-theme':
- specifier: 1.1.28-alpha.2
- version: 1.1.28-alpha.2(@ibiz-template/core@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ specifier: 3.0.0
+ version: 3.0.0(@ibiz-template/core@0.7.40-alpha.7)(@ibiz/model-core@0.1.71)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
'@ibiz/model-core':
- specifier: ^0.1.64
- version: 0.1.64
+ specifier: ^0.1.71
+ version: 0.1.71
'@imengyu/vue3-context-menu':
specifier: ^1.3.5
version: 1.3.6
@@ -63,8 +63,8 @@ dependencies:
specifier: ^1.6.5
version: 1.6.5
cherry-markdown:
- specifier: 0.8.26
- version: 0.8.26
+ specifier: 0.8.58
+ version: 0.8.58
dayjs:
specifier: ^1.11.10
version: 1.11.10
@@ -131,8 +131,8 @@ devDependencies:
specifier: ^18.4.3
version: 18.5.0
'@ibiz-template/cli':
- specifier: ^0.3.12
- version: 0.3.12(@types/node@20.11.5)(postcss@8.4.33)(typescript@5.3.3)(vue@3.3.8)
+ specifier: ^0.3.13
+ version: 0.3.13(@types/node@20.11.5)(postcss@8.4.33)(vue@3.3.8)
'@types/lodash-es':
specifier: ^4.17.12
version: 4.17.12
@@ -2822,7 +2822,6 @@ packages:
cpu: [ppc64]
os: [aix]
requiresBuild: true
- dev: true
optional: true
/@esbuild/android-arm64@0.19.11:
@@ -2831,7 +2830,6 @@ packages:
cpu: [arm64]
os: [android]
requiresBuild: true
- dev: true
optional: true
/@esbuild/android-arm@0.19.11:
@@ -2840,7 +2838,6 @@ packages:
cpu: [arm]
os: [android]
requiresBuild: true
- dev: true
optional: true
/@esbuild/android-x64@0.19.11:
@@ -2849,7 +2846,6 @@ packages:
cpu: [x64]
os: [android]
requiresBuild: true
- dev: true
optional: true
/@esbuild/darwin-arm64@0.19.11:
@@ -2858,7 +2854,6 @@ packages:
cpu: [arm64]
os: [darwin]
requiresBuild: true
- dev: true
optional: true
/@esbuild/darwin-x64@0.19.11:
@@ -2867,7 +2862,6 @@ packages:
cpu: [x64]
os: [darwin]
requiresBuild: true
- dev: true
optional: true
/@esbuild/freebsd-arm64@0.19.11:
@@ -2876,7 +2870,6 @@ packages:
cpu: [arm64]
os: [freebsd]
requiresBuild: true
- dev: true
optional: true
/@esbuild/freebsd-x64@0.19.11:
@@ -2885,7 +2878,6 @@ packages:
cpu: [x64]
os: [freebsd]
requiresBuild: true
- dev: true
optional: true
/@esbuild/linux-arm64@0.19.11:
@@ -2894,7 +2886,6 @@ packages:
cpu: [arm64]
os: [linux]
requiresBuild: true
- dev: true
optional: true
/@esbuild/linux-arm@0.19.11:
@@ -2903,7 +2894,6 @@ packages:
cpu: [arm]
os: [linux]
requiresBuild: true
- dev: true
optional: true
/@esbuild/linux-ia32@0.19.11:
@@ -2912,7 +2902,6 @@ packages:
cpu: [ia32]
os: [linux]
requiresBuild: true
- dev: true
optional: true
/@esbuild/linux-loong64@0.19.11:
@@ -2921,7 +2910,6 @@ packages:
cpu: [loong64]
os: [linux]
requiresBuild: true
- dev: true
optional: true
/@esbuild/linux-mips64el@0.19.11:
@@ -2930,7 +2918,6 @@ packages:
cpu: [mips64el]
os: [linux]
requiresBuild: true
- dev: true
optional: true
/@esbuild/linux-ppc64@0.19.11:
@@ -2939,7 +2926,6 @@ packages:
cpu: [ppc64]
os: [linux]
requiresBuild: true
- dev: true
optional: true
/@esbuild/linux-riscv64@0.19.11:
@@ -2948,7 +2934,6 @@ packages:
cpu: [riscv64]
os: [linux]
requiresBuild: true
- dev: true
optional: true
/@esbuild/linux-s390x@0.19.11:
@@ -2957,7 +2942,6 @@ packages:
cpu: [s390x]
os: [linux]
requiresBuild: true
- dev: true
optional: true
/@esbuild/linux-x64@0.19.11:
@@ -2966,7 +2950,6 @@ packages:
cpu: [x64]
os: [linux]
requiresBuild: true
- dev: true
optional: true
/@esbuild/netbsd-x64@0.19.11:
@@ -2975,7 +2958,6 @@ packages:
cpu: [x64]
os: [netbsd]
requiresBuild: true
- dev: true
optional: true
/@esbuild/openbsd-x64@0.19.11:
@@ -2984,7 +2966,6 @@ packages:
cpu: [x64]
os: [openbsd]
requiresBuild: true
- dev: true
optional: true
/@esbuild/sunos-x64@0.19.11:
@@ -2993,7 +2974,6 @@ packages:
cpu: [x64]
os: [sunos]
requiresBuild: true
- dev: true
optional: true
/@esbuild/win32-arm64@0.19.11:
@@ -3002,7 +2982,6 @@ packages:
cpu: [arm64]
os: [win32]
requiresBuild: true
- dev: true
optional: true
/@esbuild/win32-ia32@0.19.11:
@@ -3011,7 +2990,6 @@ packages:
cpu: [ia32]
os: [win32]
requiresBuild: true
- dev: true
optional: true
/@esbuild/win32-x64@0.19.11:
@@ -3020,7 +2998,6 @@ packages:
cpu: [x64]
os: [win32]
requiresBuild: true
- dev: true
optional: true
/@eslint-community/eslint-utils@4.4.0(eslint@8.56.0):
@@ -3097,8 +3074,8 @@ packages:
resolution: {integrity: sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==}
dev: true
- /@ibiz-template-plugin/ai-chat@0.0.5(cherry-markdown@0.8.26)(interactjs@1.10.20)(react@18.3.1):
- resolution: {integrity: sha512-qUt475dkAuZJ7vIeOjomVpKl5sH5GardKEVS36s2B001V5OUzcYWo51nhYR22cw0lyrPpkeB18A6k6MKD7K4yg==}
+ /@ibiz-template-plugin/ai-chat@0.0.27(cherry-markdown@0.8.58)(interactjs@1.10.20)(react@18.3.1)(vite@5.0.12):
+ resolution: {integrity: sha512-txW3mJlwHhz21enKiFNdVaLj0KN1FkPLefYL0WDG73UPIcEB/9Rs7teYaaFgBinjaI1tb88fvaZs9IRQdiqXlQ==}
peerDependencies:
cherry-markdown: ^0.8.26
interactjs: ^1.10.19
@@ -3106,17 +3083,19 @@ packages:
'@ibiz-template/scss-utils': 0.0.2
'@preact/signals': 1.2.1(preact@10.18.1)
autosize: 6.0.1
- cherry-markdown: 0.8.26
+ cherry-markdown: 0.8.58
interactjs: 1.10.20
path-browserify: 1.0.1
preact: 10.18.1
react-tabs: 6.0.2(react@18.3.1)
+ vite-plugin-libcss: 1.1.1(vite@5.0.12)
transitivePeerDependencies:
- react
+ - vite
dev: false
- /@ibiz-template-plugin/ai-chat@0.0.5(cherry-markdown@0.8.26)(interactjs@1.10.26)(react@18.3.1):
- resolution: {integrity: sha512-qUt475dkAuZJ7vIeOjomVpKl5sH5GardKEVS36s2B001V5OUzcYWo51nhYR22cw0lyrPpkeB18A6k6MKD7K4yg==}
+ /@ibiz-template-plugin/ai-chat@0.0.27(cherry-markdown@0.8.58)(interactjs@1.10.26)(react@18.3.1)(vite@5.0.12):
+ resolution: {integrity: sha512-txW3mJlwHhz21enKiFNdVaLj0KN1FkPLefYL0WDG73UPIcEB/9Rs7teYaaFgBinjaI1tb88fvaZs9IRQdiqXlQ==}
peerDependencies:
cherry-markdown: ^0.8.26
interactjs: ^1.10.19
@@ -3124,17 +3103,19 @@ packages:
'@ibiz-template/scss-utils': 0.0.2
'@preact/signals': 1.2.1(preact@10.18.1)
autosize: 6.0.1
- cherry-markdown: 0.8.26
+ cherry-markdown: 0.8.58
interactjs: 1.10.26
path-browserify: 1.0.1
preact: 10.18.1
react-tabs: 6.0.2(react@18.3.1)
+ vite-plugin-libcss: 1.1.1(vite@5.0.12)
transitivePeerDependencies:
- react
+ - vite
dev: false
- /@ibiz-template-plugin/bi-report@0.0.25(@ibiz-template/core@0.7.38-alpha.57)(@ibiz-template/runtime@0.7.38-alpha.57)(@ibiz-template/theme@0.7.0)(@ibiz/model-core@0.1.64)(axios@1.6.5)(dayjs@1.11.10)(element-plus@2.4.4)(qx-util@0.4.8)(ramda@0.29.1)(vue@3.3.8)(vuedraggable@4.1.0):
- resolution: {integrity: sha512-T7PCMJELJesH7Fk0WXP27qBF4iCkGZzcHedaLRVtp0sP5x3n6ekctaeHNKAcQfbNYJox9IoR8tHsABaO9HvMrA==}
+ /@ibiz-template-plugin/bi-report@0.0.26(@ibiz-template/core@0.7.40-alpha.7)(@ibiz-template/runtime@0.7.40-alpha.8)(@ibiz-template/theme@0.7.39)(@ibiz/model-core@0.1.71)(axios@1.6.5)(dayjs@1.11.10)(element-plus@2.4.4)(qx-util@0.4.8)(ramda@0.29.1)(vue@3.3.8)(vuedraggable@4.1.0):
+ resolution: {integrity: sha512-gDKx7eljqzqhbgDYNa2SiQme51aEJ1Wz3p8AhUyAHOsK0+N4SF94iOPknHRKsh4QUOwHy4/WnQvRNcMwnx0QqQ==}
peerDependencies:
'@ibiz-template/core': 0.7.35-alpha.1
'@ibiz-template/runtime': 0.7.35
@@ -3148,10 +3129,10 @@ packages:
vue: ^3.3.8
vuedraggable: ^4.1.0
dependencies:
- '@ibiz-template/core': 0.7.38-alpha.57(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
- '@ibiz-template/runtime': 0.7.38-alpha.57(@ibiz-template/core@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
- '@ibiz-template/theme': 0.7.0
- '@ibiz/model-core': 0.1.64
+ '@ibiz-template/core': 0.7.40-alpha.7(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ '@ibiz-template/runtime': 0.7.40-alpha.8(@ibiz-template/core@0.7.40-alpha.7)(@ibiz/model-core@0.1.71)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ '@ibiz-template/theme': 0.7.39
+ '@ibiz/model-core': 0.1.71
'@wangeditor/editor': 5.1.23
axios: 1.6.5
dayjs: 1.11.10
@@ -3165,13 +3146,13 @@ packages:
vuedraggable: 4.1.0(vue@3.3.8)
dev: false
- /@ibiz-template-plugin/data-view@0.0.3(@ibiz-template/core@0.7.38-alpha.57)(@ibiz-template/runtime@0.7.38-alpha.57)(@ibiz-template/theme@0.7.0)(@ibiz-template/vue3-util@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(axios@1.6.5)(dayjs@1.11.10)(element-plus@2.4.4)(qx-util@0.4.8)(ramda@0.29.1)(vue@3.3.8)(vuedraggable@4.1.0):
- resolution: {integrity: sha512-QU57VWdlrd+SqCLqO/+y/hHEhW8vFNDmTq8aiG1S3pBdAWAUM5+jlX0sI6Txni88Ml5zigJ2S6K75HEdcS+h+A==}
+ /@ibiz-template-plugin/data-view@0.0.4(@ibiz-template/core@0.7.40-alpha.7)(@ibiz-template/runtime@0.7.40-alpha.8)(@ibiz-template/theme@0.7.39)(@ibiz-template/vue3-util@0.7.40-alpha.8)(@ibiz/model-core@0.1.71)(axios@1.6.5)(dayjs@1.11.10)(element-plus@2.4.4)(qx-util@0.4.8)(ramda@0.29.1)(vue@3.3.8)(vuedraggable@4.1.0):
+ resolution: {integrity: sha512-Q4lHo/hLtSRZU/FxvUvmwUTHqq77OKtHguW7pKtOcAL9SNwhur4wbJVOalMrGlS1VajrMfn4Uqo2NE7NepfGmw==}
peerDependencies:
- '@ibiz-template/core': 0.7.32
- '@ibiz-template/runtime': 0.7.32
+ '@ibiz-template/core': 0.7.39
+ '@ibiz-template/runtime': 0.7.39
'@ibiz-template/theme': 0.7.0
- '@ibiz-template/vue3-util': 0.7.32
+ '@ibiz-template/vue3-util': 0.7.39
'@ibiz/model-core': ^0.1.50
axios: ^1.6.2
dayjs: ^1.11.10
@@ -3181,11 +3162,11 @@ packages:
vue: ^3.3.8
vuedraggable: ^4.1.0
dependencies:
- '@ibiz-template/core': 0.7.38-alpha.57(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
- '@ibiz-template/runtime': 0.7.38-alpha.57(@ibiz-template/core@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
- '@ibiz-template/theme': 0.7.0
- '@ibiz-template/vue3-util': 0.7.38-alpha.57(@ibiz-template/core@0.7.38-alpha.57)(@ibiz-template/runtime@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(dayjs@1.11.10)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)
- '@ibiz/model-core': 0.1.64
+ '@ibiz-template/core': 0.7.40-alpha.7(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ '@ibiz-template/runtime': 0.7.40-alpha.8(@ibiz-template/core@0.7.40-alpha.7)(@ibiz/model-core@0.1.71)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ '@ibiz-template/theme': 0.7.39
+ '@ibiz-template/vue3-util': 0.7.40-alpha.8(@ibiz-template/core@0.7.40-alpha.7)(@ibiz-template/runtime@0.7.40-alpha.8)(@ibiz/model-core@0.1.71)(dayjs@1.11.10)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)
+ '@ibiz/model-core': 0.1.71
axios: 1.6.5
dayjs: 1.11.10
echarts: 5.4.3
@@ -3230,8 +3211,8 @@ packages:
- universal-cookie
dev: false
- /@ibiz-template/cli-core@0.3.12(@types/node@20.11.5)(postcss@8.4.33)(typescript@5.3.3)(vue@3.3.8):
- resolution: {integrity: sha512-vscRMzNOqYaiHeT8SK/Lteoxa5WMsiu2rYbKSZkRnZCXV0ksw5juOFSX94MPtmvZx2hwhlJExmO1uuYg97V9lA==}
+ /@ibiz-template/cli-core@0.3.13(@types/node@20.11.5)(postcss@8.4.33)(vue@3.3.8):
+ resolution: {integrity: sha512-x5MmX+lKc7SJLy9FiWoKPKdlssGJt12dzquZ7STY++1H9KGYZsJDIviEVTjrd9QVeeVWrVljpYw/tFAiQtf8Eg==}
dependencies:
'@babel/core': 7.23.7
'@babel/preset-env': 7.23.7(@babel/core@7.23.7)
@@ -3242,8 +3223,8 @@ packages:
'@rollup/plugin-node-resolve': 15.2.3(rollup@4.9.3)
'@rollup/plugin-terser': 0.4.4(rollup@4.9.3)
'@rollup/pluginutils': 5.1.0(rollup@4.9.3)
- '@typescript-eslint/eslint-plugin': 6.19.1(@typescript-eslint/parser@6.19.1)(eslint@8.56.0)(typescript@5.3.3)
- '@typescript-eslint/parser': 6.19.1(eslint@8.56.0)(typescript@5.3.3)
+ '@typescript-eslint/eslint-plugin': 6.19.1(@typescript-eslint/parser@6.19.1)(eslint@8.56.0)(typescript@5.8.2)
+ '@typescript-eslint/parser': 6.19.1(eslint@8.56.0)(typescript@5.8.2)
'@vitejs/plugin-vue': 5.0.3(vite@5.0.12)(vue@3.3.8)
'@vitejs/plugin-vue-jsx': 3.1.0(vite@5.0.12)(vue@3.3.8)
chalk: 4.1.2
@@ -3274,7 +3255,7 @@ packages:
rollup-plugin-esbuild: 6.1.0(esbuild@0.19.11)(rollup@4.9.3)
rollup-plugin-scss: 4.0.0
sass: 1.70.0
- stylelint: 15.11.0(typescript@5.3.3)
+ stylelint: 15.11.0(typescript@5.8.2)
stylelint-config-ali: 1.1.0(postcss@8.4.33)(stylelint@15.11.0)
stylelint-config-prettier: 9.0.5(stylelint@15.11.0)
stylelint-config-recess-order: 4.4.0(stylelint@15.11.0)
@@ -3283,6 +3264,7 @@ packages:
stylelint-scss: 5.3.1(stylelint@15.11.0)
tar: 6.2.0
terser: 5.27.0
+ typescript: 5.8.2
vite: 5.0.12(@types/node@20.11.5)(sass@1.70.0)(terser@5.27.0)
transitivePeerDependencies:
- '@types/babel__core'
@@ -3297,15 +3279,14 @@ packages:
- stylus
- sugarss
- supports-color
- - typescript
- vue
dev: true
- /@ibiz-template/cli@0.3.12(@types/node@20.11.5)(postcss@8.4.33)(typescript@5.3.3)(vue@3.3.8):
- resolution: {integrity: sha512-46xnBUWCw2uZ2+yej1bCN+UcfWTh7ARPKcmbmAbAlVa0o3JISQ34s9Qq9nRiG5AiBolsaj9pQW86S570RauAMg==}
+ /@ibiz-template/cli@0.3.13(@types/node@20.11.5)(postcss@8.4.33)(vue@3.3.8):
+ resolution: {integrity: sha512-hzKjL7UUiLYvuvdksz0Z4Br1ox6mQYoLeeHuflT5vHhVoShZrwdjijnfhJmZdzgj7IBGcxcmVVWAmH3iMbhdPw==}
hasBin: true
dependencies:
- '@ibiz-template/cli-core': 0.3.12(@types/node@20.11.5)(postcss@8.4.33)(typescript@5.3.3)(vue@3.3.8)
+ '@ibiz-template/cli-core': 0.3.13(@types/node@20.11.5)(postcss@8.4.33)(vue@3.3.8)
commander: 11.1.0
consola: 3.2.3
fs-extra: 11.2.0
@@ -3322,12 +3303,11 @@ packages:
- stylus
- sugarss
- supports-color
- - typescript
- vue
dev: true
- /@ibiz-template/core@0.7.38-alpha.57(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1):
- resolution: {integrity: sha512-9iNbP8A/7ojRGoifYpK15Yp/Rg0p7j/tD4jvIOnoNRnRhyIgqo4L7QkUazey3Rjihf1ZQZtG2fZi+cfIwO4kig==}
+ /@ibiz-template/core@0.7.40-alpha.7(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1):
+ resolution: {integrity: sha512-GiHb50IOB8GDIEgxWajSHPbe2lb6qa7XQi2z2hWZ7qY8jSYjdSJ10AzK644jLhXc+rDIVhR2pPV6IwFI0ozBOw==}
peerDependencies:
axios: ^1.4.0
lodash-es: ^4.17.21
@@ -3345,8 +3325,8 @@ packages:
ramda: 0.29.1
dev: false
- /@ibiz-template/devtool@0.0.4(@ibiz-template/core@0.7.38-alpha.57)(@ibiz-template/model-helper@0.7.38-alpha.57)(@ibiz-template/runtime@0.7.38-alpha.57)(@ibiz-template/theme@0.7.0)(@ibiz-template/vue3-util@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(@monaco-editor/loader@1.4.0)(async-validator@4.2.5)(axios@1.6.5)(dayjs@1.11.10)(lodash-es@4.17.21)(monaco-editor@0.45.0)(pluralize@8.0.0)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)(vuedraggable@4.1.0):
- resolution: {integrity: sha512-sdbEB9XB0CX3+/co3Gx6W//gH8uXf2045DfLYDZmzmhsZDntaKI7ZLOyrvkx0UAcNjYcTSFGCy2gWRqRxQ6EKA==}
+ /@ibiz-template/devtool@0.0.10(@ibiz-template/core@0.7.40-alpha.7)(@ibiz-template/model-helper@0.7.40-alpha.8)(@ibiz-template/runtime@0.7.40-alpha.8)(@ibiz-template/theme@0.7.39)(@ibiz-template/vue3-util@0.7.40-alpha.8)(@ibiz/model-core@0.1.71)(@monaco-editor/loader@1.4.0)(async-validator@4.2.5)(axios@1.6.5)(dayjs@1.11.10)(lodash-es@4.17.21)(monaco-editor@0.45.0)(pluralize@8.0.0)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)(vuedraggable@4.1.0):
+ resolution: {integrity: sha512-LMEG7dSWFHTBIrvPpo5xpz7arGHVix1eXL7LGyFvqPBVLS5ycR0fZqAnL2VTXRg16YXcp94ZEJdlnj8dRGHQoA==}
peerDependencies:
'@ibiz-template/core': ^0.6.2
'@ibiz-template/model-helper': ^0.6.2
@@ -3368,12 +3348,12 @@ packages:
vue-router: ^4.2.5
vuedraggable: ^4.1.0
dependencies:
- '@ibiz-template/core': 0.7.38-alpha.57(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
- '@ibiz-template/model-helper': 0.7.38-alpha.57(@ibiz-template/runtime@0.7.38-alpha.57)(ramda@0.29.1)
- '@ibiz-template/runtime': 0.7.38-alpha.57(@ibiz-template/core@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
- '@ibiz-template/theme': 0.7.0
- '@ibiz-template/vue3-util': 0.7.38-alpha.57(@ibiz-template/core@0.7.38-alpha.57)(@ibiz-template/runtime@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(dayjs@1.11.10)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)
- '@ibiz/model-core': 0.1.64
+ '@ibiz-template/core': 0.7.40-alpha.7(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ '@ibiz-template/model-helper': 0.7.40-alpha.8(@ibiz-template/runtime@0.7.40-alpha.8)(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ '@ibiz-template/runtime': 0.7.40-alpha.8(@ibiz-template/core@0.7.40-alpha.7)(@ibiz/model-core@0.1.71)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ '@ibiz-template/theme': 0.7.39
+ '@ibiz-template/vue3-util': 0.7.40-alpha.8(@ibiz-template/core@0.7.40-alpha.7)(@ibiz-template/runtime@0.7.40-alpha.8)(@ibiz/model-core@0.1.71)(dayjs@1.11.10)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)
+ '@ibiz/model-core': 0.1.71
'@imengyu/vue3-context-menu': 1.3.6
'@monaco-editor/loader': 1.4.0(monaco-editor@0.45.0)
async-validator: 4.2.5
@@ -3393,20 +3373,26 @@ packages:
vuedraggable: 4.1.0(vue@3.3.8)
dev: false
- /@ibiz-template/model-helper@0.7.38-alpha.57(@ibiz-template/runtime@0.7.38-alpha.57)(ramda@0.29.1):
- resolution: {integrity: sha512-X7mSL6vSGWX0od+F1xiWJRBOvh8+Kl0dA38ooHusLt6FADNq1CdrbO3OeETB/qy6GB93DNaQdMUatGCNp/sJSQ==}
+ /@ibiz-template/model-helper@0.7.40-alpha.8(@ibiz-template/runtime@0.7.40-alpha.8)(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1):
+ resolution: {integrity: sha512-YOdG3Nx+ipwM+YuejcSFF9OxMhxZxQWkrXKikdBe0DeO8GW8SUvF08AiPu0Mp37/KHpbEPl90ihnj4cn15Fjcg==}
peerDependencies:
'@ibiz-template/runtime': ^0.6.0
ramda: ^0.29.0
dependencies:
- '@ibiz-template/runtime': 0.7.38-alpha.57(@ibiz-template/core@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
- '@ibiz/model-core': 0.1.64
- '@ibiz/rt-model-api': 0.2.59
+ '@ibiz-template/core': 0.7.40-alpha.7(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ '@ibiz-template/runtime': 0.7.40-alpha.8(@ibiz-template/core@0.7.40-alpha.7)(@ibiz/model-core@0.1.71)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ '@ibiz/model-core': 0.1.71
+ '@ibiz/rt-model-api': 0.2.66
pluralize: 8.0.0
ramda: 0.29.1
+ transitivePeerDependencies:
+ - axios
+ - lodash-es
+ - qs
+ - qx-util
dev: false
- /@ibiz-template/runtime@0.6.18(@ibiz-template/core@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1):
+ /@ibiz-template/runtime@0.6.18(@ibiz-template/core@0.7.40-alpha.7)(@ibiz/model-core@0.1.71)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1):
resolution: {integrity: sha512-aL3CxA0kHAoNfS6N+3dYyGzmX2hp97eu5YFH58HU5xmehywp7XlRsCgu/SK64SGhHeywS/fKg5LGFnbJmqu6SQ==}
peerDependencies:
'@ibiz-template/core': ^0.6.0
@@ -3422,8 +3408,8 @@ packages:
qx-util: ^0.4.8
ramda: ^0.29.0
dependencies:
- '@ibiz-template/core': 0.7.38-alpha.57(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
- '@ibiz/model-core': 0.1.64
+ '@ibiz-template/core': 0.7.40-alpha.7(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ '@ibiz/model-core': 0.1.71
animejs: 3.2.2
async-validator: 4.2.5
dayjs: 1.11.10
@@ -3437,11 +3423,11 @@ packages:
ramda: 0.29.1
dev: false
- /@ibiz-template/runtime@0.7.38-alpha.57(@ibiz-template/core@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1):
- resolution: {integrity: sha512-AJnZoouYx1x+PWVJFqweapXCFWHBjzKWzrLr/Bk4JeQryJD6m70P/n5nC4JlgA7rYpjK7Z1JkHw1Y1gEZ9BbYA==}
+ /@ibiz-template/runtime@0.7.40-alpha.8(@ibiz-template/core@0.7.40-alpha.7)(@ibiz/model-core@0.1.71)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1):
+ resolution: {integrity: sha512-pax1O4B7gUpiSrH4pNAnbmmhtlMk4TvyN69Tjt+IIv/o+i1GihIIeKZPKEqb5fEO7QtIZuiplQ18KRkhgQJutw==}
peerDependencies:
'@ibiz-template/core': ^0.6.0
- '@ibiz/model-core': ^0.1.64
+ '@ibiz/model-core': ^0.1.71
async-validator: ^4.2.5
dayjs: ^1.11.7
echarts: ^5.4.3
@@ -3453,8 +3439,8 @@ packages:
qx-util: ^0.4.8
ramda: ^0.29.0
dependencies:
- '@ibiz-template/core': 0.7.38-alpha.57(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
- '@ibiz/model-core': 0.1.64
+ '@ibiz-template/core': 0.7.40-alpha.7(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ '@ibiz/model-core': 0.1.71
animejs: 3.2.2
async-validator: 4.2.5
dayjs: 1.11.10
@@ -3476,12 +3462,12 @@ packages:
resolution: {integrity: sha512-zjX6HPijRjz3WV2EuU6yvgk/QpyJO8w0wCE0hyV4CbsTfk4pUp/1Iy7eRlCQHkCDdyOKbdpwEJu6jpIS+s9rjA==}
dev: false
- /@ibiz-template/theme@0.7.0:
- resolution: {integrity: sha512-wk/FeDulB8jRhH4iIznBH7cw1fQUVpM+EG7mWbe7MA8c36HbUJkYlODldoVdgUho/b5imTCAQC+b9m5J+RTKKw==}
+ /@ibiz-template/theme@0.7.39:
+ resolution: {integrity: sha512-jlZUaYJrzLDULbANGaxFXwbf+0uwJsC5bSRDLjM8A6wCqv7gC+V0Z/x8gSy2wsrcy0EwaRSd2gZ2Q5eEhgDqag==}
dev: false
- /@ibiz-template/vue3-components@0.7.38-alpha.56(@floating-ui/dom@1.5.3)(@ibiz-template/core@0.7.38-alpha.57)(@ibiz-template/model-helper@0.7.38-alpha.57)(@ibiz-template/runtime@0.7.38-alpha.57)(@ibiz-template/theme@0.7.0)(@ibiz-template/vue3-util@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(@imengyu/vue3-context-menu@1.3.6)(@monaco-editor/loader@1.4.0)(@wangeditor/editor-for-vue@5.1.12)(@wangeditor/editor@5.1.23)(async-validator@4.2.5)(cherry-markdown@0.8.26)(dayjs@1.11.10)(echarts@5.4.3)(element-plus@2.4.4)(handlebars@4.7.8)(lodash-es@4.17.21)(monaco-editor@0.45.0)(mqtt@2.18.9)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(react@18.3.1)(vue-i18n@9.6.5)(vue-router@4.2.5)(vue@3.3.8)(vuedraggable@4.1.0):
- resolution: {integrity: sha512-8lHIOBIcPoQMTGr8yd+EI4DEG5N5O2A2LPZXPs95Xxk8H2XKXq9nRWXfjXLQpalbSgxnPMvYrHVhmFfIVoPJHg==}
+ /@ibiz-template/vue3-components@0.7.40-alpha.9(@floating-ui/dom@1.5.3)(@ibiz-template/core@0.7.40-alpha.7)(@ibiz-template/model-helper@0.7.40-alpha.8)(@ibiz-template/runtime@0.7.40-alpha.8)(@ibiz-template/theme@0.7.39)(@ibiz-template/vue3-util@0.7.40-alpha.8)(@ibiz/model-core@0.1.71)(@imengyu/vue3-context-menu@1.3.6)(@monaco-editor/loader@1.4.0)(@wangeditor/editor-for-vue@5.1.12)(@wangeditor/editor@5.1.23)(async-validator@4.2.5)(cherry-markdown@0.8.58)(dayjs@1.11.10)(echarts@5.4.3)(element-plus@2.4.4)(handlebars@4.7.8)(lodash-es@4.17.21)(monaco-editor@0.45.0)(mqtt@2.18.9)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(react@18.3.1)(vite@5.0.12)(vue-i18n@9.6.5)(vue-router@4.2.5)(vue@3.3.8)(vuedraggable@4.1.0):
+ resolution: {integrity: sha512-InHYCViMyQ+PJQYieLIKcfOb+aXS6JAB1npKyHSSOxdjhkl58StZ7B0sz/II34VYyBN5Lan4Szx9BgfBDXoPUQ==}
peerDependencies:
'@floating-ui/dom': ^1.5.1
'@ibiz-template/core': ^0.7.0
@@ -3489,7 +3475,7 @@ packages:
'@ibiz-template/runtime': ^0.7.0
'@ibiz-template/theme': ^0.7.0
'@ibiz-template/vue3-util': ^0.7.0
- '@ibiz/model-core': ^0.1.64
+ '@ibiz/model-core': ^0.1.71
'@imengyu/vue3-context-menu': ^1.3.3
'@monaco-editor/loader': ^1.3.3
'@wangeditor/editor': ^5.1.23
@@ -3511,25 +3497,25 @@ packages:
vuedraggable: ^4.1.0
dependencies:
'@floating-ui/dom': 1.5.3
- '@ibiz-template-plugin/ai-chat': 0.0.5(cherry-markdown@0.8.26)(interactjs@1.10.26)(react@18.3.1)
- '@ibiz-template-plugin/bi-report': 0.0.25(@ibiz-template/core@0.7.38-alpha.57)(@ibiz-template/runtime@0.7.38-alpha.57)(@ibiz-template/theme@0.7.0)(@ibiz/model-core@0.1.64)(axios@1.6.5)(dayjs@1.11.10)(element-plus@2.4.4)(qx-util@0.4.8)(ramda@0.29.1)(vue@3.3.8)(vuedraggable@4.1.0)
- '@ibiz-template-plugin/data-view': 0.0.3(@ibiz-template/core@0.7.38-alpha.57)(@ibiz-template/runtime@0.7.38-alpha.57)(@ibiz-template/theme@0.7.0)(@ibiz-template/vue3-util@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(axios@1.6.5)(dayjs@1.11.10)(element-plus@2.4.4)(qx-util@0.4.8)(ramda@0.29.1)(vue@3.3.8)(vuedraggable@4.1.0)
+ '@ibiz-template-plugin/ai-chat': 0.0.27(cherry-markdown@0.8.58)(interactjs@1.10.26)(react@18.3.1)(vite@5.0.12)
+ '@ibiz-template-plugin/bi-report': 0.0.26(@ibiz-template/core@0.7.40-alpha.7)(@ibiz-template/runtime@0.7.40-alpha.8)(@ibiz-template/theme@0.7.39)(@ibiz/model-core@0.1.71)(axios@1.6.5)(dayjs@1.11.10)(element-plus@2.4.4)(qx-util@0.4.8)(ramda@0.29.1)(vue@3.3.8)(vuedraggable@4.1.0)
+ '@ibiz-template-plugin/data-view': 0.0.4(@ibiz-template/core@0.7.40-alpha.7)(@ibiz-template/runtime@0.7.40-alpha.8)(@ibiz-template/theme@0.7.39)(@ibiz-template/vue3-util@0.7.40-alpha.8)(@ibiz/model-core@0.1.71)(axios@1.6.5)(dayjs@1.11.10)(element-plus@2.4.4)(qx-util@0.4.8)(ramda@0.29.1)(vue@3.3.8)(vuedraggable@4.1.0)
'@ibiz-template-plugin/gantt': 0.1.8-alpha.92(async-validator@4.2.5)(axios@1.6.5)(dayjs@1.11.10)(lodash-es@4.17.21)(nprogress@0.2.0)(vue@3.3.8)
- '@ibiz-template/core': 0.7.38-alpha.57(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
- '@ibiz-template/devtool': 0.0.4(@ibiz-template/core@0.7.38-alpha.57)(@ibiz-template/model-helper@0.7.38-alpha.57)(@ibiz-template/runtime@0.7.38-alpha.57)(@ibiz-template/theme@0.7.0)(@ibiz-template/vue3-util@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(@monaco-editor/loader@1.4.0)(async-validator@4.2.5)(axios@1.6.5)(dayjs@1.11.10)(lodash-es@4.17.21)(monaco-editor@0.45.0)(pluralize@8.0.0)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)(vuedraggable@4.1.0)
- '@ibiz-template/model-helper': 0.7.38-alpha.57(@ibiz-template/runtime@0.7.38-alpha.57)(ramda@0.29.1)
- '@ibiz-template/runtime': 0.7.38-alpha.57(@ibiz-template/core@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
- '@ibiz-template/theme': 0.7.0
- '@ibiz-template/vue3-util': 0.7.38-alpha.57(@ibiz-template/core@0.7.38-alpha.57)(@ibiz-template/runtime@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(dayjs@1.11.10)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)
- '@ibiz-template/web-theme': 1.1.28-alpha.2(@ibiz-template/core@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
- '@ibiz/model-core': 0.1.64
+ '@ibiz-template/core': 0.7.40-alpha.7(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ '@ibiz-template/devtool': 0.0.10(@ibiz-template/core@0.7.40-alpha.7)(@ibiz-template/model-helper@0.7.40-alpha.8)(@ibiz-template/runtime@0.7.40-alpha.8)(@ibiz-template/theme@0.7.39)(@ibiz-template/vue3-util@0.7.40-alpha.8)(@ibiz/model-core@0.1.71)(@monaco-editor/loader@1.4.0)(async-validator@4.2.5)(axios@1.6.5)(dayjs@1.11.10)(lodash-es@4.17.21)(monaco-editor@0.45.0)(pluralize@8.0.0)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)(vuedraggable@4.1.0)
+ '@ibiz-template/model-helper': 0.7.40-alpha.8(@ibiz-template/runtime@0.7.40-alpha.8)(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ '@ibiz-template/runtime': 0.7.40-alpha.8(@ibiz-template/core@0.7.40-alpha.7)(@ibiz/model-core@0.1.71)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ '@ibiz-template/theme': 0.7.39
+ '@ibiz-template/vue3-util': 0.7.40-alpha.8(@ibiz-template/core@0.7.40-alpha.7)(@ibiz-template/runtime@0.7.40-alpha.8)(@ibiz/model-core@0.1.71)(dayjs@1.11.10)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8)
+ '@ibiz-template/web-theme': 3.0.0(@ibiz-template/core@0.7.40-alpha.7)(@ibiz/model-core@0.1.71)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ '@ibiz/model-core': 0.1.71
'@imengyu/vue3-context-menu': 1.3.6
'@monaco-editor/loader': 1.4.0(monaco-editor@0.45.0)
'@wangeditor/editor': 5.1.23
'@wangeditor/editor-for-vue': 5.1.12(@wangeditor/editor@5.1.23)(vue@3.3.8)
async-validator: 4.2.5
axios: 1.6.5
- cherry-markdown: 0.8.26
+ cherry-markdown: 0.8.58
dayjs: 1.11.10
echarts: 5.4.3
element-plus: 2.4.4(vue@3.3.8)
@@ -3564,14 +3550,15 @@ packages:
- qrcode
- react
- universal-cookie
+ - vite
dev: false
- /@ibiz-template/vue3-util@0.7.38-alpha.57(@ibiz-template/core@0.7.38-alpha.57)(@ibiz-template/runtime@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(dayjs@1.11.10)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8):
- resolution: {integrity: sha512-930pIgE4qGYz8RAJ6+zKo2/c+X4Got2Sl7FRoCcUanDeQTzQGsBrjMGaDR9y6v+tFeRWEadudZGOQH3Djrp0AQ==}
+ /@ibiz-template/vue3-util@0.7.40-alpha.8(@ibiz-template/core@0.7.40-alpha.7)(@ibiz-template/runtime@0.7.40-alpha.8)(@ibiz/model-core@0.1.71)(dayjs@1.11.10)(path-browserify@1.0.1)(pinia@2.1.7)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)(vue-router@4.2.5)(vue@3.3.8):
+ resolution: {integrity: sha512-SWvvaRpov5U5eAOy9NpU0VM3zewVCffGkFWYlow1hIERwk7dhFoNG3svNR/4XHnLWLq1A4O3Sdl0G5evTwhWmg==}
peerDependencies:
'@ibiz-template/core': ^0.6.0
'@ibiz-template/runtime': ^0.6.0
- '@ibiz/model-core': ^0.1.64
+ '@ibiz/model-core': ^0.1.71
dayjs: ^1.11.10
path-browserify: ^1.0.1
pinia: ^2.1.7
@@ -3581,9 +3568,9 @@ packages:
vue: ^3.3.8
vue-router: ^4.2.4
dependencies:
- '@ibiz-template/core': 0.7.38-alpha.57(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
- '@ibiz-template/runtime': 0.7.38-alpha.57(@ibiz-template/core@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
- '@ibiz/model-core': 0.1.64
+ '@ibiz-template/core': 0.7.40-alpha.7(axios@1.6.5)(lodash-es@4.17.21)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ '@ibiz-template/runtime': 0.7.40-alpha.8(@ibiz-template/core@0.7.40-alpha.7)(@ibiz/model-core@0.1.71)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ '@ibiz/model-core': 0.1.71
dayjs: 1.11.10
path-browserify: 1.0.1
pinia: 2.1.7(typescript@5.3.3)(vue@3.3.8)
@@ -3594,10 +3581,10 @@ packages:
vue-router: 4.2.5(vue@3.3.8)
dev: false
- /@ibiz-template/web-theme@1.1.28-alpha.2(@ibiz-template/core@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1):
- resolution: {integrity: sha512-I8A9kJ6N4BM9XymSqm/tcovMKplgZOMYF1ecY+XzXz52kpLGEIuWT2fhgk/e089ie4FT+Bd1PuufeL1sYtO0hQ==}
+ /@ibiz-template/web-theme@3.0.0(@ibiz-template/core@0.7.40-alpha.7)(@ibiz/model-core@0.1.71)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1):
+ resolution: {integrity: sha512-LPyiaKu/z+xmhJYKquBIl8c19I3cUBEDF2b50Fob6PPesiDVKXQQATpbl+dcbZ+RRK+QYpRUtXRFBn1tnzXijQ==}
dependencies:
- '@ibiz-template/runtime': 0.6.18(@ibiz-template/core@0.7.38-alpha.57)(@ibiz/model-core@0.1.64)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
+ '@ibiz-template/runtime': 0.6.18(@ibiz-template/core@0.7.40-alpha.7)(@ibiz/model-core@0.1.71)(async-validator@4.2.5)(dayjs@1.11.10)(echarts@5.4.3)(handlebars@4.7.8)(lodash-es@4.17.21)(mqtt@2.18.9)(path-browserify@1.0.1)(qs@6.11.2)(qx-util@0.4.8)(ramda@0.29.1)
transitivePeerDependencies:
- '@ibiz-template/core'
- '@ibiz/model-core'
@@ -3613,12 +3600,12 @@ packages:
- ramda
dev: false
- /@ibiz/model-core@0.1.64:
- resolution: {integrity: sha512-n1f4+050SA/gNd+iO68BxDc9pfiT5bDUXTmn4ET6jJBko2WeGLYY6tHCgwzwwfkOEAkhOGKHzUbZykrgr7QX5A==}
+ /@ibiz/model-core@0.1.71:
+ resolution: {integrity: sha512-JkfDU36ixjSVTn/IkL22i2kVToQd4lQ4Vw2q7ba5Yt6qg5n5OnJv/inGERFkoZlNKl6MI6T4DkGo97KCiZsWXg==}
dev: false
- /@ibiz/rt-model-api@0.2.59:
- resolution: {integrity: sha512-NaVun4/BFEwMchthM5ZN1Dc6rVY/+cZfDcg4S1J+5AWaWuOe7yeBOc6/2KHYl8kAQuVbjhjDZ1lt3M4FbF4QrA==}
+ /@ibiz/rt-model-api@0.2.66:
+ resolution: {integrity: sha512-e0HkkGg7sEa6qzIR3i8JGzEe23lyGGagZ9ptaTLtQei+0LiWuqoEhj9Nj/y+E9iydEochXRzcY610i3CPSM01A==}
dev: false
/@imengyu/vue3-context-menu@1.3.6:
@@ -3836,24 +3823,20 @@ packages:
'@jridgewell/set-array': 1.1.2
'@jridgewell/sourcemap-codec': 1.4.15
'@jridgewell/trace-mapping': 0.3.19
- dev: true
/@jridgewell/resolve-uri@3.1.1:
resolution: {integrity: sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==}
engines: {node: '>=6.0.0'}
- dev: true
/@jridgewell/set-array@1.1.2:
resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==}
engines: {node: '>=6.0.0'}
- dev: true
/@jridgewell/source-map@0.3.5:
resolution: {integrity: sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==}
dependencies:
'@jridgewell/gen-mapping': 0.3.3
'@jridgewell/trace-mapping': 0.3.19
- dev: true
/@jridgewell/sourcemap-codec@1.4.15:
resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==}
@@ -3863,7 +3846,6 @@ packages:
dependencies:
'@jridgewell/resolve-uri': 3.1.1
'@jridgewell/sourcemap-codec': 1.4.15
- dev: true
/@microsoft/fetch-event-source@2.0.1:
resolution: {integrity: sha512-W6CLUJ2eBMw3Rec70qrsEW0jOm/3twwJv21mrmj2yORiaVmVYGS4sSS5yUwvQc1ZlDLYGPnClVWmUUMagKNsfA==}
@@ -4138,7 +4120,6 @@ packages:
cpu: [arm]
os: [android]
requiresBuild: true
- dev: true
optional: true
/@rollup/rollup-android-arm64@4.9.3:
@@ -4146,7 +4127,6 @@ packages:
cpu: [arm64]
os: [android]
requiresBuild: true
- dev: true
optional: true
/@rollup/rollup-darwin-arm64@4.9.3:
@@ -4154,7 +4134,6 @@ packages:
cpu: [arm64]
os: [darwin]
requiresBuild: true
- dev: true
optional: true
/@rollup/rollup-darwin-x64@4.9.3:
@@ -4162,7 +4141,6 @@ packages:
cpu: [x64]
os: [darwin]
requiresBuild: true
- dev: true
optional: true
/@rollup/rollup-linux-arm-gnueabihf@4.9.3:
@@ -4170,7 +4148,6 @@ packages:
cpu: [arm]
os: [linux]
requiresBuild: true
- dev: true
optional: true
/@rollup/rollup-linux-arm64-gnu@4.9.3:
@@ -4179,7 +4156,6 @@ packages:
os: [linux]
libc: [glibc]
requiresBuild: true
- dev: true
optional: true
/@rollup/rollup-linux-arm64-musl@4.9.3:
@@ -4188,7 +4164,6 @@ packages:
os: [linux]
libc: [musl]
requiresBuild: true
- dev: true
optional: true
/@rollup/rollup-linux-riscv64-gnu@4.9.3:
@@ -4197,7 +4172,6 @@ packages:
os: [linux]
libc: [glibc]
requiresBuild: true
- dev: true
optional: true
/@rollup/rollup-linux-x64-gnu@4.9.3:
@@ -4206,7 +4180,6 @@ packages:
os: [linux]
libc: [glibc]
requiresBuild: true
- dev: true
optional: true
/@rollup/rollup-linux-x64-musl@4.9.3:
@@ -4215,7 +4188,6 @@ packages:
os: [linux]
libc: [musl]
requiresBuild: true
- dev: true
optional: true
/@rollup/rollup-win32-arm64-msvc@4.9.3:
@@ -4223,7 +4195,6 @@ packages:
cpu: [arm64]
os: [win32]
requiresBuild: true
- dev: true
optional: true
/@rollup/rollup-win32-ia32-msvc@4.9.3:
@@ -4231,7 +4202,6 @@ packages:
cpu: [ia32]
os: [win32]
requiresBuild: true
- dev: true
optional: true
/@rollup/rollup-win32-x64-msvc@4.9.3:
@@ -4239,7 +4209,6 @@ packages:
cpu: [x64]
os: [win32]
requiresBuild: true
- dev: true
optional: true
/@sigstore/bundle@2.1.0:
@@ -4326,10 +4295,10 @@ packages:
/@types/estree@1.0.2:
resolution: {integrity: sha512-VeiPZ9MMwXjO32/Xu7+OwflfmeoRwkE/qzndw42gGtgJwZopBnzy2gD//NN1+go1mADzkDcqf/KnFRSjTJ8xJA==}
+ dev: true
/@types/estree@1.0.5:
resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==}
- dev: true
/@types/event-emitter@0.3.3:
resolution: {integrity: sha512-UfnOK1pIxO7P+EgPRZXD9jMpimd8QEFcEZ5R67R1UhGbv4zghU5+NE7U8M8G9H5Jc8FI51rqDWQs6FtUfq2e/Q==}
@@ -4370,7 +4339,6 @@ packages:
resolution: {integrity: sha512-g557vgQjUUfN76MZAN/dt1z3dzcUsimuysco0KeluHgrPdJXkP/XdAURgyO2W9fZWHRtRBiVKzKn8vyOAwlG+w==}
dependencies:
undici-types: 5.26.5
- dev: true
/@types/normalize-package-data@2.4.2:
resolution: {integrity: sha512-lqa4UEhhv/2sjjIQgjX8B+RBjj47eo0mzGasklVJ78UKGQY1r0VpB9XHDaZZO9qzEFDdy4MrXLuEaSmPrPSe/A==}
@@ -4409,7 +4377,7 @@ packages:
/@types/tern@0.23.5:
resolution: {integrity: sha512-POau56wDk3TQ0mQ0qG7XDzv96U5whSENZ9lC0htDvEH+9YUREo+J2U+apWcVRgR2UydEE70JXZo44goG+akTNQ==}
dependencies:
- '@types/estree': 1.0.2
+ '@types/estree': 1.0.5
dev: false
/@types/trusted-types@2.0.4:
@@ -4453,6 +4421,35 @@ packages:
- supports-color
dev: true
+ /@typescript-eslint/eslint-plugin@6.19.1(@typescript-eslint/parser@6.19.1)(eslint@8.56.0)(typescript@5.8.2):
+ resolution: {integrity: sha512-roQScUGFruWod9CEyoV5KlCYrubC/fvG8/1zXuT0WTcxX87GnMMmnksMwSg99lo1xiKrBzw2icsJPMAw1OtKxg==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ peerDependencies:
+ '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha
+ eslint: ^7.0.0 || ^8.0.0
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@eslint-community/regexpp': 4.9.1
+ '@typescript-eslint/parser': 6.19.1(eslint@8.56.0)(typescript@5.8.2)
+ '@typescript-eslint/scope-manager': 6.19.1
+ '@typescript-eslint/type-utils': 6.19.1(eslint@8.56.0)(typescript@5.8.2)
+ '@typescript-eslint/utils': 6.19.1(eslint@8.56.0)(typescript@5.8.2)
+ '@typescript-eslint/visitor-keys': 6.19.1
+ debug: 4.3.4
+ eslint: 8.56.0
+ graphemer: 1.4.0
+ ignore: 5.3.0
+ natural-compare: 1.4.0
+ semver: 7.5.4
+ ts-api-utils: 1.0.3(typescript@5.8.2)
+ typescript: 5.8.2
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
/@typescript-eslint/parser@6.19.1(eslint@8.56.0)(typescript@5.3.3):
resolution: {integrity: sha512-WEfX22ziAh6pRE9jnbkkLGp/4RhTpffr2ZK5bJ18M8mIfA8A+k97U9ZyaXCEJRlmMHh7R9MJZWXp/r73DzINVQ==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -4474,6 +4471,27 @@ packages:
- supports-color
dev: true
+ /@typescript-eslint/parser@6.19.1(eslint@8.56.0)(typescript@5.8.2):
+ resolution: {integrity: sha512-WEfX22ziAh6pRE9jnbkkLGp/4RhTpffr2ZK5bJ18M8mIfA8A+k97U9ZyaXCEJRlmMHh7R9MJZWXp/r73DzINVQ==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ peerDependencies:
+ eslint: ^7.0.0 || ^8.0.0
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@typescript-eslint/scope-manager': 6.19.1
+ '@typescript-eslint/types': 6.19.1
+ '@typescript-eslint/typescript-estree': 6.19.1(typescript@5.8.2)
+ '@typescript-eslint/visitor-keys': 6.19.1
+ debug: 4.3.4
+ eslint: 8.56.0
+ typescript: 5.8.2
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
/@typescript-eslint/scope-manager@6.19.1:
resolution: {integrity: sha512-4CdXYjKf6/6aKNMSly/BP4iCSOpvMmqtDzRtqFyyAae3z5kkqEjKndR5vDHL8rSuMIIWP8u4Mw4VxLyxZW6D5w==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -4502,6 +4520,26 @@ packages:
- supports-color
dev: true
+ /@typescript-eslint/type-utils@6.19.1(eslint@8.56.0)(typescript@5.8.2):
+ resolution: {integrity: sha512-0vdyld3ecfxJuddDjACUvlAeYNrHP/pDeQk2pWBR2ESeEzQhg52DF53AbI9QCBkYE23lgkhLCZNkHn2hEXXYIg==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ peerDependencies:
+ eslint: ^7.0.0 || ^8.0.0
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@typescript-eslint/typescript-estree': 6.19.1(typescript@5.8.2)
+ '@typescript-eslint/utils': 6.19.1(eslint@8.56.0)(typescript@5.8.2)
+ debug: 4.3.4
+ eslint: 8.56.0
+ ts-api-utils: 1.0.3(typescript@5.8.2)
+ typescript: 5.8.2
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
/@typescript-eslint/types@6.19.1:
resolution: {integrity: sha512-6+bk6FEtBhvfYvpHsDgAL3uo4BfvnTnoge5LrrCj2eJN8g3IJdLTD4B/jK3Q6vo4Ql/Hoip9I8aB6fF+6RfDqg==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -4529,6 +4567,28 @@ packages:
- supports-color
dev: true
+ /@typescript-eslint/typescript-estree@6.19.1(typescript@5.8.2):
+ resolution: {integrity: sha512-aFdAxuhzBFRWhy+H20nYu19+Km+gFfwNO4TEqyszkMcgBDYQjmPJ61erHxuT2ESJXhlhrO7I5EFIlZ+qGR8oVA==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ peerDependencies:
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ '@typescript-eslint/types': 6.19.1
+ '@typescript-eslint/visitor-keys': 6.19.1
+ debug: 4.3.4
+ globby: 11.1.0
+ is-glob: 4.0.3
+ minimatch: 9.0.3
+ semver: 7.5.4
+ ts-api-utils: 1.0.3(typescript@5.8.2)
+ typescript: 5.8.2
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
+
/@typescript-eslint/utils@6.19.1(eslint@8.56.0)(typescript@5.3.3):
resolution: {integrity: sha512-JvjfEZuP5WoMqwh9SPAPDSHSg9FBHHGhjPugSRxu5jMfjvBpq5/sGTD+9M9aQ5sh6iJ8AY/Kk/oUYVEMAPwi7w==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -4548,6 +4608,25 @@ packages:
- typescript
dev: true
+ /@typescript-eslint/utils@6.19.1(eslint@8.56.0)(typescript@5.8.2):
+ resolution: {integrity: sha512-JvjfEZuP5WoMqwh9SPAPDSHSg9FBHHGhjPugSRxu5jMfjvBpq5/sGTD+9M9aQ5sh6iJ8AY/Kk/oUYVEMAPwi7w==}
+ engines: {node: ^16.0.0 || >=18.0.0}
+ peerDependencies:
+ eslint: ^7.0.0 || ^8.0.0
+ dependencies:
+ '@eslint-community/eslint-utils': 4.4.0(eslint@8.56.0)
+ '@types/json-schema': 7.0.13
+ '@types/semver': 7.5.3
+ '@typescript-eslint/scope-manager': 6.19.1
+ '@typescript-eslint/types': 6.19.1
+ '@typescript-eslint/typescript-estree': 6.19.1(typescript@5.8.2)
+ eslint: 8.56.0
+ semver: 7.5.4
+ transitivePeerDependencies:
+ - supports-color
+ - typescript
+ dev: true
+
/@typescript-eslint/visitor-keys@6.19.1:
resolution: {integrity: sha512-gkdtIO+xSO/SmI0W68DBg4u1KElmIUo3vXzgHyGPs6cxgB0sa3TlptRAAE0hUY1hM6FcDKEv7aIwiTGm76cXfQ==}
engines: {node: ^16.0.0 || >=18.0.0}
@@ -5155,6 +5234,7 @@ packages:
/abab@2.0.6:
resolution: {integrity: sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==}
+ deprecated: Use your platform's native atob() and btoa() methods instead
dev: false
/abbrev@2.0.0:
@@ -5202,7 +5282,6 @@ packages:
resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==}
engines: {node: '>=0.4.0'}
hasBin: true
- dev: true
/adler-32@1.3.1:
resolution: {integrity: sha512-ynZ4w/nUUv5rrsR8UUGoe1VC9hZj6V5hU9Qw1HlMDJGEJw5S7TfTErWTjMys6M7vr0YWcPqs3qAr4ss0nDfP+A==}
@@ -5337,7 +5416,6 @@ packages:
dependencies:
normalize-path: 3.0.0
picomatch: 2.3.1
- dev: true
/append-buffer@1.0.2:
resolution: {integrity: sha512-WLbYiXzD3y/ATLZFufV/rZvWdZOs+Z/+5v1rBZ463Jn398pa6kcde27cvozYnBoxXblGZTFfoPpsaEw0orU5BA==}
@@ -5731,7 +5809,6 @@ packages:
/binary-extensions@2.2.0:
resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==}
engines: {node: '>=8'}
- dev: true
/bindings@1.5.0:
resolution: {integrity: sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==}
@@ -5770,7 +5847,6 @@ packages:
resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==}
dependencies:
balanced-match: 1.0.2
- dev: true
/braces@2.3.2:
resolution: {integrity: sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==}
@@ -5795,7 +5871,6 @@ packages:
engines: {node: '>=8'}
dependencies:
fill-range: 7.0.1
- dev: true
/browser-process-hrtime@1.0.0:
resolution: {integrity: sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==}
@@ -6000,12 +6075,13 @@ packages:
get-func-name: 2.0.2
dev: true
- /cherry-markdown@0.8.26:
- resolution: {integrity: sha512-Cjl69gKq8wSVyN0YKZd/FGExkdPvCg0Z8353VDohan9ksjBs3x3LSuZwM3/HjzRlcP27bxDoB23z4lN2BWi5WQ==}
+ /cherry-markdown@0.8.58:
+ resolution: {integrity: sha512-/UV1+qyv7X+TVKQMimuh0oiDf/Ysdp3KfJZtGfVLYSYjlrTnTkmbZ2bTQO/NUgTlNaQbyOsanBkw9U2VwHUzMA==}
engines: {node: '>=14'}
dependencies:
'@types/codemirror': 0.0.108
'@types/dompurify': 2.4.0
+ crypto-js: 4.2.0
jsdom: 19.0.0
optionalDependencies:
mermaid: 9.4.3
@@ -6018,7 +6094,6 @@ packages:
/chokidar@2.1.8:
resolution: {integrity: sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg==}
- deprecated: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
dependencies:
anymatch: 2.0.0
async-each: 1.0.6
@@ -6050,7 +6125,6 @@ packages:
readdirp: 3.6.0
optionalDependencies:
fsevents: 2.3.3
- dev: true
/chownr@2.0.0:
resolution: {integrity: sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==}
@@ -6230,7 +6304,6 @@ packages:
/commander@2.20.3:
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
- dev: true
/commander@7.2.0:
resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==}
@@ -6406,6 +6479,22 @@ packages:
typescript: 5.3.3
dev: true
+ /cosmiconfig@8.3.6(typescript@5.8.2):
+ resolution: {integrity: sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ typescript: '>=4.9.5'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+ dependencies:
+ import-fresh: 3.3.0
+ js-yaml: 4.1.0
+ parse-json: 5.2.0
+ path-type: 4.0.0
+ typescript: 5.8.2
+ dev: true
+
/cp-file@7.0.0:
resolution: {integrity: sha512-0Cbj7gyvFVApzpK/uhCtQ/9kE9UnYpxMzaq5nQQC/Dh4iaj5fxp7iEFIullrYwzj8nf0qnsI1Qsx34hAeAebvw==}
engines: {node: '>=8'}
@@ -6458,6 +6547,10 @@ packages:
which: 2.0.2
dev: true
+ /crypto-js@4.2.0:
+ resolution: {integrity: sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==}
+ dev: false
+
/css-functions-list@3.2.1:
resolution: {integrity: sha512-Nj5YcaGgBtuUmn1D7oHqPW0c9iui7xsTsj5lIX8ZgevdfhmjFfKB3r8moHJtNJnctnYXJyYX5I1pp90HM4TPgQ==}
engines: {node: '>=12 || >=16'}
@@ -7086,6 +7179,7 @@ packages:
/domexception@4.0.0:
resolution: {integrity: sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==}
engines: {node: '>=12'}
+ deprecated: Use your platform's native DOMException instead
dependencies:
webidl-conversions: 7.0.0
dev: false
@@ -7379,7 +7473,6 @@ packages:
'@esbuild/win32-arm64': 0.19.11
'@esbuild/win32-ia32': 0.19.11
'@esbuild/win32-x64': 0.19.11
- dev: true
/escalade@3.1.1:
resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==}
@@ -7894,7 +7987,6 @@ packages:
engines: {node: '>=8'}
dependencies:
to-regex-range: 5.0.1
- dev: true
/find-up@1.1.2:
resolution: {integrity: sha512-jvElSjyuo4EMQGoTwo1uJU5pQMwTW5lS1x05zzfJuTIyLR3zwO27LYrxNg+dlvKpGOuGy/MzBdXh80g0ve5+HA==}
@@ -8194,7 +8286,6 @@ packages:
engines: {node: '>= 6'}
dependencies:
is-glob: 4.0.3
- dev: true
/glob-parent@6.0.2:
resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}
@@ -8262,6 +8353,7 @@ packages:
/glob@8.1.0:
resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==}
engines: {node: '>=12'}
+ deprecated: Glob versions prior to v9 are no longer supported
dependencies:
fs.realpath: 1.0.0
inflight: 1.0.6
@@ -8742,7 +8834,6 @@ packages:
/immutable@4.3.4:
resolution: {integrity: sha512-fsXeu4J4i6WNWSikpI88v/PcVflZz+6kMhUfIwc5SY+poQRPnaf5V7qds6SUyUN3cVxEzuCab7QIoLOQ+DQ1wA==}
- dev: true
/import-fresh@3.3.0:
resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==}
@@ -8878,7 +8969,6 @@ packages:
engines: {node: '>=8'}
dependencies:
binary-extensions: 2.2.0
- dev: true
/is-boolean-object@1.1.2:
resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==}
@@ -9006,7 +9096,6 @@ packages:
engines: {node: '>=0.10.0'}
dependencies:
is-extglob: 2.1.1
- dev: true
/is-hotkey@0.2.0:
resolution: {integrity: sha512-UknnZK4RakDmTgz4PI1wIph5yxSs/mvChWs9ifnlXsKuXgWmOkY/hAE0H/k2MIqH0RlRye0i1oC07MCRSD28Mw==}
@@ -9056,7 +9145,6 @@ packages:
/is-number@7.0.0:
resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
engines: {node: '>=0.12.0'}
- dev: true
/is-obj@2.0.0:
resolution: {integrity: sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==}
@@ -9263,7 +9351,7 @@ packages:
optional: true
dependencies:
abab: 2.0.6
- acorn: 8.10.0
+ acorn: 8.11.3
acorn-globals: 6.0.0
cssom: 0.5.0
cssstyle: 2.3.0
@@ -9935,7 +10023,6 @@ packages:
engines: {node: '>=16 || 14 >=14.17'}
dependencies:
brace-expansion: 2.0.1
- dev: true
/minimist-options@4.1.0:
resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==}
@@ -10250,7 +10337,6 @@ packages:
/normalize-path@3.0.0:
resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
engines: {node: '>=0.10.0'}
- dev: true
/normalize-range@0.1.2:
resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==}
@@ -10800,7 +10886,6 @@ packages:
/picomatch@2.3.1:
resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
engines: {node: '>=8.6'}
- dev: true
/pidtree@0.6.0:
resolution: {integrity: sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==}
@@ -11128,6 +11213,7 @@ packages:
/read-package-json@7.0.0:
resolution: {integrity: sha512-uL4Z10OKV4p6vbdvIXB+OzhInYtIozl/VxUBPgNkBuUi2DeRonnuspmaVAMcrkmfjKGNmRndyQAbE7/AmzGwFg==}
engines: {node: ^16.14.0 || >=18.0.0}
+ deprecated: This package is no longer supported. Please use @npmcli/package-json instead.
dependencies:
glob: 10.3.10
json-parse-even-better-errors: 3.0.1
@@ -11225,7 +11311,6 @@ packages:
engines: {node: '>=8.10.0'}
dependencies:
picomatch: 2.3.1
- dev: true
/rechoir@0.6.2:
resolution: {integrity: sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==}
@@ -11566,7 +11651,6 @@ packages:
'@rollup/rollup-win32-ia32-msvc': 4.9.3
'@rollup/rollup-win32-x64-msvc': 4.9.3
fsevents: 2.3.3
- dev: true
/run-parallel@1.2.0:
resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
@@ -11622,7 +11706,6 @@ packages:
chokidar: 3.5.3
immutable: 4.3.4
source-map-js: 1.0.2
- dev: true
/saxes@5.0.1:
resolution: {integrity: sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==}
@@ -11889,7 +11972,6 @@ packages:
dependencies:
buffer-from: 1.1.2
source-map: 0.6.1
- dev: true
/source-map-url@0.4.1:
resolution: {integrity: sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==}
@@ -12326,6 +12408,56 @@ packages:
- typescript
dev: true
+ /stylelint@15.11.0(typescript@5.8.2):
+ resolution: {integrity: sha512-78O4c6IswZ9TzpcIiQJIN49K3qNoXTM8zEJzhaTE/xRTCZswaovSEVIa/uwbOltZrk16X4jAxjaOhzz/hTm1Kw==}
+ engines: {node: ^14.13.1 || >=16.0.0}
+ hasBin: true
+ dependencies:
+ '@csstools/css-parser-algorithms': 2.3.2(@csstools/css-tokenizer@2.2.1)
+ '@csstools/css-tokenizer': 2.2.1
+ '@csstools/media-query-list-parser': 2.1.5(@csstools/css-parser-algorithms@2.3.2)(@csstools/css-tokenizer@2.2.1)
+ '@csstools/selector-specificity': 3.0.0(postcss-selector-parser@6.0.13)
+ balanced-match: 2.0.0
+ colord: 2.9.3
+ cosmiconfig: 8.3.6(typescript@5.8.2)
+ css-functions-list: 3.2.1
+ css-tree: 2.3.1
+ debug: 4.3.4
+ fast-glob: 3.3.2
+ fastest-levenshtein: 1.0.16
+ file-entry-cache: 7.0.2
+ global-modules: 2.0.0
+ globby: 11.1.0
+ globjoin: 0.1.4
+ html-tags: 3.3.1
+ ignore: 5.3.0
+ import-lazy: 4.0.0
+ imurmurhash: 0.1.4
+ is-plain-object: 5.0.0
+ known-css-properties: 0.29.0
+ mathml-tag-names: 2.1.3
+ meow: 10.1.5
+ micromatch: 4.0.5
+ normalize-path: 3.0.0
+ picocolors: 1.0.0
+ postcss: 8.4.33
+ postcss-resolve-nested-selector: 0.1.1
+ postcss-safe-parser: 6.0.0(postcss@8.4.33)
+ postcss-selector-parser: 6.0.13
+ postcss-value-parser: 4.2.0
+ resolve-from: 5.0.0
+ string-width: 4.2.3
+ strip-ansi: 6.0.1
+ style-search: 0.1.0
+ supports-hyperlinks: 3.0.0
+ svg-tags: 1.0.0
+ table: 6.8.1
+ write-file-atomic: 5.0.1
+ transitivePeerDependencies:
+ - supports-color
+ - typescript
+ dev: true
+
/stylis@4.3.0:
resolution: {integrity: sha512-E87pIogpwUsUwXw7dNyU4QDjdgVMy52m+XEOPEKUn161cCzWjjhPSQhByfd1CcNvrOLnXQ6OnnZDwnJrz/Z4YQ==}
requiresBuild: true
@@ -12417,7 +12549,6 @@ packages:
acorn: 8.10.0
commander: 2.20.3
source-map-support: 0.5.21
- dev: true
/text-extensions@2.4.0:
resolution: {integrity: sha512-te/NtwBwfiNRLf9Ijqx3T0nlqZiQ2XrrtBvu+cLL8ZRrGkO0NHTug8MYFKyoSrv/sHTaSKfilUkizV6XhxMJ3g==}
@@ -12516,7 +12647,6 @@ packages:
engines: {node: '>=8.0'}
dependencies:
is-number: 7.0.0
- dev: true
/to-regex@3.0.2:
resolution: {integrity: sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==}
@@ -12576,6 +12706,15 @@ packages:
typescript: 5.3.3
dev: true
+ /ts-api-utils@1.0.3(typescript@5.8.2):
+ resolution: {integrity: sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==}
+ engines: {node: '>=16.13.0'}
+ peerDependencies:
+ typescript: '>=4.2.0'
+ dependencies:
+ typescript: 5.8.2
+ dev: true
+
/ts-dedent@2.2.0:
resolution: {integrity: sha512-q5W7tVM71e2xjHZTlgfTDoPF/SmqKG5hddq9SzR49CH2hayqRKJtQ4mtRlSxKaJlR/+9rEM+mnBHf7I2/BQcpQ==}
engines: {node: '>=6.10'}
@@ -12715,6 +12854,12 @@ packages:
engines: {node: '>=14.17'}
hasBin: true
+ /typescript@5.8.2:
+ resolution: {integrity: sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==}
+ engines: {node: '>=14.17'}
+ hasBin: true
+ dev: true
+
/ufo@1.3.2:
resolution: {integrity: sha512-o+ORpgGwaYQXgqGDwd+hkS4PuZ3QnmqMMxRuajK/a38L6fTpcE5GPIfrf+L/KemFzfUpeUQc1rRS1iDBozvnFA==}
dev: true
@@ -12763,7 +12908,6 @@ packages:
/undici-types@5.26.5:
resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}
- dev: true
/unicode-canonical-property-names-ecmascript@2.0.0:
resolution: {integrity: sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==}
@@ -13021,6 +13165,15 @@ packages:
vite: 5.0.12(@types/node@20.11.5)(sass@1.70.0)(terser@5.27.0)
dev: true
+ /vite-plugin-libcss@1.1.1(vite@5.0.12):
+ resolution: {integrity: sha512-WAk6U9iYWMbcu7cdw4wACpVebZiLHMyyE9KTcBzzkTt1cnXj3a7loIoIGNblx+xMb9quPpO3iRbNTOnIFDzgmg==}
+ peerDependencies:
+ vite: '*'
+ dependencies:
+ minimatch: 9.0.3
+ vite: 5.0.12(@types/node@20.11.5)(sass@1.70.0)(terser@5.27.0)
+ dev: false
+
/vite@5.0.12(@types/node@20.11.5)(sass@1.70.0)(terser@5.27.0):
resolution: {integrity: sha512-4hsnEkG3q0N4Tzf1+t6NdN9dg/L3BM+q8SWgbSPnJvrgH2kgdyzfVJwbR1ic69/4uMJJ/3dqDZZE5/WwqW8U1w==}
engines: {node: ^18.0.0 || >=20.0.0}
@@ -13057,7 +13210,6 @@ packages:
terser: 5.27.0
optionalDependencies:
fsevents: 2.3.3
- dev: true
/vitest@1.3.1(@types/node@20.11.5)(@vitest/ui@1.3.1)(sass@1.70.0)(terser@5.27.0):
resolution: {integrity: sha512-/1QJqXs8YbCrfv/GPQ05wAZf2eakUPLPa18vkJAKE7RXOKfVHqMZZ1WlTjiwl6Gcn65M5vpNUB6EFLnEdRdEXQ==}
@@ -13565,4 +13717,4 @@ packages:
resolution: {integrity: sha512-0VxCNJ7AGOMCWeHVyTrGzUgrK4asT4ml9PEkeGirAkKNYXYzoPJCLvmyfdoOXcjTHPs10OZVMfD1Rwg16AZyYw==}
dependencies:
tslib: 2.3.0
- dev: false
+ dev: false
\ No newline at end of file
diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.10/index.min.css b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.10/index.min.css
new file mode 100644
index 0000000000000000000000000000000000000000..a7b5f344e2fc137e58c9c979b5e2bdf3cb5cc18f
--- /dev/null
+++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.10/index.min.css
@@ -0,0 +1 @@
+@charset "UTF-8";.ibiz-markdown-message{border-radius:5px}.ibiz-markdown-message .cherry{border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-markdown-message .cherry-previewer{padding:8px;border:0}.ibiz-markdown-message .cherry-previewer figure>svg{width:100%;min-height:100px}.ibiz-markdown-message .anchor{display:none!important}.ibiz-markdown-message.is-loading .ibiz-markdown-message-header .ibiz-markdown-message-header__caption{font-size:0}.ibiz-markdown-message.is-loading .ibiz-markdown-message-header .ibiz-markdown-message-header__caption:after{display:block;width:11px;height:11px;content:"";border:3px solid #3b3b3b;border-top-color:transparent;border-radius:100%;animation:circle infinite .75s linear}.ibiz-markdown-message-header{display:flex;margin-bottom:8px}.ibiz-markdown-message-header__caption{flex:0;width:auto;min-width:32px;min-height:32px;padding:6px;margin-right:2px;font-size:14px;font-weight:800;color:var(--ibiz-ai-chat-color)}.ibiz-markdown-message-header__timeout{display:flex;align-items:center;padding:0 8px;font-size:14px;color:var(--ibiz-color-danger)}.ibiz-markdown-message-content{padding:10px 16px;background-color:var(--ibiz-ai-chat-background-color-light);border-radius:var(--ibiz-ai-chat-border-radius)}@keyframes circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ibiz-chat-thought-chain{--ibiz-chat-thought-chain-font-size: 12px;--ibiz-chat-thought-chain-header-height: 32px;--ibiz-chat-thought-chain-color-2: var(--ibiz-ai-chat-color-2);--ibiz-chat-thought-chain-bg: var(--ibiz-ai-chat-hover-background-color);--ibiz-chat-thought-chain-bg-2: var(--ibiz-ai-chat-hover-background-color-2);--ibiz-chat-thought-chain-border-radius: var(--ibiz-ai-chat-border-radius);--ibiz-chat-thought-chain-hover-bg-color: var(--ibiz-ai-chat-hover-background-color);--ibiz-chat-thought-chain-border: var(--ibiz-ai-chat-hover-background-color);display:flex;flex-direction:column;padding:8px 12px;font-size:var(--ibiz-chat-thought-chain-font-size);background-color:var(--ibiz-chat-thought-chain-bg);border-radius:var(--ibiz-chat-thought-chain-border-radius)}.ibiz-chat-thought-chain__item{display:flex}.ibiz-chat-thought-chain__item.is-collapsed:last-child .ibiz-chat-thought-chain__item-icon:after{display:none}.ibiz-chat-thought-chain__item.is-collapsed .ibiz-chat-thought-chain__item-title .ibiz-chat-thought-chain__icon{transform:rotate(180deg)}.ibiz-chat-thought-chain__item.is-collapsed .ibiz-chat-thought-chain__item-description{height:0}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:18px;padding-top:8px}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon span{display:flex;flex:none;align-items:center;justify-content:center;width:16px;height:16px;margin-bottom:8px;font-size:10px;color:var(--ibiz-chat-thought-chain-color-2);background:var(--ibiz-chat-thought-chain-bg-2);border-radius:50%}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon svg{width:16px;height:16px;margin-bottom:8px}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon:after{width:1px;height:100%;content:"";background:var(--ibiz-chat-thought-chain-border);border-radius:13px;transition:.3s background cubic-bezier(.4,0,.2,1)}.ibiz-chat-thought-chain__item-content{flex:auto;padding-left:4px}.ibiz-chat-thought-chain__item-title{position:relative;display:flex;align-items:center;height:var(--ibiz-chat-thought-chain-header-height);padding:4px 4px 4px 6px;cursor:pointer;transition:.3s background-color}.ibiz-chat-thought-chain__item-title .ibiz-chat-thought-chain__icon{position:absolute;right:8px;flex-shrink:0;font-size:1em;cursor:pointer;transition:.3s transform}.ibiz-chat-thought-chain__item-title:hover{background-color:var(--ibiz-chat-thought-chain-hover-bg-color);border-radius:8px}.ibiz-chat-thought-chain__item-description{height:100%;overflow:hidden;color:var(--ibiz-color-text-2);transition:height .3s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1)}.ibiz-chat-thought-chain.is-single .ibiz-chat-thought-chain__item-icon:after{display:none}@keyframes loading-animation{75%,to{opacity:0;transform:scale(2)}}.ibiz-user-message-question{padding:6px 10px}.ibiz-user-message-question__content{position:relative;box-sizing:border-box;display:flex;justify-content:end;max-width:100%;padding:10px;font-size:14px;text-align:left;word-break:break-word;user-select:text;transition:all .3s ease}.ibiz-user-message-question__content--body{width:fit-content;padding:0 10px;margin:0;font-size:14px;line-height:1.5;color:var(--color-fg-default);word-wrap:break-word;background:#E7F8FF;border-radius:var(--ibiz-ai-chat-border-radius);text-size-adjust:100%}.ibiz-user-message-question__content--body:before{display:table;content:""}.ibiz-user-message-question__content--body:after{display:table;clear:both;content:""}.ibiz-user-message-question__content--body>p{margin:8px}.ibiz-user-message-question__user-header{display:flex;align-items:center;justify-content:end;width:100%;height:32px}.ibiz-user-message-question__user{padding:6px;font-size:14px;font-weight:800}.ibiz-error-message{padding:6px 10px;text-align:left}.ibiz-error-message__content{width:fit-content;padding:6px;color:#fff;background-color:red;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-error-message .ibiz-error-message-header{display:flex;margin-bottom:8px}.ibiz-error-message-header__caption{flex:0;width:auto;min-width:32px;min-height:32px;padding:6px;margin-right:2px;font-size:14px;font-weight:800;color:var(--ibiz-ai-chat-color)}.ibiz-unknown-message{padding:6px 10px;text-align:right}.ibiz-unknown-message__content{padding:6px;color:#000;background-color:#ccc;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-message-item{padding:6px 0}.ibiz-chat-message-item .pre-wrap-container{word-wrap:break-word;white-space:pre-wrap}.ibiz-chat-toolbar{display:flex;align-items:center}.ibiz-chat-toolbar__item{display:flex;align-items:center;white-space:nowrap;cursor:pointer}.ibiz-chat-toolbar__item:not(:first-child){margin-left:6px}.ibiz-chat-toolbar__item--icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:18px;height:18px;font-size:18px}.ibiz-chat-toolbar__item--label{display:flex;align-items:center}.ibiz-chat-toolbar__item.is-disabled{cursor:not-allowed}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item{width:32px;height:32px;padding:6px;overflow:hidden;font-size:12px;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:15px;transition:all .3s ease}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item.is-disabled{color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item:hover:not(.is-disabled){width:68px;color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item .ibiz-chat-toolbar__item--label{width:calc(100% - 32px);margin-left:8px;font-size:14px}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item .ibiz-chat-toolbar__item--label>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-toolbar__default .ibiz-chat-toolbar__item{z-index:1;gap:6px;width:fit-content;padding:2px 14px;font-size:14px;line-height:28px;color:var(--ibiz-ai-chat-color-2);background-color:var(--ibiz-ai-chat-background-color-2);border-radius:12px}.ibiz-chat-toolbar__default .ibiz-chat-toolbar__item.is-disabled{background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar__default .ibiz-chat-toolbar__item:hover:not(.is-disabled){background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-messages{margin:6px;width:calc(100% - 12px);height:calc(100% - 12px);overflow-x:hidden;overflow-y:auto}.ibiz-chat-messages::-webkit-scrollbar{width:6px}.ibiz-chat-messages::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input{display:flex;align-items:center;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input__textarea{flex-grow:1;max-height:6em;overflow:hidden auto!important;font-size:16px;resize:none;background-color:var(--ibiz-ai-chat-background-color);border:none;outline:none}.ibiz-chat-input__textarea::-webkit-scrollbar{width:6px}.ibiz-chat-input__textarea::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:var(--ibiz-ai-chat-border-radius)}@keyframes loading-change{0%{opacity:1}25%{opacity:.5}50%{opacity:.1}75%{opacity:.5}to{opacity:1}}.ibiz-chat-input-action-wrapper{display:flex;gap:6px;align-items:center;padding:6px;color:var(--ibiz-ai-chat-color)}.ibiz-chat-input-action-wrapper__action-item{padding:3px;font-size:12px;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-action-wrapper__action-item:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-input-action-wrapper__action-item.is-disabled{color:var(--ibiz-ai-chat-disabled-color);pointer-events:none}.ibiz-chat-input-action-wrapper__action-item.is-loading{pointer-events:none;animation:loading-change .8s infinite}.ibiz-pop-trigger-container{font-size:12px}.ibiz-pop-content{min-width:120px;padding:4px;background-color:var(--ibiz-color-primary-hover);border:1px solid var(--ibiz-color-border);border-radius:8px}.ibiz-pop-content-item{display:flex;align-items:center;justify-content:space-around;line-height:32px;cursor:pointer}.ibiz-chat-topic-item{position:relative;display:flex;align-items:center;height:38px;padding:0 8px;cursor:pointer;border-radius:8px}.ibiz-chat-topic-item:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item:hover .ibiz-chat-topic-item-icon{opacity:1}.ibiz-chat-topic-item.is-active{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item-caption{width:100%;min-width:0;overflow:hidden;line-height:18px;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-topic-item-icon{position:absolute;top:50%;right:10px;display:flex;align-items:center;justify-content:space-around;width:54px;height:24px;color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color);border-radius:8px;outline:none;opacity:0;transform:translateY(-50%)}.ibiz-chat-topic-item-icon__item{font-size:12px}.ibiz-chat-topics{height:100%;padding:8px;overflow-y:auto}.ibiz-chat-container{--ibiz-ai-chat-color: #3b3b3b;--ibiz-ai-chat-icon-color: #3b3b3b;--ibiz-ai-chat-border-color: #e5e5e5;--ibiz-ai-chat-background-color: #fff;--ibiz-ai-chat-background-color-light: #f8fafb;--ibiz-ai-chat-disabled-color: rgba(59, 59, 59, .6);--ibiz-ai-chat-hover-color: #3b3b3b;--ibiz-ai-chat-hover-background-color: rgba(184, 184, 184, .31);--ibiz-ai-chat-hover-border-color: #e5e5e5;--ibiz-ai-chat-border-radius: 5px;--ibiz-ai-chat-color-2: #4d6bfe;--ibiz-ai-chat-background-color-2: rgb(219, 234, 254);--ibiz-ai-chat-hover-background-color-2: #c3daf8}.ibiz-chat-container__dialog{position:absolute;z-index:1000;display:flex;flex-direction:column;background-color:var(--ibiz-ai-chat-background-color);border:1px solid var(--ibiz-ai-chat-border-color);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-container__dialog *{box-sizing:border-box}.ibiz-chat-container__dialog svg{display:inline-block;width:1em;height:1em;font-size:1.5em;vertical-align:middle;fill:currentcolor}.ibiz-chat-container__dialog.is-hidden{display:none}.ibiz-chat-container__minimize{position:absolute;z-index:99999;display:flex;align-items:center;justify-content:center;width:56px;height:56px;color:var(--ibiz-ai-chat-color);cursor:pointer;background-color:var(--ibiz-ai-chat-background-color);border:1px solid var(--ibiz-ai-chat-border-color);border-radius:50%}.ibiz-chat-container__minimize:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-container__minimize svg{display:inline-block;vertical-align:middle;fill:currentcolor}.ibiz-chat-container__minimize.is-hidden{display:none}.ibiz-chat-container__toolbar{display:flex;justify-content:center;margin:8px}.ibiz-chat-container-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;height:60px;cursor:move;border-bottom:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-container-header-caption{padding:0 6px 0 16px;font-size:18px;font-weight:800}.ibiz-chat-container-header-action-wrapper{display:flex;gap:6px;align-items:center;height:100%;padding:0 6px}.ibiz-chat-container-header-action-wrapper__action-item{flex-shrink:0;padding:3px;font-size:12px;color:var(--ibiz-ai-chat-color);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-container-header-action-wrapper__action-item:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-container-main{display:flex;height:calc(100% - 60px)}.ibiz-chat-container-main__left{flex-shrink:0;width:200px;height:100%;border-right:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-container-main__right{display:flex;flex-direction:column;flex-grow:1;height:100%}.ibiz-chat-container-main__default{display:flex;flex-direction:column;flex-grow:1;height:calc(100% - 60px)}.ibiz-chat-container-content{flex-grow:1;overflow:hidden}.ibiz-chat-container-footer{flex-shrink:0;padding:3px 6px;border-top:1px solid var(--ibiz-ai-chat-border-color)}
diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.10/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.10/index.system.min.js
new file mode 100644
index 0000000000000000000000000000000000000000..6fed8f0625c1b9c99947caa1534044d435eacae3
--- /dev/null
+++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.10/index.system.min.js
@@ -0,0 +1 @@
+!function(){function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t(e,n)}function e(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,o=r(t);if(e){var a=r(this).constructor;i=Reflect.construct(o,arguments,a)}else i=o.apply(this,arguments);return function(t,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return n(t)}(this,i)}}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),D(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;D(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function f(t,e,n,r,i,o,a){try{var c=t[o](a),s=c.value}catch(u){return void n(u)}c.done?e(s):Promise.resolve(s).then(r,i)}function h(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){f(o,r,i,a,c,"next",t)}function c(t){f(o,r,i,a,c,"throw",t)}a(void 0)}))}}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n2&&(c.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===c[a]&&(c[a]=t.defaultProps[a]);return O(t,c,r,o,null)}function O(t,e,n,r,i){var o={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++v:i};return null==i&&null!=f.vnode&&f.vnode(o),o}function D(t){return t.children}function L(t,e){this.props=t,this.context=e}function I(t,e){if(null==e)return t.__?I(t.__,t.__.__k.indexOf(t)+1):null;for(var n;ee&&g.sort(k));P.__r=0}function H(t,e,n,r,i,o,a,c,s,u,l){var f,h,d,p,v,_,m,y,g,b=0,w=r&&r.__k||E,k=w.length,C=k,S=e.length;for(n.__k=[],f=0;f0?O(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)?(p.__=n,p.__b=n.__b+1,-1===(y=F(p,w,m=f+b,C))?d=x:(d=w[y]||x,w[y]=void 0,C--),$(t,p,d,i,o,a,c,s,u,l),v=p.__e,(h=p.ref)&&d.ref!=h&&(d.ref&&X(d.ref,null,p),l.push(h,p.__c||v,p)),null!=v&&(null==_&&(_=v),(g=d===x||null===d.__v)?-1==y&&b--:y!==m&&(y===m+1?b++:y>m?C>S-m?b+=y-m:b--:b=y(null!=s?1:0))for(;a>=0||c=0){if((s=e[a])&&i==s.key&&o===s.type)return a;a--}if(c0&&void 0!==arguments[0]?arguments[0]:"";return K(this.namespace,this.block,t,"","")}},{key:"e",value:function(t){return t?K(this.namespace,this.block,"",t,""):""}},{key:"m",value:function(t){return t?K(this.namespace,this.block,"","",t):""}},{key:"be",value:function(t,e){return t&&e?K(this.namespace,this.block,t,e,""):""}},{key:"em",value:function(t,e){return t&&e?K(this.namespace,this.block,"",t,e):""}},{key:"bm",value:function(t,e){return t&&e?K(this.namespace,this.block,t,"",e):""}},{key:"bem",value:function(t,e,n){return t&&e&&n?K(this.namespace,this.block,t,e,n):""}},{key:"is",value:function(t,e){return t&&e?"".concat("is-").concat(t):""}},{key:"cssVar",value:function(t){var e={};for(var n in t)t[n]&&(e[this.cssVarName(n)]=t[n]);return e}},{key:"cssVarBlock",value:function(t){var e={};for(var n in t)t[n]&&(e[this.cssVarBlockName(n)]=t[n]);return e}},{key:"cssVarName",value:function(t){return"--".concat(this.namespace,"-").concat(t)}},{key:"cssVarBlockName",value:function(t){return"--".concat(this.namespace,"-").concat(this.block,"-").concat(t)}}]),t}();function tt(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function et(t,e){for(var n,r="",i=0,o=-1,a=0,c=0;c<=t.length;++c){if(c2){var s=r.lastIndexOf("/");if(s!==r.length-1){-1===s?(r="",i=0):i=(r=r.slice(0,s)).length-1-r.lastIndexOf("/"),o=c,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=c,a=0;continue}e&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+t.slice(o+1,c):r=t.slice(o+1,c),i=c-o-1;o=c,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var nt={resolve:function(){for(var t,e="",n=!1,r=arguments.length-1;r>=-1&&!n;r--){var i;r>=0?i=arguments[r]:(void 0===t&&(t=process.cwd()),i=t),tt(i),0!==i.length&&(e=i+"/"+e,n=47===i.charCodeAt(0))}return e=et(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(t){if(tt(t),0===t.length)return".";var e=47===t.charCodeAt(0),n=47===t.charCodeAt(t.length-1);return 0!==(t=et(t,!e)).length||e||(t="."),t.length>0&&n&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return tt(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e0&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":nt.normalize(t)},relative:function(t,e){if(tt(t),tt(e),t===e)return"";if((t=nt.resolve(t))===(e=nt.resolve(e)))return"";for(var n=1;nc){if(47===e.charCodeAt(o+u))return e.slice(o+u+1);if(0===u)return e.slice(o+u)}else i>c&&(47===t.charCodeAt(n+u)?s=u:0===u&&(s=0));break}var l=t.charCodeAt(n+u);if(l!==e.charCodeAt(o+u))break;47===l&&(s=u)}var f="";for(u=n+s+1;u<=r;++u)u!==r&&47!==t.charCodeAt(u)||(0===f.length?f+="..":f+="/..");return f.length>0?f+e.slice(o+s):(o+=s,47===e.charCodeAt(o)&&++o,e.slice(o))},_makeLong:function(t){return t},dirname:function(t){if(tt(t),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,r=-1,i=!0,o=t.length-1;o>=1;--o)if(47===(e=t.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"//":t.slice(0,r)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');tt(t);var n,r=0,i=-1,o=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var a=e.length-1,c=-1;for(n=t.length-1;n>=0;--n){var s=t.charCodeAt(n);if(47===s){if(!o){r=n+1;break}}else-1===c&&(o=!1,c=n+1),a>=0&&(s===e.charCodeAt(a)?-1==--a&&(i=n):(a=-1,i=c))}return r===i?i=c:-1===i&&(i=t.length),t.slice(r,i)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":t.slice(r,i)},extname:function(t){tt(t);for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(47!==c)-1===r&&(i=!1,r=a+1),46===c?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)},format:function(t){if(null===t||"object"!==d(t))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+d(t));return function(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+t+r:r}("/",t)},parse:function(t){tt(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var n,r=t.charCodeAt(0),i=47===r;i?(e.root="/",n=1):n=0;for(var o=-1,a=0,c=-1,s=!0,u=t.length-1,l=0;u>=n;--u)if(47!==(r=t.charCodeAt(u)))-1===c&&(s=!1,c=u+1),46===r?-1===o?o=u:1!==l&&(l=1):-1!==o&&(l=-1);else if(!s){a=u+1;break}return-1===o||-1===c||0===l||1===l&&o===c-1&&o===a+1?-1!==c&&(e.base=e.name=0===a&&i?t.slice(1,c):t.slice(a,c)):(0===a&&i?(e.name=t.slice(1,o),e.base=t.slice(1,c)):(e.name=t.slice(a,o),e.base=t.slice(a,c)),e.ext=t.slice(o,c)),a>0?e.dir=t.slice(0,a-1):i&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};function rt(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function it(){return"".concat(rt()+rt(),"-").concat(rt(),"-").concat(rt(),"-").concat(rt(),"-").concat(rt()).concat(rt()).concat(rt())}nt.posix=nt;var ot=function(){function t(){p(this,t)}return _(t,null,[{key:"copy",value:function(t){return this.inputElement||(this.inputElement=document.createElement("input"),this.inputElement.style.position="absolute",this.inputElement.style.left="-9999px",document.body.appendChild(this.inputElement)),this.inputElement.value=t,this.inputElement.select(),document.execCommand("copy")}}]),t}();m(ot,"inputElement",null);var at=function(){function t(){p(this,t)}var e,n,r,i,o,a,c,s,u,f;return _(t,null,[{key:"checkDataBaseExists",value:(f=h(l().mark((function t(e){var n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,indexedDB.databases();case 3:return n=t.sent,t.abrupt("return",n.some((function(t){return t.name===e})));case 7:return t.prev=7,t.t0=t.catch(0),console.error("检查数据库是否存在时出错:",t.t0),t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t,null,[[0,7]])}))),function(t){return f.apply(this,arguments)})},{key:"deleteDatabase",value:(u=h(l().mark((function e(n){var r,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.lastLink&&(null===(r=(i=t.lastLink).close)||void 0===r||r.call(i)),e.abrupt("return",new Promise((function(t,e){var r=indexedDB.deleteDatabase(n);r.onsuccess=function(){t(!0)},r.onerror=function(){t(!1)},r.onblocked=function(){console.warn("删除数据库 ".concat(n," 被阻塞,可能有其他连接正在使用该数据库。")),e(new Error("删除数据库 ".concat(n," 被阻塞")))}})));case 2:case"end":return e.stop()}}),e)}))),function(t){return u.apply(this,arguments)})},{key:"checkTableExists",value:(s=h(l().mark((function e(n,r){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.checkDataBaseExists(n);case 2:if(e.sent){e.next=5;break}return e.abrupt("return",!1);case 5:return e.abrupt("return",new Promise((function(e,i){var o=indexedDB.open(n);o.onupgradeneeded=function(e){t.db=e.target.result,t.version=t.db.version},o.onsuccess=function(n){t.db=n.target.result,t.lastLink=o.result;var i=t.db.objectStoreNames.contains(r);o.result.close(),e(i)},o.onerror=function(t){i(t.target.error)}})));case 6:case"end":return e.stop()}}),e)}))),function(t,e){return s.apply(this,arguments)})},{key:"createTable",value:(c=h(l().mark((function e(n,r,i){var o,a=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=a.length>3&&void 0!==a[3]&&a[3],e.abrupt("return",new Promise((function(e){var a,c;t.version+=1,t.lastLink&&(null===(a=(c=t.lastLink).close)||void 0===a||a.call(c));var s=indexedDB.open(n,t.version);s.onupgradeneeded=function(e){if(t.db=e.target.result,!t.db.objectStoreNames.contains(r)){var n={};i?n.keyPath=i:o&&(n.autoIncrement=!0),t.db.createObjectStore(r,n)}},s.onsuccess=function(){t.lastLink=s.result,s.result.close(),e(!0)},s.onerror=function(){e(!1)}})));case 2:case"end":return e.stop()}}),e)}))),function(t,e,n){return c.apply(this,arguments)})},{key:"deleteTable",value:(a=h(l().mark((function e(n,r){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var i,o;t.version+=1,t.lastLink&&(null===(i=(o=t.lastLink).close)||void 0===i||i.call(o));var a=indexedDB.open(n,t.version);a.onupgradeneeded=function(e){t.db=e.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(r)&&t.db.deleteObjectStore(r)},a.onsuccess=function(n){t.db=n.target.result,t.lastLink=a.result,a.result.close(),e(!0)},a.onerror=function(){a.result.close(),e(!1)}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return a.apply(this,arguments)})},{key:"addData",value:(o=h(l().mark((function e(n,r,i){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(r)){var o=t.db.transaction([r],"readwrite").objectStore(r).add(i);o.onsuccess=function(t){e(i)},o.onerror=function(){e(null)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e,n){return o.apply(this,arguments)})},{key:"deleteData",value:(i=h(l().mark((function e(n,r,i){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(r)){var o=t.db.transaction([r],"readwrite").objectStore(r).delete(i);o.onsuccess=function(t){e(!0)},o.onerror=function(){e(!1)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e,n){return i.apply(this,arguments)})},{key:"updateData",value:(r=h(l().mark((function e(n,r,i){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(r)){var o=t.db.transaction([r],"readwrite").objectStore(r).put(i);o.onsuccess=function(t){e(i)},o.onerror=function(){e(i)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e,n){return r.apply(this,arguments)})},{key:"getData",value:(n=h(l().mark((function e(n,r,i){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(r)){var c=t.db.transaction([r],"readonly").objectStore(r).get(i);c.onsuccess=function(t){e(c.result)},c.onerror=function(){o(new Error("未找到数据".concat(i)))}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e,r){return n.apply(this,arguments)})},{key:"getAllData",value:(e=h(l().mark((function e(n,r){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,i){var o=indexedDB.open(n);o.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=o.result,t.db.objectStoreNames.contains(r)){var i=t.db.transaction([r],"readonly").objectStore(r).getAll();i.onsuccess=function(t){e(i.result)},i.onerror=function(){e([])}}o.result.close()},o.onerror=function(){o.result.close(),i()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,n){return e.apply(this,arguments)})}]),t}();m(at,"version",1),m(at,"db",null),m(at,"lastLink",void 0);var ct,st,ut,lt,ft=0,ht=[],dt=[],pt=f.__b,vt=f.__r,_t=f.diffed,mt=f.__c,yt=f.unmount;function gt(t,e){f.__h&&f.__h(st,t,ft||e),ft=0;var n=st.__H||(st.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:dt}),n.__[t]}function bt(t){return ft=1,function(t,e,n){var r=gt(ct++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):Dt(void 0,e),function(t){var e=r.__N?r.__N[0]:r.__[0],n=r.t(e,t);e!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=st,!st.u)){var i=function(t,e,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(t){return t.__c}));if(i.every((function(t){return!t.__N})))return!o||o.call(this,t,e,n);var a=!1;return i.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),!(!a&&r.__c.props===t)&&(!o||o.call(this,t,e,n))};st.u=!0;var o=st.shouldComponentUpdate,a=st.componentWillUpdate;st.componentWillUpdate=function(t,e,n){if(this.__e){var r=o;o=void 0,i(t,e,n),o=r}a&&a.call(this,t,e,n)},st.shouldComponentUpdate=i}return r.__N||r.__}(Dt,t)}function wt(t,e){var n=gt(ct++,3);!f.__s&&Ot(n.__H,e)&&(n.__=t,n.i=e,st.__H.__h.push(n))}function kt(t){return ft=5,xt((function(){return{current:t}}),[])}function xt(t,e){var n=gt(ct++,7);return Ot(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function Et(t,e){return ft=8,xt((function(){return t}),e)}function Ct(){for(var t;t=ht.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Tt),t.__H.__h.forEach(At),t.__H.__h=[]}catch(bn){t.__H.__h=[],f.__e(bn,t.__v)}}f.__b=function(t){st=null,pt&&pt(t)},f.__r=function(t){vt&&vt(t),ct=0;var e=(st=t.__c).__H;e&&(ut===st?(e.__h=[],st.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=dt,t.__N=t.i=void 0}))):(e.__h.forEach(Tt),e.__h.forEach(At),e.__h=[],ct=0)),ut=st},f.diffed=function(t){_t&&_t(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==ht.push(e)&<===f.requestAnimationFrame||((lt=f.requestAnimationFrame)||St)(Ct)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==dt&&(t.__=t.__V),t.i=void 0,t.__V=dt}))),ut=st=null},f.__c=function(t,e){e.some((function(t){try{t.__h.forEach(Tt),t.__h=t.__h.filter((function(t){return!t.__||At(t)}))}catch(Ft){e.some((function(t){t.__h&&(t.__h=[])})),e=[],f.__e(Ft,t.__v)}})),mt&&mt(t,e)},f.unmount=function(t){yt&&yt(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{Tt(t)}catch(t){e=t}})),n.__H=void 0,e&&f.__e(e,n.__v))};var Nt="function"==typeof requestAnimationFrame;function St(t){var e,n=function(){clearTimeout(r),Nt&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Nt&&(e=requestAnimationFrame(n))}function Tt(t){var e=st,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),st=e}function At(t){var e=st;t.__c=t.__(),st=e}function Ot(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function Dt(t,e){return"function"==typeof e?e(t):e}function Lt(){throw new Error("Cycle detected")}var It=Symbol.for("preact-signals");function zt(){if(Bt>1)Bt--;else{for(var t,e=!1;void 0!==jt;){var n=jt;for(jt=void 0,Rt++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Yt(n))try{n.c()}catch(n){e||(t=n,e=!0)}n=r}}if(Rt=0,Bt--,e)throw t}}var Mt,Pt,Ht=void 0,jt=void 0,Bt=0,Rt=0,Ft=0;function Ut(t){if(void 0!==Ht){var e=t.n;if(void 0===e||e.t!==Ht)return e={i:0,S:t,p:Ht.s,n:void 0,t:Ht,e:void 0,x:void 0,r:e},void 0!==Ht.s&&(Ht.s.n=e),Ht.s=e,t.n=e,32&Ht.f&&t.S(e),e;if(-1===e.i)return e.i=0,void 0!==e.n&&(e.n.p=e.p,void 0!==e.p&&(e.p.n=e.n),e.p=Ht.s,e.n=void 0,Ht.s.n=e,Ht.s=e),e}}function Vt(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}function Wt(t){return new Vt(t)}function Yt(t){for(var e=t.s;void 0!==e;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function $t(t){for(var e=t.s;void 0!==e;e=e.n){var n=e.S.n;if(void 0!==n&&(e.r=n),e.S.n=e,e.i=-1,void 0===e.n){t.s=e;break}}}function qt(t){for(var e=t.s,n=void 0;void 0!==e;){var r=e.p;-1===e.i?(e.S.U(e),void 0!==r&&(r.n=e.n),void 0!==e.n&&(e.n.p=r)):n=e,e.S.n=e.r,void 0!==e.r&&(e.r=void 0),e=r}t.s=n}function Xt(t){Vt.call(this,void 0),this.x=t,this.s=void 0,this.g=Ft-1,this.f=4}function Gt(t){return new Xt(t)}function Zt(t){var e=t.u;if(t.u=void 0,"function"==typeof e){Bt++;var n=Ht;Ht=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,Jt(t),e}finally{Ht=n,zt()}}}function Jt(t){for(var e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Zt(t)}function Kt(t){if(Ht!==this)throw new Error("Out-of-order effect");qt(this),Ht=t,this.f&=-2,8&this.f&&Jt(this),zt()}function Qt(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function te(t){var e=new Qt(t);try{e.c()}catch(t){throw e.d(),t}return e.d.bind(e)}function ee(t,e){f[t]=e.bind(null,f[t]||function(){})}function ne(t){Pt&&Pt(),Pt=t&&t.S()}function re(t){var e=this,n=t.data,r=oe(n);r.value=n;var i=xt((function(){for(var t=e.__v;t=t.__;)if(t.__c){t.__c.__$f|=4;break}return e.__$u.c=function(){var t;y(i.peek())||3!==(null==(t=e.base)?void 0:t.nodeType)?(e.__$f|=1,e.setState({})):e.base.data=i.peek()},Gt((function(){var t=r.value.value;return 0===t?0:!0===t?"":t||""}))}),[]);return i.value}function ie(t,e,n,r){var i=e in t&&void 0===t.ownerSVGElement,o=Wt(n);return{o:function(t,e){o.value=t,r=e},d:te((function(){var n=o.value.value;r[e]!==n&&(r[e]=n,i?t[e]=n:n?t.setAttribute(e,n):t.removeAttribute(e))}))}}function oe(t){return xt((function(){return Wt(t)}),[])}function ae(t){var e=kt(t);return e.current=t,Mt.__$f|=4,xt((function(){return Gt((function(){return e.current()}))}),[])}Vt.prototype.brand=It,Vt.prototype.h=function(){return!0},Vt.prototype.S=function(t){this.t!==t&&void 0===t.e&&(t.x=this.t,void 0!==this.t&&(this.t.e=t),this.t=t)},Vt.prototype.U=function(t){if(void 0!==this.t){var e=t.e,n=t.x;void 0!==e&&(e.x=n,t.e=void 0),void 0!==n&&(n.e=e,t.x=void 0),t===this.t&&(this.t=n)}},Vt.prototype.subscribe=function(t){var e=this;return te((function(){var n=e.value,r=32&this.f;this.f&=-33;try{t(n)}finally{this.f|=r}}))},Vt.prototype.valueOf=function(){return this.value},Vt.prototype.toString=function(){return this.value+""},Vt.prototype.toJSON=function(){return this.value},Vt.prototype.peek=function(){return this.v},Object.defineProperty(Vt.prototype,"value",{get:function(){var t=Ut(this);return void 0!==t&&(t.i=this.i),this.v},set:function(t){if(Ht instanceof Xt&&function(){throw new Error("Computed cannot have side-effects")}(),t!==this.v){Rt>100&&Lt(),this.v=t,this.i++,Ft++,Bt++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{zt()}}}}),(Xt.prototype=new Vt).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Ft)return!0;if(this.g=Ft,this.f|=1,this.i>0&&!Yt(this))return this.f&=-2,!0;var t=Ht;try{$t(this),Ht=this;var e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return Ht=t,qt(this),this.f&=-2,!0},Xt.prototype.S=function(t){if(void 0===this.t){this.f|=36;for(var e=this.s;void 0!==e;e=e.n)e.S.S(e)}Vt.prototype.S.call(this,t)},Xt.prototype.U=function(t){if(void 0!==this.t&&(Vt.prototype.U.call(this,t),void 0===this.t)){this.f&=-33;for(var e=this.s;void 0!==e;e=e.n)e.S.U(e)}},Xt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;void 0!==t;t=t.x)t.t.N()}},Xt.prototype.peek=function(){if(this.h()||Lt(),16&this.f)throw this.v;return this.v},Object.defineProperty(Xt.prototype,"value",{get:function(){1&this.f&&Lt();var t=Ut(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),Qt.prototype.c=function(){var t=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var e=this.x();"function"==typeof e&&(this.u=e)}finally{t()}},Qt.prototype.S=function(){1&this.f&&Lt(),this.f|=1,this.f&=-9,Zt(this),$t(this),Bt++;var t=Ht;return Ht=this,Kt.bind(this,t)},Qt.prototype.N=function(){2&this.f||(this.f|=2,this.o=jt,jt=this)},Qt.prototype.d=function(){this.f|=8,1&this.f||Jt(this)},re.displayName="_st",Object.defineProperties(Vt.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:re},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),ee("__b",(function(t,e){if("string"==typeof e.type){var n,r=e.props;for(var i in r)if("children"!==i){var o=r[i];o instanceof Vt&&(n||(e.__np=n={}),n[i]=o,r[i]=o.peek())}}t(e)})),ee("__r",(function(t,e){ne();var n,r=e.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(t){var e;return te((function(){e=this})),e.c=function(){r.__$f|=1,r.setState({})},e}())),Mt=r,ne(n),t(e)})),ee("__e",(function(t,e,n,r){ne(),Mt=void 0,t(e,n,r)})),ee("diffed",(function(t,e){var n;if(ne(),Mt=void 0,"string"==typeof e.type&&(n=e.__e)){var r=e.__np,i=e.props;if(r){var o=n.U;if(o)for(var a in o){var c=o[a];void 0===c||a in r||(c.d(),o[a]=void 0)}else n.U=o={};for(var s in r){var u=o[s],l=r[s];void 0===u?(u=ie(n,s,l,i),o[s]=u):u.o(l,i)}}}t(e)})),ee("unmount",(function(t,e){if("string"==typeof e.type){var n=e.__e;if(n){var r=n.U;if(r)for(var i in n.U=void 0,r){var o=r[i];o&&o.d()}}}else{var a=e.__c;if(a){var c=a.__$u;c&&(a.__$u=void 0,c.d())}}t(e)})),ee("__h",(function(t,e,n,r){(r<3||9===r)&&(e.__$f|=2),t(e,n,r)})),L.prototype.shouldComponentUpdate=function(t,e){var n=this.__$u;if(!(n&&void 0!==n.s||4&this.__$f))return!0;if(3&this.__$f)return!0;for(var r in e)return!0;for(var i in t)if("__source"!==i&&t[i]!==this.props[i])return!0;for(var o in this.props)if(!(o in t))return!0;return!1};var ce=0;function se(t,e,n,r,i,o){var a,c,s={};for(c in e)"ref"==c?a=e[c]:s[c]=e[c];var u={type:t,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--ce,__source:i,__self:o};if("function"==typeof t&&(a=t.defaultProps))for(c in a)void 0===s[c]&&(s[c]=a[c]);return f.vnode&&f.vnode(u),u}var ue=function(){return se("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:se("path",{d:"M843.904 783.573333 783.573333 843.904 512.042667 572.373333 240.512 843.904 180.181333 783.573333 451.712 512.042667 180.181333 240.512 240.512 180.181333 512.042667 451.712 783.573333 180.181333 843.904 240.512 572.373333 512.042667 843.904 783.573333Z"})})},le=function(){return se("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:se("path",{d:"M900.64 379.808l-263.072-256.032c-36.448-35.328-105.76-35.392-142.304 0.096l-327.04 319.904c-56.416 54.72-70.72 76.704-70.72 150.976l0 143.936c0 132.768 26.976 192 186.912 192l131.872 0c81.12 0 128.448-46.656 193.952-111.264l290.016-297.696c18.592-17.984 29.248-43.968 29.248-71.264C929.504 423.36 918.976 397.6 900.64 379.808zM323.008 786.752c-52.928 0-96-43.072-96-96s43.072-96 96-96 96 43.072 96 96S375.936 786.752 323.008 786.752z"})})},fe=function(){return se("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:se("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2-8.5 2.1-13.8 10.7-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-0.9 3.7-0.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 0.7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-0.8 4.2-2.6 5-5 1.4-4.2-0.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"})})},he=function(){return se("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:se("path",{d:"M962 197.61H747v-60c0-55.14-44.86-100-100-100H377c-55.14 0-100 44.86-100 100v60H62c-11.05 0-20 8.95-20 20s8.95 20 20 20h60v630.57c0 66.17 53.83 120 120 120h540c66.17 0 120-53.83 120-120V237.61h60c11.05 0 20-8.95 20-20s-8.95-20-20-20zM637.34 457.66v260c0 12.01-10.72 21.63-23.06 19.77-9.84-1.48-16.94-10.25-16.94-20.2V458.09c0-9.95 7.1-18.72 16.94-20.2 12.34-1.86 23.06 7.76 23.06 19.77z m-210.68 0v260c0 11-9 20-20 20s-20-9-20-20v-260c0-11 9-20 20-20s20 9 20 20zM317 137.61c0-33.08 26.92-60 60-60h270c33.08 0 60 26.92 60 60v60H317v-60z"})})},de=function(){return se("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:se("path",{d:"M511.582491 63.413262C265.134543 63.413262 64.62588 263.921925 64.62588 510.369873s200.508663 446.957635 446.957635 446.957635 446.957635-200.508663 446.957635-446.957635S758.031463 63.413262 511.582491 63.413262zM509.001713 751.859903c-98.517781 0-182.467775-62.623269-214.771505-150.056598l0.327458-0.134053c-2.007727-4.036943-3.38305-8.422833-3.38305-13.237489 0-16.647145 13.494339-30.142507 30.142507-30.142507 13.389962 0 24.358781 8.877181 28.2893 20.955264l0.422625-0.172939c23.269983 65.442478 85.645612 112.503307 158.972665 112.503307 93.106538 0 168.845523-75.738985 168.845523-168.845523s-75.738985-168.845523-168.845523-168.845523c-20.432355 0-39.874149 3.980661-58.013275 10.66899l21.248953 40.742936c2.486634 2.677992 4.0175 6.2831 4.0175 10.243295 0 8.417717-8.404414 14.921851-15.365966 15.07023-0.102331 0-0.206708 0-0.309038 0-0.220011 0-0.427742 0-0.647753-0.013303l-150.579507-6.463202c-5.372358-0.234337-10.229992-3.310396-12.716626-8.093329-2.486634-4.76963-2.236947-10.509355 0.647753-15.055904l80.890308-127.179564c2.8847-4.533246 8.006348-7.151887 13.365402-6.960529 5.372358 0.234337 10.227945 3.312442 12.71458 8.095375l18.580171 35.625382c26.629497-10.855232 55.683207-16.963347 86.168522-16.963347 126.338407 0 229.130537 102.791108 229.130537 229.130537S635.340119 751.859903 509.001713 751.859903z"})})},pe=function(){return se("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:se("path",{d:"M891.072 822.144V167.36a34.432 34.432 0 0 0-34.432-34.432H201.856C201.856 94.848 232.704 64 270.784 64h620.288C929.152 64 960 94.848 960 132.928v620.288c0 38.08-30.848 68.928-68.928 68.928z m-68.928-551.36v620.288c0 38.08-30.848 68.928-68.928 68.928H132.928A68.928 68.928 0 0 1 64 891.072V270.784c0-38.08 30.848-68.928 68.928-68.928h620.288c38.08 0 68.928 30.848 68.928 68.928z m-137.856 137.856H201.856a34.432 34.432 0 0 0 0 68.864h482.432a34.432 34.432 0 0 0 0-68.864z m0 206.72H201.856a34.432 34.432 0 0 0 0 68.864h482.432a34.432 34.432 0 0 0 0-68.864z"})})},ve=function(){return se("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:se("path",{d:"M547.4 197.4v46l200.3 0.1L546.1 444l32.4 32.6 201.9-200.7v200.9h46V197.5zM471.4 584.4l-32.6-32.6L243.6 747V547.9h-46v278.7h279v-46H275z"})})},_e=function(){return se("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:se("path",{d:"M544 480V282.944h52.224l0.064 107.968L763.072 224l36.928 36.928-166.976 166.976 108.032-0.128V480H544zM260.928 800l-36.928-36.928 166.912-166.784-107.968-0.064V544H480v197.056h-52.224l0.064-107.968L260.928 800z"})})},me=function(){return se("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:se("path",{d:"M960 544H64a32 32 0 1 1 0-64h896a32 32 0 1 1 0 64"})})},ye=function(){return se("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[se("path",{d:"M481.0752 263.3728l50.9952 1.024 1.8432-105.8816-50.9952-0.8192z"}),se("path",{d:"M486.441426 180.895362a66.56 66.56 0 1 0 42.091944-126.290153 66.56 66.56 0 1 0-42.091944 126.290153Z"}),se("path",{d:"M138.8544 664.3712c-52.8384 0-95.8464-43.008-95.8464-95.8464s43.008-95.8464 95.8464-95.8464M880.0256 472.6784c52.8384 0 95.8464 43.008 95.8464 95.8464s-43.008 95.8464-95.8464 95.8464"}),se("path",{d:"M507.4944 220.5696c-220.16 0-398.7456 162.816-398.7456 363.7248s178.5856 363.7248 398.7456 363.7248 398.7456-162.816 398.7456-363.7248-178.5856-363.7248-398.7456-363.7248z m0 559.9232c-166.2976 0-301.2608-100.5568-301.2608-224.4608s134.9632-224.4608 301.2608-224.4608S808.7552 432.128 808.7552 556.032 673.792 780.4928 507.4944 780.4928z"}),se("path",{d:"M319.6928 556.032a47.9232 38.912 90 1 0 77.824 0 47.9232 38.912 90 1 0-77.824 0Z"}),se("path",{d:"M617.472 556.032a47.9232 38.912 90 1 0 77.824 0 47.9232 38.912 90 1 0-77.824 0Z"})]})},ge=function(){return se("svg",{viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[se("path",{d:"M5.856 17.121a.979.979 0 0 1-.327-.06.839.839 0 0 1-.283-.177.739.739 0 0 1-.187-.255.724.724 0 0 1-.07-.303l-.02-1.609a4.663 4.663 0 0 1-1.446-.455 4.252 4.252 0 0 1-.637-.401c-.199-.146-.385-.31-.553-.492a4.442 4.442 0 0 1-.45-.577 4.303 4.303 0 0 1-.327-.637 3.823 3.823 0 0 1-.206-.686 3.729 3.729 0 0 1-.064-.704V6.478c0-.261.025-.516.077-.771a4.43 4.43 0 0 1 .244-.747 4.062 4.062 0 0 1 .932-1.28c.2-.183.418-.347.65-.493.23-.145.482-.267.739-.364a4.21 4.21 0 0 1 .81-.225c.27-.054.553-.078.835-.078H8.55c.103 0 .2.018.29.054a.7.7 0 0 1 .411.376.667.667 0 0 1-.161.766.736.736 0 0 1-.25.151.764.764 0 0 1-.29.055H5.573c-.186 0-.366.012-.54.049-.18.03-.353.079-.52.145-.167.061-.328.14-.482.237-.148.091-.29.2-.418.316a2.897 2.897 0 0 0-.347.388c-.097.14-.187.286-.257.444a2.473 2.473 0 0 0-.206.977v4.287c0 .17.013.333.051.503a2.549 2.549 0 0 0 .772 1.33 2.721 2.721 0 0 0 .913.559c.167.066.347.115.527.152.18.03.36.048.546.048a.904.904 0 0 1 .61.23.848.848 0 0 1 .194.262.84.84 0 0 1 .07.303l.007.99 1.915-1.293a2.877 2.877 0 0 1 1.64-.492h2.372c.186 0 .366-.018.54-.048.18-.03.353-.08.52-.146.168-.067.329-.146.483-.237.148-.091.29-.2.418-.316.128-.121.244-.249.347-.388a2.8 2.8 0 0 0 .257-.444 2.47 2.47 0 0 0 .206-.977V8.585a.646.646 0 0 1 .225-.492.679.679 0 0 1 .244-.152.814.814 0 0 1 .585 0c.09.03.174.085.244.152a.657.657 0 0 1 .225.492V10.8c0 .261-.032.516-.083.771a4.192 4.192 0 0 1-.245.74c-.109.244-.244.468-.398.687a3.735 3.735 0 0 1-.534.6c-.2.183-.418.347-.65.493a4.134 4.134 0 0 1-.738.364 4.7 4.7 0 0 1-.81.225c-.27.054-.553.079-.836.079h-1.877c-.604 0-1.144.164-1.633.491l-2.54 1.713a.913.913 0 0 1-.514.157z",fill:"currentColor"}),se("path",{d:"M15.866 4.125h-4.174c-.41 0-.741.313-.741.7 0 .387.332.7.741.7h4.174c.41 0 .742-.313.742-.7 0-.387-.332-.7-.742-.7z",fill:"currentColor"}),se("path",{d:"M14.537 2.932c0-.396-.34-.717-.759-.717s-.758.32-.758.717v3.786c0 .396.34.717.758.717.42 0 .76-.321.76-.717V2.932z",fill:"currentColor"})]})},be=function(){return se("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:se("path",{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"})})},we=function(){var t=1e3,e=140,n=250,r=.8;return se("svg",{fill:"currentColor",viewBox:"0 0 ".concat(t," ").concat(t),xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:Array.from({length:4}).map((function(t,i){return se("rect",{fill:"currentColor",rx:70,ry:70,height:n,width:e,x:286.66666666666663*i,y:375,children:[se("animate",{attributeName:"height",values:"".concat(n,"; ").concat(500,"; ").concat(n),keyTimes:"0; 0.5; 1",dur:"".concat(r,"s"),begin:"".concat(.2*i,"s"),repeatCount:"indefinite"}),se("animate",{attributeName:"y",values:"".concat(375,"; ").concat(250,"; ").concat(375),keyTimes:"0; 0.5; 1",dur:"".concat(r,"s"),begin:"".concat(.2*i,"s"),repeatCount:"indefinite"})]},i)}))})},ke=function(t){return se("svg",{className:t.className,onClick:t.onClick,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:se("path",{d:"M128 384a128 128 0 1 1 0 256 128 128 0 0 1 0-256z m768 0a128 128 0 1 1 0 256 128 128 0 0 1 0-256z m-372.4288 0a128 128 0 1 1 0 256 128 128 0 0 1 0-256z"})})},xe=function(t){return se("svg",{className:t.className,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:se("path",{d:"M498.33984 607.8464c-10.99776-32.9728-50.09408-73.5232-82.6368-85.74976L150.9376 422.8096c-38.54336-14.4384-36.98688-69.46816 2.27328-81.73568L844.92288 124.90752c33.30048-10.40384 64.57344 20.8896 54.1696 54.1696L682.92608 870.78912a43.2128 43.2128 0 0 1-81.36704 3.25632 121682.5344 121682.5344 0 0 1-103.2192-266.19904z"})})},Ee=function(t){return se("svg",{xmlns:"http://www.w3.org/2000/svg",className:t.className,viewBox:"0 0 512 512",children:se("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 184l144 144 144-144"})})},Ce=function(t){return se("svg",{xmlns:"http://www.w3.org/2000/svg",className:"".concat(t.className," icon"),viewBox:"0 0 512 512",children:se("path",{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm108.25 138.29l-134.4 160a16 16 0 01-12 5.71h-.27a16 16 0 01-11.89-5.3l-57.6-64a16 16 0 1123.78-21.4l45.29 50.32 122.59-145.91a16 16 0 0124.5 20.58z"})})},Ne=function(t){return se("svg",{className:t.className,width:"16",height:"16",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",children:se("circle",{cx:"25",cy:"25",r:"20",stroke:"currentColor",strokeWidth:"5",fill:"none",strokeDasharray:"31.415, 31.415",strokeLinecap:"round",children:se("animateTransform",{attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"1s",repeatCount:"indefinite"})})})},Se=function(t){var e=t.items,n=oe([]),r=new Q("chat-thought-chain"),i=oe([]);wt((function(){i.value=e.filter((function(t){return t.description})),i.value.length>0&&i.value.forEach((function(t,e){t.done&&(n.value=[].concat(c(n.value),[e]))}))}),[e]);return 0===i.value.length?null:se("div",{className:"".concat(r.b()," ").concat(r.is("single",1===i.value.length)),children:i.value.map((function(t,e){if(t.description){var i=n.value.includes(e);return se("div",{className:"".concat(r.e("item")," ").concat(r.is("collapsed",i)),children:[se("div",{className:r.e("item-icon"),children:t.icon||se("span",{children:e})}),se("div",{className:r.e("item-content"),children:[se("div",{className:r.e("item-title"),onClick:function(){return function(t){n.value.includes(t)?n.value=n.value.filter((function(e){return e!==t})):n.value=[].concat(c(n.value),[t])}(e)},children:[t.title,se(Ee,{className:r.e("icon")})]}),se("div",{className:r.e("item-description"),children:t.description})]})]},e)}}))})},Te=new Q("markdown-message"),Ae=function(t){var e=t.message,n=t.size,r=oe(it()),i=oe(null),o=xt((function(){return 20===e.state&&!0!==e.completed}),[e.state,e.completed]),a=xt((function(){return 20===e.state&&!0===e.completed}),[e.state,e.completed]),c=oe({title:"思考过程",description:"",icon:se(Ne,{})}),s=function(t){var e=t.indexOf(""),n=t.indexOf(""),r="",i="",o=!1;return-1===n?(o=!1,r=t.slice(e+7),i=""):(o=!0,r=t.slice(e+7,n),i=t.slice(n+8)),{isThoughtCompleted:o,thoughtContent:r,answerContent:i}};return wt((function(){if(n>=0&&i.value)if(-1!==e.content.indexOf("")){var t=s(e.content),r=t.isThoughtCompleted,o=t.thoughtContent,a=t.answerContent;r&&(c.value.icon=se(r?Ce:Ne,{})),o&&(c.value.description=o),a&&i.value.setMarkdown(a)}else i.value.setMarkdown(e.content)}),[e,n]),wt((function(){var t="";if(-1!==e.content.indexOf("")){var n=s(e.content),o=n.isThoughtCompleted,a=n.thoughtContent,l=n.answerContent;c.value={title:"思考过程",description:a||"",icon:se(o?Ce:Ne,{})},l&&(t=l)}else t=e.content;i.value=new u({id:r,value:t||"",editor:{defaultModel:"previewOnly"}})}),[]),se("div",{className:"".concat(Te.b()," ").concat(Te.is("loading",o)),children:[se("div",{className:Te.b("header"),children:[se("div",{className:Te.be("header","caption"),children:"AI "}),t.children,a?se("div",{className:Te.be("header","timeout"),children:"请求超时"}):null]}),se("div",{className:"".concat(Te.b("content")," pre-wrap-container"),children:[se(Se,{items:[c.value]}),se("div",{id:r})]}),se("div",{className:Te.b("footer")})]})},Oe=new Q("user-message-question"),De=function(t){var e=ae((function(){return t.message.content}));return se("div",{className:Oe.b(),children:[se("div",{className:Oe.e("user-header"),children:[t.children,se("div",{className:Oe.e("user"),children:"我"})]}),se("div",{className:Oe.e("content"),children:se("div",{dir:"auto",className:Oe.em("content","body"),children:se("p",{dir:"auto",className:"pre-wrap-container",children:e})})})]})},Le=new Q("error-message"),Ie=function(t){var e=ae((function(){return t.message.content}));return se("div",{className:Le.b(),children:[se("div",{className:Le.b("header"),children:[se("div",{className:Le.be("header","caption"),children:"AI "}),t.children]}),se("div",{className:"".concat(Le.e("content")," pre-wrap-container"),children:se("span",{children:e})})]})},ze=new Q("unknown-message"),Me=function(t){return se("div",{className:ze.b(),children:se("span",{className:"".concat(ze.e("content")," pre-wrap-container"),children:["暂未支持的消息类型: ",t.message.type]})})},Pe=new Q("chat-message-item"),He=function(t){var e=t.message,n=t.size,r=null;switch(e.type){case"DEFAULT":r="ASSISTANT"===e.role?Ae:De;break;case"ERROR":r=Ie;break;default:r=Me}return se("div",{className:Pe.b(),children:A(r,{size:n,message:e,controller:t.controller,children:t.children})})},je=new Q("chat-toolbar"),Be=function(t){var e=t.controller,n=t.items,r=void 0===n?[]:n,i=t.data,o=t.type,a=t.className,s=[],u="default",l=[{label:"新建对话",title:"新建对话",icon:se(ge,{}),onClick:function(){e.newDialogue()}}],f=[{label:"回填",title:"回填",icon:se(le,{}),onClick:function(){e.backfill(i)}},{label:"刷新",title:"刷新",icon:se(de,{}),onClick:function(){e.refreshMessage(i)}},{label:"删除",title:"删除",icon:se(he,{}),onClick:function(){e.deleteMessage(i)}},{label:"复制",title:"复制",icon:se(pe,{}),onClick:function(){e.copyMessage(i)}}],h=[{label:"刷新",title:"刷新",icon:se(de,{}),onClick:function(){e.refreshMessage(i,!0)}}];if("content"===o)switch(u="circle",i.type){case"DEFAULT":s="ASSISTANT"===i.role?[].concat(f,c(r)):[].concat(h);break;case"ERROR":s=[].concat(f,c(r))}else s=[].concat(l,c(r));var d=function(t){return"function"==typeof t.disabled?t.disabled(i):!0===t.disabled};return se("div",{className:"".concat(je.b()," ").concat(je.e(u)," ").concat(a||""),children:s.map((function(t,n){if(!function(t){return"function"==typeof t.hidden?t.hidden(i):!0===t.hidden}(t))return se("div",{className:"".concat(je.e("item")," ").concat(je.is("disabled",d(t))," ").concat(a||""),title:t.title,onClick:function(n){return function(t,n){var r;d(n)||null===(r=n.onClick)||void 0===r||r.call(n,t,e.context,e.params,i)}(n,t)},children:[se("div",{className:"".concat(je.em("item","icon")),children:"function"==typeof t.icon?t.icon(A):t.icon}),se("div",{className:"".concat(je.em("item","label")),children:"function"==typeof t.label?t.label(A):t.label})]},n)}))})},Re=new Q("chat-messages"),Fe=function(t){var e=kt(null),n=t.controller.messages;return function(t){var e=kt(t);e.current=t,wt((function(){return te((function(){return e.current()}))}),[])}((function(){e.current&&n.value.length>0&&(e.current.scrollTop=e.current.scrollHeight)})),se("div",{ref:e,className:Re.b(),children:n.value.map((function(e){var n,r=(null===(n=e.content)||void 0===n?void 0:n.length)||0;return se(He,{size:r,message:e,controller:t.controller,children:se(Be,{data:e,type:"content",items:t.toolbarItems,controller:t.controller})},e.messageid)}))})};function Ue(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var r in e)if("__source"!==r&&t[r]!==e[r])return!0;return!1}function Ve(t){this.props=t}(Ve.prototype=new L).isPureReactComponent=!0,Ve.prototype.shouldComponentUpdate=function(t,e){return Ue(this.props,t)||Ue(this.state,e)};var We=f.__b;f.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),We&&We(t)};var Ye=f.__e;f.__e=function(t,e,n,r){if(t.then)for(var i,o=e;o=o.__;)if((i=o.__c)&&i.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e);Ye(t,e,n,r)};var $e=f.unmount;function qe(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=function(t,e){for(var n in e)t[n]=e[n];return t}({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return qe(t,e,n)}))),t}function Xe(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return Xe(t,e,n)})),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function Ge(){this.__u=0,this.t=null,this.__b=null}function Ze(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Je(){this.u=null,this.o=null}f.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),$e&&$e(t)},(Ge.prototype=new L).__c=function(t,e){var n=e.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=Ze(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(c):c())};n.__R=a;var c=function(){if(! --r.__u){if(r.state.__a){var t=r.state.__a;r.__v.__k[0]=Xe(t,t.__c.__P,t.__c.__O)}var e;for(r.setState({__a:r.__b=null});e=r.t.pop();)e.forceUpdate()}},s=!0===e.__h;r.__u++||s||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(a,a)},Ge.prototype.componentWillUnmount=function(){this.t=[]},Ge.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=qe(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&A(D,null,t.fallback);return i&&(i.__h=null),[A(D,null,e.__a?null:t.children),i]};var Ke=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(t)}}),J(A(Qe,{context:e.context},t.__v),e.l)}function en(t,e){var n=A(tn,{__v:t,i:e});return n.containerInfo=e,n}(Je.prototype=new L).__a=function(t){var e=this,n=Ze(e.__v),r=e.o.get(t);return r[0]++,function(i){var o=function(){e.props.revealOrder?(r.push(i),Ke(e,t,r)):i()};n?n(o):o()}},Je.prototype.render=function(t){this.u=null,this.o=new Map;var e=B(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Je.prototype.componentDidUpdate=Je.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){Ke(t,n,e)}))};var nn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,rn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,on=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,an=/[A-Z0-9]/g,cn="undefined"!=typeof document,sn=function(t){return("undefined"!=typeof Symbol&&"symbol"==d(Symbol())?/fil|che|rad/:/fil|che|ra/).test(t)};L.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(L.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var un=f.event;function ln(){}function fn(){return this.cancelBubble}function hn(){return this.defaultPrevented}f.event=function(t){return un&&(t=un(t)),t.persist=ln,t.isPropagationStopped=fn,t.isDefaultPrevented=hn,t.nativeEvent=t};var dn={enumerable:!1,configurable:!0,get:function(){return this.class}},pn=f.vnode;f.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,r={};for(var i in e){var o=e[i];if(!("value"===i&&"defaultValue"in e&&null==o||cn&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var a=i.toLowerCase();"defaultValue"===i&&"value"in e&&null==e.value?i="value":"download"===i&&!0===o?o="":"ondoubleclick"===a?i="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||sn(e.type)?"onfocus"===a?i="onfocusin":"onblur"===a?i="onfocusout":on.test(i)?i=a:-1===n.indexOf("-")&&rn.test(i)?i=i.replace(an,"-$&").toLowerCase():null===o&&(o=void 0):a=i="oninput","oninput"===a&&r[i=a]&&(i="oninputCapture"),r[i]=o}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=B(e.children).forEach((function(t){t.props.selected=-1!=r.value.indexOf(t.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=B(e.children).forEach((function(t){t.props.selected=r.multiple?-1!=r.defaultValue.indexOf(t.props.value):r.defaultValue==t.props.value}))),e.class&&!e.className?(r.class=e.class,Object.defineProperty(r,"className",dn)):(e.className&&!e.class||e.class&&e.className)&&(r.class=r.className=e.className),t.props=r}(t),t.$$typeof=nn,pn&&pn(t)};var vn=f.__r;f.__r=function(t){vn&&vn(t),t.__c};var _n=f.diffed;f.diffed=function(t){_n&&_n(t);var e=t.props,n=t.__e;null!=n&&"textarea"===t.type&&"value"in e&&e.value!==n.value&&(n.value=null==e.value?"":e.value)};var mn=new Map;function yn(t){var e=mn.get(t);e&&e.destroy()}function gn(t){var e=mn.get(t);e&&e.update()}var bn=null;"undefined"==typeof window?((bn=function(t){return t}).destroy=function(t){return t},bn.update=function(t){return t}):((bn=function(t,e){return t&&Array.prototype.forEach.call(t.length?t:[t],(function(t){return function(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!mn.has(t)){var e,n=null,r=window.getComputedStyle(t),i=(e=t.value,function(){a({testForHeightReduction:""===e||!t.value.startsWith(e),restoreTextAlign:null}),e=t.value}),o=function(e){t.removeEventListener("autosize:destroy",o),t.removeEventListener("autosize:update",c),t.removeEventListener("input",i),window.removeEventListener("resize",c),Object.keys(e).forEach((function(n){return t.style[n]=e[n]})),mn.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,textAlign:t.style.textAlign,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",o),t.addEventListener("autosize:update",c),t.addEventListener("input",i),window.addEventListener("resize",c),t.style.overflowX="hidden",t.style.wordWrap="break-word",mn.set(t,{destroy:o,update:c}),c()}function a(e){var i,o,c=e.restoreTextAlign,s=void 0===c?null:c,u=e.testForHeightReduction,l=void 0===u||u,f=r.overflowY;if(0!==t.scrollHeight&&("vertical"===r.resize?t.style.resize="none":"both"===r.resize&&(t.style.resize="horizontal"),l&&(i=function(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push([t.parentNode,t.parentNode.scrollTop]),t=t.parentNode;return function(){return e.forEach((function(t){var e=t[0],n=t[1];e.style.scrollBehavior="auto",e.scrollTop=n,e.style.scrollBehavior=null}))}}(t),t.style.height=""),o="content-box"===r.boxSizing?t.scrollHeight-(parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)):t.scrollHeight+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),"none"!==r.maxHeight&&o>parseFloat(r.maxHeight)?("hidden"===r.overflowY&&(t.style.overflow="scroll"),o=parseFloat(r.maxHeight)):"hidden"!==r.overflowY&&(t.style.overflow="hidden"),t.style.height=o+"px",s&&(t.style.textAlign=s),i&&i(),n!==o&&(t.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=o),f!==r.overflow&&!s)){var h=r.textAlign;"hidden"===r.overflow&&(t.style.textAlign="start"===h?"end":"start"),a({restoreTextAlign:h,testForHeightReduction:!0})}}function c(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(t)})),t}).destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],yn),t},bn.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],gn),t});var wn=bn,kn=new Q("chat-input"),xn=window.SpeechRecognition||window.webkitSpeechRecognition,En=function(t){var e=kt(null),n=t.controller.input,r=oe(!1),i=oe(!1),o=kt();xn&&!o.current&&(o.current=new xn,o.current.onstart=function(){i.value=!0},o.current.onend=function(){i.value=!1},o.current.onresult=function(t){var e,r=null===(e=t.results)||void 0===e||null===(e=e[0])||void 0===e||null===(e=e[0])||void 0===e?void 0:e.transcript;r&&(n.value="".concat(n.value).concat(r))});var a=Et((function(t){n.value=t.target.value}),[n]),c=ae((function(){return n.value.length<=0||!0===r.value}));wt((function(){return e.current&&wn(e.current),function(){e.current&&wn.destroy(e.current)}}),[e]);var s=Et(h(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.value=!0,e.prev=1,e.next=4,t.controller.question(n.value);case 4:n.value="",e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),console.error(e.t0);case 10:return e.prev=10,r.value=!1,e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[1,7,10,13]])}))),[n,r]);return se("div",{className:kn.b(),children:[se("textarea",{className:kn.e("textarea"),type:"text",rows:6,autoCorrect:"off",autoCapitalize:"off",autoComplete:"off",value:n,onInput:a,onKeyDown:function(t){"Enter"===t.code&&(t.stopPropagation(),!1===t.shiftKey&&s())},ref:e,disabled:r}),se("div",{className:kn.b("action-wrapper"),children:[se("div",{title:i.value?"语音输入中...":"语音输入",className:"".concat(kn.be("action-wrapper","action-item")),onClick:function(){o.current&&!i.value&&o.current.start()},children:i.value?se(we,{}):se(be,{})}),se("div",{title:r.value?"思考中...":"发送消息",className:"".concat(kn.be("action-wrapper","action-item")," ").concat(kn.is("disabled",c.value)," ").concat(kn.is("loading",r.value)),onClick:s,disabled:c,children:se(fe,{})})]})]})},Cn=function(t){return t.STYLE_CACHE="ai-chat-style-cache",t.MINIMIZE_STYLY_CHCHE="ai-chat-minimize-style-cache",t.DATA_BASE_NAME="ibiz-chat",t.DATA_TABLE_NAME="history-message",t.DATA_TABLE_KEY_NAME="id",t}(Cn||{}),Nn=function(t){var e=t.children,n=t.actions,r=t.position,i=void 0===r?"bottom":r,c=t.isOpen,s=t.onToggleOpen,u=t.onAction,l=new Q("pop"),f=a(bt(c||!1),2),h=f[0],d=f[1],p=kt(null),v=kt(null);wt((function(){void 0!==c&&d(c)}),[c]),wt((function(){return v.current||(v.current=document.createElement("div"),v.current.className=l.b("content-container"),document.body.appendChild(v.current)),function(){v.current&&document.body.removeChild(v.current)}}),[]),wt((function(){var t=function(t){!p.current||p.current.contains(t.target)||t.target.closest(l.b("content"))||(d(!1),null==s||s(!1))};return h&&document.addEventListener("mousedown",t),function(){document.removeEventListener("mousedown",t)}}),[h,s]);return se("span",{className:"".concat(l.b("trigger-container")),children:[se("span",{className:"".concat(l.b("trigger-element")),ref:p,onClick:function(t){t.stopPropagation();var e=!h;d(e),null==s||s(e)},children:e}),h&&v.current&&en(se("div",{className:"".concat(l.b("content")," pop-").concat(i),style:function(){if(!p.current)return{};var t=p.current.getBoundingClientRect(),e={bottom:{top:t.bottom+window.scrollY,left:t.left+window.scrollX},top:{bottom:window.innerHeight-t.top+window.scrollY,left:t.left+window.scrollX},left:{top:t.top+window.scrollY,right:window.innerWidth-t.left+window.scrollX},right:{top:t.top+window.scrollY,left:t.right+window.scrollX}};return o(o({},{position:"absolute",zIndex:1e3}),e[i])}(),children:null==n?void 0:n.map((function(t){return se("div",{className:l.b("content-item"),onMouseDown:function(e){e.stopPropagation(),null==u||u(t.id,e)},children:[t.icon&&se("img",{className:l.b("content-item__icon"),src:t.icon,alt:t.caption}),se("div",{className:l.b("content-item__caption"),children:t.caption})]},t.id)}))}),v.current)]})},Sn=new Q("chat-topic-item"),Tn=function(t){var e=t.current,n=t.active,r=t.topic,i=t.onClick,o=t.onAction,c=a(bt(!1),2),s=c[0],u=c[1];return se("div",{className:"".concat(Sn.b()," ").concat(Sn.is("active",n)),onClick:i.bind(void 0),children:[se("div",{className:Sn.b("caption"),title:r.caption,children:r.caption}),se("div",{className:Sn.b("icon"),children:[se("span",{className:Sn.be("icon","item"),title:"跳转主视图",onClick:function(t){t.stopPropagation(),o("LINK",t)}.bind(void 0),children:se(xe,{className:Sn.b("link-icon")})}),e?null:se(Nn,{actions:[{id:"DELETE",caption:"删除话题"}],position:"bottom",isOpen:s,onToggleOpen:u,onAction:function(t,e){"DELETE"===t&&o("DELETE",e),u(!1)}.bind(void 0),children:se("span",{className:Sn.be("icon","item"),title:"更多",children:se(ke,{className:Sn.b("more-icon")})})})]})]})},An=new Q("chat-topics"),On=function(t){var e=t.controller.topics;return se("div",{className:An.b(),children:e.value.map((function(e){var n,r;return se(Tn,{topic:e,current:e.id===(null===(n=t.controller.currentTopicOptions)||void 0===n?void 0:n.id),active:e.id===(null===(r=t.controller.activedTopic.value)||void 0===r?void 0:r.id),onClick:function(){return function(e){t.controller.handleTopicChange(e)}(e)},onAction:function(n,r){return function(e,n,r){t.controller.handleTopicAction(e,n,r)}(n,e,r)}},e.id)}))})},Dn=function(r){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&t(e,n)}(o,r);var i=e(o);function o(t){var e;return p(this,o),m(n(e=i.call(this,t)),"ns",new Q("chat-container")),m(n(e),"containerRef",{current:null}),m(n(e),"dragHandle",{current:null}),m(n(e),"minimizeRef",{current:null}),m(n(e),"data",{x:window.innerWidth-600,y:0,width:600,height:window.innerHeight,minWidth:300,minHeight:300}),m(n(e),"minimizeData",{x:window.innerWidth-86,y:window.innerHeight-86}),m(n(e),"disabled",!1),m(n(e),"isDragging",!1),e.state={isFullScreen:!1,isMinimize:!1},e}return _(o,[{key:"calcWindowStyle",value:function(){return{left:"".concat(this.data.x,"px"),top:"".concat(this.data.y,"px"),height:"".concat(this.data.height,"px"),width:"".concat(this.data.width,"px"),"z-index":"1000"}}},{key:"calcMinimizeStyle",value:function(){return{left:"".concat(this.minimizeData.x,"px"),top:"".concat(this.minimizeData.y,"px"),"z-index":"99999"}}},{key:"setStyle",value:function(){Object.assign(this.containerRef.current.style,this.calcWindowStyle()),Object.assign(this.minimizeRef.current.style,this.calcMinimizeStyle())}},{key:"componentDidMount",value:function(){var t=this,e=localStorage.getItem(Cn.MINIMIZE_STYLY_CHCHE);e&&(this.minimizeData=JSON.parse(e));var n=localStorage.getItem(Cn.STYLE_CACHE);n&&(this.data=JSON.parse(n),this.data.x>window.innerWidth&&(this.data.x=window.innerWidth-100),this.data.y>window.innerHeight&&(this.data.y=window.innerHeight-100)),this.setStyle();var r=this.data;this.minimizeRef.current.onmousedown=function(e){document.body.style.userSelect="none";var n=e.clientX-t.minimizeRef.current.offsetLeft,r=e.clientY-t.minimizeRef.current.offsetTop,i=Date.now(),o=function(e){t.minimizeData.x=e.clientX-n,t.minimizeData.y=e.clientY-r,t.setStyle()};document.addEventListener("mousemove",o),document.addEventListener("mouseup",(function e(){var n=Date.now();t.isDragging=n-i>300,document.body.style.userSelect="",document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",e)}))},this.dragHandle.current.onmousedown=function(e){if(!t.disabled&&!t.state.isFullScreen){document.body.style.userSelect="none";var n=e.clientX-t.containerRef.current.offsetLeft,i=e.clientY-t.containerRef.current.offsetTop,o=function(e){r.x=e.clientX-n,r.y=e.clientY-i,t.setStyle()};document.addEventListener("mousemove",o),document.addEventListener("mouseup",(function t(){document.body.style.userSelect="",document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",t)}))}},s(this.containerRef.current).resizable({edges:{top:!0,right:!0,bottom:!0,left:!0},margin:6,modifiers:[s.modifiers.restrictEdges({outer:document.body}),s.modifiers.restrictSize({min:{width:r.minWidth,height:r.minHeight}})],inertia:!0,listeners:{move:function(e){t.state.isFullScreen||(r.x=e.rect.left,r.y=e.rect.top,r.width=e.rect.width,r.height=e.rect.height,t.setStyle())},start:function(){t.disabled=!0,document.body.style.userSelect="none"},end:function(){t.disabled=!1,document.body.style.userSelect=""}}})}},{key:"componentWillUnmount",value:function(){localStorage.setItem(Cn.STYLE_CACHE,JSON.stringify(this.data)),localStorage.setItem(Cn.MINIMIZE_STYLY_CHCHE,JSON.stringify(this.minimizeData))}},{key:"close",value:function(){this.props.close()}},{key:"fullScreen",value:function(){var t=this.containerRef.current;t&&(t.requestFullscreen(),this.setState({isFullScreen:!0}),this.props.fullscreen(!0))}},{key:"closeFullScreen",value:function(){var t;this.state.isFullScreen&&(null===(t=document)||void 0===t||t.exitFullscreen(),this.setState({isFullScreen:!1}),this.props.fullscreen(!1),this.setStyle())}},{key:"minimize",value:function(){this.closeFullScreen(),this.setState({isMinimize:!0}),this.props.minimize(!0)}},{key:"exitMinimize",value:function(){this.isDragging||(this.setState({isMinimize:!1}),this.props.minimize(!1))}},{key:"stopPropagation",value:function(t){t.stopPropagation()}},{key:"render",value:function(){return se("div",{className:"".concat(this.ns.b()),children:[se("div",{className:"".concat(this.ns.e("dialog")," ").concat(this.ns.is("full-screen",this.state.isFullScreen)," ").concat(this.ns.is("hidden",this.state.isMinimize)),ref:this.containerRef,children:[se("div",{ref:this.dragHandle,className:this.ns.b("header"),children:[se("div",{className:this.ns.b("header-caption"),children:this.props.caption||"AI助手"}),se("div",{className:this.ns.b("header-action-wrapper"),children:[se("div",{title:"最小化",className:"".concat(this.ns.be("header-action-wrapper","action-item")," ").concat(this.ns.be("header-action-wrapper","minimize")),onMouseDown:this.stopPropagation.bind(this),onClick:this.minimize.bind(this),children:se(me,{})}),this.state.isFullScreen?se("div",{title:"退出全屏",className:"".concat(this.ns.be("header-action-wrapper","action-item")," ").concat(this.ns.be("header-action-wrapper","close-full-screen")),onMouseDown:this.stopPropagation.bind(this),onClick:this.closeFullScreen.bind(this),children:se(_e,{})}):se("div",{title:"全屏",className:"".concat(this.ns.be("header-action-wrapper","action-item")," ").concat(this.ns.be("header-action-wrapper","full-screen")),onMouseDown:this.stopPropagation.bind(this),onClick:this.fullScreen.bind(this),children:se(ve,{})}),se("div",{title:"关闭",className:"".concat(this.ns.be("header-action-wrapper","action-item")," ").concat(this.ns.be("header-action-wrapper","action-close")),onMouseDown:this.stopPropagation.bind(this),onClick:this.close.bind(this),children:se(ue,{})})]})]}),"TOPIC"===this.props.mode?se("div",{className:"".concat(this.ns.b("main")),children:[se("div",{className:"".concat(this.ns.be("main","left")),children:se(On,{controller:this.props.aiTopic})}),se("div",{className:"".concat(this.ns.be("main","right")),children:[se("div",{className:this.ns.b("content"),children:se(Fe,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),se(Be,{data:this.props.aiTopic.activedTopic.value,type:"footer",className:this.ns.e("toolbar"),controller:this.props.aiChat,items:this.props.footerToolbarItems}),se("div",{className:this.ns.b("footer"),children:se(En,{controller:this.props.aiChat})})]})]}):se("div",{className:"".concat(this.ns.be("main","default")),children:[se("div",{className:this.ns.b("content"),children:se(Fe,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),se(Be,{data:this.props.aiTopic.activedTopic.value,type:"footer",className:this.ns.e("toolbar"),controller:this.props.aiChat,items:this.props.footerToolbarItems}),se("div",{className:this.ns.b("footer"),children:se(En,{controller:this.props.aiChat})})]})]}),se("div",{title:"AI助手",ref:this.minimizeRef,className:"".concat(this.ns.e("minimize")," ").concat(this.ns.is("hidden",!this.state.isMinimize)),onClick:this.exitMinimize.bind(this),children:se(ye,{})})]})}}]),o}(L);r("ChatContainer",Dn);var Ln=function(){function t(e){p(this,t),this.msg=e}return _(t,[{key:"messageid",get:function(){return this.msg.messageid}},{key:"state",get:function(){return this.msg.state}},{key:"role",get:function(){return this.msg.role}},{key:"type",get:function(){return this.msg.type}},{key:"content",get:function(){return this.msg.content}},{key:"completed",get:function(){return this.msg.completed}},{key:"_origin",get:function(){return this.msg}},{key:"update",value:function(t){t.content||(t.content=""),this.msg.content+=t.content}},{key:"updateCompleted",value:function(t){this.msg.completed=t}}]),t}(),In=function(){function t(e){p(this,t),this.data=e}return _(t,[{key:"appid",get:function(){return this.data.appid}},{key:"id",get:function(){return this.data.id}},{key:"type",get:function(){return this.data.type}},{key:"caption",get:function(){return this.data.caption}},{key:"url",get:function(){return this.data.url}},{key:"aiChat",get:function(){return this.data.aiChat}}]),t}(),zn=function(){function t(e){p(this,t),m(this,"messages",Wt([])),m(this,"input",Wt("")),m(this,"context",void 0),m(this,"params",void 0),m(this,"appDataEntityId",void 0),m(this,"topicId",void 0),this.opts=e,this.context=e.context,this.params=e.params,this.appDataEntityId=e.appDataEntityId,this.topicId=e.topicId,this.fecthHistory()}var e,n,r,i,o;return _(t,[{key:"fecthHistory",value:(o=h(l().mark((function t(){var e,n=this;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.topicId){t.next=7;break}return t.next=3,at.getData(Cn.DATA_BASE_NAME,Cn.DATA_TABLE_NAME,this.topicId);case 3:if(!((e=t.sent)&&e.data&&e.data.length>0)){t.next=7;break}return e.data.forEach((function(t){var e={messageid:t.messageid,state:t.state,type:t.type,role:t.role,content:t.content,completed:!0};n.addMessage(e)})),t.abrupt("return",!0);case 7:return t.abrupt("return",this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId}));case 8:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"asyncToIndexDB",value:(i=h(l().mark((function t(){var e;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.topicId){t.next=2;break}return t.abrupt("return");case 2:return e={id:this.topicId,data:this.messages.value.map((function(t){return t._origin})),timestamp:(new Date).getTime()},t.next=5,at.updateData(Cn.DATA_BASE_NAME,Cn.DATA_TABLE_NAME,e);case 5:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"setInput",value:function(t){this.input.value=t||""}},{key:"addMessage",value:function(t){var e=this.messages.value.find((function(e){return e.messageid===t.messageid}));e?(e.update(t),this.messages.value=c(this.messages.value)):this.messages.value=[].concat(c(this.messages.value),[new Ln(t)]),this.asyncToIndexDB()}},{key:"completeMessage",value:function(t,e){var n=this.messages.value.find((function(e){return e.messageid===t}));n&&(n.updateCompleted(e),this.messages.value=c(this.messages.value),this.asyncToIndexDB())}},{key:"replaceMessage",value:function(t){var e=this.messages.value.findIndex((function(e){return e.messageid===t.messageid}));-1!==e?(this.messages.value[e]=new Ln(t),this.messages.value=c(this.messages.value)):this.messages.value=[].concat(c(this.messages.value),[new Ln(t)]),this.asyncToIndexDB()}},{key:"question",value:(r=h(l().mark((function t(e){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.addMessage({state:30,messageid:it(),role:"USER",type:"DEFAULT",content:e}),t.next=3,this.opts.question(this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(t){return"ERROR"!==t.type})).map((function(t){return t._origin})));case 3:this.opts.action&&this.opts.action("question",e);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"backfill",value:function(t){this.opts.action&&this.opts.action("backfill",t)}},{key:"deleteMessage",value:function(t){var e=this.messages.value.findIndex((function(e){return e.messageid===t.messageid}));-1!==e&&(this.messages.value.splice(e,1),this.messages.value=c(this.messages.value)),this.asyncToIndexDB(),this.opts.action&&this.opts.action("deletemsg",t)}},{key:"refreshMessage",value:(n=h(l().mark((function t(e){var n,r,i,o=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=o.length>1&&void 0!==o[1]&&o[1],r=this.messages.value.findIndex((function(t){return t.messageid===e.messageid})),!n){t.next=9;break}return this.messages.value.splice(r+1,this.messages.value.length-r-1),this.messages.value=c(this.messages.value),t.next=7,this.opts.question(this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(t){return"ERROR"!==t.type})).map((function(t){return t._origin})));case 7:t.next=19;break;case 9:if(r!==this.messages.value.length-1){t.next=16;break}return this.messages.value.pop(),this.messages.value=c(this.messages.value),t.next=14,this.opts.question(this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(t){return"ERROR"!==t.type})).map((function(t){return t._origin})));case 14:t.next=19;break;case 16:i=this.messages.value[r-1].content,this.messages.value.splice(r-1,2),this.question(i);case 19:this.asyncToIndexDB(),this.opts.action&&this.opts.action("refreshmsg",e);case 21:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"copyMessage",value:function(t){var e=t.content;ot.copy(e),this.opts.action&&this.opts.action("copymsg",t)}},{key:"newDialogue",value:(e=h(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.messages.value.length=0,!this.topicId){t.next=4;break}return t.next=4,at.deleteData(Cn.DATA_BASE_NAME,Cn.DATA_TABLE_NAME,this.topicId);case 4:this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId});case 5:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})}]),t}(),Mn=function(){function t(e){p(this,t),m(this,"topics",Wt([])),m(this,"activedTopic",Wt(null)),m(this,"currentTopicOptions",void 0),this.chat=e}var e,n,r,i;return _(t,[{key:"fetchHistory",value:(i=h(l().mark((function t(e){var n,r,i=this;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.configService(e.appid,"aitopics",e.type),t.next=3,n.load();case 3:(r=t.sent)&&r.length>0&&r.forEach((function(t){i.topics.value=[].concat(c(i.topics.value),[new In(t)])}));case 5:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})},{key:"updateCurrentTopic",value:(r=h(l().mark((function t(e){var n,r,i,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.currentTopicOptions=e,n=this.topics.value.findIndex((function(t){return t.id===e.id})),r=new In(e),-1!==n?this.topics.value.splice(n,1,new In(e)):this.topics.value=[].concat(c(this.topics.value),[new In(e)]),i=this.topics.value.map((function(t){return{appid:t.appid,id:t.id,type:t.type,caption:t.caption,url:t.url,aiChat:t.aiChat}})),o=e.configService(e.appid,"aitopics",e.type),t.next=8,null==o?void 0:o.save(i);case 8:this.activedTopic.value=r;case 9:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"removeTopic",value:(n=h(l().mark((function t(e,n,r,i,o){var a,s,u,f,h;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=!0,!e.beforeDelete){t.next=5;break}return t.next=4,e.beforeDelete(n,r,i,o);case 4:s=t.sent;case 5:if(s){t.next=7;break}return t.abrupt("return");case 7:return-1!==(u=this.topics.value.findIndex((function(t){return t.id===i.id})))&&(this.topics.value.splice(u,1),this.topics.value=c(this.topics.value)),f=this.topics.value.map((function(t){return{appid:t.appid,id:t.id,type:t.type,caption:t.caption,url:t.url,aiChat:t.aiChat}})),h=e.configService(e.appid,"aitopics",e.type),t.next=13,null==h?void 0:h.save(f);case 13:return t.next=15,at.deleteData(Cn.DATA_BASE_NAME,Cn.DATA_TABLE_NAME,i.id);case 15:this.topics.value.length>0&&i.id===(null===(a=this.activedTopic.value)||void 0===a?void 0:a.id)&&this.handleTopicChange(this.topics.value[0]);case 16:case"end":return t.stop()}}),t,this)}))),function(t,e,r,i,o){return n.apply(this,arguments)})},{key:"handleTopicChange",value:function(t){var e;(null===(e=this.activedTopic.value)||void 0===e?void 0:e.id)!==t.id&&(this.activedTopic.value=t,this.chat.switchAiChatController(t))}},{key:"handleTopicAction",value:(e=h(l().mark((function t(e,n,r){var i,o,a,c,s,u;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this.topics.value.find((function(t){return t.id===n.id})),!(this.currentTopicOptions&&i&&i.aiChat)){t.next=7;break}if(c=i.aiChat,s=c.context,u=c.params,"DELETE"!==e){t.next=6;break}return t.next=6,this.removeTopic(this.currentTopicOptions,s,u,i,r);case 6:null===(o=(a=this.currentTopicOptions).action)||void 0===o||o.call(a,e,s,u,n,r);case 7:case"end":return t.stop()}}),t,this)}))),function(t,n,r){return e.apply(this,arguments)})}]),t}(),Pn=function(){function t(){p(this,t),m(this,"container",void 0),m(this,"mode","DEFAULT"),m(this,"isMountedAiTopic",!1),m(this,"backupChatOptions",void 0),m(this,"aiTopic",void 0),m(this,"aiChat",void 0),this.aiTopic=new Mn(this)}var e,n;return _(t,[{key:"initIndexDB",value:(n=h(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,at.checkTableExists(Cn.DATA_BASE_NAME,Cn.DATA_TABLE_NAME);case 2:if(t.sent){t.next=6;break}return t.next=6,at.createTable(Cn.DATA_BASE_NAME,Cn.DATA_TABLE_NAME,Cn.DATA_TABLE_KEY_NAME,!1);case 6:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})},{key:"create",value:(e=h(l().mark((function t(e){var n,r,i,o=this;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.initIndexDB();case 2:if(this.backupChatOptions=e,this.close(),this.container=document.createElement("div"),this.container.classList.add("ibiz-ai-chat"),document.body.appendChild(this.container),r=e.chatOptions,!e.mode||"TOPIC"!==e.mode){t.next=17;break}if(this.isMountedAiTopic){t.next=13;break}return t.next=12,this.aiTopic.fetchHistory(e.topicOptions);case 12:this.isMountedAiTopic=!0;case 13:return i=e.topicOptions,Object.assign(i,{aiChat:{caption:r.caption,context:r.context,params:r.params,appDataEntityId:r.appDataEntityId,contentToolbarItems:r.contentToolbarItems,footerToolbarItems:r.footerToolbarItems}}),t.next=17,this.aiTopic.updateCurrentTopic(i);case 17:return Object.assign(r,{topicId:null===(n=i)||void 0===n?void 0:n.id}),this.aiChat=new zn(r),J(A(Dn,{aiTopic:this.aiTopic,aiChat:this.aiChat,mode:e.mode?e.mode:"DEFAULT",caption:e.mode&&"TOPIC"===e.mode?"AI助手":r.caption,contentToolbarItems:r.contentToolbarItems,footerToolbarItems:r.footerToolbarItems,close:function(){o.close(),r.closed&&r.closed(r.context,r.params)},fullscreen:function(t){r.fullscreen&&r.fullscreen(t,r.context,r.params)},minimize:function(t){r.minimize&&r.minimize(t,r.context,r.params)}}),this.container),t.abrupt("return",this.aiChat);case 21:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"switchAiChatController",value:function(t){var e,n,r=this,i=o({},this.backupChatOptions.chatOptions);(t.aiChat&&Object.assign(i,{caption:t.aiChat.caption,context:t.aiChat.context,params:t.aiChat.params,contentToolbarItems:t.aiChat.contentToolbarItems,footerToolbarItems:t.aiChat.footerToolbarItems,appDataEntityId:t.aiChat.appDataEntityId,topicId:t.id}),this.aiChat=new zn(i),this.container)&&(J(null,this.container),J(A(Dn,{aiTopic:this.aiTopic,aiChat:this.aiChat,mode:null!==(e=this.backupChatOptions)&&void 0!==e&&e.mode?this.backupChatOptions.mode:"DEFAULT",caption:null!==(n=this.backupChatOptions)&&void 0!==n&&n.mode&&"TOPIC"===this.backupChatOptions.mode?"AI助手":i.caption,contentToolbarItems:i.contentToolbarItems,footerToolbarItems:i.footerToolbarItems,close:function(){r.close(),i.closed&&i.closed(i.context,i.params)},fullscreen:function(t){i.fullscreen&&i.fullscreen(t,i.context,i.params)},minimize:function(t){i.minimize&&i.minimize(t,i.context,i.params)}}),this.container))}},{key:"hidden",value:function(){this.container&&(this.container.style.display="none")}},{key:"show",value:function(){this.container&&(this.container.style.display="flex")}},{key:"close",value:function(){this.container&&(J(null,this.container),this.container.remove(),this.container=void 0)}}]),t}();r("chat",new Pn)}}}))}();
diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.10/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.10/polyfills.legacy.js
new file mode 100644
index 0000000000000000000000000000000000000000..e2f80ed675096c3265036f8c3282ad8645644b21
--- /dev/null
+++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.10/polyfills.legacy.js
@@ -0,0 +1 @@
+!function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=function(t){return t&&t.Math===Math&&t},e=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),n={},o=function(t){try{return!!t()}catch(r){return!0}},i=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),c=u,a=Function.prototype.call,f=c?a.bind(a):function(){return a.apply(a,arguments)},s={},l={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,v=h&&!l.call({1:2},1);s.f=v?function(t){var r=h(this,t);return!!r&&r.enumerable}:l;var p,d,g=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},y=u,m=Function.prototype,b=m.call,w=y&&m.bind.bind(b,b),S=y?w:function(t){return function(){return b.apply(t,arguments)}},E=S,x=E({}.toString),O=E("".slice),j=function(t){return O(x(t),8,-1)},I=o,T=j,P=Object,R=S("".split),A=I((function(){return!P("z").propertyIsEnumerable(0)}))?function(t){return"String"===T(t)?R(t,""):P(t)}:P,k=function(t){return null==t},C=k,N=TypeError,L=function(t){if(C(t))throw new N("Can't call method on "+t);return t},F=A,M=L,_=function(t){return F(M(t))},D="object"==typeof document&&document.all,U={all:D,IS_HTMLDDA:void 0===D&&void 0!==D},$=U.all,G=U.IS_HTMLDDA?function(t){return"function"==typeof t||t===$}:function(t){return"function"==typeof t},z=G,W=U.all,B=U.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:z(t)||t===W}:function(t){return"object"==typeof t?null!==t:z(t)},H=e,V=G,J=function(t,r){return arguments.length<2?(e=H[t],V(e)?e:void 0):H[t]&&H[t][r];var e},q=S({}.isPrototypeOf),K="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Y=e,X=K,Q=Y.process,Z=Y.Deno,tt=Q&&Q.versions||Z&&Z.version,rt=tt&&tt.v8;rt&&(d=(p=rt.split("."))[0]>0&&p[0]<4?1:+(p[0]+p[1])),!d&&X&&(!(p=X.match(/Edge\/(\d+)/))||p[1]>=74)&&(p=X.match(/Chrome\/(\d+)/))&&(d=+p[1]);var et=d,nt=et,ot=o,it=e.String,ut=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol("symbol detection");return!it(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&nt&&nt<41})),ct=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=J,ft=G,st=q,lt=Object,ht=ct?function(t){return"symbol"==typeof t}:function(t){var r=at("Symbol");return ft(r)&&st(r.prototype,lt(t))},vt=String,pt=function(t){try{return vt(t)}catch(r){return"Object"}},dt=G,gt=pt,yt=TypeError,mt=function(t){if(dt(t))return t;throw new yt(gt(t)+" is not a function")},bt=mt,wt=k,St=function(t,r){var e=t[r];return wt(e)?void 0:bt(e)},Et=f,xt=G,Ot=B,jt=TypeError,It=function(t,r){var e,n;if("string"===r&&xt(e=t.toString)&&!Ot(n=Et(e,t)))return n;if(xt(e=t.valueOf)&&!Ot(n=Et(e,t)))return n;if("string"!==r&&xt(e=t.toString)&&!Ot(n=Et(e,t)))return n;throw new jt("Can't convert object to primitive value")},Tt={exports:{}},Pt=e,Rt=Object.defineProperty,At=function(t,r){try{Rt(Pt,t,{value:r,configurable:!0,writable:!0})}catch(e){Pt[t]=r}return r},kt=At,Ct="__core-js_shared__",Nt=e[Ct]||kt(Ct,{}),Lt=Nt;(Tt.exports=function(t,r){return Lt[t]||(Lt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.33.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ft=Tt.exports,Mt=L,_t=Object,Dt=function(t){return _t(Mt(t))},Ut=Dt,$t=S({}.hasOwnProperty),Gt=Object.hasOwn||function(t,r){return $t(Ut(t),r)},zt=S,Wt=0,Bt=Math.random(),Ht=zt(1..toString),Vt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Ht(++Wt+Bt,36)},Jt=Ft,qt=Gt,Kt=Vt,Yt=ut,Xt=ct,Qt=e.Symbol,Zt=Jt("wks"),tr=Xt?Qt.for||Qt:Qt&&Qt.withoutSetter||Kt,rr=function(t){return qt(Zt,t)||(Zt[t]=Yt&&qt(Qt,t)?Qt[t]:tr("Symbol."+t)),Zt[t]},er=f,nr=B,or=ht,ir=St,ur=It,cr=TypeError,ar=rr("toPrimitive"),fr=function(t,r){if(!nr(t)||or(t))return t;var e,n=ir(t,ar);if(n){if(void 0===r&&(r="default"),e=er(n,t,r),!nr(e)||or(e))return e;throw new cr("Can't convert object to primitive value")}return void 0===r&&(r="number"),ur(t,r)},sr=fr,lr=ht,hr=function(t){var r=sr(t,"string");return lr(r)?r:r+""},vr=B,pr=e.document,dr=vr(pr)&&vr(pr.createElement),gr=function(t){return dr?pr.createElement(t):{}},yr=gr,mr=!i&&!o((function(){return 7!==Object.defineProperty(yr("div"),"a",{get:function(){return 7}}).a})),br=i,wr=f,Sr=s,Er=g,xr=_,Or=hr,jr=Gt,Ir=mr,Tr=Object.getOwnPropertyDescriptor;n.f=br?Tr:function(t,r){if(t=xr(t),r=Or(r),Ir)try{return Tr(t,r)}catch(e){}if(jr(t,r))return Er(!wr(Sr.f,t,r),t[r])};var Pr={},Rr=i&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ar=B,kr=String,Cr=TypeError,Nr=function(t){if(Ar(t))return t;throw new Cr(kr(t)+" is not an object")},Lr=i,Fr=mr,Mr=Rr,_r=Nr,Dr=hr,Ur=TypeError,$r=Object.defineProperty,Gr=Object.getOwnPropertyDescriptor,zr="enumerable",Wr="configurable",Br="writable";Pr.f=Lr?Mr?function(t,r,e){if(_r(t),r=Dr(r),_r(e),"function"==typeof t&&"prototype"===r&&"value"in e&&Br in e&&!e[Br]){var n=Gr(t,r);n&&n[Br]&&(t[r]=e.value,e={configurable:Wr in e?e[Wr]:n[Wr],enumerable:zr in e?e[zr]:n[zr],writable:!1})}return $r(t,r,e)}:$r:function(t,r,e){if(_r(t),r=Dr(r),_r(e),Fr)try{return $r(t,r,e)}catch(n){}if("get"in e||"set"in e)throw new Ur("Accessors not supported");return"value"in e&&(t[r]=e.value),t};var Hr=Pr,Vr=g,Jr=i?function(t,r,e){return Hr.f(t,r,Vr(1,e))}:function(t,r,e){return t[r]=e,t},qr={exports:{}},Kr=i,Yr=Gt,Xr=Function.prototype,Qr=Kr&&Object.getOwnPropertyDescriptor,Zr=Yr(Xr,"name"),te={EXISTS:Zr,PROPER:Zr&&"something"===function(){}.name,CONFIGURABLE:Zr&&(!Kr||Kr&&Qr(Xr,"name").configurable)},re=G,ee=Nt,ne=S(Function.toString);re(ee.inspectSource)||(ee.inspectSource=function(t){return ne(t)});var oe,ie,ue,ce=ee.inspectSource,ae=G,fe=e.WeakMap,se=ae(fe)&&/native code/.test(String(fe)),le=Vt,he=Ft("keys"),ve=function(t){return he[t]||(he[t]=le(t))},pe={},de=se,ge=e,ye=B,me=Jr,be=Gt,we=Nt,Se=ve,Ee=pe,xe="Object already initialized",Oe=ge.TypeError,je=ge.WeakMap;if(de||we.state){var Ie=we.state||(we.state=new je);Ie.get=Ie.get,Ie.has=Ie.has,Ie.set=Ie.set,oe=function(t,r){if(Ie.has(t))throw new Oe(xe);return r.facade=t,Ie.set(t,r),r},ie=function(t){return Ie.get(t)||{}},ue=function(t){return Ie.has(t)}}else{var Te=Se("state");Ee[Te]=!0,oe=function(t,r){if(be(t,Te))throw new Oe(xe);return r.facade=t,me(t,Te,r),r},ie=function(t){return be(t,Te)?t[Te]:{}},ue=function(t){return be(t,Te)}}var Pe={set:oe,get:ie,has:ue,enforce:function(t){return ue(t)?ie(t):oe(t,{})},getterFor:function(t){return function(r){var e;if(!ye(r)||(e=ie(r)).type!==t)throw new Oe("Incompatible receiver, "+t+" required");return e}}},Re=S,Ae=o,ke=G,Ce=Gt,Ne=i,Le=te.CONFIGURABLE,Fe=ce,Me=Pe.enforce,_e=Pe.get,De=String,Ue=Object.defineProperty,$e=Re("".slice),Ge=Re("".replace),ze=Re([].join),We=Ne&&!Ae((function(){return 8!==Ue((function(){}),"length",{value:8}).length})),Be=String(String).split("String"),He=qr.exports=function(t,r,e){"Symbol("===$e(De(r),0,7)&&(r="["+Ge(De(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!Ce(t,"name")||Le&&t.name!==r)&&(Ne?Ue(t,"name",{value:r,configurable:!0}):t.name=r),We&&e&&Ce(e,"arity")&&t.length!==e.arity&&Ue(t,"length",{value:e.arity});try{e&&Ce(e,"constructor")&&e.constructor?Ne&&Ue(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=Me(t);return Ce(n,"source")||(n.source=ze(Be,"string"==typeof r?r:"")),t};Function.prototype.toString=He((function(){return ke(this)&&_e(this).source||Fe(this)}),"toString");var Ve=qr.exports,Je=G,qe=Pr,Ke=Ve,Ye=At,Xe=function(t,r,e,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:r;if(Je(e)&&Ke(e,i,n),n.global)o?t[r]=e:Ye(r,e);else{try{n.unsafe?t[r]&&(o=!0):delete t[r]}catch(u){}o?t[r]=e:qe.f(t,r,{value:e,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},Qe={},Ze=Math.ceil,tn=Math.floor,rn=Math.trunc||function(t){var r=+t;return(r>0?tn:Ze)(r)},en=function(t){var r=+t;return r!=r||0===r?0:rn(r)},nn=en,on=Math.max,un=Math.min,cn=function(t,r){var e=nn(t);return e<0?on(e+r,0):un(e,r)},an=en,fn=Math.min,sn=function(t){return t>0?fn(an(t),9007199254740991):0},ln=sn,hn=function(t){return ln(t.length)},vn=_,pn=cn,dn=hn,gn=function(t){return function(r,e,n){var o,i=vn(r),u=dn(i),c=pn(n,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},yn={includes:gn(!0),indexOf:gn(!1)},mn=Gt,bn=_,wn=yn.indexOf,Sn=pe,En=S([].push),xn=function(t,r){var e,n=bn(t),o=0,i=[];for(e in n)!mn(Sn,e)&&mn(n,e)&&En(i,e);for(;r.length>o;)mn(n,e=r[o++])&&(~wn(i,e)||En(i,e));return i},On=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jn=xn,In=On.concat("length","prototype");Qe.f=Object.getOwnPropertyNames||function(t){return jn(t,In)};var Tn={};Tn.f=Object.getOwnPropertySymbols;var Pn=J,Rn=Qe,An=Tn,kn=Nr,Cn=S([].concat),Nn=Pn("Reflect","ownKeys")||function(t){var r=Rn.f(kn(t)),e=An.f;return e?Cn(r,e(t)):r},Ln=Gt,Fn=Nn,Mn=n,_n=Pr,Dn=function(t,r,e){for(var n=Fn(r),o=_n.f,i=Mn.f,u=0;u9007199254740991)throw fo("Maximum allowed index exceeded");return t},lo=Dt,ho=hn,vo=ao,po=so;ro({target:"Array",proto:!0,arity:1,forced:o((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var r=lo(this),e=ho(r),n=arguments.length;po(e+n);for(var o=0;o0;)t[n]=t[--n];n!==i++&&(t[n]=e)}return t},Ho=function(t,r,e,n){for(var o=r.length,i=e.length,u=0,c=0;u3)){if(li)return!0;if(vi)return vi<603;var t,r,e,n,o="";for(t=65;t<76;t++){switch(r=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(n=0;n<47;n++)pi.push({k:r+n,v:e})}for(pi.sort((function(t,r){return r.v-t.v})),n=0;nui(e)?1:-1}}(t)),e=oi(o),n=0;nu;)Gi.f(t,e=o[u++],n[e]);return t};var Hi,Vi=J("document","documentElement"),Ji=Nr,qi=Fi,Ki=On,Yi=pe,Xi=Vi,Qi=gr,Zi="prototype",tu="script",ru=ve("IE_PROTO"),eu=function(){},nu=function(t){return"<"+tu+">"+t+""+tu+">"},ou=function(t){t.write(nu("")),t.close();var r=t.parentWindow.Object;return t=null,r},iu=function(){try{Hi=new ActiveXObject("htmlfile")}catch(o){}var t,r,e;iu="undefined"!=typeof document?document.domain&&Hi?ou(Hi):(r=Qi("iframe"),e="java"+tu+":",r.style.display="none",Xi.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(nu("document.F=Object")),t.close(),t.F):ou(Hi);for(var n=Ki.length;n--;)delete iu[Zi][Ki[n]];return iu()};Yi[ru]=!0;var uu,cu,au,fu=Object.create||function(t,r){var e;return null!==t?(eu[Zi]=Ji(t),e=new eu,eu[Zi]=null,e[ru]=t):e=iu(),void 0===r?e:qi.f(e,r)},su=o,lu=G,hu=B,vu=Li,pu=Xe,du=rr("iterator"),gu=!1;[].keys&&("next"in(au=[].keys())?(cu=vu(vu(au)))!==Object.prototype&&(uu=cu):gu=!0);var yu=!hu(uu)||su((function(){var t={};return uu[du].call(t)!==t}));yu&&(uu={}),lu(uu[du])||pu(uu,du,(function(){return this}));var mu={IteratorPrototype:uu,BUGGY_SAFARI_ITERATORS:gu},bu=ro,wu=e,Su=ji,Eu=G,xu=Li,Ou=Jr,ju=o,Iu=Gt,Tu=mu.IteratorPrototype,Pu=rr("toStringTag"),Ru=TypeError,Au=wu.Iterator,ku=!Eu(Au)||Au.prototype!==Tu||!ju((function(){Au({})})),Cu=function(){if(Su(this,Tu),xu(this)===Tu)throw new Ru("Abstract class Iterator not directly constructable")};Iu(Tu,Pu)||Ou(Tu,Pu,"Iterator"),!ku&&Iu(Tu,"constructor")&&Tu.constructor!==Object||Ou(Tu,"constructor",Cu),Cu.prototype=Tu,bu({global:!0,constructor:!0,forced:ku},{Iterator:Cu});var Nu=j,Lu=S,Fu=function(t){if("Function"===Nu(t))return Lu(t)},Mu=mt,_u=u,Du=Fu(Fu.bind),Uu=function(t,r){return Mu(t),void 0===r?t:_u?Du(t,r):function(){return t.apply(r,arguments)}},$u={},Gu=$u,zu=rr("iterator"),Wu=Array.prototype,Bu=function(t){return void 0!==t&&(Gu.Array===t||Wu[zu]===t)},Hu=To,Vu=St,Ju=k,qu=$u,Ku=rr("iterator"),Yu=function(t){if(!Ju(t))return Vu(t,Ku)||Vu(t,"@@iterator")||qu[Hu(t)]},Xu=f,Qu=mt,Zu=Nr,tc=pt,rc=Yu,ec=TypeError,nc=function(t,r){var e=arguments.length<2?rc(t):r;if(Qu(e))return Zu(Xu(e,t));throw new ec(tc(t)+" is not iterable")},oc=f,ic=Nr,uc=St,cc=function(t,r,e){var n,o;ic(t);try{if(!(n=uc(t,"return"))){if("throw"===r)throw e;return e}n=oc(n,t)}catch(i){o=!0,n=i}if("throw"===r)throw e;if(o)throw n;return ic(n),e},ac=Uu,fc=f,sc=Nr,lc=pt,hc=Bu,vc=hn,pc=q,dc=nc,gc=Yu,yc=cc,mc=TypeError,bc=function(t,r){this.stopped=t,this.result=r},wc=bc.prototype,Sc=function(t,r,e){var n,o,i,u,c,a,f,s=e&&e.that,l=!(!e||!e.AS_ENTRIES),h=!(!e||!e.IS_RECORD),v=!(!e||!e.IS_ITERATOR),p=!(!e||!e.INTERRUPTED),d=ac(r,s),g=function(t){return n&&yc(n,"normal",t),new bc(!0,t)},y=function(t){return l?(sc(t),p?d(t[0],t[1],g):d(t[0],t[1])):p?d(t,g):d(t)};if(h)n=t.iterator;else if(v)n=t;else{if(!(o=gc(t)))throw new mc(lc(t)+" is not iterable");if(hc(o)){for(i=0,u=vc(t);u>i;i++)if((c=y(t[i]))&&pc(wc,c))return c;return new bc(!1)}n=dc(t,o)}for(a=h?t.next:n.next;!(f=fc(a,n)).done;){try{c=y(f.value)}catch(m){yc(n,"throw",m)}if("object"==typeof c&&c&&pc(wc,c))return c}return new bc(!1)},Ec=function(t){return{iterator:t,next:t.next,done:!1}},xc=Sc,Oc=mt,jc=Nr,Ic=Ec;ro({target:"Iterator",proto:!0,real:!0},{some:function(t){jc(this),Oc(t);var r=Ic(this),e=0;return xc(r,(function(r,n){if(t(r,e++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var Tc,Pc,Rc=Nr,Ac=function(){var t=Rc(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},kc=o,Cc=e.RegExp,Nc=kc((function(){var t=Cc("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),Lc=Nc||kc((function(){return!Cc("a","y").sticky})),Fc=Nc||kc((function(){var t=Cc("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),Mc={BROKEN_CARET:Fc,MISSED_STICKY:Lc,UNSUPPORTED_Y:Nc},_c=o,Dc=e.RegExp,Uc=_c((function(){var t=Dc(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),$c=o,Gc=e.RegExp,zc=$c((function(){var t=Gc("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})),Wc=f,Bc=S,Hc=Ao,Vc=Ac,Jc=Mc,qc=fu,Kc=Pe.get,Yc=Uc,Xc=zc,Qc=Ft("native-string-replace",String.prototype.replace),Zc=RegExp.prototype.exec,ta=Zc,ra=Bc("".charAt),ea=Bc("".indexOf),na=Bc("".replace),oa=Bc("".slice),ia=(Pc=/b*/g,Wc(Zc,Tc=/a/,"a"),Wc(Zc,Pc,"a"),0!==Tc.lastIndex||0!==Pc.lastIndex),ua=Jc.BROKEN_CARET,ca=void 0!==/()??/.exec("")[1];(ia||ca||ua||Yc||Xc)&&(ta=function(t){var r,e,n,o,i,u,c,a=this,f=Kc(a),s=Hc(t),l=f.raw;if(l)return l.lastIndex=a.lastIndex,r=Wc(ta,l,s),a.lastIndex=l.lastIndex,r;var h=f.groups,v=ua&&a.sticky,p=Wc(Vc,a),d=a.source,g=0,y=s;if(v&&(p=na(p,"y",""),-1===ea(p,"g")&&(p+="g"),y=oa(s,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==ra(s,a.lastIndex-1))&&(d="(?: "+d+")",y=" "+y,g++),e=new RegExp("^(?:"+d+")",p)),ca&&(e=new RegExp("^"+d+"$(?!\\s)",p)),ia&&(n=a.lastIndex),o=Wc(Zc,v?e:a,y),v?o?(o.input=oa(o.input,g),o[0]=oa(o[0],g),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:ia&&o&&(a.lastIndex=a.global?o.index+o[0].length:n),ca&&o&&o.length>1&&Wc(Qc,o[0],e,(function(){for(i=1;i=c?t?"":void 0:(n=Ma(i,u))<55296||n>56319||u+1===c||(o=Ma(i,u+1))<56320||o>57343?t?Fa(i,u):n:t?_a(i,u,u+2):o-56320+(n-55296<<10)+65536}},Ua={codeAt:Da(!1),charAt:Da(!0)},$a=Ua.charAt,Ga=S,za=Dt,Wa=Math.floor,Ba=Ga("".charAt),Ha=Ga("".replace),Va=Ga("".slice),Ja=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,qa=/\$([$&'`]|\d{1,2})/g,Ka=f,Ya=Nr,Xa=G,Qa=j,Za=aa,tf=TypeError,rf=Ea,ef=f,nf=S,of=function(t,r,e,n){var o=Ta(t),i=!Ia((function(){var r={};return r[o]=function(){return 7},7!==""[t](r)})),u=i&&!Ia((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[Ra]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return r=!0,null},e[o](""),!r}));if(!i||!u||e){var c=xa(/./[o]),a=r(o,""[t],(function(t,r,e,n,o){var u=xa(t),a=r.exec;return a===ja||a===Aa.exec?i&&!o?{done:!0,value:c(r,e,n)}:{done:!0,value:u(e,r,n)}:{done:!1}}));Oa(String.prototype,t,a[0]),Oa(Aa,o,a[1])}n&&Pa(Aa[o],"sham",!0)},uf=o,cf=Nr,af=G,ff=k,sf=en,lf=sn,hf=Ao,vf=L,pf=function(t,r,e){return r+(e?$a(t,r).length:1)},df=St,gf=function(t,r,e,n,o,i){var u=e+t.length,c=n.length,a=qa;return void 0!==o&&(o=za(o),a=Ja),Ha(i,a,(function(i,a){var f;switch(Ba(a,0)){case"$":return"$";case"&":return t;case"`":return Va(r,0,e);case"'":return Va(r,u);case"<":f=o[Va(a,1,-1)];break;default:var s=+a;if(0===s)return i;if(s>c){var l=Wa(s/10);return 0===l?i:l<=c?void 0===n[l-1]?Ba(a,1):n[l-1]+Ba(a,1):i}f=n[s-1]}return void 0===f?"":f}))},yf=function(t,r){var e=t.exec;if(Xa(e)){var n=Ka(e,t,r);return null!==n&&Ya(n),n}if("RegExp"===Qa(t))return Ka(Za,t,r);throw new tf("RegExp#exec called on incompatible receiver")},mf=rr("replace"),bf=Math.max,wf=Math.min,Sf=nf([].concat),Ef=nf([].push),xf=nf("".indexOf),Of=nf("".slice),jf="$0"==="a".replace(/./,"$0"),If=!!/./[mf]&&""===/./[mf]("a","$0"),Tf=!uf((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}));of("replace",(function(t,r,e){var n=If?"$":"$0";return[function(t,e){var n=vf(this),o=ff(t)?void 0:df(t,mf);return o?ef(o,t,n,e):ef(r,hf(n),t,e)},function(t,o){var i=cf(this),u=hf(t);if("string"==typeof o&&-1===xf(o,n)&&-1===xf(o,"$<")){var c=e(r,i,u,o);if(c.done)return c.value}var a=af(o);a||(o=hf(o));var f,s=i.global;s&&(f=i.unicode,i.lastIndex=0);for(var l,h=[];null!==(l=yf(i,u))&&(Ef(h,l),s);){""===hf(l[0])&&(i.lastIndex=pf(u,lf(i.lastIndex),f))}for(var v,p="",d=0,g=0;g=d&&(p+=Of(u,d,b)+y,d=b+m.length)}return p+Of(u,d)}]}),!Tf||!jf||If);var Pf=S,Rf=o,Af=G,kf=To,Cf=ce,Nf=function(){},Lf=[],Ff=J("Reflect","construct"),Mf=/^\s*(?:class|function)\b/,_f=Pf(Mf.exec),Df=!Mf.test(Nf),Uf=function(t){if(!Af(t))return!1;try{return Ff(Nf,Lf,t),!0}catch(r){return!1}},$f=function(t){if(!Af(t))return!1;switch(kf(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Df||!!_f(Mf,Cf(t))}catch(r){return!0}};$f.sham=!0;var Gf=!Ff||Rf((function(){var t;return Uf(Uf.call)||!Uf(Object)||!Uf((function(){t=!0}))||t}))?$f:Uf,zf=o,Wf=et,Bf=rr("species"),Hf=function(t){return Wf>=51||!zf((function(){var r=[];return(r.constructor={})[Bf]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},Vf=S([].slice),Jf=ro,qf=no,Kf=Gf,Yf=B,Xf=cn,Qf=hn,Zf=_,ts=Lo,rs=rr,es=Vf,ns=Hf("slice"),os=rs("species"),is=Array,us=Math.max;Jf({target:"Array",proto:!0,forced:!ns},{slice:function(t,r){var e,n,o,i=Zf(this),u=Qf(i),c=Xf(t,u),a=Xf(void 0===r?u:r,u);if(qf(i)&&(e=i.constructor,(Kf(e)&&(e===is||qf(e.prototype))||Yf(e)&&null===(e=e[os]))&&(e=void 0),e===is||void 0===e))return es(i,c,a);for(n=new(void 0===e?is:e)(us(a-c,0)),o=0;c"+o+""+r+">"},vs=function(t){return ls((function(){var r=""[t]('"');return r!==r.toLowerCase()||r.split('"').length>3}))};ro({target:"String",proto:!0,forced:vs("sub")},{sub:function(){return hs(this,"sub","","")}});var ps=Sc,ds=mt,gs=Nr,ys=Ec;ro({target:"Iterator",proto:!0,real:!0},{forEach:function(t){gs(this),ds(t);var r=ys(this),e=0;ps(r,(function(r){t(r,e++)}),{IS_RECORD:!0})}});var ms={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},bs=gr("span").classList,ws=bs&&bs.constructor&&bs.constructor.prototype,Ss=ws===Object.prototype?void 0:ws,Es=no,xs=Gf,Os=B,js=rr("species"),Is=Array,Ts=function(t){var r;return Es(t)&&(r=t.constructor,(xs(r)&&(r===Is||Es(r.prototype))||Os(r)&&null===(r=r[js]))&&(r=void 0)),void 0===r?Is:r},Ps=function(t,r){return new(Ts(t))(0===r?0:r)},Rs=Uu,As=A,ks=Dt,Cs=hn,Ns=Ps,Ls=S([].push),Fs=function(t){var r=1===t,e=2===t,n=3===t,o=4===t,i=6===t,u=7===t,c=5===t||i;return function(a,f,s,l){for(var h,v,p=ks(a),d=As(p),g=Rs(f,s),y=Cs(d),m=0,b=l||Ns,w=r?b(a,y):e||u?b(a,0):void 0;y>m;m++)if((c||m in d)&&(v=g(h=d[m],m,p),t))if(r)w[m]=v;else if(v)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:Ls(w,h)}else switch(t){case 4:return!1;case 7:Ls(w,h)}return i?-1:n||o?o:w}},Ms={forEach:Fs(0),map:Fs(1),filter:Fs(2),some:Fs(3),every:Fs(4),find:Fs(5),findIndex:Fs(6),filterReject:Fs(7)},_s=Ms.forEach,Ds=qo("forEach")?[].forEach:function(t){return _s(this,t,arguments.length>1?arguments[1]:void 0)},Us=e,$s=ms,Gs=Ss,zs=Ds,Ws=Jr,Bs=function(t){if(t&&t.forEach!==zs)try{Ws(t,"forEach",zs)}catch(r){t.forEach=zs}};for(var Hs in $s)$s[Hs]&&Bs(Us[Hs]&&Us[Hs].prototype);Bs(Gs);var Vs=Ve,Js=Pr,qs=function(t,r,e){return e.get&&Vs(e.get,r,{getter:!0}),e.set&&Vs(e.set,r,{setter:!0}),Js.f(t,r,e)},Ks=i,Ys=te.EXISTS,Xs=S,Qs=qs,Zs=Function.prototype,tl=Xs(Zs.toString),rl=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,el=Xs(rl.exec);Ks&&!Ys&&Qs(Zs,"name",{configurable:!0,get:function(){try{return el(rl,tl(this))[1]}catch(t){return""}}});var nl,ol,il,ul,cl="process"===j(e.process),al=S,fl=mt,sl=G,ll=String,hl=TypeError,vl=function(t,r,e){try{return al(fl(Object.getOwnPropertyDescriptor(t,r)[e]))}catch(n){}},pl=Nr,dl=function(t){if("object"==typeof t||sl(t))return t;throw new hl("Can't set "+ll(t)+" as a prototype")},gl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=vl(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(n){}return function(e,n){return pl(e),dl(n),r?t(e,n):e.__proto__=n,e}}():void 0),yl=Pr.f,ml=Gt,bl=rr("toStringTag"),wl=function(t,r,e){t&&!e&&(t=t.prototype),t&&!ml(t,bl)&&yl(t,bl,{configurable:!0,value:r})},Sl=J,El=qs,xl=i,Ol=rr("species"),jl=function(t){var r=Sl(t);xl&&r&&!r[Ol]&&El(r,Ol,{configurable:!0,get:function(){return this}})},Il=Gf,Tl=pt,Pl=TypeError,Rl=function(t){if(Il(t))return t;throw new Pl(Tl(t)+" is not a constructor")},Al=Nr,kl=Rl,Cl=k,Nl=rr("species"),Ll=TypeError,Fl=/(?:ipad|iphone|ipod).*applewebkit/i.test(K),Ml=e,_l=Ea,Dl=Uu,Ul=G,$l=Gt,Gl=o,zl=Vi,Wl=Vf,Bl=gr,Hl=function(t,r){if(t=51||!Lp((function(){var t=[];return t[Bp]=!1,t.concat()[0]!==t})),Vp=function(t){if(!Mp(t))return!1;var r=t[Bp];return void 0!==r?!!r:Fp(t)};Np({target:"Array",proto:!0,arity:1,forced:!Hp||!zp("concat")},{concat:function(t){var r,e,n,o,i,u=_p(this),c=Gp(u,0),a=0;for(r=-1,n=arguments.length;ri&&Sd(o,arguments[i]),o}));l.prototype=f,"Error"!==c?gd?gd(l,s):yd(l,s,{name:!0}):xd&&o in a&&(md(l,a,o),md(l,a,"prepareStackTrace")),yd(l,a);try{f.name!==c&&pd(f,"name",c),f.constructor=l}catch(Lj){}return l}},Td="WebAssembly",Pd=e[Td],Rd=7!==new Error("e",{cause:7}).cause,Ad=function(t,r){var e={};e[t]=Id(t,r,Rd),Od({global:!0,constructor:!0,arity:1,forced:Rd},e)},kd=function(t,r){if(Pd&&Pd[t]){var e={};e[t]=Id(Td+"."+t,r,Rd),Od({target:Td,stat:!0,constructor:!0,arity:1,forced:Rd},e)}};Ad("Error",(function(t){return function(r){return jd(t,this,arguments)}})),Ad("EvalError",(function(t){return function(r){return jd(t,this,arguments)}})),Ad("RangeError",(function(t){return function(r){return jd(t,this,arguments)}})),Ad("ReferenceError",(function(t){return function(r){return jd(t,this,arguments)}})),Ad("SyntaxError",(function(t){return function(r){return jd(t,this,arguments)}})),Ad("TypeError",(function(t){return function(r){return jd(t,this,arguments)}})),Ad("URIError",(function(t){return function(r){return jd(t,this,arguments)}})),kd("CompileError",(function(t){return function(r){return jd(t,this,arguments)}})),kd("LinkError",(function(t){return function(r){return jd(t,this,arguments)}})),kd("RuntimeError",(function(t){return function(r){return jd(t,this,arguments)}}));var Cd=no,Nd=G,Ld=j,Fd=Ao,Md=S([].push),_d=ro,Dd=J,Ud=Ea,$d=f,Gd=S,zd=o,Wd=G,Bd=ht,Hd=Vf,Vd=function(t){if(Nd(t))return t;if(Cd(t)){for(var r=t.length,e=[],n=0;n1?arguments[1]:void 0)}});var Og=Xe,jg=function(t,r,e){for(var n in r)Og(t,n,r[n],e);return t},Ig=function(t,r){return{value:t,done:r}},Tg=f,Pg=fu,Rg=Jr,Ag=jg,kg=Pe,Cg=St,Ng=mu.IteratorPrototype,Lg=Ig,Fg=cc,Mg=rr("toStringTag"),_g="IteratorHelper",Dg="WrapForValidIterator",Ug=kg.set,$g=function(t){var r=kg.getterFor(t?Dg:_g);return Ag(Pg(Ng),{next:function(){var e=r(this);if(t)return e.nextHandler();try{var n=e.done?void 0:e.nextHandler();return Lg(n,e.done)}catch(Lj){throw e.done=!0,Lj}},return:function(){var e=r(this),n=e.iterator;if(e.done=!0,t){var o=Cg(n,"return");return o?Tg(o,n):Lg(void 0,!0)}if(e.inner)try{Fg(e.inner.iterator,"normal")}catch(Lj){return Fg(n,"throw",Lj)}return Fg(n,"normal"),Lg(void 0,!0)}})},Gg=$g(!0),zg=$g(!1);Rg(zg,Mg,"Iterator Helper");var Wg=function(t,r){var e=function(e,n){n?(n.iterator=e.iterator,n.next=e.next):n=e,n.type=r?Dg:_g,n.nextHandler=t,n.counter=0,n.done=!1,Ug(this,n)};return e.prototype=r?Gg:zg,e},Bg=Nr,Hg=cc,Vg=function(t,r,e,n){try{return n?r(Bg(e)[0],e[1]):r(e)}catch(Lj){Hg(t,"throw",Lj)}},Jg=ro,qg=f,Kg=mt,Yg=Nr,Xg=Ec,Qg=Vg,Zg=Wg((function(){for(var t,r,e=this.iterator,n=this.predicate,o=this.next;;){if(t=Yg(qg(o,e)),this.done=!!t.done)return;if(r=t.value,Qg(e,n,[r,this.counter++],!0))return r}}));Jg({target:"Iterator",proto:!0,real:!0,forced:false},{filter:function(t){return Yg(this),Kg(t),new Zg(Xg(this),{predicate:t})}});var ty=Sc,ry=mt,ey=Nr,ny=Ec;ro({target:"Iterator",proto:!0,real:!0},{every:function(t){ey(this),ry(t);var r=ny(this),e=0;return!ty(r,(function(r,n){if(!t(r,e++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var oy={},iy=j,uy=_,cy=Qe.f,ay=$o,fy="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];oy.f=function(t){return fy&&"Window"===iy(t)?function(t){try{return cy(t)}catch(Lj){return ay(fy)}}(t):cy(uy(t))};var sy={},ly=rr;sy.f=ly;var hy=e,vy=hy,py=Gt,dy=sy,gy=Pr.f,yy=function(t){var r=vy.Symbol||(vy.Symbol={});py(r,t)||gy(r,t,{value:dy.f(t)})},my=f,by=J,wy=rr,Sy=Xe,Ey=function(){var t=by("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,n=wy("toPrimitive");r&&!r[n]&&Sy(r,n,(function(t){return my(e,this)}),{arity:1})},xy=ro,Oy=e,jy=f,Iy=S,Ty=i,Py=ut,Ry=o,Ay=Gt,ky=q,Cy=Nr,Ny=_,Ly=hr,Fy=Ao,My=g,_y=fu,Dy=Di,Uy=Qe,$y=oy,Gy=Tn,zy=n,Wy=Pr,By=Fi,Hy=s,Vy=Xe,Jy=qs,qy=Ft,Ky=pe,Yy=Vt,Xy=rr,Qy=sy,Zy=yy,tm=Ey,rm=wl,em=Pe,nm=Ms.forEach,om=ve("hidden"),im="Symbol",um="prototype",cm=em.set,am=em.getterFor(im),fm=Object[um],sm=Oy.Symbol,lm=sm&&sm[um],hm=Oy.RangeError,vm=Oy.TypeError,pm=Oy.QObject,dm=zy.f,gm=Wy.f,ym=$y.f,mm=Hy.f,bm=Iy([].push),wm=qy("symbols"),Sm=qy("op-symbols"),Em=qy("wks"),xm=!pm||!pm[um]||!pm[um].findChild,Om=function(t,r,e){var n=dm(fm,r);n&&delete fm[r],gm(t,r,e),n&&t!==fm&&gm(fm,r,n)},jm=Ty&&Ry((function(){return 7!==_y(gm({},"a",{get:function(){return gm(this,"a",{value:7}).a}})).a}))?Om:gm,Im=function(t,r){var e=wm[t]=_y(lm);return cm(e,{type:im,tag:t,description:r}),Ty||(e.description=r),e},Tm=function(t,r,e){t===fm&&Tm(Sm,r,e),Cy(t);var n=Ly(r);return Cy(e),Ay(wm,n)?(e.enumerable?(Ay(t,om)&&t[om][n]&&(t[om][n]=!1),e=_y(e,{enumerable:My(0,!1)})):(Ay(t,om)||gm(t,om,My(1,{})),t[om][n]=!0),jm(t,n,e)):gm(t,n,e)},Pm=function(t,r){Cy(t);var e=Ny(r),n=Dy(e).concat(Cm(e));return nm(n,(function(r){Ty&&!jy(Rm,e,r)||Tm(t,r,e[r])})),t},Rm=function(t){var r=Ly(t),e=jy(mm,this,r);return!(this===fm&&Ay(wm,r)&&!Ay(Sm,r))&&(!(e||!Ay(this,r)||!Ay(wm,r)||Ay(this,om)&&this[om][r])||e)},Am=function(t,r){var e=Ny(t),n=Ly(r);if(e!==fm||!Ay(wm,n)||Ay(Sm,n)){var o=dm(e,n);return!o||!Ay(wm,n)||Ay(e,om)&&e[om][n]||(o.enumerable=!0),o}},km=function(t){var r=ym(Ny(t)),e=[];return nm(r,(function(t){Ay(wm,t)||Ay(Ky,t)||bm(e,t)})),e},Cm=function(t){var r=t===fm,e=ym(r?Sm:Ny(t)),n=[];return nm(e,(function(t){!Ay(wm,t)||r&&!Ay(fm,t)||bm(n,wm[t])})),n};Py||(sm=function(){if(ky(lm,this))throw new vm("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Fy(arguments[0]):void 0,r=Yy(t),e=function(t){this===fm&&jy(e,Sm,t),Ay(this,om)&&Ay(this[om],r)&&(this[om][r]=!1);var n=My(1,t);try{jm(this,r,n)}catch(Lj){if(!(Lj instanceof hm))throw Lj;Om(this,r,n)}};return Ty&&xm&&jm(fm,r,{configurable:!0,set:e}),Im(r,t)},Vy(lm=sm[um],"toString",(function(){return am(this).tag})),Vy(sm,"withoutSetter",(function(t){return Im(Yy(t),t)})),Hy.f=Rm,Wy.f=Tm,By.f=Pm,zy.f=Am,Uy.f=$y.f=km,Gy.f=Cm,Qy.f=function(t){return Im(Xy(t),t)},Ty&&(Jy(lm,"description",{configurable:!0,get:function(){return am(this).description}}),Vy(fm,"propertyIsEnumerable",Rm,{unsafe:!0}))),xy({global:!0,constructor:!0,wrap:!0,forced:!Py,sham:!Py},{Symbol:sm}),nm(Dy(Em),(function(t){Zy(t)})),xy({target:im,stat:!0,forced:!Py},{useSetter:function(){xm=!0},useSimple:function(){xm=!1}}),xy({target:"Object",stat:!0,forced:!Py,sham:!Ty},{create:function(t,r){return void 0===r?_y(t):Pm(_y(t),r)},defineProperty:Tm,defineProperties:Pm,getOwnPropertyDescriptor:Am}),xy({target:"Object",stat:!0,forced:!Py},{getOwnPropertyNames:km}),tm(),rm(sm,im),Ky[om]=!0;var Nm=ut&&!!Symbol.for&&!!Symbol.keyFor,Lm=ro,Fm=J,Mm=Gt,_m=Ao,Dm=Ft,Um=Nm,$m=Dm("string-to-symbol-registry"),Gm=Dm("symbol-to-string-registry");Lm({target:"Symbol",stat:!0,forced:!Um},{for:function(t){var r=_m(t);if(Mm($m,r))return $m[r];var e=Fm("Symbol")(r);return $m[r]=e,Gm[e]=r,e}});var zm=ro,Wm=Gt,Bm=ht,Hm=pt,Vm=Nm,Jm=Ft("symbol-to-string-registry");zm({target:"Symbol",stat:!0,forced:!Vm},{keyFor:function(t){if(!Bm(t))throw new TypeError(Hm(t)+" is not a symbol");if(Wm(Jm,t))return Jm[t]}});var qm=Tn,Km=Dt;ro({target:"Object",stat:!0,forced:!ut||o((function(){qm.f(1)}))},{getOwnPropertySymbols:function(t){var r=qm.f;return r?r(Km(t)):[]}});var Ym=ro,Xm=i,Qm=S,Zm=Gt,tb=G,rb=q,eb=Ao,nb=qs,ob=Dn,ib=e.Symbol,ub=ib&&ib.prototype;if(Xm&&tb(ib)&&(!("description"in ub)||void 0!==ib().description)){var cb={},ab=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:eb(arguments[0]),r=rb(ub,this)?new ib(t):void 0===t?ib():ib(t);return""===t&&(cb[r]=!0),r};ob(ab,ib),ab.prototype=ub,ub.constructor=ab;var fb="Symbol(description detection)"===String(ib("description detection")),sb=Qm(ub.valueOf),lb=Qm(ub.toString),hb=/^Symbol\((.*)\)[^)]+$/,vb=Qm("".replace),pb=Qm("".slice);nb(ub,"description",{configurable:!0,get:function(){var t=sb(this);if(Zm(cb,t))return"";var r=lb(t),e=fb?pb(r,7,-1):vb(r,hb,"$1");return""===e?void 0:e}}),Ym({global:!0,constructor:!0,forced:!0},{Symbol:ab})}var db=f;ro({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return db(URL.prototype.toString,this)}});var gb=Ms.map;ro({target:"Array",proto:!0,forced:!Hf("map")},{map:function(t){return gb(this,t,arguments.length>1?arguments[1]:void 0)}});var yb=f,mb=mt,bb=Nr,wb=Ec,Sb=Vg,Eb=Wg((function(){var t=this.iterator,r=bb(yb(this.next,t));if(!(this.done=!!r.done))return Sb(t,this.mapper,[r.value,this.counter++],!0)}));ro({target:"Iterator",proto:!0,real:!0,forced:false},{map:function(t){return bb(this),mb(t),new Eb(wb(this),{mapper:t})}});var xb=Uu,Ob=f,jb=Dt,Ib=Vg,Tb=Bu,Pb=Gf,Rb=hn,Ab=Lo,kb=nc,Cb=Yu,Nb=Array,Lb=function(t){var r=jb(t),e=Pb(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=xb(o,n>2?arguments[2]:void 0));var u,c,a,f,s,l,h=Cb(r),v=0;if(!h||this===Nb&&Tb(h))for(u=Rb(r),c=e?new this(u):Nb(u);u>v;v++)l=i?o(r[v],v):r[v],Ab(c,v,l);else for(s=(f=kb(r,h)).next,c=e?new this:[];!(a=Ob(s,f)).done;v++)l=i?Ib(f,o,[a.value,v],!0):a.value,Ab(c,v,l);return c.length=v,c};ro({target:"Array",stat:!0,forced:!op((function(t){Array.from(t)}))},{from:Lb});var Fb=mu.IteratorPrototype,Mb=fu,_b=g,Db=wl,Ub=$u,$b=function(){return this},Gb=ro,zb=f,Wb=G,Bb=function(t,r,e,n){var o=r+" Iterator";return t.prototype=Mb(Fb,{next:_b(+!n,e)}),Db(t,o,!1),Ub[o]=$b,t},Hb=Li,Vb=gl,Jb=wl,qb=Jr,Kb=Xe,Yb=$u,Xb=te.PROPER,Qb=te.CONFIGURABLE,Zb=mu.IteratorPrototype,tw=mu.BUGGY_SAFARI_ITERATORS,rw=rr("iterator"),ew="keys",nw="values",ow="entries",iw=function(){return this},uw=function(t,r,e,n,o,i,u){Bb(e,r,n);var c,a,f,s=function(t){if(t===o&&d)return d;if(!tw&&t&&t in v)return v[t];switch(t){case ew:case nw:case ow:return function(){return new e(this,t)}}return function(){return new e(this)}},l=r+" Iterator",h=!1,v=t.prototype,p=v[rw]||v["@@iterator"]||o&&v[o],d=!tw&&p||s(o),g="Array"===r&&v.entries||p;if(g&&(c=Hb(g.call(new t)))!==Object.prototype&&c.next&&(Hb(c)!==Zb&&(Vb?Vb(c,Zb):Wb(c[rw])||Kb(c,rw,iw)),Jb(c,l,!0)),Xb&&o===nw&&p&&p.name!==nw&&(Qb?qb(v,"name",nw):(h=!0,d=function(){return zb(p,this)})),o)if(a={values:s(nw),keys:i?d:s(ew),entries:s(ow)},u)for(f in a)(tw||h||!(f in v))&&Kb(v,f,a[f]);else Gb({target:r,proto:!0,forced:tw||h},a);return v[rw]!==d&&Kb(v,rw,d,{name:o}),Yb[r]=d,a},cw=Ua.charAt,aw=Ao,fw=Pe,sw=uw,lw=Ig,hw="String Iterator",vw=fw.set,pw=fw.getterFor(hw);sw(String,"String",(function(t){vw(this,{type:hw,string:aw(t),index:0})}),(function(){var t,r=pw(this),e=r.string,n=r.index;return n>=e.length?lw(void 0,!0):(t=cw(e,n),r.index+=t.length,lw(t,!1))}));var dw=rr,gw=fu,yw=Pr.f,mw=dw("unscopables"),bw=Array.prototype;void 0===bw[mw]&&yw(bw,mw,{configurable:!0,value:gw(null)});var ww=function(t){bw[mw][t]=!0},Sw=yn.includes,Ew=ww;ro({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(t){return Sw(this,t,arguments.length>1?arguments[1]:void 0)}}),Ew("includes");var xw=B,Ow=j,jw=rr("match"),Iw=function(t){var r;return xw(t)&&(void 0!==(r=t[jw])?!!r:"RegExp"===Ow(t))},Tw=TypeError,Pw=function(t){if(Iw(t))throw new Tw("The method doesn't accept regular expressions");return t},Rw=rr("match"),Aw=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[Rw]=!1,"/./"[t](r)}catch(n){}}return!1},kw=ro,Cw=Pw,Nw=L,Lw=Ao,Fw=Aw,Mw=S("".indexOf);kw({target:"String",proto:!0,forced:!Fw("includes")},{includes:function(t){return!!~Mw(Lw(Nw(this)),Lw(Cw(t)),arguments.length>1?arguments[1]:void 0)}});var _w=ro,Dw=Dt,Uw=cn,$w=en,Gw=hn,zw=ao,Ww=so,Bw=Ps,Hw=Lo,Vw=mo,Jw=Hf("splice"),qw=Math.max,Kw=Math.min;_w({target:"Array",proto:!0,forced:!Jw},{splice:function(t,r){var e,n,o,i,u,c,a=Dw(this),f=Gw(a),s=Uw(t,f),l=arguments.length;for(0===l?e=n=0:1===l?(e=0,n=f-s):(e=l-2,n=Kw(qw($w(r),0),f-s)),Ww(f+e-n),o=Bw(a,n),i=0;if-n+e;i--)Vw(a,i-1)}else if(e>n)for(i=f-n;i>s;i--)c=i+e-1,(u=i+n-1)in a?a[c]=a[u]:Vw(a,c);for(i=0;i=r.length)return t.target=void 0,eS(void 0,!0);switch(e){case"keys":return eS(n,!1);case"values":return eS(r[n],!1)}return eS([n,r[n]],!1)}),"values"),aS=Qw.Arguments=Qw.Array;if(Xw("keys"),Xw("values"),Xw("entries"),nS&&"values"!==aS.name)try{tS(aS,"name",{value:"values"})}catch(Lj){}var fS={exports:{}},sS=o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),lS=o,hS=B,vS=j,pS=sS,dS=Object.isExtensible,gS=lS((function(){dS(1)}))||pS?function(t){return!!hS(t)&&((!pS||"ArrayBuffer"!==vS(t))&&(!dS||dS(t)))}:dS,yS=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),mS=ro,bS=S,wS=pe,SS=B,ES=Gt,xS=Pr.f,OS=Qe,jS=oy,IS=gS,TS=yS,PS=!1,RS=Vt("meta"),AS=0,kS=function(t){xS(t,RS,{value:{objectID:"O"+AS++,weakData:{}}})},CS=fS.exports={enable:function(){CS.enable=function(){},PS=!0;var t=OS.f,r=bS([].splice),e={};e[RS]=1,t(e).length&&(OS.f=function(e){for(var n=t(e),o=0,i=n.length;o1?arguments[1]:void 0);r=r?r.next:e.first;)for(n(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(t){return!!a(this,t)}}),XS(i,e?{get:function(t){var r=a(this,t);return r&&r.value},set:function(t,r){return c(this,0===t?0:t,r)}}:{add:function(t){return c(this,t=0===t?0:t,t)}}),iE&&YS(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=aE(r),i=aE(n);eE(t,r,(function(t,r){cE(this,{type:n,target:t,state:o(t),kind:r,last:void 0})}),(function(){for(var t=i(this),r=t.kind,e=t.last;e&&e.removed;)e=e.previous;return t.target&&(t.last=e=e?e.next:t.state.first)?nE("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,nE(void 0,!0))}),e?"entries":"values",!e,!0),oE(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=FS[t],c=u&&u.prototype,a=u,f={},s=function(t){var r=MS(c[t]);DS(c,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!BS(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!BS(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!BS(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(_S(t,!zS(u)||!(o||c.forEach&&!HS((function(){(new u).entries().next()})))))a=e.getConstructor(r,t,n,i),US.enable();else if(_S(t,!0)){var l=new a,h=l[i](o?{}:-0,1)!==l,v=HS((function(){l.has(1)})),p=VS((function(t){new u(t)})),d=!o&&HS((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((a=r((function(t,r){GS(t,c);var e=qS(new u,t,a);return WS(r)||$S(r,e[i],{that:e,AS_ENTRIES:n}),e}))).prototype=c,c.constructor=a),(v||d)&&(s("delete"),s("has"),n&&s("get")),(d||h)&&s(i),o&&c.clear&&delete c.clear}f[t]=a,LS({global:!0,constructor:!0,forced:a!==u},f),JS(a,t),o||e.setStrong(a,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),fE);var sE=e,lE=ms,hE=Ss,vE=cS,pE=Jr,dE=rr,gE=dE("iterator"),yE=dE("toStringTag"),mE=vE.values,bE=function(t,r){if(t){if(t[gE]!==mE)try{pE(t,gE,mE)}catch(Lj){t[gE]=mE}if(t[yE]||pE(t,yE,r),lE[r])for(var e in vE)if(t[e]!==vE[e])try{pE(t,e,vE[e])}catch(Lj){t[e]=vE[e]}}};for(var wE in lE)bE(sE[wE]&&sE[wE].prototype,wE);bE(hE,"DOMTokenList");var SE,EE=ro,xE=Fu,OE=n.f,jE=sn,IE=Ao,TE=Pw,PE=L,RE=Aw,AE=xE("".startsWith),kE=xE("".slice),CE=Math.min,NE=RE("startsWith");EE({target:"String",proto:!0,forced:!!(NE||(SE=OE(String.prototype,"startsWith"),!SE||SE.writable))&&!NE},{startsWith:function(t){var r=IE(PE(this));TE(t);var e=jE(CE(arguments.length>1?arguments[1]:void 0,r.length)),n=IE(t);return AE?AE(r,n,e):kE(r,e,e+n.length)===n}});var LE=Dt,FE=Di;ro({target:"Object",stat:!0,forced:o((function(){FE(1)}))},{keys:function(t){return FE(LE(t))}});var ME=i,_E=S,DE=f,UE=o,$E=Di,GE=Tn,zE=s,WE=Dt,BE=A,HE=Object.assign,VE=Object.defineProperty,JE=_E([].concat),qE=!HE||UE((function(){if(ME&&1!==HE({b:1},HE(VE({},"a",{enumerable:!0,get:function(){VE(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},e=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[e]=7,n.split("").forEach((function(t){r[t]=t})),7!==HE({},t)[e]||$E(HE({},r)).join("")!==n}))?function(t,r){for(var e=WE(t),n=arguments.length,o=1,i=GE.f,u=zE.f;n>o;)for(var c,a=BE(arguments[o++]),f=i?JE($E(a),i(a)):$E(a),s=f.length,l=0;s>l;)c=f[l++],ME&&!DE(u,a,c)||(e[c]=a[c]);return e}:HE,KE=qE;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==KE},{assign:KE});var YE=S,XE=Gt,QE=SyntaxError,ZE=parseInt,tx=String.fromCharCode,rx=YE("".charAt),ex=YE("".slice),nx=YE(/./.exec),ox={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},ix=/^[\da-f]{4}$/i,ux=/^[\u0000-\u001F]$/,cx=ro,ax=i,fx=e,sx=J,lx=S,hx=f,vx=G,px=B,dx=no,gx=Gt,yx=Ao,mx=hn,bx=Lo,wx=o,Sx=function(t,r){for(var e=!0,n="";r1?arguments[1]:void 0)}}),Hx(Vx);var qx=Sc,Kx=mt,Yx=Nr,Xx=Ec;ro({target:"Iterator",proto:!0,real:!0},{find:function(t){Yx(this),Kx(t);var r=Xx(this),e=0;return qx(r,(function(r,n){if(t(r,e++))return n(r)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}});var Qx=ro,Zx=Ms.findIndex,tO=ww,rO="findIndex",eO=!0;rO in[]&&Array(1)[rO]((function(){eO=!1})),Qx({target:"Array",proto:!0,forced:eO},{findIndex:function(t){return Zx(this,t,arguments.length>1?arguments[1]:void 0)}}),tO(rO);var nO=Ey;yy("toPrimitive"),nO();var oO=Nr,iO=It,uO=TypeError,cO=Gt,aO=Xe,fO=function(t){if(oO(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new uO("Incorrect hint");return iO(this,t)},sO=rr("toPrimitive"),lO=Date.prototype;cO(lO,sO)||aO(lO,sO,fO);var hO=S(1..valueOf),vO=L,pO=Ao,dO="\t\n\v\f\r \u2028\u2029\ufeff",gO=S("".replace),yO=RegExp("^["+dO+"]+"),mO=RegExp("(^|[^"+dO+"])["+dO+"]+$"),bO=function(t){return function(r){var e=pO(vO(r));return 1&t&&(e=gO(e,yO,"")),2&t&&(e=gO(e,mO,"$1")),e}},wO={start:bO(1),end:bO(2),trim:bO(3)},SO=ro,EO=i,xO=e,OO=hy,jO=S,IO=Jn,TO=Gt,PO=Xp,RO=q,AO=ht,kO=fr,CO=o,NO=Qe.f,LO=n.f,FO=Pr.f,MO=hO,_O=wO.trim,DO="Number",UO=xO[DO];OO[DO];var $O=UO.prototype,GO=xO.TypeError,zO=jO("".slice),WO=jO("".charCodeAt),BO=function(t){var r,e,n,o,i,u,c,a,f=kO(t,"number");if(AO(f))throw new GO("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=_O(f),43===(r=WO(f,0))||45===r){if(88===(e=WO(f,2))||120===e)return NaN}else if(48===r){switch(WO(f,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+f}for(u=(i=zO(f,2)).length,c=0;co)return NaN;return parseInt(i,n)}return+f},HO=IO(DO,!UO(" 0o1")||!UO("0b1")||UO("+0x1")),VO=function(t){var r,e=arguments.length<1?0:UO(function(t){var r=kO(t,"number");return"bigint"==typeof r?r:BO(r)}(t));return RO($O,r=this)&&CO((function(){MO(r)}))?PO(Object(e),this,VO):e};VO.prototype=$O,HO&&($O.constructor=VO),SO({global:!0,constructor:!0,wrap:!0,forced:HO},{Number:VO});HO&&function(t,r){for(var e,n=EO?NO(r):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)TO(r,e=n[o])&&!TO(t,e)&&FO(t,e,LO(r,e))}(OO[DO],UO),yy("iterator"),yy("asyncIterator");var JO=J,qO=wl;yy("toStringTag"),qO(JO("Symbol"),"Symbol"),wl(e.JSON,"JSON",!0),wl(Math,"Math",!0);var KO=Dt,YO=Li,XO=Ii;ro({target:"Object",stat:!0,forced:o((function(){YO(1)})),sham:!XO},{getPrototypeOf:function(t){return YO(KO(t))}});var QO=ro,ZO=o,tj=_,rj=n.f,ej=i;QO({target:"Object",stat:!0,forced:!ej||ZO((function(){rj(1)})),sham:!ej},{getOwnPropertyDescriptor:function(t,r){return rj(tj(t),r)}});var nj=Nn,oj=_,ij=n,uj=Lo;ro({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var r,e,n=oj(t),o=ij.f,i=nj(n),u={},c=0;i.length>c;)void 0!==(e=o(n,r=i[c++]))&&uj(u,r,e);return u}});var cj=e,aj=wl;ro({global:!0},{Reflect:{}}),aj(cj.Reflect,"Reflect",!0);var fj=S,sj=mt,lj=B,hj=Gt,vj=Vf,pj=u,dj=Function,gj=fj([].concat),yj=fj([].join),mj={},bj=pj?dj.bind:function(t){var r=sj(this),e=r.prototype,n=vj(arguments,1),o=function(){var e=gj(n,vj(arguments));return this instanceof o?function(t,r,e){if(!hj(mj,r)){for(var n=[],o=0;oe.length&&"/"!==n[n.length-1]))return n+t.slice(e.length);a("W2",e,n)}}function a(t,e,n){console.warn(r(t,[n,e].join(", ")))}function f(t,r,e){for(var n=t.scopes,o=e&&u(e,n);o;){var i=c(r,n[o]);if(i)return i;o=u(o.slice(0,o.lastIndexOf("/")),n)}return c(r,t.imports)||-1!==r.indexOf(":")&&r}function s(){this[I]={}}function l(t,e,n,o){var i=t[I][e];if(i)return i;var u=[],c=Object.create(null);j&&Object.defineProperty(c,j,{value:"Module"});var a=Promise.resolve().then((function(){return t.instantiate(e,n,o)})).then((function(n){if(!n)throw Error(r(2,e));var o=n[1]((function(t,r){i.h=!0;var e=!1;if("string"==typeof t)t in c&&c[t]===r||(c[t]=r,e=!0);else{for(var n in t)r=t[n],n in c&&c[n]===r||(c[n]=r,e=!0);t&&t.__esModule&&(c.__esModule=t.__esModule)}if(e)for(var o=0;o-1){var e=document.createEvent("Event");e.initEvent("error",!1,!1),t.dispatchEvent(e)}return Promise.reject(r)}))}else if("systemjs-importmap"===t.type){t.sp=!0;var e=t.src?(System.fetch||fetch)(t.src,{integrity:t.integrity,passThrough:!0}).then((function(t){if(!t.ok)throw Error(t.status);return t.text()})).catch((function(e){return e.message=r("W4",t.src)+"\n"+e.message,console.warn(e),"function"==typeof t.onerror&&t.onerror(),"{}"})):t.innerHTML;k=k.then((function(){return e})).then((function(e){!function(t,e,n){var o={};try{o=JSON.parse(e)}catch(c){console.warn(Error(r("W5")))}i(o,n,t)}(C,e,t.src||g)}))}}))}var g,y="undefined"!=typeof Symbol,m="undefined"!=typeof self,b="undefined"!=typeof document,w=m?self:t;if(b){var S=document.querySelector("base[href]");S&&(g=S.href)}if(!g&&"undefined"!=typeof location){var E=(g=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==E&&(g=g.slice(0,E+1))}var x,O=/\\/g,j=y&&Symbol.toStringTag,I=y?Symbol():"@",T=s.prototype;T.import=function(t,r,e){var n=this;return r&&"object"==typeof r&&(e=r,r=void 0),Promise.resolve(n.prepareImport()).then((function(){return n.resolve(t,r,e)})).then((function(t){var r=l(n,t,void 0,e);return r.C||v(n,r)}))},T.createContext=function(t){var r=this;return{url:t,resolve:function(e,n){return Promise.resolve(r.resolve(e,n||t))}}},T.register=function(t,r,e){x=[t,r,e]},T.getRegister=function(){var t=x;return x=void 0,t};var P=Object.freeze(Object.create(null));w.System=new s;var R,A,k=Promise.resolve(),C={imports:{},scopes:{},depcache:{},integrity:{}},N=b;if(T.prepareImport=function(t){return(N||t)&&(d(),N=!1),k},b&&(d(),window.addEventListener("DOMContentLoaded",d)),T.addImportMap=function(t,r){i(t,r||g,C)},b){window.addEventListener("error",(function(t){F=t.filename,M=t.error}));var L=location.origin}T.createScript=function(t){var r=document.createElement("script");r.async=!0,t.indexOf(L+"/")&&(r.crossOrigin="anonymous");var e=C.integrity[t];return e&&(r.integrity=e),r.src=t,r};var F,M,_={},D=T.register;T.register=function(t,r){if(b&&"loading"===document.readyState&&"string"!=typeof t){var e=document.querySelectorAll("script[src]"),n=e[e.length-1];if(n){R=t;var o=this;A=setTimeout((function(){_[n.src]=[t,r],o.import(n.src)}))}}else R=void 0;return D.call(this,t,r)},T.instantiate=function(t,e){var n=_[t];if(n)return delete _[t],n;var o=this;return Promise.resolve(T.createScript(t)).then((function(n){return new Promise((function(i,u){n.addEventListener("error",(function(){u(Error(r(3,[t,e].join(", "))))})),n.addEventListener("load",(function(){if(document.head.removeChild(n),F===t)u(M);else{var r=o.getRegister(t);r&&r[0]===R&&clearTimeout(A),i(r)}})),document.head.appendChild(n)}))}))},T.shouldFetch=function(){return!1},"undefined"!=typeof fetch&&(T.fetch=fetch);var U=T.instantiate,$=/^(text|application)\/(x-)?javascript(;|$)/;T.instantiate=function(t,e,n){var o=this;return this.shouldFetch(t,e,n)?this.fetch(t,{credentials:"same-origin",integrity:C.integrity[t],meta:n}).then((function(n){if(!n.ok)throw Error(r(7,[n.status,n.statusText,t,e].join(", ")));var i=n.headers.get("content-type");if(!i||!$.test(i))throw Error(r(4,i));return n.text().then((function(r){return r.indexOf("//# sourceURL=")<0&&(r+="\n//# sourceURL="+t),(0,eval)(r),o.getRegister(t)}))})):U.apply(this,arguments)},T.resolve=function(t,n){return f(C,e(t,n=n||g)||t,n)||function(t,e){throw Error(r(8,[t,e].join(", ")))}(t,n)};var G=T.instantiate;T.instantiate=function(t,r,e){var n=C.depcache[t];if(n)for(var o=0;osvg{width:100%;min-height:100px}.ibiz-markdown-message .anchor{display:none!important}.ibiz-markdown-message.is-loading .ibiz-markdown-message-header .ibiz-markdown-message-header__caption{font-size:0}.ibiz-markdown-message.is-loading .ibiz-markdown-message-header .ibiz-markdown-message-header__caption:after{display:block;width:11px;height:11px;content:"";border:3px solid #3b3b3b;border-top-color:transparent;border-radius:100%;animation:circle infinite .75s linear}.ibiz-markdown-message-header{display:flex;margin-bottom:8px}.ibiz-markdown-message-header__caption{flex:0;width:auto;min-width:32px;min-height:32px;padding:6px;margin-right:2px;font-size:14px;font-weight:800;color:var(--ibiz-ai-chat-color)}.ibiz-markdown-message-header__timeout{display:flex;align-items:center;padding:0 8px;font-size:14px;color:var(--ibiz-color-danger)}.ibiz-markdown-message-content{padding:10px 16px;background-color:var(--ibiz-ai-chat-background-color-light);border-radius:var(--ibiz-ai-chat-border-radius)}@keyframes circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ibiz-chat-thought-chain{--ibiz-chat-thought-chain-font-size: 12px;--ibiz-chat-thought-chain-header-height: 32px;--ibiz-chat-thought-chain-color-2: var(--ibiz-ai-chat-color-2);--ibiz-chat-thought-chain-bg: var(--ibiz-ai-chat-hover-background-color);--ibiz-chat-thought-chain-bg-2: var(--ibiz-ai-chat-hover-background-color-2);--ibiz-chat-thought-chain-border-radius: var(--ibiz-ai-chat-border-radius);--ibiz-chat-thought-chain-hover-bg-color: var(--ibiz-ai-chat-hover-background-color);--ibiz-chat-thought-chain-border: var(--ibiz-ai-chat-hover-background-color);display:flex;flex-direction:column;padding:8px 12px;font-size:var(--ibiz-chat-thought-chain-font-size);background-color:var(--ibiz-chat-thought-chain-bg);border-radius:var(--ibiz-chat-thought-chain-border-radius)}.ibiz-chat-thought-chain__item{display:flex}.ibiz-chat-thought-chain__item.is-collapsed:last-child .ibiz-chat-thought-chain__item-icon:after{display:none}.ibiz-chat-thought-chain__item.is-collapsed .ibiz-chat-thought-chain__item-title .ibiz-chat-thought-chain__icon{transform:rotate(180deg)}.ibiz-chat-thought-chain__item.is-collapsed .ibiz-chat-thought-chain__item-description{height:0}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:18px;padding-top:8px}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon span{display:flex;flex:none;align-items:center;justify-content:center;width:16px;height:16px;margin-bottom:8px;font-size:10px;color:var(--ibiz-chat-thought-chain-color-2);background:var(--ibiz-chat-thought-chain-bg-2);border-radius:50%}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon svg{width:16px;height:16px;margin-bottom:8px}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon:after{width:1px;height:100%;content:"";background:var(--ibiz-chat-thought-chain-border);border-radius:13px;transition:.3s background cubic-bezier(.4,0,.2,1)}.ibiz-chat-thought-chain__item-content{flex:auto;padding-left:4px}.ibiz-chat-thought-chain__item-title{position:relative;display:flex;align-items:center;height:var(--ibiz-chat-thought-chain-header-height);padding:4px 4px 4px 6px;cursor:pointer;transition:.3s background-color}.ibiz-chat-thought-chain__item-title .ibiz-chat-thought-chain__icon{position:absolute;right:8px;flex-shrink:0;font-size:1em;cursor:pointer;transition:.3s transform}.ibiz-chat-thought-chain__item-title:hover{background-color:var(--ibiz-chat-thought-chain-hover-bg-color);border-radius:8px}.ibiz-chat-thought-chain__item-description{height:100%;overflow:hidden;color:var(--ibiz-color-text-2);transition:height .3s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1)}.ibiz-chat-thought-chain.is-single .ibiz-chat-thought-chain__item-icon:after{display:none}@keyframes loading-animation{75%,to{opacity:0;transform:scale(2)}}.ibiz-user-message-question{padding:6px 10px}.ibiz-user-message-question__content{position:relative;box-sizing:border-box;display:flex;justify-content:end;max-width:100%;padding:10px;font-size:14px;text-align:left;word-break:break-word;user-select:text;transition:all .3s ease}.ibiz-user-message-question__content--body{width:fit-content;padding:0 10px;margin:0;font-size:14px;line-height:1.5;color:var(--color-fg-default);word-wrap:break-word;background:#E7F8FF;border-radius:var(--ibiz-ai-chat-border-radius);text-size-adjust:100%}.ibiz-user-message-question__content--body:before{display:table;content:""}.ibiz-user-message-question__content--body:after{display:table;clear:both;content:""}.ibiz-user-message-question__content--body>p{margin:8px}.ibiz-user-message-question__content--material{display:flex;flex-flow:row-reverse wrap;gap:8px;align-items:center}.ibiz-user-message-question__user-header{display:flex;align-items:center;justify-content:end;width:100%;height:32px}.ibiz-user-message-question__user{padding:6px;font-size:14px;font-weight:800}.ibiz-ossfile-material{display:flex;width:100%;height:100%}.ibiz-ossfile-material-left{display:flex;align-items:center;justify-content:center}.ibiz-ossfile-material-right{width:calc(100% - 24px);height:100%;padding-left:8px}.ibiz-ossfile-material__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-ossfile-material__metadata{display:flex;gap:8px;align-items:center;font-size:14px}.ibiz-ossfile-material__metadata>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-common-material{display:flex;width:100%;height:100%}.ibiz-common-material-left{display:flex;align-items:center;justify-content:center;font-size:18px}.ibiz-common-material-right{width:calc(100% - 24px);height:100%;padding-left:8px}.ibiz-common-material__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-common-material__metadata{display:flex;gap:8px;align-items:center;font-size:14px}.ibiz-common-material__metadata>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-input-material-item{position:relative;width:200px;height:60px;padding:8px;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color);border:1px solid var(--ibiz-ai-chat-border-color);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-item:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-input-material-item:hover .ibiz-chat-input-material-item__icon{opacity:1}.ibiz-chat-input-material-item.is-disabled{pointer-events:none}.ibiz-chat-input-material-item__icon{position:absolute;top:-4px;right:-4px;opacity:0}.ibiz-error-message{padding:6px 10px;text-align:left}.ibiz-error-message__content{width:fit-content;padding:6px;color:#fff;background-color:red;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-error-message .ibiz-error-message-header{display:flex;margin-bottom:8px}.ibiz-error-message-header__caption{flex:0;width:auto;min-width:32px;min-height:32px;padding:6px;margin-right:2px;font-size:14px;font-weight:800;color:var(--ibiz-ai-chat-color)}.ibiz-unknown-message{padding:6px 10px;text-align:right}.ibiz-unknown-message__content{padding:6px;color:#000;background-color:#ccc;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-message-item{padding:6px 0}.ibiz-chat-message-item .pre-wrap-container{word-wrap:break-word;white-space:pre-wrap}.ibiz-chat-toolbar{display:flex;align-items:center}.ibiz-chat-toolbar__item{display:flex;align-items:center;white-space:nowrap;cursor:pointer}.ibiz-chat-toolbar__item:not(:first-child){margin-left:6px}.ibiz-chat-toolbar__item--icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:18px;height:18px;font-size:18px}.ibiz-chat-toolbar__item--label{display:flex;align-items:center}.ibiz-chat-toolbar__item.is-disabled{cursor:not-allowed}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item{width:32px;height:32px;padding:6px;overflow:hidden;font-size:12px;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:15px;transition:all .3s ease}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item.is-disabled{color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item:hover:not(.is-disabled){width:68px;color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item .ibiz-chat-toolbar__item--label{width:calc(100% - 32px);margin-left:8px;font-size:14px}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item .ibiz-chat-toolbar__item--label>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-toolbar__default .ibiz-chat-toolbar__item{z-index:1;gap:6px;width:fit-content;padding:2px 14px;font-size:14px;line-height:28px;color:var(--ibiz-ai-chat-color-2);background-color:var(--ibiz-ai-chat-background-color-2);border-radius:12px}.ibiz-chat-toolbar__default .ibiz-chat-toolbar__item.is-disabled{background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar__default .ibiz-chat-toolbar__item:hover:not(.is-disabled){background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-messages{margin:6px;width:calc(100% - 12px);height:calc(100% - 12px);overflow-x:hidden;overflow-y:auto}.ibiz-chat-messages::-webkit-scrollbar{width:6px}.ibiz-chat-messages::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-wrapper{max-height:6em;padding:4px;overflow:hidden auto;font-size:16px;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color)}.ibiz-chat-input-main-wrapper{display:flex;align-items:center;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:var(--ibiz-ai-chat-border-radius)}@keyframes loading-change{0%{opacity:1}25%{opacity:.5}50%{opacity:.1}75%{opacity:.5}to{opacity:1}}.ibiz-chat-input__textarea{flex-grow:1;max-height:6em;padding:4px;overflow:hidden auto!important;font-size:16px;color:var(--ibiz-ai-chat-color);resize:none;background-color:var(--ibiz-ai-chat-background-color);border:none;outline:none}.ibiz-chat-input__textarea::-webkit-scrollbar{width:6px}.ibiz-chat-input__textarea::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-action-wrapper{display:flex;gap:6px;align-items:center;padding:6px;color:var(--ibiz-ai-chat-color)}.ibiz-chat-input-action-wrapper__action-item{padding:3px;font-size:12px;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-action-wrapper__action-item:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-input-action-wrapper__action-item.is-disabled{color:var(--ibiz-ai-chat-disabled-color);pointer-events:none}.ibiz-chat-input-action-wrapper__action-item.is-loading{pointer-events:none;animation:loading-change .8s infinite}.ibiz-chat-input-pop-actions{width:160px;min-height:48px;padding:8px}.ibiz-chat-input-pop-action-item{display:flex;align-items:center;padding:8px;margin-bottom:4px;line-height:22px;cursor:pointer;border-radius:4px;transition:background-color .2s}.ibiz-chat-input-pop-action-item:hover{background-color:var(--ibiz-color-fill-0)}.ibiz-chat-input-pop-action-item-icon{width:18px;height:18px;margin-right:8px;font-size:18px;color:var(--ibiz-ai-chat-color);pointer-events:none}.ibiz-chat-input-pop-action-item-title{font-size:14px;line-height:22px;color:var(--ibiz-ai-chat-color);pointer-events:none}.ibiz-chat-input-material{display:flex;flex-wrap:wrap;gap:8px}.ibiz-pop-trigger-container{font-size:12px}.ibiz-pop-content{min-width:120px;padding:4px;background-color:var(--ibiz-color-primary-hover);border:1px solid var(--ibiz-color-border);border-radius:8px}.ibiz-pop-content-item{display:flex;align-items:center;justify-content:space-around;line-height:32px;cursor:pointer}.ibiz-chat-topic-item{position:relative;display:flex;align-items:center;height:38px;padding:0 8px;cursor:pointer;border-radius:8px}.ibiz-chat-topic-item:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item:hover .ibiz-chat-topic-item-icon{opacity:1}.ibiz-chat-topic-item.is-active{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item-caption{width:100%;min-width:0;overflow:hidden;line-height:18px;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-topic-item-icon{position:absolute;top:50%;right:10px;display:flex;align-items:center;justify-content:space-around;width:54px;height:24px;color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color);border-radius:8px;outline:none;opacity:0;transform:translateY(-50%)}.ibiz-chat-topic-item-icon__item{font-size:12px}.ibiz-chat-topics{height:100%;padding:8px;overflow-y:auto}.ibiz-chat-container{--ibiz-ai-chat-color: #3b3b3b;--ibiz-ai-chat-icon-color: #3b3b3b;--ibiz-ai-chat-border-color: #e5e5e5;--ibiz-ai-chat-background-color: #fff;--ibiz-ai-chat-background-color-light: #f8fafb;--ibiz-ai-chat-disabled-color: rgba(59, 59, 59, .6);--ibiz-ai-chat-hover-color: #3b3b3b;--ibiz-ai-chat-hover-background-color: rgba(184, 184, 184, .31);--ibiz-ai-chat-hover-border-color: #e5e5e5;--ibiz-ai-chat-border-radius: 5px;--ibiz-ai-chat-color-2: #4d6bfe;--ibiz-ai-chat-background-color-2: rgb(219, 234, 254);--ibiz-ai-chat-hover-background-color-2: #c3daf8}.ibiz-chat-container__dialog{position:absolute;z-index:1000;display:flex;flex-direction:column;background-color:var(--ibiz-ai-chat-background-color);border:1px solid var(--ibiz-ai-chat-border-color);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-container__dialog *{box-sizing:border-box}.ibiz-chat-container__dialog svg{display:inline-block;width:1em;height:1em;font-size:1.5em;vertical-align:middle;fill:currentcolor}.ibiz-chat-container__dialog.is-hidden{display:none}.ibiz-chat-container__minimize{position:absolute;z-index:99999;display:flex;align-items:center;justify-content:center;width:56px;height:56px;color:var(--ibiz-ai-chat-color);cursor:pointer;background-color:var(--ibiz-ai-chat-background-color);border:1px solid var(--ibiz-ai-chat-border-color);border-radius:50%}.ibiz-chat-container__minimize:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-container__minimize svg{display:inline-block;vertical-align:middle;fill:currentcolor}.ibiz-chat-container__minimize.is-hidden{display:none}.ibiz-chat-container__toolbar{display:flex;justify-content:center;margin:8px}.ibiz-chat-container-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;height:60px;cursor:move;border-bottom:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-container-header-caption{padding:0 6px 0 16px;font-size:18px;font-weight:800}.ibiz-chat-container-header-action-wrapper{display:flex;gap:6px;align-items:center;height:100%;padding:0 6px}.ibiz-chat-container-header-action-wrapper__action-item{flex-shrink:0;padding:3px;font-size:12px;color:var(--ibiz-ai-chat-color);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-container-header-action-wrapper__action-item:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-container-main{display:flex;height:calc(100% - 60px)}.ibiz-chat-container-main__left{flex-shrink:0;width:200px;height:100%;border-right:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-container-main__right{display:flex;flex-direction:column;flex-grow:1;height:100%}.ibiz-chat-container-main__default{display:flex;flex-direction:column;flex-grow:1;height:calc(100% - 60px)}.ibiz-chat-container-content{flex-grow:1;overflow:hidden}.ibiz-chat-container-footer{flex-shrink:0;padding:3px 6px;border-top:1px solid var(--ibiz-ai-chat-border-color)}
diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.11/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.11/index.system.min.js
new file mode 100644
index 0000000000000000000000000000000000000000..1c532c50549b0a95cfa71fc2e9d25a6ce8dbf317
--- /dev/null
+++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.11/index.system.min.js
@@ -0,0 +1 @@
+!function(){function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)}function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,n)}function n(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=r(t);if(e){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)}(this,n)}}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}function o(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||c(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==e);s=!0);}catch(t){l=!0,r=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(t,e)||c(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),z(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;z(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:I(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),y}},e}function f(t,e,n,i,r,o,a){try{var c=t[o](a),s=c.value}catch(l){return void n(l)}c.done?e(s):Promise.resolve(s).then(i,r)}function d(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){f(o,i,r,a,c,"next",t)}function c(t){f(o,i,r,a,c,"throw",t)}a(void 0)}))}}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var n=0;n2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===c[a]&&(c[a]=t.defaultProps[a]);return z(t,c,i,o,null)}function z(t,e,n,i,r){var o={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++f:r};return null==r&&null!=l.vnode&&l.vnode(o),o}function M(t){return t.children}function I(t,e){this.props=t,this.context=e}function L(t,e){if(null==e)return t.__?L(t.__,t.__.__k.indexOf(t)+1):null;for(var n;ee&&g.sort(k));H.__r=0}function j(t,e,n,i,r,o,a,c,s,l,u){var h,f,d,p,v,_,m,y,g,b=0,w=i&&i.__k||E,k=w.length,x=k,N=e.length;for(n.__k=[],h=0;h0?z(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)?(p.__=n,p.__b=n.__b+1,-1===(y=U(p,w,m=h+b,x))?d=C:(d=w[y]||C,w[y]=void 0,x--),$(t,p,d,r,o,a,c,s,l,u),v=p.__e,(f=p.ref)&&d.ref!=f&&(d.ref&&G(d.ref,null,p),u.push(f,p.__c||v,p)),null!=v&&(null==_&&(_=v),(g=d===C||null===d.__v)?-1==y&&b--:y!==m&&(y===m+1?b++:y>m?x>N-m?b+=y-m:b--:b=y(null!=s?1:0))for(;a>=0||c=0){if((s=e[a])&&r==s.key&&o===s.type)return a;a--}if(c0&&void 0!==arguments[0]?arguments[0]:"";return Q(this.namespace,this.block,t,"","")}},{key:"e",value:function(t){return t?Q(this.namespace,this.block,"",t,""):""}},{key:"m",value:function(t){return t?Q(this.namespace,this.block,"","",t):""}},{key:"be",value:function(t,e){return t&&e?Q(this.namespace,this.block,t,e,""):""}},{key:"em",value:function(t,e){return t&&e?Q(this.namespace,this.block,"",t,e):""}},{key:"bm",value:function(t,e){return t&&e?Q(this.namespace,this.block,t,"",e):""}},{key:"bem",value:function(t,e,n){return t&&e&&n?Q(this.namespace,this.block,t,e,n):""}},{key:"is",value:function(t,e){return t&&e?"".concat("is-").concat(t):""}},{key:"cssVar",value:function(t){var e={};for(var n in t)t[n]&&(e[this.cssVarName(n)]=t[n]);return e}},{key:"cssVarBlock",value:function(t){var e={};for(var n in t)t[n]&&(e[this.cssVarBlockName(n)]=t[n]);return e}},{key:"cssVarName",value:function(t){return"--".concat(this.namespace,"-").concat(t)}},{key:"cssVarBlockName",value:function(t){return"--".concat(this.namespace,"-").concat(this.block,"-").concat(t)}}]),t}();function et(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function nt(t,e){for(var n,i="",r=0,o=-1,a=0,c=0;c<=t.length;++c){if(c2){var s=i.lastIndexOf("/");if(s!==i.length-1){-1===s?(i="",r=0):r=(i=i.slice(0,s)).length-1-i.lastIndexOf("/"),o=c,a=0;continue}}else if(2===i.length||1===i.length){i="",r=0,o=c,a=0;continue}e&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+t.slice(o+1,c):i=t.slice(o+1,c),r=c-o-1;o=c,a=0}else 46===n&&-1!==a?++a:a=-1}return i}var it={resolve:function(){for(var t,e="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var r;i>=0?r=arguments[i]:(void 0===t&&(t=process.cwd()),r=t),et(r),0!==r.length&&(e=r+"/"+e,n=47===r.charCodeAt(0))}return e=nt(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(t){if(et(t),0===t.length)return".";var e=47===t.charCodeAt(0),n=47===t.charCodeAt(t.length-1);return 0!==(t=nt(t,!e)).length||e||(t="."),t.length>0&&n&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return et(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e0&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":it.normalize(t)},relative:function(t,e){if(et(t),et(e),t===e)return"";if((t=it.resolve(t))===(e=it.resolve(e)))return"";for(var n=1;nc){if(47===e.charCodeAt(o+l))return e.slice(o+l+1);if(0===l)return e.slice(o+l)}else r>c&&(47===t.charCodeAt(n+l)?s=l:0===l&&(s=0));break}var u=t.charCodeAt(n+l);if(u!==e.charCodeAt(o+l))break;47===u&&(s=l)}var h="";for(l=n+s+1;l<=i;++l)l!==i&&47!==t.charCodeAt(l)||(0===h.length?h+="..":h+="/..");return h.length>0?h+e.slice(o+s):(o+=s,47===e.charCodeAt(o)&&++o,e.slice(o))},_makeLong:function(t){return t},dirname:function(t){if(et(t),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,r=!0,o=t.length-1;o>=1;--o)if(47===(e=t.charCodeAt(o))){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"//":t.slice(0,i)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');et(t);var n,i=0,r=-1,o=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var a=e.length-1,c=-1;for(n=t.length-1;n>=0;--n){var s=t.charCodeAt(n);if(47===s){if(!o){i=n+1;break}}else-1===c&&(o=!1,c=n+1),a>=0&&(s===e.charCodeAt(a)?-1==--a&&(r=n):(a=-1,r=c))}return i===r?r=c:-1===r&&(r=t.length),t.slice(i,r)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":t.slice(i,r)},extname:function(t){et(t);for(var e=-1,n=0,i=-1,r=!0,o=0,a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(47!==c)-1===i&&(r=!1,i=a+1),46===c?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!r){n=a+1;break}}return-1===e||-1===i||0===o||1===o&&e===i-1&&e===n+1?"":t.slice(e,i)},format:function(t){if(null===t||"object"!==p(t))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+p(t));return function(t,e){var n=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+i:n+t+i:i}("/",t)},parse:function(t){et(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var n,i=t.charCodeAt(0),r=47===i;r?(e.root="/",n=1):n=0;for(var o=-1,a=0,c=-1,s=!0,l=t.length-1,u=0;l>=n;--l)if(47!==(i=t.charCodeAt(l)))-1===c&&(s=!1,c=l+1),46===i?-1===o?o=l:1!==u&&(u=1):-1!==o&&(u=-1);else if(!s){a=l+1;break}return-1===o||-1===c||0===u||1===u&&o===c-1&&o===a+1?-1!==c&&(e.base=e.name=0===a&&r?t.slice(1,c):t.slice(a,c)):(0===a&&r?(e.name=t.slice(1,o),e.base=t.slice(1,c)):(e.name=t.slice(a,o),e.base=t.slice(a,c)),e.ext=t.slice(o,c)),a>0?e.dir=t.slice(0,a-1):r&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};function rt(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function ot(){return"".concat(rt()+rt(),"-").concat(rt(),"-").concat(rt(),"-").concat(rt(),"-").concat(rt()).concat(rt()).concat(rt())}it.posix=it;var at=function(){function t(){v(this,t)}return m(t,null,[{key:"copy",value:function(t){return this.inputElement||(this.inputElement=document.createElement("input"),this.inputElement.style.position="absolute",this.inputElement.style.left="-9999px",document.body.appendChild(this.inputElement)),this.inputElement.value=t,this.inputElement.select(),document.execCommand("copy")}}]),t}();y(at,"inputElement",null);var ct=function(){function t(){v(this,t)}var e,n,i,r,o,a,c,s,l,u;return m(t,null,[{key:"checkDataBaseExists",value:(u=d(h().mark((function t(e){var n;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,indexedDB.databases();case 3:return n=t.sent,t.abrupt("return",n.some((function(t){return t.name===e})));case 7:return t.prev=7,t.t0=t.catch(0),console.error("检查数据库是否存在时出错:",t.t0),t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t,null,[[0,7]])}))),function(t){return u.apply(this,arguments)})},{key:"deleteDatabase",value:(l=d(h().mark((function e(n){var i,r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.lastLink&&(null===(i=(r=t.lastLink).close)||void 0===i||i.call(r)),e.abrupt("return",new Promise((function(t,e){var i=indexedDB.deleteDatabase(n);i.onsuccess=function(){t(!0)},i.onerror=function(){t(!1)},i.onblocked=function(){console.warn("删除数据库 ".concat(n," 被阻塞,可能有其他连接正在使用该数据库。")),e(new Error("删除数据库 ".concat(n," 被阻塞")))}})));case 2:case"end":return e.stop()}}),e)}))),function(t){return l.apply(this,arguments)})},{key:"checkTableExists",value:(s=d(h().mark((function e(n,i){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.checkDataBaseExists(n);case 2:if(e.sent){e.next=5;break}return e.abrupt("return",!1);case 5:return e.abrupt("return",new Promise((function(e,r){var o=indexedDB.open(n);o.onupgradeneeded=function(e){t.db=e.target.result,t.version=t.db.version},o.onsuccess=function(n){t.db=n.target.result,t.lastLink=o.result;var r=t.db.objectStoreNames.contains(i);o.result.close(),e(r)},o.onerror=function(t){r(t.target.error)}})));case 6:case"end":return e.stop()}}),e)}))),function(t,e){return s.apply(this,arguments)})},{key:"createTable",value:(c=d(h().mark((function e(n,i,r){var o,a=arguments;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=a.length>3&&void 0!==a[3]&&a[3],e.abrupt("return",new Promise((function(e){var a,c;t.version+=1,t.lastLink&&(null===(a=(c=t.lastLink).close)||void 0===a||a.call(c));var s=indexedDB.open(n,t.version);s.onupgradeneeded=function(e){if(t.db=e.target.result,!t.db.objectStoreNames.contains(i)){var n={};r?n.keyPath=r:o&&(n.autoIncrement=!0),t.db.createObjectStore(i,n)}},s.onsuccess=function(){t.lastLink=s.result,s.result.close(),e(!0)},s.onerror=function(){e(!1)}})));case 2:case"end":return e.stop()}}),e)}))),function(t,e,n){return c.apply(this,arguments)})},{key:"deleteTable",value:(a=d(h().mark((function e(n,i){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var r,o;t.version+=1,t.lastLink&&(null===(r=(o=t.lastLink).close)||void 0===r||r.call(o));var a=indexedDB.open(n,t.version);a.onupgradeneeded=function(e){t.db=e.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(i)&&t.db.deleteObjectStore(i)},a.onsuccess=function(n){t.db=n.target.result,t.lastLink=a.result,a.result.close(),e(!0)},a.onerror=function(){a.result.close(),e(!1)}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return a.apply(this,arguments)})},{key:"addData",value:(o=d(h().mark((function e(n,i,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(i)){var o=t.db.transaction([i],"readwrite").objectStore(i).add(r);o.onsuccess=function(t){e(r)},o.onerror=function(){e(null)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e,n){return o.apply(this,arguments)})},{key:"deleteData",value:(r=d(h().mark((function e(n,i,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(i)){var o=t.db.transaction([i],"readwrite").objectStore(i).delete(r);o.onsuccess=function(t){e(!0)},o.onerror=function(){e(!1)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e,n){return r.apply(this,arguments)})},{key:"updateData",value:(i=d(h().mark((function e(n,i,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(i)){var o=t.db.transaction([i],"readwrite").objectStore(i).put(r);o.onsuccess=function(t){e(r)},o.onerror=function(){e(r)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e,n){return i.apply(this,arguments)})},{key:"getData",value:(n=d(h().mark((function e(n,i,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(i)){var c=t.db.transaction([i],"readonly").objectStore(i).get(r);c.onsuccess=function(t){e(c.result)},c.onerror=function(){o(new Error("未找到数据".concat(r)))}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e,i){return n.apply(this,arguments)})},{key:"getAllData",value:(e=d(h().mark((function e(n,i){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){var o=indexedDB.open(n);o.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=o.result,t.db.objectStoreNames.contains(i)){var r=t.db.transaction([i],"readonly").objectStore(i).getAll();r.onsuccess=function(t){e(r.result)},r.onerror=function(){e([])}}o.result.close()},o.onerror=function(){o.result.close(),r()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,n){return e.apply(this,arguments)})}]),t}();y(ct,"version",1),y(ct,"db",null),y(ct,"lastLink",void 0);var st,lt,ut,ht,ft=function(){function t(e){v(this,t),y(this,"options",void 0),this.options=u({multiple:!0,accept:"*/*",maxSize:5242880},e)}var e,n;return m(t,[{key:"openFilePicker",value:function(){var t=this,e=document.createElement("input");e.type="file",e.multiple=this.options.multiple,e.accept=this.options.accept||"",e.onchange=function(e){var n=Array.from(e.target.files||[]);t.handleFiles(n)},e.click()}},{key:"handleFiles",value:(n=d(h().mark((function t(e){var n,i,r,o=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.length){t.next=2;break}return t.abrupt("return");case 2:return r=e.filter((function(t){var e,n;return!(o.options.maxSize&&t.size>o.options.maxSize&&(null===(e=(n=o.options).onError)||void 0===e||e.call(n,new Error("文件大小超过限制 (".concat(o.formatSize(t.size)," > ").concat(o.formatSize(o.options.maxSize),")")),t),1))})),null===(n=(i=this.options).onSelect)||void 0===n||n.call(i,r),t.next=6,Promise.all(r.map((function(t){return o.processFile(t)})));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"processFile",value:(e=d(h().mark((function t(e){var n,i,r,o,a,c,s,l,u=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a=function(t){var n,i;null===(n=(i=u.options).onProgress)||void 0===n||n.call(i,e,t)},t.next=4,this.options.onUpload(e,a);case 4:c=t.sent,null===(n=(i=this.options).onProgress)||void 0===n||n.call(i,e,100),null===(r=(o=this.options).onSuccess)||void 0===r||r.call(o,c,e),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),null===(s=(l=this.options).onError)||void 0===s||s.call(l,t.t0 instanceof Error?t.t0:new Error("上传失败"),e);case 12:case"end":return t.stop()}}),t,this,[[0,9]])}))),function(t){return e.apply(this,arguments)})},{key:"formatSize",value:function(t){if(0===t)return"0 B";var e=Math.floor(Math.log(t)/Math.log(1024));return"".concat((t/Math.pow(1024,e)).toFixed(2)," ").concat(["B","KB","MB","GB"][e])}}]),t}(),dt=function(){function t(){v(this,t)}return m(t,null,[{key:"getCdataContent",value:function(t){if(!t)return null;var e=Array.from(t.childNodes).find((function(t){return t.nodeType===t.CDATA_SECTION_NODE}));return(null==e?void 0:e.nodeValue)||t.textContent}},{key:"parse",value:function(t){var e=this,n=(new DOMParser).parseFromString(t,"text/xml");return Array.from(n.querySelectorAll("resource")).map((function(t){var n=t.getAttribute("type")||"",i=t.querySelector("data"),r=t.querySelector("metadata");try{var o=e.getCdataContent(i),a=e.getCdataContent(r),c=o?JSON.parse(o):{},s=a?JSON.parse(a):{};return{id:c.id,type:n,data:c,metadata:s}}catch(On){throw new Error("XML 解析错误: ".concat(On.message))}}))}},{key:"parseMixedContent",value:function(t){var e=/]*>[\s\S]*?<\/resources>/i.exec(t);if(!e)return{resources:[],remainingText:t,hasResources:!1};var n=a(e,1)[0],i=e.index,r=i+n.length,o=t.slice(0,i)+t.slice(r);try{return{resources:this.parse(n),remainingText:o,hasResources:!0}}catch(c){return{resources:[],remainingText:o,hasResources:!0,error:"资源解析失败: ".concat(c.message)}}}},{key:"stringify",value:function(t){var e=document.implementation.createDocument(null,null,null),n=e.createElement("resources");return n.setAttribute("version","1.0"),t.forEach((function(t){var i=e.createElement("resource");i.setAttribute("type",t.type),i.setAttribute("version","1.0");var r=function(t,n){var i=e.createElement(t),r=e.createCDATASection(JSON.stringify(n));return i.appendChild(r),i};i.appendChild(r("data",t.data)),i.appendChild(r("metadata",t.metadata)),n.appendChild(i)})),e.appendChild(n),(new XMLSerializer).serializeToString(e)}}]),t}(),pt=0,vt=[],_t=[],mt=l.__b,yt=l.__r,gt=l.diffed,bt=l.__c,wt=l.unmount;function kt(t,e){l.__h&&l.__h(lt,t,pt||e),pt=0;var n=lt.__H||(lt.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:_t}),n.__[t]}function xt(t){return pt=1,function(t,e,n){var i=kt(st++,2);if(i.t=t,!i.__c&&(i.__=[n?n(e):Lt(void 0,e),function(t){var e=i.__N?i.__N[0]:i.__[0],n=i.t(e,t);e!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=lt,!lt.u)){var r=function(t,e,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(t){return t.__c}));if(r.every((function(t){return!t.__N})))return!o||o.call(this,t,e,n);var a=!1;return r.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),!(!a&&i.__c.props===t)&&(!o||o.call(this,t,e,n))};lt.u=!0;var o=lt.shouldComponentUpdate,a=lt.componentWillUpdate;lt.componentWillUpdate=function(t,e,n){if(this.__e){var i=o;o=void 0,r(t,e,n),o=i}a&&a.call(this,t,e,n)},lt.shouldComponentUpdate=r}return i.__N||i.__}(Lt,t)}function Ct(t,e){var n=kt(st++,3);!l.__s&&It(n.__H,e)&&(n.__=t,n.i=e,lt.__H.__h.push(n))}function Et(t){return pt=5,Nt((function(){return{current:t}}),[])}function Nt(t,e){var n=kt(st++,7);return It(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function St(t,e){return pt=8,Nt((function(){return t}),e)}function Tt(){for(var t;t=vt.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(zt),t.__H.__h.forEach(Mt),t.__H.__h=[]}catch(In){t.__H.__h=[],l.__e(In,t.__v)}}l.__b=function(t){lt=null,mt&&mt(t)},l.__r=function(t){yt&&yt(t),st=0;var e=(lt=t.__c).__H;e&&(ut===lt?(e.__h=[],lt.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=_t,t.__N=t.i=void 0}))):(e.__h.forEach(zt),e.__h.forEach(Mt),e.__h=[],st=0)),ut=lt},l.diffed=function(t){gt&>(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==vt.push(e)&&ht===l.requestAnimationFrame||((ht=l.requestAnimationFrame)||Ot)(Tt)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==_t&&(t.__=t.__V),t.i=void 0,t.__V=_t}))),ut=lt=null},l.__c=function(t,e){e.some((function(t){try{t.__h.forEach(zt),t.__h=t.__h.filter((function(t){return!t.__||Mt(t)}))}catch(Wt){e.some((function(t){t.__h&&(t.__h=[])})),e=[],l.__e(Wt,t.__v)}})),bt&&bt(t,e)},l.unmount=function(t){wt&&wt(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{zt(t)}catch(t){e=t}})),n.__H=void 0,e&&l.__e(e,n.__v))};var At="function"==typeof requestAnimationFrame;function Ot(t){var e,n=function(){clearTimeout(i),At&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);At&&(e=requestAnimationFrame(n))}function zt(t){var e=lt,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),lt=e}function Mt(t){var e=lt;t.__c=t.__(),lt=e}function It(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function Lt(t,e){return"function"==typeof e?e(t):e}function Dt(){throw new Error("Cycle detected")}var Pt=Symbol.for("preact-signals");function Ht(){if(Ut>1)Ut--;else{for(var t,e=!1;void 0!==Ft;){var n=Ft;for(Ft=void 0,Vt++;void 0!==n;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Xt(n))try{n.c()}catch(n){e||(t=n,e=!0)}n=i}}if(Vt=0,Ut--,e)throw t}}var jt,Bt,Rt=void 0,Ft=void 0,Ut=0,Vt=0,Wt=0;function qt(t){if(void 0!==Rt){var e=t.n;if(void 0===e||e.t!==Rt)return e={i:0,S:t,p:Rt.s,n:void 0,t:Rt,e:void 0,x:void 0,r:e},void 0!==Rt.s&&(Rt.s.n=e),Rt.s=e,t.n=e,32&Rt.f&&t.S(e),e;if(-1===e.i)return e.i=0,void 0!==e.n&&(e.n.p=e.p,void 0!==e.p&&(e.p.n=e.n),e.p=Rt.s,e.n=void 0,Rt.s.n=e,Rt.s=e),e}}function Yt(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}function $t(t){return new Yt(t)}function Xt(t){for(var e=t.s;void 0!==e;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function Gt(t){for(var e=t.s;void 0!==e;e=e.n){var n=e.S.n;if(void 0!==n&&(e.r=n),e.S.n=e,e.i=-1,void 0===e.n){t.s=e;break}}}function Jt(t){for(var e=t.s,n=void 0;void 0!==e;){var i=e.p;-1===e.i?(e.S.U(e),void 0!==i&&(i.n=e.n),void 0!==e.n&&(e.n.p=i)):n=e,e.S.n=e.r,void 0!==e.r&&(e.r=void 0),e=i}t.s=n}function Zt(t){Yt.call(this,void 0),this.x=t,this.s=void 0,this.g=Wt-1,this.f=4}function Kt(t){return new Zt(t)}function Qt(t){var e=t.u;if(t.u=void 0,"function"==typeof e){Ut++;var n=Rt;Rt=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,te(t),e}finally{Rt=n,Ht()}}}function te(t){for(var e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Qt(t)}function ee(t){if(Rt!==this)throw new Error("Out-of-order effect");Jt(this),Rt=t,this.f&=-2,8&this.f&&te(this),Ht()}function ne(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function ie(t){var e=new ne(t);try{e.c()}catch(t){throw e.d(),t}return e.d.bind(e)}function re(t,e){l[t]=e.bind(null,l[t]||function(){})}function oe(t){Bt&&Bt(),Bt=t&&t.S()}function ae(t){var e=this,n=t.data,i=se(n);i.value=n;var r=Nt((function(){for(var t=e.__v;t=t.__;)if(t.__c){t.__c.__$f|=4;break}return e.__$u.c=function(){var t;_(r.peek())||3!==(null==(t=e.base)?void 0:t.nodeType)?(e.__$f|=1,e.setState({})):e.base.data=r.peek()},Kt((function(){var t=i.value.value;return 0===t?0:!0===t?"":t||""}))}),[]);return r.value}function ce(t,e,n,i){var r=e in t&&void 0===t.ownerSVGElement,o=$t(n);return{o:function(t,e){o.value=t,i=e},d:ie((function(){var n=o.value.value;i[e]!==n&&(i[e]=n,r?t[e]=n:n?t.setAttribute(e,n):t.removeAttribute(e))}))}}function se(t){return Nt((function(){return $t(t)}),[])}function le(t){var e=Et(t);return e.current=t,jt.__$f|=4,Nt((function(){return Kt((function(){return e.current()}))}),[])}Yt.prototype.brand=Pt,Yt.prototype.h=function(){return!0},Yt.prototype.S=function(t){this.t!==t&&void 0===t.e&&(t.x=this.t,void 0!==this.t&&(this.t.e=t),this.t=t)},Yt.prototype.U=function(t){if(void 0!==this.t){var e=t.e,n=t.x;void 0!==e&&(e.x=n,t.e=void 0),void 0!==n&&(n.e=e,t.x=void 0),t===this.t&&(this.t=n)}},Yt.prototype.subscribe=function(t){var e=this;return ie((function(){var n=e.value,i=32&this.f;this.f&=-33;try{t(n)}finally{this.f|=i}}))},Yt.prototype.valueOf=function(){return this.value},Yt.prototype.toString=function(){return this.value+""},Yt.prototype.toJSON=function(){return this.value},Yt.prototype.peek=function(){return this.v},Object.defineProperty(Yt.prototype,"value",{get:function(){var t=qt(this);return void 0!==t&&(t.i=this.i),this.v},set:function(t){if(Rt instanceof Zt&&function(){throw new Error("Computed cannot have side-effects")}(),t!==this.v){Vt>100&&Dt(),this.v=t,this.i++,Wt++,Ut++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{Ht()}}}}),(Zt.prototype=new Yt).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Wt)return!0;if(this.g=Wt,this.f|=1,this.i>0&&!Xt(this))return this.f&=-2,!0;var t=Rt;try{Gt(this),Rt=this;var e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return Rt=t,Jt(this),this.f&=-2,!0},Zt.prototype.S=function(t){if(void 0===this.t){this.f|=36;for(var e=this.s;void 0!==e;e=e.n)e.S.S(e)}Yt.prototype.S.call(this,t)},Zt.prototype.U=function(t){if(void 0!==this.t&&(Yt.prototype.U.call(this,t),void 0===this.t)){this.f&=-33;for(var e=this.s;void 0!==e;e=e.n)e.S.U(e)}},Zt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;void 0!==t;t=t.x)t.t.N()}},Zt.prototype.peek=function(){if(this.h()||Dt(),16&this.f)throw this.v;return this.v},Object.defineProperty(Zt.prototype,"value",{get:function(){1&this.f&&Dt();var t=qt(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),ne.prototype.c=function(){var t=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var e=this.x();"function"==typeof e&&(this.u=e)}finally{t()}},ne.prototype.S=function(){1&this.f&&Dt(),this.f|=1,this.f&=-9,Qt(this),Gt(this),Ut++;var t=Rt;return Rt=this,ee.bind(this,t)},ne.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ft,Ft=this)},ne.prototype.d=function(){this.f|=8,1&this.f||te(this)},ae.displayName="_st",Object.defineProperties(Yt.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ae},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),re("__b",(function(t,e){if("string"==typeof e.type){var n,i=e.props;for(var r in i)if("children"!==r){var o=i[r];o instanceof Yt&&(n||(e.__np=n={}),n[r]=o,i[r]=o.peek())}}t(e)})),re("__r",(function(t,e){oe();var n,i=e.__c;i&&(i.__$f&=-2,void 0===(n=i.__$u)&&(i.__$u=n=function(t){var e;return ie((function(){e=this})),e.c=function(){i.__$f|=1,i.setState({})},e}())),jt=i,oe(n),t(e)})),re("__e",(function(t,e,n,i){oe(),jt=void 0,t(e,n,i)})),re("diffed",(function(t,e){var n;if(oe(),jt=void 0,"string"==typeof e.type&&(n=e.__e)){var i=e.__np,r=e.props;if(i){var o=n.U;if(o)for(var a in o){var c=o[a];void 0===c||a in i||(c.d(),o[a]=void 0)}else n.U=o={};for(var s in i){var l=o[s],u=i[s];void 0===l?(l=ce(n,s,u,r),o[s]=l):l.o(u,r)}}}t(e)})),re("unmount",(function(t,e){if("string"==typeof e.type){var n=e.__e;if(n){var i=n.U;if(i)for(var r in n.U=void 0,i){var o=i[r];o&&o.d()}}}else{var a=e.__c;if(a){var c=a.__$u;c&&(a.__$u=void 0,c.d())}}t(e)})),re("__h",(function(t,e,n,i){(i<3||9===i)&&(e.__$f|=2),t(e,n,i)})),I.prototype.shouldComponentUpdate=function(t,e){var n=this.__$u;if(!(n&&void 0!==n.s||4&this.__$f))return!0;if(3&this.__$f)return!0;for(var i in e)return!0;for(var r in t)if("__source"!==r&&t[r]!==this.props[r])return!0;for(var o in this.props)if(!(o in t))return!0;return!1};var ue=0;function he(t,e,n,i,r,o){var a,c,s={};for(c in e)"ref"==c?a=e[c]:s[c]=e[c];var u={type:t,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--ue,__source:r,__self:o};if("function"==typeof t&&(a=t.defaultProps))for(c in a)void 0===s[c]&&(s[c]=a[c]);return l.vnode&&l.vnode(u),u}var fe=function(){return he("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M843.904 783.573333 783.573333 843.904 512.042667 572.373333 240.512 843.904 180.181333 783.573333 451.712 512.042667 180.181333 240.512 240.512 180.181333 512.042667 451.712 783.573333 180.181333 843.904 240.512 572.373333 512.042667 843.904 783.573333Z"})})},de=function(){return he("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M900.64 379.808l-263.072-256.032c-36.448-35.328-105.76-35.392-142.304 0.096l-327.04 319.904c-56.416 54.72-70.72 76.704-70.72 150.976l0 143.936c0 132.768 26.976 192 186.912 192l131.872 0c81.12 0 128.448-46.656 193.952-111.264l290.016-297.696c18.592-17.984 29.248-43.968 29.248-71.264C929.504 423.36 918.976 397.6 900.64 379.808zM323.008 786.752c-52.928 0-96-43.072-96-96s43.072-96 96-96 96 43.072 96 96S375.936 786.752 323.008 786.752z"})})},pe=function(){return he("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2-8.5 2.1-13.8 10.7-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-0.9 3.7-0.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 0.7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-0.8 4.2-2.6 5-5 1.4-4.2-0.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"})})},ve=function(){return he("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M962 197.61H747v-60c0-55.14-44.86-100-100-100H377c-55.14 0-100 44.86-100 100v60H62c-11.05 0-20 8.95-20 20s8.95 20 20 20h60v630.57c0 66.17 53.83 120 120 120h540c66.17 0 120-53.83 120-120V237.61h60c11.05 0 20-8.95 20-20s-8.95-20-20-20zM637.34 457.66v260c0 12.01-10.72 21.63-23.06 19.77-9.84-1.48-16.94-10.25-16.94-20.2V458.09c0-9.95 7.1-18.72 16.94-20.2 12.34-1.86 23.06 7.76 23.06 19.77z m-210.68 0v260c0 11-9 20-20 20s-20-9-20-20v-260c0-11 9-20 20-20s20 9 20 20zM317 137.61c0-33.08 26.92-60 60-60h270c33.08 0 60 26.92 60 60v60H317v-60z"})})},_e=function(){return he("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M511.582491 63.413262C265.134543 63.413262 64.62588 263.921925 64.62588 510.369873s200.508663 446.957635 446.957635 446.957635 446.957635-200.508663 446.957635-446.957635S758.031463 63.413262 511.582491 63.413262zM509.001713 751.859903c-98.517781 0-182.467775-62.623269-214.771505-150.056598l0.327458-0.134053c-2.007727-4.036943-3.38305-8.422833-3.38305-13.237489 0-16.647145 13.494339-30.142507 30.142507-30.142507 13.389962 0 24.358781 8.877181 28.2893 20.955264l0.422625-0.172939c23.269983 65.442478 85.645612 112.503307 158.972665 112.503307 93.106538 0 168.845523-75.738985 168.845523-168.845523s-75.738985-168.845523-168.845523-168.845523c-20.432355 0-39.874149 3.980661-58.013275 10.66899l21.248953 40.742936c2.486634 2.677992 4.0175 6.2831 4.0175 10.243295 0 8.417717-8.404414 14.921851-15.365966 15.07023-0.102331 0-0.206708 0-0.309038 0-0.220011 0-0.427742 0-0.647753-0.013303l-150.579507-6.463202c-5.372358-0.234337-10.229992-3.310396-12.716626-8.093329-2.486634-4.76963-2.236947-10.509355 0.647753-15.055904l80.890308-127.179564c2.8847-4.533246 8.006348-7.151887 13.365402-6.960529 5.372358 0.234337 10.227945 3.312442 12.71458 8.095375l18.580171 35.625382c26.629497-10.855232 55.683207-16.963347 86.168522-16.963347 126.338407 0 229.130537 102.791108 229.130537 229.130537S635.340119 751.859903 509.001713 751.859903z"})})},me=function(){return he("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M891.072 822.144V167.36a34.432 34.432 0 0 0-34.432-34.432H201.856C201.856 94.848 232.704 64 270.784 64h620.288C929.152 64 960 94.848 960 132.928v620.288c0 38.08-30.848 68.928-68.928 68.928z m-68.928-551.36v620.288c0 38.08-30.848 68.928-68.928 68.928H132.928A68.928 68.928 0 0 1 64 891.072V270.784c0-38.08 30.848-68.928 68.928-68.928h620.288c38.08 0 68.928 30.848 68.928 68.928z m-137.856 137.856H201.856a34.432 34.432 0 0 0 0 68.864h482.432a34.432 34.432 0 0 0 0-68.864z m0 206.72H201.856a34.432 34.432 0 0 0 0 68.864h482.432a34.432 34.432 0 0 0 0-68.864z"})})},ye=function(){return he("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M547.4 197.4v46l200.3 0.1L546.1 444l32.4 32.6 201.9-200.7v200.9h46V197.5zM471.4 584.4l-32.6-32.6L243.6 747V547.9h-46v278.7h279v-46H275z"})})},ge=function(){return he("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M544 480V282.944h52.224l0.064 107.968L763.072 224l36.928 36.928-166.976 166.976 108.032-0.128V480H544zM260.928 800l-36.928-36.928 166.912-166.784-107.968-0.064V544H480v197.056h-52.224l0.064-107.968L260.928 800z"})})},be=function(){return he("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M960 544H64a32 32 0 1 1 0-64h896a32 32 0 1 1 0 64"})})},we=function(){return he("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[he("path",{d:"M481.0752 263.3728l50.9952 1.024 1.8432-105.8816-50.9952-0.8192z"}),he("path",{d:"M486.441426 180.895362a66.56 66.56 0 1 0 42.091944-126.290153 66.56 66.56 0 1 0-42.091944 126.290153Z"}),he("path",{d:"M138.8544 664.3712c-52.8384 0-95.8464-43.008-95.8464-95.8464s43.008-95.8464 95.8464-95.8464M880.0256 472.6784c52.8384 0 95.8464 43.008 95.8464 95.8464s-43.008 95.8464-95.8464 95.8464"}),he("path",{d:"M507.4944 220.5696c-220.16 0-398.7456 162.816-398.7456 363.7248s178.5856 363.7248 398.7456 363.7248 398.7456-162.816 398.7456-363.7248-178.5856-363.7248-398.7456-363.7248z m0 559.9232c-166.2976 0-301.2608-100.5568-301.2608-224.4608s134.9632-224.4608 301.2608-224.4608S808.7552 432.128 808.7552 556.032 673.792 780.4928 507.4944 780.4928z"}),he("path",{d:"M319.6928 556.032a47.9232 38.912 90 1 0 77.824 0 47.9232 38.912 90 1 0-77.824 0Z"}),he("path",{d:"M617.472 556.032a47.9232 38.912 90 1 0 77.824 0 47.9232 38.912 90 1 0-77.824 0Z"})]})},ke=function(){return he("svg",{viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[he("path",{d:"M5.856 17.121a.979.979 0 0 1-.327-.06.839.839 0 0 1-.283-.177.739.739 0 0 1-.187-.255.724.724 0 0 1-.07-.303l-.02-1.609a4.663 4.663 0 0 1-1.446-.455 4.252 4.252 0 0 1-.637-.401c-.199-.146-.385-.31-.553-.492a4.442 4.442 0 0 1-.45-.577 4.303 4.303 0 0 1-.327-.637 3.823 3.823 0 0 1-.206-.686 3.729 3.729 0 0 1-.064-.704V6.478c0-.261.025-.516.077-.771a4.43 4.43 0 0 1 .244-.747 4.062 4.062 0 0 1 .932-1.28c.2-.183.418-.347.65-.493.23-.145.482-.267.739-.364a4.21 4.21 0 0 1 .81-.225c.27-.054.553-.078.835-.078H8.55c.103 0 .2.018.29.054a.7.7 0 0 1 .411.376.667.667 0 0 1-.161.766.736.736 0 0 1-.25.151.764.764 0 0 1-.29.055H5.573c-.186 0-.366.012-.54.049-.18.03-.353.079-.52.145-.167.061-.328.14-.482.237-.148.091-.29.2-.418.316a2.897 2.897 0 0 0-.347.388c-.097.14-.187.286-.257.444a2.473 2.473 0 0 0-.206.977v4.287c0 .17.013.333.051.503a2.549 2.549 0 0 0 .772 1.33 2.721 2.721 0 0 0 .913.559c.167.066.347.115.527.152.18.03.36.048.546.048a.904.904 0 0 1 .61.23.848.848 0 0 1 .194.262.84.84 0 0 1 .07.303l.007.99 1.915-1.293a2.877 2.877 0 0 1 1.64-.492h2.372c.186 0 .366-.018.54-.048.18-.03.353-.08.52-.146.168-.067.329-.146.483-.237.148-.091.29-.2.418-.316.128-.121.244-.249.347-.388a2.8 2.8 0 0 0 .257-.444 2.47 2.47 0 0 0 .206-.977V8.585a.646.646 0 0 1 .225-.492.679.679 0 0 1 .244-.152.814.814 0 0 1 .585 0c.09.03.174.085.244.152a.657.657 0 0 1 .225.492V10.8c0 .261-.032.516-.083.771a4.192 4.192 0 0 1-.245.74c-.109.244-.244.468-.398.687a3.735 3.735 0 0 1-.534.6c-.2.183-.418.347-.65.493a4.134 4.134 0 0 1-.738.364 4.7 4.7 0 0 1-.81.225c-.27.054-.553.079-.836.079h-1.877c-.604 0-1.144.164-1.633.491l-2.54 1.713a.913.913 0 0 1-.514.157z",fill:"currentColor"}),he("path",{d:"M15.866 4.125h-4.174c-.41 0-.741.313-.741.7 0 .387.332.7.741.7h4.174c.41 0 .742-.313.742-.7 0-.387-.332-.7-.742-.7z",fill:"currentColor"}),he("path",{d:"M14.537 2.932c0-.396-.34-.717-.759-.717s-.758.32-.758.717v3.786c0 .396.34.717.758.717.42 0 .76-.321.76-.717V2.932z",fill:"currentColor"})]})},xe=function(){return he("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:he("path",{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"})})},Ce=function(){var t=1e3,e=140,n=250,i=.8;return he("svg",{fill:"currentColor",viewBox:"0 0 ".concat(t," ").concat(t),xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:Array.from({length:4}).map((function(t,r){return he("rect",{fill:"currentColor",rx:70,ry:70,height:n,width:e,x:286.66666666666663*r,y:375,children:[he("animate",{attributeName:"height",values:"".concat(n,"; ").concat(500,"; ").concat(n),keyTimes:"0; 0.5; 1",dur:"".concat(i,"s"),begin:"".concat(.2*r,"s"),repeatCount:"indefinite"}),he("animate",{attributeName:"y",values:"".concat(375,"; ").concat(250,"; ").concat(375),keyTimes:"0; 0.5; 1",dur:"".concat(i,"s"),begin:"".concat(.2*r,"s"),repeatCount:"indefinite"})]},r)}))})},Ee=function(t){return he("svg",{className:t.className,onClick:t.onClick,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M128 384a128 128 0 1 1 0 256 128 128 0 0 1 0-256z m768 0a128 128 0 1 1 0 256 128 128 0 0 1 0-256z m-372.4288 0a128 128 0 1 1 0 256 128 128 0 0 1 0-256z"})})},Ne=function(t){return he("svg",{className:t.className,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M498.33984 607.8464c-10.99776-32.9728-50.09408-73.5232-82.6368-85.74976L150.9376 422.8096c-38.54336-14.4384-36.98688-69.46816 2.27328-81.73568L844.92288 124.90752c33.30048-10.40384 64.57344 20.8896 54.1696 54.1696L682.92608 870.78912a43.2128 43.2128 0 0 1-81.36704 3.25632 121682.5344 121682.5344 0 0 1-103.2192-266.19904z"})})},Se=function(t){return he("svg",{xmlns:"http://www.w3.org/2000/svg",className:t.className,viewBox:"0 0 512 512",children:he("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 184l144 144 144-144"})})},Te=function(t){return he("svg",{xmlns:"http://www.w3.org/2000/svg",className:"".concat(t.className," icon"),viewBox:"0 0 512 512",children:he("path",{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm108.25 138.29l-134.4 160a16 16 0 01-12 5.71h-.27a16 16 0 01-11.89-5.3l-57.6-64a16 16 0 1123.78-21.4l45.29 50.32 122.59-145.91a16 16 0 0124.5 20.58z"})})},Ae=function(t){return he("svg",{className:t.className,width:"16",height:"16",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",children:he("circle",{cx:"25",cy:"25",r:"20",stroke:"currentColor",strokeWidth:"5",fill:"none",strokeDasharray:"31.415, 31.415",strokeLinecap:"round",children:he("animateTransform",{attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"1s",repeatCount:"indefinite"})})})},Oe=function(){return he("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:he("path",{d:"M704 256v490.666667a170.666667 170.666667 0 0 1-170.666667 170.666666 170.666667 170.666667 0 0 1-170.666666-170.666666V213.333333A106.666667 106.666667 0 0 1 469.333333 106.666667 106.666667 106.666667 0 0 1 576 213.333333v448a42.666667 42.666667 0 0 1-42.666667 42.666667 42.666667 42.666667 0 0 1-42.666666-42.666667V256H426.666667v405.333333a106.666667 106.666667 0 0 0 106.666666 106.666667 106.666667 106.666667 0 0 0 106.666667-106.666667V213.333333a170.666667 170.666667 0 0 0-170.666667-170.666666 170.666667 170.666667 0 0 0-170.666666 170.666666v533.333334a234.666667 234.666667 0 0 0 234.666666 234.666666 234.666667 234.666667 0 0 0 234.666667-234.666666V256h-64z"})})},ze=function(){return he("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[he("path",{d:"M842.666667 285.866667l-187.733334-187.733334c-14.933333-14.933333-32-21.333333-53.333333-21.333333H234.666667C194.133333 74.666667 160 108.8 160 149.333333v725.333334c0 40.533333 34.133333 74.666667 74.666667 74.666666h554.666666c40.533333 0 74.666667-34.133333 74.666667-74.666666V337.066667c0-19.2-8.533333-38.4-21.333333-51.2z m-44.8 44.8c-2.133333 2.133333-4.266667 0-8.533334 0h-170.666666c-6.4 0-10.666667-4.266667-10.666667-10.666667V149.333333c0-2.133333 0-6.4-2.133333-8.533333 0 0 2.133333 0 2.133333 2.133333l189.866667 187.733334z m-8.533334 554.666666H234.666667c-6.4 0-10.666667-4.266667-10.666667-10.666666V149.333333c0-6.4 4.266667-10.666667 10.666667-10.666666h311.466666c-2.133333 4.266667-2.133333 6.4-2.133333 10.666666v170.666667c0 40.533333 34.133333 74.666667 74.666667 74.666667h170.666666c4.266667 0 6.4 0 10.666667-2.133334V874.666667c0 6.4-4.266667 10.666667-10.666667 10.666666z",fill:"currentColor"}),he("path",{d:"M640 693.333333H341.333333c-17.066667 0-32 14.933333-32 32s14.933333 32 32 32h298.666667c17.066667 0 32-14.933333 32-32s-14.933333-32-32-32zM640 522.666667H341.333333c-17.066667 0-32 14.933333-32 32s14.933333 32 32 32h298.666667c17.066667 0 32-14.933333 32-32s-14.933333-32-32-32zM341.333333 416h85.333334c17.066667 0 32-14.933333 32-32s-14.933333-32-32-32h-85.333334c-17.066667 0-32 14.933333-32 32s14.933333 32 32 32z",fill:"currentColor"})]})},Me=function(){return he("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:he("path",{d:"M557.248 511.68l135.776-135.744-45.248-45.28L512 466.432l-135.776-135.776-45.248 45.28 135.776 135.744-135.776 135.776 45.248 45.248L512 556.928l135.776 135.776 45.248-45.248-135.776-135.776zM512 64c247.136 0 448 200.864 448 448s-200.864 448-448 448S64 759.136 64 512 264.864 64 512 64z",fill:"currentColor"})})},Ie=function(){return he("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:he("path",{d:"M512.43945313 904.51953125c-6.06445313 0-12.12890625-1.58203125-17.57812501-4.74609375L136.70703125 689.71484375c-10.63476563-6.24023438-17.13867188-17.66601563-17.13867188-29.97070313s6.50390625-23.73046875 17.13867188-29.97070312l76.37695313-44.91210938L136.97070312 540.125c-10.63476563-6.24023438-17.13867188-17.66601563-17.13867187-29.97070313s6.50390625-23.73046875 17.13867188-29.97070312l73.38867187-43.15429688-73.125-42.890625C126.51171875 387.81054687 120.0078125 376.38476562 120.0078125 364.08007812c0-12.3046875 6.50390625-23.73046875 17.13867188-29.97070312L495.828125 122.99609375c10.8984375-6.41601563 24.34570313-6.41601563 35.24414063 0l358.15429687 210.05859375c10.63476563 6.24023438 17.13867188 17.66601563 17.13867188 29.97070313s-6.50390625 23.73046875-17.13867188 29.97070312l-73.38867188 43.15429688 73.12500001 42.890625c10.63476563 6.24023438 17.13867188 17.66601563 17.13867187 29.97070312s-6.50390625 23.73046875-17.13867187 29.97070313L812.5859375 583.89453125l76.11328125 44.6484375c10.63476563 6.24023438 17.13867188 17.66601563 17.13867188 29.97070313s-6.50390625 23.73046875-17.13867188 29.97070312l-358.59375 211.2890625c-5.44921875 3.1640625-11.6015625 4.74609375-17.66601563 4.74609375zM223.015625 659.65625l289.42382813 169.8046875 290.12695312-170.77148438-58.44726563-34.27734374L530.28125 750.18359375a34.67285156 34.67285156 0 0 1-35.24414063 0L281.7265625 625.02734375 223.015625 659.65625z m76.90429688-104.58984375l212.69531249 124.8046875 290.12695313-170.77148438-55.546875-32.60742187-216.65039063 127.6171875a34.67285156 34.67285156 0 0 1-35.24414062 0L279.00195312 477.28320312l-55.81054687 32.78320313 75.49804688 44.296875c0.43945313 0.26367188 0.79101563 0.52734375 1.23046874 0.703125z m-2.81250001-147.83203125l215.68359376 126.5625 216.12304687-127.17773438c0.3515625-0.26367188 0.703125-0.43945313 1.0546875-0.61523437l72.86132813-42.890625-289.33593751-169.8046875-290.12695312 170.68359375 72.59765625 42.62695313c0.43945313 0.17578125 0.79101563 0.43945313 1.14257813 0.61523437z"})})},Le=function(t){var e=t.items,n=se([]),i=new tt("chat-thought-chain"),r=se([]);Ct((function(){r.value=e.filter((function(t){return t.description})),r.value.length>0&&r.value.forEach((function(t,e){t.done&&(n.value=[].concat(o(n.value),[e]))}))}),[e]);return 0===r.value.length?null:he("div",{className:"".concat(i.b()," ").concat(i.is("single",1===r.value.length)),children:r.value.map((function(t,e){if(t.description){var r=n.value.includes(e);return he("div",{className:"".concat(i.e("item")," ").concat(i.is("collapsed",r)),children:[he("div",{className:i.e("item-icon"),children:t.icon||he("span",{children:e})}),he("div",{className:i.e("item-content"),children:[he("div",{className:i.e("item-title"),onClick:function(){return function(t){n.value.includes(t)?n.value=n.value.filter((function(e){return e!==t})):n.value=[].concat(o(n.value),[t])}(e)},children:[t.title,he(Se,{className:i.e("icon")})]}),he("div",{className:i.e("item-description"),children:t.description})]})]},e)}}))})},De=new tt("markdown-message"),Pe=function(t){var e=t.message,n=t.size,i=se(ot()),r=se(null),o=Nt((function(){return 20===e.state&&!0!==e.completed}),[e.state,e.completed]),a=Nt((function(){return 20===e.state&&!0===e.completed}),[e.state,e.completed]),c=se({title:"思考过程",description:"",icon:he(Ae,{})}),l=function(t){var e=t.indexOf(""),n=t.indexOf(""),i="",r="",o=!1;return-1===n?(o=!1,i=t.slice(e+7),r=""):(o=!0,i=t.slice(e+7,n),r=t.slice(n+8)),{isThoughtCompleted:o,thoughtContent:i,answerContent:r}};return Ct((function(){if(n>=0&&r.value)if(-1!==e.content.indexOf("")){var t=l(e.content),i=t.isThoughtCompleted,o=t.thoughtContent,a=t.answerContent;i&&(c.value.icon=he(i?Te:Ae,{})),o&&(c.value.description=o),a&&r.value.setMarkdown(a)}else r.value.setMarkdown(e.content)}),[e,n]),Ct((function(){var t="";if(-1!==e.content.indexOf("")){var n=l(e.content),o=n.isThoughtCompleted,a=n.thoughtContent,u=n.answerContent;c.value={title:"思考过程",description:a||"",icon:he(o?Te:Ae,{})},u&&(t=u)}else t=e.content;r.value=new s({id:i,value:t||"",editor:{defaultModel:"previewOnly"}})}),[]),he("div",{className:"".concat(De.b()," ").concat(De.is("loading",o)),children:[he("div",{className:De.b("header"),children:[he("div",{className:De.be("header","caption"),children:"AI "}),t.children,a?he("div",{className:De.be("header","timeout"),children:"请求超时"}):null]}),he("div",{className:"".concat(De.b("content")," pre-wrap-container"),children:[he(Le,{items:[c.value]}),he("div",{id:i})]}),he("div",{className:De.b("footer")})]})},He=new tt("ossfile-material"),je=function(t){var e=le((function(){return t.material.data.name})),n=le((function(){return t.material.metadata.size})),i=le((function(){var e=t.material.metadata.state;return"successed"===e?"上传成功":"uploading"===e?"上传中":"failed"===e?"上传失败":"未知状态"})),r=le((function(){switch(t.material.metadata.state){case"successed":return"#1890ff";case"uploading":return"#52c41a";default:return"#ff4d4f"}}));return he("div",{className:He.b(),children:[he("div",{className:He.b("left"),children:he(ze,{})}),he("div",{className:He.b("right"),children:[he("div",{className:He.e("name"),title:e,children:e}),he("div",{className:He.e("metadata"),children:[he("div",{children:[n,"B"]}),he("div",{style:{color:r.value},children:i})]})]})]})},Be=new tt("common-material"),Re=function(t){var e,n=null===(e=t.controller.opts.questionToolbarItems)||void 0===e?void 0:e.find((function(e){return e.id===t.material.metadata.actionId})),i=le((function(){return t.material.metadata.name}));return he("div",{className:Be.b(),children:[he("div",{className:Be.b("left"),children:n&&n.icon?"function"==typeof n.icon?n.icon(O):n.icon:he(Ie,{})}),he("div",{className:Be.b("right"),children:[he("div",{className:Be.e("name"),title:i,children:i}),he("div",{className:Be.e("metadata"),children:he("div",{children:(null==n?void 0:n.label)||"素材资源"})})]})]})},Fe=new tt("chat-input-material-item"),Ue=function(t){var e=t.material,n=null;if("ossfile"===e.type)n=je;else n=Re;return he("div",{className:"".concat(Fe.b()," ").concat(Fe.is("disabled",t.disabled)),children:[he("div",{className:Fe.e("icon"),onClick:function(){t.controller.deleteMaterial(e)},children:he(Me,{})}),O(n,{material:e,controller:t.controller})]})},Ve=new tt("user-message-question"),We=function(t){var e=le((function(){return t.message.content})),n=le((function(){return dt.parseMixedContent(e.value)}));return he("div",{className:Ve.b(),children:[he("div",{className:Ve.e("user-header"),children:[t.children,he("div",{className:Ve.e("user"),children:"我"})]}),he("div",{className:Ve.e("content"),children:he("div",{dir:"auto",className:Ve.em("content","body"),children:[he("p",{dir:"auto",className:Ve.em("content","material"),children:n.value.hasResources&&n.value.resources.map((function(e){return he(Ue,{material:e,disabled:!0,controller:t.controller},e.id)}))}),he("p",{dir:"auto",className:"pre-wrap-container",children:n.value.remainingText})]})})]})},qe=new tt("error-message"),Ye=function(t){var e=le((function(){return t.message.content}));return he("div",{className:qe.b(),children:[he("div",{className:qe.b("header"),children:[he("div",{className:qe.be("header","caption"),children:"AI "}),t.children]}),he("div",{className:"".concat(qe.e("content")," pre-wrap-container"),children:he("span",{children:e})})]})},$e=new tt("unknown-message"),Xe=function(t){return he("div",{className:$e.b(),children:he("span",{className:"".concat($e.e("content")," pre-wrap-container"),children:["暂未支持的消息类型: ",t.message.type]})})},Ge=new tt("chat-message-item"),Je=function(t){var e=t.message,n=t.size,i=null;switch(e.type){case"DEFAULT":i="ASSISTANT"===e.role?Pe:We;break;case"ERROR":i=Ye;break;default:i=Xe}return he("div",{className:Ge.b(),children:O(i,{size:n,message:e,controller:t.controller,children:t.children})})},Ze=new tt("chat-toolbar"),Ke=function(t){var e=t.controller,n=t.items,i=void 0===n?[]:n,r=t.data,a=t.type,c=t.className,s=[],l="default",u=[{label:"新建对话",title:"新建对话",icon:he(ke,{}),onClick:function(){e.newDialogue()}}],h=[{label:"回填",title:"回填",icon:he(de,{}),onClick:function(){e.backfill(r)}},{label:"刷新",title:"刷新",icon:he(_e,{}),onClick:function(){e.refreshMessage(r)}},{label:"删除",title:"删除",icon:he(ve,{}),onClick:function(){e.deleteMessage(r)}},{label:"复制",title:"复制",icon:he(me,{}),onClick:function(){e.copyMessage(r)}}],f=[{label:"刷新",title:"刷新",icon:he(_e,{}),onClick:function(){e.refreshMessage(r,!0)}}];if("content"===a)switch(l="circle",r.type){case"DEFAULT":s="ASSISTANT"===r.role?[].concat(h,o(i)):[].concat(f);break;case"ERROR":s=[].concat(h,o(i))}else s=[].concat(u,o(i));var d=function(t){return"function"==typeof t.disabled?t.disabled(r):!0===t.disabled},p=Nt((function(){return"content"===a&&20===(null==r?void 0:r.state)&&!0!==(null==r?void 0:r.completed)}),[null==r?void 0:r.state,null==r?void 0:r.completed]);return he("div",{className:"".concat(Ze.b()," ").concat(Ze.e(l)," ").concat(c||""),children:s.map((function(t,n){if(!function(t){return"function"==typeof t.hidden?t.hidden(r):!0===t.hidden}(t))return he("div",{className:"".concat(Ze.e("item")," ").concat(Ze.is("disabled",d(t)||p)," ").concat(c||""),title:t.title,onClick:function(n){return function(t,n){var i;d(n)||null===(i=n.onClick)||void 0===i||i.call(n,t,e.context,e.params,r)}(n,t)},children:[he("div",{className:"".concat(Ze.em("item","icon")),children:"function"==typeof t.icon?t.icon(O):t.icon}),he("div",{className:"".concat(Ze.em("item","label")),children:"function"==typeof t.label?t.label(O):t.label})]},n)}))})},Qe=new tt("chat-messages"),tn=function(t){var e=Et(null),n=t.controller.messages;return function(t){var e=Et(t);e.current=t,Ct((function(){return ie((function(){return e.current()}))}),[])}((function(){e.current&&n.value.length>0&&(e.current.scrollTop=e.current.scrollHeight)})),he("div",{ref:e,className:Qe.b(),children:n.value.map((function(e){var n,i=(null===(n=e.content)||void 0===n?void 0:n.length)||0;return he(Je,{size:i,message:e,controller:t.controller,children:he(Ke,{data:e,type:"content",items:t.toolbarItems,controller:t.controller})},e.messageid)}))})};function en(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var i in e)if("__source"!==i&&t[i]!==e[i])return!0;return!1}function nn(t){this.props=t}(nn.prototype=new I).isPureReactComponent=!0,nn.prototype.shouldComponentUpdate=function(t,e){return en(this.props,t)||en(this.state,e)};var rn=l.__b;l.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),rn&&rn(t)};var on=l.__e;l.__e=function(t,e,n,i){if(t.then)for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e);on(t,e,n,i)};var an=l.unmount;function cn(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=function(t,e){for(var n in e)t[n]=e[n];return t}({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return cn(t,e,n)}))),t}function sn(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return sn(t,e,n)})),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function ln(){this.__u=0,this.t=null,this.__b=null}function un(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function hn(){this.u=null,this.o=null}l.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),an&&an(t)},(ln.prototype=new I).__c=function(t,e){var n=e.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=un(i.__v),o=!1,a=function(){o||(o=!0,n.__R=null,r?r(c):c())};n.__R=a;var c=function(){if(! --i.__u){if(i.state.__a){var t=i.state.__a;i.__v.__k[0]=sn(t,t.__c.__P,t.__c.__O)}var e;for(i.setState({__a:i.__b=null});e=i.t.pop();)e.forceUpdate()}},s=!0===e.__h;i.__u++||s||i.setState({__a:i.__b=i.__v.__k[0]}),t.then(a,a)},ln.prototype.componentWillUnmount=function(){this.t=[]},ln.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=cn(this.__b,n,i.__O=i.__P)}this.__b=null}var r=e.__a&&O(M,null,t.fallback);return r&&(r.__h=null),[O(M,null,e.__a?null:t.children),r]};var fn=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(t)}}),K(O(dn,{context:e.context},t.__v),e.l)}function vn(t,e){var n=O(pn,{__v:t,i:e});return n.containerInfo=e,n}(hn.prototype=new I).__a=function(t){var e=this,n=un(e.__v),i=e.o.get(t);return i[0]++,function(r){var o=function(){e.props.revealOrder?(i.push(r),fn(e,t,i)):r()};n?n(o):o()}},hn.prototype.render=function(t){this.u=null,this.o=new Map;var e=R(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},hn.prototype.componentDidUpdate=hn.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){fn(t,n,e)}))};var _n="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,mn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,yn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,gn=/[A-Z0-9]/g,bn="undefined"!=typeof document,wn=function(t){return("undefined"!=typeof Symbol&&"symbol"==p(Symbol())?/fil|che|rad/:/fil|che|ra/).test(t)};I.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(I.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var kn=l.event;function xn(){}function Cn(){return this.cancelBubble}function En(){return this.defaultPrevented}l.event=function(t){return kn&&(t=kn(t)),t.persist=xn,t.isPropagationStopped=Cn,t.isDefaultPrevented=En,t.nativeEvent=t};var Nn={enumerable:!1,configurable:!0,get:function(){return this.class}},Sn=l.vnode;l.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,i={};for(var r in e){var o=e[r];if(!("value"===r&&"defaultValue"in e&&null==o||bn&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in e&&null==e.value?r="value":"download"===r&&!0===o?o="":"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||wn(e.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":yn.test(r)?r=a:-1===n.indexOf("-")&&mn.test(r)?r=r.replace(gn,"-$&").toLowerCase():null===o&&(o=void 0):a=r="oninput","oninput"===a&&i[r=a]&&(r="oninputCapture"),i[r]=o}}"select"==n&&i.multiple&&Array.isArray(i.value)&&(i.value=R(e.children).forEach((function(t){t.props.selected=-1!=i.value.indexOf(t.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=R(e.children).forEach((function(t){t.props.selected=i.multiple?-1!=i.defaultValue.indexOf(t.props.value):i.defaultValue==t.props.value}))),e.class&&!e.className?(i.class=e.class,Object.defineProperty(i,"className",Nn)):(e.className&&!e.class||e.class&&e.className)&&(i.class=i.className=e.className),t.props=i}(t),t.$$typeof=_n,Sn&&Sn(t)};var Tn=l.__r;l.__r=function(t){Tn&&Tn(t),t.__c};var An=l.diffed;l.diffed=function(t){An&&An(t);var e=t.props,n=t.__e;null!=n&&"textarea"===t.type&&"value"in e&&e.value!==n.value&&(n.value=null==e.value?"":e.value)};var On=new Map;function zn(t){var e=On.get(t);e&&e.destroy()}function Mn(t){var e=On.get(t);e&&e.update()}var In=null;"undefined"==typeof window?((In=function(t){return t}).destroy=function(t){return t},In.update=function(t){return t}):((In=function(t,e){return t&&Array.prototype.forEach.call(t.length?t:[t],(function(t){return function(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!On.has(t)){var e,n=null,i=window.getComputedStyle(t),r=(e=t.value,function(){a({testForHeightReduction:""===e||!t.value.startsWith(e),restoreTextAlign:null}),e=t.value}),o=function(e){t.removeEventListener("autosize:destroy",o),t.removeEventListener("autosize:update",c),t.removeEventListener("input",r),window.removeEventListener("resize",c),Object.keys(e).forEach((function(n){return t.style[n]=e[n]})),On.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,textAlign:t.style.textAlign,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",o),t.addEventListener("autosize:update",c),t.addEventListener("input",r),window.addEventListener("resize",c),t.style.overflowX="hidden",t.style.wordWrap="break-word",On.set(t,{destroy:o,update:c}),c()}function a(e){var r,o,c=e.restoreTextAlign,s=void 0===c?null:c,l=e.testForHeightReduction,u=void 0===l||l,h=i.overflowY;if(0!==t.scrollHeight&&("vertical"===i.resize?t.style.resize="none":"both"===i.resize&&(t.style.resize="horizontal"),u&&(r=function(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push([t.parentNode,t.parentNode.scrollTop]),t=t.parentNode;return function(){return e.forEach((function(t){var e=t[0],n=t[1];e.style.scrollBehavior="auto",e.scrollTop=n,e.style.scrollBehavior=null}))}}(t),t.style.height=""),o="content-box"===i.boxSizing?t.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):t.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&o>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(t.style.overflow="scroll"),o=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(t.style.overflow="hidden"),t.style.height=o+"px",s&&(t.style.textAlign=s),r&&r(),n!==o&&(t.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=o),h!==i.overflow&&!s)){var f=i.textAlign;"hidden"===i.overflow&&(t.style.textAlign="start"===f?"end":"start"),a({restoreTextAlign:f,testForHeightReduction:!0})}}function c(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(t)})),t}).destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],zn),t},In.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],Mn),t});var Ln=In,Dn=function(){function t(e){v(this,t),this.msg=e}return m(t,[{key:"messageid",get:function(){return this.msg.messageid}},{key:"state",get:function(){return this.msg.state}},{key:"role",get:function(){return this.msg.role}},{key:"type",get:function(){return this.msg.type}},{key:"content",get:function(){return this.msg.content}},{key:"completed",get:function(){return this.msg.completed}},{key:"_origin",get:function(){return this.msg}},{key:"update",value:function(t){t.content||(t.content=""),this.msg.content+=t.content}},{key:"updateCompleted",value:function(t){this.msg.completed=t}}]),t}(),Pn=function(){function t(e){v(this,t),this.data=e}return m(t,[{key:"appid",get:function(){return this.data.appid}},{key:"id",get:function(){return this.data.id}},{key:"type",get:function(){return this.data.type}},{key:"caption",get:function(){return this.data.caption}},{key:"url",get:function(){return this.data.url}},{key:"aiChat",get:function(){return this.data.aiChat}}]),t}(),Hn=function(){function t(e){v(this,t),this.material=e}return m(t,[{key:"id",get:function(){return this.material.id}},{key:"type",get:function(){return this.material.type}},{key:"metadata",get:function(){return this.material.metadata}},{key:"data",get:function(){return this.material.data}}]),t}(),jn=function(t){return t.STYLE_CACHE="ai-chat-style-cache",t.MINIMIZE_STYLY_CHCHE="ai-chat-minimize-style-cache",t.DATA_BASE_NAME="ibiz-chat",t.DATA_TABLE_NAME="history-message",t.DATA_TABLE_KEY_NAME="id",t}(jn||{}),Bn=function(){function t(e){v(this,t),y(this,"messages",$t([])),y(this,"materials",$t([])),y(this,"input",$t("")),y(this,"context",void 0),y(this,"params",void 0),y(this,"appDataEntityId",void 0),y(this,"topicId",void 0),this.opts=e,this.context=e.context,this.params=e.params,this.appDataEntityId=e.appDataEntityId,this.topicId=e.topicId,this.fecthHistory()}var e,n,i,r,a;return m(t,[{key:"fecthHistory",value:(a=d(h().mark((function t(){var e,n=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.topicId){t.next=7;break}return t.next=3,ct.getData(jn.DATA_BASE_NAME,jn.DATA_TABLE_NAME,this.topicId);case 3:if(!((e=t.sent)&&e.data&&e.data.length>0)){t.next=7;break}return e.data.forEach((function(t){var e={messageid:t.messageid,state:t.state,type:t.type,role:t.role,content:t.content,completed:!0};n.addMessage(e)})),t.abrupt("return",!0);case 7:return t.abrupt("return",this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId}));case 8:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"asyncToIndexDB",value:(r=d(h().mark((function t(){var e;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.topicId){t.next=2;break}return t.abrupt("return");case 2:return e={id:this.topicId,data:this.messages.value.map((function(t){return t._origin})),timestamp:(new Date).getTime()},t.next=5,ct.updateData(jn.DATA_BASE_NAME,jn.DATA_TABLE_NAME,e);case 5:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"setInput",value:function(t){this.input.value=t||""}},{key:"addMessage",value:function(t){var e=this.messages.value.find((function(e){return e.messageid===t.messageid}));e?(e.update(t),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new Dn(t)]),this.asyncToIndexDB()}},{key:"completeMessage",value:function(t,e){var n=this.messages.value.find((function(e){return e.messageid===t}));n&&(n.updateCompleted(e),this.messages.value=o(this.messages.value),this.asyncToIndexDB())}},{key:"replaceMessage",value:function(t){var e=this.messages.value.findIndex((function(e){return e.messageid===t.messageid}));-1!==e?(this.messages.value[e]=new Dn(t),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new Dn(t)]),this.asyncToIndexDB()}},{key:"stringlyMaterialResource",value:function(){var t="",e=[];return this.materials.value&&this.materials.value.length>0&&(this.materials.value.forEach((function(t){if("ossfile"===t.type){var n=t.metadata;n.state&&"successed"===n.state&&e.push(t)}else e.push(t)})),this.materials.value=[]),e&&e.length>0&&(t=dt.stringify(e)),t}},{key:"question",value:(i=d(h().mark((function t(e){var n;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n=this.stringlyMaterialResource())?n+=e:n=e,this.addMessage({state:30,messageid:ot(),role:"USER",type:"DEFAULT",content:n}),t.next=5,this.opts.question(this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(t){return"ERROR"!==t.type})).map((function(t){return t._origin})));case 5:this.opts.action&&this.opts.action("question",e);case 6:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"backfill",value:function(t){this.opts.action&&this.opts.action("backfill",t)}},{key:"deleteMessage",value:function(t){var e=this.messages.value.findIndex((function(e){return e.messageid===t.messageid}));-1!==e&&(this.messages.value.splice(e,1),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),this.opts.action&&this.opts.action("deletemsg",t)}},{key:"refreshMessage",value:(n=d(h().mark((function t(e){var n,i,r,a=arguments;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],i=this.messages.value.findIndex((function(t){return t.messageid===e.messageid})),!n){t.next=9;break}return this.messages.value.splice(i+1,this.messages.value.length-i-1),this.messages.value=o(this.messages.value),t.next=7,this.opts.question(this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(t){return"ERROR"!==t.type})).map((function(t){return t._origin})));case 7:t.next=19;break;case 9:if(i!==this.messages.value.length-1){t.next=16;break}return this.messages.value.pop(),this.messages.value=o(this.messages.value),t.next=14,this.opts.question(this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(t){return"ERROR"!==t.type})).map((function(t){return t._origin})));case 14:t.next=19;break;case 16:r=this.messages.value[i-1].content,this.messages.value.splice(i-1,2),this.question(r);case 19:this.asyncToIndexDB(),this.opts.action&&this.opts.action("refreshmsg",e);case 21:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"copyMessage",value:function(t){var e=t.content;at.copy(e),this.opts.action&&this.opts.action("copymsg",t)}},{key:"newDialogue",value:(e=d(h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.messages.value.length=0,!this.topicId){t.next=4;break}return t.next=4,ct.deleteData(jn.DATA_BASE_NAME,jn.DATA_TABLE_NAME,this.topicId);case 4:this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId});case 5:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"addMaterial",value:function(t){var e=this.materials.value.find((function(e){return e.id===t.id}));this.materials.value=e?o(this.materials.value):[].concat(o(this.materials.value),[new Hn(t)])}},{key:"replaceMaterial",value:function(t,e){var n=this.materials.value.findIndex((function(e){return e.id===t}));-1!==n?(this.materials.value[n]=new Hn(e),this.materials.value=o(this.materials.value)):this.materials.value=[].concat(o(this.materials.value),[new Hn(e)])}},{key:"deleteMaterial",value:function(t){var e=this.materials.value.findIndex((function(e){return e.id===t.id}));-1!==e&&(this.materials.value.splice(e,1),this.materials.value=o(this.materials.value))}}]),t}(),Rn=function(){function t(e){v(this,t),y(this,"topics",$t([])),y(this,"activedTopic",$t(null)),y(this,"currentTopicOptions",void 0),this.chat=e}var e,n,i,r;return m(t,[{key:"fetchHistory",value:(r=d(h().mark((function t(e){var n,i,r=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.configService(e.appid,"aitopics",e.type),t.next=3,n.load();case 3:(i=t.sent)&&i.length>0&&i.forEach((function(t){r.topics.value=[].concat(o(r.topics.value),[new Pn(t)])}));case 5:case"end":return t.stop()}}),t)}))),function(t){return r.apply(this,arguments)})},{key:"updateCurrentTopic",value:(i=d(h().mark((function t(e){var n,i,r,a;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.currentTopicOptions=e,n=this.topics.value.findIndex((function(t){return t.id===e.id})),i=new Pn(e),-1!==n?this.topics.value.splice(n,1,new Pn(e)):this.topics.value=[].concat(o(this.topics.value),[new Pn(e)]),r=this.topics.value.map((function(t){return{appid:t.appid,id:t.id,type:t.type,caption:t.caption,url:t.url,aiChat:t.aiChat}})),a=e.configService(e.appid,"aitopics",e.type),t.next=8,null==a?void 0:a.save(r);case 8:this.activedTopic.value=i;case 9:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"removeTopic",value:(n=d(h().mark((function t(e,n,i,r,a){var c,s,l,u,f;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=!0,!e.beforeDelete){t.next=5;break}return t.next=4,e.beforeDelete(n,i,r,a);case 4:s=t.sent;case 5:if(s){t.next=7;break}return t.abrupt("return");case 7:return-1!==(l=this.topics.value.findIndex((function(t){return t.id===r.id})))&&(this.topics.value.splice(l,1),this.topics.value=o(this.topics.value)),u=this.topics.value.map((function(t){return{appid:t.appid,id:t.id,type:t.type,caption:t.caption,url:t.url,aiChat:t.aiChat}})),f=e.configService(e.appid,"aitopics",e.type),t.next=13,null==f?void 0:f.save(u);case 13:return t.next=15,ct.deleteData(jn.DATA_BASE_NAME,jn.DATA_TABLE_NAME,r.id);case 15:this.topics.value.length>0&&r.id===(null===(c=this.activedTopic.value)||void 0===c?void 0:c.id)&&this.handleTopicChange(this.topics.value[0]);case 16:case"end":return t.stop()}}),t,this)}))),function(t,e,i,r,o){return n.apply(this,arguments)})},{key:"handleTopicChange",value:function(t){var e;(null===(e=this.activedTopic.value)||void 0===e?void 0:e.id)!==t.id&&(this.activedTopic.value=t,this.chat.switchAiChatController(t))}},{key:"handleTopicAction",value:(e=d(h().mark((function t(e,n,i){var r,o,a,c,s,l;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.topics.value.find((function(t){return t.id===n.id})),!(this.currentTopicOptions&&r&&r.aiChat)){t.next=7;break}if(c=r.aiChat,s=c.context,l=c.params,"DELETE"!==e){t.next=6;break}return t.next=6,this.removeTopic(this.currentTopicOptions,s,l,r,i);case 6:null===(o=(a=this.currentTopicOptions).action)||void 0===o||o.call(a,e,s,l,n,i);case 7:case"end":return t.stop()}}),t,this)}))),function(t,n,i){return e.apply(this,arguments)})}]),t}(),Fn=m((function t(e){v(this,t),this.aiChat=e})),Un=function(e){t(o,e);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return m(o,[{key:"excuteAction",value:(i=d(h().mark((function t(e,n){var i,r,o;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n||!n.onClick){t.next=5;break}return t.next=3,n.onClick(e,this.aiChat.context,this.aiChat.params);case 3:(i=t.sent)&&i.data&&i.data.length>0&&(r=i.data[0],o={id:r.id,type:r.type,data:r.data||{},metadata:r.metadata||{}},n.id&&Object.assign(o.metadata,{actionId:n.id}),this.aiChat.addMaterial(o));case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})}]),o}(Fn),Vn=function(e){t(o,e);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return m(o,[{key:"excuteAction",value:(i=d(h().mark((function t(e,n){var i,r,o,a,c,s,l,u,f,p,v=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=this.aiChat.opts.uploader,r=i.multiple,o=i.accept,a=i.maxSize,c=i.onSelect,s=i.onUpload,l=i.onSuccess,u=i.onError,f=i.onProgress,p={multiple:r||!0,accept:o||"*/*",maxSize:a||5242880,onSelect:function(t){null==c||c(t),t.length>0&&t.forEach((function(t){var e=v.buildMaterialObject(t);Object.assign(e.metadata,{state:"uploading"}),v.aiChat.addMaterial(e)}))},onUpload:function(){var t=d(h().mark((function t(e,n){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s(e,n,{context:v.aiChat.context,params:v.aiChat.params}));case 1:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),onSuccess:function(t,e){var n={id:t.id,type:"ossfile",data:{id:t.id,name:t.name},metadata:{ext:t.ext,fileext:t.fileext,fileid:t.fileid,filename:t.filename,size:t.size,filesize:t.filesize,state:"successed"}};v.aiChat.replaceMaterial(e.name,n),null==l||l(t,e)},onError:function(t,e){var n=v.buildMaterialObject(e);Object.assign(n.metadata,{state:"failed"}),v.aiChat.replaceMaterial(e.name,n),null==u||u(t,e)},onProgress:function(t,e){null==f||f(t,e)}},new ft(p).openFilePicker();case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})},{key:"buildMaterialObject",value:function(t){return{id:t.name,type:"ossfile",data:{name:t.name,id:t.name},metadata:{size:t.size,type:t.type,lastModified:t.lastModified}}}}]),o}(Fn),Wn=function(){function t(){v(this,t)}return m(t,null,[{key:"getMaterialHelper",value:function(t,e){return"ossfile"===t?new Vn(e):new Un(e)}}]),t}(),qn=function(){function t(){v(this,t),y(this,"container",void 0),y(this,"mode","DEFAULT"),y(this,"isMountedAiTopic",!1),y(this,"backupChatOptions",void 0),y(this,"aiTopic",void 0),y(this,"aiChat",void 0),this.aiTopic=new Rn(this)}var e,n;return m(t,[{key:"initIndexDB",value:(n=d(h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ct.checkTableExists(jn.DATA_BASE_NAME,jn.DATA_TABLE_NAME);case 2:if(t.sent){t.next=6;break}return t.next=6,ct.createTable(jn.DATA_BASE_NAME,jn.DATA_TABLE_NAME,jn.DATA_TABLE_KEY_NAME,!1);case 6:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})},{key:"create",value:(e=d(h().mark((function t(e){var n,i,r,o=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.initIndexDB();case 2:if(this.backupChatOptions=e,this.close(),this.container=document.createElement("div"),this.container.classList.add("ibiz-ai-chat"),document.body.appendChild(this.container),i=e.chatOptions,!e.mode||"TOPIC"!==e.mode){t.next=17;break}if(this.isMountedAiTopic){t.next=13;break}return t.next=12,this.aiTopic.fetchHistory(e.topicOptions);case 12:this.isMountedAiTopic=!0;case 13:return r=e.topicOptions,Object.assign(r,{aiChat:{caption:i.caption,context:i.context,params:i.params,appDataEntityId:i.appDataEntityId,contentToolbarItems:i.contentToolbarItems,footerToolbarItems:i.footerToolbarItems,questionToolbarItems:i.questionToolbarItems}}),t.next=17,this.aiTopic.updateCurrentTopic(r);case 17:return Object.assign(i,{topicId:null===(n=r)||void 0===n?void 0:n.id}),this.aiChat=new Bn(i),K(O(ii,{aiTopic:this.aiTopic,aiChat:this.aiChat,mode:e.mode?e.mode:"DEFAULT",containerOptions:e.containerOptions,caption:e.mode&&"TOPIC"===e.mode?"AI助手":i.caption,contentToolbarItems:i.contentToolbarItems,footerToolbarItems:i.footerToolbarItems,questionToolbarItems:i.questionToolbarItems,close:function(){o.close(),i.closed&&i.closed(i.context,i.params)},fullscreen:function(t){i.fullscreen&&i.fullscreen(t,i.context,i.params)},minimize:function(t){i.minimize&&i.minimize(t,i.context,i.params)}}),this.container),t.abrupt("return",this.aiChat);case 21:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"switchAiChatController",value:function(t){var e,n,i,r=this,o=u({},this.backupChatOptions.chatOptions);(t.aiChat&&Object.assign(o,{caption:t.aiChat.caption,context:t.aiChat.context,params:t.aiChat.params,contentToolbarItems:t.aiChat.contentToolbarItems,footerToolbarItems:t.aiChat.footerToolbarItems,questionToolbarItems:t.aiChat.questionToolbarItems,appDataEntityId:t.aiChat.appDataEntityId,topicId:t.id}),this.aiChat=new Bn(o),this.container)&&(K(null,this.container),K(O(ii,{aiTopic:this.aiTopic,aiChat:this.aiChat,mode:null!==(e=this.backupChatOptions)&&void 0!==e&&e.mode?this.backupChatOptions.mode:"DEFAULT",containerOptions:null===(n=this.backupChatOptions)||void 0===n?void 0:n.containerOptions,caption:null!==(i=this.backupChatOptions)&&void 0!==i&&i.mode&&"TOPIC"===this.backupChatOptions.mode?"AI助手":o.caption,contentToolbarItems:o.contentToolbarItems,footerToolbarItems:o.footerToolbarItems,questionToolbarItems:o.questionToolbarItems,close:function(){r.close(),o.closed&&o.closed(o.context,o.params)},fullscreen:function(t){o.fullscreen&&o.fullscreen(t,o.context,o.params)},minimize:function(t){o.minimize&&o.minimize(t,o.context,o.params)}}),this.container))}},{key:"hidden",value:function(){this.container&&(this.container.style.display="none")}},{key:"show",value:function(){this.container&&(this.container.style.display="flex")}},{key:"close",value:function(){this.container&&(K(null,this.container),this.container.remove(),this.container=void 0)}}]),t}(),Yn=(e("chat",new qn),new tt("chat-input-material")),$n=function(t){var e=t.controller.materials;return he("div",{className:Yn.b(),children:e.value.map((function(e){return he(Ue,{material:e,disabled:!1,controller:t.controller},e.id)}))})},Xn=function(t){var e=t.children,n=t.actions,i=t.content,r=t.position,o=void 0===r?"bottom":r,c=t.isOpen,s=t.onToggleOpen,l=t.onAction,h=new tt("pop"),f=function(t){var e=lt.context[t.__c],n=kt(st++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(lt)),e.props.value):t.__}(ni),d=a(xt(c||!1),2),p=d[0],v=d[1],_=Et(null),m=Et(null);Ct((function(){void 0!==c&&v(c)}),[c]),Ct((function(){return m.current||(m.current=document.createElement("div"),m.current.className=h.b("content-container"),document.body.appendChild(m.current)),function(){m.current&&document.body.removeChild(m.current)}}),[]),Ct((function(){var t=function(t){!_.current||_.current.contains(t.target)||t.target.closest(".".concat(h.b("content")))||t.target.closest(".ibiz-quick-edit")||t.target.closest(".ibiz-picker__transfer")||(v(!1),null==s||s(!1))};return p&&document.addEventListener("mousedown",t),function(){document.removeEventListener("mousedown",t)}}),[p,s]);return he("span",{className:"".concat(h.b("trigger-container")),children:[he("span",{className:"".concat(h.b("trigger-element")),ref:_,onClick:function(t){t.stopPropagation();var e=!p;v(e),null==s||s(e)},children:e}),p&&m.current&&vn(he("div",{className:"".concat(h.b("content")," pop-").concat(o),style:function(){if(!_.current)return{};var t=_.current.getBoundingClientRect(),e={position:"absolute",zIndex:f.zIndex+1},n={bottom:{top:t.bottom+window.scrollY,left:t.left+window.scrollX},top:{bottom:window.innerHeight-t.top+window.scrollY,left:t.left+window.scrollX},left:{top:t.top+window.scrollY,right:window.innerWidth-t.left+window.scrollX},right:{top:t.top+window.scrollY,left:t.right+window.scrollX},"top-left":{bottom:window.innerHeight-t.top+window.scrollY,right:window.innerWidth-t.left+window.scrollX}};return u(u({},e),n[o])}(),children:i||(null==n?void 0:n.map((function(t){return he("div",{className:h.b("content-item"),onMouseDown:function(e){e.stopPropagation(),null==l||l(t.id,e)},children:[t.icon&&he("img",{className:h.b("content-item__icon"),src:t.icon,alt:t.caption}),he("div",{className:h.b("content-item__caption"),children:t.caption})]},t.id)})))}),m.current)]})},Gn=new tt("chat-input"),Jn=window.SpeechRecognition||window.webkitSpeechRecognition,Zn=function(t){var e,n=a(xt(!1),2),i=n[0],r=n[1],o=Et(null),c=t.controller.input,s=se(!1),l=se(!1),u=Et();Jn&&!u.current&&(u.current=new Jn,u.current.onstart=function(){l.value=!0},u.current.onend=function(){l.value=!1},u.current.onresult=function(t){var e,n=null===(e=t.results)||void 0===e||null===(e=e[0])||void 0===e||null===(e=e[0])||void 0===e?void 0:e.transcript;n&&(c.value="".concat(c.value).concat(n))});var f=St((function(t){c.value=t.target.value}),[c]),p=le((function(){return c.value.length<=0||!0===s.value}));Ct((function(){return o.current&&Ln(o.current),function(){o.current&&Ln.destroy(o.current)}}),[o]);var v=St(d(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s.value=!0,e.prev=1,e.next=4,t.controller.question(c.value);case 4:c.value="",e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),console.error(e.t0);case 10:return e.prev=10,s.value=!1,e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[1,7,10,13]])}))),[c,s]),_=function(){var e=d(h().mark((function e(n){var i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Wn.getMaterialHelper("ossfile",t.controller),e.next=3,i.excuteAction(n);case 3:r(!1);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=d(h().mark((function e(n,i){var o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=Wn.getMaterialHelper("common",t.controller),e.next=3,o.excuteAction(n,i);case 3:r(!1);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return he("div",{className:Gn.b("wrapper"),children:[he("div",{className:Gn.b("material-wrapper"),children:he($n,{controller:t.controller})}),he("div",{className:Gn.b("main-wrapper"),children:[he("textarea",{className:Gn.e("textarea"),type:"text",rows:6,autoCorrect:"off",autoCapitalize:"off",autoComplete:"off",value:c,onInput:f,onKeyDown:function(t){"Enter"===t.code&&(t.stopPropagation(),!1===t.shiftKey&&v())},ref:o,disabled:s}),he("div",{className:Gn.b("action-wrapper"),children:[he("div",{className:"".concat(Gn.be("action-wrapper","action-item")),children:he(Xn,{content:he("div",{className:Gn.b("pop-actions"),children:[he("div",{className:Gn.b("pop-action-item"),onClick:function(t){_(t)},children:[he("span",{className:Gn.b("pop-action-item-icon"),children:he(ze,{})}),he("span",{className:Gn.b("pop-action-item-title"),children:"文件资料"})]}),null===(e=t.questionToolbarItems)||void 0===e?void 0:e.map((function(t){return he("div",{className:Gn.b("pop-action-item"),onClick:function(e){m(e,t)},children:[he("span",{className:Gn.b("pop-action-item-icon"),children:"function"==typeof t.icon?t.icon(O):t.icon}),he("span",{className:Gn.b("pop-action-item-title"),children:"function"==typeof t.label?t.label(O):t.label})]},t.id)}))]}),position:"top-left",isOpen:i,onToggleOpen:r,children:he(Oe,{})})}),he("div",{title:l.value?"语音输入中...":"语音输入",className:"".concat(Gn.be("action-wrapper","action-item")),onClick:function(){u.current&&!l.value&&u.current.start()},children:l.value?he(Ce,{}):he(xe,{})}),he("div",{title:s.value?"思考中...":"发送消息",className:"".concat(Gn.be("action-wrapper","action-item")," ").concat(Gn.is("disabled",p.value)," ").concat(Gn.is("loading",s.value)),onClick:v,disabled:p,children:he(pe,{})})]})]})]})},Kn=new tt("chat-topic-item"),Qn=function(t){var e=t.current,n=t.active,i=t.topic,r=t.onClick,o=t.onAction,c=a(xt(!1),2),s=c[0],l=c[1];return he("div",{className:"".concat(Kn.b()," ").concat(Kn.is("active",n)),onClick:r.bind(void 0),children:[he("div",{className:Kn.b("caption"),title:i.caption,children:i.caption}),he("div",{className:Kn.b("icon"),children:[he("span",{className:Kn.be("icon","item"),title:"跳转主视图",onClick:function(t){t.stopPropagation(),o("LINK",t)}.bind(void 0),children:he(Ne,{className:Kn.b("link-icon")})}),e?null:he(Xn,{actions:[{id:"DELETE",caption:"删除话题"}],position:"bottom",isOpen:s,onToggleOpen:l,onAction:function(t,e){"DELETE"===t&&o("DELETE",e),l(!1)}.bind(void 0),children:he("span",{className:Kn.be("icon","item"),title:"更多",children:he(Ee,{className:Kn.b("more-icon")})})})]})]})},ti=new tt("chat-topics"),ei=function(t){var e=t.controller.topics;return he("div",{className:ti.b(),children:e.value.map((function(e){var n,i;return he(Qn,{topic:e,current:e.id===(null===(n=t.controller.currentTopicOptions)||void 0===n?void 0:n.id),active:e.id===(null===(i=t.controller.activedTopic.value)||void 0===i?void 0:i.id),onClick:function(){return function(e){t.controller.handleTopicChange(e)}(e)},onAction:function(n,i){return function(e,n,i){t.controller.handleTopicAction(e,n,i)}(n,e,i)}},e.id)}))})},ni=function(t,e){var n={__c:e="__cC"+x++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,i;return this.getChildContext||(n=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,P(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}({zIndex:10}),ii=function(e){t(o,e);var r=n(o);function o(t){var e,n;return v(this,o),y(i(n=r.call(this,t)),"ns",new tt("chat-container")),y(i(n),"containerRef",{current:null}),y(i(n),"dragHandle",{current:null}),y(i(n),"minimizeRef",{current:null}),y(i(n),"data",{x:window.innerWidth-600,y:0,width:600,height:window.innerHeight,minWidth:300,minHeight:300}),y(i(n),"minimizeData",{x:window.innerWidth-86,y:window.innerHeight-86}),y(i(n),"disabled",!1),y(i(n),"isDragging",!1),y(i(n),"containerContext",{zIndex:(null===(e=n.props.containerOptions)||void 0===e?void 0:e.zIndex)||10}),n.state={isFullScreen:!1,isMinimize:!1},n}return m(o,[{key:"calcWindowStyle",value:function(){var t;return{left:"".concat(this.data.x,"px"),top:"".concat(this.data.y,"px"),height:"".concat(this.data.height,"px"),width:"".concat(this.data.width,"px"),"z-index":(null===(t=this.props.containerOptions)||void 0===t||null===(t=t.zIndex)||void 0===t?void 0:t.toString())||"10"}}},{key:"calcMinimizeStyle",value:function(){return{left:"".concat(this.minimizeData.x,"px"),top:"".concat(this.minimizeData.y,"px"),"z-index":"99999"}}},{key:"setStyle",value:function(){Object.assign(this.containerRef.current.style,this.calcWindowStyle()),Object.assign(this.minimizeRef.current.style,this.calcMinimizeStyle())}},{key:"componentDidMount",value:function(){var t=this,e=localStorage.getItem(jn.MINIMIZE_STYLY_CHCHE);e&&(this.minimizeData=JSON.parse(e));var n=localStorage.getItem(jn.STYLE_CACHE);n&&(this.data=JSON.parse(n),this.data.x>window.innerWidth&&(this.data.x=window.innerWidth-100),this.data.y>window.innerHeight&&(this.data.y=window.innerHeight-100)),this.setStyle();var i=this.data;this.minimizeRef.current.onmousedown=function(e){document.body.style.userSelect="none";var n=e.clientX-t.minimizeRef.current.offsetLeft,i=e.clientY-t.minimizeRef.current.offsetTop,r=Date.now(),o=function(e){t.minimizeData.x=e.clientX-n,t.minimizeData.y=e.clientY-i,t.setStyle()};document.addEventListener("mousemove",o),document.addEventListener("mouseup",(function e(){var n=Date.now();t.isDragging=n-r>300,document.body.style.userSelect="",document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",e)}))},this.dragHandle.current.onmousedown=function(e){if(!t.disabled&&!t.state.isFullScreen){document.body.style.userSelect="none";var n=e.clientX-t.containerRef.current.offsetLeft,r=e.clientY-t.containerRef.current.offsetTop,o=function(e){i.x=e.clientX-n,i.y=e.clientY-r,t.setStyle()};document.addEventListener("mousemove",o),document.addEventListener("mouseup",(function t(){document.body.style.userSelect="",document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",t)}))}},c(this.containerRef.current).resizable({edges:{top:!0,right:!0,bottom:!0,left:!0},margin:6,modifiers:[c.modifiers.restrictEdges({outer:document.body}),c.modifiers.restrictSize({min:{width:i.minWidth,height:i.minHeight}})],inertia:!0,listeners:{move:function(e){t.state.isFullScreen||(i.x=e.rect.left,i.y=e.rect.top,i.width=e.rect.width,i.height=e.rect.height,t.setStyle())},start:function(){t.disabled=!0,document.body.style.userSelect="none"},end:function(){t.disabled=!1,document.body.style.userSelect=""}}})}},{key:"componentWillUnmount",value:function(){localStorage.setItem(jn.STYLE_CACHE,JSON.stringify(this.data)),localStorage.setItem(jn.MINIMIZE_STYLY_CHCHE,JSON.stringify(this.minimizeData))}},{key:"close",value:function(){this.props.close()}},{key:"fullScreen",value:function(){var t=this.containerRef.current;t&&(t.requestFullscreen(),this.setState({isFullScreen:!0}),this.props.fullscreen(!0))}},{key:"closeFullScreen",value:function(){var t;this.state.isFullScreen&&(null===(t=document)||void 0===t||t.exitFullscreen(),this.setState({isFullScreen:!1}),this.props.fullscreen(!1),this.setStyle())}},{key:"minimize",value:function(){this.closeFullScreen(),this.setState({isMinimize:!0}),this.props.minimize(!0)}},{key:"exitMinimize",value:function(){this.isDragging||(this.setState({isMinimize:!1}),this.props.minimize(!1))}},{key:"stopPropagation",value:function(t){t.stopPropagation()}},{key:"render",value:function(){return he(ni.Provider,{value:this.containerContext,children:he("div",{className:"".concat(this.ns.b()),children:[he("div",{className:"".concat(this.ns.e("dialog")," ").concat(this.ns.is("full-screen",this.state.isFullScreen)," ").concat(this.ns.is("hidden",this.state.isMinimize)),ref:this.containerRef,children:[he("div",{ref:this.dragHandle,className:this.ns.b("header"),children:[he("div",{className:this.ns.b("header-caption"),children:this.props.caption||"AI助手"}),he("div",{className:this.ns.b("header-action-wrapper"),children:[he("div",{title:"最小化",className:"".concat(this.ns.be("header-action-wrapper","action-item")," ").concat(this.ns.be("header-action-wrapper","minimize")),onMouseDown:this.stopPropagation.bind(this),onClick:this.minimize.bind(this),children:he(be,{})}),this.state.isFullScreen?he("div",{title:"退出全屏",className:"".concat(this.ns.be("header-action-wrapper","action-item")," ").concat(this.ns.be("header-action-wrapper","close-full-screen")),onMouseDown:this.stopPropagation.bind(this),onClick:this.closeFullScreen.bind(this),children:he(ge,{})}):he("div",{title:"全屏",className:"".concat(this.ns.be("header-action-wrapper","action-item")," ").concat(this.ns.be("header-action-wrapper","full-screen")),onMouseDown:this.stopPropagation.bind(this),onClick:this.fullScreen.bind(this),children:he(ye,{})}),he("div",{title:"关闭",className:"".concat(this.ns.be("header-action-wrapper","action-item")," ").concat(this.ns.be("header-action-wrapper","action-close")),onMouseDown:this.stopPropagation.bind(this),onClick:this.close.bind(this),children:he(fe,{})})]})]}),"TOPIC"===this.props.mode?he("div",{className:"".concat(this.ns.b("main")),children:[he("div",{className:"".concat(this.ns.be("main","left")),children:he(ei,{controller:this.props.aiTopic})}),he("div",{className:"".concat(this.ns.be("main","right")),children:[he("div",{className:this.ns.b("content"),children:he(tn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),he(Ke,{data:this.props.aiTopic.activedTopic.value,type:"footer",className:this.ns.e("toolbar"),controller:this.props.aiChat,items:this.props.footerToolbarItems}),he("div",{className:this.ns.b("footer"),children:he(Zn,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}):he("div",{className:"".concat(this.ns.be("main","default")),children:[he("div",{className:this.ns.b("content"),children:he(tn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),he(Ke,{data:this.props.aiTopic.activedTopic.value,type:"footer",className:this.ns.e("toolbar"),controller:this.props.aiChat,items:this.props.footerToolbarItems}),he("div",{className:this.ns.b("footer"),children:he(Zn,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}),he("div",{title:"AI助手",ref:this.minimizeRef,className:"".concat(this.ns.e("minimize")," ").concat(this.ns.is("hidden",!this.state.isMinimize)),onClick:this.exitMinimize.bind(this),children:he(we,{})})]})})}}]),o}(I);e("ChatContainer",ii)}}}))}();
diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.11/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.11/polyfills.legacy.js
new file mode 100644
index 0000000000000000000000000000000000000000..f545b2e551499aaca64e7336993fe8c8511e0a9a
--- /dev/null
+++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.11/polyfills.legacy.js
@@ -0,0 +1 @@
+!function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=function(t){return t&&t.Math===Math&&t},e=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),n={},o=function(t){try{return!!t()}catch(r){return!0}},i=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),c=u,a=Function.prototype.call,f=c?a.bind(a):function(){return a.apply(a,arguments)},s={},l={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,v=h&&!l.call({1:2},1);s.f=v?function(t){var r=h(this,t);return!!r&&r.enumerable}:l;var p,d,g=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},y=u,m=Function.prototype,b=m.call,w=y&&m.bind.bind(b,b),S=y?w:function(t){return function(){return b.apply(t,arguments)}},E=S,x=E({}.toString),O=E("".slice),j=function(t){return O(x(t),8,-1)},I=o,T=j,R=Object,P=S("".split),A=I((function(){return!R("z").propertyIsEnumerable(0)}))?function(t){return"String"===T(t)?P(t,""):R(t)}:R,k=function(t){return null==t},C=k,N=TypeError,L=function(t){if(C(t))throw new N("Can't call method on "+t);return t},F=A,M=L,_=function(t){return F(M(t))},D="object"==typeof document&&document.all,U={all:D,IS_HTMLDDA:void 0===D&&void 0!==D},$=U.all,G=U.IS_HTMLDDA?function(t){return"function"==typeof t||t===$}:function(t){return"function"==typeof t},z=G,W=U.all,B=U.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:z(t)||t===W}:function(t){return"object"==typeof t?null!==t:z(t)},H=e,V=G,J=function(t,r){return arguments.length<2?(e=H[t],V(e)?e:void 0):H[t]&&H[t][r];var e},q=S({}.isPrototypeOf),K="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Y=e,X=K,Q=Y.process,Z=Y.Deno,tt=Q&&Q.versions||Z&&Z.version,rt=tt&&tt.v8;rt&&(d=(p=rt.split("."))[0]>0&&p[0]<4?1:+(p[0]+p[1])),!d&&X&&(!(p=X.match(/Edge\/(\d+)/))||p[1]>=74)&&(p=X.match(/Chrome\/(\d+)/))&&(d=+p[1]);var et=d,nt=et,ot=o,it=e.String,ut=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol("symbol detection");return!it(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&nt&&nt<41})),ct=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=J,ft=G,st=q,lt=Object,ht=ct?function(t){return"symbol"==typeof t}:function(t){var r=at("Symbol");return ft(r)&&st(r.prototype,lt(t))},vt=String,pt=function(t){try{return vt(t)}catch(r){return"Object"}},dt=G,gt=pt,yt=TypeError,mt=function(t){if(dt(t))return t;throw new yt(gt(t)+" is not a function")},bt=mt,wt=k,St=function(t,r){var e=t[r];return wt(e)?void 0:bt(e)},Et=f,xt=G,Ot=B,jt=TypeError,It=function(t,r){var e,n;if("string"===r&&xt(e=t.toString)&&!Ot(n=Et(e,t)))return n;if(xt(e=t.valueOf)&&!Ot(n=Et(e,t)))return n;if("string"!==r&&xt(e=t.toString)&&!Ot(n=Et(e,t)))return n;throw new jt("Can't convert object to primitive value")},Tt={exports:{}},Rt=e,Pt=Object.defineProperty,At=function(t,r){try{Pt(Rt,t,{value:r,configurable:!0,writable:!0})}catch(e){Rt[t]=r}return r},kt=At,Ct="__core-js_shared__",Nt=e[Ct]||kt(Ct,{}),Lt=Nt;(Tt.exports=function(t,r){return Lt[t]||(Lt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.33.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ft=Tt.exports,Mt=L,_t=Object,Dt=function(t){return _t(Mt(t))},Ut=Dt,$t=S({}.hasOwnProperty),Gt=Object.hasOwn||function(t,r){return $t(Ut(t),r)},zt=S,Wt=0,Bt=Math.random(),Ht=zt(1..toString),Vt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Ht(++Wt+Bt,36)},Jt=Ft,qt=Gt,Kt=Vt,Yt=ut,Xt=ct,Qt=e.Symbol,Zt=Jt("wks"),tr=Xt?Qt.for||Qt:Qt&&Qt.withoutSetter||Kt,rr=function(t){return qt(Zt,t)||(Zt[t]=Yt&&qt(Qt,t)?Qt[t]:tr("Symbol."+t)),Zt[t]},er=f,nr=B,or=ht,ir=St,ur=It,cr=TypeError,ar=rr("toPrimitive"),fr=function(t,r){if(!nr(t)||or(t))return t;var e,n=ir(t,ar);if(n){if(void 0===r&&(r="default"),e=er(n,t,r),!nr(e)||or(e))return e;throw new cr("Can't convert object to primitive value")}return void 0===r&&(r="number"),ur(t,r)},sr=fr,lr=ht,hr=function(t){var r=sr(t,"string");return lr(r)?r:r+""},vr=B,pr=e.document,dr=vr(pr)&&vr(pr.createElement),gr=function(t){return dr?pr.createElement(t):{}},yr=gr,mr=!i&&!o((function(){return 7!==Object.defineProperty(yr("div"),"a",{get:function(){return 7}}).a})),br=i,wr=f,Sr=s,Er=g,xr=_,Or=hr,jr=Gt,Ir=mr,Tr=Object.getOwnPropertyDescriptor;n.f=br?Tr:function(t,r){if(t=xr(t),r=Or(r),Ir)try{return Tr(t,r)}catch(e){}if(jr(t,r))return Er(!wr(Sr.f,t,r),t[r])};var Rr={},Pr=i&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ar=B,kr=String,Cr=TypeError,Nr=function(t){if(Ar(t))return t;throw new Cr(kr(t)+" is not an object")},Lr=i,Fr=mr,Mr=Pr,_r=Nr,Dr=hr,Ur=TypeError,$r=Object.defineProperty,Gr=Object.getOwnPropertyDescriptor,zr="enumerable",Wr="configurable",Br="writable";Rr.f=Lr?Mr?function(t,r,e){if(_r(t),r=Dr(r),_r(e),"function"==typeof t&&"prototype"===r&&"value"in e&&Br in e&&!e[Br]){var n=Gr(t,r);n&&n[Br]&&(t[r]=e.value,e={configurable:Wr in e?e[Wr]:n[Wr],enumerable:zr in e?e[zr]:n[zr],writable:!1})}return $r(t,r,e)}:$r:function(t,r,e){if(_r(t),r=Dr(r),_r(e),Fr)try{return $r(t,r,e)}catch(n){}if("get"in e||"set"in e)throw new Ur("Accessors not supported");return"value"in e&&(t[r]=e.value),t};var Hr=Rr,Vr=g,Jr=i?function(t,r,e){return Hr.f(t,r,Vr(1,e))}:function(t,r,e){return t[r]=e,t},qr={exports:{}},Kr=i,Yr=Gt,Xr=Function.prototype,Qr=Kr&&Object.getOwnPropertyDescriptor,Zr=Yr(Xr,"name"),te={EXISTS:Zr,PROPER:Zr&&"something"===function(){}.name,CONFIGURABLE:Zr&&(!Kr||Kr&&Qr(Xr,"name").configurable)},re=G,ee=Nt,ne=S(Function.toString);re(ee.inspectSource)||(ee.inspectSource=function(t){return ne(t)});var oe,ie,ue,ce=ee.inspectSource,ae=G,fe=e.WeakMap,se=ae(fe)&&/native code/.test(String(fe)),le=Vt,he=Ft("keys"),ve=function(t){return he[t]||(he[t]=le(t))},pe={},de=se,ge=e,ye=B,me=Jr,be=Gt,we=Nt,Se=ve,Ee=pe,xe="Object already initialized",Oe=ge.TypeError,je=ge.WeakMap;if(de||we.state){var Ie=we.state||(we.state=new je);Ie.get=Ie.get,Ie.has=Ie.has,Ie.set=Ie.set,oe=function(t,r){if(Ie.has(t))throw new Oe(xe);return r.facade=t,Ie.set(t,r),r},ie=function(t){return Ie.get(t)||{}},ue=function(t){return Ie.has(t)}}else{var Te=Se("state");Ee[Te]=!0,oe=function(t,r){if(be(t,Te))throw new Oe(xe);return r.facade=t,me(t,Te,r),r},ie=function(t){return be(t,Te)?t[Te]:{}},ue=function(t){return be(t,Te)}}var Re={set:oe,get:ie,has:ue,enforce:function(t){return ue(t)?ie(t):oe(t,{})},getterFor:function(t){return function(r){var e;if(!ye(r)||(e=ie(r)).type!==t)throw new Oe("Incompatible receiver, "+t+" required");return e}}},Pe=S,Ae=o,ke=G,Ce=Gt,Ne=i,Le=te.CONFIGURABLE,Fe=ce,Me=Re.enforce,_e=Re.get,De=String,Ue=Object.defineProperty,$e=Pe("".slice),Ge=Pe("".replace),ze=Pe([].join),We=Ne&&!Ae((function(){return 8!==Ue((function(){}),"length",{value:8}).length})),Be=String(String).split("String"),He=qr.exports=function(t,r,e){"Symbol("===$e(De(r),0,7)&&(r="["+Ge(De(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!Ce(t,"name")||Le&&t.name!==r)&&(Ne?Ue(t,"name",{value:r,configurable:!0}):t.name=r),We&&e&&Ce(e,"arity")&&t.length!==e.arity&&Ue(t,"length",{value:e.arity});try{e&&Ce(e,"constructor")&&e.constructor?Ne&&Ue(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=Me(t);return Ce(n,"source")||(n.source=ze(Be,"string"==typeof r?r:"")),t};Function.prototype.toString=He((function(){return ke(this)&&_e(this).source||Fe(this)}),"toString");var Ve=qr.exports,Je=G,qe=Rr,Ke=Ve,Ye=At,Xe=function(t,r,e,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:r;if(Je(e)&&Ke(e,i,n),n.global)o?t[r]=e:Ye(r,e);else{try{n.unsafe?t[r]&&(o=!0):delete t[r]}catch(u){}o?t[r]=e:qe.f(t,r,{value:e,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},Qe={},Ze=Math.ceil,tn=Math.floor,rn=Math.trunc||function(t){var r=+t;return(r>0?tn:Ze)(r)},en=function(t){var r=+t;return r!=r||0===r?0:rn(r)},nn=en,on=Math.max,un=Math.min,cn=function(t,r){var e=nn(t);return e<0?on(e+r,0):un(e,r)},an=en,fn=Math.min,sn=function(t){return t>0?fn(an(t),9007199254740991):0},ln=sn,hn=function(t){return ln(t.length)},vn=_,pn=cn,dn=hn,gn=function(t){return function(r,e,n){var o,i=vn(r),u=dn(i),c=pn(n,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},yn={includes:gn(!0),indexOf:gn(!1)},mn=Gt,bn=_,wn=yn.indexOf,Sn=pe,En=S([].push),xn=function(t,r){var e,n=bn(t),o=0,i=[];for(e in n)!mn(Sn,e)&&mn(n,e)&&En(i,e);for(;r.length>o;)mn(n,e=r[o++])&&(~wn(i,e)||En(i,e));return i},On=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jn=xn,In=On.concat("length","prototype");Qe.f=Object.getOwnPropertyNames||function(t){return jn(t,In)};var Tn={};Tn.f=Object.getOwnPropertySymbols;var Rn=J,Pn=Qe,An=Tn,kn=Nr,Cn=S([].concat),Nn=Rn("Reflect","ownKeys")||function(t){var r=Pn.f(kn(t)),e=An.f;return e?Cn(r,e(t)):r},Ln=Gt,Fn=Nn,Mn=n,_n=Rr,Dn=function(t,r,e){for(var n=Fn(r),o=_n.f,i=Mn.f,u=0;u9007199254740991)throw fo("Maximum allowed index exceeded");return t},lo=Dt,ho=hn,vo=ao,po=so;ro({target:"Array",proto:!0,arity:1,forced:o((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var r=lo(this),e=ho(r),n=arguments.length;po(e+n);for(var o=0;o0;)t[n]=t[--n];n!==i++&&(t[n]=e)}return t},Ho=function(t,r,e,n){for(var o=r.length,i=e.length,u=0,c=0;u3)){if(li)return!0;if(vi)return vi<603;var t,r,e,n,o="";for(t=65;t<76;t++){switch(r=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(n=0;n<47;n++)pi.push({k:r+n,v:e})}for(pi.sort((function(t,r){return r.v-t.v})),n=0;nui(e)?1:-1}}(t)),e=oi(o),n=0;nu;)Gi.f(t,e=o[u++],n[e]);return t};var Hi,Vi=J("document","documentElement"),Ji=Nr,qi=Fi,Ki=On,Yi=pe,Xi=Vi,Qi=gr,Zi="prototype",tu="script",ru=ve("IE_PROTO"),eu=function(){},nu=function(t){return"<"+tu+">"+t+""+tu+">"},ou=function(t){t.write(nu("")),t.close();var r=t.parentWindow.Object;return t=null,r},iu=function(){try{Hi=new ActiveXObject("htmlfile")}catch(o){}var t,r,e;iu="undefined"!=typeof document?document.domain&&Hi?ou(Hi):(r=Qi("iframe"),e="java"+tu+":",r.style.display="none",Xi.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(nu("document.F=Object")),t.close(),t.F):ou(Hi);for(var n=Ki.length;n--;)delete iu[Zi][Ki[n]];return iu()};Yi[ru]=!0;var uu,cu,au,fu=Object.create||function(t,r){var e;return null!==t?(eu[Zi]=Ji(t),e=new eu,eu[Zi]=null,e[ru]=t):e=iu(),void 0===r?e:qi.f(e,r)},su=o,lu=G,hu=B,vu=Li,pu=Xe,du=rr("iterator"),gu=!1;[].keys&&("next"in(au=[].keys())?(cu=vu(vu(au)))!==Object.prototype&&(uu=cu):gu=!0);var yu=!hu(uu)||su((function(){var t={};return uu[du].call(t)!==t}));yu&&(uu={}),lu(uu[du])||pu(uu,du,(function(){return this}));var mu={IteratorPrototype:uu,BUGGY_SAFARI_ITERATORS:gu},bu=ro,wu=e,Su=ji,Eu=G,xu=Li,Ou=Jr,ju=o,Iu=Gt,Tu=mu.IteratorPrototype,Ru=rr("toStringTag"),Pu=TypeError,Au=wu.Iterator,ku=!Eu(Au)||Au.prototype!==Tu||!ju((function(){Au({})})),Cu=function(){if(Su(this,Tu),xu(this)===Tu)throw new Pu("Abstract class Iterator not directly constructable")};Iu(Tu,Ru)||Ou(Tu,Ru,"Iterator"),!ku&&Iu(Tu,"constructor")&&Tu.constructor!==Object||Ou(Tu,"constructor",Cu),Cu.prototype=Tu,bu({global:!0,constructor:!0,forced:ku},{Iterator:Cu});var Nu=j,Lu=S,Fu=function(t){if("Function"===Nu(t))return Lu(t)},Mu=mt,_u=u,Du=Fu(Fu.bind),Uu=function(t,r){return Mu(t),void 0===r?t:_u?Du(t,r):function(){return t.apply(r,arguments)}},$u={},Gu=$u,zu=rr("iterator"),Wu=Array.prototype,Bu=function(t){return void 0!==t&&(Gu.Array===t||Wu[zu]===t)},Hu=To,Vu=St,Ju=k,qu=$u,Ku=rr("iterator"),Yu=function(t){if(!Ju(t))return Vu(t,Ku)||Vu(t,"@@iterator")||qu[Hu(t)]},Xu=f,Qu=mt,Zu=Nr,tc=pt,rc=Yu,ec=TypeError,nc=function(t,r){var e=arguments.length<2?rc(t):r;if(Qu(e))return Zu(Xu(e,t));throw new ec(tc(t)+" is not iterable")},oc=f,ic=Nr,uc=St,cc=function(t,r,e){var n,o;ic(t);try{if(!(n=uc(t,"return"))){if("throw"===r)throw e;return e}n=oc(n,t)}catch(i){o=!0,n=i}if("throw"===r)throw e;if(o)throw n;return ic(n),e},ac=Uu,fc=f,sc=Nr,lc=pt,hc=Bu,vc=hn,pc=q,dc=nc,gc=Yu,yc=cc,mc=TypeError,bc=function(t,r){this.stopped=t,this.result=r},wc=bc.prototype,Sc=function(t,r,e){var n,o,i,u,c,a,f,s=e&&e.that,l=!(!e||!e.AS_ENTRIES),h=!(!e||!e.IS_RECORD),v=!(!e||!e.IS_ITERATOR),p=!(!e||!e.INTERRUPTED),d=ac(r,s),g=function(t){return n&&yc(n,"normal",t),new bc(!0,t)},y=function(t){return l?(sc(t),p?d(t[0],t[1],g):d(t[0],t[1])):p?d(t,g):d(t)};if(h)n=t.iterator;else if(v)n=t;else{if(!(o=gc(t)))throw new mc(lc(t)+" is not iterable");if(hc(o)){for(i=0,u=vc(t);u>i;i++)if((c=y(t[i]))&&pc(wc,c))return c;return new bc(!1)}n=dc(t,o)}for(a=h?t.next:n.next;!(f=fc(a,n)).done;){try{c=y(f.value)}catch(m){yc(n,"throw",m)}if("object"==typeof c&&c&&pc(wc,c))return c}return new bc(!1)},Ec=function(t){return{iterator:t,next:t.next,done:!1}},xc=Sc,Oc=mt,jc=Nr,Ic=Ec;ro({target:"Iterator",proto:!0,real:!0},{some:function(t){jc(this),Oc(t);var r=Ic(this),e=0;return xc(r,(function(r,n){if(t(r,e++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var Tc,Rc,Pc=Nr,Ac=function(){var t=Pc(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},kc=o,Cc=e.RegExp,Nc=kc((function(){var t=Cc("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),Lc=Nc||kc((function(){return!Cc("a","y").sticky})),Fc=Nc||kc((function(){var t=Cc("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),Mc={BROKEN_CARET:Fc,MISSED_STICKY:Lc,UNSUPPORTED_Y:Nc},_c=o,Dc=e.RegExp,Uc=_c((function(){var t=Dc(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),$c=o,Gc=e.RegExp,zc=$c((function(){var t=Gc("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})),Wc=f,Bc=S,Hc=Ao,Vc=Ac,Jc=Mc,qc=fu,Kc=Re.get,Yc=Uc,Xc=zc,Qc=Ft("native-string-replace",String.prototype.replace),Zc=RegExp.prototype.exec,ta=Zc,ra=Bc("".charAt),ea=Bc("".indexOf),na=Bc("".replace),oa=Bc("".slice),ia=(Rc=/b*/g,Wc(Zc,Tc=/a/,"a"),Wc(Zc,Rc,"a"),0!==Tc.lastIndex||0!==Rc.lastIndex),ua=Jc.BROKEN_CARET,ca=void 0!==/()??/.exec("")[1];(ia||ca||ua||Yc||Xc)&&(ta=function(t){var r,e,n,o,i,u,c,a=this,f=Kc(a),s=Hc(t),l=f.raw;if(l)return l.lastIndex=a.lastIndex,r=Wc(ta,l,s),a.lastIndex=l.lastIndex,r;var h=f.groups,v=ua&&a.sticky,p=Wc(Vc,a),d=a.source,g=0,y=s;if(v&&(p=na(p,"y",""),-1===ea(p,"g")&&(p+="g"),y=oa(s,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==ra(s,a.lastIndex-1))&&(d="(?: "+d+")",y=" "+y,g++),e=new RegExp("^(?:"+d+")",p)),ca&&(e=new RegExp("^"+d+"$(?!\\s)",p)),ia&&(n=a.lastIndex),o=Wc(Zc,v?e:a,y),v?o?(o.input=oa(o.input,g),o[0]=oa(o[0],g),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:ia&&o&&(a.lastIndex=a.global?o.index+o[0].length:n),ca&&o&&o.length>1&&Wc(Qc,o[0],e,(function(){for(i=1;i=c?t?"":void 0:(n=Ma(i,u))<55296||n>56319||u+1===c||(o=Ma(i,u+1))<56320||o>57343?t?Fa(i,u):n:t?_a(i,u,u+2):o-56320+(n-55296<<10)+65536}},Ua={codeAt:Da(!1),charAt:Da(!0)},$a=Ua.charAt,Ga=S,za=Dt,Wa=Math.floor,Ba=Ga("".charAt),Ha=Ga("".replace),Va=Ga("".slice),Ja=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,qa=/\$([$&'`]|\d{1,2})/g,Ka=f,Ya=Nr,Xa=G,Qa=j,Za=aa,tf=TypeError,rf=Ea,ef=f,nf=S,of=function(t,r,e,n){var o=Ta(t),i=!Ia((function(){var r={};return r[o]=function(){return 7},7!==""[t](r)})),u=i&&!Ia((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[Pa]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return r=!0,null},e[o](""),!r}));if(!i||!u||e){var c=xa(/./[o]),a=r(o,""[t],(function(t,r,e,n,o){var u=xa(t),a=r.exec;return a===ja||a===Aa.exec?i&&!o?{done:!0,value:c(r,e,n)}:{done:!0,value:u(e,r,n)}:{done:!1}}));Oa(String.prototype,t,a[0]),Oa(Aa,o,a[1])}n&&Ra(Aa[o],"sham",!0)},uf=o,cf=Nr,af=G,ff=k,sf=en,lf=sn,hf=Ao,vf=L,pf=function(t,r,e){return r+(e?$a(t,r).length:1)},df=St,gf=function(t,r,e,n,o,i){var u=e+t.length,c=n.length,a=qa;return void 0!==o&&(o=za(o),a=Ja),Ha(i,a,(function(i,a){var f;switch(Ba(a,0)){case"$":return"$";case"&":return t;case"`":return Va(r,0,e);case"'":return Va(r,u);case"<":f=o[Va(a,1,-1)];break;default:var s=+a;if(0===s)return i;if(s>c){var l=Wa(s/10);return 0===l?i:l<=c?void 0===n[l-1]?Ba(a,1):n[l-1]+Ba(a,1):i}f=n[s-1]}return void 0===f?"":f}))},yf=function(t,r){var e=t.exec;if(Xa(e)){var n=Ka(e,t,r);return null!==n&&Ya(n),n}if("RegExp"===Qa(t))return Ka(Za,t,r);throw new tf("RegExp#exec called on incompatible receiver")},mf=rr("replace"),bf=Math.max,wf=Math.min,Sf=nf([].concat),Ef=nf([].push),xf=nf("".indexOf),Of=nf("".slice),jf="$0"==="a".replace(/./,"$0"),If=!!/./[mf]&&""===/./[mf]("a","$0"),Tf=!uf((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}));of("replace",(function(t,r,e){var n=If?"$":"$0";return[function(t,e){var n=vf(this),o=ff(t)?void 0:df(t,mf);return o?ef(o,t,n,e):ef(r,hf(n),t,e)},function(t,o){var i=cf(this),u=hf(t);if("string"==typeof o&&-1===xf(o,n)&&-1===xf(o,"$<")){var c=e(r,i,u,o);if(c.done)return c.value}var a=af(o);a||(o=hf(o));var f,s=i.global;s&&(f=i.unicode,i.lastIndex=0);for(var l,h=[];null!==(l=yf(i,u))&&(Ef(h,l),s);){""===hf(l[0])&&(i.lastIndex=pf(u,lf(i.lastIndex),f))}for(var v,p="",d=0,g=0;g=d&&(p+=Of(u,d,b)+y,d=b+m.length)}return p+Of(u,d)}]}),!Tf||!jf||If);var Rf=S,Pf=o,Af=G,kf=To,Cf=ce,Nf=function(){},Lf=[],Ff=J("Reflect","construct"),Mf=/^\s*(?:class|function)\b/,_f=Rf(Mf.exec),Df=!Mf.test(Nf),Uf=function(t){if(!Af(t))return!1;try{return Ff(Nf,Lf,t),!0}catch(r){return!1}},$f=function(t){if(!Af(t))return!1;switch(kf(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Df||!!_f(Mf,Cf(t))}catch(r){return!0}};$f.sham=!0;var Gf=!Ff||Pf((function(){var t;return Uf(Uf.call)||!Uf(Object)||!Uf((function(){t=!0}))||t}))?$f:Uf,zf=o,Wf=et,Bf=rr("species"),Hf=function(t){return Wf>=51||!zf((function(){var r=[];return(r.constructor={})[Bf]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},Vf=S([].slice),Jf=ro,qf=no,Kf=Gf,Yf=B,Xf=cn,Qf=hn,Zf=_,ts=Lo,rs=rr,es=Vf,ns=Hf("slice"),os=rs("species"),is=Array,us=Math.max;Jf({target:"Array",proto:!0,forced:!ns},{slice:function(t,r){var e,n,o,i=Zf(this),u=Qf(i),c=Xf(t,u),a=Xf(void 0===r?u:r,u);if(qf(i)&&(e=i.constructor,(Kf(e)&&(e===is||qf(e.prototype))||Yf(e)&&null===(e=e[os]))&&(e=void 0),e===is||void 0===e))return es(i,c,a);for(n=new(void 0===e?is:e)(us(a-c,0)),o=0;c"+o+""+r+">"},vs=function(t){return ls((function(){var r=""[t]('"');return r!==r.toLowerCase()||r.split('"').length>3}))};ro({target:"String",proto:!0,forced:vs("sub")},{sub:function(){return hs(this,"sub","","")}});var ps=Sc,ds=mt,gs=Nr,ys=Ec;ro({target:"Iterator",proto:!0,real:!0},{forEach:function(t){gs(this),ds(t);var r=ys(this),e=0;ps(r,(function(r){t(r,e++)}),{IS_RECORD:!0})}});var ms={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},bs=gr("span").classList,ws=bs&&bs.constructor&&bs.constructor.prototype,Ss=ws===Object.prototype?void 0:ws,Es=no,xs=Gf,Os=B,js=rr("species"),Is=Array,Ts=function(t){var r;return Es(t)&&(r=t.constructor,(xs(r)&&(r===Is||Es(r.prototype))||Os(r)&&null===(r=r[js]))&&(r=void 0)),void 0===r?Is:r},Rs=function(t,r){return new(Ts(t))(0===r?0:r)},Ps=Uu,As=A,ks=Dt,Cs=hn,Ns=Rs,Ls=S([].push),Fs=function(t){var r=1===t,e=2===t,n=3===t,o=4===t,i=6===t,u=7===t,c=5===t||i;return function(a,f,s,l){for(var h,v,p=ks(a),d=As(p),g=Ps(f,s),y=Cs(d),m=0,b=l||Ns,w=r?b(a,y):e||u?b(a,0):void 0;y>m;m++)if((c||m in d)&&(v=g(h=d[m],m,p),t))if(r)w[m]=v;else if(v)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:Ls(w,h)}else switch(t){case 4:return!1;case 7:Ls(w,h)}return i?-1:n||o?o:w}},Ms={forEach:Fs(0),map:Fs(1),filter:Fs(2),some:Fs(3),every:Fs(4),find:Fs(5),findIndex:Fs(6),filterReject:Fs(7)},_s=Ms.forEach,Ds=qo("forEach")?[].forEach:function(t){return _s(this,t,arguments.length>1?arguments[1]:void 0)},Us=e,$s=ms,Gs=Ss,zs=Ds,Ws=Jr,Bs=function(t){if(t&&t.forEach!==zs)try{Ws(t,"forEach",zs)}catch(r){t.forEach=zs}};for(var Hs in $s)$s[Hs]&&Bs(Us[Hs]&&Us[Hs].prototype);Bs(Gs);var Vs=Ve,Js=Rr,qs=function(t,r,e){return e.get&&Vs(e.get,r,{getter:!0}),e.set&&Vs(e.set,r,{setter:!0}),Js.f(t,r,e)},Ks=i,Ys=te.EXISTS,Xs=S,Qs=qs,Zs=Function.prototype,tl=Xs(Zs.toString),rl=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,el=Xs(rl.exec);Ks&&!Ys&&Qs(Zs,"name",{configurable:!0,get:function(){try{return el(rl,tl(this))[1]}catch(t){return""}}});var nl=ro,ol=Dt,il=cn,ul=en,cl=hn,al=ao,fl=so,sl=Rs,ll=Lo,hl=mo,vl=Hf("splice"),pl=Math.max,dl=Math.min;nl({target:"Array",proto:!0,forced:!vl},{splice:function(t,r){var e,n,o,i,u,c,a=ol(this),f=cl(a),s=il(t,f),l=arguments.length;for(0===l?e=n=0:1===l?(e=0,n=f-s):(e=l-2,n=dl(pl(ul(r),0),f-s)),fl(f+e-n),o=sl(a,n),i=0;if-n+e;i--)hl(a,i-1)}else if(e>n)for(i=f-n;i>s;i--)c=i+e-1,(u=i+n-1)in a?a[c]=a[u]:hl(a,c);for(i=0;i=51||!Jp((function(){var t=[];return t[nd]=!1,t.concat()[0]!==t})),id=function(t){if(!Kp(t))return!1;var r=t[nd];return void 0!==r?!!r:qp(t)};Vp({target:"Array",proto:!0,arity:1,forced:!od||!rd("concat")},{concat:function(t){var r,e,n,o,i,u=Yp(this),c=td(u,0),a=0;for(r=-1,n=arguments.length;ri&&Ld(o,arguments[i]),o}));l.prototype=f,"Error"!==c?Pd?Pd(l,s):Ad(l,s,{name:!0}):Md&&o in a&&(kd(l,a,o),kd(l,a,"prepareStackTrace")),Ad(l,a);try{f.name!==c&&Td(f,"name",c),f.constructor=l}catch(tI){}return l}},$d="WebAssembly",Gd=e[$d],zd=7!==new Error("e",{cause:7}).cause,Wd=function(t,r){var e={};e[t]=Ud(t,r,zd),_d({global:!0,constructor:!0,arity:1,forced:zd},e)},Bd=function(t,r){if(Gd&&Gd[t]){var e={};e[t]=Ud($d+"."+t,r,zd),_d({target:$d,stat:!0,constructor:!0,arity:1,forced:zd},e)}};Wd("Error",(function(t){return function(r){return Dd(t,this,arguments)}})),Wd("EvalError",(function(t){return function(r){return Dd(t,this,arguments)}})),Wd("RangeError",(function(t){return function(r){return Dd(t,this,arguments)}})),Wd("ReferenceError",(function(t){return function(r){return Dd(t,this,arguments)}})),Wd("SyntaxError",(function(t){return function(r){return Dd(t,this,arguments)}})),Wd("TypeError",(function(t){return function(r){return Dd(t,this,arguments)}})),Wd("URIError",(function(t){return function(r){return Dd(t,this,arguments)}})),Bd("CompileError",(function(t){return function(r){return Dd(t,this,arguments)}})),Bd("LinkError",(function(t){return function(r){return Dd(t,this,arguments)}})),Bd("RuntimeError",(function(t){return function(r){return Dd(t,this,arguments)}}));var Hd=no,Vd=G,Jd=j,qd=Ao,Kd=S([].push),Yd=ro,Xd=J,Qd=Ea,Zd=f,tg=S,rg=o,eg=G,ng=ht,og=Vf,ig=function(t){if(Vd(t))return t;if(Hd(t)){for(var r=t.length,e=[],n=0;n1?arguments[1]:void 0,i=void 0!==o;i&&(o=Ug(o,n>2?arguments[2]:void 0));var u,c,a,f,s,l,h=qg(r),v=0;if(!h||this===Kg&&Wg(h))for(u=Hg(r),c=e?new this(u):Kg(u);u>v;v++)l=i?o(r[v],v):r[v],Vg(c,v,l);else for(s=(f=Jg(r,h)).next,c=e?new this:[];!(a=$g(s,f)).done;v++)l=i?zg(f,o,[a.value,v],!0):a.value,Vg(c,v,l);return c.length=v,c};ro({target:"Array",stat:!0,forced:!yp((function(t){Array.from(t)}))},{from:Yg});var Xg=mu.IteratorPrototype,Qg=fu,Zg=g,ty=Nl,ry=$u,ey=function(){return this},ny=ro,oy=f,iy=G,uy=function(t,r,e,n){var o=r+" Iterator";return t.prototype=Qg(Xg,{next:Zg(+!n,e)}),ty(t,o,!1),ry[o]=ey,t},cy=Li,ay=Pl,fy=Nl,sy=Jr,ly=Xe,hy=$u,vy=te.PROPER,py=te.CONFIGURABLE,dy=mu.IteratorPrototype,gy=mu.BUGGY_SAFARI_ITERATORS,yy=rr("iterator"),my="keys",by="values",wy="entries",Sy=function(){return this},Ey=function(t,r,e,n,o,i,u){uy(e,r,n);var c,a,f,s=function(t){if(t===o&&d)return d;if(!gy&&t&&t in v)return v[t];switch(t){case my:case by:case wy:return function(){return new e(this,t)}}return function(){return new e(this)}},l=r+" Iterator",h=!1,v=t.prototype,p=v[yy]||v["@@iterator"]||o&&v[o],d=!gy&&p||s(o),g="Array"===r&&v.entries||p;if(g&&(c=cy(g.call(new t)))!==Object.prototype&&c.next&&(cy(c)!==dy&&(ay?ay(c,dy):iy(c[yy])||ly(c,yy,Sy)),fy(c,l,!0)),vy&&o===by&&p&&p.name!==by&&(py?sy(v,"name",by):(h=!0,d=function(){return oy(p,this)})),o)if(a={values:s(by),keys:i?d:s(my),entries:s(wy)},u)for(f in a)(gy||h||!(f in v))&&ly(v,f,a[f]);else ny({target:r,proto:!0,forced:gy||h},a);return v[yy]!==d&&ly(v,yy,d,{name:o}),hy[r]=d,a},xy=function(t,r){return{value:t,done:r}},Oy=Ua.charAt,jy=Ao,Iy=Re,Ty=Ey,Ry=xy,Py="String Iterator",Ay=Iy.set,ky=Iy.getterFor(Py);Ty(String,"String",(function(t){Ay(this,{type:Py,string:jy(t),index:0})}),(function(){var t,r=ky(this),e=r.string,n=r.index;return n>=e.length?Ry(void 0,!0):(t=Oy(e,n),r.index+=t.length,Ry(t,!1))}));var Cy=Ms.filter;ro({target:"Array",proto:!0,forced:!Hf("filter")},{filter:function(t){return Cy(this,t,arguments.length>1?arguments[1]:void 0)}});var Ny=Xe,Ly=function(t,r,e){for(var n in r)Ny(t,n,r[n],e);return t},Fy=f,My=fu,_y=Jr,Dy=Ly,Uy=Re,$y=St,Gy=mu.IteratorPrototype,zy=xy,Wy=cc,By=rr("toStringTag"),Hy="IteratorHelper",Vy="WrapForValidIterator",Jy=Uy.set,qy=function(t){var r=Uy.getterFor(t?Vy:Hy);return Dy(My(Gy),{next:function(){var e=r(this);if(t)return e.nextHandler();try{var n=e.done?void 0:e.nextHandler();return zy(n,e.done)}catch(tI){throw e.done=!0,tI}},return:function(){var e=r(this),n=e.iterator;if(e.done=!0,t){var o=$y(n,"return");return o?Fy(o,n):zy(void 0,!0)}if(e.inner)try{Wy(e.inner.iterator,"normal")}catch(tI){return Wy(n,"throw",tI)}return Wy(n,"normal"),zy(void 0,!0)}})},Ky=qy(!0),Yy=qy(!1);_y(Yy,By,"Iterator Helper");var Xy=function(t,r){var e=function(e,n){n?(n.iterator=e.iterator,n.next=e.next):n=e,n.type=r?Vy:Hy,n.nextHandler=t,n.counter=0,n.done=!1,Jy(this,n)};return e.prototype=r?Ky:Yy,e},Qy=ro,Zy=f,tm=mt,rm=Nr,em=Ec,nm=Dg,om=Xy((function(){for(var t,r,e=this.iterator,n=this.predicate,o=this.next;;){if(t=rm(Zy(o,e)),this.done=!!t.done)return;if(r=t.value,nm(e,n,[r,this.counter++],!0))return r}}));Qy({target:"Iterator",proto:!0,real:!0,forced:false},{filter:function(t){return rm(this),tm(t),new om(em(this),{predicate:t})}});var im=rr,um=fu,cm=Rr.f,am=im("unscopables"),fm=Array.prototype;void 0===fm[am]&&cm(fm,am,{configurable:!0,value:um(null)});var sm=function(t){fm[am][t]=!0},lm=_,hm=sm,vm=$u,pm=Re,dm=Rr.f,gm=Ey,ym=xy,mm=i,bm="Array Iterator",wm=pm.set,Sm=pm.getterFor(bm),Em=gm(Array,"Array",(function(t,r){wm(this,{type:bm,target:lm(t),index:0,kind:r})}),(function(){var t=Sm(this),r=t.target,e=t.kind,n=t.index++;if(!r||n>=r.length)return t.target=void 0,ym(void 0,!0);switch(e){case"keys":return ym(n,!1);case"values":return ym(r[n],!1)}return ym([n,r[n]],!1)}),"values"),xm=vm.Arguments=vm.Array;if(hm("keys"),hm("values"),hm("entries"),mm&&"values"!==xm.name)try{dm(xm,"name",{value:"values"})}catch(tI){}var Om=e,jm=ms,Im=Ss,Tm=Em,Rm=Jr,Pm=rr,Am=Pm("iterator"),km=Pm("toStringTag"),Cm=Tm.values,Nm=function(t,r){if(t){if(t[Am]!==Cm)try{Rm(t,Am,Cm)}catch(tI){t[Am]=Cm}if(t[km]||Rm(t,km,r),jm[r])for(var e in Tm)if(t[e]!==Tm[e])try{Rm(t,e,Tm[e])}catch(tI){t[e]=Tm[e]}}};for(var Lm in jm)Nm(Om[Lm]&&Om[Lm].prototype,Lm);Nm(Im,"DOMTokenList");var Fm=Ms.map;ro({target:"Array",proto:!0,forced:!Hf("map")},{map:function(t){return Fm(this,t,arguments.length>1?arguments[1]:void 0)}});var Mm=f,_m=mt,Dm=Nr,Um=Ec,$m=Dg,Gm=Xy((function(){var t=this.iterator,r=Dm(Mm(this.next,t));if(!(this.done=!!r.done))return $m(t,this.mapper,[r.value,this.counter++],!0)}));ro({target:"Iterator",proto:!0,real:!0,forced:false},{map:function(t){return Dm(this),_m(t),new Gm(Um(this),{mapper:t})}});var zm=S(1..valueOf),Wm=en,Bm=Ao,Hm=L,Vm=RangeError,Jm=ro,qm=S,Km=en,Ym=zm,Xm=function(t){var r=Bm(Hm(this)),e="",n=Wm(t);if(n<0||n===1/0)throw new Vm("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(r+=r))1&n&&(e+=r);return e},Qm=o,Zm=RangeError,tb=String,rb=Math.floor,eb=qm(Xm),nb=qm("".slice),ob=qm(1..toFixed),ib=function(t,r,e){return 0===r?e:r%2==1?ib(t,r-1,e*t):ib(t*t,r/2,e)},ub=function(t,r,e){for(var n=-1,o=e;++n<6;)o+=r*t[n],t[n]=o%1e7,o=rb(o/1e7)},cb=function(t,r){for(var e=6,n=0;--e>=0;)n+=t[e],t[e]=rb(n/r),n=n%r*1e7},ab=function(t){for(var r=6,e="";--r>=0;)if(""!==e||0===r||0!==t[r]){var n=tb(t[r]);e=""===e?n:e+eb("0",7-n.length)+n}return e};Jm({target:"Number",proto:!0,forced:Qm((function(){return"0.000"!==ob(8e-5,3)||"1"!==ob(.9,0)||"1.25"!==ob(1.255,2)||"1000000000000000128"!==ob(0xde0b6b3a7640080,0)}))||!Qm((function(){ob({})}))},{toFixed:function(t){var r,e,n,o,i=Ym(this),u=Km(t),c=[0,0,0,0,0,0],a="",f="0";if(u<0||u>20)throw new Zm("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return tb(i);if(i<0&&(a="-",i=-i),i>1e-21)if(e=(r=function(t){for(var r=0,e=t;e>=4096;)r+=12,e/=4096;for(;e>=2;)r+=1,e/=2;return r}(i*ib(2,69,1))-69)<0?i*ib(2,-r,1):i/ib(2,r,1),e*=4503599627370496,(r=52-r)>0){for(ub(c,0,e),n=u;n>=7;)ub(c,1e7,0),n-=7;for(ub(c,ib(10,n,1),0),n=r-1;n>=23;)cb(c,1<<23),n-=23;cb(c,1<0?a+((o=f.length)<=u?"0."+eb("0",u-o)+f:nb(f,0,o-u)+"."+nb(f,o-u)):a+f}});var fb=ro,sb=Ms.find,lb=sm,hb="find",vb=!0;hb in[]&&Array(1)[hb]((function(){vb=!1})),fb({target:"Array",proto:!0,forced:vb},{find:function(t){return sb(this,t,arguments.length>1?arguments[1]:void 0)}}),lb(hb);var pb=Sc,db=mt,gb=Nr,yb=Ec;ro({target:"Iterator",proto:!0,real:!0},{find:function(t){gb(this),db(t);var r=yb(this),e=0;return pb(r,(function(r,n){if(t(r,e++))return n(r)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}});var mb=Dt,bb=Di;ro({target:"Object",stat:!0,forced:o((function(){bb(1)}))},{keys:function(t){return bb(mb(t))}});var wb=S,Sb=Gt,Eb=SyntaxError,xb=parseInt,Ob=String.fromCharCode,jb=wb("".charAt),Ib=wb("".slice),Tb=wb(/./.exec),Rb={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},Pb=/^[\da-f]{4}$/i,Ab=/^[\u0000-\u001F]$/,kb=ro,Cb=i,Nb=e,Lb=J,Fb=S,Mb=f,_b=G,Db=B,Ub=no,$b=Gt,Gb=Ao,zb=hn,Wb=Lo,Bb=o,Hb=function(t,r){for(var e=!0,n="";r1?arguments[1]:void 0)}}),AE("includes");var kE=B,CE=j,NE=rr("match"),LE=function(t){var r;return kE(t)&&(void 0!==(r=t[NE])?!!r:"RegExp"===CE(t))},FE=TypeError,ME=function(t){if(LE(t))throw new FE("The method doesn't accept regular expressions");return t},_E=rr("match"),DE=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[_E]=!1,"/./"[t](r)}catch(n){}}return!1},UE=ro,$E=ME,GE=L,zE=Ao,WE=DE,BE=S("".indexOf);UE({target:"String",proto:!0,forced:!WE("includes")},{includes:function(t){return!!~BE(zE(GE(this)),zE($E(t)),arguments.length>1?arguments[1]:void 0)}});var HE={exports:{}},VE=o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),JE=o,qE=B,KE=j,YE=VE,XE=Object.isExtensible,QE=JE((function(){XE(1)}))||YE?function(t){return!!qE(t)&&((!YE||"ArrayBuffer"!==KE(t))&&(!XE||XE(t)))}:XE,ZE=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),tx=ro,rx=S,ex=pe,nx=B,ox=Gt,ix=Rr.f,ux=Qe,cx=yw,ax=QE,fx=ZE,sx=!1,lx=Vt("meta"),hx=0,vx=function(t){ix(t,lx,{value:{objectID:"O"+hx++,weakData:{}}})},px=HE.exports={enable:function(){px.enable=function(){},sx=!0;var t=ux.f,r=rx([].splice),e={};e[lx]=1,t(e).length&&(ux.f=function(e){for(var n=t(e),o=0,i=n.length;o1?arguments[1]:void 0);r=r?r.next:e.first;)for(n(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(t){return!!a(this,t)}}),Nx(i,e?{get:function(t){var r=a(this,t);return r&&r.value},set:function(t,r){return c(this,0===t?0:t,r)}}:{add:function(t){return c(this,t=0===t?0:t,t)}}),Gx&&Cx(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=Bx(r),i=Bx(n);Dx(t,r,(function(t,r){Wx(this,{type:n,target:t,state:o(t),kind:r,last:void 0})}),(function(){for(var t=i(this),r=t.kind,e=t.last;e&&e.removed;)e=e.previous;return t.target&&(t.last=e=e?e.next:t.state.first)?Ux("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,Ux(void 0,!0))}),e?"entries":"values",!e,!0),$x(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=yx[t],c=u&&u.prototype,a=u,f={},s=function(t){var r=mx(c[t]);wx(c,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!Ix(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!Ix(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!Ix(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(bx(t,!Ox(u)||!(o||c.forEach&&!Tx((function(){(new u).entries().next()})))))a=e.getConstructor(r,t,n,i),Sx.enable();else if(bx(t,!0)){var l=new a,h=l[i](o?{}:-0,1)!==l,v=Tx((function(){l.has(1)})),p=Rx((function(t){new u(t)})),d=!o&&Tx((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((a=r((function(t,r){xx(t,c);var e=Ax(new u,t,a);return jx(r)||Ex(r,e[i],{that:e,AS_ENTRIES:n}),e}))).prototype=c,c.constructor=a),(v||d)&&(s("delete"),s("has"),n&&s("get")),(d||h)&&s(i),o&&c.clear&&delete c.clear}f[t]=a,gx({global:!0,constructor:!0,forced:a!==u},f),Px(a,t),o||e.setStrong(a,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Hx);var Vx,Jx=ro,qx=Fu,Kx=n.f,Yx=sn,Xx=Ao,Qx=ME,Zx=L,tO=DE,rO=qx("".startsWith),eO=qx("".slice),nO=Math.min,oO=tO("startsWith");Jx({target:"String",proto:!0,forced:!!(oO||(Vx=Kx(String.prototype,"startsWith"),!Vx||Vx.writable))&&!oO},{startsWith:function(t){var r=Xx(Zx(this));Qx(t);var e=Yx(nO(arguments.length>1?arguments[1]:void 0,r.length)),n=Xx(t);return rO?rO(r,n,e):eO(r,e,e+n.length)===n}});var iO=ro,uO=Ms.findIndex,cO=sm,aO="findIndex",fO=!0;aO in[]&&Array(1)[aO]((function(){fO=!1})),iO({target:"Array",proto:!0,forced:fO},{findIndex:function(t){return uO(this,t,arguments.length>1?arguments[1]:void 0)}}),cO(aO);var sO=i,lO=S,hO=f,vO=o,pO=Di,dO=Tn,gO=s,yO=Dt,mO=A,bO=Object.assign,wO=Object.defineProperty,SO=lO([].concat),EO=!bO||vO((function(){if(sO&&1!==bO({b:1},bO(wO({},"a",{enumerable:!0,get:function(){wO(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},e=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[e]=7,n.split("").forEach((function(t){r[t]=t})),7!==bO({},t)[e]||pO(bO({},r)).join("")!==n}))?function(t,r){for(var e=yO(t),n=arguments.length,o=1,i=dO.f,u=gO.f;n>o;)for(var c,a=mO(arguments[o++]),f=i?SO(pO(a),i(a)):pO(a),s=f.length,l=0;s>l;)c=f[l++],sO&&!hO(u,a,c)||(e[c]=a[c]);return e}:bO,xO=EO;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==xO},{assign:xO});var OO=Fw;Aw("toPrimitive"),OO();var jO=Nr,IO=It,TO=TypeError,RO=Gt,PO=Xe,AO=function(t){if(jO(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new TO("Incorrect hint");return IO(this,t)},kO=rr("toPrimitive"),CO=Date.prototype;RO(CO,kO)||PO(CO,kO,AO);var NO=L,LO=Ao,FO="\t\n\v\f\r \u2028\u2029\ufeff",MO=S("".replace),_O=RegExp("^["+FO+"]+"),DO=RegExp("(^|[^"+FO+"])["+FO+"]+$"),UO=function(t){return function(r){var e=LO(NO(r));return 1&t&&(e=MO(e,_O,"")),2&t&&(e=MO(e,DO,"$1")),e}},$O={start:UO(1),end:UO(2),trim:UO(3)},GO=ro,zO=i,WO=e,BO=jw,HO=S,VO=Jn,JO=Gt,qO=sd,KO=q,YO=ht,XO=fr,QO=o,ZO=Qe.f,tj=n.f,rj=Rr.f,ej=zm,nj=$O.trim,oj="Number",ij=WO[oj];BO[oj];var uj=ij.prototype,cj=WO.TypeError,aj=HO("".slice),fj=HO("".charCodeAt),sj=function(t){var r,e,n,o,i,u,c,a,f=XO(t,"number");if(YO(f))throw new cj("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=nj(f),43===(r=fj(f,0))||45===r){if(88===(e=fj(f,2))||120===e)return NaN}else if(48===r){switch(fj(f,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+f}for(u=(i=aj(f,2)).length,c=0;co)return NaN;return parseInt(i,n)}return+f},lj=VO(oj,!ij(" 0o1")||!ij("0b1")||ij("+0x1")),hj=function(t){var r,e=arguments.length<1?0:ij(function(t){var r=XO(t,"number");return"bigint"==typeof r?r:sj(r)}(t));return KO(uj,r=this)&&QO((function(){ej(r)}))?qO(Object(e),this,hj):e};hj.prototype=uj,lj&&(uj.constructor=hj),GO({global:!0,constructor:!0,wrap:!0,forced:lj},{Number:hj});lj&&function(t,r){for(var e,n=zO?ZO(r):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)JO(r,e=n[o])&&!JO(t,e)&&rj(t,e,tj(r,e))}(BO[oj],ij),Aw("iterator"),Aw("asyncIterator");var vj=J,pj=Nl;Aw("toStringTag"),pj(vj("Symbol"),"Symbol"),Nl(e.JSON,"JSON",!0),Nl(Math,"Math",!0);var dj=Dt,gj=Li,yj=Ii;ro({target:"Object",stat:!0,forced:o((function(){gj(1)})),sham:!yj},{getPrototypeOf:function(t){return gj(dj(t))}});var mj=ro,bj=o,wj=_,Sj=n.f,Ej=i;mj({target:"Object",stat:!0,forced:!Ej||bj((function(){Sj(1)})),sham:!Ej},{getOwnPropertyDescriptor:function(t,r){return Sj(wj(t),r)}});var xj=Nn,Oj=_,jj=n,Ij=Lo;ro({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var r,e,n=Oj(t),o=jj.f,i=xj(n),u={},c=0;i.length>c;)void 0!==(e=o(n,r=i[c++]))&&Ij(u,r,e);return u}});var Tj=e,Rj=Nl;ro({global:!0},{Reflect:{}}),Rj(Tj.Reflect,"Reflect",!0);var Pj=S,Aj=mt,kj=B,Cj=Gt,Nj=Vf,Lj=u,Fj=Function,Mj=Pj([].concat),_j=Pj([].join),Dj={},Uj=Lj?Fj.bind:function(t){var r=Aj(this),e=r.prototype,n=Nj(arguments,1),o=function(){var e=Mj(n,Nj(arguments));return this instanceof o?function(t,r,e){if(!Cj(Dj,r)){for(var n=[],o=0;oe.length&&"/"!==n[n.length-1]))return n+t.slice(e.length);a("W2",e,n)}}function a(t,e,n){console.warn(r(t,[n,e].join(", ")))}function f(t,r,e){for(var n=t.scopes,o=e&&u(e,n);o;){var i=c(r,n[o]);if(i)return i;o=u(o.slice(0,o.lastIndexOf("/")),n)}return c(r,t.imports)||-1!==r.indexOf(":")&&r}function s(){this[I]={}}function l(t,e,n,o){var i=t[I][e];if(i)return i;var u=[],c=Object.create(null);j&&Object.defineProperty(c,j,{value:"Module"});var a=Promise.resolve().then((function(){return t.instantiate(e,n,o)})).then((function(n){if(!n)throw Error(r(2,e));var o=n[1]((function(t,r){i.h=!0;var e=!1;if("string"==typeof t)t in c&&c[t]===r||(c[t]=r,e=!0);else{for(var n in t)r=t[n],n in c&&c[n]===r||(c[n]=r,e=!0);t&&t.__esModule&&(c.__esModule=t.__esModule)}if(e)for(var o=0;o-1){var e=document.createEvent("Event");e.initEvent("error",!1,!1),t.dispatchEvent(e)}return Promise.reject(r)}))}else if("systemjs-importmap"===t.type){t.sp=!0;var e=t.src?(System.fetch||fetch)(t.src,{integrity:t.integrity,passThrough:!0}).then((function(t){if(!t.ok)throw Error(t.status);return t.text()})).catch((function(e){return e.message=r("W4",t.src)+"\n"+e.message,console.warn(e),"function"==typeof t.onerror&&t.onerror(),"{}"})):t.innerHTML;k=k.then((function(){return e})).then((function(e){!function(t,e,n){var o={};try{o=JSON.parse(e)}catch(c){console.warn(Error(r("W5")))}i(o,n,t)}(C,e,t.src||g)}))}}))}var g,y="undefined"!=typeof Symbol,m="undefined"!=typeof self,b="undefined"!=typeof document,w=m?self:t;if(b){var S=document.querySelector("base[href]");S&&(g=S.href)}if(!g&&"undefined"!=typeof location){var E=(g=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==E&&(g=g.slice(0,E+1))}var x,O=/\\/g,j=y&&Symbol.toStringTag,I=y?Symbol():"@",T=s.prototype;T.import=function(t,r,e){var n=this;return r&&"object"==typeof r&&(e=r,r=void 0),Promise.resolve(n.prepareImport()).then((function(){return n.resolve(t,r,e)})).then((function(t){var r=l(n,t,void 0,e);return r.C||v(n,r)}))},T.createContext=function(t){var r=this;return{url:t,resolve:function(e,n){return Promise.resolve(r.resolve(e,n||t))}}},T.register=function(t,r,e){x=[t,r,e]},T.getRegister=function(){var t=x;return x=void 0,t};var R=Object.freeze(Object.create(null));w.System=new s;var P,A,k=Promise.resolve(),C={imports:{},scopes:{},depcache:{},integrity:{}},N=b;if(T.prepareImport=function(t){return(N||t)&&(d(),N=!1),k},b&&(d(),window.addEventListener("DOMContentLoaded",d)),T.addImportMap=function(t,r){i(t,r||g,C)},b){window.addEventListener("error",(function(t){F=t.filename,M=t.error}));var L=location.origin}T.createScript=function(t){var r=document.createElement("script");r.async=!0,t.indexOf(L+"/")&&(r.crossOrigin="anonymous");var e=C.integrity[t];return e&&(r.integrity=e),r.src=t,r};var F,M,_={},D=T.register;T.register=function(t,r){if(b&&"loading"===document.readyState&&"string"!=typeof t){var e=document.querySelectorAll("script[src]"),n=e[e.length-1];if(n){P=t;var o=this;A=setTimeout((function(){_[n.src]=[t,r],o.import(n.src)}))}}else P=void 0;return D.call(this,t,r)},T.instantiate=function(t,e){var n=_[t];if(n)return delete _[t],n;var o=this;return Promise.resolve(T.createScript(t)).then((function(n){return new Promise((function(i,u){n.addEventListener("error",(function(){u(Error(r(3,[t,e].join(", "))))})),n.addEventListener("load",(function(){if(document.head.removeChild(n),F===t)u(M);else{var r=o.getRegister(t);r&&r[0]===P&&clearTimeout(A),i(r)}})),document.head.appendChild(n)}))}))},T.shouldFetch=function(){return!1},"undefined"!=typeof fetch&&(T.fetch=fetch);var U=T.instantiate,$=/^(text|application)\/(x-)?javascript(;|$)/;T.instantiate=function(t,e,n){var o=this;return this.shouldFetch(t,e,n)?this.fetch(t,{credentials:"same-origin",integrity:C.integrity[t],meta:n}).then((function(n){if(!n.ok)throw Error(r(7,[n.status,n.statusText,t,e].join(", ")));var i=n.headers.get("content-type");if(!i||!$.test(i))throw Error(r(4,i));return n.text().then((function(r){return r.indexOf("//# sourceURL=")<0&&(r+="\n//# sourceURL="+t),(0,eval)(r),o.getRegister(t)}))})):U.apply(this,arguments)},T.resolve=function(t,n){return f(C,e(t,n=n||g)||t,n)||function(t,e){throw Error(r(8,[t,e].join(", ")))}(t,n)};var G=T.instantiate;T.instantiate=function(t,r,e){var n=C.depcache[t];if(n)for(var o=0;osvg{width:100%;min-height:100px}.ibiz-markdown-message .anchor{display:none!important}.ibiz-markdown-message.is-loading .ibiz-markdown-message-header .ibiz-markdown-message-header__caption{font-size:0}.ibiz-markdown-message.is-loading .ibiz-markdown-message-header .ibiz-markdown-message-header__caption:after{display:block;width:11px;height:11px;content:"";border:3px solid #3b3b3b;border-top-color:transparent;border-radius:100%;animation:circle infinite .75s linear}.ibiz-markdown-message-header{display:flex;margin-bottom:8px}.ibiz-markdown-message-header__caption{flex:0;width:auto;min-width:32px;min-height:32px;padding:6px;margin-right:2px;font-size:14px;font-weight:800;color:var(--ibiz-ai-chat-color)}.ibiz-markdown-message-header__timeout{display:flex;align-items:center;padding:0 8px;font-size:14px;color:var(--ibiz-color-danger)}.ibiz-markdown-message-content{padding:10px 16px;background-color:var(--ibiz-ai-chat-background-color-light);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-markdown-message-content .cherry div.cherry-previewer{color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color-light)}@keyframes circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ibiz-chat-thought-chain{--ibiz-chat-thought-chain-font-size: 12px;--ibiz-chat-thought-chain-header-height: 32px;--ibiz-chat-thought-chain-color-2: var(--ibiz-ai-chat-color-2);--ibiz-chat-thought-chain-bg: var(--ibiz-ai-chat-hover-background-color);--ibiz-chat-thought-chain-bg-2: var(--ibiz-ai-chat-hover-background-color-2);--ibiz-chat-thought-chain-border-radius: var(--ibiz-ai-chat-border-radius);--ibiz-chat-thought-chain-hover-bg-color: var(--ibiz-ai-chat-hover-background-color);--ibiz-chat-thought-chain-border: var(--ibiz-ai-chat-hover-background-color);display:flex;flex-direction:column;padding:8px 12px;font-size:var(--ibiz-chat-thought-chain-font-size);background-color:var(--ibiz-chat-thought-chain-bg);border-radius:var(--ibiz-chat-thought-chain-border-radius)}.ibiz-chat-thought-chain__item{display:flex}.ibiz-chat-thought-chain__item.is-collapsed:last-child .ibiz-chat-thought-chain__item-icon:after{display:none}.ibiz-chat-thought-chain__item.is-collapsed .ibiz-chat-thought-chain__item-title .ibiz-chat-thought-chain__icon{transform:rotate(180deg)}.ibiz-chat-thought-chain__item.is-collapsed .ibiz-chat-thought-chain__item-description{height:0}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:18px;padding-top:8px}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon span{display:flex;flex:none;align-items:center;justify-content:center;width:16px;height:16px;margin-bottom:8px;font-size:10px;color:var(--ibiz-chat-thought-chain-color-2);background:var(--ibiz-chat-thought-chain-bg-2);border-radius:50%}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon svg{width:16px;height:16px;margin-bottom:8px}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon:after{width:1px;height:100%;content:"";background:var(--ibiz-chat-thought-chain-border);border-radius:13px;transition:.3s background cubic-bezier(.4,0,.2,1)}.ibiz-chat-thought-chain__item-content{flex:auto;padding-left:4px}.ibiz-chat-thought-chain__item-title{position:relative;display:flex;align-items:center;height:var(--ibiz-chat-thought-chain-header-height);padding:4px 4px 4px 6px;cursor:pointer;transition:.3s background-color}.ibiz-chat-thought-chain__item-title .ibiz-chat-thought-chain__icon{position:absolute;right:8px;flex-shrink:0;font-size:1em;cursor:pointer;transition:.3s transform}.ibiz-chat-thought-chain__item-title:hover{background-color:var(--ibiz-chat-thought-chain-bg-2);border-radius:8px}.ibiz-chat-thought-chain__item-description{height:100%;overflow:hidden;color:var(--ibiz-color-text-2);transition:height .3s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1)}.ibiz-chat-thought-chain.is-single .ibiz-chat-thought-chain__item-icon:after{display:none}@keyframes loading-animation{75%,to{opacity:0;transform:scale(2)}}.ibiz-user-message-question{padding:6px 10px}.ibiz-user-message-question__content{position:relative;box-sizing:border-box;display:flex;justify-content:end;max-width:100%;padding:10px;font-size:14px;text-align:left;word-break:break-word;user-select:text;transition:all .3s ease}.ibiz-user-message-question__content--body{width:fit-content;padding:0 10px;margin:0;font-size:14px;line-height:1.5;color:var(--color-fg-default);word-wrap:break-word;background:#E7F8FF;border-radius:var(--ibiz-ai-chat-border-radius);text-size-adjust:100%}.ibiz-user-message-question__content--body:before{display:table;content:""}.ibiz-user-message-question__content--body:after{display:table;clear:both;content:""}.ibiz-user-message-question__content--body>p{margin:8px}.ibiz-user-message-question__content--material{display:flex;flex-flow:row-reverse wrap;gap:8px;align-items:center}.ibiz-user-message-question__user-header{display:flex;align-items:center;justify-content:end;width:100%;height:32px}.ibiz-user-message-question__user{padding:6px;font-size:14px;font-weight:800}.ibiz-ossfile-material{display:flex;width:100%;height:100%}.ibiz-ossfile-material-left{display:flex;align-items:center;justify-content:center}.ibiz-ossfile-material-right{width:calc(100% - 24px);height:100%;padding-left:8px}.ibiz-ossfile-material__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-ossfile-material__metadata{display:flex;gap:8px;align-items:center;font-size:14px}.ibiz-ossfile-material__metadata>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-common-material{display:flex;width:100%;height:100%}.ibiz-common-material-left{display:flex;align-items:center;justify-content:center;font-size:18px}.ibiz-common-material-right{width:calc(100% - 24px);height:100%;padding-left:8px}.ibiz-common-material__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-common-material__metadata{display:flex;gap:8px;align-items:center;font-size:14px}.ibiz-common-material__metadata>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-input-material-item{position:relative;width:200px;height:60px;padding:8px;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color);border:1px solid var(--ibiz-ai-chat-border-color);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-item:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-input-material-item:hover .ibiz-chat-input-material-item__icon{opacity:1}.ibiz-chat-input-material-item.is-disabled{pointer-events:none}.ibiz-chat-input-material-item__icon{position:absolute;top:-4px;right:-4px;opacity:0}.ibiz-error-message{padding:6px 10px;text-align:left}.ibiz-error-message__content{width:fit-content;padding:6px;color:#fff;background-color:red;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-error-message .ibiz-error-message-header{display:flex;margin-bottom:8px}.ibiz-error-message-header__caption{flex:0;width:auto;min-width:32px;min-height:32px;padding:6px;margin-right:2px;font-size:14px;font-weight:800;color:var(--ibiz-ai-chat-color)}.ibiz-unknown-message{padding:6px 10px;text-align:right}.ibiz-unknown-message__content{padding:6px;color:#000;background-color:#ccc;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-message-item{padding:6px 0}.ibiz-chat-message-item .pre-wrap-container{word-wrap:break-word;white-space:pre-wrap}.ibiz-chat-toolbar{display:flex;align-items:center}.ibiz-chat-toolbar__item{display:flex;align-items:center;white-space:nowrap;cursor:pointer}.ibiz-chat-toolbar__item:not(:first-child){margin-left:6px}.ibiz-chat-toolbar__item--icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:18px;height:18px;font-size:18px}.ibiz-chat-toolbar__item--label{display:flex;align-items:center}.ibiz-chat-toolbar__item.is-disabled{cursor:not-allowed}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item{width:32px;height:32px;padding:6px;overflow:hidden;font-size:12px;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:15px;transition:all .3s ease}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item.is-disabled{color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item:hover:not(.is-disabled){width:68px;color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item .ibiz-chat-toolbar__item--label{width:calc(100% - 32px);margin-left:8px;font-size:14px}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item .ibiz-chat-toolbar__item--label>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-toolbar__default .ibiz-chat-toolbar__item{z-index:1;gap:6px;width:fit-content;padding:2px 14px;font-size:14px;line-height:28px;color:var(--ibiz-ai-chat-color-2);background-color:var(--ibiz-ai-chat-background-color-2);border-radius:12px}.ibiz-chat-toolbar__default .ibiz-chat-toolbar__item.is-disabled{background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar__default .ibiz-chat-toolbar__item:hover:not(.is-disabled){background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-messages{margin:6px;width:calc(100% - 12px);height:calc(100% - 12px);overflow-x:hidden;overflow-y:auto}.ibiz-chat-messages::-webkit-scrollbar{width:6px}.ibiz-chat-messages::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-wrapper{max-height:6em;padding:4px;overflow:hidden auto;font-size:16px;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color)}.ibiz-chat-input-main-wrapper{display:flex;align-items:center;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:var(--ibiz-ai-chat-border-radius)}@keyframes loading-change{0%{opacity:1}25%{opacity:.5}50%{opacity:.1}75%{opacity:.5}to{opacity:1}}.ibiz-chat-input__textarea{flex-grow:1;max-height:6em;padding:4px;overflow:hidden auto!important;font-size:16px;color:var(--ibiz-ai-chat-color);resize:none;background-color:var(--ibiz-ai-chat-background-color);border:none;outline:none}.ibiz-chat-input__textarea::-webkit-scrollbar{width:6px}.ibiz-chat-input__textarea::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-action-wrapper{display:flex;gap:6px;align-items:center;padding:6px;color:var(--ibiz-ai-chat-color)}.ibiz-chat-input-action-wrapper__action-item{padding:3px;font-size:12px;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-action-wrapper__action-item:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-input-action-wrapper__action-item.is-disabled{color:var(--ibiz-ai-chat-disabled-color);pointer-events:none}.ibiz-chat-input-action-wrapper__action-item.is-loading{pointer-events:none;animation:loading-change .8s infinite}.ibiz-chat-input-pop-actions{width:160px;min-height:48px;padding:8px}.ibiz-chat-input-pop-action-item{display:flex;align-items:center;padding:8px;margin-bottom:4px;line-height:22px;cursor:pointer;border-radius:4px;transition:background-color .2s}.ibiz-chat-input-pop-action-item:hover{background-color:var(--ibiz-color-fill-0)}.ibiz-chat-input-pop-action-item-icon{width:18px;height:18px;margin-right:8px;font-size:18px;color:var(--ibiz-ai-chat-color);pointer-events:none}.ibiz-chat-input-pop-action-item-title{font-size:14px;line-height:22px;color:var(--ibiz-ai-chat-color);pointer-events:none}.ibiz-chat-input-material{display:flex;flex-wrap:wrap;gap:8px}.ibiz-pop-trigger-container{font-size:12px}.ibiz-pop-content{min-width:120px;padding:4px;background-color:var(--ibiz-color-bg-3);border:1px solid var(--ibiz-color-border);border-radius:8px}.ibiz-pop-content-item{display:flex;align-items:center;justify-content:space-around;line-height:32px;cursor:pointer}.ibiz-chat-topic-item{position:relative;display:flex;align-items:center;height:38px;padding:0 8px;margin-top:4px;cursor:pointer;border-radius:8px}.ibiz-chat-topic-item:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item:hover .ibiz-chat-topic-item-icon{opacity:1}.ibiz-chat-topic-item.is-active{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item-caption{width:100%;min-width:0;overflow:hidden;line-height:18px;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-topic-item-icon{position:absolute;top:50%;right:10px;display:flex;align-items:center;justify-content:space-around;width:54px;height:24px;color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color);border-radius:8px;outline:none;opacity:0;transform:translateY(-50%)}.ibiz-chat-topic-item-icon__item{font-size:12px}.ibiz-chat-topics{height:100%;padding:8px;overflow-y:auto}.ibiz-chat-container{--ibiz-ai-chat-color: #3b3b3b;--ibiz-ai-chat-icon-color: #3b3b3b;--ibiz-ai-chat-border-color: #e5e5e5;--ibiz-ai-chat-background-color: #fff;--ibiz-ai-chat-background-color-light: #f8fafb;--ibiz-ai-chat-disabled-color: rgba(59, 59, 59, .6);--ibiz-ai-chat-hover-color: #3b3b3b;--ibiz-ai-chat-hover-background-color: #e9e9e9;--ibiz-ai-chat-hover-border-color: #e5e5e5;--ibiz-ai-chat-border-radius: 5px;--ibiz-ai-chat-color-2: #4d6bfe;--ibiz-ai-chat-background-color-2: rgb(219, 234, 254);--ibiz-ai-chat-hover-background-color-2: #c3daf8}.ibiz-chat-container__dialog{position:absolute;z-index:1000;display:flex;flex-direction:column;background-color:var(--ibiz-ai-chat-background-color);border:1px solid var(--ibiz-ai-chat-border-color);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-container__dialog *{box-sizing:border-box}.ibiz-chat-container__dialog svg{display:inline-block;width:1em;height:1em;font-size:1.5em;vertical-align:middle;fill:currentcolor}.ibiz-chat-container__dialog.is-hidden{display:none}.ibiz-chat-container__minimize{position:absolute;z-index:99999;display:flex;align-items:center;justify-content:center;width:56px;height:56px;color:var(--ibiz-ai-chat-color);cursor:pointer;background-color:var(--ibiz-ai-chat-background-color);border:1px solid var(--ibiz-ai-chat-border-color);border-radius:50%}.ibiz-chat-container__minimize:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-container__minimize svg{display:inline-block;vertical-align:middle;fill:currentcolor}.ibiz-chat-container__minimize.is-hidden{display:none}.ibiz-chat-container__toolbar{display:flex;justify-content:center;margin:8px}.ibiz-chat-container-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;height:60px;cursor:move;border-bottom:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-container-header-caption{padding:0 6px 0 16px;font-size:18px;font-weight:800}.ibiz-chat-container-header-action-wrapper{display:flex;gap:6px;align-items:center;height:100%;padding:0 6px}.ibiz-chat-container-header-action-wrapper__action-item{flex-shrink:0;padding:3px;font-size:12px;color:var(--ibiz-ai-chat-color);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-container-header-action-wrapper__action-item:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-container-main{display:flex;height:calc(100% - 60px)}.ibiz-chat-container-main__left{flex-shrink:0;width:200px;height:100%;border-right:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-container-main__right{display:flex;flex-direction:column;flex-grow:1;height:100%}.ibiz-chat-container-main__default{display:flex;flex-direction:column;flex-grow:1;height:calc(100% - 60px)}.ibiz-chat-container-content{flex-grow:1;overflow:hidden}.ibiz-chat-container-footer{flex-shrink:0;padding:3px 6px;border-top:1px solid var(--ibiz-ai-chat-border-color)}
diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.12/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.12/index.system.min.js
new file mode 100644
index 0000000000000000000000000000000000000000..cda9d43105b05378a1791ee5e6504e3807bf1afa
--- /dev/null
+++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.12/index.system.min.js
@@ -0,0 +1 @@
+!function(){function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)}function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,n)}function n(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=r(t);if(e){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)}(this,n)}}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}function o(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||c(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==e);s=!0);}catch(t){l=!0,r=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(t,e)||c(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),z(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;z(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:I(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),y}},e}function f(t,e,n,i,r,o,a){try{var c=t[o](a),s=c.value}catch(l){return void n(l)}c.done?e(s):Promise.resolve(s).then(i,r)}function d(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){f(o,i,r,a,c,"next",t)}function c(t){f(o,i,r,a,c,"throw",t)}a(void 0)}))}}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var n=0;n2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===c[a]&&(c[a]=t.defaultProps[a]);return z(t,c,i,o,null)}function z(t,e,n,i,r){var o={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++f:r};return null==r&&null!=l.vnode&&l.vnode(o),o}function M(t){return t.children}function I(t,e){this.props=t,this.context=e}function L(t,e){if(null==e)return t.__?L(t.__,t.__.__k.indexOf(t)+1):null;for(var n;ee&&g.sort(x));H.__r=0}function j(t,e,n,i,r,o,a,c,s,l,u){var h,f,d,p,v,_,m,y,g,b=0,w=i&&i.__k||N,x=w.length,k=x,E=e.length;for(n.__k=[],h=0;h0?z(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)?(p.__=n,p.__b=n.__b+1,-1===(y=U(p,w,m=h+b,k))?d=C:(d=w[y]||C,w[y]=void 0,k--),$(t,p,d,r,o,a,c,s,l,u),v=p.__e,(f=p.ref)&&d.ref!=f&&(d.ref&&G(d.ref,null,p),u.push(f,p.__c||v,p)),null!=v&&(null==_&&(_=v),(g=d===C||null===d.__v)?-1==y&&b--:y!==m&&(y===m+1?b++:y>m?k>E-m?b+=y-m:b--:b=y(null!=s?1:0))for(;a>=0||c=0){if((s=e[a])&&r==s.key&&o===s.type)return a;a--}if(c0&&void 0!==arguments[0]?arguments[0]:"";return Q(this.namespace,this.block,t,"","")}},{key:"e",value:function(t){return t?Q(this.namespace,this.block,"",t,""):""}},{key:"m",value:function(t){return t?Q(this.namespace,this.block,"","",t):""}},{key:"be",value:function(t,e){return t&&e?Q(this.namespace,this.block,t,e,""):""}},{key:"em",value:function(t,e){return t&&e?Q(this.namespace,this.block,"",t,e):""}},{key:"bm",value:function(t,e){return t&&e?Q(this.namespace,this.block,t,"",e):""}},{key:"bem",value:function(t,e,n){return t&&e&&n?Q(this.namespace,this.block,t,e,n):""}},{key:"is",value:function(t,e){return t&&e?"".concat("is-").concat(t):""}},{key:"cssVar",value:function(t){var e={};for(var n in t)t[n]&&(e[this.cssVarName(n)]=t[n]);return e}},{key:"cssVarBlock",value:function(t){var e={};for(var n in t)t[n]&&(e[this.cssVarBlockName(n)]=t[n]);return e}},{key:"cssVarName",value:function(t){return"--".concat(this.namespace,"-").concat(t)}},{key:"cssVarBlockName",value:function(t){return"--".concat(this.namespace,"-").concat(this.block,"-").concat(t)}}]),t}();function et(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function nt(t,e){for(var n,i="",r=0,o=-1,a=0,c=0;c<=t.length;++c){if(c2){var s=i.lastIndexOf("/");if(s!==i.length-1){-1===s?(i="",r=0):r=(i=i.slice(0,s)).length-1-i.lastIndexOf("/"),o=c,a=0;continue}}else if(2===i.length||1===i.length){i="",r=0,o=c,a=0;continue}e&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+t.slice(o+1,c):i=t.slice(o+1,c),r=c-o-1;o=c,a=0}else 46===n&&-1!==a?++a:a=-1}return i}var it={resolve:function(){for(var t,e="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var r;i>=0?r=arguments[i]:(void 0===t&&(t=process.cwd()),r=t),et(r),0!==r.length&&(e=r+"/"+e,n=47===r.charCodeAt(0))}return e=nt(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(t){if(et(t),0===t.length)return".";var e=47===t.charCodeAt(0),n=47===t.charCodeAt(t.length-1);return 0!==(t=nt(t,!e)).length||e||(t="."),t.length>0&&n&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return et(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e0&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":it.normalize(t)},relative:function(t,e){if(et(t),et(e),t===e)return"";if((t=it.resolve(t))===(e=it.resolve(e)))return"";for(var n=1;nc){if(47===e.charCodeAt(o+l))return e.slice(o+l+1);if(0===l)return e.slice(o+l)}else r>c&&(47===t.charCodeAt(n+l)?s=l:0===l&&(s=0));break}var u=t.charCodeAt(n+l);if(u!==e.charCodeAt(o+l))break;47===u&&(s=l)}var h="";for(l=n+s+1;l<=i;++l)l!==i&&47!==t.charCodeAt(l)||(0===h.length?h+="..":h+="/..");return h.length>0?h+e.slice(o+s):(o+=s,47===e.charCodeAt(o)&&++o,e.slice(o))},_makeLong:function(t){return t},dirname:function(t){if(et(t),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,r=!0,o=t.length-1;o>=1;--o)if(47===(e=t.charCodeAt(o))){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"//":t.slice(0,i)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');et(t);var n,i=0,r=-1,o=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var a=e.length-1,c=-1;for(n=t.length-1;n>=0;--n){var s=t.charCodeAt(n);if(47===s){if(!o){i=n+1;break}}else-1===c&&(o=!1,c=n+1),a>=0&&(s===e.charCodeAt(a)?-1==--a&&(r=n):(a=-1,r=c))}return i===r?r=c:-1===r&&(r=t.length),t.slice(i,r)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":t.slice(i,r)},extname:function(t){et(t);for(var e=-1,n=0,i=-1,r=!0,o=0,a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(47!==c)-1===i&&(r=!1,i=a+1),46===c?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!r){n=a+1;break}}return-1===e||-1===i||0===o||1===o&&e===i-1&&e===n+1?"":t.slice(e,i)},format:function(t){if(null===t||"object"!==p(t))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+p(t));return function(t,e){var n=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+i:n+t+i:i}("/",t)},parse:function(t){et(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var n,i=t.charCodeAt(0),r=47===i;r?(e.root="/",n=1):n=0;for(var o=-1,a=0,c=-1,s=!0,l=t.length-1,u=0;l>=n;--l)if(47!==(i=t.charCodeAt(l)))-1===c&&(s=!1,c=l+1),46===i?-1===o?o=l:1!==u&&(u=1):-1!==o&&(u=-1);else if(!s){a=l+1;break}return-1===o||-1===c||0===u||1===u&&o===c-1&&o===a+1?-1!==c&&(e.base=e.name=0===a&&r?t.slice(1,c):t.slice(a,c)):(0===a&&r?(e.name=t.slice(1,o),e.base=t.slice(1,c)):(e.name=t.slice(a,o),e.base=t.slice(a,c)),e.ext=t.slice(o,c)),a>0?e.dir=t.slice(0,a-1):r&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};function rt(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function ot(){return"".concat(rt()+rt(),"-").concat(rt(),"-").concat(rt(),"-").concat(rt(),"-").concat(rt()).concat(rt()).concat(rt())}it.posix=it;var at=function(){function t(){v(this,t)}return m(t,null,[{key:"copy",value:function(t){return this.inputElement||(this.inputElement=document.createElement("input"),this.inputElement.style.position="absolute",this.inputElement.style.left="-9999px",document.body.appendChild(this.inputElement)),this.inputElement.value=t,this.inputElement.select(),document.execCommand("copy")}}]),t}();y(at,"inputElement",null);var ct=function(){function t(){v(this,t)}var e,n,i,r,o,a,c,s,l,u;return m(t,null,[{key:"checkDataBaseExists",value:(u=d(h().mark((function t(e){var n;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,indexedDB.databases();case 3:return n=t.sent,t.abrupt("return",n.some((function(t){return t.name===e})));case 7:return t.prev=7,t.t0=t.catch(0),console.error("检查数据库是否存在时出错:",t.t0),t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t,null,[[0,7]])}))),function(t){return u.apply(this,arguments)})},{key:"deleteDatabase",value:(l=d(h().mark((function e(n){var i,r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.lastLink&&(null===(i=(r=t.lastLink).close)||void 0===i||i.call(r)),e.abrupt("return",new Promise((function(t,e){var i=indexedDB.deleteDatabase(n);i.onsuccess=function(){t(!0)},i.onerror=function(){t(!1)},i.onblocked=function(){console.warn("删除数据库 ".concat(n," 被阻塞,可能有其他连接正在使用该数据库。")),e(new Error("删除数据库 ".concat(n," 被阻塞")))}})));case 2:case"end":return e.stop()}}),e)}))),function(t){return l.apply(this,arguments)})},{key:"checkTableExists",value:(s=d(h().mark((function e(n,i){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.checkDataBaseExists(n);case 2:if(e.sent){e.next=5;break}return e.abrupt("return",!1);case 5:return e.abrupt("return",new Promise((function(e,r){var o=indexedDB.open(n);o.onupgradeneeded=function(e){t.db=e.target.result,t.version=t.db.version},o.onsuccess=function(n){t.db=n.target.result,t.lastLink=o.result;var r=t.db.objectStoreNames.contains(i);o.result.close(),e(r)},o.onerror=function(t){r(t.target.error)}})));case 6:case"end":return e.stop()}}),e)}))),function(t,e){return s.apply(this,arguments)})},{key:"createTable",value:(c=d(h().mark((function e(n,i,r){var o,a=arguments;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=a.length>3&&void 0!==a[3]&&a[3],e.abrupt("return",new Promise((function(e){var a,c;t.version+=1,t.lastLink&&(null===(a=(c=t.lastLink).close)||void 0===a||a.call(c));var s=indexedDB.open(n,t.version);s.onupgradeneeded=function(e){if(t.db=e.target.result,!t.db.objectStoreNames.contains(i)){var n={};r?n.keyPath=r:o&&(n.autoIncrement=!0),t.db.createObjectStore(i,n)}},s.onsuccess=function(){t.lastLink=s.result,s.result.close(),e(!0)},s.onerror=function(){e(!1)}})));case 2:case"end":return e.stop()}}),e)}))),function(t,e,n){return c.apply(this,arguments)})},{key:"deleteTable",value:(a=d(h().mark((function e(n,i){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var r,o;t.version+=1,t.lastLink&&(null===(r=(o=t.lastLink).close)||void 0===r||r.call(o));var a=indexedDB.open(n,t.version);a.onupgradeneeded=function(e){t.db=e.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(i)&&t.db.deleteObjectStore(i)},a.onsuccess=function(n){t.db=n.target.result,t.lastLink=a.result,a.result.close(),e(!0)},a.onerror=function(){a.result.close(),e(!1)}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return a.apply(this,arguments)})},{key:"addData",value:(o=d(h().mark((function e(n,i,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(i)){var o=t.db.transaction([i],"readwrite").objectStore(i).add(r);o.onsuccess=function(t){e(r)},o.onerror=function(){e(null)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e,n){return o.apply(this,arguments)})},{key:"deleteData",value:(r=d(h().mark((function e(n,i,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(i)){var o=t.db.transaction([i],"readwrite").objectStore(i).delete(r);o.onsuccess=function(t){e(!0)},o.onerror=function(){e(!1)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e,n){return r.apply(this,arguments)})},{key:"updateData",value:(i=d(h().mark((function e(n,i,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(i)){var o=t.db.transaction([i],"readwrite").objectStore(i).put(r);o.onsuccess=function(t){e(r)},o.onerror=function(){e(r)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e,n){return i.apply(this,arguments)})},{key:"getData",value:(n=d(h().mark((function e(n,i,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(i)){var c=t.db.transaction([i],"readonly").objectStore(i).get(r);c.onsuccess=function(t){e(c.result)},c.onerror=function(){o(new Error("未找到数据".concat(r)))}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e,i){return n.apply(this,arguments)})},{key:"getAllData",value:(e=d(h().mark((function e(n,i){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){var o=indexedDB.open(n);o.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=o.result,t.db.objectStoreNames.contains(i)){var r=t.db.transaction([i],"readonly").objectStore(i).getAll();r.onsuccess=function(t){e(r.result)},r.onerror=function(){e([])}}o.result.close()},o.onerror=function(){o.result.close(),r()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,n){return e.apply(this,arguments)})}]),t}();y(ct,"version",1),y(ct,"db",null),y(ct,"lastLink",void 0);var st,lt,ut,ht,ft=function(){function t(e){v(this,t),y(this,"options",void 0),this.options=u({multiple:!0,accept:"*/*",maxSize:5242880},e)}var e,n;return m(t,[{key:"openFilePicker",value:function(){var t=this,e=document.createElement("input");e.type="file",e.multiple=this.options.multiple,e.accept=this.options.accept||"",e.onchange=function(e){var n=Array.from(e.target.files||[]);t.handleFiles(n)},e.click()}},{key:"handleFiles",value:(n=d(h().mark((function t(e){var n,i,r,o=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.length){t.next=2;break}return t.abrupt("return");case 2:return r=e.filter((function(t){var e,n;return!(o.options.maxSize&&t.size>o.options.maxSize&&(null===(e=(n=o.options).onError)||void 0===e||e.call(n,new Error("文件大小超过限制 (".concat(o.formatSize(t.size)," > ").concat(o.formatSize(o.options.maxSize),")")),t),1))})),null===(n=(i=this.options).onSelect)||void 0===n||n.call(i,r),t.next=6,Promise.all(r.map((function(t){return o.processFile(t)})));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"processFile",value:(e=d(h().mark((function t(e){var n,i,r,o,a,c,s,l,u=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a=function(t){var n,i;null===(n=(i=u.options).onProgress)||void 0===n||n.call(i,e,t)},t.next=4,this.options.onUpload(e,a);case 4:c=t.sent,null===(n=(i=this.options).onProgress)||void 0===n||n.call(i,e,100),null===(r=(o=this.options).onSuccess)||void 0===r||r.call(o,c,e),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),null===(s=(l=this.options).onError)||void 0===s||s.call(l,t.t0 instanceof Error?t.t0:new Error("上传失败"),e);case 12:case"end":return t.stop()}}),t,this,[[0,9]])}))),function(t){return e.apply(this,arguments)})},{key:"formatSize",value:function(t){if(0===t)return"0 B";var e=Math.floor(Math.log(t)/Math.log(1024));return"".concat((t/Math.pow(1024,e)).toFixed(2)," ").concat(["B","KB","MB","GB"][e])}}]),t}(),dt=function(){function t(){v(this,t)}return m(t,null,[{key:"getCdataContent",value:function(t){if(!t)return null;var e=Array.from(t.childNodes).find((function(t){return t.nodeType===t.CDATA_SECTION_NODE}));return(null==e?void 0:e.nodeValue)||t.textContent}},{key:"parse",value:function(t){var e=this,n=(new DOMParser).parseFromString(t,"text/xml");return Array.from(n.querySelectorAll("resource")).map((function(t){var n=t.getAttribute("type")||"",i=t.querySelector("data"),r=t.querySelector("metadata");try{var o=e.getCdataContent(i),a=e.getCdataContent(r),c=o?JSON.parse(o):{},s=a?JSON.parse(a):{};return{id:c.id,type:n,data:c,metadata:s}}catch(On){throw new Error("XML 解析错误: ".concat(On.message))}}))}},{key:"parseMixedContent",value:function(t){var e=/]*>[\s\S]*?<\/resources>/i.exec(t);if(!e)return{resources:[],remainingText:t,hasResources:!1};var n=a(e,1)[0],i=e.index,r=i+n.length,o=(t.slice(0,i)+t.slice(r)).replace(/\n/g,"");try{return{resources:this.parse(n),remainingText:o,hasResources:!0}}catch(c){return{resources:[],remainingText:o,hasResources:!0,error:"资源解析失败: ".concat(c.message)}}}},{key:"stringify",value:function(t){var e=document.implementation.createDocument(null,null,null),n=e.createElement("resources");n.setAttribute("version","1.0");var i=function(t){return"\n".concat(" ".repeat(t))};return t.forEach((function(t){n.appendChild(e.createTextNode(i(1)));var r=e.createElement("resource");r.setAttribute("type",t.type),r.setAttribute("version","1.0");var o=function(t,n){var r=e.createElement(t);r.appendChild(e.createTextNode(i(2)));var o=e.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(e.createTextNode(i(1))),r};r.appendChild(e.createTextNode(i(2))),r.appendChild(o("data",t.data)),r.appendChild(e.createTextNode(i(2))),r.appendChild(o("metadata",t.metadata)),r.appendChild(e.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(e.createTextNode("\n")),e.appendChild(n),(new XMLSerializer).serializeToString(e).replace(/>\n<")}}]),t}(),pt=0,vt=[],_t=[],mt=l.__b,yt=l.__r,gt=l.diffed,bt=l.__c,wt=l.unmount;function xt(t,e){l.__h&&l.__h(lt,t,pt||e),pt=0;var n=lt.__H||(lt.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:_t}),n.__[t]}function kt(t){return pt=1,function(t,e,n){var i=xt(st++,2);if(i.t=t,!i.__c&&(i.__=[n?n(e):Lt(void 0,e),function(t){var e=i.__N?i.__N[0]:i.__[0],n=i.t(e,t);e!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=lt,!lt.u)){var r=function(t,e,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(t){return t.__c}));if(r.every((function(t){return!t.__N})))return!o||o.call(this,t,e,n);var a=!1;return r.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),!(!a&&i.__c.props===t)&&(!o||o.call(this,t,e,n))};lt.u=!0;var o=lt.shouldComponentUpdate,a=lt.componentWillUpdate;lt.componentWillUpdate=function(t,e,n){if(this.__e){var i=o;o=void 0,r(t,e,n),o=i}a&&a.call(this,t,e,n)},lt.shouldComponentUpdate=r}return i.__N||i.__}(Lt,t)}function Ct(t,e){var n=xt(st++,3);!l.__s&&It(n.__H,e)&&(n.__=t,n.i=e,lt.__H.__h.push(n))}function Nt(t){return pt=5,Et((function(){return{current:t}}),[])}function Et(t,e){var n=xt(st++,7);return It(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function Tt(t,e){return pt=8,Et((function(){return t}),e)}function St(){for(var t;t=vt.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(zt),t.__H.__h.forEach(Mt),t.__H.__h=[]}catch(In){t.__H.__h=[],l.__e(In,t.__v)}}l.__b=function(t){lt=null,mt&&mt(t)},l.__r=function(t){yt&&yt(t),st=0;var e=(lt=t.__c).__H;e&&(ut===lt?(e.__h=[],lt.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=_t,t.__N=t.i=void 0}))):(e.__h.forEach(zt),e.__h.forEach(Mt),e.__h=[],st=0)),ut=lt},l.diffed=function(t){gt&>(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==vt.push(e)&&ht===l.requestAnimationFrame||((ht=l.requestAnimationFrame)||Ot)(St)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==_t&&(t.__=t.__V),t.i=void 0,t.__V=_t}))),ut=lt=null},l.__c=function(t,e){e.some((function(t){try{t.__h.forEach(zt),t.__h=t.__h.filter((function(t){return!t.__||Mt(t)}))}catch(Wt){e.some((function(t){t.__h&&(t.__h=[])})),e=[],l.__e(Wt,t.__v)}})),bt&&bt(t,e)},l.unmount=function(t){wt&&wt(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{zt(t)}catch(t){e=t}})),n.__H=void 0,e&&l.__e(e,n.__v))};var At="function"==typeof requestAnimationFrame;function Ot(t){var e,n=function(){clearTimeout(i),At&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);At&&(e=requestAnimationFrame(n))}function zt(t){var e=lt,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),lt=e}function Mt(t){var e=lt;t.__c=t.__(),lt=e}function It(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function Lt(t,e){return"function"==typeof e?e(t):e}function Dt(){throw new Error("Cycle detected")}var Pt=Symbol.for("preact-signals");function Ht(){if(Ut>1)Ut--;else{for(var t,e=!1;void 0!==Ft;){var n=Ft;for(Ft=void 0,Vt++;void 0!==n;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Xt(n))try{n.c()}catch(n){e||(t=n,e=!0)}n=i}}if(Vt=0,Ut--,e)throw t}}var jt,Bt,Rt=void 0,Ft=void 0,Ut=0,Vt=0,Wt=0;function qt(t){if(void 0!==Rt){var e=t.n;if(void 0===e||e.t!==Rt)return e={i:0,S:t,p:Rt.s,n:void 0,t:Rt,e:void 0,x:void 0,r:e},void 0!==Rt.s&&(Rt.s.n=e),Rt.s=e,t.n=e,32&Rt.f&&t.S(e),e;if(-1===e.i)return e.i=0,void 0!==e.n&&(e.n.p=e.p,void 0!==e.p&&(e.p.n=e.n),e.p=Rt.s,e.n=void 0,Rt.s.n=e,Rt.s=e),e}}function Yt(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}function $t(t){return new Yt(t)}function Xt(t){for(var e=t.s;void 0!==e;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function Gt(t){for(var e=t.s;void 0!==e;e=e.n){var n=e.S.n;if(void 0!==n&&(e.r=n),e.S.n=e,e.i=-1,void 0===e.n){t.s=e;break}}}function Jt(t){for(var e=t.s,n=void 0;void 0!==e;){var i=e.p;-1===e.i?(e.S.U(e),void 0!==i&&(i.n=e.n),void 0!==e.n&&(e.n.p=i)):n=e,e.S.n=e.r,void 0!==e.r&&(e.r=void 0),e=i}t.s=n}function Zt(t){Yt.call(this,void 0),this.x=t,this.s=void 0,this.g=Wt-1,this.f=4}function Kt(t){return new Zt(t)}function Qt(t){var e=t.u;if(t.u=void 0,"function"==typeof e){Ut++;var n=Rt;Rt=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,te(t),e}finally{Rt=n,Ht()}}}function te(t){for(var e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Qt(t)}function ee(t){if(Rt!==this)throw new Error("Out-of-order effect");Jt(this),Rt=t,this.f&=-2,8&this.f&&te(this),Ht()}function ne(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function ie(t){var e=new ne(t);try{e.c()}catch(t){throw e.d(),t}return e.d.bind(e)}function re(t,e){l[t]=e.bind(null,l[t]||function(){})}function oe(t){Bt&&Bt(),Bt=t&&t.S()}function ae(t){var e=this,n=t.data,i=se(n);i.value=n;var r=Et((function(){for(var t=e.__v;t=t.__;)if(t.__c){t.__c.__$f|=4;break}return e.__$u.c=function(){var t;_(r.peek())||3!==(null==(t=e.base)?void 0:t.nodeType)?(e.__$f|=1,e.setState({})):e.base.data=r.peek()},Kt((function(){var t=i.value.value;return 0===t?0:!0===t?"":t||""}))}),[]);return r.value}function ce(t,e,n,i){var r=e in t&&void 0===t.ownerSVGElement,o=$t(n);return{o:function(t,e){o.value=t,i=e},d:ie((function(){var n=o.value.value;i[e]!==n&&(i[e]=n,r?t[e]=n:n?t.setAttribute(e,n):t.removeAttribute(e))}))}}function se(t){return Et((function(){return $t(t)}),[])}function le(t){var e=Nt(t);return e.current=t,jt.__$f|=4,Et((function(){return Kt((function(){return e.current()}))}),[])}Yt.prototype.brand=Pt,Yt.prototype.h=function(){return!0},Yt.prototype.S=function(t){this.t!==t&&void 0===t.e&&(t.x=this.t,void 0!==this.t&&(this.t.e=t),this.t=t)},Yt.prototype.U=function(t){if(void 0!==this.t){var e=t.e,n=t.x;void 0!==e&&(e.x=n,t.e=void 0),void 0!==n&&(n.e=e,t.x=void 0),t===this.t&&(this.t=n)}},Yt.prototype.subscribe=function(t){var e=this;return ie((function(){var n=e.value,i=32&this.f;this.f&=-33;try{t(n)}finally{this.f|=i}}))},Yt.prototype.valueOf=function(){return this.value},Yt.prototype.toString=function(){return this.value+""},Yt.prototype.toJSON=function(){return this.value},Yt.prototype.peek=function(){return this.v},Object.defineProperty(Yt.prototype,"value",{get:function(){var t=qt(this);return void 0!==t&&(t.i=this.i),this.v},set:function(t){if(Rt instanceof Zt&&function(){throw new Error("Computed cannot have side-effects")}(),t!==this.v){Vt>100&&Dt(),this.v=t,this.i++,Wt++,Ut++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{Ht()}}}}),(Zt.prototype=new Yt).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Wt)return!0;if(this.g=Wt,this.f|=1,this.i>0&&!Xt(this))return this.f&=-2,!0;var t=Rt;try{Gt(this),Rt=this;var e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return Rt=t,Jt(this),this.f&=-2,!0},Zt.prototype.S=function(t){if(void 0===this.t){this.f|=36;for(var e=this.s;void 0!==e;e=e.n)e.S.S(e)}Yt.prototype.S.call(this,t)},Zt.prototype.U=function(t){if(void 0!==this.t&&(Yt.prototype.U.call(this,t),void 0===this.t)){this.f&=-33;for(var e=this.s;void 0!==e;e=e.n)e.S.U(e)}},Zt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;void 0!==t;t=t.x)t.t.N()}},Zt.prototype.peek=function(){if(this.h()||Dt(),16&this.f)throw this.v;return this.v},Object.defineProperty(Zt.prototype,"value",{get:function(){1&this.f&&Dt();var t=qt(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),ne.prototype.c=function(){var t=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var e=this.x();"function"==typeof e&&(this.u=e)}finally{t()}},ne.prototype.S=function(){1&this.f&&Dt(),this.f|=1,this.f&=-9,Qt(this),Gt(this),Ut++;var t=Rt;return Rt=this,ee.bind(this,t)},ne.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ft,Ft=this)},ne.prototype.d=function(){this.f|=8,1&this.f||te(this)},ae.displayName="_st",Object.defineProperties(Yt.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ae},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),re("__b",(function(t,e){if("string"==typeof e.type){var n,i=e.props;for(var r in i)if("children"!==r){var o=i[r];o instanceof Yt&&(n||(e.__np=n={}),n[r]=o,i[r]=o.peek())}}t(e)})),re("__r",(function(t,e){oe();var n,i=e.__c;i&&(i.__$f&=-2,void 0===(n=i.__$u)&&(i.__$u=n=function(t){var e;return ie((function(){e=this})),e.c=function(){i.__$f|=1,i.setState({})},e}())),jt=i,oe(n),t(e)})),re("__e",(function(t,e,n,i){oe(),jt=void 0,t(e,n,i)})),re("diffed",(function(t,e){var n;if(oe(),jt=void 0,"string"==typeof e.type&&(n=e.__e)){var i=e.__np,r=e.props;if(i){var o=n.U;if(o)for(var a in o){var c=o[a];void 0===c||a in i||(c.d(),o[a]=void 0)}else n.U=o={};for(var s in i){var l=o[s],u=i[s];void 0===l?(l=ce(n,s,u,r),o[s]=l):l.o(u,r)}}}t(e)})),re("unmount",(function(t,e){if("string"==typeof e.type){var n=e.__e;if(n){var i=n.U;if(i)for(var r in n.U=void 0,i){var o=i[r];o&&o.d()}}}else{var a=e.__c;if(a){var c=a.__$u;c&&(a.__$u=void 0,c.d())}}t(e)})),re("__h",(function(t,e,n,i){(i<3||9===i)&&(e.__$f|=2),t(e,n,i)})),I.prototype.shouldComponentUpdate=function(t,e){var n=this.__$u;if(!(n&&void 0!==n.s||4&this.__$f))return!0;if(3&this.__$f)return!0;for(var i in e)return!0;for(var r in t)if("__source"!==r&&t[r]!==this.props[r])return!0;for(var o in this.props)if(!(o in t))return!0;return!1};var ue=0;function he(t,e,n,i,r,o){var a,c,s={};for(c in e)"ref"==c?a=e[c]:s[c]=e[c];var u={type:t,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--ue,__source:r,__self:o};if("function"==typeof t&&(a=t.defaultProps))for(c in a)void 0===s[c]&&(s[c]=a[c]);return l.vnode&&l.vnode(u),u}var fe=function(){return he("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M843.904 783.573333 783.573333 843.904 512.042667 572.373333 240.512 843.904 180.181333 783.573333 451.712 512.042667 180.181333 240.512 240.512 180.181333 512.042667 451.712 783.573333 180.181333 843.904 240.512 572.373333 512.042667 843.904 783.573333Z"})})},de=function(){return he("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M900.64 379.808l-263.072-256.032c-36.448-35.328-105.76-35.392-142.304 0.096l-327.04 319.904c-56.416 54.72-70.72 76.704-70.72 150.976l0 143.936c0 132.768 26.976 192 186.912 192l131.872 0c81.12 0 128.448-46.656 193.952-111.264l290.016-297.696c18.592-17.984 29.248-43.968 29.248-71.264C929.504 423.36 918.976 397.6 900.64 379.808zM323.008 786.752c-52.928 0-96-43.072-96-96s43.072-96 96-96 96 43.072 96 96S375.936 786.752 323.008 786.752z"})})},pe=function(){return he("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2-8.5 2.1-13.8 10.7-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-0.9 3.7-0.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 0.7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-0.8 4.2-2.6 5-5 1.4-4.2-0.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"})})},ve=function(){return he("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M962 197.61H747v-60c0-55.14-44.86-100-100-100H377c-55.14 0-100 44.86-100 100v60H62c-11.05 0-20 8.95-20 20s8.95 20 20 20h60v630.57c0 66.17 53.83 120 120 120h540c66.17 0 120-53.83 120-120V237.61h60c11.05 0 20-8.95 20-20s-8.95-20-20-20zM637.34 457.66v260c0 12.01-10.72 21.63-23.06 19.77-9.84-1.48-16.94-10.25-16.94-20.2V458.09c0-9.95 7.1-18.72 16.94-20.2 12.34-1.86 23.06 7.76 23.06 19.77z m-210.68 0v260c0 11-9 20-20 20s-20-9-20-20v-260c0-11 9-20 20-20s20 9 20 20zM317 137.61c0-33.08 26.92-60 60-60h270c33.08 0 60 26.92 60 60v60H317v-60z"})})},_e=function(){return he("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M511.582491 63.413262C265.134543 63.413262 64.62588 263.921925 64.62588 510.369873s200.508663 446.957635 446.957635 446.957635 446.957635-200.508663 446.957635-446.957635S758.031463 63.413262 511.582491 63.413262zM509.001713 751.859903c-98.517781 0-182.467775-62.623269-214.771505-150.056598l0.327458-0.134053c-2.007727-4.036943-3.38305-8.422833-3.38305-13.237489 0-16.647145 13.494339-30.142507 30.142507-30.142507 13.389962 0 24.358781 8.877181 28.2893 20.955264l0.422625-0.172939c23.269983 65.442478 85.645612 112.503307 158.972665 112.503307 93.106538 0 168.845523-75.738985 168.845523-168.845523s-75.738985-168.845523-168.845523-168.845523c-20.432355 0-39.874149 3.980661-58.013275 10.66899l21.248953 40.742936c2.486634 2.677992 4.0175 6.2831 4.0175 10.243295 0 8.417717-8.404414 14.921851-15.365966 15.07023-0.102331 0-0.206708 0-0.309038 0-0.220011 0-0.427742 0-0.647753-0.013303l-150.579507-6.463202c-5.372358-0.234337-10.229992-3.310396-12.716626-8.093329-2.486634-4.76963-2.236947-10.509355 0.647753-15.055904l80.890308-127.179564c2.8847-4.533246 8.006348-7.151887 13.365402-6.960529 5.372358 0.234337 10.227945 3.312442 12.71458 8.095375l18.580171 35.625382c26.629497-10.855232 55.683207-16.963347 86.168522-16.963347 126.338407 0 229.130537 102.791108 229.130537 229.130537S635.340119 751.859903 509.001713 751.859903z"})})},me=function(){return he("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M891.072 822.144V167.36a34.432 34.432 0 0 0-34.432-34.432H201.856C201.856 94.848 232.704 64 270.784 64h620.288C929.152 64 960 94.848 960 132.928v620.288c0 38.08-30.848 68.928-68.928 68.928z m-68.928-551.36v620.288c0 38.08-30.848 68.928-68.928 68.928H132.928A68.928 68.928 0 0 1 64 891.072V270.784c0-38.08 30.848-68.928 68.928-68.928h620.288c38.08 0 68.928 30.848 68.928 68.928z m-137.856 137.856H201.856a34.432 34.432 0 0 0 0 68.864h482.432a34.432 34.432 0 0 0 0-68.864z m0 206.72H201.856a34.432 34.432 0 0 0 0 68.864h482.432a34.432 34.432 0 0 0 0-68.864z"})})},ye=function(){return he("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M547.4 197.4v46l200.3 0.1L546.1 444l32.4 32.6 201.9-200.7v200.9h46V197.5zM471.4 584.4l-32.6-32.6L243.6 747V547.9h-46v278.7h279v-46H275z"})})},ge=function(){return he("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M544 480V282.944h52.224l0.064 107.968L763.072 224l36.928 36.928-166.976 166.976 108.032-0.128V480H544zM260.928 800l-36.928-36.928 166.912-166.784-107.968-0.064V544H480v197.056h-52.224l0.064-107.968L260.928 800z"})})},be=function(){return he("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M960 544H64a32 32 0 1 1 0-64h896a32 32 0 1 1 0 64"})})},we=function(){return he("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[he("path",{d:"M481.0752 263.3728l50.9952 1.024 1.8432-105.8816-50.9952-0.8192z"}),he("path",{d:"M486.441426 180.895362a66.56 66.56 0 1 0 42.091944-126.290153 66.56 66.56 0 1 0-42.091944 126.290153Z"}),he("path",{d:"M138.8544 664.3712c-52.8384 0-95.8464-43.008-95.8464-95.8464s43.008-95.8464 95.8464-95.8464M880.0256 472.6784c52.8384 0 95.8464 43.008 95.8464 95.8464s-43.008 95.8464-95.8464 95.8464"}),he("path",{d:"M507.4944 220.5696c-220.16 0-398.7456 162.816-398.7456 363.7248s178.5856 363.7248 398.7456 363.7248 398.7456-162.816 398.7456-363.7248-178.5856-363.7248-398.7456-363.7248z m0 559.9232c-166.2976 0-301.2608-100.5568-301.2608-224.4608s134.9632-224.4608 301.2608-224.4608S808.7552 432.128 808.7552 556.032 673.792 780.4928 507.4944 780.4928z"}),he("path",{d:"M319.6928 556.032a47.9232 38.912 90 1 0 77.824 0 47.9232 38.912 90 1 0-77.824 0Z"}),he("path",{d:"M617.472 556.032a47.9232 38.912 90 1 0 77.824 0 47.9232 38.912 90 1 0-77.824 0Z"})]})},xe=function(){return he("svg",{viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[he("path",{d:"M5.856 17.121a.979.979 0 0 1-.327-.06.839.839 0 0 1-.283-.177.739.739 0 0 1-.187-.255.724.724 0 0 1-.07-.303l-.02-1.609a4.663 4.663 0 0 1-1.446-.455 4.252 4.252 0 0 1-.637-.401c-.199-.146-.385-.31-.553-.492a4.442 4.442 0 0 1-.45-.577 4.303 4.303 0 0 1-.327-.637 3.823 3.823 0 0 1-.206-.686 3.729 3.729 0 0 1-.064-.704V6.478c0-.261.025-.516.077-.771a4.43 4.43 0 0 1 .244-.747 4.062 4.062 0 0 1 .932-1.28c.2-.183.418-.347.65-.493.23-.145.482-.267.739-.364a4.21 4.21 0 0 1 .81-.225c.27-.054.553-.078.835-.078H8.55c.103 0 .2.018.29.054a.7.7 0 0 1 .411.376.667.667 0 0 1-.161.766.736.736 0 0 1-.25.151.764.764 0 0 1-.29.055H5.573c-.186 0-.366.012-.54.049-.18.03-.353.079-.52.145-.167.061-.328.14-.482.237-.148.091-.29.2-.418.316a2.897 2.897 0 0 0-.347.388c-.097.14-.187.286-.257.444a2.473 2.473 0 0 0-.206.977v4.287c0 .17.013.333.051.503a2.549 2.549 0 0 0 .772 1.33 2.721 2.721 0 0 0 .913.559c.167.066.347.115.527.152.18.03.36.048.546.048a.904.904 0 0 1 .61.23.848.848 0 0 1 .194.262.84.84 0 0 1 .07.303l.007.99 1.915-1.293a2.877 2.877 0 0 1 1.64-.492h2.372c.186 0 .366-.018.54-.048.18-.03.353-.08.52-.146.168-.067.329-.146.483-.237.148-.091.29-.2.418-.316.128-.121.244-.249.347-.388a2.8 2.8 0 0 0 .257-.444 2.47 2.47 0 0 0 .206-.977V8.585a.646.646 0 0 1 .225-.492.679.679 0 0 1 .244-.152.814.814 0 0 1 .585 0c.09.03.174.085.244.152a.657.657 0 0 1 .225.492V10.8c0 .261-.032.516-.083.771a4.192 4.192 0 0 1-.245.74c-.109.244-.244.468-.398.687a3.735 3.735 0 0 1-.534.6c-.2.183-.418.347-.65.493a4.134 4.134 0 0 1-.738.364 4.7 4.7 0 0 1-.81.225c-.27.054-.553.079-.836.079h-1.877c-.604 0-1.144.164-1.633.491l-2.54 1.713a.913.913 0 0 1-.514.157z",fill:"currentColor"}),he("path",{d:"M15.866 4.125h-4.174c-.41 0-.741.313-.741.7 0 .387.332.7.741.7h4.174c.41 0 .742-.313.742-.7 0-.387-.332-.7-.742-.7z",fill:"currentColor"}),he("path",{d:"M14.537 2.932c0-.396-.34-.717-.759-.717s-.758.32-.758.717v3.786c0 .396.34.717.758.717.42 0 .76-.321.76-.717V2.932z",fill:"currentColor"})]})},ke=function(){return he("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:he("path",{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"})})},Ce=function(){var t=1e3,e=140,n=250,i=.8;return he("svg",{fill:"currentColor",viewBox:"0 0 ".concat(t," ").concat(t),xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:Array.from({length:4}).map((function(t,r){return he("rect",{fill:"currentColor",rx:70,ry:70,height:n,width:e,x:286.66666666666663*r,y:375,children:[he("animate",{attributeName:"height",values:"".concat(n,"; ").concat(500,"; ").concat(n),keyTimes:"0; 0.5; 1",dur:"".concat(i,"s"),begin:"".concat(.2*r,"s"),repeatCount:"indefinite"}),he("animate",{attributeName:"y",values:"".concat(375,"; ").concat(250,"; ").concat(375),keyTimes:"0; 0.5; 1",dur:"".concat(i,"s"),begin:"".concat(.2*r,"s"),repeatCount:"indefinite"})]},r)}))})},Ne=function(t){return he("svg",{className:t.className,onClick:t.onClick,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M128 384a128 128 0 1 1 0 256 128 128 0 0 1 0-256z m768 0a128 128 0 1 1 0 256 128 128 0 0 1 0-256z m-372.4288 0a128 128 0 1 1 0 256 128 128 0 0 1 0-256z"})})},Ee=function(t){return he("svg",{className:t.className,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:he("path",{d:"M498.33984 607.8464c-10.99776-32.9728-50.09408-73.5232-82.6368-85.74976L150.9376 422.8096c-38.54336-14.4384-36.98688-69.46816 2.27328-81.73568L844.92288 124.90752c33.30048-10.40384 64.57344 20.8896 54.1696 54.1696L682.92608 870.78912a43.2128 43.2128 0 0 1-81.36704 3.25632 121682.5344 121682.5344 0 0 1-103.2192-266.19904z"})})},Te=function(t){return he("svg",{xmlns:"http://www.w3.org/2000/svg",className:t.className,viewBox:"0 0 512 512",children:he("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 184l144 144 144-144"})})},Se=function(t){return he("svg",{xmlns:"http://www.w3.org/2000/svg",className:"".concat(t.className," icon"),viewBox:"0 0 512 512",children:he("path",{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm108.25 138.29l-134.4 160a16 16 0 01-12 5.71h-.27a16 16 0 01-11.89-5.3l-57.6-64a16 16 0 1123.78-21.4l45.29 50.32 122.59-145.91a16 16 0 0124.5 20.58z"})})},Ae=function(t){return he("svg",{className:t.className,width:"16",height:"16",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",children:he("circle",{cx:"25",cy:"25",r:"20",stroke:"currentColor",strokeWidth:"5",fill:"none",strokeDasharray:"31.415, 31.415",strokeLinecap:"round",children:he("animateTransform",{attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"1s",repeatCount:"indefinite"})})})},Oe=function(){return he("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:he("path",{d:"M704 256v490.666667a170.666667 170.666667 0 0 1-170.666667 170.666666 170.666667 170.666667 0 0 1-170.666666-170.666666V213.333333A106.666667 106.666667 0 0 1 469.333333 106.666667 106.666667 106.666667 0 0 1 576 213.333333v448a42.666667 42.666667 0 0 1-42.666667 42.666667 42.666667 42.666667 0 0 1-42.666666-42.666667V256H426.666667v405.333333a106.666667 106.666667 0 0 0 106.666666 106.666667 106.666667 106.666667 0 0 0 106.666667-106.666667V213.333333a170.666667 170.666667 0 0 0-170.666667-170.666666 170.666667 170.666667 0 0 0-170.666666 170.666666v533.333334a234.666667 234.666667 0 0 0 234.666666 234.666666 234.666667 234.666667 0 0 0 234.666667-234.666666V256h-64z"})})},ze=function(){return he("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[he("path",{d:"M842.666667 285.866667l-187.733334-187.733334c-14.933333-14.933333-32-21.333333-53.333333-21.333333H234.666667C194.133333 74.666667 160 108.8 160 149.333333v725.333334c0 40.533333 34.133333 74.666667 74.666667 74.666666h554.666666c40.533333 0 74.666667-34.133333 74.666667-74.666666V337.066667c0-19.2-8.533333-38.4-21.333333-51.2z m-44.8 44.8c-2.133333 2.133333-4.266667 0-8.533334 0h-170.666666c-6.4 0-10.666667-4.266667-10.666667-10.666667V149.333333c0-2.133333 0-6.4-2.133333-8.533333 0 0 2.133333 0 2.133333 2.133333l189.866667 187.733334z m-8.533334 554.666666H234.666667c-6.4 0-10.666667-4.266667-10.666667-10.666666V149.333333c0-6.4 4.266667-10.666667 10.666667-10.666666h311.466666c-2.133333 4.266667-2.133333 6.4-2.133333 10.666666v170.666667c0 40.533333 34.133333 74.666667 74.666667 74.666667h170.666666c4.266667 0 6.4 0 10.666667-2.133334V874.666667c0 6.4-4.266667 10.666667-10.666667 10.666666z",fill:"currentColor"}),he("path",{d:"M640 693.333333H341.333333c-17.066667 0-32 14.933333-32 32s14.933333 32 32 32h298.666667c17.066667 0 32-14.933333 32-32s-14.933333-32-32-32zM640 522.666667H341.333333c-17.066667 0-32 14.933333-32 32s14.933333 32 32 32h298.666667c17.066667 0 32-14.933333 32-32s-14.933333-32-32-32zM341.333333 416h85.333334c17.066667 0 32-14.933333 32-32s-14.933333-32-32-32h-85.333334c-17.066667 0-32 14.933333-32 32s14.933333 32 32 32z",fill:"currentColor"})]})},Me=function(){return he("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:he("path",{d:"M557.248 511.68l135.776-135.744-45.248-45.28L512 466.432l-135.776-135.776-45.248 45.28 135.776 135.744-135.776 135.776 45.248 45.248L512 556.928l135.776 135.776 45.248-45.248-135.776-135.776zM512 64c247.136 0 448 200.864 448 448s-200.864 448-448 448S64 759.136 64 512 264.864 64 512 64z",fill:"currentColor"})})},Ie=function(){return he("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:he("path",{d:"M512.43945313 904.51953125c-6.06445313 0-12.12890625-1.58203125-17.57812501-4.74609375L136.70703125 689.71484375c-10.63476563-6.24023438-17.13867188-17.66601563-17.13867188-29.97070313s6.50390625-23.73046875 17.13867188-29.97070312l76.37695313-44.91210938L136.97070312 540.125c-10.63476563-6.24023438-17.13867188-17.66601563-17.13867187-29.97070313s6.50390625-23.73046875 17.13867188-29.97070312l73.38867187-43.15429688-73.125-42.890625C126.51171875 387.81054687 120.0078125 376.38476562 120.0078125 364.08007812c0-12.3046875 6.50390625-23.73046875 17.13867188-29.97070312L495.828125 122.99609375c10.8984375-6.41601563 24.34570313-6.41601563 35.24414063 0l358.15429687 210.05859375c10.63476563 6.24023438 17.13867188 17.66601563 17.13867188 29.97070313s-6.50390625 23.73046875-17.13867188 29.97070312l-73.38867188 43.15429688 73.12500001 42.890625c10.63476563 6.24023438 17.13867188 17.66601563 17.13867187 29.97070312s-6.50390625 23.73046875-17.13867187 29.97070313L812.5859375 583.89453125l76.11328125 44.6484375c10.63476563 6.24023438 17.13867188 17.66601563 17.13867188 29.97070313s-6.50390625 23.73046875-17.13867188 29.97070312l-358.59375 211.2890625c-5.44921875 3.1640625-11.6015625 4.74609375-17.66601563 4.74609375zM223.015625 659.65625l289.42382813 169.8046875 290.12695312-170.77148438-58.44726563-34.27734374L530.28125 750.18359375a34.67285156 34.67285156 0 0 1-35.24414063 0L281.7265625 625.02734375 223.015625 659.65625z m76.90429688-104.58984375l212.69531249 124.8046875 290.12695313-170.77148438-55.546875-32.60742187-216.65039063 127.6171875a34.67285156 34.67285156 0 0 1-35.24414062 0L279.00195312 477.28320312l-55.81054687 32.78320313 75.49804688 44.296875c0.43945313 0.26367188 0.79101563 0.52734375 1.23046874 0.703125z m-2.81250001-147.83203125l215.68359376 126.5625 216.12304687-127.17773438c0.3515625-0.26367188 0.703125-0.43945313 1.0546875-0.61523437l72.86132813-42.890625-289.33593751-169.8046875-290.12695312 170.68359375 72.59765625 42.62695313c0.43945313 0.17578125 0.79101563 0.43945313 1.14257813 0.61523437z"})})},Le=function(t){var e=t.items,n=se([]),i=new tt("chat-thought-chain"),r=se([]);Ct((function(){r.value=e.filter((function(t){return t.description})),r.value.length>0&&r.value.forEach((function(t,e){t.done&&(n.value=[].concat(o(n.value),[e]))}))}),[e]);return 0===r.value.length?null:he("div",{className:"".concat(i.b()," ").concat(i.is("single",1===r.value.length)),children:r.value.map((function(t,e){if(t.description){var r=n.value.includes(e);return he("div",{className:"".concat(i.e("item")," ").concat(i.is("collapsed",r)),children:[he("div",{className:i.e("item-icon"),children:t.icon||he("span",{children:e})}),he("div",{className:i.e("item-content"),children:[he("div",{className:i.e("item-title"),onClick:function(){return function(t){n.value.includes(t)?n.value=n.value.filter((function(e){return e!==t})):n.value=[].concat(o(n.value),[t])}(e)},children:[t.title,he(Te,{className:i.e("icon")})]}),he("div",{className:i.e("item-description"),children:t.description})]})]},e)}}))})},De=new tt("markdown-message"),Pe=function(t){var e=t.message,n=t.size,i=se(ot()),r=se(null),o=Et((function(){return 20===e.state&&!0!==e.completed}),[e.state,e.completed]),a=Et((function(){return 20===e.state&&!0===e.completed}),[e.state,e.completed]),c=se({title:"思考过程",description:"",icon:he(Ae,{})}),l=function(t){var e=t.indexOf(""),n=t.indexOf(""),i="",r="",o=!1;return-1===n?(o=!1,i=t.slice(e+7),r=""):(o=!0,i=t.slice(e+7,n),r=t.slice(n+8)),{isThoughtCompleted:o,thoughtContent:i,answerContent:r}};return Ct((function(){if(n>=0&&r.value)if(-1!==e.content.indexOf("")){var t=l(e.content),i=t.isThoughtCompleted,o=t.thoughtContent,a=t.answerContent;i&&(c.value.icon=he(i?Se:Ae,{})),o&&(c.value.description=o),a&&r.value.setMarkdown(a)}else r.value.setMarkdown(e.content)}),[e,n]),Ct((function(){var t="";if(-1!==e.content.indexOf("")){var n=l(e.content),o=n.isThoughtCompleted,a=n.thoughtContent,u=n.answerContent;c.value={title:"思考过程",description:a||"",icon:he(o?Se:Ae,{})},u&&(t=u)}else t=e.content;r.value=new s({id:i,value:t||"",editor:{defaultModel:"previewOnly"}})}),[]),he("div",{className:"".concat(De.b()," ").concat(De.is("loading",o)),children:[he("div",{className:De.b("header"),children:[he("div",{className:De.be("header","caption"),children:"AI "}),t.children,a?he("div",{className:De.be("header","timeout"),children:"请求超时"}):null]}),he("div",{className:"".concat(De.b("content")," pre-wrap-container"),children:[he(Le,{items:[c.value]}),he("div",{id:i})]}),he("div",{className:De.b("footer")})]})},He=new tt("ossfile-material"),je=function(t){var e=le((function(){return t.material.data.name})),n=le((function(){return t.material.metadata.size})),i=le((function(){var e=t.material.metadata.state;return"successed"===e?"上传成功":"uploading"===e?"上传中":"failed"===e?"上传失败":"未知状态"})),r=le((function(){switch(t.material.metadata.state){case"successed":return"#1890ff";case"uploading":return"#52c41a";default:return"#ff4d4f"}}));return he("div",{className:He.b(),children:[he("div",{className:He.b("left"),children:he(ze,{})}),he("div",{className:He.b("right"),children:[he("div",{className:He.e("name"),title:e,children:e}),he("div",{className:He.e("metadata"),children:[he("div",{children:[n,"B"]}),he("div",{style:{color:r.value},children:i})]})]})]})},Be=new tt("common-material"),Re=function(t){var e,n=null===(e=t.controller.opts.questionToolbarItems)||void 0===e?void 0:e.find((function(e){return e.id===t.material.metadata.actionId})),i=le((function(){return t.material.metadata.name}));return he("div",{className:Be.b(),children:[he("div",{className:Be.b("left"),children:n&&n.icon?"function"==typeof n.icon?n.icon(O):n.icon:he(Ie,{})}),he("div",{className:Be.b("right"),children:[he("div",{className:Be.e("name"),title:i,children:i}),he("div",{className:Be.e("metadata"),children:he("div",{children:(null==n?void 0:n.label)||"素材资源"})})]})]})},Fe=new tt("chat-input-material-item"),Ue=function(t){var e=t.material,n=null;if("ossfile"===e.type)n=je;else n=Re;return he("div",{className:"".concat(Fe.b()," ").concat(Fe.is("disabled",t.disabled)),children:[he("div",{className:Fe.e("icon"),onClick:function(){t.controller.deleteMaterial(e)},children:he(Me,{})}),O(n,{material:e,controller:t.controller})]})},Ve=new tt("user-message-question"),We=function(t){var e=le((function(){return t.message.content})),n=le((function(){return dt.parseMixedContent(e.value)}));return he("div",{className:Ve.b(),children:[he("div",{className:Ve.e("user-header"),children:[t.children,he("div",{className:Ve.e("user"),children:"我"})]}),he("div",{className:Ve.e("content"),children:he("div",{dir:"auto",className:Ve.em("content","body"),children:[he("p",{dir:"auto",className:Ve.em("content","material"),children:n.value.hasResources&&n.value.resources.map((function(e){return he(Ue,{material:e,disabled:!0,controller:t.controller},e.id)}))}),he("p",{dir:"auto",className:"pre-wrap-container",children:n.value.remainingText})]})})]})},qe=new tt("error-message"),Ye=function(t){var e=le((function(){return t.message.content}));return he("div",{className:qe.b(),children:[he("div",{className:qe.b("header"),children:[he("div",{className:qe.be("header","caption"),children:"AI "}),t.children]}),he("div",{className:"".concat(qe.e("content")," pre-wrap-container"),children:he("span",{children:e})})]})},$e=new tt("unknown-message"),Xe=function(t){return he("div",{className:$e.b(),children:he("span",{className:"".concat($e.e("content")," pre-wrap-container"),children:["暂未支持的消息类型: ",t.message.type]})})},Ge=new tt("chat-message-item"),Je=function(t){var e=t.message,n=t.size,i=null;switch(e.type){case"DEFAULT":i="ASSISTANT"===e.role?Pe:We;break;case"ERROR":i=Ye;break;default:i=Xe}return he("div",{className:Ge.b(),children:O(i,{size:n,message:e,controller:t.controller,children:t.children})})},Ze=new tt("chat-toolbar"),Ke=function(t){var e=t.controller,n=t.items,i=void 0===n?[]:n,r=t.data,a=t.type,c=t.className,s=[],l="default",u=[{label:"新建对话",title:"新建对话",icon:he(xe,{}),onClick:function(){e.newDialogue()}}],h=[{label:"回填",title:"回填",icon:he(de,{}),onClick:function(){e.backfill(r)}},{label:"刷新",title:"刷新",icon:he(_e,{}),onClick:function(){e.refreshMessage(r)}},{label:"删除",title:"删除",icon:he(ve,{}),onClick:function(){e.deleteMessage(r)}},{label:"复制",title:"复制",icon:he(me,{}),onClick:function(){e.copyMessage(r)}}],f=[{label:"刷新",title:"刷新",icon:he(_e,{}),onClick:function(){e.refreshMessage(r,!0)}}];if("content"===a)switch(l="circle",r.type){case"DEFAULT":s="ASSISTANT"===r.role?[].concat(h,o(i)):[].concat(f);break;case"ERROR":s=[].concat(h,o(i))}else s=[].concat(u,o(i));var d=function(t){return"function"==typeof t.disabled?t.disabled(r):!0===t.disabled},p=Et((function(){return"content"===a&&20===(null==r?void 0:r.state)&&!0!==(null==r?void 0:r.completed)}),[null==r?void 0:r.state,null==r?void 0:r.completed]);return he("div",{className:"".concat(Ze.b()," ").concat(Ze.e(l)," ").concat(c||""),children:s.map((function(t,n){if(!function(t){return"function"==typeof t.hidden?t.hidden(r):!0===t.hidden}(t))return he("div",{className:"".concat(Ze.e("item")," ").concat(Ze.is("disabled",d(t)||p)," ").concat(c||""),title:t.title,onClick:function(n){return function(t,n){var i;d(n)||null===(i=n.onClick)||void 0===i||i.call(n,t,e.context,e.params,r)}(n,t)},children:[he("div",{className:"".concat(Ze.em("item","icon")),children:"function"==typeof t.icon?t.icon(O):t.icon}),he("div",{className:"".concat(Ze.em("item","label")),children:"function"==typeof t.label?t.label(O):t.label})]},n)}))})},Qe=new tt("chat-messages"),tn=function(t){var e=Nt(null),n=t.controller.messages;return function(t){var e=Nt(t);e.current=t,Ct((function(){return ie((function(){return e.current()}))}),[])}((function(){e.current&&n.value.length>0&&(e.current.scrollTop=e.current.scrollHeight)})),he("div",{ref:e,className:Qe.b(),children:n.value.map((function(e){var n,i=(null===(n=e.content)||void 0===n?void 0:n.length)||0;return he(Je,{size:i,message:e,controller:t.controller,children:he(Ke,{data:e,type:"content",items:t.toolbarItems,controller:t.controller})},e.messageid)}))})};function en(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var i in e)if("__source"!==i&&t[i]!==e[i])return!0;return!1}function nn(t){this.props=t}(nn.prototype=new I).isPureReactComponent=!0,nn.prototype.shouldComponentUpdate=function(t,e){return en(this.props,t)||en(this.state,e)};var rn=l.__b;l.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),rn&&rn(t)};var on=l.__e;l.__e=function(t,e,n,i){if(t.then)for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e);on(t,e,n,i)};var an=l.unmount;function cn(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=function(t,e){for(var n in e)t[n]=e[n];return t}({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return cn(t,e,n)}))),t}function sn(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return sn(t,e,n)})),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function ln(){this.__u=0,this.t=null,this.__b=null}function un(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function hn(){this.u=null,this.o=null}l.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),an&&an(t)},(ln.prototype=new I).__c=function(t,e){var n=e.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=un(i.__v),o=!1,a=function(){o||(o=!0,n.__R=null,r?r(c):c())};n.__R=a;var c=function(){if(! --i.__u){if(i.state.__a){var t=i.state.__a;i.__v.__k[0]=sn(t,t.__c.__P,t.__c.__O)}var e;for(i.setState({__a:i.__b=null});e=i.t.pop();)e.forceUpdate()}},s=!0===e.__h;i.__u++||s||i.setState({__a:i.__b=i.__v.__k[0]}),t.then(a,a)},ln.prototype.componentWillUnmount=function(){this.t=[]},ln.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=cn(this.__b,n,i.__O=i.__P)}this.__b=null}var r=e.__a&&O(M,null,t.fallback);return r&&(r.__h=null),[O(M,null,e.__a?null:t.children),r]};var fn=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(t)}}),K(O(dn,{context:e.context},t.__v),e.l)}function vn(t,e){var n=O(pn,{__v:t,i:e});return n.containerInfo=e,n}(hn.prototype=new I).__a=function(t){var e=this,n=un(e.__v),i=e.o.get(t);return i[0]++,function(r){var o=function(){e.props.revealOrder?(i.push(r),fn(e,t,i)):r()};n?n(o):o()}},hn.prototype.render=function(t){this.u=null,this.o=new Map;var e=R(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},hn.prototype.componentDidUpdate=hn.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){fn(t,n,e)}))};var _n="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,mn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,yn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,gn=/[A-Z0-9]/g,bn="undefined"!=typeof document,wn=function(t){return("undefined"!=typeof Symbol&&"symbol"==p(Symbol())?/fil|che|rad/:/fil|che|ra/).test(t)};I.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(I.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var xn=l.event;function kn(){}function Cn(){return this.cancelBubble}function Nn(){return this.defaultPrevented}l.event=function(t){return xn&&(t=xn(t)),t.persist=kn,t.isPropagationStopped=Cn,t.isDefaultPrevented=Nn,t.nativeEvent=t};var En={enumerable:!1,configurable:!0,get:function(){return this.class}},Tn=l.vnode;l.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,i={};for(var r in e){var o=e[r];if(!("value"===r&&"defaultValue"in e&&null==o||bn&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in e&&null==e.value?r="value":"download"===r&&!0===o?o="":"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||wn(e.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":yn.test(r)?r=a:-1===n.indexOf("-")&&mn.test(r)?r=r.replace(gn,"-$&").toLowerCase():null===o&&(o=void 0):a=r="oninput","oninput"===a&&i[r=a]&&(r="oninputCapture"),i[r]=o}}"select"==n&&i.multiple&&Array.isArray(i.value)&&(i.value=R(e.children).forEach((function(t){t.props.selected=-1!=i.value.indexOf(t.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=R(e.children).forEach((function(t){t.props.selected=i.multiple?-1!=i.defaultValue.indexOf(t.props.value):i.defaultValue==t.props.value}))),e.class&&!e.className?(i.class=e.class,Object.defineProperty(i,"className",En)):(e.className&&!e.class||e.class&&e.className)&&(i.class=i.className=e.className),t.props=i}(t),t.$$typeof=_n,Tn&&Tn(t)};var Sn=l.__r;l.__r=function(t){Sn&&Sn(t),t.__c};var An=l.diffed;l.diffed=function(t){An&&An(t);var e=t.props,n=t.__e;null!=n&&"textarea"===t.type&&"value"in e&&e.value!==n.value&&(n.value=null==e.value?"":e.value)};var On=new Map;function zn(t){var e=On.get(t);e&&e.destroy()}function Mn(t){var e=On.get(t);e&&e.update()}var In=null;"undefined"==typeof window?((In=function(t){return t}).destroy=function(t){return t},In.update=function(t){return t}):((In=function(t,e){return t&&Array.prototype.forEach.call(t.length?t:[t],(function(t){return function(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!On.has(t)){var e,n=null,i=window.getComputedStyle(t),r=(e=t.value,function(){a({testForHeightReduction:""===e||!t.value.startsWith(e),restoreTextAlign:null}),e=t.value}),o=function(e){t.removeEventListener("autosize:destroy",o),t.removeEventListener("autosize:update",c),t.removeEventListener("input",r),window.removeEventListener("resize",c),Object.keys(e).forEach((function(n){return t.style[n]=e[n]})),On.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,textAlign:t.style.textAlign,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",o),t.addEventListener("autosize:update",c),t.addEventListener("input",r),window.addEventListener("resize",c),t.style.overflowX="hidden",t.style.wordWrap="break-word",On.set(t,{destroy:o,update:c}),c()}function a(e){var r,o,c=e.restoreTextAlign,s=void 0===c?null:c,l=e.testForHeightReduction,u=void 0===l||l,h=i.overflowY;if(0!==t.scrollHeight&&("vertical"===i.resize?t.style.resize="none":"both"===i.resize&&(t.style.resize="horizontal"),u&&(r=function(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push([t.parentNode,t.parentNode.scrollTop]),t=t.parentNode;return function(){return e.forEach((function(t){var e=t[0],n=t[1];e.style.scrollBehavior="auto",e.scrollTop=n,e.style.scrollBehavior=null}))}}(t),t.style.height=""),o="content-box"===i.boxSizing?t.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):t.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&o>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(t.style.overflow="scroll"),o=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(t.style.overflow="hidden"),t.style.height=o+"px",s&&(t.style.textAlign=s),r&&r(),n!==o&&(t.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=o),h!==i.overflow&&!s)){var f=i.textAlign;"hidden"===i.overflow&&(t.style.textAlign="start"===f?"end":"start"),a({restoreTextAlign:f,testForHeightReduction:!0})}}function c(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(t)})),t}).destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],zn),t},In.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],Mn),t});var Ln=In,Dn=function(){function t(e){v(this,t),this.msg=e}return m(t,[{key:"messageid",get:function(){return this.msg.messageid}},{key:"state",get:function(){return this.msg.state}},{key:"role",get:function(){return this.msg.role}},{key:"type",get:function(){return this.msg.type}},{key:"content",get:function(){return this.msg.content}},{key:"completed",get:function(){return this.msg.completed}},{key:"_origin",get:function(){return this.msg}},{key:"update",value:function(t){t.content||(t.content=""),this.msg.content+=t.content}},{key:"updateCompleted",value:function(t){this.msg.completed=t}}]),t}(),Pn=function(){function t(e){v(this,t),this.data=e}return m(t,[{key:"appid",get:function(){return this.data.appid}},{key:"id",get:function(){return this.data.id}},{key:"type",get:function(){return this.data.type}},{key:"caption",get:function(){return this.data.caption}},{key:"url",get:function(){return this.data.url}},{key:"aiChat",get:function(){return this.data.aiChat}}]),t}(),Hn=function(){function t(e){v(this,t),this.material=e}return m(t,[{key:"id",get:function(){return this.material.id}},{key:"type",get:function(){return this.material.type}},{key:"metadata",get:function(){return this.material.metadata}},{key:"data",get:function(){return this.material.data}}]),t}(),jn=function(t){return t.STYLE_CACHE="ai-chat-style-cache",t.MINIMIZE_STYLY_CHCHE="ai-chat-minimize-style-cache",t.DATA_BASE_NAME="ibiz-chat",t.DATA_TABLE_NAME="history-message",t.DATA_TABLE_KEY_NAME="id",t}(jn||{}),Bn=function(){function t(e){v(this,t),y(this,"messages",$t([])),y(this,"materials",$t([])),y(this,"input",$t("")),y(this,"context",void 0),y(this,"params",void 0),y(this,"appDataEntityId",void 0),y(this,"topicId",void 0),this.opts=e,this.context=e.context,this.params=e.params,this.appDataEntityId=e.appDataEntityId,this.topicId=e.topicId,this.fecthHistory()}var e,n,i,r,a;return m(t,[{key:"fecthHistory",value:(a=d(h().mark((function t(){var e,n=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.topicId){t.next=7;break}return t.next=3,ct.getData(jn.DATA_BASE_NAME,jn.DATA_TABLE_NAME,this.topicId);case 3:if(!((e=t.sent)&&e.data&&e.data.length>0)){t.next=7;break}return e.data.forEach((function(t){var e={messageid:t.messageid,state:t.state,type:t.type,role:t.role,content:t.content,completed:!0};n.addMessage(e)})),t.abrupt("return",!0);case 7:return t.abrupt("return",this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId}));case 8:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"asyncToIndexDB",value:(r=d(h().mark((function t(){var e;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.topicId){t.next=2;break}return t.abrupt("return");case 2:return e={id:this.topicId,data:this.messages.value.map((function(t){return t._origin})),timestamp:(new Date).getTime()},t.next=5,ct.updateData(jn.DATA_BASE_NAME,jn.DATA_TABLE_NAME,e);case 5:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"setInput",value:function(t){this.input.value=t||""}},{key:"addMessage",value:function(t){var e=this.messages.value.find((function(e){return e.messageid===t.messageid}));e?(e.update(t),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new Dn(t)]),this.asyncToIndexDB()}},{key:"completeMessage",value:function(t,e){var n=this.messages.value.find((function(e){return e.messageid===t}));n&&(n.updateCompleted(e),this.messages.value=o(this.messages.value),this.asyncToIndexDB())}},{key:"replaceMessage",value:function(t){var e=this.messages.value.findIndex((function(e){return e.messageid===t.messageid}));-1!==e?(this.messages.value[e]=new Dn(t),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new Dn(t)]),this.asyncToIndexDB()}},{key:"stringlyMaterialResource",value:function(){var t="",e=[];return this.materials.value&&this.materials.value.length>0&&(this.materials.value.forEach((function(t){if("ossfile"===t.type){var n=t.metadata;n.state&&"successed"===n.state&&e.push(t)}else e.push(t)})),this.materials.value=[]),e&&e.length>0&&(t=dt.stringify(e)),t}},{key:"question",value:(i=d(h().mark((function t(e){var n;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n=this.stringlyMaterialResource())?n+="\n".concat(e):n=e,this.addMessage({state:30,messageid:ot(),role:"USER",type:"DEFAULT",content:n}),t.next=5,this.opts.question(this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(t){return"ERROR"!==t.type})).map((function(t){return t._origin})));case 5:this.opts.action&&this.opts.action("question",e);case 6:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"backfill",value:function(t){this.opts.action&&this.opts.action("backfill",t)}},{key:"deleteMessage",value:function(t){var e=this.messages.value.findIndex((function(e){return e.messageid===t.messageid}));-1!==e&&(this.messages.value.splice(e,1),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),this.opts.action&&this.opts.action("deletemsg",t)}},{key:"refreshMessage",value:(n=d(h().mark((function t(e){var n,i,r,a=arguments;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],i=this.messages.value.findIndex((function(t){return t.messageid===e.messageid})),!n){t.next=9;break}return this.messages.value.splice(i+1,this.messages.value.length-i-1),this.messages.value=o(this.messages.value),t.next=7,this.opts.question(this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(t){return"ERROR"!==t.type})).map((function(t){return t._origin})));case 7:t.next=19;break;case 9:if(i!==this.messages.value.length-1){t.next=16;break}return this.messages.value.pop(),this.messages.value=o(this.messages.value),t.next=14,this.opts.question(this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(t){return"ERROR"!==t.type})).map((function(t){return t._origin})));case 14:t.next=19;break;case 16:r=this.messages.value[i-1].content,this.messages.value.splice(i-1,2),this.question(r);case 19:this.asyncToIndexDB(),this.opts.action&&this.opts.action("refreshmsg",e);case 21:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"copyMessage",value:function(t){var e=t.content;at.copy(e),this.opts.action&&this.opts.action("copymsg",t)}},{key:"newDialogue",value:(e=d(h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.messages.value.length=0,!this.topicId){t.next=4;break}return t.next=4,ct.deleteData(jn.DATA_BASE_NAME,jn.DATA_TABLE_NAME,this.topicId);case 4:this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId});case 5:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"addMaterial",value:function(t){var e=this.materials.value.find((function(e){return e.id===t.id}));this.materials.value=e?o(this.materials.value):[].concat(o(this.materials.value),[new Hn(t)])}},{key:"replaceMaterial",value:function(t,e){var n=this.materials.value.findIndex((function(e){return e.id===t}));-1!==n?(this.materials.value[n]=new Hn(e),this.materials.value=o(this.materials.value)):this.materials.value=[].concat(o(this.materials.value),[new Hn(e)])}},{key:"deleteMaterial",value:function(t){var e=this.materials.value.findIndex((function(e){return e.id===t.id}));-1!==e&&(this.materials.value.splice(e,1),this.materials.value=o(this.materials.value))}}]),t}(),Rn=function(){function t(e){v(this,t),y(this,"topics",$t([])),y(this,"activedTopic",$t(null)),y(this,"currentTopicOptions",void 0),this.chat=e}var e,n,i,r;return m(t,[{key:"fetchHistory",value:(r=d(h().mark((function t(e){var n,i,r=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.configService(e.appid,"aitopics",e.type),t.next=3,n.load();case 3:(i=t.sent)&&i.length>0&&i.forEach((function(t){r.topics.value=[].concat(o(r.topics.value),[new Pn(t)])}));case 5:case"end":return t.stop()}}),t)}))),function(t){return r.apply(this,arguments)})},{key:"updateCurrentTopic",value:(i=d(h().mark((function t(e){var n,i,r,a;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.currentTopicOptions=e,n=this.topics.value.findIndex((function(t){return t.id===e.id})),i=new Pn(e),-1!==n?this.topics.value.splice(n,1,new Pn(e)):this.topics.value=[].concat(o(this.topics.value),[new Pn(e)]),r=this.topics.value.map((function(t){return{appid:t.appid,id:t.id,type:t.type,caption:t.caption,url:t.url,aiChat:t.aiChat}})),a=e.configService(e.appid,"aitopics",e.type),t.next=8,null==a?void 0:a.save(r);case 8:this.activedTopic.value=i;case 9:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"removeTopic",value:(n=d(h().mark((function t(e,n,i,r,a){var c,s,l,u,f;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=!0,!e.beforeDelete){t.next=5;break}return t.next=4,e.beforeDelete(n,i,r,a);case 4:s=t.sent;case 5:if(s){t.next=7;break}return t.abrupt("return");case 7:return-1!==(l=this.topics.value.findIndex((function(t){return t.id===r.id})))&&(this.topics.value.splice(l,1),this.topics.value=o(this.topics.value)),u=this.topics.value.map((function(t){return{appid:t.appid,id:t.id,type:t.type,caption:t.caption,url:t.url,aiChat:t.aiChat}})),f=e.configService(e.appid,"aitopics",e.type),t.next=13,null==f?void 0:f.save(u);case 13:return t.next=15,ct.deleteData(jn.DATA_BASE_NAME,jn.DATA_TABLE_NAME,r.id);case 15:this.topics.value.length>0&&r.id===(null===(c=this.activedTopic.value)||void 0===c?void 0:c.id)&&this.handleTopicChange(this.topics.value[0]);case 16:case"end":return t.stop()}}),t,this)}))),function(t,e,i,r,o){return n.apply(this,arguments)})},{key:"handleTopicChange",value:function(t){var e;(null===(e=this.activedTopic.value)||void 0===e?void 0:e.id)!==t.id&&(this.activedTopic.value=t,this.chat.switchAiChatController(t))}},{key:"handleTopicAction",value:(e=d(h().mark((function t(e,n,i){var r,o,a,c,s,l;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.topics.value.find((function(t){return t.id===n.id})),!(this.currentTopicOptions&&r&&r.aiChat)){t.next=7;break}if(c=r.aiChat,s=c.context,l=c.params,"DELETE"!==e){t.next=6;break}return t.next=6,this.removeTopic(this.currentTopicOptions,s,l,r,i);case 6:null===(o=(a=this.currentTopicOptions).action)||void 0===o||o.call(a,e,s,l,n,i);case 7:case"end":return t.stop()}}),t,this)}))),function(t,n,i){return e.apply(this,arguments)})}]),t}(),Fn=m((function t(e){v(this,t),this.aiChat=e})),Un=function(e){t(o,e);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return m(o,[{key:"excuteAction",value:(i=d(h().mark((function t(e,n){var i,r,o;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n||!n.onClick){t.next=5;break}return t.next=3,n.onClick(e,this.aiChat.context,this.aiChat.params);case 3:(i=t.sent)&&i.data&&i.data.length>0&&(r=i.data[0],o={id:r.id,type:r.type,data:r.data||{},metadata:r.metadata||{}},n.id&&Object.assign(o.metadata,{actionId:n.id}),this.aiChat.addMaterial(o));case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})}]),o}(Fn),Vn=function(e){t(o,e);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return m(o,[{key:"excuteAction",value:(i=d(h().mark((function t(e,n){var i,r,o,a,c,s,l,u,f,p,v=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=this.aiChat.opts.uploader,r=i.multiple,o=i.accept,a=i.maxSize,c=i.onSelect,s=i.onUpload,l=i.onSuccess,u=i.onError,f=i.onProgress,p={multiple:r||!0,accept:o||"*/*",maxSize:a||5242880,onSelect:function(t){null==c||c(t),t.length>0&&t.forEach((function(t){var e=v.buildMaterialObject(t);Object.assign(e.metadata,{state:"uploading"}),v.aiChat.addMaterial(e)}))},onUpload:function(){var t=d(h().mark((function t(e,n){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s(e,n,{context:v.aiChat.context,params:v.aiChat.params}));case 1:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),onSuccess:function(t,e){var n={id:t.id,type:"ossfile",data:{id:t.id,name:t.name},metadata:{ext:t.ext,fileext:t.fileext,fileid:t.fileid,filename:t.filename,size:t.size,filesize:t.filesize,state:"successed"}};v.aiChat.replaceMaterial(e.name,n),null==l||l(t,e)},onError:function(t,e){var n=v.buildMaterialObject(e);Object.assign(n.metadata,{state:"failed"}),v.aiChat.replaceMaterial(e.name,n),null==u||u(t,e)},onProgress:function(t,e){null==f||f(t,e)}},new ft(p).openFilePicker();case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})},{key:"buildMaterialObject",value:function(t){return{id:t.name,type:"ossfile",data:{name:t.name,id:t.name},metadata:{size:t.size,type:t.type,lastModified:t.lastModified}}}}]),o}(Fn),Wn=function(){function t(){v(this,t)}return m(t,null,[{key:"getMaterialHelper",value:function(t,e){return"ossfile"===t?new Vn(e):new Un(e)}}]),t}(),qn=function(){function t(){v(this,t),y(this,"container",void 0),y(this,"mode","DEFAULT"),y(this,"isMountedAiTopic",!1),y(this,"backupChatOptions",void 0),y(this,"aiTopic",void 0),y(this,"aiChat",void 0),this.aiTopic=new Rn(this)}var e,n;return m(t,[{key:"initIndexDB",value:(n=d(h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ct.checkTableExists(jn.DATA_BASE_NAME,jn.DATA_TABLE_NAME);case 2:if(t.sent){t.next=6;break}return t.next=6,ct.createTable(jn.DATA_BASE_NAME,jn.DATA_TABLE_NAME,jn.DATA_TABLE_KEY_NAME,!1);case 6:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})},{key:"create",value:(e=d(h().mark((function t(e){var n,i,r,o=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.initIndexDB();case 2:if(this.backupChatOptions=e,this.close(),this.container=document.createElement("div"),this.container.classList.add("ibiz-ai-chat"),document.body.appendChild(this.container),i=e.chatOptions,!e.mode||"TOPIC"!==e.mode){t.next=17;break}if(this.isMountedAiTopic){t.next=13;break}return t.next=12,this.aiTopic.fetchHistory(e.topicOptions);case 12:this.isMountedAiTopic=!0;case 13:return r=e.topicOptions,Object.assign(r,{aiChat:{caption:i.caption,context:i.context,params:i.params,appDataEntityId:i.appDataEntityId,contentToolbarItems:i.contentToolbarItems,footerToolbarItems:i.footerToolbarItems,questionToolbarItems:i.questionToolbarItems}}),t.next=17,this.aiTopic.updateCurrentTopic(r);case 17:return Object.assign(i,{topicId:null===(n=r)||void 0===n?void 0:n.id}),this.aiChat=new Bn(i),K(O(ii,{aiTopic:this.aiTopic,aiChat:this.aiChat,mode:e.mode?e.mode:"DEFAULT",containerOptions:e.containerOptions,caption:e.mode&&"TOPIC"===e.mode?"AI助手":i.caption,contentToolbarItems:i.contentToolbarItems,footerToolbarItems:i.footerToolbarItems,questionToolbarItems:i.questionToolbarItems,close:function(){o.close(),i.closed&&i.closed(i.context,i.params)},fullscreen:function(t){i.fullscreen&&i.fullscreen(t,i.context,i.params)},minimize:function(t){i.minimize&&i.minimize(t,i.context,i.params)}}),this.container),t.abrupt("return",this.aiChat);case 21:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"switchAiChatController",value:function(t){var e,n,i,r=this,o=u({},this.backupChatOptions.chatOptions);(t.aiChat&&Object.assign(o,{caption:t.aiChat.caption,context:t.aiChat.context,params:t.aiChat.params,contentToolbarItems:t.aiChat.contentToolbarItems,footerToolbarItems:t.aiChat.footerToolbarItems,questionToolbarItems:t.aiChat.questionToolbarItems,appDataEntityId:t.aiChat.appDataEntityId,topicId:t.id}),this.aiChat=new Bn(o),this.container)&&(K(null,this.container),K(O(ii,{aiTopic:this.aiTopic,aiChat:this.aiChat,mode:null!==(e=this.backupChatOptions)&&void 0!==e&&e.mode?this.backupChatOptions.mode:"DEFAULT",containerOptions:null===(n=this.backupChatOptions)||void 0===n?void 0:n.containerOptions,caption:null!==(i=this.backupChatOptions)&&void 0!==i&&i.mode&&"TOPIC"===this.backupChatOptions.mode?"AI助手":o.caption,contentToolbarItems:o.contentToolbarItems,footerToolbarItems:o.footerToolbarItems,questionToolbarItems:o.questionToolbarItems,close:function(){r.close(),o.closed&&o.closed(o.context,o.params)},fullscreen:function(t){o.fullscreen&&o.fullscreen(t,o.context,o.params)},minimize:function(t){o.minimize&&o.minimize(t,o.context,o.params)}}),this.container))}},{key:"hidden",value:function(){this.container&&(this.container.style.display="none")}},{key:"show",value:function(){this.container&&(this.container.style.display="flex")}},{key:"close",value:function(){this.container&&(K(null,this.container),this.container.remove(),this.container=void 0)}}]),t}(),Yn=(e("chat",new qn),new tt("chat-input-material")),$n=function(t){var e=t.controller.materials;return he("div",{className:Yn.b(),children:e.value.map((function(e){return he(Ue,{material:e,disabled:!1,controller:t.controller},e.id)}))})},Xn=function(t){var e=t.children,n=t.actions,i=t.content,r=t.position,o=void 0===r?"bottom":r,c=t.isOpen,s=t.onToggleOpen,l=t.onAction,h=new tt("pop"),f=function(t){var e=lt.context[t.__c],n=xt(st++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(lt)),e.props.value):t.__}(ni),d=a(kt(c||!1),2),p=d[0],v=d[1],_=Nt(null),m=Nt(null);Ct((function(){void 0!==c&&v(c)}),[c]),Ct((function(){return m.current||(m.current=document.createElement("div"),m.current.className=h.b("content-container"),document.body.appendChild(m.current)),function(){m.current&&document.body.removeChild(m.current)}}),[]),Ct((function(){var t=function(t){!_.current||_.current.contains(t.target)||t.target.closest(".".concat(h.b("content")))||t.target.closest(".ibiz-quick-edit")||t.target.closest(".ibiz-picker__transfer")||(v(!1),null==s||s(!1))};return p&&document.addEventListener("mousedown",t),function(){document.removeEventListener("mousedown",t)}}),[p,s]);return he("span",{className:"".concat(h.b("trigger-container")),children:[he("span",{className:"".concat(h.b("trigger-element")),ref:_,onClick:function(t){t.stopPropagation();var e=!p;v(e),null==s||s(e)},children:e}),p&&m.current&&vn(he("div",{className:"".concat(h.b("content")," pop-").concat(o),style:function(){if(!_.current)return{};var t=_.current.getBoundingClientRect(),e={position:"absolute",zIndex:f.zIndex+1},n={bottom:{top:t.bottom+window.scrollY,left:t.left+window.scrollX},top:{bottom:window.innerHeight-t.top+window.scrollY,left:t.left+window.scrollX},left:{top:t.top+window.scrollY,right:window.innerWidth-t.left+window.scrollX},right:{top:t.top+window.scrollY,left:t.right+window.scrollX},"top-left":{bottom:window.innerHeight-t.top+window.scrollY,right:window.innerWidth-t.left+window.scrollX}};return u(u({},e),n[o])}(),children:i||(null==n?void 0:n.map((function(t){return he("div",{className:h.b("content-item"),onMouseDown:function(e){e.stopPropagation(),null==l||l(t.id,e)},children:[t.icon&&he("img",{className:h.b("content-item__icon"),src:t.icon,alt:t.caption}),he("div",{className:h.b("content-item__caption"),children:t.caption})]},t.id)})))}),m.current)]})},Gn=new tt("chat-input"),Jn=window.SpeechRecognition||window.webkitSpeechRecognition,Zn=function(t){var e,n=a(kt(!1),2),i=n[0],r=n[1],o=Nt(null),c=t.controller.input,s=se(!1),l=se(!1),u=Nt();Jn&&!u.current&&(u.current=new Jn,u.current.onstart=function(){l.value=!0},u.current.onend=function(){l.value=!1},u.current.onresult=function(t){var e,n=null===(e=t.results)||void 0===e||null===(e=e[0])||void 0===e||null===(e=e[0])||void 0===e?void 0:e.transcript;n&&(c.value="".concat(c.value).concat(n))});var f=Tt((function(t){c.value=t.target.value}),[c]),p=le((function(){return c.value.length<=0||!0===s.value}));Ct((function(){return o.current&&Ln(o.current),function(){o.current&&Ln.destroy(o.current)}}),[o]);var v=Tt(d(h().mark((function e(){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s.value=!0,e.prev=1,n=c.value,c.value="",e.next=6,t.controller.question(n);case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error(e.t0);case 11:return e.prev=11,s.value=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[1,8,11,14]])}))),[c,s]),_=function(){var e=d(h().mark((function e(n){var i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Wn.getMaterialHelper("ossfile",t.controller),e.next=3,i.excuteAction(n);case 3:r(!1);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=d(h().mark((function e(n,i){var o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=Wn.getMaterialHelper("common",t.controller),e.next=3,o.excuteAction(n,i);case 3:r(!1);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return he("div",{className:Gn.b("wrapper"),children:[he("div",{className:Gn.b("material-wrapper"),children:he($n,{controller:t.controller})}),he("div",{className:Gn.b("main-wrapper"),children:[he("textarea",{className:Gn.e("textarea"),type:"text",rows:6,autoCorrect:"off",autoCapitalize:"off",autoComplete:"off",value:c,onInput:f,onKeyDown:function(t){"Enter"===t.code&&(t.stopPropagation(),!1===t.shiftKey&&v())},ref:o,disabled:s}),he("div",{className:Gn.b("action-wrapper"),children:[he("div",{className:"".concat(Gn.be("action-wrapper","action-item")),children:he(Xn,{content:he("div",{className:Gn.b("pop-actions"),children:[he("div",{className:Gn.b("pop-action-item"),onClick:function(t){_(t)},children:[he("span",{className:Gn.b("pop-action-item-icon"),children:he(ze,{})}),he("span",{className:Gn.b("pop-action-item-title"),children:"文件资料"})]}),null===(e=t.questionToolbarItems)||void 0===e?void 0:e.map((function(t){return he("div",{className:Gn.b("pop-action-item"),onClick:function(e){m(e,t)},children:[he("span",{className:Gn.b("pop-action-item-icon"),children:"function"==typeof t.icon?t.icon(O):t.icon}),he("span",{className:Gn.b("pop-action-item-title"),children:"function"==typeof t.label?t.label(O):t.label})]},t.id)}))]}),position:"top-left",isOpen:i,onToggleOpen:r,children:he(Oe,{})})}),he("div",{title:l.value?"语音输入中...":"语音输入",className:"".concat(Gn.be("action-wrapper","action-item")),onClick:function(){u.current&&!l.value&&u.current.start()},children:l.value?he(Ce,{}):he(ke,{})}),he("div",{title:s.value?"思考中...":"发送消息",className:"".concat(Gn.be("action-wrapper","action-item")," ").concat(Gn.is("disabled",p.value)," ").concat(Gn.is("loading",s.value)),onClick:v,disabled:p,children:he(pe,{})})]})]})]})},Kn=new tt("chat-topic-item"),Qn=function(t){var e=t.controller,n=t.topic,i=t.onClick,r=t.onAction,o=le((function(){var t;return(null===(t=e.activedTopic.value)||void 0===t?void 0:t.id)===n.id})),c=a(kt(!1),2),s=c[0],l=c[1];return he("div",{className:"".concat(Kn.b()," ").concat(Kn.is("active",o.value)),onClick:i.bind(void 0),children:[he("div",{className:Kn.b("caption"),title:n.caption,children:n.caption}),he("div",{className:Kn.b("icon"),children:[he("span",{className:Kn.be("icon","item"),title:"跳转主视图",onClick:function(t){t.stopPropagation(),r("LINK",t)}.bind(void 0),children:he(Ee,{className:Kn.b("link-icon")})}),o.value?null:he(Xn,{actions:[{id:"DELETE",caption:"删除话题"}],position:"bottom",isOpen:s,onToggleOpen:l,onAction:function(t,e){"DELETE"===t&&r("DELETE",e),l(!1)}.bind(void 0),children:he("span",{className:Kn.be("icon","item"),title:"更多",children:he(Ne,{className:Kn.b("more-icon")})})})]})]})},ti=new tt("chat-topics"),ei=function(t){var e=t.controller.topics;return he("div",{className:ti.b(),children:e.value.map((function(e){return he(Qn,{topic:e,controller:t.controller,onClick:function(){return function(e){t.controller.handleTopicChange(e)}(e)},onAction:function(n,i){return function(e,n,i){t.controller.handleTopicAction(e,n,i)}(n,e,i)}},e.id)}))})},ni=function(t,e){var n={__c:e="__cC"+k++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,i;return this.getChildContext||(n=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,P(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}({zIndex:10}),ii=function(e){t(o,e);var r=n(o);function o(t){var e,n;return v(this,o),y(i(n=r.call(this,t)),"ns",new tt("chat-container")),y(i(n),"containerRef",{current:null}),y(i(n),"dragHandle",{current:null}),y(i(n),"minimizeRef",{current:null}),y(i(n),"data",{x:window.innerWidth-600,y:0,width:600,height:window.innerHeight,minWidth:500,minHeight:300}),y(i(n),"minimizeData",{x:window.innerWidth-86,y:window.innerHeight-86}),y(i(n),"disabled",!1),y(i(n),"isDragging",!1),y(i(n),"containerContext",{zIndex:(null===(e=n.props.containerOptions)||void 0===e?void 0:e.zIndex)||10}),n.state={isFullScreen:!1,isMinimize:!1},n}return m(o,[{key:"calcWindowStyle",value:function(){var t;return{left:"".concat(this.data.x/window.innerWidth*100,"%"),top:"".concat(this.data.y/window.innerHeight*100,"%"),width:"".concat(this.data.width/window.innerWidth*100,"%"),height:"".concat(this.data.height/window.innerHeight*100,"%"),minWidth:"".concat(this.data.minWidth,"px"),minHeight:"".concat(this.data.minHeight,"px"),"z-index":(null===(t=this.props.containerOptions)||void 0===t||null===(t=t.zIndex)||void 0===t?void 0:t.toString())||"10"}}},{key:"calcMinimizeStyle",value:function(){return{left:"".concat(this.minimizeData.x/window.innerWidth*100,"%"),top:"".concat(this.minimizeData.y/window.innerHeight*100,"%"),"z-index":"99999"}}},{key:"setStyle",value:function(){Object.assign(this.containerRef.current.style,this.calcWindowStyle()),Object.assign(this.minimizeRef.current.style,this.calcMinimizeStyle())}},{key:"componentDidMount",value:function(){var t=this,e=localStorage.getItem(jn.MINIMIZE_STYLY_CHCHE);e&&(this.minimizeData=JSON.parse(e));var n=localStorage.getItem(jn.STYLE_CACHE);n&&(this.data=JSON.parse(n),this.data.x>window.innerWidth&&(this.data.x=window.innerWidth-100),this.data.y>window.innerHeight&&(this.data.y=window.innerHeight-100)),this.setStyle();var i=this.data;this.minimizeRef.current.onmousedown=function(e){document.body.style.userSelect="none";var n=e.clientX-t.minimizeRef.current.offsetLeft,i=e.clientY-t.minimizeRef.current.offsetTop,r=Date.now(),o=function(e){t.minimizeData.x=e.clientX-n,t.minimizeData.y=e.clientY-i,t.setStyle()};document.addEventListener("mousemove",o),document.addEventListener("mouseup",(function e(){var n=Date.now();t.isDragging=n-r>300,document.body.style.userSelect="",document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",e)}))},this.dragHandle.current.onmousedown=function(e){if(!t.disabled&&!t.state.isFullScreen){document.body.style.userSelect="none";var n=e.clientX-t.containerRef.current.offsetLeft,r=e.clientY-t.containerRef.current.offsetTop,o=function(e){i.x=e.clientX-n,i.y=e.clientY-r,t.setStyle()};document.addEventListener("mousemove",o),document.addEventListener("mouseup",(function t(){document.body.style.userSelect="",document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",t)}))}},c(this.containerRef.current).resizable({edges:{top:!0,right:!0,bottom:!0,left:!0},margin:6,modifiers:[c.modifiers.restrictEdges({outer:document.body}),c.modifiers.restrictSize({min:{width:i.minWidth,height:i.minHeight}})],inertia:!0,listeners:{move:function(e){t.state.isFullScreen||(i.x=e.rect.left,i.y=e.rect.top,i.width=e.rect.width,i.height=e.rect.height,t.setStyle())},start:function(){t.disabled=!0,document.body.style.userSelect="none"},end:function(){t.disabled=!1,document.body.style.userSelect=""}}})}},{key:"componentWillUnmount",value:function(){localStorage.setItem(jn.STYLE_CACHE,JSON.stringify(this.data)),localStorage.setItem(jn.MINIMIZE_STYLY_CHCHE,JSON.stringify(this.minimizeData))}},{key:"close",value:function(){this.props.close()}},{key:"fullScreen",value:function(){var t=this.containerRef.current;t&&(t.requestFullscreen(),this.setState({isFullScreen:!0}),this.props.fullscreen(!0))}},{key:"closeFullScreen",value:function(){var t;this.state.isFullScreen&&(null===(t=document)||void 0===t||t.exitFullscreen(),this.setState({isFullScreen:!1}),this.props.fullscreen(!1),this.setStyle())}},{key:"minimize",value:function(){this.closeFullScreen(),this.setState({isMinimize:!0}),this.props.minimize(!0)}},{key:"exitMinimize",value:function(){this.isDragging||(this.setState({isMinimize:!1}),this.props.minimize(!1))}},{key:"stopPropagation",value:function(t){t.stopPropagation()}},{key:"render",value:function(){return he(ni.Provider,{value:this.containerContext,children:he("div",{className:"".concat(this.ns.b()),children:[he("div",{className:"".concat(this.ns.e("dialog")," ").concat(this.ns.is("full-screen",this.state.isFullScreen)," ").concat(this.ns.is("hidden",this.state.isMinimize)),ref:this.containerRef,children:[he("div",{ref:this.dragHandle,className:this.ns.b("header"),children:[he("div",{className:this.ns.b("header-caption"),children:this.props.caption||"AI助手"}),he("div",{className:this.ns.b("header-action-wrapper"),children:[he("div",{title:"最小化",className:"".concat(this.ns.be("header-action-wrapper","action-item")," ").concat(this.ns.be("header-action-wrapper","minimize")),onMouseDown:this.stopPropagation.bind(this),onClick:this.minimize.bind(this),children:he(be,{})}),this.state.isFullScreen?he("div",{title:"退出全屏",className:"".concat(this.ns.be("header-action-wrapper","action-item")," ").concat(this.ns.be("header-action-wrapper","close-full-screen")),onMouseDown:this.stopPropagation.bind(this),onClick:this.closeFullScreen.bind(this),children:he(ge,{})}):he("div",{title:"全屏",className:"".concat(this.ns.be("header-action-wrapper","action-item")," ").concat(this.ns.be("header-action-wrapper","full-screen")),onMouseDown:this.stopPropagation.bind(this),onClick:this.fullScreen.bind(this),children:he(ye,{})}),he("div",{title:"关闭",className:"".concat(this.ns.be("header-action-wrapper","action-item")," ").concat(this.ns.be("header-action-wrapper","action-close")),onMouseDown:this.stopPropagation.bind(this),onClick:this.close.bind(this),children:he(fe,{})})]})]}),"TOPIC"===this.props.mode?he("div",{className:"".concat(this.ns.b("main")),children:[he("div",{className:"".concat(this.ns.be("main","left")),children:he(ei,{controller:this.props.aiTopic})}),he("div",{className:"".concat(this.ns.be("main","right")),children:[he("div",{className:this.ns.b("content"),children:he(tn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),he(Ke,{data:this.props.aiTopic.activedTopic.value,type:"footer",className:this.ns.e("toolbar"),controller:this.props.aiChat,items:this.props.footerToolbarItems}),he("div",{className:this.ns.b("footer"),children:he(Zn,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}):he("div",{className:"".concat(this.ns.be("main","default")),children:[he("div",{className:this.ns.b("content"),children:he(tn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),he(Ke,{data:this.props.aiTopic.activedTopic.value,type:"footer",className:this.ns.e("toolbar"),controller:this.props.aiChat,items:this.props.footerToolbarItems}),he("div",{className:this.ns.b("footer"),children:he(Zn,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}),he("div",{title:"AI助手",ref:this.minimizeRef,className:"".concat(this.ns.e("minimize")," ").concat(this.ns.is("hidden",!this.state.isMinimize)),onClick:this.exitMinimize.bind(this),children:he(we,{})})]})})}}]),o}(I);e("ChatContainer",ii)}}}))}();
diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.12/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.12/polyfills.legacy.js
new file mode 100644
index 0000000000000000000000000000000000000000..f70afc36f0140dd50ebb879cbd7d51cd686cfb3a
--- /dev/null
+++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.12/polyfills.legacy.js
@@ -0,0 +1 @@
+!function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=function(t){return t&&t.Math===Math&&t},e=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),n={},o=function(t){try{return!!t()}catch(r){return!0}},i=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),a=u,c=Function.prototype.call,f=a?c.bind(c):function(){return c.apply(c,arguments)},s={},l={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,v=h&&!l.call({1:2},1);s.f=v?function(t){var r=h(this,t);return!!r&&r.enumerable}:l;var p,d,g=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},y=u,m=Function.prototype,b=m.call,w=y&&m.bind.bind(b,b),S=y?w:function(t){return function(){return b.apply(t,arguments)}},E=S,x=E({}.toString),O=E("".slice),j=function(t){return O(x(t),8,-1)},I=o,T=j,R=Object,P=S("".split),A=I((function(){return!R("z").propertyIsEnumerable(0)}))?function(t){return"String"===T(t)?P(t,""):R(t)}:R,k=function(t){return null==t},C=k,N=TypeError,L=function(t){if(C(t))throw new N("Can't call method on "+t);return t},F=A,M=L,_=function(t){return F(M(t))},D="object"==typeof document&&document.all,U={all:D,IS_HTMLDDA:void 0===D&&void 0!==D},$=U.all,G=U.IS_HTMLDDA?function(t){return"function"==typeof t||t===$}:function(t){return"function"==typeof t},z=G,W=U.all,B=U.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:z(t)||t===W}:function(t){return"object"==typeof t?null!==t:z(t)},H=e,V=G,J=function(t,r){return arguments.length<2?(e=H[t],V(e)?e:void 0):H[t]&&H[t][r];var e},q=S({}.isPrototypeOf),K="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Y=e,X=K,Q=Y.process,Z=Y.Deno,tt=Q&&Q.versions||Z&&Z.version,rt=tt&&tt.v8;rt&&(d=(p=rt.split("."))[0]>0&&p[0]<4?1:+(p[0]+p[1])),!d&&X&&(!(p=X.match(/Edge\/(\d+)/))||p[1]>=74)&&(p=X.match(/Chrome\/(\d+)/))&&(d=+p[1]);var et=d,nt=et,ot=o,it=e.String,ut=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol("symbol detection");return!it(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&nt&&nt<41})),at=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ct=J,ft=G,st=q,lt=Object,ht=at?function(t){return"symbol"==typeof t}:function(t){var r=ct("Symbol");return ft(r)&&st(r.prototype,lt(t))},vt=String,pt=function(t){try{return vt(t)}catch(r){return"Object"}},dt=G,gt=pt,yt=TypeError,mt=function(t){if(dt(t))return t;throw new yt(gt(t)+" is not a function")},bt=mt,wt=k,St=function(t,r){var e=t[r];return wt(e)?void 0:bt(e)},Et=f,xt=G,Ot=B,jt=TypeError,It=function(t,r){var e,n;if("string"===r&&xt(e=t.toString)&&!Ot(n=Et(e,t)))return n;if(xt(e=t.valueOf)&&!Ot(n=Et(e,t)))return n;if("string"!==r&&xt(e=t.toString)&&!Ot(n=Et(e,t)))return n;throw new jt("Can't convert object to primitive value")},Tt={exports:{}},Rt=e,Pt=Object.defineProperty,At=function(t,r){try{Pt(Rt,t,{value:r,configurable:!0,writable:!0})}catch(e){Rt[t]=r}return r},kt=At,Ct="__core-js_shared__",Nt=e[Ct]||kt(Ct,{}),Lt=Nt;(Tt.exports=function(t,r){return Lt[t]||(Lt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.33.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ft=Tt.exports,Mt=L,_t=Object,Dt=function(t){return _t(Mt(t))},Ut=Dt,$t=S({}.hasOwnProperty),Gt=Object.hasOwn||function(t,r){return $t(Ut(t),r)},zt=S,Wt=0,Bt=Math.random(),Ht=zt(1..toString),Vt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Ht(++Wt+Bt,36)},Jt=Ft,qt=Gt,Kt=Vt,Yt=ut,Xt=at,Qt=e.Symbol,Zt=Jt("wks"),tr=Xt?Qt.for||Qt:Qt&&Qt.withoutSetter||Kt,rr=function(t){return qt(Zt,t)||(Zt[t]=Yt&&qt(Qt,t)?Qt[t]:tr("Symbol."+t)),Zt[t]},er=f,nr=B,or=ht,ir=St,ur=It,ar=TypeError,cr=rr("toPrimitive"),fr=function(t,r){if(!nr(t)||or(t))return t;var e,n=ir(t,cr);if(n){if(void 0===r&&(r="default"),e=er(n,t,r),!nr(e)||or(e))return e;throw new ar("Can't convert object to primitive value")}return void 0===r&&(r="number"),ur(t,r)},sr=fr,lr=ht,hr=function(t){var r=sr(t,"string");return lr(r)?r:r+""},vr=B,pr=e.document,dr=vr(pr)&&vr(pr.createElement),gr=function(t){return dr?pr.createElement(t):{}},yr=gr,mr=!i&&!o((function(){return 7!==Object.defineProperty(yr("div"),"a",{get:function(){return 7}}).a})),br=i,wr=f,Sr=s,Er=g,xr=_,Or=hr,jr=Gt,Ir=mr,Tr=Object.getOwnPropertyDescriptor;n.f=br?Tr:function(t,r){if(t=xr(t),r=Or(r),Ir)try{return Tr(t,r)}catch(e){}if(jr(t,r))return Er(!wr(Sr.f,t,r),t[r])};var Rr={},Pr=i&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ar=B,kr=String,Cr=TypeError,Nr=function(t){if(Ar(t))return t;throw new Cr(kr(t)+" is not an object")},Lr=i,Fr=mr,Mr=Pr,_r=Nr,Dr=hr,Ur=TypeError,$r=Object.defineProperty,Gr=Object.getOwnPropertyDescriptor,zr="enumerable",Wr="configurable",Br="writable";Rr.f=Lr?Mr?function(t,r,e){if(_r(t),r=Dr(r),_r(e),"function"==typeof t&&"prototype"===r&&"value"in e&&Br in e&&!e[Br]){var n=Gr(t,r);n&&n[Br]&&(t[r]=e.value,e={configurable:Wr in e?e[Wr]:n[Wr],enumerable:zr in e?e[zr]:n[zr],writable:!1})}return $r(t,r,e)}:$r:function(t,r,e){if(_r(t),r=Dr(r),_r(e),Fr)try{return $r(t,r,e)}catch(n){}if("get"in e||"set"in e)throw new Ur("Accessors not supported");return"value"in e&&(t[r]=e.value),t};var Hr=Rr,Vr=g,Jr=i?function(t,r,e){return Hr.f(t,r,Vr(1,e))}:function(t,r,e){return t[r]=e,t},qr={exports:{}},Kr=i,Yr=Gt,Xr=Function.prototype,Qr=Kr&&Object.getOwnPropertyDescriptor,Zr=Yr(Xr,"name"),te={EXISTS:Zr,PROPER:Zr&&"something"===function(){}.name,CONFIGURABLE:Zr&&(!Kr||Kr&&Qr(Xr,"name").configurable)},re=G,ee=Nt,ne=S(Function.toString);re(ee.inspectSource)||(ee.inspectSource=function(t){return ne(t)});var oe,ie,ue,ae=ee.inspectSource,ce=G,fe=e.WeakMap,se=ce(fe)&&/native code/.test(String(fe)),le=Vt,he=Ft("keys"),ve=function(t){return he[t]||(he[t]=le(t))},pe={},de=se,ge=e,ye=B,me=Jr,be=Gt,we=Nt,Se=ve,Ee=pe,xe="Object already initialized",Oe=ge.TypeError,je=ge.WeakMap;if(de||we.state){var Ie=we.state||(we.state=new je);Ie.get=Ie.get,Ie.has=Ie.has,Ie.set=Ie.set,oe=function(t,r){if(Ie.has(t))throw new Oe(xe);return r.facade=t,Ie.set(t,r),r},ie=function(t){return Ie.get(t)||{}},ue=function(t){return Ie.has(t)}}else{var Te=Se("state");Ee[Te]=!0,oe=function(t,r){if(be(t,Te))throw new Oe(xe);return r.facade=t,me(t,Te,r),r},ie=function(t){return be(t,Te)?t[Te]:{}},ue=function(t){return be(t,Te)}}var Re={set:oe,get:ie,has:ue,enforce:function(t){return ue(t)?ie(t):oe(t,{})},getterFor:function(t){return function(r){var e;if(!ye(r)||(e=ie(r)).type!==t)throw new Oe("Incompatible receiver, "+t+" required");return e}}},Pe=S,Ae=o,ke=G,Ce=Gt,Ne=i,Le=te.CONFIGURABLE,Fe=ae,Me=Re.enforce,_e=Re.get,De=String,Ue=Object.defineProperty,$e=Pe("".slice),Ge=Pe("".replace),ze=Pe([].join),We=Ne&&!Ae((function(){return 8!==Ue((function(){}),"length",{value:8}).length})),Be=String(String).split("String"),He=qr.exports=function(t,r,e){"Symbol("===$e(De(r),0,7)&&(r="["+Ge(De(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!Ce(t,"name")||Le&&t.name!==r)&&(Ne?Ue(t,"name",{value:r,configurable:!0}):t.name=r),We&&e&&Ce(e,"arity")&&t.length!==e.arity&&Ue(t,"length",{value:e.arity});try{e&&Ce(e,"constructor")&&e.constructor?Ne&&Ue(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=Me(t);return Ce(n,"source")||(n.source=ze(Be,"string"==typeof r?r:"")),t};Function.prototype.toString=He((function(){return ke(this)&&_e(this).source||Fe(this)}),"toString");var Ve=qr.exports,Je=G,qe=Rr,Ke=Ve,Ye=At,Xe=function(t,r,e,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:r;if(Je(e)&&Ke(e,i,n),n.global)o?t[r]=e:Ye(r,e);else{try{n.unsafe?t[r]&&(o=!0):delete t[r]}catch(u){}o?t[r]=e:qe.f(t,r,{value:e,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},Qe={},Ze=Math.ceil,tn=Math.floor,rn=Math.trunc||function(t){var r=+t;return(r>0?tn:Ze)(r)},en=function(t){var r=+t;return r!=r||0===r?0:rn(r)},nn=en,on=Math.max,un=Math.min,an=function(t,r){var e=nn(t);return e<0?on(e+r,0):un(e,r)},cn=en,fn=Math.min,sn=function(t){return t>0?fn(cn(t),9007199254740991):0},ln=sn,hn=function(t){return ln(t.length)},vn=_,pn=an,dn=hn,gn=function(t){return function(r,e,n){var o,i=vn(r),u=dn(i),a=pn(n,u);if(t&&e!=e){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===e)return t||a||0;return!t&&-1}},yn={includes:gn(!0),indexOf:gn(!1)},mn=Gt,bn=_,wn=yn.indexOf,Sn=pe,En=S([].push),xn=function(t,r){var e,n=bn(t),o=0,i=[];for(e in n)!mn(Sn,e)&&mn(n,e)&&En(i,e);for(;r.length>o;)mn(n,e=r[o++])&&(~wn(i,e)||En(i,e));return i},On=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jn=xn,In=On.concat("length","prototype");Qe.f=Object.getOwnPropertyNames||function(t){return jn(t,In)};var Tn={};Tn.f=Object.getOwnPropertySymbols;var Rn=J,Pn=Qe,An=Tn,kn=Nr,Cn=S([].concat),Nn=Rn("Reflect","ownKeys")||function(t){var r=Pn.f(kn(t)),e=An.f;return e?Cn(r,e(t)):r},Ln=Gt,Fn=Nn,Mn=n,_n=Rr,Dn=function(t,r,e){for(var n=Fn(r),o=_n.f,i=Mn.f,u=0;u9007199254740991)throw fo("Maximum allowed index exceeded");return t},lo=Dt,ho=hn,vo=co,po=so;ro({target:"Array",proto:!0,arity:1,forced:o((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var r=lo(this),e=ho(r),n=arguments.length;po(e+n);for(var o=0;o0;)t[n]=t[--n];n!==i++&&(t[n]=e)}return t},Ho=function(t,r,e,n){for(var o=r.length,i=e.length,u=0,a=0;u3)){if(li)return!0;if(vi)return vi<603;var t,r,e,n,o="";for(t=65;t<76;t++){switch(r=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(n=0;n<47;n++)pi.push({k:r+n,v:e})}for(pi.sort((function(t,r){return r.v-t.v})),n=0;nui(e)?1:-1}}(t)),e=oi(o),n=0;nu;)Gi.f(t,e=o[u++],n[e]);return t};var Hi,Vi=J("document","documentElement"),Ji=Nr,qi=Fi,Ki=On,Yi=pe,Xi=Vi,Qi=gr,Zi="prototype",tu="script",ru=ve("IE_PROTO"),eu=function(){},nu=function(t){return"<"+tu+">"+t+""+tu+">"},ou=function(t){t.write(nu("")),t.close();var r=t.parentWindow.Object;return t=null,r},iu=function(){try{Hi=new ActiveXObject("htmlfile")}catch(o){}var t,r,e;iu="undefined"!=typeof document?document.domain&&Hi?ou(Hi):(r=Qi("iframe"),e="java"+tu+":",r.style.display="none",Xi.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(nu("document.F=Object")),t.close(),t.F):ou(Hi);for(var n=Ki.length;n--;)delete iu[Zi][Ki[n]];return iu()};Yi[ru]=!0;var uu,au,cu,fu=Object.create||function(t,r){var e;return null!==t?(eu[Zi]=Ji(t),e=new eu,eu[Zi]=null,e[ru]=t):e=iu(),void 0===r?e:qi.f(e,r)},su=o,lu=G,hu=B,vu=Li,pu=Xe,du=rr("iterator"),gu=!1;[].keys&&("next"in(cu=[].keys())?(au=vu(vu(cu)))!==Object.prototype&&(uu=au):gu=!0);var yu=!hu(uu)||su((function(){var t={};return uu[du].call(t)!==t}));yu&&(uu={}),lu(uu[du])||pu(uu,du,(function(){return this}));var mu={IteratorPrototype:uu,BUGGY_SAFARI_ITERATORS:gu},bu=ro,wu=e,Su=ji,Eu=G,xu=Li,Ou=Jr,ju=o,Iu=Gt,Tu=mu.IteratorPrototype,Ru=rr("toStringTag"),Pu=TypeError,Au=wu.Iterator,ku=!Eu(Au)||Au.prototype!==Tu||!ju((function(){Au({})})),Cu=function(){if(Su(this,Tu),xu(this)===Tu)throw new Pu("Abstract class Iterator not directly constructable")};Iu(Tu,Ru)||Ou(Tu,Ru,"Iterator"),!ku&&Iu(Tu,"constructor")&&Tu.constructor!==Object||Ou(Tu,"constructor",Cu),Cu.prototype=Tu,bu({global:!0,constructor:!0,forced:ku},{Iterator:Cu});var Nu=j,Lu=S,Fu=function(t){if("Function"===Nu(t))return Lu(t)},Mu=mt,_u=u,Du=Fu(Fu.bind),Uu=function(t,r){return Mu(t),void 0===r?t:_u?Du(t,r):function(){return t.apply(r,arguments)}},$u={},Gu=$u,zu=rr("iterator"),Wu=Array.prototype,Bu=function(t){return void 0!==t&&(Gu.Array===t||Wu[zu]===t)},Hu=To,Vu=St,Ju=k,qu=$u,Ku=rr("iterator"),Yu=function(t){if(!Ju(t))return Vu(t,Ku)||Vu(t,"@@iterator")||qu[Hu(t)]},Xu=f,Qu=mt,Zu=Nr,ta=pt,ra=Yu,ea=TypeError,na=function(t,r){var e=arguments.length<2?ra(t):r;if(Qu(e))return Zu(Xu(e,t));throw new ea(ta(t)+" is not iterable")},oa=f,ia=Nr,ua=St,aa=function(t,r,e){var n,o;ia(t);try{if(!(n=ua(t,"return"))){if("throw"===r)throw e;return e}n=oa(n,t)}catch(i){o=!0,n=i}if("throw"===r)throw e;if(o)throw n;return ia(n),e},ca=Uu,fa=f,sa=Nr,la=pt,ha=Bu,va=hn,pa=q,da=na,ga=Yu,ya=aa,ma=TypeError,ba=function(t,r){this.stopped=t,this.result=r},wa=ba.prototype,Sa=function(t,r,e){var n,o,i,u,a,c,f,s=e&&e.that,l=!(!e||!e.AS_ENTRIES),h=!(!e||!e.IS_RECORD),v=!(!e||!e.IS_ITERATOR),p=!(!e||!e.INTERRUPTED),d=ca(r,s),g=function(t){return n&&ya(n,"normal",t),new ba(!0,t)},y=function(t){return l?(sa(t),p?d(t[0],t[1],g):d(t[0],t[1])):p?d(t,g):d(t)};if(h)n=t.iterator;else if(v)n=t;else{if(!(o=ga(t)))throw new ma(la(t)+" is not iterable");if(ha(o)){for(i=0,u=va(t);u>i;i++)if((a=y(t[i]))&&pa(wa,a))return a;return new ba(!1)}n=da(t,o)}for(c=h?t.next:n.next;!(f=fa(c,n)).done;){try{a=y(f.value)}catch(m){ya(n,"throw",m)}if("object"==typeof a&&a&&pa(wa,a))return a}return new ba(!1)},Ea=function(t){return{iterator:t,next:t.next,done:!1}},xa=Sa,Oa=mt,ja=Nr,Ia=Ea;ro({target:"Iterator",proto:!0,real:!0},{some:function(t){ja(this),Oa(t);var r=Ia(this),e=0;return xa(r,(function(r,n){if(t(r,e++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var Ta,Ra,Pa=Nr,Aa=function(){var t=Pa(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},ka=o,Ca=e.RegExp,Na=ka((function(){var t=Ca("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),La=Na||ka((function(){return!Ca("a","y").sticky})),Fa=Na||ka((function(){var t=Ca("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),Ma={BROKEN_CARET:Fa,MISSED_STICKY:La,UNSUPPORTED_Y:Na},_a=o,Da=e.RegExp,Ua=_a((function(){var t=Da(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),$a=o,Ga=e.RegExp,za=$a((function(){var t=Ga("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})),Wa=f,Ba=S,Ha=Ao,Va=Aa,Ja=Ma,qa=fu,Ka=Re.get,Ya=Ua,Xa=za,Qa=Ft("native-string-replace",String.prototype.replace),Za=RegExp.prototype.exec,tc=Za,rc=Ba("".charAt),ec=Ba("".indexOf),nc=Ba("".replace),oc=Ba("".slice),ic=(Ra=/b*/g,Wa(Za,Ta=/a/,"a"),Wa(Za,Ra,"a"),0!==Ta.lastIndex||0!==Ra.lastIndex),uc=Ja.BROKEN_CARET,ac=void 0!==/()??/.exec("")[1];(ic||ac||uc||Ya||Xa)&&(tc=function(t){var r,e,n,o,i,u,a,c=this,f=Ka(c),s=Ha(t),l=f.raw;if(l)return l.lastIndex=c.lastIndex,r=Wa(tc,l,s),c.lastIndex=l.lastIndex,r;var h=f.groups,v=uc&&c.sticky,p=Wa(Va,c),d=c.source,g=0,y=s;if(v&&(p=nc(p,"y",""),-1===ec(p,"g")&&(p+="g"),y=oc(s,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==rc(s,c.lastIndex-1))&&(d="(?: "+d+")",y=" "+y,g++),e=new RegExp("^(?:"+d+")",p)),ac&&(e=new RegExp("^"+d+"$(?!\\s)",p)),ic&&(n=c.lastIndex),o=Wa(Za,v?e:c,y),v?o?(o.input=oc(o.input,g),o[0]=oc(o[0],g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:ic&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),ac&&o&&o.length>1&&Wa(Qa,o[0],e,(function(){for(i=1;i=a?t?"":void 0:(n=Mc(i,u))<55296||n>56319||u+1===a||(o=Mc(i,u+1))<56320||o>57343?t?Fc(i,u):n:t?_c(i,u,u+2):o-56320+(n-55296<<10)+65536}},Uc={codeAt:Dc(!1),charAt:Dc(!0)},$c=Uc.charAt,Gc=S,zc=Dt,Wc=Math.floor,Bc=Gc("".charAt),Hc=Gc("".replace),Vc=Gc("".slice),Jc=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,qc=/\$([$&'`]|\d{1,2})/g,Kc=f,Yc=Nr,Xc=G,Qc=j,Zc=cc,tf=TypeError,rf=Ec,ef=f,nf=S,of=function(t,r,e,n){var o=Tc(t),i=!Ic((function(){var r={};return r[o]=function(){return 7},7!==""[t](r)})),u=i&&!Ic((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[Pc]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return r=!0,null},e[o](""),!r}));if(!i||!u||e){var a=xc(/./[o]),c=r(o,""[t],(function(t,r,e,n,o){var u=xc(t),c=r.exec;return c===jc||c===Ac.exec?i&&!o?{done:!0,value:a(r,e,n)}:{done:!0,value:u(e,r,n)}:{done:!1}}));Oc(String.prototype,t,c[0]),Oc(Ac,o,c[1])}n&&Rc(Ac[o],"sham",!0)},uf=o,af=Nr,cf=G,ff=k,sf=en,lf=sn,hf=Ao,vf=L,pf=function(t,r,e){return r+(e?$c(t,r).length:1)},df=St,gf=function(t,r,e,n,o,i){var u=e+t.length,a=n.length,c=qc;return void 0!==o&&(o=zc(o),c=Jc),Hc(i,c,(function(i,c){var f;switch(Bc(c,0)){case"$":return"$";case"&":return t;case"`":return Vc(r,0,e);case"'":return Vc(r,u);case"<":f=o[Vc(c,1,-1)];break;default:var s=+c;if(0===s)return i;if(s>a){var l=Wc(s/10);return 0===l?i:l<=a?void 0===n[l-1]?Bc(c,1):n[l-1]+Bc(c,1):i}f=n[s-1]}return void 0===f?"":f}))},yf=function(t,r){var e=t.exec;if(Xc(e)){var n=Kc(e,t,r);return null!==n&&Yc(n),n}if("RegExp"===Qc(t))return Kc(Zc,t,r);throw new tf("RegExp#exec called on incompatible receiver")},mf=rr("replace"),bf=Math.max,wf=Math.min,Sf=nf([].concat),Ef=nf([].push),xf=nf("".indexOf),Of=nf("".slice),jf="$0"==="a".replace(/./,"$0"),If=!!/./[mf]&&""===/./[mf]("a","$0"),Tf=!uf((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}));of("replace",(function(t,r,e){var n=If?"$":"$0";return[function(t,e){var n=vf(this),o=ff(t)?void 0:df(t,mf);return o?ef(o,t,n,e):ef(r,hf(n),t,e)},function(t,o){var i=af(this),u=hf(t);if("string"==typeof o&&-1===xf(o,n)&&-1===xf(o,"$<")){var a=e(r,i,u,o);if(a.done)return a.value}var c=cf(o);c||(o=hf(o));var f,s=i.global;s&&(f=i.unicode,i.lastIndex=0);for(var l,h=[];null!==(l=yf(i,u))&&(Ef(h,l),s);){""===hf(l[0])&&(i.lastIndex=pf(u,lf(i.lastIndex),f))}for(var v,p="",d=0,g=0;g=d&&(p+=Of(u,d,b)+y,d=b+m.length)}return p+Of(u,d)}]}),!Tf||!jf||If);var Rf=S,Pf=o,Af=G,kf=To,Cf=ae,Nf=function(){},Lf=[],Ff=J("Reflect","construct"),Mf=/^\s*(?:class|function)\b/,_f=Rf(Mf.exec),Df=!Mf.test(Nf),Uf=function(t){if(!Af(t))return!1;try{return Ff(Nf,Lf,t),!0}catch(r){return!1}},$f=function(t){if(!Af(t))return!1;switch(kf(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Df||!!_f(Mf,Cf(t))}catch(r){return!0}};$f.sham=!0;var Gf=!Ff||Pf((function(){var t;return Uf(Uf.call)||!Uf(Object)||!Uf((function(){t=!0}))||t}))?$f:Uf,zf=o,Wf=et,Bf=rr("species"),Hf=function(t){return Wf>=51||!zf((function(){var r=[];return(r.constructor={})[Bf]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},Vf=S([].slice),Jf=ro,qf=no,Kf=Gf,Yf=B,Xf=an,Qf=hn,Zf=_,ts=Lo,rs=rr,es=Vf,ns=Hf("slice"),os=rs("species"),is=Array,us=Math.max;Jf({target:"Array",proto:!0,forced:!ns},{slice:function(t,r){var e,n,o,i=Zf(this),u=Qf(i),a=Xf(t,u),c=Xf(void 0===r?u:r,u);if(qf(i)&&(e=i.constructor,(Kf(e)&&(e===is||qf(e.prototype))||Yf(e)&&null===(e=e[os]))&&(e=void 0),e===is||void 0===e))return es(i,a,c);for(n=new(void 0===e?is:e)(us(c-a,0)),o=0;a"+o+""+r+">"},vs=function(t){return ls((function(){var r=""[t]('"');return r!==r.toLowerCase()||r.split('"').length>3}))};ro({target:"String",proto:!0,forced:vs("sub")},{sub:function(){return hs(this,"sub","","")}});var ps=Sa,ds=mt,gs=Nr,ys=Ea;ro({target:"Iterator",proto:!0,real:!0},{forEach:function(t){gs(this),ds(t);var r=ys(this),e=0;ps(r,(function(r){t(r,e++)}),{IS_RECORD:!0})}});var ms={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},bs=gr("span").classList,ws=bs&&bs.constructor&&bs.constructor.prototype,Ss=ws===Object.prototype?void 0:ws,Es=no,xs=Gf,Os=B,js=rr("species"),Is=Array,Ts=function(t){var r;return Es(t)&&(r=t.constructor,(xs(r)&&(r===Is||Es(r.prototype))||Os(r)&&null===(r=r[js]))&&(r=void 0)),void 0===r?Is:r},Rs=function(t,r){return new(Ts(t))(0===r?0:r)},Ps=Uu,As=A,ks=Dt,Cs=hn,Ns=Rs,Ls=S([].push),Fs=function(t){var r=1===t,e=2===t,n=3===t,o=4===t,i=6===t,u=7===t,a=5===t||i;return function(c,f,s,l){for(var h,v,p=ks(c),d=As(p),g=Ps(f,s),y=Cs(d),m=0,b=l||Ns,w=r?b(c,y):e||u?b(c,0):void 0;y>m;m++)if((a||m in d)&&(v=g(h=d[m],m,p),t))if(r)w[m]=v;else if(v)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:Ls(w,h)}else switch(t){case 4:return!1;case 7:Ls(w,h)}return i?-1:n||o?o:w}},Ms={forEach:Fs(0),map:Fs(1),filter:Fs(2),some:Fs(3),every:Fs(4),find:Fs(5),findIndex:Fs(6),filterReject:Fs(7)},_s=Ms.forEach,Ds=qo("forEach")?[].forEach:function(t){return _s(this,t,arguments.length>1?arguments[1]:void 0)},Us=e,$s=ms,Gs=Ss,zs=Ds,Ws=Jr,Bs=function(t){if(t&&t.forEach!==zs)try{Ws(t,"forEach",zs)}catch(r){t.forEach=zs}};for(var Hs in $s)$s[Hs]&&Bs(Us[Hs]&&Us[Hs].prototype);Bs(Gs);var Vs=Ve,Js=Rr,qs=function(t,r,e){return e.get&&Vs(e.get,r,{getter:!0}),e.set&&Vs(e.set,r,{setter:!0}),Js.f(t,r,e)},Ks=i,Ys=te.EXISTS,Xs=S,Qs=qs,Zs=Function.prototype,tl=Xs(Zs.toString),rl=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,el=Xs(rl.exec);Ks&&!Ys&&Qs(Zs,"name",{configurable:!0,get:function(){try{return el(rl,tl(this))[1]}catch(t){return""}}});var nl=ro,ol=Dt,il=an,ul=en,al=hn,cl=co,fl=so,sl=Rs,ll=Lo,hl=mo,vl=Hf("splice"),pl=Math.max,dl=Math.min;nl({target:"Array",proto:!0,forced:!vl},{splice:function(t,r){var e,n,o,i,u,a,c=ol(this),f=al(c),s=il(t,f),l=arguments.length;for(0===l?e=n=0:1===l?(e=0,n=f-s):(e=l-2,n=dl(pl(ul(r),0),f-s)),fl(f+e-n),o=sl(c,n),i=0;if-n+e;i--)hl(c,i-1)}else if(e>n)for(i=f-n;i>s;i--)a=i+e-1,(u=i+n-1)in c?c[a]=c[u]:hl(c,a);for(i=0;i=51||!Jp((function(){var t=[];return t[nd]=!1,t.concat()[0]!==t})),id=function(t){if(!Kp(t))return!1;var r=t[nd];return void 0!==r?!!r:qp(t)};Vp({target:"Array",proto:!0,arity:1,forced:!od||!rd("concat")},{concat:function(t){var r,e,n,o,i,u=Yp(this),a=td(u,0),c=0;for(r=-1,n=arguments.length;ri&&Ld(o,arguments[i]),o}));l.prototype=f,"Error"!==a?Pd?Pd(l,s):Ad(l,s,{name:!0}):Md&&o in c&&(kd(l,c,o),kd(l,c,"prepareStackTrace")),Ad(l,c);try{f.name!==a&&Td(f,"name",a),f.constructor=l}catch(rI){}return l}},$d="WebAssembly",Gd=e[$d],zd=7!==new Error("e",{cause:7}).cause,Wd=function(t,r){var e={};e[t]=Ud(t,r,zd),_d({global:!0,constructor:!0,arity:1,forced:zd},e)},Bd=function(t,r){if(Gd&&Gd[t]){var e={};e[t]=Ud($d+"."+t,r,zd),_d({target:$d,stat:!0,constructor:!0,arity:1,forced:zd},e)}};Wd("Error",(function(t){return function(r){return Dd(t,this,arguments)}})),Wd("EvalError",(function(t){return function(r){return Dd(t,this,arguments)}})),Wd("RangeError",(function(t){return function(r){return Dd(t,this,arguments)}})),Wd("ReferenceError",(function(t){return function(r){return Dd(t,this,arguments)}})),Wd("SyntaxError",(function(t){return function(r){return Dd(t,this,arguments)}})),Wd("TypeError",(function(t){return function(r){return Dd(t,this,arguments)}})),Wd("URIError",(function(t){return function(r){return Dd(t,this,arguments)}})),Bd("CompileError",(function(t){return function(r){return Dd(t,this,arguments)}})),Bd("LinkError",(function(t){return function(r){return Dd(t,this,arguments)}})),Bd("RuntimeError",(function(t){return function(r){return Dd(t,this,arguments)}}));var Hd=no,Vd=G,Jd=j,qd=Ao,Kd=S([].push),Yd=ro,Xd=J,Qd=Ec,Zd=f,tg=S,rg=o,eg=G,ng=ht,og=Vf,ig=function(t){if(Vd(t))return t;if(Hd(t)){for(var r=t.length,e=[],n=0;n1?arguments[1]:void 0,i=void 0!==o;i&&(o=Ug(o,n>2?arguments[2]:void 0));var u,a,c,f,s,l,h=qg(r),v=0;if(!h||this===Kg&&Wg(h))for(u=Hg(r),a=e?new this(u):Kg(u);u>v;v++)l=i?o(r[v],v):r[v],Vg(a,v,l);else for(s=(f=Jg(r,h)).next,a=e?new this:[];!(c=$g(s,f)).done;v++)l=i?zg(f,o,[c.value,v],!0):c.value,Vg(a,v,l);return a.length=v,a};ro({target:"Array",stat:!0,forced:!yp((function(t){Array.from(t)}))},{from:Yg});var Xg=mu.IteratorPrototype,Qg=fu,Zg=g,ty=Nl,ry=$u,ey=function(){return this},ny=ro,oy=f,iy=G,uy=function(t,r,e,n){var o=r+" Iterator";return t.prototype=Qg(Xg,{next:Zg(+!n,e)}),ty(t,o,!1),ry[o]=ey,t},ay=Li,cy=Pl,fy=Nl,sy=Jr,ly=Xe,hy=$u,vy=te.PROPER,py=te.CONFIGURABLE,dy=mu.IteratorPrototype,gy=mu.BUGGY_SAFARI_ITERATORS,yy=rr("iterator"),my="keys",by="values",wy="entries",Sy=function(){return this},Ey=function(t,r,e,n,o,i,u){uy(e,r,n);var a,c,f,s=function(t){if(t===o&&d)return d;if(!gy&&t&&t in v)return v[t];switch(t){case my:case by:case wy:return function(){return new e(this,t)}}return function(){return new e(this)}},l=r+" Iterator",h=!1,v=t.prototype,p=v[yy]||v["@@iterator"]||o&&v[o],d=!gy&&p||s(o),g="Array"===r&&v.entries||p;if(g&&(a=ay(g.call(new t)))!==Object.prototype&&a.next&&(ay(a)!==dy&&(cy?cy(a,dy):iy(a[yy])||ly(a,yy,Sy)),fy(a,l,!0)),vy&&o===by&&p&&p.name!==by&&(py?sy(v,"name",by):(h=!0,d=function(){return oy(p,this)})),o)if(c={values:s(by),keys:i?d:s(my),entries:s(wy)},u)for(f in c)(gy||h||!(f in v))&&ly(v,f,c[f]);else ny({target:r,proto:!0,forced:gy||h},c);return v[yy]!==d&&ly(v,yy,d,{name:o}),hy[r]=d,c},xy=function(t,r){return{value:t,done:r}},Oy=Uc.charAt,jy=Ao,Iy=Re,Ty=Ey,Ry=xy,Py="String Iterator",Ay=Iy.set,ky=Iy.getterFor(Py);Ty(String,"String",(function(t){Ay(this,{type:Py,string:jy(t),index:0})}),(function(){var t,r=ky(this),e=r.string,n=r.index;return n>=e.length?Ry(void 0,!0):(t=Oy(e,n),r.index+=t.length,Ry(t,!1))}));var Cy=Ms.filter;ro({target:"Array",proto:!0,forced:!Hf("filter")},{filter:function(t){return Cy(this,t,arguments.length>1?arguments[1]:void 0)}});var Ny=Xe,Ly=function(t,r,e){for(var n in r)Ny(t,n,r[n],e);return t},Fy=f,My=fu,_y=Jr,Dy=Ly,Uy=Re,$y=St,Gy=mu.IteratorPrototype,zy=xy,Wy=aa,By=rr("toStringTag"),Hy="IteratorHelper",Vy="WrapForValidIterator",Jy=Uy.set,qy=function(t){var r=Uy.getterFor(t?Vy:Hy);return Dy(My(Gy),{next:function(){var e=r(this);if(t)return e.nextHandler();try{var n=e.done?void 0:e.nextHandler();return zy(n,e.done)}catch(rI){throw e.done=!0,rI}},return:function(){var e=r(this),n=e.iterator;if(e.done=!0,t){var o=$y(n,"return");return o?Fy(o,n):zy(void 0,!0)}if(e.inner)try{Wy(e.inner.iterator,"normal")}catch(rI){return Wy(n,"throw",rI)}return Wy(n,"normal"),zy(void 0,!0)}})},Ky=qy(!0),Yy=qy(!1);_y(Yy,By,"Iterator Helper");var Xy=function(t,r){var e=function(e,n){n?(n.iterator=e.iterator,n.next=e.next):n=e,n.type=r?Vy:Hy,n.nextHandler=t,n.counter=0,n.done=!1,Jy(this,n)};return e.prototype=r?Ky:Yy,e},Qy=ro,Zy=f,tm=mt,rm=Nr,em=Ea,nm=Dg,om=Xy((function(){for(var t,r,e=this.iterator,n=this.predicate,o=this.next;;){if(t=rm(Zy(o,e)),this.done=!!t.done)return;if(r=t.value,nm(e,n,[r,this.counter++],!0))return r}}));Qy({target:"Iterator",proto:!0,real:!0,forced:false},{filter:function(t){return rm(this),tm(t),new om(em(this),{predicate:t})}});var im=rr,um=fu,am=Rr.f,cm=im("unscopables"),fm=Array.prototype;void 0===fm[cm]&&am(fm,cm,{configurable:!0,value:um(null)});var sm=function(t){fm[cm][t]=!0},lm=_,hm=sm,vm=$u,pm=Re,dm=Rr.f,gm=Ey,ym=xy,mm=i,bm="Array Iterator",wm=pm.set,Sm=pm.getterFor(bm),Em=gm(Array,"Array",(function(t,r){wm(this,{type:bm,target:lm(t),index:0,kind:r})}),(function(){var t=Sm(this),r=t.target,e=t.kind,n=t.index++;if(!r||n>=r.length)return t.target=void 0,ym(void 0,!0);switch(e){case"keys":return ym(n,!1);case"values":return ym(r[n],!1)}return ym([n,r[n]],!1)}),"values"),xm=vm.Arguments=vm.Array;if(hm("keys"),hm("values"),hm("entries"),mm&&"values"!==xm.name)try{dm(xm,"name",{value:"values"})}catch(rI){}var Om=e,jm=ms,Im=Ss,Tm=Em,Rm=Jr,Pm=rr,Am=Pm("iterator"),km=Pm("toStringTag"),Cm=Tm.values,Nm=function(t,r){if(t){if(t[Am]!==Cm)try{Rm(t,Am,Cm)}catch(rI){t[Am]=Cm}if(t[km]||Rm(t,km,r),jm[r])for(var e in Tm)if(t[e]!==Tm[e])try{Rm(t,e,Tm[e])}catch(rI){t[e]=Tm[e]}}};for(var Lm in jm)Nm(Om[Lm]&&Om[Lm].prototype,Lm);Nm(Im,"DOMTokenList");var Fm=Ms.map;ro({target:"Array",proto:!0,forced:!Hf("map")},{map:function(t){return Fm(this,t,arguments.length>1?arguments[1]:void 0)}});var Mm=f,_m=mt,Dm=Nr,Um=Ea,$m=Dg,Gm=Xy((function(){var t=this.iterator,r=Dm(Mm(this.next,t));if(!(this.done=!!r.done))return $m(t,this.mapper,[r.value,this.counter++],!0)}));ro({target:"Iterator",proto:!0,real:!0,forced:false},{map:function(t){return Dm(this),_m(t),new Gm(Um(this),{mapper:t})}});var zm=S(1..valueOf),Wm=en,Bm=Ao,Hm=L,Vm=RangeError,Jm=function(t){var r=Bm(Hm(this)),e="",n=Wm(t);if(n<0||n===1/0)throw new Vm("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(r+=r))1&n&&(e+=r);return e},qm=ro,Km=S,Ym=en,Xm=zm,Qm=Jm,Zm=o,tb=RangeError,rb=String,eb=Math.floor,nb=Km(Qm),ob=Km("".slice),ib=Km(1..toFixed),ub=function(t,r,e){return 0===r?e:r%2==1?ub(t,r-1,e*t):ub(t*t,r/2,e)},ab=function(t,r,e){for(var n=-1,o=e;++n<6;)o+=r*t[n],t[n]=o%1e7,o=eb(o/1e7)},cb=function(t,r){for(var e=6,n=0;--e>=0;)n+=t[e],t[e]=eb(n/r),n=n%r*1e7},fb=function(t){for(var r=6,e="";--r>=0;)if(""!==e||0===r||0!==t[r]){var n=rb(t[r]);e=""===e?n:e+nb("0",7-n.length)+n}return e};qm({target:"Number",proto:!0,forced:Zm((function(){return"0.000"!==ib(8e-5,3)||"1"!==ib(.9,0)||"1.25"!==ib(1.255,2)||"1000000000000000128"!==ib(0xde0b6b3a7640080,0)}))||!Zm((function(){ib({})}))},{toFixed:function(t){var r,e,n,o,i=Xm(this),u=Ym(t),a=[0,0,0,0,0,0],c="",f="0";if(u<0||u>20)throw new tb("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return rb(i);if(i<0&&(c="-",i=-i),i>1e-21)if(e=(r=function(t){for(var r=0,e=t;e>=4096;)r+=12,e/=4096;for(;e>=2;)r+=1,e/=2;return r}(i*ub(2,69,1))-69)<0?i*ub(2,-r,1):i/ub(2,r,1),e*=4503599627370496,(r=52-r)>0){for(ab(a,0,e),n=u;n>=7;)ab(a,1e7,0),n-=7;for(ab(a,ub(10,n,1),0),n=r-1;n>=23;)cb(a,1<<23),n-=23;cb(a,1<0?c+((o=f.length)<=u?"0."+nb("0",u-o)+f:ob(f,0,o-u)+"."+ob(f,o-u)):c+f}});var sb=ro,lb=Ms.find,hb=sm,vb="find",pb=!0;vb in[]&&Array(1)[vb]((function(){pb=!1})),sb({target:"Array",proto:!0,forced:pb},{find:function(t){return lb(this,t,arguments.length>1?arguments[1]:void 0)}}),hb(vb);var db=Sa,gb=mt,yb=Nr,mb=Ea;ro({target:"Iterator",proto:!0,real:!0},{find:function(t){yb(this),gb(t);var r=mb(this),e=0;return db(r,(function(r,n){if(t(r,e++))return n(r)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}});var bb=Dt,wb=Di;ro({target:"Object",stat:!0,forced:o((function(){wb(1)}))},{keys:function(t){return wb(bb(t))}});var Sb=S,Eb=Gt,xb=SyntaxError,Ob=parseInt,jb=String.fromCharCode,Ib=Sb("".charAt),Tb=Sb("".slice),Rb=Sb(/./.exec),Pb={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},Ab=/^[\da-f]{4}$/i,kb=/^[\u0000-\u001F]$/,Cb=ro,Nb=i,Lb=e,Fb=J,Mb=S,_b=f,Db=G,Ub=B,$b=no,Gb=Gt,zb=Ao,Wb=hn,Bb=Lo,Hb=o,Vb=function(t,r){for(var e=!0,n="";r1?arguments[1]:void 0)}}),kE("includes");var CE=B,NE=j,LE=rr("match"),FE=function(t){var r;return CE(t)&&(void 0!==(r=t[LE])?!!r:"RegExp"===NE(t))},ME=TypeError,_E=function(t){if(FE(t))throw new ME("The method doesn't accept regular expressions");return t},DE=rr("match"),UE=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[DE]=!1,"/./"[t](r)}catch(n){}}return!1},$E=ro,GE=_E,zE=L,WE=Ao,BE=UE,HE=S("".indexOf);$E({target:"String",proto:!0,forced:!BE("includes")},{includes:function(t){return!!~HE(WE(zE(this)),WE(GE(t)),arguments.length>1?arguments[1]:void 0)}});var VE={exports:{}},JE=o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),qE=o,KE=B,YE=j,XE=JE,QE=Object.isExtensible,ZE=qE((function(){QE(1)}))||XE?function(t){return!!KE(t)&&((!XE||"ArrayBuffer"!==YE(t))&&(!QE||QE(t)))}:QE,tx=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),rx=ro,ex=S,nx=pe,ox=B,ix=Gt,ux=Rr.f,ax=Qe,cx=mw,fx=ZE,sx=tx,lx=!1,hx=Vt("meta"),vx=0,px=function(t){ux(t,hx,{value:{objectID:"O"+vx++,weakData:{}}})},dx=VE.exports={enable:function(){dx.enable=function(){},lx=!0;var t=ax.f,r=ex([].splice),e={};e[hx]=1,t(e).length&&(ax.f=function(e){for(var n=t(e),o=0,i=n.length;o1?arguments[1]:void 0);r=r?r.next:e.first;)for(n(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(t){return!!c(this,t)}}),Lx(i,e?{get:function(t){var r=c(this,t);return r&&r.value},set:function(t,r){return a(this,0===t?0:t,r)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),zx&&Nx(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=Hx(r),i=Hx(n);Ux(t,r,(function(t,r){Bx(this,{type:n,target:t,state:o(t),kind:r,last:void 0})}),(function(){for(var t=i(this),r=t.kind,e=t.last;e&&e.removed;)e=e.previous;return t.target&&(t.last=e=e?e.next:t.state.first)?$x("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,$x(void 0,!0))}),e?"entries":"values",!e,!0),Gx(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=mx[t],a=u&&u.prototype,c=u,f={},s=function(t){var r=bx(a[t]);Sx(a,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!Tx(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!Tx(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!Tx(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(wx(t,!jx(u)||!(o||a.forEach&&!Rx((function(){(new u).entries().next()})))))c=e.getConstructor(r,t,n,i),Ex.enable();else if(wx(t,!0)){var l=new c,h=l[i](o?{}:-0,1)!==l,v=Rx((function(){l.has(1)})),p=Px((function(t){new u(t)})),d=!o&&Rx((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((c=r((function(t,r){Ox(t,a);var e=kx(new u,t,c);return Ix(r)||xx(r,e[i],{that:e,AS_ENTRIES:n}),e}))).prototype=a,a.constructor=c),(v||d)&&(s("delete"),s("has"),n&&s("get")),(d||h)&&s(i),o&&a.clear&&delete a.clear}f[t]=c,yx({global:!0,constructor:!0,forced:c!==u},f),Ax(c,t),o||e.setStrong(c,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Vx);var Jx,qx=ro,Kx=Fu,Yx=n.f,Xx=sn,Qx=Ao,Zx=_E,tO=L,rO=UE,eO=Kx("".startsWith),nO=Kx("".slice),oO=Math.min,iO=rO("startsWith");qx({target:"String",proto:!0,forced:!!(iO||(Jx=Yx(String.prototype,"startsWith"),!Jx||Jx.writable))&&!iO},{startsWith:function(t){var r=Qx(tO(this));Zx(t);var e=Xx(oO(arguments.length>1?arguments[1]:void 0,r.length)),n=Qx(t);return eO?eO(r,n,e):nO(r,e,e+n.length)===n}});var uO=ro,aO=Ms.findIndex,cO=sm,fO="findIndex",sO=!0;fO in[]&&Array(1)[fO]((function(){sO=!1})),uO({target:"Array",proto:!0,forced:sO},{findIndex:function(t){return aO(this,t,arguments.length>1?arguments[1]:void 0)}}),cO(fO);var lO=i,hO=S,vO=f,pO=o,dO=Di,gO=Tn,yO=s,mO=Dt,bO=A,wO=Object.assign,SO=Object.defineProperty,EO=hO([].concat),xO=!wO||pO((function(){if(lO&&1!==wO({b:1},wO(SO({},"a",{enumerable:!0,get:function(){SO(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},e=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[e]=7,n.split("").forEach((function(t){r[t]=t})),7!==wO({},t)[e]||dO(wO({},r)).join("")!==n}))?function(t,r){for(var e=mO(t),n=arguments.length,o=1,i=gO.f,u=yO.f;n>o;)for(var a,c=bO(arguments[o++]),f=i?EO(dO(c),i(c)):dO(c),s=f.length,l=0;s>l;)a=f[l++],lO&&!vO(u,c,a)||(e[a]=c[a]);return e}:wO,OO=xO;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==OO},{assign:OO});var jO=Mw;kw("toPrimitive"),jO();var IO=Nr,TO=It,RO=TypeError,PO=Gt,AO=Xe,kO=function(t){if(IO(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new RO("Incorrect hint");return TO(this,t)},CO=rr("toPrimitive"),NO=Date.prototype;PO(NO,CO)||AO(NO,CO,kO);var LO=L,FO=Ao,MO="\t\n\v\f\r \u2028\u2029\ufeff",_O=S("".replace),DO=RegExp("^["+MO+"]+"),UO=RegExp("(^|[^"+MO+"])["+MO+"]+$"),$O=function(t){return function(r){var e=FO(LO(r));return 1&t&&(e=_O(e,DO,"")),2&t&&(e=_O(e,UO,"$1")),e}},GO={start:$O(1),end:$O(2),trim:$O(3)},zO=ro,WO=i,BO=e,HO=Iw,VO=S,JO=Jn,qO=Gt,KO=sd,YO=q,XO=ht,QO=fr,ZO=o,tj=Qe.f,rj=n.f,ej=Rr.f,nj=zm,oj=GO.trim,ij="Number",uj=BO[ij];HO[ij];var aj=uj.prototype,cj=BO.TypeError,fj=VO("".slice),sj=VO("".charCodeAt),lj=function(t){var r,e,n,o,i,u,a,c,f=QO(t,"number");if(XO(f))throw new cj("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=oj(f),43===(r=sj(f,0))||45===r){if(88===(e=sj(f,2))||120===e)return NaN}else if(48===r){switch(sj(f,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+f}for(u=(i=fj(f,2)).length,a=0;ao)return NaN;return parseInt(i,n)}return+f},hj=JO(ij,!uj(" 0o1")||!uj("0b1")||uj("+0x1")),vj=function(t){var r,e=arguments.length<1?0:uj(function(t){var r=QO(t,"number");return"bigint"==typeof r?r:lj(r)}(t));return YO(aj,r=this)&&ZO((function(){nj(r)}))?KO(Object(e),this,vj):e};vj.prototype=aj,hj&&(aj.constructor=vj),zO({global:!0,constructor:!0,wrap:!0,forced:hj},{Number:vj});hj&&function(t,r){for(var e,n=WO?tj(r):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)qO(r,e=n[o])&&!qO(t,e)&&ej(t,e,rj(r,e))}(HO[ij],uj),kw("iterator"),kw("asyncIterator");var pj=J,dj=Nl;kw("toStringTag"),dj(pj("Symbol"),"Symbol"),Nl(e.JSON,"JSON",!0),Nl(Math,"Math",!0);var gj=Dt,yj=Li,mj=Ii;ro({target:"Object",stat:!0,forced:o((function(){yj(1)})),sham:!mj},{getPrototypeOf:function(t){return yj(gj(t))}});var bj=ro,wj=o,Sj=_,Ej=n.f,xj=i;bj({target:"Object",stat:!0,forced:!xj||wj((function(){Ej(1)})),sham:!xj},{getOwnPropertyDescriptor:function(t,r){return Ej(Sj(t),r)}});var Oj=Nn,jj=_,Ij=n,Tj=Lo;ro({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var r,e,n=jj(t),o=Ij.f,i=Oj(n),u={},a=0;i.length>a;)void 0!==(e=o(n,r=i[a++]))&&Tj(u,r,e);return u}});var Rj=e,Pj=Nl;ro({global:!0},{Reflect:{}}),Pj(Rj.Reflect,"Reflect",!0);var Aj=S,kj=mt,Cj=B,Nj=Gt,Lj=Vf,Fj=u,Mj=Function,_j=Aj([].concat),Dj=Aj([].join),Uj={},$j=Fj?Mj.bind:function(t){var r=kj(this),e=r.prototype,n=Lj(arguments,1),o=function(){var e=_j(n,Lj(arguments));return this instanceof o?function(t,r,e){if(!Nj(Uj,r)){for(var n=[],o=0;oe.length&&"/"!==n[n.length-1]))return n+t.slice(e.length);c("W2",e,n)}}function c(t,e,n){console.warn(r(t,[n,e].join(", ")))}function f(t,r,e){for(var n=t.scopes,o=e&&u(e,n);o;){var i=a(r,n[o]);if(i)return i;o=u(o.slice(0,o.lastIndexOf("/")),n)}return a(r,t.imports)||-1!==r.indexOf(":")&&r}function s(){this[I]={}}function l(t,e,n,o){var i=t[I][e];if(i)return i;var u=[],a=Object.create(null);j&&Object.defineProperty(a,j,{value:"Module"});var c=Promise.resolve().then((function(){return t.instantiate(e,n,o)})).then((function(n){if(!n)throw Error(r(2,e));var o=n[1]((function(t,r){i.h=!0;var e=!1;if("string"==typeof t)t in a&&a[t]===r||(a[t]=r,e=!0);else{for(var n in t)r=t[n],n in a&&a[n]===r||(a[n]=r,e=!0);t&&t.__esModule&&(a.__esModule=t.__esModule)}if(e)for(var o=0;o-1){var e=document.createEvent("Event");e.initEvent("error",!1,!1),t.dispatchEvent(e)}return Promise.reject(r)}))}else if("systemjs-importmap"===t.type){t.sp=!0;var e=t.src?(System.fetch||fetch)(t.src,{integrity:t.integrity,passThrough:!0}).then((function(t){if(!t.ok)throw Error(t.status);return t.text()})).catch((function(e){return e.message=r("W4",t.src)+"\n"+e.message,console.warn(e),"function"==typeof t.onerror&&t.onerror(),"{}"})):t.innerHTML;k=k.then((function(){return e})).then((function(e){!function(t,e,n){var o={};try{o=JSON.parse(e)}catch(a){console.warn(Error(r("W5")))}i(o,n,t)}(C,e,t.src||g)}))}}))}var g,y="undefined"!=typeof Symbol,m="undefined"!=typeof self,b="undefined"!=typeof document,w=m?self:t;if(b){var S=document.querySelector("base[href]");S&&(g=S.href)}if(!g&&"undefined"!=typeof location){var E=(g=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==E&&(g=g.slice(0,E+1))}var x,O=/\\/g,j=y&&Symbol.toStringTag,I=y?Symbol():"@",T=s.prototype;T.import=function(t,r,e){var n=this;return r&&"object"==typeof r&&(e=r,r=void 0),Promise.resolve(n.prepareImport()).then((function(){return n.resolve(t,r,e)})).then((function(t){var r=l(n,t,void 0,e);return r.C||v(n,r)}))},T.createContext=function(t){var r=this;return{url:t,resolve:function(e,n){return Promise.resolve(r.resolve(e,n||t))}}},T.register=function(t,r,e){x=[t,r,e]},T.getRegister=function(){var t=x;return x=void 0,t};var R=Object.freeze(Object.create(null));w.System=new s;var P,A,k=Promise.resolve(),C={imports:{},scopes:{},depcache:{},integrity:{}},N=b;if(T.prepareImport=function(t){return(N||t)&&(d(),N=!1),k},b&&(d(),window.addEventListener("DOMContentLoaded",d)),T.addImportMap=function(t,r){i(t,r||g,C)},b){window.addEventListener("error",(function(t){F=t.filename,M=t.error}));var L=location.origin}T.createScript=function(t){var r=document.createElement("script");r.async=!0,t.indexOf(L+"/")&&(r.crossOrigin="anonymous");var e=C.integrity[t];return e&&(r.integrity=e),r.src=t,r};var F,M,_={},D=T.register;T.register=function(t,r){if(b&&"loading"===document.readyState&&"string"!=typeof t){var e=document.querySelectorAll("script[src]"),n=e[e.length-1];if(n){P=t;var o=this;A=setTimeout((function(){_[n.src]=[t,r],o.import(n.src)}))}}else P=void 0;return D.call(this,t,r)},T.instantiate=function(t,e){var n=_[t];if(n)return delete _[t],n;var o=this;return Promise.resolve(T.createScript(t)).then((function(n){return new Promise((function(i,u){n.addEventListener("error",(function(){u(Error(r(3,[t,e].join(", "))))})),n.addEventListener("load",(function(){if(document.head.removeChild(n),F===t)u(M);else{var r=o.getRegister(t);r&&r[0]===P&&clearTimeout(A),i(r)}})),document.head.appendChild(n)}))}))},T.shouldFetch=function(){return!1},"undefined"!=typeof fetch&&(T.fetch=fetch);var U=T.instantiate,$=/^(text|application)\/(x-)?javascript(;|$)/;T.instantiate=function(t,e,n){var o=this;return this.shouldFetch(t,e,n)?this.fetch(t,{credentials:"same-origin",integrity:C.integrity[t],meta:n}).then((function(n){if(!n.ok)throw Error(r(7,[n.status,n.statusText,t,e].join(", ")));var i=n.headers.get("content-type");if(!i||!$.test(i))throw Error(r(4,i));return n.text().then((function(r){return r.indexOf("//# sourceURL=")<0&&(r+="\n//# sourceURL="+t),(0,eval)(r),o.getRegister(t)}))})):U.apply(this,arguments)},T.resolve=function(t,n){return f(C,e(t,n=n||g)||t,n)||function(t,e){throw Error(r(8,[t,e].join(", ")))}(t,n)};var G=T.instantiate;T.instantiate=function(t,r,e){var n=C.depcache[t];if(n)for(var o=0;osvg{width:100%;min-height:100px}.ibiz-markdown-message .cherry-previewer div[data-type=codeBlock]{position:relative!important;display:flex;padding-top:24px}.ibiz-markdown-message .cherry-previewer div[data-type=codeBlock] .cherry-edit-code-block,.ibiz-markdown-message .cherry-previewer div[data-type=codeBlock] .cherry-copy-code-block{position:absolute;top:0}.ibiz-markdown-message .anchor{display:none!important}.ibiz-markdown-message.is-loading .ibiz-markdown-message-header .ibiz-markdown-message-header__caption{font-size:0}.ibiz-markdown-message.is-loading .ibiz-markdown-message-header .ibiz-markdown-message-header__caption:after{display:block;width:11px;height:11px;content:"";border:3px solid #3b3b3b;border-top-color:transparent;border-radius:100%;animation:circle infinite .75s linear}.ibiz-markdown-message-header{display:flex;margin-bottom:8px}.ibiz-markdown-message-header__caption{flex:0;width:auto;min-width:32px;min-height:32px;padding:6px;margin-right:2px;font-size:14px;font-weight:800;color:var(--ibiz-ai-chat-color)}.ibiz-markdown-message-header__timeout{display:flex;align-items:center;padding:0 8px;font-size:14px;color:var(--ibiz-color-danger)}.ibiz-markdown-message-content{padding:10px 16px;background-color:var(--ibiz-ai-chat-background-color-light);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-markdown-message-content .cherry div.cherry-previewer{color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color-light)}@keyframes circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ibiz-chat-thought-chain{--ibiz-chat-thought-chain-font-size: 12px;--ibiz-chat-thought-chain-header-height: 32px;--ibiz-chat-thought-chain-color-2: var(--ibiz-ai-chat-color-2);--ibiz-chat-thought-chain-bg: var(--ibiz-ai-chat-hover-background-color);--ibiz-chat-thought-chain-bg-2: var(--ibiz-ai-chat-hover-background-color-2);--ibiz-chat-thought-chain-border-radius: var(--ibiz-ai-chat-border-radius);--ibiz-chat-thought-chain-hover-bg-color: var(--ibiz-ai-chat-hover-background-color);--ibiz-chat-thought-chain-border: var(--ibiz-ai-chat-hover-background-color);display:flex;flex-direction:column;padding:8px 12px;font-size:var(--ibiz-chat-thought-chain-font-size);background-color:var(--ibiz-chat-thought-chain-bg);border-radius:var(--ibiz-chat-thought-chain-border-radius)}.ibiz-chat-thought-chain__item{display:flex}.ibiz-chat-thought-chain__item.is-collapsed:last-child .ibiz-chat-thought-chain__item-icon:after{display:none}.ibiz-chat-thought-chain__item.is-collapsed .ibiz-chat-thought-chain__item-title .ibiz-chat-thought-chain__icon{transform:rotate(180deg)}.ibiz-chat-thought-chain__item.is-collapsed .ibiz-chat-thought-chain__item-description{height:0}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:18px;padding-top:8px}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon span{display:flex;flex:none;align-items:center;justify-content:center;width:16px;height:16px;margin-bottom:8px;font-size:10px;color:var(--ibiz-chat-thought-chain-color-2);background:var(--ibiz-chat-thought-chain-bg-2);border-radius:50%}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon svg{width:16px;height:16px;margin-bottom:8px}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon:after{width:1px;height:100%;content:"";background:var(--ibiz-chat-thought-chain-border);border-radius:13px;transition:.3s background cubic-bezier(.4,0,.2,1)}.ibiz-chat-thought-chain__item-content{flex:auto;padding-left:4px}.ibiz-chat-thought-chain__item-title{position:relative;display:flex;align-items:center;height:var(--ibiz-chat-thought-chain-header-height);padding:4px 4px 4px 6px;cursor:pointer;transition:.3s background-color}.ibiz-chat-thought-chain__item-title .ibiz-chat-thought-chain__icon{position:absolute;right:8px;flex-shrink:0;font-size:1em;cursor:pointer;transition:.3s transform}.ibiz-chat-thought-chain__item-title:hover{background-color:var(--ibiz-chat-thought-chain-bg-2);border-radius:8px}.ibiz-chat-thought-chain__item-description{height:100%;overflow:hidden;color:var(--ibiz-color-text-2);transition:height .3s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1)}.ibiz-chat-thought-chain.is-single .ibiz-chat-thought-chain__item-icon:after{display:none}@keyframes loading-animation{75%,to{opacity:0;transform:scale(2)}}.ibiz-user-message-question{padding:6px 10px}.ibiz-user-message-question__content{position:relative;box-sizing:border-box;display:flex;justify-content:end;max-width:100%;padding:10px;font-size:14px;text-align:left;word-break:break-word;user-select:text;transition:all .3s ease}.ibiz-user-message-question__content--body{width:fit-content;padding:0 10px;margin:0;font-size:14px;line-height:1.5;color:var(--color-fg-default);word-wrap:break-word;background:#E7F8FF;border-radius:var(--ibiz-ai-chat-border-radius);text-size-adjust:100%}.ibiz-user-message-question__content--body:before{display:table;content:""}.ibiz-user-message-question__content--body:after{display:table;clear:both;content:""}.ibiz-user-message-question__content--body>p{margin:8px}.ibiz-user-message-question__content--material{display:flex;flex-flow:row-reverse wrap;gap:8px;align-items:center}.ibiz-user-message-question__user-header{display:flex;align-items:center;justify-content:end;width:100%;height:32px}.ibiz-user-message-question__user{padding:6px;font-size:14px;font-weight:800}.ibiz-ossfile-material{display:flex;width:100%;height:100%}.ibiz-ossfile-material-left{display:flex;align-items:center;justify-content:center}.ibiz-ossfile-material-right{width:calc(100% - 24px);height:100%;padding-left:8px}.ibiz-ossfile-material__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-ossfile-material__metadata{display:flex;gap:8px;align-items:center;font-size:14px}.ibiz-ossfile-material__metadata>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-common-material{display:flex;width:100%;height:100%}.ibiz-common-material-left{display:flex;align-items:center;justify-content:center;font-size:18px}.ibiz-common-material-right{width:calc(100% - 24px);height:100%;padding-left:8px}.ibiz-common-material__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-common-material__metadata{display:flex;gap:8px;align-items:center;font-size:14px}.ibiz-common-material__metadata>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-input-material-item{position:relative;width:200px;height:60px;padding:8px;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color);border:1px solid var(--ibiz-ai-chat-border-color);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-item:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-input-material-item:hover .ibiz-chat-input-material-item__icon{opacity:1}.ibiz-chat-input-material-item.is-disabled{pointer-events:none}.ibiz-chat-input-material-item__icon{position:absolute;top:-4px;right:-4px;opacity:0}.ibiz-error-message{padding:6px 10px;text-align:left}.ibiz-error-message__content{width:fit-content;padding:6px;color:#fff;background-color:red;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-error-message .ibiz-error-message-header{display:flex;margin-bottom:8px}.ibiz-error-message-header__caption{flex:0;width:auto;min-width:32px;min-height:32px;padding:6px;margin-right:2px;font-size:14px;font-weight:800;color:var(--ibiz-ai-chat-color)}.ibiz-unknown-message{padding:6px 10px;text-align:right}.ibiz-unknown-message__content{padding:6px;color:#000;background-color:#ccc;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-message-item{padding:6px 0}.ibiz-chat-message-item .pre-wrap-container{word-wrap:break-word;white-space:pre-wrap}.ibiz-chat-toolbar{display:flex;align-items:center}.ibiz-chat-toolbar__item{display:flex;align-items:center;white-space:nowrap;cursor:pointer}.ibiz-chat-toolbar__item:not(:first-child){margin-left:6px}.ibiz-chat-toolbar__item--icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:18px;height:18px;font-size:18px}.ibiz-chat-toolbar__item--label{display:flex;align-items:center}.ibiz-chat-toolbar__item.is-disabled{cursor:not-allowed}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item{width:32px;height:32px;padding:6px;overflow:hidden;font-size:12px;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:15px;transition:all .3s ease}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item.is-disabled{color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item:hover:not(.is-disabled){width:68px;color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item .ibiz-chat-toolbar__item--label{width:calc(100% - 32px);margin-left:8px;font-size:14px}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item .ibiz-chat-toolbar__item--label>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-toolbar__default .ibiz-chat-toolbar__item{z-index:1;gap:6px;width:fit-content;padding:2px 14px;font-size:14px;line-height:28px;color:var(--ibiz-ai-chat-color-2);background-color:var(--ibiz-ai-chat-background-color-2);border-radius:12px}.ibiz-chat-toolbar__default .ibiz-chat-toolbar__item.is-disabled{background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar__default .ibiz-chat-toolbar__item:hover:not(.is-disabled){background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-back-bottom{position:absolute;z-index:5;display:none;align-items:center;justify-content:center;width:32px;height:32px;font-size:var(--ibiz-font-size-header-6);color:var(--ibiz-ai-chat-color-2);cursor:pointer;background-color:var(--ibiz-ai-chat-background-color-2);border-radius:var(--ibiz-border-radius-circle)}.ibiz-chat-back-bottom:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-back-bottom__icon{font-size:20px}.ibiz-chat-back-bottom.is-visible{display:flex}.ibiz-chat-messages{margin:6px;width:calc(100% - 12px);height:calc(100% - 12px);overflow-x:hidden;overflow-y:auto}.ibiz-chat-messages::-webkit-scrollbar{width:6px}.ibiz-chat-messages::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-wrapper{max-height:6em;padding:4px;overflow:hidden auto;font-size:16px;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color)}.ibiz-chat-input-main-wrapper{display:flex;align-items:center;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input__textarea{flex-grow:1;max-height:6em;padding:4px;overflow:hidden auto!important;font-size:16px;color:var(--ibiz-ai-chat-color);resize:none;background-color:var(--ibiz-ai-chat-background-color);border:none;outline:none}.ibiz-chat-input__textarea::-webkit-scrollbar{width:6px}.ibiz-chat-input__textarea::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-action-wrapper{display:flex;gap:6px;align-items:center;padding:6px;color:var(--ibiz-ai-chat-color)}.ibiz-chat-input-action-wrapper__action-item{padding:3px;font-size:12px;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-action-wrapper__action-item:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-input-action-wrapper__action-item svg.is-disabled{color:var(--ibiz-ai-chat-disabled-color);pointer-events:none}.ibiz-chat-input-pop-actions{width:160px;min-height:48px;padding:8px}.ibiz-chat-input-pop-action-item{display:flex;align-items:center;padding:8px;margin-bottom:4px;line-height:22px;cursor:pointer;border-radius:4px;transition:background-color .2s}.ibiz-chat-input-pop-action-item:hover{background-color:var(--ibiz-color-fill-0)}.ibiz-chat-input-pop-action-item-icon{width:18px;height:18px;margin-right:8px;font-size:18px;color:var(--ibiz-ai-chat-color);pointer-events:none}.ibiz-chat-input-pop-action-item-title{font-size:14px;line-height:22px;color:var(--ibiz-ai-chat-color);pointer-events:none}.ibiz-chat-input-material{display:flex;flex-wrap:wrap;gap:8px}.ibiz-pop-trigger-container{font-size:12px}.ibiz-pop-content{min-width:120px;padding:4px;background-color:var(--ibiz-color-bg-3);border:1px solid var(--ibiz-color-border);border-radius:8px}.ibiz-pop-content-item{display:flex;align-items:center;justify-content:space-around;line-height:32px;cursor:pointer}.ibiz-chat-topic-item{position:relative;display:flex;align-items:center;height:38px;padding:0 8px;margin-top:4px;cursor:pointer;border-radius:8px}.ibiz-chat-topic-item:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item:hover .ibiz-chat-topic-item-icon{opacity:1}.ibiz-chat-topic-item.is-active{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item-caption{width:100%;min-width:0;overflow:hidden;line-height:18px;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-topic-item-icon{position:absolute;top:50%;right:10px;display:flex;gap:8px;align-items:center;justify-content:flex-end;height:24px;padding:0 8px;color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color);border-radius:8px;outline:none;opacity:0;transform:translateY(-50%)}.ibiz-chat-topic-item-icon__item{font-size:12px}.ibiz-chat-topics{height:100%;padding:8px;overflow-y:auto}.ibiz-chat-container{--ibiz-ai-chat-color: #3b3b3b;--ibiz-ai-chat-icon-color: #3b3b3b;--ibiz-ai-chat-border-color: #e5e5e5;--ibiz-ai-chat-background-color: #fff;--ibiz-ai-chat-background-color-light: #f8fafb;--ibiz-ai-chat-disabled-color: rgba(59, 59, 59, .6);--ibiz-ai-chat-hover-color: #3b3b3b;--ibiz-ai-chat-hover-background-color: #e9e9e9;--ibiz-ai-chat-hover-border-color: #e5e5e5;--ibiz-ai-chat-border-radius: 5px;--ibiz-ai-chat-color-2: #4d6bfe;--ibiz-ai-chat-background-color-2: rgb(219, 234, 254);--ibiz-ai-chat-hover-background-color-2: #c3daf8}.ibiz-chat-container__dialog{position:absolute;z-index:1000;display:flex;flex-direction:column;background-color:var(--ibiz-ai-chat-background-color);border:1px solid var(--ibiz-ai-chat-border-color);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-container__dialog *{box-sizing:border-box}.ibiz-chat-container__dialog svg{display:inline-block;width:1em;height:1em;font-size:1.5em;vertical-align:middle;fill:currentcolor}.ibiz-chat-container__dialog.is-hidden{display:none}.ibiz-chat-container__minimize{position:absolute;z-index:99999;display:flex;align-items:center;justify-content:center;width:56px;height:56px;color:var(--ibiz-ai-chat-color);cursor:pointer;background-color:var(--ibiz-ai-chat-background-color);border:1px solid var(--ibiz-ai-chat-border-color);border-radius:50%}.ibiz-chat-container__minimize:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-container__minimize svg{display:inline-block;vertical-align:middle;fill:currentcolor}.ibiz-chat-container__minimize.is-hidden{display:none}.ibiz-chat-container__toolbar{display:flex;justify-content:center;margin:8px}.ibiz-chat-container-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;height:60px;padding:4px;cursor:move;border-bottom:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-container-header-caption{padding:0 6px 0 16px;font-size:18px;font-weight:800}.ibiz-chat-container-header-action-wrapper{display:flex;gap:6px;align-items:center;height:100%;padding:0 6px}.ibiz-chat-container-header-action-wrapper__action-item{flex-shrink:0;padding:3px;font-size:12px;color:var(--ibiz-ai-chat-color);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-container-header-action-wrapper__action-item:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-container-main{display:flex;height:calc(100% - 60px)}.ibiz-chat-container-main__left{flex-shrink:0;width:200px;height:100%;border-right:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-container-main__right{position:relative;display:flex;flex-direction:column;flex-grow:1;width:calc(100% - 200px);height:100%}.ibiz-chat-container-main__right .ibiz-chat-toolbar__default{position:absolute;bottom:118px;width:100%;margin:0}.ibiz-chat-container-main__right .ibiz-chat-messages{padding-bottom:48px}.ibiz-chat-container-main__default{display:flex;flex-direction:column;flex-grow:1;height:calc(100% - 60px)}.ibiz-chat-container-content{position:relative;flex-grow:1;overflow:hidden}.ibiz-chat-container-footer{flex-shrink:0;padding:3px 6px;border-top:1px solid var(--ibiz-ai-chat-border-color)}
diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.13/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.13/index.system.min.js
new file mode 100644
index 0000000000000000000000000000000000000000..4dd181a8c3cba372117207d11a8845529c78c385
--- /dev/null
+++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.13/index.system.min.js
@@ -0,0 +1 @@
+!function(){function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)}function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,n)}function n(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=r(t);if(e){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)}(this,n)}}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}function o(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||c(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==e);s=!0);}catch(t){l=!0,r=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(t,e)||c(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:L(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}function d(t,e,n,i,r,o,a){try{var c=t[o](a),s=c.value}catch(l){return void n(l)}c.done?e(s):Promise.resolve(s).then(i,r)}function f(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){d(o,i,r,a,c,"next",t)}function c(t){d(o,i,r,a,c,"throw",t)}a(void 0)}))}}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===c[a]&&(c[a]=t.defaultProps[a]);return O(t,c,i,o,null)}function O(t,e,n,i,r){var o={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++d:r};return null==r&&null!=l.vnode&&l.vnode(o),o}function z(t){return t.children}function L(t,e){this.props=t,this.context=e}function D(t,e){if(null==e)return t.__?D(t.__,t.__.__k.indexOf(t)+1):null;for(var n;ee&&y.sort(k));B.__r=0}function H(t,e,n,i,r,o,a,c,s,l,u){var h,d,f,p,v,m,_,g,y,b=0,w=i&&i.__k||N,k=w.length,x=k,E=e.length;for(n.__k=[],h=0;h0?O(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)?(p.__=n,p.__b=n.__b+1,-1===(g=U(p,w,_=h+b,x))?f=C:(f=w[g]||C,w[g]=void 0,x--),$(t,p,f,r,o,a,c,s,l,u),v=p.__e,(d=p.ref)&&f.ref!=d&&(f.ref&&G(f.ref,null,p),u.push(d,p.__c||v,p)),null!=v&&(null==m&&(m=v),(y=f===C||null===f.__v)?-1==g&&b--:g!==_&&(g===_+1?b++:g>_?x>E-_?b+=g-_:b--:b=g<_&&g==_-1?g-_:0),_=h+b,"function"!=typeof p.type||g===_&&f.__k!==p.__k?"function"==typeof p.type||g===_&&!y?void 0!==p.__d?(s=p.__d,p.__d=void 0):s=v.nextSibling:s=R(t,v,s):s=j(p,s,t),"function"==typeof n.type&&(n.__d=s))):(f=w[h])&&null==f.key&&f.__e&&(f.__e==s&&(f.__=i,s=D(f)),J(f,f,!1),w[h]=null);for(n.__e=m,h=k;h--;)null!=w[h]&&("function"==typeof n.type&&null!=w[h].__e&&w[h].__e==n.__d&&(n.__d=w[h].__e.nextSibling),J(w[h],w[h]))}function j(t,e,n){for(var i,r=t.__k,o=0;r&&o(null!=s?1:0))for(;a>=0||c=0){if((s=e[a])&&r==s.key&&o===s.type)return a;a--}if(c0&&void 0!==arguments[0]?arguments[0]:"";return Q(this.namespace,this.block,t,"","")}},{key:"e",value:function(t){return t?Q(this.namespace,this.block,"",t,""):""}},{key:"m",value:function(t){return t?Q(this.namespace,this.block,"","",t):""}},{key:"be",value:function(t,e){return t&&e?Q(this.namespace,this.block,t,e,""):""}},{key:"em",value:function(t,e){return t&&e?Q(this.namespace,this.block,"",t,e):""}},{key:"bm",value:function(t,e){return t&&e?Q(this.namespace,this.block,t,"",e):""}},{key:"bem",value:function(t,e,n){return t&&e&&n?Q(this.namespace,this.block,t,e,n):""}},{key:"is",value:function(t,e){return t&&e?"".concat("is-").concat(t):""}},{key:"cssVar",value:function(t){var e={};for(var n in t)t[n]&&(e[this.cssVarName(n)]=t[n]);return e}},{key:"cssVarBlock",value:function(t){var e={};for(var n in t)t[n]&&(e[this.cssVarBlockName(n)]=t[n]);return e}},{key:"cssVarName",value:function(t){return"--".concat(this.namespace,"-").concat(t)}},{key:"cssVarBlockName",value:function(t){return"--".concat(this.namespace,"-").concat(this.block,"-").concat(t)}}]),t}();function et(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function nt(t,e){for(var n,i="",r=0,o=-1,a=0,c=0;c<=t.length;++c){if(c2){var s=i.lastIndexOf("/");if(s!==i.length-1){-1===s?(i="",r=0):r=(i=i.slice(0,s)).length-1-i.lastIndexOf("/"),o=c,a=0;continue}}else if(2===i.length||1===i.length){i="",r=0,o=c,a=0;continue}e&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+t.slice(o+1,c):i=t.slice(o+1,c),r=c-o-1;o=c,a=0}else 46===n&&-1!==a?++a:a=-1}return i}var it={resolve:function(){for(var t,e="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var r;i>=0?r=arguments[i]:(void 0===t&&(t=process.cwd()),r=t),et(r),0!==r.length&&(e=r+"/"+e,n=47===r.charCodeAt(0))}return e=nt(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(t){if(et(t),0===t.length)return".";var e=47===t.charCodeAt(0),n=47===t.charCodeAt(t.length-1);return 0!==(t=nt(t,!e)).length||e||(t="."),t.length>0&&n&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return et(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e0&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":it.normalize(t)},relative:function(t,e){if(et(t),et(e),t===e)return"";if((t=it.resolve(t))===(e=it.resolve(e)))return"";for(var n=1;nc){if(47===e.charCodeAt(o+l))return e.slice(o+l+1);if(0===l)return e.slice(o+l)}else r>c&&(47===t.charCodeAt(n+l)?s=l:0===l&&(s=0));break}var u=t.charCodeAt(n+l);if(u!==e.charCodeAt(o+l))break;47===u&&(s=l)}var h="";for(l=n+s+1;l<=i;++l)l!==i&&47!==t.charCodeAt(l)||(0===h.length?h+="..":h+="/..");return h.length>0?h+e.slice(o+s):(o+=s,47===e.charCodeAt(o)&&++o,e.slice(o))},_makeLong:function(t){return t},dirname:function(t){if(et(t),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,r=!0,o=t.length-1;o>=1;--o)if(47===(e=t.charCodeAt(o))){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"//":t.slice(0,i)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');et(t);var n,i=0,r=-1,o=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var a=e.length-1,c=-1;for(n=t.length-1;n>=0;--n){var s=t.charCodeAt(n);if(47===s){if(!o){i=n+1;break}}else-1===c&&(o=!1,c=n+1),a>=0&&(s===e.charCodeAt(a)?-1==--a&&(r=n):(a=-1,r=c))}return i===r?r=c:-1===r&&(r=t.length),t.slice(i,r)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":t.slice(i,r)},extname:function(t){et(t);for(var e=-1,n=0,i=-1,r=!0,o=0,a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(47!==c)-1===i&&(r=!1,i=a+1),46===c?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!r){n=a+1;break}}return-1===e||-1===i||0===o||1===o&&e===i-1&&e===n+1?"":t.slice(e,i)},format:function(t){if(null===t||"object"!==p(t))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+p(t));return function(t,e){var n=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+i:n+t+i:i}("/",t)},parse:function(t){et(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var n,i=t.charCodeAt(0),r=47===i;r?(e.root="/",n=1):n=0;for(var o=-1,a=0,c=-1,s=!0,l=t.length-1,u=0;l>=n;--l)if(47!==(i=t.charCodeAt(l)))-1===c&&(s=!1,c=l+1),46===i?-1===o?o=l:1!==u&&(u=1):-1!==o&&(u=-1);else if(!s){a=l+1;break}return-1===o||-1===c||0===u||1===u&&o===c-1&&o===a+1?-1!==c&&(e.base=e.name=0===a&&r?t.slice(1,c):t.slice(a,c)):(0===a&&r?(e.name=t.slice(1,o),e.base=t.slice(1,c)):(e.name=t.slice(a,o),e.base=t.slice(a,c)),e.ext=t.slice(o,c)),a>0?e.dir=t.slice(0,a-1):r&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};function rt(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function ot(){return"".concat(rt()+rt(),"-").concat(rt(),"-").concat(rt(),"-").concat(rt(),"-").concat(rt()).concat(rt()).concat(rt())}it.posix=it;var at=function(){function t(){v(this,t)}return _(t,null,[{key:"copy",value:function(t){return this.inputElement||(this.inputElement=document.createElement("input"),this.inputElement.style.position="absolute",this.inputElement.style.left="-9999px",document.body.appendChild(this.inputElement)),this.inputElement.value=t,this.inputElement.select(),document.execCommand("copy")}}]),t}();g(at,"inputElement",null);var ct=function(){function t(){v(this,t)}var e,n,i,r,o,a,c,s,l,u;return _(t,null,[{key:"checkDataBaseExists",value:(u=f(h().mark((function t(e){var n;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,indexedDB.databases();case 3:return n=t.sent,t.abrupt("return",n.some((function(t){return t.name===e})));case 7:return t.prev=7,t.t0=t.catch(0),console.error("检查数据库是否存在时出错:",t.t0),t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t,null,[[0,7]])}))),function(t){return u.apply(this,arguments)})},{key:"deleteDatabase",value:(l=f(h().mark((function e(n){var i,r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.lastLink&&(null===(i=(r=t.lastLink).close)||void 0===i||i.call(r)),e.abrupt("return",new Promise((function(t,e){var i=indexedDB.deleteDatabase(n);i.onsuccess=function(){t(!0)},i.onerror=function(){t(!1)},i.onblocked=function(){console.warn("删除数据库 ".concat(n," 被阻塞,可能有其他连接正在使用该数据库。")),e(new Error("删除数据库 ".concat(n," 被阻塞")))}})));case 2:case"end":return e.stop()}}),e)}))),function(t){return l.apply(this,arguments)})},{key:"checkTableExists",value:(s=f(h().mark((function e(n,i){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.checkDataBaseExists(n);case 2:if(e.sent){e.next=5;break}return e.abrupt("return",!1);case 5:return e.abrupt("return",new Promise((function(e,r){var o=indexedDB.open(n);o.onupgradeneeded=function(e){t.db=e.target.result,t.version=t.db.version},o.onsuccess=function(n){t.db=n.target.result,t.lastLink=o.result;var r=t.db.objectStoreNames.contains(i);o.result.close(),e(r)},o.onerror=function(t){r(t.target.error)}})));case 6:case"end":return e.stop()}}),e)}))),function(t,e){return s.apply(this,arguments)})},{key:"createTable",value:(c=f(h().mark((function e(n,i,r){var o,a=arguments;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=a.length>3&&void 0!==a[3]&&a[3],e.abrupt("return",new Promise((function(e){var a,c;t.version+=1,t.lastLink&&(null===(a=(c=t.lastLink).close)||void 0===a||a.call(c));var s=indexedDB.open(n,t.version);s.onupgradeneeded=function(e){if(t.db=e.target.result,!t.db.objectStoreNames.contains(i)){var n={};r?n.keyPath=r:o&&(n.autoIncrement=!0),t.db.createObjectStore(i,n)}},s.onsuccess=function(){t.lastLink=s.result,s.result.close(),e(!0)},s.onerror=function(){e(!1)}})));case 2:case"end":return e.stop()}}),e)}))),function(t,e,n){return c.apply(this,arguments)})},{key:"deleteTable",value:(a=f(h().mark((function e(n,i){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var r,o;t.version+=1,t.lastLink&&(null===(r=(o=t.lastLink).close)||void 0===r||r.call(o));var a=indexedDB.open(n,t.version);a.onupgradeneeded=function(e){t.db=e.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(i)&&t.db.deleteObjectStore(i)},a.onsuccess=function(n){t.db=n.target.result,t.lastLink=a.result,a.result.close(),e(!0)},a.onerror=function(){a.result.close(),e(!1)}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e){return a.apply(this,arguments)})},{key:"addData",value:(o=f(h().mark((function e(n,i,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(i)){var o=t.db.transaction([i],"readwrite").objectStore(i).add(r);o.onsuccess=function(t){e(r)},o.onerror=function(){e(null)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e,n){return o.apply(this,arguments)})},{key:"deleteData",value:(r=f(h().mark((function e(n,i,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(i)){var o=t.db.transaction([i],"readwrite").objectStore(i).delete(r);o.onsuccess=function(t){e(!0)},o.onerror=function(){e(!1)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e,n){return r.apply(this,arguments)})},{key:"updateData",value:(i=f(h().mark((function e(n,i,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(i)){var o=t.db.transaction([i],"readwrite").objectStore(i).put(r);o.onsuccess=function(t){e(r)},o.onerror=function(){e(r)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e,n){return i.apply(this,arguments)})},{key:"getData",value:(n=f(h().mark((function e(n,i,r){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=a.result,t.db.objectStoreNames.contains(i)){var c=t.db.transaction([i],"readonly").objectStore(i).get(r);c.onsuccess=function(t){e(c.result)},c.onerror=function(){o(new Error("未找到数据".concat(r)))}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,e,i){return n.apply(this,arguments)})},{key:"getAllData",value:(e=f(h().mark((function e(n,i){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){var o=indexedDB.open(n);o.onsuccess=function(n){if(t.db=n.target.result,t.lastLink=o.result,t.db.objectStoreNames.contains(i)){var r=t.db.transaction([i],"readonly").objectStore(i).getAll();r.onsuccess=function(t){e(r.result)},r.onerror=function(){e([])}}o.result.close()},o.onerror=function(){o.result.close(),r()}})));case 1:case"end":return e.stop()}}),e)}))),function(t,n){return e.apply(this,arguments)})}]),t}();g(ct,"version",1),g(ct,"db",null),g(ct,"lastLink",void 0);var st,lt,ut,ht,dt=function(){function t(e){v(this,t),g(this,"options",void 0),this.options=u({multiple:!0,accept:"*/*",maxSize:5242880},e)}var e,n;return _(t,[{key:"openFilePicker",value:function(){var t=this,e=document.createElement("input");e.type="file",e.multiple=this.options.multiple,e.accept=this.options.accept||"",e.onchange=function(e){var n=Array.from(e.target.files||[]);t.handleFiles(n)},e.click()}},{key:"handleFiles",value:(n=f(h().mark((function t(e){var n,i,r,o=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.length){t.next=2;break}return t.abrupt("return");case 2:return r=e.filter((function(t){var e,n;return!(o.options.maxSize&&t.size>o.options.maxSize&&(null===(e=(n=o.options).onError)||void 0===e||e.call(n,new Error("文件大小超过限制 (".concat(o.formatSize(t.size)," > ").concat(o.formatSize(o.options.maxSize),")")),t),1))})),null===(n=(i=this.options).onSelect)||void 0===n||n.call(i,r),t.next=6,Promise.all(r.map((function(t){return o.processFile(t)})));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"processFile",value:(e=f(h().mark((function t(e){var n,i,r,o,a,c,s,l,u=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a=function(t){var n,i;null===(n=(i=u.options).onProgress)||void 0===n||n.call(i,e,t)},t.next=4,this.options.onUpload(e,a);case 4:c=t.sent,null===(n=(i=this.options).onProgress)||void 0===n||n.call(i,e,100),null===(r=(o=this.options).onSuccess)||void 0===r||r.call(o,c,e),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),null===(s=(l=this.options).onError)||void 0===s||s.call(l,t.t0 instanceof Error?t.t0:new Error("上传失败"),e);case 12:case"end":return t.stop()}}),t,this,[[0,9]])}))),function(t){return e.apply(this,arguments)})},{key:"formatSize",value:function(t){if(0===t)return"0 B";var e=Math.floor(Math.log(t)/Math.log(1024));return"".concat((t/Math.pow(1024,e)).toFixed(2)," ").concat(["B","KB","MB","GB"][e])}}]),t}(),ft=function(){function t(){v(this,t)}return _(t,null,[{key:"getCdataContent",value:function(t){if(!t)return null;var e=Array.from(t.childNodes).find((function(t){return t.nodeType===t.CDATA_SECTION_NODE}));return(null==e?void 0:e.nodeValue)||t.textContent}},{key:"parse",value:function(t){var e=this,n=(new DOMParser).parseFromString(t,"text/xml");return Array.from(n.querySelectorAll("resource")).map((function(t){var n=t.getAttribute("type")||"",i=t.querySelector("data"),r=t.querySelector("metadata");try{var o=e.getCdataContent(i),a=e.getCdataContent(r),c=o?JSON.parse(o):{},s=a?JSON.parse(a):{};return{id:c.id,type:n,data:c,metadata:s}}catch(Dn){throw new Error("XML 解析错误: ".concat(Dn.message))}}))}},{key:"parseMixedContent",value:function(t){var e=/]*>[\s\S]*?<\/resources>/i.exec(t);if(!e)return{resources:[],remainingText:t,hasResources:!1};var n=a(e,1)[0],i=e.index,r=i+n.length,o=(t.slice(0,i)+t.slice(r)).replace(/\n/g,"");try{return{resources:this.parse(n),remainingText:o,hasResources:!0}}catch(c){return{resources:[],remainingText:o,hasResources:!0,error:"资源解析失败: ".concat(c.message)}}}},{key:"stringify",value:function(t){var e=document.implementation.createDocument(null,null,null),n=e.createElement("resources");n.setAttribute("version","1.0");var i=function(t){return"\n".concat(" ".repeat(t))};return t.forEach((function(t){n.appendChild(e.createTextNode(i(1)));var r=e.createElement("resource");r.setAttribute("type",t.type),r.setAttribute("version","1.0");var o=function(t,n){var r=e.createElement(t);r.appendChild(e.createTextNode(i(2)));var o=e.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(e.createTextNode(i(1))),r};r.appendChild(e.createTextNode(i(2))),r.appendChild(o("data",t.data)),r.appendChild(e.createTextNode(i(2))),r.appendChild(o("metadata",t.metadata)),r.appendChild(e.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(e.createTextNode("\n")),e.appendChild(n),(new XMLSerializer).serializeToString(e).replace(/>\n<")}}]),t}(),pt=0,vt=[],mt=[],_t=l.__b,gt=l.__r,yt=l.diffed,bt=l.__c,wt=l.unmount;function kt(t,e){l.__h&&l.__h(lt,t,pt||e),pt=0;var n=lt.__H||(lt.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:mt}),n.__[t]}function xt(t){return pt=1,function(t,e,n){var i=kt(st++,2);if(i.t=t,!i.__c&&(i.__=[n?n(e):It(void 0,e),function(t){var e=i.__N?i.__N[0]:i.__[0],n=i.t(e,t);e!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=lt,!lt.u)){var r=function(t,e,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(t){return t.__c}));if(r.every((function(t){return!t.__N})))return!o||o.call(this,t,e,n);var a=!1;return r.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),!(!a&&i.__c.props===t)&&(!o||o.call(this,t,e,n))};lt.u=!0;var o=lt.shouldComponentUpdate,a=lt.componentWillUpdate;lt.componentWillUpdate=function(t,e,n){if(this.__e){var i=o;o=void 0,r(t,e,n),o=i}a&&a.call(this,t,e,n)},lt.shouldComponentUpdate=r}return i.__N||i.__}(It,t)}function Ct(t,e){var n=kt(st++,3);!l.__s&&Dt(n.__H,e)&&(n.__=t,n.i=e,lt.__H.__h.push(n))}function Nt(t){return pt=5,Et((function(){return{current:t}}),[])}function Et(t,e){var n=kt(st++,7);return Dt(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function Tt(t,e){return pt=8,Et((function(){return t}),e)}function St(t){var e=lt.context[t.__c],n=kt(st++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(lt)),e.props.value):t.__}function At(){for(var t;t=vt.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(zt),t.__H.__h.forEach(Lt),t.__H.__h=[]}catch(Bn){t.__H.__h=[],l.__e(Bn,t.__v)}}l.__b=function(t){lt=null,_t&&_t(t)},l.__r=function(t){gt&>(t),st=0;var e=(lt=t.__c).__H;e&&(ut===lt?(e.__h=[],lt.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=mt,t.__N=t.i=void 0}))):(e.__h.forEach(zt),e.__h.forEach(Lt),e.__h=[],st=0)),ut=lt},l.diffed=function(t){yt&&yt(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==vt.push(e)&&ht===l.requestAnimationFrame||((ht=l.requestAnimationFrame)||Ot)(At)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==mt&&(t.__=t.__V),t.i=void 0,t.__V=mt}))),ut=lt=null},l.__c=function(t,e){e.some((function(t){try{t.__h.forEach(zt),t.__h=t.__h.filter((function(t){return!t.__||Lt(t)}))}catch(qt){e.some((function(t){t.__h&&(t.__h=[])})),e=[],l.__e(qt,t.__v)}})),bt&&bt(t,e)},l.unmount=function(t){wt&&wt(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{zt(t)}catch(t){e=t}})),n.__H=void 0,e&&l.__e(e,n.__v))};var Mt="function"==typeof requestAnimationFrame;function Ot(t){var e,n=function(){clearTimeout(i),Mt&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);Mt&&(e=requestAnimationFrame(n))}function zt(t){var e=lt,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),lt=e}function Lt(t){var e=lt;t.__c=t.__(),lt=e}function Dt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function It(t,e){return"function"==typeof e?e(t):e}function Pt(){throw new Error("Cycle detected")}var Bt=Symbol.for("preact-signals");function Ht(){if(Wt>1)Wt--;else{for(var t,e=!1;void 0!==Ut;){var n=Ut;for(Ut=void 0,Vt++;void 0!==n;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Gt(n))try{n.c()}catch(n){e||(t=n,e=!0)}n=i}}if(Vt=0,Wt--,e)throw t}}var jt,Ft,Rt=void 0,Ut=void 0,Wt=0,Vt=0,qt=0;function Yt(t){if(void 0!==Rt){var e=t.n;if(void 0===e||e.t!==Rt)return e={i:0,S:t,p:Rt.s,n:void 0,t:Rt,e:void 0,x:void 0,r:e},void 0!==Rt.s&&(Rt.s.n=e),Rt.s=e,t.n=e,32&Rt.f&&t.S(e),e;if(-1===e.i)return e.i=0,void 0!==e.n&&(e.n.p=e.p,void 0!==e.p&&(e.p.n=e.n),e.p=Rt.s,e.n=void 0,Rt.s.n=e,Rt.s=e),e}}function $t(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}function Xt(t){return new $t(t)}function Gt(t){for(var e=t.s;void 0!==e;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function Jt(t){for(var e=t.s;void 0!==e;e=e.n){var n=e.S.n;if(void 0!==n&&(e.r=n),e.S.n=e,e.i=-1,void 0===e.n){t.s=e;break}}}function Zt(t){for(var e=t.s,n=void 0;void 0!==e;){var i=e.p;-1===e.i?(e.S.U(e),void 0!==i&&(i.n=e.n),void 0!==e.n&&(e.n.p=i)):n=e,e.S.n=e.r,void 0!==e.r&&(e.r=void 0),e=i}t.s=n}function Kt(t){$t.call(this,void 0),this.x=t,this.s=void 0,this.g=qt-1,this.f=4}function Qt(t){return new Kt(t)}function te(t){var e=t.u;if(t.u=void 0,"function"==typeof e){Wt++;var n=Rt;Rt=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,ee(t),e}finally{Rt=n,Ht()}}}function ee(t){for(var e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,te(t)}function ne(t){if(Rt!==this)throw new Error("Out-of-order effect");Zt(this),Rt=t,this.f&=-2,8&this.f&&ee(this),Ht()}function ie(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function re(t){var e=new ie(t);try{e.c()}catch(t){throw e.d(),t}return e.d.bind(e)}function oe(t,e){l[t]=e.bind(null,l[t]||function(){})}function ae(t){Ft&&Ft(),Ft=t&&t.S()}function ce(t){var e=this,n=t.data,i=le(n);i.value=n;var r=Et((function(){for(var t=e.__v;t=t.__;)if(t.__c){t.__c.__$f|=4;break}return e.__$u.c=function(){var t;m(r.peek())||3!==(null==(t=e.base)?void 0:t.nodeType)?(e.__$f|=1,e.setState({})):e.base.data=r.peek()},Qt((function(){var t=i.value.value;return 0===t?0:!0===t?"":t||""}))}),[]);return r.value}function se(t,e,n,i){var r=e in t&&void 0===t.ownerSVGElement,o=Xt(n);return{o:function(t,e){o.value=t,i=e},d:re((function(){var n=o.value.value;i[e]!==n&&(i[e]=n,r?t[e]=n:n?t.setAttribute(e,n):t.removeAttribute(e))}))}}function le(t){return Et((function(){return Xt(t)}),[])}function ue(t){var e=Nt(t);return e.current=t,jt.__$f|=4,Et((function(){return Qt((function(){return e.current()}))}),[])}$t.prototype.brand=Bt,$t.prototype.h=function(){return!0},$t.prototype.S=function(t){this.t!==t&&void 0===t.e&&(t.x=this.t,void 0!==this.t&&(this.t.e=t),this.t=t)},$t.prototype.U=function(t){if(void 0!==this.t){var e=t.e,n=t.x;void 0!==e&&(e.x=n,t.e=void 0),void 0!==n&&(n.e=e,t.x=void 0),t===this.t&&(this.t=n)}},$t.prototype.subscribe=function(t){var e=this;return re((function(){var n=e.value,i=32&this.f;this.f&=-33;try{t(n)}finally{this.f|=i}}))},$t.prototype.valueOf=function(){return this.value},$t.prototype.toString=function(){return this.value+""},$t.prototype.toJSON=function(){return this.value},$t.prototype.peek=function(){return this.v},Object.defineProperty($t.prototype,"value",{get:function(){var t=Yt(this);return void 0!==t&&(t.i=this.i),this.v},set:function(t){if(Rt instanceof Kt&&function(){throw new Error("Computed cannot have side-effects")}(),t!==this.v){Vt>100&&Pt(),this.v=t,this.i++,qt++,Wt++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{Ht()}}}}),(Kt.prototype=new $t).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===qt)return!0;if(this.g=qt,this.f|=1,this.i>0&&!Gt(this))return this.f&=-2,!0;var t=Rt;try{Jt(this),Rt=this;var e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return Rt=t,Zt(this),this.f&=-2,!0},Kt.prototype.S=function(t){if(void 0===this.t){this.f|=36;for(var e=this.s;void 0!==e;e=e.n)e.S.S(e)}$t.prototype.S.call(this,t)},Kt.prototype.U=function(t){if(void 0!==this.t&&($t.prototype.U.call(this,t),void 0===this.t)){this.f&=-33;for(var e=this.s;void 0!==e;e=e.n)e.S.U(e)}},Kt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;void 0!==t;t=t.x)t.t.N()}},Kt.prototype.peek=function(){if(this.h()||Pt(),16&this.f)throw this.v;return this.v},Object.defineProperty(Kt.prototype,"value",{get:function(){1&this.f&&Pt();var t=Yt(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),ie.prototype.c=function(){var t=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var e=this.x();"function"==typeof e&&(this.u=e)}finally{t()}},ie.prototype.S=function(){1&this.f&&Pt(),this.f|=1,this.f&=-9,te(this),Jt(this),Wt++;var t=Rt;return Rt=this,ne.bind(this,t)},ie.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ut,Ut=this)},ie.prototype.d=function(){this.f|=8,1&this.f||ee(this)},ce.displayName="_st",Object.defineProperties($t.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ce},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),oe("__b",(function(t,e){if("string"==typeof e.type){var n,i=e.props;for(var r in i)if("children"!==r){var o=i[r];o instanceof $t&&(n||(e.__np=n={}),n[r]=o,i[r]=o.peek())}}t(e)})),oe("__r",(function(t,e){ae();var n,i=e.__c;i&&(i.__$f&=-2,void 0===(n=i.__$u)&&(i.__$u=n=function(t){var e;return re((function(){e=this})),e.c=function(){i.__$f|=1,i.setState({})},e}())),jt=i,ae(n),t(e)})),oe("__e",(function(t,e,n,i){ae(),jt=void 0,t(e,n,i)})),oe("diffed",(function(t,e){var n;if(ae(),jt=void 0,"string"==typeof e.type&&(n=e.__e)){var i=e.__np,r=e.props;if(i){var o=n.U;if(o)for(var a in o){var c=o[a];void 0===c||a in i||(c.d(),o[a]=void 0)}else n.U=o={};for(var s in i){var l=o[s],u=i[s];void 0===l?(l=se(n,s,u,r),o[s]=l):l.o(u,r)}}}t(e)})),oe("unmount",(function(t,e){if("string"==typeof e.type){var n=e.__e;if(n){var i=n.U;if(i)for(var r in n.U=void 0,i){var o=i[r];o&&o.d()}}}else{var a=e.__c;if(a){var c=a.__$u;c&&(a.__$u=void 0,c.d())}}t(e)})),oe("__h",(function(t,e,n,i){(i<3||9===i)&&(e.__$f|=2),t(e,n,i)})),L.prototype.shouldComponentUpdate=function(t,e){var n=this.__$u;if(!(n&&void 0!==n.s||4&this.__$f))return!0;if(3&this.__$f)return!0;for(var i in e)return!0;for(var r in t)if("__source"!==r&&t[r]!==this.props[r])return!0;for(var o in this.props)if(!(o in t))return!0;return!1};var he=0;function de(t,e,n,i,r,o){var a,c,s={};for(c in e)"ref"==c?a=e[c]:s[c]=e[c];var u={type:t,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--he,__source:r,__self:o};if("function"==typeof t&&(a=t.defaultProps))for(c in a)void 0===s[c]&&(s[c]=a[c]);return l.vnode&&l.vnode(u),u}var fe=function(){return de("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:de("path",{d:"M843.904 783.573333 783.573333 843.904 512.042667 572.373333 240.512 843.904 180.181333 783.573333 451.712 512.042667 180.181333 240.512 240.512 180.181333 512.042667 451.712 783.573333 180.181333 843.904 240.512 572.373333 512.042667 843.904 783.573333Z"})})},pe=function(){return de("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:de("path",{d:"M900.64 379.808l-263.072-256.032c-36.448-35.328-105.76-35.392-142.304 0.096l-327.04 319.904c-56.416 54.72-70.72 76.704-70.72 150.976l0 143.936c0 132.768 26.976 192 186.912 192l131.872 0c81.12 0 128.448-46.656 193.952-111.264l290.016-297.696c18.592-17.984 29.248-43.968 29.248-71.264C929.504 423.36 918.976 397.6 900.64 379.808zM323.008 786.752c-52.928 0-96-43.072-96-96s43.072-96 96-96 96 43.072 96 96S375.936 786.752 323.008 786.752z"})})},ve=function(t){return de("svg",{viewBox:"0 0 1024 1024",id:"send",className:t.className,version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:de("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2-8.5 2.1-13.8 10.7-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-0.9 3.7-0.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 0.7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-0.8 4.2-2.6 5-5 1.4-4.2-0.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"})})},me=function(){return de("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:de("path",{d:"M962 197.61H747v-60c0-55.14-44.86-100-100-100H377c-55.14 0-100 44.86-100 100v60H62c-11.05 0-20 8.95-20 20s8.95 20 20 20h60v630.57c0 66.17 53.83 120 120 120h540c66.17 0 120-53.83 120-120V237.61h60c11.05 0 20-8.95 20-20s-8.95-20-20-20zM637.34 457.66v260c0 12.01-10.72 21.63-23.06 19.77-9.84-1.48-16.94-10.25-16.94-20.2V458.09c0-9.95 7.1-18.72 16.94-20.2 12.34-1.86 23.06 7.76 23.06 19.77z m-210.68 0v260c0 11-9 20-20 20s-20-9-20-20v-260c0-11 9-20 20-20s20 9 20 20zM317 137.61c0-33.08 26.92-60 60-60h270c33.08 0 60 26.92 60 60v60H317v-60z"})})},_e=function(){return de("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:de("path",{d:"M511.582491 63.413262C265.134543 63.413262 64.62588 263.921925 64.62588 510.369873s200.508663 446.957635 446.957635 446.957635 446.957635-200.508663 446.957635-446.957635S758.031463 63.413262 511.582491 63.413262zM509.001713 751.859903c-98.517781 0-182.467775-62.623269-214.771505-150.056598l0.327458-0.134053c-2.007727-4.036943-3.38305-8.422833-3.38305-13.237489 0-16.647145 13.494339-30.142507 30.142507-30.142507 13.389962 0 24.358781 8.877181 28.2893 20.955264l0.422625-0.172939c23.269983 65.442478 85.645612 112.503307 158.972665 112.503307 93.106538 0 168.845523-75.738985 168.845523-168.845523s-75.738985-168.845523-168.845523-168.845523c-20.432355 0-39.874149 3.980661-58.013275 10.66899l21.248953 40.742936c2.486634 2.677992 4.0175 6.2831 4.0175 10.243295 0 8.417717-8.404414 14.921851-15.365966 15.07023-0.102331 0-0.206708 0-0.309038 0-0.220011 0-0.427742 0-0.647753-0.013303l-150.579507-6.463202c-5.372358-0.234337-10.229992-3.310396-12.716626-8.093329-2.486634-4.76963-2.236947-10.509355 0.647753-15.055904l80.890308-127.179564c2.8847-4.533246 8.006348-7.151887 13.365402-6.960529 5.372358 0.234337 10.227945 3.312442 12.71458 8.095375l18.580171 35.625382c26.629497-10.855232 55.683207-16.963347 86.168522-16.963347 126.338407 0 229.130537 102.791108 229.130537 229.130537S635.340119 751.859903 509.001713 751.859903z"})})},ge=function(){return de("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:de("path",{d:"M891.072 822.144V167.36a34.432 34.432 0 0 0-34.432-34.432H201.856C201.856 94.848 232.704 64 270.784 64h620.288C929.152 64 960 94.848 960 132.928v620.288c0 38.08-30.848 68.928-68.928 68.928z m-68.928-551.36v620.288c0 38.08-30.848 68.928-68.928 68.928H132.928A68.928 68.928 0 0 1 64 891.072V270.784c0-38.08 30.848-68.928 68.928-68.928h620.288c38.08 0 68.928 30.848 68.928 68.928z m-137.856 137.856H201.856a34.432 34.432 0 0 0 0 68.864h482.432a34.432 34.432 0 0 0 0-68.864z m0 206.72H201.856a34.432 34.432 0 0 0 0 68.864h482.432a34.432 34.432 0 0 0 0-68.864z"})})},ye=function(){return de("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:de("path",{d:"M547.4 197.4v46l200.3 0.1L546.1 444l32.4 32.6 201.9-200.7v200.9h46V197.5zM471.4 584.4l-32.6-32.6L243.6 747V547.9h-46v278.7h279v-46H275z"})})},be=function(){return de("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:de("path",{d:"M544 480V282.944h52.224l0.064 107.968L763.072 224l36.928 36.928-166.976 166.976 108.032-0.128V480H544zM260.928 800l-36.928-36.928 166.912-166.784-107.968-0.064V544H480v197.056h-52.224l0.064-107.968L260.928 800z"})})},we=function(){return de("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:de("path",{d:"M960 544H64a32 32 0 1 1 0-64h896a32 32 0 1 1 0 64"})})},ke=function(){return de("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[de("path",{d:"M481.0752 263.3728l50.9952 1.024 1.8432-105.8816-50.9952-0.8192z"}),de("path",{d:"M486.441426 180.895362a66.56 66.56 0 1 0 42.091944-126.290153 66.56 66.56 0 1 0-42.091944 126.290153Z"}),de("path",{d:"M138.8544 664.3712c-52.8384 0-95.8464-43.008-95.8464-95.8464s43.008-95.8464 95.8464-95.8464M880.0256 472.6784c52.8384 0 95.8464 43.008 95.8464 95.8464s-43.008 95.8464-95.8464 95.8464"}),de("path",{d:"M507.4944 220.5696c-220.16 0-398.7456 162.816-398.7456 363.7248s178.5856 363.7248 398.7456 363.7248 398.7456-162.816 398.7456-363.7248-178.5856-363.7248-398.7456-363.7248z m0 559.9232c-166.2976 0-301.2608-100.5568-301.2608-224.4608s134.9632-224.4608 301.2608-224.4608S808.7552 432.128 808.7552 556.032 673.792 780.4928 507.4944 780.4928z"}),de("path",{d:"M319.6928 556.032a47.9232 38.912 90 1 0 77.824 0 47.9232 38.912 90 1 0-77.824 0Z"}),de("path",{d:"M617.472 556.032a47.9232 38.912 90 1 0 77.824 0 47.9232 38.912 90 1 0-77.824 0Z"})]})},xe=function(){return de("svg",{viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[de("path",{d:"M5.856 17.121a.979.979 0 0 1-.327-.06.839.839 0 0 1-.283-.177.739.739 0 0 1-.187-.255.724.724 0 0 1-.07-.303l-.02-1.609a4.663 4.663 0 0 1-1.446-.455 4.252 4.252 0 0 1-.637-.401c-.199-.146-.385-.31-.553-.492a4.442 4.442 0 0 1-.45-.577 4.303 4.303 0 0 1-.327-.637 3.823 3.823 0 0 1-.206-.686 3.729 3.729 0 0 1-.064-.704V6.478c0-.261.025-.516.077-.771a4.43 4.43 0 0 1 .244-.747 4.062 4.062 0 0 1 .932-1.28c.2-.183.418-.347.65-.493.23-.145.482-.267.739-.364a4.21 4.21 0 0 1 .81-.225c.27-.054.553-.078.835-.078H8.55c.103 0 .2.018.29.054a.7.7 0 0 1 .411.376.667.667 0 0 1-.161.766.736.736 0 0 1-.25.151.764.764 0 0 1-.29.055H5.573c-.186 0-.366.012-.54.049-.18.03-.353.079-.52.145-.167.061-.328.14-.482.237-.148.091-.29.2-.418.316a2.897 2.897 0 0 0-.347.388c-.097.14-.187.286-.257.444a2.473 2.473 0 0 0-.206.977v4.287c0 .17.013.333.051.503a2.549 2.549 0 0 0 .772 1.33 2.721 2.721 0 0 0 .913.559c.167.066.347.115.527.152.18.03.36.048.546.048a.904.904 0 0 1 .61.23.848.848 0 0 1 .194.262.84.84 0 0 1 .07.303l.007.99 1.915-1.293a2.877 2.877 0 0 1 1.64-.492h2.372c.186 0 .366-.018.54-.048.18-.03.353-.08.52-.146.168-.067.329-.146.483-.237.148-.091.29-.2.418-.316.128-.121.244-.249.347-.388a2.8 2.8 0 0 0 .257-.444 2.47 2.47 0 0 0 .206-.977V8.585a.646.646 0 0 1 .225-.492.679.679 0 0 1 .244-.152.814.814 0 0 1 .585 0c.09.03.174.085.244.152a.657.657 0 0 1 .225.492V10.8c0 .261-.032.516-.083.771a4.192 4.192 0 0 1-.245.74c-.109.244-.244.468-.398.687a3.735 3.735 0 0 1-.534.6c-.2.183-.418.347-.65.493a4.134 4.134 0 0 1-.738.364 4.7 4.7 0 0 1-.81.225c-.27.054-.553.079-.836.079h-1.877c-.604 0-1.144.164-1.633.491l-2.54 1.713a.913.913 0 0 1-.514.157z",fill:"currentColor"}),de("path",{d:"M15.866 4.125h-4.174c-.41 0-.741.313-.741.7 0 .387.332.7.741.7h4.174c.41 0 .742-.313.742-.7 0-.387-.332-.7-.742-.7z",fill:"currentColor"}),de("path",{d:"M14.537 2.932c0-.396-.34-.717-.759-.717s-.758.32-.758.717v3.786c0 .396.34.717.758.717.42 0 .76-.321.76-.717V2.932z",fill:"currentColor"})]})},Ce=function(){return de("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:de("path",{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"})})},Ne=function(){var t=1e3,e=140,n=250,i=.8;return de("svg",{fill:"currentColor",viewBox:"0 0 ".concat(t," ").concat(t),xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:Array.from({length:4}).map((function(t,r){return de("rect",{fill:"currentColor",rx:70,ry:70,height:n,width:e,x:286.66666666666663*r,y:375,children:[de("animate",{attributeName:"height",values:"".concat(n,"; ").concat(500,"; ").concat(n),keyTimes:"0; 0.5; 1",dur:"".concat(i,"s"),begin:"".concat(.2*r,"s"),repeatCount:"indefinite"}),de("animate",{attributeName:"y",values:"".concat(375,"; ").concat(250,"; ").concat(375),keyTimes:"0; 0.5; 1",dur:"".concat(i,"s"),begin:"".concat(.2*r,"s"),repeatCount:"indefinite"})]},r)}))})},Ee=function(t){return de("svg",{className:t.className,onClick:t.onClick,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:de("path",{d:"M128 384a128 128 0 1 1 0 256 128 128 0 0 1 0-256z m768 0a128 128 0 1 1 0 256 128 128 0 0 1 0-256z m-372.4288 0a128 128 0 1 1 0 256 128 128 0 0 1 0-256z"})})},Te=function(t){return de("svg",{className:t.className,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:de("path",{d:"M498.33984 607.8464c-10.99776-32.9728-50.09408-73.5232-82.6368-85.74976L150.9376 422.8096c-38.54336-14.4384-36.98688-69.46816 2.27328-81.73568L844.92288 124.90752c33.30048-10.40384 64.57344 20.8896 54.1696 54.1696L682.92608 870.78912a43.2128 43.2128 0 0 1-81.36704 3.25632 121682.5344 121682.5344 0 0 1-103.2192-266.19904z"})})},Se=function(t){return de("svg",{xmlns:"http://www.w3.org/2000/svg",className:t.className,viewBox:"0 0 512 512",children:de("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 184l144 144 144-144"})})},Ae=function(t){return de("svg",{xmlns:"http://www.w3.org/2000/svg",className:"".concat(t.className," icon"),viewBox:"0 0 512 512",children:de("path",{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm108.25 138.29l-134.4 160a16 16 0 01-12 5.71h-.27a16 16 0 01-11.89-5.3l-57.6-64a16 16 0 1123.78-21.4l45.29 50.32 122.59-145.91a16 16 0 0124.5 20.58z"})})},Me=function(t){return de("svg",{className:t.className,width:"16",height:"16",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",children:de("circle",{cx:"25",cy:"25",r:"20",stroke:"currentColor",strokeWidth:"5",fill:"none",strokeDasharray:"31.415, 31.415",strokeLinecap:"round",children:de("animateTransform",{attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"1s",repeatCount:"indefinite"})})})},Oe=function(){return de("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:de("path",{d:"M704 256v490.666667a170.666667 170.666667 0 0 1-170.666667 170.666666 170.666667 170.666667 0 0 1-170.666666-170.666666V213.333333A106.666667 106.666667 0 0 1 469.333333 106.666667 106.666667 106.666667 0 0 1 576 213.333333v448a42.666667 42.666667 0 0 1-42.666667 42.666667 42.666667 42.666667 0 0 1-42.666666-42.666667V256H426.666667v405.333333a106.666667 106.666667 0 0 0 106.666666 106.666667 106.666667 106.666667 0 0 0 106.666667-106.666667V213.333333a170.666667 170.666667 0 0 0-170.666667-170.666666 170.666667 170.666667 0 0 0-170.666666 170.666666v533.333334a234.666667 234.666667 0 0 0 234.666666 234.666666 234.666667 234.666667 0 0 0 234.666667-234.666666V256h-64z"})})},ze=function(){return de("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[de("path",{d:"M842.666667 285.866667l-187.733334-187.733334c-14.933333-14.933333-32-21.333333-53.333333-21.333333H234.666667C194.133333 74.666667 160 108.8 160 149.333333v725.333334c0 40.533333 34.133333 74.666667 74.666667 74.666666h554.666666c40.533333 0 74.666667-34.133333 74.666667-74.666666V337.066667c0-19.2-8.533333-38.4-21.333333-51.2z m-44.8 44.8c-2.133333 2.133333-4.266667 0-8.533334 0h-170.666666c-6.4 0-10.666667-4.266667-10.666667-10.666667V149.333333c0-2.133333 0-6.4-2.133333-8.533333 0 0 2.133333 0 2.133333 2.133333l189.866667 187.733334z m-8.533334 554.666666H234.666667c-6.4 0-10.666667-4.266667-10.666667-10.666666V149.333333c0-6.4 4.266667-10.666667 10.666667-10.666666h311.466666c-2.133333 4.266667-2.133333 6.4-2.133333 10.666666v170.666667c0 40.533333 34.133333 74.666667 74.666667 74.666667h170.666666c4.266667 0 6.4 0 10.666667-2.133334V874.666667c0 6.4-4.266667 10.666667-10.666667 10.666666z",fill:"currentColor"}),de("path",{d:"M640 693.333333H341.333333c-17.066667 0-32 14.933333-32 32s14.933333 32 32 32h298.666667c17.066667 0 32-14.933333 32-32s-14.933333-32-32-32zM640 522.666667H341.333333c-17.066667 0-32 14.933333-32 32s14.933333 32 32 32h298.666667c17.066667 0 32-14.933333 32-32s-14.933333-32-32-32zM341.333333 416h85.333334c17.066667 0 32-14.933333 32-32s-14.933333-32-32-32h-85.333334c-17.066667 0-32 14.933333-32 32s14.933333 32 32 32z",fill:"currentColor"})]})},Le=function(){return de("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:de("path",{d:"M557.248 511.68l135.776-135.744-45.248-45.28L512 466.432l-135.776-135.776-45.248 45.28 135.776 135.744-135.776 135.776 45.248 45.248L512 556.928l135.776 135.776 45.248-45.248-135.776-135.776zM512 64c247.136 0 448 200.864 448 448s-200.864 448-448 448S64 759.136 64 512 264.864 64 512 64z",fill:"currentColor"})})},De=function(){return de("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:de("path",{d:"M512.43945313 904.51953125c-6.06445313 0-12.12890625-1.58203125-17.57812501-4.74609375L136.70703125 689.71484375c-10.63476563-6.24023438-17.13867188-17.66601563-17.13867188-29.97070313s6.50390625-23.73046875 17.13867188-29.97070312l76.37695313-44.91210938L136.97070312 540.125c-10.63476563-6.24023438-17.13867188-17.66601563-17.13867187-29.97070313s6.50390625-23.73046875 17.13867188-29.97070312l73.38867187-43.15429688-73.125-42.890625C126.51171875 387.81054687 120.0078125 376.38476562 120.0078125 364.08007812c0-12.3046875 6.50390625-23.73046875 17.13867188-29.97070312L495.828125 122.99609375c10.8984375-6.41601563 24.34570313-6.41601563 35.24414063 0l358.15429687 210.05859375c10.63476563 6.24023438 17.13867188 17.66601563 17.13867188 29.97070313s-6.50390625 23.73046875-17.13867188 29.97070312l-73.38867188 43.15429688 73.12500001 42.890625c10.63476563 6.24023438 17.13867188 17.66601563 17.13867187 29.97070312s-6.50390625 23.73046875-17.13867187 29.97070313L812.5859375 583.89453125l76.11328125 44.6484375c10.63476563 6.24023438 17.13867188 17.66601563 17.13867188 29.97070313s-6.50390625 23.73046875-17.13867188 29.97070312l-358.59375 211.2890625c-5.44921875 3.1640625-11.6015625 4.74609375-17.66601563 4.74609375zM223.015625 659.65625l289.42382813 169.8046875 290.12695312-170.77148438-58.44726563-34.27734374L530.28125 750.18359375a34.67285156 34.67285156 0 0 1-35.24414063 0L281.7265625 625.02734375 223.015625 659.65625z m76.90429688-104.58984375l212.69531249 124.8046875 290.12695313-170.77148438-55.546875-32.60742187-216.65039063 127.6171875a34.67285156 34.67285156 0 0 1-35.24414062 0L279.00195312 477.28320312l-55.81054687 32.78320313 75.49804688 44.296875c0.43945313 0.26367188 0.79101563 0.52734375 1.23046874 0.703125z m-2.81250001-147.83203125l215.68359376 126.5625 216.12304687-127.17773438c0.3515625-0.26367188 0.703125-0.43945313 1.0546875-0.61523437l72.86132813-42.890625-289.33593751-169.8046875-290.12695312 170.68359375 72.59765625 42.62695313c0.43945313 0.17578125 0.79101563 0.43945313 1.14257813 0.61523437z"})})},Ie=function(t){return de("svg",{className:t.className,id:"stop",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[de("path",{d:"M512.268258 1022.835842c-68.658678 0-135.399619-13.564433-198.369591-40.316509-60.752236-25.809077-115.373446-62.712976-162.346233-109.685763-46.971763-46.971763-83.875662-101.592974-109.685763-162.346233C15.115619 647.517366 1.551186 580.777449 1.551186 512.118771S15.115619 376.719151 41.866671 313.74918c25.810101-60.752236 62.714-115.373446 109.685763-162.346233 46.972787-46.971763 101.593997-83.875662 162.346233-109.685763 62.969971-26.751052 129.710912-40.315485 198.369591-40.315485s135.398595 13.564433 198.368567 40.315485c60.752236 25.810101 115.373446 62.714 162.346233 109.685763 46.971763 46.972787 83.875662 101.593997 109.685763 162.346233 26.752076 62.969971 40.316509 129.710912 40.316509 198.369591s-13.564433 135.398595-40.316509 198.368567c-25.809077 60.75326-62.712976 115.37447-109.685763 162.346233-46.971763 46.972787-101.592974 83.876686-162.346233 109.685763C647.666853 1009.27141 580.925912 1022.835842 512.268258 1022.835842zM512.268258 50.548195c-62.018782 0-122.293887 12.247716-179.152287 36.403219-54.923257 23.333323-104.317532 56.709936-146.810821 99.204249s-75.870926 91.888588-99.204249 146.810821c-24.155503 56.8584-36.403219 117.133505-36.403219 179.152287 0 62.017758 12.247716 122.292863 36.403219 179.152287 23.333323 54.923257 56.709936 104.317532 99.204249 146.811845 42.493289 42.493289 91.888588 75.870926 146.810821 99.204249 56.8584 24.155503 117.133505 36.403219 179.152287 36.403219 62.017758 0 122.292863-12.247716 179.152287-36.403219 54.923257-23.333323 104.317532-56.71096 146.811845-99.204249 42.493289-42.494313 75.870926-91.888588 99.204249-146.811845 24.155503-56.8584 36.403219-117.133505 36.403219-179.152287s-12.247716-122.293887-36.403219-179.152287c-23.334347-54.923257-56.71096-104.317532-99.205273-146.810821-42.493289-42.493289-91.887565-75.870926-146.810821-99.204249C634.561121 62.795911 574.286016 50.548195 512.268258 50.548195z",fill:"currentColor"}),de("path",{d:"M655.434047 694.244421 367.12637 694.244421c-21.046987 0-38.170445-17.123458-38.170445-38.170445L328.955925 367.766298c0-21.046987 17.123458-38.170445 38.170445-38.170445l288.307678 0c21.048011 0 38.170445 17.123458 38.170445 38.170445l0 288.307678C693.604492 677.120962 676.482058 694.244421 655.434047 694.244421zM380.150191 643.050154l262.260035 0L642.410226 380.79012 380.150191 380.79012 380.150191 643.050154z",fill:"currentColor"})]})},Pe=function(t){return de("svg",{xmlns:"http://www.w3.org/2000/svg",className:t.className,viewBox:"0 0 512 512",children:de("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})})},Be=function(t){var e=t.items,n=le([]),i=new tt("chat-thought-chain"),r=le([]);Ct((function(){r.value=e.filter((function(t){return t.description})),r.value.length>0&&r.value.forEach((function(t,e){t.done&&(n.value=[].concat(o(n.value),[e]))}))}),[e]);return 0===r.value.length?null:de("div",{className:"".concat(i.b()," ").concat(i.is("single",1===r.value.length)),children:r.value.map((function(t,e){if(t.description){var r=n.value.includes(e);return de("div",{className:"".concat(i.e("item")," ").concat(i.is("collapsed",r)),children:[de("div",{className:i.e("item-icon"),children:t.icon||de("span",{children:e})}),de("div",{className:i.e("item-content"),children:[de("div",{className:i.e("item-title"),onClick:function(){return function(t){n.value.includes(t)?n.value=n.value.filter((function(e){return e!==t})):n.value=[].concat(o(n.value),[t])}(e)},children:[t.title,de(Se,{className:i.e("icon")})]}),de("div",{className:i.e("item-description"),children:t.description})]})]},e)}}))})},He=new tt("markdown-message"),je=function(t){var e=t.message,n=t.size,i=le(ot()),r=le(null),o=Et((function(){return 20===e.state&&!0!==e.completed}),[e.state,e.completed]),a=Et((function(){return 20===e.state&&!0===e.completed}),[e.state,e.completed]),c=le({title:"",description:"",icon:de(Me,{})}),l=function(t){var e=t.indexOf(""),n=t.indexOf(""),i="",r="",o=!1;return-1===n?(o=!1,i=t.slice(e+7),r=""):(o=!0,i=t.slice(e+7,n),r=t.slice(n+8)),{isThoughtCompleted:o,thoughtContent:i,answerContent:r}};return Ct((function(){if(n>=0&&r.value)if(-1!==e.content.indexOf("")){var t=l(e.content),i=t.isThoughtCompleted,o=t.thoughtContent,a=t.answerContent;i?(c.value.icon=de(Ae,{}),c.value.title="思考完成"):!0===e.completed?(c.value.icon=de(Ae,{}),c.value.title="思考已停止"):(c.value.icon=de(Me,{}),c.value.title="思考中..."),o&&(c.value.description=o),a&&r.value.setMarkdown(a)}else r.value.setMarkdown(e.content)}),[e,n]),Ct((function(){var t="";if(-1!==e.content.indexOf("")){var n=l(e.content),o=n.isThoughtCompleted,a=n.thoughtContent,u=n.answerContent;c.value={title:o?"思考完成":!0===e.completed?"思考已停止":"思考中...",description:a||"",icon:o||!0===e.completed?de(Ae,{}):de(Me,{})},u&&(t=u)}else t=e.content;r.value=new s({id:i,value:t||"",editor:{defaultModel:"previewOnly"}})}),[]),de("div",{className:"".concat(He.b()," ").concat(He.is("loading",o)),children:[de("div",{className:He.b("header"),children:[de("div",{className:He.be("header","caption"),children:"AI "}),t.children,a?de("div",{className:He.be("header","timeout"),children:"请求超时"}):null]}),de("div",{className:"".concat(He.b("content")," pre-wrap-container"),children:[de(Be,{items:[c.value]}),de("div",{id:i})]}),de("div",{className:He.b("footer")})]})},Fe=new tt("ossfile-material"),Re=function(t){var e=ue((function(){return t.material.data.name})),n=ue((function(){return t.material.metadata.size})),i=ue((function(){var e=t.material.metadata.state;return"successed"===e?"上传成功":"uploading"===e?"上传中":"failed"===e?"上传失败":"未知状态"})),r=ue((function(){switch(t.material.metadata.state){case"successed":return"#1890ff";case"uploading":return"#52c41a";default:return"#ff4d4f"}}));return de("div",{className:Fe.b(),children:[de("div",{className:Fe.b("left"),children:de(ze,{})}),de("div",{className:Fe.b("right"),children:[de("div",{className:Fe.e("name"),title:e,children:e}),de("div",{className:Fe.e("metadata"),children:[de("div",{children:[n,"B"]}),de("div",{style:{color:r.value},children:i})]})]})]})},Ue=new tt("common-material"),We=function(t){var e,n=null===(e=t.controller.opts.questionToolbarItems)||void 0===e?void 0:e.find((function(e){return e.id===t.material.metadata.actionId})),i=ue((function(){return t.material.metadata.name}));return de("div",{className:Ue.b(),children:[de("div",{className:Ue.b("left"),children:n&&n.icon?"function"==typeof n.icon?n.icon(M):n.icon:de(De,{})}),de("div",{className:Ue.b("right"),children:[de("div",{className:Ue.e("name"),title:i,children:i}),de("div",{className:Ue.e("metadata"),children:de("div",{children:(null==n?void 0:n.label)||"素材资源"})})]})]})},Ve=new tt("chat-input-material-item"),qe=function(t){var e=t.material,n=null;if("ossfile"===e.type)n=Re;else n=We;return de("div",{className:"".concat(Ve.b()," ").concat(Ve.is("disabled",t.disabled)),children:[de("div",{className:Ve.e("icon"),onClick:function(){t.controller.deleteMaterial(e)},children:de(Le,{})}),M(n,{material:e,controller:t.controller})]})},Ye=new tt("user-message-question"),$e=function(t){var e=ue((function(){return t.message.content})),n=ue((function(){return ft.parseMixedContent(e.value)}));return de("div",{className:Ye.b(),children:[de("div",{className:Ye.e("user-header"),children:[t.children,de("div",{className:Ye.e("user"),children:"我"})]}),de("div",{className:Ye.e("content"),children:de("div",{dir:"auto",className:Ye.em("content","body"),children:[de("p",{dir:"auto",className:Ye.em("content","material"),children:n.value.hasResources&&n.value.resources.map((function(e){return de(qe,{material:e,disabled:!0,controller:t.controller},e.id)}))}),de("p",{dir:"auto",className:"pre-wrap-container",children:n.value.remainingText})]})})]})},Xe=new tt("error-message"),Ge=function(t){var e=ue((function(){return t.message.content}));return de("div",{className:Xe.b(),children:[de("div",{className:Xe.b("header"),children:[de("div",{className:Xe.be("header","caption"),children:"AI "}),t.children]}),de("div",{className:"".concat(Xe.e("content")," pre-wrap-container"),children:de("span",{children:e})})]})},Je=new tt("unknown-message"),Ze=function(t){return de("div",{className:Je.b(),children:de("span",{className:"".concat(Je.e("content")," pre-wrap-container"),children:["暂未支持的消息类型: ",t.message.type]})})},Ke=new tt("chat-message-item"),Qe=function(t){var e=t.message,n=t.size,i=null;switch(e.type){case"DEFAULT":i="ASSISTANT"===e.role?je:$e;break;case"ERROR":i=Ge;break;default:i=Ze}return de("div",{className:Ke.b(),children:M(i,{size:n,message:e,controller:t.controller,children:t.children})})},tn=new tt("chat-toolbar"),en=function(t){var e=t.controller,n=t.items,i=void 0===n?[]:n,r=t.data,a=t.type,c=t.className,s=[],l="default",h=[{label:"新建对话",title:"新建对话",icon:de(xe,{}),onClick:function(){e.newDialogue()}}],d=[{label:"刷新",title:"刷新",icon:de(_e,{}),onClick:function(){e.refreshMessage(r)}},{label:"删除",title:"删除",icon:de(me,{}),onClick:function(){e.deleteMessage(r)}},{label:"复制",title:"复制",icon:de(ge,{}),onClick:function(){e.copyMessage(r)}}];St(ai).enableBackFill&&d.unshift.apply(d,[{label:"回填",title:"回填",icon:de(pe,{}),onClick:function(){e.backfill(r)}}]);var f=[{label:"刷新",title:"刷新",icon:de(_e,{}),onClick:function(){e.refreshMessage(r,!0)}}];if("content"===a)switch(l="circle",r.type){case"DEFAULT":s="ASSISTANT"===r.role?[].concat(d,o(i)):[].concat(f);break;case"ERROR":s=[].concat(d,o(i))}else s=[].concat(h,o(i));var p=function(t){return"function"==typeof t.disabled?t.disabled(r):!0===t.disabled},v=Et((function(){return"content"===a&&20===(null==r?void 0:r.state)&&!0!==(null==r?void 0:r.completed)}),[null==r?void 0:r.state,null==r?void 0:r.completed]);return de("div",{className:"".concat(tn.b()," ").concat(tn.e(l)," ").concat(c||""),children:s.map((function(t,n){if(!function(t){return"function"==typeof t.hidden?t.hidden(r):!0===t.hidden}(t))return de("div",{className:"".concat(tn.e("item")," ").concat(tn.is("disabled",p(t)||v)," ").concat(c||""),title:t.title,onClick:function(n){return function(t,n){var i;if(!p(n)){var o=u(u({},r),{},{topic:e.topic});o.msg.realcontent=r.realcontent,null===(i=n.onClick)||void 0===i||i.call(n,t,e.context,e.params,o)}}(n,t)},children:[de("div",{className:"".concat(tn.em("item","icon")),children:"function"==typeof t.icon?t.icon(M):t.icon}),de("div",{className:"".concat(tn.em("item","label")),children:"function"==typeof t.label?t.label(M):t.label})]},n)}))})};var nn=function(t){var e,n,i,r=le(!1),o=le({}),a=new tt("chat-back-bottom"),c=le(null),s=function(){if(c.value){var e=t.visibilityHeight||200,n=c.value.scrollHeight-c.value.scrollTop-c.value.offsetHeight;r.value=n>=e}},l=(e=s,n=300,i=null,function(){for(var t=this,r=arguments.length,o=new Array(r),a=0;a0&&(e.current.scrollTop=e.current.scrollHeight)})),de("div",{ref:e,className:rn.b(),children:[n.value.map((function(e){var n,i=(null===(n=e.content)||void 0===n?void 0:n.length)||0;return de(Qe,{size:i,message:e,controller:t.controller,children:de(en,{data:e,type:"content",items:t.toolbarItems,controller:t.controller})},e.messageid)})),de(nn,{right:20,bottom:14,target:".".concat(rn.b())})]})};function an(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var i in e)if("__source"!==i&&t[i]!==e[i])return!0;return!1}function cn(t){this.props=t}(cn.prototype=new L).isPureReactComponent=!0,cn.prototype.shouldComponentUpdate=function(t,e){return an(this.props,t)||an(this.state,e)};var sn=l.__b;l.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),sn&&sn(t)};var ln=l.__e;l.__e=function(t,e,n,i){if(t.then)for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e);ln(t,e,n,i)};var un=l.unmount;function hn(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=function(t,e){for(var n in e)t[n]=e[n];return t}({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return hn(t,e,n)}))),t}function dn(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return dn(t,e,n)})),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function fn(){this.__u=0,this.t=null,this.__b=null}function pn(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function vn(){this.u=null,this.o=null}l.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),un&&un(t)},(fn.prototype=new L).__c=function(t,e){var n=e.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=pn(i.__v),o=!1,a=function(){o||(o=!0,n.__R=null,r?r(c):c())};n.__R=a;var c=function(){if(! --i.__u){if(i.state.__a){var t=i.state.__a;i.__v.__k[0]=dn(t,t.__c.__P,t.__c.__O)}var e;for(i.setState({__a:i.__b=null});e=i.t.pop();)e.forceUpdate()}},s=!0===e.__h;i.__u++||s||i.setState({__a:i.__b=i.__v.__k[0]}),t.then(a,a)},fn.prototype.componentWillUnmount=function(){this.t=[]},fn.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=hn(this.__b,n,i.__O=i.__P)}this.__b=null}var r=e.__a&&M(z,null,t.fallback);return r&&(r.__h=null),[M(z,null,e.__a?null:t.children),r]};var mn=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(t)}}),K(M(_n,{context:e.context},t.__v),e.l)}function yn(t,e){var n=M(gn,{__v:t,i:e});return n.containerInfo=e,n}(vn.prototype=new L).__a=function(t){var e=this,n=pn(e.__v),i=e.o.get(t);return i[0]++,function(r){var o=function(){e.props.revealOrder?(i.push(r),mn(e,t,i)):r()};n?n(o):o()}},vn.prototype.render=function(t){this.u=null,this.o=new Map;var e=F(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},vn.prototype.componentDidUpdate=vn.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){mn(t,n,e)}))};var bn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,wn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,kn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,xn=/[A-Z0-9]/g,Cn="undefined"!=typeof document,Nn=function(t){return("undefined"!=typeof Symbol&&"symbol"==p(Symbol())?/fil|che|rad/:/fil|che|ra/).test(t)};L.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(L.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var En=l.event;function Tn(){}function Sn(){return this.cancelBubble}function An(){return this.defaultPrevented}l.event=function(t){return En&&(t=En(t)),t.persist=Tn,t.isPropagationStopped=Sn,t.isDefaultPrevented=An,t.nativeEvent=t};var Mn={enumerable:!1,configurable:!0,get:function(){return this.class}},On=l.vnode;l.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,i={};for(var r in e){var o=e[r];if(!("value"===r&&"defaultValue"in e&&null==o||Cn&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in e&&null==e.value?r="value":"download"===r&&!0===o?o="":"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Nn(e.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":kn.test(r)?r=a:-1===n.indexOf("-")&&wn.test(r)?r=r.replace(xn,"-$&").toLowerCase():null===o&&(o=void 0):a=r="oninput","oninput"===a&&i[r=a]&&(r="oninputCapture"),i[r]=o}}"select"==n&&i.multiple&&Array.isArray(i.value)&&(i.value=F(e.children).forEach((function(t){t.props.selected=-1!=i.value.indexOf(t.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=F(e.children).forEach((function(t){t.props.selected=i.multiple?-1!=i.defaultValue.indexOf(t.props.value):i.defaultValue==t.props.value}))),e.class&&!e.className?(i.class=e.class,Object.defineProperty(i,"className",Mn)):(e.className&&!e.class||e.class&&e.className)&&(i.class=i.className=e.className),t.props=i}(t),t.$$typeof=bn,On&&On(t)};var zn=l.__r;l.__r=function(t){zn&&zn(t),t.__c};var Ln=l.diffed;l.diffed=function(t){Ln&&Ln(t);var e=t.props,n=t.__e;null!=n&&"textarea"===t.type&&"value"in e&&e.value!==n.value&&(n.value=null==e.value?"":e.value)};var Dn=new Map;function In(t){var e=Dn.get(t);e&&e.destroy()}function Pn(t){var e=Dn.get(t);e&&e.update()}var Bn=null;"undefined"==typeof window?((Bn=function(t){return t}).destroy=function(t){return t},Bn.update=function(t){return t}):((Bn=function(t,e){return t&&Array.prototype.forEach.call(t.length?t:[t],(function(t){return function(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!Dn.has(t)){var e,n=null,i=window.getComputedStyle(t),r=(e=t.value,function(){a({testForHeightReduction:""===e||!t.value.startsWith(e),restoreTextAlign:null}),e=t.value}),o=function(e){t.removeEventListener("autosize:destroy",o),t.removeEventListener("autosize:update",c),t.removeEventListener("input",r),window.removeEventListener("resize",c),Object.keys(e).forEach((function(n){return t.style[n]=e[n]})),Dn.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,textAlign:t.style.textAlign,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",o),t.addEventListener("autosize:update",c),t.addEventListener("input",r),window.addEventListener("resize",c),t.style.overflowX="hidden",t.style.wordWrap="break-word",Dn.set(t,{destroy:o,update:c}),c()}function a(e){var r,o,c=e.restoreTextAlign,s=void 0===c?null:c,l=e.testForHeightReduction,u=void 0===l||l,h=i.overflowY;if(0!==t.scrollHeight&&("vertical"===i.resize?t.style.resize="none":"both"===i.resize&&(t.style.resize="horizontal"),u&&(r=function(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push([t.parentNode,t.parentNode.scrollTop]),t=t.parentNode;return function(){return e.forEach((function(t){var e=t[0],n=t[1];e.style.scrollBehavior="auto",e.scrollTop=n,e.style.scrollBehavior=null}))}}(t),t.style.height=""),o="content-box"===i.boxSizing?t.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):t.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&o>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(t.style.overflow="scroll"),o=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(t.style.overflow="hidden"),t.style.height=o+"px",s&&(t.style.textAlign=s),r&&r(),n!==o&&(t.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=o),h!==i.overflow&&!s)){var d=i.textAlign;"hidden"===i.overflow&&(t.style.textAlign="start"===d?"end":"start"),a({restoreTextAlign:d,testForHeightReduction:!0})}}function c(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(t)})),t}).destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],In),t},Bn.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],Pn),t});var Hn=Bn,jn=function(){function t(e){v(this,t),this.msg=e}return _(t,[{key:"messageid",get:function(){return this.msg.messageid}},{key:"state",get:function(){return this.msg.state}},{key:"role",get:function(){return this.msg.role}},{key:"type",get:function(){return this.msg.type}},{key:"realcontent",get:function(){var t=this.msg.content;if(-1!==t.indexOf("")&&-1===t.indexOf(""))return"";if(-1!==(t=t.replace(/[^]*?<\/think>/g,"").trim()).indexOf("")&&-1===t.indexOf(""))return"";var e=(t=t.replace(/[^]*?<\/resources>/g,"").trim()).indexOf("");return-1!==e&&(t=t.substring(0,e).trim()),t}},{key:"content",get:function(){return this.msg.content}},{key:"completed",get:function(){return this.msg.completed}},{key:"_origin",get:function(){return this.msg}},{key:"update",value:function(t){t.content||(t.content=""),this.msg.content+=t.content}},{key:"updateCompleted",value:function(t){this.msg.completed=t}}]),t}(),Fn=function(){function t(e){v(this,t),this.data=e}return _(t,[{key:"appid",get:function(){return this.data.appid}},{key:"id",get:function(){return this.data.id}},{key:"type",get:function(){return this.data.type}},{key:"caption",get:function(){return this.data.caption}},{key:"url",get:function(){return this.data.url}},{key:"aiChat",get:function(){return this.data.aiChat}}]),t}(),Rn=function(){function t(e){v(this,t),this.material=e}return _(t,[{key:"id",get:function(){return this.material.id}},{key:"type",get:function(){return this.material.type}},{key:"metadata",get:function(){return this.material.metadata}},{key:"data",get:function(){return this.material.data}}]),t}(),Un=function(t){return t.STYLE_CACHE="ai-chat-style-cache",t.MINIMIZE_STYLY_CHCHE="ai-chat-minimize-style-cache",t.DATA_BASE_NAME="ibiz-chat",t.DATA_TABLE_NAME="history-message",t.DATA_TABLE_KEY_NAME="id",t}(Un||{}),Wn=function(){function t(e){v(this,t),g(this,"messages",Xt([])),g(this,"materials",Xt([])),g(this,"input",Xt("")),g(this,"isLoading",Xt(!1)),g(this,"context",void 0),g(this,"params",void 0),g(this,"appDataEntityId",void 0),g(this,"topicId",void 0),g(this,"topic",void 0),this.opts=e,this.context=e.context,this.params=e.params,this.appDataEntityId=e.appDataEntityId,this.topicId=e.topicId,this.topic=e.topic,this.fecthHistory()}var e,n,i,r,a;return _(t,[{key:"fecthHistory",value:(a=f(h().mark((function t(){var e,n=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.topicId){t.next=7;break}return t.next=3,ct.getData(Un.DATA_BASE_NAME,Un.DATA_TABLE_NAME,this.topicId);case 3:if(!((e=t.sent)&&e.data&&e.data.length>0)){t.next=7;break}return e.data.forEach((function(t){var e={messageid:t.messageid,state:t.state,type:t.type,role:t.role,content:t.content,completed:!0};n.addMessage(e)})),t.abrupt("return",!0);case 7:return t.abrupt("return",this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId}));case 8:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"asyncToIndexDB",value:(r=f(h().mark((function t(){var e;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.topicId){t.next=2;break}return t.abrupt("return");case 2:return e={id:this.topicId,data:this.messages.value.map((function(t){return t._origin})),timestamp:(new Date).getTime()},t.next=5,ct.updateData(Un.DATA_BASE_NAME,Un.DATA_TABLE_NAME,e);case 5:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"setInput",value:function(t){this.input.value=t||""}},{key:"addMessage",value:function(t){var e=this.messages.value.find((function(e){return e.messageid===t.messageid}));e?(e.update(t),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new jn(t)]),this.asyncToIndexDB()}},{key:"completeMessage",value:function(t,e){var n=this.messages.value.find((function(e){return e.messageid===t}));n&&(n.updateCompleted(e),this.messages.value=o(this.messages.value),this.asyncToIndexDB())}},{key:"replaceMessage",value:function(t){var e=this.messages.value.findIndex((function(e){return e.messageid===t.messageid}));-1!==e?(this.messages.value[e]=new jn(t),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new jn(t)]),this.asyncToIndexDB()}},{key:"stopMessage",value:function(t){var e=this.messages.value.findIndex((function(e){return e.messageid===t.messageid}));if(-1!==e){var n=this.messages.value[e];t.content=n.content,this.messages.value[e]=new jn(t),this.messages.value=o(this.messages.value)}else this.messages.value=[].concat(o(this.messages.value),[new jn(t)]);this.asyncToIndexDB()}},{key:"stringlyMaterialResource",value:function(){var t="",e=[];return this.materials.value&&this.materials.value.length>0&&(this.materials.value.forEach((function(t){if("ossfile"===t.type){var n=t.metadata;n.state&&"successed"===n.state&&e.push(t)}else e.push(t)})),this.materials.value=[]),e&&e.length>0&&(t=ft.stringify(e)),t}},{key:"question",value:(i=f(h().mark((function t(e){var n;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,this.isLoading.value=!0,(n=this.stringlyMaterialResource())?n+="\n".concat(e):n=e,this.addMessage({state:30,messageid:ot(),role:"USER",type:"DEFAULT",content:n}),t.next=7,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(t){return"ERROR"!==t.type})).map((function(t){return t._origin})));case 7:this.opts.action&&this.opts.action("question",e),this.isLoading.value=!1;case 9:return t.prev=9,this.isLoading.value=!1,t.finish(9);case 12:case"end":return t.stop()}}),t,this,[[0,,9,12]])}))),function(t){return i.apply(this,arguments)})},{key:"abortQuestion",value:function(){try{this.opts.abortQuestion(this)}finally{this.isLoading.value=!1}}},{key:"backfill",value:function(t){this.opts.action&&this.opts.action("backfill",t)}},{key:"deleteMessage",value:function(t){var e=this.messages.value.findIndex((function(e){return e.messageid===t.messageid}));-1!==e&&(this.messages.value.splice(e,1),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),this.opts.action&&this.opts.action("deletemsg",t)}},{key:"refreshMessage",value:(n=f(h().mark((function t(e){var n,i,r,a=arguments;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],this.isLoading.value=!0,t.prev=2,i=this.messages.value.findIndex((function(t){return t.messageid===e.messageid})),!n){t.next=11;break}return this.messages.value.splice(i+1,this.messages.value.length-i-1),this.messages.value=o(this.messages.value),t.next=9,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(t){return"ERROR"!==t.type})).map((function(t){return t._origin})));case 9:t.next=21;break;case 11:if(i!==this.messages.value.length-1){t.next=18;break}return this.messages.value.pop(),this.messages.value=o(this.messages.value),t.next=16,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(t){return"ERROR"!==t.type})).map((function(t){return t._origin})));case 16:t.next=21;break;case 18:r=this.messages.value[i-1].content,this.messages.value.splice(i-1,2),this.question(r);case 21:this.asyncToIndexDB(),this.opts.action&&this.opts.action("refreshmsg",e);case 23:return t.prev=23,this.isLoading.value=!1,t.finish(23);case 26:case"end":return t.stop()}}),t,this,[[2,,23,26]])}))),function(t){return n.apply(this,arguments)})},{key:"copyMessage",value:function(t){var e=t.realcontent;at.copy(e),this.opts.action&&this.opts.action("copymsg",t)}},{key:"newDialogue",value:(e=f(h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.messages.value.length=0,!this.topicId){t.next=4;break}return t.next=4,ct.deleteData(Un.DATA_BASE_NAME,Un.DATA_TABLE_NAME,this.topicId);case 4:this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId});case 5:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"addMaterial",value:function(t){var e=this.materials.value.find((function(e){return e.id===t.id}));this.materials.value=e?o(this.materials.value):[].concat(o(this.materials.value),[new Rn(t)])}},{key:"replaceMaterial",value:function(t,e){var n=this.materials.value.findIndex((function(e){return e.id===t}));-1!==n?(this.materials.value[n]=new Rn(e),this.materials.value=o(this.materials.value)):this.materials.value=[].concat(o(this.materials.value),[new Rn(e)])}},{key:"deleteMaterial",value:function(t){var e=this.materials.value.findIndex((function(e){return e.id===t.id}));-1!==e&&(this.materials.value.splice(e,1),this.materials.value=o(this.materials.value))}}]),t}(),Vn=function(){function t(e){v(this,t),g(this,"topics",Xt([])),g(this,"activedTopic",Xt(null)),g(this,"currentTopicOptions",void 0),this.chat=e}var e,n,i,r;return _(t,[{key:"fetchHistory",value:(r=f(h().mark((function t(e){var n,i,r=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.configService(e.appid,"aitopics",e.type),t.next=3,n.load();case 3:(i=t.sent)&&i.length>0&&i.forEach((function(t){r.topics.value=[].concat(o(r.topics.value),[new Fn(t)])}));case 5:case"end":return t.stop()}}),t)}))),function(t){return r.apply(this,arguments)})},{key:"updateCurrentTopic",value:(i=f(h().mark((function t(e){var n,i,r,a;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.currentTopicOptions=e,n=this.topics.value.findIndex((function(t){return t.id===e.id})),i=new Fn(e),-1!==n?this.topics.value.splice(n,1,new Fn(e)):this.topics.value=[].concat(o(this.topics.value),[new Fn(e)]),r=this.topics.value.map((function(t){return{appid:t.appid,id:t.id,type:t.type,caption:t.caption,url:t.url,aiChat:t.aiChat}})),a=e.configService(e.appid,"aitopics",e.type),t.next=8,null==a?void 0:a.save(r);case 8:this.activedTopic.value=i;case 9:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"removeTopic",value:(n=f(h().mark((function t(e,n,i,r,a){var c,s,l,u,d;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=!0,!e.beforeDelete){t.next=5;break}return t.next=4,e.beforeDelete(n,i,r,a);case 4:s=t.sent;case 5:if(s){t.next=7;break}return t.abrupt("return");case 7:return-1!==(l=this.topics.value.findIndex((function(t){return t.id===r.id})))&&(this.topics.value.splice(l,1),this.topics.value=o(this.topics.value)),u=this.topics.value.map((function(t){return{appid:t.appid,id:t.id,type:t.type,caption:t.caption,url:t.url,aiChat:t.aiChat}})),d=e.configService(e.appid,"aitopics",e.type),t.next=13,null==d?void 0:d.save(u);case 13:return t.next=15,ct.deleteData(Un.DATA_BASE_NAME,Un.DATA_TABLE_NAME,r.id);case 15:this.topics.value.length>0&&r.id===(null===(c=this.activedTopic.value)||void 0===c?void 0:c.id)&&this.handleTopicChange(this.topics.value[0]);case 16:case"end":return t.stop()}}),t,this)}))),function(t,e,i,r,o){return n.apply(this,arguments)})},{key:"handleTopicChange",value:function(t){var e;(null===(e=this.activedTopic.value)||void 0===e?void 0:e.id)!==t.id&&(this.activedTopic.value=t,this.chat.switchAiChatController(t))}},{key:"handleTopicAction",value:(e=f(h().mark((function t(e,n,i){var r,o,a,c,s,l;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.topics.value.find((function(t){return t.id===n.id})),!(this.currentTopicOptions&&r&&r.aiChat)){t.next=7;break}if(c=r.aiChat,s=c.context,l=c.params,"DELETE"!==e){t.next=6;break}return t.next=6,this.removeTopic(this.currentTopicOptions,s,l,r,i);case 6:null===(o=(a=this.currentTopicOptions).action)||void 0===o||o.call(a,e,s,l,n,i);case 7:case"end":return t.stop()}}),t,this)}))),function(t,n,i){return e.apply(this,arguments)})}]),t}(),qn=_((function t(e){v(this,t),this.aiChat=e})),Yn=function(e){t(o,e);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=f(h().mark((function t(e,n){var i,r,o;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n||!n.onClick){t.next=5;break}return t.next=3,n.onClick(e,this.aiChat.context,this.aiChat.params);case 3:(i=t.sent)&&i.data&&i.data.length>0&&(r=i.data[0],o={id:r.id,type:r.type,data:r.data||{},metadata:r.metadata||{}},n.id&&Object.assign(o.metadata,{actionId:n.id}),this.aiChat.addMaterial(o));case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})}]),o}(qn),$n=function(e){t(o,e);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=f(h().mark((function t(e,n){var i,r,o,a,c,s,l,u,d,p,v=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=this.aiChat.opts.uploader,r=i.multiple,o=i.accept,a=i.maxSize,c=i.onSelect,s=i.onUpload,l=i.onSuccess,u=i.onError,d=i.onProgress,p={multiple:r||!0,accept:o||"*/*",maxSize:a||5242880,onSelect:function(t){null==c||c(t),t.length>0&&t.forEach((function(t){var e=v.buildMaterialObject(t);Object.assign(e.metadata,{state:"uploading"}),v.aiChat.addMaterial(e)}))},onUpload:function(){var t=f(h().mark((function t(e,n){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s(e,n,{context:v.aiChat.context,params:v.aiChat.params}));case 1:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),onSuccess:function(t,e){var n={id:t.id,type:"ossfile",data:{id:t.id,name:t.name},metadata:{ext:t.ext,fileext:t.fileext,fileid:t.fileid,filename:t.filename,size:t.size,filesize:t.filesize,state:"successed"}};v.aiChat.replaceMaterial(e.name,n),null==l||l(t,e)},onError:function(t,e){var n=v.buildMaterialObject(e);Object.assign(n.metadata,{state:"failed"}),v.aiChat.replaceMaterial(e.name,n),null==u||u(t,e)},onProgress:function(t,e){null==d||d(t,e)}},new dt(p).openFilePicker();case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})},{key:"buildMaterialObject",value:function(t){return{id:t.name,type:"ossfile",data:{name:t.name,id:t.name},metadata:{size:t.size,type:t.type,lastModified:t.lastModified}}}}]),o}(qn),Xn=function(){function t(){v(this,t)}return _(t,null,[{key:"getMaterialHelper",value:function(t,e){return"ossfile"===t?new $n(e):new Yn(e)}}]),t}(),Gn=function(){function t(){v(this,t),g(this,"container",void 0),g(this,"mode","DEFAULT"),g(this,"isMountedAiTopic",!1),g(this,"backupChatOptions",void 0),g(this,"aiTopic",void 0),g(this,"aiTopicMap",new Map),this.aiTopic=new Vn(this)}var e,n;return _(t,[{key:"aiChat",get:function(){var t;return this.aiTopicMap.get("".concat(null===(t=this.aiTopic.activedTopic.value)||void 0===t?void 0:t.id))}},{key:"initIndexDB",value:(n=f(h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ct.checkTableExists(Un.DATA_BASE_NAME,Un.DATA_TABLE_NAME);case 2:if(t.sent){t.next=6;break}return t.next=6,ct.createTable(Un.DATA_BASE_NAME,Un.DATA_TABLE_NAME,Un.DATA_TABLE_KEY_NAME,!1);case 6:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})},{key:"create",value:(e=f(h().mark((function t(e){var n,i,r,o,a,c,s=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.initIndexDB();case 2:if(this.backupChatOptions=e,this.close(),this.container=document.createElement("div"),this.container.classList.add("ibiz-ai-chat"),document.body.appendChild(this.container),o=e.chatOptions,!e.mode||"TOPIC"!==e.mode){t.next=17;break}if(this.isMountedAiTopic){t.next=13;break}return t.next=12,this.aiTopic.fetchHistory(e.topicOptions);case 12:this.isMountedAiTopic=!0;case 13:return a=e.topicOptions,Object.assign(a,{aiChat:{caption:o.caption,context:o.context,params:o.params,appDataEntityId:o.appDataEntityId,contentToolbarItems:o.contentToolbarItems,footerToolbarItems:o.footerToolbarItems,questionToolbarItems:o.questionToolbarItems}}),t.next=17,this.aiTopic.updateCurrentTopic(a);case 17:return Object.assign(o,{topicId:null===(n=a)||void 0===n?void 0:n.id,topic:a}),c=new Wn(o),this.aiTopicMap.set("".concat(null===(i=a)||void 0===i?void 0:i.id),c),K(M(ci,{aiChat:c,aiTopic:this.aiTopic,mode:e.mode?e.mode:"DEFAULT",containerOptions:e.containerOptions,caption:e.mode&&"TOPIC"===e.mode?"AI助手":o.caption,enableBackFill:null===(r=e.containerOptions)||void 0===r?void 0:r.enableBackFill,contentToolbarItems:o.contentToolbarItems,footerToolbarItems:o.footerToolbarItems,questionToolbarItems:o.questionToolbarItems,close:function(){s.close(),o.closed&&o.closed(o.context,o.params)},fullscreen:function(t){o.fullscreen&&o.fullscreen(t,o.context,o.params)},minimize:function(t){o.minimize&&o.minimize(t,o.context,o.params)}}),this.container),t.abrupt("return",c);case 22:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"switchAiChatController",value:function(t){var e,n,i,r,o,a=this,c=u({},this.backupChatOptions.chatOptions);(t.aiChat&&Object.assign(c,{caption:t.aiChat.caption,context:t.aiChat.context,params:t.aiChat.params,contentToolbarItems:t.aiChat.contentToolbarItems,footerToolbarItems:t.aiChat.footerToolbarItems,questionToolbarItems:t.aiChat.questionToolbarItems,appDataEntityId:t.aiChat.appDataEntityId,topicId:t.id,topic:t}),this.aiTopicMap.has("".concat(t.id))?e=this.aiTopicMap.get("".concat(t.id)):(e=new Wn(c),this.aiTopicMap.set("".concat(t.id),e)),this.container)&&(K(null,this.container),K(M(ci,{aiChat:e,aiTopic:this.aiTopic,mode:null!==(n=this.backupChatOptions)&&void 0!==n&&n.mode?this.backupChatOptions.mode:"DEFAULT",containerOptions:null===(i=this.backupChatOptions)||void 0===i?void 0:i.containerOptions,caption:null!==(r=this.backupChatOptions)&&void 0!==r&&r.mode&&"TOPIC"===this.backupChatOptions.mode?"AI助手":c.caption,enableBackFill:null===(o=this.backupChatOptions)||void 0===o||null===(o=o.containerOptions)||void 0===o?void 0:o.enableBackFill,contentToolbarItems:c.contentToolbarItems,footerToolbarItems:c.footerToolbarItems,questionToolbarItems:c.questionToolbarItems,close:function(){a.close(),c.closed&&c.closed(c.context,c.params)},fullscreen:function(t){c.fullscreen&&c.fullscreen(t,c.context,c.params)},minimize:function(t){c.minimize&&c.minimize(t,c.context,c.params)}}),this.container))}},{key:"hidden",value:function(){this.container&&(this.container.style.display="none")}},{key:"show",value:function(){this.container&&(this.container.style.display="flex")}},{key:"close",value:function(){this.container&&(K(null,this.container),this.container.remove(),this.container=void 0)}}]),t}(),Jn=(e("chat",new Gn),new tt("chat-input-material")),Zn=function(t){var e=t.controller.materials;return de("div",{className:Jn.b(),children:e.value.map((function(e){return de(qe,{material:e,disabled:!1,controller:t.controller},e.id)}))})},Kn=function(t){var e=t.children,n=t.actions,i=t.content,r=t.position,o=void 0===r?"bottom":r,c=t.isOpen,s=t.onToggleOpen,l=t.onAction,h=new tt("pop"),d=St(ai),f=a(xt(c||!1),2),p=f[0],v=f[1],m=Nt(null),_=Nt(null);Ct((function(){void 0!==c&&v(c)}),[c]),Ct((function(){return _.current||(_.current=document.createElement("div"),_.current.className=h.b("content-container"),document.body.appendChild(_.current)),function(){_.current&&document.body.removeChild(_.current)}}),[]),Ct((function(){var t=function(t){!m.current||m.current.contains(t.target)||t.target.closest(".".concat(h.b("content")))||t.target.closest(".ibiz-quick-edit")||t.target.closest(".ibiz-picker__transfer")||(v(!1),null==s||s(!1))};return p&&document.addEventListener("mousedown",t),function(){document.removeEventListener("mousedown",t)}}),[p,s]);return de("span",{className:"".concat(h.b("trigger-container")),children:[de("span",{className:"".concat(h.b("trigger-element")),ref:m,onClick:function(t){t.stopPropagation();var e=!p;v(e),null==s||s(e)},children:e}),p&&_.current&&yn(de("div",{className:"".concat(h.b("content")," pop-").concat(o),style:function(){if(!m.current)return{};var t=m.current.getBoundingClientRect(),e={position:"absolute",zIndex:d.zIndex+1},n={bottom:{top:t.bottom+window.scrollY,left:t.left+window.scrollX},top:{bottom:window.innerHeight-t.top+window.scrollY,left:t.left+window.scrollX},left:{top:t.top+window.scrollY,right:window.innerWidth-t.left+window.scrollX},right:{top:t.top+window.scrollY,left:t.right+window.scrollX},"top-left":{bottom:window.innerHeight-t.top+window.scrollY,right:window.innerWidth-t.left+window.scrollX}};return u(u({},e),n[o])}(),children:i||(null==n?void 0:n.map((function(t){return de("div",{className:h.b("content-item"),onMouseDown:function(e){e.stopPropagation(),null==l||l(t.id,e)},children:[t.icon&&de("img",{className:h.b("content-item__icon"),src:t.icon,alt:t.caption}),de("div",{className:h.b("content-item__caption"),children:t.caption})]},t.id)})))}),_.current)]})},Qn=new tt("chat-input"),ti=window.SpeechRecognition||window.webkitSpeechRecognition,ei=function(t){var e,n=a(xt(!1),2),i=n[0],r=n[1],o=Nt(null),c=t.controller.input,s=le(!1),l=Nt();ti&&!l.current&&(l.current=new ti,l.current.onstart=function(){s.value=!0},l.current.onend=function(){s.value=!1},l.current.onresult=function(t){var e,n=null===(e=t.results)||void 0===e||null===(e=e[0])||void 0===e||null===(e=e[0])||void 0===e?void 0:e.transcript;n&&(c.value="".concat(c.value).concat(n))});var u=Tt((function(t){c.value=t.target.value}),[c]),d=ue((function(){return c.value.length<=0}));Ct((function(){return o.current&&Hn(o.current),function(){o.current&&Hn.destroy(o.current)}}),[o]);var p=Tt(f(h().mark((function e(){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=c.value,c.value="",e.next=5,t.controller.question(n);case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),[c]),v=Tt(f(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{t.controller.abortQuestion()}catch(n){console.error(n)}case 1:case"end":return e.stop()}}),e)}))),[c]),m=function(){var e=f(h().mark((function e(n){var i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Xn.getMaterialHelper("ossfile",t.controller),e.next=3,i.excuteAction(n);case 3:r(!1);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),_=function(){var e=f(h().mark((function e(n,i){var o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=Xn.getMaterialHelper("common",t.controller),e.next=3,o.excuteAction(n,i);case 3:r(!1);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return de("div",{className:Qn.b("wrapper"),children:[de("div",{className:Qn.b("material-wrapper"),children:de(Zn,{controller:t.controller})}),de("div",{className:Qn.b("main-wrapper"),children:[de("textarea",{className:Qn.e("textarea"),type:"text",rows:6,autoCorrect:"off",autoCapitalize:"off",autoComplete:"off",value:c,onInput:u,onKeyDown:function(t){"Enter"!==t.code||t.isComposing||(t.stopPropagation(),!1===t.shiftKey&&p())},ref:o,disabled:t.controller.isLoading.value}),de("div",{className:Qn.b("action-wrapper"),children:[de("div",{className:"".concat(Qn.be("action-wrapper","action-item")),children:de(Kn,{content:de("div",{className:Qn.b("pop-actions"),children:[de("div",{className:Qn.b("pop-action-item"),onClick:function(t){m(t)},children:[de("span",{className:Qn.b("pop-action-item-icon"),children:de(ze,{})}),de("span",{className:Qn.b("pop-action-item-title"),children:"文件资料"})]}),null===(e=t.questionToolbarItems)||void 0===e?void 0:e.map((function(t){return de("div",{className:Qn.b("pop-action-item"),onClick:function(e){_(e,t)},children:[de("span",{className:Qn.b("pop-action-item-icon"),children:"function"==typeof t.icon?t.icon(M):t.icon}),de("span",{className:Qn.b("pop-action-item-title"),children:"function"==typeof t.label?t.label(M):t.label})]},t.id)}))]}),position:"top-left",isOpen:i,onToggleOpen:r,children:de(Oe,{})})}),de("div",{title:s.value?"语音输入中...":"语音输入",className:"".concat(Qn.be("action-wrapper","action-item")),onClick:function(){l.current&&!s.value&&l.current.start()},children:s.value?de(Ne,{}):de(Ce,{})}),t.controller.isLoading.value?de("div",{title:"停止生成",className:"".concat(Qn.be("action-wrapper","action-item")),onClick:v,children:de(Ie,{})}):de("div",{title:"发送消息",className:"".concat(Qn.be("action-wrapper","action-item")),onClick:p,children:de(ve,{className:"".concat(Qn.is("disabled",d.value))})})]})]})]})},ni=new tt("chat-topic-item"),ii=function(t){var e=t.controller,n=t.topic,i=t.onClick,r=t.onAction,o=ue((function(){var t;return(null===(t=e.activedTopic.value)||void 0===t?void 0:t.id)===n.id})),c=a(xt(!1),2),s=c[0],l=c[1];return de("div",{className:"".concat(ni.b()," ").concat(ni.is("active",o.value)),onClick:i.bind(void 0),children:[de("div",{className:ni.b("caption"),title:n.caption,children:n.caption}),de("div",{className:ni.b("icon"),children:[de("span",{className:ni.be("icon","item"),title:"跳转主视图",onClick:function(t){t.stopPropagation(),r("LINK",t)}.bind(void 0),children:de(Te,{className:ni.b("link-icon")})}),o.value?null:de(Kn,{actions:[{id:"DELETE",caption:"删除话题"}],position:"bottom",isOpen:s,onToggleOpen:l,onAction:function(t,e){"DELETE"===t&&r("DELETE",e),l(!1)}.bind(void 0),children:de("span",{className:ni.be("icon","item"),title:"更多",children:de(Ee,{className:ni.b("more-icon")})})})]})]})},ri=new tt("chat-topics"),oi=function(t){var e=t.controller.topics;return de("div",{className:ri.b(),children:e.value.map((function(e){return de(ii,{topic:e,controller:t.controller,onClick:function(){return function(e){t.controller.handleTopicChange(e)}(e)},onAction:function(n,i){return function(e,n,i){t.controller.handleTopicAction(e,n,i)}(n,e,i)}},e.id)}))})},ai=function(t,e){var n={__c:e="__cC"+x++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,i;return this.getChildContext||(n=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,P(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}({zIndex:10,enableBackFill:!0}),ci=function(e){t(o,e);var r=n(o);function o(t){var e,n,a,c,s;return v(this,o),g(i(s=r.call(this,t)),"ns",new tt("chat-container")),g(i(s),"containerRef",{current:null}),g(i(s),"dragHandle",{current:null}),g(i(s),"minimizeRef",{current:null}),g(i(s),"data",{y:0,height:1,width:600/window.innerWidth,x:(window.innerWidth-600)/window.innerWidth,minWidth:500,minHeight:300}),g(i(s),"minimizeData",{x:(window.innerWidth-86)/window.innerWidth,y:(window.innerHeight-86)/window.innerHeight}),g(i(s),"disabled",!1),g(i(s),"isDragging",!1),g(i(s),"containerContext",{zIndex:(null===(e=s.props.containerOptions)||void 0===e?void 0:e.zIndex)||10,enableBackFill:void 0===(null===(n=s.props)||void 0===n?void 0:n.enableBackFill)||null===(null===(a=s.props)||void 0===a?void 0:a.enableBackFill)||(null===(c=s.props)||void 0===c?void 0:c.enableBackFill)}),s.state={isFullScreen:!1,isMinimize:!1},s}return _(o,[{key:"calcWindowStyle",value:function(){var t;return{left:"".concat(100*this.data.x,"%"),top:"".concat(100*this.data.y,"%"),width:"".concat(100*this.data.width,"%"),height:"".concat(100*this.data.height,"%"),minWidth:"".concat(this.data.minWidth,"px"),minHeight:"".concat(this.data.minHeight,"px"),"z-index":(null===(t=this.props.containerOptions)||void 0===t||null===(t=t.zIndex)||void 0===t?void 0:t.toString())||"10"}}},{key:"calcMinimizeStyle",value:function(){return{left:"".concat(100*this.minimizeData.x,"%"),top:"".concat(100*this.minimizeData.y,"%"),"z-index":"99999"}}},{key:"setStyle",value:function(){Object.assign(this.containerRef.current.style,this.calcWindowStyle()),Object.assign(this.minimizeRef.current.style,this.calcMinimizeStyle())}},{key:"isWithinBounds",value:function(t){return t.x>=0&&t.x<=1&&t.y>=0&&t.y<=1}},{key:"snapToEdge",value:function(){var t=20/window.innerWidth,e=20/window.innerHeight;this.data.x1-t&&(this.data.x=1-this.data.width),this.data.y1-e&&(this.data.y=1-this.data.height),this.setStyle()}},{key:"limitDraggable",value:function(t,e,n,i){var r=t/window.innerWidth,o=e/window.innerHeight;return{x:Math.max(0,Math.min(r,1-n)),y:Math.max(0,Math.min(o,1-i))}}},{key:"registerDragMinmize",value:function(){var t=this;this.minimizeRef.current.onmousedown=function(e){document.body.style.userSelect="none";var n=e.clientX-t.minimizeRef.current.offsetLeft,i=e.clientY-t.minimizeRef.current.offsetTop,r=Date.now(),o=function(e){var r=56/window.innerWidth,o=56/window.innerHeight,a=t.limitDraggable(e.clientX-n,e.clientY-i,r,o),c=a.x,s=a.y;Object.assign(t.minimizeData,{x:c,y:s}),t.setStyle()};document.addEventListener("mousemove",o),document.addEventListener("mouseup",(function e(){var n=Date.now();t.isDragging=n-r>300,document.body.style.userSelect="",document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",e)}))}}},{key:"registerDragDialog",value:function(){var t=this;this.dragHandle.current.onmousedown=function(e){if(!t.state.isFullScreen){document.body.style.userSelect="none";var n=e.clientX-t.containerRef.current.offsetLeft,i=e.clientY-t.containerRef.current.offsetTop,r=function(e){if(!t.disabled){var r=t.limitDraggable(e.clientX-n,e.clientY-i,t.data.width,t.data.height),o=r.x,a=r.y;Object.assign(t.data,{x:o,y:a}),t.setStyle()}};document.addEventListener("mousemove",r),document.addEventListener("mouseup",(function e(){document.body.style.userSelect="",document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",e),t.disabled||t.snapToEdge()}))}}}},{key:"registerDragDialogBorder",value:function(){var t=this;c(this.containerRef.current).resizable({edges:{top:!0,right:!0,bottom:!0,left:!0},margin:6,modifiers:[c.modifiers.restrictEdges({outer:document.body}),c.modifiers.restrictSize({min:{width:this.data.minWidth,height:this.data.minHeight}})],inertia:!0,listeners:{move:function(e){t.state.isFullScreen||(t.data.x=e.rect.left/window.innerWidth,t.data.y=e.rect.top/window.innerHeight,t.data.width=e.rect.width/window.innerWidth,t.data.height=e.rect.height/window.innerHeight,t.setStyle())},start:function(){t.disabled=!0,document.body.style.userSelect="none"},end:function(){t.disabled=!1,document.body.style.userSelect=""}}})}},{key:"componentDidMount",value:function(){var t=localStorage.getItem(Un.MINIMIZE_STYLY_CHCHE);if(t){var e=JSON.parse(t);this.isWithinBounds(e)&&(this.minimizeData=e)}var n=localStorage.getItem(Un.STYLE_CACHE);if(n){var i=JSON.parse(n);this.isWithinBounds(i)&&(this.data=i)}this.setStyle(),this.registerDragDialog(),this.registerDragDialogBorder(),this.registerDragMinmize()}},{key:"componentWillUnmount",value:function(){localStorage.setItem(Un.STYLE_CACHE,JSON.stringify(this.data)),localStorage.setItem(Un.MINIMIZE_STYLY_CHCHE,JSON.stringify(this.minimizeData))}},{key:"close",value:function(){this.props.close()}},{key:"fullScreen",value:function(){var t=this.containerRef.current;t&&(t.requestFullscreen(),this.setState({isFullScreen:!0}),this.props.fullscreen(!0))}},{key:"closeFullScreen",value:function(){var t;this.state.isFullScreen&&(null===(t=document)||void 0===t||t.exitFullscreen(),this.setState({isFullScreen:!1}),this.props.fullscreen(!1),this.setStyle())}},{key:"minimize",value:function(){this.closeFullScreen(),this.setState({isMinimize:!0}),this.props.minimize(!0)}},{key:"exitMinimize",value:function(){this.isDragging||(this.setState({isMinimize:!1}),this.props.minimize(!1))}},{key:"stopPropagation",value:function(t){t.stopPropagation()}},{key:"render",value:function(){return de(ai.Provider,{value:this.containerContext,children:de("div",{className:"".concat(this.ns.b()),children:[de("div",{className:"".concat(this.ns.e("dialog")," ").concat(this.ns.is("full-screen",this.state.isFullScreen)," ").concat(this.ns.is("hidden",this.state.isMinimize)),ref:this.containerRef,children:[de("div",{ref:this.dragHandle,className:this.ns.b("header"),children:[de("div",{className:this.ns.b("header-caption"),children:this.props.caption||"AI助手"}),de("div",{className:this.ns.b("header-action-wrapper"),children:[de("div",{title:"最小化",className:"".concat(this.ns.be("header-action-wrapper","action-item")," ").concat(this.ns.be("header-action-wrapper","minimize")),onMouseDown:this.stopPropagation.bind(this),onClick:this.minimize.bind(this),children:de(we,{})}),this.state.isFullScreen?de("div",{title:"退出全屏",className:"".concat(this.ns.be("header-action-wrapper","action-item")," ").concat(this.ns.be("header-action-wrapper","close-full-screen")),onMouseDown:this.stopPropagation.bind(this),onClick:this.closeFullScreen.bind(this),children:de(be,{})}):de("div",{title:"全屏",className:"".concat(this.ns.be("header-action-wrapper","action-item")," ").concat(this.ns.be("header-action-wrapper","full-screen")),onMouseDown:this.stopPropagation.bind(this),onClick:this.fullScreen.bind(this),children:de(ye,{})}),de("div",{title:"关闭",className:"".concat(this.ns.be("header-action-wrapper","action-item")," ").concat(this.ns.be("header-action-wrapper","action-close")),onMouseDown:this.stopPropagation.bind(this),onClick:this.close.bind(this),children:de(fe,{})})]})]}),"TOPIC"===this.props.mode?de("div",{className:"".concat(this.ns.b("main")),children:[de("div",{className:"".concat(this.ns.be("main","left")),children:de(oi,{controller:this.props.aiTopic})}),de("div",{className:"".concat(this.ns.be("main","right")),children:[de("div",{className:this.ns.b("content"),children:de(on,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),de(en,{data:this.props.aiTopic.activedTopic.value,type:"footer",className:this.ns.e("toolbar"),controller:this.props.aiChat,items:this.props.footerToolbarItems}),de("div",{className:this.ns.b("footer"),children:de(ei,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}):de("div",{className:"".concat(this.ns.be("main","default")),children:[de("div",{className:this.ns.b("content"),children:de(on,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),de(en,{data:this.props.aiTopic.activedTopic.value,type:"footer",className:this.ns.e("toolbar"),controller:this.props.aiChat,items:this.props.footerToolbarItems}),de("div",{className:this.ns.b("footer"),children:de(ei,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}),de("div",{title:"AI助手",ref:this.minimizeRef,className:"".concat(this.ns.e("minimize")," ").concat(this.ns.is("hidden",!this.state.isMinimize)),onClick:this.exitMinimize.bind(this),children:de(ke,{})})]})})}}]),o}(L);e("ChatContainer",ci)}}}))}();
diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.13/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.13/polyfills.legacy.js
new file mode 100644
index 0000000000000000000000000000000000000000..b8c17c506fd4890e1ea2d14055b34d006eb3cbc9
--- /dev/null
+++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.13/polyfills.legacy.js
@@ -0,0 +1 @@
+!function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=function(t){return t&&t.Math===Math&&t},e=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),n={},o=function(t){try{return!!t()}catch(r){return!0}},i=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),a=u,c=Function.prototype.call,f=a?c.bind(c):function(){return c.apply(c,arguments)},s={},l={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,v=h&&!l.call({1:2},1);s.f=v?function(t){var r=h(this,t);return!!r&&r.enumerable}:l;var p,d,g=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},y=u,m=Function.prototype,b=m.call,w=y&&m.bind.bind(b,b),S=y?w:function(t){return function(){return b.apply(t,arguments)}},E=S,x=E({}.toString),O=E("".slice),j=function(t){return O(x(t),8,-1)},I=o,T=j,R=Object,P=S("".split),A=I((function(){return!R("z").propertyIsEnumerable(0)}))?function(t){return"String"===T(t)?P(t,""):R(t)}:R,k=function(t){return null==t},C=k,N=TypeError,L=function(t){if(C(t))throw new N("Can't call method on "+t);return t},F=A,M=L,_=function(t){return F(M(t))},D="object"==typeof document&&document.all,U={all:D,IS_HTMLDDA:void 0===D&&void 0!==D},$=U.all,G=U.IS_HTMLDDA?function(t){return"function"==typeof t||t===$}:function(t){return"function"==typeof t},z=G,W=U.all,B=U.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:z(t)||t===W}:function(t){return"object"==typeof t?null!==t:z(t)},H=e,V=G,J=function(t,r){return arguments.length<2?(e=H[t],V(e)?e:void 0):H[t]&&H[t][r];var e},q=S({}.isPrototypeOf),K="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Y=e,X=K,Q=Y.process,Z=Y.Deno,tt=Q&&Q.versions||Z&&Z.version,rt=tt&&tt.v8;rt&&(d=(p=rt.split("."))[0]>0&&p[0]<4?1:+(p[0]+p[1])),!d&&X&&(!(p=X.match(/Edge\/(\d+)/))||p[1]>=74)&&(p=X.match(/Chrome\/(\d+)/))&&(d=+p[1]);var et=d,nt=et,ot=o,it=e.String,ut=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol("symbol detection");return!it(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&nt&&nt<41})),at=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ct=J,ft=G,st=q,lt=Object,ht=at?function(t){return"symbol"==typeof t}:function(t){var r=ct("Symbol");return ft(r)&&st(r.prototype,lt(t))},vt=String,pt=function(t){try{return vt(t)}catch(r){return"Object"}},dt=G,gt=pt,yt=TypeError,mt=function(t){if(dt(t))return t;throw new yt(gt(t)+" is not a function")},bt=mt,wt=k,St=function(t,r){var e=t[r];return wt(e)?void 0:bt(e)},Et=f,xt=G,Ot=B,jt=TypeError,It=function(t,r){var e,n;if("string"===r&&xt(e=t.toString)&&!Ot(n=Et(e,t)))return n;if(xt(e=t.valueOf)&&!Ot(n=Et(e,t)))return n;if("string"!==r&&xt(e=t.toString)&&!Ot(n=Et(e,t)))return n;throw new jt("Can't convert object to primitive value")},Tt={exports:{}},Rt=e,Pt=Object.defineProperty,At=function(t,r){try{Pt(Rt,t,{value:r,configurable:!0,writable:!0})}catch(e){Rt[t]=r}return r},kt=At,Ct="__core-js_shared__",Nt=e[Ct]||kt(Ct,{}),Lt=Nt;(Tt.exports=function(t,r){return Lt[t]||(Lt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.33.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ft=Tt.exports,Mt=L,_t=Object,Dt=function(t){return _t(Mt(t))},Ut=Dt,$t=S({}.hasOwnProperty),Gt=Object.hasOwn||function(t,r){return $t(Ut(t),r)},zt=S,Wt=0,Bt=Math.random(),Ht=zt(1..toString),Vt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Ht(++Wt+Bt,36)},Jt=Ft,qt=Gt,Kt=Vt,Yt=ut,Xt=at,Qt=e.Symbol,Zt=Jt("wks"),tr=Xt?Qt.for||Qt:Qt&&Qt.withoutSetter||Kt,rr=function(t){return qt(Zt,t)||(Zt[t]=Yt&&qt(Qt,t)?Qt[t]:tr("Symbol."+t)),Zt[t]},er=f,nr=B,or=ht,ir=St,ur=It,ar=TypeError,cr=rr("toPrimitive"),fr=function(t,r){if(!nr(t)||or(t))return t;var e,n=ir(t,cr);if(n){if(void 0===r&&(r="default"),e=er(n,t,r),!nr(e)||or(e))return e;throw new ar("Can't convert object to primitive value")}return void 0===r&&(r="number"),ur(t,r)},sr=fr,lr=ht,hr=function(t){var r=sr(t,"string");return lr(r)?r:r+""},vr=B,pr=e.document,dr=vr(pr)&&vr(pr.createElement),gr=function(t){return dr?pr.createElement(t):{}},yr=gr,mr=!i&&!o((function(){return 7!==Object.defineProperty(yr("div"),"a",{get:function(){return 7}}).a})),br=i,wr=f,Sr=s,Er=g,xr=_,Or=hr,jr=Gt,Ir=mr,Tr=Object.getOwnPropertyDescriptor;n.f=br?Tr:function(t,r){if(t=xr(t),r=Or(r),Ir)try{return Tr(t,r)}catch(e){}if(jr(t,r))return Er(!wr(Sr.f,t,r),t[r])};var Rr={},Pr=i&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ar=B,kr=String,Cr=TypeError,Nr=function(t){if(Ar(t))return t;throw new Cr(kr(t)+" is not an object")},Lr=i,Fr=mr,Mr=Pr,_r=Nr,Dr=hr,Ur=TypeError,$r=Object.defineProperty,Gr=Object.getOwnPropertyDescriptor,zr="enumerable",Wr="configurable",Br="writable";Rr.f=Lr?Mr?function(t,r,e){if(_r(t),r=Dr(r),_r(e),"function"==typeof t&&"prototype"===r&&"value"in e&&Br in e&&!e[Br]){var n=Gr(t,r);n&&n[Br]&&(t[r]=e.value,e={configurable:Wr in e?e[Wr]:n[Wr],enumerable:zr in e?e[zr]:n[zr],writable:!1})}return $r(t,r,e)}:$r:function(t,r,e){if(_r(t),r=Dr(r),_r(e),Fr)try{return $r(t,r,e)}catch(n){}if("get"in e||"set"in e)throw new Ur("Accessors not supported");return"value"in e&&(t[r]=e.value),t};var Hr=Rr,Vr=g,Jr=i?function(t,r,e){return Hr.f(t,r,Vr(1,e))}:function(t,r,e){return t[r]=e,t},qr={exports:{}},Kr=i,Yr=Gt,Xr=Function.prototype,Qr=Kr&&Object.getOwnPropertyDescriptor,Zr=Yr(Xr,"name"),te={EXISTS:Zr,PROPER:Zr&&"something"===function(){}.name,CONFIGURABLE:Zr&&(!Kr||Kr&&Qr(Xr,"name").configurable)},re=G,ee=Nt,ne=S(Function.toString);re(ee.inspectSource)||(ee.inspectSource=function(t){return ne(t)});var oe,ie,ue,ae=ee.inspectSource,ce=G,fe=e.WeakMap,se=ce(fe)&&/native code/.test(String(fe)),le=Vt,he=Ft("keys"),ve=function(t){return he[t]||(he[t]=le(t))},pe={},de=se,ge=e,ye=B,me=Jr,be=Gt,we=Nt,Se=ve,Ee=pe,xe="Object already initialized",Oe=ge.TypeError,je=ge.WeakMap;if(de||we.state){var Ie=we.state||(we.state=new je);Ie.get=Ie.get,Ie.has=Ie.has,Ie.set=Ie.set,oe=function(t,r){if(Ie.has(t))throw new Oe(xe);return r.facade=t,Ie.set(t,r),r},ie=function(t){return Ie.get(t)||{}},ue=function(t){return Ie.has(t)}}else{var Te=Se("state");Ee[Te]=!0,oe=function(t,r){if(be(t,Te))throw new Oe(xe);return r.facade=t,me(t,Te,r),r},ie=function(t){return be(t,Te)?t[Te]:{}},ue=function(t){return be(t,Te)}}var Re={set:oe,get:ie,has:ue,enforce:function(t){return ue(t)?ie(t):oe(t,{})},getterFor:function(t){return function(r){var e;if(!ye(r)||(e=ie(r)).type!==t)throw new Oe("Incompatible receiver, "+t+" required");return e}}},Pe=S,Ae=o,ke=G,Ce=Gt,Ne=i,Le=te.CONFIGURABLE,Fe=ae,Me=Re.enforce,_e=Re.get,De=String,Ue=Object.defineProperty,$e=Pe("".slice),Ge=Pe("".replace),ze=Pe([].join),We=Ne&&!Ae((function(){return 8!==Ue((function(){}),"length",{value:8}).length})),Be=String(String).split("String"),He=qr.exports=function(t,r,e){"Symbol("===$e(De(r),0,7)&&(r="["+Ge(De(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!Ce(t,"name")||Le&&t.name!==r)&&(Ne?Ue(t,"name",{value:r,configurable:!0}):t.name=r),We&&e&&Ce(e,"arity")&&t.length!==e.arity&&Ue(t,"length",{value:e.arity});try{e&&Ce(e,"constructor")&&e.constructor?Ne&&Ue(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=Me(t);return Ce(n,"source")||(n.source=ze(Be,"string"==typeof r?r:"")),t};Function.prototype.toString=He((function(){return ke(this)&&_e(this).source||Fe(this)}),"toString");var Ve=qr.exports,Je=G,qe=Rr,Ke=Ve,Ye=At,Xe=function(t,r,e,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:r;if(Je(e)&&Ke(e,i,n),n.global)o?t[r]=e:Ye(r,e);else{try{n.unsafe?t[r]&&(o=!0):delete t[r]}catch(u){}o?t[r]=e:qe.f(t,r,{value:e,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},Qe={},Ze=Math.ceil,tn=Math.floor,rn=Math.trunc||function(t){var r=+t;return(r>0?tn:Ze)(r)},en=function(t){var r=+t;return r!=r||0===r?0:rn(r)},nn=en,on=Math.max,un=Math.min,an=function(t,r){var e=nn(t);return e<0?on(e+r,0):un(e,r)},cn=en,fn=Math.min,sn=function(t){return t>0?fn(cn(t),9007199254740991):0},ln=sn,hn=function(t){return ln(t.length)},vn=_,pn=an,dn=hn,gn=function(t){return function(r,e,n){var o,i=vn(r),u=dn(i),a=pn(n,u);if(t&&e!=e){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===e)return t||a||0;return!t&&-1}},yn={includes:gn(!0),indexOf:gn(!1)},mn=Gt,bn=_,wn=yn.indexOf,Sn=pe,En=S([].push),xn=function(t,r){var e,n=bn(t),o=0,i=[];for(e in n)!mn(Sn,e)&&mn(n,e)&&En(i,e);for(;r.length>o;)mn(n,e=r[o++])&&(~wn(i,e)||En(i,e));return i},On=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jn=xn,In=On.concat("length","prototype");Qe.f=Object.getOwnPropertyNames||function(t){return jn(t,In)};var Tn={};Tn.f=Object.getOwnPropertySymbols;var Rn=J,Pn=Qe,An=Tn,kn=Nr,Cn=S([].concat),Nn=Rn("Reflect","ownKeys")||function(t){var r=Pn.f(kn(t)),e=An.f;return e?Cn(r,e(t)):r},Ln=Gt,Fn=Nn,Mn=n,_n=Rr,Dn=function(t,r,e){for(var n=Fn(r),o=_n.f,i=Mn.f,u=0;u9007199254740991)throw fo("Maximum allowed index exceeded");return t},lo=Dt,ho=hn,vo=co,po=so;ro({target:"Array",proto:!0,arity:1,forced:o((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var r=lo(this),e=ho(r),n=arguments.length;po(e+n);for(var o=0;o0;)t[n]=t[--n];n!==i++&&(t[n]=e)}return t},Ho=function(t,r,e,n){for(var o=r.length,i=e.length,u=0,a=0;u3)){if(li)return!0;if(vi)return vi<603;var t,r,e,n,o="";for(t=65;t<76;t++){switch(r=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(n=0;n<47;n++)pi.push({k:r+n,v:e})}for(pi.sort((function(t,r){return r.v-t.v})),n=0;nui(e)?1:-1}}(t)),e=oi(o),n=0;nu;)Gi.f(t,e=o[u++],n[e]);return t};var Hi,Vi=J("document","documentElement"),Ji=Nr,qi=Fi,Ki=On,Yi=pe,Xi=Vi,Qi=gr,Zi="prototype",tu="script",ru=ve("IE_PROTO"),eu=function(){},nu=function(t){return"<"+tu+">"+t+""+tu+">"},ou=function(t){t.write(nu("")),t.close();var r=t.parentWindow.Object;return t=null,r},iu=function(){try{Hi=new ActiveXObject("htmlfile")}catch(o){}var t,r,e;iu="undefined"!=typeof document?document.domain&&Hi?ou(Hi):(r=Qi("iframe"),e="java"+tu+":",r.style.display="none",Xi.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(nu("document.F=Object")),t.close(),t.F):ou(Hi);for(var n=Ki.length;n--;)delete iu[Zi][Ki[n]];return iu()};Yi[ru]=!0;var uu,au,cu,fu=Object.create||function(t,r){var e;return null!==t?(eu[Zi]=Ji(t),e=new eu,eu[Zi]=null,e[ru]=t):e=iu(),void 0===r?e:qi.f(e,r)},su=o,lu=G,hu=B,vu=Li,pu=Xe,du=rr("iterator"),gu=!1;[].keys&&("next"in(cu=[].keys())?(au=vu(vu(cu)))!==Object.prototype&&(uu=au):gu=!0);var yu=!hu(uu)||su((function(){var t={};return uu[du].call(t)!==t}));yu&&(uu={}),lu(uu[du])||pu(uu,du,(function(){return this}));var mu={IteratorPrototype:uu,BUGGY_SAFARI_ITERATORS:gu},bu=ro,wu=e,Su=ji,Eu=G,xu=Li,Ou=Jr,ju=o,Iu=Gt,Tu=mu.IteratorPrototype,Ru=rr("toStringTag"),Pu=TypeError,Au=wu.Iterator,ku=!Eu(Au)||Au.prototype!==Tu||!ju((function(){Au({})})),Cu=function(){if(Su(this,Tu),xu(this)===Tu)throw new Pu("Abstract class Iterator not directly constructable")};Iu(Tu,Ru)||Ou(Tu,Ru,"Iterator"),!ku&&Iu(Tu,"constructor")&&Tu.constructor!==Object||Ou(Tu,"constructor",Cu),Cu.prototype=Tu,bu({global:!0,constructor:!0,forced:ku},{Iterator:Cu});var Nu=j,Lu=S,Fu=function(t){if("Function"===Nu(t))return Lu(t)},Mu=mt,_u=u,Du=Fu(Fu.bind),Uu=function(t,r){return Mu(t),void 0===r?t:_u?Du(t,r):function(){return t.apply(r,arguments)}},$u={},Gu=$u,zu=rr("iterator"),Wu=Array.prototype,Bu=function(t){return void 0!==t&&(Gu.Array===t||Wu[zu]===t)},Hu=To,Vu=St,Ju=k,qu=$u,Ku=rr("iterator"),Yu=function(t){if(!Ju(t))return Vu(t,Ku)||Vu(t,"@@iterator")||qu[Hu(t)]},Xu=f,Qu=mt,Zu=Nr,ta=pt,ra=Yu,ea=TypeError,na=function(t,r){var e=arguments.length<2?ra(t):r;if(Qu(e))return Zu(Xu(e,t));throw new ea(ta(t)+" is not iterable")},oa=f,ia=Nr,ua=St,aa=function(t,r,e){var n,o;ia(t);try{if(!(n=ua(t,"return"))){if("throw"===r)throw e;return e}n=oa(n,t)}catch(i){o=!0,n=i}if("throw"===r)throw e;if(o)throw n;return ia(n),e},ca=Uu,fa=f,sa=Nr,la=pt,ha=Bu,va=hn,pa=q,da=na,ga=Yu,ya=aa,ma=TypeError,ba=function(t,r){this.stopped=t,this.result=r},wa=ba.prototype,Sa=function(t,r,e){var n,o,i,u,a,c,f,s=e&&e.that,l=!(!e||!e.AS_ENTRIES),h=!(!e||!e.IS_RECORD),v=!(!e||!e.IS_ITERATOR),p=!(!e||!e.INTERRUPTED),d=ca(r,s),g=function(t){return n&&ya(n,"normal",t),new ba(!0,t)},y=function(t){return l?(sa(t),p?d(t[0],t[1],g):d(t[0],t[1])):p?d(t,g):d(t)};if(h)n=t.iterator;else if(v)n=t;else{if(!(o=ga(t)))throw new ma(la(t)+" is not iterable");if(ha(o)){for(i=0,u=va(t);u>i;i++)if((a=y(t[i]))&&pa(wa,a))return a;return new ba(!1)}n=da(t,o)}for(c=h?t.next:n.next;!(f=fa(c,n)).done;){try{a=y(f.value)}catch(m){ya(n,"throw",m)}if("object"==typeof a&&a&&pa(wa,a))return a}return new ba(!1)},Ea=function(t){return{iterator:t,next:t.next,done:!1}},xa=Sa,Oa=mt,ja=Nr,Ia=Ea;ro({target:"Iterator",proto:!0,real:!0},{some:function(t){ja(this),Oa(t);var r=Ia(this),e=0;return xa(r,(function(r,n){if(t(r,e++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var Ta,Ra,Pa=Nr,Aa=function(){var t=Pa(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},ka=o,Ca=e.RegExp,Na=ka((function(){var t=Ca("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),La=Na||ka((function(){return!Ca("a","y").sticky})),Fa=Na||ka((function(){var t=Ca("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),Ma={BROKEN_CARET:Fa,MISSED_STICKY:La,UNSUPPORTED_Y:Na},_a=o,Da=e.RegExp,Ua=_a((function(){var t=Da(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),$a=o,Ga=e.RegExp,za=$a((function(){var t=Ga("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})),Wa=f,Ba=S,Ha=Ao,Va=Aa,Ja=Ma,qa=fu,Ka=Re.get,Ya=Ua,Xa=za,Qa=Ft("native-string-replace",String.prototype.replace),Za=RegExp.prototype.exec,tc=Za,rc=Ba("".charAt),ec=Ba("".indexOf),nc=Ba("".replace),oc=Ba("".slice),ic=(Ra=/b*/g,Wa(Za,Ta=/a/,"a"),Wa(Za,Ra,"a"),0!==Ta.lastIndex||0!==Ra.lastIndex),uc=Ja.BROKEN_CARET,ac=void 0!==/()??/.exec("")[1];(ic||ac||uc||Ya||Xa)&&(tc=function(t){var r,e,n,o,i,u,a,c=this,f=Ka(c),s=Ha(t),l=f.raw;if(l)return l.lastIndex=c.lastIndex,r=Wa(tc,l,s),c.lastIndex=l.lastIndex,r;var h=f.groups,v=uc&&c.sticky,p=Wa(Va,c),d=c.source,g=0,y=s;if(v&&(p=nc(p,"y",""),-1===ec(p,"g")&&(p+="g"),y=oc(s,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==rc(s,c.lastIndex-1))&&(d="(?: "+d+")",y=" "+y,g++),e=new RegExp("^(?:"+d+")",p)),ac&&(e=new RegExp("^"+d+"$(?!\\s)",p)),ic&&(n=c.lastIndex),o=Wa(Za,v?e:c,y),v?o?(o.input=oc(o.input,g),o[0]=oc(o[0],g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:ic&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),ac&&o&&o.length>1&&Wa(Qa,o[0],e,(function(){for(i=1;i=a?t?"":void 0:(n=Mc(i,u))<55296||n>56319||u+1===a||(o=Mc(i,u+1))<56320||o>57343?t?Fc(i,u):n:t?_c(i,u,u+2):o-56320+(n-55296<<10)+65536}},Uc={codeAt:Dc(!1),charAt:Dc(!0)},$c=Uc.charAt,Gc=S,zc=Dt,Wc=Math.floor,Bc=Gc("".charAt),Hc=Gc("".replace),Vc=Gc("".slice),Jc=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,qc=/\$([$&'`]|\d{1,2})/g,Kc=f,Yc=Nr,Xc=G,Qc=j,Zc=cc,tf=TypeError,rf=Ec,ef=f,nf=S,of=function(t,r,e,n){var o=Tc(t),i=!Ic((function(){var r={};return r[o]=function(){return 7},7!==""[t](r)})),u=i&&!Ic((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[Pc]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return r=!0,null},e[o](""),!r}));if(!i||!u||e){var a=xc(/./[o]),c=r(o,""[t],(function(t,r,e,n,o){var u=xc(t),c=r.exec;return c===jc||c===Ac.exec?i&&!o?{done:!0,value:a(r,e,n)}:{done:!0,value:u(e,r,n)}:{done:!1}}));Oc(String.prototype,t,c[0]),Oc(Ac,o,c[1])}n&&Rc(Ac[o],"sham",!0)},uf=o,af=Nr,cf=G,ff=k,sf=en,lf=sn,hf=Ao,vf=L,pf=function(t,r,e){return r+(e?$c(t,r).length:1)},df=St,gf=function(t,r,e,n,o,i){var u=e+t.length,a=n.length,c=qc;return void 0!==o&&(o=zc(o),c=Jc),Hc(i,c,(function(i,c){var f;switch(Bc(c,0)){case"$":return"$";case"&":return t;case"`":return Vc(r,0,e);case"'":return Vc(r,u);case"<":f=o[Vc(c,1,-1)];break;default:var s=+c;if(0===s)return i;if(s>a){var l=Wc(s/10);return 0===l?i:l<=a?void 0===n[l-1]?Bc(c,1):n[l-1]+Bc(c,1):i}f=n[s-1]}return void 0===f?"":f}))},yf=function(t,r){var e=t.exec;if(Xc(e)){var n=Kc(e,t,r);return null!==n&&Yc(n),n}if("RegExp"===Qc(t))return Kc(Zc,t,r);throw new tf("RegExp#exec called on incompatible receiver")},mf=rr("replace"),bf=Math.max,wf=Math.min,Sf=nf([].concat),Ef=nf([].push),xf=nf("".indexOf),Of=nf("".slice),jf="$0"==="a".replace(/./,"$0"),If=!!/./[mf]&&""===/./[mf]("a","$0"),Tf=!uf((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}));of("replace",(function(t,r,e){var n=If?"$":"$0";return[function(t,e){var n=vf(this),o=ff(t)?void 0:df(t,mf);return o?ef(o,t,n,e):ef(r,hf(n),t,e)},function(t,o){var i=af(this),u=hf(t);if("string"==typeof o&&-1===xf(o,n)&&-1===xf(o,"$<")){var a=e(r,i,u,o);if(a.done)return a.value}var c=cf(o);c||(o=hf(o));var f,s=i.global;s&&(f=i.unicode,i.lastIndex=0);for(var l,h=[];null!==(l=yf(i,u))&&(Ef(h,l),s);){""===hf(l[0])&&(i.lastIndex=pf(u,lf(i.lastIndex),f))}for(var v,p="",d=0,g=0;g=d&&(p+=Of(u,d,b)+y,d=b+m.length)}return p+Of(u,d)}]}),!Tf||!jf||If);var Rf=S,Pf=o,Af=G,kf=To,Cf=ae,Nf=function(){},Lf=[],Ff=J("Reflect","construct"),Mf=/^\s*(?:class|function)\b/,_f=Rf(Mf.exec),Df=!Mf.test(Nf),Uf=function(t){if(!Af(t))return!1;try{return Ff(Nf,Lf,t),!0}catch(r){return!1}},$f=function(t){if(!Af(t))return!1;switch(kf(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Df||!!_f(Mf,Cf(t))}catch(r){return!0}};$f.sham=!0;var Gf=!Ff||Pf((function(){var t;return Uf(Uf.call)||!Uf(Object)||!Uf((function(){t=!0}))||t}))?$f:Uf,zf=o,Wf=et,Bf=rr("species"),Hf=function(t){return Wf>=51||!zf((function(){var r=[];return(r.constructor={})[Bf]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},Vf=S([].slice),Jf=ro,qf=no,Kf=Gf,Yf=B,Xf=an,Qf=hn,Zf=_,ts=Lo,rs=rr,es=Vf,ns=Hf("slice"),os=rs("species"),is=Array,us=Math.max;Jf({target:"Array",proto:!0,forced:!ns},{slice:function(t,r){var e,n,o,i=Zf(this),u=Qf(i),a=Xf(t,u),c=Xf(void 0===r?u:r,u);if(qf(i)&&(e=i.constructor,(Kf(e)&&(e===is||qf(e.prototype))||Yf(e)&&null===(e=e[os]))&&(e=void 0),e===is||void 0===e))return es(i,a,c);for(n=new(void 0===e?is:e)(us(c-a,0)),o=0;a"+o+""+r+">"},vs=function(t){return ls((function(){var r=""[t]('"');return r!==r.toLowerCase()||r.split('"').length>3}))};ro({target:"String",proto:!0,forced:vs("sub")},{sub:function(){return hs(this,"sub","","")}});var ps=Sa,ds=mt,gs=Nr,ys=Ea;ro({target:"Iterator",proto:!0,real:!0},{forEach:function(t){gs(this),ds(t);var r=ys(this),e=0;ps(r,(function(r){t(r,e++)}),{IS_RECORD:!0})}});var ms={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},bs=gr("span").classList,ws=bs&&bs.constructor&&bs.constructor.prototype,Ss=ws===Object.prototype?void 0:ws,Es=no,xs=Gf,Os=B,js=rr("species"),Is=Array,Ts=function(t){var r;return Es(t)&&(r=t.constructor,(xs(r)&&(r===Is||Es(r.prototype))||Os(r)&&null===(r=r[js]))&&(r=void 0)),void 0===r?Is:r},Rs=function(t,r){return new(Ts(t))(0===r?0:r)},Ps=Uu,As=A,ks=Dt,Cs=hn,Ns=Rs,Ls=S([].push),Fs=function(t){var r=1===t,e=2===t,n=3===t,o=4===t,i=6===t,u=7===t,a=5===t||i;return function(c,f,s,l){for(var h,v,p=ks(c),d=As(p),g=Ps(f,s),y=Cs(d),m=0,b=l||Ns,w=r?b(c,y):e||u?b(c,0):void 0;y>m;m++)if((a||m in d)&&(v=g(h=d[m],m,p),t))if(r)w[m]=v;else if(v)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:Ls(w,h)}else switch(t){case 4:return!1;case 7:Ls(w,h)}return i?-1:n||o?o:w}},Ms={forEach:Fs(0),map:Fs(1),filter:Fs(2),some:Fs(3),every:Fs(4),find:Fs(5),findIndex:Fs(6),filterReject:Fs(7)},_s=Ms.forEach,Ds=qo("forEach")?[].forEach:function(t){return _s(this,t,arguments.length>1?arguments[1]:void 0)},Us=e,$s=ms,Gs=Ss,zs=Ds,Ws=Jr,Bs=function(t){if(t&&t.forEach!==zs)try{Ws(t,"forEach",zs)}catch(r){t.forEach=zs}};for(var Hs in $s)$s[Hs]&&Bs(Us[Hs]&&Us[Hs].prototype);Bs(Gs);var Vs=Ve,Js=Rr,qs=function(t,r,e){return e.get&&Vs(e.get,r,{getter:!0}),e.set&&Vs(e.set,r,{setter:!0}),Js.f(t,r,e)},Ks=i,Ys=te.EXISTS,Xs=S,Qs=qs,Zs=Function.prototype,tl=Xs(Zs.toString),rl=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,el=Xs(rl.exec);Ks&&!Ys&&Qs(Zs,"name",{configurable:!0,get:function(){try{return el(rl,tl(this))[1]}catch(t){return""}}});var nl=ro,ol=Dt,il=an,ul=en,al=hn,cl=co,fl=so,sl=Rs,ll=Lo,hl=mo,vl=Hf("splice"),pl=Math.max,dl=Math.min;nl({target:"Array",proto:!0,forced:!vl},{splice:function(t,r){var e,n,o,i,u,a,c=ol(this),f=al(c),s=il(t,f),l=arguments.length;for(0===l?e=n=0:1===l?(e=0,n=f-s):(e=l-2,n=dl(pl(ul(r),0),f-s)),fl(f+e-n),o=sl(c,n),i=0;if-n+e;i--)hl(c,i-1)}else if(e>n)for(i=f-n;i>s;i--)a=i+e-1,(u=i+n-1)in c?c[a]=c[u]:hl(c,a);for(i=0;i=51||!Jp((function(){var t=[];return t[nd]=!1,t.concat()[0]!==t})),id=function(t){if(!Kp(t))return!1;var r=t[nd];return void 0!==r?!!r:qp(t)};Vp({target:"Array",proto:!0,arity:1,forced:!od||!rd("concat")},{concat:function(t){var r,e,n,o,i,u=Yp(this),a=td(u,0),c=0;for(r=-1,n=arguments.length;ri&&Ld(o,arguments[i]),o}));l.prototype=f,"Error"!==a?Pd?Pd(l,s):Ad(l,s,{name:!0}):Md&&o in c&&(kd(l,c,o),kd(l,c,"prepareStackTrace")),Ad(l,c);try{f.name!==a&&Td(f,"name",a),f.constructor=l}catch(lI){}return l}},$d="WebAssembly",Gd=e[$d],zd=7!==new Error("e",{cause:7}).cause,Wd=function(t,r){var e={};e[t]=Ud(t,r,zd),_d({global:!0,constructor:!0,arity:1,forced:zd},e)},Bd=function(t,r){if(Gd&&Gd[t]){var e={};e[t]=Ud($d+"."+t,r,zd),_d({target:$d,stat:!0,constructor:!0,arity:1,forced:zd},e)}};Wd("Error",(function(t){return function(r){return Dd(t,this,arguments)}})),Wd("EvalError",(function(t){return function(r){return Dd(t,this,arguments)}})),Wd("RangeError",(function(t){return function(r){return Dd(t,this,arguments)}})),Wd("ReferenceError",(function(t){return function(r){return Dd(t,this,arguments)}})),Wd("SyntaxError",(function(t){return function(r){return Dd(t,this,arguments)}})),Wd("TypeError",(function(t){return function(r){return Dd(t,this,arguments)}})),Wd("URIError",(function(t){return function(r){return Dd(t,this,arguments)}})),Bd("CompileError",(function(t){return function(r){return Dd(t,this,arguments)}})),Bd("LinkError",(function(t){return function(r){return Dd(t,this,arguments)}})),Bd("RuntimeError",(function(t){return function(r){return Dd(t,this,arguments)}}));var Hd=no,Vd=G,Jd=j,qd=Ao,Kd=S([].push),Yd=ro,Xd=J,Qd=Ec,Zd=f,tg=S,rg=o,eg=G,ng=ht,og=Vf,ig=function(t){if(Vd(t))return t;if(Hd(t)){for(var r=t.length,e=[],n=0;n1?arguments[1]:void 0,i=void 0!==o;i&&(o=Ug(o,n>2?arguments[2]:void 0));var u,a,c,f,s,l,h=qg(r),v=0;if(!h||this===Kg&&Wg(h))for(u=Hg(r),a=e?new this(u):Kg(u);u>v;v++)l=i?o(r[v],v):r[v],Vg(a,v,l);else for(s=(f=Jg(r,h)).next,a=e?new this:[];!(c=$g(s,f)).done;v++)l=i?zg(f,o,[c.value,v],!0):c.value,Vg(a,v,l);return a.length=v,a};ro({target:"Array",stat:!0,forced:!yp((function(t){Array.from(t)}))},{from:Yg});var Xg=mu.IteratorPrototype,Qg=fu,Zg=g,ty=Nl,ry=$u,ey=function(){return this},ny=ro,oy=f,iy=G,uy=function(t,r,e,n){var o=r+" Iterator";return t.prototype=Qg(Xg,{next:Zg(+!n,e)}),ty(t,o,!1),ry[o]=ey,t},ay=Li,cy=Pl,fy=Nl,sy=Jr,ly=Xe,hy=$u,vy=te.PROPER,py=te.CONFIGURABLE,dy=mu.IteratorPrototype,gy=mu.BUGGY_SAFARI_ITERATORS,yy=rr("iterator"),my="keys",by="values",wy="entries",Sy=function(){return this},Ey=function(t,r,e,n,o,i,u){uy(e,r,n);var a,c,f,s=function(t){if(t===o&&d)return d;if(!gy&&t&&t in v)return v[t];switch(t){case my:case by:case wy:return function(){return new e(this,t)}}return function(){return new e(this)}},l=r+" Iterator",h=!1,v=t.prototype,p=v[yy]||v["@@iterator"]||o&&v[o],d=!gy&&p||s(o),g="Array"===r&&v.entries||p;if(g&&(a=ay(g.call(new t)))!==Object.prototype&&a.next&&(ay(a)!==dy&&(cy?cy(a,dy):iy(a[yy])||ly(a,yy,Sy)),fy(a,l,!0)),vy&&o===by&&p&&p.name!==by&&(py?sy(v,"name",by):(h=!0,d=function(){return oy(p,this)})),o)if(c={values:s(by),keys:i?d:s(my),entries:s(wy)},u)for(f in c)(gy||h||!(f in v))&&ly(v,f,c[f]);else ny({target:r,proto:!0,forced:gy||h},c);return v[yy]!==d&&ly(v,yy,d,{name:o}),hy[r]=d,c},xy=function(t,r){return{value:t,done:r}},Oy=Uc.charAt,jy=Ao,Iy=Re,Ty=Ey,Ry=xy,Py="String Iterator",Ay=Iy.set,ky=Iy.getterFor(Py);Ty(String,"String",(function(t){Ay(this,{type:Py,string:jy(t),index:0})}),(function(){var t,r=ky(this),e=r.string,n=r.index;return n>=e.length?Ry(void 0,!0):(t=Oy(e,n),r.index+=t.length,Ry(t,!1))}));var Cy=Ms.filter;ro({target:"Array",proto:!0,forced:!Hf("filter")},{filter:function(t){return Cy(this,t,arguments.length>1?arguments[1]:void 0)}});var Ny=Xe,Ly=function(t,r,e){for(var n in r)Ny(t,n,r[n],e);return t},Fy=f,My=fu,_y=Jr,Dy=Ly,Uy=Re,$y=St,Gy=mu.IteratorPrototype,zy=xy,Wy=aa,By=rr("toStringTag"),Hy="IteratorHelper",Vy="WrapForValidIterator",Jy=Uy.set,qy=function(t){var r=Uy.getterFor(t?Vy:Hy);return Dy(My(Gy),{next:function(){var e=r(this);if(t)return e.nextHandler();try{var n=e.done?void 0:e.nextHandler();return zy(n,e.done)}catch(lI){throw e.done=!0,lI}},return:function(){var e=r(this),n=e.iterator;if(e.done=!0,t){var o=$y(n,"return");return o?Fy(o,n):zy(void 0,!0)}if(e.inner)try{Wy(e.inner.iterator,"normal")}catch(lI){return Wy(n,"throw",lI)}return Wy(n,"normal"),zy(void 0,!0)}})},Ky=qy(!0),Yy=qy(!1);_y(Yy,By,"Iterator Helper");var Xy=function(t,r){var e=function(e,n){n?(n.iterator=e.iterator,n.next=e.next):n=e,n.type=r?Vy:Hy,n.nextHandler=t,n.counter=0,n.done=!1,Jy(this,n)};return e.prototype=r?Ky:Yy,e},Qy=ro,Zy=f,tm=mt,rm=Nr,em=Ea,nm=Dg,om=Xy((function(){for(var t,r,e=this.iterator,n=this.predicate,o=this.next;;){if(t=rm(Zy(o,e)),this.done=!!t.done)return;if(r=t.value,nm(e,n,[r,this.counter++],!0))return r}}));Qy({target:"Iterator",proto:!0,real:!0,forced:false},{filter:function(t){return rm(this),tm(t),new om(em(this),{predicate:t})}});var im=rr,um=fu,am=Rr.f,cm=im("unscopables"),fm=Array.prototype;void 0===fm[cm]&&am(fm,cm,{configurable:!0,value:um(null)});var sm=function(t){fm[cm][t]=!0},lm=_,hm=sm,vm=$u,pm=Re,dm=Rr.f,gm=Ey,ym=xy,mm=i,bm="Array Iterator",wm=pm.set,Sm=pm.getterFor(bm),Em=gm(Array,"Array",(function(t,r){wm(this,{type:bm,target:lm(t),index:0,kind:r})}),(function(){var t=Sm(this),r=t.target,e=t.kind,n=t.index++;if(!r||n>=r.length)return t.target=void 0,ym(void 0,!0);switch(e){case"keys":return ym(n,!1);case"values":return ym(r[n],!1)}return ym([n,r[n]],!1)}),"values"),xm=vm.Arguments=vm.Array;if(hm("keys"),hm("values"),hm("entries"),mm&&"values"!==xm.name)try{dm(xm,"name",{value:"values"})}catch(lI){}var Om=e,jm=ms,Im=Ss,Tm=Em,Rm=Jr,Pm=rr,Am=Pm("iterator"),km=Pm("toStringTag"),Cm=Tm.values,Nm=function(t,r){if(t){if(t[Am]!==Cm)try{Rm(t,Am,Cm)}catch(lI){t[Am]=Cm}if(t[km]||Rm(t,km,r),jm[r])for(var e in Tm)if(t[e]!==Tm[e])try{Rm(t,e,Tm[e])}catch(lI){t[e]=Tm[e]}}};for(var Lm in jm)Nm(Om[Lm]&&Om[Lm].prototype,Lm);Nm(Im,"DOMTokenList");var Fm=Ms.map;ro({target:"Array",proto:!0,forced:!Hf("map")},{map:function(t){return Fm(this,t,arguments.length>1?arguments[1]:void 0)}});var Mm=f,_m=mt,Dm=Nr,Um=Ea,$m=Dg,Gm=Xy((function(){var t=this.iterator,r=Dm(Mm(this.next,t));if(!(this.done=!!r.done))return $m(t,this.mapper,[r.value,this.counter++],!0)}));ro({target:"Iterator",proto:!0,real:!0,forced:false},{map:function(t){return Dm(this),_m(t),new Gm(Um(this),{mapper:t})}});var zm=S(1..valueOf),Wm=en,Bm=Ao,Hm=L,Vm=RangeError,Jm=function(t){var r=Bm(Hm(this)),e="",n=Wm(t);if(n<0||n===1/0)throw new Vm("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(r+=r))1&n&&(e+=r);return e},qm=ro,Km=S,Ym=en,Xm=zm,Qm=Jm,Zm=o,tb=RangeError,rb=String,eb=Math.floor,nb=Km(Qm),ob=Km("".slice),ib=Km(1..toFixed),ub=function(t,r,e){return 0===r?e:r%2==1?ub(t,r-1,e*t):ub(t*t,r/2,e)},ab=function(t,r,e){for(var n=-1,o=e;++n<6;)o+=r*t[n],t[n]=o%1e7,o=eb(o/1e7)},cb=function(t,r){for(var e=6,n=0;--e>=0;)n+=t[e],t[e]=eb(n/r),n=n%r*1e7},fb=function(t){for(var r=6,e="";--r>=0;)if(""!==e||0===r||0!==t[r]){var n=rb(t[r]);e=""===e?n:e+nb("0",7-n.length)+n}return e};qm({target:"Number",proto:!0,forced:Zm((function(){return"0.000"!==ib(8e-5,3)||"1"!==ib(.9,0)||"1.25"!==ib(1.255,2)||"1000000000000000128"!==ib(0xde0b6b3a7640080,0)}))||!Zm((function(){ib({})}))},{toFixed:function(t){var r,e,n,o,i=Xm(this),u=Ym(t),a=[0,0,0,0,0,0],c="",f="0";if(u<0||u>20)throw new tb("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return rb(i);if(i<0&&(c="-",i=-i),i>1e-21)if(e=(r=function(t){for(var r=0,e=t;e>=4096;)r+=12,e/=4096;for(;e>=2;)r+=1,e/=2;return r}(i*ub(2,69,1))-69)<0?i*ub(2,-r,1):i/ub(2,r,1),e*=4503599627370496,(r=52-r)>0){for(ab(a,0,e),n=u;n>=7;)ab(a,1e7,0),n-=7;for(ab(a,ub(10,n,1),0),n=r-1;n>=23;)cb(a,1<<23),n-=23;cb(a,1<0?c+((o=f.length)<=u?"0."+nb("0",u-o)+f:ob(f,0,o-u)+"."+ob(f,o-u)):c+f}});var sb=ro,lb=Ms.find,hb=sm,vb="find",pb=!0;vb in[]&&Array(1)[vb]((function(){pb=!1})),sb({target:"Array",proto:!0,forced:pb},{find:function(t){return lb(this,t,arguments.length>1?arguments[1]:void 0)}}),hb(vb);var db=Sa,gb=mt,yb=Nr,mb=Ea;ro({target:"Iterator",proto:!0,real:!0},{find:function(t){yb(this),gb(t);var r=mb(this),e=0;return db(r,(function(r,n){if(t(r,e++))return n(r)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}});var bb=Dt,wb=Di;ro({target:"Object",stat:!0,forced:o((function(){wb(1)}))},{keys:function(t){return wb(bb(t))}});var Sb=S,Eb=Gt,xb=SyntaxError,Ob=parseInt,jb=String.fromCharCode,Ib=Sb("".charAt),Tb=Sb("".slice),Rb=Sb(/./.exec),Pb={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},Ab=/^[\da-f]{4}$/i,kb=/^[\u0000-\u001F]$/,Cb=ro,Nb=i,Lb=e,Fb=J,Mb=S,_b=f,Db=G,Ub=B,$b=no,Gb=Gt,zb=Ao,Wb=hn,Bb=Lo,Hb=o,Vb=function(t,r){for(var e=!0,n="";r1?arguments[1]:void 0)}}),kE("includes");var CE=B,NE=j,LE=rr("match"),FE=function(t){var r;return CE(t)&&(void 0!==(r=t[LE])?!!r:"RegExp"===NE(t))},ME=TypeError,_E=function(t){if(FE(t))throw new ME("The method doesn't accept regular expressions");return t},DE=rr("match"),UE=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[DE]=!1,"/./"[t](r)}catch(n){}}return!1},$E=ro,GE=_E,zE=L,WE=Ao,BE=UE,HE=S("".indexOf);$E({target:"String",proto:!0,forced:!BE("includes")},{includes:function(t){return!!~HE(WE(zE(this)),WE(GE(t)),arguments.length>1?arguments[1]:void 0)}});var VE=Dt,JE=hn,qE=co,KE=mo,YE=so;ro({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(lI){return lI instanceof TypeError}}()},{unshift:function(t){var r=VE(this),e=JE(r),n=arguments.length;if(n){YE(e+n);for(var o=e;o--;){var i=o+n;o in r?r[i]=r[o]:KE(r,i)}for(var u=0;u1?arguments[1]:void 0);r=r?r.next:e.first;)for(n(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(t){return!!c(this,t)}}),Ux(i,e?{get:function(t){var r=c(this,t);return r&&r.value},set:function(t,r){return a(this,0===t?0:t,r)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),Jx&&Dx(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=Yx(r),i=Yx(n);Bx(t,r,(function(t,r){Kx(this,{type:n,target:t,state:o(t),kind:r,last:void 0})}),(function(){for(var t=i(this),r=t.kind,e=t.last;e&&e.removed;)e=e.previous;return t.target&&(t.last=e=e?e.next:t.state.first)?Hx("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,Hx(void 0,!0))}),e?"entries":"values",!e,!0),Vx(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=xx[t],a=u&&u.prototype,c=u,f={},s=function(t){var r=Ox(a[t]);Ix(a,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!Cx(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!Cx(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!Cx(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(jx(t,!Ax(u)||!(o||a.forEach&&!Nx((function(){(new u).entries().next()})))))c=e.getConstructor(r,t,n,i),Tx.enable();else if(jx(t,!0)){var l=new c,h=l[i](o?{}:-0,1)!==l,v=Nx((function(){l.has(1)})),p=Lx((function(t){new u(t)})),d=!o&&Nx((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((c=r((function(t,r){Px(t,a);var e=Mx(new u,t,c);return kx(r)||Rx(r,e[i],{that:e,AS_ENTRIES:n}),e}))).prototype=a,a.constructor=c),(v||d)&&(s("delete"),s("has"),n&&s("get")),(d||h)&&s(i),o&&a.clear&&delete a.clear}f[t]=c,Ex({global:!0,constructor:!0,forced:c!==u},f),Fx(c,t),o||e.setStrong(c,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Xx);var Qx,Zx=ro,tO=Fu,rO=n.f,eO=sn,nO=Ao,oO=_E,iO=L,uO=UE,aO=tO("".startsWith),cO=tO("".slice),fO=Math.min,sO=uO("startsWith");Zx({target:"String",proto:!0,forced:!!(sO||(Qx=rO(String.prototype,"startsWith"),!Qx||Qx.writable))&&!sO},{startsWith:function(t){var r=nO(iO(this));oO(t);var e=eO(fO(arguments.length>1?arguments[1]:void 0,r.length)),n=nO(t);return aO?aO(r,n,e):cO(r,e,e+n.length)===n}});var lO="\t\n\v\f\r \u2028\u2029\ufeff",hO=L,vO=Ao,pO=lO,dO=S("".replace),gO=RegExp("^["+pO+"]+"),yO=RegExp("(^|[^"+pO+"])["+pO+"]+$"),mO=function(t){return function(r){var e=vO(hO(r));return 1&t&&(e=dO(e,gO,"")),2&t&&(e=dO(e,yO,"$1")),e}},bO={start:mO(1),end:mO(2),trim:mO(3)},wO=te.PROPER,SO=o,EO=lO,xO=bO.trim;ro({target:"String",proto:!0,forced:function(t){return SO((function(){return!!EO[t]()||"
"!=="
"[t]()||wO&&EO[t].name!==t}))}("trim")},{trim:function(){return xO(this)}});var OO=ro,jO=Ms.findIndex,IO=sm,TO="findIndex",RO=!0;TO in[]&&Array(1)[TO]((function(){RO=!1})),OO({target:"Array",proto:!0,forced:RO},{findIndex:function(t){return jO(this,t,arguments.length>1?arguments[1]:void 0)}}),IO(TO);var PO=i,AO=S,kO=f,CO=o,NO=Di,LO=Tn,FO=s,MO=Dt,_O=A,DO=Object.assign,UO=Object.defineProperty,$O=AO([].concat),GO=!DO||CO((function(){if(PO&&1!==DO({b:1},DO(UO({},"a",{enumerable:!0,get:function(){UO(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},e=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[e]=7,n.split("").forEach((function(t){r[t]=t})),7!==DO({},t)[e]||NO(DO({},r)).join("")!==n}))?function(t,r){for(var e=MO(t),n=arguments.length,o=1,i=LO.f,u=FO.f;n>o;)for(var a,c=_O(arguments[o++]),f=i?$O(NO(c),i(c)):NO(c),s=f.length,l=0;s>l;)a=f[l++],PO&&!kO(u,c,a)||(e[a]=c[a]);return e}:DO,zO=GO;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==zO},{assign:zO});var WO=Mw;kw("toPrimitive"),WO();var BO=Nr,HO=It,VO=TypeError,JO=Gt,qO=Xe,KO=function(t){if(BO(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new VO("Incorrect hint");return HO(this,t)},YO=rr("toPrimitive"),XO=Date.prototype;JO(XO,YO)||qO(XO,YO,KO);var QO=ro,ZO=i,tj=e,rj=Iw,ej=S,nj=Jn,oj=Gt,ij=sd,uj=q,aj=ht,cj=fr,fj=o,sj=Qe.f,lj=n.f,hj=Rr.f,vj=zm,pj=bO.trim,dj="Number",gj=tj[dj];rj[dj];var yj=gj.prototype,mj=tj.TypeError,bj=ej("".slice),wj=ej("".charCodeAt),Sj=function(t){var r,e,n,o,i,u,a,c,f=cj(t,"number");if(aj(f))throw new mj("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=pj(f),43===(r=wj(f,0))||45===r){if(88===(e=wj(f,2))||120===e)return NaN}else if(48===r){switch(wj(f,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+f}for(u=(i=bj(f,2)).length,a=0;ao)return NaN;return parseInt(i,n)}return+f},Ej=nj(dj,!gj(" 0o1")||!gj("0b1")||gj("+0x1")),xj=function(t){var r,e=arguments.length<1?0:gj(function(t){var r=cj(t,"number");return"bigint"==typeof r?r:Sj(r)}(t));return uj(yj,r=this)&&fj((function(){vj(r)}))?ij(Object(e),this,xj):e};xj.prototype=yj,Ej&&(yj.constructor=xj),QO({global:!0,constructor:!0,wrap:!0,forced:Ej},{Number:xj});Ej&&function(t,r){for(var e,n=ZO?sj(r):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)oj(r,e=n[o])&&!oj(t,e)&&hj(t,e,lj(r,e))}(rj[dj],gj),kw("iterator"),kw("asyncIterator");var Oj=J,jj=Nl;kw("toStringTag"),jj(Oj("Symbol"),"Symbol"),Nl(e.JSON,"JSON",!0),Nl(Math,"Math",!0);var Ij=Dt,Tj=Li,Rj=Ii;ro({target:"Object",stat:!0,forced:o((function(){Tj(1)})),sham:!Rj},{getPrototypeOf:function(t){return Tj(Ij(t))}});var Pj=ro,Aj=o,kj=_,Cj=n.f,Nj=i;Pj({target:"Object",stat:!0,forced:!Nj||Aj((function(){Cj(1)})),sham:!Nj},{getOwnPropertyDescriptor:function(t,r){return Cj(kj(t),r)}});var Lj=Nn,Fj=_,Mj=n,_j=Lo;ro({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var r,e,n=Fj(t),o=Mj.f,i=Lj(n),u={},a=0;i.length>a;)void 0!==(e=o(n,r=i[a++]))&&_j(u,r,e);return u}});var Dj=e,Uj=Nl;ro({global:!0},{Reflect:{}}),Uj(Dj.Reflect,"Reflect",!0);var $j=S,Gj=mt,zj=B,Wj=Gt,Bj=Vf,Hj=u,Vj=Function,Jj=$j([].concat),qj=$j([].join),Kj={},Yj=Hj?Vj.bind:function(t){var r=Gj(this),e=r.prototype,n=Bj(arguments,1),o=function(){var e=Jj(n,Bj(arguments));return this instanceof o?function(t,r,e){if(!Wj(Kj,r)){for(var n=[],o=0;oe.length&&"/"!==n[n.length-1]))return n+t.slice(e.length);c("W2",e,n)}}function c(t,e,n){console.warn(r(t,[n,e].join(", ")))}function f(t,r,e){for(var n=t.scopes,o=e&&u(e,n);o;){var i=a(r,n[o]);if(i)return i;o=u(o.slice(0,o.lastIndexOf("/")),n)}return a(r,t.imports)||-1!==r.indexOf(":")&&r}function s(){this[I]={}}function l(t,e,n,o){var i=t[I][e];if(i)return i;var u=[],a=Object.create(null);j&&Object.defineProperty(a,j,{value:"Module"});var c=Promise.resolve().then((function(){return t.instantiate(e,n,o)})).then((function(n){if(!n)throw Error(r(2,e));var o=n[1]((function(t,r){i.h=!0;var e=!1;if("string"==typeof t)t in a&&a[t]===r||(a[t]=r,e=!0);else{for(var n in t)r=t[n],n in a&&a[n]===r||(a[n]=r,e=!0);t&&t.__esModule&&(a.__esModule=t.__esModule)}if(e)for(var o=0;o-1){var e=document.createEvent("Event");e.initEvent("error",!1,!1),t.dispatchEvent(e)}return Promise.reject(r)}))}else if("systemjs-importmap"===t.type){t.sp=!0;var e=t.src?(System.fetch||fetch)(t.src,{integrity:t.integrity,passThrough:!0}).then((function(t){if(!t.ok)throw Error(t.status);return t.text()})).catch((function(e){return e.message=r("W4",t.src)+"\n"+e.message,console.warn(e),"function"==typeof t.onerror&&t.onerror(),"{}"})):t.innerHTML;k=k.then((function(){return e})).then((function(e){!function(t,e,n){var o={};try{o=JSON.parse(e)}catch(a){console.warn(Error(r("W5")))}i(o,n,t)}(C,e,t.src||g)}))}}))}var g,y="undefined"!=typeof Symbol,m="undefined"!=typeof self,b="undefined"!=typeof document,w=m?self:t;if(b){var S=document.querySelector("base[href]");S&&(g=S.href)}if(!g&&"undefined"!=typeof location){var E=(g=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==E&&(g=g.slice(0,E+1))}var x,O=/\\/g,j=y&&Symbol.toStringTag,I=y?Symbol():"@",T=s.prototype;T.import=function(t,r,e){var n=this;return r&&"object"==typeof r&&(e=r,r=void 0),Promise.resolve(n.prepareImport()).then((function(){return n.resolve(t,r,e)})).then((function(t){var r=l(n,t,void 0,e);return r.C||v(n,r)}))},T.createContext=function(t){var r=this;return{url:t,resolve:function(e,n){return Promise.resolve(r.resolve(e,n||t))}}},T.register=function(t,r,e){x=[t,r,e]},T.getRegister=function(){var t=x;return x=void 0,t};var R=Object.freeze(Object.create(null));w.System=new s;var P,A,k=Promise.resolve(),C={imports:{},scopes:{},depcache:{},integrity:{}},N=b;if(T.prepareImport=function(t){return(N||t)&&(d(),N=!1),k},b&&(d(),window.addEventListener("DOMContentLoaded",d)),T.addImportMap=function(t,r){i(t,r||g,C)},b){window.addEventListener("error",(function(t){F=t.filename,M=t.error}));var L=location.origin}T.createScript=function(t){var r=document.createElement("script");r.async=!0,t.indexOf(L+"/")&&(r.crossOrigin="anonymous");var e=C.integrity[t];return e&&(r.integrity=e),r.src=t,r};var F,M,_={},D=T.register;T.register=function(t,r){if(b&&"loading"===document.readyState&&"string"!=typeof t){var e=document.querySelectorAll("script[src]"),n=e[e.length-1];if(n){P=t;var o=this;A=setTimeout((function(){_[n.src]=[t,r],o.import(n.src)}))}}else P=void 0;return D.call(this,t,r)},T.instantiate=function(t,e){var n=_[t];if(n)return delete _[t],n;var o=this;return Promise.resolve(T.createScript(t)).then((function(n){return new Promise((function(i,u){n.addEventListener("error",(function(){u(Error(r(3,[t,e].join(", "))))})),n.addEventListener("load",(function(){if(document.head.removeChild(n),F===t)u(M);else{var r=o.getRegister(t);r&&r[0]===P&&clearTimeout(A),i(r)}})),document.head.appendChild(n)}))}))},T.shouldFetch=function(){return!1},"undefined"!=typeof fetch&&(T.fetch=fetch);var U=T.instantiate,$=/^(text|application)\/(x-)?javascript(;|$)/;T.instantiate=function(t,e,n){var o=this;return this.shouldFetch(t,e,n)?this.fetch(t,{credentials:"same-origin",integrity:C.integrity[t],meta:n}).then((function(n){if(!n.ok)throw Error(r(7,[n.status,n.statusText,t,e].join(", ")));var i=n.headers.get("content-type");if(!i||!$.test(i))throw Error(r(4,i));return n.text().then((function(r){return r.indexOf("//# sourceURL=")<0&&(r+="\n//# sourceURL="+t),(0,eval)(r),o.getRegister(t)}))})):U.apply(this,arguments)},T.resolve=function(t,n){return f(C,e(t,n=n||g)||t,n)||function(t,e){throw Error(r(8,[t,e].join(", ")))}(t,n)};var G=T.instantiate;T.instantiate=function(t,r,e){var n=C.depcache[t];if(n)for(var o=0;osvg{width:100%;min-height:100px}.ibiz-markdown-message .cherry-previewer div[data-type=codeBlock]{position:relative!important;display:flex;padding-top:24px}.ibiz-markdown-message .cherry-previewer div[data-type=codeBlock] .cherry-edit-code-block,.ibiz-markdown-message .cherry-previewer div[data-type=codeBlock] .cherry-copy-code-block{position:absolute;top:0}.ibiz-markdown-message .anchor{display:none!important}.ibiz-markdown-message.is-loading .ibiz-markdown-message-header .ibiz-markdown-message-header__caption{font-size:0}.ibiz-markdown-message.is-loading .ibiz-markdown-message-header .ibiz-markdown-message-header__caption:after{display:block;width:11px;height:11px;content:"";border:3px solid #3b3b3b;border-top-color:transparent;border-radius:100%;animation:circle infinite .75s linear}.ibiz-markdown-message-header{display:flex;margin-bottom:8px}.ibiz-markdown-message-header__caption{flex:0;width:auto;min-width:32px;min-height:32px;padding:6px;margin-right:2px;font-size:14px;font-weight:800;color:var(--ibiz-ai-chat-color)}.ibiz-markdown-message-header__timeout{display:flex;align-items:center;padding:0 8px;font-size:14px;color:var(--ibiz-color-danger)}.ibiz-markdown-message-content{padding:10px 16px;background-color:var(--ibiz-ai-chat-background-color-light);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-markdown-message-content .cherry div.cherry-previewer{color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color-light)}@keyframes circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ibiz-chat-thought-chain{--ibiz-chat-thought-chain-font-size: 12px;--ibiz-chat-thought-chain-header-height: 32px;--ibiz-chat-thought-chain-color-2: var(--ibiz-ai-chat-color-2);--ibiz-chat-thought-chain-bg: var(--ibiz-ai-chat-hover-background-color);--ibiz-chat-thought-chain-bg-2: var(--ibiz-ai-chat-hover-background-color-2);--ibiz-chat-thought-chain-border-radius: var(--ibiz-ai-chat-border-radius);--ibiz-chat-thought-chain-hover-bg-color: var(--ibiz-ai-chat-hover-background-color);--ibiz-chat-thought-chain-border: var(--ibiz-ai-chat-hover-background-color);display:flex;flex-direction:column;padding:8px 12px;font-size:var(--ibiz-chat-thought-chain-font-size);background-color:var(--ibiz-chat-thought-chain-bg);border-radius:var(--ibiz-chat-thought-chain-border-radius)}.ibiz-chat-thought-chain__item{display:flex}.ibiz-chat-thought-chain__item.is-collapsed:last-child .ibiz-chat-thought-chain__item-icon:after{display:none}.ibiz-chat-thought-chain__item.is-collapsed .ibiz-chat-thought-chain__item-title .ibiz-chat-thought-chain__icon{transform:rotate(180deg)}.ibiz-chat-thought-chain__item.is-collapsed .ibiz-chat-thought-chain__item-description{height:0}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:18px;padding-top:8px}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon span{display:flex;flex:none;align-items:center;justify-content:center;width:16px;height:16px;margin-bottom:8px;font-size:10px;color:var(--ibiz-chat-thought-chain-color-2);background:var(--ibiz-chat-thought-chain-bg-2);border-radius:50%}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon svg{width:16px;height:16px;margin-bottom:8px}.ibiz-chat-thought-chain .ibiz-chat-thought-chain__item-icon:after{width:1px;height:100%;content:"";background:var(--ibiz-chat-thought-chain-border);border-radius:13px;transition:.3s background cubic-bezier(.4,0,.2,1)}.ibiz-chat-thought-chain__item-content{flex:auto;padding-left:4px}.ibiz-chat-thought-chain__item-title{position:relative;display:flex;align-items:center;height:var(--ibiz-chat-thought-chain-header-height);padding:4px 4px 4px 6px;cursor:pointer;transition:.3s background-color}.ibiz-chat-thought-chain__item-title .ibiz-chat-thought-chain__icon{position:absolute;right:8px;flex-shrink:0;font-size:1em;cursor:pointer;transition:.3s transform}.ibiz-chat-thought-chain__item-title:hover{background-color:var(--ibiz-chat-thought-chain-bg-2);border-radius:8px}.ibiz-chat-thought-chain__item-description{height:100%;overflow:hidden;color:var(--ibiz-color-text-2);transition:height .3s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1)}.ibiz-chat-thought-chain.is-single .ibiz-chat-thought-chain__item-icon:after{display:none}@keyframes loading-animation{75%,to{opacity:0;transform:scale(2)}}.ibiz-user-message-question{padding:6px 10px}.ibiz-user-message-question__content{position:relative;box-sizing:border-box;display:flex;justify-content:end;max-width:100%;padding:10px;font-size:14px;text-align:left;word-break:break-word;user-select:text;transition:all .3s ease}.ibiz-user-message-question__content--body{width:fit-content;padding:0 10px;margin:0;font-size:14px;line-height:1.5;color:var(--color-fg-default);word-wrap:break-word;background:#E7F8FF;border-radius:var(--ibiz-ai-chat-border-radius);text-size-adjust:100%}.ibiz-user-message-question__content--body:before{display:table;content:""}.ibiz-user-message-question__content--body:after{display:table;clear:both;content:""}.ibiz-user-message-question__content--body>p{margin:8px}.ibiz-user-message-question__content--material{display:flex;flex-flow:row-reverse wrap;gap:8px;align-items:center}.ibiz-user-message-question__user-header{display:flex;align-items:center;justify-content:end;width:100%;height:32px}.ibiz-user-message-question__user{padding:6px;font-size:14px;font-weight:800}.ibiz-ossfile-material{display:flex;width:100%;height:100%}.ibiz-ossfile-material-left{display:flex;align-items:center;justify-content:center}.ibiz-ossfile-material-right{width:calc(100% - 24px);height:100%;padding-left:8px}.ibiz-ossfile-material__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-ossfile-material__metadata{display:flex;gap:8px;align-items:center;font-size:14px}.ibiz-ossfile-material__metadata>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-common-material{display:flex;width:100%;height:100%}.ibiz-common-material-left{display:flex;align-items:center;justify-content:center;font-size:18px}.ibiz-common-material-right{width:calc(100% - 24px);height:100%;padding-left:8px}.ibiz-common-material__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-common-material__metadata{display:flex;gap:8px;align-items:center;font-size:14px}.ibiz-common-material__metadata>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-input-material-item{position:relative;width:200px;height:60px;padding:8px;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color);border:1px solid var(--ibiz-ai-chat-border-color);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-item:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-input-material-item:hover .ibiz-chat-input-material-item__icon{opacity:1}.ibiz-chat-input-material-item.is-disabled{pointer-events:none}.ibiz-chat-input-material-item__icon{position:absolute;top:-4px;right:-4px;opacity:0}.ibiz-error-message{padding:6px 10px;text-align:left}.ibiz-error-message__content{width:fit-content;padding:6px;color:#fff;background-color:red;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-error-message .ibiz-error-message-header{display:flex;margin-bottom:8px}.ibiz-error-message-header__caption{flex:0;width:auto;min-width:32px;min-height:32px;padding:6px;margin-right:2px;font-size:14px;font-weight:800;color:var(--ibiz-ai-chat-color)}.ibiz-unknown-message{padding:6px 10px;text-align:right}.ibiz-unknown-message__content{padding:6px;color:#000;background-color:#ccc;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-message-item{padding:6px 0}.ibiz-chat-message-item .pre-wrap-container{word-wrap:break-word;white-space:pre-wrap}.ibiz-chat-toolbar{display:flex;align-items:center}.ibiz-chat-toolbar__item{display:flex;align-items:center;white-space:nowrap;cursor:pointer}.ibiz-chat-toolbar__item:not(:first-child){margin-left:6px}.ibiz-chat-toolbar__item--icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:18px;height:18px;font-size:18px}.ibiz-chat-toolbar__item--label{display:flex;align-items:center}.ibiz-chat-toolbar__item.is-disabled{cursor:not-allowed}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item{height:32px;padding:6px;max-width:32px;overflow:hidden;font-size:12px;white-space:nowrap;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:15px;transition:max-width .8s ease}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item.is-disabled{color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item:hover:not(.is-disabled){max-width:200px;color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item .ibiz-chat-toolbar__item--label{width:calc(100% - 32px);margin-left:8px;font-size:14px}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item .ibiz-chat-toolbar__item--label>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-toolbar__default .ibiz-chat-toolbar__item{z-index:1;gap:6px;width:fit-content;padding:2px 14px;font-size:14px;line-height:28px;color:var(--ibiz-ai-chat-color-2);background-color:var(--ibiz-ai-chat-background-color-2);border-radius:12px}.ibiz-chat-toolbar__default .ibiz-chat-toolbar__item.is-disabled{background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar__default .ibiz-chat-toolbar__item:hover:not(.is-disabled){background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-back-bottom{position:absolute;z-index:5;display:none;align-items:center;justify-content:center;width:32px;height:32px;font-size:var(--ibiz-font-size-header-6);color:var(--ibiz-ai-chat-color-2);cursor:pointer;background-color:var(--ibiz-ai-chat-background-color-2);border-radius:var(--ibiz-border-radius-circle)}.ibiz-chat-back-bottom:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-back-bottom__icon{font-size:20px}.ibiz-chat-back-bottom.is-visible{display:flex}.ibiz-chat-messages{margin:6px;width:calc(100% - 12px);height:calc(100% - 12px);overflow-x:hidden;overflow-y:auto}.ibiz-chat-messages::-webkit-scrollbar{width:6px}.ibiz-chat-messages::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-wrapper{max-height:6em;padding:4px;overflow:hidden auto;font-size:16px;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color)}.ibiz-chat-input-main-wrapper{display:flex;align-items:center;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input__textarea{flex-grow:1;max-height:6em;padding:4px;overflow:hidden auto!important;font-size:16px;color:var(--ibiz-ai-chat-color);resize:none;background-color:var(--ibiz-ai-chat-background-color);border:none;outline:none}.ibiz-chat-input__textarea::-webkit-scrollbar{width:6px}.ibiz-chat-input__textarea::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-action-wrapper{display:flex;gap:6px;align-items:center;padding:6px;color:var(--ibiz-ai-chat-color)}.ibiz-chat-input-action-wrapper__action-item{padding:3px;font-size:12px;border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-action-wrapper__action-item:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-input-action-wrapper__action-item svg.is-disabled{color:var(--ibiz-ai-chat-disabled-color);pointer-events:none}.ibiz-chat-input-pop-actions{width:160px;min-height:48px;padding:8px}.ibiz-chat-input-pop-action-item{display:flex;align-items:center;padding:8px;margin-bottom:4px;line-height:22px;cursor:pointer;border-radius:4px;transition:background-color .2s}.ibiz-chat-input-pop-action-item:hover{background-color:var(--ibiz-color-fill-0)}.ibiz-chat-input-pop-action-item-icon{width:18px;height:18px;margin-right:8px;font-size:18px;color:var(--ibiz-ai-chat-color);pointer-events:none}.ibiz-chat-input-pop-action-item-title{font-size:14px;line-height:22px;color:var(--ibiz-ai-chat-color);pointer-events:none}.ibiz-chat-input-material{display:flex;flex-wrap:wrap;gap:8px}.ibiz-pop-trigger-container{font-size:12px}.ibiz-pop-content{min-width:120px;padding:4px;background-color:var(--ibiz-color-bg-3);border:1px solid var(--ibiz-color-border);border-radius:8px}.ibiz-pop-content-item{display:flex;align-items:center;justify-content:space-around;line-height:32px;cursor:pointer}.ibiz-chat-topic-item{position:relative;display:flex;align-items:center;height:38px;padding:0 8px;margin-top:4px;cursor:pointer;border-radius:8px}.ibiz-chat-topic-item:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item:hover .ibiz-chat-topic-item-icon{opacity:1}.ibiz-chat-topic-item.is-active{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item-caption{width:100%;min-width:0;overflow:hidden;line-height:18px;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-topic-item-icon{position:absolute;top:50%;right:10px;display:flex;gap:8px;align-items:center;justify-content:flex-end;height:24px;padding:0 8px;color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color);border-radius:8px;outline:none;opacity:0;transform:translateY(-50%)}.ibiz-chat-topic-item-icon__item{font-size:12px}.ibiz-chat-topics{height:100%;padding:8px;overflow-y:auto}.ibiz-chat-container{--ibiz-ai-chat-color: #3b3b3b;--ibiz-ai-chat-icon-color: #3b3b3b;--ibiz-ai-chat-border-color: #e5e5e5;--ibiz-ai-chat-background-color: #fff;--ibiz-ai-chat-background-color-light: #f8fafb;--ibiz-ai-chat-disabled-color: rgba(59, 59, 59, .6);--ibiz-ai-chat-hover-color: #3b3b3b;--ibiz-ai-chat-hover-background-color: #e9e9e9;--ibiz-ai-chat-hover-border-color: #e5e5e5;--ibiz-ai-chat-border-radius: 5px;--ibiz-ai-chat-color-2: #4d6bfe;--ibiz-ai-chat-background-color-2: rgb(219, 234, 254);--ibiz-ai-chat-hover-background-color-2: #c3daf8}.ibiz-chat-container__dialog{position:absolute;z-index:1000;display:flex;flex-direction:column;background-color:var(--ibiz-ai-chat-background-color);border:1px solid var(--ibiz-ai-chat-border-color);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-container__dialog *{box-sizing:border-box}.ibiz-chat-container__dialog svg{display:inline-block;width:1em;height:1em;font-size:1.5em;vertical-align:middle;fill:currentcolor}.ibiz-chat-container__dialog.is-hidden{display:none}.ibiz-chat-container__minimize{position:absolute;z-index:99999;display:flex;align-items:center;justify-content:center;width:56px;height:56px;color:var(--ibiz-ai-chat-color);cursor:pointer;background-color:var(--ibiz-ai-chat-background-color);border:1px solid var(--ibiz-ai-chat-border-color);border-radius:50%}.ibiz-chat-container__minimize:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-container__minimize svg{display:inline-block;vertical-align:middle;fill:currentcolor}.ibiz-chat-container__minimize.is-hidden{display:none}.ibiz-chat-container__toolbar{display:flex;justify-content:center;margin:8px}.ibiz-chat-container-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;height:60px;padding:4px;cursor:move;border-bottom:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-container-header-caption{padding:0 6px 0 16px;font-size:18px;font-weight:800}.ibiz-chat-container-header-action-wrapper{display:flex;gap:6px;align-items:center;height:100%;padding:0 6px}.ibiz-chat-container-header-action-wrapper__action-item{flex-shrink:0;padding:3px;font-size:12px;color:var(--ibiz-ai-chat-color);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-container-header-action-wrapper__action-item:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-container-main{display:flex;height:calc(100% - 60px)}.ibiz-chat-container-main__left{flex-shrink:0;width:200px;height:100%;border-right:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-container-main__right{position:relative;display:flex;flex-direction:column;flex-grow:1;width:calc(100% - 200px);height:100%}.ibiz-chat-container-main__right .ibiz-chat-toolbar__default{position:absolute;bottom:118px;width:100%;margin:0}.ibiz-chat-container-main__right .ibiz-chat-messages{padding-bottom:48px}.ibiz-chat-container-main__default{display:flex;flex-direction:column;flex-grow:1;height:calc(100% - 60px)}.ibiz-chat-container-content{position:relative;flex-grow:1;overflow:hidden}.ibiz-chat-container-footer{flex-shrink:0;padding:3px 6px;border-top:1px solid var(--ibiz-ai-chat-border-color)}
diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.14/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.14/index.system.min.js
new file mode 100644
index 0000000000000000000000000000000000000000..cc7f70856c12f8687d5cc40a2101c35e09357be6
--- /dev/null
+++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.14/index.system.min.js
@@ -0,0 +1 @@
+!function(){function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)}function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,n)}function n(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=r(t);if(e){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)}(this,n)}}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}function o(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||c(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==e);s=!0);}catch(t){l=!0,r=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(t,e)||c(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:L(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}function d(t,e,n,i,r,o,a){try{var c=t[o](a),s=c.value}catch(l){return void n(l)}c.done?e(s):Promise.resolve(s).then(i,r)}function f(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){d(o,i,r,a,c,"next",t)}function c(t){d(o,i,r,a,c,"throw",t)}a(void 0)}))}}function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===c[a]&&(c[a]=t.defaultProps[a]);return O(t,c,i,o,null)}function O(t,e,n,i,r){var o={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++d:r};return null==r&&null!=l.vnode&&l.vnode(o),o}function z(t){return t.children}function L(t,e){this.props=t,this.context=e}function I(t,e){if(null==e)return t.__?I(t.__,t.__.__k.indexOf(t)+1):null;for(var n;ee&&y.sort(k));H.__r=0}function B(t,e,n,i,r,o,a,c,s,l,u){var h,d,f,p,v,m,_,g,y,b=0,w=i&&i.__k||N,k=w.length,x=k,E=e.length;for(n.__k=[],h=0;h0?O(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)?(p.__=n,p.__b=n.__b+1,-1===(g=U(p,w,_=h+b,x))?f=C:(f=w[g]||C,w[g]=void 0,x--),$(t,p,f,r,o,a,c,s,l,u),v=p.__e,(d=p.ref)&&f.ref!=d&&(f.ref&&G(f.ref,null,p),u.push(d,p.__c||v,p)),null!=v&&(null==m&&(m=v),(y=f===C||null===f.__v)?-1==g&&b--:g!==_&&(g===_+1?b++:g>_?x>E-_?b+=g-_:b--:b=g<_&&g==_-1?g-_:0),_=h+b,"function"!=typeof p.type||g===_&&f.__k!==p.__k?"function"==typeof p.type||g===_&&!y?void 0!==p.__d?(s=p.__d,p.__d=void 0):s=v.nextSibling:s=R(t,v,s):s=j(p,s,t),"function"==typeof n.type&&(n.__d=s))):(f=w[h])&&null==f.key&&f.__e&&(f.__e==s&&(f.__=i,s=I(f)),J(f,f,!1),w[h]=null);for(n.__e=m,h=k;h--;)null!=w[h]&&("function"==typeof n.type&&null!=w[h].__e&&w[h].__e==n.__d&&(n.__d=w[h].__e.nextSibling),J(w[h],w[h]))}function j(t,e,n){for(var i,r=t.__k,o=0;r&&o(null!=s?1:0))for(;a>=0||c=0){if((s=e[a])&&r==s.key&&o===s.type)return a;a--}if(c0&&void 0!==arguments[0]?arguments[0]:"";return Q(this.namespace,this.block,t,"","")}},{key:"e",value:function(t){return t?Q(this.namespace,this.block,"",t,""):""}},{key:"m",value:function(t){return t?Q(this.namespace,this.block,"","",t):""}},{key:"be",value:function(t,e){return t&&e?Q(this.namespace,this.block,t,e,""):""}},{key:"em",value:function(t,e){return t&&e?Q(this.namespace,this.block,"",t,e):""}},{key:"bm",value:function(t,e){return t&&e?Q(this.namespace,this.block,t,"",e):""}},{key:"bem",value:function(t,e,n){return t&&e&&n?Q(this.namespace,this.block,t,e,n):""}},{key:"is",value:function(t,e){return t&&e?"".concat("is-").concat(t):""}},{key:"cssVar",value:function(t){var e={};for(var n in t)t[n]&&(e[this.cssVarName(n)]=t[n]);return e}},{key:"cssVarBlock",value:function(t){var e={};for(var n in t)t[n]&&(e[this.cssVarBlockName(n)]=t[n]);return e}},{key:"cssVarName",value:function(t){return"--".concat(this.namespace,"-").concat(t)}},{key:"cssVarBlockName",value:function(t){return"--".concat(this.namespace,"-").concat(this.block,"-").concat(t)}}]),t}();function et(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function nt(t,e){for(var n,i="",r=0,o=-1,a=0,c=0;c<=t.length;++c){if(c2){var s=i.lastIndexOf("/");if(s!==i.length-1){-1===s?(i="",r=0):r=(i=i.slice(0,s)).length-1-i.lastIndexOf("/"),o=c,a=0;continue}}else if(2===i.length||1===i.length){i="",r=0,o=c,a=0;continue}e&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+t.slice(o+1,c):i=t.slice(o+1,c),r=c-o-1;o=c,a=0}else 46===n&&-1!==a?++a:a=-1}return i}var it={resolve:function(){for(var t,e="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var r;i>=0?r=arguments[i]:(void 0===t&&(t=process.cwd()),r=t),et(r),0!==r.length&&(e=r+"/"+e,n=47===r.charCodeAt(0))}return e=nt(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(t){if(et(t),0===t.length)return".";var e=47===t.charCodeAt(0),n=47===t.charCodeAt(t.length-1);return 0!==(t=nt(t,!e)).length||e||(t="."),t.length>0&&n&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return et(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e0&&(void 0===t?t=n:t+="/"+n)}return void 0===t?".":it.normalize(t)},relative:function(t,e){if(et(t),et(e),t===e)return"";if((t=it.resolve(t))===(e=it.resolve(e)))return"";for(var n=1;nc){if(47===e.charCodeAt(o+l))return e.slice(o+l+1);if(0===l)return e.slice(o+l)}else r>c&&(47===t.charCodeAt(n+l)?s=l:0===l&&(s=0));break}var u=t.charCodeAt(n+l);if(u!==e.charCodeAt(o+l))break;47===u&&(s=l)}var h="";for(l=n+s+1;l<=i;++l)l!==i&&47!==t.charCodeAt(l)||(0===h.length?h+="..":h+="/..");return h.length>0?h+e.slice(o+s):(o+=s,47===e.charCodeAt(o)&&++o,e.slice(o))},_makeLong:function(t){return t},dirname:function(t){if(et(t),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,r=!0,o=t.length-1;o>=1;--o)if(47===(e=t.charCodeAt(o))){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"//":t.slice(0,i)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');et(t);var n,i=0,r=-1,o=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var a=e.length-1,c=-1;for(n=t.length-1;n>=0;--n){var s=t.charCodeAt(n);if(47===s){if(!o){i=n+1;break}}else-1===c&&(o=!1,c=n+1),a>=0&&(s===e.charCodeAt(a)?-1==--a&&(r=n):(a=-1,r=c))}return i===r?r=c:-1===r&&(r=t.length),t.slice(i,r)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":t.slice(i,r)},extname:function(t){et(t);for(var e=-1,n=0,i=-1,r=!0,o=0,a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(47!==c)-1===i&&(r=!1,i=a+1),46===c?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!r){n=a+1;break}}return-1===e||-1===i||0===o||1===o&&e===i-1&&e===n+1?"":t.slice(e,i)},format:function(t){if(null===t||"object"!==p(t))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+p(t));return function(t,e){var n=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+i:n+t+i:i}("/",t)},parse:function(t){et(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var n,i=t.charCodeAt(0),r=47===i;r?(e.root="/",n=1):n=0;for(var o=-1,a=0,c=-1,s=!0,l=t.length-1,u=0;l>=n;--l)if(47!==(i=t.charCodeAt(l)))-1===c&&(s=!1,c=l+1),46===i?-1===o?o=l:1!==u&&(u=1):-1!==o&&(u=-1);else if(!s){a=l+1;break}return-1===o||-1===c||0===u||1===u&&o===c-1&&o===a+1?-1!==c&&(e.base=e.name=0===a&&r?t.slice(1,c):t.slice(a,c)):(0===a&&r?(e.name=t.slice(1,o),e.base=t.slice(1,c)):(e.name=t.slice(a,o),e.base=t.slice(a,c)),e.ext=t.slice(o,c)),a>0?e.dir=t.slice(0,a-1):r&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};function rt(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function ot(){return"".concat(rt()+rt(),"-").concat(rt(),"-").concat(rt(),"-").concat(rt(),"-").concat(rt()).concat(rt()).concat(rt())}it.posix=it;var at=/