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 环境开发正常配置 +
+![开发环境信息](sample/getting-started/development.png) + +### 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部分代码注释,详见下图。
+![远程代理地址](sample/getting-started/problem.png) 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+""},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+""},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+""},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+""},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+""},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+""},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+""},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+""},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=/]*>[\s\S]*?<\/svg>/;function ct(t){return at.test(t)}var st=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(st,"inputElement",null);var lt=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(lt,"version",1),g(lt,"db",null),g(lt,"lastLink",void 0);var ut,ht,dt,ft,pt=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}(),vt=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(jn){throw new Error("XML 解析错误: ".concat(jn.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}(),mt=0,_t=[],gt=[],yt=l.__b,bt=l.__r,wt=l.diffed,kt=l.__c,xt=l.unmount;function Ct(t,e){l.__h&&l.__h(ht,t,mt||e),mt=0;var n=ht.__H||(ht.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:gt}),n.__[t]}function Nt(t){return mt=1,function(t,e,n){var i=Ct(ut++,2);if(i.t=t,!i.__c&&(i.__=[n?n(e):Ht(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=ht,!ht.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))};ht.u=!0;var o=ht.shouldComponentUpdate,a=ht.componentWillUpdate;ht.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)},ht.shouldComponentUpdate=r}return i.__N||i.__}(Ht,t)}function Et(t,e){var n=Ct(ut++,3);!l.__s&&Pt(n.__H,e)&&(n.__=t,n.i=e,ht.__H.__h.push(n))}function Tt(t){return mt=5,St((function(){return{current:t}}),[])}function St(t,e){var n=Ct(ut++,7);return Pt(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function At(t,e){return mt=8,St((function(){return t}),e)}function Mt(t){var e=ht.context[t.__c],n=Ct(ut++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(ht)),e.props.value):t.__}function Ot(){for(var t;t=_t.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(It),t.__H.__h.forEach(Dt),t.__H.__h=[]}catch(Un){t.__H.__h=[],l.__e(Un,t.__v)}}l.__b=function(t){ht=null,yt&&yt(t)},l.__r=function(t){bt&&bt(t),ut=0;var e=(ht=t.__c).__H;e&&(dt===ht?(e.__h=[],ht.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=gt,t.__N=t.i=void 0}))):(e.__h.forEach(It),e.__h.forEach(Dt),e.__h=[],ut=0)),dt=ht},l.diffed=function(t){wt&&wt(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==_t.push(e)&&ft===l.requestAnimationFrame||((ft=l.requestAnimationFrame)||Lt)(Ot)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==gt&&(t.__=t.__V),t.i=void 0,t.__V=gt}))),dt=ht=null},l.__c=function(t,e){e.some((function(t){try{t.__h.forEach(It),t.__h=t.__h.filter((function(t){return!t.__||Dt(t)}))}catch($t){e.some((function(t){t.__h&&(t.__h=[])})),e=[],l.__e($t,t.__v)}})),kt&&kt(t,e)},l.unmount=function(t){xt&&xt(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{It(t)}catch(t){e=t}})),n.__H=void 0,e&&l.__e(e,n.__v))};var zt="function"==typeof requestAnimationFrame;function Lt(t){var e,n=function(){clearTimeout(i),zt&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);zt&&(e=requestAnimationFrame(n))}function It(t){var e=ht,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),ht=e}function Dt(t){var e=ht;t.__c=t.__(),ht=e}function Pt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function Ht(t,e){return"function"==typeof e?e(t):e}function Bt(){throw new Error("Cycle detected")}var jt=Symbol.for("preact-signals");function Ft(){if(qt>1)qt--;else{for(var t,e=!1;void 0!==Vt;){var n=Vt;for(Vt=void 0,Yt++;void 0!==n;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Zt(n))try{n.c()}catch(n){e||(t=n,e=!0)}n=i}}if(Yt=0,qt--,e)throw t}}var Rt,Ut,Wt=void 0,Vt=void 0,qt=0,Yt=0,$t=0;function Xt(t){if(void 0!==Wt){var e=t.n;if(void 0===e||e.t!==Wt)return e={i:0,S:t,p:Wt.s,n:void 0,t:Wt,e:void 0,x:void 0,r:e},void 0!==Wt.s&&(Wt.s.n=e),Wt.s=e,t.n=e,32&Wt.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=Wt.s,e.n=void 0,Wt.s.n=e,Wt.s=e),e}}function Gt(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}function Jt(t){return new Gt(t)}function Zt(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 Kt(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 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 te(t){Gt.call(this,void 0),this.x=t,this.s=void 0,this.g=$t-1,this.f=4}function ee(t){return new te(t)}function ne(t){var e=t.u;if(t.u=void 0,"function"==typeof e){qt++;var n=Wt;Wt=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,ie(t),e}finally{Wt=n,Ft()}}}function ie(t){for(var e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,ne(t)}function re(t){if(Wt!==this)throw new Error("Out-of-order effect");Qt(this),Wt=t,this.f&=-2,8&this.f&&ie(this),Ft()}function oe(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function ae(t){var e=new oe(t);try{e.c()}catch(t){throw e.d(),t}return e.d.bind(e)}function ce(t,e){l[t]=e.bind(null,l[t]||function(){})}function se(t){Ut&&Ut(),Ut=t&&t.S()}function le(t){var e=this,n=t.data,i=he(n);i.value=n;var r=St((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()},ee((function(){var t=i.value.value;return 0===t?0:!0===t?"":t||""}))}),[]);return r.value}function ue(t,e,n,i){var r=e in t&&void 0===t.ownerSVGElement,o=Jt(n);return{o:function(t,e){o.value=t,i=e},d:ae((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 he(t){return St((function(){return Jt(t)}),[])}function de(t){var e=Tt(t);return e.current=t,Rt.__$f|=4,St((function(){return ee((function(){return e.current()}))}),[])}Gt.prototype.brand=jt,Gt.prototype.h=function(){return!0},Gt.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)},Gt.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)}},Gt.prototype.subscribe=function(t){var e=this;return ae((function(){var n=e.value,i=32&this.f;this.f&=-33;try{t(n)}finally{this.f|=i}}))},Gt.prototype.valueOf=function(){return this.value},Gt.prototype.toString=function(){return this.value+""},Gt.prototype.toJSON=function(){return this.value},Gt.prototype.peek=function(){return this.v},Object.defineProperty(Gt.prototype,"value",{get:function(){var t=Xt(this);return void 0!==t&&(t.i=this.i),this.v},set:function(t){if(Wt instanceof te&&function(){throw new Error("Computed cannot have side-effects")}(),t!==this.v){Yt>100&&Bt(),this.v=t,this.i++,$t++,qt++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{Ft()}}}}),(te.prototype=new Gt).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===$t)return!0;if(this.g=$t,this.f|=1,this.i>0&&!Zt(this))return this.f&=-2,!0;var t=Wt;try{Kt(this),Wt=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 Wt=t,Qt(this),this.f&=-2,!0},te.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)}Gt.prototype.S.call(this,t)},te.prototype.U=function(t){if(void 0!==this.t&&(Gt.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)}},te.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;void 0!==t;t=t.x)t.t.N()}},te.prototype.peek=function(){if(this.h()||Bt(),16&this.f)throw this.v;return this.v},Object.defineProperty(te.prototype,"value",{get:function(){1&this.f&&Bt();var t=Xt(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),oe.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()}},oe.prototype.S=function(){1&this.f&&Bt(),this.f|=1,this.f&=-9,ne(this),Kt(this),qt++;var t=Wt;return Wt=this,re.bind(this,t)},oe.prototype.N=function(){2&this.f||(this.f|=2,this.o=Vt,Vt=this)},oe.prototype.d=function(){this.f|=8,1&this.f||ie(this)},le.displayName="_st",Object.defineProperties(Gt.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:le},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),ce("__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 Gt&&(n||(e.__np=n={}),n[r]=o,i[r]=o.peek())}}t(e)})),ce("__r",(function(t,e){se();var n,i=e.__c;i&&(i.__$f&=-2,void 0===(n=i.__$u)&&(i.__$u=n=function(t){var e;return ae((function(){e=this})),e.c=function(){i.__$f|=1,i.setState({})},e}())),Rt=i,se(n),t(e)})),ce("__e",(function(t,e,n,i){se(),Rt=void 0,t(e,n,i)})),ce("diffed",(function(t,e){var n;if(se(),Rt=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=ue(n,s,u,r),o[s]=l):l.o(u,r)}}}t(e)})),ce("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)})),ce("__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 fe=0;function pe(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:--fe,__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 ve=function(){return pe("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:pe("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"})})},me=function(){return pe("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:pe("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"})})},_e=function(t){return pe("svg",{viewBox:"0 0 1024 1024",id:"send",className:t.className,version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:pe("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"})})},ge=function(){return pe("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:pe("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"})})},ye=function(){return pe("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:pe("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"})})},be=function(){return pe("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:pe("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"})})},we=function(){return pe("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:pe("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"})})},ke=function(){return pe("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:pe("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"})})},xe=function(){return pe("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:pe("path",{d:"M960 544H64a32 32 0 1 1 0-64h896a32 32 0 1 1 0 64"})})},Ce=function(){return pe("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[pe("path",{d:"M481.0752 263.3728l50.9952 1.024 1.8432-105.8816-50.9952-0.8192z"}),pe("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"}),pe("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"}),pe("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"}),pe("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"}),pe("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"})]})},Ne=function(){return pe("svg",{viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[pe("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"}),pe("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"}),pe("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"})]})},Ee=function(){return pe("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:pe("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"})})},Te=function(){var t=1e3,e=140,n=250,i=.8;return pe("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 pe("rect",{fill:"currentColor",rx:70,ry:70,height:n,width:e,x:286.66666666666663*r,y:375,children:[pe("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"}),pe("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)}))})},Se=function(t){return pe("svg",{className:t.className,onClick:t.onClick,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:pe("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"})})},Ae=function(t){return pe("svg",{className:t.className,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:pe("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"})})},Me=function(t){return pe("svg",{xmlns:"http://www.w3.org/2000/svg",className:t.className,viewBox:"0 0 512 512",children:pe("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 184l144 144 144-144"})})},Oe=function(t){return pe("svg",{xmlns:"http://www.w3.org/2000/svg",className:"".concat(t.className," icon"),viewBox:"0 0 512 512",children:pe("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"})})},ze=function(t){return pe("svg",{className:t.className,width:"16",height:"16",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",children:pe("circle",{cx:"25",cy:"25",r:"20",stroke:"currentColor",strokeWidth:"5",fill:"none",strokeDasharray:"31.415, 31.415",strokeLinecap:"round",children:pe("animateTransform",{attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"1s",repeatCount:"indefinite"})})})},Le=function(){return pe("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:pe("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"})})},Ie=function(){return pe("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[pe("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"}),pe("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"})]})},De=function(){return pe("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:pe("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"})})},Pe=function(){return pe("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:pe("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"})})},He=function(t){return pe("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:[pe("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"}),pe("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"})]})},Be=function(t){return pe("svg",{xmlns:"http://www.w3.org/2000/svg",className:t.className,viewBox:"0 0 512 512",children:pe("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})})},je=function(t){var e=t.items,n=he([]),i=new tt("chat-thought-chain"),r=he([]);Et((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:pe("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 pe("div",{className:"".concat(i.e("item")," ").concat(i.is("collapsed",r)),children:[pe("div",{className:i.e("item-icon"),children:t.icon||pe("span",{children:e})}),pe("div",{className:i.e("item-content"),children:[pe("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,pe(Me,{className:i.e("icon")})]}),pe("div",{className:i.e("item-description"),children:t.description})]})]},e)}}))})},Fe=new tt("markdown-message"),Re=function(t){var e=t.message,n=t.size,i=he(ot()),r=he(null),o=St((function(){return 20===e.state&&!0!==e.completed}),[e.state,e.completed]),a=St((function(){return 20===e.state&&!0===e.completed}),[e.state,e.completed]),c=he({title:"",description:"",icon:pe(ze,{})}),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 Et((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=pe(Oe,{}),c.value.title="思考完成"):!0===e.completed?(c.value.icon=pe(Oe,{}),c.value.title="思考已停止"):(c.value.icon=pe(ze,{}),c.value.title="思考中..."),o&&(c.value.description=o),a&&r.value.setMarkdown(a)}else r.value.setMarkdown(e.content)}),[e,n]),Et((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?pe(Oe,{}):pe(ze,{})},u&&(t=u)}else t=e.content;r.value=new s({id:i,value:t||"",editor:{defaultModel:"previewOnly"}})}),[]),pe("div",{className:"".concat(Fe.b()," ").concat(Fe.is("loading",o)),children:[pe("div",{className:Fe.b("header"),children:[pe("div",{className:Fe.be("header","caption"),children:"AI "}),t.children,a?pe("div",{className:Fe.be("header","timeout"),children:"请求超时"}):null]}),pe("div",{className:"".concat(Fe.b("content")," pre-wrap-container"),children:[pe(je,{items:[c.value]}),pe("div",{id:i})]}),pe("div",{className:Fe.b("footer")})]})},Ue=new tt("ossfile-material"),We=function(t){var e=de((function(){return t.material.data.name})),n=de((function(){return t.material.metadata.size})),i=de((function(){var e=t.material.metadata.state;return"successed"===e?"上传成功":"uploading"===e?"上传中":"failed"===e?"上传失败":"未知状态"})),r=de((function(){switch(t.material.metadata.state){case"successed":return"#1890ff";case"uploading":return"#52c41a";default:return"#ff4d4f"}}));return pe("div",{className:Ue.b(),children:[pe("div",{className:Ue.b("left"),children:pe(Ie,{})}),pe("div",{className:Ue.b("right"),children:[pe("div",{className:Ue.e("name"),title:e,children:e}),pe("div",{className:Ue.e("metadata"),children:[pe("div",{children:[n,"B"]}),pe("div",{style:{color:r.value},children:i})]})]})]})},Ve=new tt("common-material"),qe=function(t){var e,n,i,r,o=null===(e=t.controller.opts.questionToolbarItems)||void 0===e?void 0:e.find((function(e){return e.id===t.material.metadata.actionId})),a=de((function(){return t.material.metadata.name}));return pe("div",{className:Ve.b(),children:[pe("div",{className:Ve.b("left"),children:o&&o.icon?"function"==typeof o.icon?o.icon():(null===(n=o.icon)||void 0===n?void 0:n.showIcon)&&pe(z,{children:null!==(i=o.icon)&&void 0!==i&&i.cssClass?pe("i",{className:o.icon.cssClass}):null!==(r=o.icon)&&void 0!==r&&r.imagePath?ct(o.icon.imagePath)?pe("div",{dangerouslySetInnerHTML:{__html:o.icon.imagePath}}):pe("img",{src:o.icon.imagePath}):null}):pe(Pe,{})}),pe("div",{className:Ve.b("right"),children:[pe("div",{className:Ve.e("name"),title:a,children:a}),pe("div",{className:Ve.e("metadata"),children:pe("div",{children:(null==o?void 0:o.label)||"素材资源"})})]})]})},Ye=new tt("chat-input-material-item"),$e=function(t){var e=t.material,n=null;if("ossfile"===e.type)n=We;else n=qe;return pe("div",{className:"".concat(Ye.b()," ").concat(Ye.is("disabled",t.disabled)),children:[pe("div",{className:Ye.e("icon"),onClick:function(){t.controller.deleteMaterial(e)},children:pe(De,{})}),M(n,{material:e,controller:t.controller})]})},Xe=new tt("user-message-question"),Ge=function(t){var e=de((function(){return t.message.content})),n=de((function(){return vt.parseMixedContent(e.value)}));return pe("div",{className:Xe.b(),children:[pe("div",{className:Xe.e("user-header"),children:[t.children,pe("div",{className:Xe.e("user"),children:"我"})]}),pe("div",{className:Xe.e("content"),children:pe("div",{dir:"auto",className:Xe.em("content","body"),children:[pe("p",{dir:"auto",className:Xe.em("content","material"),children:n.value.hasResources&&n.value.resources.map((function(e){return pe($e,{material:e,disabled:!0,controller:t.controller},e.id)}))}),pe("p",{dir:"auto",className:"pre-wrap-container",children:n.value.remainingText})]})})]})},Je=new tt("error-message"),Ze=function(t){var e=de((function(){return t.message.content}));return pe("div",{className:Je.b(),children:[pe("div",{className:Je.b("header"),children:[pe("div",{className:Je.be("header","caption"),children:"AI "}),t.children]}),pe("div",{className:"".concat(Je.e("content")," pre-wrap-container"),children:pe("span",{children:e})})]})},Ke=new tt("unknown-message"),Qe=function(t){return pe("div",{className:Ke.b(),children:pe("span",{className:"".concat(Ke.e("content")," pre-wrap-container"),children:["暂未支持的消息类型: ",t.message.type]})})},tn=new tt("chat-message-item"),en=function(t){var e=t.message,n=t.size,i=null;switch(e.type){case"DEFAULT":i="ASSISTANT"===e.role?Re:Ge;break;case"ERROR":i=Ze;break;default:i=Qe}return pe("div",{className:tn.b(),children:M(i,{size:n,message:e,controller:t.controller,children:t.children})})},nn=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}(),rn=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}(),on=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}(),an=new tt("chat-toolbar"),cn=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:function(){return pe(Ne,{})},onClick:function(){e.newDialogue()}}],d=[{label:"刷新",title:"刷新",icon:function(){return pe(ye,{})},onClick:function(){e.refreshMessage(r)}},{label:"删除",title:"删除",icon:function(){return pe(ge,{})},onClick:function(){e.deleteMessage(r)}},{label:"复制",title:"复制",icon:function(){return pe(be,{})},onClick:function(){e.copyMessage(r)}}];Mt(si).enableBackFill&&d.unshift.apply(d,[{label:"回填",title:"回填",icon:function(){return pe(me,{})},onClick:function(){e.backfill(r)}}]);var f=[{label:"刷新",title:"刷新",icon:function(){return pe(ye,{})},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=St((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 pe("div",{className:"".concat(an.b()," ").concat(an.e(l)," ").concat(c||""),children:s.map((function(n,i){var o,a,s;if(!function(t){return"function"==typeof t.hidden?t.hidden(r):!0===t.hidden}(n))return pe("div",{className:"".concat(an.e("item")," ").concat(an.is("disabled",p(n)||v)," ").concat(c||""),title:n.title,onClick:function(i){return function(n,i){if(!p(i)){var o=u({},r);if(r instanceof nn&&(Object.assign(o,{topic:e.topic}),o.msg.realcontent=r.realcontent),i.onClick&&"function"==typeof i.onClick)i.onClick(n,i,e.context,e.params,o);else{var a=t.controller.opts.extendToolbarClick;a&&"function"==typeof a&&a(n,i,e.context,e.params,o)}}}(i,n)},children:[pe("div",{className:"".concat(an.em("item","icon")),children:"function"==typeof n.icon?n.icon():(null===(o=n.icon)||void 0===o?void 0:o.showIcon)&&pe(z,{children:null!==(a=n.icon)&&void 0!==a&&a.cssClass?pe("i",{className:n.icon.cssClass}):null!==(s=n.icon)&&void 0!==s&&s.imagePath?ct(n.icon.imagePath)?pe("div",{dangerouslySetInnerHTML:{__html:n.icon.imagePath}}):pe("img",{src:n.icon.imagePath}):null})}),pe("div",{className:"".concat(an.em("item","label")),children:n.label})]},i)}))})};var sn=function(t){var e,n,i,r=he(!1),o=he({}),a=new tt("chat-back-bottom"),c=he(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;a3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(t)}}),K(M(kn,{context:e.context},t.__v),e.l)}function Cn(t,e){var n=M(xn,{__v:t,i:e});return n.containerInfo=e,n}(bn.prototype=new L).__a=function(t){var e=this,n=yn(e.__v),i=e.o.get(t);return i[0]++,function(r){var o=function(){e.props.revealOrder?(i.push(r),wn(e,t,i)):r()};n?n(o):o()}},bn.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},bn.prototype.componentDidUpdate=bn.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){wn(t,n,e)}))};var Nn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,En=/^(?: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]/,Tn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Sn=/[A-Z0-9]/g,An="undefined"!=typeof document,Mn=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 On=l.event;function zn(){}function Ln(){return this.cancelBubble}function In(){return this.defaultPrevented}l.event=function(t){return On&&(t=On(t)),t.persist=zn,t.isPropagationStopped=Ln,t.isDefaultPrevented=In,t.nativeEvent=t};var Dn={enumerable:!1,configurable:!0,get:function(){return this.class}},Pn=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||An&&"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||Mn(e.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":Tn.test(r)?r=a:-1===n.indexOf("-")&&En.test(r)?r=r.replace(Sn,"-$&").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",Dn)):(e.className&&!e.class||e.class&&e.className)&&(i.class=i.className=e.className),t.props=i}(t),t.$$typeof=Nn,Pn&&Pn(t)};var Hn=l.__r;l.__r=function(t){Hn&&Hn(t),t.__c};var Bn=l.diffed;l.diffed=function(t){Bn&&Bn(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 jn=new Map;function Fn(t){var e=jn.get(t);e&&e.destroy()}function Rn(t){var e=jn.get(t);e&&e.update()}var Un=null;"undefined"==typeof window?((Un=function(t){return t}).destroy=function(t){return t},Un.update=function(t){return t}):((Un=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&&!jn.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]})),jn.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",jn.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],Fn),t},Un.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],Rn),t});var Wn=Un,Vn=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}(Vn||{}),qn=function(){function t(e){v(this,t),g(this,"messages",Jt([])),g(this,"materials",Jt([])),g(this,"input",Jt("")),g(this,"isLoading",Jt(!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,lt.getData(Vn.DATA_BASE_NAME,Vn.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,lt.updateData(Vn.DATA_BASE_NAME,Vn.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 nn(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 nn(t),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new nn(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 nn(t),this.messages.value=o(this.messages.value)}else this.messages.value=[].concat(o(this.messages.value),[new nn(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=vt.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;st.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,lt.deleteData(Vn.DATA_BASE_NAME,Vn.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 on(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 on(e),this.materials.value=o(this.materials.value)):this.materials.value=[].concat(o(this.materials.value),[new on(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}(),Yn=function(){function t(e){v(this,t),g(this,"topics",Jt([])),g(this,"activedTopic",Jt(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 rn(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 rn(e),-1!==n?this.topics.value.splice(n,1,new rn(e)):this.topics.value=[].concat(o(this.topics.value),[new rn(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,lt.deleteData(Vn.DATA_BASE_NAME,Vn.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}(),$n=_((function t(e){v(this,t),this.aiChat=e})),Xn=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;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n||!n.onClick||"function"!=typeof n.onClick){t.next=6;break}return t.next=3,n.onClick(e,n,this.aiChat.context,this.aiChat.params);case 3:i=t.sent,t.next=14;break;case 6:if(!(r=this.aiChat.opts.extendToolbarClick)){t.next=13;break}return t.next=10,r(e,n,this.aiChat.context,this.aiChat.params);case 10:i=t.sent,t.next=14;break;case 13:console.error("未找到扩展工具栏点击事件");case 14:i&&i.data&&i.data.length>0&&(o=i.data[0],a={id:o.id,type:o.type,data:o.data||{},metadata:o.metadata||{}},n.id&&Object.assign(a.metadata,{actionId:n.id}),this.aiChat.addMaterial(a));case 15:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})}]),o}($n),Gn=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 pt(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}($n),Jn=function(){function t(){v(this,t)}return _(t,null,[{key:"getMaterialHelper",value:function(t,e){return"ossfile"===t?new Gn(e):new Xn(e)}}]),t}(),Zn=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 Yn(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,lt.checkTableExists(Vn.DATA_BASE_NAME,Vn.DATA_TABLE_NAME);case 2:if(t.sent){t.next=6;break}return t.next=6,lt.createTable(Vn.DATA_BASE_NAME,Vn.DATA_TABLE_NAME,Vn.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 qn(o),this.aiTopicMap.set("".concat(null===(i=a)||void 0===i?void 0:i.id),c),K(M(li,{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,extendToolbarClick:this.backupChatOptions.chatOptions.extendToolbarClick}),this.aiTopicMap.has("".concat(t.id))?e=this.aiTopicMap.get("".concat(t.id)):(e=new qn(c),this.aiTopicMap.set("".concat(t.id),e)),this.container)&&(K(null,this.container),K(M(li,{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}(),Kn=(e("chat",new Zn),new tt("chat-input-material")),Qn=function(t){var e=t.controller.materials;return pe("div",{className:Kn.b(),children:e.value.map((function(e){return pe($e,{material:e,disabled:!1,controller:t.controller},e.id)}))})},ti=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=Mt(si),f=a(Nt(c||!1),2),p=f[0],v=f[1],m=Tt(null),_=Tt(null);Et((function(){void 0!==c&&v(c)}),[c]),Et((function(){return _.current||(_.current=document.createElement("div"),_.current.className=h.b("content-container"),document.body.appendChild(_.current)),function(){_.current&&document.body.removeChild(_.current)}}),[]),Et((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 pe("span",{className:"".concat(h.b("trigger-container")),children:[pe("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&&Cn(pe("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 pe("div",{className:h.b("content-item"),onMouseDown:function(e){e.stopPropagation(),null==l||l(t.id,e)},children:[t.icon&&pe("img",{className:h.b("content-item__icon"),src:t.icon,alt:t.caption}),pe("div",{className:h.b("content-item__caption"),children:t.caption})]},t.id)})))}),_.current)]})},ei=new tt("chat-input"),ni=window.SpeechRecognition||window.webkitSpeechRecognition,ii=function(t){var e,n=a(Nt(!1),2),i=n[0],r=n[1],o=Tt(null),c=t.controller.input,s=he(!1),l=Tt();ni&&!l.current&&(l.current=new ni,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=At((function(t){c.value=t.target.value}),[c]),d=de((function(){return c.value.length<=0}));Et((function(){return o.current&&Wn(o.current),function(){o.current&&Wn.destroy(o.current)}}),[o]);var p=At(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=At(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=Jn.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=Jn.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 pe("div",{className:ei.b("wrapper"),children:[pe("div",{className:ei.b("material-wrapper"),children:pe(Qn,{controller:t.controller})}),pe("div",{className:ei.b("main-wrapper"),children:[pe("textarea",{className:ei.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}),pe("div",{className:ei.b("action-wrapper"),children:[pe("div",{className:"".concat(ei.be("action-wrapper","action-item")),children:pe(ti,{content:pe("div",{className:ei.b("pop-actions"),children:[pe("div",{className:ei.b("pop-action-item"),onClick:function(t){m(t)},children:[pe("span",{className:ei.b("pop-action-item-icon"),children:pe(Ie,{})}),pe("span",{className:ei.b("pop-action-item-title"),children:"文件资料"})]}),null===(e=t.questionToolbarItems)||void 0===e?void 0:e.map((function(t){var e,n,i;return pe("div",{className:ei.b("pop-action-item"),onClick:function(e){_(e,t)},children:[pe("span",{className:ei.b("pop-action-item-icon"),children:"function"==typeof t.icon?t.icon():(null===(e=t.icon)||void 0===e?void 0:e.showIcon)&&pe(z,{children:null!==(n=t.icon)&&void 0!==n&&n.cssClass?pe("i",{className:t.icon.cssClass}):null!==(i=t.icon)&&void 0!==i&&i.imagePath?ct(t.icon.imagePath)?pe("div",{dangerouslySetInnerHTML:{__html:t.icon.imagePath}}):pe("img",{src:t.icon.imagePath}):null})}),pe("span",{className:ei.b("pop-action-item-title"),children:t.label})]},t.id)}))]}),position:"top-left",isOpen:i,onToggleOpen:r,children:pe(Le,{})})}),pe("div",{title:s.value?"语音输入中...":"语音输入",className:"".concat(ei.be("action-wrapper","action-item")),onClick:function(){l.current&&!s.value&&l.current.start()},children:s.value?pe(Te,{}):pe(Ee,{})}),t.controller.isLoading.value?pe("div",{title:"停止生成",className:"".concat(ei.be("action-wrapper","action-item")),onClick:v,children:pe(He,{})}):pe("div",{title:"发送消息",className:"".concat(ei.be("action-wrapper","action-item")),onClick:p,children:pe(_e,{className:"".concat(ei.is("disabled",d.value))})})]})]})]})},ri=new tt("chat-topic-item"),oi=function(t){var e=t.controller,n=t.topic,i=t.onClick,r=t.onAction,o=de((function(){var t;return(null===(t=e.activedTopic.value)||void 0===t?void 0:t.id)===n.id})),c=a(Nt(!1),2),s=c[0],l=c[1];return pe("div",{className:"".concat(ri.b()," ").concat(ri.is("active",o.value)),onClick:i.bind(void 0),children:[pe("div",{className:ri.b("caption"),title:n.caption,children:n.caption}),pe("div",{className:ri.b("icon"),children:[pe("span",{className:ri.be("icon","item"),title:"跳转主视图",onClick:function(t){t.stopPropagation(),r("LINK",t)}.bind(void 0),children:pe(Ae,{className:ri.b("link-icon")})}),o.value?null:pe(ti,{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:pe("span",{className:ri.be("icon","item"),title:"更多",children:pe(Se,{className:ri.b("more-icon")})})})]})]})},ai=new tt("chat-topics"),ci=function(t){var e=t.controller.topics;return pe("div",{className:ai.b(),children:e.value.map((function(e){return pe(oi,{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)}))})},si=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}),li=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:"handleFullScreenChange",value:function(){this.setState({isFullScreen:null!==document.fullscreenElement})}},{key:"componentDidMount",value:function(){this.handleFullScreenChange=this.handleFullScreenChange.bind(this);var t=localStorage.getItem(Vn.MINIMIZE_STYLY_CHCHE);if(t){var e=JSON.parse(t);this.isWithinBounds(e)&&(this.minimizeData=e)}var n=localStorage.getItem(Vn.STYLE_CACHE);if(n){var i=JSON.parse(n);this.isWithinBounds(i)&&(this.data=i)}this.setStyle(),this.registerDragDialog(),this.registerDragDialogBorder(),this.registerDragMinmize(),document.addEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("fullscreenchange",this.handleFullScreenChange),localStorage.setItem(Vn.STYLE_CACHE,JSON.stringify(this.data)),localStorage.setItem(Vn.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.props.fullscreen(!0))}},{key:"closeFullScreen",value:function(){var t;this.state.isFullScreen&&(null===(t=document)||void 0===t||t.exitFullscreen(),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 pe(si.Provider,{value:this.containerContext,children:pe("div",{className:"".concat(this.ns.b()),children:[pe("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:[pe("div",{ref:this.dragHandle,className:this.ns.b("header"),children:[pe("div",{className:this.ns.b("header-caption"),children:this.props.caption||"AI助手"}),pe("div",{className:this.ns.b("header-action-wrapper"),children:[pe("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:pe(xe,{})}),this.state.isFullScreen?pe("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:pe(ke,{})}):pe("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:pe(we,{})}),pe("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:pe(ve,{})})]})]}),"TOPIC"===this.props.mode?pe("div",{className:"".concat(this.ns.b("main")),children:[pe("div",{className:"".concat(this.ns.be("main","left")),children:pe(ci,{controller:this.props.aiTopic})}),pe("div",{className:"".concat(this.ns.be("main","right")),children:[pe("div",{className:this.ns.b("content"),children:pe(un,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),pe(cn,{data:this.props.aiTopic.activedTopic.value,type:"footer",className:this.ns.e("toolbar"),controller:this.props.aiChat,items:this.props.footerToolbarItems}),pe("div",{className:this.ns.b("footer"),children:pe(ii,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}):pe("div",{className:"".concat(this.ns.be("main","default")),children:[pe("div",{className:this.ns.b("content"),children:pe(un,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),pe(cn,{data:this.props.aiTopic.activedTopic.value,type:"footer",className:this.ns.e("toolbar"),controller:this.props.aiChat,items:this.props.footerToolbarItems}),pe("div",{className:this.ns.b("footer"),children:pe(ii,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}),pe("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:pe(Ce,{})})]})})}}]),o}(L);e("ChatContainer",li)}}}))}(); diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.14/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.14/polyfills.legacy.js new file mode 100644 index 0000000000000000000000000000000000000000..c8c7654431885af1a2dc12a9fe73b198407bf314 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.14/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+""},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+""},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="\t\n\v\f\r                 \u2028\u2029\ufeff",JE=L,qE=Ao,KE=VE,YE=S("".replace),XE=RegExp("^["+KE+"]+"),QE=RegExp("(^|[^"+KE+"])["+KE+"]+$"),ZE=function(t){return function(r){var e=qE(JE(r));return 1&t&&(e=YE(e,XE,"")),2&t&&(e=YE(e,QE,"$1")),e}},tx={start:ZE(1),end:ZE(2),trim:ZE(3)},rx=te.PROPER,ex=o,nx=VE,ox=tx.trim;ro({target:"String",proto:!0,forced:function(t){return ex((function(){return!!nx[t]()||"​…᠎"!=="​…᠎"[t]()||rx&&nx[t].name!==t}))}("trim")},{trim:function(){return ox(this)}});var ix=Dt,ux=hn,ax=co,cx=mo,fx=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=ix(this),e=ux(r),n=arguments.length;if(n){fx(e+n);for(var o=e;o--;){var i=o+n;o in r?r[i]=r[o]:cx(r,i)}for(var u=0;uo;)for(var a,c=mx(arguments[o++]),f=i?Sx(px(c),i(c)):px(c),s=f.length,l=0;s>l;)a=f[l++],sx&&!hx(u,c,a)||(e[a]=c[a]);return e}:bx,xx=Ex;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==xx},{assign:xx});var Ox={exports:{}},jx=o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Ix=o,Tx=B,Rx=j,Px=jx,Ax=Object.isExtensible,kx=Ix((function(){Ax(1)}))||Px?function(t){return!!Tx(t)&&((!Px||"ArrayBuffer"!==Rx(t))&&(!Ax||Ax(t)))}:Ax,Cx=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),Nx=ro,Lx=S,Fx=pe,Mx=B,_x=Gt,Dx=Rr.f,Ux=Qe,$x=mw,Gx=kx,zx=Cx,Wx=!1,Bx=Vt("meta"),Hx=0,Vx=function(t){Dx(t,Bx,{value:{objectID:"O"+Hx++,weakData:{}}})},Jx=Ox.exports={enable:function(){Jx.enable=function(){},Wx=!0;var t=Ux.f,r=Lx([].splice),e={};e[Bx]=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!!c(this,t)}}),hO(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)}}),wO&&lO(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=xO(r),i=xO(n);yO(t,r,(function(t,r){EO(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)?mO("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,mO(void 0,!0))}),e?"entries":"values",!e,!0),bO(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=Yx[t],a=u&&u.prototype,c=u,f={},s=function(t){var r=Xx(a[t]);Zx(a,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!iO(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(Qx(t,!nO(u)||!(o||a.forEach&&!uO((function(){(new u).entries().next()})))))c=e.getConstructor(r,t,n,i),tO.enable();else if(Qx(t,!0)){var l=new c,h=l[i](o?{}:-0,1)!==l,v=uO((function(){l.has(1)})),p=aO((function(t){new u(t)})),d=!o&&uO((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((c=r((function(t,r){eO(t,a);var e=fO(new u,t,c);return oO(r)||rO(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,Kx({global:!0,constructor:!0,forced:c!==u},f),cO(c,t),o||e.setStrong(c,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),OO);var jO,IO=ro,TO=Fu,RO=n.f,PO=sn,AO=Ao,kO=_E,CO=L,NO=UE,LO=TO("".startsWith),FO=TO("".slice),MO=Math.min,_O=NO("startsWith");IO({target:"String",proto:!0,forced:!!(_O||(jO=RO(String.prototype,"startsWith"),!jO||jO.writable))&&!_O},{startsWith:function(t){var r=AO(CO(this));kO(t);var e=PO(MO(arguments.length>1?arguments[1]:void 0,r.length)),n=AO(t);return LO?LO(r,n,e):FO(r,e,e+n.length)===n}});var DO=ro,UO=Ms.findIndex,$O=sm,GO="findIndex",zO=!0;GO in[]&&Array(1)[GO]((function(){zO=!1})),DO({target:"Array",proto:!0,forced:zO},{findIndex:function(t){return UO(this,t,arguments.length>1?arguments[1]:void 0)}}),$O(GO);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=tx.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{width:calc(100% - 12px);height:calc(100% - 12px);margin:6px;overflow:hidden auto}.ibiz-chat-messages::-webkit-scrollbar{width:6px}.ibiz-chat-messages::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-wrapper{max-height:90px;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:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-input__textarea::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);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-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:32px;padding:0 8px;margin-top:4px;font-size:var(--ibiz-font-size-regular);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-chart-minimize{width:56px;height:56px;z-index:99999;display:flex;cursor:pointer;border-radius:50%;position:absolute;align-items:center;justify-content:center;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color);border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chart-minimize:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chart-minimize svg{fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chart-minimize.is-hidden{display:none}.ibiz-chart-minimize__output{font-size:12px}.ibiz-chart-minimize__output--popover{position:absolute;bottom:60px;left:50%;transform:translate(-50%);background-color:var(--ibiz-ai-chat-background-color);color:var(--ibiz-ai-chat-color);border:1px solid var(--ibiz-ai-chat-border-color);border-radius:8px;padding:8px;max-width:200px;box-shadow:0 2px 8px rgba(0,0,0,.1);display:block}.ibiz-chart-minimize__output--popover .typewriter{direction:rtl;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;animation:typing 3s steps(40,end)}@keyframes blink{0%,to{opacity:0}50%{opacity:1}}@keyframes typing{0%{width:0}to{width:100%}}@keyframes blink-caret{0%,to{border-color:transparent}50%{border-color:var(--ibiz-ai-chat-color)}}.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-ai-chat-scroll-bar-width: 8px;--ibiz-ai-chat-scroll-bar-height: 8px;--ibiz-ai-chat-scroll-bar-radius: 4px}.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__toolbar{display:flex;justify-content:center;margin:8px}.ibiz-chat-container *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-container *::-webkit-scrollbar-thumb{border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.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-toolbar__default.is-has-materials{bottom:180px}.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.15/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.15/index.system.min.js new file mode 100644 index 0000000000000000000000000000000000000000..46cca44c1084f23a8b3b9b30f8028f664d1d5485 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.15/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:I(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 L(t){return t.children}function I(t,e){this.props=t,this.context=e}function z(t,e){if(null==e)return t.__?z(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,T=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=W(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>T-_?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=z(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=/]*>[\s\S]*?<\/svg>/;function ct(t){return at.test(t)}var st=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(st,"inputElement",null);var lt=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(lt,"version",1),g(lt,"db",null),g(lt,"lastLink",void 0);var ut=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}(),ht=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(Rn){throw new Error("XML 解析错误: ".concat(Rn.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}();function dt(t){return t.x>=0&&t.x<=1&&t.y>=0&&t.y<=1}function ft(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))}}var pt,vt,mt,_t,gt=0,yt=[],bt=[],wt=l.__b,kt=l.__r,xt=l.diffed,Ct=l.__c,Nt=l.unmount;function Tt(t,e){l.__h&&l.__h(vt,t,gt||e),gt=0;var n=vt.__H||(vt.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:bt}),n.__[t]}function Et(t){return gt=1,function(t,e,n){var i=Tt(pt++,2);if(i.t=t,!i.__c&&(i.__=[n?n(e):jt(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=vt,!vt.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))};vt.u=!0;var o=vt.shouldComponentUpdate,a=vt.componentWillUpdate;vt.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)},vt.shouldComponentUpdate=r}return i.__N||i.__}(jt,t)}function St(t,e){var n=Tt(pt++,3);!l.__s&&Bt(n.__H,e)&&(n.__=t,n.i=e,vt.__H.__h.push(n))}function At(t){return gt=5,Mt((function(){return{current:t}}),[])}function Mt(t,e){var n=Tt(pt++,7);return Bt(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function Ot(t,e){return gt=8,Mt((function(){return t}),e)}function Lt(t){var e=vt.context[t.__c],n=Tt(pt++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(vt)),e.props.value):t.__}function It(){for(var t;t=yt.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Pt),t.__H.__h.forEach(Ht),t.__H.__h=[]}catch(Vn){t.__H.__h=[],l.__e(Vn,t.__v)}}l.__b=function(t){vt=null,wt&&wt(t)},l.__r=function(t){kt&&kt(t),pt=0;var e=(vt=t.__c).__H;e&&(mt===vt?(e.__h=[],vt.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=bt,t.__N=t.i=void 0}))):(e.__h.forEach(Pt),e.__h.forEach(Ht),e.__h=[],pt=0)),mt=vt},l.diffed=function(t){xt&&xt(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==yt.push(e)&&_t===l.requestAnimationFrame||((_t=l.requestAnimationFrame)||Dt)(It)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==bt&&(t.__=t.__V),t.i=void 0,t.__V=bt}))),mt=vt=null},l.__c=function(t,e){e.some((function(t){try{t.__h.forEach(Pt),t.__h=t.__h.filter((function(t){return!t.__||Ht(t)}))}catch(Gt){e.some((function(t){t.__h&&(t.__h=[])})),e=[],l.__e(Gt,t.__v)}})),Ct&&Ct(t,e)},l.unmount=function(t){Nt&&Nt(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{Pt(t)}catch(t){e=t}})),n.__H=void 0,e&&l.__e(e,n.__v))};var zt="function"==typeof requestAnimationFrame;function Dt(t){var e,n=function(){clearTimeout(i),zt&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);zt&&(e=requestAnimationFrame(n))}function Pt(t){var e=vt,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),vt=e}function Ht(t){var e=vt;t.__c=t.__(),vt=e}function Bt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function jt(t,e){return"function"==typeof e?e(t):e}function Ft(){throw new Error("Cycle detected")}var Rt=Symbol.for("preact-signals");function Wt(){if($t>1)$t--;else{for(var t,e=!1;void 0!==Yt;){var n=Yt;for(Yt=void 0,Xt++;void 0!==n;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Qt(n))try{n.c()}catch(n){e||(t=n,e=!0)}n=i}}if(Xt=0,$t--,e)throw t}}var Ut,Vt,qt=void 0,Yt=void 0,$t=0,Xt=0,Gt=0;function Jt(t){if(void 0!==qt){var e=t.n;if(void 0===e||e.t!==qt)return e={i:0,S:t,p:qt.s,n:void 0,t:qt,e:void 0,x:void 0,r:e},void 0!==qt.s&&(qt.s.n=e),qt.s=e,t.n=e,32&qt.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=qt.s,e.n=void 0,qt.s.n=e,qt.s=e),e}}function Zt(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}function Kt(t){return new Zt(t)}function Qt(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 te(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 ee(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 ne(t){Zt.call(this,void 0),this.x=t,this.s=void 0,this.g=Gt-1,this.f=4}function ie(t){return new ne(t)}function re(t){var e=t.u;if(t.u=void 0,"function"==typeof e){$t++;var n=qt;qt=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,oe(t),e}finally{qt=n,Wt()}}}function oe(t){for(var e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,re(t)}function ae(t){if(qt!==this)throw new Error("Out-of-order effect");ee(this),qt=t,this.f&=-2,8&this.f&&oe(this),Wt()}function ce(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function se(t){var e=new ce(t);try{e.c()}catch(t){throw e.d(),t}return e.d.bind(e)}function le(t,e){l[t]=e.bind(null,l[t]||function(){})}function ue(t){Vt&&Vt(),Vt=t&&t.S()}function he(t){var e=this,n=t.data,i=fe(n);i.value=n;var r=Mt((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()},ie((function(){var t=i.value.value;return 0===t?0:!0===t?"":t||""}))}),[]);return r.value}function de(t,e,n,i){var r=e in t&&void 0===t.ownerSVGElement,o=Kt(n);return{o:function(t,e){o.value=t,i=e},d:se((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 fe(t){return Mt((function(){return Kt(t)}),[])}function pe(t){var e=At(t);return e.current=t,Ut.__$f|=4,Mt((function(){return ie((function(){return e.current()}))}),[])}Zt.prototype.brand=Rt,Zt.prototype.h=function(){return!0},Zt.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)},Zt.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)}},Zt.prototype.subscribe=function(t){var e=this;return se((function(){var n=e.value,i=32&this.f;this.f&=-33;try{t(n)}finally{this.f|=i}}))},Zt.prototype.valueOf=function(){return this.value},Zt.prototype.toString=function(){return this.value+""},Zt.prototype.toJSON=function(){return this.value},Zt.prototype.peek=function(){return this.v},Object.defineProperty(Zt.prototype,"value",{get:function(){var t=Jt(this);return void 0!==t&&(t.i=this.i),this.v},set:function(t){if(qt instanceof ne&&function(){throw new Error("Computed cannot have side-effects")}(),t!==this.v){Xt>100&&Ft(),this.v=t,this.i++,Gt++,$t++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{Wt()}}}}),(ne.prototype=new Zt).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Gt)return!0;if(this.g=Gt,this.f|=1,this.i>0&&!Qt(this))return this.f&=-2,!0;var t=qt;try{te(this),qt=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 qt=t,ee(this),this.f&=-2,!0},ne.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)}Zt.prototype.S.call(this,t)},ne.prototype.U=function(t){if(void 0!==this.t&&(Zt.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)}},ne.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;void 0!==t;t=t.x)t.t.N()}},ne.prototype.peek=function(){if(this.h()||Ft(),16&this.f)throw this.v;return this.v},Object.defineProperty(ne.prototype,"value",{get:function(){1&this.f&&Ft();var t=Jt(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),ce.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()}},ce.prototype.S=function(){1&this.f&&Ft(),this.f|=1,this.f&=-9,re(this),te(this),$t++;var t=qt;return qt=this,ae.bind(this,t)},ce.prototype.N=function(){2&this.f||(this.f|=2,this.o=Yt,Yt=this)},ce.prototype.d=function(){this.f|=8,1&this.f||oe(this)},he.displayName="_st",Object.defineProperties(Zt.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:he},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),le("__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 Zt&&(n||(e.__np=n={}),n[r]=o,i[r]=o.peek())}}t(e)})),le("__r",(function(t,e){ue();var n,i=e.__c;i&&(i.__$f&=-2,void 0===(n=i.__$u)&&(i.__$u=n=function(t){var e;return se((function(){e=this})),e.c=function(){i.__$f|=1,i.setState({})},e}())),Ut=i,ue(n),t(e)})),le("__e",(function(t,e,n,i){ue(),Ut=void 0,t(e,n,i)})),le("diffed",(function(t,e){var n;if(ue(),Ut=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=de(n,s,u,r),o[s]=l):l.o(u,r)}}}t(e)})),le("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)})),le("__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 ve=0;function me(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:--ve,__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 _e=function(){return me("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:me("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"})})},ge=function(){return me("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:me("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"})})},ye=function(t){return me("svg",{viewBox:"0 0 1024 1024",id:"send",className:t.className,version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:me("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"})})},be=function(){return me("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:me("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"})})},we=function(){return me("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:me("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"})})},ke=function(){return me("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:me("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"})})},xe=function(){return me("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:me("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"})})},Ce=function(){return me("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:me("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"})})},Ne=function(){return me("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:me("path",{d:"M960 544H64a32 32 0 1 1 0-64h896a32 32 0 1 1 0 64"})})},Te=function(){return me("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[me("path",{d:"M481.0752 263.3728l50.9952 1.024 1.8432-105.8816-50.9952-0.8192z"}),me("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"}),me("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"}),me("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"}),me("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"}),me("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"})]})},Ee=function(){return me("svg",{viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[me("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"}),me("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"}),me("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"})]})},Se=function(){return me("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:me("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"})})},Ae=function(){var t=1e3,e=140,n=250,i=.8;return me("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 me("rect",{fill:"currentColor",rx:70,ry:70,height:n,width:e,x:286.66666666666663*r,y:375,children:[me("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"}),me("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)}))})},Me=function(t){return me("svg",{className:t.className,onClick:t.onClick,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:me("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"})})},Oe=function(t){return me("svg",{className:t.className,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:me("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"})})},Le=function(t){return me("svg",{xmlns:"http://www.w3.org/2000/svg",className:t.className,viewBox:"0 0 512 512",children:me("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 184l144 144 144-144"})})},Ie=function(t){return me("svg",{xmlns:"http://www.w3.org/2000/svg",className:"".concat(t.className," icon"),viewBox:"0 0 512 512",children:me("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"})})},ze=function(t){return me("svg",{className:t.className,width:"16",height:"16",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",children:me("circle",{cx:"25",cy:"25",r:"20",stroke:"currentColor",strokeWidth:"5",fill:"none",strokeDasharray:"31.415, 31.415",strokeLinecap:"round",children:me("animateTransform",{attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"1s",repeatCount:"indefinite"})})})},De=function(){return me("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:me("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"})})},Pe=function(){return me("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[me("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"}),me("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"})]})},He=function(){return me("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:me("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"})})},Be=function(){return me("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:me("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"})})},je=function(t){return me("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:[me("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"}),me("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"})]})},Fe=function(t){return me("svg",{xmlns:"http://www.w3.org/2000/svg",className:t.className,viewBox:"0 0 512 512",children:me("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})})},Re=function(t){var e=t.items,n=fe([]),i=new tt("chat-thought-chain"),r=fe([]);St((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:me("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 me("div",{className:"".concat(i.e("item")," ").concat(i.is("collapsed",r)),children:[me("div",{className:i.e("item-icon"),children:t.icon||me("span",{children:e})}),me("div",{className:i.e("item-content"),children:[me("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,me(Le,{className:i.e("icon")})]}),me("div",{className:i.e("item-description"),children:t.description})]})]},e)}}))})},We=new tt("markdown-message"),Ue=function(t){var e=t.message,n=t.size,i=fe(ot()),r=fe(null),o=Mt((function(){return 20===e.state&&!0!==e.completed}),[e.state,e.completed]),a=Mt((function(){return 20===e.state&&!0===e.completed}),[e.state,e.completed]),c=fe({title:"",description:"",icon:me(ze,{})}),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 St((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=me(Ie,{}),c.value.title="思考完成"):!0===e.completed?(c.value.icon=me(Ie,{}),c.value.title="思考已停止"):(c.value.icon=me(ze,{}),c.value.title="思考中..."),o&&(c.value.description=o),a&&r.value.setMarkdown(a)}else r.value.setMarkdown(e.content)}),[e,n]),St((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?me(Ie,{}):me(ze,{})},u&&(t=u)}else t=e.content;r.value=new s({id:i,value:t||"",editor:{defaultModel:"previewOnly"}})}),[]),me("div",{className:"".concat(We.b()," ").concat(We.is("loading",o)),children:[me("div",{className:We.b("header"),children:[me("div",{className:We.be("header","caption"),children:"AI "}),t.children,a?me("div",{className:We.be("header","timeout"),children:"请求超时"}):null]}),me("div",{className:"".concat(We.b("content")," pre-wrap-container"),children:[me(Re,{items:[c.value]}),me("div",{id:i})]}),me("div",{className:We.b("footer")})]})},Ve=new tt("ossfile-material"),qe=function(t){var e=pe((function(){return t.material.data.name})),n=pe((function(){return t.material.metadata.size})),i=pe((function(){var e=t.material.metadata.state;return"successed"===e?"上传成功":"uploading"===e?"上传中":"failed"===e?"上传失败":"未知状态"})),r=pe((function(){switch(t.material.metadata.state){case"successed":return"#1890ff";case"uploading":return"#52c41a";default:return"#ff4d4f"}}));return me("div",{className:Ve.b(),children:[me("div",{className:Ve.b("left"),children:me(Pe,{})}),me("div",{className:Ve.b("right"),children:[me("div",{className:Ve.e("name"),title:e,children:e}),me("div",{className:Ve.e("metadata"),children:[me("div",{children:[n,"B"]}),me("div",{style:{color:r.value},children:i})]})]})]})},Ye=new tt("common-material"),$e=function(t){var e,n,i,r,o=null===(e=t.controller.opts.questionToolbarItems)||void 0===e?void 0:e.find((function(e){return e.id===t.material.metadata.actionId})),a=pe((function(){return t.material.metadata.name}));return me("div",{className:Ye.b(),children:[me("div",{className:Ye.b("left"),children:o&&o.icon?"function"==typeof o.icon?o.icon():(null===(n=o.icon)||void 0===n?void 0:n.showIcon)&&me(L,{children:null!==(i=o.icon)&&void 0!==i&&i.cssClass?me("i",{className:o.icon.cssClass}):null!==(r=o.icon)&&void 0!==r&&r.imagePath?ct(o.icon.imagePath)?me("div",{dangerouslySetInnerHTML:{__html:o.icon.imagePath}}):me("img",{src:o.icon.imagePath}):null}):me(Be,{})}),me("div",{className:Ye.b("right"),children:[me("div",{className:Ye.e("name"),title:a,children:a}),me("div",{className:Ye.e("metadata"),children:me("div",{children:(null==o?void 0:o.label)||"素材资源"})})]})]})},Xe=new tt("chat-input-material-item"),Ge=function(t){var e=t.material,n=null;if("ossfile"===e.type)n=qe;else n=$e;return me("div",{className:"".concat(Xe.b()," ").concat(Xe.is("disabled",t.disabled)),children:[me("div",{className:Xe.e("icon"),onClick:function(){t.controller.deleteMaterial(e)},children:me(He,{})}),M(n,{material:e,controller:t.controller})]})},Je=new tt("user-message-question"),Ze=function(t){var e=pe((function(){return t.message.content})),n=pe((function(){return ht.parseMixedContent(e.value)}));return me("div",{className:Je.b(),children:[me("div",{className:Je.e("user-header"),children:[t.children,me("div",{className:Je.e("user"),children:"我"})]}),me("div",{className:Je.e("content"),children:me("div",{dir:"auto",className:Je.em("content","body"),children:[me("p",{dir:"auto",className:Je.em("content","material"),children:n.value.hasResources&&n.value.resources.map((function(e){return me(Ge,{material:e,disabled:!0,controller:t.controller},e.id)}))}),me("p",{dir:"auto",className:"pre-wrap-container",children:n.value.remainingText})]})})]})},Ke=new tt("error-message"),Qe=function(t){var e=pe((function(){return t.message.content}));return me("div",{className:Ke.b(),children:[me("div",{className:Ke.b("header"),children:[me("div",{className:Ke.be("header","caption"),children:"AI "}),t.children]}),me("div",{className:"".concat(Ke.e("content")," pre-wrap-container"),children:me("span",{children:e})})]})},tn=new tt("unknown-message"),en=function(t){return me("div",{className:tn.b(),children:me("span",{className:"".concat(tn.e("content")," pre-wrap-container"),children:["暂未支持的消息类型: ",t.message.type]})})},nn=new tt("chat-message-item"),rn=function(t){var e=t.message,n=t.size,i=null;switch(e.type){case"DEFAULT":i="ASSISTANT"===e.role?Ue:Ze;break;case"ERROR":i=Qe;break;default:i=en}return me("div",{className:nn.b(),children:M(i,{size:n,message:e,controller:t.controller,children:t.children})})},on=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}(),an=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}(),cn=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}(),sn=new tt("chat-toolbar"),ln=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:function(){return me(Ee,{})},onClick:function(){e.newDialogue()}}],d=pe((function(){return t.controller.materials.value.length>0})),f=[{label:"刷新",title:"刷新",icon:function(){return me(we,{})},onClick:function(){e.refreshMessage(r)}},{label:"删除",title:"删除",icon:function(){return me(be,{})},onClick:function(){e.deleteMessage(r)}},{label:"复制",title:"复制",icon:function(){return me(ke,{})},onClick:function(){e.copyMessage(r)}}];Lt(di).enableBackFill&&f.unshift.apply(f,[{label:"回填",title:"回填",icon:function(){return me(ge,{})},onClick:function(){e.backfill(r)}}]);var p=[{label:"刷新",title:"刷新",icon:function(){return me(we,{})},onClick:function(){e.refreshMessage(r,!0)}}];if("content"===a)switch(l="circle",r.type){case"DEFAULT":s="ASSISTANT"===r.role?[].concat(f,o(i)):[].concat(p);break;case"ERROR":s=[].concat(f,o(i))}else s=[].concat(h,o(i));var v=function(t){return"function"==typeof t.disabled?t.disabled(r):!0===t.disabled},m=Mt((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 me("div",{className:"".concat(sn.b()," ").concat(sn.is("has-materials",d.value)," ").concat(sn.e(l)," ").concat(c||""),children:s.map((function(n,i){var o,a,s;if(!function(t){return"function"==typeof t.hidden?t.hidden(r):!0===t.hidden}(n))return me("div",{className:"".concat(sn.e("item")," ").concat(sn.is("disabled",v(n)||m)," ").concat(c||""),title:n.title,onClick:function(i){return function(n,i){if(!v(i)){var o=u({},r);if(r instanceof on&&(Object.assign(o,{topic:e.topic}),o.msg.realcontent=r.realcontent),i.onClick&&"function"==typeof i.onClick)i.onClick(n,i,e.context,e.params,o);else{var a=t.controller.opts.extendToolbarClick;a&&"function"==typeof a&&a(n,i,e.context,e.params,o)}}}(i,n)},children:[me("div",{className:"".concat(sn.em("item","icon")),children:"function"==typeof n.icon?n.icon():(null===(o=n.icon)||void 0===o?void 0:o.showIcon)&&me(L,{children:null!==(a=n.icon)&&void 0!==a&&a.cssClass?me("i",{className:n.icon.cssClass}):null!==(s=n.icon)&&void 0!==s&&s.imagePath?ct(n.icon.imagePath)?me("div",{dangerouslySetInnerHTML:{__html:n.icon.imagePath}}):me("img",{src:n.icon.imagePath}):null})}),me("div",{className:"".concat(sn.em("item","label")),children:n.label})]},i)}))})};var un=function(t){var e,n,i,r=fe(!1),o=fe({}),a=new tt("chat-back-bottom"),c=fe(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;a3;)n.pop()();if(n[1]>>1,1),e.i.removeChild(t)}}),K(M(Cn,{context:e.context},t.__v),e.l)}function Tn(t,e){var n=M(Nn,{__v:t,i:e});return n.containerInfo=e,n}(kn.prototype=new I).__a=function(t){var e=this,n=wn(e.__v),i=e.o.get(t);return i[0]++,function(r){var o=function(){e.props.revealOrder?(i.push(r),xn(e,t,i)):r()};n?n(o):o()}},kn.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},kn.prototype.componentDidUpdate=kn.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){xn(t,n,e)}))};var En="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Sn=/^(?: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]/,An=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Mn=/[A-Z0-9]/g,On="undefined"!=typeof document,Ln=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 In=l.event;function zn(){}function Dn(){return this.cancelBubble}function Pn(){return this.defaultPrevented}l.event=function(t){return In&&(t=In(t)),t.persist=zn,t.isPropagationStopped=Dn,t.isDefaultPrevented=Pn,t.nativeEvent=t};var Hn={enumerable:!1,configurable:!0,get:function(){return this.class}},Bn=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||On&&"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||Ln(e.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":An.test(r)?r=a:-1===n.indexOf("-")&&Sn.test(r)?r=r.replace(Mn,"-$&").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",Hn)):(e.className&&!e.class||e.class&&e.className)&&(i.class=i.className=e.className),t.props=i}(t),t.$$typeof=En,Bn&&Bn(t)};var jn=l.__r;l.__r=function(t){jn&&jn(t),t.__c};var Fn=l.diffed;l.diffed=function(t){Fn&&Fn(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 Rn=new Map;function Wn(t){var e=Rn.get(t);e&&e.destroy()}function Un(t){var e=Rn.get(t);e&&e.update()}var Vn=null;"undefined"==typeof window?((Vn=function(t){return t}).destroy=function(t){return t},Vn.update=function(t){return t}):((Vn=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&&!Rn.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]})),Rn.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",Rn.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],Wn),t},Vn.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],Un),t});var qn=Vn,Yn=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}(Yn||{}),$n=function(){function t(e){v(this,t),g(this,"messages",Kt([])),g(this,"materials",Kt([])),g(this,"input",Kt("")),g(this,"isLoading",Kt(!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,lt.getData(Yn.DATA_BASE_NAME,Yn.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,lt.updateData(Yn.DATA_BASE_NAME,Yn.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 on(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 on(t),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new on(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 on(t),this.messages.value=o(this.messages.value)}else this.messages.value=[].concat(o(this.messages.value),[new on(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=ht.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;st.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.topicId){t.next=3;break}return t.next=3,lt.deleteData(Yn.DATA_BASE_NAME,Yn.DATA_TABLE_NAME,this.topicId);case 3:this.messages.value=[],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 cn(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 cn(e),this.materials.value=o(this.materials.value)):this.materials.value=[].concat(o(this.materials.value),[new cn(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}(),Xn=function(){function t(e){v(this,t),g(this,"topics",Kt([])),g(this,"activedTopic",Kt(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 an(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 an(e),-1!==n?this.topics.value.splice(n,1,new an(e)):this.topics.value=[].concat(o(this.topics.value),[new an(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,lt.deleteData(Yn.DATA_BASE_NAME,Yn.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}(),Gn=_((function t(e){v(this,t),this.aiChat=e})),Jn=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;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n||!n.onClick||"function"!=typeof n.onClick){t.next=6;break}return t.next=3,n.onClick(e,n,this.aiChat.context,this.aiChat.params);case 3:i=t.sent,t.next=14;break;case 6:if(!(r=this.aiChat.opts.extendToolbarClick)){t.next=13;break}return t.next=10,r(e,n,this.aiChat.context,this.aiChat.params,{});case 10:i=t.sent,t.next=14;break;case 13:console.error("未找到扩展工具栏点击事件");case 14:i&&i.data&&i.data.length>0&&(o=i.data[0],a={id:o.id,type:o.type,data:o.data||{},metadata:o.metadata||{}},n.id&&Object.assign(a.metadata,{actionId:n.id}),this.aiChat.addMaterial(a));case 15:case"end":return t.stop()}}),t,this)}))),function(t,e){return i.apply(this,arguments)})}]),o}(Gn),Zn=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 ut(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}(Gn),Kn=function(){function t(){v(this,t)}return _(t,null,[{key:"getMaterialHelper",value:function(t,e){return"ossfile"===t?new Zn(e):new Jn(e)}}]),t}(),Qn=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 Xn(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,lt.checkTableExists(Yn.DATA_BASE_NAME,Yn.DATA_TABLE_NAME);case 2:if(t.sent){t.next=6;break}return t.next=6,lt.createTable(Yn.DATA_BASE_NAME,Yn.DATA_TABLE_NAME,Yn.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 $n(o),this.aiTopicMap.set("".concat(null===(i=a)||void 0===i?void 0:i.id),c),K(M(fi,{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,extendToolbarClick:this.backupChatOptions.chatOptions.extendToolbarClick}),this.aiTopicMap.has("".concat(t.id))?e=this.aiTopicMap.get("".concat(t.id)):(e=new $n(c),this.aiTopicMap.set("".concat(t.id),e)),this.container)&&(K(null,this.container),K(M(fi,{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}(),ti=(e("chat",new Qn),new tt("chat-input-material")),ei=function(t){var e=t.controller.materials;return me("div",{className:ti.b(),children:e.value.map((function(e){return me(Ge,{material:e,disabled:!1,controller:t.controller},e.id)}))})},ni=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=Lt(di),f=a(Et(c||!1),2),p=f[0],v=f[1],m=At(null),_=At(null);St((function(){void 0!==c&&v(c)}),[c]),St((function(){return _.current||(_.current=document.createElement("div"),_.current.className=h.b("content-container"),document.body.appendChild(_.current)),function(){_.current&&document.body.removeChild(_.current)}}),[]),St((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 me("span",{className:"".concat(h.b("trigger-container")),children:[me("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&&Tn(me("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 me("div",{className:h.b("content-item"),onMouseDown:function(e){e.stopPropagation(),null==l||l(t.id,e)},children:[t.icon&&me("img",{className:h.b("content-item__icon"),src:t.icon,alt:t.caption}),me("div",{className:h.b("content-item__caption"),children:t.caption})]},t.id)})))}),_.current)]})},ii=new tt("chat-input"),ri=window.SpeechRecognition||window.webkitSpeechRecognition,oi=function(t){var e,n=a(Et(!1),2),i=n[0],r=n[1],o=At(null),c=t.controller.input,s=fe(!1),l=At();ri&&!l.current&&(l.current=new ri,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=Ot((function(t){c.value=t.target.value}),[c]),d=pe((function(){return c.value.length<=0}));St((function(){return o.current&&qn(o.current),function(){o.current&&qn.destroy(o.current)}}),[o]);var p=Ot(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=Ot(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=Kn.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=Kn.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 me("div",{className:ii.b("wrapper"),children:[me("div",{className:ii.b("material-wrapper"),children:me(ei,{controller:t.controller})}),me("div",{className:ii.b("main-wrapper"),children:[me("textarea",{className:ii.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}),me("div",{className:ii.b("action-wrapper"),children:[me("div",{className:"".concat(ii.be("action-wrapper","action-item")," ").concat(ii.is("disabled",t.controller.isLoading.value)),title:"上传资料",children:me(ni,{content:me("div",{className:ii.b("pop-actions"),children:[me("div",{className:ii.b("pop-action-item"),onClick:function(t){m(t)},children:[me("span",{className:ii.b("pop-action-item-icon"),children:me(Pe,{})}),me("span",{className:ii.b("pop-action-item-title"),children:"文件资料"})]}),null===(e=t.questionToolbarItems)||void 0===e?void 0:e.map((function(t){var e,n,i;return me("div",{className:ii.b("pop-action-item"),onClick:function(e){_(e,t)},children:[me("span",{className:ii.b("pop-action-item-icon"),children:"function"==typeof t.icon?t.icon():(null===(e=t.icon)||void 0===e?void 0:e.showIcon)&&me(L,{children:null!==(n=t.icon)&&void 0!==n&&n.cssClass?me("i",{className:t.icon.cssClass}):null!==(i=t.icon)&&void 0!==i&&i.imagePath?ct(t.icon.imagePath)?me("div",{dangerouslySetInnerHTML:{__html:t.icon.imagePath}}):me("img",{src:t.icon.imagePath}):null})}),me("span",{className:ii.b("pop-action-item-title"),children:t.label})]},t.id)}))]}),position:"top-left",isOpen:i,onToggleOpen:r,children:me(De,{})})}),me("div",{title:s.value?"语音输入中...":"语音输入",className:"".concat(ii.be("action-wrapper","action-item")," ").concat(ii.is("disabled",t.controller.isLoading.value)),onClick:function(){l.current&&!s.value&&l.current.start()},children:s.value?me(Ae,{}):me(Se,{})}),t.controller.isLoading.value?me("div",{title:"停止生成",className:"".concat(ii.be("action-wrapper","action-item")),onClick:v,children:me(je,{})}):me("div",{title:"发送消息",className:"".concat(ii.be("action-wrapper","action-item")," ").concat(ii.is("disabled",d.value)),onClick:p,children:me(ye,{})})]})]})]})},ai=new tt("chat-topic-item"),ci=function(t){var e=t.controller,n=t.topic,i=t.onClick,r=t.onAction,o=pe((function(){var t;return(null===(t=e.activedTopic.value)||void 0===t?void 0:t.id)===n.id})),c=a(Et(!1),2),s=c[0],l=c[1];return me("div",{className:"".concat(ai.b()," ").concat(ai.is("active",o.value)),onClick:i.bind(void 0),children:[me("div",{className:ai.b("caption"),title:n.caption,children:n.caption}),me("div",{className:ai.b("icon"),children:[me("span",{className:ai.be("icon","item"),title:"跳转主视图",onClick:function(t){t.stopPropagation(),r("LINK",t)}.bind(void 0),children:me(Oe,{className:ai.b("link-icon")})}),o.value?null:me(ni,{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:me("span",{className:ai.be("icon","item"),title:"更多",children:me(Me,{className:ai.b("more-icon")})})})]})]})},si=new tt("chat-topics"),li=function(t){var e=t.controller.topics;return me("div",{className:si.b(),children:e.value.map((function(e){return me(ci,{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)}))})},ui=new tt("chart-minimize"),hi=function(t){var e=At(null),n=a(Et(""),2),i=n[0],r=n[1],o=a(Et(0),2),c=o[0],s=o[1],l=At(!1),u=At({x:(window.innerWidth-86)/window.innerWidth,y:(window.innerHeight-86)/window.innerHeight}),h=pe((function(){return t.controller.messages.value[t.controller.messages.value.length-1]||void 0})),d=Mt((function(){var t,e;return 20===(null===(t=h.value)||void 0===t?void 0:t.state)&&!0!==(null===(e=h.value)||void 0===e?void 0:e.completed)}),[h.value]),f=Mt((function(){var t="";if(d)if(-1!==h.value.content.indexOf("")){var e=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}}(h.value.content);t=e.thoughtContent+e.answerContent}else{var n;t=null===(n=h.value)||void 0===n?void 0:n.content}else r(""),s(0);return t}),[h.value]),p=function(){Object.assign(e.current.style,{left:"".concat(100*u.current.x,"%"),top:"".concat(100*u.current.y,"%")}),localStorage.setItem(Yn.MINIMIZE_STYLY_CHCHE,JSON.stringify(u))};return St((function(){var t,n=localStorage.getItem(Yn.MINIMIZE_STYLY_CHCHE);if(n){var i=JSON.parse(n);dt(i)&&(u.current=i)}p(),(t=e.current)&&(t.onmousedown=function(e){document.body.style.userSelect="none";var n=e.clientX-t.offsetLeft,i=e.clientY-t.offsetTop,r=Date.now(),o=function(t){var e=56/window.innerWidth,r=56/window.innerHeight,o=ft(t.clientX-n,t.clientY-i,e,r),a=o.x,c=o.y;u.current={x:a,y:c},requestAnimationFrame((function(){p()}))};document.addEventListener("mousemove",o),document.addEventListener("mouseup",(function t(){var e=Date.now();l.current=e-r>300,document.body.style.userSelect="",document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",t)}))})}),[]),St((function(){if(c1-t?this.calcSideModeStyle(i1-e&&(this.data.window.y=1-a)),this.setStyle()}},{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){t.data.showMode="window";var r=ft(e.clientX-n,e.clientY-i,t.data.window.width,t.data.window.height),o=r.x,a=r.y;Object.assign(t.data.window,{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){if(!t.state.isFullScreen){var n="side"===t.data.showMode?t.data.side:t.data.window;n.x=e.rect.left/window.innerWidth,n.y=e.rect.top/window.innerHeight,n.width=e.rect.width/window.innerWidth,n.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:"handleFullScreenChange",value:function(){this.setState({isFullScreen:null!==document.fullscreenElement})}},{key:"componentDidMount",value:function(){this.handleFullScreenChange=this.handleFullScreenChange.bind(this);var t=localStorage.getItem(Yn.STYLE_CACHE);if(t){var e=JSON.parse(t);e.side&&dt(e.side)&&e.window&&dt(e.window)&&Object.assign(this.data,e)}this.setStyle(),this.registerDragDialog(),this.registerDragDialogBorder(),document.addEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"close",value:function(){this.props.close()}},{key:"fullScreen",value:function(){var t=this.containerRef.current;t&&(t.requestFullscreen(),this.props.fullscreen(!0))}},{key:"closeFullScreen",value:function(){var t;this.state.isFullScreen&&(null===(t=document)||void 0===t||t.exitFullscreen(),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.setState({isMinimize:!1}),this.props.minimize(!1)}},{key:"stopPropagation",value:function(t){t.stopPropagation()}},{key:"render",value:function(){return me(di.Provider,{value:this.containerContext,children:me("div",{className:"".concat(this.ns.b()),children:[me("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:[me("div",{ref:this.dragHandle,className:this.ns.b("header"),children:[me("div",{className:this.ns.b("header-caption"),children:this.props.caption||"AI助手"}),me("div",{className:this.ns.b("header-action-wrapper"),children:[me("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:me(Ne,{})}),this.state.isFullScreen?me("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:me(Ce,{})}):me("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:me(xe,{})}),me("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:me(_e,{})})]})]}),"TOPIC"===this.props.mode?me("div",{className:"".concat(this.ns.b("main")),children:[me("div",{className:"".concat(this.ns.be("main","left")),children:me(li,{controller:this.props.aiTopic})}),me("div",{className:"".concat(this.ns.be("main","right")),children:[me("div",{className:this.ns.b("content"),children:me(dn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),me(ln,{data:this.props.aiTopic.activedTopic.value,type:"footer",className:this.ns.e("toolbar"),controller:this.props.aiChat,items:this.props.footerToolbarItems}),me("div",{className:this.ns.b("footer"),children:me(oi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}):me("div",{className:"".concat(this.ns.be("main","default")),children:[me("div",{className:this.ns.b("content"),children:me(dn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),me(ln,{type:"footer",data:this.props.aiTopic.activedTopic.value,className:this.ns.e("toolbar"),controller:this.props.aiChat,items:this.props.footerToolbarItems}),me("div",{className:this.ns.b("footer"),children:me(oi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}),me(hi,{title:this.props.caption||"AI助手",controller:this.props.aiChat,isMinimize:this.state.isMinimize,onClick:this.exitMinimize.bind(this)})]})})}}]),o}(I);e("ChatContainer",fi)}}}))}(); diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.15/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.15/polyfills.legacy.js new file mode 100644 index 0000000000000000000000000000000000000000..c8c7654431885af1a2dc12a9fe73b198407bf314 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.15/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+""},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+""},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="\t\n\v\f\r                 \u2028\u2029\ufeff",JE=L,qE=Ao,KE=VE,YE=S("".replace),XE=RegExp("^["+KE+"]+"),QE=RegExp("(^|[^"+KE+"])["+KE+"]+$"),ZE=function(t){return function(r){var e=qE(JE(r));return 1&t&&(e=YE(e,XE,"")),2&t&&(e=YE(e,QE,"$1")),e}},tx={start:ZE(1),end:ZE(2),trim:ZE(3)},rx=te.PROPER,ex=o,nx=VE,ox=tx.trim;ro({target:"String",proto:!0,forced:function(t){return ex((function(){return!!nx[t]()||"​…᠎"!=="​…᠎"[t]()||rx&&nx[t].name!==t}))}("trim")},{trim:function(){return ox(this)}});var ix=Dt,ux=hn,ax=co,cx=mo,fx=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=ix(this),e=ux(r),n=arguments.length;if(n){fx(e+n);for(var o=e;o--;){var i=o+n;o in r?r[i]=r[o]:cx(r,i)}for(var u=0;uo;)for(var a,c=mx(arguments[o++]),f=i?Sx(px(c),i(c)):px(c),s=f.length,l=0;s>l;)a=f[l++],sx&&!hx(u,c,a)||(e[a]=c[a]);return e}:bx,xx=Ex;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==xx},{assign:xx});var Ox={exports:{}},jx=o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Ix=o,Tx=B,Rx=j,Px=jx,Ax=Object.isExtensible,kx=Ix((function(){Ax(1)}))||Px?function(t){return!!Tx(t)&&((!Px||"ArrayBuffer"!==Rx(t))&&(!Ax||Ax(t)))}:Ax,Cx=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),Nx=ro,Lx=S,Fx=pe,Mx=B,_x=Gt,Dx=Rr.f,Ux=Qe,$x=mw,Gx=kx,zx=Cx,Wx=!1,Bx=Vt("meta"),Hx=0,Vx=function(t){Dx(t,Bx,{value:{objectID:"O"+Hx++,weakData:{}}})},Jx=Ox.exports={enable:function(){Jx.enable=function(){},Wx=!0;var t=Ux.f,r=Lx([].splice),e={};e[Bx]=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!!c(this,t)}}),hO(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)}}),wO&&lO(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=xO(r),i=xO(n);yO(t,r,(function(t,r){EO(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)?mO("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,mO(void 0,!0))}),e?"entries":"values",!e,!0),bO(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=Yx[t],a=u&&u.prototype,c=u,f={},s=function(t){var r=Xx(a[t]);Zx(a,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!iO(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(Qx(t,!nO(u)||!(o||a.forEach&&!uO((function(){(new u).entries().next()})))))c=e.getConstructor(r,t,n,i),tO.enable();else if(Qx(t,!0)){var l=new c,h=l[i](o?{}:-0,1)!==l,v=uO((function(){l.has(1)})),p=aO((function(t){new u(t)})),d=!o&&uO((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((c=r((function(t,r){eO(t,a);var e=fO(new u,t,c);return oO(r)||rO(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,Kx({global:!0,constructor:!0,forced:c!==u},f),cO(c,t),o||e.setStrong(c,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),OO);var jO,IO=ro,TO=Fu,RO=n.f,PO=sn,AO=Ao,kO=_E,CO=L,NO=UE,LO=TO("".startsWith),FO=TO("".slice),MO=Math.min,_O=NO("startsWith");IO({target:"String",proto:!0,forced:!!(_O||(jO=RO(String.prototype,"startsWith"),!jO||jO.writable))&&!_O},{startsWith:function(t){var r=AO(CO(this));kO(t);var e=PO(MO(arguments.length>1?arguments[1]:void 0,r.length)),n=AO(t);return LO?LO(r,n,e):FO(r,e,e+n.length)===n}});var DO=ro,UO=Ms.findIndex,$O=sm,GO="findIndex",zO=!0;GO in[]&&Array(1)[GO]((function(){zO=!1})),DO({target:"Array",proto:!0,forced:zO},{findIndex:function(t){return UO(this,t,arguments.length>1?arguments[1]:void 0)}}),$O(GO);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=tx.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)}.ibiz-markdown-message-footer{padding:10px 0}@keyframes circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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-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%;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:10px 16px;margin:0;font-size:14px;line-height:1.5;color:var(--color-fg-default);word-wrap:break-word;background:#e7f8ff;text-size-adjust:100%;background-color:var(--ibiz-ai-chat-background-color-light);border-radius:var(--ibiz-ai-chat-border-radius)}.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--material{gap:8px;display:flex;align-items:center;flex-flow:row-reverse wrap;margin-bottom:8px}.ibiz-user-message-question__content .cherry{min-height:0px;border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-user-message-question__content .cherry-markdown p{margin:0}.ibiz-user-message-question__content .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-user-message-question__content .cherry-previewer{padding:0;border:0;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color-light)}.ibiz-user-message-question__content .cherry-previewer figure{max-width:1200px}.ibiz-user-message-question__content .cherry-previewer figure>svg{width:100%;min-height:100px}.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock]{position:relative!important;display:flex;padding-top:24px}.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock] .cherry-edit-code-block,.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock] .cherry-copy-code-block{position:absolute;top:0}.ibiz-user-message-question__content .anchor{display:none!important}.ibiz-user-message-question__user-header{width:100%;height:32px;display:flex;margin-bottom:8px;align-items:center;justify-content:end}.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:10px 16px;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{display:flex;padding:6px 10px;justify-content:end}.ibiz-unknown-message__content{padding:10px 16px;color:#000;width:max-content;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;flex-wrap:wrap;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{width:calc(100% - 12px);height:calc(100% - 12px);margin:6px;overflow:hidden auto}.ibiz-chat-messages::-webkit-scrollbar{width:6px}.ibiz-chat-messages::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-wrapper{max-height:72px;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:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-input__textarea::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);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-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{gap:4px;padding:4px;display:flex;min-width:120px;border-radius:8px;flex-direction:column;background-color:var(--ibiz-color-bg-3);border:1px solid var(--ibiz-color-border)}.ibiz-pop__item{display:flex;padding:0 8px;cursor:pointer;line-height:32px;border-radius:6px;align-items:center}.ibiz-pop__item:hover{background-color:var(--ibiz-color-primary-hover)}.ibiz-pop__item--caption{min-width:0;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-pop__item svg{width:16px;height:16px;flex-shrink:0;margin-right:8px;fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-topic-item{height:38px;display:flex;padding:0 8px;cursor:pointer;border-radius:12px;position:relative;align-items:center;font-size:var(--ibiz-font-size-regular)}.ibiz-chat-topic-item:hover:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item:hover:not(.is-edit) .ibiz-chat-topic-item__icon{opacity:1}.ibiz-chat-topic-item.is-active:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item.is-edit{border:2px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-topic-item__caption{width:100%;height:100%;display:flex;align-items:center}.ibiz-chat-topic-item__caption--text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-topic-item__caption--editor{width:100%;height:100%;border:none;outline:none;color:var(--ibiz-ai-chat-color);background:var(--ibiz-ai-chat-background-color)}.ibiz-chat-topic-item__icon{top:50%;gap:8px;opacity:0;right:10px;height:24px;display:flex;outline:none;padding:0 8px;border-radius:8px;position:absolute;align-items:center;justify-content:flex-end;transform:translateY(-50%);color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item__icon--item{font-size:12px}.ibiz-chat-topics{height:100%;padding:8px;overflow-y:auto}.ibiz-chart-minimize{width:56px;height:56px;display:flex;z-index:99999;cursor:pointer;position:absolute;border-radius:50%;align-items:center;justify-content:center}.ibiz-chart-minimize.is-hidden{display:none}.ibiz-chart-minimize.is-show-halo{width:90px;height:90px;background-size:cover;background-position:center;background-repeat:no-repeat;background-image:url(assets/gif/halo.gif)}.ibiz-chart-minimize__content{width:56px;height:56px;display:flex;border-radius:50%;align-items:center;justify-content:center;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color)}.ibiz-chart-minimize__content:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chart-minimize__content svg{fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chart-minimize__content.is-show-border{border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chart-minimize__content--popover{left:50%;bottom:90px;padding:8px;display:block;font-size:12px;border-radius:8px;position:absolute;transform:translate(-50%);box-shadow:0 2px 8px rgba(0,0,0,.1);background-color:var(--ibiz-ai-chat-background-color);color:var(--ibiz-ai-chat-color);border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chart-minimize__content--popover .typewriter{direction:rtl;overflow:hidden;max-width:200px;width:fit-content;white-space:nowrap;text-overflow:ellipsis;animation:typing 3s steps(40,end)}@keyframes blink{0%,to{opacity:0}50%{opacity:1}}@keyframes typing{0%{width:0}to{width:100%}}@keyframes blink-caret{0%,to{border-color:transparent}50%{border-color:var(--ibiz-ai-chat-color)}}.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-ai-chat-scroll-bar-width: 8px;--ibiz-ai-chat-scroll-bar-height: 8px;--ibiz-ai-chat-scroll-bar-radius: 4px}.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__toolbar{display:flex;flex-wrap:wrap;justify-content:center;margin:8px}.ibiz-chat-container *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-container *::-webkit-scrollbar-thumb{border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.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;left:20px;gap:8px 16px;width:calc(100% - 40px);min-height:48px;margin:0}.ibiz-chat-container-main__right .ibiz-chat-toolbar__default.is-has-materials{bottom:180px}.ibiz-chat-container-main__right .ibiz-chat-toolbar__default .ibiz-chat-toolbar__item{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.16/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.16/index.system.min.js new file mode 100644 index 0000000000000000000000000000000000000000..74afdae141c4b1b44606a018f83de489e053e594 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.16/index.system.min.js @@ -0,0 +1 @@ +!function(){function e(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)}function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,n)}function n(e){var t=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(e){return!1}}();return function(){var n,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}(this,n)}}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||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(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(e,t)||c(e,t)||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(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);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;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:I(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function d(e,t,n,i,r,o,a){try{var c=e[o](a),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(i,r)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){d(o,i,r,a,c,"next",e)}function c(e){d(o,i,r,a,c,"throw",e)}a(void 0)}))}}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===c[a]&&(c[a]=e.defaultProps[a]);return O(e,c,i,o,null)}function O(e,t,n,i,r){var o={type:e,props:t,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 L(e){return e.children}function I(e,t){this.props=e,this.context=t}function z(e,t){if(null==t)return e.__?z(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&y.sort(x));H.__r=0}function B(e,t,n,i,r,o,a,c,s,l,u){var h,d,f,p,v,m,_,g,y,w=0,b=i&&i.__k||T,x=b.length,k=x,N=t.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=V(p,b,_=h+w,k))?f=C:(f=b[g]||C,b[g]=void 0,k--),$(e,p,f,r,o,a,c,s,l,u),v=p.__e,(d=p.ref)&&f.ref!=d&&(f.ref&&Z(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&&w--:g!==_&&(g===_+1?w++:g>_?k>N-_?w+=g-_:w--:w=g<_&&g==_-1?g-_:0),_=h+w,"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(e,v,s):s=j(p,s,e),"function"==typeof n.type&&(n.__d=s))):(f=b[h])&&null==f.key&&f.__e&&(f.__e==s&&(f.__=i,s=z(f)),G(f,f,!1),b[h]=null);for(n.__e=m,h=x;h--;)null!=b[h]&&("function"==typeof n.type&&null!=b[h].__e&&b[h].__e==n.__d&&(n.__d=b[h].__e.nextSibling),G(b[h],b[h]))}function j(e,t,n){for(var i,r=e.__k,o=0;r&&o(null!=s?1:0))for(;a>=0||c=0){if((s=t[a])&&r==s.key&&o===s.type)return a;a--}if(c0&&void 0!==arguments[0]?arguments[0]:"";return Q(this.namespace,this.block,e,"","")}},{key:"e",value:function(e){return e?Q(this.namespace,this.block,"",e,""):""}},{key:"m",value:function(e){return e?Q(this.namespace,this.block,"","",e):""}},{key:"be",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,t,""):""}},{key:"em",value:function(e,t){return e&&t?Q(this.namespace,this.block,"",e,t):""}},{key:"bm",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,"",t):""}},{key:"bem",value:function(e,t,n){return e&&t&&n?Q(this.namespace,this.block,e,t,n):""}},{key:"is",value:function(e,t){return e&&t?"".concat("is-").concat(e):""}},{key:"cssVar",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarName(n)]=e[n]);return t}},{key:"cssVarBlock",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarBlockName(n)]=e[n]);return t}},{key:"cssVarName",value:function(e){return"--".concat(this.namespace,"-").concat(e)}},{key:"cssVarBlockName",value:function(e){return"--".concat(this.namespace,"-").concat(this.block,"-").concat(e)}}]),e}();function te(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ne(e,t){for(var n,i="",r=0,o=-1,a=0,c=0;c<=e.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}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(o+1,c):i=e.slice(o+1,c),r=c-o-1;o=c,a=0}else 46===n&&-1!==a?++a:a=-1}return i}var ie={resolve:function(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var r;i>=0?r=arguments[i]:(void 0===e&&(e=process.cwd()),r=e),te(r),0!==r.length&&(t=r+"/"+t,n=47===r.charCodeAt(0))}return t=ne(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(te(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=ne(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return te(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":ie.normalize(e)},relative:function(e,t){if(te(e),te(t),e===t)return"";if((e=ie.resolve(e))===(t=ie.resolve(t)))return"";for(var n=1;nc){if(47===t.charCodeAt(o+l))return t.slice(o+l+1);if(0===l)return t.slice(o+l)}else r>c&&(47===e.charCodeAt(n+l)?s=l:0===l&&(s=0));break}var u=e.charCodeAt(n+l);if(u!==t.charCodeAt(o+l))break;47===u&&(s=l)}var h="";for(l=n+s+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===h.length?h+="..":h+="/..");return h.length>0?h+t.slice(o+s):(o+=s,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(te(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,r=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');te(e);var n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,c=-1;for(n=e.length-1;n>=0;--n){var s=e.charCodeAt(n);if(47===s){if(!o){i=n+1;break}}else-1===c&&(o=!1,c=n+1),a>=0&&(s===t.charCodeAt(a)?-1==--a&&(r=n):(a=-1,r=c))}return i===r?r=c:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){te(e);for(var t=-1,n=0,i=-1,r=!0,o=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(r=!1,i=a+1),46===c?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=a+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==p(e))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+p(e));return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}("/",e)},parse:function(e){te(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0),r=47===i;r?(t.root="/",n=1):n=0;for(var o=-1,a=0,c=-1,s=!0,l=e.length-1,u=0;l>=n;--l)if(47!==(i=e.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&&(t.base=t.name=0===a&&r?e.slice(1,c):e.slice(a,c)):(0===a&&r?(t.name=e.slice(1,o),t.base=e.slice(1,c)):(t.name=e.slice(a,o),t.base=e.slice(a,c)),t.ext=e.slice(o,c)),a>0?t.dir=e.slice(0,a-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};function re(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function oe(){return"".concat(re()+re(),"-").concat(re(),"-").concat(re(),"-").concat(re(),"-").concat(re()).concat(re()).concat(re())}ie.posix=ie;var ae=/]*>[\s\S]*?<\/svg>/;function ce(e){return ae.test(e)}var se=function(){function e(){v(this,e)}return _(e,null,[{key:"copy",value:function(e){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=e,this.inputElement.select(),document.execCommand("copy")}}]),e}();g(se,"inputElement",null);var le=function(){function e(){v(this,e)}var t,n,i,r,o,a,c,s,l,u;return _(e,null,[{key:"checkDataBaseExists",value:(u=f(h().mark((function e(t){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,indexedDB.databases();case 3:return n=e.sent,e.abrupt("return",n.some((function(e){return e.name===t})));case 7:return e.prev=7,e.t0=e.catch(0),console.error("检查数据库是否存在时出错:",e.t0),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])}))),function(e){return u.apply(this,arguments)})},{key:"deleteDatabase",value:(l=f(h().mark((function t(n){var i,r;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.lastLink&&(null===(i=(r=e.lastLink).close)||void 0===i||i.call(r)),t.abrupt("return",new Promise((function(e,t){var i=indexedDB.deleteDatabase(n);i.onsuccess=function(){e(!0)},i.onerror=function(){e(!1)},i.onblocked=function(){console.warn("删除数据库 ".concat(n," 被阻塞,可能有其他连接正在使用该数据库。")),t(new Error("删除数据库 ".concat(n," 被阻塞")))}})));case 2:case"end":return t.stop()}}),t)}))),function(e){return l.apply(this,arguments)})},{key:"checkTableExists",value:(s=f(h().mark((function t(n,i){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.checkDataBaseExists(n);case 2:if(t.sent){t.next=5;break}return t.abrupt("return",!1);case 5:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onupgradeneeded=function(t){e.db=t.target.result,e.version=e.db.version},o.onsuccess=function(n){e.db=n.target.result,e.lastLink=o.result;var r=e.db.objectStoreNames.contains(i);o.result.close(),t(r)},o.onerror=function(e){r(e.target.error)}})));case 6:case"end":return t.stop()}}),t)}))),function(e,t){return s.apply(this,arguments)})},{key:"createTable",value:(c=f(h().mark((function t(n,i,r){var o,a=arguments;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=a.length>3&&void 0!==a[3]&&a[3],t.abrupt("return",new Promise((function(t){var a,c;e.version+=1,e.lastLink&&(null===(a=(c=e.lastLink).close)||void 0===a||a.call(c));var s=indexedDB.open(n,e.version);s.onupgradeneeded=function(t){if(e.db=t.target.result,!e.db.objectStoreNames.contains(i)){var n={};r?n.keyPath=r:o&&(n.autoIncrement=!0),e.db.createObjectStore(i,n)}},s.onsuccess=function(){e.lastLink=s.result,s.result.close(),t(!0)},s.onerror=function(){t(!1)}})));case 2:case"end":return t.stop()}}),t)}))),function(e,t,n){return c.apply(this,arguments)})},{key:"deleteTable",value:(a=f(h().mark((function t(n,i){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){var r,o;e.version+=1,e.lastLink&&(null===(r=(o=e.lastLink).close)||void 0===r||r.call(o));var a=indexedDB.open(n,e.version);a.onupgradeneeded=function(t){e.db=t.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)&&e.db.deleteObjectStore(i)},a.onsuccess=function(n){e.db=n.target.result,e.lastLink=a.result,a.result.close(),t(!0)},a.onerror=function(){a.result.close(),t(!1)}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t){return a.apply(this,arguments)})},{key:"addData",value:(o=f(h().mark((function t(n,i,r){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).add(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(null)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return o.apply(this,arguments)})},{key:"deleteData",value:(r=f(h().mark((function t(n,i,r){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).delete(r);o.onsuccess=function(e){t(!0)},o.onerror=function(){t(!1)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"updateData",value:(i=f(h().mark((function t(n,i,r){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).put(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(r)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"getData",value:(n=f(h().mark((function t(n,i,r){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var c=e.db.transaction([i],"readonly").objectStore(i).get(r);c.onsuccess=function(e){t(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 t.stop()}}),t)}))),function(e,t,i){return n.apply(this,arguments)})},{key:"getAllData",value:(t=f(h().mark((function t(n,i){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=o.result,e.db.objectStoreNames.contains(i)){var r=e.db.transaction([i],"readonly").objectStore(i).getAll();r.onsuccess=function(e){t(r.result)},r.onerror=function(){t([])}}o.result.close()},o.onerror=function(){o.result.close(),r()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}]),e}();g(le,"version",1),g(le,"db",null),g(le,"lastLink",void 0);var ue=function(){function e(t){v(this,e),g(this,"options",void 0),this.options=u({multiple:!0,accept:"*/*",maxSize:5242880},t)}var t,n;return _(e,[{key:"openFilePicker",value:function(){var e=this,t=document.createElement("input");t.type="file",t.multiple=this.options.multiple,t.accept=this.options.accept||"",t.onchange=function(t){var n=Array.from(t.target.files||[]);e.handleFiles(n)},t.click()}},{key:"handleFiles",value:(n=f(h().mark((function e(t){var n,i,r,o=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.length){e.next=2;break}return e.abrupt("return");case 2:return r=t.filter((function(e){var t,n;return!(o.options.maxSize&&e.size>o.options.maxSize&&(null===(t=(n=o.options).onError)||void 0===t||t.call(n,new Error("文件大小超过限制 (".concat(o.formatSize(e.size)," > ").concat(o.formatSize(o.options.maxSize),")")),e),1))})),null===(n=(i=this.options).onSelect)||void 0===n||n.call(i,r),e.next=6,Promise.all(r.map((function(e){return o.processFile(e)})));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"processFile",value:(t=f(h().mark((function e(t){var n,i,r,o,a,c,s,l,u=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a=function(e){var n,i;null===(n=(i=u.options).onProgress)||void 0===n||n.call(i,t,e)},e.next=4,this.options.onUpload(t,a);case 4:c=e.sent,null===(n=(i=this.options).onProgress)||void 0===n||n.call(i,t,100),null===(r=(o=this.options).onSuccess)||void 0===r||r.call(o,c,t),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),null===(s=(l=this.options).onError)||void 0===s||s.call(l,e.t0 instanceof Error?e.t0:new Error("上传失败"),t);case 12:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e){return t.apply(this,arguments)})},{key:"formatSize",value:function(e){if(0===e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat((e/Math.pow(1024,t)).toFixed(2)," ").concat(["B","KB","MB","GB"][t])}}]),e}(),he=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("resource")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r),c=o?JSON.parse(o):{},s=a?JSON.parse(a):{};return{id:c.id,type:n,data:c,metadata:s}}catch(Xn){throw new Error("XML 解析错误: ".concat(Xn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/resources>/i.exec(e);if(!t)return{resources:[],remainingText:e,hasResources:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.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(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("resources");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("resource");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}(),de=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("suggestion")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r);return{type:n,data:o?JSON.parse(o):{},metadata:a?JSON.parse(a):{}}}catch(Xn){throw new Error("XML 解析错误: ".concat(Xn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/suggestions>/i.exec(e);if(!t)return{suggestions:[],remainingText:e,hasSuggestions:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.slice(r)).replace(/\n/g,"");try{return{suggestions:this.parse(n),remainingText:o,hasSuggestions:!0}}catch(c){return{suggestions:[],remainingText:o,hasSuggestions:!0,error:"资源解析失败: ".concat(c.message)}}}},{key:"stringify",value:function(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("suggestions");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("suggestion");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}();function fe(e){return e.x>=0&&e.x<=1&&e.y>=0&&e.y<=1}function pe(e,t,n,i){var r=e/window.innerWidth,o=t/window.innerHeight;return{x:Math.max(0,Math.min(r,1-n)),y:Math.max(0,Math.min(o,1-i))}}var ve,me,_e,ge,ye=0,we=[],be=[],xe=l.__b,ke=l.__r,Ce=l.diffed,Te=l.__c,Ne=l.unmount;function Ee(e,t){l.__h&&l.__h(me,e,ye||t),ye=0;var n=me.__H||(me.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:be}),n.__[e]}function Se(e){return ye=1,function(e,t,n){var i=Ee(ve++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):Fe(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=me,!me.u)){var r=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var a=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&i.__c.props===e)&&(!o||o.call(this,e,t,n))};me.u=!0;var o=me.shouldComponentUpdate,a=me.componentWillUpdate;me.componentWillUpdate=function(e,t,n){if(this.__e){var i=o;o=void 0,r(e,t,n),o=i}a&&a.call(this,e,t,n)},me.shouldComponentUpdate=r}return i.__N||i.__}(Fe,e)}function Ae(e,t){var n=Ee(ve++,3);!l.__s&&je(n.__H,t)&&(n.__=e,n.i=t,me.__H.__h.push(n))}function Me(e){return ye=5,Oe((function(){return{current:e}}),[])}function Oe(e,t){var n=Ee(ve++,7);return je(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Le(e,t){return ye=8,Oe((function(){return e}),t)}function Ie(e){var t=me.context[e.__c],n=Ee(ve++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(me)),t.props.value):e.__}function ze(){for(var e;e=we.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(He),e.__H.__h.forEach(Be),e.__H.__h=[]}catch(Jn){e.__H.__h=[],l.__e(Jn,e.__v)}}l.__b=function(e){me=null,xe&&xe(e)},l.__r=function(e){ke&&ke(e),ve=0;var t=(me=e.__c).__H;t&&(_e===me?(t.__h=[],me.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=be,e.__N=e.i=void 0}))):(t.__h.forEach(He),t.__h.forEach(Be),t.__h=[],ve=0)),_e=me},l.diffed=function(e){Ce&&Ce(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==we.push(t)&&ge===l.requestAnimationFrame||((ge=l.requestAnimationFrame)||Pe)(ze)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==be&&(e.__=e.__V),e.i=void 0,e.__V=be}))),_e=me=null},l.__c=function(e,t){t.some((function(e){try{e.__h.forEach(He),e.__h=e.__h.filter((function(e){return!e.__||Be(e)}))}catch(Ge){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l.__e(Ge,e.__v)}})),Te&&Te(e,t)},l.unmount=function(e){Ne&&Ne(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{He(e)}catch(e){t=e}})),n.__H=void 0,t&&l.__e(t,n.__v))};var De="function"==typeof requestAnimationFrame;function Pe(e){var t,n=function(){clearTimeout(i),De&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);De&&(t=requestAnimationFrame(n))}function He(e){var t=me,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),me=t}function Be(e){var t=me;e.__c=e.__(),me=t}function je(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Fe(e,t){return"function"==typeof t?t(e):t}function Re(){throw new Error("Cycle detected")}var Ve=Symbol.for("preact-signals");function We(){if(Xe>1)Xe--;else{for(var e,t=!1;void 0!==$e;){var n=$e;for($e=void 0,Ze++;void 0!==n;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&et(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=i}}if(Ze=0,Xe--,t)throw e}}var Ue,qe,Ye=void 0,$e=void 0,Xe=0,Ze=0,Ge=0;function Je(e){if(void 0!==Ye){var t=e.n;if(void 0===t||t.t!==Ye)return t={i:0,S:e,p:Ye.s,n:void 0,t:Ye,e:void 0,x:void 0,r:t},void 0!==Ye.s&&(Ye.s.n=t),Ye.s=t,e.n=t,32&Ye.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=Ye.s,t.n=void 0,Ye.s.n=t,Ye.s=t),t}}function Ke(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Qe(e){return new Ke(e)}function et(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function tt(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function nt(e){for(var t=e.s,n=void 0;void 0!==t;){var i=t.p;-1===t.i?(t.S.U(t),void 0!==i&&(i.n=t.n),void 0!==t.n&&(t.n.p=i)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=i}e.s=n}function it(e){Ke.call(this,void 0),this.x=e,this.s=void 0,this.g=Ge-1,this.f=4}function rt(e){return new it(e)}function ot(e){var t=e.u;if(e.u=void 0,"function"==typeof t){Xe++;var n=Ye;Ye=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,at(e),t}finally{Ye=n,We()}}}function at(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ot(e)}function ct(e){if(Ye!==this)throw new Error("Out-of-order effect");nt(this),Ye=e,this.f&=-2,8&this.f&&at(this),We()}function st(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function lt(e){var t=new st(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function ut(e,t){l[e]=t.bind(null,l[e]||function(){})}function ht(e){qe&&qe(),qe=e&&e.S()}function dt(e){var t=this,n=e.data,i=pt(n);i.value=n;var r=Oe((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e;m(r.peek())||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=r.peek()},rt((function(){var e=i.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return r.value}function ft(e,t,n,i){var r=t in e&&void 0===e.ownerSVGElement,o=Qe(n);return{o:function(e,t){o.value=e,i=t},d:lt((function(){var n=o.value.value;i[t]!==n&&(i[t]=n,r?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}function pt(e){return Oe((function(){return Qe(e)}),[])}function vt(e){var t=Me(e);return t.current=e,Ue.__$f|=4,Oe((function(){return rt((function(){return t.current()}))}),[])}Ke.prototype.brand=Ve,Ke.prototype.h=function(){return!0},Ke.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},Ke.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Ke.prototype.subscribe=function(e){var t=this;return lt((function(){var n=t.value,i=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=i}}))},Ke.prototype.valueOf=function(){return this.value},Ke.prototype.toString=function(){return this.value+""},Ke.prototype.toJSON=function(){return this.value},Ke.prototype.peek=function(){return this.v},Object.defineProperty(Ke.prototype,"value",{get:function(){var e=Je(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(Ye instanceof it&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Ze>100&&Re(),this.v=e,this.i++,Ge++,Xe++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{We()}}}}),(it.prototype=new Ke).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Ge)return!0;if(this.g=Ge,this.f|=1,this.i>0&&!et(this))return this.f&=-2,!0;var e=Ye;try{tt(this),Ye=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return Ye=e,nt(this),this.f&=-2,!0},it.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Ke.prototype.S.call(this,e)},it.prototype.U=function(e){if(void 0!==this.t&&(Ke.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},it.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},it.prototype.peek=function(){if(this.h()||Re(),16&this.f)throw this.v;return this.v},Object.defineProperty(it.prototype,"value",{get:function(){1&this.f&&Re();var e=Je(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),st.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},st.prototype.S=function(){1&this.f&&Re(),this.f|=1,this.f&=-9,ot(this),tt(this),Xe++;var e=Ye;return Ye=this,ct.bind(this,e)},st.prototype.N=function(){2&this.f||(this.f|=2,this.o=$e,$e=this)},st.prototype.d=function(){this.f|=8,1&this.f||at(this)},dt.displayName="_st",Object.defineProperties(Ke.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:dt},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),ut("__b",(function(e,t){if("string"==typeof t.type){var n,i=t.props;for(var r in i)if("children"!==r){var o=i[r];o instanceof Ke&&(n||(t.__np=n={}),n[r]=o,i[r]=o.peek())}}e(t)})),ut("__r",(function(e,t){ht();var n,i=t.__c;i&&(i.__$f&=-2,void 0===(n=i.__$u)&&(i.__$u=n=function(e){var t;return lt((function(){t=this})),t.c=function(){i.__$f|=1,i.setState({})},t}())),Ue=i,ht(n),e(t)})),ut("__e",(function(e,t,n,i){ht(),Ue=void 0,e(t,n,i)})),ut("diffed",(function(e,t){var n;if(ht(),Ue=void 0,"string"==typeof t.type&&(n=t.__e)){var i=t.__np,r=t.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=ft(n,s,u,r),o[s]=l):l.o(u,r)}}}e(t)})),ut("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__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=t.__c;if(a){var c=a.__$u;c&&(a.__$u=void 0,c.d())}}e(t)})),ut("__h",(function(e,t,n,i){(i<3||9===i)&&(t.__$f|=2),e(t,n,i)})),I.prototype.shouldComponentUpdate=function(e,t){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 t)return!0;for(var r in e)if("__source"!==r&&e[r]!==this.props[r])return!0;for(var o in this.props)if(!(o in e))return!0;return!1};var mt=0;function _t(e,t,n,i,r,o){var a,c,s={};for(c in t)"ref"==c?a=t[c]:s[c]=t[c];var u={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--mt,__source:r,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===s[c]&&(s[c]=a[c]);return l.vnode&&l.vnode(u),u}var gt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},yt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},wt=function(e){return _t("svg",{viewBox:"0 0 1024 1024",id:"send",className:e.className,version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},bt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},xt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},kt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Ct=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Tt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Nt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M960 544H64a32 32 0 1 1 0-64h896a32 32 0 1 1 0 64"})})},Et=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[_t("path",{d:"M481.0752 263.3728l50.9952 1.024 1.8432-105.8816-50.9952-0.8192z"}),_t("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"}),_t("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"}),_t("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"}),_t("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"}),_t("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"})]})},St=function(){return _t("svg",{viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_t("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"}),_t("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"}),_t("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"})]})},At=function(){return _t("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_t("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"})})},Mt=function(){var e=1e3,t=140,n=250,i=.8;return _t("svg",{fill:"currentColor",viewBox:"0 0 ".concat(e," ").concat(e),xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:Array.from({length:4}).map((function(e,r){return _t("rect",{fill:"currentColor",rx:70,ry:70,height:n,width:t,x:286.66666666666663*r,y:375,children:[_t("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"}),_t("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)}))})},Ot=function(e){return _t("svg",{className:e.className,onClick:e.onClick,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Lt=function(e){return _t("svg",{className:e.className,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},It=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M972.657609 209.348408C987.158609 209.36839 998.930114 197.571202 998.949999 182.99865 998.969882 168.426097 987.230618 156.59651 972.729617 156.576528L32.457975 155.280806C17.956974 155.260823 6.18547 167.058012 6.165585 181.630564 6.1457 196.203116 17.884965 208.032703 32.385966 208.052686L972.657609 209.348408ZM180.466902 992.356169 180.466902 1019.014859 206.993296 1018.74074 833.361858 1012.267947 859.348284 1011.999407 859.348284 985.883377 859.348284 289.397297C859.348284 274.824732 847.59289 263.011332 833.091874 263.011332 818.590859 263.011332 806.835465 274.824732 806.835465 289.397297L806.835465 985.883377 832.82189 959.498805 206.453329 965.971599 232.979723 992.356169 232.979723 282.67005C232.979723 268.097483 221.224329 256.284085 206.723313 256.284085 192.222298 256.284085 180.466902 268.097483 180.466902 282.67005L180.466902 992.356169ZM656.410257 847.079027C656.410257 861.651593 668.165651 873.464992 682.666667 873.464992 697.167682 873.464992 708.923076 861.651593 708.923076 847.079027L708.923076 372.131659C708.923076 357.559091 697.167682 345.745694 682.666667 345.745694 668.165651 345.745694 656.410257 357.559091 656.410257 372.131659L656.410257 847.079027ZM341.333333 847.079027C341.333333 861.651593 353.08873 873.464992 367.589743 873.464992 382.090758 873.464992 393.846155 861.651593 393.846155 847.079027L393.846155 372.131659C393.846155 357.559091 382.090758 345.745694 367.589743 345.745694 353.08873 345.745694 341.333333 357.559091 341.333333 372.131659L341.333333 847.079027ZM498.871795 847.079027C498.871795 861.651593 510.627189 873.464992 525.128205 873.464992 539.62922 873.464992 551.384614 861.651593 551.384614 847.079027L551.384614 372.131659C551.384614 357.559091 539.62922 345.745694 525.128205 345.745694 510.627189 345.745694 498.871795 357.559091 498.871795 372.131659L498.871795 847.079027ZM392.147755 116.721777C392.147755 102.063669 403.758665 90.363507 418.40134 90.363507L622.925796 90.363507C637.408947 90.363507 649.179381 102.1619 649.179381 116.549585L649.179381 171.644875 701.692203 171.644875 701.692203 116.549585C701.692203 72.986607 666.38105 37.591577 622.925796 37.591577L418.40134 37.591577C374.724427 37.591577 339.634933 72.950804 339.634933 116.721777L339.634933 165.310801 392.147755 165.310801 392.147755 116.721777Z"})})},zt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 184l144 144 144-144"})})},Dt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"".concat(e.className," icon"),viewBox:"0 0 512 512",children:_t("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"})})},Pt=function(e){return _t("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",children:_t("circle",{cx:"25",cy:"25",r:"20",stroke:"currentColor",strokeWidth:"5",fill:"none",strokeDasharray:"31.415, 31.415",strokeLinecap:"round",children:_t("animateTransform",{attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"1s",repeatCount:"indefinite"})})})},Ht=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Bt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},jt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ft=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Rt=function(e){return _t("svg",{className:e.className,id:"stop",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},Vt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})})},Wt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("path",{d:"M394.688 126.208a32 32 0 0 1 32-32h170.688a32 32 0 0 1 32 32v138.624h288a32 32 0 0 1 32 32v170.688a32 32 0 0 1-32 32H106.688a32 32 0 0 1-32-32V296.832a32 32 0 0 1 32-32h288V126.208z m64 32v138.624a32 32 0 0 1-32 32h-288v106.688h746.688V328.832h-288a32 32 0 0 1-32-32V158.208H458.688z"}),_t("path",{d:"M138.688 469.376a32 32 0 0 1 32-32h682.688a32 32 0 0 1 32 32v384a32 32 0 0 1-32 32H170.688a32 32 0 0 1-32-32v-384z m64 32v320h618.688v-320H202.688z"}),_t("path",{d:"M341.376 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32zM512 691.2a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0v-128a32 32 0 0 1 32-32zM682.688 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32z"})]})},Ut=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("path",{d:"M843.251 424.407l43.828-74.898c10.194-17.946 32.596-22.158 48.956-11.598 16.298 10.499 23.44 32.658 14.223 49.566l-113.11 195.212-61.164-40.044-126.418-82.285c-16.115-11.598-20.632-34.428-10.194-51.702 9.705-17.397 31.009-23.501 47.857-13.734l89.67 59.028C748.576 295.547 615.81 180.667 461.008 180.667c-177.387 0-320.042 148.758-320.042 331.335 0 183.613 143.692 331.334 319.981 331.334 107.861 0.184 208.58-56.158 268.034-149.858 1.099-1.038 1.099-2.075 2.075-2.075 6.348-9.949 17.092-15.871 28.568-15.81 19.35 0 35.648 16.848 35.648 36.93 0 7.508-2.137 14.833-6.104 21.059-72.823 114.698-196.066 183.675-328.099 183.614-216.088 0-391.4-181.478-391.4-405.195 0-223.718 175.312-405.195 391.339-405.195 183.125-0.427 342.016 131.606 382.243 317.601z"})})},qt=function(){return _t("svg",{version:"1.1",className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M627.498667 55.168l170.666666 170.666667a42.624 42.624 0 0 1 0 60.330666l-469.333333 469.333334A42.538667 42.538667 0 0 1 298.666667 768H128a42.666667 42.666667 0 0 1-42.666667-42.666667v-170.666666c0-11.306667 4.48-22.186667 12.501334-30.165334l469.333333-469.333333a42.624 42.624 0 0 1 60.330667 0zM896 896a42.666667 42.666667 0 0 1 0 85.333333H128a42.666667 42.666667 0 0 1 0-85.333333h768zM597.333333 145.664l-426.666666 426.666667V682.666667h110.336l426.666666-426.666667L597.333333 145.664z"})})},Yt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M184 112l144 144-144 144"})})},$t=function(e){var t=e.items,n=pt([]),i=new ee("chat-thought-chain"),r=pt([]);Ae((function(){r.value=t.filter((function(e){return e.description})),r.value.length>0&&r.value.forEach((function(e,t){e.done&&(n.value=[].concat(o(n.value),[t]))}))}),[t]);return 0===r.value.length?null:_t("div",{className:"".concat(i.b()," ").concat(i.is("single",1===r.value.length)),children:r.value.map((function(e,t){if(e.description){var r=n.value.includes(t);return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("collapsed",r)),children:[_t("div",{className:i.e("item-icon"),children:e.icon||_t("span",{children:t})}),_t("div",{className:i.e("item-content"),children:[_t("div",{className:i.e("item-title"),onClick:function(){return function(e){n.value.includes(e)?n.value=n.value.filter((function(t){return t!==e})):n.value=[].concat(o(n.value),[e])}(t)},children:[e.title,_t(zt,{className:i.e("icon")})]}),_t("div",{className:i.e("item-description"),children:e.description})]})]},t)}}))})},Xt=function(e){var t=e.items,n=e.onItemClick,i=new ee("chat-suggestions");return _t("div",{className:"".concat(i.b()),children:t.map((function(e,t){return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("action","action"===e.type)),onClick:function(t){return function(e,t){null==n||n(e,t)}(e,t)},title:e.metadata.content_name,children:[e.metadata.content_name,_t(Yt,{className:"".concat(i.e("item-icon"))})]},t)}))})},Zt=new ee("markdown-message"),Gt=function(e){var t=e.message,n=e.size,i=pt(oe()),r=pt(null),o=Oe((function(){return 20===t.state&&!0!==t.completed}),[t.state,t.completed]),a=Oe((function(){return 20===t.state&&!0===t.completed}),[t.state,t.completed]),c=pt({title:"",description:"",icon:_t(Pt,{})}),l=pt({hasSuggestions:!1,suggestions:[]}),u=function(e){e&&e.length>0?l.value={hasSuggestions:!0,suggestions:e}:l.value={hasSuggestions:!1,suggestions:[]}},h=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="",o=!1;return-1===n?(o=!1,i=e.slice(t+7),r=""):(o=!0,i=e.slice(t+7,n),r=e.slice(n+8)),{isThoughtCompleted:o,thoughtContent:i,answerContent:r}};return Ae((function(){if(n>=0&&r.value){if(-1!==t.content.indexOf("")){var e=h(t.content),i=e.isThoughtCompleted,o=e.thoughtContent,a=e.answerContent;i?(c.value.icon=_t(Dt,{}),c.value.title="思考完成"):!0===t.completed?(c.value.icon=_t(Dt,{}),c.value.title="思考已停止"):(c.value.icon=_t(Pt,{}),c.value.title="思考中..."),c.value.description=o||"",r.value.setMarkdown(a||"")}else r.value.setMarkdown(t.content||"");u(t.suggestions)}}),[t,n]),Ae((function(){var e="";if(-1!==t.content.indexOf("")){var n=h(t.content),o=n.isThoughtCompleted,a=n.thoughtContent,l=n.answerContent;c.value={title:o?"思考完成":!0===t.completed?"思考已停止":"思考中...",description:a||"",icon:o||!0===t.completed?_t(Dt,{}):_t(Pt,{})},l&&(e=l)}else e=t.content;u(t.suggestions),r.value=new s({id:i,value:e||"",editor:{defaultModel:"previewOnly"}})}),[]),_t("div",{className:"".concat(Zt.b()," ").concat(Zt.is("loading",o)),children:[_t("div",{className:Zt.b("header"),children:[_t("div",{className:Zt.be("header","caption"),children:"AI "}),e.children,a?_t("div",{className:Zt.be("header","timeout"),children:"请求超时"}):null]}),_t("div",{className:"".concat(Zt.b("content")," pre-wrap-container"),children:[_t($t,{items:[c.value]}),_t("div",{id:i})]}),_t("div",{className:Zt.b("footer"),children:l.value.hasSuggestions?_t(Xt,{items:l.value.suggestions,onItemClick:function(t,n){!function(t,n){e.controller.handleSuggestionClick(e.message,t,n)}(t,n)}}):null})]})},Jt=new ee("ossfile-material"),Kt=function(e){var t=vt((function(){return e.material.data.name})),n=vt((function(){return e.material.metadata.size})),i=vt((function(){var t=e.material.metadata.state;return"successed"===t?"上传成功":"uploading"===t?"上传中":"failed"===t?"上传失败":"未知状态"})),r=vt((function(){switch(e.material.metadata.state){case"successed":return"#1890ff";case"uploading":return"#52c41a";default:return"#ff4d4f"}}));return _t("div",{className:Jt.b(),children:[_t("div",{className:Jt.b("left"),children:_t(Bt,{})}),_t("div",{className:Jt.b("right"),children:[_t("div",{className:Jt.e("name"),title:t,children:t}),_t("div",{className:Jt.e("metadata"),children:[_t("div",{children:[n,"B"]}),_t("div",{style:{color:r.value},children:i})]})]})]})},Qt=new ee("common-material"),en=function(e){var t,n,i,r,o=null===(t=e.controller.opts.questionToolbarItems)||void 0===t?void 0:t.find((function(t){return t.id===e.material.metadata.actionId})),a=vt((function(){return e.material.metadata.name}));return _t("div",{className:Qt.b(),children:[_t("div",{className:Qt.b("left"),children:o&&o.icon?"function"==typeof o.icon?o.icon():(null===(n=o.icon)||void 0===n?void 0:n.showIcon)&&_t(L,{children:null!==(i=o.icon)&&void 0!==i&&i.cssClass?_t("i",{className:o.icon.cssClass}):null!==(r=o.icon)&&void 0!==r&&r.imagePath?ce(o.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:o.icon.imagePath}}):_t("img",{src:o.icon.imagePath}):null}):_t(Ft,{})}),_t("div",{className:Qt.b("right"),children:[_t("div",{className:Qt.e("name"),title:a,children:a}),_t("div",{className:Qt.e("metadata"),children:_t("div",{children:(null==o?void 0:o.label)||"素材资源"})})]})]})},tn=new ee("chat-input-material-item"),nn=function(e){var t=e.material,n=null;if("ossfile"===t.type)n=Kt;else n=en;return _t("div",{className:"".concat(tn.b()," ").concat(tn.is("disabled",e.disabled)),children:[_t("div",{className:tn.e("icon"),onClick:function(){e.controller.deleteMaterial(t)},children:_t(jt,{})}),M(n,{material:t,controller:e.controller})]})},rn=new ee("user-message-question"),on=function(e){var t=pt(oe()),n=pt(null),i=vt((function(){return e.message.content})),r=vt((function(){return he.parseMixedContent(i.value)}));return Ae((function(){n.value=new s({id:t,value:r.value.remainingText||"",editor:{defaultModel:"previewOnly"}})}),[r.value.remainingText]),_t("div",{className:rn.b(),children:[_t("div",{className:rn.e("user-header"),children:[e.children,_t("div",{className:rn.e("user"),children:"我"})]}),_t("div",{className:rn.e("content"),children:_t("div",{className:rn.em("content","body"),children:[r.value.hasResources&&_t("div",{className:rn.em("content","material"),children:r.value.resources.map((function(t){return _t(nn,{material:t,disabled:!0,controller:e.controller},t.id)}))}),_t("div",{className:"pre-wrap-container",children:_t("div",{id:t})})]})})]})},an=new ee("error-message"),cn=function(e){var t=vt((function(){return e.message.content}));return _t("div",{className:an.b(),children:[_t("div",{className:an.b("header"),children:[_t("div",{className:an.be("header","caption"),children:"AI "}),e.children]}),_t("div",{className:"".concat(an.e("content")," pre-wrap-container"),children:_t("span",{children:t})})]})},sn=new ee("unknown-message"),ln=function(e){return _t("div",{className:sn.b(),children:_t("div",{className:"".concat(sn.e("content")," pre-wrap-container"),children:["暂未支持的消息类型: ",e.message.type]})})},un=new ee("chat-message-item"),hn=function(e){var t=e.message,n=e.size,i=null;switch(t.type){case"DEFAULT":i="ASSISTANT"===t.role?Gt:on;break;case"ERROR":i=cn;break;default:i=ln}return _t("div",{className:un.b(),children:M(i,{size:n,message:t,controller:e.controller,children:e.children})})},dn=function(){function e(t){v(this,e),this.msg=t}return _(e,[{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 e=this.msg.content;if(-1!==e.indexOf("")&&-1===e.indexOf(""))return"";if(-1!==(e=e.replace(/[^]*?<\/think>/g,"").trim()).indexOf("")&&-1===e.indexOf(""))return"";var t=(e=e.replace(/[^]*?<\/resources>/g,"").trim()).indexOf("");return-1!==t&&(e=e.substring(0,t).trim()),e}},{key:"content",get:function(){return this.msg.content}},{key:"completed",get:function(){return this.msg.completed}},{key:"suggestions",get:function(){return this.msg.suggestions}},{key:"_origin",get:function(){return this.msg}},{key:"update",value:function(e){e.content||(e.content=""),-1!==e.content.indexOf("")&&this.msg.content&&(this.msg.content=""),this.msg.content+=e.content}},{key:"updateCompleted",value:function(e){this.msg.completed=e}}]),e}(),fn=function(){function e(t){v(this,e),this.data=t}return _(e,[{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:"sourceCaption",get:function(){return this.data.sourceCaption||this.caption}},{key:"url",get:function(){return this.data.url}},{key:"aiChat",get:function(){return this.data.aiChat}}]),e}(),pn=function(){function e(t){v(this,e),this.material=t}return _(e,[{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}}]),e}(),vn=new ee("chat-toolbar"),mn=function(e){var t=e.controller,n=e.items,i=void 0===n?[]:n,r=e.data,a=e.type,c=e.className,s=Ie(yi),l=[],h="default",d=[{label:"重置对话",title:"重置对话",icon:function(){return _t(Ut,{})},onClick:function(){t.resetTopic()}},{label:"清空对话",title:"清空对话",icon:function(){return _t(Wt,{})},onClick:function(){t.clearTopic()}},{label:"新建对话",title:"新建对话",icon:function(){return _t(St,{})},onClick:function(){s.newTopic&&s.newTopic()}}],f=vt((function(){return e.controller.materials.value.length>0})),p=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r)}},{label:"删除",title:"删除",icon:function(){return _t(bt,{})},onClick:function(){t.deleteMessage(r)}},{label:"复制",title:"复制",icon:function(){return _t(kt,{})},onClick:function(){t.copyMessage(r)}}];s.enableBackFill&&p.unshift.apply(p,[{label:"回填",title:"回填",icon:function(){return _t(yt,{})},onClick:function(){t.backfill(r)}}]);var v=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r,!0)}}];if("content"===a)switch(h="circle",r.type){case"DEFAULT":l="ASSISTANT"===r.role?[].concat(p,o(i)):[].concat(v);break;case"ERROR":l=[].concat(p,o(i))}else l=[].concat(d,o(i));var m=function(e){return"function"==typeof e.disabled?e.disabled(r):!0===e.disabled},_=Oe((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 _t("div",{className:"".concat(vn.b()," ").concat(vn.is("has-materials",f.value)," ").concat(vn.e(h)," ").concat(c||""),children:l.map((function(n,i){var o,a,s;if(!function(e){return"function"==typeof e.hidden?e.hidden(r):!0===e.hidden}(n))return _t("div",{className:"".concat(vn.e("item")," ").concat(vn.is("disabled",m(n)||_)," ").concat(c||""),title:n.title,onClick:function(i){return function(n,i){if(!m(i)){var o=u({},r);if(r instanceof dn&&(Object.assign(o,{topic:t.topic}),o.msg.realcontent=r.realcontent),i.onClick&&"function"==typeof i.onClick)i.onClick(n,i,t.context,t.params,o);else{var a=e.controller.opts.extendToolbarClick;a&&"function"==typeof a&&a(n,i,t.context,t.params,o)}}}(i,n)},children:[_t("div",{className:"".concat(vn.em("item","icon")),children:"function"==typeof n.icon?n.icon():(null===(o=n.icon)||void 0===o?void 0:o.showIcon)&&_t(L,{children:null!==(a=n.icon)&&void 0!==a&&a.cssClass?_t("i",{className:n.icon.cssClass}):null!==(s=n.icon)&&void 0!==s&&s.imagePath?ce(n.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:n.icon.imagePath}}):_t("img",{src:n.icon.imagePath}):null})}),_t("div",{className:"".concat(vn.em("item","label")),children:n.label})]},i)}))})};var _n=function(e){var t,n,i,r=pt(!1),o=pt({}),a=new ee("chat-back-bottom"),c=pt(null),s=function(){if(c.value){var t=e.visibilityHeight||200,n=c.value.scrollHeight-c.value.scrollTop-c.value.offsetHeight;r.value=n>=t}},l=(t=s,n=300,i=null,function(){for(var e=this,r=arguments.length,o=new Array(r),a=0;a3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),K(M(On,{context:t.context},e.__v),t.l)}function In(e,t){var n=M(Ln,{__v:e,i:t});return n.containerInfo=t,n}(An.prototype=new I).__a=function(e){var t=this,n=Sn(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),Mn(t,e,i)):r()};n?n(o):o()}},An.prototype.render=function(e){this.u=null,this.o=new Map;var t=F(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},An.prototype.componentDidUpdate=An.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Mn(e,n,t)}))};var zn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Dn=/^(?: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]/,Pn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Hn=/[A-Z0-9]/g,Bn="undefined"!=typeof document,jn=function(e){return("undefined"!=typeof Symbol&&"symbol"==p(Symbol())?/fil|che|rad/:/fil|che|ra/).test(e)};I.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(I.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Fn=l.event;function Rn(){}function Vn(){return this.cancelBubble}function Wn(){return this.defaultPrevented}l.event=function(e){return Fn&&(e=Fn(e)),e.persist=Rn,e.isPropagationStopped=Vn,e.isDefaultPrevented=Wn,e.nativeEvent=e};var Un={enumerable:!1,configurable:!0,get:function(){return this.class}},qn=l.vnode;l.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={};for(var r in t){var o=t[r];if(!("value"===r&&"defaultValue"in t&&null==o||Bn&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===o?o="":"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||jn(t.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":Pn.test(r)?r=a:-1===n.indexOf("-")&&Dn.test(r)?r=r.replace(Hn,"-$&").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(t.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=F(t.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",Un)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=zn,qn&&qn(e)};var Yn=l.__r;l.__r=function(e){Yn&&Yn(e),e.__c};var $n=l.diffed;l.diffed=function(e){$n&&$n(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};var Xn=new Map;function Zn(e){var t=Xn.get(e);t&&t.destroy()}function Gn(e){var t=Xn.get(e);t&&t.update()}var Jn=null;"undefined"==typeof window?((Jn=function(e){return e}).destroy=function(e){return e},Jn.update=function(e){return e}):((Jn=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!Xn.has(e)){var t,n=null,i=window.getComputedStyle(e),r=(t=e.value,function(){a({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),o=function(t){e.removeEventListener("autosize:destroy",o),e.removeEventListener("autosize:update",c),e.removeEventListener("input",r),window.removeEventListener("resize",c),Object.keys(t).forEach((function(n){return e.style[n]=t[n]})),Xn.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",o),e.addEventListener("autosize:update",c),e.addEventListener("input",r),window.addEventListener("resize",c),e.style.overflowX="hidden",e.style.wordWrap="break-word",Xn.set(e,{destroy:o,update:c}),c()}function a(t){var r,o,c=t.restoreTextAlign,s=void 0===c?null:c,l=t.testForHeightReduction,u=void 0===l||l,h=i.overflowY;if(0!==e.scrollHeight&&("vertical"===i.resize?e.style.resize="none":"both"===i.resize&&(e.style.resize="horizontal"),u&&(r=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null}))}}(e),e.style.height=""),o="content-box"===i.boxSizing?e.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):e.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&o>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(e.style.overflow="scroll"),o=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(e.style.overflow="hidden"),e.style.height=o+"px",s&&(e.style.textAlign=s),r&&r(),n!==o&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=o),h!==i.overflow&&!s)){var d=i.textAlign;"hidden"===i.overflow&&(e.style.textAlign="start"===d?"end":"start"),a({restoreTextAlign:d,testForHeightReduction:!0})}}function c(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Zn),e},Jn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Gn),e});var Kn=Jn,Qn=function(e){return e.STYLE_CACHE="ai-chat-style-cache",e.MINIMIZE_STYLY_CHCHE="ai-chat-minimize-style-cache",e.DATA_BASE_NAME="ibiz-chat",e.DATA_TABLE_NAME="history-message",e.DATA_TABLE_KEY_NAME="id",e}(Qn||{}),ei=function(){function e(t){v(this,e),g(this,"messages",Qe([])),g(this,"materials",Qe([])),g(this,"input",Qe("")),g(this,"isLoading",Qe(!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=t,this.context=t.context,this.params=t.params,this.appDataEntityId=t.appDataEntityId,this.topicId=t.topicId,this.topic=t.topic,this.fecthHistory()}var t,n,i,r,a,c,s;return _(e,[{key:"fecthHistory",value:(s=f(h().mark((function e(){var t,n=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=7;break}return e.next=3,le.getData(Qn.DATA_BASE_NAME,Qn.DATA_TABLE_NAME,this.topicId);case 3:if(!((t=e.sent)&&t.data&&t.data.length>0)){e.next=7;break}return t.data.forEach((function(e){var t={messageid:e.messageid,state:e.state,type:e.type,role:e.role,content:e.content,suggestions:e.suggestions,completed:!0};n.addMessage(t)})),e.abrupt("return",!0);case 7:return e.abrupt("return",this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId}));case 8:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"asyncToIndexDB",value:(c=f(h().mark((function e(){var t;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.topicId){e.next=2;break}return e.abrupt("return");case 2:return t={id:this.topicId,data:this.messages.value.map((function(e){return e._origin})),timestamp:(new Date).getTime()},e.next=5,le.updateData(Qn.DATA_BASE_NAME,Qn.DATA_TABLE_NAME,t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"setInput",value:function(e){this.input.value=e||""}},{key:"addMessage",value:function(e){var t=this.messages.value.find((function(t){return t.messageid===e.messageid}));t?(t.update(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new dn(e)]),this.asyncToIndexDB()}},{key:"completeMessage",value:function(e,t){var n=this.messages.value.find((function(t){return t.messageid===e}));n&&(n.updateCompleted(t),this.messages.value=o(this.messages.value),this.asyncToIndexDB())}},{key:"replaceMessage",value:function(e){var t=this,n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==n?(this.messages.value[n]=new dn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new dn(e)]),this.asyncToIndexDB(),"DEFAULT"===e.type&&this.opts.recommendPrompt&&this.opts.recommendPrompt(this.context,this.params,{appDataEntityId:this.appDataEntityId}).then((function(n){n&&n.content&&t.updateRecommendPrompt(e,n.content)}))}},{key:"stopMessage",value:function(e){var t=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));if(-1!==t){var n=this.messages.value[t];e.content=n.content,this.messages.value[t]=new dn(e),this.messages.value=o(this.messages.value)}else this.messages.value=[].concat(o(this.messages.value),[new dn(e)]);this.asyncToIndexDB()}},{key:"stringlyMaterialResource",value:function(){var e="",t=[];return this.materials.value&&this.materials.value.length>0&&(this.materials.value.forEach((function(e){if("ossfile"===e.type){var n=e.metadata;n.state&&"successed"===n.state&&t.push(e)}else t.push(e)})),this.materials.value=[]),t&&t.length>0&&(e=he.stringify(t)),e}},{key:"question",value:(a=f(h().mark((function e(t){var n,i=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.isLoading.value=!0,this.messages.value.forEach((function(e,t){var n=e._origin;n.suggestions&&(n.suggestions=void 0,i.messages.value[t]=new dn(n))})),this.messages.value=o(this.messages.value),this.asyncToIndexDB(),(n=this.stringlyMaterialResource())?n+="\n".concat(t):n=t,this.addMessage({state:30,messageid:oe(),role:"USER",type:"DEFAULT",content:n}),e.next=10,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 10:this.opts.action&&this.opts.action("question",t),this.isLoading.value=!1;case 12:return e.prev=12,this.isLoading.value=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[0,,12,15]])}))),function(e){return a.apply(this,arguments)})},{key:"abortQuestion",value:function(){try{this.opts.abortQuestion(this)}finally{this.isLoading.value=!1}}},{key:"backfill",value:function(e){this.opts.action&&this.opts.action("backfill",e)}},{key:"deleteMessage",value:function(e){var t=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==t&&(this.messages.value.splice(t,1),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),this.opts.action&&this.opts.action("deletemsg",e)}},{key:"refreshMessage",value:(r=f(h().mark((function e(t){var n,i,r,a=arguments;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],this.isLoading.value=!0,e.prev=2,i=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})),!n){e.next=11;break}return this.messages.value.splice(i+1,this.messages.value.length-i-1),this.messages.value=o(this.messages.value),e.next=9,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 9:e.next=21;break;case 11:if(i!==this.messages.value.length-1){e.next=18;break}return this.messages.value.pop(),this.messages.value=o(this.messages.value),e.next=16,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 16:e.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",t);case 23:return e.prev=23,this.isLoading.value=!1,e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[2,,23,26]])}))),function(e){return r.apply(this,arguments)})},{key:"copyMessage",value:function(e){var t=e.realcontent;se.copy(t),this.opts.action&&this.opts.action("copymsg",e)}},{key:"resetTopic",value:(i=f(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=3;break}return e.next=3,le.deleteData(Qn.DATA_BASE_NAME,Qn.DATA_TABLE_NAME,this.topicId);case 3:this.messages.value=[],this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId});case 5:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"clearTopic",value:(n=f(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=3;break}return e.next=3,le.deleteData(Qn.DATA_BASE_NAME,Qn.DATA_TABLE_NAME,this.topicId);case 3:this.messages.value=[];case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"addMaterial",value:function(e){var t=this.materials.value.find((function(t){return t.id===e.id}));this.materials.value=t?o(this.materials.value):[].concat(o(this.materials.value),[new pn(e)])}},{key:"replaceMaterial",value:function(e,t){var n=this.materials.value.findIndex((function(t){return t.id===e}));-1!==n?(this.materials.value[n]=new pn(t),this.materials.value=o(this.materials.value)):this.materials.value=[].concat(o(this.materials.value),[new pn(t)])}},{key:"deleteMaterial",value:function(e){var t=this.materials.value.findIndex((function(t){return t.id===e.id}));-1!==t&&(this.materials.value.splice(t,1),this.materials.value=o(this.materials.value))}},{key:"updateRecommendPrompt",value:function(e,t){if(t){var n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid})),i=de.parseMixedContent(t).suggestions;i&&i.length>0&&(e.suggestions=i,-1!==n?(this.messages.value[n]=new dn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new dn(e)]),this.asyncToIndexDB())}}},{key:"handleSuggestionClick",value:(t=f(h().mark((function e(t,n,i){var r,a,c,s,l;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:-1!==(r=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})))&&((a=this.messages.value[r]._origin).suggestions=void 0,this.messages.value[r]=new dn(a),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),c=n.type,e.t0=c,e.next="action"===e.t0?7:"raw"===e.t0?21:24;break;case 7:if(!this.opts.extendToolbarClick){e.next=20;break}if(s=n.data.actionid){e.next=11;break}throw new Error("actionid不能为空");case 11:if(!(this.opts.otherToolbarItems&&this.opts.otherToolbarItems.length>0)){e.next=19;break}if(l=this.opts.otherToolbarItems.find((function(e){return e.id===s}))){e.next=15;break}throw new Error("未找到".concat(s,"标识界面行为"));case 15:return e.next=17,this.opts.extendToolbarClick(i,l,this.context,this.params,t);case 17:e.next=20;break;case 19:throw new Error("未找到".concat(s,"标识界面行为"));case 20:case 23:return e.abrupt("break",25);case 21:return e.next=23,this.question(n.data.content);case 24:throw new Error("不支持".concat(c,"推荐类型"));case 25:case"end":return e.stop()}}),e,this)}))),function(e,n,i){return t.apply(this,arguments)})}]),e}(),ti=function(){function e(t){v(this,e),g(this,"topics",Qe([])),g(this,"activedTopic",Qe(null)),g(this,"currentTopicOptions",void 0),this.chat=t}var t,n,i,r,a,c;return _(e,[{key:"fetchHistory",value:(c=f(h().mark((function e(t){var n,i,r=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.configService(t.appid,"aitopics",t.type),e.next=3,n.load();case 3:(i=e.sent)&&i.length>0&&i.forEach((function(e){r.topics.value=[].concat(o(r.topics.value),[new fn(e)])}));case 5:case"end":return e.stop()}}),e)}))),function(e){return c.apply(this,arguments)})},{key:"updateCurrentTopic",value:(a=f(h().mark((function e(t){var n,i,r,a;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.currentTopicOptions=t,n=this.topics.value.findIndex((function(e){return e.id===t.id})),i=new fn(t),-1!==n?this.topics.value.splice(n,1,new fn(t)):this.topics.value=[].concat(o(this.topics.value),[new fn(t)]),r=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),a=t.configService(t.appid,"aitopics",t.type),e.next=8,null==a?void 0:a.save(r);case 8:this.activedTopic.value=i;case 9:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"removeTopic",value:(r=f(h().mark((function e(t,n,i,r,a){var c,s,l,u,d;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=!0,!t.beforeDelete){e.next=5;break}return e.next=4,t.beforeDelete(n,i,r,a);case 4:s=e.sent;case 5:if(s){e.next=7;break}return e.abrupt("return");case 7:return-1!==(l=this.topics.value.findIndex((function(e){return e.id===r.id})))&&(this.topics.value.splice(l,1),this.topics.value=o(this.topics.value)),u=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),d=t.configService(t.appid,"aitopics",t.type),e.next=13,null==d?void 0:d.save(u);case 13:return e.next=15,le.deleteData(Qn.DATA_BASE_NAME,Qn.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 e.stop()}}),e,this)}))),function(e,t,n,i,o){return r.apply(this,arguments)})},{key:"updateTopic",value:(i=f(h().mark((function e(t,n){var i,r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),r=t.configService(t.appid,"aitopics",t.type),e.next=4,null==r?void 0:r.save(i);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"handleTopicChange",value:function(e){var t;(null===(t=this.activedTopic.value)||void 0===t?void 0:t.id)!==e.id&&(this.activedTopic.value=e,this.chat.switchAiChatController(e))}},{key:"handleTopicAction",value:(n=f(h().mark((function e(t,n,i){var r,o,a,c,s,l;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.topics.value.find((function(e){return e.id===n.id})),!(this.currentTopicOptions&&r&&r.aiChat)){e.next=12;break}if(c=r.aiChat,s=c.context,l=c.params,"DELETE"!==t){e.next=8;break}return e.next=6,this.removeTopic(this.currentTopicOptions,s,l,r,i);case 6:e.next=11;break;case 8:if("RENAME"!==t){e.next=11;break}return e.next=11,this.updateTopic(this.currentTopicOptions,n);case 11:null===(o=(a=this.currentTopicOptions).action)||void 0===o||o.call(a,t,s,l,n,i);case 12:case"end":return e.stop()}}),e,this)}))),function(e,t,i){return n.apply(this,arguments)})},{key:"newTopic",value:(t=f(h().mark((function e(){var t,n,i,r,a,c,s,l,u;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this.activedTopic.value){e.next=3;break}return e.abrupt("return");case 3:return r=i.id.split("@")[0],a=this.topics.value.filter((function(e){return e.id.startsWith(r)})),c={appid:i.appid,id:"".concat(r,"@").concat(Date.now()),type:i.type,caption:"".concat(null===(t=i.sourceCaption)||void 0===t?void 0:t.split("_")[0],"_").concat(a.length),sourceCaption:i.sourceCaption,url:i.url,aiChat:i.aiChat},s=new fn(c),this.topics.value=[].concat(o(this.topics.value),[s]),l=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),u=null===(n=this.currentTopicOptions)||void 0===n?void 0:n.configService(c.appid,"aitopics",c.type),e.next=12,null==u?void 0:u.save(l);case 12:this.handleTopicChange(s);case 13:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),ni=_((function e(t){v(this,e),this.aiChat=t})),ii=function(t){e(o,t);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 e(t,n){var i,r,o,a;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n||!n.onClick||"function"!=typeof n.onClick){e.next=6;break}return e.next=3,n.onClick(t,n,this.aiChat.context,this.aiChat.params);case 3:i=e.sent,e.next=14;break;case 6:if(!(r=this.aiChat.opts.extendToolbarClick)){e.next=13;break}return e.next=10,r(t,n,this.aiChat.context,this.aiChat.params,{});case 10:i=e.sent,e.next=14;break;case 13:console.error("未找到扩展工具栏点击事件");case 14:i&&i.data&&i.data.length>0&&(o=i.data[0],a={id:o.id,type:o.type,data:o.data||{},metadata:o.metadata||{}},n.id&&Object.assign(a.metadata,{actionId:n.id}),this.aiChat.addMaterial(a));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})}]),o}(ni),ri=function(t){e(o,t);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 e(t,n){var i,r,o,a,c,s,l,u,d,p,v=this;return h().wrap((function(e){for(;;)switch(e.prev=e.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(e){null==c||c(e),e.length>0&&e.forEach((function(e){var t=v.buildMaterialObject(e);Object.assign(t.metadata,{state:"uploading"}),v.aiChat.addMaterial(t)}))},onUpload:function(){var e=f(h().mark((function e(t,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s(t,n,{context:v.aiChat.context,params:v.aiChat.params}));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),onSuccess:function(e,t){var n={id:e.id,type:"ossfile",data:{id:e.id,name:e.name},metadata:{ext:e.ext,fileext:e.fileext,fileid:e.fileid,filename:e.filename,size:e.size,filesize:e.filesize,state:"successed"}};v.aiChat.replaceMaterial(t.name,n),null==l||l(e,t)},onError:function(e,t){var n=v.buildMaterialObject(t);Object.assign(n.metadata,{state:"failed"}),v.aiChat.replaceMaterial(t.name,n),null==u||u(e,t)},onProgress:function(e,t){null==d||d(e,t)}},new ue(p).openFilePicker();case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"buildMaterialObject",value:function(e){return{id:e.name,type:"ossfile",data:{name:e.name,id:e.name},metadata:{size:e.size,type:e.type,lastModified:e.lastModified}}}}]),o}(ni),oi=function(){function e(){v(this,e)}return _(e,null,[{key:"getMaterialHelper",value:function(e,t){return"ossfile"===e?new ri(t):new ii(t)}}]),e}(),ai=function(){function e(){v(this,e),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 ti(this)}var t,n;return _(e,[{key:"aiChat",get:function(){var e;return this.aiTopicMap.get("".concat(null===(e=this.aiTopic.activedTopic.value)||void 0===e?void 0:e.id))}},{key:"initIndexDB",value:(n=f(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le.checkTableExists(Qn.DATA_BASE_NAME,Qn.DATA_TABLE_NAME);case 2:if(e.sent){e.next=6;break}return e.next=6,le.createTable(Qn.DATA_BASE_NAME,Qn.DATA_TABLE_NAME,Qn.DATA_TABLE_KEY_NAME,!1);case 6:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"create",value:(t=f(h().mark((function e(t){var n,i,r,o,a,c,s=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initIndexDB();case 2:if(this.backupChatOptions=t,this.close(),this.container=document.createElement("div"),this.container.classList.add("ibiz-ai-chat"),document.body.appendChild(this.container),o=t.chatOptions,!t.mode||"TOPIC"!==t.mode){e.next=17;break}if(this.isMountedAiTopic){e.next=13;break}return e.next=12,this.aiTopic.fetchHistory(t.topicOptions);case 12:this.isMountedAiTopic=!0;case 13:return a=t.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,otherToolbarItems:o.otherToolbarItems}}),e.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 ei(o),this.aiTopicMap.set("".concat(null===(i=a)||void 0===i?void 0:i.id),c),K(M(wi,{aiChat:c,aiTopic:this.aiTopic,mode:t.mode?t.mode:"DEFAULT",containerOptions:t.containerOptions,caption:t.mode&&"TOPIC"===t.mode?"AI助手":o.caption,enableBackFill:null===(r=t.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(e){o.fullscreen&&o.fullscreen(e,o.context,o.params)},minimize:function(e){o.minimize&&o.minimize(e,o.context,o.params)}}),this.container),e.abrupt("return",c);case 22:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"switchAiChatController",value:function(e){var t,n,i,r,o,a=this,c=u({},this.backupChatOptions.chatOptions);(e.aiChat&&Object.assign(c,{caption:e.aiChat.caption,context:e.aiChat.context,params:e.aiChat.params,contentToolbarItems:e.aiChat.contentToolbarItems,footerToolbarItems:e.aiChat.footerToolbarItems,questionToolbarItems:e.aiChat.questionToolbarItems,otherToolbarItems:e.aiChat.otherToolbarItems,appDataEntityId:e.aiChat.appDataEntityId,topicId:e.id,topic:e,extendToolbarClick:this.backupChatOptions.chatOptions.extendToolbarClick,recommendPrompt:this.backupChatOptions.chatOptions.recommendPrompt}),this.aiTopicMap.has("".concat(e.id))?t=this.aiTopicMap.get("".concat(e.id)):(t=new ei(c),this.aiTopicMap.set("".concat(e.id),t)),this.container)&&(K(null,this.container),K(M(wi,{aiChat:t,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(e){c.fullscreen&&c.fullscreen(e,c.context,c.params)},minimize:function(e){c.minimize&&c.minimize(e,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)}}]),e}(),ci=(t("chat",new ai),new ee("chat-input-material")),si=function(e){var t=e.controller.materials;return _t("div",{className:ci.b(),children:t.value.map((function(t){return _t(nn,{material:t,disabled:!1,controller:e.controller},t.id)}))})},li=function(e){var t=e.children,n=e.actions,i=e.content,r=e.position,o=void 0===r?"bottom":r,c=e.isOpen,s=e.onToggleOpen,l=e.onAction,h=new ee("pop"),d=Ie(yi),f=a(Se(c||!1),2),p=f[0],v=f[1],m=Me(null),_=Me(null);Ae((function(){void 0!==c&&v(c)}),[c]),Ae((function(){return _.current||(_.current=document.createElement("div"),_.current.className=h.b("content-container"),document.body.appendChild(_.current)),function(){_.current&&document.body.removeChild(_.current)}}),[]),Ae((function(){var e=function(e){!m.current||m.current.contains(e.target)||e.target.closest(".".concat(h.b()))||e.target.closest(".ibiz-quick-edit")||e.target.closest(".ibiz-picker__transfer")||(v(!1),null==s||s(!1))};return p&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[p,s]);return _t("span",{className:"".concat(h.b("trigger-container")),children:[_t("span",{className:"".concat(h.b("trigger-element")),ref:m,onClick:function(e){e.stopPropagation();var t=!p;v(t),null==s||s(t)},children:t}),p&&_.current&&In(_t("div",{className:"".concat(h.b()," pop-").concat(o),style:function(){if(!m.current)return{};var e=m.current.getBoundingClientRect(),t={position:"absolute",zIndex:d.zIndex+1},n={bottom:{top:e.bottom+window.scrollY,left:e.left+window.scrollX},top:{bottom:window.innerHeight-e.top+window.scrollY,left:e.left+window.scrollX},left:{top:e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX},right:{top:e.top+window.scrollY,left:e.right+window.scrollX},"top-left":{bottom:window.innerHeight-e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX}};return u(u({},t),n[o])}(),children:i||(null==n?void 0:n.map((function(e){return _t("div",{title:e.caption,className:h.e("item"),onMouseDown:function(t){t.stopPropagation(),null==l||l(e.id,t)},children:[e.icon,_t("div",{className:h.em("item","caption"),children:e.caption})]},e.id)})))}),_.current)]})},ui=new ee("chat-input"),hi=window.SpeechRecognition||window.webkitSpeechRecognition,di=function(e){var t,n=a(Se(!1),2),i=n[0],r=n[1],o=Me(null),c=e.controller.input,s=pt(!1),l=Me();hi&&!l.current&&(l.current=new hi,l.current.onstart=function(){s.value=!0},l.current.onend=function(){s.value=!1},l.current.onresult=function(e){var t,n=null===(t=e.results)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t[0])||void 0===t?void 0:t.transcript;n&&(c.value="".concat(c.value).concat(n))});var u=Le((function(e){c.value=e.target.value}),[c]),d=vt((function(){return c.value.length<=0}));Ae((function(){return o.current&&Kn(o.current),function(){o.current&&Kn.destroy(o.current)}}),[o]);var p=Le(f(h().mark((function t(){var n;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=c.value,c.value="",t.next=5,e.controller.question(n);case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])}))),[c]),v=Le(f(h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{e.controller.abortQuestion()}catch(n){console.error(n)}case 1:case"end":return t.stop()}}),t)}))),[c]),m=function(){var t=f(h().mark((function t(n){var i;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=oi.getMaterialHelper("ossfile",e.controller),t.next=3,i.excuteAction(n);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_=function(){var t=f(h().mark((function t(n,i){var o;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=oi.getMaterialHelper("common",e.controller),t.next=3,o.excuteAction(n,i);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}();return _t("div",{className:ui.b("wrapper"),children:[_t("div",{className:ui.b("material-wrapper"),children:_t(si,{controller:e.controller})}),_t("div",{className:ui.b("main-wrapper"),children:[_t("textarea",{className:ui.e("textarea"),type:"text",rows:6,autoCorrect:"off",autoCapitalize:"off",autoComplete:"off",value:c,onInput:u,onKeyDown:function(e){"Enter"!==e.code||e.isComposing||(e.stopPropagation(),!1===e.shiftKey&&p())},ref:o,disabled:e.controller.isLoading.value}),_t("div",{className:ui.b("action-wrapper"),children:[_t("div",{className:"".concat(ui.be("action-wrapper","action-item")," ").concat(ui.is("disabled",e.controller.isLoading.value)),title:"上传资料",children:_t(li,{content:_t("div",{className:ui.b("pop-actions"),children:[_t("div",{className:ui.b("pop-action-item"),onClick:function(e){m(e)},children:[_t("span",{className:ui.b("pop-action-item-icon"),children:_t(Bt,{})}),_t("span",{className:ui.b("pop-action-item-title"),children:"文件资料"})]}),null===(t=e.questionToolbarItems)||void 0===t?void 0:t.map((function(e){var t,n,i;return _t("div",{className:ui.b("pop-action-item"),onClick:function(t){_(t,e)},children:[_t("span",{className:ui.b("pop-action-item-icon"),children:"function"==typeof e.icon?e.icon():(null===(t=e.icon)||void 0===t?void 0:t.showIcon)&&_t(L,{children:null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):null})}),_t("span",{className:ui.b("pop-action-item-title"),children:e.label})]},e.id)}))]}),position:"top-left",isOpen:i,onToggleOpen:r,children:_t(Ht,{})})}),_t("div",{title:s.value?"语音输入中...":"语音输入",className:"".concat(ui.be("action-wrapper","action-item")," ").concat(ui.is("disabled",e.controller.isLoading.value)),onClick:function(){l.current&&!s.value&&l.current.start()},children:s.value?_t(Mt,{}):_t(At,{})}),e.controller.isLoading.value?_t("div",{title:"停止生成",className:"".concat(ui.be("action-wrapper","action-item")),onClick:v,children:_t(Rt,{})}):_t("div",{title:"发送消息",className:"".concat(ui.be("action-wrapper","action-item")," ").concat(ui.is("disabled",d.value)),onClick:p,children:_t(wt,{})})]})]})]})},fi=new ee("chat-topic-item"),pi=function(e){var t=e.controller,n=e.topic,i=e.onClick,r=e.onAction,o=Me(null),c=vt((function(){var e;return(null===(e=t.activedTopic.value)||void 0===e?void 0:e.id)===n.id})),s=a(Se(!1),2),l=s[0],u=s[1],h=pt(!1);return _t("div",{className:"".concat(fi.b()," ").concat(fi.is("active",c.value)," ").concat(fi.is("edit",h.value)),onClick:i.bind(void 0),children:[_t("div",{className:fi.e("caption"),title:n.caption,children:h.value?_t("input",{ref:o,value:n.caption,onBlur:function(e){e.stopPropagation(),h.value=!1,r("RENAME",e)},onKeyDown:function(e){e.stopPropagation(),"Enter"===e.key&&(h.value=!1)},onClick:function(e){return e.stopPropagation()},onChange:function(e){return(t=e).stopPropagation(),void(n.data.caption=null===(i=t.target)||void 0===i?void 0:i.value);var t,i},className:fi.em("caption","editor")}):_t("span",{className:fi.em("caption","text"),children:n.caption})}),!h.value&&_t("div",{className:fi.e("icon"),children:[_t("span",{title:"跳转主视图",className:fi.em("icon","item"),onClick:function(e){e.stopPropagation(),r("LINK",e)}.bind(void 0),children:_t(Lt,{className:fi.b("link-icon")})}),c.value?null:_t(li,{actions:[{id:"RENAME",caption:"重命名",icon:_t(qt,{})},{id:"DELETE",caption:"删除话题",icon:_t(It,{})}],position:"bottom",isOpen:l,onToggleOpen:u,onAction:function(e,t){"DELETE"===e?r("DELETE",t):"RENAME"===e&&(h.value=!0,setTimeout((function(){var e;null===(e=o.current)||void 0===e||e.focus()}),100)),u(!1)}.bind(void 0),children:_t("span",{className:fi.em("icon","item"),title:"更多",children:_t(Ot,{className:fi.e("more-icon")})})})]})]})},vi=new ee("chat-topics"),mi=function(e){var t=e.controller.topics,n=Me(null);return Ae((function(){var e=n.current;if(e){var t=e.querySelector(".ibiz-chat-topic-item.is-active");null==t||t.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[e.controller.activedTopic.value]),_t("div",{ref:n,className:vi.b(),children:t.value.map((function(t){return _t(pi,{topic:t,controller:e.controller,onClick:function(){return function(t){e.controller.handleTopicChange(t)}(t)},onAction:function(n,i){return function(t,n,i){e.controller.handleTopicAction(t,n,i)}(n,t,i)}},t.id)}))})},_i=new ee("chart-minimize"),gi=function(e){var t=Me(null),n=a(Se(""),2),i=n[0],r=n[1],o=a(Se(0),2),c=o[0],s=o[1],l=Me(!1),u={x:(window.innerWidth-86)/window.innerWidth,y:(window.innerHeight-86)/window.innerHeight},h=vt((function(){var t=e.controller.messages.value[e.controller.messages.value.length-1];return!!t&&("ASSISTANT"===t.role&&20===t.state&&!0!==t.completed)})),d=vt((function(){var t="";if(!h.value)return r(""),s(0),t;var n=e.controller.messages.value[e.controller.messages.value.length-1];if(t=n.content,-1!==n.content.indexOf("")){var i=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="";return-1===n?(i=e.slice(t+7),r=""):(i=e.slice(t+7,n),r=e.slice(n+8)),{thoughtContent:i,answerContent:r}}(n.content);t=i.thoughtContent+i.answerContent}return t})),f=function(){Object.assign(t.current.style,{left:"".concat(100*u.x,"%"),top:"".concat(100*u.y,"%")}),localStorage.setItem(Qn.MINIMIZE_STYLY_CHCHE,JSON.stringify(u))};return Ae((function(){var e,n=localStorage.getItem(Qn.MINIMIZE_STYLY_CHCHE);if(n){var i=JSON.parse(n);fe(i)&&Object.assign(u,i)}f(),(e=t.current)&&(e.onmousedown=function(t){document.body.style.userSelect="none";var n=t.clientX-e.offsetLeft,i=t.clientY-e.offsetTop,r=Date.now(),o=function(e){var t=56/window.innerWidth,r=56/window.innerHeight,o=pe(e.clientX-n,e.clientY-i,t,r),a=o.x,c=o.y;Object.assign(u,{x:a,y:c}),requestAnimationFrame((function(){f()}))};document.addEventListener("mousemove",o),document.addEventListener("mouseup",(function e(){var t=Date.now();l.current=t-r>300,document.body.style.userSelect="",document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",e)}))})}),[]),Ae((function(){if(c1-e?this.calcSideModeStyle(i1-t&&(this.data.window.y=1-a)),this.setStyle()}},{key:"registerDragDialog",value:function(){var e=this;this.dragHandle.current.onmousedown=function(t){if(!e.state.isFullScreen){document.body.style.userSelect="none";var n=t.clientX-e.containerRef.current.offsetLeft,i=t.clientY-e.containerRef.current.offsetTop,r=function(t){if(!e.disabled){e.data.showMode="window";var r=pe(t.clientX-n,t.clientY-i,e.data.window.width,e.data.window.height),o=r.x,a=r.y;Object.assign(e.data.window,{x:o,y:a}),e.setStyle()}};document.addEventListener("mousemove",r),document.addEventListener("mouseup",(function t(){document.body.style.userSelect="",document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t),e.disabled||e.snapToEdge()}))}}}},{key:"registerDragDialogBorder",value:function(){var e=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(t){if(!e.state.isFullScreen){var n="side"===e.data.showMode?e.data.side:e.data.window;n.x=t.rect.left/window.innerWidth,n.y=t.rect.top/window.innerHeight,n.width=t.rect.width/window.innerWidth,n.height=t.rect.height/window.innerHeight,e.setStyle()}},start:function(){e.disabled=!0,document.body.style.userSelect="none"},end:function(){e.disabled=!1,document.body.style.userSelect=""}}})}},{key:"handleFullScreenChange",value:function(){this.setState({isFullScreen:null!==document.fullscreenElement})}},{key:"componentDidMount",value:function(){this.handleFullScreenChange=this.handleFullScreenChange.bind(this);var e=localStorage.getItem(Qn.STYLE_CACHE);if(e){var t=JSON.parse(e);t.side&&fe(t.side)&&t.window&&fe(t.window)&&Object.assign(this.data,t)}this.setStyle(),this.registerDragDialog(),this.registerDragDialogBorder(),document.addEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"close",value:function(){this.props.close()}},{key:"fullScreen",value:function(){var e=this.containerRef.current;e&&(e.requestFullscreen(),this.props.fullscreen(!0))}},{key:"closeFullScreen",value:function(){var e;this.state.isFullScreen&&(null===(e=document)||void 0===e||e.exitFullscreen(),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.setState({isMinimize:!1}),this.props.minimize(!1)}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"render",value:function(){return _t(yi.Provider,{value:this.containerContext,children:_t("div",{className:"".concat(this.ns.b()),children:[_t("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:[_t("div",{ref:this.dragHandle,className:this.ns.b("header"),children:[_t("div",{className:this.ns.b("header-caption"),children:this.props.caption||"AI助手"}),_t("div",{className:this.ns.b("header-action-wrapper"),children:[_t("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:_t(Nt,{})}),this.state.isFullScreen?_t("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:_t(Tt,{})}):_t("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:_t(Ct,{})}),_t("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:_t(gt,{})})]})]}),"TOPIC"===this.props.mode?_t("div",{className:"".concat(this.ns.b("main")),children:[_t("div",{className:"".concat(this.ns.be("main","left")),children:_t(mi,{controller:this.props.aiTopic})}),_t("div",{className:"".concat(this.ns.be("main","right")),children:[_t("div",{className:this.ns.b("content"),children:_t(yn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(mn,{data:this.props.aiTopic.activedTopic.value,type:"footer",className:this.ns.e("toolbar"),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(di,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}):_t("div",{className:"".concat(this.ns.be("main","default")),children:[_t("div",{className:this.ns.b("content"),children:_t(yn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(mn,{type:"footer",data:this.props.aiTopic.activedTopic.value,className:this.ns.e("toolbar"),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(di,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}),_t(gi,{title:this.props.caption||"AI助手",controller:this.props.aiChat,isMinimize:this.state.isMinimize,onClick:this.exitMinimize.bind(this)})]})})}}]),o}(I);t("ChatContainer",wi)}}}))}(); diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.16/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.16/polyfills.legacy.js new file mode 100644 index 0000000000000000000000000000000000000000..c8c7654431885af1a2dc12a9fe73b198407bf314 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.16/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+""},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+""},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="\t\n\v\f\r                 \u2028\u2029\ufeff",JE=L,qE=Ao,KE=VE,YE=S("".replace),XE=RegExp("^["+KE+"]+"),QE=RegExp("(^|[^"+KE+"])["+KE+"]+$"),ZE=function(t){return function(r){var e=qE(JE(r));return 1&t&&(e=YE(e,XE,"")),2&t&&(e=YE(e,QE,"$1")),e}},tx={start:ZE(1),end:ZE(2),trim:ZE(3)},rx=te.PROPER,ex=o,nx=VE,ox=tx.trim;ro({target:"String",proto:!0,forced:function(t){return ex((function(){return!!nx[t]()||"​…᠎"!=="​…᠎"[t]()||rx&&nx[t].name!==t}))}("trim")},{trim:function(){return ox(this)}});var ix=Dt,ux=hn,ax=co,cx=mo,fx=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=ix(this),e=ux(r),n=arguments.length;if(n){fx(e+n);for(var o=e;o--;){var i=o+n;o in r?r[i]=r[o]:cx(r,i)}for(var u=0;uo;)for(var a,c=mx(arguments[o++]),f=i?Sx(px(c),i(c)):px(c),s=f.length,l=0;s>l;)a=f[l++],sx&&!hx(u,c,a)||(e[a]=c[a]);return e}:bx,xx=Ex;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==xx},{assign:xx});var Ox={exports:{}},jx=o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Ix=o,Tx=B,Rx=j,Px=jx,Ax=Object.isExtensible,kx=Ix((function(){Ax(1)}))||Px?function(t){return!!Tx(t)&&((!Px||"ArrayBuffer"!==Rx(t))&&(!Ax||Ax(t)))}:Ax,Cx=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),Nx=ro,Lx=S,Fx=pe,Mx=B,_x=Gt,Dx=Rr.f,Ux=Qe,$x=mw,Gx=kx,zx=Cx,Wx=!1,Bx=Vt("meta"),Hx=0,Vx=function(t){Dx(t,Bx,{value:{objectID:"O"+Hx++,weakData:{}}})},Jx=Ox.exports={enable:function(){Jx.enable=function(){},Wx=!0;var t=Ux.f,r=Lx([].splice),e={};e[Bx]=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!!c(this,t)}}),hO(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)}}),wO&&lO(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=xO(r),i=xO(n);yO(t,r,(function(t,r){EO(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)?mO("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,mO(void 0,!0))}),e?"entries":"values",!e,!0),bO(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=Yx[t],a=u&&u.prototype,c=u,f={},s=function(t){var r=Xx(a[t]);Zx(a,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!iO(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(Qx(t,!nO(u)||!(o||a.forEach&&!uO((function(){(new u).entries().next()})))))c=e.getConstructor(r,t,n,i),tO.enable();else if(Qx(t,!0)){var l=new c,h=l[i](o?{}:-0,1)!==l,v=uO((function(){l.has(1)})),p=aO((function(t){new u(t)})),d=!o&&uO((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((c=r((function(t,r){eO(t,a);var e=fO(new u,t,c);return oO(r)||rO(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,Kx({global:!0,constructor:!0,forced:c!==u},f),cO(c,t),o||e.setStrong(c,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),OO);var jO,IO=ro,TO=Fu,RO=n.f,PO=sn,AO=Ao,kO=_E,CO=L,NO=UE,LO=TO("".startsWith),FO=TO("".slice),MO=Math.min,_O=NO("startsWith");IO({target:"String",proto:!0,forced:!!(_O||(jO=RO(String.prototype,"startsWith"),!jO||jO.writable))&&!_O},{startsWith:function(t){var r=AO(CO(this));kO(t);var e=PO(MO(arguments.length>1?arguments[1]:void 0,r.length)),n=AO(t);return LO?LO(r,n,e):FO(r,e,e+n.length)===n}});var DO=ro,UO=Ms.findIndex,$O=sm,GO="findIndex",zO=!0;GO in[]&&Array(1)[GO]((function(){zO=!1})),DO({target:"Array",proto:!0,forced:zO},{findIndex:function(t){return UO(this,t,arguments.length>1?arguments[1]:void 0)}}),$O(GO);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=tx.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)}.ibiz-markdown-message-footer{padding:10px 0}@keyframes circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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-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%;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:10px 16px;margin:0;font-size:14px;line-height:1.5;color:var(--color-fg-default);word-wrap:break-word;background:#e7f8ff;text-size-adjust:100%;background-color:var(--ibiz-ai-chat-background-color-light);border-radius:var(--ibiz-ai-chat-border-radius)}.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--material{gap:8px;display:flex;align-items:center;flex-flow:row-reverse wrap;margin-bottom:8px}.ibiz-user-message-question__content .cherry{min-height:0px;border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-user-message-question__content .cherry-markdown p{margin:0}.ibiz-user-message-question__content .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-user-message-question__content .cherry-previewer{padding:0;border:0;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color-light)}.ibiz-user-message-question__content .cherry-previewer figure{max-width:1200px}.ibiz-user-message-question__content .cherry-previewer figure>svg{width:100%;min-height:100px}.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock]{position:relative!important;display:flex;padding-top:24px}.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock] .cherry-edit-code-block,.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock] .cherry-copy-code-block{position:absolute;top:0}.ibiz-user-message-question__content .anchor{display:none!important}.ibiz-user-message-question__user-header{width:100%;height:32px;display:flex;margin-bottom:8px;align-items:center;justify-content:end}.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:10px 16px;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{display:flex;padding:6px 10px;justify-content:end}.ibiz-unknown-message__content{padding:10px 16px;color:#000;width:max-content;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-item{display:flex;cursor:pointer;position:relative;align-items:center;white-space:nowrap}.ibiz-chat-toolbar-item__content{display:flex;align-items:center;white-space:nowrap}.ibiz-chat-toolbar-item__content--icon{width:18px;height:18px;font-size:18px;display:flex;flex-shrink:0;align-items:center;justify-content:center}.ibiz-chat-toolbar-item__content--label,.ibiz-chat-toolbar-item__more{display:flex;align-items:center}.ibiz-chat-toolbar-item__more--icon{font-size:18px}.ibiz-chat-toolbar-item-default{font-size:14px;width:fit-content;color:var(--ibiz-ai-chat-color-2)}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__content{gap:6px;line-height:28px;padding:2px 14px;border-radius:12px;background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-toolbar-item-default.is-disabled{cursor:not-allowed}.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__content,.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__more{background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__content:hover,.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__more:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-default.is-more .ibiz-chat-toolbar-item__content{padding:2px 8px 2px 14px;border-radius:12px 0 0 12px}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__more{height:32px;padding:2px 14px 2px 8px;border-radius:0 12px 12px 0;border-left:1px solid var(--ibiz-ai-chat-border-color);background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-toolbar-item-circle{height:32px;padding:6px;max-width:32px;overflow:hidden;font-size:12px;white-space:nowrap;border-radius:15px;transition:max-width .8s ease;border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-toolbar-item-circle.is-disabled{cursor:not-allowed;color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-circle: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-item-circle .ibiz-chat-toolbar-item__content--label{font-size:14px;margin-left:8px;width:calc(100% - 32px)}.ibiz-chat-toolbar-item-dropdown{right:0;gap:4px;bottom:36px;padding:4px;display:flex;max-width:150px;border-radius:6px;position:absolute;flex-direction:column;background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-toolbar-item-dropdown__item{gap:6px;display:flex;padding:0 8px;cursor:pointer;line-height:32px;border-radius:6px;align-items:center}.ibiz-chat-toolbar-item-dropdown__item.is-disabled{cursor:not-allowed;background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-dropdown__item:hover:not(.is-disabled){background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-dropdown__item--icon{width:18px;height:18px;font-size:18px;display:flex;flex-shrink:0;align-items:center;justify-content:center}.ibiz-chat-toolbar-item-dropdown__item--label{flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ibiz-chat-toolbar{display:flex;flex-wrap:wrap;align-items:center}.ibiz-chat-toolbar .ibiz-chat-toolbar-item:not(:first-child){margin-left:6px}.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{width:calc(100% - 12px);height:calc(100% - 12px);margin:6px;overflow:hidden auto}.ibiz-chat-messages::-webkit-scrollbar{width:6px}.ibiz-chat-messages::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-wrapper{max-height:72px;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:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-input__textarea::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);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-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{gap:4px;padding:4px;display:flex;min-width:120px;border-radius:8px;flex-direction:column;background-color:var(--ibiz-color-bg-3);border:1px solid var(--ibiz-color-border)}.ibiz-pop__item{display:flex;padding:0 8px;cursor:pointer;line-height:32px;border-radius:6px;align-items:center}.ibiz-pop__item:hover{background-color:var(--ibiz-color-primary-hover)}.ibiz-pop__item--caption{min-width:0;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-pop__item svg{width:16px;height:16px;flex-shrink:0;margin-right:8px;fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-topic-item{height:38px;display:flex;padding:0 8px;cursor:pointer;border-radius:12px;position:relative;align-items:center;font-size:var(--ibiz-font-size-regular)}.ibiz-chat-topic-item:hover:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item:hover:not(.is-edit) .ibiz-chat-topic-item__icon{opacity:1}.ibiz-chat-topic-item.is-active:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item.is-edit{border:2px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-topic-item__caption{width:100%;height:100%;display:flex;align-items:center}.ibiz-chat-topic-item__caption--text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-topic-item__caption--editor{width:100%;height:100%;border:none;outline:none;color:var(--ibiz-ai-chat-color);background:var(--ibiz-ai-chat-background-color)}.ibiz-chat-topic-item__icon{top:50%;gap:8px;opacity:0;right:10px;height:24px;display:flex;outline:none;padding:0 8px;border-radius:8px;position:absolute;align-items:center;justify-content:flex-end;transform:translateY(-50%);color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item__icon--item{font-size:12px}.ibiz-chat-topics{height:100%;padding:8px;overflow-y:auto}.ibiz-chat-minimize{width:56px;height:56px;display:flex;z-index:99999;cursor:pointer;position:absolute;border-radius:50%;align-items:center;justify-content:center}.ibiz-chat-minimize.is-hidden{display:none}.ibiz-chat-minimize.is-show-halo{width:90px;height:90px;background-size:cover;background-position:center;background-repeat:no-repeat;background-image:url(assets/gif/halo.gif)}.ibiz-chat-minimize__content{width:56px;height:56px;display:flex;border-radius:50%;align-items:center;justify-content:center;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color)}.ibiz-chat-minimize__content:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-minimize__content svg{fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-minimize__content.is-show-border{border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover{left:50%;bottom:90px;padding:8px;display:block;font-size:12px;border-radius:8px;position:absolute;transform:translate(-50%);box-shadow:0 2px 8px rgba(0,0,0,.1);background-color:var(--ibiz-ai-chat-background-color);color:var(--ibiz-ai-chat-color);border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover .typewriter{direction:rtl;overflow:hidden;max-width:200px;width:fit-content;white-space:nowrap;text-overflow:ellipsis;animation:typing 3s steps(40,end)}@keyframes blink{0%,to{opacity:0}50%{opacity:1}}@keyframes typing{0%{width:0}to{width:100%}}@keyframes blink-caret{0%,to{border-color:transparent}50%{border-color:var(--ibiz-ai-chat-color)}}.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-ai-chat-scroll-bar-width: 8px;--ibiz-ai-chat-scroll-bar-height: 8px;--ibiz-ai-chat-scroll-bar-radius: 4px}.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__toolbar{margin:0;left:20px;gap:8px 4px;bottom:118px;min-height:48px;position:absolute;justify-content:center;width:calc(100% - 40px)}.ibiz-chat-container__toolbar.is-has-materials{bottom:180px}.ibiz-chat-container *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-container *::-webkit-scrollbar-thumb{border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.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-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.17/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.17/index.system.min.js new file mode 100644 index 0000000000000000000000000000000000000000..ddecb6ee54573333b84fff361ffce208ff066434 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.17/index.system.min.js @@ -0,0 +1 @@ +!function(){function e(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)}function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,n)}function n(e){var t=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(e){return!1}}();return function(){var n,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}(this,n)}}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||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(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(e,t)||c(e,t)||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(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);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;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:I(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function d(e,t,n,i,r,o,a){try{var c=e[o](a),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(i,r)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){d(o,i,r,a,c,"next",e)}function c(e){d(o,i,r,a,c,"throw",e)}a(void 0)}))}}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===c[a]&&(c[a]=e.defaultProps[a]);return O(e,c,i,o,null)}function O(e,t,n,i,r){var o={type:e,props:t,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 L(e){return e.children}function I(e,t){this.props=e,this.context=t}function z(e,t){if(null==t)return e.__?z(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&y.sort(k));H.__r=0}function B(e,t,n,i,r,o,a,c,s,l,u){var h,d,f,p,v,m,_,g,y,w=0,b=i&&i.__k||T,k=b.length,x=k,N=t.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=V(p,b,_=h+w,x))?f=C:(f=b[g]||C,b[g]=void 0,x--),$(e,p,f,r,o,a,c,s,l,u),v=p.__e,(d=p.ref)&&f.ref!=d&&(f.ref&&Z(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&&w--:g!==_&&(g===_+1?w++:g>_?x>N-_?w+=g-_:w--:w=g<_&&g==_-1?g-_:0),_=h+w,"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(e,v,s):s=j(p,s,e),"function"==typeof n.type&&(n.__d=s))):(f=b[h])&&null==f.key&&f.__e&&(f.__e==s&&(f.__=i,s=z(f)),G(f,f,!1),b[h]=null);for(n.__e=m,h=k;h--;)null!=b[h]&&("function"==typeof n.type&&null!=b[h].__e&&b[h].__e==n.__d&&(n.__d=b[h].__e.nextSibling),G(b[h],b[h]))}function j(e,t,n){for(var i,r=e.__k,o=0;r&&o(null!=s?1:0))for(;a>=0||c=0){if((s=t[a])&&r==s.key&&o===s.type)return a;a--}if(c0&&void 0!==arguments[0]?arguments[0]:"";return Q(this.namespace,this.block,e,"","")}},{key:"e",value:function(e){return e?Q(this.namespace,this.block,"",e,""):""}},{key:"m",value:function(e){return e?Q(this.namespace,this.block,"","",e):""}},{key:"be",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,t,""):""}},{key:"em",value:function(e,t){return e&&t?Q(this.namespace,this.block,"",e,t):""}},{key:"bm",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,"",t):""}},{key:"bem",value:function(e,t,n){return e&&t&&n?Q(this.namespace,this.block,e,t,n):""}},{key:"is",value:function(e,t){return e&&t?"".concat("is-").concat(e):""}},{key:"cssVar",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarName(n)]=e[n]);return t}},{key:"cssVarBlock",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarBlockName(n)]=e[n]);return t}},{key:"cssVarName",value:function(e){return"--".concat(this.namespace,"-").concat(e)}},{key:"cssVarBlockName",value:function(e){return"--".concat(this.namespace,"-").concat(this.block,"-").concat(e)}}]),e}();function te(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ne(e,t){for(var n,i="",r=0,o=-1,a=0,c=0;c<=e.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}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(o+1,c):i=e.slice(o+1,c),r=c-o-1;o=c,a=0}else 46===n&&-1!==a?++a:a=-1}return i}var ie={resolve:function(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var r;i>=0?r=arguments[i]:(void 0===e&&(e=process.cwd()),r=e),te(r),0!==r.length&&(t=r+"/"+t,n=47===r.charCodeAt(0))}return t=ne(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(te(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=ne(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return te(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":ie.normalize(e)},relative:function(e,t){if(te(e),te(t),e===t)return"";if((e=ie.resolve(e))===(t=ie.resolve(t)))return"";for(var n=1;nc){if(47===t.charCodeAt(o+l))return t.slice(o+l+1);if(0===l)return t.slice(o+l)}else r>c&&(47===e.charCodeAt(n+l)?s=l:0===l&&(s=0));break}var u=e.charCodeAt(n+l);if(u!==t.charCodeAt(o+l))break;47===u&&(s=l)}var h="";for(l=n+s+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===h.length?h+="..":h+="/..");return h.length>0?h+t.slice(o+s):(o+=s,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(te(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,r=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');te(e);var n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,c=-1;for(n=e.length-1;n>=0;--n){var s=e.charCodeAt(n);if(47===s){if(!o){i=n+1;break}}else-1===c&&(o=!1,c=n+1),a>=0&&(s===t.charCodeAt(a)?-1==--a&&(r=n):(a=-1,r=c))}return i===r?r=c:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){te(e);for(var t=-1,n=0,i=-1,r=!0,o=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(r=!1,i=a+1),46===c?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=a+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==p(e))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+p(e));return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}("/",e)},parse:function(e){te(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0),r=47===i;r?(t.root="/",n=1):n=0;for(var o=-1,a=0,c=-1,s=!0,l=e.length-1,u=0;l>=n;--l)if(47!==(i=e.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&&(t.base=t.name=0===a&&r?e.slice(1,c):e.slice(a,c)):(0===a&&r?(t.name=e.slice(1,o),t.base=e.slice(1,c)):(t.name=e.slice(a,o),t.base=e.slice(a,c)),t.ext=e.slice(o,c)),a>0?t.dir=e.slice(0,a-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};function re(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function oe(){return"".concat(re()+re(),"-").concat(re(),"-").concat(re(),"-").concat(re(),"-").concat(re()).concat(re()).concat(re())}ie.posix=ie;var ae=/]*>[\s\S]*?<\/svg>/;function ce(e){return ae.test(e)}var se=function(){function e(){v(this,e)}return _(e,null,[{key:"copy",value:function(e){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=e,this.inputElement.select(),document.execCommand("copy")}}]),e}();g(se,"inputElement",null);var le=function(){function e(){v(this,e)}var t,n,i,r,o,a,c,s,l,u;return _(e,null,[{key:"checkDataBaseExists",value:(u=f(h().mark((function e(t){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,indexedDB.databases();case 3:return n=e.sent,e.abrupt("return",n.some((function(e){return e.name===t})));case 7:return e.prev=7,e.t0=e.catch(0),console.error("检查数据库是否存在时出错:",e.t0),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])}))),function(e){return u.apply(this,arguments)})},{key:"deleteDatabase",value:(l=f(h().mark((function t(n){var i,r;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.lastLink&&(null===(i=(r=e.lastLink).close)||void 0===i||i.call(r)),t.abrupt("return",new Promise((function(e,t){var i=indexedDB.deleteDatabase(n);i.onsuccess=function(){e(!0)},i.onerror=function(){e(!1)},i.onblocked=function(){console.warn("删除数据库 ".concat(n," 被阻塞,可能有其他连接正在使用该数据库。")),t(new Error("删除数据库 ".concat(n," 被阻塞")))}})));case 2:case"end":return t.stop()}}),t)}))),function(e){return l.apply(this,arguments)})},{key:"checkTableExists",value:(s=f(h().mark((function t(n,i){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.checkDataBaseExists(n);case 2:if(t.sent){t.next=5;break}return t.abrupt("return",!1);case 5:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onupgradeneeded=function(t){e.db=t.target.result,e.version=e.db.version},o.onsuccess=function(n){e.db=n.target.result,e.lastLink=o.result;var r=e.db.objectStoreNames.contains(i);o.result.close(),t(r)},o.onerror=function(e){r(e.target.error)}})));case 6:case"end":return t.stop()}}),t)}))),function(e,t){return s.apply(this,arguments)})},{key:"createTable",value:(c=f(h().mark((function t(n,i,r){var o,a=arguments;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=a.length>3&&void 0!==a[3]&&a[3],t.abrupt("return",new Promise((function(t){var a,c;e.version+=1,e.lastLink&&(null===(a=(c=e.lastLink).close)||void 0===a||a.call(c));var s=indexedDB.open(n,e.version);s.onupgradeneeded=function(t){if(e.db=t.target.result,!e.db.objectStoreNames.contains(i)){var n={};r?n.keyPath=r:o&&(n.autoIncrement=!0),e.db.createObjectStore(i,n)}},s.onsuccess=function(){e.lastLink=s.result,s.result.close(),t(!0)},s.onerror=function(){t(!1)}})));case 2:case"end":return t.stop()}}),t)}))),function(e,t,n){return c.apply(this,arguments)})},{key:"deleteTable",value:(a=f(h().mark((function t(n,i){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){var r,o;e.version+=1,e.lastLink&&(null===(r=(o=e.lastLink).close)||void 0===r||r.call(o));var a=indexedDB.open(n,e.version);a.onupgradeneeded=function(t){e.db=t.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)&&e.db.deleteObjectStore(i)},a.onsuccess=function(n){e.db=n.target.result,e.lastLink=a.result,a.result.close(),t(!0)},a.onerror=function(){a.result.close(),t(!1)}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t){return a.apply(this,arguments)})},{key:"addData",value:(o=f(h().mark((function t(n,i,r){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).add(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(null)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return o.apply(this,arguments)})},{key:"deleteData",value:(r=f(h().mark((function t(n,i,r){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).delete(r);o.onsuccess=function(e){t(!0)},o.onerror=function(){t(!1)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"updateData",value:(i=f(h().mark((function t(n,i,r){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).put(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(r)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"getData",value:(n=f(h().mark((function t(n,i,r){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var c=e.db.transaction([i],"readonly").objectStore(i).get(r);c.onsuccess=function(e){t(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 t.stop()}}),t)}))),function(e,t,i){return n.apply(this,arguments)})},{key:"getAllData",value:(t=f(h().mark((function t(n,i){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=o.result,e.db.objectStoreNames.contains(i)){var r=e.db.transaction([i],"readonly").objectStore(i).getAll();r.onsuccess=function(e){t(r.result)},r.onerror=function(){t([])}}o.result.close()},o.onerror=function(){o.result.close(),r()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}]),e}();g(le,"version",1),g(le,"db",null),g(le,"lastLink",void 0);var ue=function(){function e(t){v(this,e),g(this,"options",void 0),this.options=u({multiple:!0,accept:"*/*",maxSize:5242880},t)}var t,n;return _(e,[{key:"openFilePicker",value:function(){var e=this,t=document.createElement("input");t.type="file",t.multiple=this.options.multiple,t.accept=this.options.accept||"",t.onchange=function(t){var n=Array.from(t.target.files||[]);e.handleFiles(n)},t.click()}},{key:"handleFiles",value:(n=f(h().mark((function e(t){var n,i,r,o=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.length){e.next=2;break}return e.abrupt("return");case 2:return r=t.filter((function(e){var t,n;return!(o.options.maxSize&&e.size>o.options.maxSize&&(null===(t=(n=o.options).onError)||void 0===t||t.call(n,new Error("文件大小超过限制 (".concat(o.formatSize(e.size)," > ").concat(o.formatSize(o.options.maxSize),")")),e),1))})),null===(n=(i=this.options).onSelect)||void 0===n||n.call(i,r),e.next=6,Promise.all(r.map((function(e){return o.processFile(e)})));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"processFile",value:(t=f(h().mark((function e(t){var n,i,r,o,a,c,s,l,u=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a=function(e){var n,i;null===(n=(i=u.options).onProgress)||void 0===n||n.call(i,t,e)},e.next=4,this.options.onUpload(t,a);case 4:c=e.sent,null===(n=(i=this.options).onProgress)||void 0===n||n.call(i,t,100),null===(r=(o=this.options).onSuccess)||void 0===r||r.call(o,c,t),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),null===(s=(l=this.options).onError)||void 0===s||s.call(l,e.t0 instanceof Error?e.t0:new Error("上传失败"),t);case 12:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e){return t.apply(this,arguments)})},{key:"formatSize",value:function(e){if(0===e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat((e/Math.pow(1024,t)).toFixed(2)," ").concat(["B","KB","MB","GB"][t])}}]),e}(),he=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("resource")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r),c=o?JSON.parse(o):{},s=a?JSON.parse(a):{};return{id:c.id,type:n,data:c,metadata:s}}catch(Gn){throw new Error("XML 解析错误: ".concat(Gn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/resources>/i.exec(e);if(!t)return{resources:[],remainingText:e,hasResources:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.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(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("resources");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("resource");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}(),de=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("suggestion")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r);return{type:n,data:o?JSON.parse(o):{},metadata:a?JSON.parse(a):{}}}catch(Gn){throw new Error("XML 解析错误: ".concat(Gn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/suggestions>/i.exec(e);if(!t)return{suggestions:[],remainingText:e,hasSuggestions:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.slice(r)).replace(/\n/g,"");try{return{suggestions:this.parse(n),remainingText:o,hasSuggestions:!0}}catch(c){return{suggestions:[],remainingText:o,hasSuggestions:!0,error:"资源解析失败: ".concat(c.message)}}}},{key:"stringify",value:function(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("suggestions");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("suggestion");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}();function fe(e){return e.x>=0&&e.x<=1&&e.y>=0&&e.y<=1}function pe(e,t,n,i){var r=e/window.innerWidth,o=t/window.innerHeight;return{x:Math.max(0,Math.min(r,1-n)),y:Math.max(0,Math.min(o,1-i))}}var ve,me,_e,ge,ye=0,we=[],be=[],ke=l.__b,xe=l.__r,Ce=l.diffed,Te=l.__c,Ne=l.unmount;function Ee(e,t){l.__h&&l.__h(me,e,ye||t),ye=0;var n=me.__H||(me.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:be}),n.__[e]}function Se(e){return ye=1,function(e,t,n){var i=Ee(ve++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):Fe(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=me,!me.u)){var r=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var a=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&i.__c.props===e)&&(!o||o.call(this,e,t,n))};me.u=!0;var o=me.shouldComponentUpdate,a=me.componentWillUpdate;me.componentWillUpdate=function(e,t,n){if(this.__e){var i=o;o=void 0,r(e,t,n),o=i}a&&a.call(this,e,t,n)},me.shouldComponentUpdate=r}return i.__N||i.__}(Fe,e)}function Ae(e,t){var n=Ee(ve++,3);!l.__s&&je(n.__H,t)&&(n.__=e,n.i=t,me.__H.__h.push(n))}function Me(e){return ye=5,Oe((function(){return{current:e}}),[])}function Oe(e,t){var n=Ee(ve++,7);return je(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Le(e,t){return ye=8,Oe((function(){return e}),t)}function Ie(e){var t=me.context[e.__c],n=Ee(ve++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(me)),t.props.value):e.__}function ze(){for(var e;e=we.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(He),e.__H.__h.forEach(Be),e.__H.__h=[]}catch(Qn){e.__H.__h=[],l.__e(Qn,e.__v)}}l.__b=function(e){me=null,ke&&ke(e)},l.__r=function(e){xe&&xe(e),ve=0;var t=(me=e.__c).__H;t&&(_e===me?(t.__h=[],me.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=be,e.__N=e.i=void 0}))):(t.__h.forEach(He),t.__h.forEach(Be),t.__h=[],ve=0)),_e=me},l.diffed=function(e){Ce&&Ce(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==we.push(t)&&ge===l.requestAnimationFrame||((ge=l.requestAnimationFrame)||Pe)(ze)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==be&&(e.__=e.__V),e.i=void 0,e.__V=be}))),_e=me=null},l.__c=function(e,t){t.some((function(e){try{e.__h.forEach(He),e.__h=e.__h.filter((function(e){return!e.__||Be(e)}))}catch(Ge){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l.__e(Ge,e.__v)}})),Te&&Te(e,t)},l.unmount=function(e){Ne&&Ne(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{He(e)}catch(e){t=e}})),n.__H=void 0,t&&l.__e(t,n.__v))};var De="function"==typeof requestAnimationFrame;function Pe(e){var t,n=function(){clearTimeout(i),De&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);De&&(t=requestAnimationFrame(n))}function He(e){var t=me,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),me=t}function Be(e){var t=me;e.__c=e.__(),me=t}function je(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Fe(e,t){return"function"==typeof t?t(e):t}function Re(){throw new Error("Cycle detected")}var Ve=Symbol.for("preact-signals");function We(){if(Xe>1)Xe--;else{for(var e,t=!1;void 0!==$e;){var n=$e;for($e=void 0,Ze++;void 0!==n;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&et(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=i}}if(Ze=0,Xe--,t)throw e}}var Ue,qe,Ye=void 0,$e=void 0,Xe=0,Ze=0,Ge=0;function Je(e){if(void 0!==Ye){var t=e.n;if(void 0===t||t.t!==Ye)return t={i:0,S:e,p:Ye.s,n:void 0,t:Ye,e:void 0,x:void 0,r:t},void 0!==Ye.s&&(Ye.s.n=t),Ye.s=t,e.n=t,32&Ye.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=Ye.s,t.n=void 0,Ye.s.n=t,Ye.s=t),t}}function Ke(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Qe(e){return new Ke(e)}function et(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function tt(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function nt(e){for(var t=e.s,n=void 0;void 0!==t;){var i=t.p;-1===t.i?(t.S.U(t),void 0!==i&&(i.n=t.n),void 0!==t.n&&(t.n.p=i)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=i}e.s=n}function it(e){Ke.call(this,void 0),this.x=e,this.s=void 0,this.g=Ge-1,this.f=4}function rt(e){return new it(e)}function ot(e){var t=e.u;if(e.u=void 0,"function"==typeof t){Xe++;var n=Ye;Ye=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,at(e),t}finally{Ye=n,We()}}}function at(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ot(e)}function ct(e){if(Ye!==this)throw new Error("Out-of-order effect");nt(this),Ye=e,this.f&=-2,8&this.f&&at(this),We()}function st(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function lt(e){var t=new st(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function ut(e,t){l[e]=t.bind(null,l[e]||function(){})}function ht(e){qe&&qe(),qe=e&&e.S()}function dt(e){var t=this,n=e.data,i=pt(n);i.value=n;var r=Oe((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e;m(r.peek())||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=r.peek()},rt((function(){var e=i.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return r.value}function ft(e,t,n,i){var r=t in e&&void 0===e.ownerSVGElement,o=Qe(n);return{o:function(e,t){o.value=e,i=t},d:lt((function(){var n=o.value.value;i[t]!==n&&(i[t]=n,r?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}function pt(e){return Oe((function(){return Qe(e)}),[])}function vt(e){var t=Me(e);return t.current=e,Ue.__$f|=4,Oe((function(){return rt((function(){return t.current()}))}),[])}Ke.prototype.brand=Ve,Ke.prototype.h=function(){return!0},Ke.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},Ke.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Ke.prototype.subscribe=function(e){var t=this;return lt((function(){var n=t.value,i=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=i}}))},Ke.prototype.valueOf=function(){return this.value},Ke.prototype.toString=function(){return this.value+""},Ke.prototype.toJSON=function(){return this.value},Ke.prototype.peek=function(){return this.v},Object.defineProperty(Ke.prototype,"value",{get:function(){var e=Je(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(Ye instanceof it&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Ze>100&&Re(),this.v=e,this.i++,Ge++,Xe++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{We()}}}}),(it.prototype=new Ke).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Ge)return!0;if(this.g=Ge,this.f|=1,this.i>0&&!et(this))return this.f&=-2,!0;var e=Ye;try{tt(this),Ye=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return Ye=e,nt(this),this.f&=-2,!0},it.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Ke.prototype.S.call(this,e)},it.prototype.U=function(e){if(void 0!==this.t&&(Ke.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},it.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},it.prototype.peek=function(){if(this.h()||Re(),16&this.f)throw this.v;return this.v},Object.defineProperty(it.prototype,"value",{get:function(){1&this.f&&Re();var e=Je(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),st.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},st.prototype.S=function(){1&this.f&&Re(),this.f|=1,this.f&=-9,ot(this),tt(this),Xe++;var e=Ye;return Ye=this,ct.bind(this,e)},st.prototype.N=function(){2&this.f||(this.f|=2,this.o=$e,$e=this)},st.prototype.d=function(){this.f|=8,1&this.f||at(this)},dt.displayName="_st",Object.defineProperties(Ke.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:dt},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),ut("__b",(function(e,t){if("string"==typeof t.type){var n,i=t.props;for(var r in i)if("children"!==r){var o=i[r];o instanceof Ke&&(n||(t.__np=n={}),n[r]=o,i[r]=o.peek())}}e(t)})),ut("__r",(function(e,t){ht();var n,i=t.__c;i&&(i.__$f&=-2,void 0===(n=i.__$u)&&(i.__$u=n=function(e){var t;return lt((function(){t=this})),t.c=function(){i.__$f|=1,i.setState({})},t}())),Ue=i,ht(n),e(t)})),ut("__e",(function(e,t,n,i){ht(),Ue=void 0,e(t,n,i)})),ut("diffed",(function(e,t){var n;if(ht(),Ue=void 0,"string"==typeof t.type&&(n=t.__e)){var i=t.__np,r=t.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=ft(n,s,u,r),o[s]=l):l.o(u,r)}}}e(t)})),ut("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__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=t.__c;if(a){var c=a.__$u;c&&(a.__$u=void 0,c.d())}}e(t)})),ut("__h",(function(e,t,n,i){(i<3||9===i)&&(t.__$f|=2),e(t,n,i)})),I.prototype.shouldComponentUpdate=function(e,t){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 t)return!0;for(var r in e)if("__source"!==r&&e[r]!==this.props[r])return!0;for(var o in this.props)if(!(o in e))return!0;return!1};var mt=0;function _t(e,t,n,i,r,o){var a,c,s={};for(c in t)"ref"==c?a=t[c]:s[c]=t[c];var u={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--mt,__source:r,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===s[c]&&(s[c]=a[c]);return l.vnode&&l.vnode(u),u}var gt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},yt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},wt=function(e){return _t("svg",{viewBox:"0 0 1024 1024",id:"send",className:e.className,version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},bt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},kt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},xt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Ct=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Tt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Nt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M960 544H64a32 32 0 1 1 0-64h896a32 32 0 1 1 0 64"})})},Et=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[_t("path",{d:"M481.0752 263.3728l50.9952 1.024 1.8432-105.8816-50.9952-0.8192z"}),_t("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"}),_t("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"}),_t("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"}),_t("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"}),_t("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"})]})},St=function(){return _t("svg",{viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_t("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"}),_t("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"}),_t("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"})]})},At=function(){return _t("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_t("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"})})},Mt=function(){var e=1e3,t=140,n=250,i=.8;return _t("svg",{fill:"currentColor",viewBox:"0 0 ".concat(e," ").concat(e),xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:Array.from({length:4}).map((function(e,r){return _t("rect",{fill:"currentColor",rx:70,ry:70,height:n,width:t,x:286.66666666666663*r,y:375,children:[_t("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"}),_t("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)}))})},Ot=function(e){return _t("svg",{className:e.className,onClick:e.onClick,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Lt=function(e){return _t("svg",{className:e.className,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},It=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M972.657609 209.348408C987.158609 209.36839 998.930114 197.571202 998.949999 182.99865 998.969882 168.426097 987.230618 156.59651 972.729617 156.576528L32.457975 155.280806C17.956974 155.260823 6.18547 167.058012 6.165585 181.630564 6.1457 196.203116 17.884965 208.032703 32.385966 208.052686L972.657609 209.348408ZM180.466902 992.356169 180.466902 1019.014859 206.993296 1018.74074 833.361858 1012.267947 859.348284 1011.999407 859.348284 985.883377 859.348284 289.397297C859.348284 274.824732 847.59289 263.011332 833.091874 263.011332 818.590859 263.011332 806.835465 274.824732 806.835465 289.397297L806.835465 985.883377 832.82189 959.498805 206.453329 965.971599 232.979723 992.356169 232.979723 282.67005C232.979723 268.097483 221.224329 256.284085 206.723313 256.284085 192.222298 256.284085 180.466902 268.097483 180.466902 282.67005L180.466902 992.356169ZM656.410257 847.079027C656.410257 861.651593 668.165651 873.464992 682.666667 873.464992 697.167682 873.464992 708.923076 861.651593 708.923076 847.079027L708.923076 372.131659C708.923076 357.559091 697.167682 345.745694 682.666667 345.745694 668.165651 345.745694 656.410257 357.559091 656.410257 372.131659L656.410257 847.079027ZM341.333333 847.079027C341.333333 861.651593 353.08873 873.464992 367.589743 873.464992 382.090758 873.464992 393.846155 861.651593 393.846155 847.079027L393.846155 372.131659C393.846155 357.559091 382.090758 345.745694 367.589743 345.745694 353.08873 345.745694 341.333333 357.559091 341.333333 372.131659L341.333333 847.079027ZM498.871795 847.079027C498.871795 861.651593 510.627189 873.464992 525.128205 873.464992 539.62922 873.464992 551.384614 861.651593 551.384614 847.079027L551.384614 372.131659C551.384614 357.559091 539.62922 345.745694 525.128205 345.745694 510.627189 345.745694 498.871795 357.559091 498.871795 372.131659L498.871795 847.079027ZM392.147755 116.721777C392.147755 102.063669 403.758665 90.363507 418.40134 90.363507L622.925796 90.363507C637.408947 90.363507 649.179381 102.1619 649.179381 116.549585L649.179381 171.644875 701.692203 171.644875 701.692203 116.549585C701.692203 72.986607 666.38105 37.591577 622.925796 37.591577L418.40134 37.591577C374.724427 37.591577 339.634933 72.950804 339.634933 116.721777L339.634933 165.310801 392.147755 165.310801 392.147755 116.721777Z"})})},zt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 184l144 144 144-144"})})},Dt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"".concat(e.className," icon"),viewBox:"0 0 512 512",children:_t("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"})})},Pt=function(e){return _t("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",children:_t("circle",{cx:"25",cy:"25",r:"20",stroke:"currentColor",strokeWidth:"5",fill:"none",strokeDasharray:"31.415, 31.415",strokeLinecap:"round",children:_t("animateTransform",{attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"1s",repeatCount:"indefinite"})})})},Ht=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Bt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},jt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ft=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Rt=function(e){return _t("svg",{className:e.className,id:"stop",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},Vt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})})},Wt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("path",{d:"M394.688 126.208a32 32 0 0 1 32-32h170.688a32 32 0 0 1 32 32v138.624h288a32 32 0 0 1 32 32v170.688a32 32 0 0 1-32 32H106.688a32 32 0 0 1-32-32V296.832a32 32 0 0 1 32-32h288V126.208z m64 32v138.624a32 32 0 0 1-32 32h-288v106.688h746.688V328.832h-288a32 32 0 0 1-32-32V158.208H458.688z"}),_t("path",{d:"M138.688 469.376a32 32 0 0 1 32-32h682.688a32 32 0 0 1 32 32v384a32 32 0 0 1-32 32H170.688a32 32 0 0 1-32-32v-384z m64 32v320h618.688v-320H202.688z"}),_t("path",{d:"M341.376 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32zM512 691.2a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0v-128a32 32 0 0 1 32-32zM682.688 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32z"})]})},Ut=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("path",{d:"M843.251 424.407l43.828-74.898c10.194-17.946 32.596-22.158 48.956-11.598 16.298 10.499 23.44 32.658 14.223 49.566l-113.11 195.212-61.164-40.044-126.418-82.285c-16.115-11.598-20.632-34.428-10.194-51.702 9.705-17.397 31.009-23.501 47.857-13.734l89.67 59.028C748.576 295.547 615.81 180.667 461.008 180.667c-177.387 0-320.042 148.758-320.042 331.335 0 183.613 143.692 331.334 319.981 331.334 107.861 0.184 208.58-56.158 268.034-149.858 1.099-1.038 1.099-2.075 2.075-2.075 6.348-9.949 17.092-15.871 28.568-15.81 19.35 0 35.648 16.848 35.648 36.93 0 7.508-2.137 14.833-6.104 21.059-72.823 114.698-196.066 183.675-328.099 183.614-216.088 0-391.4-181.478-391.4-405.195 0-223.718 175.312-405.195 391.339-405.195 183.125-0.427 342.016 131.606 382.243 317.601z"})})},qt=function(){return _t("svg",{version:"1.1",className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M627.498667 55.168l170.666666 170.666667a42.624 42.624 0 0 1 0 60.330666l-469.333333 469.333334A42.538667 42.538667 0 0 1 298.666667 768H128a42.666667 42.666667 0 0 1-42.666667-42.666667v-170.666666c0-11.306667 4.48-22.186667 12.501334-30.165334l469.333333-469.333333a42.624 42.624 0 0 1 60.330667 0zM896 896a42.666667 42.666667 0 0 1 0 85.333333H128a42.666667 42.666667 0 0 1 0-85.333333h768zM597.333333 145.664l-426.666666 426.666667V682.666667h110.336l426.666666-426.666667L597.333333 145.664z"})})},Yt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M184 112l144 144-144 144"})})},$t=function(e){var t=e.items,n=pt([]),i=new ee("chat-thought-chain"),r=pt([]);Ae((function(){r.value=t.filter((function(e){return e.description})),r.value.length>0&&r.value.forEach((function(e,t){e.done&&(n.value=[].concat(o(n.value),[t]))}))}),[t]);return 0===r.value.length?null:_t("div",{className:"".concat(i.b()," ").concat(i.is("single",1===r.value.length)),children:r.value.map((function(e,t){if(e.description){var r=n.value.includes(t);return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("collapsed",r)),children:[_t("div",{className:i.e("item-icon"),children:e.icon||_t("span",{children:t})}),_t("div",{className:i.e("item-content"),children:[_t("div",{className:i.e("item-title"),onClick:function(){return function(e){n.value.includes(e)?n.value=n.value.filter((function(t){return t!==e})):n.value=[].concat(o(n.value),[e])}(t)},children:[e.title,_t(zt,{className:i.e("icon")})]}),_t("div",{className:i.e("item-description"),children:e.description})]})]},t)}}))})},Xt=function(e){var t=e.items,n=e.onItemClick,i=new ee("chat-suggestions");return _t("div",{className:"".concat(i.b()),children:t.map((function(e,t){return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("action","action"===e.type)),onClick:function(t){return function(e,t){null==n||n(e,t)}(e,t)},title:e.metadata.content_name,children:[e.metadata.content_name,_t(Yt,{className:"".concat(i.e("item-icon"))})]},t)}))})},Zt=new ee("markdown-message"),Gt=function(e){var t=e.message,n=e.size,i=pt(oe()),r=pt(null),o=Oe((function(){return 20===t.state&&!0!==t.completed}),[t.state,t.completed]),a=Oe((function(){return 20===t.state&&!0===t.completed}),[t.state,t.completed]),c=pt({title:"",description:"",icon:_t(Pt,{})}),l=pt({hasSuggestions:!1,suggestions:[]}),u=function(e){e&&e.length>0?l.value={hasSuggestions:!0,suggestions:e}:l.value={hasSuggestions:!1,suggestions:[]}},h=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="",o=!1;return-1===n?(o=!1,i=e.slice(t+7),r=""):(o=!0,i=e.slice(t+7,n),r=e.slice(n+8)),{isThoughtCompleted:o,thoughtContent:i,answerContent:r}};return Ae((function(){if(n>=0&&r.value){if(-1!==t.content.indexOf("")){var e=h(t.content),i=e.isThoughtCompleted,o=e.thoughtContent,a=e.answerContent;i?(c.value.icon=_t(Dt,{}),c.value.title="思考完成"):!0===t.completed?(c.value.icon=_t(Dt,{}),c.value.title="思考已停止"):(c.value.icon=_t(Pt,{}),c.value.title="思考中..."),c.value.description=o||"",r.value.setMarkdown(a||"")}else r.value.setMarkdown(t.content||"");u(t.suggestions)}}),[t,n]),Ae((function(){var e="";if(-1!==t.content.indexOf("")){var n=h(t.content),o=n.isThoughtCompleted,a=n.thoughtContent,l=n.answerContent;c.value={title:o?"思考完成":!0===t.completed?"思考已停止":"思考中...",description:a||"",icon:o||!0===t.completed?_t(Dt,{}):_t(Pt,{})},l&&(e=l)}else e=t.content;u(t.suggestions),r.value=new s({id:i,value:e||"",editor:{defaultModel:"previewOnly"}})}),[]),_t("div",{className:"".concat(Zt.b()," ").concat(Zt.is("loading",o)),children:[_t("div",{className:Zt.b("header"),children:[_t("div",{className:Zt.be("header","caption"),children:"AI "}),e.children,a?_t("div",{className:Zt.be("header","timeout"),children:"请求超时"}):null]}),_t("div",{className:"".concat(Zt.b("content")," pre-wrap-container"),children:[_t($t,{items:[c.value]}),_t("div",{id:i})]}),_t("div",{className:Zt.b("footer"),children:l.value.hasSuggestions?_t(Xt,{items:l.value.suggestions,onItemClick:function(t,n){!function(t,n){e.controller.handleSuggestionClick(e.message,t,n)}(t,n)}}):null})]})},Jt=new ee("ossfile-material"),Kt=function(e){var t=vt((function(){return e.material.data.name})),n=vt((function(){return e.material.metadata.size})),i=vt((function(){var t=e.material.metadata.state;return"successed"===t?"上传成功":"uploading"===t?"上传中":"failed"===t?"上传失败":"未知状态"})),r=vt((function(){switch(e.material.metadata.state){case"successed":return"#1890ff";case"uploading":return"#52c41a";default:return"#ff4d4f"}}));return _t("div",{className:Jt.b(),children:[_t("div",{className:Jt.b("left"),children:_t(Bt,{})}),_t("div",{className:Jt.b("right"),children:[_t("div",{className:Jt.e("name"),title:t,children:t}),_t("div",{className:Jt.e("metadata"),children:[_t("div",{children:[n,"B"]}),_t("div",{style:{color:r.value},children:i})]})]})]})},Qt=new ee("common-material"),en=function(e){var t,n,i,r,o=null===(t=e.controller.opts.questionToolbarItems)||void 0===t?void 0:t.find((function(t){return t.id===e.material.metadata.actionId})),a=vt((function(){return e.material.metadata.name}));return _t("div",{className:Qt.b(),children:[_t("div",{className:Qt.b("left"),children:o&&o.icon?"function"==typeof o.icon?o.icon():(null===(n=o.icon)||void 0===n?void 0:n.showIcon)&&_t(L,{children:null!==(i=o.icon)&&void 0!==i&&i.cssClass?_t("i",{className:o.icon.cssClass}):null!==(r=o.icon)&&void 0!==r&&r.imagePath?ce(o.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:o.icon.imagePath}}):_t("img",{src:o.icon.imagePath}):null}):_t(Ft,{})}),_t("div",{className:Qt.b("right"),children:[_t("div",{className:Qt.e("name"),title:a,children:a}),_t("div",{className:Qt.e("metadata"),children:_t("div",{children:(null==o?void 0:o.label)||"素材资源"})})]})]})},tn=new ee("chat-input-material-item"),nn=function(e){var t=e.material,n=null;if("ossfile"===t.type)n=Kt;else n=en;return _t("div",{className:"".concat(tn.b()," ").concat(tn.is("disabled",e.disabled)),children:[_t("div",{className:tn.e("icon"),onClick:function(){e.controller.deleteMaterial(t)},children:_t(jt,{})}),M(n,{material:t,controller:e.controller})]})},rn=new ee("user-message-question"),on=function(e){var t=pt(oe()),n=pt(null),i=vt((function(){return e.message.content})),r=vt((function(){return he.parseMixedContent(i.value)}));return Ae((function(){n.value=new s({id:t,value:r.value.remainingText||"",editor:{defaultModel:"previewOnly"}})}),[r.value.remainingText]),_t("div",{className:rn.b(),children:[_t("div",{className:rn.e("user-header"),children:[e.children,_t("div",{className:rn.e("user"),children:"我"})]}),_t("div",{className:rn.e("content"),children:_t("div",{className:rn.em("content","body"),children:[r.value.hasResources&&_t("div",{className:rn.em("content","material"),children:r.value.resources.map((function(t){return _t(nn,{material:t,disabled:!0,controller:e.controller},t.id)}))}),_t("div",{className:"pre-wrap-container",children:_t("div",{id:t})})]})})]})},an=new ee("error-message"),cn=function(e){var t=vt((function(){return e.message.content}));return _t("div",{className:an.b(),children:[_t("div",{className:an.b("header"),children:[_t("div",{className:an.be("header","caption"),children:"AI "}),e.children]}),_t("div",{className:"".concat(an.e("content")," pre-wrap-container"),children:_t("span",{children:t})})]})},sn=new ee("unknown-message"),ln=function(e){return _t("div",{className:sn.b(),children:_t("div",{className:"".concat(sn.e("content")," pre-wrap-container"),children:["暂未支持的消息类型: ",e.message.type]})})},un=new ee("chat-message-item"),hn=function(e){var t=e.message,n=e.size,i=null;switch(t.type){case"DEFAULT":i="ASSISTANT"===t.role?Gt:on;break;case"ERROR":i=cn;break;default:i=ln}return _t("div",{className:un.b(),children:M(i,{size:n,message:t,controller:e.controller,children:e.children})})},dn=function(){function e(t){v(this,e),this.msg=t}return _(e,[{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 e=this.msg.content;if(-1!==e.indexOf("")&&-1===e.indexOf(""))return"";if(-1!==(e=e.replace(/[^]*?<\/think>/g,"").trim()).indexOf("")&&-1===e.indexOf(""))return"";var t=(e=e.replace(/[^]*?<\/resources>/g,"").trim()).indexOf("");return-1!==t&&(e=e.substring(0,t).trim()),e}},{key:"content",get:function(){return this.msg.content}},{key:"completed",get:function(){return this.msg.completed}},{key:"suggestions",get:function(){return this.msg.suggestions}},{key:"_origin",get:function(){return this.msg}},{key:"update",value:function(e){e.content||(e.content=""),-1!==e.content.indexOf("")&&this.msg.content&&(this.msg.content=""),this.msg.content+=e.content}},{key:"updateCompleted",value:function(e){this.msg.completed=e}}]),e}(),fn=function(){function e(t){v(this,e),this.data=t}return _(e,[{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:"sourceCaption",get:function(){return this.data.sourceCaption||this.caption}},{key:"url",get:function(){return this.data.url}},{key:"aiChat",get:function(){return this.data.aiChat}}]),e}(),pn=function(){function e(t){v(this,e),this.material=t}return _(e,[{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}}]),e}(),vn=new ee("chat-toolbar-item"),mn=function(e){var t,n,i,r=e.model,o=e.data,c=e.className,s=e.disabled,l=void 0!==s&&s,u=e.buttonType,h=void 0===u?"default":u,d=e.onClick,f=a(Se(!1),2),p=f[0],v=f[1],m=Me(null),_=function(e){return"function"==typeof e.hidden?e.hidden(o):!0===e.hidden};if(_(r))return _t(L,{});var g=function(e){return!!l||("function"==typeof e.disabled?e.disabled(o):!0===e.disabled)},y=function(e){var t,n,i,r;return"function"==typeof e.icon?e.icon():null!==(t=e.icon)&&void 0!==t&&t.showIcon&&null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.showIcon&&null!==(r=e.icon)&&void 0!==r&&r.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):void 0},w=function(e,t){g(t)||(v(!1),d(e,t))};return Ae((function(){var e=function(e){m.current&&m.current.contains(e.target)||v(!1)};return p&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[p]),_t("div",{className:"".concat(vn.b()," ").concat(vn.b(h)," ").concat(r.customClass||""," ").concat(c||""," ").concat(vn.is("disabled",g(r))," ").concat(vn.is("more",!(null===(t=r.children)||void 0===t||!t.length))),children:[_t("div",{title:r.title,className:vn.e("content"),onClick:function(e){return w(e,r)},children:[_t("div",{className:vn.em("content","icon"),children:y(r)}),_t("div",{className:vn.em("content","label"),children:r.label})]}),(null===(n=r.children)||void 0===n?void 0:n.length)&&_t("div",{title:"更多",className:vn.e("more"),onClick:function(e){g(r)||v(!0)},children:_t("i",{"aria-hidden":"true",className:"fa fa-angle-down ".concat(vn.em("more","icon"))})}),p&&_t("div",{ref:m,className:vn.b("dropdown"),children:null===(i=r.children)||void 0===i?void 0:i.map((function(e,t){if(!_(e))return _t("div",{title:e.title,onClick:function(t){return w(t,e)},className:"".concat(vn.be("dropdown","item")," ").concat(e.customClass||""," ").concat(vn.is("disabled",g(e))),children:[_t("div",{className:vn.bem("dropdown","item","icon"),children:y(e)}),_t("div",{className:vn.bem("dropdown","item","label"),children:e.label})]},t)}))})]})},_n=new ee("chat-toolbar"),gn=function(e){var t=e.controller,n=e.items,i=void 0===n?[]:n,r=e.data,a=e.type,c=e.className,s=Ie(bi),l=[],h=[{label:"重置对话",title:"重置对话",icon:function(){return _t(Ut,{})},onClick:function(){t.resetTopic()},children:[{label:"清空对话",title:"清空对话",icon:function(){return _t(Wt,{})},onClick:function(){t.clearTopic()}},{label:"新建对话",title:"新建对话",icon:function(){return _t(St,{})},onClick:function(){s.newTopic&&s.newTopic()}}]}],d=[{label:"刷新",title:"刷新",icon:function(){return _t(kt,{})},onClick:function(){t.refreshMessage(r)}},{label:"删除",title:"删除",icon:function(){return _t(bt,{})},onClick:function(){t.deleteMessage(r)}},{label:"复制",title:"复制",icon:function(){return _t(xt,{})},onClick:function(){t.copyMessage(r)}}];s.enableBackFill&&d.unshift.apply(d,[{label:"回填",title:"回填",icon:function(){return _t(yt,{})},onClick:function(){t.backfill(r)}}]);var f=[{label:"刷新",title:"刷新",icon:function(){return _t(kt,{})},onClick:function(){t.refreshMessage(r,!0)}}];if("content"===a)switch(r.type){case"DEFAULT":l="ASSISTANT"===r.role?[].concat(d,o(i)):[].concat(f);break;case"ERROR":l=[].concat(d,o(i))}else l=[].concat(h,o(i));var p=function(n,i){var o=u({},r);if(r instanceof dn&&(Object.assign(o,{topic:t.topic}),o.msg.realcontent=r.realcontent),i.onClick&&"function"==typeof i.onClick)i.onClick(n,i,t.context,t.params,o);else{var a=e.controller.opts.extendToolbarClick;a&&"function"==typeof a&&a(n,i,t.context,t.params,o)}},v=Oe((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 _t("div",{className:"".concat(_n.b()," ").concat(c||""),children:l.map((function(e,t){return _t(mn,{data:r,model:e,disabled:v,buttonType:"content"===a?"circle":"default",onClick:p.bind(void 0)},t)}))})};var yn=function(e){var t,n,i,r=pt(!1),o=pt({}),a=new ee("chat-back-bottom"),c=pt(null),s=function(){if(c.value){var t=e.visibilityHeight||200,n=c.value.scrollHeight-c.value.scrollTop-c.value.offsetHeight;r.value=n>=t}},l=(t=s,n=300,i=null,function(){for(var e=this,r=arguments.length,o=new Array(r),a=0;a3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),K(M(In,{context:t.context},e.__v),t.l)}function Dn(e,t){var n=M(zn,{__v:e,i:t});return n.containerInfo=t,n}(On.prototype=new I).__a=function(e){var t=this,n=Mn(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),Ln(t,e,i)):r()};n?n(o):o()}},On.prototype.render=function(e){this.u=null,this.o=new Map;var t=F(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},On.prototype.componentDidUpdate=On.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Ln(e,n,t)}))};var Pn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Hn=/^(?: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]/,Bn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,jn=/[A-Z0-9]/g,Fn="undefined"!=typeof document,Rn=function(e){return("undefined"!=typeof Symbol&&"symbol"==p(Symbol())?/fil|che|rad/:/fil|che|ra/).test(e)};I.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(I.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Vn=l.event;function Wn(){}function Un(){return this.cancelBubble}function qn(){return this.defaultPrevented}l.event=function(e){return Vn&&(e=Vn(e)),e.persist=Wn,e.isPropagationStopped=Un,e.isDefaultPrevented=qn,e.nativeEvent=e};var Yn={enumerable:!1,configurable:!0,get:function(){return this.class}},$n=l.vnode;l.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={};for(var r in t){var o=t[r];if(!("value"===r&&"defaultValue"in t&&null==o||Fn&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===o?o="":"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Rn(t.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":Bn.test(r)?r=a:-1===n.indexOf("-")&&Hn.test(r)?r=r.replace(jn,"-$&").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(t.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=F(t.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",Yn)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=Pn,$n&&$n(e)};var Xn=l.__r;l.__r=function(e){Xn&&Xn(e),e.__c};var Zn=l.diffed;l.diffed=function(e){Zn&&Zn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};var Gn=new Map;function Jn(e){var t=Gn.get(e);t&&t.destroy()}function Kn(e){var t=Gn.get(e);t&&t.update()}var Qn=null;"undefined"==typeof window?((Qn=function(e){return e}).destroy=function(e){return e},Qn.update=function(e){return e}):((Qn=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!Gn.has(e)){var t,n=null,i=window.getComputedStyle(e),r=(t=e.value,function(){a({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),o=function(t){e.removeEventListener("autosize:destroy",o),e.removeEventListener("autosize:update",c),e.removeEventListener("input",r),window.removeEventListener("resize",c),Object.keys(t).forEach((function(n){return e.style[n]=t[n]})),Gn.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",o),e.addEventListener("autosize:update",c),e.addEventListener("input",r),window.addEventListener("resize",c),e.style.overflowX="hidden",e.style.wordWrap="break-word",Gn.set(e,{destroy:o,update:c}),c()}function a(t){var r,o,c=t.restoreTextAlign,s=void 0===c?null:c,l=t.testForHeightReduction,u=void 0===l||l,h=i.overflowY;if(0!==e.scrollHeight&&("vertical"===i.resize?e.style.resize="none":"both"===i.resize&&(e.style.resize="horizontal"),u&&(r=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null}))}}(e),e.style.height=""),o="content-box"===i.boxSizing?e.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):e.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&o>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(e.style.overflow="scroll"),o=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(e.style.overflow="hidden"),e.style.height=o+"px",s&&(e.style.textAlign=s),r&&r(),n!==o&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=o),h!==i.overflow&&!s)){var d=i.textAlign;"hidden"===i.overflow&&(e.style.textAlign="start"===d?"end":"start"),a({restoreTextAlign:d,testForHeightReduction:!0})}}function c(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Jn),e},Qn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Kn),e});var ei=Qn,ti=function(e){return e.STYLE_CACHE="ai-chat-style-cache",e.MINIMIZE_STYLY_CHCHE="ai-chat-minimize-style-cache",e.DATA_BASE_NAME="ibiz-chat",e.DATA_TABLE_NAME="history-message",e.DATA_TABLE_KEY_NAME="id",e}(ti||{}),ni=function(){function e(t){v(this,e),g(this,"messages",Qe([])),g(this,"materials",Qe([])),g(this,"input",Qe("")),g(this,"isLoading",Qe(!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=t,this.context=t.context,this.params=t.params,this.appDataEntityId=t.appDataEntityId,this.topicId=t.topicId,this.topic=t.topic,this.fecthHistory()}var t,n,i,r,a,c,s;return _(e,[{key:"fecthHistory",value:(s=f(h().mark((function e(){var t,n=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=7;break}return e.next=3,le.getData(ti.DATA_BASE_NAME,ti.DATA_TABLE_NAME,this.topicId);case 3:if(!((t=e.sent)&&t.data&&t.data.length>0)){e.next=7;break}return t.data.forEach((function(e){var t={messageid:e.messageid,state:e.state,type:e.type,role:e.role,content:e.content,suggestions:e.suggestions,completed:!0};n.addMessage(t)})),e.abrupt("return",!0);case 7:return e.abrupt("return",this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId}));case 8:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"asyncToIndexDB",value:(c=f(h().mark((function e(){var t;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.topicId){e.next=2;break}return e.abrupt("return");case 2:return t={id:this.topicId,data:this.messages.value.map((function(e){return e._origin})),timestamp:(new Date).getTime()},e.next=5,le.updateData(ti.DATA_BASE_NAME,ti.DATA_TABLE_NAME,t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"setInput",value:function(e){this.input.value=e||""}},{key:"addMessage",value:function(e){var t=this.messages.value.find((function(t){return t.messageid===e.messageid}));t?(t.update(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new dn(e)]),this.asyncToIndexDB()}},{key:"completeMessage",value:function(e,t){var n=this.messages.value.find((function(t){return t.messageid===e}));n&&(n.updateCompleted(t),this.messages.value=o(this.messages.value),this.asyncToIndexDB())}},{key:"replaceMessage",value:function(e){var t=this,n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==n?(this.messages.value[n]=new dn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new dn(e)]),this.asyncToIndexDB(),"DEFAULT"===e.type&&this.opts.recommendPrompt&&this.opts.recommendPrompt(this.context,this.params,{appDataEntityId:this.appDataEntityId,message:{messages:[e]}}).then((function(n){n&&n.content&&t.updateRecommendPrompt(e,n.content)}))}},{key:"stopMessage",value:function(e){var t=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));if(-1!==t){var n=this.messages.value[t];e.content=n.content,this.messages.value[t]=new dn(e),this.messages.value=o(this.messages.value)}else this.messages.value=[].concat(o(this.messages.value),[new dn(e)]);this.asyncToIndexDB()}},{key:"stringlyMaterialResource",value:function(){var e="",t=[];return this.materials.value&&this.materials.value.length>0&&(this.materials.value.forEach((function(e){if("ossfile"===e.type){var n=e.metadata;n.state&&"successed"===n.state&&t.push(e)}else t.push(e)})),this.materials.value=[]),t&&t.length>0&&(e=he.stringify(t)),e}},{key:"question",value:(a=f(h().mark((function e(t){var n,i=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.isLoading.value=!0,this.messages.value.forEach((function(e,t){var n=e._origin;n.suggestions&&(n.suggestions=void 0,i.messages.value[t]=new dn(n))})),this.messages.value=o(this.messages.value),this.asyncToIndexDB(),(n=this.stringlyMaterialResource())?n+="\n".concat(t):n=t,this.addMessage({state:30,messageid:oe(),role:"USER",type:"DEFAULT",content:n}),e.next=10,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 10:this.opts.action&&this.opts.action("question",t),this.isLoading.value=!1;case 12:return e.prev=12,this.isLoading.value=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[0,,12,15]])}))),function(e){return a.apply(this,arguments)})},{key:"abortQuestion",value:function(){try{this.opts.abortQuestion(this)}finally{this.isLoading.value=!1}}},{key:"backfill",value:function(e){this.opts.action&&this.opts.action("backfill",e)}},{key:"deleteMessage",value:function(e){var t=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==t&&(this.messages.value.splice(t,1),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),this.opts.action&&this.opts.action("deletemsg",e)}},{key:"refreshMessage",value:(r=f(h().mark((function e(t){var n,i,r,a=arguments;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],this.isLoading.value=!0,e.prev=2,i=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})),!n){e.next=11;break}return this.messages.value.splice(i+1,this.messages.value.length-i-1),this.messages.value=o(this.messages.value),e.next=9,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 9:e.next=21;break;case 11:if(i!==this.messages.value.length-1){e.next=18;break}return this.messages.value.pop(),this.messages.value=o(this.messages.value),e.next=16,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 16:e.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",t);case 23:return e.prev=23,this.isLoading.value=!1,e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[2,,23,26]])}))),function(e){return r.apply(this,arguments)})},{key:"copyMessage",value:function(e){var t=e.realcontent;se.copy(t),this.opts.action&&this.opts.action("copymsg",e)}},{key:"resetTopic",value:(i=f(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=3;break}return e.next=3,le.deleteData(ti.DATA_BASE_NAME,ti.DATA_TABLE_NAME,this.topicId);case 3:this.messages.value=[],this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId});case 5:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"clearTopic",value:(n=f(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=3;break}return e.next=3,le.deleteData(ti.DATA_BASE_NAME,ti.DATA_TABLE_NAME,this.topicId);case 3:this.messages.value=[];case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"addMaterial",value:function(e){var t=this.materials.value.find((function(t){return t.id===e.id}));this.materials.value=t?o(this.materials.value):[].concat(o(this.materials.value),[new pn(e)])}},{key:"replaceMaterial",value:function(e,t){var n=this.materials.value.findIndex((function(t){return t.id===e}));-1!==n?(this.materials.value[n]=new pn(t),this.materials.value=o(this.materials.value)):this.materials.value=[].concat(o(this.materials.value),[new pn(t)])}},{key:"deleteMaterial",value:function(e){var t=this.materials.value.findIndex((function(t){return t.id===e.id}));-1!==t&&(this.materials.value.splice(t,1),this.materials.value=o(this.materials.value))}},{key:"updateRecommendPrompt",value:function(e,t){if(t){var n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid})),i=de.parseMixedContent(t).suggestions;i&&i.length>0&&(e.suggestions=i,-1!==n?(this.messages.value[n]=new dn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new dn(e)]),this.asyncToIndexDB())}}},{key:"handleSuggestionClick",value:(t=f(h().mark((function e(t,n,i){var r,a,c,s,l;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:-1!==(r=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})))&&((a=this.messages.value[r]._origin).suggestions=void 0,this.messages.value[r]=new dn(a),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),c=n.type,e.t0=c,e.next="action"===e.t0?7:"raw"===e.t0?21:24;break;case 7:if(!this.opts.extendToolbarClick){e.next=20;break}if(s=n.data.actionid){e.next=11;break}throw new Error("actionid不能为空");case 11:if(!(this.opts.otherToolbarItems&&this.opts.otherToolbarItems.length>0)){e.next=19;break}if(l=this.opts.otherToolbarItems.find((function(e){return e.id===s}))){e.next=15;break}throw new Error("未找到".concat(s,"标识界面行为"));case 15:return e.next=17,this.opts.extendToolbarClick(i,l,this.context,this.params,t);case 17:e.next=20;break;case 19:throw new Error("未找到".concat(s,"标识界面行为"));case 20:case 23:return e.abrupt("break",25);case 21:return e.next=23,this.question(n.data.content);case 24:throw new Error("不支持".concat(c,"推荐类型"));case 25:case"end":return e.stop()}}),e,this)}))),function(e,n,i){return t.apply(this,arguments)})}]),e}(),ii=function(){function e(t){v(this,e),g(this,"topics",Qe([])),g(this,"activedTopic",Qe(null)),g(this,"currentTopicOptions",void 0),this.chat=t}var t,n,i,r,a,c;return _(e,[{key:"fetchHistory",value:(c=f(h().mark((function e(t){var n,i,r=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.configService(t.appid,"aitopics",t.type),e.next=3,n.load();case 3:(i=e.sent)&&i.length>0&&i.forEach((function(e){r.topics.value=[].concat(o(r.topics.value),[new fn(e)])}));case 5:case"end":return e.stop()}}),e)}))),function(e){return c.apply(this,arguments)})},{key:"updateCurrentTopic",value:(a=f(h().mark((function e(t){var n,i,r,a;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.currentTopicOptions=t,n=this.topics.value.findIndex((function(e){return e.id===t.id})),i=new fn(t),-1!==n?this.topics.value.splice(n,1,new fn(t)):this.topics.value=[].concat(o(this.topics.value),[new fn(t)]),r=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),a=t.configService(t.appid,"aitopics",t.type),e.next=8,null==a?void 0:a.save(r);case 8:this.activedTopic.value=i;case 9:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"removeTopic",value:(r=f(h().mark((function e(t,n,i,r,a){var c,s,l,u,d;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=!0,!t.beforeDelete){e.next=5;break}return e.next=4,t.beforeDelete(n,i,r,a);case 4:s=e.sent;case 5:if(s){e.next=7;break}return e.abrupt("return");case 7:return-1!==(l=this.topics.value.findIndex((function(e){return e.id===r.id})))&&(this.topics.value.splice(l,1),this.topics.value=o(this.topics.value)),u=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),d=t.configService(t.appid,"aitopics",t.type),e.next=13,null==d?void 0:d.save(u);case 13:return e.next=15,le.deleteData(ti.DATA_BASE_NAME,ti.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 e.stop()}}),e,this)}))),function(e,t,n,i,o){return r.apply(this,arguments)})},{key:"updateTopic",value:(i=f(h().mark((function e(t,n){var i,r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),r=t.configService(t.appid,"aitopics",t.type),e.next=4,null==r?void 0:r.save(i);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"handleTopicChange",value:function(e){var t;(null===(t=this.activedTopic.value)||void 0===t?void 0:t.id)!==e.id&&(this.activedTopic.value=e,this.chat.switchAiChatController(e))}},{key:"handleTopicAction",value:(n=f(h().mark((function e(t,n,i){var r,o,a,c,s,l;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.topics.value.find((function(e){return e.id===n.id})),!(this.currentTopicOptions&&r&&r.aiChat)){e.next=12;break}if(c=r.aiChat,s=c.context,l=c.params,"DELETE"!==t){e.next=8;break}return e.next=6,this.removeTopic(this.currentTopicOptions,s,l,r,i);case 6:e.next=11;break;case 8:if("RENAME"!==t){e.next=11;break}return e.next=11,this.updateTopic(this.currentTopicOptions,n);case 11:null===(o=(a=this.currentTopicOptions).action)||void 0===o||o.call(a,t,s,l,n,i);case 12:case"end":return e.stop()}}),e,this)}))),function(e,t,i){return n.apply(this,arguments)})},{key:"newTopic",value:(t=f(h().mark((function e(){var t,n,i,r,a,c,s,l,u;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this.activedTopic.value){e.next=3;break}return e.abrupt("return");case 3:return r=i.id.split("@")[0],a=this.topics.value.filter((function(e){return e.id.startsWith(r)})),c={appid:i.appid,id:"".concat(r,"@").concat(Date.now()),type:i.type,caption:"".concat(null===(t=i.sourceCaption)||void 0===t?void 0:t.split("_")[0],"_").concat(a.length),sourceCaption:i.sourceCaption,url:i.url,aiChat:i.aiChat},s=new fn(c),this.topics.value=[].concat(o(this.topics.value),[s]),l=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),u=null===(n=this.currentTopicOptions)||void 0===n?void 0:n.configService(c.appid,"aitopics",c.type),e.next=12,null==u?void 0:u.save(l);case 12:this.handleTopicChange(s);case 13:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),ri=_((function e(t){v(this,e),this.aiChat=t})),oi=function(t){e(o,t);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 e(t,n){var i,r,o,a;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n||!n.onClick||"function"!=typeof n.onClick){e.next=6;break}return e.next=3,n.onClick(t,n,this.aiChat.context,this.aiChat.params);case 3:i=e.sent,e.next=14;break;case 6:if(!(r=this.aiChat.opts.extendToolbarClick)){e.next=13;break}return e.next=10,r(t,n,this.aiChat.context,this.aiChat.params,{});case 10:i=e.sent,e.next=14;break;case 13:console.error("未找到扩展工具栏点击事件");case 14:i&&i.data&&i.data.length>0&&(o=i.data[0],a={id:o.id,type:o.type,data:o.data||{},metadata:o.metadata||{}},n.id&&Object.assign(a.metadata,{actionId:n.id}),this.aiChat.addMaterial(a));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})}]),o}(ri),ai=function(t){e(o,t);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 e(t,n){var i,r,o,a,c,s,l,u,d,p,v=this;return h().wrap((function(e){for(;;)switch(e.prev=e.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(e){null==c||c(e),e.length>0&&e.forEach((function(e){var t=v.buildMaterialObject(e);Object.assign(t.metadata,{state:"uploading"}),v.aiChat.addMaterial(t)}))},onUpload:function(){var e=f(h().mark((function e(t,n){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s(t,n,{context:v.aiChat.context,params:v.aiChat.params}));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),onSuccess:function(e,t){var n={id:e.id,type:"ossfile",data:{id:e.id,name:e.name},metadata:{ext:e.ext,fileext:e.fileext,fileid:e.fileid,filename:e.filename,size:e.size,filesize:e.filesize,state:"successed"}};v.aiChat.replaceMaterial(t.name,n),null==l||l(e,t)},onError:function(e,t){var n=v.buildMaterialObject(t);Object.assign(n.metadata,{state:"failed"}),v.aiChat.replaceMaterial(t.name,n),null==u||u(e,t)},onProgress:function(e,t){null==d||d(e,t)}},new ue(p).openFilePicker();case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"buildMaterialObject",value:function(e){return{id:e.name,type:"ossfile",data:{name:e.name,id:e.name},metadata:{size:e.size,type:e.type,lastModified:e.lastModified}}}}]),o}(ri),ci=function(){function e(){v(this,e)}return _(e,null,[{key:"getMaterialHelper",value:function(e,t){return"ossfile"===e?new ai(t):new oi(t)}}]),e}(),si=function(){function e(){v(this,e),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 ii(this)}var t,n;return _(e,[{key:"aiChat",get:function(){var e;return this.aiTopicMap.get("".concat(null===(e=this.aiTopic.activedTopic.value)||void 0===e?void 0:e.id))}},{key:"initIndexDB",value:(n=f(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le.checkTableExists(ti.DATA_BASE_NAME,ti.DATA_TABLE_NAME);case 2:if(e.sent){e.next=6;break}return e.next=6,le.createTable(ti.DATA_BASE_NAME,ti.DATA_TABLE_NAME,ti.DATA_TABLE_KEY_NAME,!1);case 6:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"create",value:(t=f(h().mark((function e(t){var n,i,r,o,a,c,s=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initIndexDB();case 2:if(this.backupChatOptions=t,this.close(),this.container=document.createElement("div"),this.container.classList.add("ibiz-ai-chat"),document.body.appendChild(this.container),o=t.chatOptions,!t.mode||"TOPIC"!==t.mode){e.next=17;break}if(this.isMountedAiTopic){e.next=13;break}return e.next=12,this.aiTopic.fetchHistory(t.topicOptions);case 12:this.isMountedAiTopic=!0;case 13:return a=t.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,otherToolbarItems:o.otherToolbarItems}}),e.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 ni(o),this.aiTopicMap.set("".concat(null===(i=a)||void 0===i?void 0:i.id),c),K(M(ki,{aiChat:c,aiTopic:this.aiTopic,mode:t.mode?t.mode:"DEFAULT",containerOptions:t.containerOptions,caption:t.mode&&"TOPIC"===t.mode?"AI助手":o.caption,enableBackFill:null===(r=t.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(e){o.fullscreen&&o.fullscreen(e,o.context,o.params)},minimize:function(e){o.minimize&&o.minimize(e,o.context,o.params)}}),this.container),e.abrupt("return",c);case 22:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"switchAiChatController",value:function(e){var t,n,i,r,o,a=this,c=u({},this.backupChatOptions.chatOptions);(e.aiChat&&Object.assign(c,{caption:e.aiChat.caption,context:e.aiChat.context,params:e.aiChat.params,contentToolbarItems:e.aiChat.contentToolbarItems,footerToolbarItems:e.aiChat.footerToolbarItems,questionToolbarItems:e.aiChat.questionToolbarItems,otherToolbarItems:e.aiChat.otherToolbarItems,appDataEntityId:e.aiChat.appDataEntityId,topicId:e.id,topic:e,extendToolbarClick:this.backupChatOptions.chatOptions.extendToolbarClick,recommendPrompt:this.backupChatOptions.chatOptions.recommendPrompt}),this.aiTopicMap.has("".concat(e.id))?t=this.aiTopicMap.get("".concat(e.id)):(t=new ni(c),this.aiTopicMap.set("".concat(e.id),t)),this.container)&&(K(null,this.container),K(M(ki,{aiChat:t,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(e){c.fullscreen&&c.fullscreen(e,c.context,c.params)},minimize:function(e){c.minimize&&c.minimize(e,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)}}]),e}(),li=(t("chat",new si),new ee("chat-input-material")),ui=function(e){var t=e.controller.materials;return _t("div",{className:li.b(),children:t.value.map((function(t){return _t(nn,{material:t,disabled:!1,controller:e.controller},t.id)}))})},hi=function(e){var t=e.children,n=e.actions,i=e.content,r=e.position,o=void 0===r?"bottom":r,c=e.isOpen,s=e.onToggleOpen,l=e.onAction,h=new ee("pop"),d=Ie(bi),f=a(Se(c||!1),2),p=f[0],v=f[1],m=Me(null),_=Me(null);Ae((function(){void 0!==c&&v(c)}),[c]),Ae((function(){return _.current||(_.current=document.createElement("div"),_.current.className=h.b("content-container"),document.body.appendChild(_.current)),function(){_.current&&document.body.removeChild(_.current)}}),[]),Ae((function(){var e=function(e){!m.current||m.current.contains(e.target)||e.target.closest(".".concat(h.b()))||e.target.closest(".ibiz-quick-edit")||e.target.closest(".ibiz-picker__transfer")||(v(!1),null==s||s(!1))};return p&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[p,s]);return _t("span",{className:"".concat(h.b("trigger-container")),children:[_t("span",{className:"".concat(h.b("trigger-element")),ref:m,onClick:function(e){e.stopPropagation();var t=!p;v(t),null==s||s(t)},children:t}),p&&_.current&&Dn(_t("div",{className:"".concat(h.b()," pop-").concat(o),style:function(){if(!m.current)return{};var e=m.current.getBoundingClientRect(),t={position:"absolute",zIndex:d.zIndex+1},n={bottom:{top:e.bottom+window.scrollY,left:e.left+window.scrollX},top:{bottom:window.innerHeight-e.top+window.scrollY,left:e.left+window.scrollX},left:{top:e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX},right:{top:e.top+window.scrollY,left:e.right+window.scrollX},"top-left":{bottom:window.innerHeight-e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX}};return u(u({},t),n[o])}(),children:i||(null==n?void 0:n.map((function(e){return _t("div",{title:e.caption,className:h.e("item"),onMouseDown:function(t){t.stopPropagation(),null==l||l(e.id,t)},children:[e.icon,_t("div",{className:h.em("item","caption"),children:e.caption})]},e.id)})))}),_.current)]})},di=new ee("chat-input"),fi=window.SpeechRecognition||window.webkitSpeechRecognition,pi=function(e){var t,n=a(Se(!1),2),i=n[0],r=n[1],o=Me(null),c=e.controller.input,s=pt(!1),l=Me();fi&&!l.current&&(l.current=new fi,l.current.onstart=function(){s.value=!0},l.current.onend=function(){s.value=!1},l.current.onresult=function(e){var t,n=null===(t=e.results)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t[0])||void 0===t?void 0:t.transcript;n&&(c.value="".concat(c.value).concat(n))});var u=Le((function(e){c.value=e.target.value}),[c]),d=vt((function(){return c.value.length<=0}));Ae((function(){return o.current&&ei(o.current),function(){o.current&&ei.destroy(o.current)}}),[o]);var p=Le(f(h().mark((function t(){var n;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=c.value,c.value="",t.next=5,e.controller.question(n);case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])}))),[c]),v=Le(f(h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{e.controller.abortQuestion()}catch(n){console.error(n)}case 1:case"end":return t.stop()}}),t)}))),[c]),m=function(){var t=f(h().mark((function t(n){var i;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=ci.getMaterialHelper("ossfile",e.controller),t.next=3,i.excuteAction(n);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_=function(){var t=f(h().mark((function t(n,i){var o;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=ci.getMaterialHelper("common",e.controller),t.next=3,o.excuteAction(n,i);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}();return _t("div",{className:di.b("wrapper"),children:[_t("div",{className:di.b("material-wrapper"),children:_t(ui,{controller:e.controller})}),_t("div",{className:di.b("main-wrapper"),children:[_t("textarea",{className:di.e("textarea"),type:"text",rows:6,autoCorrect:"off",autoCapitalize:"off",autoComplete:"off",value:c,onInput:u,onKeyDown:function(e){"Enter"!==e.code||e.isComposing||(e.stopPropagation(),!1===e.shiftKey&&p())},ref:o,disabled:e.controller.isLoading.value}),_t("div",{className:di.b("action-wrapper"),children:[_t("div",{className:"".concat(di.be("action-wrapper","action-item")," ").concat(di.is("disabled",e.controller.isLoading.value)),title:"上传资料",children:_t(hi,{content:_t("div",{className:di.b("pop-actions"),children:[_t("div",{className:di.b("pop-action-item"),onClick:function(e){m(e)},children:[_t("span",{className:di.b("pop-action-item-icon"),children:_t(Bt,{})}),_t("span",{className:di.b("pop-action-item-title"),children:"文件资料"})]}),null===(t=e.questionToolbarItems)||void 0===t?void 0:t.map((function(e){var t,n,i;return _t("div",{className:di.b("pop-action-item"),onClick:function(t){_(t,e)},children:[_t("span",{className:di.b("pop-action-item-icon"),children:"function"==typeof e.icon?e.icon():(null===(t=e.icon)||void 0===t?void 0:t.showIcon)&&_t(L,{children:null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):null})}),_t("span",{className:di.b("pop-action-item-title"),children:e.label})]},e.id)}))]}),position:"top-left",isOpen:i,onToggleOpen:r,children:_t(Ht,{})})}),_t("div",{title:s.value?"语音输入中...":"语音输入",className:"".concat(di.be("action-wrapper","action-item")," ").concat(di.is("disabled",e.controller.isLoading.value)),onClick:function(){l.current&&!s.value&&l.current.start()},children:s.value?_t(Mt,{}):_t(At,{})}),e.controller.isLoading.value?_t("div",{title:"停止生成",className:"".concat(di.be("action-wrapper","action-item")),onClick:v,children:_t(Rt,{})}):_t("div",{title:"发送消息",className:"".concat(di.be("action-wrapper","action-item")," ").concat(di.is("disabled",d.value)),onClick:p,children:_t(wt,{})})]})]})]})},vi=new ee("chat-topic-item"),mi=function(e){var t=e.controller,n=e.topic,i=e.onClick,r=e.onAction,o=Me(null),c=vt((function(){var e;return(null===(e=t.activedTopic.value)||void 0===e?void 0:e.id)===n.id})),s=a(Se(!1),2),l=s[0],u=s[1],h=pt(!1);return _t("div",{className:"".concat(vi.b()," ").concat(vi.is("active",c.value)," ").concat(vi.is("edit",h.value)),onClick:i.bind(void 0),children:[_t("div",{className:vi.e("caption"),title:n.caption,children:h.value?_t("input",{ref:o,value:n.caption,onBlur:function(e){e.stopPropagation(),h.value=!1,r("RENAME",e)},onKeyDown:function(e){e.stopPropagation(),"Enter"===e.key&&(h.value=!1)},onClick:function(e){return e.stopPropagation()},onChange:function(e){return(t=e).stopPropagation(),void(n.data.caption=null===(i=t.target)||void 0===i?void 0:i.value);var t,i},className:vi.em("caption","editor")}):_t("span",{className:vi.em("caption","text"),children:n.caption})}),!h.value&&_t("div",{className:vi.e("icon"),children:[_t("span",{title:"跳转主视图",className:vi.em("icon","item"),onClick:function(e){e.stopPropagation(),r("LINK",e)}.bind(void 0),children:_t(Lt,{className:vi.b("link-icon")})}),c.value?null:_t(hi,{actions:[{id:"RENAME",caption:"重命名",icon:_t(qt,{})},{id:"DELETE",caption:"删除话题",icon:_t(It,{})}],position:"bottom",isOpen:l,onToggleOpen:u,onAction:function(e,t){"DELETE"===e?r("DELETE",t):"RENAME"===e&&(h.value=!0,setTimeout((function(){var e;null===(e=o.current)||void 0===e||e.focus()}),100)),u(!1)}.bind(void 0),children:_t("span",{className:vi.em("icon","item"),title:"更多",children:_t(Ot,{className:vi.e("more-icon")})})})]})]})},_i=new ee("chat-topics"),gi=function(e){var t=e.controller.topics,n=Me(null);return Ae((function(){var e=n.current;if(e){var t=e.querySelector(".ibiz-chat-topic-item.is-active");null==t||t.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[e.controller.activedTopic.value]),_t("div",{ref:n,className:_i.b(),children:t.value.map((function(t){return _t(mi,{topic:t,controller:e.controller,onClick:function(){return function(t){e.controller.handleTopicChange(t)}(t)},onAction:function(n,i){return function(t,n,i){e.controller.handleTopicAction(t,n,i)}(n,t,i)}},t.id)}))})},yi=new ee("chat-minimize"),wi=function(e){var t=Me(null),n=a(Se(""),2),i=n[0],r=n[1],o=a(Se(0),2),c=o[0],s=o[1],l=Me(!1),u={x:(window.innerWidth-86)/window.innerWidth,y:(window.innerHeight-86)/window.innerHeight},h=vt((function(){var t=e.controller.messages.value[e.controller.messages.value.length-1];return!!t&&("ASSISTANT"===t.role&&20===t.state&&!0!==t.completed)})),d=vt((function(){var t="";if(!h.value)return r(""),s(0),t;var n=e.controller.messages.value[e.controller.messages.value.length-1];if(t=n.content,-1!==n.content.indexOf("")){var i=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="";return-1===n?(i=e.slice(t+7),r=""):(i=e.slice(t+7,n),r=e.slice(n+8)),{thoughtContent:i,answerContent:r}}(n.content);t=i.thoughtContent+i.answerContent}return t})),f=function(){Object.assign(t.current.style,{left:"".concat(100*u.x,"%"),top:"".concat(100*u.y,"%")}),localStorage.setItem(ti.MINIMIZE_STYLY_CHCHE,JSON.stringify(u))};return Ae((function(){var e,n=localStorage.getItem(ti.MINIMIZE_STYLY_CHCHE);if(n){var i=JSON.parse(n);fe(i)&&Object.assign(u,i)}f(),(e=t.current)&&(e.onmousedown=function(t){document.body.style.userSelect="none";var n=t.clientX-e.offsetLeft,i=t.clientY-e.offsetTop,r=Date.now(),o=function(e){var t=56/window.innerWidth,r=56/window.innerHeight,o=pe(e.clientX-n,e.clientY-i,t,r),a=o.x,c=o.y;Object.assign(u,{x:a,y:c}),requestAnimationFrame((function(){f()}))};document.addEventListener("mousemove",o),document.addEventListener("mouseup",(function e(){var t=Date.now();l.current=t-r>300,document.body.style.userSelect="",document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",e)}))})}),[]),Ae((function(){if(c1-e?this.calcSideModeStyle(i1-t&&(this.data.window.y=1-a)),this.setStyle()}},{key:"registerDragDialog",value:function(){var e=this;this.dragHandle.current.onmousedown=function(t){if(!e.state.isFullScreen){document.body.style.userSelect="none";var n=t.clientX-e.containerRef.current.offsetLeft,i=t.clientY-e.containerRef.current.offsetTop,r=function(t){if(!e.disabled){e.data.showMode="window";var r=pe(t.clientX-n,t.clientY-i,e.data.window.width,e.data.window.height),o=r.x,a=r.y;Object.assign(e.data.window,{x:o,y:a}),e.setStyle()}};document.addEventListener("mousemove",r),document.addEventListener("mouseup",(function t(){document.body.style.userSelect="",document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t),e.disabled||e.snapToEdge()}))}}}},{key:"registerDragDialogBorder",value:function(){var e=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(t){if(!e.state.isFullScreen){var n="side"===e.data.showMode?e.data.side:e.data.window;n.x=t.rect.left/window.innerWidth,n.y=t.rect.top/window.innerHeight,n.width=t.rect.width/window.innerWidth,n.height=t.rect.height/window.innerHeight,e.setStyle()}},start:function(){e.disabled=!0,document.body.style.userSelect="none"},end:function(){e.disabled=!1,document.body.style.userSelect=""}}})}},{key:"handleFullScreenChange",value:function(){this.setState({isFullScreen:null!==document.fullscreenElement})}},{key:"componentDidMount",value:function(){this.handleFullScreenChange=this.handleFullScreenChange.bind(this);var e=localStorage.getItem(ti.STYLE_CACHE);if(e){var t=JSON.parse(e);t.side&&fe(t.side)&&t.window&&fe(t.window)&&Object.assign(this.data,t)}this.setStyle(),this.registerDragDialog(),this.registerDragDialogBorder(),document.addEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"close",value:function(){this.props.close()}},{key:"fullScreen",value:function(){var e=this.containerRef.current;e&&(e.requestFullscreen(),this.props.fullscreen(!0))}},{key:"closeFullScreen",value:function(){var e;this.state.isFullScreen&&(null===(e=document)||void 0===e||e.exitFullscreen(),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.setState({isMinimize:!1}),this.props.minimize(!1)}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"render",value:function(){return _t(bi.Provider,{value:this.containerContext,children:_t("div",{className:"".concat(this.ns.b()),children:[_t("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:[_t("div",{ref:this.dragHandle,className:this.ns.b("header"),children:[_t("div",{className:this.ns.b("header-caption"),children:this.props.caption||"AI助手"}),_t("div",{className:this.ns.b("header-action-wrapper"),children:[_t("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:_t(Nt,{})}),this.state.isFullScreen?_t("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:_t(Tt,{})}):_t("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:_t(Ct,{})}),_t("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:_t(gt,{})})]})]}),"TOPIC"===this.props.mode?_t("div",{className:"".concat(this.ns.b("main")),children:[_t("div",{className:"".concat(this.ns.be("main","left")),children:_t(gi,{controller:this.props.aiTopic})}),_t("div",{className:"".concat(this.ns.be("main","right")),children:[_t("div",{className:this.ns.b("content"),children:_t(bn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(gn,{data:this.props.aiTopic.activedTopic.value,type:"footer",className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(pi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}):_t("div",{className:"".concat(this.ns.be("main","default")),children:[_t("div",{className:this.ns.b("content"),children:_t(bn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(gn,{type:"footer",data:this.props.aiTopic.activedTopic.value,className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(pi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}),_t(wi,{title:this.props.caption||"AI助手",controller:this.props.aiChat,isMinimize:this.state.isMinimize,onClick:this.exitMinimize.bind(this)})]})})}}]),o}(I);t("ChatContainer",ki)}}}))}(); diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.17/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.17/polyfills.legacy.js new file mode 100644 index 0000000000000000000000000000000000000000..c8c7654431885af1a2dc12a9fe73b198407bf314 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.17/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+""},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+""},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="\t\n\v\f\r                 \u2028\u2029\ufeff",JE=L,qE=Ao,KE=VE,YE=S("".replace),XE=RegExp("^["+KE+"]+"),QE=RegExp("(^|[^"+KE+"])["+KE+"]+$"),ZE=function(t){return function(r){var e=qE(JE(r));return 1&t&&(e=YE(e,XE,"")),2&t&&(e=YE(e,QE,"$1")),e}},tx={start:ZE(1),end:ZE(2),trim:ZE(3)},rx=te.PROPER,ex=o,nx=VE,ox=tx.trim;ro({target:"String",proto:!0,forced:function(t){return ex((function(){return!!nx[t]()||"​…᠎"!=="​…᠎"[t]()||rx&&nx[t].name!==t}))}("trim")},{trim:function(){return ox(this)}});var ix=Dt,ux=hn,ax=co,cx=mo,fx=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=ix(this),e=ux(r),n=arguments.length;if(n){fx(e+n);for(var o=e;o--;){var i=o+n;o in r?r[i]=r[o]:cx(r,i)}for(var u=0;uo;)for(var a,c=mx(arguments[o++]),f=i?Sx(px(c),i(c)):px(c),s=f.length,l=0;s>l;)a=f[l++],sx&&!hx(u,c,a)||(e[a]=c[a]);return e}:bx,xx=Ex;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==xx},{assign:xx});var Ox={exports:{}},jx=o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Ix=o,Tx=B,Rx=j,Px=jx,Ax=Object.isExtensible,kx=Ix((function(){Ax(1)}))||Px?function(t){return!!Tx(t)&&((!Px||"ArrayBuffer"!==Rx(t))&&(!Ax||Ax(t)))}:Ax,Cx=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),Nx=ro,Lx=S,Fx=pe,Mx=B,_x=Gt,Dx=Rr.f,Ux=Qe,$x=mw,Gx=kx,zx=Cx,Wx=!1,Bx=Vt("meta"),Hx=0,Vx=function(t){Dx(t,Bx,{value:{objectID:"O"+Hx++,weakData:{}}})},Jx=Ox.exports={enable:function(){Jx.enable=function(){},Wx=!0;var t=Ux.f,r=Lx([].splice),e={};e[Bx]=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!!c(this,t)}}),hO(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)}}),wO&&lO(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=xO(r),i=xO(n);yO(t,r,(function(t,r){EO(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)?mO("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,mO(void 0,!0))}),e?"entries":"values",!e,!0),bO(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=Yx[t],a=u&&u.prototype,c=u,f={},s=function(t){var r=Xx(a[t]);Zx(a,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!iO(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(Qx(t,!nO(u)||!(o||a.forEach&&!uO((function(){(new u).entries().next()})))))c=e.getConstructor(r,t,n,i),tO.enable();else if(Qx(t,!0)){var l=new c,h=l[i](o?{}:-0,1)!==l,v=uO((function(){l.has(1)})),p=aO((function(t){new u(t)})),d=!o&&uO((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((c=r((function(t,r){eO(t,a);var e=fO(new u,t,c);return oO(r)||rO(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,Kx({global:!0,constructor:!0,forced:c!==u},f),cO(c,t),o||e.setStrong(c,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),OO);var jO,IO=ro,TO=Fu,RO=n.f,PO=sn,AO=Ao,kO=_E,CO=L,NO=UE,LO=TO("".startsWith),FO=TO("".slice),MO=Math.min,_O=NO("startsWith");IO({target:"String",proto:!0,forced:!!(_O||(jO=RO(String.prototype,"startsWith"),!jO||jO.writable))&&!_O},{startsWith:function(t){var r=AO(CO(this));kO(t);var e=PO(MO(arguments.length>1?arguments[1]:void 0,r.length)),n=AO(t);return LO?LO(r,n,e):FO(r,e,e+n.length)===n}});var DO=ro,UO=Ms.findIndex,$O=sm,GO="findIndex",zO=!0;GO in[]&&Array(1)[GO]((function(){zO=!1})),DO({target:"Array",proto:!0,forced:zO},{findIndex:function(t){return UO(this,t,arguments.length>1?arguments[1]:void 0)}}),$O(GO);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=tx.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;o \ No newline at end of file diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.18/index.min.css b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.18/index.min.css new file mode 100644 index 0000000000000000000000000000000000000000..4da306d2ab918c2b37fc1c8904f807ab5d88448e --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.18/index.min.css @@ -0,0 +1 @@ +@charset "UTF-8";.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-chat-suggestions{--ibiz-chat-suggestions-bg: var(--ibiz-ai-chat-background-color);--ibiz-chat-suggestions-hover-bg-color: var(--ibiz-ai-chat-hover-background-color);--ibiz-chat-suggestions-border: var(--ibiz-ai-chat-border-color);display:flex;flex-direction:column;gap:var(--ibiz-spacing-base-tight);width:100%}.ibiz-chat-suggestions__item{display:flex;align-items:center;align-self:flex-start;justify-content:space-between;min-width:200px;height:32px;padding:0 12px;overflow:hidden;line-height:32px;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background-color:var(--ibiz-chat-suggestions-bg);border:1px solid var(--ibiz-chat-suggestions-border);border-radius:12px;transition:.3s background-color}.ibiz-chat-suggestions__item:hover{background-color:var(--ibiz-chat-suggestions-hover-bg-color)}.ibiz-chat-suggestions__item.is-action{color:var(--ibiz-ai-chat-color-2);background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-suggestions__item.is-action:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-suggestions__item .ibiz-chat-suggestions__item-icon{margin-left:12px;font-size:18px}.ibiz-markdown-message{padding:6px 10px}.ibiz-markdown-message .cherry{border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-markdown-message .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-markdown-message .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-markdown-message .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-markdown-message .cherry div[data-type=codeBlock] pre[class*=language-]::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.2)}.ibiz-markdown-message .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-markdown-message .cherry-previewer{padding:8px;border:0}.ibiz-markdown-message .cherry-previewer figure{max-width:1200px}.ibiz-markdown-message .cherry-previewer figure>svg{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)}.ibiz-markdown-message-footer{padding:10px 0}@keyframes circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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-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%;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:10px 16px;margin:0;font-size:14px;line-height:1.5;color:var(--color-fg-default);word-wrap:break-word;background:#e7f8ff;text-size-adjust:100%;background-color:var(--ibiz-ai-chat-background-color-light);border-radius:var(--ibiz-ai-chat-border-radius)}.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--material{gap:8px;display:flex;align-items:center;flex-flow:row-reverse wrap;margin-bottom:8px}.ibiz-user-message-question__content .cherry{min-height:0px;border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-user-message-question__content .cherry-markdown p{margin:0}.ibiz-user-message-question__content .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-user-message-question__content .cherry-previewer{padding:0;border:0;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color-light)}.ibiz-user-message-question__content .cherry-previewer figure{max-width:1200px}.ibiz-user-message-question__content .cherry-previewer figure>svg{width:100%;min-height:100px}.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock]{position:relative!important;display:flex;padding-top:24px}.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock] .cherry-edit-code-block,.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock] .cherry-copy-code-block{position:absolute;top:0}.ibiz-user-message-question__content .anchor{display:none!important}.ibiz-user-message-question__user-header{width:100%;height:32px;display:flex;margin-bottom:8px;align-items:center;justify-content:end}.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:10px 16px;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{display:flex;padding:6px 10px;justify-content:end}.ibiz-unknown-message__content{padding:10px 16px;color:#000;width:max-content;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-item{display:flex;cursor:pointer;position:relative;align-items:center;white-space:nowrap}.ibiz-chat-toolbar-item__content{display:flex;align-items:center;white-space:nowrap}.ibiz-chat-toolbar-item__content--icon{width:18px;height:18px;font-size:18px;display:flex;flex-shrink:0;align-items:center;justify-content:center}.ibiz-chat-toolbar-item__content--label,.ibiz-chat-toolbar-item__more{display:flex;align-items:center}.ibiz-chat-toolbar-item__more--icon{font-size:18px}.ibiz-chat-toolbar-item-default{font-size:14px;width:fit-content;color:var(--ibiz-ai-chat-color-2)}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__content{gap:6px;line-height:28px;padding:2px 14px;border-radius:12px;background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-toolbar-item-default.is-disabled{cursor:not-allowed}.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__content,.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__more{background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__content:hover,.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__more:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-default.is-more .ibiz-chat-toolbar-item__content{padding:2px 8px 2px 14px;border-radius:12px 0 0 12px}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__more{height:32px;padding:2px 14px 2px 8px;border-radius:0 12px 12px 0;border-left:1px solid var(--ibiz-ai-chat-border-color);background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-toolbar-item-circle{height:32px;padding:6px;max-width:32px;overflow:hidden;font-size:12px;white-space:nowrap;border-radius:15px;transition:max-width .8s ease;border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-toolbar-item-circle.is-disabled{cursor:not-allowed;color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-circle: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-item-circle .ibiz-chat-toolbar-item__content--label{font-size:14px;margin-left:8px;width:calc(100% - 32px)}.ibiz-chat-toolbar-item-dropdown{right:0;gap:4px;bottom:36px;padding:4px;display:flex;max-width:150px;border-radius:6px;position:absolute;flex-direction:column;background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-toolbar-item-dropdown__item{gap:6px;display:flex;padding:0 8px;cursor:pointer;line-height:32px;border-radius:6px;align-items:center}.ibiz-chat-toolbar-item-dropdown__item.is-disabled{cursor:not-allowed;background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-dropdown__item:hover:not(.is-disabled){background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-dropdown__item--icon{width:18px;height:18px;font-size:18px;display:flex;flex-shrink:0;align-items:center;justify-content:center}.ibiz-chat-toolbar-item-dropdown__item--label{flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ibiz-chat-toolbar{display:flex;flex-wrap:wrap;align-items:center}.ibiz-chat-toolbar .ibiz-chat-toolbar-item:not(:first-child){margin-left:6px}.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{width:calc(100% - 12px);height:calc(100% - 12px);margin:6px;overflow:hidden auto}.ibiz-chat-messages::-webkit-scrollbar{width:6px}.ibiz-chat-messages::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-wrapper{max-height:72px;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:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-input__textarea::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);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-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{gap:4px;padding:4px;display:flex;min-width:120px;border-radius:8px;flex-direction:column;background-color:var(--ibiz-color-bg-3);border:1px solid var(--ibiz-color-border)}.ibiz-pop__item{display:flex;padding:0 8px;cursor:pointer;line-height:32px;border-radius:6px;align-items:center}.ibiz-pop__item:hover{background-color:var(--ibiz-color-primary-hover)}.ibiz-pop__item--caption{min-width:0;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-pop__item svg{width:16px;height:16px;flex-shrink:0;margin-right:8px;fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-topic-item{height:38px;display:flex;padding:0 8px;cursor:pointer;border-radius:12px;position:relative;align-items:center;font-size:var(--ibiz-font-size-regular)}.ibiz-chat-topic-item:hover:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item:hover:not(.is-edit) .ibiz-chat-topic-item__icon{opacity:1}.ibiz-chat-topic-item.is-active:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item.is-edit{border:2px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-topic-item__caption{width:100%;height:100%;display:flex;align-items:center}.ibiz-chat-topic-item__caption--text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-topic-item__caption--editor{width:100%;height:100%;border:none;outline:none;color:var(--ibiz-ai-chat-color);background:var(--ibiz-ai-chat-background-color)}.ibiz-chat-topic-item__icon{top:50%;gap:8px;opacity:0;right:10px;height:24px;display:flex;outline:none;padding:0 8px;border-radius:8px;position:absolute;align-items:center;justify-content:flex-end;transform:translateY(-50%);color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item__icon--item{font-size:12px}.ibiz-chat-search{gap:8px;width:100%;display:flex;line-height:32px;border-radius:1px;padding:1px 11px;align-items:center;justify-content:center;border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-search:hover,.ibiz-chat-search.is-focus{border:1px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-search__prefix{width:14px;height:14px;display:flex;flex-shrink:0;font-size:14px;align-items:center}.ibiz-chat-search__inner{padding:2px 0 0;outline:0;flex-grow:1;border:none;height:28px;min-width:0;color:inherit;line-height:28px;background-color:initial}.ibiz-chat-topics{display:flex;flex-direction:column;gap:8px;height:100%;padding:8px 0}.ibiz-chat-topics__header{flex-shrink:0;padding:0 8px}.ibiz-chat-topics__main{flex-grow:1;padding:0 8px;overflow-y:auto}.ibiz-chat-topics__empty{font-size:var(--ibiz-font-size-regular);text-align:center}.ibiz-chat-topics__footer{display:flex;flex-shrink:0;align-items:center;justify-content:center;padding:0 8px}.ibiz-chat-topics__action{display:flex;gap:4px;align-items:center;padding:4px 12px;font-size:14px;cursor:pointer;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:2px}.ibiz-chat-topics__action:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topics__action>svg{width:14px!important;height:14px!important}.ibiz-chat-minimize{width:56px;height:56px;display:flex;z-index:99999;cursor:pointer;position:absolute;border-radius:50%;align-items:center;justify-content:center}.ibiz-chat-minimize.is-hidden{display:none}.ibiz-chat-minimize.is-show-halo{width:90px;height:90px;background-size:cover;background-position:center;background-repeat:no-repeat;background-image:url(assets/gif/halo.gif)}.ibiz-chat-minimize__content{width:56px;height:56px;display:flex;border-radius:50%;align-items:center;justify-content:center;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color)}.ibiz-chat-minimize__content:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-minimize__content svg{fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-minimize__content.is-show-border{border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover{left:50%;bottom:90px;padding:8px;display:block;font-size:12px;border-radius:8px;position:absolute;transform:translate(-50%);box-shadow:0 2px 8px rgba(0,0,0,.1);background-color:var(--ibiz-ai-chat-background-color);color:var(--ibiz-ai-chat-color);border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover .typewriter{direction:rtl;overflow:hidden;max-width:200px;width:fit-content;white-space:nowrap;text-overflow:ellipsis;animation:typing 3s steps(40,end)}@keyframes blink{0%,to{opacity:0}50%{opacity:1}}@keyframes typing{0%{width:0}to{width:100%}}@keyframes blink-caret{0%,to{border-color:transparent}50%{border-color:var(--ibiz-ai-chat-color)}}.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-ai-chat-scroll-bar-width: 8px;--ibiz-ai-chat-scroll-bar-height: 8px;--ibiz-ai-chat-scroll-bar-radius: 4px}.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__toolbar{margin:0;left:20px;gap:8px 4px;bottom:118px;min-height:48px;position:absolute;justify-content:center;width:calc(100% - 40px)}.ibiz-chat-container__toolbar.is-has-materials{bottom:180px}.ibiz-chat-container *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-container *::-webkit-scrollbar-thumb{border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.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-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.18/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.18/index.system.min.js new file mode 100644 index 0000000000000000000000000000000000000000..6358ab34c9e44f74d2052d01a653370fac1d6f4e --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.18/index.system.min.js @@ -0,0 +1 @@ +!function(){function e(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)}function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,n)}function n(e){var t=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(e){return!1}}();return function(){var n,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}(this,n)}}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||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(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(e,t)||c(e,t)||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(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);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;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:I(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function h(e,t,n,i,r,o,a){try{var c=e[o](a),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(i,r)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){h(o,i,r,a,c,"next",e)}function c(e){h(o,i,r,a,c,"throw",e)}a(void 0)}))}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===c[a]&&(c[a]=e.defaultProps[a]);return O(e,c,i,o,null)}function O(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++h:r};return null==r&&null!=l.vnode&&l.vnode(o),o}function L(e){return e.children}function I(e,t){this.props=e,this.context=t}function z(e,t){if(null==t)return e.__?z(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&y.sort(x));B.__r=0}function H(e,t,n,i,r,o,a,c,s,l,u){var d,h,p,f,v,m,_,g,y,w=0,b=i&&i.__k||T,x=b.length,k=x,N=t.length;for(n.__k=[],d=0;d0?O(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)?(f.__=n,f.__b=n.__b+1,-1===(g=V(f,b,_=d+w,k))?p=C:(p=b[g]||C,b[g]=void 0,k--),$(e,f,p,r,o,a,c,s,l,u),v=f.__e,(h=f.ref)&&p.ref!=h&&(p.ref&&Z(p.ref,null,f),u.push(h,f.__c||v,f)),null!=v&&(null==m&&(m=v),(y=p===C||null===p.__v)?-1==g&&w--:g!==_&&(g===_+1?w++:g>_?k>N-_?w+=g-_:w--:w=g<_&&g==_-1?g-_:0),_=d+w,"function"!=typeof f.type||g===_&&p.__k!==f.__k?"function"==typeof f.type||g===_&&!y?void 0!==f.__d?(s=f.__d,f.__d=void 0):s=v.nextSibling:s=R(e,v,s):s=j(f,s,e),"function"==typeof n.type&&(n.__d=s))):(p=b[d])&&null==p.key&&p.__e&&(p.__e==s&&(p.__=i,s=z(p)),G(p,p,!1),b[d]=null);for(n.__e=m,d=x;d--;)null!=b[d]&&("function"==typeof n.type&&null!=b[d].__e&&b[d].__e==n.__d&&(n.__d=b[d].__e.nextSibling),G(b[d],b[d]))}function j(e,t,n){for(var i,r=e.__k,o=0;r&&o(null!=s?1:0))for(;a>=0||c=0){if((s=t[a])&&r==s.key&&o===s.type)return a;a--}if(c0&&void 0!==arguments[0]?arguments[0]:"";return Q(this.namespace,this.block,e,"","")}},{key:"e",value:function(e){return e?Q(this.namespace,this.block,"",e,""):""}},{key:"m",value:function(e){return e?Q(this.namespace,this.block,"","",e):""}},{key:"be",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,t,""):""}},{key:"em",value:function(e,t){return e&&t?Q(this.namespace,this.block,"",e,t):""}},{key:"bm",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,"",t):""}},{key:"bem",value:function(e,t,n){return e&&t&&n?Q(this.namespace,this.block,e,t,n):""}},{key:"is",value:function(e,t){return e&&t?"".concat("is-").concat(e):""}},{key:"cssVar",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarName(n)]=e[n]);return t}},{key:"cssVarBlock",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarBlockName(n)]=e[n]);return t}},{key:"cssVarName",value:function(e){return"--".concat(this.namespace,"-").concat(e)}},{key:"cssVarBlockName",value:function(e){return"--".concat(this.namespace,"-").concat(this.block,"-").concat(e)}}]),e}();function te(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ne(e,t){for(var n,i="",r=0,o=-1,a=0,c=0;c<=e.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}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(o+1,c):i=e.slice(o+1,c),r=c-o-1;o=c,a=0}else 46===n&&-1!==a?++a:a=-1}return i}var ie={resolve:function(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var r;i>=0?r=arguments[i]:(void 0===e&&(e=process.cwd()),r=e),te(r),0!==r.length&&(t=r+"/"+t,n=47===r.charCodeAt(0))}return t=ne(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(te(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=ne(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return te(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":ie.normalize(e)},relative:function(e,t){if(te(e),te(t),e===t)return"";if((e=ie.resolve(e))===(t=ie.resolve(t)))return"";for(var n=1;nc){if(47===t.charCodeAt(o+l))return t.slice(o+l+1);if(0===l)return t.slice(o+l)}else r>c&&(47===e.charCodeAt(n+l)?s=l:0===l&&(s=0));break}var u=e.charCodeAt(n+l);if(u!==t.charCodeAt(o+l))break;47===u&&(s=l)}var d="";for(l=n+s+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(o+s):(o+=s,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(te(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,r=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');te(e);var n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,c=-1;for(n=e.length-1;n>=0;--n){var s=e.charCodeAt(n);if(47===s){if(!o){i=n+1;break}}else-1===c&&(o=!1,c=n+1),a>=0&&(s===t.charCodeAt(a)?-1==--a&&(r=n):(a=-1,r=c))}return i===r?r=c:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){te(e);for(var t=-1,n=0,i=-1,r=!0,o=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(r=!1,i=a+1),46===c?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=a+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==f(e))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+f(e));return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}("/",e)},parse:function(e){te(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0),r=47===i;r?(t.root="/",n=1):n=0;for(var o=-1,a=0,c=-1,s=!0,l=e.length-1,u=0;l>=n;--l)if(47!==(i=e.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&&(t.base=t.name=0===a&&r?e.slice(1,c):e.slice(a,c)):(0===a&&r?(t.name=e.slice(1,o),t.base=e.slice(1,c)):(t.name=e.slice(a,o),t.base=e.slice(a,c)),t.ext=e.slice(o,c)),a>0?t.dir=e.slice(0,a-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};function re(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function oe(){return"".concat(re()+re(),"-").concat(re(),"-").concat(re(),"-").concat(re(),"-").concat(re()).concat(re()).concat(re())}ie.posix=ie;var ae=/]*>[\s\S]*?<\/svg>/;function ce(e){return ae.test(e)}var se=function(){function e(){v(this,e)}return _(e,null,[{key:"copy",value:function(e){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=e,this.inputElement.select(),document.execCommand("copy")}}]),e}();g(se,"inputElement",null);var le=function(){function e(){v(this,e)}var t,n,i,r,o,a,c,s,l,u;return _(e,null,[{key:"checkDataBaseExists",value:(u=p(d().mark((function e(t){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,indexedDB.databases();case 3:return n=e.sent,e.abrupt("return",n.some((function(e){return e.name===t})));case 7:return e.prev=7,e.t0=e.catch(0),console.error("检查数据库是否存在时出错:",e.t0),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])}))),function(e){return u.apply(this,arguments)})},{key:"deleteDatabase",value:(l=p(d().mark((function t(n){var i,r;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.lastLink&&(null===(i=(r=e.lastLink).close)||void 0===i||i.call(r)),t.abrupt("return",new Promise((function(e,t){var i=indexedDB.deleteDatabase(n);i.onsuccess=function(){e(!0)},i.onerror=function(){e(!1)},i.onblocked=function(){console.warn("删除数据库 ".concat(n," 被阻塞,可能有其他连接正在使用该数据库。")),t(new Error("删除数据库 ".concat(n," 被阻塞")))}})));case 2:case"end":return t.stop()}}),t)}))),function(e){return l.apply(this,arguments)})},{key:"checkTableExists",value:(s=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.checkDataBaseExists(n);case 2:if(t.sent){t.next=5;break}return t.abrupt("return",!1);case 5:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onupgradeneeded=function(t){e.db=t.target.result,e.version=e.db.version},o.onsuccess=function(n){e.db=n.target.result,e.lastLink=o.result;var r=e.db.objectStoreNames.contains(i);o.result.close(),t(r)},o.onerror=function(e){r(e.target.error)}})));case 6:case"end":return t.stop()}}),t)}))),function(e,t){return s.apply(this,arguments)})},{key:"createTable",value:(c=p(d().mark((function t(n,i,r){var o,a=arguments;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=a.length>3&&void 0!==a[3]&&a[3],t.abrupt("return",new Promise((function(t){var a,c;e.version+=1,e.lastLink&&(null===(a=(c=e.lastLink).close)||void 0===a||a.call(c));var s=indexedDB.open(n,e.version);s.onupgradeneeded=function(t){if(e.db=t.target.result,!e.db.objectStoreNames.contains(i)){var n={};r?n.keyPath=r:o&&(n.autoIncrement=!0),e.db.createObjectStore(i,n)}},s.onsuccess=function(){e.lastLink=s.result,s.result.close(),t(!0)},s.onerror=function(){t(!1)}})));case 2:case"end":return t.stop()}}),t)}))),function(e,t,n){return c.apply(this,arguments)})},{key:"deleteTable",value:(a=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){var r,o;e.version+=1,e.lastLink&&(null===(r=(o=e.lastLink).close)||void 0===r||r.call(o));var a=indexedDB.open(n,e.version);a.onupgradeneeded=function(t){e.db=t.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)&&e.db.deleteObjectStore(i)},a.onsuccess=function(n){e.db=n.target.result,e.lastLink=a.result,a.result.close(),t(!0)},a.onerror=function(){a.result.close(),t(!1)}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t){return a.apply(this,arguments)})},{key:"addData",value:(o=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).add(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(null)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return o.apply(this,arguments)})},{key:"deleteData",value:(r=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).delete(r);o.onsuccess=function(e){t(!0)},o.onerror=function(){t(!1)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"updateData",value:(i=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).put(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(r)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"getData",value:(n=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var c=e.db.transaction([i],"readonly").objectStore(i).get(r);c.onsuccess=function(e){t(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 t.stop()}}),t)}))),function(e,t,i){return n.apply(this,arguments)})},{key:"getAllData",value:(t=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=o.result,e.db.objectStoreNames.contains(i)){var r=e.db.transaction([i],"readonly").objectStore(i).getAll();r.onsuccess=function(e){t(r.result)},r.onerror=function(){t([])}}o.result.close()},o.onerror=function(){o.result.close(),r()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}]),e}();g(le,"version",1),g(le,"db",null),g(le,"lastLink",void 0);var ue=function(){function e(t){v(this,e),g(this,"options",void 0),this.options=u({multiple:!0,accept:"*/*",maxSize:5242880},t)}var t,n;return _(e,[{key:"openFilePicker",value:function(){var e=this,t=document.createElement("input");t.type="file",t.multiple=this.options.multiple,t.accept=this.options.accept||"",t.onchange=function(t){var n=Array.from(t.target.files||[]);e.handleFiles(n)},t.click()}},{key:"handleFiles",value:(n=p(d().mark((function e(t){var n,i,r,o=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.length){e.next=2;break}return e.abrupt("return");case 2:return r=t.filter((function(e){var t,n;return!(o.options.maxSize&&e.size>o.options.maxSize&&(null===(t=(n=o.options).onError)||void 0===t||t.call(n,new Error("文件大小超过限制 (".concat(o.formatSize(e.size)," > ").concat(o.formatSize(o.options.maxSize),")")),e),1))})),null===(n=(i=this.options).onSelect)||void 0===n||n.call(i,r),e.next=6,Promise.all(r.map((function(e){return o.processFile(e)})));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"processFile",value:(t=p(d().mark((function e(t){var n,i,r,o,a,c,s,l,u=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a=function(e){var n,i;null===(n=(i=u.options).onProgress)||void 0===n||n.call(i,t,e)},e.next=4,this.options.onUpload(t,a);case 4:c=e.sent,null===(n=(i=this.options).onProgress)||void 0===n||n.call(i,t,100),null===(r=(o=this.options).onSuccess)||void 0===r||r.call(o,c,t),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),null===(s=(l=this.options).onError)||void 0===s||s.call(l,e.t0 instanceof Error?e.t0:new Error("上传失败"),t);case 12:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e){return t.apply(this,arguments)})},{key:"formatSize",value:function(e){if(0===e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat((e/Math.pow(1024,t)).toFixed(2)," ").concat(["B","KB","MB","GB"][t])}}]),e}(),de=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("resource")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r),c=o?JSON.parse(o):{},s=a?JSON.parse(a):{};return{id:c.id,type:n,data:c,metadata:s}}catch(Jn){throw new Error("XML 解析错误: ".concat(Jn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/resources>/i.exec(e);if(!t)return{resources:[],remainingText:e,hasResources:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.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(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("resources");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("resource");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}(),he=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("suggestion")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r);return{type:n,data:o?JSON.parse(o):{},metadata:a?JSON.parse(a):{}}}catch(Jn){throw new Error("XML 解析错误: ".concat(Jn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/suggestions>/i.exec(e);if(!t)return{suggestions:[],remainingText:e,hasSuggestions:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.slice(r)).replace(/\n/g,"");try{return{suggestions:this.parse(n),remainingText:o,hasSuggestions:!0}}catch(c){return{suggestions:[],remainingText:o,hasSuggestions:!0,error:"资源解析失败: ".concat(c.message)}}}},{key:"stringify",value:function(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("suggestions");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("suggestion");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}();function pe(e){return e.x>=0&&e.x<=1&&e.y>=0&&e.y<=1}function fe(e,t,n,i){var r=e/window.innerWidth,o=t/window.innerHeight;return{x:Math.max(0,Math.min(r,1-n)),y:Math.max(0,Math.min(o,1-i))}}var ve,me,_e,ge,ye=0,we=[],be=[],xe=l.__b,ke=l.__r,Ce=l.diffed,Te=l.__c,Ne=l.unmount;function Ee(e,t){l.__h&&l.__h(me,e,ye||t),ye=0;var n=me.__H||(me.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:be}),n.__[e]}function Se(e){return ye=1,function(e,t,n){var i=Ee(ve++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):Fe(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=me,!me.u)){var r=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var a=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&i.__c.props===e)&&(!o||o.call(this,e,t,n))};me.u=!0;var o=me.shouldComponentUpdate,a=me.componentWillUpdate;me.componentWillUpdate=function(e,t,n){if(this.__e){var i=o;o=void 0,r(e,t,n),o=i}a&&a.call(this,e,t,n)},me.shouldComponentUpdate=r}return i.__N||i.__}(Fe,e)}function Ae(e,t){var n=Ee(ve++,3);!l.__s&&je(n.__H,t)&&(n.__=e,n.i=t,me.__H.__h.push(n))}function Me(e){return ye=5,Oe((function(){return{current:e}}),[])}function Oe(e,t){var n=Ee(ve++,7);return je(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Le(e,t){return ye=8,Oe((function(){return e}),t)}function Ie(e){var t=me.context[e.__c],n=Ee(ve++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(me)),t.props.value):e.__}function ze(){for(var e;e=we.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Be),e.__H.__h.forEach(He),e.__H.__h=[]}catch(ei){e.__H.__h=[],l.__e(ei,e.__v)}}l.__b=function(e){me=null,xe&&xe(e)},l.__r=function(e){ke&&ke(e),ve=0;var t=(me=e.__c).__H;t&&(_e===me?(t.__h=[],me.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=be,e.__N=e.i=void 0}))):(t.__h.forEach(Be),t.__h.forEach(He),t.__h=[],ve=0)),_e=me},l.diffed=function(e){Ce&&Ce(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==we.push(t)&&ge===l.requestAnimationFrame||((ge=l.requestAnimationFrame)||Pe)(ze)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==be&&(e.__=e.__V),e.i=void 0,e.__V=be}))),_e=me=null},l.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Be),e.__h=e.__h.filter((function(e){return!e.__||He(e)}))}catch(Ge){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l.__e(Ge,e.__v)}})),Te&&Te(e,t)},l.unmount=function(e){Ne&&Ne(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Be(e)}catch(e){t=e}})),n.__H=void 0,t&&l.__e(t,n.__v))};var De="function"==typeof requestAnimationFrame;function Pe(e){var t,n=function(){clearTimeout(i),De&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);De&&(t=requestAnimationFrame(n))}function Be(e){var t=me,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),me=t}function He(e){var t=me;e.__c=e.__(),me=t}function je(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Fe(e,t){return"function"==typeof t?t(e):t}function Re(){throw new Error("Cycle detected")}var Ve=Symbol.for("preact-signals");function We(){if(Xe>1)Xe--;else{for(var e,t=!1;void 0!==$e;){var n=$e;for($e=void 0,Ze++;void 0!==n;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&et(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=i}}if(Ze=0,Xe--,t)throw e}}var Ue,qe,Ye=void 0,$e=void 0,Xe=0,Ze=0,Ge=0;function Je(e){if(void 0!==Ye){var t=e.n;if(void 0===t||t.t!==Ye)return t={i:0,S:e,p:Ye.s,n:void 0,t:Ye,e:void 0,x:void 0,r:t},void 0!==Ye.s&&(Ye.s.n=t),Ye.s=t,e.n=t,32&Ye.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=Ye.s,t.n=void 0,Ye.s.n=t,Ye.s=t),t}}function Ke(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Qe(e){return new Ke(e)}function et(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function tt(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function nt(e){for(var t=e.s,n=void 0;void 0!==t;){var i=t.p;-1===t.i?(t.S.U(t),void 0!==i&&(i.n=t.n),void 0!==t.n&&(t.n.p=i)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=i}e.s=n}function it(e){Ke.call(this,void 0),this.x=e,this.s=void 0,this.g=Ge-1,this.f=4}function rt(e){return new it(e)}function ot(e){var t=e.u;if(e.u=void 0,"function"==typeof t){Xe++;var n=Ye;Ye=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,at(e),t}finally{Ye=n,We()}}}function at(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ot(e)}function ct(e){if(Ye!==this)throw new Error("Out-of-order effect");nt(this),Ye=e,this.f&=-2,8&this.f&&at(this),We()}function st(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function lt(e){var t=new st(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function ut(e,t){l[e]=t.bind(null,l[e]||function(){})}function dt(e){qe&&qe(),qe=e&&e.S()}function ht(e){var t=this,n=e.data,i=ft(n);i.value=n;var r=Oe((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e;m(r.peek())||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=r.peek()},rt((function(){var e=i.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return r.value}function pt(e,t,n,i){var r=t in e&&void 0===e.ownerSVGElement,o=Qe(n);return{o:function(e,t){o.value=e,i=t},d:lt((function(){var n=o.value.value;i[t]!==n&&(i[t]=n,r?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}function ft(e){return Oe((function(){return Qe(e)}),[])}function vt(e){var t=Me(e);return t.current=e,Ue.__$f|=4,Oe((function(){return rt((function(){return t.current()}))}),[])}Ke.prototype.brand=Ve,Ke.prototype.h=function(){return!0},Ke.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},Ke.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Ke.prototype.subscribe=function(e){var t=this;return lt((function(){var n=t.value,i=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=i}}))},Ke.prototype.valueOf=function(){return this.value},Ke.prototype.toString=function(){return this.value+""},Ke.prototype.toJSON=function(){return this.value},Ke.prototype.peek=function(){return this.v},Object.defineProperty(Ke.prototype,"value",{get:function(){var e=Je(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(Ye instanceof it&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Ze>100&&Re(),this.v=e,this.i++,Ge++,Xe++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{We()}}}}),(it.prototype=new Ke).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Ge)return!0;if(this.g=Ge,this.f|=1,this.i>0&&!et(this))return this.f&=-2,!0;var e=Ye;try{tt(this),Ye=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return Ye=e,nt(this),this.f&=-2,!0},it.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Ke.prototype.S.call(this,e)},it.prototype.U=function(e){if(void 0!==this.t&&(Ke.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},it.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},it.prototype.peek=function(){if(this.h()||Re(),16&this.f)throw this.v;return this.v},Object.defineProperty(it.prototype,"value",{get:function(){1&this.f&&Re();var e=Je(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),st.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},st.prototype.S=function(){1&this.f&&Re(),this.f|=1,this.f&=-9,ot(this),tt(this),Xe++;var e=Ye;return Ye=this,ct.bind(this,e)},st.prototype.N=function(){2&this.f||(this.f|=2,this.o=$e,$e=this)},st.prototype.d=function(){this.f|=8,1&this.f||at(this)},ht.displayName="_st",Object.defineProperties(Ke.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ht},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),ut("__b",(function(e,t){if("string"==typeof t.type){var n,i=t.props;for(var r in i)if("children"!==r){var o=i[r];o instanceof Ke&&(n||(t.__np=n={}),n[r]=o,i[r]=o.peek())}}e(t)})),ut("__r",(function(e,t){dt();var n,i=t.__c;i&&(i.__$f&=-2,void 0===(n=i.__$u)&&(i.__$u=n=function(e){var t;return lt((function(){t=this})),t.c=function(){i.__$f|=1,i.setState({})},t}())),Ue=i,dt(n),e(t)})),ut("__e",(function(e,t,n,i){dt(),Ue=void 0,e(t,n,i)})),ut("diffed",(function(e,t){var n;if(dt(),Ue=void 0,"string"==typeof t.type&&(n=t.__e)){var i=t.__np,r=t.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=pt(n,s,u,r),o[s]=l):l.o(u,r)}}}e(t)})),ut("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__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=t.__c;if(a){var c=a.__$u;c&&(a.__$u=void 0,c.d())}}e(t)})),ut("__h",(function(e,t,n,i){(i<3||9===i)&&(t.__$f|=2),e(t,n,i)})),I.prototype.shouldComponentUpdate=function(e,t){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 t)return!0;for(var r in e)if("__source"!==r&&e[r]!==this.props[r])return!0;for(var o in this.props)if(!(o in e))return!0;return!1};var mt=0;function _t(e,t,n,i,r,o){var a,c,s={};for(c in t)"ref"==c?a=t[c]:s[c]=t[c];var u={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--mt,__source:r,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===s[c]&&(s[c]=a[c]);return l.vnode&&l.vnode(u),u}var gt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},yt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},wt=function(e){return _t("svg",{viewBox:"0 0 1024 1024",id:"send",className:e.className,version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},bt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},xt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},kt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Ct=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Tt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Nt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M960 544H64a32 32 0 1 1 0-64h896a32 32 0 1 1 0 64"})})},Et=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[_t("path",{d:"M481.0752 263.3728l50.9952 1.024 1.8432-105.8816-50.9952-0.8192z"}),_t("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"}),_t("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"}),_t("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"}),_t("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"}),_t("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"})]})},St=function(){return _t("svg",{viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_t("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"}),_t("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"}),_t("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"})]})},At=function(){return _t("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_t("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"})})},Mt=function(){var e=1e3,t=140,n=250,i=.8;return _t("svg",{fill:"currentColor",viewBox:"0 0 ".concat(e," ").concat(e),xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:Array.from({length:4}).map((function(e,r){return _t("rect",{fill:"currentColor",rx:70,ry:70,height:n,width:t,x:286.66666666666663*r,y:375,children:[_t("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"}),_t("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)}))})},Ot=function(e){return _t("svg",{className:e.className,onClick:e.onClick,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Lt=function(e){return _t("svg",{className:e.className,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},It=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M972.657609 209.348408C987.158609 209.36839 998.930114 197.571202 998.949999 182.99865 998.969882 168.426097 987.230618 156.59651 972.729617 156.576528L32.457975 155.280806C17.956974 155.260823 6.18547 167.058012 6.165585 181.630564 6.1457 196.203116 17.884965 208.032703 32.385966 208.052686L972.657609 209.348408ZM180.466902 992.356169 180.466902 1019.014859 206.993296 1018.74074 833.361858 1012.267947 859.348284 1011.999407 859.348284 985.883377 859.348284 289.397297C859.348284 274.824732 847.59289 263.011332 833.091874 263.011332 818.590859 263.011332 806.835465 274.824732 806.835465 289.397297L806.835465 985.883377 832.82189 959.498805 206.453329 965.971599 232.979723 992.356169 232.979723 282.67005C232.979723 268.097483 221.224329 256.284085 206.723313 256.284085 192.222298 256.284085 180.466902 268.097483 180.466902 282.67005L180.466902 992.356169ZM656.410257 847.079027C656.410257 861.651593 668.165651 873.464992 682.666667 873.464992 697.167682 873.464992 708.923076 861.651593 708.923076 847.079027L708.923076 372.131659C708.923076 357.559091 697.167682 345.745694 682.666667 345.745694 668.165651 345.745694 656.410257 357.559091 656.410257 372.131659L656.410257 847.079027ZM341.333333 847.079027C341.333333 861.651593 353.08873 873.464992 367.589743 873.464992 382.090758 873.464992 393.846155 861.651593 393.846155 847.079027L393.846155 372.131659C393.846155 357.559091 382.090758 345.745694 367.589743 345.745694 353.08873 345.745694 341.333333 357.559091 341.333333 372.131659L341.333333 847.079027ZM498.871795 847.079027C498.871795 861.651593 510.627189 873.464992 525.128205 873.464992 539.62922 873.464992 551.384614 861.651593 551.384614 847.079027L551.384614 372.131659C551.384614 357.559091 539.62922 345.745694 525.128205 345.745694 510.627189 345.745694 498.871795 357.559091 498.871795 372.131659L498.871795 847.079027ZM392.147755 116.721777C392.147755 102.063669 403.758665 90.363507 418.40134 90.363507L622.925796 90.363507C637.408947 90.363507 649.179381 102.1619 649.179381 116.549585L649.179381 171.644875 701.692203 171.644875 701.692203 116.549585C701.692203 72.986607 666.38105 37.591577 622.925796 37.591577L418.40134 37.591577C374.724427 37.591577 339.634933 72.950804 339.634933 116.721777L339.634933 165.310801 392.147755 165.310801 392.147755 116.721777Z"})})},zt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 184l144 144 144-144"})})},Dt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"".concat(e.className," icon"),viewBox:"0 0 512 512",children:_t("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"})})},Pt=function(e){return _t("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",children:_t("circle",{cx:"25",cy:"25",r:"20",stroke:"currentColor",strokeWidth:"5",fill:"none",strokeDasharray:"31.415, 31.415",strokeLinecap:"round",children:_t("animateTransform",{attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"1s",repeatCount:"indefinite"})})})},Bt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ht=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},jt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ft=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Rt=function(e){return _t("svg",{className:e.className,id:"stop",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},Vt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})})},Wt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("path",{d:"M394.688 126.208a32 32 0 0 1 32-32h170.688a32 32 0 0 1 32 32v138.624h288a32 32 0 0 1 32 32v170.688a32 32 0 0 1-32 32H106.688a32 32 0 0 1-32-32V296.832a32 32 0 0 1 32-32h288V126.208z m64 32v138.624a32 32 0 0 1-32 32h-288v106.688h746.688V328.832h-288a32 32 0 0 1-32-32V158.208H458.688z"}),_t("path",{d:"M138.688 469.376a32 32 0 0 1 32-32h682.688a32 32 0 0 1 32 32v384a32 32 0 0 1-32 32H170.688a32 32 0 0 1-32-32v-384z m64 32v320h618.688v-320H202.688z"}),_t("path",{d:"M341.376 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32zM512 691.2a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0v-128a32 32 0 0 1 32-32zM682.688 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32z"})]})},Ut=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("path",{d:"M843.251 424.407l43.828-74.898c10.194-17.946 32.596-22.158 48.956-11.598 16.298 10.499 23.44 32.658 14.223 49.566l-113.11 195.212-61.164-40.044-126.418-82.285c-16.115-11.598-20.632-34.428-10.194-51.702 9.705-17.397 31.009-23.501 47.857-13.734l89.67 59.028C748.576 295.547 615.81 180.667 461.008 180.667c-177.387 0-320.042 148.758-320.042 331.335 0 183.613 143.692 331.334 319.981 331.334 107.861 0.184 208.58-56.158 268.034-149.858 1.099-1.038 1.099-2.075 2.075-2.075 6.348-9.949 17.092-15.871 28.568-15.81 19.35 0 35.648 16.848 35.648 36.93 0 7.508-2.137 14.833-6.104 21.059-72.823 114.698-196.066 183.675-328.099 183.614-216.088 0-391.4-181.478-391.4-405.195 0-223.718 175.312-405.195 391.339-405.195 183.125-0.427 342.016 131.606 382.243 317.601z"})})},qt=function(){return _t("svg",{version:"1.1",className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M627.498667 55.168l170.666666 170.666667a42.624 42.624 0 0 1 0 60.330666l-469.333333 469.333334A42.538667 42.538667 0 0 1 298.666667 768H128a42.666667 42.666667 0 0 1-42.666667-42.666667v-170.666666c0-11.306667 4.48-22.186667 12.501334-30.165334l469.333333-469.333333a42.624 42.624 0 0 1 60.330667 0zM896 896a42.666667 42.666667 0 0 1 0 85.333333H128a42.666667 42.666667 0 0 1 0-85.333333h768zM597.333333 145.664l-426.666666 426.666667V682.666667h110.336l426.666666-426.666667L597.333333 145.664z"})})},Yt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M184 112l144 144-144 144"})})},$t=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M896 870.4l-128-128c55.467-68.267 89.6-149.333 89.6-238.933 0-98.134-38.4-192-110.933-264.534-149.334-149.333-384-149.333-533.334-4.266-145.066 145.066-145.066 384 0 529.066 72.534 72.534 166.4 110.934 264.534 110.934 89.6 0 174.933-29.867 238.933-89.6l128 128c4.267 4.266 12.8 8.533 21.333 8.533s17.067-4.267 21.334-8.533c17.066-8.534 17.066-29.867 8.533-42.667zM260.267 721.067c-119.467-123.734-119.467-320 0-439.467 59.733-59.733 140.8-89.6 217.6-89.6 81.066 0 157.866 29.867 217.6 89.6 59.733 59.733 89.6 136.533 89.6 217.6 0 81.067-34.134 162.133-89.6 217.6-55.467 59.733-132.267 93.867-217.6 93.867-81.067 0-157.867-34.134-217.6-89.6z"})})},Xt=function(e){var t=e.items,n=ft([]),i=new ee("chat-thought-chain"),r=ft([]);Ae((function(){r.value=t.filter((function(e){return e.description})),r.value.length>0&&r.value.forEach((function(e,t){e.done&&(n.value=[].concat(o(n.value),[t]))}))}),[t]);return 0===r.value.length?null:_t("div",{className:"".concat(i.b()," ").concat(i.is("single",1===r.value.length)),children:r.value.map((function(e,t){if(e.description){var r=n.value.includes(t);return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("collapsed",r)),children:[_t("div",{className:i.e("item-icon"),children:e.icon||_t("span",{children:t})}),_t("div",{className:i.e("item-content"),children:[_t("div",{className:i.e("item-title"),onClick:function(){return function(e){n.value.includes(e)?n.value=n.value.filter((function(t){return t!==e})):n.value=[].concat(o(n.value),[e])}(t)},children:[e.title,_t(zt,{className:i.e("icon")})]}),_t("div",{className:i.e("item-description"),children:e.description})]})]},t)}}))})},Zt=function(e){var t=e.items,n=e.onItemClick,i=new ee("chat-suggestions");return _t("div",{className:"".concat(i.b()),children:t.map((function(e,t){return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("action","action"===e.type)),onClick:function(t){return function(e,t){null==n||n(e,t)}(e,t)},title:e.metadata.content_name,children:[e.metadata.content_name,_t(Yt,{className:"".concat(i.e("item-icon"))})]},t)}))})},Gt=new ee("markdown-message"),Jt=function(e){var t=e.message,n=e.size,i=ft(oe()),r=ft(null),o=Oe((function(){return 20===t.state&&!0!==t.completed}),[t.state,t.completed]),a=Oe((function(){return 20===t.state&&!0===t.completed}),[t.state,t.completed]),c=ft({title:"",description:"",icon:_t(Pt,{})}),l=ft({hasSuggestions:!1,suggestions:[]}),u=function(e){e&&e.length>0?l.value={hasSuggestions:!0,suggestions:e}:l.value={hasSuggestions:!1,suggestions:[]}},d=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="",o=!1;return-1===n?(o=!1,i=e.slice(t+7),r=""):(o=!0,i=e.slice(t+7,n),r=e.slice(n+8)),{isThoughtCompleted:o,thoughtContent:i,answerContent:r}};return Ae((function(){if(n>=0&&r.value){if(-1!==t.content.indexOf("")){var e=d(t.content),i=e.isThoughtCompleted,o=e.thoughtContent,a=e.answerContent;i?(c.value.icon=_t(Dt,{}),c.value.title="思考完成"):!0===t.completed?(c.value.icon=_t(Dt,{}),c.value.title="思考已停止"):(c.value.icon=_t(Pt,{}),c.value.title="思考中..."),c.value.description=o||"",r.value.setMarkdown(a||"")}else r.value.setMarkdown(t.content||"");u(t.suggestions)}}),[t,n]),Ae((function(){var e="";if(-1!==t.content.indexOf("")){var n=d(t.content),o=n.isThoughtCompleted,a=n.thoughtContent,l=n.answerContent;c.value={title:o?"思考完成":!0===t.completed?"思考已停止":"思考中...",description:a||"",icon:o||!0===t.completed?_t(Dt,{}):_t(Pt,{})},l&&(e=l)}else e=t.content;u(t.suggestions),r.value=new s({id:i,value:e||"",editor:{defaultModel:"previewOnly"}})}),[]),_t("div",{className:"".concat(Gt.b()," ").concat(Gt.is("loading",o)),children:[_t("div",{className:Gt.b("header"),children:[_t("div",{className:Gt.be("header","caption"),children:"AI "}),e.children,a?_t("div",{className:Gt.be("header","timeout"),children:"请求超时"}):null]}),_t("div",{className:"".concat(Gt.b("content")," pre-wrap-container"),children:[_t(Xt,{items:[c.value]}),_t("div",{id:i})]}),_t("div",{className:Gt.b("footer"),children:l.value.hasSuggestions?_t(Zt,{items:l.value.suggestions,onItemClick:function(t,n){!function(t,n){e.controller.handleSuggestionClick(e.message,t,n)}(t,n)}}):null})]})},Kt=new ee("ossfile-material"),Qt=function(e){var t=vt((function(){return e.material.data.name})),n=vt((function(){return e.material.metadata.size})),i=vt((function(){var t=e.material.metadata.state;return"successed"===t?"上传成功":"uploading"===t?"上传中":"failed"===t?"上传失败":"未知状态"})),r=vt((function(){switch(e.material.metadata.state){case"successed":return"#1890ff";case"uploading":return"#52c41a";default:return"#ff4d4f"}}));return _t("div",{className:Kt.b(),children:[_t("div",{className:Kt.b("left"),children:_t(Ht,{})}),_t("div",{className:Kt.b("right"),children:[_t("div",{className:Kt.e("name"),title:t,children:t}),_t("div",{className:Kt.e("metadata"),children:[_t("div",{children:[n,"B"]}),_t("div",{style:{color:r.value},children:i})]})]})]})},en=new ee("common-material"),tn=function(e){var t,n,i,r,o=null===(t=e.controller.opts.questionToolbarItems)||void 0===t?void 0:t.find((function(t){return t.id===e.material.metadata.actionId})),a=vt((function(){return e.material.metadata.name}));return _t("div",{className:en.b(),children:[_t("div",{className:en.b("left"),children:o&&o.icon?"function"==typeof o.icon?o.icon():(null===(n=o.icon)||void 0===n?void 0:n.showIcon)&&_t(L,{children:null!==(i=o.icon)&&void 0!==i&&i.cssClass?_t("i",{className:o.icon.cssClass}):null!==(r=o.icon)&&void 0!==r&&r.imagePath?ce(o.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:o.icon.imagePath}}):_t("img",{src:o.icon.imagePath}):null}):_t(Ft,{})}),_t("div",{className:en.b("right"),children:[_t("div",{className:en.e("name"),title:a,children:a}),_t("div",{className:en.e("metadata"),children:_t("div",{children:(null==o?void 0:o.label)||"素材资源"})})]})]})},nn=new ee("chat-input-material-item"),rn=function(e){var t=e.material,n=null;if("ossfile"===t.type)n=Qt;else n=tn;return _t("div",{className:"".concat(nn.b()," ").concat(nn.is("disabled",e.disabled)),children:[_t("div",{className:nn.e("icon"),onClick:function(){e.controller.deleteMaterial(t)},children:_t(jt,{})}),M(n,{material:t,controller:e.controller})]})},on=new ee("user-message-question"),an=function(e){var t=ft(oe()),n=ft(null),i=vt((function(){return e.message.content})),r=vt((function(){return de.parseMixedContent(i.value)}));return Ae((function(){n.value=new s({id:t,value:r.value.remainingText||"",editor:{defaultModel:"previewOnly"}})}),[r.value.remainingText]),_t("div",{className:on.b(),children:[_t("div",{className:on.e("user-header"),children:[e.children,_t("div",{className:on.e("user"),children:"我"})]}),_t("div",{className:on.e("content"),children:_t("div",{className:on.em("content","body"),children:[r.value.hasResources&&_t("div",{className:on.em("content","material"),children:r.value.resources.map((function(t){return _t(rn,{material:t,disabled:!0,controller:e.controller},t.id)}))}),_t("div",{className:"pre-wrap-container",children:_t("div",{id:t})})]})})]})},cn=new ee("error-message"),sn=function(e){var t=vt((function(){return e.message.content}));return _t("div",{className:cn.b(),children:[_t("div",{className:cn.b("header"),children:[_t("div",{className:cn.be("header","caption"),children:"AI "}),e.children]}),_t("div",{className:"".concat(cn.e("content")," pre-wrap-container"),children:_t("span",{children:t})})]})},ln=new ee("unknown-message"),un=function(e){return _t("div",{className:ln.b(),children:_t("div",{className:"".concat(ln.e("content")," pre-wrap-container"),children:["暂未支持的消息类型: ",e.message.type]})})},dn=new ee("chat-message-item"),hn=function(e){var t=e.message,n=e.size,i=null;switch(t.type){case"DEFAULT":i="ASSISTANT"===t.role?Jt:an;break;case"ERROR":i=sn;break;default:i=un}return _t("div",{className:dn.b(),children:M(i,{size:n,message:t,controller:e.controller,children:e.children})})},pn=function(){function e(t){v(this,e),this.msg=t}return _(e,[{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 e=this.msg.content;if(-1!==e.indexOf("")&&-1===e.indexOf(""))return"";if(-1!==(e=e.replace(/[^]*?<\/think>/g,"").trim()).indexOf("")&&-1===e.indexOf(""))return"";var t=(e=e.replace(/[^]*?<\/resources>/g,"").trim()).indexOf("");return-1!==t&&(e=e.substring(0,t).trim()),e}},{key:"content",get:function(){return this.msg.content}},{key:"completed",get:function(){return this.msg.completed}},{key:"suggestions",get:function(){return this.msg.suggestions}},{key:"_origin",get:function(){return this.msg}},{key:"update",value:function(e){e.content||(e.content=""),-1!==e.content.indexOf("")&&this.msg.content&&(this.msg.content=""),this.msg.content+=e.content}},{key:"updateCompleted",value:function(e){this.msg.completed=e}}]),e}(),fn=function(){function e(t){v(this,e),this.data=t}return _(e,[{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:"sourceCaption",get:function(){return this.data.sourceCaption||this.caption}},{key:"url",get:function(){return this.data.url}},{key:"aiChat",get:function(){return this.data.aiChat}}]),e}(),vn=function(){function e(t){v(this,e),this.material=t}return _(e,[{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}}]),e}(),mn=new ee("chat-toolbar-item"),_n=function(e){var t,n,i,r=e.model,o=e.data,c=e.className,s=e.disabled,l=void 0!==s&&s,u=e.buttonType,d=void 0===u?"default":u,h=e.onClick,p=a(Se(!1),2),f=p[0],v=p[1],m=Me(null),_=function(e){return"function"==typeof e.hidden?e.hidden(o):!0===e.hidden};if(_(r))return _t(L,{});var g=function(e){return!!l||("function"==typeof e.disabled?e.disabled(o):!0===e.disabled)},y=function(e){var t,n,i,r;return"function"==typeof e.icon?e.icon():null!==(t=e.icon)&&void 0!==t&&t.showIcon&&null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.showIcon&&null!==(r=e.icon)&&void 0!==r&&r.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):void 0},w=function(e,t){g(t)||(v(!1),h(e,t))};return Ae((function(){var e=function(e){m.current&&m.current.contains(e.target)||v(!1)};return f&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[f]),_t("div",{className:"".concat(mn.b()," ").concat(mn.b(d)," ").concat(r.customClass||""," ").concat(c||""," ").concat(mn.is("disabled",g(r))," ").concat(mn.is("more",!(null===(t=r.children)||void 0===t||!t.length))),children:[_t("div",{title:r.title,className:mn.e("content"),onClick:function(e){return w(e,r)},children:[_t("div",{className:mn.em("content","icon"),children:y(r)}),_t("div",{className:mn.em("content","label"),children:r.label})]}),(null===(n=r.children)||void 0===n?void 0:n.length)&&_t("div",{title:"更多",className:mn.e("more"),onClick:function(e){g(r)||v(!0)},children:_t("i",{"aria-hidden":"true",className:"fa fa-angle-down ".concat(mn.em("more","icon"))})}),f&&_t("div",{ref:m,className:mn.b("dropdown"),children:null===(i=r.children)||void 0===i?void 0:i.map((function(e,t){if(!_(e))return _t("div",{title:e.title,onClick:function(t){return w(t,e)},className:"".concat(mn.be("dropdown","item")," ").concat(e.customClass||""," ").concat(mn.is("disabled",g(e))),children:[_t("div",{className:mn.bem("dropdown","item","icon"),children:y(e)}),_t("div",{className:mn.bem("dropdown","item","label"),children:e.label})]},t)}))})]})},gn=new ee("chat-toolbar"),yn=function(e){var t=e.controller,n=e.items,i=void 0===n?[]:n,r=e.data,a=e.type,c=e.className,s=Ie(Ci),l=[],d=[{label:"重置对话",title:"重置对话",icon:function(){return _t(Ut,{})},onClick:function(){t.resetTopic()},children:[{label:"清空对话",title:"清空对话",icon:function(){return _t(Wt,{})},onClick:function(){t.clearTopic()}},{label:"新建对话",title:"新建对话",icon:function(){return _t(St,{})},onClick:function(){s.newTopic&&s.newTopic()}}]}],h=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r)}},{label:"删除",title:"删除",icon:function(){return _t(bt,{})},onClick:function(){t.deleteMessage(r)}},{label:"复制",title:"复制",icon:function(){return _t(kt,{})},onClick:function(){t.copyMessage(r)}}];s.enableBackFill&&h.unshift.apply(h,[{label:"回填",title:"回填",icon:function(){return _t(yt,{})},onClick:function(){t.backfill(r)}}]);var p=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r,!0)}}];if("content"===a)switch(r.type){case"DEFAULT":l="ASSISTANT"===r.role?[].concat(h,o(i)):[].concat(p);break;case"ERROR":l=[].concat(h,o(i))}else l=[].concat(d,o(i));var f=function(n,i){var o=u({},r);if(r instanceof pn?(Object.assign(o,{topic:t.topic}),o.msg.realcontent=r.realcontent):Object.assign(o.data,{messages:t.messages.value}),i.onClick&&"function"==typeof i.onClick)i.onClick(n,i,t.context,t.params,o);else{var a=e.controller.opts.extendToolbarClick;a&&"function"==typeof a&&a(n,i,t.context,t.params,o)}},v=Oe((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 _t("div",{className:"".concat(gn.b()," ").concat(c||""),children:l.map((function(e,t){return _t(_n,{data:r,model:e,disabled:v,buttonType:"content"===a?"circle":"default",onClick:f.bind(void 0)},t)}))})};var wn=function(e){var t,n,i,r=ft(!1),o=ft({}),a=new ee("chat-back-bottom"),c=ft(null),s=function(){if(c.value){var t=e.visibilityHeight||200,n=c.value.scrollHeight-c.value.scrollTop-c.value.offsetHeight;r.value=n>=t}},l=(t=s,n=300,i=null,function(){for(var e=this,r=arguments.length,o=new Array(r),a=0;a3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),K(M(zn,{context:t.context},e.__v),t.l)}function Pn(e,t){var n=M(Dn,{__v:e,i:t});return n.containerInfo=t,n}(Ln.prototype=new I).__a=function(e){var t=this,n=On(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),In(t,e,i)):r()};n?n(o):o()}},Ln.prototype.render=function(e){this.u=null,this.o=new Map;var t=F(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ln.prototype.componentDidUpdate=Ln.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){In(e,n,t)}))};var Bn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Hn=/^(?: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]/,jn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Fn=/[A-Z0-9]/g,Rn="undefined"!=typeof document,Vn=function(e){return("undefined"!=typeof Symbol&&"symbol"==f(Symbol())?/fil|che|rad/:/fil|che|ra/).test(e)};I.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(I.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Wn=l.event;function Un(){}function qn(){return this.cancelBubble}function Yn(){return this.defaultPrevented}l.event=function(e){return Wn&&(e=Wn(e)),e.persist=Un,e.isPropagationStopped=qn,e.isDefaultPrevented=Yn,e.nativeEvent=e};var $n={enumerable:!1,configurable:!0,get:function(){return this.class}},Xn=l.vnode;l.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={};for(var r in t){var o=t[r];if(!("value"===r&&"defaultValue"in t&&null==o||Rn&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===o?o="":"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Vn(t.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":jn.test(r)?r=a:-1===n.indexOf("-")&&Hn.test(r)?r=r.replace(Fn,"-$&").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(t.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=F(t.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",$n)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=Bn,Xn&&Xn(e)};var Zn=l.__r;l.__r=function(e){Zn&&Zn(e),e.__c};var Gn=l.diffed;l.diffed=function(e){Gn&&Gn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};var Jn=new Map;function Kn(e){var t=Jn.get(e);t&&t.destroy()}function Qn(e){var t=Jn.get(e);t&&t.update()}var ei=null;"undefined"==typeof window?((ei=function(e){return e}).destroy=function(e){return e},ei.update=function(e){return e}):((ei=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!Jn.has(e)){var t,n=null,i=window.getComputedStyle(e),r=(t=e.value,function(){a({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),o=function(t){e.removeEventListener("autosize:destroy",o),e.removeEventListener("autosize:update",c),e.removeEventListener("input",r),window.removeEventListener("resize",c),Object.keys(t).forEach((function(n){return e.style[n]=t[n]})),Jn.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",o),e.addEventListener("autosize:update",c),e.addEventListener("input",r),window.addEventListener("resize",c),e.style.overflowX="hidden",e.style.wordWrap="break-word",Jn.set(e,{destroy:o,update:c}),c()}function a(t){var r,o,c=t.restoreTextAlign,s=void 0===c?null:c,l=t.testForHeightReduction,u=void 0===l||l,d=i.overflowY;if(0!==e.scrollHeight&&("vertical"===i.resize?e.style.resize="none":"both"===i.resize&&(e.style.resize="horizontal"),u&&(r=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null}))}}(e),e.style.height=""),o="content-box"===i.boxSizing?e.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):e.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&o>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(e.style.overflow="scroll"),o=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(e.style.overflow="hidden"),e.style.height=o+"px",s&&(e.style.textAlign=s),r&&r(),n!==o&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=o),d!==i.overflow&&!s)){var h=i.textAlign;"hidden"===i.overflow&&(e.style.textAlign="start"===h?"end":"start"),a({restoreTextAlign:h,testForHeightReduction:!0})}}function c(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Kn),e},ei.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Qn),e});var ti=ei,ni=function(e){return e.STYLE_CACHE="ai-chat-style-cache",e.MINIMIZE_STYLY_CHCHE="ai-chat-minimize-style-cache",e.DATA_BASE_NAME="ibiz-chat",e.DATA_TABLE_NAME="history-message",e.DATA_TABLE_KEY_NAME="id",e}(ni||{}),ii=function(){function e(t){v(this,e),g(this,"messages",Qe([])),g(this,"materials",Qe([])),g(this,"input",Qe("")),g(this,"isLoading",Qe(!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=t,this.context=t.context,this.params=t.params,this.appDataEntityId=t.appDataEntityId,this.topicId=t.topicId,this.topic=t.topic,this.fecthHistory()}var t,n,i,r,a,c,s;return _(e,[{key:"fecthHistory",value:(s=p(d().mark((function e(){var t,n=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=7;break}return e.next=3,le.getData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 3:if(!((t=e.sent)&&t.data&&t.data.length>0)){e.next=7;break}return t.data.forEach((function(e){var t={messageid:e.messageid,state:e.state,type:e.type,role:e.role,content:e.content,suggestions:e.suggestions,completed:!0};n.addMessage(t)})),e.abrupt("return",!0);case 7:return e.abrupt("return",this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId}));case 8:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"asyncToIndexDB",value:(c=p(d().mark((function e(){var t;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.topicId){e.next=2;break}return e.abrupt("return");case 2:return t={id:this.topicId,data:this.messages.value.map((function(e){return e._origin})),timestamp:(new Date).getTime()},e.next=5,le.updateData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"setInput",value:function(e){this.input.value=e||""}},{key:"addMessage",value:function(e){var t=this.messages.value.find((function(t){return t.messageid===e.messageid}));t?(t.update(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB()}},{key:"completeMessage",value:function(e,t){var n=this.messages.value.find((function(t){return t.messageid===e}));n&&(n.updateCompleted(t),this.messages.value=o(this.messages.value),this.asyncToIndexDB())}},{key:"replaceMessage",value:function(e){var t=this,n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==n?(this.messages.value[n]=new pn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB(),"DEFAULT"===e.type&&this.opts.recommendPrompt&&this.opts.recommendPrompt(this.context,this.params,{appDataEntityId:this.appDataEntityId,message:{messages:[e]}}).then((function(n){n&&n.content&&t.updateRecommendPrompt(e,n.content)}))}},{key:"stopMessage",value:function(e){var t=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));if(-1!==t){var n=this.messages.value[t];e.content=n.content,this.messages.value[t]=new pn(e),this.messages.value=o(this.messages.value)}else this.messages.value=[].concat(o(this.messages.value),[new pn(e)]);this.asyncToIndexDB()}},{key:"stringlyMaterialResource",value:function(){var e="",t=[];return this.materials.value&&this.materials.value.length>0&&(this.materials.value.forEach((function(e){if("ossfile"===e.type){var n=e.metadata;n.state&&"successed"===n.state&&t.push(e)}else t.push(e)})),this.materials.value=[]),t&&t.length>0&&(e=de.stringify(t)),e}},{key:"question",value:(a=p(d().mark((function e(t){var n,i=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.isLoading.value=!0,this.messages.value.forEach((function(e,t){var n=e._origin;n.suggestions&&(n.suggestions=void 0,i.messages.value[t]=new pn(n))})),this.messages.value=o(this.messages.value),this.asyncToIndexDB(),(n=this.stringlyMaterialResource())?n+="\n".concat(t):n=t,this.addMessage({state:30,messageid:oe(),role:"USER",type:"DEFAULT",content:n}),e.next=10,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 10:this.opts.action&&this.opts.action("question",t),this.isLoading.value=!1;case 12:return e.prev=12,this.isLoading.value=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[0,,12,15]])}))),function(e){return a.apply(this,arguments)})},{key:"abortQuestion",value:function(){try{this.opts.abortQuestion(this)}finally{this.isLoading.value=!1}}},{key:"backfill",value:function(e){this.opts.action&&this.opts.action("backfill",e)}},{key:"deleteMessage",value:function(e){var t=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==t&&(this.messages.value.splice(t,1),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),this.opts.action&&this.opts.action("deletemsg",e)}},{key:"refreshMessage",value:(r=p(d().mark((function e(t){var n,i,r,a=arguments;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],this.isLoading.value=!0,e.prev=2,i=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})),!n){e.next=11;break}return this.messages.value.splice(i+1,this.messages.value.length-i-1),this.messages.value=o(this.messages.value),e.next=9,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 9:e.next=21;break;case 11:if(i!==this.messages.value.length-1){e.next=18;break}return this.messages.value.pop(),this.messages.value=o(this.messages.value),e.next=16,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 16:e.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",t);case 23:return e.prev=23,this.isLoading.value=!1,e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[2,,23,26]])}))),function(e){return r.apply(this,arguments)})},{key:"copyMessage",value:function(e){var t=e.realcontent;se.copy(t),this.opts.action&&this.opts.action("copymsg",e)}},{key:"resetTopic",value:(i=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=3;break}return e.next=3,le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 3:this.messages.value=[],this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId});case 5:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"clearTopic",value:(n=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=3;break}return e.next=3,le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 3:this.messages.value=[];case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"addMaterial",value:function(e){var t=this.materials.value.find((function(t){return t.id===e.id}));this.materials.value=t?o(this.materials.value):[].concat(o(this.materials.value),[new vn(e)])}},{key:"replaceMaterial",value:function(e,t){var n=this.materials.value.findIndex((function(t){return t.id===e}));-1!==n?(this.materials.value[n]=new vn(t),this.materials.value=o(this.materials.value)):this.materials.value=[].concat(o(this.materials.value),[new vn(t)])}},{key:"deleteMaterial",value:function(e){var t=this.materials.value.findIndex((function(t){return t.id===e.id}));-1!==t&&(this.materials.value.splice(t,1),this.materials.value=o(this.materials.value))}},{key:"updateRecommendPrompt",value:function(e,t){if(t){var n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid})),i=he.parseMixedContent(t).suggestions;i&&i.length>0&&(e.suggestions=i,-1!==n?(this.messages.value[n]=new pn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB())}}},{key:"handleSuggestionClick",value:(t=p(d().mark((function e(t,n,i){var r,a,c,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:-1!==(r=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})))&&((a=this.messages.value[r]._origin).suggestions=void 0,this.messages.value[r]=new pn(a),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),c=n.type,e.t0=c,e.next="action"===e.t0?7:"raw"===e.t0?21:24;break;case 7:if(!this.opts.extendToolbarClick){e.next=20;break}if(s=n.data.actionid){e.next=11;break}throw new Error("actionid不能为空");case 11:if(!(this.opts.otherToolbarItems&&this.opts.otherToolbarItems.length>0)){e.next=19;break}if(l=this.opts.otherToolbarItems.find((function(e){return e.id===s}))){e.next=15;break}throw new Error("未找到".concat(s,"标识界面行为"));case 15:return e.next=17,this.opts.extendToolbarClick(i,l,this.context,this.params,t);case 17:e.next=20;break;case 19:throw new Error("未找到".concat(s,"标识界面行为"));case 20:case 23:return e.abrupt("break",25);case 21:return e.next=23,this.question(n.data.content);case 24:throw new Error("不支持".concat(c,"推荐类型"));case 25:case"end":return e.stop()}}),e,this)}))),function(e,n,i){return t.apply(this,arguments)})}]),e}(),ri=function(){function e(t){v(this,e),g(this,"topics",Qe([])),g(this,"activedTopic",Qe(null)),g(this,"currentTopicOptions",void 0),this.chat=t}var t,n,i,r,a,c,s;return _(e,[{key:"fetchHistory",value:(s=p(d().mark((function e(t){var n,i,r=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.configService(t.appid,"aitopics",t.type),e.next=3,n.load();case 3:(i=e.sent)&&i.length>0&&i.forEach((function(e){r.topics.value=[].concat(o(r.topics.value),[new fn(e)])}));case 5:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})},{key:"updateCurrentTopic",value:(c=p(d().mark((function e(t){var n,i,r,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.currentTopicOptions=t,n=this.topics.value.findIndex((function(e){return e.id===t.id})),i=new fn(t),-1!==n?this.topics.value.splice(n,1,new fn(t)):this.topics.value=[].concat(o(this.topics.value),[new fn(t)]),r=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),a=t.configService(t.appid,"aitopics",t.type),e.next=8,null==a?void 0:a.save(r);case 8:this.activedTopic.value=i;case 9:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"removeTopic",value:(a=p(d().mark((function e(t,n,i,r,a){var c,s,l,u,h;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=!0,!t.beforeDelete){e.next=5;break}return e.next=4,t.beforeDelete(n,i,r,a);case 4:s=e.sent;case 5:if(s){e.next=7;break}return e.abrupt("return");case 7:return-1!==(l=this.topics.value.findIndex((function(e){return e.id===r.id})))&&(this.topics.value.splice(l,1),this.topics.value=o(this.topics.value)),u=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),h=t.configService(t.appid,"aitopics",t.type),e.next=13,null==h?void 0:h.save(u);case 13:return e.next=15,le.deleteData(ni.DATA_BASE_NAME,ni.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 e.stop()}}),e,this)}))),function(e,t,n,i,r){return a.apply(this,arguments)})},{key:"updateTopic",value:(r=p(d().mark((function e(t,n){var i,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),r=t.configService(t.appid,"aitopics",t.type),e.next=4,null==r?void 0:r.save(i);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"handleTopicChange",value:function(e){var t;(null===(t=this.activedTopic.value)||void 0===t?void 0:t.id)!==e.id&&(this.activedTopic.value=e,this.chat.switchAiChatController(e))}},{key:"handleTopicAction",value:(i=p(d().mark((function e(t,n,i){var r,o,a,c,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.topics.value.find((function(e){return e.id===n.id})),!(this.currentTopicOptions&&r&&r.aiChat)){e.next=12;break}if(c=r.aiChat,s=c.context,l=c.params,"DELETE"!==t){e.next=8;break}return e.next=6,this.removeTopic(this.currentTopicOptions,s,l,r,i);case 6:e.next=11;break;case 8:if("RENAME"!==t){e.next=11;break}return e.next=11,this.updateTopic(this.currentTopicOptions,n);case 11:null===(o=(a=this.currentTopicOptions).action)||void 0===o||o.call(a,t,s,l,n,i);case 12:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"newTopic",value:(n=p(d().mark((function e(){var t,n,i,r,a,c,s,l,u;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this.activedTopic.value){e.next=3;break}return e.abrupt("return");case 3:return r=i.id.split("@")[0],a=this.topics.value.filter((function(e){return e.id.startsWith(r)})),c={appid:i.appid,id:"".concat(r,"@").concat(Date.now()),type:i.type,caption:"".concat(null===(t=i.sourceCaption)||void 0===t?void 0:t.split("_")[0],"_").concat(a.length),sourceCaption:i.sourceCaption,url:i.url,aiChat:i.aiChat},s=new fn(c),this.topics.value=[].concat(o(this.topics.value),[s]),l=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),u=null===(n=this.currentTopicOptions)||void 0===n?void 0:n.configService(c.appid,"aitopics",c.type),e.next=12,null==u?void 0:u.save(l);case 12:this.handleTopicChange(s);case 13:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"clearTopic",value:(t=p(d().mark((function e(){var t,n,i,r,o,a=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.topics.value.find((function(e){var t;return e.id===(null===(t=a.activedTopic.value)||void 0===t?void 0:t.id)})),this.currentTopicOptions&&n){e.next=3;break}return e.abrupt("return");case 3:if(i=!0,!this.currentTopicOptions.beforeDelete){e.next=8;break}return e.next=7,this.currentTopicOptions.beforeDelete(n.aiChat.context,n.aiChat.params,n,void 0,!0);case 7:i=e.sent;case 8:if(i){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,Promise.all(this.topics.value.map((function(e){if(e.id!==(null==n?void 0:n.id))return le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,e.id)})));case 12:return this.topics.value=n?[n]:[],r=null===(t=this.currentTopicOptions)||void 0===t?void 0:t.configService(this.currentTopicOptions.appid,"aitopics",this.currentTopicOptions.type),o=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),e.next=17,null==r?void 0:r.save(o);case 17:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),oi=_((function e(t){v(this,e),this.aiChat=t})),ai=function(t){e(o,t);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=p(d().mark((function e(t,n){var i,r,o,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n||!n.onClick||"function"!=typeof n.onClick){e.next=6;break}return e.next=3,n.onClick(t,n,this.aiChat.context,this.aiChat.params);case 3:i=e.sent,e.next=14;break;case 6:if(!(r=this.aiChat.opts.extendToolbarClick)){e.next=13;break}return e.next=10,r(t,n,this.aiChat.context,this.aiChat.params,{});case 10:i=e.sent,e.next=14;break;case 13:console.error("未找到扩展工具栏点击事件");case 14:i&&i.data&&i.data.length>0&&(o=i.data[0],a={id:o.id,type:o.type,data:o.data||{},metadata:o.metadata||{}},n.id&&Object.assign(a.metadata,{actionId:n.id}),this.aiChat.addMaterial(a));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})}]),o}(oi),ci=function(t){e(o,t);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=p(d().mark((function e(t,n){var i,r,o,a,c,s,l,u,h,f,v=this;return d().wrap((function(e){for(;;)switch(e.prev=e.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,h=i.onProgress,f={multiple:r||!0,accept:o||"*/*",maxSize:a||5242880,onSelect:function(e){null==c||c(e),e.length>0&&e.forEach((function(e){var t=v.buildMaterialObject(e);Object.assign(t.metadata,{state:"uploading"}),v.aiChat.addMaterial(t)}))},onUpload:function(){var e=p(d().mark((function e(t,n){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s(t,n,{context:v.aiChat.context,params:v.aiChat.params}));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),onSuccess:function(e,t){var n={id:e.id,type:"ossfile",data:{id:e.id,name:e.name},metadata:{ext:e.ext,fileext:e.fileext,fileid:e.fileid,filename:e.filename,size:e.size,filesize:e.filesize,state:"successed"}};v.aiChat.replaceMaterial(t.name,n),null==l||l(e,t)},onError:function(e,t){var n=v.buildMaterialObject(t);Object.assign(n.metadata,{state:"failed"}),v.aiChat.replaceMaterial(t.name,n),null==u||u(e,t)},onProgress:function(e,t){null==h||h(e,t)}},new ue(f).openFilePicker();case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"buildMaterialObject",value:function(e){return{id:e.name,type:"ossfile",data:{name:e.name,id:e.name},metadata:{size:e.size,type:e.type,lastModified:e.lastModified}}}}]),o}(oi),si=function(){function e(){v(this,e)}return _(e,null,[{key:"getMaterialHelper",value:function(e,t){return"ossfile"===e?new ci(t):new ai(t)}}]),e}(),li=function(){function e(){v(this,e),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 ri(this)}var t,n;return _(e,[{key:"aiChat",get:function(){var e;return this.aiTopicMap.get("".concat(null===(e=this.aiTopic.activedTopic.value)||void 0===e?void 0:e.id))}},{key:"initIndexDB",value:(n=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le.checkTableExists(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME);case 2:if(e.sent){e.next=6;break}return e.next=6,le.createTable(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,ni.DATA_TABLE_KEY_NAME,!1);case 6:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"create",value:(t=p(d().mark((function e(t){var n,i,r,o,a,c,s=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initIndexDB();case 2:if(this.backupChatOptions=t,this.close(),this.container=document.createElement("div"),this.container.classList.add("ibiz-ai-chat"),document.body.appendChild(this.container),o=t.chatOptions,!t.mode||"TOPIC"!==t.mode){e.next=17;break}if(this.isMountedAiTopic){e.next=13;break}return e.next=12,this.aiTopic.fetchHistory(t.topicOptions);case 12:this.isMountedAiTopic=!0;case 13:return a=t.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,otherToolbarItems:o.otherToolbarItems}}),e.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 ii(o),this.aiTopicMap.set("".concat(null===(i=a)||void 0===i?void 0:i.id),c),K(M(Ti,{aiChat:c,aiTopic:this.aiTopic,mode:t.mode?t.mode:"DEFAULT",containerOptions:t.containerOptions,caption:t.mode&&"TOPIC"===t.mode?"AI助手":o.caption,enableBackFill:null===(r=t.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(e){o.fullscreen&&o.fullscreen(e,o.context,o.params)},minimize:function(e){o.minimize&&o.minimize(e,o.context,o.params)}}),this.container),e.abrupt("return",c);case 22:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"switchAiChatController",value:function(e){var t,n,i,r,o,a=this,c=u({},this.backupChatOptions.chatOptions);(e.aiChat&&Object.assign(c,{caption:e.aiChat.caption,context:e.aiChat.context,params:e.aiChat.params,contentToolbarItems:e.aiChat.contentToolbarItems,footerToolbarItems:e.aiChat.footerToolbarItems,questionToolbarItems:e.aiChat.questionToolbarItems,otherToolbarItems:e.aiChat.otherToolbarItems,appDataEntityId:e.aiChat.appDataEntityId,topicId:e.id,topic:e,extendToolbarClick:this.backupChatOptions.chatOptions.extendToolbarClick,recommendPrompt:this.backupChatOptions.chatOptions.recommendPrompt}),this.aiTopicMap.has("".concat(e.id))?t=this.aiTopicMap.get("".concat(e.id)):(t=new ii(c),this.aiTopicMap.set("".concat(e.id),t)),this.container)&&(K(null,this.container),K(M(Ti,{aiChat:t,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(e){c.fullscreen&&c.fullscreen(e,c.context,c.params)},minimize:function(e){c.minimize&&c.minimize(e,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)}}]),e}(),ui=(t("chat",new li),new ee("chat-input-material")),di=function(e){var t=e.controller.materials;return _t("div",{className:ui.b(),children:t.value.map((function(t){return _t(rn,{material:t,disabled:!1,controller:e.controller},t.id)}))})},hi=function(e){var t=e.children,n=e.actions,i=e.content,r=e.position,o=void 0===r?"bottom":r,c=e.isOpen,s=e.onToggleOpen,l=e.onAction,d=new ee("pop"),h=Ie(Ci),p=a(Se(c||!1),2),f=p[0],v=p[1],m=Me(null),_=Me(null);Ae((function(){void 0!==c&&v(c)}),[c]),Ae((function(){return _.current||(_.current=document.createElement("div"),_.current.className=d.b("content-container"),document.body.appendChild(_.current)),function(){_.current&&document.body.removeChild(_.current)}}),[]),Ae((function(){var e=function(e){!m.current||m.current.contains(e.target)||e.target.closest(".".concat(d.b()))||e.target.closest(".ibiz-quick-edit")||e.target.closest(".ibiz-picker__transfer")||(v(!1),null==s||s(!1))};return f&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[f,s]);return _t("span",{className:"".concat(d.b("trigger-container")),children:[_t("span",{className:"".concat(d.b("trigger-element")),ref:m,onClick:function(e){e.stopPropagation();var t=!f;v(t),null==s||s(t)},children:t}),f&&_.current&&Pn(_t("div",{className:"".concat(d.b()," pop-").concat(o),style:function(){if(!m.current)return{};var e=m.current.getBoundingClientRect(),t={position:"absolute",zIndex:h.zIndex+1},n={bottom:{top:e.bottom+window.scrollY,left:e.left+window.scrollX},top:{bottom:window.innerHeight-e.top+window.scrollY,left:e.left+window.scrollX},left:{top:e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX},right:{top:e.top+window.scrollY,left:e.right+window.scrollX},"top-left":{bottom:window.innerHeight-e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX}};return u(u({},t),n[o])}(),children:i||(null==n?void 0:n.map((function(e){return _t("div",{title:e.caption,className:d.e("item"),onMouseDown:function(t){t.stopPropagation(),null==l||l(e.id,t)},children:[e.icon,_t("div",{className:d.em("item","caption"),children:e.caption})]},e.id)})))}),_.current)]})},pi=new ee("chat-input"),fi=window.SpeechRecognition||window.webkitSpeechRecognition,vi=function(e){var t,n=a(Se(!1),2),i=n[0],r=n[1],o=Me(null),c=e.controller.input,s=ft(!1),l=Me();fi&&!l.current&&(l.current=new fi,l.current.onstart=function(){s.value=!0},l.current.onend=function(){s.value=!1},l.current.onresult=function(e){var t,n=null===(t=e.results)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t[0])||void 0===t?void 0:t.transcript;n&&(c.value="".concat(c.value).concat(n))});var u=Le((function(e){c.value=e.target.value}),[c]),h=vt((function(){return c.value.length<=0}));Ae((function(){return o.current&&ti(o.current),function(){o.current&&ti.destroy(o.current)}}),[o]);var f=Le(p(d().mark((function t(){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=c.value,c.value="",t.next=5,e.controller.question(n);case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])}))),[c]),v=Le(p(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{e.controller.abortQuestion()}catch(n){console.error(n)}case 1:case"end":return t.stop()}}),t)}))),[c]),m=function(){var t=p(d().mark((function t(n){var i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=si.getMaterialHelper("ossfile",e.controller),t.next=3,i.excuteAction(n);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_=function(){var t=p(d().mark((function t(n,i){var o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=si.getMaterialHelper("common",e.controller),t.next=3,o.excuteAction(n,i);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}();return _t("div",{className:pi.b("wrapper"),children:[_t("div",{className:pi.b("material-wrapper"),children:_t(di,{controller:e.controller})}),_t("div",{className:pi.b("main-wrapper"),children:[_t("textarea",{className:pi.e("textarea"),type:"text",rows:6,autoCorrect:"off",autoCapitalize:"off",autoComplete:"off",value:c,onInput:u,onKeyDown:function(e){"Enter"!==e.code||e.isComposing||(e.stopPropagation(),!1===e.shiftKey&&f())},ref:o,disabled:e.controller.isLoading.value}),_t("div",{className:pi.b("action-wrapper"),children:[_t("div",{className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",e.controller.isLoading.value)),title:"上传资料",children:_t(hi,{content:_t("div",{className:pi.b("pop-actions"),children:[_t("div",{className:pi.b("pop-action-item"),onClick:function(e){m(e)},children:[_t("span",{className:pi.b("pop-action-item-icon"),children:_t(Ht,{})}),_t("span",{className:pi.b("pop-action-item-title"),children:"文件资料"})]}),null===(t=e.questionToolbarItems)||void 0===t?void 0:t.map((function(e){var t,n,i;return _t("div",{className:pi.b("pop-action-item"),onClick:function(t){_(t,e)},children:[_t("span",{className:pi.b("pop-action-item-icon"),children:"function"==typeof e.icon?e.icon():(null===(t=e.icon)||void 0===t?void 0:t.showIcon)&&_t(L,{children:null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):null})}),_t("span",{className:pi.b("pop-action-item-title"),children:e.label})]},e.id)}))]}),position:"top-left",isOpen:i,onToggleOpen:r,children:_t(Bt,{})})}),_t("div",{title:s.value?"语音输入中...":"语音输入",className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",e.controller.isLoading.value)),onClick:function(){l.current&&!s.value&&l.current.start()},children:s.value?_t(Mt,{}):_t(At,{})}),e.controller.isLoading.value?_t("div",{title:"停止生成",className:"".concat(pi.be("action-wrapper","action-item")),onClick:v,children:_t(Rt,{})}):_t("div",{title:"发送消息",className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",h.value)),onClick:f,children:_t(wt,{})})]})]})]})},mi=new ee("chat-topic-item"),_i=function(e){var t=e.controller,n=e.topic,i=e.onClick,r=e.onAction,o=Me(null),c=vt((function(){var e;return(null===(e=t.activedTopic.value)||void 0===e?void 0:e.id)===n.id})),s=a(Se(!1),2),l=s[0],u=s[1],d=ft(!1);return _t("div",{className:"".concat(mi.b()," ").concat(mi.is("active",c.value)," ").concat(mi.is("edit",d.value)),onClick:i.bind(void 0),children:[_t("div",{className:mi.e("caption"),title:n.caption,children:d.value?_t("input",{ref:o,value:n.caption,onBlur:function(e){e.stopPropagation(),d.value=!1,r("RENAME",e)},onKeyDown:function(e){e.stopPropagation(),"Enter"===e.key&&(d.value=!1)},onClick:function(e){return e.stopPropagation()},onChange:function(e){return(t=e).stopPropagation(),void(n.data.caption=null===(i=t.target)||void 0===i?void 0:i.value);var t,i},className:mi.em("caption","editor")}):_t("span",{className:mi.em("caption","text"),children:n.caption})}),!d.value&&_t("div",{className:mi.e("icon"),children:[_t("span",{title:"跳转主视图",className:mi.em("icon","item"),onClick:function(e){e.stopPropagation(),r("LINK",e)}.bind(void 0),children:_t(Lt,{className:mi.b("link-icon")})}),c.value?null:_t(hi,{actions:[{id:"RENAME",caption:"重命名",icon:_t(qt,{})},{id:"DELETE",caption:"删除话题",icon:_t(It,{})}],position:"bottom",isOpen:l,onToggleOpen:u,onAction:function(e,t){"DELETE"===e?r("DELETE",t):"RENAME"===e&&(d.value=!0,setTimeout((function(){var e;null===(e=o.current)||void 0===e||e.focus()}),100)),u(!1)}.bind(void 0),children:_t("span",{className:mi.em("icon","item"),title:"更多",children:_t(Ot,{className:mi.e("more-icon")})})})]})]})},gi=new ee("chat-search"),yi=function(e){var t=e.className,n=e.value,i=e.placeholder,r=e.onChange,o=a(Se(!1),2),c=o[0],s=o[1],l=function(e){var t;e.stopPropagation(),null==r||r(null===(t=e.target)||void 0===t?void 0:t.value)};return _t("div",{className:"".concat(gi.b()," ").concat(gi.is("focus",c)," ").concat(t||""),children:[_t("div",{className:gi.e("prefix"),children:_t($t,{})}),_t("input",{value:n,className:gi.e("inner"),placeholder:i,onFocus:function(){return s(!0)},onBlur:function(){return s(!1)},onChange:function(e){return l(e)}})]})},wi=new ee("chat-topics"),bi=function(e){var t=Me(null),n=ft(void 0),i=ft([]);Ae((function(){i.value=e.controller.topics.value.filter((function(e){var t,i;return null===(t=e.caption)||void 0===t?void 0:t.toLowerCase().includes((null===(i=n.value)||void 0===i?void 0:i.trim().toLowerCase())||"")}))}),[e.controller.topics.value]);return Ae((function(){var e=t.current;if(e){var n=e.querySelector(".ibiz-chat-topic-item.is-active");null==n||n.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[e.controller.activedTopic.value]),_t("div",{className:wi.b(),children:[_t("div",{className:wi.e("header"),children:_t(yi,{value:n.value,placeholder:"搜索话题",onChange:function(t){n.value=t,i.value=e.controller.topics.value.filter((function(e){var t,i;return null===(t=e.caption)||void 0===t?void 0:t.toLowerCase().includes((null===(i=n.value)||void 0===i?void 0:i.trim().toLowerCase())||"")}))}.bind(void 0)})}),_t("div",{ref:t,className:wi.e("main"),children:i.value&&i.value.length>0?i.value.map((function(t){return _t(_i,{topic:t,controller:e.controller,onClick:function(){return function(t){e.controller.handleTopicChange(t)}(t)},onAction:function(n,i){return function(t,n,i){e.controller.handleTopicAction(t,n,i)}(n,t,i)}},t.id)})):_t("div",{className:wi.e("empty"),children:"暂无话题"})}),_t("div",{className:wi.e("footer"),children:_t("div",{title:"清空会话",className:wi.e("action"),onClick:function(){return e.controller.clearTopic()},children:[_t(It,{}),_t("span",{children:"清空会话"})]})})]})},xi=new ee("chat-minimize"),ki=function(e){var t=Me(null),n=a(Se(""),2),i=n[0],r=n[1],o=a(Se(0),2),c=o[0],s=o[1],l=Me(!1),u={x:(window.innerWidth-86)/window.innerWidth,y:(window.innerHeight-86)/window.innerHeight},d=vt((function(){var t=e.controller.messages.value[e.controller.messages.value.length-1];return!!t&&("ASSISTANT"===t.role&&20===t.state&&!0!==t.completed)})),h=vt((function(){var t="";if(!d.value)return r(""),s(0),t;var n=e.controller.messages.value[e.controller.messages.value.length-1];if(t=n.content,-1!==n.content.indexOf("")){var i=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="";return-1===n?(i=e.slice(t+7),r=""):(i=e.slice(t+7,n),r=e.slice(n+8)),{thoughtContent:i,answerContent:r}}(n.content);t=i.thoughtContent+i.answerContent}return t})),p=function(){Object.assign(t.current.style,{left:"".concat(100*u.x,"%"),top:"".concat(100*u.y,"%")}),localStorage.setItem(ni.MINIMIZE_STYLY_CHCHE,JSON.stringify(u))};return Ae((function(){var e,n=localStorage.getItem(ni.MINIMIZE_STYLY_CHCHE);if(n){var i=JSON.parse(n);pe(i)&&Object.assign(u,i)}p(),(e=t.current)&&(e.onmousedown=function(t){document.body.style.userSelect="none";var n=t.clientX-e.offsetLeft,i=t.clientY-e.offsetTop,r=Date.now(),o=function(e){var t=56/window.innerWidth,r=56/window.innerHeight,o=fe(e.clientX-n,e.clientY-i,t,r),a=o.x,c=o.y;Object.assign(u,{x:a,y:c}),requestAnimationFrame((function(){p()}))};document.addEventListener("mousemove",o),document.addEventListener("mouseup",(function e(){var t=Date.now();l.current=t-r>300,document.body.style.userSelect="",document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",e)}))})}),[]),Ae((function(){if(c1-e?this.calcSideModeStyle(i1-t&&(this.data.window.y=1-a)),this.setStyle()}},{key:"registerDragDialog",value:function(){var e=this;this.dragHandle.current.onmousedown=function(t){if(!e.state.isFullScreen){document.body.style.userSelect="none";var n=t.clientX-e.containerRef.current.offsetLeft,i=t.clientY-e.containerRef.current.offsetTop,r=function(t){if(!e.disabled){e.data.showMode="window";var r=fe(t.clientX-n,t.clientY-i,e.data.window.width,e.data.window.height),o=r.x,a=r.y;Object.assign(e.data.window,{x:o,y:a}),e.setStyle()}};document.addEventListener("mousemove",r),document.addEventListener("mouseup",(function t(){document.body.style.userSelect="",document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t),e.disabled||e.snapToEdge()}))}}}},{key:"registerDragDialogBorder",value:function(){var e=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(t){if(!e.state.isFullScreen){var n="side"===e.data.showMode?e.data.side:e.data.window;n.x=t.rect.left/window.innerWidth,n.y=t.rect.top/window.innerHeight,n.width=t.rect.width/window.innerWidth,n.height=t.rect.height/window.innerHeight,e.setStyle()}},start:function(){e.disabled=!0,document.body.style.userSelect="none"},end:function(){e.disabled=!1,document.body.style.userSelect=""}}})}},{key:"handleFullScreenChange",value:function(){this.setState({isFullScreen:null!==document.fullscreenElement})}},{key:"componentDidMount",value:function(){this.handleFullScreenChange=this.handleFullScreenChange.bind(this);var e=localStorage.getItem(ni.STYLE_CACHE);if(e){var t=JSON.parse(e);t.side&&pe(t.side)&&t.window&&pe(t.window)&&Object.assign(this.data,t)}this.setStyle(),this.registerDragDialog(),this.registerDragDialogBorder(),document.addEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"close",value:function(){this.props.close()}},{key:"fullScreen",value:function(){var e=this.containerRef.current;e&&(e.requestFullscreen(),this.props.fullscreen(!0))}},{key:"closeFullScreen",value:function(){var e;this.state.isFullScreen&&(null===(e=document)||void 0===e||e.exitFullscreen(),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.setState({isMinimize:!1}),this.props.minimize(!1)}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"render",value:function(){return _t(Ci.Provider,{value:this.containerContext,children:_t("div",{className:"".concat(this.ns.b()),children:[_t("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:[_t("div",{ref:this.dragHandle,className:this.ns.b("header"),children:[_t("div",{className:this.ns.b("header-caption"),children:this.props.caption||"AI助手"}),_t("div",{className:this.ns.b("header-action-wrapper"),children:[_t("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:_t(Nt,{})}),this.state.isFullScreen?_t("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:_t(Tt,{})}):_t("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:_t(Ct,{})}),_t("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:_t(gt,{})})]})]}),"TOPIC"===this.props.mode?_t("div",{className:"".concat(this.ns.b("main")),children:[_t("div",{className:"".concat(this.ns.be("main","left")),children:_t(bi,{controller:this.props.aiTopic})}),_t("div",{className:"".concat(this.ns.be("main","right")),children:[_t("div",{className:this.ns.b("content"),children:_t(xn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(yn,{data:this.props.aiTopic.activedTopic.value,type:"footer",className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(vi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}):_t("div",{className:"".concat(this.ns.be("main","default")),children:[_t("div",{className:this.ns.b("content"),children:_t(xn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(yn,{type:"footer",data:this.props.aiTopic.activedTopic.value,className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(vi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}),_t(ki,{title:this.props.caption||"AI助手",controller:this.props.aiChat,isMinimize:this.state.isMinimize,onClick:this.exitMinimize.bind(this)})]})})}}]),o}(I);t("ChatContainer",Ti)}}}))}(); diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.18/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.18/polyfills.legacy.js new file mode 100644 index 0000000000000000000000000000000000000000..c8c7654431885af1a2dc12a9fe73b198407bf314 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.18/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+""},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+""},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="\t\n\v\f\r                 \u2028\u2029\ufeff",JE=L,qE=Ao,KE=VE,YE=S("".replace),XE=RegExp("^["+KE+"]+"),QE=RegExp("(^|[^"+KE+"])["+KE+"]+$"),ZE=function(t){return function(r){var e=qE(JE(r));return 1&t&&(e=YE(e,XE,"")),2&t&&(e=YE(e,QE,"$1")),e}},tx={start:ZE(1),end:ZE(2),trim:ZE(3)},rx=te.PROPER,ex=o,nx=VE,ox=tx.trim;ro({target:"String",proto:!0,forced:function(t){return ex((function(){return!!nx[t]()||"​…᠎"!=="​…᠎"[t]()||rx&&nx[t].name!==t}))}("trim")},{trim:function(){return ox(this)}});var ix=Dt,ux=hn,ax=co,cx=mo,fx=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=ix(this),e=ux(r),n=arguments.length;if(n){fx(e+n);for(var o=e;o--;){var i=o+n;o in r?r[i]=r[o]:cx(r,i)}for(var u=0;uo;)for(var a,c=mx(arguments[o++]),f=i?Sx(px(c),i(c)):px(c),s=f.length,l=0;s>l;)a=f[l++],sx&&!hx(u,c,a)||(e[a]=c[a]);return e}:bx,xx=Ex;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==xx},{assign:xx});var Ox={exports:{}},jx=o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Ix=o,Tx=B,Rx=j,Px=jx,Ax=Object.isExtensible,kx=Ix((function(){Ax(1)}))||Px?function(t){return!!Tx(t)&&((!Px||"ArrayBuffer"!==Rx(t))&&(!Ax||Ax(t)))}:Ax,Cx=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),Nx=ro,Lx=S,Fx=pe,Mx=B,_x=Gt,Dx=Rr.f,Ux=Qe,$x=mw,Gx=kx,zx=Cx,Wx=!1,Bx=Vt("meta"),Hx=0,Vx=function(t){Dx(t,Bx,{value:{objectID:"O"+Hx++,weakData:{}}})},Jx=Ox.exports={enable:function(){Jx.enable=function(){},Wx=!0;var t=Ux.f,r=Lx([].splice),e={};e[Bx]=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!!c(this,t)}}),hO(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)}}),wO&&lO(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=xO(r),i=xO(n);yO(t,r,(function(t,r){EO(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)?mO("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,mO(void 0,!0))}),e?"entries":"values",!e,!0),bO(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=Yx[t],a=u&&u.prototype,c=u,f={},s=function(t){var r=Xx(a[t]);Zx(a,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!iO(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(Qx(t,!nO(u)||!(o||a.forEach&&!uO((function(){(new u).entries().next()})))))c=e.getConstructor(r,t,n,i),tO.enable();else if(Qx(t,!0)){var l=new c,h=l[i](o?{}:-0,1)!==l,v=uO((function(){l.has(1)})),p=aO((function(t){new u(t)})),d=!o&&uO((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((c=r((function(t,r){eO(t,a);var e=fO(new u,t,c);return oO(r)||rO(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,Kx({global:!0,constructor:!0,forced:c!==u},f),cO(c,t),o||e.setStrong(c,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),OO);var jO,IO=ro,TO=Fu,RO=n.f,PO=sn,AO=Ao,kO=_E,CO=L,NO=UE,LO=TO("".startsWith),FO=TO("".slice),MO=Math.min,_O=NO("startsWith");IO({target:"String",proto:!0,forced:!!(_O||(jO=RO(String.prototype,"startsWith"),!jO||jO.writable))&&!_O},{startsWith:function(t){var r=AO(CO(this));kO(t);var e=PO(MO(arguments.length>1?arguments[1]:void 0,r.length)),n=AO(t);return LO?LO(r,n,e):FO(r,e,e+n.length)===n}});var DO=ro,UO=Ms.findIndex,$O=sm,GO="findIndex",zO=!0;GO in[]&&Array(1)[GO]((function(){zO=!1})),DO({target:"Array",proto:!0,forced:zO},{findIndex:function(t){return UO(this,t,arguments.length>1?arguments[1]:void 0)}}),$O(GO);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=tx.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;o \ No newline at end of file diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.19/index.min.css b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.19/index.min.css new file mode 100644 index 0000000000000000000000000000000000000000..4da306d2ab918c2b37fc1c8904f807ab5d88448e --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.19/index.min.css @@ -0,0 +1 @@ +@charset "UTF-8";.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-chat-suggestions{--ibiz-chat-suggestions-bg: var(--ibiz-ai-chat-background-color);--ibiz-chat-suggestions-hover-bg-color: var(--ibiz-ai-chat-hover-background-color);--ibiz-chat-suggestions-border: var(--ibiz-ai-chat-border-color);display:flex;flex-direction:column;gap:var(--ibiz-spacing-base-tight);width:100%}.ibiz-chat-suggestions__item{display:flex;align-items:center;align-self:flex-start;justify-content:space-between;min-width:200px;height:32px;padding:0 12px;overflow:hidden;line-height:32px;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background-color:var(--ibiz-chat-suggestions-bg);border:1px solid var(--ibiz-chat-suggestions-border);border-radius:12px;transition:.3s background-color}.ibiz-chat-suggestions__item:hover{background-color:var(--ibiz-chat-suggestions-hover-bg-color)}.ibiz-chat-suggestions__item.is-action{color:var(--ibiz-ai-chat-color-2);background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-suggestions__item.is-action:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-suggestions__item .ibiz-chat-suggestions__item-icon{margin-left:12px;font-size:18px}.ibiz-markdown-message{padding:6px 10px}.ibiz-markdown-message .cherry{border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-markdown-message .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-markdown-message .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-markdown-message .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-markdown-message .cherry div[data-type=codeBlock] pre[class*=language-]::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.2)}.ibiz-markdown-message .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-markdown-message .cherry-previewer{padding:8px;border:0}.ibiz-markdown-message .cherry-previewer figure{max-width:1200px}.ibiz-markdown-message .cherry-previewer figure>svg{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)}.ibiz-markdown-message-footer{padding:10px 0}@keyframes circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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-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%;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:10px 16px;margin:0;font-size:14px;line-height:1.5;color:var(--color-fg-default);word-wrap:break-word;background:#e7f8ff;text-size-adjust:100%;background-color:var(--ibiz-ai-chat-background-color-light);border-radius:var(--ibiz-ai-chat-border-radius)}.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--material{gap:8px;display:flex;align-items:center;flex-flow:row-reverse wrap;margin-bottom:8px}.ibiz-user-message-question__content .cherry{min-height:0px;border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-user-message-question__content .cherry-markdown p{margin:0}.ibiz-user-message-question__content .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-user-message-question__content .cherry-previewer{padding:0;border:0;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color-light)}.ibiz-user-message-question__content .cherry-previewer figure{max-width:1200px}.ibiz-user-message-question__content .cherry-previewer figure>svg{width:100%;min-height:100px}.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock]{position:relative!important;display:flex;padding-top:24px}.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock] .cherry-edit-code-block,.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock] .cherry-copy-code-block{position:absolute;top:0}.ibiz-user-message-question__content .anchor{display:none!important}.ibiz-user-message-question__user-header{width:100%;height:32px;display:flex;margin-bottom:8px;align-items:center;justify-content:end}.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:10px 16px;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{display:flex;padding:6px 10px;justify-content:end}.ibiz-unknown-message__content{padding:10px 16px;color:#000;width:max-content;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-item{display:flex;cursor:pointer;position:relative;align-items:center;white-space:nowrap}.ibiz-chat-toolbar-item__content{display:flex;align-items:center;white-space:nowrap}.ibiz-chat-toolbar-item__content--icon{width:18px;height:18px;font-size:18px;display:flex;flex-shrink:0;align-items:center;justify-content:center}.ibiz-chat-toolbar-item__content--label,.ibiz-chat-toolbar-item__more{display:flex;align-items:center}.ibiz-chat-toolbar-item__more--icon{font-size:18px}.ibiz-chat-toolbar-item-default{font-size:14px;width:fit-content;color:var(--ibiz-ai-chat-color-2)}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__content{gap:6px;line-height:28px;padding:2px 14px;border-radius:12px;background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-toolbar-item-default.is-disabled{cursor:not-allowed}.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__content,.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__more{background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__content:hover,.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__more:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-default.is-more .ibiz-chat-toolbar-item__content{padding:2px 8px 2px 14px;border-radius:12px 0 0 12px}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__more{height:32px;padding:2px 14px 2px 8px;border-radius:0 12px 12px 0;border-left:1px solid var(--ibiz-ai-chat-border-color);background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-toolbar-item-circle{height:32px;padding:6px;max-width:32px;overflow:hidden;font-size:12px;white-space:nowrap;border-radius:15px;transition:max-width .8s ease;border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-toolbar-item-circle.is-disabled{cursor:not-allowed;color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-circle: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-item-circle .ibiz-chat-toolbar-item__content--label{font-size:14px;margin-left:8px;width:calc(100% - 32px)}.ibiz-chat-toolbar-item-dropdown{right:0;gap:4px;bottom:36px;padding:4px;display:flex;max-width:150px;border-radius:6px;position:absolute;flex-direction:column;background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-toolbar-item-dropdown__item{gap:6px;display:flex;padding:0 8px;cursor:pointer;line-height:32px;border-radius:6px;align-items:center}.ibiz-chat-toolbar-item-dropdown__item.is-disabled{cursor:not-allowed;background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-dropdown__item:hover:not(.is-disabled){background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-dropdown__item--icon{width:18px;height:18px;font-size:18px;display:flex;flex-shrink:0;align-items:center;justify-content:center}.ibiz-chat-toolbar-item-dropdown__item--label{flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ibiz-chat-toolbar{display:flex;flex-wrap:wrap;align-items:center}.ibiz-chat-toolbar .ibiz-chat-toolbar-item:not(:first-child){margin-left:6px}.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{width:calc(100% - 12px);height:calc(100% - 12px);margin:6px;overflow:hidden auto}.ibiz-chat-messages::-webkit-scrollbar{width:6px}.ibiz-chat-messages::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-wrapper{max-height:72px;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:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-input__textarea::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);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-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{gap:4px;padding:4px;display:flex;min-width:120px;border-radius:8px;flex-direction:column;background-color:var(--ibiz-color-bg-3);border:1px solid var(--ibiz-color-border)}.ibiz-pop__item{display:flex;padding:0 8px;cursor:pointer;line-height:32px;border-radius:6px;align-items:center}.ibiz-pop__item:hover{background-color:var(--ibiz-color-primary-hover)}.ibiz-pop__item--caption{min-width:0;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-pop__item svg{width:16px;height:16px;flex-shrink:0;margin-right:8px;fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-topic-item{height:38px;display:flex;padding:0 8px;cursor:pointer;border-radius:12px;position:relative;align-items:center;font-size:var(--ibiz-font-size-regular)}.ibiz-chat-topic-item:hover:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item:hover:not(.is-edit) .ibiz-chat-topic-item__icon{opacity:1}.ibiz-chat-topic-item.is-active:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item.is-edit{border:2px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-topic-item__caption{width:100%;height:100%;display:flex;align-items:center}.ibiz-chat-topic-item__caption--text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-topic-item__caption--editor{width:100%;height:100%;border:none;outline:none;color:var(--ibiz-ai-chat-color);background:var(--ibiz-ai-chat-background-color)}.ibiz-chat-topic-item__icon{top:50%;gap:8px;opacity:0;right:10px;height:24px;display:flex;outline:none;padding:0 8px;border-radius:8px;position:absolute;align-items:center;justify-content:flex-end;transform:translateY(-50%);color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item__icon--item{font-size:12px}.ibiz-chat-search{gap:8px;width:100%;display:flex;line-height:32px;border-radius:1px;padding:1px 11px;align-items:center;justify-content:center;border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-search:hover,.ibiz-chat-search.is-focus{border:1px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-search__prefix{width:14px;height:14px;display:flex;flex-shrink:0;font-size:14px;align-items:center}.ibiz-chat-search__inner{padding:2px 0 0;outline:0;flex-grow:1;border:none;height:28px;min-width:0;color:inherit;line-height:28px;background-color:initial}.ibiz-chat-topics{display:flex;flex-direction:column;gap:8px;height:100%;padding:8px 0}.ibiz-chat-topics__header{flex-shrink:0;padding:0 8px}.ibiz-chat-topics__main{flex-grow:1;padding:0 8px;overflow-y:auto}.ibiz-chat-topics__empty{font-size:var(--ibiz-font-size-regular);text-align:center}.ibiz-chat-topics__footer{display:flex;flex-shrink:0;align-items:center;justify-content:center;padding:0 8px}.ibiz-chat-topics__action{display:flex;gap:4px;align-items:center;padding:4px 12px;font-size:14px;cursor:pointer;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:2px}.ibiz-chat-topics__action:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topics__action>svg{width:14px!important;height:14px!important}.ibiz-chat-minimize{width:56px;height:56px;display:flex;z-index:99999;cursor:pointer;position:absolute;border-radius:50%;align-items:center;justify-content:center}.ibiz-chat-minimize.is-hidden{display:none}.ibiz-chat-minimize.is-show-halo{width:90px;height:90px;background-size:cover;background-position:center;background-repeat:no-repeat;background-image:url(assets/gif/halo.gif)}.ibiz-chat-minimize__content{width:56px;height:56px;display:flex;border-radius:50%;align-items:center;justify-content:center;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color)}.ibiz-chat-minimize__content:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-minimize__content svg{fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-minimize__content.is-show-border{border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover{left:50%;bottom:90px;padding:8px;display:block;font-size:12px;border-radius:8px;position:absolute;transform:translate(-50%);box-shadow:0 2px 8px rgba(0,0,0,.1);background-color:var(--ibiz-ai-chat-background-color);color:var(--ibiz-ai-chat-color);border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover .typewriter{direction:rtl;overflow:hidden;max-width:200px;width:fit-content;white-space:nowrap;text-overflow:ellipsis;animation:typing 3s steps(40,end)}@keyframes blink{0%,to{opacity:0}50%{opacity:1}}@keyframes typing{0%{width:0}to{width:100%}}@keyframes blink-caret{0%,to{border-color:transparent}50%{border-color:var(--ibiz-ai-chat-color)}}.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-ai-chat-scroll-bar-width: 8px;--ibiz-ai-chat-scroll-bar-height: 8px;--ibiz-ai-chat-scroll-bar-radius: 4px}.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__toolbar{margin:0;left:20px;gap:8px 4px;bottom:118px;min-height:48px;position:absolute;justify-content:center;width:calc(100% - 40px)}.ibiz-chat-container__toolbar.is-has-materials{bottom:180px}.ibiz-chat-container *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-container *::-webkit-scrollbar-thumb{border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.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-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.19/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.19/index.system.min.js new file mode 100644 index 0000000000000000000000000000000000000000..c924993a6ccd9912662134399a00b27fd1c8ed6d --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.19/index.system.min.js @@ -0,0 +1 @@ +!function(){function e(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)}function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,n)}function n(e){var t=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(e){return!1}}();return function(){var n,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}(this,n)}}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||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(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(e,t)||c(e,t)||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(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);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;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:I(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function h(e,t,n,i,r,o,a){try{var c=e[o](a),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(i,r)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){h(o,i,r,a,c,"next",e)}function c(e){h(o,i,r,a,c,"throw",e)}a(void 0)}))}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===c[a]&&(c[a]=e.defaultProps[a]);return O(e,c,i,o,null)}function O(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++h:r};return null==r&&null!=l.vnode&&l.vnode(o),o}function L(e){return e.children}function I(e,t){this.props=e,this.context=t}function D(e,t){if(null==t)return e.__?D(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&y.sort(x));B.__r=0}function H(e,t,n,i,r,o,a,c,s,l,u){var d,h,p,f,v,m,_,g,y,w=0,b=i&&i.__k||T,x=b.length,k=x,N=t.length;for(n.__k=[],d=0;d0?O(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)?(f.__=n,f.__b=n.__b+1,-1===(g=V(f,b,_=d+w,k))?p=C:(p=b[g]||C,b[g]=void 0,k--),$(e,f,p,r,o,a,c,s,l,u),v=f.__e,(h=f.ref)&&p.ref!=h&&(p.ref&&Z(p.ref,null,f),u.push(h,f.__c||v,f)),null!=v&&(null==m&&(m=v),(y=p===C||null===p.__v)?-1==g&&w--:g!==_&&(g===_+1?w++:g>_?k>N-_?w+=g-_:w--:w=g<_&&g==_-1?g-_:0),_=d+w,"function"!=typeof f.type||g===_&&p.__k!==f.__k?"function"==typeof f.type||g===_&&!y?void 0!==f.__d?(s=f.__d,f.__d=void 0):s=v.nextSibling:s=R(e,v,s):s=j(f,s,e),"function"==typeof n.type&&(n.__d=s))):(p=b[d])&&null==p.key&&p.__e&&(p.__e==s&&(p.__=i,s=D(p)),G(p,p,!1),b[d]=null);for(n.__e=m,d=x;d--;)null!=b[d]&&("function"==typeof n.type&&null!=b[d].__e&&b[d].__e==n.__d&&(n.__d=b[d].__e.nextSibling),G(b[d],b[d]))}function j(e,t,n){for(var i,r=e.__k,o=0;r&&o(null!=s?1:0))for(;a>=0||c=0){if((s=t[a])&&r==s.key&&o===s.type)return a;a--}if(c0&&void 0!==arguments[0]?arguments[0]:"";return Q(this.namespace,this.block,e,"","")}},{key:"e",value:function(e){return e?Q(this.namespace,this.block,"",e,""):""}},{key:"m",value:function(e){return e?Q(this.namespace,this.block,"","",e):""}},{key:"be",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,t,""):""}},{key:"em",value:function(e,t){return e&&t?Q(this.namespace,this.block,"",e,t):""}},{key:"bm",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,"",t):""}},{key:"bem",value:function(e,t,n){return e&&t&&n?Q(this.namespace,this.block,e,t,n):""}},{key:"is",value:function(e,t){return e&&t?"".concat("is-").concat(e):""}},{key:"cssVar",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarName(n)]=e[n]);return t}},{key:"cssVarBlock",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarBlockName(n)]=e[n]);return t}},{key:"cssVarName",value:function(e){return"--".concat(this.namespace,"-").concat(e)}},{key:"cssVarBlockName",value:function(e){return"--".concat(this.namespace,"-").concat(this.block,"-").concat(e)}}]),e}();function te(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ne(e,t){for(var n,i="",r=0,o=-1,a=0,c=0;c<=e.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}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(o+1,c):i=e.slice(o+1,c),r=c-o-1;o=c,a=0}else 46===n&&-1!==a?++a:a=-1}return i}var ie={resolve:function(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var r;i>=0?r=arguments[i]:(void 0===e&&(e=process.cwd()),r=e),te(r),0!==r.length&&(t=r+"/"+t,n=47===r.charCodeAt(0))}return t=ne(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(te(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=ne(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return te(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":ie.normalize(e)},relative:function(e,t){if(te(e),te(t),e===t)return"";if((e=ie.resolve(e))===(t=ie.resolve(t)))return"";for(var n=1;nc){if(47===t.charCodeAt(o+l))return t.slice(o+l+1);if(0===l)return t.slice(o+l)}else r>c&&(47===e.charCodeAt(n+l)?s=l:0===l&&(s=0));break}var u=e.charCodeAt(n+l);if(u!==t.charCodeAt(o+l))break;47===u&&(s=l)}var d="";for(l=n+s+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(o+s):(o+=s,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(te(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,r=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');te(e);var n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,c=-1;for(n=e.length-1;n>=0;--n){var s=e.charCodeAt(n);if(47===s){if(!o){i=n+1;break}}else-1===c&&(o=!1,c=n+1),a>=0&&(s===t.charCodeAt(a)?-1==--a&&(r=n):(a=-1,r=c))}return i===r?r=c:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){te(e);for(var t=-1,n=0,i=-1,r=!0,o=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(r=!1,i=a+1),46===c?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=a+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==f(e))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+f(e));return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}("/",e)},parse:function(e){te(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0),r=47===i;r?(t.root="/",n=1):n=0;for(var o=-1,a=0,c=-1,s=!0,l=e.length-1,u=0;l>=n;--l)if(47!==(i=e.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&&(t.base=t.name=0===a&&r?e.slice(1,c):e.slice(a,c)):(0===a&&r?(t.name=e.slice(1,o),t.base=e.slice(1,c)):(t.name=e.slice(a,o),t.base=e.slice(a,c)),t.ext=e.slice(o,c)),a>0?t.dir=e.slice(0,a-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};function re(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function oe(){return"".concat(re()+re(),"-").concat(re(),"-").concat(re(),"-").concat(re(),"-").concat(re()).concat(re()).concat(re())}ie.posix=ie;var ae=/]*>[\s\S]*?<\/svg>/;function ce(e){return ae.test(e)}var se=function(){function e(){v(this,e)}return _(e,null,[{key:"copy",value:function(e){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=e,this.inputElement.select(),document.execCommand("copy")}}]),e}();g(se,"inputElement",null);var le=function(){function e(){v(this,e)}var t,n,i,r,o,a,c,s,l,u;return _(e,null,[{key:"checkDataBaseExists",value:(u=p(d().mark((function e(t){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,indexedDB.databases();case 3:return n=e.sent,e.abrupt("return",n.some((function(e){return e.name===t})));case 7:return e.prev=7,e.t0=e.catch(0),console.error("检查数据库是否存在时出错:",e.t0),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])}))),function(e){return u.apply(this,arguments)})},{key:"deleteDatabase",value:(l=p(d().mark((function t(n){var i,r;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.lastLink&&(null===(i=(r=e.lastLink).close)||void 0===i||i.call(r)),t.abrupt("return",new Promise((function(e,t){var i=indexedDB.deleteDatabase(n);i.onsuccess=function(){e(!0)},i.onerror=function(){e(!1)},i.onblocked=function(){console.warn("删除数据库 ".concat(n," 被阻塞,可能有其他连接正在使用该数据库。")),t(new Error("删除数据库 ".concat(n," 被阻塞")))}})));case 2:case"end":return t.stop()}}),t)}))),function(e){return l.apply(this,arguments)})},{key:"checkTableExists",value:(s=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.checkDataBaseExists(n);case 2:if(t.sent){t.next=5;break}return t.abrupt("return",!1);case 5:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onupgradeneeded=function(t){e.db=t.target.result,e.version=e.db.version},o.onsuccess=function(n){e.db=n.target.result,e.lastLink=o.result;var r=e.db.objectStoreNames.contains(i);o.result.close(),t(r)},o.onerror=function(e){r(e.target.error)}})));case 6:case"end":return t.stop()}}),t)}))),function(e,t){return s.apply(this,arguments)})},{key:"createTable",value:(c=p(d().mark((function t(n,i,r){var o,a=arguments;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=a.length>3&&void 0!==a[3]&&a[3],t.abrupt("return",new Promise((function(t){var a,c;e.version+=1,e.lastLink&&(null===(a=(c=e.lastLink).close)||void 0===a||a.call(c));var s=indexedDB.open(n,e.version);s.onupgradeneeded=function(t){if(e.db=t.target.result,!e.db.objectStoreNames.contains(i)){var n={};r?n.keyPath=r:o&&(n.autoIncrement=!0),e.db.createObjectStore(i,n)}},s.onsuccess=function(){e.lastLink=s.result,s.result.close(),t(!0)},s.onerror=function(){t(!1)}})));case 2:case"end":return t.stop()}}),t)}))),function(e,t,n){return c.apply(this,arguments)})},{key:"deleteTable",value:(a=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){var r,o;e.version+=1,e.lastLink&&(null===(r=(o=e.lastLink).close)||void 0===r||r.call(o));var a=indexedDB.open(n,e.version);a.onupgradeneeded=function(t){e.db=t.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)&&e.db.deleteObjectStore(i)},a.onsuccess=function(n){e.db=n.target.result,e.lastLink=a.result,a.result.close(),t(!0)},a.onerror=function(){a.result.close(),t(!1)}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t){return a.apply(this,arguments)})},{key:"addData",value:(o=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).add(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(null)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return o.apply(this,arguments)})},{key:"deleteData",value:(r=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).delete(r);o.onsuccess=function(e){t(!0)},o.onerror=function(){t(!1)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"updateData",value:(i=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).put(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(r)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"getData",value:(n=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var c=e.db.transaction([i],"readonly").objectStore(i).get(r);c.onsuccess=function(e){t(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 t.stop()}}),t)}))),function(e,t,i){return n.apply(this,arguments)})},{key:"getAllData",value:(t=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=o.result,e.db.objectStoreNames.contains(i)){var r=e.db.transaction([i],"readonly").objectStore(i).getAll();r.onsuccess=function(e){t(r.result)},r.onerror=function(){t([])}}o.result.close()},o.onerror=function(){o.result.close(),r()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}]),e}();g(le,"version",1),g(le,"db",null),g(le,"lastLink",void 0);var ue=function(){function e(t){v(this,e),g(this,"options",void 0),this.options=u({multiple:!0,accept:"*/*",maxSize:5242880},t)}var t,n;return _(e,[{key:"openFilePicker",value:function(){var e=this,t=document.createElement("input");t.type="file",t.multiple=this.options.multiple,t.accept=this.options.accept||"",t.onchange=function(t){var n=Array.from(t.target.files||[]);e.handleFiles(n)},t.click()}},{key:"handleFiles",value:(n=p(d().mark((function e(t){var n,i,r,o=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.length){e.next=2;break}return e.abrupt("return");case 2:return r=t.filter((function(e){var t,n;return!(o.options.maxSize&&e.size>o.options.maxSize&&(null===(t=(n=o.options).onError)||void 0===t||t.call(n,new Error("文件大小超过限制 (".concat(o.formatSize(e.size)," > ").concat(o.formatSize(o.options.maxSize),")")),e),1))})),null===(n=(i=this.options).onSelect)||void 0===n||n.call(i,r),e.next=6,Promise.all(r.map((function(e){return o.processFile(e)})));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"processFile",value:(t=p(d().mark((function e(t){var n,i,r,o,a,c,s,l,u=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a=function(e){var n,i;null===(n=(i=u.options).onProgress)||void 0===n||n.call(i,t,e)},e.next=4,this.options.onUpload(t,a);case 4:c=e.sent,null===(n=(i=this.options).onProgress)||void 0===n||n.call(i,t,100),null===(r=(o=this.options).onSuccess)||void 0===r||r.call(o,c,t),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),null===(s=(l=this.options).onError)||void 0===s||s.call(l,e.t0 instanceof Error?e.t0:new Error("上传失败"),t);case 12:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e){return t.apply(this,arguments)})},{key:"formatSize",value:function(e){if(0===e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat((e/Math.pow(1024,t)).toFixed(2)," ").concat(["B","KB","MB","GB"][t])}}]),e}(),de=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("resource")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r),c=o?JSON.parse(o):{},s=a?JSON.parse(a):{};return{id:c.id,type:n,data:c,metadata:s}}catch(Jn){throw new Error("XML 解析错误: ".concat(Jn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/resources>/i.exec(e);if(!t)return{resources:[],remainingText:e,hasResources:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.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(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("resources");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("resource");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}(),he=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("suggestion")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r);return{type:n,data:o?JSON.parse(o):{},metadata:a?JSON.parse(a):{}}}catch(Jn){throw new Error("XML 解析错误: ".concat(Jn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/suggestions>/i.exec(e);if(!t)return{suggestions:[],remainingText:e,hasSuggestions:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.slice(r)).replace(/\n/g,"");try{return{suggestions:this.parse(n),remainingText:o,hasSuggestions:!0}}catch(c){return{suggestions:[],remainingText:o,hasSuggestions:!0,error:"资源解析失败: ".concat(c.message)}}}},{key:"stringify",value:function(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("suggestions");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("suggestion");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}();function pe(e){return e.x>=0&&e.x<=1&&e.y>=0&&e.y<=1}function fe(e,t,n,i){var r=e/window.innerWidth,o=t/window.innerHeight;return{x:Math.max(0,Math.min(r,1-n)),y:Math.max(0,Math.min(o,1-i))}}var ve,me,_e,ge,ye=0,we=[],be=[],xe=l.__b,ke=l.__r,Ce=l.diffed,Te=l.__c,Ne=l.unmount;function Ee(e,t){l.__h&&l.__h(me,e,ye||t),ye=0;var n=me.__H||(me.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:be}),n.__[e]}function Se(e){return ye=1,function(e,t,n){var i=Ee(ve++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):Fe(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=me,!me.u)){var r=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var a=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&i.__c.props===e)&&(!o||o.call(this,e,t,n))};me.u=!0;var o=me.shouldComponentUpdate,a=me.componentWillUpdate;me.componentWillUpdate=function(e,t,n){if(this.__e){var i=o;o=void 0,r(e,t,n),o=i}a&&a.call(this,e,t,n)},me.shouldComponentUpdate=r}return i.__N||i.__}(Fe,e)}function Ae(e,t){var n=Ee(ve++,3);!l.__s&&je(n.__H,t)&&(n.__=e,n.i=t,me.__H.__h.push(n))}function Me(e){return ye=5,Oe((function(){return{current:e}}),[])}function Oe(e,t){var n=Ee(ve++,7);return je(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Le(e,t){return ye=8,Oe((function(){return e}),t)}function Ie(e){var t=me.context[e.__c],n=Ee(ve++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(me)),t.props.value):e.__}function De(){for(var e;e=we.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Be),e.__H.__h.forEach(He),e.__H.__h=[]}catch(ei){e.__H.__h=[],l.__e(ei,e.__v)}}l.__b=function(e){me=null,xe&&xe(e)},l.__r=function(e){ke&&ke(e),ve=0;var t=(me=e.__c).__H;t&&(_e===me?(t.__h=[],me.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=be,e.__N=e.i=void 0}))):(t.__h.forEach(Be),t.__h.forEach(He),t.__h=[],ve=0)),_e=me},l.diffed=function(e){Ce&&Ce(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==we.push(t)&&ge===l.requestAnimationFrame||((ge=l.requestAnimationFrame)||Pe)(De)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==be&&(e.__=e.__V),e.i=void 0,e.__V=be}))),_e=me=null},l.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Be),e.__h=e.__h.filter((function(e){return!e.__||He(e)}))}catch(Ge){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l.__e(Ge,e.__v)}})),Te&&Te(e,t)},l.unmount=function(e){Ne&&Ne(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Be(e)}catch(e){t=e}})),n.__H=void 0,t&&l.__e(t,n.__v))};var ze="function"==typeof requestAnimationFrame;function Pe(e){var t,n=function(){clearTimeout(i),ze&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);ze&&(t=requestAnimationFrame(n))}function Be(e){var t=me,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),me=t}function He(e){var t=me;e.__c=e.__(),me=t}function je(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Fe(e,t){return"function"==typeof t?t(e):t}function Re(){throw new Error("Cycle detected")}var Ve=Symbol.for("preact-signals");function We(){if(Xe>1)Xe--;else{for(var e,t=!1;void 0!==$e;){var n=$e;for($e=void 0,Ze++;void 0!==n;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&et(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=i}}if(Ze=0,Xe--,t)throw e}}var Ue,qe,Ye=void 0,$e=void 0,Xe=0,Ze=0,Ge=0;function Je(e){if(void 0!==Ye){var t=e.n;if(void 0===t||t.t!==Ye)return t={i:0,S:e,p:Ye.s,n:void 0,t:Ye,e:void 0,x:void 0,r:t},void 0!==Ye.s&&(Ye.s.n=t),Ye.s=t,e.n=t,32&Ye.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=Ye.s,t.n=void 0,Ye.s.n=t,Ye.s=t),t}}function Ke(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Qe(e){return new Ke(e)}function et(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function tt(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function nt(e){for(var t=e.s,n=void 0;void 0!==t;){var i=t.p;-1===t.i?(t.S.U(t),void 0!==i&&(i.n=t.n),void 0!==t.n&&(t.n.p=i)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=i}e.s=n}function it(e){Ke.call(this,void 0),this.x=e,this.s=void 0,this.g=Ge-1,this.f=4}function rt(e){return new it(e)}function ot(e){var t=e.u;if(e.u=void 0,"function"==typeof t){Xe++;var n=Ye;Ye=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,at(e),t}finally{Ye=n,We()}}}function at(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ot(e)}function ct(e){if(Ye!==this)throw new Error("Out-of-order effect");nt(this),Ye=e,this.f&=-2,8&this.f&&at(this),We()}function st(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function lt(e){var t=new st(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function ut(e,t){l[e]=t.bind(null,l[e]||function(){})}function dt(e){qe&&qe(),qe=e&&e.S()}function ht(e){var t=this,n=e.data,i=ft(n);i.value=n;var r=Oe((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e;m(r.peek())||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=r.peek()},rt((function(){var e=i.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return r.value}function pt(e,t,n,i){var r=t in e&&void 0===e.ownerSVGElement,o=Qe(n);return{o:function(e,t){o.value=e,i=t},d:lt((function(){var n=o.value.value;i[t]!==n&&(i[t]=n,r?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}function ft(e){return Oe((function(){return Qe(e)}),[])}function vt(e){var t=Me(e);return t.current=e,Ue.__$f|=4,Oe((function(){return rt((function(){return t.current()}))}),[])}Ke.prototype.brand=Ve,Ke.prototype.h=function(){return!0},Ke.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},Ke.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Ke.prototype.subscribe=function(e){var t=this;return lt((function(){var n=t.value,i=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=i}}))},Ke.prototype.valueOf=function(){return this.value},Ke.prototype.toString=function(){return this.value+""},Ke.prototype.toJSON=function(){return this.value},Ke.prototype.peek=function(){return this.v},Object.defineProperty(Ke.prototype,"value",{get:function(){var e=Je(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(Ye instanceof it&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Ze>100&&Re(),this.v=e,this.i++,Ge++,Xe++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{We()}}}}),(it.prototype=new Ke).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Ge)return!0;if(this.g=Ge,this.f|=1,this.i>0&&!et(this))return this.f&=-2,!0;var e=Ye;try{tt(this),Ye=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return Ye=e,nt(this),this.f&=-2,!0},it.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Ke.prototype.S.call(this,e)},it.prototype.U=function(e){if(void 0!==this.t&&(Ke.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},it.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},it.prototype.peek=function(){if(this.h()||Re(),16&this.f)throw this.v;return this.v},Object.defineProperty(it.prototype,"value",{get:function(){1&this.f&&Re();var e=Je(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),st.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},st.prototype.S=function(){1&this.f&&Re(),this.f|=1,this.f&=-9,ot(this),tt(this),Xe++;var e=Ye;return Ye=this,ct.bind(this,e)},st.prototype.N=function(){2&this.f||(this.f|=2,this.o=$e,$e=this)},st.prototype.d=function(){this.f|=8,1&this.f||at(this)},ht.displayName="_st",Object.defineProperties(Ke.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ht},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),ut("__b",(function(e,t){if("string"==typeof t.type){var n,i=t.props;for(var r in i)if("children"!==r){var o=i[r];o instanceof Ke&&(n||(t.__np=n={}),n[r]=o,i[r]=o.peek())}}e(t)})),ut("__r",(function(e,t){dt();var n,i=t.__c;i&&(i.__$f&=-2,void 0===(n=i.__$u)&&(i.__$u=n=function(e){var t;return lt((function(){t=this})),t.c=function(){i.__$f|=1,i.setState({})},t}())),Ue=i,dt(n),e(t)})),ut("__e",(function(e,t,n,i){dt(),Ue=void 0,e(t,n,i)})),ut("diffed",(function(e,t){var n;if(dt(),Ue=void 0,"string"==typeof t.type&&(n=t.__e)){var i=t.__np,r=t.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=pt(n,s,u,r),o[s]=l):l.o(u,r)}}}e(t)})),ut("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__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=t.__c;if(a){var c=a.__$u;c&&(a.__$u=void 0,c.d())}}e(t)})),ut("__h",(function(e,t,n,i){(i<3||9===i)&&(t.__$f|=2),e(t,n,i)})),I.prototype.shouldComponentUpdate=function(e,t){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 t)return!0;for(var r in e)if("__source"!==r&&e[r]!==this.props[r])return!0;for(var o in this.props)if(!(o in e))return!0;return!1};var mt=0;function _t(e,t,n,i,r,o){var a,c,s={};for(c in t)"ref"==c?a=t[c]:s[c]=t[c];var u={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--mt,__source:r,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===s[c]&&(s[c]=a[c]);return l.vnode&&l.vnode(u),u}var gt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},yt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},wt=function(e){return _t("svg",{viewBox:"0 0 1024 1024",id:"send",className:e.className,version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},bt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},xt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},kt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Ct=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Tt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Nt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M960 544H64a32 32 0 1 1 0-64h896a32 32 0 1 1 0 64"})})},Et=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[_t("path",{d:"M481.0752 263.3728l50.9952 1.024 1.8432-105.8816-50.9952-0.8192z"}),_t("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"}),_t("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"}),_t("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"}),_t("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"}),_t("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"})]})},St=function(){return _t("svg",{viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_t("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"}),_t("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"}),_t("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"})]})},At=function(){return _t("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_t("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"})})},Mt=function(){var e=1e3,t=140,n=250,i=.8;return _t("svg",{fill:"currentColor",viewBox:"0 0 ".concat(e," ").concat(e),xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:Array.from({length:4}).map((function(e,r){return _t("rect",{fill:"currentColor",rx:70,ry:70,height:n,width:t,x:286.66666666666663*r,y:375,children:[_t("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"}),_t("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)}))})},Ot=function(e){return _t("svg",{className:e.className,onClick:e.onClick,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Lt=function(e){return _t("svg",{className:e.className,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},It=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M972.657609 209.348408C987.158609 209.36839 998.930114 197.571202 998.949999 182.99865 998.969882 168.426097 987.230618 156.59651 972.729617 156.576528L32.457975 155.280806C17.956974 155.260823 6.18547 167.058012 6.165585 181.630564 6.1457 196.203116 17.884965 208.032703 32.385966 208.052686L972.657609 209.348408ZM180.466902 992.356169 180.466902 1019.014859 206.993296 1018.74074 833.361858 1012.267947 859.348284 1011.999407 859.348284 985.883377 859.348284 289.397297C859.348284 274.824732 847.59289 263.011332 833.091874 263.011332 818.590859 263.011332 806.835465 274.824732 806.835465 289.397297L806.835465 985.883377 832.82189 959.498805 206.453329 965.971599 232.979723 992.356169 232.979723 282.67005C232.979723 268.097483 221.224329 256.284085 206.723313 256.284085 192.222298 256.284085 180.466902 268.097483 180.466902 282.67005L180.466902 992.356169ZM656.410257 847.079027C656.410257 861.651593 668.165651 873.464992 682.666667 873.464992 697.167682 873.464992 708.923076 861.651593 708.923076 847.079027L708.923076 372.131659C708.923076 357.559091 697.167682 345.745694 682.666667 345.745694 668.165651 345.745694 656.410257 357.559091 656.410257 372.131659L656.410257 847.079027ZM341.333333 847.079027C341.333333 861.651593 353.08873 873.464992 367.589743 873.464992 382.090758 873.464992 393.846155 861.651593 393.846155 847.079027L393.846155 372.131659C393.846155 357.559091 382.090758 345.745694 367.589743 345.745694 353.08873 345.745694 341.333333 357.559091 341.333333 372.131659L341.333333 847.079027ZM498.871795 847.079027C498.871795 861.651593 510.627189 873.464992 525.128205 873.464992 539.62922 873.464992 551.384614 861.651593 551.384614 847.079027L551.384614 372.131659C551.384614 357.559091 539.62922 345.745694 525.128205 345.745694 510.627189 345.745694 498.871795 357.559091 498.871795 372.131659L498.871795 847.079027ZM392.147755 116.721777C392.147755 102.063669 403.758665 90.363507 418.40134 90.363507L622.925796 90.363507C637.408947 90.363507 649.179381 102.1619 649.179381 116.549585L649.179381 171.644875 701.692203 171.644875 701.692203 116.549585C701.692203 72.986607 666.38105 37.591577 622.925796 37.591577L418.40134 37.591577C374.724427 37.591577 339.634933 72.950804 339.634933 116.721777L339.634933 165.310801 392.147755 165.310801 392.147755 116.721777Z"})})},Dt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 184l144 144 144-144"})})},zt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"".concat(e.className," icon"),viewBox:"0 0 512 512",children:_t("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"})})},Pt=function(e){return _t("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",children:_t("circle",{cx:"25",cy:"25",r:"20",stroke:"currentColor",strokeWidth:"5",fill:"none",strokeDasharray:"31.415, 31.415",strokeLinecap:"round",children:_t("animateTransform",{attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"1s",repeatCount:"indefinite"})})})},Bt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ht=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},jt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ft=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Rt=function(e){return _t("svg",{className:e.className,id:"stop",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},Vt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})})},Wt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("path",{d:"M394.688 126.208a32 32 0 0 1 32-32h170.688a32 32 0 0 1 32 32v138.624h288a32 32 0 0 1 32 32v170.688a32 32 0 0 1-32 32H106.688a32 32 0 0 1-32-32V296.832a32 32 0 0 1 32-32h288V126.208z m64 32v138.624a32 32 0 0 1-32 32h-288v106.688h746.688V328.832h-288a32 32 0 0 1-32-32V158.208H458.688z"}),_t("path",{d:"M138.688 469.376a32 32 0 0 1 32-32h682.688a32 32 0 0 1 32 32v384a32 32 0 0 1-32 32H170.688a32 32 0 0 1-32-32v-384z m64 32v320h618.688v-320H202.688z"}),_t("path",{d:"M341.376 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32zM512 691.2a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0v-128a32 32 0 0 1 32-32zM682.688 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32z"})]})},Ut=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("path",{d:"M843.251 424.407l43.828-74.898c10.194-17.946 32.596-22.158 48.956-11.598 16.298 10.499 23.44 32.658 14.223 49.566l-113.11 195.212-61.164-40.044-126.418-82.285c-16.115-11.598-20.632-34.428-10.194-51.702 9.705-17.397 31.009-23.501 47.857-13.734l89.67 59.028C748.576 295.547 615.81 180.667 461.008 180.667c-177.387 0-320.042 148.758-320.042 331.335 0 183.613 143.692 331.334 319.981 331.334 107.861 0.184 208.58-56.158 268.034-149.858 1.099-1.038 1.099-2.075 2.075-2.075 6.348-9.949 17.092-15.871 28.568-15.81 19.35 0 35.648 16.848 35.648 36.93 0 7.508-2.137 14.833-6.104 21.059-72.823 114.698-196.066 183.675-328.099 183.614-216.088 0-391.4-181.478-391.4-405.195 0-223.718 175.312-405.195 391.339-405.195 183.125-0.427 342.016 131.606 382.243 317.601z"})})},qt=function(){return _t("svg",{version:"1.1",className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M627.498667 55.168l170.666666 170.666667a42.624 42.624 0 0 1 0 60.330666l-469.333333 469.333334A42.538667 42.538667 0 0 1 298.666667 768H128a42.666667 42.666667 0 0 1-42.666667-42.666667v-170.666666c0-11.306667 4.48-22.186667 12.501334-30.165334l469.333333-469.333333a42.624 42.624 0 0 1 60.330667 0zM896 896a42.666667 42.666667 0 0 1 0 85.333333H128a42.666667 42.666667 0 0 1 0-85.333333h768zM597.333333 145.664l-426.666666 426.666667V682.666667h110.336l426.666666-426.666667L597.333333 145.664z"})})},Yt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M184 112l144 144-144 144"})})},$t=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M896 870.4l-128-128c55.467-68.267 89.6-149.333 89.6-238.933 0-98.134-38.4-192-110.933-264.534-149.334-149.333-384-149.333-533.334-4.266-145.066 145.066-145.066 384 0 529.066 72.534 72.534 166.4 110.934 264.534 110.934 89.6 0 174.933-29.867 238.933-89.6l128 128c4.267 4.266 12.8 8.533 21.333 8.533s17.067-4.267 21.334-8.533c17.066-8.534 17.066-29.867 8.533-42.667zM260.267 721.067c-119.467-123.734-119.467-320 0-439.467 59.733-59.733 140.8-89.6 217.6-89.6 81.066 0 157.866 29.867 217.6 89.6 59.733 59.733 89.6 136.533 89.6 217.6 0 81.067-34.134 162.133-89.6 217.6-55.467 59.733-132.267 93.867-217.6 93.867-81.067 0-157.867-34.134-217.6-89.6z"})})},Xt=function(e){var t=e.items,n=ft([]),i=new ee("chat-thought-chain"),r=ft([]);Ae((function(){r.value=t.filter((function(e){return e.description})),r.value.length>0&&r.value.forEach((function(e,t){e.done&&(n.value=[].concat(o(n.value),[t]))}))}),[t]);return 0===r.value.length?null:_t("div",{className:"".concat(i.b()," ").concat(i.is("single",1===r.value.length)),children:r.value.map((function(e,t){if(e.description){var r=n.value.includes(t);return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("collapsed",r)),children:[_t("div",{className:i.e("item-icon"),children:e.icon||_t("span",{children:t})}),_t("div",{className:i.e("item-content"),children:[_t("div",{className:i.e("item-title"),onClick:function(){return function(e){n.value.includes(e)?n.value=n.value.filter((function(t){return t!==e})):n.value=[].concat(o(n.value),[e])}(t)},children:[e.title,_t(Dt,{className:i.e("icon")})]}),_t("div",{className:i.e("item-description"),children:e.description})]})]},t)}}))})},Zt=function(e){var t=e.items,n=e.onItemClick,i=new ee("chat-suggestions");return _t("div",{className:"".concat(i.b()),children:t.map((function(e,t){return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("action","action"===e.type)),onClick:function(t){return function(e,t){null==n||n(e,t)}(e,t)},title:e.metadata.content_name,children:[e.metadata.content_name,_t(Yt,{className:"".concat(i.e("item-icon"))})]},t)}))})},Gt=new ee("markdown-message"),Jt=function(e){var t=e.message,n=e.size,i=ft(oe()),r=ft(null),o=Oe((function(){return 20===t.state&&!0!==t.completed}),[t.state,t.completed]),a=Oe((function(){return 20===t.state&&!0===t.completed}),[t.state,t.completed]),c=ft({title:"",description:"",icon:_t(Pt,{})}),l=ft({hasSuggestions:!1,suggestions:[]}),u=function(e){e&&e.length>0?l.value={hasSuggestions:!0,suggestions:e}:l.value={hasSuggestions:!1,suggestions:[]}},d=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="",o=!1;return-1===n?(o=!1,i=e.slice(t+7),r=""):(o=!0,i=e.slice(t+7,n),r=e.slice(n+8)),{isThoughtCompleted:o,thoughtContent:i,answerContent:r}};return Ae((function(){if(n>=0&&r.value){if(-1!==t.content.indexOf("")){var e=d(t.content),i=e.isThoughtCompleted,o=e.thoughtContent,a=e.answerContent;i?(c.value.icon=_t(zt,{}),c.value.title="思考完成"):!0===t.completed?(c.value.icon=_t(zt,{}),c.value.title="思考已停止"):(c.value.icon=_t(Pt,{}),c.value.title="思考中..."),c.value.description=o||"",r.value.setMarkdown(a||"")}else r.value.setMarkdown(t.content||"");u(t.suggestions)}}),[t,n]),Ae((function(){var e="";if(-1!==t.content.indexOf("")){var n=d(t.content),o=n.isThoughtCompleted,a=n.thoughtContent,l=n.answerContent;c.value={title:o?"思考完成":!0===t.completed?"思考已停止":"思考中...",description:a||"",icon:o||!0===t.completed?_t(zt,{}):_t(Pt,{})},l&&(e=l)}else e=t.content;u(t.suggestions),r.value=new s({id:i,value:e||"",editor:{defaultModel:"previewOnly"}})}),[]),_t("div",{className:"".concat(Gt.b()," ").concat(Gt.is("loading",o)),children:[_t("div",{className:Gt.b("header"),children:[_t("div",{className:Gt.be("header","caption"),children:"AI "}),e.children,a?_t("div",{className:Gt.be("header","timeout"),children:"请求超时"}):null]}),_t("div",{className:"".concat(Gt.b("content")," pre-wrap-container"),children:[_t(Xt,{items:[c.value]}),_t("div",{id:i})]}),_t("div",{className:Gt.b("footer"),children:l.value.hasSuggestions?_t(Zt,{items:l.value.suggestions,onItemClick:function(t,n){!function(t,n){e.controller.handleSuggestionClick(e.message,t,n)}(t,n)}}):null})]})},Kt=new ee("ossfile-material"),Qt=function(e){var t=vt((function(){return e.material.data.name})),n=vt((function(){return e.material.metadata.size})),i=vt((function(){var t=e.material.metadata.state;return"successed"===t?"上传成功":"uploading"===t?"上传中":"failed"===t?"上传失败":"未知状态"})),r=vt((function(){switch(e.material.metadata.state){case"successed":return"#1890ff";case"uploading":return"#52c41a";default:return"#ff4d4f"}}));return _t("div",{className:Kt.b(),children:[_t("div",{className:Kt.b("left"),children:_t(Ht,{})}),_t("div",{className:Kt.b("right"),children:[_t("div",{className:Kt.e("name"),title:t,children:t}),_t("div",{className:Kt.e("metadata"),children:[_t("div",{children:[n,"B"]}),_t("div",{style:{color:r.value},children:i})]})]})]})},en=new ee("common-material"),tn=function(e){var t,n,i,r,o=null===(t=e.controller.opts.questionToolbarItems)||void 0===t?void 0:t.find((function(t){return t.id===e.material.metadata.actionId})),a=vt((function(){return e.material.metadata.name}));return _t("div",{className:en.b(),children:[_t("div",{className:en.b("left"),children:o&&o.icon?"function"==typeof o.icon?o.icon():(null===(n=o.icon)||void 0===n?void 0:n.showIcon)&&_t(L,{children:null!==(i=o.icon)&&void 0!==i&&i.cssClass?_t("i",{className:o.icon.cssClass}):null!==(r=o.icon)&&void 0!==r&&r.imagePath?ce(o.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:o.icon.imagePath}}):_t("img",{src:o.icon.imagePath}):null}):_t(Ft,{})}),_t("div",{className:en.b("right"),children:[_t("div",{className:en.e("name"),title:a,children:a}),_t("div",{className:en.e("metadata"),children:_t("div",{children:(null==o?void 0:o.label)||"素材资源"})})]})]})},nn=new ee("chat-input-material-item"),rn=function(e){var t=e.material,n=null;if("ossfile"===t.type)n=Qt;else n=tn;return _t("div",{className:"".concat(nn.b()," ").concat(nn.is("disabled",e.disabled)),children:[_t("div",{className:nn.e("icon"),onClick:function(){e.controller.deleteMaterial(t)},children:_t(jt,{})}),M(n,{material:t,controller:e.controller})]})},on=new ee("user-message-question"),an=function(e){var t=ft(oe()),n=ft(null),i=vt((function(){return e.message.content})),r=vt((function(){return de.parseMixedContent(i.value)}));return Ae((function(){n.value=new s({id:t,value:r.value.remainingText||"",editor:{defaultModel:"previewOnly"}})}),[r.value.remainingText]),_t("div",{className:on.b(),children:[_t("div",{className:on.e("user-header"),children:[e.children,_t("div",{className:on.e("user"),children:"我"})]}),_t("div",{className:on.e("content"),children:_t("div",{className:on.em("content","body"),children:[r.value.hasResources&&_t("div",{className:on.em("content","material"),children:r.value.resources.map((function(t){return _t(rn,{material:t,disabled:!0,controller:e.controller},t.id)}))}),_t("div",{className:"pre-wrap-container",children:_t("div",{id:t})})]})})]})},cn=new ee("error-message"),sn=function(e){var t=vt((function(){return e.message.content}));return _t("div",{className:cn.b(),children:[_t("div",{className:cn.b("header"),children:[_t("div",{className:cn.be("header","caption"),children:"AI "}),e.children]}),_t("div",{className:"".concat(cn.e("content")," pre-wrap-container"),children:_t("span",{children:t})})]})},ln=new ee("unknown-message"),un=function(e){return _t("div",{className:ln.b(),children:_t("div",{className:"".concat(ln.e("content")," pre-wrap-container"),children:["暂未支持的消息类型: ",e.message.type]})})},dn=new ee("chat-message-item"),hn=function(e){var t=e.message,n=e.size,i=null;switch(t.type){case"DEFAULT":i="ASSISTANT"===t.role?Jt:an;break;case"ERROR":i=sn;break;default:i=un}return _t("div",{className:dn.b(),children:M(i,{size:n,message:t,controller:e.controller,children:e.children})})},pn=function(){function e(t){v(this,e),this.msg=t}return _(e,[{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 e=this.msg.content;if(-1!==e.indexOf("")&&-1===e.indexOf(""))return"";if(-1!==(e=e.replace(/[^]*?<\/think>/g,"").trim()).indexOf("")&&-1===e.indexOf(""))return"";var t=(e=e.replace(/[^]*?<\/resources>/g,"").trim()).indexOf("");return-1!==t&&(e=e.substring(0,t).trim()),e}},{key:"content",get:function(){return this.msg.content}},{key:"completed",get:function(){return this.msg.completed}},{key:"suggestions",get:function(){return this.msg.suggestions}},{key:"_origin",get:function(){return this.msg}},{key:"update",value:function(e){e.content||(e.content=""),-1!==e.content.indexOf("")&&this.msg.content&&(this.msg.content=""),this.msg.content+=e.content}},{key:"updateCompleted",value:function(e){this.msg.completed=e}}]),e}(),fn=function(){function e(t){v(this,e),this.data=t}return _(e,[{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:"sourceCaption",get:function(){return this.data.sourceCaption||this.caption}},{key:"url",get:function(){return this.data.url}},{key:"aiChat",get:function(){return this.data.aiChat}}]),e}(),vn=function(){function e(t){v(this,e),this.material=t}return _(e,[{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}}]),e}(),mn=new ee("chat-toolbar-item"),_n=function(e){var t,n,i,r=e.model,o=e.data,c=e.className,s=e.disabled,l=void 0!==s&&s,u=e.buttonType,d=void 0===u?"default":u,h=e.onClick,p=a(Se(!1),2),f=p[0],v=p[1],m=Me(null),_=function(e){return"function"==typeof e.hidden?e.hidden(o):!0===e.hidden};if(_(r))return _t(L,{});var g=function(e){return!!l||("function"==typeof e.disabled?e.disabled(o):!0===e.disabled)},y=function(e){var t,n,i,r;return"function"==typeof e.icon?e.icon():null!==(t=e.icon)&&void 0!==t&&t.showIcon&&null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.showIcon&&null!==(r=e.icon)&&void 0!==r&&r.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):void 0},w=function(e,t){g(t)||(v(!1),h(e,t))};return Ae((function(){var e=function(e){m.current&&m.current.contains(e.target)||v(!1)};return f&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[f]),_t("div",{className:"".concat(mn.b()," ").concat(mn.b(d)," ").concat(r.customClass||""," ").concat(c||""," ").concat(mn.is("disabled",g(r))," ").concat(mn.is("more",!(null===(t=r.children)||void 0===t||!t.length))),children:[_t("div",{title:r.title,className:mn.e("content"),onClick:function(e){return w(e,r)},children:[_t("div",{className:mn.em("content","icon"),children:y(r)}),_t("div",{className:mn.em("content","label"),children:r.label})]}),(null===(n=r.children)||void 0===n?void 0:n.length)&&_t("div",{title:"更多",className:mn.e("more"),onClick:function(e){g(r)||v(!0)},children:_t("i",{"aria-hidden":"true",className:"fa fa-angle-down ".concat(mn.em("more","icon"))})}),f&&_t("div",{ref:m,className:mn.b("dropdown"),children:null===(i=r.children)||void 0===i?void 0:i.map((function(e,t){if(!_(e))return _t("div",{title:e.title,onClick:function(t){return w(t,e)},className:"".concat(mn.be("dropdown","item")," ").concat(e.customClass||""," ").concat(mn.is("disabled",g(e))),children:[_t("div",{className:mn.bem("dropdown","item","icon"),children:y(e)}),_t("div",{className:mn.bem("dropdown","item","label"),children:e.label})]},t)}))})]})},gn=new ee("chat-toolbar"),yn=function(e){var t=e.controller,n=e.items,i=void 0===n?[]:n,r=e.data,a=e.type,c=e.className,s=Ie(Ci),l=[],d=[{label:"重置对话",title:"重置对话",icon:function(){return _t(Ut,{})},onClick:function(){t.resetTopic()},children:[{label:"清空对话",title:"清空对话",icon:function(){return _t(Wt,{})},onClick:function(){t.clearTopic()}},{label:"新建对话",title:"新建对话",icon:function(){return _t(St,{})},onClick:function(){s.newTopic&&s.newTopic()}}]}],h=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r)}},{label:"删除",title:"删除",icon:function(){return _t(bt,{})},onClick:function(){t.deleteMessage(r)}},{label:"复制",title:"复制",icon:function(){return _t(kt,{})},onClick:function(){t.copyMessage(r)}}];s.enableBackFill&&h.unshift.apply(h,[{label:"回填",title:"回填",icon:function(){return _t(yt,{})},onClick:function(){t.backfill(r)}}]);var p=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r,!0)}}];if("content"===a)switch(r.type){case"DEFAULT":l="ASSISTANT"===r.role?[].concat(h,o(i)):[].concat(p);break;case"ERROR":l=[].concat(h,o(i))}else l=[].concat(d,o(i));var f=function(n,i){var o=u({},r);if(r instanceof pn?(Object.assign(o,{topic:t.topic}),o.msg.realcontent=r.realcontent):Object.assign(o.data,{messages:t.messages.value}),i.onClick&&"function"==typeof i.onClick)i.onClick(n,i,t.context,t.params,o);else{var a=e.controller.opts.extendToolbarClick;a&&"function"==typeof a&&a(n,i,t.context,t.params,o)}},v=Oe((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 _t("div",{className:"".concat(gn.b()," ").concat(c||""),children:l.map((function(e,t){return _t(_n,{data:r,model:e,disabled:v,buttonType:"content"===a?"circle":"default",onClick:f.bind(void 0)},t)}))})};var wn=function(e){var t,n,i,r=ft(!1),o=ft({}),a=new ee("chat-back-bottom"),c=ft(null),s=function(){if(c.value){var t=e.visibilityHeight||200,n=c.value.scrollHeight-c.value.scrollTop-c.value.offsetHeight;r.value=n>=t}},l=(t=s,n=300,i=null,function(){for(var e=this,r=arguments.length,o=new Array(r),a=0;a3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),K(M(Dn,{context:t.context},e.__v),t.l)}function Pn(e,t){var n=M(zn,{__v:e,i:t});return n.containerInfo=t,n}(Ln.prototype=new I).__a=function(e){var t=this,n=On(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),In(t,e,i)):r()};n?n(o):o()}},Ln.prototype.render=function(e){this.u=null,this.o=new Map;var t=F(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ln.prototype.componentDidUpdate=Ln.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){In(e,n,t)}))};var Bn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Hn=/^(?: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]/,jn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Fn=/[A-Z0-9]/g,Rn="undefined"!=typeof document,Vn=function(e){return("undefined"!=typeof Symbol&&"symbol"==f(Symbol())?/fil|che|rad/:/fil|che|ra/).test(e)};I.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(I.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Wn=l.event;function Un(){}function qn(){return this.cancelBubble}function Yn(){return this.defaultPrevented}l.event=function(e){return Wn&&(e=Wn(e)),e.persist=Un,e.isPropagationStopped=qn,e.isDefaultPrevented=Yn,e.nativeEvent=e};var $n={enumerable:!1,configurable:!0,get:function(){return this.class}},Xn=l.vnode;l.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={};for(var r in t){var o=t[r];if(!("value"===r&&"defaultValue"in t&&null==o||Rn&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===o?o="":"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Vn(t.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":jn.test(r)?r=a:-1===n.indexOf("-")&&Hn.test(r)?r=r.replace(Fn,"-$&").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(t.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=F(t.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",$n)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=Bn,Xn&&Xn(e)};var Zn=l.__r;l.__r=function(e){Zn&&Zn(e),e.__c};var Gn=l.diffed;l.diffed=function(e){Gn&&Gn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};var Jn=new Map;function Kn(e){var t=Jn.get(e);t&&t.destroy()}function Qn(e){var t=Jn.get(e);t&&t.update()}var ei=null;"undefined"==typeof window?((ei=function(e){return e}).destroy=function(e){return e},ei.update=function(e){return e}):((ei=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!Jn.has(e)){var t,n=null,i=window.getComputedStyle(e),r=(t=e.value,function(){a({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),o=function(t){e.removeEventListener("autosize:destroy",o),e.removeEventListener("autosize:update",c),e.removeEventListener("input",r),window.removeEventListener("resize",c),Object.keys(t).forEach((function(n){return e.style[n]=t[n]})),Jn.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",o),e.addEventListener("autosize:update",c),e.addEventListener("input",r),window.addEventListener("resize",c),e.style.overflowX="hidden",e.style.wordWrap="break-word",Jn.set(e,{destroy:o,update:c}),c()}function a(t){var r,o,c=t.restoreTextAlign,s=void 0===c?null:c,l=t.testForHeightReduction,u=void 0===l||l,d=i.overflowY;if(0!==e.scrollHeight&&("vertical"===i.resize?e.style.resize="none":"both"===i.resize&&(e.style.resize="horizontal"),u&&(r=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null}))}}(e),e.style.height=""),o="content-box"===i.boxSizing?e.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):e.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&o>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(e.style.overflow="scroll"),o=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(e.style.overflow="hidden"),e.style.height=o+"px",s&&(e.style.textAlign=s),r&&r(),n!==o&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=o),d!==i.overflow&&!s)){var h=i.textAlign;"hidden"===i.overflow&&(e.style.textAlign="start"===h?"end":"start"),a({restoreTextAlign:h,testForHeightReduction:!0})}}function c(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Kn),e},ei.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Qn),e});var ti=ei,ni=function(e){return e.STYLE_CACHE="ai-chat-style-cache",e.MINIMIZE_STYLY_CHCHE="ai-chat-minimize-style-cache",e.DATA_BASE_NAME="ibiz-chat",e.DATA_TABLE_NAME="history-message",e.DATA_TABLE_KEY_NAME="id",e}(ni||{}),ii=function(){function e(t){v(this,e),g(this,"messages",Qe([])),g(this,"materials",Qe([])),g(this,"input",Qe("")),g(this,"isLoading",Qe(!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=t,this.context=t.context,this.params=t.params,this.appDataEntityId=t.appDataEntityId,this.topicId=t.topicId,this.topic=t.topic,this.fecthHistory()}var t,n,i,r,a,c,s;return _(e,[{key:"fecthHistory",value:(s=p(d().mark((function e(){var t,n=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=7;break}return e.next=3,le.getData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 3:if(!((t=e.sent)&&t.data&&t.data.length>0)){e.next=7;break}return t.data.forEach((function(e){var t={messageid:e.messageid,state:e.state,type:e.type,role:e.role,content:e.content,suggestions:e.suggestions,completed:!0};n.addMessage(t)})),e.abrupt("return",!0);case 7:return e.next=9,this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId,appendCurData:this.opts.appendCurData});case 9:return e.sent&&this.opts.appendCurContent&&this.addMessage({state:30,messageid:oe(),role:"USER",type:"DEFAULT",content:this.opts.appendCurContent,completed:!0}),e.abrupt("return",!0);case 12:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"asyncToIndexDB",value:(c=p(d().mark((function e(){var t;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.topicId){e.next=2;break}return e.abrupt("return");case 2:return t={id:this.topicId,data:this.messages.value.map((function(e){return e._origin})),timestamp:(new Date).getTime()},e.next=5,le.updateData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"setInput",value:function(e){this.input.value=e||""}},{key:"addMessage",value:function(e){var t=this.messages.value.find((function(t){return t.messageid===e.messageid}));t?(t.update(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB()}},{key:"completeMessage",value:function(e,t){var n=this.messages.value.find((function(t){return t.messageid===e}));n&&(n.updateCompleted(t),this.messages.value=o(this.messages.value),this.asyncToIndexDB())}},{key:"replaceMessage",value:function(e){var t=this,n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==n?(this.messages.value[n]=new pn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB(),"DEFAULT"===e.type&&this.opts.recommendPrompt&&this.opts.recommendPrompt(this.context,this.params,{appDataEntityId:this.appDataEntityId,message:{messages:[e]}}).then((function(n){n&&n.content&&t.updateRecommendPrompt(e,n.content)}))}},{key:"stopMessage",value:function(e){var t=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));if(-1!==t){var n=this.messages.value[t];e.content=n.content,this.messages.value[t]=new pn(e),this.messages.value=o(this.messages.value)}else this.messages.value=[].concat(o(this.messages.value),[new pn(e)]);this.asyncToIndexDB()}},{key:"stringlyMaterialResource",value:function(){var e="",t=[];return this.materials.value&&this.materials.value.length>0&&(this.materials.value.forEach((function(e){if("ossfile"===e.type){var n=e.metadata;n.state&&"successed"===n.state&&t.push(e)}else t.push(e)})),this.materials.value=[]),t&&t.length>0&&(e=de.stringify(t)),e}},{key:"question",value:(a=p(d().mark((function e(t){var n,i=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.isLoading.value=!0,this.messages.value.forEach((function(e,t){var n=e._origin;n.suggestions&&(n.suggestions=void 0,i.messages.value[t]=new pn(n))})),this.messages.value=o(this.messages.value),this.asyncToIndexDB(),(n=this.stringlyMaterialResource())?n+="\n".concat(t):n=t,this.addMessage({state:30,messageid:oe(),role:"USER",type:"DEFAULT",content:n}),e.next=10,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 10:this.opts.action&&this.opts.action("question",t),this.isLoading.value=!1;case 12:return e.prev=12,this.isLoading.value=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[0,,12,15]])}))),function(e){return a.apply(this,arguments)})},{key:"abortQuestion",value:function(){try{this.opts.abortQuestion(this)}finally{this.isLoading.value=!1}}},{key:"backfill",value:function(e){this.opts.action&&this.opts.action("backfill",e)}},{key:"deleteMessage",value:function(e){var t=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==t&&(this.messages.value.splice(t,1),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),this.opts.action&&this.opts.action("deletemsg",e)}},{key:"refreshMessage",value:(r=p(d().mark((function e(t){var n,i,r,a=arguments;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],this.isLoading.value=!0,e.prev=2,i=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})),!n){e.next=11;break}return this.messages.value.splice(i+1,this.messages.value.length-i-1),this.messages.value=o(this.messages.value),e.next=9,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 9:e.next=21;break;case 11:if(i!==this.messages.value.length-1){e.next=18;break}return this.messages.value.pop(),this.messages.value=o(this.messages.value),e.next=16,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 16:e.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",t);case 23:return e.prev=23,this.isLoading.value=!1,e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[2,,23,26]])}))),function(e){return r.apply(this,arguments)})},{key:"copyMessage",value:function(e){var t=e.realcontent;se.copy(t),this.opts.action&&this.opts.action("copymsg",e)}},{key:"resetTopic",value:(i=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=3;break}return e.next=3,le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 3:this.messages.value=[],this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId});case 5:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"clearTopic",value:(n=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=3;break}return e.next=3,le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 3:this.messages.value=[];case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"addMaterial",value:function(e){var t=this.materials.value.find((function(t){return t.id===e.id}));this.materials.value=t?o(this.materials.value):[].concat(o(this.materials.value),[new vn(e)])}},{key:"replaceMaterial",value:function(e,t){var n=this.materials.value.findIndex((function(t){return t.id===e}));-1!==n?(this.materials.value[n]=new vn(t),this.materials.value=o(this.materials.value)):this.materials.value=[].concat(o(this.materials.value),[new vn(t)])}},{key:"deleteMaterial",value:function(e){var t=this.materials.value.findIndex((function(t){return t.id===e.id}));-1!==t&&(this.materials.value.splice(t,1),this.materials.value=o(this.materials.value))}},{key:"updateRecommendPrompt",value:function(e,t){if(t){var n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid})),i=he.parseMixedContent(t).suggestions;i&&i.length>0&&(e.suggestions=i,-1!==n?(this.messages.value[n]=new pn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB())}}},{key:"handleSuggestionClick",value:(t=p(d().mark((function e(t,n,i){var r,a,c,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:-1!==(r=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})))&&((a=this.messages.value[r]._origin).suggestions=void 0,this.messages.value[r]=new pn(a),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),c=n.type,e.t0=c,e.next="action"===e.t0?7:"raw"===e.t0?17:20;break;case 7:if(!this.opts.extendToolbarClick){e.next=16;break}if(s=n.data.actionid){e.next=11;break}throw new Error("actionid不能为空");case 11:return l=u({},t),Object.assign(l,{topic:this.topic}),l.msg.realcontent=t.realcontent,e.next=16,this.opts.extendToolbarClick(i,{id:s,appId:this.context.srfappid},this.context,this.params,l);case 16:case 19:return e.abrupt("break",21);case 17:return e.next=19,this.question(n.data.content);case 20:throw new Error("不支持".concat(c,"推荐类型"));case 21:case"end":return e.stop()}}),e,this)}))),function(e,n,i){return t.apply(this,arguments)})}]),e}(),ri=function(){function e(t){v(this,e),g(this,"topics",Qe([])),g(this,"activedTopic",Qe(null)),g(this,"currentTopicOptions",void 0),this.chat=t}var t,n,i,r,a,c,s;return _(e,[{key:"fetchHistory",value:(s=p(d().mark((function e(t){var n,i,r=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.configService(t.appid,"aitopics",t.type),e.next=3,n.load();case 3:(i=e.sent)&&i.length>0&&i.forEach((function(e){r.topics.value=[].concat(o(r.topics.value),[new fn(e)])}));case 5:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})},{key:"updateCurrentTopic",value:(c=p(d().mark((function e(t){var n,i,r,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.currentTopicOptions=t,n=this.topics.value.findIndex((function(e){return e.id===t.id})),i=new fn(t),-1!==n?this.topics.value.splice(n,1,new fn(t)):this.topics.value=[].concat(o(this.topics.value),[new fn(t)]),r=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),a=t.configService(t.appid,"aitopics",t.type),e.next=8,null==a?void 0:a.save(r);case 8:this.activedTopic.value=i;case 9:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"removeTopic",value:(a=p(d().mark((function e(t,n,i,r,a){var c,s,l,u,h;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=!0,!t.beforeDelete){e.next=5;break}return e.next=4,t.beforeDelete(n,i,r,a);case 4:s=e.sent;case 5:if(s){e.next=7;break}return e.abrupt("return");case 7:return-1!==(l=this.topics.value.findIndex((function(e){return e.id===r.id})))&&(this.topics.value.splice(l,1),this.topics.value=o(this.topics.value)),u=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),h=t.configService(t.appid,"aitopics",t.type),e.next=13,null==h?void 0:h.save(u);case 13:return e.next=15,le.deleteData(ni.DATA_BASE_NAME,ni.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 e.stop()}}),e,this)}))),function(e,t,n,i,r){return a.apply(this,arguments)})},{key:"updateTopic",value:(r=p(d().mark((function e(t,n){var i,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),r=t.configService(t.appid,"aitopics",t.type),e.next=4,null==r?void 0:r.save(i);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"handleTopicChange",value:function(e){var t;(null===(t=this.activedTopic.value)||void 0===t?void 0:t.id)!==e.id&&(this.activedTopic.value=e,this.chat.switchAiChatController(e))}},{key:"handleTopicAction",value:(i=p(d().mark((function e(t,n,i){var r,o,a,c,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.topics.value.find((function(e){return e.id===n.id})),!(this.currentTopicOptions&&r&&r.aiChat)){e.next=12;break}if(c=r.aiChat,s=c.context,l=c.params,"DELETE"!==t){e.next=8;break}return e.next=6,this.removeTopic(this.currentTopicOptions,s,l,r,i);case 6:e.next=11;break;case 8:if("RENAME"!==t){e.next=11;break}return e.next=11,this.updateTopic(this.currentTopicOptions,n);case 11:null===(o=(a=this.currentTopicOptions).action)||void 0===o||o.call(a,t,s,l,n,i);case 12:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"newTopic",value:(n=p(d().mark((function e(){var t,n,i,r,a,c,s,l,u;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this.activedTopic.value){e.next=3;break}return e.abrupt("return");case 3:return r=i.id.split("@")[0],a=this.topics.value.filter((function(e){return e.id.startsWith(r)})),c={appid:i.appid,id:"".concat(r,"@").concat(Date.now()),type:i.type,caption:"".concat(null===(t=i.sourceCaption)||void 0===t?void 0:t.split("_")[0],"_").concat(a.length),sourceCaption:i.sourceCaption,url:i.url,aiChat:i.aiChat},s=new fn(c),this.topics.value=[].concat(o(this.topics.value),[s]),l=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),u=null===(n=this.currentTopicOptions)||void 0===n?void 0:n.configService(c.appid,"aitopics",c.type),e.next=12,null==u?void 0:u.save(l);case 12:this.handleTopicChange(s);case 13:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"clearTopic",value:(t=p(d().mark((function e(){var t,n,i,r,o,a=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.topics.value.find((function(e){var t;return e.id===(null===(t=a.activedTopic.value)||void 0===t?void 0:t.id)})),this.currentTopicOptions&&n){e.next=3;break}return e.abrupt("return");case 3:if(i=!0,!this.currentTopicOptions.beforeDelete){e.next=8;break}return e.next=7,this.currentTopicOptions.beforeDelete(n.aiChat.context,n.aiChat.params,n,void 0,!0);case 7:i=e.sent;case 8:if(i){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,Promise.all(this.topics.value.map((function(e){if(e.id!==(null==n?void 0:n.id))return le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,e.id)})));case 12:return this.topics.value=n?[n]:[],r=null===(t=this.currentTopicOptions)||void 0===t?void 0:t.configService(this.currentTopicOptions.appid,"aitopics",this.currentTopicOptions.type),o=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),e.next=17,null==r?void 0:r.save(o);case 17:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),oi=_((function e(t){v(this,e),this.aiChat=t})),ai=function(t){e(o,t);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=p(d().mark((function e(t,n){var i,r,o,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n||!n.onClick||"function"!=typeof n.onClick){e.next=6;break}return e.next=3,n.onClick(t,n,this.aiChat.context,this.aiChat.params);case 3:i=e.sent,e.next=14;break;case 6:if(!(r=this.aiChat.opts.extendToolbarClick)){e.next=13;break}return e.next=10,r(t,n,this.aiChat.context,this.aiChat.params,{});case 10:i=e.sent,e.next=14;break;case 13:console.error("未找到扩展工具栏点击事件");case 14:i&&i.data&&i.data.length>0&&(o=i.data[0],a={id:o.id,type:o.type,data:o.data||{},metadata:o.metadata||{}},n.id&&Object.assign(a.metadata,{actionId:n.id}),this.aiChat.addMaterial(a));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})}]),o}(oi),ci=function(t){e(o,t);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=p(d().mark((function e(t,n){var i,r,o,a,c,s,l,u,h,f,v=this;return d().wrap((function(e){for(;;)switch(e.prev=e.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,h=i.onProgress,f={multiple:r||!0,accept:o||"*/*",maxSize:a||5242880,onSelect:function(e){null==c||c(e),e.length>0&&e.forEach((function(e){var t=v.buildMaterialObject(e);Object.assign(t.metadata,{state:"uploading"}),v.aiChat.addMaterial(t)}))},onUpload:function(){var e=p(d().mark((function e(t,n){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s(t,n,{context:v.aiChat.context,params:v.aiChat.params}));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),onSuccess:function(e,t){var n={id:e.id,type:"ossfile",data:{id:e.id,name:e.name},metadata:{ext:e.ext,fileext:e.fileext,fileid:e.fileid,filename:e.filename,size:e.size,filesize:e.filesize,state:"successed"}};v.aiChat.replaceMaterial(t.name,n),null==l||l(e,t)},onError:function(e,t){var n=v.buildMaterialObject(t);Object.assign(n.metadata,{state:"failed"}),v.aiChat.replaceMaterial(t.name,n),null==u||u(e,t)},onProgress:function(e,t){null==h||h(e,t)}},new ue(f).openFilePicker();case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"buildMaterialObject",value:function(e){return{id:e.name,type:"ossfile",data:{name:e.name,id:e.name},metadata:{size:e.size,type:e.type,lastModified:e.lastModified}}}}]),o}(oi),si=function(){function e(){v(this,e)}return _(e,null,[{key:"getMaterialHelper",value:function(e,t){return"ossfile"===e?new ci(t):new ai(t)}}]),e}(),li=function(){function e(){v(this,e),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 ri(this)}var t,n;return _(e,[{key:"aiChat",get:function(){var e;return this.aiTopicMap.get("".concat(null===(e=this.aiTopic.activedTopic.value)||void 0===e?void 0:e.id))}},{key:"initIndexDB",value:(n=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le.checkTableExists(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME);case 2:if(e.sent){e.next=6;break}return e.next=6,le.createTable(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,ni.DATA_TABLE_KEY_NAME,!1);case 6:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"create",value:(t=p(d().mark((function e(t){var n,i,r,o,a,c,s=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initIndexDB();case 2:if(this.backupChatOptions=t,this.close(),this.container=document.createElement("div"),this.container.classList.add("ibiz-ai-chat"),document.body.appendChild(this.container),o=t.chatOptions,!t.mode||"TOPIC"!==t.mode){e.next=17;break}if(this.isMountedAiTopic){e.next=13;break}return e.next=12,this.aiTopic.fetchHistory(t.topicOptions);case 12:this.isMountedAiTopic=!0;case 13:return a=t.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,otherToolbarItems:o.otherToolbarItems,appendCurData:o.appendCurData,appendCurContent:o.appendCurContent}}),e.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 ii(o),this.aiTopicMap.set("".concat(null===(i=a)||void 0===i?void 0:i.id),c),K(M(Ti,{aiChat:c,aiTopic:this.aiTopic,mode:t.mode?t.mode:"DEFAULT",containerOptions:t.containerOptions,caption:t.mode&&"TOPIC"===t.mode?"AI助手":o.caption,enableBackFill:null===(r=t.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(e){o.fullscreen&&o.fullscreen(e,o.context,o.params)},minimize:function(e){o.minimize&&o.minimize(e,o.context,o.params)}}),this.container),e.abrupt("return",c);case 22:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"switchAiChatController",value:function(e){var t,n,i,r,o,a=this,c=u({},this.backupChatOptions.chatOptions);(e.aiChat&&Object.assign(c,{caption:e.aiChat.caption,context:e.aiChat.context,params:e.aiChat.params,contentToolbarItems:e.aiChat.contentToolbarItems,footerToolbarItems:e.aiChat.footerToolbarItems,questionToolbarItems:e.aiChat.questionToolbarItems,otherToolbarItems:e.aiChat.otherToolbarItems,appendCurData:e.aiChat.appendCurData,appendCurContent:e.aiChat.appendCurContent,appDataEntityId:e.aiChat.appDataEntityId,topicId:e.id,topic:e,extendToolbarClick:this.backupChatOptions.chatOptions.extendToolbarClick,recommendPrompt:this.backupChatOptions.chatOptions.recommendPrompt}),this.aiTopicMap.has("".concat(e.id))?t=this.aiTopicMap.get("".concat(e.id)):(t=new ii(c),this.aiTopicMap.set("".concat(e.id),t)),this.container)&&(K(null,this.container),K(M(Ti,{aiChat:t,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(e){c.fullscreen&&c.fullscreen(e,c.context,c.params)},minimize:function(e){c.minimize&&c.minimize(e,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)}}]),e}(),ui=(t("chat",new li),new ee("chat-input-material")),di=function(e){var t=e.controller.materials;return _t("div",{className:ui.b(),children:t.value.map((function(t){return _t(rn,{material:t,disabled:!1,controller:e.controller},t.id)}))})},hi=function(e){var t=e.children,n=e.actions,i=e.content,r=e.position,o=void 0===r?"bottom":r,c=e.isOpen,s=e.onToggleOpen,l=e.onAction,d=new ee("pop"),h=Ie(Ci),p=a(Se(c||!1),2),f=p[0],v=p[1],m=Me(null),_=Me(null);Ae((function(){void 0!==c&&v(c)}),[c]),Ae((function(){return _.current||(_.current=document.createElement("div"),_.current.className=d.b("content-container"),document.body.appendChild(_.current)),function(){_.current&&document.body.removeChild(_.current)}}),[]),Ae((function(){var e=function(e){!m.current||m.current.contains(e.target)||e.target.closest(".".concat(d.b()))||e.target.closest(".ibiz-quick-edit")||e.target.closest(".ibiz-picker__transfer")||(v(!1),null==s||s(!1))};return f&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[f,s]);return _t("span",{className:"".concat(d.b("trigger-container")),children:[_t("span",{className:"".concat(d.b("trigger-element")),ref:m,onClick:function(e){e.stopPropagation();var t=!f;v(t),null==s||s(t)},children:t}),f&&_.current&&Pn(_t("div",{className:"".concat(d.b()," pop-").concat(o),style:function(){if(!m.current)return{};var e=m.current.getBoundingClientRect(),t={position:"absolute",zIndex:h.zIndex+1},n={bottom:{top:e.bottom+window.scrollY,left:e.left+window.scrollX},top:{bottom:window.innerHeight-e.top+window.scrollY,left:e.left+window.scrollX},left:{top:e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX},right:{top:e.top+window.scrollY,left:e.right+window.scrollX},"top-left":{bottom:window.innerHeight-e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX}};return u(u({},t),n[o])}(),children:i||(null==n?void 0:n.map((function(e){return _t("div",{title:e.caption,className:d.e("item"),onMouseDown:function(t){t.stopPropagation(),null==l||l(e.id,t)},children:[e.icon,_t("div",{className:d.em("item","caption"),children:e.caption})]},e.id)})))}),_.current)]})},pi=new ee("chat-input"),fi=window.SpeechRecognition||window.webkitSpeechRecognition,vi=function(e){var t,n=a(Se(!1),2),i=n[0],r=n[1],o=Me(null),c=e.controller.input,s=ft(!1),l=Me();fi&&!l.current&&(l.current=new fi,l.current.onstart=function(){s.value=!0},l.current.onend=function(){s.value=!1},l.current.onresult=function(e){var t,n=null===(t=e.results)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t[0])||void 0===t?void 0:t.transcript;n&&(c.value="".concat(c.value).concat(n))});var u=Le((function(e){c.value=e.target.value}),[c]),h=vt((function(){return c.value.length<=0}));Ae((function(){return o.current&&ti(o.current),function(){o.current&&ti.destroy(o.current)}}),[o]);var f=Le(p(d().mark((function t(){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=c.value,c.value="",t.next=5,e.controller.question(n);case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])}))),[c]),v=Le(p(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{e.controller.abortQuestion()}catch(n){console.error(n)}case 1:case"end":return t.stop()}}),t)}))),[c]),m=function(){var t=p(d().mark((function t(n){var i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=si.getMaterialHelper("ossfile",e.controller),t.next=3,i.excuteAction(n);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_=function(){var t=p(d().mark((function t(n,i){var o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=si.getMaterialHelper("common",e.controller),t.next=3,o.excuteAction(n,i);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}();return _t("div",{className:pi.b("wrapper"),children:[_t("div",{className:pi.b("material-wrapper"),children:_t(di,{controller:e.controller})}),_t("div",{className:pi.b("main-wrapper"),children:[_t("textarea",{className:pi.e("textarea"),type:"text",rows:6,autoCorrect:"off",autoCapitalize:"off",autoComplete:"off",value:c,onInput:u,onKeyDown:function(e){"Enter"!==e.code||e.isComposing||(e.stopPropagation(),!1===e.shiftKey&&f())},ref:o,disabled:e.controller.isLoading.value}),_t("div",{className:pi.b("action-wrapper"),children:[_t("div",{className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",e.controller.isLoading.value)),title:"上传资料",children:_t(hi,{content:_t("div",{className:pi.b("pop-actions"),children:[_t("div",{className:pi.b("pop-action-item"),onClick:function(e){m(e)},children:[_t("span",{className:pi.b("pop-action-item-icon"),children:_t(Ht,{})}),_t("span",{className:pi.b("pop-action-item-title"),children:"文件资料"})]}),null===(t=e.questionToolbarItems)||void 0===t?void 0:t.map((function(e){var t,n,i;return _t("div",{className:pi.b("pop-action-item"),onClick:function(t){_(t,e)},children:[_t("span",{className:pi.b("pop-action-item-icon"),children:"function"==typeof e.icon?e.icon():(null===(t=e.icon)||void 0===t?void 0:t.showIcon)&&_t(L,{children:null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):null})}),_t("span",{className:pi.b("pop-action-item-title"),children:e.label})]},e.id)}))]}),position:"top-left",isOpen:i,onToggleOpen:r,children:_t(Bt,{})})}),_t("div",{title:s.value?"语音输入中...":"语音输入",className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",e.controller.isLoading.value)),onClick:function(){l.current&&!s.value&&l.current.start()},children:s.value?_t(Mt,{}):_t(At,{})}),e.controller.isLoading.value?_t("div",{title:"停止生成",className:"".concat(pi.be("action-wrapper","action-item")),onClick:v,children:_t(Rt,{})}):_t("div",{title:"发送消息",className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",h.value)),onClick:f,children:_t(wt,{})})]})]})]})},mi=new ee("chat-topic-item"),_i=function(e){var t=e.controller,n=e.topic,i=e.onClick,r=e.onAction,o=Me(null),c=vt((function(){var e;return(null===(e=t.activedTopic.value)||void 0===e?void 0:e.id)===n.id})),s=a(Se(!1),2),l=s[0],u=s[1],d=ft(!1);return _t("div",{className:"".concat(mi.b()," ").concat(mi.is("active",c.value)," ").concat(mi.is("edit",d.value)),onClick:i.bind(void 0),children:[_t("div",{className:mi.e("caption"),title:n.caption,children:d.value?_t("input",{ref:o,value:n.caption,onBlur:function(e){e.stopPropagation(),d.value=!1,r("RENAME",e)},onKeyDown:function(e){e.stopPropagation(),"Enter"===e.key&&(d.value=!1)},onClick:function(e){return e.stopPropagation()},onChange:function(e){return(t=e).stopPropagation(),void(n.data.caption=null===(i=t.target)||void 0===i?void 0:i.value);var t,i},className:mi.em("caption","editor")}):_t("span",{className:mi.em("caption","text"),children:n.caption})}),!d.value&&_t("div",{className:mi.e("icon"),children:[_t("span",{title:"跳转主视图",className:mi.em("icon","item"),onClick:function(e){e.stopPropagation(),r("LINK",e)}.bind(void 0),children:_t(Lt,{className:mi.b("link-icon")})}),c.value?null:_t(hi,{actions:[{id:"RENAME",caption:"重命名",icon:_t(qt,{})},{id:"DELETE",caption:"删除话题",icon:_t(It,{})}],position:"bottom",isOpen:l,onToggleOpen:u,onAction:function(e,t){"DELETE"===e?r("DELETE",t):"RENAME"===e&&(d.value=!0,setTimeout((function(){var e;null===(e=o.current)||void 0===e||e.focus()}),100)),u(!1)}.bind(void 0),children:_t("span",{className:mi.em("icon","item"),title:"更多",children:_t(Ot,{className:mi.e("more-icon")})})})]})]})},gi=new ee("chat-search"),yi=function(e){var t=e.className,n=e.value,i=e.placeholder,r=e.onChange,o=a(Se(!1),2),c=o[0],s=o[1],l=function(e){var t;e.stopPropagation(),null==r||r(null===(t=e.target)||void 0===t?void 0:t.value)};return _t("div",{className:"".concat(gi.b()," ").concat(gi.is("focus",c)," ").concat(t||""),children:[_t("div",{className:gi.e("prefix"),children:_t($t,{})}),_t("input",{value:n,className:gi.e("inner"),placeholder:i,onFocus:function(){return s(!0)},onBlur:function(){return s(!1)},onChange:function(e){return l(e)}})]})},wi=new ee("chat-topics"),bi=function(e){var t=Me(null),n=ft(void 0),i=ft([]);Ae((function(){i.value=e.controller.topics.value.filter((function(e){var t,i;return null===(t=e.caption)||void 0===t?void 0:t.toLowerCase().includes((null===(i=n.value)||void 0===i?void 0:i.trim().toLowerCase())||"")}))}),[e.controller.topics.value]);return Ae((function(){var e=t.current;if(e){var n=e.querySelector(".ibiz-chat-topic-item.is-active");null==n||n.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[e.controller.activedTopic.value]),_t("div",{className:wi.b(),children:[_t("div",{className:wi.e("header"),children:_t(yi,{value:n.value,placeholder:"搜索话题",onChange:function(t){n.value=t,i.value=e.controller.topics.value.filter((function(e){var t,i;return null===(t=e.caption)||void 0===t?void 0:t.toLowerCase().includes((null===(i=n.value)||void 0===i?void 0:i.trim().toLowerCase())||"")}))}.bind(void 0)})}),_t("div",{ref:t,className:wi.e("main"),children:i.value&&i.value.length>0?i.value.map((function(t){return _t(_i,{topic:t,controller:e.controller,onClick:function(){return function(t){e.controller.handleTopicChange(t)}(t)},onAction:function(n,i){return function(t,n,i){e.controller.handleTopicAction(t,n,i)}(n,t,i)}},t.id)})):_t("div",{className:wi.e("empty"),children:"暂无话题"})}),_t("div",{className:wi.e("footer"),children:_t("div",{title:"清空会话",className:wi.e("action"),onClick:function(){return e.controller.clearTopic()},children:[_t(It,{}),_t("span",{children:"清空会话"})]})})]})},xi=new ee("chat-minimize"),ki=function(e){var t=Me(null),n=a(Se(""),2),i=n[0],r=n[1],o=a(Se(0),2),c=o[0],s=o[1],l=Me(!1),u={x:(window.innerWidth-86)/window.innerWidth,y:(window.innerHeight-86)/window.innerHeight},d=vt((function(){var t=e.controller.messages.value[e.controller.messages.value.length-1];return!!t&&("ASSISTANT"===t.role&&20===t.state&&!0!==t.completed)})),h=vt((function(){var t="";if(!d.value)return r(""),s(0),t;var n=e.controller.messages.value[e.controller.messages.value.length-1];if(t=n.content,-1!==n.content.indexOf("")){var i=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="";return-1===n?(i=e.slice(t+7),r=""):(i=e.slice(t+7,n),r=e.slice(n+8)),{thoughtContent:i,answerContent:r}}(n.content);t=i.thoughtContent+i.answerContent}return t})),p=function(){Object.assign(t.current.style,{left:"".concat(100*u.x,"%"),top:"".concat(100*u.y,"%")}),localStorage.setItem(ni.MINIMIZE_STYLY_CHCHE,JSON.stringify(u))};return Ae((function(){var e,n=localStorage.getItem(ni.MINIMIZE_STYLY_CHCHE);if(n){var i=JSON.parse(n);pe(i)&&Object.assign(u,i)}p(),(e=t.current)&&(e.onmousedown=function(t){document.body.style.userSelect="none";var n=t.clientX-e.offsetLeft,i=t.clientY-e.offsetTop,r=Date.now(),o=function(e){var t=56/window.innerWidth,r=56/window.innerHeight,o=fe(e.clientX-n,e.clientY-i,t,r),a=o.x,c=o.y;Object.assign(u,{x:a,y:c}),requestAnimationFrame((function(){p()}))};document.addEventListener("mousemove",o),document.addEventListener("mouseup",(function e(){var t=Date.now();l.current=t-r>300,document.body.style.userSelect="",document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",e)}))})}),[]),Ae((function(){if(c1-e?this.calcSideModeStyle(i1-t&&(this.data.window.y=1-a)),this.setStyle()}},{key:"registerDragDialog",value:function(){var e=this;this.dragHandle.current.onmousedown=function(t){if(!e.state.isFullScreen){document.body.style.userSelect="none";var n=t.clientX-e.containerRef.current.offsetLeft,i=t.clientY-e.containerRef.current.offsetTop,r=function(t){if(!e.disabled){e.data.showMode="window";var r=fe(t.clientX-n,t.clientY-i,e.data.window.width,e.data.window.height),o=r.x,a=r.y;Object.assign(e.data.window,{x:o,y:a}),e.setStyle()}};document.addEventListener("mousemove",r),document.addEventListener("mouseup",(function t(){document.body.style.userSelect="",document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t),e.disabled||e.snapToEdge()}))}}}},{key:"registerDragDialogBorder",value:function(){var e=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(t){if(!e.state.isFullScreen){var n="side"===e.data.showMode?e.data.side:e.data.window;n.x=t.rect.left/window.innerWidth,n.y=t.rect.top/window.innerHeight,n.width=t.rect.width/window.innerWidth,n.height=t.rect.height/window.innerHeight,e.setStyle()}},start:function(){e.disabled=!0,document.body.style.userSelect="none"},end:function(){e.disabled=!1,document.body.style.userSelect=""}}})}},{key:"handleFullScreenChange",value:function(){this.setState({isFullScreen:null!==document.fullscreenElement})}},{key:"componentDidMount",value:function(){this.handleFullScreenChange=this.handleFullScreenChange.bind(this);var e=localStorage.getItem(ni.STYLE_CACHE);if(e){var t=JSON.parse(e);t.side&&pe(t.side)&&t.window&&pe(t.window)&&Object.assign(this.data,t)}this.setStyle(),this.registerDragDialog(),this.registerDragDialogBorder(),document.addEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"close",value:function(){this.props.close()}},{key:"fullScreen",value:function(){var e=this.containerRef.current;e&&(e.requestFullscreen(),this.props.fullscreen(!0))}},{key:"closeFullScreen",value:function(){var e;this.state.isFullScreen&&(null===(e=document)||void 0===e||e.exitFullscreen(),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.setState({isMinimize:!1}),this.props.minimize(!1)}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"render",value:function(){return _t(Ci.Provider,{value:this.containerContext,children:_t("div",{className:"".concat(this.ns.b()),children:[_t("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:[_t("div",{ref:this.dragHandle,className:this.ns.b("header"),children:[_t("div",{className:this.ns.b("header-caption"),children:this.props.caption||"AI助手"}),_t("div",{className:this.ns.b("header-action-wrapper"),children:[_t("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:_t(Nt,{})}),this.state.isFullScreen?_t("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:_t(Tt,{})}):_t("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:_t(Ct,{})}),_t("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:_t(gt,{})})]})]}),"TOPIC"===this.props.mode?_t("div",{className:"".concat(this.ns.b("main")),children:[_t("div",{className:"".concat(this.ns.be("main","left")),children:_t(bi,{controller:this.props.aiTopic})}),_t("div",{className:"".concat(this.ns.be("main","right")),children:[_t("div",{className:this.ns.b("content"),children:_t(xn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(yn,{data:this.props.aiTopic.activedTopic.value,type:"footer",className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(vi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}):_t("div",{className:"".concat(this.ns.be("main","default")),children:[_t("div",{className:this.ns.b("content"),children:_t(xn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(yn,{type:"footer",data:this.props.aiTopic.activedTopic.value,className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(vi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}),_t(ki,{title:this.props.caption||"AI助手",controller:this.props.aiChat,isMinimize:this.state.isMinimize,onClick:this.exitMinimize.bind(this)})]})})}}]),o}(I);t("ChatContainer",Ti)}}}))}(); diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.19/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.19/polyfills.legacy.js new file mode 100644 index 0000000000000000000000000000000000000000..c8c7654431885af1a2dc12a9fe73b198407bf314 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.19/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+""},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+""},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="\t\n\v\f\r                 \u2028\u2029\ufeff",JE=L,qE=Ao,KE=VE,YE=S("".replace),XE=RegExp("^["+KE+"]+"),QE=RegExp("(^|[^"+KE+"])["+KE+"]+$"),ZE=function(t){return function(r){var e=qE(JE(r));return 1&t&&(e=YE(e,XE,"")),2&t&&(e=YE(e,QE,"$1")),e}},tx={start:ZE(1),end:ZE(2),trim:ZE(3)},rx=te.PROPER,ex=o,nx=VE,ox=tx.trim;ro({target:"String",proto:!0,forced:function(t){return ex((function(){return!!nx[t]()||"​…᠎"!=="​…᠎"[t]()||rx&&nx[t].name!==t}))}("trim")},{trim:function(){return ox(this)}});var ix=Dt,ux=hn,ax=co,cx=mo,fx=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=ix(this),e=ux(r),n=arguments.length;if(n){fx(e+n);for(var o=e;o--;){var i=o+n;o in r?r[i]=r[o]:cx(r,i)}for(var u=0;uo;)for(var a,c=mx(arguments[o++]),f=i?Sx(px(c),i(c)):px(c),s=f.length,l=0;s>l;)a=f[l++],sx&&!hx(u,c,a)||(e[a]=c[a]);return e}:bx,xx=Ex;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==xx},{assign:xx});var Ox={exports:{}},jx=o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Ix=o,Tx=B,Rx=j,Px=jx,Ax=Object.isExtensible,kx=Ix((function(){Ax(1)}))||Px?function(t){return!!Tx(t)&&((!Px||"ArrayBuffer"!==Rx(t))&&(!Ax||Ax(t)))}:Ax,Cx=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),Nx=ro,Lx=S,Fx=pe,Mx=B,_x=Gt,Dx=Rr.f,Ux=Qe,$x=mw,Gx=kx,zx=Cx,Wx=!1,Bx=Vt("meta"),Hx=0,Vx=function(t){Dx(t,Bx,{value:{objectID:"O"+Hx++,weakData:{}}})},Jx=Ox.exports={enable:function(){Jx.enable=function(){},Wx=!0;var t=Ux.f,r=Lx([].splice),e={};e[Bx]=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!!c(this,t)}}),hO(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)}}),wO&&lO(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=xO(r),i=xO(n);yO(t,r,(function(t,r){EO(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)?mO("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,mO(void 0,!0))}),e?"entries":"values",!e,!0),bO(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=Yx[t],a=u&&u.prototype,c=u,f={},s=function(t){var r=Xx(a[t]);Zx(a,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!iO(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(Qx(t,!nO(u)||!(o||a.forEach&&!uO((function(){(new u).entries().next()})))))c=e.getConstructor(r,t,n,i),tO.enable();else if(Qx(t,!0)){var l=new c,h=l[i](o?{}:-0,1)!==l,v=uO((function(){l.has(1)})),p=aO((function(t){new u(t)})),d=!o&&uO((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((c=r((function(t,r){eO(t,a);var e=fO(new u,t,c);return oO(r)||rO(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,Kx({global:!0,constructor:!0,forced:c!==u},f),cO(c,t),o||e.setStrong(c,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),OO);var jO,IO=ro,TO=Fu,RO=n.f,PO=sn,AO=Ao,kO=_E,CO=L,NO=UE,LO=TO("".startsWith),FO=TO("".slice),MO=Math.min,_O=NO("startsWith");IO({target:"String",proto:!0,forced:!!(_O||(jO=RO(String.prototype,"startsWith"),!jO||jO.writable))&&!_O},{startsWith:function(t){var r=AO(CO(this));kO(t);var e=PO(MO(arguments.length>1?arguments[1]:void 0,r.length)),n=AO(t);return LO?LO(r,n,e):FO(r,e,e+n.length)===n}});var DO=ro,UO=Ms.findIndex,$O=sm,GO="findIndex",zO=!0;GO in[]&&Array(1)[GO]((function(){zO=!1})),DO({target:"Array",proto:!0,forced:zO},{findIndex:function(t){return UO(this,t,arguments.length>1?arguments[1]:void 0)}}),$O(GO);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=tx.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;o \ No newline at end of file diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.20/index.min.css b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.20/index.min.css new file mode 100644 index 0000000000000000000000000000000000000000..4da306d2ab918c2b37fc1c8904f807ab5d88448e --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.20/index.min.css @@ -0,0 +1 @@ +@charset "UTF-8";.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-chat-suggestions{--ibiz-chat-suggestions-bg: var(--ibiz-ai-chat-background-color);--ibiz-chat-suggestions-hover-bg-color: var(--ibiz-ai-chat-hover-background-color);--ibiz-chat-suggestions-border: var(--ibiz-ai-chat-border-color);display:flex;flex-direction:column;gap:var(--ibiz-spacing-base-tight);width:100%}.ibiz-chat-suggestions__item{display:flex;align-items:center;align-self:flex-start;justify-content:space-between;min-width:200px;height:32px;padding:0 12px;overflow:hidden;line-height:32px;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background-color:var(--ibiz-chat-suggestions-bg);border:1px solid var(--ibiz-chat-suggestions-border);border-radius:12px;transition:.3s background-color}.ibiz-chat-suggestions__item:hover{background-color:var(--ibiz-chat-suggestions-hover-bg-color)}.ibiz-chat-suggestions__item.is-action{color:var(--ibiz-ai-chat-color-2);background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-suggestions__item.is-action:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-suggestions__item .ibiz-chat-suggestions__item-icon{margin-left:12px;font-size:18px}.ibiz-markdown-message{padding:6px 10px}.ibiz-markdown-message .cherry{border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-markdown-message .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-markdown-message .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-markdown-message .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-markdown-message .cherry div[data-type=codeBlock] pre[class*=language-]::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.2)}.ibiz-markdown-message .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-markdown-message .cherry-previewer{padding:8px;border:0}.ibiz-markdown-message .cherry-previewer figure{max-width:1200px}.ibiz-markdown-message .cherry-previewer figure>svg{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)}.ibiz-markdown-message-footer{padding:10px 0}@keyframes circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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-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%;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:10px 16px;margin:0;font-size:14px;line-height:1.5;color:var(--color-fg-default);word-wrap:break-word;background:#e7f8ff;text-size-adjust:100%;background-color:var(--ibiz-ai-chat-background-color-light);border-radius:var(--ibiz-ai-chat-border-radius)}.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--material{gap:8px;display:flex;align-items:center;flex-flow:row-reverse wrap;margin-bottom:8px}.ibiz-user-message-question__content .cherry{min-height:0px;border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-user-message-question__content .cherry-markdown p{margin:0}.ibiz-user-message-question__content .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-user-message-question__content .cherry-previewer{padding:0;border:0;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color-light)}.ibiz-user-message-question__content .cherry-previewer figure{max-width:1200px}.ibiz-user-message-question__content .cherry-previewer figure>svg{width:100%;min-height:100px}.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock]{position:relative!important;display:flex;padding-top:24px}.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock] .cherry-edit-code-block,.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock] .cherry-copy-code-block{position:absolute;top:0}.ibiz-user-message-question__content .anchor{display:none!important}.ibiz-user-message-question__user-header{width:100%;height:32px;display:flex;margin-bottom:8px;align-items:center;justify-content:end}.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:10px 16px;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{display:flex;padding:6px 10px;justify-content:end}.ibiz-unknown-message__content{padding:10px 16px;color:#000;width:max-content;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-item{display:flex;cursor:pointer;position:relative;align-items:center;white-space:nowrap}.ibiz-chat-toolbar-item__content{display:flex;align-items:center;white-space:nowrap}.ibiz-chat-toolbar-item__content--icon{width:18px;height:18px;font-size:18px;display:flex;flex-shrink:0;align-items:center;justify-content:center}.ibiz-chat-toolbar-item__content--label,.ibiz-chat-toolbar-item__more{display:flex;align-items:center}.ibiz-chat-toolbar-item__more--icon{font-size:18px}.ibiz-chat-toolbar-item-default{font-size:14px;width:fit-content;color:var(--ibiz-ai-chat-color-2)}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__content{gap:6px;line-height:28px;padding:2px 14px;border-radius:12px;background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-toolbar-item-default.is-disabled{cursor:not-allowed}.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__content,.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__more{background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__content:hover,.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__more:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-default.is-more .ibiz-chat-toolbar-item__content{padding:2px 8px 2px 14px;border-radius:12px 0 0 12px}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__more{height:32px;padding:2px 14px 2px 8px;border-radius:0 12px 12px 0;border-left:1px solid var(--ibiz-ai-chat-border-color);background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-toolbar-item-circle{height:32px;padding:6px;max-width:32px;overflow:hidden;font-size:12px;white-space:nowrap;border-radius:15px;transition:max-width .8s ease;border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-toolbar-item-circle.is-disabled{cursor:not-allowed;color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-circle: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-item-circle .ibiz-chat-toolbar-item__content--label{font-size:14px;margin-left:8px;width:calc(100% - 32px)}.ibiz-chat-toolbar-item-dropdown{right:0;gap:4px;bottom:36px;padding:4px;display:flex;max-width:150px;border-radius:6px;position:absolute;flex-direction:column;background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-toolbar-item-dropdown__item{gap:6px;display:flex;padding:0 8px;cursor:pointer;line-height:32px;border-radius:6px;align-items:center}.ibiz-chat-toolbar-item-dropdown__item.is-disabled{cursor:not-allowed;background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-dropdown__item:hover:not(.is-disabled){background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-dropdown__item--icon{width:18px;height:18px;font-size:18px;display:flex;flex-shrink:0;align-items:center;justify-content:center}.ibiz-chat-toolbar-item-dropdown__item--label{flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ibiz-chat-toolbar{display:flex;flex-wrap:wrap;align-items:center}.ibiz-chat-toolbar .ibiz-chat-toolbar-item:not(:first-child){margin-left:6px}.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{width:calc(100% - 12px);height:calc(100% - 12px);margin:6px;overflow:hidden auto}.ibiz-chat-messages::-webkit-scrollbar{width:6px}.ibiz-chat-messages::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-wrapper{max-height:72px;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:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-input__textarea::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);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-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{gap:4px;padding:4px;display:flex;min-width:120px;border-radius:8px;flex-direction:column;background-color:var(--ibiz-color-bg-3);border:1px solid var(--ibiz-color-border)}.ibiz-pop__item{display:flex;padding:0 8px;cursor:pointer;line-height:32px;border-radius:6px;align-items:center}.ibiz-pop__item:hover{background-color:var(--ibiz-color-primary-hover)}.ibiz-pop__item--caption{min-width:0;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-pop__item svg{width:16px;height:16px;flex-shrink:0;margin-right:8px;fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-topic-item{height:38px;display:flex;padding:0 8px;cursor:pointer;border-radius:12px;position:relative;align-items:center;font-size:var(--ibiz-font-size-regular)}.ibiz-chat-topic-item:hover:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item:hover:not(.is-edit) .ibiz-chat-topic-item__icon{opacity:1}.ibiz-chat-topic-item.is-active:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item.is-edit{border:2px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-topic-item__caption{width:100%;height:100%;display:flex;align-items:center}.ibiz-chat-topic-item__caption--text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-topic-item__caption--editor{width:100%;height:100%;border:none;outline:none;color:var(--ibiz-ai-chat-color);background:var(--ibiz-ai-chat-background-color)}.ibiz-chat-topic-item__icon{top:50%;gap:8px;opacity:0;right:10px;height:24px;display:flex;outline:none;padding:0 8px;border-radius:8px;position:absolute;align-items:center;justify-content:flex-end;transform:translateY(-50%);color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item__icon--item{font-size:12px}.ibiz-chat-search{gap:8px;width:100%;display:flex;line-height:32px;border-radius:1px;padding:1px 11px;align-items:center;justify-content:center;border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-search:hover,.ibiz-chat-search.is-focus{border:1px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-search__prefix{width:14px;height:14px;display:flex;flex-shrink:0;font-size:14px;align-items:center}.ibiz-chat-search__inner{padding:2px 0 0;outline:0;flex-grow:1;border:none;height:28px;min-width:0;color:inherit;line-height:28px;background-color:initial}.ibiz-chat-topics{display:flex;flex-direction:column;gap:8px;height:100%;padding:8px 0}.ibiz-chat-topics__header{flex-shrink:0;padding:0 8px}.ibiz-chat-topics__main{flex-grow:1;padding:0 8px;overflow-y:auto}.ibiz-chat-topics__empty{font-size:var(--ibiz-font-size-regular);text-align:center}.ibiz-chat-topics__footer{display:flex;flex-shrink:0;align-items:center;justify-content:center;padding:0 8px}.ibiz-chat-topics__action{display:flex;gap:4px;align-items:center;padding:4px 12px;font-size:14px;cursor:pointer;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:2px}.ibiz-chat-topics__action:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topics__action>svg{width:14px!important;height:14px!important}.ibiz-chat-minimize{width:56px;height:56px;display:flex;z-index:99999;cursor:pointer;position:absolute;border-radius:50%;align-items:center;justify-content:center}.ibiz-chat-minimize.is-hidden{display:none}.ibiz-chat-minimize.is-show-halo{width:90px;height:90px;background-size:cover;background-position:center;background-repeat:no-repeat;background-image:url(assets/gif/halo.gif)}.ibiz-chat-minimize__content{width:56px;height:56px;display:flex;border-radius:50%;align-items:center;justify-content:center;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color)}.ibiz-chat-minimize__content:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-minimize__content svg{fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-minimize__content.is-show-border{border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover{left:50%;bottom:90px;padding:8px;display:block;font-size:12px;border-radius:8px;position:absolute;transform:translate(-50%);box-shadow:0 2px 8px rgba(0,0,0,.1);background-color:var(--ibiz-ai-chat-background-color);color:var(--ibiz-ai-chat-color);border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover .typewriter{direction:rtl;overflow:hidden;max-width:200px;width:fit-content;white-space:nowrap;text-overflow:ellipsis;animation:typing 3s steps(40,end)}@keyframes blink{0%,to{opacity:0}50%{opacity:1}}@keyframes typing{0%{width:0}to{width:100%}}@keyframes blink-caret{0%,to{border-color:transparent}50%{border-color:var(--ibiz-ai-chat-color)}}.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-ai-chat-scroll-bar-width: 8px;--ibiz-ai-chat-scroll-bar-height: 8px;--ibiz-ai-chat-scroll-bar-radius: 4px}.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__toolbar{margin:0;left:20px;gap:8px 4px;bottom:118px;min-height:48px;position:absolute;justify-content:center;width:calc(100% - 40px)}.ibiz-chat-container__toolbar.is-has-materials{bottom:180px}.ibiz-chat-container *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-container *::-webkit-scrollbar-thumb{border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.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-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.20/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.20/index.system.min.js new file mode 100644 index 0000000000000000000000000000000000000000..c924993a6ccd9912662134399a00b27fd1c8ed6d --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.20/index.system.min.js @@ -0,0 +1 @@ +!function(){function e(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)}function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,n)}function n(e){var t=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(e){return!1}}();return function(){var n,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}(this,n)}}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||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(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(e,t)||c(e,t)||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(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);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;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:I(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function h(e,t,n,i,r,o,a){try{var c=e[o](a),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(i,r)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){h(o,i,r,a,c,"next",e)}function c(e){h(o,i,r,a,c,"throw",e)}a(void 0)}))}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===c[a]&&(c[a]=e.defaultProps[a]);return O(e,c,i,o,null)}function O(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++h:r};return null==r&&null!=l.vnode&&l.vnode(o),o}function L(e){return e.children}function I(e,t){this.props=e,this.context=t}function D(e,t){if(null==t)return e.__?D(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&y.sort(x));B.__r=0}function H(e,t,n,i,r,o,a,c,s,l,u){var d,h,p,f,v,m,_,g,y,w=0,b=i&&i.__k||T,x=b.length,k=x,N=t.length;for(n.__k=[],d=0;d0?O(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)?(f.__=n,f.__b=n.__b+1,-1===(g=V(f,b,_=d+w,k))?p=C:(p=b[g]||C,b[g]=void 0,k--),$(e,f,p,r,o,a,c,s,l,u),v=f.__e,(h=f.ref)&&p.ref!=h&&(p.ref&&Z(p.ref,null,f),u.push(h,f.__c||v,f)),null!=v&&(null==m&&(m=v),(y=p===C||null===p.__v)?-1==g&&w--:g!==_&&(g===_+1?w++:g>_?k>N-_?w+=g-_:w--:w=g<_&&g==_-1?g-_:0),_=d+w,"function"!=typeof f.type||g===_&&p.__k!==f.__k?"function"==typeof f.type||g===_&&!y?void 0!==f.__d?(s=f.__d,f.__d=void 0):s=v.nextSibling:s=R(e,v,s):s=j(f,s,e),"function"==typeof n.type&&(n.__d=s))):(p=b[d])&&null==p.key&&p.__e&&(p.__e==s&&(p.__=i,s=D(p)),G(p,p,!1),b[d]=null);for(n.__e=m,d=x;d--;)null!=b[d]&&("function"==typeof n.type&&null!=b[d].__e&&b[d].__e==n.__d&&(n.__d=b[d].__e.nextSibling),G(b[d],b[d]))}function j(e,t,n){for(var i,r=e.__k,o=0;r&&o(null!=s?1:0))for(;a>=0||c=0){if((s=t[a])&&r==s.key&&o===s.type)return a;a--}if(c0&&void 0!==arguments[0]?arguments[0]:"";return Q(this.namespace,this.block,e,"","")}},{key:"e",value:function(e){return e?Q(this.namespace,this.block,"",e,""):""}},{key:"m",value:function(e){return e?Q(this.namespace,this.block,"","",e):""}},{key:"be",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,t,""):""}},{key:"em",value:function(e,t){return e&&t?Q(this.namespace,this.block,"",e,t):""}},{key:"bm",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,"",t):""}},{key:"bem",value:function(e,t,n){return e&&t&&n?Q(this.namespace,this.block,e,t,n):""}},{key:"is",value:function(e,t){return e&&t?"".concat("is-").concat(e):""}},{key:"cssVar",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarName(n)]=e[n]);return t}},{key:"cssVarBlock",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarBlockName(n)]=e[n]);return t}},{key:"cssVarName",value:function(e){return"--".concat(this.namespace,"-").concat(e)}},{key:"cssVarBlockName",value:function(e){return"--".concat(this.namespace,"-").concat(this.block,"-").concat(e)}}]),e}();function te(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ne(e,t){for(var n,i="",r=0,o=-1,a=0,c=0;c<=e.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}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(o+1,c):i=e.slice(o+1,c),r=c-o-1;o=c,a=0}else 46===n&&-1!==a?++a:a=-1}return i}var ie={resolve:function(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var r;i>=0?r=arguments[i]:(void 0===e&&(e=process.cwd()),r=e),te(r),0!==r.length&&(t=r+"/"+t,n=47===r.charCodeAt(0))}return t=ne(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(te(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=ne(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return te(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":ie.normalize(e)},relative:function(e,t){if(te(e),te(t),e===t)return"";if((e=ie.resolve(e))===(t=ie.resolve(t)))return"";for(var n=1;nc){if(47===t.charCodeAt(o+l))return t.slice(o+l+1);if(0===l)return t.slice(o+l)}else r>c&&(47===e.charCodeAt(n+l)?s=l:0===l&&(s=0));break}var u=e.charCodeAt(n+l);if(u!==t.charCodeAt(o+l))break;47===u&&(s=l)}var d="";for(l=n+s+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(o+s):(o+=s,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(te(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,r=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');te(e);var n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,c=-1;for(n=e.length-1;n>=0;--n){var s=e.charCodeAt(n);if(47===s){if(!o){i=n+1;break}}else-1===c&&(o=!1,c=n+1),a>=0&&(s===t.charCodeAt(a)?-1==--a&&(r=n):(a=-1,r=c))}return i===r?r=c:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){te(e);for(var t=-1,n=0,i=-1,r=!0,o=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(r=!1,i=a+1),46===c?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=a+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==f(e))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+f(e));return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}("/",e)},parse:function(e){te(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0),r=47===i;r?(t.root="/",n=1):n=0;for(var o=-1,a=0,c=-1,s=!0,l=e.length-1,u=0;l>=n;--l)if(47!==(i=e.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&&(t.base=t.name=0===a&&r?e.slice(1,c):e.slice(a,c)):(0===a&&r?(t.name=e.slice(1,o),t.base=e.slice(1,c)):(t.name=e.slice(a,o),t.base=e.slice(a,c)),t.ext=e.slice(o,c)),a>0?t.dir=e.slice(0,a-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};function re(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function oe(){return"".concat(re()+re(),"-").concat(re(),"-").concat(re(),"-").concat(re(),"-").concat(re()).concat(re()).concat(re())}ie.posix=ie;var ae=/]*>[\s\S]*?<\/svg>/;function ce(e){return ae.test(e)}var se=function(){function e(){v(this,e)}return _(e,null,[{key:"copy",value:function(e){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=e,this.inputElement.select(),document.execCommand("copy")}}]),e}();g(se,"inputElement",null);var le=function(){function e(){v(this,e)}var t,n,i,r,o,a,c,s,l,u;return _(e,null,[{key:"checkDataBaseExists",value:(u=p(d().mark((function e(t){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,indexedDB.databases();case 3:return n=e.sent,e.abrupt("return",n.some((function(e){return e.name===t})));case 7:return e.prev=7,e.t0=e.catch(0),console.error("检查数据库是否存在时出错:",e.t0),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])}))),function(e){return u.apply(this,arguments)})},{key:"deleteDatabase",value:(l=p(d().mark((function t(n){var i,r;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.lastLink&&(null===(i=(r=e.lastLink).close)||void 0===i||i.call(r)),t.abrupt("return",new Promise((function(e,t){var i=indexedDB.deleteDatabase(n);i.onsuccess=function(){e(!0)},i.onerror=function(){e(!1)},i.onblocked=function(){console.warn("删除数据库 ".concat(n," 被阻塞,可能有其他连接正在使用该数据库。")),t(new Error("删除数据库 ".concat(n," 被阻塞")))}})));case 2:case"end":return t.stop()}}),t)}))),function(e){return l.apply(this,arguments)})},{key:"checkTableExists",value:(s=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.checkDataBaseExists(n);case 2:if(t.sent){t.next=5;break}return t.abrupt("return",!1);case 5:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onupgradeneeded=function(t){e.db=t.target.result,e.version=e.db.version},o.onsuccess=function(n){e.db=n.target.result,e.lastLink=o.result;var r=e.db.objectStoreNames.contains(i);o.result.close(),t(r)},o.onerror=function(e){r(e.target.error)}})));case 6:case"end":return t.stop()}}),t)}))),function(e,t){return s.apply(this,arguments)})},{key:"createTable",value:(c=p(d().mark((function t(n,i,r){var o,a=arguments;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=a.length>3&&void 0!==a[3]&&a[3],t.abrupt("return",new Promise((function(t){var a,c;e.version+=1,e.lastLink&&(null===(a=(c=e.lastLink).close)||void 0===a||a.call(c));var s=indexedDB.open(n,e.version);s.onupgradeneeded=function(t){if(e.db=t.target.result,!e.db.objectStoreNames.contains(i)){var n={};r?n.keyPath=r:o&&(n.autoIncrement=!0),e.db.createObjectStore(i,n)}},s.onsuccess=function(){e.lastLink=s.result,s.result.close(),t(!0)},s.onerror=function(){t(!1)}})));case 2:case"end":return t.stop()}}),t)}))),function(e,t,n){return c.apply(this,arguments)})},{key:"deleteTable",value:(a=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){var r,o;e.version+=1,e.lastLink&&(null===(r=(o=e.lastLink).close)||void 0===r||r.call(o));var a=indexedDB.open(n,e.version);a.onupgradeneeded=function(t){e.db=t.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)&&e.db.deleteObjectStore(i)},a.onsuccess=function(n){e.db=n.target.result,e.lastLink=a.result,a.result.close(),t(!0)},a.onerror=function(){a.result.close(),t(!1)}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t){return a.apply(this,arguments)})},{key:"addData",value:(o=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).add(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(null)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return o.apply(this,arguments)})},{key:"deleteData",value:(r=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).delete(r);o.onsuccess=function(e){t(!0)},o.onerror=function(){t(!1)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"updateData",value:(i=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).put(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(r)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"getData",value:(n=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var c=e.db.transaction([i],"readonly").objectStore(i).get(r);c.onsuccess=function(e){t(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 t.stop()}}),t)}))),function(e,t,i){return n.apply(this,arguments)})},{key:"getAllData",value:(t=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=o.result,e.db.objectStoreNames.contains(i)){var r=e.db.transaction([i],"readonly").objectStore(i).getAll();r.onsuccess=function(e){t(r.result)},r.onerror=function(){t([])}}o.result.close()},o.onerror=function(){o.result.close(),r()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}]),e}();g(le,"version",1),g(le,"db",null),g(le,"lastLink",void 0);var ue=function(){function e(t){v(this,e),g(this,"options",void 0),this.options=u({multiple:!0,accept:"*/*",maxSize:5242880},t)}var t,n;return _(e,[{key:"openFilePicker",value:function(){var e=this,t=document.createElement("input");t.type="file",t.multiple=this.options.multiple,t.accept=this.options.accept||"",t.onchange=function(t){var n=Array.from(t.target.files||[]);e.handleFiles(n)},t.click()}},{key:"handleFiles",value:(n=p(d().mark((function e(t){var n,i,r,o=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.length){e.next=2;break}return e.abrupt("return");case 2:return r=t.filter((function(e){var t,n;return!(o.options.maxSize&&e.size>o.options.maxSize&&(null===(t=(n=o.options).onError)||void 0===t||t.call(n,new Error("文件大小超过限制 (".concat(o.formatSize(e.size)," > ").concat(o.formatSize(o.options.maxSize),")")),e),1))})),null===(n=(i=this.options).onSelect)||void 0===n||n.call(i,r),e.next=6,Promise.all(r.map((function(e){return o.processFile(e)})));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"processFile",value:(t=p(d().mark((function e(t){var n,i,r,o,a,c,s,l,u=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a=function(e){var n,i;null===(n=(i=u.options).onProgress)||void 0===n||n.call(i,t,e)},e.next=4,this.options.onUpload(t,a);case 4:c=e.sent,null===(n=(i=this.options).onProgress)||void 0===n||n.call(i,t,100),null===(r=(o=this.options).onSuccess)||void 0===r||r.call(o,c,t),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),null===(s=(l=this.options).onError)||void 0===s||s.call(l,e.t0 instanceof Error?e.t0:new Error("上传失败"),t);case 12:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e){return t.apply(this,arguments)})},{key:"formatSize",value:function(e){if(0===e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat((e/Math.pow(1024,t)).toFixed(2)," ").concat(["B","KB","MB","GB"][t])}}]),e}(),de=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("resource")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r),c=o?JSON.parse(o):{},s=a?JSON.parse(a):{};return{id:c.id,type:n,data:c,metadata:s}}catch(Jn){throw new Error("XML 解析错误: ".concat(Jn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/resources>/i.exec(e);if(!t)return{resources:[],remainingText:e,hasResources:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.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(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("resources");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("resource");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}(),he=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("suggestion")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r);return{type:n,data:o?JSON.parse(o):{},metadata:a?JSON.parse(a):{}}}catch(Jn){throw new Error("XML 解析错误: ".concat(Jn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/suggestions>/i.exec(e);if(!t)return{suggestions:[],remainingText:e,hasSuggestions:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.slice(r)).replace(/\n/g,"");try{return{suggestions:this.parse(n),remainingText:o,hasSuggestions:!0}}catch(c){return{suggestions:[],remainingText:o,hasSuggestions:!0,error:"资源解析失败: ".concat(c.message)}}}},{key:"stringify",value:function(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("suggestions");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("suggestion");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}();function pe(e){return e.x>=0&&e.x<=1&&e.y>=0&&e.y<=1}function fe(e,t,n,i){var r=e/window.innerWidth,o=t/window.innerHeight;return{x:Math.max(0,Math.min(r,1-n)),y:Math.max(0,Math.min(o,1-i))}}var ve,me,_e,ge,ye=0,we=[],be=[],xe=l.__b,ke=l.__r,Ce=l.diffed,Te=l.__c,Ne=l.unmount;function Ee(e,t){l.__h&&l.__h(me,e,ye||t),ye=0;var n=me.__H||(me.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:be}),n.__[e]}function Se(e){return ye=1,function(e,t,n){var i=Ee(ve++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):Fe(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=me,!me.u)){var r=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var a=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&i.__c.props===e)&&(!o||o.call(this,e,t,n))};me.u=!0;var o=me.shouldComponentUpdate,a=me.componentWillUpdate;me.componentWillUpdate=function(e,t,n){if(this.__e){var i=o;o=void 0,r(e,t,n),o=i}a&&a.call(this,e,t,n)},me.shouldComponentUpdate=r}return i.__N||i.__}(Fe,e)}function Ae(e,t){var n=Ee(ve++,3);!l.__s&&je(n.__H,t)&&(n.__=e,n.i=t,me.__H.__h.push(n))}function Me(e){return ye=5,Oe((function(){return{current:e}}),[])}function Oe(e,t){var n=Ee(ve++,7);return je(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Le(e,t){return ye=8,Oe((function(){return e}),t)}function Ie(e){var t=me.context[e.__c],n=Ee(ve++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(me)),t.props.value):e.__}function De(){for(var e;e=we.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Be),e.__H.__h.forEach(He),e.__H.__h=[]}catch(ei){e.__H.__h=[],l.__e(ei,e.__v)}}l.__b=function(e){me=null,xe&&xe(e)},l.__r=function(e){ke&&ke(e),ve=0;var t=(me=e.__c).__H;t&&(_e===me?(t.__h=[],me.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=be,e.__N=e.i=void 0}))):(t.__h.forEach(Be),t.__h.forEach(He),t.__h=[],ve=0)),_e=me},l.diffed=function(e){Ce&&Ce(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==we.push(t)&&ge===l.requestAnimationFrame||((ge=l.requestAnimationFrame)||Pe)(De)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==be&&(e.__=e.__V),e.i=void 0,e.__V=be}))),_e=me=null},l.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Be),e.__h=e.__h.filter((function(e){return!e.__||He(e)}))}catch(Ge){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l.__e(Ge,e.__v)}})),Te&&Te(e,t)},l.unmount=function(e){Ne&&Ne(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Be(e)}catch(e){t=e}})),n.__H=void 0,t&&l.__e(t,n.__v))};var ze="function"==typeof requestAnimationFrame;function Pe(e){var t,n=function(){clearTimeout(i),ze&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);ze&&(t=requestAnimationFrame(n))}function Be(e){var t=me,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),me=t}function He(e){var t=me;e.__c=e.__(),me=t}function je(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Fe(e,t){return"function"==typeof t?t(e):t}function Re(){throw new Error("Cycle detected")}var Ve=Symbol.for("preact-signals");function We(){if(Xe>1)Xe--;else{for(var e,t=!1;void 0!==$e;){var n=$e;for($e=void 0,Ze++;void 0!==n;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&et(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=i}}if(Ze=0,Xe--,t)throw e}}var Ue,qe,Ye=void 0,$e=void 0,Xe=0,Ze=0,Ge=0;function Je(e){if(void 0!==Ye){var t=e.n;if(void 0===t||t.t!==Ye)return t={i:0,S:e,p:Ye.s,n:void 0,t:Ye,e:void 0,x:void 0,r:t},void 0!==Ye.s&&(Ye.s.n=t),Ye.s=t,e.n=t,32&Ye.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=Ye.s,t.n=void 0,Ye.s.n=t,Ye.s=t),t}}function Ke(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Qe(e){return new Ke(e)}function et(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function tt(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function nt(e){for(var t=e.s,n=void 0;void 0!==t;){var i=t.p;-1===t.i?(t.S.U(t),void 0!==i&&(i.n=t.n),void 0!==t.n&&(t.n.p=i)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=i}e.s=n}function it(e){Ke.call(this,void 0),this.x=e,this.s=void 0,this.g=Ge-1,this.f=4}function rt(e){return new it(e)}function ot(e){var t=e.u;if(e.u=void 0,"function"==typeof t){Xe++;var n=Ye;Ye=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,at(e),t}finally{Ye=n,We()}}}function at(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ot(e)}function ct(e){if(Ye!==this)throw new Error("Out-of-order effect");nt(this),Ye=e,this.f&=-2,8&this.f&&at(this),We()}function st(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function lt(e){var t=new st(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function ut(e,t){l[e]=t.bind(null,l[e]||function(){})}function dt(e){qe&&qe(),qe=e&&e.S()}function ht(e){var t=this,n=e.data,i=ft(n);i.value=n;var r=Oe((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e;m(r.peek())||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=r.peek()},rt((function(){var e=i.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return r.value}function pt(e,t,n,i){var r=t in e&&void 0===e.ownerSVGElement,o=Qe(n);return{o:function(e,t){o.value=e,i=t},d:lt((function(){var n=o.value.value;i[t]!==n&&(i[t]=n,r?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}function ft(e){return Oe((function(){return Qe(e)}),[])}function vt(e){var t=Me(e);return t.current=e,Ue.__$f|=4,Oe((function(){return rt((function(){return t.current()}))}),[])}Ke.prototype.brand=Ve,Ke.prototype.h=function(){return!0},Ke.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},Ke.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Ke.prototype.subscribe=function(e){var t=this;return lt((function(){var n=t.value,i=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=i}}))},Ke.prototype.valueOf=function(){return this.value},Ke.prototype.toString=function(){return this.value+""},Ke.prototype.toJSON=function(){return this.value},Ke.prototype.peek=function(){return this.v},Object.defineProperty(Ke.prototype,"value",{get:function(){var e=Je(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(Ye instanceof it&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Ze>100&&Re(),this.v=e,this.i++,Ge++,Xe++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{We()}}}}),(it.prototype=new Ke).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Ge)return!0;if(this.g=Ge,this.f|=1,this.i>0&&!et(this))return this.f&=-2,!0;var e=Ye;try{tt(this),Ye=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return Ye=e,nt(this),this.f&=-2,!0},it.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Ke.prototype.S.call(this,e)},it.prototype.U=function(e){if(void 0!==this.t&&(Ke.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},it.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},it.prototype.peek=function(){if(this.h()||Re(),16&this.f)throw this.v;return this.v},Object.defineProperty(it.prototype,"value",{get:function(){1&this.f&&Re();var e=Je(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),st.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},st.prototype.S=function(){1&this.f&&Re(),this.f|=1,this.f&=-9,ot(this),tt(this),Xe++;var e=Ye;return Ye=this,ct.bind(this,e)},st.prototype.N=function(){2&this.f||(this.f|=2,this.o=$e,$e=this)},st.prototype.d=function(){this.f|=8,1&this.f||at(this)},ht.displayName="_st",Object.defineProperties(Ke.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ht},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),ut("__b",(function(e,t){if("string"==typeof t.type){var n,i=t.props;for(var r in i)if("children"!==r){var o=i[r];o instanceof Ke&&(n||(t.__np=n={}),n[r]=o,i[r]=o.peek())}}e(t)})),ut("__r",(function(e,t){dt();var n,i=t.__c;i&&(i.__$f&=-2,void 0===(n=i.__$u)&&(i.__$u=n=function(e){var t;return lt((function(){t=this})),t.c=function(){i.__$f|=1,i.setState({})},t}())),Ue=i,dt(n),e(t)})),ut("__e",(function(e,t,n,i){dt(),Ue=void 0,e(t,n,i)})),ut("diffed",(function(e,t){var n;if(dt(),Ue=void 0,"string"==typeof t.type&&(n=t.__e)){var i=t.__np,r=t.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=pt(n,s,u,r),o[s]=l):l.o(u,r)}}}e(t)})),ut("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__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=t.__c;if(a){var c=a.__$u;c&&(a.__$u=void 0,c.d())}}e(t)})),ut("__h",(function(e,t,n,i){(i<3||9===i)&&(t.__$f|=2),e(t,n,i)})),I.prototype.shouldComponentUpdate=function(e,t){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 t)return!0;for(var r in e)if("__source"!==r&&e[r]!==this.props[r])return!0;for(var o in this.props)if(!(o in e))return!0;return!1};var mt=0;function _t(e,t,n,i,r,o){var a,c,s={};for(c in t)"ref"==c?a=t[c]:s[c]=t[c];var u={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--mt,__source:r,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===s[c]&&(s[c]=a[c]);return l.vnode&&l.vnode(u),u}var gt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},yt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},wt=function(e){return _t("svg",{viewBox:"0 0 1024 1024",id:"send",className:e.className,version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},bt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},xt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},kt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Ct=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Tt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Nt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M960 544H64a32 32 0 1 1 0-64h896a32 32 0 1 1 0 64"})})},Et=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[_t("path",{d:"M481.0752 263.3728l50.9952 1.024 1.8432-105.8816-50.9952-0.8192z"}),_t("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"}),_t("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"}),_t("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"}),_t("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"}),_t("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"})]})},St=function(){return _t("svg",{viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_t("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"}),_t("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"}),_t("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"})]})},At=function(){return _t("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_t("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"})})},Mt=function(){var e=1e3,t=140,n=250,i=.8;return _t("svg",{fill:"currentColor",viewBox:"0 0 ".concat(e," ").concat(e),xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:Array.from({length:4}).map((function(e,r){return _t("rect",{fill:"currentColor",rx:70,ry:70,height:n,width:t,x:286.66666666666663*r,y:375,children:[_t("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"}),_t("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)}))})},Ot=function(e){return _t("svg",{className:e.className,onClick:e.onClick,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Lt=function(e){return _t("svg",{className:e.className,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},It=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M972.657609 209.348408C987.158609 209.36839 998.930114 197.571202 998.949999 182.99865 998.969882 168.426097 987.230618 156.59651 972.729617 156.576528L32.457975 155.280806C17.956974 155.260823 6.18547 167.058012 6.165585 181.630564 6.1457 196.203116 17.884965 208.032703 32.385966 208.052686L972.657609 209.348408ZM180.466902 992.356169 180.466902 1019.014859 206.993296 1018.74074 833.361858 1012.267947 859.348284 1011.999407 859.348284 985.883377 859.348284 289.397297C859.348284 274.824732 847.59289 263.011332 833.091874 263.011332 818.590859 263.011332 806.835465 274.824732 806.835465 289.397297L806.835465 985.883377 832.82189 959.498805 206.453329 965.971599 232.979723 992.356169 232.979723 282.67005C232.979723 268.097483 221.224329 256.284085 206.723313 256.284085 192.222298 256.284085 180.466902 268.097483 180.466902 282.67005L180.466902 992.356169ZM656.410257 847.079027C656.410257 861.651593 668.165651 873.464992 682.666667 873.464992 697.167682 873.464992 708.923076 861.651593 708.923076 847.079027L708.923076 372.131659C708.923076 357.559091 697.167682 345.745694 682.666667 345.745694 668.165651 345.745694 656.410257 357.559091 656.410257 372.131659L656.410257 847.079027ZM341.333333 847.079027C341.333333 861.651593 353.08873 873.464992 367.589743 873.464992 382.090758 873.464992 393.846155 861.651593 393.846155 847.079027L393.846155 372.131659C393.846155 357.559091 382.090758 345.745694 367.589743 345.745694 353.08873 345.745694 341.333333 357.559091 341.333333 372.131659L341.333333 847.079027ZM498.871795 847.079027C498.871795 861.651593 510.627189 873.464992 525.128205 873.464992 539.62922 873.464992 551.384614 861.651593 551.384614 847.079027L551.384614 372.131659C551.384614 357.559091 539.62922 345.745694 525.128205 345.745694 510.627189 345.745694 498.871795 357.559091 498.871795 372.131659L498.871795 847.079027ZM392.147755 116.721777C392.147755 102.063669 403.758665 90.363507 418.40134 90.363507L622.925796 90.363507C637.408947 90.363507 649.179381 102.1619 649.179381 116.549585L649.179381 171.644875 701.692203 171.644875 701.692203 116.549585C701.692203 72.986607 666.38105 37.591577 622.925796 37.591577L418.40134 37.591577C374.724427 37.591577 339.634933 72.950804 339.634933 116.721777L339.634933 165.310801 392.147755 165.310801 392.147755 116.721777Z"})})},Dt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 184l144 144 144-144"})})},zt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"".concat(e.className," icon"),viewBox:"0 0 512 512",children:_t("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"})})},Pt=function(e){return _t("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",children:_t("circle",{cx:"25",cy:"25",r:"20",stroke:"currentColor",strokeWidth:"5",fill:"none",strokeDasharray:"31.415, 31.415",strokeLinecap:"round",children:_t("animateTransform",{attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"1s",repeatCount:"indefinite"})})})},Bt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ht=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},jt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ft=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Rt=function(e){return _t("svg",{className:e.className,id:"stop",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},Vt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})})},Wt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("path",{d:"M394.688 126.208a32 32 0 0 1 32-32h170.688a32 32 0 0 1 32 32v138.624h288a32 32 0 0 1 32 32v170.688a32 32 0 0 1-32 32H106.688a32 32 0 0 1-32-32V296.832a32 32 0 0 1 32-32h288V126.208z m64 32v138.624a32 32 0 0 1-32 32h-288v106.688h746.688V328.832h-288a32 32 0 0 1-32-32V158.208H458.688z"}),_t("path",{d:"M138.688 469.376a32 32 0 0 1 32-32h682.688a32 32 0 0 1 32 32v384a32 32 0 0 1-32 32H170.688a32 32 0 0 1-32-32v-384z m64 32v320h618.688v-320H202.688z"}),_t("path",{d:"M341.376 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32zM512 691.2a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0v-128a32 32 0 0 1 32-32zM682.688 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32z"})]})},Ut=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("path",{d:"M843.251 424.407l43.828-74.898c10.194-17.946 32.596-22.158 48.956-11.598 16.298 10.499 23.44 32.658 14.223 49.566l-113.11 195.212-61.164-40.044-126.418-82.285c-16.115-11.598-20.632-34.428-10.194-51.702 9.705-17.397 31.009-23.501 47.857-13.734l89.67 59.028C748.576 295.547 615.81 180.667 461.008 180.667c-177.387 0-320.042 148.758-320.042 331.335 0 183.613 143.692 331.334 319.981 331.334 107.861 0.184 208.58-56.158 268.034-149.858 1.099-1.038 1.099-2.075 2.075-2.075 6.348-9.949 17.092-15.871 28.568-15.81 19.35 0 35.648 16.848 35.648 36.93 0 7.508-2.137 14.833-6.104 21.059-72.823 114.698-196.066 183.675-328.099 183.614-216.088 0-391.4-181.478-391.4-405.195 0-223.718 175.312-405.195 391.339-405.195 183.125-0.427 342.016 131.606 382.243 317.601z"})})},qt=function(){return _t("svg",{version:"1.1",className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M627.498667 55.168l170.666666 170.666667a42.624 42.624 0 0 1 0 60.330666l-469.333333 469.333334A42.538667 42.538667 0 0 1 298.666667 768H128a42.666667 42.666667 0 0 1-42.666667-42.666667v-170.666666c0-11.306667 4.48-22.186667 12.501334-30.165334l469.333333-469.333333a42.624 42.624 0 0 1 60.330667 0zM896 896a42.666667 42.666667 0 0 1 0 85.333333H128a42.666667 42.666667 0 0 1 0-85.333333h768zM597.333333 145.664l-426.666666 426.666667V682.666667h110.336l426.666666-426.666667L597.333333 145.664z"})})},Yt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M184 112l144 144-144 144"})})},$t=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M896 870.4l-128-128c55.467-68.267 89.6-149.333 89.6-238.933 0-98.134-38.4-192-110.933-264.534-149.334-149.333-384-149.333-533.334-4.266-145.066 145.066-145.066 384 0 529.066 72.534 72.534 166.4 110.934 264.534 110.934 89.6 0 174.933-29.867 238.933-89.6l128 128c4.267 4.266 12.8 8.533 21.333 8.533s17.067-4.267 21.334-8.533c17.066-8.534 17.066-29.867 8.533-42.667zM260.267 721.067c-119.467-123.734-119.467-320 0-439.467 59.733-59.733 140.8-89.6 217.6-89.6 81.066 0 157.866 29.867 217.6 89.6 59.733 59.733 89.6 136.533 89.6 217.6 0 81.067-34.134 162.133-89.6 217.6-55.467 59.733-132.267 93.867-217.6 93.867-81.067 0-157.867-34.134-217.6-89.6z"})})},Xt=function(e){var t=e.items,n=ft([]),i=new ee("chat-thought-chain"),r=ft([]);Ae((function(){r.value=t.filter((function(e){return e.description})),r.value.length>0&&r.value.forEach((function(e,t){e.done&&(n.value=[].concat(o(n.value),[t]))}))}),[t]);return 0===r.value.length?null:_t("div",{className:"".concat(i.b()," ").concat(i.is("single",1===r.value.length)),children:r.value.map((function(e,t){if(e.description){var r=n.value.includes(t);return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("collapsed",r)),children:[_t("div",{className:i.e("item-icon"),children:e.icon||_t("span",{children:t})}),_t("div",{className:i.e("item-content"),children:[_t("div",{className:i.e("item-title"),onClick:function(){return function(e){n.value.includes(e)?n.value=n.value.filter((function(t){return t!==e})):n.value=[].concat(o(n.value),[e])}(t)},children:[e.title,_t(Dt,{className:i.e("icon")})]}),_t("div",{className:i.e("item-description"),children:e.description})]})]},t)}}))})},Zt=function(e){var t=e.items,n=e.onItemClick,i=new ee("chat-suggestions");return _t("div",{className:"".concat(i.b()),children:t.map((function(e,t){return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("action","action"===e.type)),onClick:function(t){return function(e,t){null==n||n(e,t)}(e,t)},title:e.metadata.content_name,children:[e.metadata.content_name,_t(Yt,{className:"".concat(i.e("item-icon"))})]},t)}))})},Gt=new ee("markdown-message"),Jt=function(e){var t=e.message,n=e.size,i=ft(oe()),r=ft(null),o=Oe((function(){return 20===t.state&&!0!==t.completed}),[t.state,t.completed]),a=Oe((function(){return 20===t.state&&!0===t.completed}),[t.state,t.completed]),c=ft({title:"",description:"",icon:_t(Pt,{})}),l=ft({hasSuggestions:!1,suggestions:[]}),u=function(e){e&&e.length>0?l.value={hasSuggestions:!0,suggestions:e}:l.value={hasSuggestions:!1,suggestions:[]}},d=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="",o=!1;return-1===n?(o=!1,i=e.slice(t+7),r=""):(o=!0,i=e.slice(t+7,n),r=e.slice(n+8)),{isThoughtCompleted:o,thoughtContent:i,answerContent:r}};return Ae((function(){if(n>=0&&r.value){if(-1!==t.content.indexOf("")){var e=d(t.content),i=e.isThoughtCompleted,o=e.thoughtContent,a=e.answerContent;i?(c.value.icon=_t(zt,{}),c.value.title="思考完成"):!0===t.completed?(c.value.icon=_t(zt,{}),c.value.title="思考已停止"):(c.value.icon=_t(Pt,{}),c.value.title="思考中..."),c.value.description=o||"",r.value.setMarkdown(a||"")}else r.value.setMarkdown(t.content||"");u(t.suggestions)}}),[t,n]),Ae((function(){var e="";if(-1!==t.content.indexOf("")){var n=d(t.content),o=n.isThoughtCompleted,a=n.thoughtContent,l=n.answerContent;c.value={title:o?"思考完成":!0===t.completed?"思考已停止":"思考中...",description:a||"",icon:o||!0===t.completed?_t(zt,{}):_t(Pt,{})},l&&(e=l)}else e=t.content;u(t.suggestions),r.value=new s({id:i,value:e||"",editor:{defaultModel:"previewOnly"}})}),[]),_t("div",{className:"".concat(Gt.b()," ").concat(Gt.is("loading",o)),children:[_t("div",{className:Gt.b("header"),children:[_t("div",{className:Gt.be("header","caption"),children:"AI "}),e.children,a?_t("div",{className:Gt.be("header","timeout"),children:"请求超时"}):null]}),_t("div",{className:"".concat(Gt.b("content")," pre-wrap-container"),children:[_t(Xt,{items:[c.value]}),_t("div",{id:i})]}),_t("div",{className:Gt.b("footer"),children:l.value.hasSuggestions?_t(Zt,{items:l.value.suggestions,onItemClick:function(t,n){!function(t,n){e.controller.handleSuggestionClick(e.message,t,n)}(t,n)}}):null})]})},Kt=new ee("ossfile-material"),Qt=function(e){var t=vt((function(){return e.material.data.name})),n=vt((function(){return e.material.metadata.size})),i=vt((function(){var t=e.material.metadata.state;return"successed"===t?"上传成功":"uploading"===t?"上传中":"failed"===t?"上传失败":"未知状态"})),r=vt((function(){switch(e.material.metadata.state){case"successed":return"#1890ff";case"uploading":return"#52c41a";default:return"#ff4d4f"}}));return _t("div",{className:Kt.b(),children:[_t("div",{className:Kt.b("left"),children:_t(Ht,{})}),_t("div",{className:Kt.b("right"),children:[_t("div",{className:Kt.e("name"),title:t,children:t}),_t("div",{className:Kt.e("metadata"),children:[_t("div",{children:[n,"B"]}),_t("div",{style:{color:r.value},children:i})]})]})]})},en=new ee("common-material"),tn=function(e){var t,n,i,r,o=null===(t=e.controller.opts.questionToolbarItems)||void 0===t?void 0:t.find((function(t){return t.id===e.material.metadata.actionId})),a=vt((function(){return e.material.metadata.name}));return _t("div",{className:en.b(),children:[_t("div",{className:en.b("left"),children:o&&o.icon?"function"==typeof o.icon?o.icon():(null===(n=o.icon)||void 0===n?void 0:n.showIcon)&&_t(L,{children:null!==(i=o.icon)&&void 0!==i&&i.cssClass?_t("i",{className:o.icon.cssClass}):null!==(r=o.icon)&&void 0!==r&&r.imagePath?ce(o.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:o.icon.imagePath}}):_t("img",{src:o.icon.imagePath}):null}):_t(Ft,{})}),_t("div",{className:en.b("right"),children:[_t("div",{className:en.e("name"),title:a,children:a}),_t("div",{className:en.e("metadata"),children:_t("div",{children:(null==o?void 0:o.label)||"素材资源"})})]})]})},nn=new ee("chat-input-material-item"),rn=function(e){var t=e.material,n=null;if("ossfile"===t.type)n=Qt;else n=tn;return _t("div",{className:"".concat(nn.b()," ").concat(nn.is("disabled",e.disabled)),children:[_t("div",{className:nn.e("icon"),onClick:function(){e.controller.deleteMaterial(t)},children:_t(jt,{})}),M(n,{material:t,controller:e.controller})]})},on=new ee("user-message-question"),an=function(e){var t=ft(oe()),n=ft(null),i=vt((function(){return e.message.content})),r=vt((function(){return de.parseMixedContent(i.value)}));return Ae((function(){n.value=new s({id:t,value:r.value.remainingText||"",editor:{defaultModel:"previewOnly"}})}),[r.value.remainingText]),_t("div",{className:on.b(),children:[_t("div",{className:on.e("user-header"),children:[e.children,_t("div",{className:on.e("user"),children:"我"})]}),_t("div",{className:on.e("content"),children:_t("div",{className:on.em("content","body"),children:[r.value.hasResources&&_t("div",{className:on.em("content","material"),children:r.value.resources.map((function(t){return _t(rn,{material:t,disabled:!0,controller:e.controller},t.id)}))}),_t("div",{className:"pre-wrap-container",children:_t("div",{id:t})})]})})]})},cn=new ee("error-message"),sn=function(e){var t=vt((function(){return e.message.content}));return _t("div",{className:cn.b(),children:[_t("div",{className:cn.b("header"),children:[_t("div",{className:cn.be("header","caption"),children:"AI "}),e.children]}),_t("div",{className:"".concat(cn.e("content")," pre-wrap-container"),children:_t("span",{children:t})})]})},ln=new ee("unknown-message"),un=function(e){return _t("div",{className:ln.b(),children:_t("div",{className:"".concat(ln.e("content")," pre-wrap-container"),children:["暂未支持的消息类型: ",e.message.type]})})},dn=new ee("chat-message-item"),hn=function(e){var t=e.message,n=e.size,i=null;switch(t.type){case"DEFAULT":i="ASSISTANT"===t.role?Jt:an;break;case"ERROR":i=sn;break;default:i=un}return _t("div",{className:dn.b(),children:M(i,{size:n,message:t,controller:e.controller,children:e.children})})},pn=function(){function e(t){v(this,e),this.msg=t}return _(e,[{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 e=this.msg.content;if(-1!==e.indexOf("")&&-1===e.indexOf(""))return"";if(-1!==(e=e.replace(/[^]*?<\/think>/g,"").trim()).indexOf("")&&-1===e.indexOf(""))return"";var t=(e=e.replace(/[^]*?<\/resources>/g,"").trim()).indexOf("");return-1!==t&&(e=e.substring(0,t).trim()),e}},{key:"content",get:function(){return this.msg.content}},{key:"completed",get:function(){return this.msg.completed}},{key:"suggestions",get:function(){return this.msg.suggestions}},{key:"_origin",get:function(){return this.msg}},{key:"update",value:function(e){e.content||(e.content=""),-1!==e.content.indexOf("")&&this.msg.content&&(this.msg.content=""),this.msg.content+=e.content}},{key:"updateCompleted",value:function(e){this.msg.completed=e}}]),e}(),fn=function(){function e(t){v(this,e),this.data=t}return _(e,[{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:"sourceCaption",get:function(){return this.data.sourceCaption||this.caption}},{key:"url",get:function(){return this.data.url}},{key:"aiChat",get:function(){return this.data.aiChat}}]),e}(),vn=function(){function e(t){v(this,e),this.material=t}return _(e,[{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}}]),e}(),mn=new ee("chat-toolbar-item"),_n=function(e){var t,n,i,r=e.model,o=e.data,c=e.className,s=e.disabled,l=void 0!==s&&s,u=e.buttonType,d=void 0===u?"default":u,h=e.onClick,p=a(Se(!1),2),f=p[0],v=p[1],m=Me(null),_=function(e){return"function"==typeof e.hidden?e.hidden(o):!0===e.hidden};if(_(r))return _t(L,{});var g=function(e){return!!l||("function"==typeof e.disabled?e.disabled(o):!0===e.disabled)},y=function(e){var t,n,i,r;return"function"==typeof e.icon?e.icon():null!==(t=e.icon)&&void 0!==t&&t.showIcon&&null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.showIcon&&null!==(r=e.icon)&&void 0!==r&&r.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):void 0},w=function(e,t){g(t)||(v(!1),h(e,t))};return Ae((function(){var e=function(e){m.current&&m.current.contains(e.target)||v(!1)};return f&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[f]),_t("div",{className:"".concat(mn.b()," ").concat(mn.b(d)," ").concat(r.customClass||""," ").concat(c||""," ").concat(mn.is("disabled",g(r))," ").concat(mn.is("more",!(null===(t=r.children)||void 0===t||!t.length))),children:[_t("div",{title:r.title,className:mn.e("content"),onClick:function(e){return w(e,r)},children:[_t("div",{className:mn.em("content","icon"),children:y(r)}),_t("div",{className:mn.em("content","label"),children:r.label})]}),(null===(n=r.children)||void 0===n?void 0:n.length)&&_t("div",{title:"更多",className:mn.e("more"),onClick:function(e){g(r)||v(!0)},children:_t("i",{"aria-hidden":"true",className:"fa fa-angle-down ".concat(mn.em("more","icon"))})}),f&&_t("div",{ref:m,className:mn.b("dropdown"),children:null===(i=r.children)||void 0===i?void 0:i.map((function(e,t){if(!_(e))return _t("div",{title:e.title,onClick:function(t){return w(t,e)},className:"".concat(mn.be("dropdown","item")," ").concat(e.customClass||""," ").concat(mn.is("disabled",g(e))),children:[_t("div",{className:mn.bem("dropdown","item","icon"),children:y(e)}),_t("div",{className:mn.bem("dropdown","item","label"),children:e.label})]},t)}))})]})},gn=new ee("chat-toolbar"),yn=function(e){var t=e.controller,n=e.items,i=void 0===n?[]:n,r=e.data,a=e.type,c=e.className,s=Ie(Ci),l=[],d=[{label:"重置对话",title:"重置对话",icon:function(){return _t(Ut,{})},onClick:function(){t.resetTopic()},children:[{label:"清空对话",title:"清空对话",icon:function(){return _t(Wt,{})},onClick:function(){t.clearTopic()}},{label:"新建对话",title:"新建对话",icon:function(){return _t(St,{})},onClick:function(){s.newTopic&&s.newTopic()}}]}],h=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r)}},{label:"删除",title:"删除",icon:function(){return _t(bt,{})},onClick:function(){t.deleteMessage(r)}},{label:"复制",title:"复制",icon:function(){return _t(kt,{})},onClick:function(){t.copyMessage(r)}}];s.enableBackFill&&h.unshift.apply(h,[{label:"回填",title:"回填",icon:function(){return _t(yt,{})},onClick:function(){t.backfill(r)}}]);var p=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r,!0)}}];if("content"===a)switch(r.type){case"DEFAULT":l="ASSISTANT"===r.role?[].concat(h,o(i)):[].concat(p);break;case"ERROR":l=[].concat(h,o(i))}else l=[].concat(d,o(i));var f=function(n,i){var o=u({},r);if(r instanceof pn?(Object.assign(o,{topic:t.topic}),o.msg.realcontent=r.realcontent):Object.assign(o.data,{messages:t.messages.value}),i.onClick&&"function"==typeof i.onClick)i.onClick(n,i,t.context,t.params,o);else{var a=e.controller.opts.extendToolbarClick;a&&"function"==typeof a&&a(n,i,t.context,t.params,o)}},v=Oe((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 _t("div",{className:"".concat(gn.b()," ").concat(c||""),children:l.map((function(e,t){return _t(_n,{data:r,model:e,disabled:v,buttonType:"content"===a?"circle":"default",onClick:f.bind(void 0)},t)}))})};var wn=function(e){var t,n,i,r=ft(!1),o=ft({}),a=new ee("chat-back-bottom"),c=ft(null),s=function(){if(c.value){var t=e.visibilityHeight||200,n=c.value.scrollHeight-c.value.scrollTop-c.value.offsetHeight;r.value=n>=t}},l=(t=s,n=300,i=null,function(){for(var e=this,r=arguments.length,o=new Array(r),a=0;a3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),K(M(Dn,{context:t.context},e.__v),t.l)}function Pn(e,t){var n=M(zn,{__v:e,i:t});return n.containerInfo=t,n}(Ln.prototype=new I).__a=function(e){var t=this,n=On(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),In(t,e,i)):r()};n?n(o):o()}},Ln.prototype.render=function(e){this.u=null,this.o=new Map;var t=F(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ln.prototype.componentDidUpdate=Ln.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){In(e,n,t)}))};var Bn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Hn=/^(?: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]/,jn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Fn=/[A-Z0-9]/g,Rn="undefined"!=typeof document,Vn=function(e){return("undefined"!=typeof Symbol&&"symbol"==f(Symbol())?/fil|che|rad/:/fil|che|ra/).test(e)};I.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(I.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Wn=l.event;function Un(){}function qn(){return this.cancelBubble}function Yn(){return this.defaultPrevented}l.event=function(e){return Wn&&(e=Wn(e)),e.persist=Un,e.isPropagationStopped=qn,e.isDefaultPrevented=Yn,e.nativeEvent=e};var $n={enumerable:!1,configurable:!0,get:function(){return this.class}},Xn=l.vnode;l.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={};for(var r in t){var o=t[r];if(!("value"===r&&"defaultValue"in t&&null==o||Rn&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===o?o="":"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Vn(t.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":jn.test(r)?r=a:-1===n.indexOf("-")&&Hn.test(r)?r=r.replace(Fn,"-$&").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(t.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=F(t.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",$n)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=Bn,Xn&&Xn(e)};var Zn=l.__r;l.__r=function(e){Zn&&Zn(e),e.__c};var Gn=l.diffed;l.diffed=function(e){Gn&&Gn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};var Jn=new Map;function Kn(e){var t=Jn.get(e);t&&t.destroy()}function Qn(e){var t=Jn.get(e);t&&t.update()}var ei=null;"undefined"==typeof window?((ei=function(e){return e}).destroy=function(e){return e},ei.update=function(e){return e}):((ei=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!Jn.has(e)){var t,n=null,i=window.getComputedStyle(e),r=(t=e.value,function(){a({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),o=function(t){e.removeEventListener("autosize:destroy",o),e.removeEventListener("autosize:update",c),e.removeEventListener("input",r),window.removeEventListener("resize",c),Object.keys(t).forEach((function(n){return e.style[n]=t[n]})),Jn.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",o),e.addEventListener("autosize:update",c),e.addEventListener("input",r),window.addEventListener("resize",c),e.style.overflowX="hidden",e.style.wordWrap="break-word",Jn.set(e,{destroy:o,update:c}),c()}function a(t){var r,o,c=t.restoreTextAlign,s=void 0===c?null:c,l=t.testForHeightReduction,u=void 0===l||l,d=i.overflowY;if(0!==e.scrollHeight&&("vertical"===i.resize?e.style.resize="none":"both"===i.resize&&(e.style.resize="horizontal"),u&&(r=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null}))}}(e),e.style.height=""),o="content-box"===i.boxSizing?e.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):e.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&o>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(e.style.overflow="scroll"),o=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(e.style.overflow="hidden"),e.style.height=o+"px",s&&(e.style.textAlign=s),r&&r(),n!==o&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=o),d!==i.overflow&&!s)){var h=i.textAlign;"hidden"===i.overflow&&(e.style.textAlign="start"===h?"end":"start"),a({restoreTextAlign:h,testForHeightReduction:!0})}}function c(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Kn),e},ei.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Qn),e});var ti=ei,ni=function(e){return e.STYLE_CACHE="ai-chat-style-cache",e.MINIMIZE_STYLY_CHCHE="ai-chat-minimize-style-cache",e.DATA_BASE_NAME="ibiz-chat",e.DATA_TABLE_NAME="history-message",e.DATA_TABLE_KEY_NAME="id",e}(ni||{}),ii=function(){function e(t){v(this,e),g(this,"messages",Qe([])),g(this,"materials",Qe([])),g(this,"input",Qe("")),g(this,"isLoading",Qe(!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=t,this.context=t.context,this.params=t.params,this.appDataEntityId=t.appDataEntityId,this.topicId=t.topicId,this.topic=t.topic,this.fecthHistory()}var t,n,i,r,a,c,s;return _(e,[{key:"fecthHistory",value:(s=p(d().mark((function e(){var t,n=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=7;break}return e.next=3,le.getData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 3:if(!((t=e.sent)&&t.data&&t.data.length>0)){e.next=7;break}return t.data.forEach((function(e){var t={messageid:e.messageid,state:e.state,type:e.type,role:e.role,content:e.content,suggestions:e.suggestions,completed:!0};n.addMessage(t)})),e.abrupt("return",!0);case 7:return e.next=9,this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId,appendCurData:this.opts.appendCurData});case 9:return e.sent&&this.opts.appendCurContent&&this.addMessage({state:30,messageid:oe(),role:"USER",type:"DEFAULT",content:this.opts.appendCurContent,completed:!0}),e.abrupt("return",!0);case 12:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"asyncToIndexDB",value:(c=p(d().mark((function e(){var t;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.topicId){e.next=2;break}return e.abrupt("return");case 2:return t={id:this.topicId,data:this.messages.value.map((function(e){return e._origin})),timestamp:(new Date).getTime()},e.next=5,le.updateData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"setInput",value:function(e){this.input.value=e||""}},{key:"addMessage",value:function(e){var t=this.messages.value.find((function(t){return t.messageid===e.messageid}));t?(t.update(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB()}},{key:"completeMessage",value:function(e,t){var n=this.messages.value.find((function(t){return t.messageid===e}));n&&(n.updateCompleted(t),this.messages.value=o(this.messages.value),this.asyncToIndexDB())}},{key:"replaceMessage",value:function(e){var t=this,n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==n?(this.messages.value[n]=new pn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB(),"DEFAULT"===e.type&&this.opts.recommendPrompt&&this.opts.recommendPrompt(this.context,this.params,{appDataEntityId:this.appDataEntityId,message:{messages:[e]}}).then((function(n){n&&n.content&&t.updateRecommendPrompt(e,n.content)}))}},{key:"stopMessage",value:function(e){var t=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));if(-1!==t){var n=this.messages.value[t];e.content=n.content,this.messages.value[t]=new pn(e),this.messages.value=o(this.messages.value)}else this.messages.value=[].concat(o(this.messages.value),[new pn(e)]);this.asyncToIndexDB()}},{key:"stringlyMaterialResource",value:function(){var e="",t=[];return this.materials.value&&this.materials.value.length>0&&(this.materials.value.forEach((function(e){if("ossfile"===e.type){var n=e.metadata;n.state&&"successed"===n.state&&t.push(e)}else t.push(e)})),this.materials.value=[]),t&&t.length>0&&(e=de.stringify(t)),e}},{key:"question",value:(a=p(d().mark((function e(t){var n,i=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.isLoading.value=!0,this.messages.value.forEach((function(e,t){var n=e._origin;n.suggestions&&(n.suggestions=void 0,i.messages.value[t]=new pn(n))})),this.messages.value=o(this.messages.value),this.asyncToIndexDB(),(n=this.stringlyMaterialResource())?n+="\n".concat(t):n=t,this.addMessage({state:30,messageid:oe(),role:"USER",type:"DEFAULT",content:n}),e.next=10,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 10:this.opts.action&&this.opts.action("question",t),this.isLoading.value=!1;case 12:return e.prev=12,this.isLoading.value=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[0,,12,15]])}))),function(e){return a.apply(this,arguments)})},{key:"abortQuestion",value:function(){try{this.opts.abortQuestion(this)}finally{this.isLoading.value=!1}}},{key:"backfill",value:function(e){this.opts.action&&this.opts.action("backfill",e)}},{key:"deleteMessage",value:function(e){var t=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==t&&(this.messages.value.splice(t,1),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),this.opts.action&&this.opts.action("deletemsg",e)}},{key:"refreshMessage",value:(r=p(d().mark((function e(t){var n,i,r,a=arguments;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],this.isLoading.value=!0,e.prev=2,i=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})),!n){e.next=11;break}return this.messages.value.splice(i+1,this.messages.value.length-i-1),this.messages.value=o(this.messages.value),e.next=9,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 9:e.next=21;break;case 11:if(i!==this.messages.value.length-1){e.next=18;break}return this.messages.value.pop(),this.messages.value=o(this.messages.value),e.next=16,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 16:e.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",t);case 23:return e.prev=23,this.isLoading.value=!1,e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[2,,23,26]])}))),function(e){return r.apply(this,arguments)})},{key:"copyMessage",value:function(e){var t=e.realcontent;se.copy(t),this.opts.action&&this.opts.action("copymsg",e)}},{key:"resetTopic",value:(i=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=3;break}return e.next=3,le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 3:this.messages.value=[],this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId});case 5:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"clearTopic",value:(n=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=3;break}return e.next=3,le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 3:this.messages.value=[];case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"addMaterial",value:function(e){var t=this.materials.value.find((function(t){return t.id===e.id}));this.materials.value=t?o(this.materials.value):[].concat(o(this.materials.value),[new vn(e)])}},{key:"replaceMaterial",value:function(e,t){var n=this.materials.value.findIndex((function(t){return t.id===e}));-1!==n?(this.materials.value[n]=new vn(t),this.materials.value=o(this.materials.value)):this.materials.value=[].concat(o(this.materials.value),[new vn(t)])}},{key:"deleteMaterial",value:function(e){var t=this.materials.value.findIndex((function(t){return t.id===e.id}));-1!==t&&(this.materials.value.splice(t,1),this.materials.value=o(this.materials.value))}},{key:"updateRecommendPrompt",value:function(e,t){if(t){var n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid})),i=he.parseMixedContent(t).suggestions;i&&i.length>0&&(e.suggestions=i,-1!==n?(this.messages.value[n]=new pn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB())}}},{key:"handleSuggestionClick",value:(t=p(d().mark((function e(t,n,i){var r,a,c,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:-1!==(r=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})))&&((a=this.messages.value[r]._origin).suggestions=void 0,this.messages.value[r]=new pn(a),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),c=n.type,e.t0=c,e.next="action"===e.t0?7:"raw"===e.t0?17:20;break;case 7:if(!this.opts.extendToolbarClick){e.next=16;break}if(s=n.data.actionid){e.next=11;break}throw new Error("actionid不能为空");case 11:return l=u({},t),Object.assign(l,{topic:this.topic}),l.msg.realcontent=t.realcontent,e.next=16,this.opts.extendToolbarClick(i,{id:s,appId:this.context.srfappid},this.context,this.params,l);case 16:case 19:return e.abrupt("break",21);case 17:return e.next=19,this.question(n.data.content);case 20:throw new Error("不支持".concat(c,"推荐类型"));case 21:case"end":return e.stop()}}),e,this)}))),function(e,n,i){return t.apply(this,arguments)})}]),e}(),ri=function(){function e(t){v(this,e),g(this,"topics",Qe([])),g(this,"activedTopic",Qe(null)),g(this,"currentTopicOptions",void 0),this.chat=t}var t,n,i,r,a,c,s;return _(e,[{key:"fetchHistory",value:(s=p(d().mark((function e(t){var n,i,r=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.configService(t.appid,"aitopics",t.type),e.next=3,n.load();case 3:(i=e.sent)&&i.length>0&&i.forEach((function(e){r.topics.value=[].concat(o(r.topics.value),[new fn(e)])}));case 5:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})},{key:"updateCurrentTopic",value:(c=p(d().mark((function e(t){var n,i,r,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.currentTopicOptions=t,n=this.topics.value.findIndex((function(e){return e.id===t.id})),i=new fn(t),-1!==n?this.topics.value.splice(n,1,new fn(t)):this.topics.value=[].concat(o(this.topics.value),[new fn(t)]),r=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),a=t.configService(t.appid,"aitopics",t.type),e.next=8,null==a?void 0:a.save(r);case 8:this.activedTopic.value=i;case 9:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"removeTopic",value:(a=p(d().mark((function e(t,n,i,r,a){var c,s,l,u,h;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=!0,!t.beforeDelete){e.next=5;break}return e.next=4,t.beforeDelete(n,i,r,a);case 4:s=e.sent;case 5:if(s){e.next=7;break}return e.abrupt("return");case 7:return-1!==(l=this.topics.value.findIndex((function(e){return e.id===r.id})))&&(this.topics.value.splice(l,1),this.topics.value=o(this.topics.value)),u=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),h=t.configService(t.appid,"aitopics",t.type),e.next=13,null==h?void 0:h.save(u);case 13:return e.next=15,le.deleteData(ni.DATA_BASE_NAME,ni.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 e.stop()}}),e,this)}))),function(e,t,n,i,r){return a.apply(this,arguments)})},{key:"updateTopic",value:(r=p(d().mark((function e(t,n){var i,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),r=t.configService(t.appid,"aitopics",t.type),e.next=4,null==r?void 0:r.save(i);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"handleTopicChange",value:function(e){var t;(null===(t=this.activedTopic.value)||void 0===t?void 0:t.id)!==e.id&&(this.activedTopic.value=e,this.chat.switchAiChatController(e))}},{key:"handleTopicAction",value:(i=p(d().mark((function e(t,n,i){var r,o,a,c,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.topics.value.find((function(e){return e.id===n.id})),!(this.currentTopicOptions&&r&&r.aiChat)){e.next=12;break}if(c=r.aiChat,s=c.context,l=c.params,"DELETE"!==t){e.next=8;break}return e.next=6,this.removeTopic(this.currentTopicOptions,s,l,r,i);case 6:e.next=11;break;case 8:if("RENAME"!==t){e.next=11;break}return e.next=11,this.updateTopic(this.currentTopicOptions,n);case 11:null===(o=(a=this.currentTopicOptions).action)||void 0===o||o.call(a,t,s,l,n,i);case 12:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"newTopic",value:(n=p(d().mark((function e(){var t,n,i,r,a,c,s,l,u;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this.activedTopic.value){e.next=3;break}return e.abrupt("return");case 3:return r=i.id.split("@")[0],a=this.topics.value.filter((function(e){return e.id.startsWith(r)})),c={appid:i.appid,id:"".concat(r,"@").concat(Date.now()),type:i.type,caption:"".concat(null===(t=i.sourceCaption)||void 0===t?void 0:t.split("_")[0],"_").concat(a.length),sourceCaption:i.sourceCaption,url:i.url,aiChat:i.aiChat},s=new fn(c),this.topics.value=[].concat(o(this.topics.value),[s]),l=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),u=null===(n=this.currentTopicOptions)||void 0===n?void 0:n.configService(c.appid,"aitopics",c.type),e.next=12,null==u?void 0:u.save(l);case 12:this.handleTopicChange(s);case 13:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"clearTopic",value:(t=p(d().mark((function e(){var t,n,i,r,o,a=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.topics.value.find((function(e){var t;return e.id===(null===(t=a.activedTopic.value)||void 0===t?void 0:t.id)})),this.currentTopicOptions&&n){e.next=3;break}return e.abrupt("return");case 3:if(i=!0,!this.currentTopicOptions.beforeDelete){e.next=8;break}return e.next=7,this.currentTopicOptions.beforeDelete(n.aiChat.context,n.aiChat.params,n,void 0,!0);case 7:i=e.sent;case 8:if(i){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,Promise.all(this.topics.value.map((function(e){if(e.id!==(null==n?void 0:n.id))return le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,e.id)})));case 12:return this.topics.value=n?[n]:[],r=null===(t=this.currentTopicOptions)||void 0===t?void 0:t.configService(this.currentTopicOptions.appid,"aitopics",this.currentTopicOptions.type),o=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),e.next=17,null==r?void 0:r.save(o);case 17:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),oi=_((function e(t){v(this,e),this.aiChat=t})),ai=function(t){e(o,t);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=p(d().mark((function e(t,n){var i,r,o,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n||!n.onClick||"function"!=typeof n.onClick){e.next=6;break}return e.next=3,n.onClick(t,n,this.aiChat.context,this.aiChat.params);case 3:i=e.sent,e.next=14;break;case 6:if(!(r=this.aiChat.opts.extendToolbarClick)){e.next=13;break}return e.next=10,r(t,n,this.aiChat.context,this.aiChat.params,{});case 10:i=e.sent,e.next=14;break;case 13:console.error("未找到扩展工具栏点击事件");case 14:i&&i.data&&i.data.length>0&&(o=i.data[0],a={id:o.id,type:o.type,data:o.data||{},metadata:o.metadata||{}},n.id&&Object.assign(a.metadata,{actionId:n.id}),this.aiChat.addMaterial(a));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})}]),o}(oi),ci=function(t){e(o,t);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=p(d().mark((function e(t,n){var i,r,o,a,c,s,l,u,h,f,v=this;return d().wrap((function(e){for(;;)switch(e.prev=e.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,h=i.onProgress,f={multiple:r||!0,accept:o||"*/*",maxSize:a||5242880,onSelect:function(e){null==c||c(e),e.length>0&&e.forEach((function(e){var t=v.buildMaterialObject(e);Object.assign(t.metadata,{state:"uploading"}),v.aiChat.addMaterial(t)}))},onUpload:function(){var e=p(d().mark((function e(t,n){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s(t,n,{context:v.aiChat.context,params:v.aiChat.params}));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),onSuccess:function(e,t){var n={id:e.id,type:"ossfile",data:{id:e.id,name:e.name},metadata:{ext:e.ext,fileext:e.fileext,fileid:e.fileid,filename:e.filename,size:e.size,filesize:e.filesize,state:"successed"}};v.aiChat.replaceMaterial(t.name,n),null==l||l(e,t)},onError:function(e,t){var n=v.buildMaterialObject(t);Object.assign(n.metadata,{state:"failed"}),v.aiChat.replaceMaterial(t.name,n),null==u||u(e,t)},onProgress:function(e,t){null==h||h(e,t)}},new ue(f).openFilePicker();case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"buildMaterialObject",value:function(e){return{id:e.name,type:"ossfile",data:{name:e.name,id:e.name},metadata:{size:e.size,type:e.type,lastModified:e.lastModified}}}}]),o}(oi),si=function(){function e(){v(this,e)}return _(e,null,[{key:"getMaterialHelper",value:function(e,t){return"ossfile"===e?new ci(t):new ai(t)}}]),e}(),li=function(){function e(){v(this,e),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 ri(this)}var t,n;return _(e,[{key:"aiChat",get:function(){var e;return this.aiTopicMap.get("".concat(null===(e=this.aiTopic.activedTopic.value)||void 0===e?void 0:e.id))}},{key:"initIndexDB",value:(n=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le.checkTableExists(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME);case 2:if(e.sent){e.next=6;break}return e.next=6,le.createTable(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,ni.DATA_TABLE_KEY_NAME,!1);case 6:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"create",value:(t=p(d().mark((function e(t){var n,i,r,o,a,c,s=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initIndexDB();case 2:if(this.backupChatOptions=t,this.close(),this.container=document.createElement("div"),this.container.classList.add("ibiz-ai-chat"),document.body.appendChild(this.container),o=t.chatOptions,!t.mode||"TOPIC"!==t.mode){e.next=17;break}if(this.isMountedAiTopic){e.next=13;break}return e.next=12,this.aiTopic.fetchHistory(t.topicOptions);case 12:this.isMountedAiTopic=!0;case 13:return a=t.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,otherToolbarItems:o.otherToolbarItems,appendCurData:o.appendCurData,appendCurContent:o.appendCurContent}}),e.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 ii(o),this.aiTopicMap.set("".concat(null===(i=a)||void 0===i?void 0:i.id),c),K(M(Ti,{aiChat:c,aiTopic:this.aiTopic,mode:t.mode?t.mode:"DEFAULT",containerOptions:t.containerOptions,caption:t.mode&&"TOPIC"===t.mode?"AI助手":o.caption,enableBackFill:null===(r=t.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(e){o.fullscreen&&o.fullscreen(e,o.context,o.params)},minimize:function(e){o.minimize&&o.minimize(e,o.context,o.params)}}),this.container),e.abrupt("return",c);case 22:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"switchAiChatController",value:function(e){var t,n,i,r,o,a=this,c=u({},this.backupChatOptions.chatOptions);(e.aiChat&&Object.assign(c,{caption:e.aiChat.caption,context:e.aiChat.context,params:e.aiChat.params,contentToolbarItems:e.aiChat.contentToolbarItems,footerToolbarItems:e.aiChat.footerToolbarItems,questionToolbarItems:e.aiChat.questionToolbarItems,otherToolbarItems:e.aiChat.otherToolbarItems,appendCurData:e.aiChat.appendCurData,appendCurContent:e.aiChat.appendCurContent,appDataEntityId:e.aiChat.appDataEntityId,topicId:e.id,topic:e,extendToolbarClick:this.backupChatOptions.chatOptions.extendToolbarClick,recommendPrompt:this.backupChatOptions.chatOptions.recommendPrompt}),this.aiTopicMap.has("".concat(e.id))?t=this.aiTopicMap.get("".concat(e.id)):(t=new ii(c),this.aiTopicMap.set("".concat(e.id),t)),this.container)&&(K(null,this.container),K(M(Ti,{aiChat:t,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(e){c.fullscreen&&c.fullscreen(e,c.context,c.params)},minimize:function(e){c.minimize&&c.minimize(e,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)}}]),e}(),ui=(t("chat",new li),new ee("chat-input-material")),di=function(e){var t=e.controller.materials;return _t("div",{className:ui.b(),children:t.value.map((function(t){return _t(rn,{material:t,disabled:!1,controller:e.controller},t.id)}))})},hi=function(e){var t=e.children,n=e.actions,i=e.content,r=e.position,o=void 0===r?"bottom":r,c=e.isOpen,s=e.onToggleOpen,l=e.onAction,d=new ee("pop"),h=Ie(Ci),p=a(Se(c||!1),2),f=p[0],v=p[1],m=Me(null),_=Me(null);Ae((function(){void 0!==c&&v(c)}),[c]),Ae((function(){return _.current||(_.current=document.createElement("div"),_.current.className=d.b("content-container"),document.body.appendChild(_.current)),function(){_.current&&document.body.removeChild(_.current)}}),[]),Ae((function(){var e=function(e){!m.current||m.current.contains(e.target)||e.target.closest(".".concat(d.b()))||e.target.closest(".ibiz-quick-edit")||e.target.closest(".ibiz-picker__transfer")||(v(!1),null==s||s(!1))};return f&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[f,s]);return _t("span",{className:"".concat(d.b("trigger-container")),children:[_t("span",{className:"".concat(d.b("trigger-element")),ref:m,onClick:function(e){e.stopPropagation();var t=!f;v(t),null==s||s(t)},children:t}),f&&_.current&&Pn(_t("div",{className:"".concat(d.b()," pop-").concat(o),style:function(){if(!m.current)return{};var e=m.current.getBoundingClientRect(),t={position:"absolute",zIndex:h.zIndex+1},n={bottom:{top:e.bottom+window.scrollY,left:e.left+window.scrollX},top:{bottom:window.innerHeight-e.top+window.scrollY,left:e.left+window.scrollX},left:{top:e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX},right:{top:e.top+window.scrollY,left:e.right+window.scrollX},"top-left":{bottom:window.innerHeight-e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX}};return u(u({},t),n[o])}(),children:i||(null==n?void 0:n.map((function(e){return _t("div",{title:e.caption,className:d.e("item"),onMouseDown:function(t){t.stopPropagation(),null==l||l(e.id,t)},children:[e.icon,_t("div",{className:d.em("item","caption"),children:e.caption})]},e.id)})))}),_.current)]})},pi=new ee("chat-input"),fi=window.SpeechRecognition||window.webkitSpeechRecognition,vi=function(e){var t,n=a(Se(!1),2),i=n[0],r=n[1],o=Me(null),c=e.controller.input,s=ft(!1),l=Me();fi&&!l.current&&(l.current=new fi,l.current.onstart=function(){s.value=!0},l.current.onend=function(){s.value=!1},l.current.onresult=function(e){var t,n=null===(t=e.results)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t[0])||void 0===t?void 0:t.transcript;n&&(c.value="".concat(c.value).concat(n))});var u=Le((function(e){c.value=e.target.value}),[c]),h=vt((function(){return c.value.length<=0}));Ae((function(){return o.current&&ti(o.current),function(){o.current&&ti.destroy(o.current)}}),[o]);var f=Le(p(d().mark((function t(){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=c.value,c.value="",t.next=5,e.controller.question(n);case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])}))),[c]),v=Le(p(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{e.controller.abortQuestion()}catch(n){console.error(n)}case 1:case"end":return t.stop()}}),t)}))),[c]),m=function(){var t=p(d().mark((function t(n){var i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=si.getMaterialHelper("ossfile",e.controller),t.next=3,i.excuteAction(n);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_=function(){var t=p(d().mark((function t(n,i){var o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=si.getMaterialHelper("common",e.controller),t.next=3,o.excuteAction(n,i);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}();return _t("div",{className:pi.b("wrapper"),children:[_t("div",{className:pi.b("material-wrapper"),children:_t(di,{controller:e.controller})}),_t("div",{className:pi.b("main-wrapper"),children:[_t("textarea",{className:pi.e("textarea"),type:"text",rows:6,autoCorrect:"off",autoCapitalize:"off",autoComplete:"off",value:c,onInput:u,onKeyDown:function(e){"Enter"!==e.code||e.isComposing||(e.stopPropagation(),!1===e.shiftKey&&f())},ref:o,disabled:e.controller.isLoading.value}),_t("div",{className:pi.b("action-wrapper"),children:[_t("div",{className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",e.controller.isLoading.value)),title:"上传资料",children:_t(hi,{content:_t("div",{className:pi.b("pop-actions"),children:[_t("div",{className:pi.b("pop-action-item"),onClick:function(e){m(e)},children:[_t("span",{className:pi.b("pop-action-item-icon"),children:_t(Ht,{})}),_t("span",{className:pi.b("pop-action-item-title"),children:"文件资料"})]}),null===(t=e.questionToolbarItems)||void 0===t?void 0:t.map((function(e){var t,n,i;return _t("div",{className:pi.b("pop-action-item"),onClick:function(t){_(t,e)},children:[_t("span",{className:pi.b("pop-action-item-icon"),children:"function"==typeof e.icon?e.icon():(null===(t=e.icon)||void 0===t?void 0:t.showIcon)&&_t(L,{children:null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):null})}),_t("span",{className:pi.b("pop-action-item-title"),children:e.label})]},e.id)}))]}),position:"top-left",isOpen:i,onToggleOpen:r,children:_t(Bt,{})})}),_t("div",{title:s.value?"语音输入中...":"语音输入",className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",e.controller.isLoading.value)),onClick:function(){l.current&&!s.value&&l.current.start()},children:s.value?_t(Mt,{}):_t(At,{})}),e.controller.isLoading.value?_t("div",{title:"停止生成",className:"".concat(pi.be("action-wrapper","action-item")),onClick:v,children:_t(Rt,{})}):_t("div",{title:"发送消息",className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",h.value)),onClick:f,children:_t(wt,{})})]})]})]})},mi=new ee("chat-topic-item"),_i=function(e){var t=e.controller,n=e.topic,i=e.onClick,r=e.onAction,o=Me(null),c=vt((function(){var e;return(null===(e=t.activedTopic.value)||void 0===e?void 0:e.id)===n.id})),s=a(Se(!1),2),l=s[0],u=s[1],d=ft(!1);return _t("div",{className:"".concat(mi.b()," ").concat(mi.is("active",c.value)," ").concat(mi.is("edit",d.value)),onClick:i.bind(void 0),children:[_t("div",{className:mi.e("caption"),title:n.caption,children:d.value?_t("input",{ref:o,value:n.caption,onBlur:function(e){e.stopPropagation(),d.value=!1,r("RENAME",e)},onKeyDown:function(e){e.stopPropagation(),"Enter"===e.key&&(d.value=!1)},onClick:function(e){return e.stopPropagation()},onChange:function(e){return(t=e).stopPropagation(),void(n.data.caption=null===(i=t.target)||void 0===i?void 0:i.value);var t,i},className:mi.em("caption","editor")}):_t("span",{className:mi.em("caption","text"),children:n.caption})}),!d.value&&_t("div",{className:mi.e("icon"),children:[_t("span",{title:"跳转主视图",className:mi.em("icon","item"),onClick:function(e){e.stopPropagation(),r("LINK",e)}.bind(void 0),children:_t(Lt,{className:mi.b("link-icon")})}),c.value?null:_t(hi,{actions:[{id:"RENAME",caption:"重命名",icon:_t(qt,{})},{id:"DELETE",caption:"删除话题",icon:_t(It,{})}],position:"bottom",isOpen:l,onToggleOpen:u,onAction:function(e,t){"DELETE"===e?r("DELETE",t):"RENAME"===e&&(d.value=!0,setTimeout((function(){var e;null===(e=o.current)||void 0===e||e.focus()}),100)),u(!1)}.bind(void 0),children:_t("span",{className:mi.em("icon","item"),title:"更多",children:_t(Ot,{className:mi.e("more-icon")})})})]})]})},gi=new ee("chat-search"),yi=function(e){var t=e.className,n=e.value,i=e.placeholder,r=e.onChange,o=a(Se(!1),2),c=o[0],s=o[1],l=function(e){var t;e.stopPropagation(),null==r||r(null===(t=e.target)||void 0===t?void 0:t.value)};return _t("div",{className:"".concat(gi.b()," ").concat(gi.is("focus",c)," ").concat(t||""),children:[_t("div",{className:gi.e("prefix"),children:_t($t,{})}),_t("input",{value:n,className:gi.e("inner"),placeholder:i,onFocus:function(){return s(!0)},onBlur:function(){return s(!1)},onChange:function(e){return l(e)}})]})},wi=new ee("chat-topics"),bi=function(e){var t=Me(null),n=ft(void 0),i=ft([]);Ae((function(){i.value=e.controller.topics.value.filter((function(e){var t,i;return null===(t=e.caption)||void 0===t?void 0:t.toLowerCase().includes((null===(i=n.value)||void 0===i?void 0:i.trim().toLowerCase())||"")}))}),[e.controller.topics.value]);return Ae((function(){var e=t.current;if(e){var n=e.querySelector(".ibiz-chat-topic-item.is-active");null==n||n.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[e.controller.activedTopic.value]),_t("div",{className:wi.b(),children:[_t("div",{className:wi.e("header"),children:_t(yi,{value:n.value,placeholder:"搜索话题",onChange:function(t){n.value=t,i.value=e.controller.topics.value.filter((function(e){var t,i;return null===(t=e.caption)||void 0===t?void 0:t.toLowerCase().includes((null===(i=n.value)||void 0===i?void 0:i.trim().toLowerCase())||"")}))}.bind(void 0)})}),_t("div",{ref:t,className:wi.e("main"),children:i.value&&i.value.length>0?i.value.map((function(t){return _t(_i,{topic:t,controller:e.controller,onClick:function(){return function(t){e.controller.handleTopicChange(t)}(t)},onAction:function(n,i){return function(t,n,i){e.controller.handleTopicAction(t,n,i)}(n,t,i)}},t.id)})):_t("div",{className:wi.e("empty"),children:"暂无话题"})}),_t("div",{className:wi.e("footer"),children:_t("div",{title:"清空会话",className:wi.e("action"),onClick:function(){return e.controller.clearTopic()},children:[_t(It,{}),_t("span",{children:"清空会话"})]})})]})},xi=new ee("chat-minimize"),ki=function(e){var t=Me(null),n=a(Se(""),2),i=n[0],r=n[1],o=a(Se(0),2),c=o[0],s=o[1],l=Me(!1),u={x:(window.innerWidth-86)/window.innerWidth,y:(window.innerHeight-86)/window.innerHeight},d=vt((function(){var t=e.controller.messages.value[e.controller.messages.value.length-1];return!!t&&("ASSISTANT"===t.role&&20===t.state&&!0!==t.completed)})),h=vt((function(){var t="";if(!d.value)return r(""),s(0),t;var n=e.controller.messages.value[e.controller.messages.value.length-1];if(t=n.content,-1!==n.content.indexOf("")){var i=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="";return-1===n?(i=e.slice(t+7),r=""):(i=e.slice(t+7,n),r=e.slice(n+8)),{thoughtContent:i,answerContent:r}}(n.content);t=i.thoughtContent+i.answerContent}return t})),p=function(){Object.assign(t.current.style,{left:"".concat(100*u.x,"%"),top:"".concat(100*u.y,"%")}),localStorage.setItem(ni.MINIMIZE_STYLY_CHCHE,JSON.stringify(u))};return Ae((function(){var e,n=localStorage.getItem(ni.MINIMIZE_STYLY_CHCHE);if(n){var i=JSON.parse(n);pe(i)&&Object.assign(u,i)}p(),(e=t.current)&&(e.onmousedown=function(t){document.body.style.userSelect="none";var n=t.clientX-e.offsetLeft,i=t.clientY-e.offsetTop,r=Date.now(),o=function(e){var t=56/window.innerWidth,r=56/window.innerHeight,o=fe(e.clientX-n,e.clientY-i,t,r),a=o.x,c=o.y;Object.assign(u,{x:a,y:c}),requestAnimationFrame((function(){p()}))};document.addEventListener("mousemove",o),document.addEventListener("mouseup",(function e(){var t=Date.now();l.current=t-r>300,document.body.style.userSelect="",document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",e)}))})}),[]),Ae((function(){if(c1-e?this.calcSideModeStyle(i1-t&&(this.data.window.y=1-a)),this.setStyle()}},{key:"registerDragDialog",value:function(){var e=this;this.dragHandle.current.onmousedown=function(t){if(!e.state.isFullScreen){document.body.style.userSelect="none";var n=t.clientX-e.containerRef.current.offsetLeft,i=t.clientY-e.containerRef.current.offsetTop,r=function(t){if(!e.disabled){e.data.showMode="window";var r=fe(t.clientX-n,t.clientY-i,e.data.window.width,e.data.window.height),o=r.x,a=r.y;Object.assign(e.data.window,{x:o,y:a}),e.setStyle()}};document.addEventListener("mousemove",r),document.addEventListener("mouseup",(function t(){document.body.style.userSelect="",document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t),e.disabled||e.snapToEdge()}))}}}},{key:"registerDragDialogBorder",value:function(){var e=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(t){if(!e.state.isFullScreen){var n="side"===e.data.showMode?e.data.side:e.data.window;n.x=t.rect.left/window.innerWidth,n.y=t.rect.top/window.innerHeight,n.width=t.rect.width/window.innerWidth,n.height=t.rect.height/window.innerHeight,e.setStyle()}},start:function(){e.disabled=!0,document.body.style.userSelect="none"},end:function(){e.disabled=!1,document.body.style.userSelect=""}}})}},{key:"handleFullScreenChange",value:function(){this.setState({isFullScreen:null!==document.fullscreenElement})}},{key:"componentDidMount",value:function(){this.handleFullScreenChange=this.handleFullScreenChange.bind(this);var e=localStorage.getItem(ni.STYLE_CACHE);if(e){var t=JSON.parse(e);t.side&&pe(t.side)&&t.window&&pe(t.window)&&Object.assign(this.data,t)}this.setStyle(),this.registerDragDialog(),this.registerDragDialogBorder(),document.addEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"close",value:function(){this.props.close()}},{key:"fullScreen",value:function(){var e=this.containerRef.current;e&&(e.requestFullscreen(),this.props.fullscreen(!0))}},{key:"closeFullScreen",value:function(){var e;this.state.isFullScreen&&(null===(e=document)||void 0===e||e.exitFullscreen(),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.setState({isMinimize:!1}),this.props.minimize(!1)}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"render",value:function(){return _t(Ci.Provider,{value:this.containerContext,children:_t("div",{className:"".concat(this.ns.b()),children:[_t("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:[_t("div",{ref:this.dragHandle,className:this.ns.b("header"),children:[_t("div",{className:this.ns.b("header-caption"),children:this.props.caption||"AI助手"}),_t("div",{className:this.ns.b("header-action-wrapper"),children:[_t("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:_t(Nt,{})}),this.state.isFullScreen?_t("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:_t(Tt,{})}):_t("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:_t(Ct,{})}),_t("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:_t(gt,{})})]})]}),"TOPIC"===this.props.mode?_t("div",{className:"".concat(this.ns.b("main")),children:[_t("div",{className:"".concat(this.ns.be("main","left")),children:_t(bi,{controller:this.props.aiTopic})}),_t("div",{className:"".concat(this.ns.be("main","right")),children:[_t("div",{className:this.ns.b("content"),children:_t(xn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(yn,{data:this.props.aiTopic.activedTopic.value,type:"footer",className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(vi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}):_t("div",{className:"".concat(this.ns.be("main","default")),children:[_t("div",{className:this.ns.b("content"),children:_t(xn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(yn,{type:"footer",data:this.props.aiTopic.activedTopic.value,className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(vi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}),_t(ki,{title:this.props.caption||"AI助手",controller:this.props.aiChat,isMinimize:this.state.isMinimize,onClick:this.exitMinimize.bind(this)})]})})}}]),o}(I);t("ChatContainer",Ti)}}}))}(); diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.20/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.20/polyfills.legacy.js new file mode 100644 index 0000000000000000000000000000000000000000..c8c7654431885af1a2dc12a9fe73b198407bf314 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.20/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+""},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+""},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="\t\n\v\f\r                 \u2028\u2029\ufeff",JE=L,qE=Ao,KE=VE,YE=S("".replace),XE=RegExp("^["+KE+"]+"),QE=RegExp("(^|[^"+KE+"])["+KE+"]+$"),ZE=function(t){return function(r){var e=qE(JE(r));return 1&t&&(e=YE(e,XE,"")),2&t&&(e=YE(e,QE,"$1")),e}},tx={start:ZE(1),end:ZE(2),trim:ZE(3)},rx=te.PROPER,ex=o,nx=VE,ox=tx.trim;ro({target:"String",proto:!0,forced:function(t){return ex((function(){return!!nx[t]()||"​…᠎"!=="​…᠎"[t]()||rx&&nx[t].name!==t}))}("trim")},{trim:function(){return ox(this)}});var ix=Dt,ux=hn,ax=co,cx=mo,fx=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=ix(this),e=ux(r),n=arguments.length;if(n){fx(e+n);for(var o=e;o--;){var i=o+n;o in r?r[i]=r[o]:cx(r,i)}for(var u=0;uo;)for(var a,c=mx(arguments[o++]),f=i?Sx(px(c),i(c)):px(c),s=f.length,l=0;s>l;)a=f[l++],sx&&!hx(u,c,a)||(e[a]=c[a]);return e}:bx,xx=Ex;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==xx},{assign:xx});var Ox={exports:{}},jx=o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Ix=o,Tx=B,Rx=j,Px=jx,Ax=Object.isExtensible,kx=Ix((function(){Ax(1)}))||Px?function(t){return!!Tx(t)&&((!Px||"ArrayBuffer"!==Rx(t))&&(!Ax||Ax(t)))}:Ax,Cx=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),Nx=ro,Lx=S,Fx=pe,Mx=B,_x=Gt,Dx=Rr.f,Ux=Qe,$x=mw,Gx=kx,zx=Cx,Wx=!1,Bx=Vt("meta"),Hx=0,Vx=function(t){Dx(t,Bx,{value:{objectID:"O"+Hx++,weakData:{}}})},Jx=Ox.exports={enable:function(){Jx.enable=function(){},Wx=!0;var t=Ux.f,r=Lx([].splice),e={};e[Bx]=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!!c(this,t)}}),hO(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)}}),wO&&lO(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=xO(r),i=xO(n);yO(t,r,(function(t,r){EO(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)?mO("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,mO(void 0,!0))}),e?"entries":"values",!e,!0),bO(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=Yx[t],a=u&&u.prototype,c=u,f={},s=function(t){var r=Xx(a[t]);Zx(a,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!iO(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(Qx(t,!nO(u)||!(o||a.forEach&&!uO((function(){(new u).entries().next()})))))c=e.getConstructor(r,t,n,i),tO.enable();else if(Qx(t,!0)){var l=new c,h=l[i](o?{}:-0,1)!==l,v=uO((function(){l.has(1)})),p=aO((function(t){new u(t)})),d=!o&&uO((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((c=r((function(t,r){eO(t,a);var e=fO(new u,t,c);return oO(r)||rO(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,Kx({global:!0,constructor:!0,forced:c!==u},f),cO(c,t),o||e.setStrong(c,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),OO);var jO,IO=ro,TO=Fu,RO=n.f,PO=sn,AO=Ao,kO=_E,CO=L,NO=UE,LO=TO("".startsWith),FO=TO("".slice),MO=Math.min,_O=NO("startsWith");IO({target:"String",proto:!0,forced:!!(_O||(jO=RO(String.prototype,"startsWith"),!jO||jO.writable))&&!_O},{startsWith:function(t){var r=AO(CO(this));kO(t);var e=PO(MO(arguments.length>1?arguments[1]:void 0,r.length)),n=AO(t);return LO?LO(r,n,e):FO(r,e,e+n.length)===n}});var DO=ro,UO=Ms.findIndex,$O=sm,GO="findIndex",zO=!0;GO in[]&&Array(1)[GO]((function(){zO=!1})),DO({target:"Array",proto:!0,forced:zO},{findIndex:function(t){return UO(this,t,arguments.length>1?arguments[1]:void 0)}}),$O(GO);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=tx.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;o \ No newline at end of file diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.21/index.min.css b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.21/index.min.css new file mode 100644 index 0000000000000000000000000000000000000000..4da306d2ab918c2b37fc1c8904f807ab5d88448e --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.21/index.min.css @@ -0,0 +1 @@ +@charset "UTF-8";.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-chat-suggestions{--ibiz-chat-suggestions-bg: var(--ibiz-ai-chat-background-color);--ibiz-chat-suggestions-hover-bg-color: var(--ibiz-ai-chat-hover-background-color);--ibiz-chat-suggestions-border: var(--ibiz-ai-chat-border-color);display:flex;flex-direction:column;gap:var(--ibiz-spacing-base-tight);width:100%}.ibiz-chat-suggestions__item{display:flex;align-items:center;align-self:flex-start;justify-content:space-between;min-width:200px;height:32px;padding:0 12px;overflow:hidden;line-height:32px;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background-color:var(--ibiz-chat-suggestions-bg);border:1px solid var(--ibiz-chat-suggestions-border);border-radius:12px;transition:.3s background-color}.ibiz-chat-suggestions__item:hover{background-color:var(--ibiz-chat-suggestions-hover-bg-color)}.ibiz-chat-suggestions__item.is-action{color:var(--ibiz-ai-chat-color-2);background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-suggestions__item.is-action:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-suggestions__item .ibiz-chat-suggestions__item-icon{margin-left:12px;font-size:18px}.ibiz-markdown-message{padding:6px 10px}.ibiz-markdown-message .cherry{border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-markdown-message .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-markdown-message .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-markdown-message .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-markdown-message .cherry div[data-type=codeBlock] pre[class*=language-]::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.2)}.ibiz-markdown-message .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-markdown-message .cherry-previewer{padding:8px;border:0}.ibiz-markdown-message .cherry-previewer figure{max-width:1200px}.ibiz-markdown-message .cherry-previewer figure>svg{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)}.ibiz-markdown-message-footer{padding:10px 0}@keyframes circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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-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%;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:10px 16px;margin:0;font-size:14px;line-height:1.5;color:var(--color-fg-default);word-wrap:break-word;background:#e7f8ff;text-size-adjust:100%;background-color:var(--ibiz-ai-chat-background-color-light);border-radius:var(--ibiz-ai-chat-border-radius)}.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--material{gap:8px;display:flex;align-items:center;flex-flow:row-reverse wrap;margin-bottom:8px}.ibiz-user-message-question__content .cherry{min-height:0px;border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-user-message-question__content .cherry-markdown p{margin:0}.ibiz-user-message-question__content .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-user-message-question__content .cherry-previewer{padding:0;border:0;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color-light)}.ibiz-user-message-question__content .cherry-previewer figure{max-width:1200px}.ibiz-user-message-question__content .cherry-previewer figure>svg{width:100%;min-height:100px}.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock]{position:relative!important;display:flex;padding-top:24px}.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock] .cherry-edit-code-block,.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock] .cherry-copy-code-block{position:absolute;top:0}.ibiz-user-message-question__content .anchor{display:none!important}.ibiz-user-message-question__user-header{width:100%;height:32px;display:flex;margin-bottom:8px;align-items:center;justify-content:end}.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:10px 16px;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{display:flex;padding:6px 10px;justify-content:end}.ibiz-unknown-message__content{padding:10px 16px;color:#000;width:max-content;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-item{display:flex;cursor:pointer;position:relative;align-items:center;white-space:nowrap}.ibiz-chat-toolbar-item__content{display:flex;align-items:center;white-space:nowrap}.ibiz-chat-toolbar-item__content--icon{width:18px;height:18px;font-size:18px;display:flex;flex-shrink:0;align-items:center;justify-content:center}.ibiz-chat-toolbar-item__content--label,.ibiz-chat-toolbar-item__more{display:flex;align-items:center}.ibiz-chat-toolbar-item__more--icon{font-size:18px}.ibiz-chat-toolbar-item-default{font-size:14px;width:fit-content;color:var(--ibiz-ai-chat-color-2)}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__content{gap:6px;line-height:28px;padding:2px 14px;border-radius:12px;background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-toolbar-item-default.is-disabled{cursor:not-allowed}.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__content,.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__more{background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__content:hover,.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__more:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-default.is-more .ibiz-chat-toolbar-item__content{padding:2px 8px 2px 14px;border-radius:12px 0 0 12px}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__more{height:32px;padding:2px 14px 2px 8px;border-radius:0 12px 12px 0;border-left:1px solid var(--ibiz-ai-chat-border-color);background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-toolbar-item-circle{height:32px;padding:6px;max-width:32px;overflow:hidden;font-size:12px;white-space:nowrap;border-radius:15px;transition:max-width .8s ease;border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-toolbar-item-circle.is-disabled{cursor:not-allowed;color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-circle: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-item-circle .ibiz-chat-toolbar-item__content--label{font-size:14px;margin-left:8px;width:calc(100% - 32px)}.ibiz-chat-toolbar-item-dropdown{right:0;gap:4px;bottom:36px;padding:4px;display:flex;max-width:150px;border-radius:6px;position:absolute;flex-direction:column;background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-toolbar-item-dropdown__item{gap:6px;display:flex;padding:0 8px;cursor:pointer;line-height:32px;border-radius:6px;align-items:center}.ibiz-chat-toolbar-item-dropdown__item.is-disabled{cursor:not-allowed;background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-dropdown__item:hover:not(.is-disabled){background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-dropdown__item--icon{width:18px;height:18px;font-size:18px;display:flex;flex-shrink:0;align-items:center;justify-content:center}.ibiz-chat-toolbar-item-dropdown__item--label{flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ibiz-chat-toolbar{display:flex;flex-wrap:wrap;align-items:center}.ibiz-chat-toolbar .ibiz-chat-toolbar-item:not(:first-child){margin-left:6px}.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{width:calc(100% - 12px);height:calc(100% - 12px);margin:6px;overflow:hidden auto}.ibiz-chat-messages::-webkit-scrollbar{width:6px}.ibiz-chat-messages::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-wrapper{max-height:72px;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:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-input__textarea::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);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-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{gap:4px;padding:4px;display:flex;min-width:120px;border-radius:8px;flex-direction:column;background-color:var(--ibiz-color-bg-3);border:1px solid var(--ibiz-color-border)}.ibiz-pop__item{display:flex;padding:0 8px;cursor:pointer;line-height:32px;border-radius:6px;align-items:center}.ibiz-pop__item:hover{background-color:var(--ibiz-color-primary-hover)}.ibiz-pop__item--caption{min-width:0;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-pop__item svg{width:16px;height:16px;flex-shrink:0;margin-right:8px;fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-topic-item{height:38px;display:flex;padding:0 8px;cursor:pointer;border-radius:12px;position:relative;align-items:center;font-size:var(--ibiz-font-size-regular)}.ibiz-chat-topic-item:hover:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item:hover:not(.is-edit) .ibiz-chat-topic-item__icon{opacity:1}.ibiz-chat-topic-item.is-active:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item.is-edit{border:2px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-topic-item__caption{width:100%;height:100%;display:flex;align-items:center}.ibiz-chat-topic-item__caption--text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-topic-item__caption--editor{width:100%;height:100%;border:none;outline:none;color:var(--ibiz-ai-chat-color);background:var(--ibiz-ai-chat-background-color)}.ibiz-chat-topic-item__icon{top:50%;gap:8px;opacity:0;right:10px;height:24px;display:flex;outline:none;padding:0 8px;border-radius:8px;position:absolute;align-items:center;justify-content:flex-end;transform:translateY(-50%);color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item__icon--item{font-size:12px}.ibiz-chat-search{gap:8px;width:100%;display:flex;line-height:32px;border-radius:1px;padding:1px 11px;align-items:center;justify-content:center;border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-search:hover,.ibiz-chat-search.is-focus{border:1px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-search__prefix{width:14px;height:14px;display:flex;flex-shrink:0;font-size:14px;align-items:center}.ibiz-chat-search__inner{padding:2px 0 0;outline:0;flex-grow:1;border:none;height:28px;min-width:0;color:inherit;line-height:28px;background-color:initial}.ibiz-chat-topics{display:flex;flex-direction:column;gap:8px;height:100%;padding:8px 0}.ibiz-chat-topics__header{flex-shrink:0;padding:0 8px}.ibiz-chat-topics__main{flex-grow:1;padding:0 8px;overflow-y:auto}.ibiz-chat-topics__empty{font-size:var(--ibiz-font-size-regular);text-align:center}.ibiz-chat-topics__footer{display:flex;flex-shrink:0;align-items:center;justify-content:center;padding:0 8px}.ibiz-chat-topics__action{display:flex;gap:4px;align-items:center;padding:4px 12px;font-size:14px;cursor:pointer;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:2px}.ibiz-chat-topics__action:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topics__action>svg{width:14px!important;height:14px!important}.ibiz-chat-minimize{width:56px;height:56px;display:flex;z-index:99999;cursor:pointer;position:absolute;border-radius:50%;align-items:center;justify-content:center}.ibiz-chat-minimize.is-hidden{display:none}.ibiz-chat-minimize.is-show-halo{width:90px;height:90px;background-size:cover;background-position:center;background-repeat:no-repeat;background-image:url(assets/gif/halo.gif)}.ibiz-chat-minimize__content{width:56px;height:56px;display:flex;border-radius:50%;align-items:center;justify-content:center;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color)}.ibiz-chat-minimize__content:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-minimize__content svg{fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-minimize__content.is-show-border{border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover{left:50%;bottom:90px;padding:8px;display:block;font-size:12px;border-radius:8px;position:absolute;transform:translate(-50%);box-shadow:0 2px 8px rgba(0,0,0,.1);background-color:var(--ibiz-ai-chat-background-color);color:var(--ibiz-ai-chat-color);border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover .typewriter{direction:rtl;overflow:hidden;max-width:200px;width:fit-content;white-space:nowrap;text-overflow:ellipsis;animation:typing 3s steps(40,end)}@keyframes blink{0%,to{opacity:0}50%{opacity:1}}@keyframes typing{0%{width:0}to{width:100%}}@keyframes blink-caret{0%,to{border-color:transparent}50%{border-color:var(--ibiz-ai-chat-color)}}.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-ai-chat-scroll-bar-width: 8px;--ibiz-ai-chat-scroll-bar-height: 8px;--ibiz-ai-chat-scroll-bar-radius: 4px}.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__toolbar{margin:0;left:20px;gap:8px 4px;bottom:118px;min-height:48px;position:absolute;justify-content:center;width:calc(100% - 40px)}.ibiz-chat-container__toolbar.is-has-materials{bottom:180px}.ibiz-chat-container *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-container *::-webkit-scrollbar-thumb{border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.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-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.21/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.21/index.system.min.js new file mode 100644 index 0000000000000000000000000000000000000000..a6073ff977ed21ad812b77305cf453dc5436287a --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.21/index.system.min.js @@ -0,0 +1 @@ +!function(){function e(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)}function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,n)}function n(e){var t=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(e){return!1}}();return function(){var n,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}(this,n)}}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||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(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(e,t)||c(e,t)||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(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);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;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:I(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function h(e,t,n,i,r,o,a){try{var c=e[o](a),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(i,r)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){h(o,i,r,a,c,"next",e)}function c(e){h(o,i,r,a,c,"throw",e)}a(void 0)}))}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===c[a]&&(c[a]=e.defaultProps[a]);return O(e,c,i,o,null)}function O(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++h:r};return null==r&&null!=l.vnode&&l.vnode(o),o}function L(e){return e.children}function I(e,t){this.props=e,this.context=t}function D(e,t){if(null==t)return e.__?D(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&y.sort(x));B.__r=0}function H(e,t,n,i,r,o,a,c,s,l,u){var d,h,p,f,v,m,_,g,y,w=0,b=i&&i.__k||T,x=b.length,k=x,N=t.length;for(n.__k=[],d=0;d0?O(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)?(f.__=n,f.__b=n.__b+1,-1===(g=V(f,b,_=d+w,k))?p=C:(p=b[g]||C,b[g]=void 0,k--),$(e,f,p,r,o,a,c,s,l,u),v=f.__e,(h=f.ref)&&p.ref!=h&&(p.ref&&Z(p.ref,null,f),u.push(h,f.__c||v,f)),null!=v&&(null==m&&(m=v),(y=p===C||null===p.__v)?-1==g&&w--:g!==_&&(g===_+1?w++:g>_?k>N-_?w+=g-_:w--:w=g<_&&g==_-1?g-_:0),_=d+w,"function"!=typeof f.type||g===_&&p.__k!==f.__k?"function"==typeof f.type||g===_&&!y?void 0!==f.__d?(s=f.__d,f.__d=void 0):s=v.nextSibling:s=R(e,v,s):s=j(f,s,e),"function"==typeof n.type&&(n.__d=s))):(p=b[d])&&null==p.key&&p.__e&&(p.__e==s&&(p.__=i,s=D(p)),G(p,p,!1),b[d]=null);for(n.__e=m,d=x;d--;)null!=b[d]&&("function"==typeof n.type&&null!=b[d].__e&&b[d].__e==n.__d&&(n.__d=b[d].__e.nextSibling),G(b[d],b[d]))}function j(e,t,n){for(var i,r=e.__k,o=0;r&&o(null!=s?1:0))for(;a>=0||c=0){if((s=t[a])&&r==s.key&&o===s.type)return a;a--}if(c0&&void 0!==arguments[0]?arguments[0]:"";return Q(this.namespace,this.block,e,"","")}},{key:"e",value:function(e){return e?Q(this.namespace,this.block,"",e,""):""}},{key:"m",value:function(e){return e?Q(this.namespace,this.block,"","",e):""}},{key:"be",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,t,""):""}},{key:"em",value:function(e,t){return e&&t?Q(this.namespace,this.block,"",e,t):""}},{key:"bm",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,"",t):""}},{key:"bem",value:function(e,t,n){return e&&t&&n?Q(this.namespace,this.block,e,t,n):""}},{key:"is",value:function(e,t){return e&&t?"".concat("is-").concat(e):""}},{key:"cssVar",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarName(n)]=e[n]);return t}},{key:"cssVarBlock",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarBlockName(n)]=e[n]);return t}},{key:"cssVarName",value:function(e){return"--".concat(this.namespace,"-").concat(e)}},{key:"cssVarBlockName",value:function(e){return"--".concat(this.namespace,"-").concat(this.block,"-").concat(e)}}]),e}();function te(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ne(e,t){for(var n,i="",r=0,o=-1,a=0,c=0;c<=e.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}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(o+1,c):i=e.slice(o+1,c),r=c-o-1;o=c,a=0}else 46===n&&-1!==a?++a:a=-1}return i}var ie={resolve:function(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var r;i>=0?r=arguments[i]:(void 0===e&&(e=process.cwd()),r=e),te(r),0!==r.length&&(t=r+"/"+t,n=47===r.charCodeAt(0))}return t=ne(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(te(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=ne(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return te(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":ie.normalize(e)},relative:function(e,t){if(te(e),te(t),e===t)return"";if((e=ie.resolve(e))===(t=ie.resolve(t)))return"";for(var n=1;nc){if(47===t.charCodeAt(o+l))return t.slice(o+l+1);if(0===l)return t.slice(o+l)}else r>c&&(47===e.charCodeAt(n+l)?s=l:0===l&&(s=0));break}var u=e.charCodeAt(n+l);if(u!==t.charCodeAt(o+l))break;47===u&&(s=l)}var d="";for(l=n+s+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(o+s):(o+=s,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(te(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,r=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');te(e);var n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,c=-1;for(n=e.length-1;n>=0;--n){var s=e.charCodeAt(n);if(47===s){if(!o){i=n+1;break}}else-1===c&&(o=!1,c=n+1),a>=0&&(s===t.charCodeAt(a)?-1==--a&&(r=n):(a=-1,r=c))}return i===r?r=c:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){te(e);for(var t=-1,n=0,i=-1,r=!0,o=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(r=!1,i=a+1),46===c?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=a+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==f(e))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+f(e));return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}("/",e)},parse:function(e){te(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0),r=47===i;r?(t.root="/",n=1):n=0;for(var o=-1,a=0,c=-1,s=!0,l=e.length-1,u=0;l>=n;--l)if(47!==(i=e.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&&(t.base=t.name=0===a&&r?e.slice(1,c):e.slice(a,c)):(0===a&&r?(t.name=e.slice(1,o),t.base=e.slice(1,c)):(t.name=e.slice(a,o),t.base=e.slice(a,c)),t.ext=e.slice(o,c)),a>0?t.dir=e.slice(0,a-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};function re(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function oe(){return"".concat(re()+re(),"-").concat(re(),"-").concat(re(),"-").concat(re(),"-").concat(re()).concat(re()).concat(re())}ie.posix=ie;var ae=/]*>[\s\S]*?<\/svg>/;function ce(e){return ae.test(e)}var se=function(){function e(){v(this,e)}return _(e,null,[{key:"copy",value:function(e){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=e,this.inputElement.select(),document.execCommand("copy")}}]),e}();g(se,"inputElement",null);var le=function(){function e(){v(this,e)}var t,n,i,r,o,a,c,s,l,u;return _(e,null,[{key:"checkDataBaseExists",value:(u=p(d().mark((function e(t){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,indexedDB.databases();case 3:return n=e.sent,e.abrupt("return",n.some((function(e){return e.name===t})));case 7:return e.prev=7,e.t0=e.catch(0),console.error("检查数据库是否存在时出错:",e.t0),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])}))),function(e){return u.apply(this,arguments)})},{key:"deleteDatabase",value:(l=p(d().mark((function t(n){var i,r;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.lastLink&&(null===(i=(r=e.lastLink).close)||void 0===i||i.call(r)),t.abrupt("return",new Promise((function(e,t){var i=indexedDB.deleteDatabase(n);i.onsuccess=function(){e(!0)},i.onerror=function(){e(!1)},i.onblocked=function(){console.warn("删除数据库 ".concat(n," 被阻塞,可能有其他连接正在使用该数据库。")),t(new Error("删除数据库 ".concat(n," 被阻塞")))}})));case 2:case"end":return t.stop()}}),t)}))),function(e){return l.apply(this,arguments)})},{key:"checkTableExists",value:(s=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.checkDataBaseExists(n);case 2:if(t.sent){t.next=5;break}return t.abrupt("return",!1);case 5:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onupgradeneeded=function(t){e.db=t.target.result,e.version=e.db.version},o.onsuccess=function(n){e.db=n.target.result,e.lastLink=o.result;var r=e.db.objectStoreNames.contains(i);o.result.close(),t(r)},o.onerror=function(e){r(e.target.error)}})));case 6:case"end":return t.stop()}}),t)}))),function(e,t){return s.apply(this,arguments)})},{key:"createTable",value:(c=p(d().mark((function t(n,i,r){var o,a=arguments;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=a.length>3&&void 0!==a[3]&&a[3],t.abrupt("return",new Promise((function(t){var a,c;e.version+=1,e.lastLink&&(null===(a=(c=e.lastLink).close)||void 0===a||a.call(c));var s=indexedDB.open(n,e.version);s.onupgradeneeded=function(t){if(e.db=t.target.result,!e.db.objectStoreNames.contains(i)){var n={};r?n.keyPath=r:o&&(n.autoIncrement=!0),e.db.createObjectStore(i,n)}},s.onsuccess=function(){e.lastLink=s.result,s.result.close(),t(!0)},s.onerror=function(){t(!1)}})));case 2:case"end":return t.stop()}}),t)}))),function(e,t,n){return c.apply(this,arguments)})},{key:"deleteTable",value:(a=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){var r,o;e.version+=1,e.lastLink&&(null===(r=(o=e.lastLink).close)||void 0===r||r.call(o));var a=indexedDB.open(n,e.version);a.onupgradeneeded=function(t){e.db=t.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)&&e.db.deleteObjectStore(i)},a.onsuccess=function(n){e.db=n.target.result,e.lastLink=a.result,a.result.close(),t(!0)},a.onerror=function(){a.result.close(),t(!1)}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t){return a.apply(this,arguments)})},{key:"addData",value:(o=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).add(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(null)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return o.apply(this,arguments)})},{key:"deleteData",value:(r=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).delete(r);o.onsuccess=function(e){t(!0)},o.onerror=function(){t(!1)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"updateData",value:(i=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).put(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(r)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"getData",value:(n=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var c=e.db.transaction([i],"readonly").objectStore(i).get(r);c.onsuccess=function(e){t(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 t.stop()}}),t)}))),function(e,t,i){return n.apply(this,arguments)})},{key:"getAllData",value:(t=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=o.result,e.db.objectStoreNames.contains(i)){var r=e.db.transaction([i],"readonly").objectStore(i).getAll();r.onsuccess=function(e){t(r.result)},r.onerror=function(){t([])}}o.result.close()},o.onerror=function(){o.result.close(),r()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}]),e}();g(le,"version",1),g(le,"db",null),g(le,"lastLink",void 0);var ue=function(){function e(t){v(this,e),g(this,"options",void 0),this.options=u({multiple:!0,accept:"*/*",maxSize:5242880},t)}var t,n;return _(e,[{key:"openFilePicker",value:function(){var e=this,t=document.createElement("input");t.type="file",t.multiple=this.options.multiple,t.accept=this.options.accept||"",t.onchange=function(t){var n=Array.from(t.target.files||[]);e.handleFiles(n)},t.click()}},{key:"handleFiles",value:(n=p(d().mark((function e(t){var n,i,r,o=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.length){e.next=2;break}return e.abrupt("return");case 2:return r=t.filter((function(e){var t,n;return!(o.options.maxSize&&e.size>o.options.maxSize&&(null===(t=(n=o.options).onError)||void 0===t||t.call(n,new Error("文件大小超过限制 (".concat(o.formatSize(e.size)," > ").concat(o.formatSize(o.options.maxSize),")")),e),1))})),null===(n=(i=this.options).onSelect)||void 0===n||n.call(i,r),e.next=6,Promise.all(r.map((function(e){return o.processFile(e)})));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"processFile",value:(t=p(d().mark((function e(t){var n,i,r,o,a,c,s,l,u=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a=function(e){var n,i;null===(n=(i=u.options).onProgress)||void 0===n||n.call(i,t,e)},e.next=4,this.options.onUpload(t,a);case 4:c=e.sent,null===(n=(i=this.options).onProgress)||void 0===n||n.call(i,t,100),null===(r=(o=this.options).onSuccess)||void 0===r||r.call(o,c,t),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),null===(s=(l=this.options).onError)||void 0===s||s.call(l,e.t0 instanceof Error?e.t0:new Error("上传失败"),t);case 12:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e){return t.apply(this,arguments)})},{key:"formatSize",value:function(e){if(0===e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat((e/Math.pow(1024,t)).toFixed(2)," ").concat(["B","KB","MB","GB"][t])}}]),e}(),de=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("resource")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r),c=o?JSON.parse(o):{},s=a?JSON.parse(a):{};return{id:c.id,type:n,data:c,metadata:s}}catch(Jn){throw new Error("XML 解析错误: ".concat(Jn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/resources>/i.exec(e);if(!t)return{resources:[],remainingText:e,hasResources:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.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(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("resources");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("resource");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}(),he=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("suggestion")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r);return{type:n,data:o?JSON.parse(o):{},metadata:a?JSON.parse(a):{}}}catch(Jn){throw new Error("XML 解析错误: ".concat(Jn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/suggestions>/i.exec(e);if(!t)return{suggestions:[],remainingText:e,hasSuggestions:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.slice(r)).replace(/\n/g,"");try{return{suggestions:this.parse(n),remainingText:o,hasSuggestions:!0}}catch(c){return{suggestions:[],remainingText:o,hasSuggestions:!0,error:"资源解析失败: ".concat(c.message)}}}},{key:"stringify",value:function(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("suggestions");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("suggestion");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}();function pe(e){return e.x>=0&&e.x<=1&&e.y>=0&&e.y<=1}function fe(e,t,n,i){var r=e/window.innerWidth,o=t/window.innerHeight;return{x:Math.max(0,Math.min(r,1-n)),y:Math.max(0,Math.min(o,1-i))}}var ve,me,_e,ge,ye=0,we=[],be=[],xe=l.__b,ke=l.__r,Ce=l.diffed,Te=l.__c,Ne=l.unmount;function Ee(e,t){l.__h&&l.__h(me,e,ye||t),ye=0;var n=me.__H||(me.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:be}),n.__[e]}function Se(e){return ye=1,function(e,t,n){var i=Ee(ve++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):Fe(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=me,!me.u)){var r=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var a=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&i.__c.props===e)&&(!o||o.call(this,e,t,n))};me.u=!0;var o=me.shouldComponentUpdate,a=me.componentWillUpdate;me.componentWillUpdate=function(e,t,n){if(this.__e){var i=o;o=void 0,r(e,t,n),o=i}a&&a.call(this,e,t,n)},me.shouldComponentUpdate=r}return i.__N||i.__}(Fe,e)}function Ae(e,t){var n=Ee(ve++,3);!l.__s&&je(n.__H,t)&&(n.__=e,n.i=t,me.__H.__h.push(n))}function Me(e){return ye=5,Oe((function(){return{current:e}}),[])}function Oe(e,t){var n=Ee(ve++,7);return je(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Le(e,t){return ye=8,Oe((function(){return e}),t)}function Ie(e){var t=me.context[e.__c],n=Ee(ve++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(me)),t.props.value):e.__}function De(){for(var e;e=we.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Be),e.__H.__h.forEach(He),e.__H.__h=[]}catch(ei){e.__H.__h=[],l.__e(ei,e.__v)}}l.__b=function(e){me=null,xe&&xe(e)},l.__r=function(e){ke&&ke(e),ve=0;var t=(me=e.__c).__H;t&&(_e===me?(t.__h=[],me.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=be,e.__N=e.i=void 0}))):(t.__h.forEach(Be),t.__h.forEach(He),t.__h=[],ve=0)),_e=me},l.diffed=function(e){Ce&&Ce(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==we.push(t)&&ge===l.requestAnimationFrame||((ge=l.requestAnimationFrame)||Pe)(De)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==be&&(e.__=e.__V),e.i=void 0,e.__V=be}))),_e=me=null},l.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Be),e.__h=e.__h.filter((function(e){return!e.__||He(e)}))}catch(Ge){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l.__e(Ge,e.__v)}})),Te&&Te(e,t)},l.unmount=function(e){Ne&&Ne(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Be(e)}catch(e){t=e}})),n.__H=void 0,t&&l.__e(t,n.__v))};var ze="function"==typeof requestAnimationFrame;function Pe(e){var t,n=function(){clearTimeout(i),ze&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);ze&&(t=requestAnimationFrame(n))}function Be(e){var t=me,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),me=t}function He(e){var t=me;e.__c=e.__(),me=t}function je(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Fe(e,t){return"function"==typeof t?t(e):t}function Re(){throw new Error("Cycle detected")}var Ve=Symbol.for("preact-signals");function We(){if(Xe>1)Xe--;else{for(var e,t=!1;void 0!==$e;){var n=$e;for($e=void 0,Ze++;void 0!==n;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&et(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=i}}if(Ze=0,Xe--,t)throw e}}var Ue,qe,Ye=void 0,$e=void 0,Xe=0,Ze=0,Ge=0;function Je(e){if(void 0!==Ye){var t=e.n;if(void 0===t||t.t!==Ye)return t={i:0,S:e,p:Ye.s,n:void 0,t:Ye,e:void 0,x:void 0,r:t},void 0!==Ye.s&&(Ye.s.n=t),Ye.s=t,e.n=t,32&Ye.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=Ye.s,t.n=void 0,Ye.s.n=t,Ye.s=t),t}}function Ke(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Qe(e){return new Ke(e)}function et(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function tt(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function nt(e){for(var t=e.s,n=void 0;void 0!==t;){var i=t.p;-1===t.i?(t.S.U(t),void 0!==i&&(i.n=t.n),void 0!==t.n&&(t.n.p=i)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=i}e.s=n}function it(e){Ke.call(this,void 0),this.x=e,this.s=void 0,this.g=Ge-1,this.f=4}function rt(e){return new it(e)}function ot(e){var t=e.u;if(e.u=void 0,"function"==typeof t){Xe++;var n=Ye;Ye=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,at(e),t}finally{Ye=n,We()}}}function at(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ot(e)}function ct(e){if(Ye!==this)throw new Error("Out-of-order effect");nt(this),Ye=e,this.f&=-2,8&this.f&&at(this),We()}function st(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function lt(e){var t=new st(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function ut(e,t){l[e]=t.bind(null,l[e]||function(){})}function dt(e){qe&&qe(),qe=e&&e.S()}function ht(e){var t=this,n=e.data,i=ft(n);i.value=n;var r=Oe((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e;m(r.peek())||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=r.peek()},rt((function(){var e=i.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return r.value}function pt(e,t,n,i){var r=t in e&&void 0===e.ownerSVGElement,o=Qe(n);return{o:function(e,t){o.value=e,i=t},d:lt((function(){var n=o.value.value;i[t]!==n&&(i[t]=n,r?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}function ft(e){return Oe((function(){return Qe(e)}),[])}function vt(e){var t=Me(e);return t.current=e,Ue.__$f|=4,Oe((function(){return rt((function(){return t.current()}))}),[])}Ke.prototype.brand=Ve,Ke.prototype.h=function(){return!0},Ke.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},Ke.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Ke.prototype.subscribe=function(e){var t=this;return lt((function(){var n=t.value,i=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=i}}))},Ke.prototype.valueOf=function(){return this.value},Ke.prototype.toString=function(){return this.value+""},Ke.prototype.toJSON=function(){return this.value},Ke.prototype.peek=function(){return this.v},Object.defineProperty(Ke.prototype,"value",{get:function(){var e=Je(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(Ye instanceof it&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Ze>100&&Re(),this.v=e,this.i++,Ge++,Xe++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{We()}}}}),(it.prototype=new Ke).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Ge)return!0;if(this.g=Ge,this.f|=1,this.i>0&&!et(this))return this.f&=-2,!0;var e=Ye;try{tt(this),Ye=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return Ye=e,nt(this),this.f&=-2,!0},it.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Ke.prototype.S.call(this,e)},it.prototype.U=function(e){if(void 0!==this.t&&(Ke.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},it.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},it.prototype.peek=function(){if(this.h()||Re(),16&this.f)throw this.v;return this.v},Object.defineProperty(it.prototype,"value",{get:function(){1&this.f&&Re();var e=Je(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),st.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},st.prototype.S=function(){1&this.f&&Re(),this.f|=1,this.f&=-9,ot(this),tt(this),Xe++;var e=Ye;return Ye=this,ct.bind(this,e)},st.prototype.N=function(){2&this.f||(this.f|=2,this.o=$e,$e=this)},st.prototype.d=function(){this.f|=8,1&this.f||at(this)},ht.displayName="_st",Object.defineProperties(Ke.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ht},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),ut("__b",(function(e,t){if("string"==typeof t.type){var n,i=t.props;for(var r in i)if("children"!==r){var o=i[r];o instanceof Ke&&(n||(t.__np=n={}),n[r]=o,i[r]=o.peek())}}e(t)})),ut("__r",(function(e,t){dt();var n,i=t.__c;i&&(i.__$f&=-2,void 0===(n=i.__$u)&&(i.__$u=n=function(e){var t;return lt((function(){t=this})),t.c=function(){i.__$f|=1,i.setState({})},t}())),Ue=i,dt(n),e(t)})),ut("__e",(function(e,t,n,i){dt(),Ue=void 0,e(t,n,i)})),ut("diffed",(function(e,t){var n;if(dt(),Ue=void 0,"string"==typeof t.type&&(n=t.__e)){var i=t.__np,r=t.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=pt(n,s,u,r),o[s]=l):l.o(u,r)}}}e(t)})),ut("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__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=t.__c;if(a){var c=a.__$u;c&&(a.__$u=void 0,c.d())}}e(t)})),ut("__h",(function(e,t,n,i){(i<3||9===i)&&(t.__$f|=2),e(t,n,i)})),I.prototype.shouldComponentUpdate=function(e,t){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 t)return!0;for(var r in e)if("__source"!==r&&e[r]!==this.props[r])return!0;for(var o in this.props)if(!(o in e))return!0;return!1};var mt=0;function _t(e,t,n,i,r,o){var a,c,s={};for(c in t)"ref"==c?a=t[c]:s[c]=t[c];var u={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--mt,__source:r,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===s[c]&&(s[c]=a[c]);return l.vnode&&l.vnode(u),u}var gt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},yt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},wt=function(e){return _t("svg",{viewBox:"0 0 1024 1024",id:"send",className:e.className,version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},bt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},xt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},kt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Ct=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Tt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Nt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M960 544H64a32 32 0 1 1 0-64h896a32 32 0 1 1 0 64"})})},Et=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[_t("path",{d:"M481.0752 263.3728l50.9952 1.024 1.8432-105.8816-50.9952-0.8192z"}),_t("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"}),_t("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"}),_t("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"}),_t("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"}),_t("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"})]})},St=function(){return _t("svg",{viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_t("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"}),_t("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"}),_t("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"})]})},At=function(){return _t("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_t("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"})})},Mt=function(){var e=1e3,t=140,n=250,i=.8;return _t("svg",{fill:"currentColor",viewBox:"0 0 ".concat(e," ").concat(e),xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:Array.from({length:4}).map((function(e,r){return _t("rect",{fill:"currentColor",rx:70,ry:70,height:n,width:t,x:286.66666666666663*r,y:375,children:[_t("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"}),_t("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)}))})},Ot=function(e){return _t("svg",{className:e.className,onClick:e.onClick,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Lt=function(e){return _t("svg",{className:e.className,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},It=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M972.657609 209.348408C987.158609 209.36839 998.930114 197.571202 998.949999 182.99865 998.969882 168.426097 987.230618 156.59651 972.729617 156.576528L32.457975 155.280806C17.956974 155.260823 6.18547 167.058012 6.165585 181.630564 6.1457 196.203116 17.884965 208.032703 32.385966 208.052686L972.657609 209.348408ZM180.466902 992.356169 180.466902 1019.014859 206.993296 1018.74074 833.361858 1012.267947 859.348284 1011.999407 859.348284 985.883377 859.348284 289.397297C859.348284 274.824732 847.59289 263.011332 833.091874 263.011332 818.590859 263.011332 806.835465 274.824732 806.835465 289.397297L806.835465 985.883377 832.82189 959.498805 206.453329 965.971599 232.979723 992.356169 232.979723 282.67005C232.979723 268.097483 221.224329 256.284085 206.723313 256.284085 192.222298 256.284085 180.466902 268.097483 180.466902 282.67005L180.466902 992.356169ZM656.410257 847.079027C656.410257 861.651593 668.165651 873.464992 682.666667 873.464992 697.167682 873.464992 708.923076 861.651593 708.923076 847.079027L708.923076 372.131659C708.923076 357.559091 697.167682 345.745694 682.666667 345.745694 668.165651 345.745694 656.410257 357.559091 656.410257 372.131659L656.410257 847.079027ZM341.333333 847.079027C341.333333 861.651593 353.08873 873.464992 367.589743 873.464992 382.090758 873.464992 393.846155 861.651593 393.846155 847.079027L393.846155 372.131659C393.846155 357.559091 382.090758 345.745694 367.589743 345.745694 353.08873 345.745694 341.333333 357.559091 341.333333 372.131659L341.333333 847.079027ZM498.871795 847.079027C498.871795 861.651593 510.627189 873.464992 525.128205 873.464992 539.62922 873.464992 551.384614 861.651593 551.384614 847.079027L551.384614 372.131659C551.384614 357.559091 539.62922 345.745694 525.128205 345.745694 510.627189 345.745694 498.871795 357.559091 498.871795 372.131659L498.871795 847.079027ZM392.147755 116.721777C392.147755 102.063669 403.758665 90.363507 418.40134 90.363507L622.925796 90.363507C637.408947 90.363507 649.179381 102.1619 649.179381 116.549585L649.179381 171.644875 701.692203 171.644875 701.692203 116.549585C701.692203 72.986607 666.38105 37.591577 622.925796 37.591577L418.40134 37.591577C374.724427 37.591577 339.634933 72.950804 339.634933 116.721777L339.634933 165.310801 392.147755 165.310801 392.147755 116.721777Z"})})},Dt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 184l144 144 144-144"})})},zt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"".concat(e.className," icon"),viewBox:"0 0 512 512",children:_t("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"})})},Pt=function(e){return _t("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",children:_t("circle",{cx:"25",cy:"25",r:"20",stroke:"currentColor",strokeWidth:"5",fill:"none",strokeDasharray:"31.415, 31.415",strokeLinecap:"round",children:_t("animateTransform",{attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"1s",repeatCount:"indefinite"})})})},Bt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ht=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},jt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ft=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Rt=function(e){return _t("svg",{className:e.className,id:"stop",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},Vt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})})},Wt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("path",{d:"M394.688 126.208a32 32 0 0 1 32-32h170.688a32 32 0 0 1 32 32v138.624h288a32 32 0 0 1 32 32v170.688a32 32 0 0 1-32 32H106.688a32 32 0 0 1-32-32V296.832a32 32 0 0 1 32-32h288V126.208z m64 32v138.624a32 32 0 0 1-32 32h-288v106.688h746.688V328.832h-288a32 32 0 0 1-32-32V158.208H458.688z"}),_t("path",{d:"M138.688 469.376a32 32 0 0 1 32-32h682.688a32 32 0 0 1 32 32v384a32 32 0 0 1-32 32H170.688a32 32 0 0 1-32-32v-384z m64 32v320h618.688v-320H202.688z"}),_t("path",{d:"M341.376 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32zM512 691.2a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0v-128a32 32 0 0 1 32-32zM682.688 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32z"})]})},Ut=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("path",{d:"M843.251 424.407l43.828-74.898c10.194-17.946 32.596-22.158 48.956-11.598 16.298 10.499 23.44 32.658 14.223 49.566l-113.11 195.212-61.164-40.044-126.418-82.285c-16.115-11.598-20.632-34.428-10.194-51.702 9.705-17.397 31.009-23.501 47.857-13.734l89.67 59.028C748.576 295.547 615.81 180.667 461.008 180.667c-177.387 0-320.042 148.758-320.042 331.335 0 183.613 143.692 331.334 319.981 331.334 107.861 0.184 208.58-56.158 268.034-149.858 1.099-1.038 1.099-2.075 2.075-2.075 6.348-9.949 17.092-15.871 28.568-15.81 19.35 0 35.648 16.848 35.648 36.93 0 7.508-2.137 14.833-6.104 21.059-72.823 114.698-196.066 183.675-328.099 183.614-216.088 0-391.4-181.478-391.4-405.195 0-223.718 175.312-405.195 391.339-405.195 183.125-0.427 342.016 131.606 382.243 317.601z"})})},qt=function(){return _t("svg",{version:"1.1",className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M627.498667 55.168l170.666666 170.666667a42.624 42.624 0 0 1 0 60.330666l-469.333333 469.333334A42.538667 42.538667 0 0 1 298.666667 768H128a42.666667 42.666667 0 0 1-42.666667-42.666667v-170.666666c0-11.306667 4.48-22.186667 12.501334-30.165334l469.333333-469.333333a42.624 42.624 0 0 1 60.330667 0zM896 896a42.666667 42.666667 0 0 1 0 85.333333H128a42.666667 42.666667 0 0 1 0-85.333333h768zM597.333333 145.664l-426.666666 426.666667V682.666667h110.336l426.666666-426.666667L597.333333 145.664z"})})},Yt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M184 112l144 144-144 144"})})},$t=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M896 870.4l-128-128c55.467-68.267 89.6-149.333 89.6-238.933 0-98.134-38.4-192-110.933-264.534-149.334-149.333-384-149.333-533.334-4.266-145.066 145.066-145.066 384 0 529.066 72.534 72.534 166.4 110.934 264.534 110.934 89.6 0 174.933-29.867 238.933-89.6l128 128c4.267 4.266 12.8 8.533 21.333 8.533s17.067-4.267 21.334-8.533c17.066-8.534 17.066-29.867 8.533-42.667zM260.267 721.067c-119.467-123.734-119.467-320 0-439.467 59.733-59.733 140.8-89.6 217.6-89.6 81.066 0 157.866 29.867 217.6 89.6 59.733 59.733 89.6 136.533 89.6 217.6 0 81.067-34.134 162.133-89.6 217.6-55.467 59.733-132.267 93.867-217.6 93.867-81.067 0-157.867-34.134-217.6-89.6z"})})},Xt=function(e){var t=e.items,n=ft([]),i=new ee("chat-thought-chain"),r=ft([]);Ae((function(){r.value=t.filter((function(e){return e.description})),r.value.length>0&&r.value.forEach((function(e,t){e.done&&(n.value=[].concat(o(n.value),[t]))}))}),[t]);return 0===r.value.length?null:_t("div",{className:"".concat(i.b()," ").concat(i.is("single",1===r.value.length)),children:r.value.map((function(e,t){if(e.description){var r=n.value.includes(t);return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("collapsed",r)),children:[_t("div",{className:i.e("item-icon"),children:e.icon||_t("span",{children:t})}),_t("div",{className:i.e("item-content"),children:[_t("div",{className:i.e("item-title"),onClick:function(){return function(e){n.value.includes(e)?n.value=n.value.filter((function(t){return t!==e})):n.value=[].concat(o(n.value),[e])}(t)},children:[e.title,_t(Dt,{className:i.e("icon")})]}),_t("div",{className:i.e("item-description"),children:e.description})]})]},t)}}))})},Zt=function(e){var t=e.items,n=e.onItemClick,i=new ee("chat-suggestions");return _t("div",{className:"".concat(i.b()),children:t.map((function(e,t){return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("action","action"===e.type)),onClick:function(t){return function(e,t){null==n||n(e,t)}(e,t)},title:e.metadata.content_name,children:[e.metadata.content_name,_t(Yt,{className:"".concat(i.e("item-icon"))})]},t)}))})},Gt=new ee("markdown-message"),Jt=function(e){var t=e.message,n=e.size,i=ft(oe()),r=ft(null),o=Oe((function(){return 20===t.state&&!0!==t.completed}),[t.state,t.completed]),a=Oe((function(){return 20===t.state&&!0===t.completed}),[t.state,t.completed]),c=ft({title:"",description:"",icon:_t(Pt,{})}),l=ft({hasSuggestions:!1,suggestions:[]}),u=function(e){e&&e.length>0?l.value={hasSuggestions:!0,suggestions:e}:l.value={hasSuggestions:!1,suggestions:[]}},d=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="",o=!1;return-1===n?(o=!1,i=e.slice(t+7),r=""):(o=!0,i=e.slice(t+7,n),r=e.slice(n+8)),{isThoughtCompleted:o,thoughtContent:i,answerContent:r}};return Ae((function(){if(n>=0&&r.value){if(-1!==t.content.indexOf("")){var e=d(t.content),i=e.isThoughtCompleted,o=e.thoughtContent,a=e.answerContent;i?(c.value.icon=_t(zt,{}),c.value.title="思考完成"):!0===t.completed?(c.value.icon=_t(zt,{}),c.value.title="思考已停止"):(c.value.icon=_t(Pt,{}),c.value.title="思考中..."),c.value.description=o||"",r.value.setMarkdown(a||"")}else r.value.setMarkdown(t.content||"");u(t.suggestions)}}),[t,n]),Ae((function(){var e="";if(-1!==t.content.indexOf("")){var n=d(t.content),o=n.isThoughtCompleted,a=n.thoughtContent,l=n.answerContent;c.value={title:o?"思考完成":!0===t.completed?"思考已停止":"思考中...",description:a||"",icon:o||!0===t.completed?_t(zt,{}):_t(Pt,{})},l&&(e=l)}else e=t.content;u(t.suggestions),r.value=new s({id:i,value:e||"",editor:{defaultModel:"previewOnly"}})}),[]),_t("div",{className:"".concat(Gt.b()," ").concat(Gt.is("loading",o)),children:[_t("div",{className:Gt.b("header"),children:[_t("div",{className:Gt.be("header","caption"),children:"AI "}),e.children,a?_t("div",{className:Gt.be("header","timeout"),children:"请求超时"}):null]}),_t("div",{className:"".concat(Gt.b("content")," pre-wrap-container"),children:[_t(Xt,{items:[c.value]}),_t("div",{id:i})]}),_t("div",{className:Gt.b("footer"),children:l.value.hasSuggestions?_t(Zt,{items:l.value.suggestions,onItemClick:function(t,n){!function(t,n){e.controller.handleSuggestionClick(e.message,t,n)}(t,n)}}):null})]})},Kt=new ee("ossfile-material"),Qt=function(e){var t=vt((function(){return e.material.data.name})),n=vt((function(){return e.material.metadata.size})),i=vt((function(){var t=e.material.metadata.state;return"successed"===t?"上传成功":"uploading"===t?"上传中":"failed"===t?"上传失败":"未知状态"})),r=vt((function(){switch(e.material.metadata.state){case"successed":return"#1890ff";case"uploading":return"#52c41a";default:return"#ff4d4f"}}));return _t("div",{className:Kt.b(),children:[_t("div",{className:Kt.b("left"),children:_t(Ht,{})}),_t("div",{className:Kt.b("right"),children:[_t("div",{className:Kt.e("name"),title:t,children:t}),_t("div",{className:Kt.e("metadata"),children:[_t("div",{children:[n,"B"]}),_t("div",{style:{color:r.value},children:i})]})]})]})},en=new ee("common-material"),tn=function(e){var t,n,i,r,o=null===(t=e.controller.opts.questionToolbarItems)||void 0===t?void 0:t.find((function(t){return t.id===e.material.metadata.actionId})),a=vt((function(){return e.material.metadata.name}));return _t("div",{className:en.b(),children:[_t("div",{className:en.b("left"),children:o&&o.icon?"function"==typeof o.icon?o.icon():(null===(n=o.icon)||void 0===n?void 0:n.showIcon)&&_t(L,{children:null!==(i=o.icon)&&void 0!==i&&i.cssClass?_t("i",{className:o.icon.cssClass}):null!==(r=o.icon)&&void 0!==r&&r.imagePath?ce(o.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:o.icon.imagePath}}):_t("img",{src:o.icon.imagePath}):null}):_t(Ft,{})}),_t("div",{className:en.b("right"),children:[_t("div",{className:en.e("name"),title:a,children:a}),_t("div",{className:en.e("metadata"),children:_t("div",{children:(null==o?void 0:o.label)||"素材资源"})})]})]})},nn=new ee("chat-input-material-item"),rn=function(e){var t=e.material,n=null;if("ossfile"===t.type)n=Qt;else n=tn;return _t("div",{className:"".concat(nn.b()," ").concat(nn.is("disabled",e.disabled)),children:[_t("div",{className:nn.e("icon"),onClick:function(){e.controller.deleteMaterial(t)},children:_t(jt,{})}),M(n,{material:t,controller:e.controller})]})},on=new ee("user-message-question"),an=function(e){var t=ft(oe()),n=ft(null),i=vt((function(){return e.message.content})),r=vt((function(){return de.parseMixedContent(i.value)}));return Ae((function(){n.value=new s({id:t,value:r.value.remainingText||"",editor:{defaultModel:"previewOnly"}})}),[r.value.remainingText]),_t("div",{className:on.b(),children:[_t("div",{className:on.e("user-header"),children:[e.children,_t("div",{className:on.e("user"),children:"我"})]}),_t("div",{className:on.e("content"),children:_t("div",{className:on.em("content","body"),children:[r.value.hasResources&&_t("div",{className:on.em("content","material"),children:r.value.resources.map((function(t){return _t(rn,{material:t,disabled:!0,controller:e.controller},t.id)}))}),_t("div",{className:"pre-wrap-container",children:_t("div",{id:t})})]})})]})},cn=new ee("error-message"),sn=function(e){var t=vt((function(){return e.message.content}));return _t("div",{className:cn.b(),children:[_t("div",{className:cn.b("header"),children:[_t("div",{className:cn.be("header","caption"),children:"AI "}),e.children]}),_t("div",{className:"".concat(cn.e("content")," pre-wrap-container"),children:_t("span",{children:t})})]})},ln=new ee("unknown-message"),un=function(e){return _t("div",{className:ln.b(),children:_t("div",{className:"".concat(ln.e("content")," pre-wrap-container"),children:["暂未支持的消息类型: ",e.message.type]})})},dn=new ee("chat-message-item"),hn=function(e){var t=e.message,n=e.size,i=null;switch(t.type){case"DEFAULT":i="ASSISTANT"===t.role?Jt:an;break;case"ERROR":i=sn;break;default:i=un}return _t("div",{className:dn.b(),children:M(i,{size:n,message:t,controller:e.controller,children:e.children})})},pn=function(){function e(t){v(this,e),this.msg=t}return _(e,[{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 e=this.msg.content;if(-1!==e.indexOf("")&&-1===e.indexOf(""))return"";if(-1!==(e=e.replace(/[^]*?<\/think>/g,"").trim()).indexOf("")&&-1===e.indexOf(""))return"";var t=(e=e.replace(/[^]*?<\/resources>/g,"").trim()).indexOf("");return-1!==t&&(e=e.substring(0,t).trim()),e}},{key:"content",get:function(){return this.msg.content}},{key:"completed",get:function(){return this.msg.completed}},{key:"suggestions",get:function(){return this.msg.suggestions}},{key:"_origin",get:function(){return this.msg}},{key:"update",value:function(e){e.content||(e.content=""),-1!==e.content.indexOf("")&&this.msg.content&&(this.msg.content=""),this.msg.content+=e.content}},{key:"updateCompleted",value:function(e){this.msg.completed=e}}]),e}(),fn=function(){function e(t){v(this,e),this.data=t}return _(e,[{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:"sourceCaption",get:function(){return this.data.sourceCaption||this.caption}},{key:"url",get:function(){return this.data.url}},{key:"aiChat",get:function(){return this.data.aiChat}}]),e}(),vn=function(){function e(t){v(this,e),this.material=t}return _(e,[{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}}]),e}(),mn=new ee("chat-toolbar-item"),_n=function(e){var t,n,i,r=e.model,o=e.data,c=e.className,s=e.disabled,l=void 0!==s&&s,u=e.buttonType,d=void 0===u?"default":u,h=e.onClick,p=a(Se(!1),2),f=p[0],v=p[1],m=Me(null),_=function(e){return"function"==typeof e.hidden?e.hidden(o):!0===e.hidden};if(_(r))return _t(L,{});var g=function(e){return!!l||("function"==typeof e.disabled?e.disabled(o):!0===e.disabled)},y=function(e){var t,n,i,r;return"function"==typeof e.icon?e.icon():null!==(t=e.icon)&&void 0!==t&&t.showIcon&&null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.showIcon&&null!==(r=e.icon)&&void 0!==r&&r.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):void 0},w=function(e,t){g(t)||(v(!1),h(e,t))};return Ae((function(){var e=function(e){m.current&&m.current.contains(e.target)||v(!1)};return f&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[f]),_t("div",{className:"".concat(mn.b()," ").concat(mn.b(d)," ").concat(r.customClass||""," ").concat(c||""," ").concat(mn.is("disabled",g(r))," ").concat(mn.is("more",!(null===(t=r.children)||void 0===t||!t.length))),children:[_t("div",{title:r.title,className:mn.e("content"),onClick:function(e){return w(e,r)},children:[_t("div",{className:mn.em("content","icon"),children:y(r)}),_t("div",{className:mn.em("content","label"),children:r.label})]}),(null===(n=r.children)||void 0===n?void 0:n.length)&&_t("div",{title:"更多",className:mn.e("more"),onClick:function(e){g(r)||v(!0)},children:_t("i",{"aria-hidden":"true",className:"fa fa-angle-down ".concat(mn.em("more","icon"))})}),f&&_t("div",{ref:m,className:mn.b("dropdown"),children:null===(i=r.children)||void 0===i?void 0:i.map((function(e,t){if(!_(e))return _t("div",{title:e.title,onClick:function(t){return w(t,e)},className:"".concat(mn.be("dropdown","item")," ").concat(e.customClass||""," ").concat(mn.is("disabled",g(e))),children:[_t("div",{className:mn.bem("dropdown","item","icon"),children:y(e)}),_t("div",{className:mn.bem("dropdown","item","label"),children:e.label})]},t)}))})]})},gn=new ee("chat-toolbar"),yn=function(e){var t=e.controller,n=e.items,i=void 0===n?[]:n,r=e.data,a=e.type,c=e.className,s=Ie(Ci),l=[],d=[{label:"重置对话",title:"重置对话",icon:function(){return _t(Ut,{})},onClick:function(){t.resetTopic()},children:[{label:"清空对话",title:"清空对话",icon:function(){return _t(Wt,{})},onClick:function(){t.clearTopic()}},{label:"新建对话",title:"新建对话",hidden:"TOPIC"!==e.controller.opts.mode,icon:function(){return _t(St,{})},onClick:function(){s.newTopic&&s.newTopic()}}]}],h=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r)}},{label:"删除",title:"删除",icon:function(){return _t(bt,{})},onClick:function(){t.deleteMessage(r)}},{label:"复制",title:"复制",icon:function(){return _t(kt,{})},onClick:function(){t.copyMessage(r)}}];s.enableBackFill&&h.unshift.apply(h,[{label:"回填",title:"回填",icon:function(){return _t(yt,{})},onClick:function(){t.backfill(r)}}]);var p=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r,!0)}}];if("content"===a)switch(r.type){case"DEFAULT":l="ASSISTANT"===r.role?[].concat(h,o(i)):[].concat(p);break;case"ERROR":l=[].concat(h,o(i))}else l=[].concat(d,o(i));var f=function(n,i){var o=u({},r);if(r instanceof pn?(Object.assign(o,{topic:t.topic}),o.msg.realcontent=r.realcontent):Object.assign(o.data,{messages:t.messages.value}),i.onClick&&"function"==typeof i.onClick)i.onClick(n,i,t.context,t.params,o);else{var a=e.controller.opts.extendToolbarClick;a&&"function"==typeof a&&a(n,i,t.context,t.params,o)}},v=Oe((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 _t("div",{className:"".concat(gn.b()," ").concat(c||""),children:l.map((function(e,t){return _t(_n,{data:r,model:e,disabled:v,buttonType:"content"===a?"circle":"default",onClick:f.bind(void 0)},t)}))})};var wn=function(e){var t,n,i,r=ft(!1),o=ft({}),a=new ee("chat-back-bottom"),c=ft(null),s=function(){if(c.value){var t=e.visibilityHeight||200,n=c.value.scrollHeight-c.value.scrollTop-c.value.offsetHeight;r.value=n>=t}},l=(t=s,n=300,i=null,function(){for(var e=this,r=arguments.length,o=new Array(r),a=0;a3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),K(M(Dn,{context:t.context},e.__v),t.l)}function Pn(e,t){var n=M(zn,{__v:e,i:t});return n.containerInfo=t,n}(Ln.prototype=new I).__a=function(e){var t=this,n=On(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),In(t,e,i)):r()};n?n(o):o()}},Ln.prototype.render=function(e){this.u=null,this.o=new Map;var t=F(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ln.prototype.componentDidUpdate=Ln.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){In(e,n,t)}))};var Bn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Hn=/^(?: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]/,jn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Fn=/[A-Z0-9]/g,Rn="undefined"!=typeof document,Vn=function(e){return("undefined"!=typeof Symbol&&"symbol"==f(Symbol())?/fil|che|rad/:/fil|che|ra/).test(e)};I.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(I.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Wn=l.event;function Un(){}function qn(){return this.cancelBubble}function Yn(){return this.defaultPrevented}l.event=function(e){return Wn&&(e=Wn(e)),e.persist=Un,e.isPropagationStopped=qn,e.isDefaultPrevented=Yn,e.nativeEvent=e};var $n={enumerable:!1,configurable:!0,get:function(){return this.class}},Xn=l.vnode;l.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={};for(var r in t){var o=t[r];if(!("value"===r&&"defaultValue"in t&&null==o||Rn&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===o?o="":"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Vn(t.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":jn.test(r)?r=a:-1===n.indexOf("-")&&Hn.test(r)?r=r.replace(Fn,"-$&").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(t.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=F(t.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",$n)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=Bn,Xn&&Xn(e)};var Zn=l.__r;l.__r=function(e){Zn&&Zn(e),e.__c};var Gn=l.diffed;l.diffed=function(e){Gn&&Gn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};var Jn=new Map;function Kn(e){var t=Jn.get(e);t&&t.destroy()}function Qn(e){var t=Jn.get(e);t&&t.update()}var ei=null;"undefined"==typeof window?((ei=function(e){return e}).destroy=function(e){return e},ei.update=function(e){return e}):((ei=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!Jn.has(e)){var t,n=null,i=window.getComputedStyle(e),r=(t=e.value,function(){a({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),o=function(t){e.removeEventListener("autosize:destroy",o),e.removeEventListener("autosize:update",c),e.removeEventListener("input",r),window.removeEventListener("resize",c),Object.keys(t).forEach((function(n){return e.style[n]=t[n]})),Jn.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",o),e.addEventListener("autosize:update",c),e.addEventListener("input",r),window.addEventListener("resize",c),e.style.overflowX="hidden",e.style.wordWrap="break-word",Jn.set(e,{destroy:o,update:c}),c()}function a(t){var r,o,c=t.restoreTextAlign,s=void 0===c?null:c,l=t.testForHeightReduction,u=void 0===l||l,d=i.overflowY;if(0!==e.scrollHeight&&("vertical"===i.resize?e.style.resize="none":"both"===i.resize&&(e.style.resize="horizontal"),u&&(r=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null}))}}(e),e.style.height=""),o="content-box"===i.boxSizing?e.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):e.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&o>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(e.style.overflow="scroll"),o=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(e.style.overflow="hidden"),e.style.height=o+"px",s&&(e.style.textAlign=s),r&&r(),n!==o&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=o),d!==i.overflow&&!s)){var h=i.textAlign;"hidden"===i.overflow&&(e.style.textAlign="start"===h?"end":"start"),a({restoreTextAlign:h,testForHeightReduction:!0})}}function c(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Kn),e},ei.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Qn),e});var ti=ei,ni=function(e){return e.STYLE_CACHE="ai-chat-style-cache",e.MINIMIZE_STYLY_CHCHE="ai-chat-minimize-style-cache",e.DATA_BASE_NAME="ibiz-chat",e.DATA_TABLE_NAME="history-message",e.DATA_TABLE_KEY_NAME="id",e}(ni||{}),ii=function(){function e(t){v(this,e),g(this,"messages",Qe([])),g(this,"materials",Qe([])),g(this,"input",Qe("")),g(this,"isLoading",Qe(!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=t,this.context=t.context,this.params=t.params,this.appDataEntityId=t.appDataEntityId,this.topicId=t.topicId,this.topic=t.topic,this.fecthHistory()}var t,n,i,r,a,c,s;return _(e,[{key:"fecthHistory",value:(s=p(d().mark((function e(){var t,n=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=7;break}return e.next=3,le.getData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 3:if(!((t=e.sent)&&t.data&&t.data.length>0)){e.next=7;break}return t.data.forEach((function(e){var t={messageid:e.messageid,state:e.state,type:e.type,role:e.role,content:e.content,suggestions:e.suggestions,completed:!0};n.addMessage(t)})),e.abrupt("return",!0);case 7:return e.next=9,this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId,appendCurData:this.opts.appendCurData});case 9:return e.sent&&this.opts.appendCurContent&&this.addMessage({state:30,messageid:oe(),role:"USER",type:"DEFAULT",content:this.opts.appendCurContent,completed:!0}),e.abrupt("return",!0);case 12:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"asyncToIndexDB",value:(c=p(d().mark((function e(){var t;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.topicId){e.next=2;break}return e.abrupt("return");case 2:return t={id:this.topicId,data:this.messages.value.map((function(e){return e._origin})),timestamp:(new Date).getTime()},e.next=5,le.updateData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"setInput",value:function(e){this.input.value=e||""}},{key:"addMessage",value:function(e){var t=this.messages.value.find((function(t){return t.messageid===e.messageid}));t?(t.update(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB()}},{key:"completeMessage",value:function(e,t){var n=this.messages.value.find((function(t){return t.messageid===e}));n&&(n.updateCompleted(t),this.messages.value=o(this.messages.value),this.asyncToIndexDB())}},{key:"replaceMessage",value:function(e){var t=this,n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==n?(this.messages.value[n]=new pn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB(),"DEFAULT"===e.type&&this.opts.recommendPrompt&&this.opts.recommendPrompt(this.context,this.params,{appDataEntityId:this.appDataEntityId,message:{messages:[e]}}).then((function(n){n&&n.content&&t.updateRecommendPrompt(e,n.content)}))}},{key:"stopMessage",value:function(e){var t=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));if(-1!==t){var n=this.messages.value[t];e.content=n.content,this.messages.value[t]=new pn(e),this.messages.value=o(this.messages.value)}else this.messages.value=[].concat(o(this.messages.value),[new pn(e)]);this.asyncToIndexDB()}},{key:"stringlyMaterialResource",value:function(){var e="",t=[];return this.materials.value&&this.materials.value.length>0&&(this.materials.value.forEach((function(e){if("ossfile"===e.type){var n=e.metadata;n.state&&"successed"===n.state&&t.push(e)}else t.push(e)})),this.materials.value=[]),t&&t.length>0&&(e=de.stringify(t)),e}},{key:"question",value:(a=p(d().mark((function e(t){var n,i=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.isLoading.value=!0,this.messages.value.forEach((function(e,t){var n=e._origin;n.suggestions&&(n.suggestions=void 0,i.messages.value[t]=new pn(n))})),this.messages.value=o(this.messages.value),this.asyncToIndexDB(),(n=this.stringlyMaterialResource())?n+="\n".concat(t):n=t,this.addMessage({state:30,messageid:oe(),role:"USER",type:"DEFAULT",content:n}),e.next=10,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 10:this.opts.action&&this.opts.action("question",t),this.isLoading.value=!1;case 12:return e.prev=12,this.isLoading.value=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[0,,12,15]])}))),function(e){return a.apply(this,arguments)})},{key:"abortQuestion",value:function(){try{this.opts.abortQuestion(this)}finally{this.isLoading.value=!1}}},{key:"backfill",value:function(e){this.opts.action&&this.opts.action("backfill",e)}},{key:"deleteMessage",value:function(e){var t=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==t&&(this.messages.value.splice(t,1),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),this.opts.action&&this.opts.action("deletemsg",e)}},{key:"refreshMessage",value:(r=p(d().mark((function e(t){var n,i,r,a=arguments;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],this.isLoading.value=!0,e.prev=2,i=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})),!n){e.next=11;break}return this.messages.value.splice(i+1,this.messages.value.length-i-1),this.messages.value=o(this.messages.value),e.next=9,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 9:e.next=21;break;case 11:if(i!==this.messages.value.length-1){e.next=18;break}return this.messages.value.pop(),this.messages.value=o(this.messages.value),e.next=16,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 16:e.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",t);case 23:return e.prev=23,this.isLoading.value=!1,e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[2,,23,26]])}))),function(e){return r.apply(this,arguments)})},{key:"copyMessage",value:function(e){var t=e.realcontent;se.copy(t),this.opts.action&&this.opts.action("copymsg",e)}},{key:"resetTopic",value:(i=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=3;break}return e.next=3,le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 3:this.messages.value=[],this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId});case 5:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"clearTopic",value:(n=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=3;break}return e.next=3,le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 3:this.messages.value=[];case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"addMaterial",value:function(e){var t=this.materials.value.find((function(t){return t.id===e.id}));this.materials.value=t?o(this.materials.value):[].concat(o(this.materials.value),[new vn(e)])}},{key:"replaceMaterial",value:function(e,t){var n=this.materials.value.findIndex((function(t){return t.id===e}));-1!==n?(this.materials.value[n]=new vn(t),this.materials.value=o(this.materials.value)):this.materials.value=[].concat(o(this.materials.value),[new vn(t)])}},{key:"deleteMaterial",value:function(e){var t=this.materials.value.findIndex((function(t){return t.id===e.id}));-1!==t&&(this.materials.value.splice(t,1),this.materials.value=o(this.materials.value))}},{key:"updateRecommendPrompt",value:function(e,t){if(t){var n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid})),i=he.parseMixedContent(t).suggestions;i&&i.length>0&&(e.suggestions=i,-1!==n?(this.messages.value[n]=new pn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB())}}},{key:"handleSuggestionClick",value:(t=p(d().mark((function e(t,n,i){var r,a,c,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:-1!==(r=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})))&&((a=this.messages.value[r]._origin).suggestions=void 0,this.messages.value[r]=new pn(a),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),c=n.type,e.t0=c,e.next="action"===e.t0?7:"raw"===e.t0?17:20;break;case 7:if(!this.opts.extendToolbarClick){e.next=16;break}if(s=n.data.actionid){e.next=11;break}throw new Error("actionid不能为空");case 11:return l=u({},t),Object.assign(l,{topic:this.topic}),l.msg.realcontent=t.realcontent,e.next=16,this.opts.extendToolbarClick(i,{id:s,appId:this.context.srfappid},this.context,this.params,l);case 16:case 19:return e.abrupt("break",21);case 17:return e.next=19,this.question(n.data.content);case 20:throw new Error("不支持".concat(c,"推荐类型"));case 21:case"end":return e.stop()}}),e,this)}))),function(e,n,i){return t.apply(this,arguments)})}]),e}(),ri=function(){function e(t){v(this,e),g(this,"topics",Qe([])),g(this,"activedTopic",Qe(void 0)),g(this,"currentTopicOptions",void 0),this.chat=t}var t,n,i,r,a,c,s;return _(e,[{key:"fetchHistory",value:(s=p(d().mark((function e(t){var n,i,r=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.configService(t.appid,"aitopics",t.type),e.next=3,n.load();case 3:(i=e.sent)&&i.length>0&&i.forEach((function(e){r.topics.value=[].concat(o(r.topics.value),[new fn(e)])}));case 5:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})},{key:"updateCurrentTopic",value:(c=p(d().mark((function e(t){var n,i,r,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.currentTopicOptions=t,n=this.topics.value.findIndex((function(e){return e.id===t.id})),i=new fn(t),-1!==n?this.topics.value.splice(n,1,new fn(t)):this.topics.value=[].concat(o(this.topics.value),[new fn(t)]),r=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),a=t.configService(t.appid,"aitopics",t.type),e.next=8,null==a?void 0:a.save(r);case 8:this.activedTopic.value=i;case 9:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"removeTopic",value:(a=p(d().mark((function e(t,n,i,r,a){var c,s,l,u,h;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=!0,!t.beforeDelete){e.next=5;break}return e.next=4,t.beforeDelete(n,i,r,a);case 4:s=e.sent;case 5:if(s){e.next=7;break}return e.abrupt("return");case 7:return-1!==(l=this.topics.value.findIndex((function(e){return e.id===r.id})))&&(this.topics.value.splice(l,1),this.topics.value=o(this.topics.value)),u=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),h=t.configService(t.appid,"aitopics",t.type),e.next=13,null==h?void 0:h.save(u);case 13:return e.next=15,le.deleteData(ni.DATA_BASE_NAME,ni.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 e.stop()}}),e,this)}))),function(e,t,n,i,r){return a.apply(this,arguments)})},{key:"updateTopic",value:(r=p(d().mark((function e(t,n){var i,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),r=t.configService(t.appid,"aitopics",t.type),e.next=4,null==r?void 0:r.save(i);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"handleTopicChange",value:function(e){var t;(null===(t=this.activedTopic.value)||void 0===t?void 0:t.id)!==e.id&&(this.activedTopic.value=e,this.chat.switchAiChatController(e))}},{key:"handleTopicAction",value:(i=p(d().mark((function e(t,n,i){var r,o,a,c,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.topics.value.find((function(e){return e.id===n.id})),!(this.currentTopicOptions&&r&&r.aiChat)){e.next=12;break}if(c=r.aiChat,s=c.context,l=c.params,"DELETE"!==t){e.next=8;break}return e.next=6,this.removeTopic(this.currentTopicOptions,s,l,r,i);case 6:e.next=11;break;case 8:if("RENAME"!==t){e.next=11;break}return e.next=11,this.updateTopic(this.currentTopicOptions,n);case 11:null===(o=(a=this.currentTopicOptions).action)||void 0===o||o.call(a,t,s,l,n,i);case 12:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"newTopic",value:(n=p(d().mark((function e(){var t,n,i,r,a,c,s,l,u;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this.activedTopic.value){e.next=3;break}return e.abrupt("return");case 3:return r=i.id.split("@")[0],a=this.topics.value.filter((function(e){return e.id.startsWith(r)})),c={appid:i.appid,id:"".concat(r,"@").concat(Date.now()),type:i.type,caption:"".concat(null===(t=i.sourceCaption)||void 0===t?void 0:t.split("_")[0],"_").concat(a.length),sourceCaption:i.sourceCaption,url:i.url,aiChat:i.aiChat},s=new fn(c),this.topics.value=[].concat(o(this.topics.value),[s]),l=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),u=null===(n=this.currentTopicOptions)||void 0===n?void 0:n.configService(c.appid,"aitopics",c.type),e.next=12,null==u?void 0:u.save(l);case 12:this.handleTopicChange(s);case 13:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"clearTopic",value:(t=p(d().mark((function e(){var t,n,i,r,o,a=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.topics.value.find((function(e){var t;return e.id===(null===(t=a.activedTopic.value)||void 0===t?void 0:t.id)})),this.currentTopicOptions&&n){e.next=3;break}return e.abrupt("return");case 3:if(i=!0,!this.currentTopicOptions.beforeDelete){e.next=8;break}return e.next=7,this.currentTopicOptions.beforeDelete(n.aiChat.context,n.aiChat.params,n,void 0,!0);case 7:i=e.sent;case 8:if(i){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,Promise.all(this.topics.value.map((function(e){if(e.id!==(null==n?void 0:n.id))return le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,e.id)})));case 12:return this.topics.value=n?[n]:[],r=null===(t=this.currentTopicOptions)||void 0===t?void 0:t.configService(this.currentTopicOptions.appid,"aitopics",this.currentTopicOptions.type),o=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),e.next=17,null==r?void 0:r.save(o);case 17:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),oi=_((function e(t){v(this,e),this.aiChat=t})),ai=function(t){e(o,t);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=p(d().mark((function e(t,n){var i,r,o,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n||!n.onClick||"function"!=typeof n.onClick){e.next=6;break}return e.next=3,n.onClick(t,n,this.aiChat.context,this.aiChat.params);case 3:i=e.sent,e.next=14;break;case 6:if(!(r=this.aiChat.opts.extendToolbarClick)){e.next=13;break}return e.next=10,r(t,n,this.aiChat.context,this.aiChat.params,{});case 10:i=e.sent,e.next=14;break;case 13:console.error("未找到扩展工具栏点击事件");case 14:i&&i.data&&i.data.length>0&&(o=i.data[0],a={id:o.id,type:o.type,data:o.data||{},metadata:o.metadata||{}},n.id&&Object.assign(a.metadata,{actionId:n.id}),this.aiChat.addMaterial(a));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})}]),o}(oi),ci=function(t){e(o,t);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=p(d().mark((function e(t,n){var i,r,o,a,c,s,l,u,h,f,v=this;return d().wrap((function(e){for(;;)switch(e.prev=e.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,h=i.onProgress,f={multiple:r||!0,accept:o||"*/*",maxSize:a||5242880,onSelect:function(e){null==c||c(e),e.length>0&&e.forEach((function(e){var t=v.buildMaterialObject(e);Object.assign(t.metadata,{state:"uploading"}),v.aiChat.addMaterial(t)}))},onUpload:function(){var e=p(d().mark((function e(t,n){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s(t,n,{context:v.aiChat.context,params:v.aiChat.params}));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),onSuccess:function(e,t){var n={id:e.id,type:"ossfile",data:{id:e.id,name:e.name},metadata:{ext:e.ext,fileext:e.fileext,fileid:e.fileid,filename:e.filename,size:e.size,filesize:e.filesize,state:"successed"}};v.aiChat.replaceMaterial(t.name,n),null==l||l(e,t)},onError:function(e,t){var n=v.buildMaterialObject(t);Object.assign(n.metadata,{state:"failed"}),v.aiChat.replaceMaterial(t.name,n),null==u||u(e,t)},onProgress:function(e,t){null==h||h(e,t)}},new ue(f).openFilePicker();case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"buildMaterialObject",value:function(e){return{id:e.name,type:"ossfile",data:{name:e.name,id:e.name},metadata:{size:e.size,type:e.type,lastModified:e.lastModified}}}}]),o}(oi),si=function(){function e(){v(this,e)}return _(e,null,[{key:"getMaterialHelper",value:function(e,t){return"ossfile"===e?new ci(t):new ai(t)}}]),e}(),li=function(){function e(){v(this,e),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 ri(this)}var t,n;return _(e,[{key:"aiChat",get:function(){var e;return this.aiTopicMap.get("".concat(null===(e=this.aiTopic.activedTopic.value)||void 0===e?void 0:e.id))}},{key:"initIndexDB",value:(n=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le.checkTableExists(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME);case 2:if(e.sent){e.next=6;break}return e.next=6,le.createTable(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,ni.DATA_TABLE_KEY_NAME,!1);case 6:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"create",value:(t=p(d().mark((function e(t){var n,i,r,o,a,c,s=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initIndexDB();case 2:if(this.backupChatOptions=t,this.close(),this.container=document.createElement("div"),this.container.classList.add("ibiz-ai-chat"),document.body.appendChild(this.container),o=t.chatOptions,!t.mode||"TOPIC"!==t.mode){e.next=19;break}if(this.isMountedAiTopic){e.next=13;break}return e.next=12,this.aiTopic.fetchHistory(t.topicOptions);case 12:this.isMountedAiTopic=!0;case 13:return a=t.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,otherToolbarItems:o.otherToolbarItems,appendCurData:o.appendCurData,appendCurContent:o.appendCurContent}}),e.next=17,this.aiTopic.updateCurrentTopic(a);case 17:e.next=20;break;case 19:this.aiTopic.activedTopic.value=void 0;case 20:return Object.assign(o,{topicId:null===(n=a)||void 0===n?void 0:n.id,topic:a}),c=new ii(o),this.aiTopicMap.set("".concat(null===(i=a)||void 0===i?void 0:i.id),c),K(M(Ti,{aiChat:c,aiTopic:this.aiTopic,mode:t.mode?t.mode:"DEFAULT",containerOptions:t.containerOptions,caption:t.mode&&"TOPIC"===t.mode?"AI助手":o.caption,enableBackFill:null===(r=t.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(e){o.fullscreen&&o.fullscreen(e,o.context,o.params)},minimize:function(e){o.minimize&&o.minimize(e,o.context,o.params)}}),this.container),e.abrupt("return",c);case 25:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"switchAiChatController",value:function(e){var t,n,i,r,o,a=this,c=u({},this.backupChatOptions.chatOptions);(e.aiChat&&Object.assign(c,{caption:e.aiChat.caption,context:e.aiChat.context,params:e.aiChat.params,contentToolbarItems:e.aiChat.contentToolbarItems,footerToolbarItems:e.aiChat.footerToolbarItems,questionToolbarItems:e.aiChat.questionToolbarItems,otherToolbarItems:e.aiChat.otherToolbarItems,appendCurData:e.aiChat.appendCurData,appendCurContent:e.aiChat.appendCurContent,appDataEntityId:e.aiChat.appDataEntityId,topicId:e.id,topic:e,extendToolbarClick:this.backupChatOptions.chatOptions.extendToolbarClick,recommendPrompt:this.backupChatOptions.chatOptions.recommendPrompt}),this.aiTopicMap.has("".concat(e.id))?t=this.aiTopicMap.get("".concat(e.id)):(t=new ii(c),this.aiTopicMap.set("".concat(e.id),t)),this.container)&&(K(null,this.container),K(M(Ti,{aiChat:t,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(e){c.fullscreen&&c.fullscreen(e,c.context,c.params)},minimize:function(e){c.minimize&&c.minimize(e,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)}}]),e}(),ui=(t("chat",new li),new ee("chat-input-material")),di=function(e){var t=e.controller.materials;return _t("div",{className:ui.b(),children:t.value.map((function(t){return _t(rn,{material:t,disabled:!1,controller:e.controller},t.id)}))})},hi=function(e){var t=e.children,n=e.actions,i=e.content,r=e.position,o=void 0===r?"bottom":r,c=e.isOpen,s=e.onToggleOpen,l=e.onAction,d=new ee("pop"),h=Ie(Ci),p=a(Se(c||!1),2),f=p[0],v=p[1],m=Me(null),_=Me(null);Ae((function(){void 0!==c&&v(c)}),[c]),Ae((function(){return _.current||(_.current=document.createElement("div"),_.current.className=d.b("content-container"),document.body.appendChild(_.current)),function(){_.current&&document.body.removeChild(_.current)}}),[]),Ae((function(){var e=function(e){!m.current||m.current.contains(e.target)||e.target.closest(".".concat(d.b()))||e.target.closest(".ibiz-quick-edit")||e.target.closest(".ibiz-picker__transfer")||(v(!1),null==s||s(!1))};return f&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[f,s]);return _t("span",{className:"".concat(d.b("trigger-container")),children:[_t("span",{className:"".concat(d.b("trigger-element")),ref:m,onClick:function(e){e.stopPropagation();var t=!f;v(t),null==s||s(t)},children:t}),f&&_.current&&Pn(_t("div",{className:"".concat(d.b()," pop-").concat(o),style:function(){if(!m.current)return{};var e=m.current.getBoundingClientRect(),t={position:"absolute",zIndex:h.zIndex+1},n={bottom:{top:e.bottom+window.scrollY,left:e.left+window.scrollX},top:{bottom:window.innerHeight-e.top+window.scrollY,left:e.left+window.scrollX},left:{top:e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX},right:{top:e.top+window.scrollY,left:e.right+window.scrollX},"top-left":{bottom:window.innerHeight-e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX}};return u(u({},t),n[o])}(),children:i||(null==n?void 0:n.map((function(e){return _t("div",{title:e.caption,className:d.e("item"),onMouseDown:function(t){t.stopPropagation(),null==l||l(e.id,t)},children:[e.icon,_t("div",{className:d.em("item","caption"),children:e.caption})]},e.id)})))}),_.current)]})},pi=new ee("chat-input"),fi=window.SpeechRecognition||window.webkitSpeechRecognition,vi=function(e){var t,n=a(Se(!1),2),i=n[0],r=n[1],o=Me(null),c=e.controller.input,s=ft(!1),l=Me();fi&&!l.current&&(l.current=new fi,l.current.onstart=function(){s.value=!0},l.current.onend=function(){s.value=!1},l.current.onresult=function(e){var t,n=null===(t=e.results)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t[0])||void 0===t?void 0:t.transcript;n&&(c.value="".concat(c.value).concat(n))});var u=Le((function(e){c.value=e.target.value}),[c]),h=vt((function(){return c.value.length<=0}));Ae((function(){return o.current&&ti(o.current),function(){o.current&&ti.destroy(o.current)}}),[o]);var f=Le(p(d().mark((function t(){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=c.value,c.value="",t.next=5,e.controller.question(n);case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])}))),[c]),v=Le(p(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{e.controller.abortQuestion()}catch(n){console.error(n)}case 1:case"end":return t.stop()}}),t)}))),[c]),m=function(){var t=p(d().mark((function t(n){var i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=si.getMaterialHelper("ossfile",e.controller),t.next=3,i.excuteAction(n);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_=function(){var t=p(d().mark((function t(n,i){var o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=si.getMaterialHelper("common",e.controller),t.next=3,o.excuteAction(n,i);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}();return _t("div",{className:pi.b("wrapper"),children:[_t("div",{className:pi.b("material-wrapper"),children:_t(di,{controller:e.controller})}),_t("div",{className:pi.b("main-wrapper"),children:[_t("textarea",{className:pi.e("textarea"),type:"text",rows:6,autoCorrect:"off",autoCapitalize:"off",autoComplete:"off",value:c,onInput:u,onKeyDown:function(e){"Enter"!==e.code||e.isComposing||(e.stopPropagation(),!1===e.shiftKey&&f())},ref:o,disabled:e.controller.isLoading.value}),_t("div",{className:pi.b("action-wrapper"),children:[_t("div",{className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",e.controller.isLoading.value)),title:"上传资料",children:_t(hi,{content:_t("div",{className:pi.b("pop-actions"),children:[_t("div",{className:pi.b("pop-action-item"),onClick:function(e){m(e)},children:[_t("span",{className:pi.b("pop-action-item-icon"),children:_t(Ht,{})}),_t("span",{className:pi.b("pop-action-item-title"),children:"文件资料"})]}),null===(t=e.questionToolbarItems)||void 0===t?void 0:t.map((function(e){var t,n,i;return _t("div",{className:pi.b("pop-action-item"),onClick:function(t){_(t,e)},children:[_t("span",{className:pi.b("pop-action-item-icon"),children:"function"==typeof e.icon?e.icon():(null===(t=e.icon)||void 0===t?void 0:t.showIcon)&&_t(L,{children:null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):null})}),_t("span",{className:pi.b("pop-action-item-title"),children:e.label})]},e.id)}))]}),position:"top-left",isOpen:i,onToggleOpen:r,children:_t(Bt,{})})}),_t("div",{title:s.value?"语音输入中...":"语音输入",className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",e.controller.isLoading.value)),onClick:function(){l.current&&!s.value&&l.current.start()},children:s.value?_t(Mt,{}):_t(At,{})}),e.controller.isLoading.value?_t("div",{title:"停止生成",className:"".concat(pi.be("action-wrapper","action-item")),onClick:v,children:_t(Rt,{})}):_t("div",{title:"发送消息",className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",h.value)),onClick:f,children:_t(wt,{})})]})]})]})},mi=new ee("chat-topic-item"),_i=function(e){var t=e.controller,n=e.topic,i=e.onClick,r=e.onAction,o=Me(null),c=vt((function(){var e;return(null===(e=t.activedTopic.value)||void 0===e?void 0:e.id)===n.id})),s=a(Se(!1),2),l=s[0],u=s[1],d=ft(!1);return _t("div",{className:"".concat(mi.b()," ").concat(mi.is("active",c.value)," ").concat(mi.is("edit",d.value)),onClick:i.bind(void 0),children:[_t("div",{className:mi.e("caption"),title:n.caption,children:d.value?_t("input",{ref:o,value:n.caption,onBlur:function(e){e.stopPropagation(),d.value=!1,r("RENAME",e)},onKeyDown:function(e){e.stopPropagation(),"Enter"===e.key&&(d.value=!1)},onClick:function(e){return e.stopPropagation()},onChange:function(e){return(t=e).stopPropagation(),void(n.data.caption=null===(i=t.target)||void 0===i?void 0:i.value);var t,i},className:mi.em("caption","editor")}):_t("span",{className:mi.em("caption","text"),children:n.caption})}),!d.value&&_t("div",{className:mi.e("icon"),children:[_t("span",{title:"跳转主视图",className:mi.em("icon","item"),onClick:function(e){e.stopPropagation(),r("LINK",e)}.bind(void 0),children:_t(Lt,{className:mi.b("link-icon")})}),c.value?null:_t(hi,{actions:[{id:"RENAME",caption:"重命名",icon:_t(qt,{})},{id:"DELETE",caption:"删除话题",icon:_t(It,{})}],position:"bottom",isOpen:l,onToggleOpen:u,onAction:function(e,t){"DELETE"===e?r("DELETE",t):"RENAME"===e&&(d.value=!0,setTimeout((function(){var e;null===(e=o.current)||void 0===e||e.focus()}),100)),u(!1)}.bind(void 0),children:_t("span",{className:mi.em("icon","item"),title:"更多",children:_t(Ot,{className:mi.e("more-icon")})})})]})]})},gi=new ee("chat-search"),yi=function(e){var t=e.className,n=e.value,i=e.placeholder,r=e.onChange,o=a(Se(!1),2),c=o[0],s=o[1],l=function(e){var t;e.stopPropagation(),null==r||r(null===(t=e.target)||void 0===t?void 0:t.value)};return _t("div",{className:"".concat(gi.b()," ").concat(gi.is("focus",c)," ").concat(t||""),children:[_t("div",{className:gi.e("prefix"),children:_t($t,{})}),_t("input",{value:n,className:gi.e("inner"),placeholder:i,onFocus:function(){return s(!0)},onBlur:function(){return s(!1)},onChange:function(e){return l(e)}})]})},wi=new ee("chat-topics"),bi=function(e){var t=Me(null),n=ft(void 0),i=ft([]);Ae((function(){i.value=e.controller.topics.value.filter((function(e){var t,i;return null===(t=e.caption)||void 0===t?void 0:t.toLowerCase().includes((null===(i=n.value)||void 0===i?void 0:i.trim().toLowerCase())||"")}))}),[e.controller.topics.value]);return Ae((function(){var e=t.current;if(e){var n=e.querySelector(".ibiz-chat-topic-item.is-active");null==n||n.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[e.controller.activedTopic.value]),_t("div",{className:wi.b(),children:[_t("div",{className:wi.e("header"),children:_t(yi,{value:n.value,placeholder:"搜索话题",onChange:function(t){n.value=t,i.value=e.controller.topics.value.filter((function(e){var t,i;return null===(t=e.caption)||void 0===t?void 0:t.toLowerCase().includes((null===(i=n.value)||void 0===i?void 0:i.trim().toLowerCase())||"")}))}.bind(void 0)})}),_t("div",{ref:t,className:wi.e("main"),children:i.value&&i.value.length>0?i.value.map((function(t){return _t(_i,{topic:t,controller:e.controller,onClick:function(){return function(t){e.controller.handleTopicChange(t)}(t)},onAction:function(n,i){return function(t,n,i){e.controller.handleTopicAction(t,n,i)}(n,t,i)}},t.id)})):_t("div",{className:wi.e("empty"),children:"暂无话题"})}),_t("div",{className:wi.e("footer"),children:_t("div",{title:"清空会话",className:wi.e("action"),onClick:function(){return e.controller.clearTopic()},children:[_t(It,{}),_t("span",{children:"清空会话"})]})})]})},xi=new ee("chat-minimize"),ki=function(e){var t=Me(null),n=a(Se(""),2),i=n[0],r=n[1],o=a(Se(0),2),c=o[0],s=o[1],l=Me(!1),u={x:(window.innerWidth-86)/window.innerWidth,y:(window.innerHeight-86)/window.innerHeight},d=vt((function(){var t=e.controller.messages.value[e.controller.messages.value.length-1];return!!t&&("ASSISTANT"===t.role&&20===t.state&&!0!==t.completed)})),h=vt((function(){var t="";if(!d.value)return r(""),s(0),t;var n=e.controller.messages.value[e.controller.messages.value.length-1];if(t=n.content,-1!==n.content.indexOf("")){var i=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="";return-1===n?(i=e.slice(t+7),r=""):(i=e.slice(t+7,n),r=e.slice(n+8)),{thoughtContent:i,answerContent:r}}(n.content);t=i.thoughtContent+i.answerContent}return t})),p=function(){Object.assign(t.current.style,{left:"".concat(100*u.x,"%"),top:"".concat(100*u.y,"%")}),localStorage.setItem(ni.MINIMIZE_STYLY_CHCHE,JSON.stringify(u))};return Ae((function(){var e,n=localStorage.getItem(ni.MINIMIZE_STYLY_CHCHE);if(n){var i=JSON.parse(n);pe(i)&&Object.assign(u,i)}p(),(e=t.current)&&(e.onmousedown=function(t){document.body.style.userSelect="none";var n=t.clientX-e.offsetLeft,i=t.clientY-e.offsetTop,r=Date.now(),o=function(e){var t=56/window.innerWidth,r=56/window.innerHeight,o=fe(e.clientX-n,e.clientY-i,t,r),a=o.x,c=o.y;Object.assign(u,{x:a,y:c}),requestAnimationFrame((function(){p()}))};document.addEventListener("mousemove",o),document.addEventListener("mouseup",(function e(){var t=Date.now();l.current=t-r>300,document.body.style.userSelect="",document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",e)}))})}),[]),Ae((function(){if(c1-e?this.calcSideModeStyle(i1-t&&(this.data.window.y=1-a)),this.setStyle()}},{key:"registerDragDialog",value:function(){var e=this;this.dragHandle.current.onmousedown=function(t){if(!e.state.isFullScreen){document.body.style.userSelect="none";var n=t.clientX-e.containerRef.current.offsetLeft,i=t.clientY-e.containerRef.current.offsetTop,r=function(t){if(!e.disabled){e.data.showMode="window";var r=fe(t.clientX-n,t.clientY-i,e.data.window.width,e.data.window.height),o=r.x,a=r.y;Object.assign(e.data.window,{x:o,y:a}),e.setStyle()}};document.addEventListener("mousemove",r),document.addEventListener("mouseup",(function t(){document.body.style.userSelect="",document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t),e.disabled||e.snapToEdge()}))}}}},{key:"registerDragDialogBorder",value:function(){var e=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(t){if(!e.state.isFullScreen){var n="side"===e.data.showMode?e.data.side:e.data.window;n.x=t.rect.left/window.innerWidth,n.y=t.rect.top/window.innerHeight,n.width=t.rect.width/window.innerWidth,n.height=t.rect.height/window.innerHeight,e.setStyle()}},start:function(){e.disabled=!0,document.body.style.userSelect="none"},end:function(){e.disabled=!1,document.body.style.userSelect=""}}})}},{key:"handleFullScreenChange",value:function(){this.setState({isFullScreen:null!==document.fullscreenElement})}},{key:"componentDidMount",value:function(){this.handleFullScreenChange=this.handleFullScreenChange.bind(this);var e=localStorage.getItem(ni.STYLE_CACHE);if(e){var t=JSON.parse(e);t.side&&pe(t.side)&&t.window&&pe(t.window)&&Object.assign(this.data,t)}this.setStyle(),this.registerDragDialog(),this.registerDragDialogBorder(),document.addEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"close",value:function(){this.props.close()}},{key:"fullScreen",value:function(){var e=this.containerRef.current;e&&(e.requestFullscreen(),this.props.fullscreen(!0))}},{key:"closeFullScreen",value:function(){var e;this.state.isFullScreen&&(null===(e=document)||void 0===e||e.exitFullscreen(),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.setState({isMinimize:!1}),this.props.minimize(!1)}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"render",value:function(){return _t(Ci.Provider,{value:this.containerContext,children:_t("div",{className:"".concat(this.ns.b()),children:[_t("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:[_t("div",{ref:this.dragHandle,className:this.ns.b("header"),children:[_t("div",{className:this.ns.b("header-caption"),children:this.props.caption||"AI助手"}),_t("div",{className:this.ns.b("header-action-wrapper"),children:[_t("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:_t(Nt,{})}),this.state.isFullScreen?_t("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:_t(Tt,{})}):_t("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:_t(Ct,{})}),_t("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:_t(gt,{})})]})]}),"TOPIC"===this.props.mode?_t("div",{className:"".concat(this.ns.b("main")),children:[_t("div",{className:"".concat(this.ns.be("main","left")),children:_t(bi,{controller:this.props.aiTopic})}),_t("div",{className:"".concat(this.ns.be("main","right")),children:[_t("div",{className:this.ns.b("content"),children:_t(xn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(yn,{data:this.props.aiTopic.activedTopic.value,type:"footer",className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(vi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}):_t("div",{className:"".concat(this.ns.be("main","default")),children:[_t("div",{className:this.ns.b("content"),children:_t(xn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(yn,{type:"footer",data:this.props.aiTopic.activedTopic.value,className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(vi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}),_t(ki,{title:this.props.caption||"AI助手",controller:this.props.aiChat,isMinimize:this.state.isMinimize,onClick:this.exitMinimize.bind(this)})]})})}}]),o}(I);t("ChatContainer",Ti)}}}))}(); diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.21/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.21/polyfills.legacy.js new file mode 100644 index 0000000000000000000000000000000000000000..c8c7654431885af1a2dc12a9fe73b198407bf314 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.21/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+""},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+""},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="\t\n\v\f\r                 \u2028\u2029\ufeff",JE=L,qE=Ao,KE=VE,YE=S("".replace),XE=RegExp("^["+KE+"]+"),QE=RegExp("(^|[^"+KE+"])["+KE+"]+$"),ZE=function(t){return function(r){var e=qE(JE(r));return 1&t&&(e=YE(e,XE,"")),2&t&&(e=YE(e,QE,"$1")),e}},tx={start:ZE(1),end:ZE(2),trim:ZE(3)},rx=te.PROPER,ex=o,nx=VE,ox=tx.trim;ro({target:"String",proto:!0,forced:function(t){return ex((function(){return!!nx[t]()||"​…᠎"!=="​…᠎"[t]()||rx&&nx[t].name!==t}))}("trim")},{trim:function(){return ox(this)}});var ix=Dt,ux=hn,ax=co,cx=mo,fx=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=ix(this),e=ux(r),n=arguments.length;if(n){fx(e+n);for(var o=e;o--;){var i=o+n;o in r?r[i]=r[o]:cx(r,i)}for(var u=0;uo;)for(var a,c=mx(arguments[o++]),f=i?Sx(px(c),i(c)):px(c),s=f.length,l=0;s>l;)a=f[l++],sx&&!hx(u,c,a)||(e[a]=c[a]);return e}:bx,xx=Ex;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==xx},{assign:xx});var Ox={exports:{}},jx=o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Ix=o,Tx=B,Rx=j,Px=jx,Ax=Object.isExtensible,kx=Ix((function(){Ax(1)}))||Px?function(t){return!!Tx(t)&&((!Px||"ArrayBuffer"!==Rx(t))&&(!Ax||Ax(t)))}:Ax,Cx=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),Nx=ro,Lx=S,Fx=pe,Mx=B,_x=Gt,Dx=Rr.f,Ux=Qe,$x=mw,Gx=kx,zx=Cx,Wx=!1,Bx=Vt("meta"),Hx=0,Vx=function(t){Dx(t,Bx,{value:{objectID:"O"+Hx++,weakData:{}}})},Jx=Ox.exports={enable:function(){Jx.enable=function(){},Wx=!0;var t=Ux.f,r=Lx([].splice),e={};e[Bx]=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!!c(this,t)}}),hO(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)}}),wO&&lO(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=xO(r),i=xO(n);yO(t,r,(function(t,r){EO(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)?mO("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,mO(void 0,!0))}),e?"entries":"values",!e,!0),bO(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=Yx[t],a=u&&u.prototype,c=u,f={},s=function(t){var r=Xx(a[t]);Zx(a,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!iO(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(Qx(t,!nO(u)||!(o||a.forEach&&!uO((function(){(new u).entries().next()})))))c=e.getConstructor(r,t,n,i),tO.enable();else if(Qx(t,!0)){var l=new c,h=l[i](o?{}:-0,1)!==l,v=uO((function(){l.has(1)})),p=aO((function(t){new u(t)})),d=!o&&uO((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((c=r((function(t,r){eO(t,a);var e=fO(new u,t,c);return oO(r)||rO(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,Kx({global:!0,constructor:!0,forced:c!==u},f),cO(c,t),o||e.setStrong(c,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),OO);var jO,IO=ro,TO=Fu,RO=n.f,PO=sn,AO=Ao,kO=_E,CO=L,NO=UE,LO=TO("".startsWith),FO=TO("".slice),MO=Math.min,_O=NO("startsWith");IO({target:"String",proto:!0,forced:!!(_O||(jO=RO(String.prototype,"startsWith"),!jO||jO.writable))&&!_O},{startsWith:function(t){var r=AO(CO(this));kO(t);var e=PO(MO(arguments.length>1?arguments[1]:void 0,r.length)),n=AO(t);return LO?LO(r,n,e):FO(r,e,e+n.length)===n}});var DO=ro,UO=Ms.findIndex,$O=sm,GO="findIndex",zO=!0;GO in[]&&Array(1)[GO]((function(){zO=!1})),DO({target:"Array",proto:!0,forced:zO},{findIndex:function(t){return UO(this,t,arguments.length>1?arguments[1]:void 0)}}),$O(GO);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=tx.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;o \ No newline at end of file diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.23/index.min.css b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.23/index.min.css new file mode 100644 index 0000000000000000000000000000000000000000..4da306d2ab918c2b37fc1c8904f807ab5d88448e --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.23/index.min.css @@ -0,0 +1 @@ +@charset "UTF-8";.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-chat-suggestions{--ibiz-chat-suggestions-bg: var(--ibiz-ai-chat-background-color);--ibiz-chat-suggestions-hover-bg-color: var(--ibiz-ai-chat-hover-background-color);--ibiz-chat-suggestions-border: var(--ibiz-ai-chat-border-color);display:flex;flex-direction:column;gap:var(--ibiz-spacing-base-tight);width:100%}.ibiz-chat-suggestions__item{display:flex;align-items:center;align-self:flex-start;justify-content:space-between;min-width:200px;height:32px;padding:0 12px;overflow:hidden;line-height:32px;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background-color:var(--ibiz-chat-suggestions-bg);border:1px solid var(--ibiz-chat-suggestions-border);border-radius:12px;transition:.3s background-color}.ibiz-chat-suggestions__item:hover{background-color:var(--ibiz-chat-suggestions-hover-bg-color)}.ibiz-chat-suggestions__item.is-action{color:var(--ibiz-ai-chat-color-2);background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-suggestions__item.is-action:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-suggestions__item .ibiz-chat-suggestions__item-icon{margin-left:12px;font-size:18px}.ibiz-markdown-message{padding:6px 10px}.ibiz-markdown-message .cherry{border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-markdown-message .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-markdown-message .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-markdown-message .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-markdown-message .cherry div[data-type=codeBlock] pre[class*=language-]::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.2)}.ibiz-markdown-message .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-markdown-message .cherry-previewer{padding:8px;border:0}.ibiz-markdown-message .cherry-previewer figure{max-width:1200px}.ibiz-markdown-message .cherry-previewer figure>svg{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)}.ibiz-markdown-message-footer{padding:10px 0}@keyframes circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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-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%;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:10px 16px;margin:0;font-size:14px;line-height:1.5;color:var(--color-fg-default);word-wrap:break-word;background:#e7f8ff;text-size-adjust:100%;background-color:var(--ibiz-ai-chat-background-color-light);border-radius:var(--ibiz-ai-chat-border-radius)}.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--material{gap:8px;display:flex;align-items:center;flex-flow:row-reverse wrap;margin-bottom:8px}.ibiz-user-message-question__content .cherry{min-height:0px;border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-user-message-question__content .cherry-markdown p{margin:0}.ibiz-user-message-question__content .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-user-message-question__content .cherry-previewer{padding:0;border:0;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color-light)}.ibiz-user-message-question__content .cherry-previewer figure{max-width:1200px}.ibiz-user-message-question__content .cherry-previewer figure>svg{width:100%;min-height:100px}.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock]{position:relative!important;display:flex;padding-top:24px}.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock] .cherry-edit-code-block,.ibiz-user-message-question__content .cherry-previewer div[data-type=codeBlock] .cherry-copy-code-block{position:absolute;top:0}.ibiz-user-message-question__content .anchor{display:none!important}.ibiz-user-message-question__user-header{width:100%;height:32px;display:flex;margin-bottom:8px;align-items:center;justify-content:end}.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:10px 16px;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{display:flex;padding:6px 10px;justify-content:end}.ibiz-unknown-message__content{padding:10px 16px;color:#000;width:max-content;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-item{display:flex;cursor:pointer;position:relative;align-items:center;white-space:nowrap}.ibiz-chat-toolbar-item__content{display:flex;align-items:center;white-space:nowrap}.ibiz-chat-toolbar-item__content--icon{width:18px;height:18px;font-size:18px;display:flex;flex-shrink:0;align-items:center;justify-content:center}.ibiz-chat-toolbar-item__content--label,.ibiz-chat-toolbar-item__more{display:flex;align-items:center}.ibiz-chat-toolbar-item__more--icon{font-size:18px}.ibiz-chat-toolbar-item-default{font-size:14px;width:fit-content;color:var(--ibiz-ai-chat-color-2)}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__content{gap:6px;line-height:28px;padding:2px 14px;border-radius:12px;background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-toolbar-item-default.is-disabled{cursor:not-allowed}.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__content,.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__more{background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__content:hover,.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__more:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-default.is-more .ibiz-chat-toolbar-item__content{padding:2px 8px 2px 14px;border-radius:12px 0 0 12px}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__more{height:32px;padding:2px 14px 2px 8px;border-radius:0 12px 12px 0;border-left:1px solid var(--ibiz-ai-chat-border-color);background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-toolbar-item-circle{height:32px;padding:6px;max-width:32px;overflow:hidden;font-size:12px;white-space:nowrap;border-radius:15px;transition:max-width .8s ease;border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-toolbar-item-circle.is-disabled{cursor:not-allowed;color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-circle: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-item-circle .ibiz-chat-toolbar-item__content--label{font-size:14px;margin-left:8px;width:calc(100% - 32px)}.ibiz-chat-toolbar-item-dropdown{right:0;gap:4px;bottom:36px;padding:4px;display:flex;max-width:150px;border-radius:6px;position:absolute;flex-direction:column;background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-toolbar-item-dropdown__item{gap:6px;display:flex;padding:0 8px;cursor:pointer;line-height:32px;border-radius:6px;align-items:center}.ibiz-chat-toolbar-item-dropdown__item.is-disabled{cursor:not-allowed;background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-dropdown__item:hover:not(.is-disabled){background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-dropdown__item--icon{width:18px;height:18px;font-size:18px;display:flex;flex-shrink:0;align-items:center;justify-content:center}.ibiz-chat-toolbar-item-dropdown__item--label{flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ibiz-chat-toolbar{display:flex;flex-wrap:wrap;align-items:center}.ibiz-chat-toolbar .ibiz-chat-toolbar-item:not(:first-child){margin-left:6px}.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{width:calc(100% - 12px);height:calc(100% - 12px);margin:6px;overflow:hidden auto}.ibiz-chat-messages::-webkit-scrollbar{width:6px}.ibiz-chat-messages::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-wrapper{max-height:72px;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:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-input__textarea::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);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-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{gap:4px;padding:4px;display:flex;min-width:120px;border-radius:8px;flex-direction:column;background-color:var(--ibiz-color-bg-3);border:1px solid var(--ibiz-color-border)}.ibiz-pop__item{display:flex;padding:0 8px;cursor:pointer;line-height:32px;border-radius:6px;align-items:center}.ibiz-pop__item:hover{background-color:var(--ibiz-color-primary-hover)}.ibiz-pop__item--caption{min-width:0;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-pop__item svg{width:16px;height:16px;flex-shrink:0;margin-right:8px;fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-topic-item{height:38px;display:flex;padding:0 8px;cursor:pointer;border-radius:12px;position:relative;align-items:center;font-size:var(--ibiz-font-size-regular)}.ibiz-chat-topic-item:hover:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item:hover:not(.is-edit) .ibiz-chat-topic-item__icon{opacity:1}.ibiz-chat-topic-item.is-active:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item.is-edit{border:2px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-topic-item__caption{width:100%;height:100%;display:flex;align-items:center}.ibiz-chat-topic-item__caption--text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-topic-item__caption--editor{width:100%;height:100%;border:none;outline:none;color:var(--ibiz-ai-chat-color);background:var(--ibiz-ai-chat-background-color)}.ibiz-chat-topic-item__icon{top:50%;gap:8px;opacity:0;right:10px;height:24px;display:flex;outline:none;padding:0 8px;border-radius:8px;position:absolute;align-items:center;justify-content:flex-end;transform:translateY(-50%);color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item__icon--item{font-size:12px}.ibiz-chat-search{gap:8px;width:100%;display:flex;line-height:32px;border-radius:1px;padding:1px 11px;align-items:center;justify-content:center;border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-search:hover,.ibiz-chat-search.is-focus{border:1px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-search__prefix{width:14px;height:14px;display:flex;flex-shrink:0;font-size:14px;align-items:center}.ibiz-chat-search__inner{padding:2px 0 0;outline:0;flex-grow:1;border:none;height:28px;min-width:0;color:inherit;line-height:28px;background-color:initial}.ibiz-chat-topics{display:flex;flex-direction:column;gap:8px;height:100%;padding:8px 0}.ibiz-chat-topics__header{flex-shrink:0;padding:0 8px}.ibiz-chat-topics__main{flex-grow:1;padding:0 8px;overflow-y:auto}.ibiz-chat-topics__empty{font-size:var(--ibiz-font-size-regular);text-align:center}.ibiz-chat-topics__footer{display:flex;flex-shrink:0;align-items:center;justify-content:center;padding:0 8px}.ibiz-chat-topics__action{display:flex;gap:4px;align-items:center;padding:4px 12px;font-size:14px;cursor:pointer;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:2px}.ibiz-chat-topics__action:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topics__action>svg{width:14px!important;height:14px!important}.ibiz-chat-minimize{width:56px;height:56px;display:flex;z-index:99999;cursor:pointer;position:absolute;border-radius:50%;align-items:center;justify-content:center}.ibiz-chat-minimize.is-hidden{display:none}.ibiz-chat-minimize.is-show-halo{width:90px;height:90px;background-size:cover;background-position:center;background-repeat:no-repeat;background-image:url(assets/gif/halo.gif)}.ibiz-chat-minimize__content{width:56px;height:56px;display:flex;border-radius:50%;align-items:center;justify-content:center;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color)}.ibiz-chat-minimize__content:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-minimize__content svg{fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-minimize__content.is-show-border{border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover{left:50%;bottom:90px;padding:8px;display:block;font-size:12px;border-radius:8px;position:absolute;transform:translate(-50%);box-shadow:0 2px 8px rgba(0,0,0,.1);background-color:var(--ibiz-ai-chat-background-color);color:var(--ibiz-ai-chat-color);border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover .typewriter{direction:rtl;overflow:hidden;max-width:200px;width:fit-content;white-space:nowrap;text-overflow:ellipsis;animation:typing 3s steps(40,end)}@keyframes blink{0%,to{opacity:0}50%{opacity:1}}@keyframes typing{0%{width:0}to{width:100%}}@keyframes blink-caret{0%,to{border-color:transparent}50%{border-color:var(--ibiz-ai-chat-color)}}.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-ai-chat-scroll-bar-width: 8px;--ibiz-ai-chat-scroll-bar-height: 8px;--ibiz-ai-chat-scroll-bar-radius: 4px}.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__toolbar{margin:0;left:20px;gap:8px 4px;bottom:118px;min-height:48px;position:absolute;justify-content:center;width:calc(100% - 40px)}.ibiz-chat-container__toolbar.is-has-materials{bottom:180px}.ibiz-chat-container *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-container *::-webkit-scrollbar-thumb{border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.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-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.23/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.23/index.system.min.js new file mode 100644 index 0000000000000000000000000000000000000000..a6073ff977ed21ad812b77305cf453dc5436287a --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.23/index.system.min.js @@ -0,0 +1 @@ +!function(){function e(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)}function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,n)}function n(e){var t=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(e){return!1}}();return function(){var n,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}(this,n)}}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||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(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(e,t)||c(e,t)||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(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);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;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:I(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function h(e,t,n,i,r,o,a){try{var c=e[o](a),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(i,r)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){h(o,i,r,a,c,"next",e)}function c(e){h(o,i,r,a,c,"throw",e)}a(void 0)}))}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===c[a]&&(c[a]=e.defaultProps[a]);return O(e,c,i,o,null)}function O(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++h:r};return null==r&&null!=l.vnode&&l.vnode(o),o}function L(e){return e.children}function I(e,t){this.props=e,this.context=t}function D(e,t){if(null==t)return e.__?D(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&y.sort(x));B.__r=0}function H(e,t,n,i,r,o,a,c,s,l,u){var d,h,p,f,v,m,_,g,y,w=0,b=i&&i.__k||T,x=b.length,k=x,N=t.length;for(n.__k=[],d=0;d0?O(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)?(f.__=n,f.__b=n.__b+1,-1===(g=V(f,b,_=d+w,k))?p=C:(p=b[g]||C,b[g]=void 0,k--),$(e,f,p,r,o,a,c,s,l,u),v=f.__e,(h=f.ref)&&p.ref!=h&&(p.ref&&Z(p.ref,null,f),u.push(h,f.__c||v,f)),null!=v&&(null==m&&(m=v),(y=p===C||null===p.__v)?-1==g&&w--:g!==_&&(g===_+1?w++:g>_?k>N-_?w+=g-_:w--:w=g<_&&g==_-1?g-_:0),_=d+w,"function"!=typeof f.type||g===_&&p.__k!==f.__k?"function"==typeof f.type||g===_&&!y?void 0!==f.__d?(s=f.__d,f.__d=void 0):s=v.nextSibling:s=R(e,v,s):s=j(f,s,e),"function"==typeof n.type&&(n.__d=s))):(p=b[d])&&null==p.key&&p.__e&&(p.__e==s&&(p.__=i,s=D(p)),G(p,p,!1),b[d]=null);for(n.__e=m,d=x;d--;)null!=b[d]&&("function"==typeof n.type&&null!=b[d].__e&&b[d].__e==n.__d&&(n.__d=b[d].__e.nextSibling),G(b[d],b[d]))}function j(e,t,n){for(var i,r=e.__k,o=0;r&&o(null!=s?1:0))for(;a>=0||c=0){if((s=t[a])&&r==s.key&&o===s.type)return a;a--}if(c0&&void 0!==arguments[0]?arguments[0]:"";return Q(this.namespace,this.block,e,"","")}},{key:"e",value:function(e){return e?Q(this.namespace,this.block,"",e,""):""}},{key:"m",value:function(e){return e?Q(this.namespace,this.block,"","",e):""}},{key:"be",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,t,""):""}},{key:"em",value:function(e,t){return e&&t?Q(this.namespace,this.block,"",e,t):""}},{key:"bm",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,"",t):""}},{key:"bem",value:function(e,t,n){return e&&t&&n?Q(this.namespace,this.block,e,t,n):""}},{key:"is",value:function(e,t){return e&&t?"".concat("is-").concat(e):""}},{key:"cssVar",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarName(n)]=e[n]);return t}},{key:"cssVarBlock",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarBlockName(n)]=e[n]);return t}},{key:"cssVarName",value:function(e){return"--".concat(this.namespace,"-").concat(e)}},{key:"cssVarBlockName",value:function(e){return"--".concat(this.namespace,"-").concat(this.block,"-").concat(e)}}]),e}();function te(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ne(e,t){for(var n,i="",r=0,o=-1,a=0,c=0;c<=e.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}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(o+1,c):i=e.slice(o+1,c),r=c-o-1;o=c,a=0}else 46===n&&-1!==a?++a:a=-1}return i}var ie={resolve:function(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var r;i>=0?r=arguments[i]:(void 0===e&&(e=process.cwd()),r=e),te(r),0!==r.length&&(t=r+"/"+t,n=47===r.charCodeAt(0))}return t=ne(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(te(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=ne(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return te(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":ie.normalize(e)},relative:function(e,t){if(te(e),te(t),e===t)return"";if((e=ie.resolve(e))===(t=ie.resolve(t)))return"";for(var n=1;nc){if(47===t.charCodeAt(o+l))return t.slice(o+l+1);if(0===l)return t.slice(o+l)}else r>c&&(47===e.charCodeAt(n+l)?s=l:0===l&&(s=0));break}var u=e.charCodeAt(n+l);if(u!==t.charCodeAt(o+l))break;47===u&&(s=l)}var d="";for(l=n+s+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(o+s):(o+=s,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(te(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,r=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');te(e);var n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,c=-1;for(n=e.length-1;n>=0;--n){var s=e.charCodeAt(n);if(47===s){if(!o){i=n+1;break}}else-1===c&&(o=!1,c=n+1),a>=0&&(s===t.charCodeAt(a)?-1==--a&&(r=n):(a=-1,r=c))}return i===r?r=c:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){te(e);for(var t=-1,n=0,i=-1,r=!0,o=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(r=!1,i=a+1),46===c?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=a+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==f(e))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+f(e));return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}("/",e)},parse:function(e){te(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0),r=47===i;r?(t.root="/",n=1):n=0;for(var o=-1,a=0,c=-1,s=!0,l=e.length-1,u=0;l>=n;--l)if(47!==(i=e.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&&(t.base=t.name=0===a&&r?e.slice(1,c):e.slice(a,c)):(0===a&&r?(t.name=e.slice(1,o),t.base=e.slice(1,c)):(t.name=e.slice(a,o),t.base=e.slice(a,c)),t.ext=e.slice(o,c)),a>0?t.dir=e.slice(0,a-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};function re(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function oe(){return"".concat(re()+re(),"-").concat(re(),"-").concat(re(),"-").concat(re(),"-").concat(re()).concat(re()).concat(re())}ie.posix=ie;var ae=/]*>[\s\S]*?<\/svg>/;function ce(e){return ae.test(e)}var se=function(){function e(){v(this,e)}return _(e,null,[{key:"copy",value:function(e){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=e,this.inputElement.select(),document.execCommand("copy")}}]),e}();g(se,"inputElement",null);var le=function(){function e(){v(this,e)}var t,n,i,r,o,a,c,s,l,u;return _(e,null,[{key:"checkDataBaseExists",value:(u=p(d().mark((function e(t){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,indexedDB.databases();case 3:return n=e.sent,e.abrupt("return",n.some((function(e){return e.name===t})));case 7:return e.prev=7,e.t0=e.catch(0),console.error("检查数据库是否存在时出错:",e.t0),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])}))),function(e){return u.apply(this,arguments)})},{key:"deleteDatabase",value:(l=p(d().mark((function t(n){var i,r;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.lastLink&&(null===(i=(r=e.lastLink).close)||void 0===i||i.call(r)),t.abrupt("return",new Promise((function(e,t){var i=indexedDB.deleteDatabase(n);i.onsuccess=function(){e(!0)},i.onerror=function(){e(!1)},i.onblocked=function(){console.warn("删除数据库 ".concat(n," 被阻塞,可能有其他连接正在使用该数据库。")),t(new Error("删除数据库 ".concat(n," 被阻塞")))}})));case 2:case"end":return t.stop()}}),t)}))),function(e){return l.apply(this,arguments)})},{key:"checkTableExists",value:(s=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.checkDataBaseExists(n);case 2:if(t.sent){t.next=5;break}return t.abrupt("return",!1);case 5:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onupgradeneeded=function(t){e.db=t.target.result,e.version=e.db.version},o.onsuccess=function(n){e.db=n.target.result,e.lastLink=o.result;var r=e.db.objectStoreNames.contains(i);o.result.close(),t(r)},o.onerror=function(e){r(e.target.error)}})));case 6:case"end":return t.stop()}}),t)}))),function(e,t){return s.apply(this,arguments)})},{key:"createTable",value:(c=p(d().mark((function t(n,i,r){var o,a=arguments;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=a.length>3&&void 0!==a[3]&&a[3],t.abrupt("return",new Promise((function(t){var a,c;e.version+=1,e.lastLink&&(null===(a=(c=e.lastLink).close)||void 0===a||a.call(c));var s=indexedDB.open(n,e.version);s.onupgradeneeded=function(t){if(e.db=t.target.result,!e.db.objectStoreNames.contains(i)){var n={};r?n.keyPath=r:o&&(n.autoIncrement=!0),e.db.createObjectStore(i,n)}},s.onsuccess=function(){e.lastLink=s.result,s.result.close(),t(!0)},s.onerror=function(){t(!1)}})));case 2:case"end":return t.stop()}}),t)}))),function(e,t,n){return c.apply(this,arguments)})},{key:"deleteTable",value:(a=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){var r,o;e.version+=1,e.lastLink&&(null===(r=(o=e.lastLink).close)||void 0===r||r.call(o));var a=indexedDB.open(n,e.version);a.onupgradeneeded=function(t){e.db=t.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)&&e.db.deleteObjectStore(i)},a.onsuccess=function(n){e.db=n.target.result,e.lastLink=a.result,a.result.close(),t(!0)},a.onerror=function(){a.result.close(),t(!1)}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t){return a.apply(this,arguments)})},{key:"addData",value:(o=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).add(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(null)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return o.apply(this,arguments)})},{key:"deleteData",value:(r=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).delete(r);o.onsuccess=function(e){t(!0)},o.onerror=function(){t(!1)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"updateData",value:(i=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).put(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(r)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"getData",value:(n=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var c=e.db.transaction([i],"readonly").objectStore(i).get(r);c.onsuccess=function(e){t(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 t.stop()}}),t)}))),function(e,t,i){return n.apply(this,arguments)})},{key:"getAllData",value:(t=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=o.result,e.db.objectStoreNames.contains(i)){var r=e.db.transaction([i],"readonly").objectStore(i).getAll();r.onsuccess=function(e){t(r.result)},r.onerror=function(){t([])}}o.result.close()},o.onerror=function(){o.result.close(),r()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}]),e}();g(le,"version",1),g(le,"db",null),g(le,"lastLink",void 0);var ue=function(){function e(t){v(this,e),g(this,"options",void 0),this.options=u({multiple:!0,accept:"*/*",maxSize:5242880},t)}var t,n;return _(e,[{key:"openFilePicker",value:function(){var e=this,t=document.createElement("input");t.type="file",t.multiple=this.options.multiple,t.accept=this.options.accept||"",t.onchange=function(t){var n=Array.from(t.target.files||[]);e.handleFiles(n)},t.click()}},{key:"handleFiles",value:(n=p(d().mark((function e(t){var n,i,r,o=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.length){e.next=2;break}return e.abrupt("return");case 2:return r=t.filter((function(e){var t,n;return!(o.options.maxSize&&e.size>o.options.maxSize&&(null===(t=(n=o.options).onError)||void 0===t||t.call(n,new Error("文件大小超过限制 (".concat(o.formatSize(e.size)," > ").concat(o.formatSize(o.options.maxSize),")")),e),1))})),null===(n=(i=this.options).onSelect)||void 0===n||n.call(i,r),e.next=6,Promise.all(r.map((function(e){return o.processFile(e)})));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"processFile",value:(t=p(d().mark((function e(t){var n,i,r,o,a,c,s,l,u=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a=function(e){var n,i;null===(n=(i=u.options).onProgress)||void 0===n||n.call(i,t,e)},e.next=4,this.options.onUpload(t,a);case 4:c=e.sent,null===(n=(i=this.options).onProgress)||void 0===n||n.call(i,t,100),null===(r=(o=this.options).onSuccess)||void 0===r||r.call(o,c,t),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),null===(s=(l=this.options).onError)||void 0===s||s.call(l,e.t0 instanceof Error?e.t0:new Error("上传失败"),t);case 12:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e){return t.apply(this,arguments)})},{key:"formatSize",value:function(e){if(0===e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat((e/Math.pow(1024,t)).toFixed(2)," ").concat(["B","KB","MB","GB"][t])}}]),e}(),de=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("resource")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r),c=o?JSON.parse(o):{},s=a?JSON.parse(a):{};return{id:c.id,type:n,data:c,metadata:s}}catch(Jn){throw new Error("XML 解析错误: ".concat(Jn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/resources>/i.exec(e);if(!t)return{resources:[],remainingText:e,hasResources:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.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(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("resources");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("resource");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}(),he=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("suggestion")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r);return{type:n,data:o?JSON.parse(o):{},metadata:a?JSON.parse(a):{}}}catch(Jn){throw new Error("XML 解析错误: ".concat(Jn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/suggestions>/i.exec(e);if(!t)return{suggestions:[],remainingText:e,hasSuggestions:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.slice(r)).replace(/\n/g,"");try{return{suggestions:this.parse(n),remainingText:o,hasSuggestions:!0}}catch(c){return{suggestions:[],remainingText:o,hasSuggestions:!0,error:"资源解析失败: ".concat(c.message)}}}},{key:"stringify",value:function(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("suggestions");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("suggestion");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}();function pe(e){return e.x>=0&&e.x<=1&&e.y>=0&&e.y<=1}function fe(e,t,n,i){var r=e/window.innerWidth,o=t/window.innerHeight;return{x:Math.max(0,Math.min(r,1-n)),y:Math.max(0,Math.min(o,1-i))}}var ve,me,_e,ge,ye=0,we=[],be=[],xe=l.__b,ke=l.__r,Ce=l.diffed,Te=l.__c,Ne=l.unmount;function Ee(e,t){l.__h&&l.__h(me,e,ye||t),ye=0;var n=me.__H||(me.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:be}),n.__[e]}function Se(e){return ye=1,function(e,t,n){var i=Ee(ve++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):Fe(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=me,!me.u)){var r=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var a=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&i.__c.props===e)&&(!o||o.call(this,e,t,n))};me.u=!0;var o=me.shouldComponentUpdate,a=me.componentWillUpdate;me.componentWillUpdate=function(e,t,n){if(this.__e){var i=o;o=void 0,r(e,t,n),o=i}a&&a.call(this,e,t,n)},me.shouldComponentUpdate=r}return i.__N||i.__}(Fe,e)}function Ae(e,t){var n=Ee(ve++,3);!l.__s&&je(n.__H,t)&&(n.__=e,n.i=t,me.__H.__h.push(n))}function Me(e){return ye=5,Oe((function(){return{current:e}}),[])}function Oe(e,t){var n=Ee(ve++,7);return je(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Le(e,t){return ye=8,Oe((function(){return e}),t)}function Ie(e){var t=me.context[e.__c],n=Ee(ve++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(me)),t.props.value):e.__}function De(){for(var e;e=we.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Be),e.__H.__h.forEach(He),e.__H.__h=[]}catch(ei){e.__H.__h=[],l.__e(ei,e.__v)}}l.__b=function(e){me=null,xe&&xe(e)},l.__r=function(e){ke&&ke(e),ve=0;var t=(me=e.__c).__H;t&&(_e===me?(t.__h=[],me.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=be,e.__N=e.i=void 0}))):(t.__h.forEach(Be),t.__h.forEach(He),t.__h=[],ve=0)),_e=me},l.diffed=function(e){Ce&&Ce(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==we.push(t)&&ge===l.requestAnimationFrame||((ge=l.requestAnimationFrame)||Pe)(De)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==be&&(e.__=e.__V),e.i=void 0,e.__V=be}))),_e=me=null},l.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Be),e.__h=e.__h.filter((function(e){return!e.__||He(e)}))}catch(Ge){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l.__e(Ge,e.__v)}})),Te&&Te(e,t)},l.unmount=function(e){Ne&&Ne(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Be(e)}catch(e){t=e}})),n.__H=void 0,t&&l.__e(t,n.__v))};var ze="function"==typeof requestAnimationFrame;function Pe(e){var t,n=function(){clearTimeout(i),ze&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);ze&&(t=requestAnimationFrame(n))}function Be(e){var t=me,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),me=t}function He(e){var t=me;e.__c=e.__(),me=t}function je(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Fe(e,t){return"function"==typeof t?t(e):t}function Re(){throw new Error("Cycle detected")}var Ve=Symbol.for("preact-signals");function We(){if(Xe>1)Xe--;else{for(var e,t=!1;void 0!==$e;){var n=$e;for($e=void 0,Ze++;void 0!==n;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&et(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=i}}if(Ze=0,Xe--,t)throw e}}var Ue,qe,Ye=void 0,$e=void 0,Xe=0,Ze=0,Ge=0;function Je(e){if(void 0!==Ye){var t=e.n;if(void 0===t||t.t!==Ye)return t={i:0,S:e,p:Ye.s,n:void 0,t:Ye,e:void 0,x:void 0,r:t},void 0!==Ye.s&&(Ye.s.n=t),Ye.s=t,e.n=t,32&Ye.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=Ye.s,t.n=void 0,Ye.s.n=t,Ye.s=t),t}}function Ke(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Qe(e){return new Ke(e)}function et(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function tt(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function nt(e){for(var t=e.s,n=void 0;void 0!==t;){var i=t.p;-1===t.i?(t.S.U(t),void 0!==i&&(i.n=t.n),void 0!==t.n&&(t.n.p=i)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=i}e.s=n}function it(e){Ke.call(this,void 0),this.x=e,this.s=void 0,this.g=Ge-1,this.f=4}function rt(e){return new it(e)}function ot(e){var t=e.u;if(e.u=void 0,"function"==typeof t){Xe++;var n=Ye;Ye=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,at(e),t}finally{Ye=n,We()}}}function at(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ot(e)}function ct(e){if(Ye!==this)throw new Error("Out-of-order effect");nt(this),Ye=e,this.f&=-2,8&this.f&&at(this),We()}function st(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function lt(e){var t=new st(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function ut(e,t){l[e]=t.bind(null,l[e]||function(){})}function dt(e){qe&&qe(),qe=e&&e.S()}function ht(e){var t=this,n=e.data,i=ft(n);i.value=n;var r=Oe((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e;m(r.peek())||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=r.peek()},rt((function(){var e=i.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return r.value}function pt(e,t,n,i){var r=t in e&&void 0===e.ownerSVGElement,o=Qe(n);return{o:function(e,t){o.value=e,i=t},d:lt((function(){var n=o.value.value;i[t]!==n&&(i[t]=n,r?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}function ft(e){return Oe((function(){return Qe(e)}),[])}function vt(e){var t=Me(e);return t.current=e,Ue.__$f|=4,Oe((function(){return rt((function(){return t.current()}))}),[])}Ke.prototype.brand=Ve,Ke.prototype.h=function(){return!0},Ke.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},Ke.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Ke.prototype.subscribe=function(e){var t=this;return lt((function(){var n=t.value,i=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=i}}))},Ke.prototype.valueOf=function(){return this.value},Ke.prototype.toString=function(){return this.value+""},Ke.prototype.toJSON=function(){return this.value},Ke.prototype.peek=function(){return this.v},Object.defineProperty(Ke.prototype,"value",{get:function(){var e=Je(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(Ye instanceof it&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Ze>100&&Re(),this.v=e,this.i++,Ge++,Xe++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{We()}}}}),(it.prototype=new Ke).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Ge)return!0;if(this.g=Ge,this.f|=1,this.i>0&&!et(this))return this.f&=-2,!0;var e=Ye;try{tt(this),Ye=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return Ye=e,nt(this),this.f&=-2,!0},it.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Ke.prototype.S.call(this,e)},it.prototype.U=function(e){if(void 0!==this.t&&(Ke.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},it.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},it.prototype.peek=function(){if(this.h()||Re(),16&this.f)throw this.v;return this.v},Object.defineProperty(it.prototype,"value",{get:function(){1&this.f&&Re();var e=Je(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),st.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},st.prototype.S=function(){1&this.f&&Re(),this.f|=1,this.f&=-9,ot(this),tt(this),Xe++;var e=Ye;return Ye=this,ct.bind(this,e)},st.prototype.N=function(){2&this.f||(this.f|=2,this.o=$e,$e=this)},st.prototype.d=function(){this.f|=8,1&this.f||at(this)},ht.displayName="_st",Object.defineProperties(Ke.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ht},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),ut("__b",(function(e,t){if("string"==typeof t.type){var n,i=t.props;for(var r in i)if("children"!==r){var o=i[r];o instanceof Ke&&(n||(t.__np=n={}),n[r]=o,i[r]=o.peek())}}e(t)})),ut("__r",(function(e,t){dt();var n,i=t.__c;i&&(i.__$f&=-2,void 0===(n=i.__$u)&&(i.__$u=n=function(e){var t;return lt((function(){t=this})),t.c=function(){i.__$f|=1,i.setState({})},t}())),Ue=i,dt(n),e(t)})),ut("__e",(function(e,t,n,i){dt(),Ue=void 0,e(t,n,i)})),ut("diffed",(function(e,t){var n;if(dt(),Ue=void 0,"string"==typeof t.type&&(n=t.__e)){var i=t.__np,r=t.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=pt(n,s,u,r),o[s]=l):l.o(u,r)}}}e(t)})),ut("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__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=t.__c;if(a){var c=a.__$u;c&&(a.__$u=void 0,c.d())}}e(t)})),ut("__h",(function(e,t,n,i){(i<3||9===i)&&(t.__$f|=2),e(t,n,i)})),I.prototype.shouldComponentUpdate=function(e,t){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 t)return!0;for(var r in e)if("__source"!==r&&e[r]!==this.props[r])return!0;for(var o in this.props)if(!(o in e))return!0;return!1};var mt=0;function _t(e,t,n,i,r,o){var a,c,s={};for(c in t)"ref"==c?a=t[c]:s[c]=t[c];var u={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--mt,__source:r,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===s[c]&&(s[c]=a[c]);return l.vnode&&l.vnode(u),u}var gt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},yt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},wt=function(e){return _t("svg",{viewBox:"0 0 1024 1024",id:"send",className:e.className,version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},bt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},xt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},kt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Ct=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Tt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Nt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M960 544H64a32 32 0 1 1 0-64h896a32 32 0 1 1 0 64"})})},Et=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[_t("path",{d:"M481.0752 263.3728l50.9952 1.024 1.8432-105.8816-50.9952-0.8192z"}),_t("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"}),_t("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"}),_t("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"}),_t("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"}),_t("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"})]})},St=function(){return _t("svg",{viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_t("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"}),_t("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"}),_t("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"})]})},At=function(){return _t("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_t("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"})})},Mt=function(){var e=1e3,t=140,n=250,i=.8;return _t("svg",{fill:"currentColor",viewBox:"0 0 ".concat(e," ").concat(e),xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:Array.from({length:4}).map((function(e,r){return _t("rect",{fill:"currentColor",rx:70,ry:70,height:n,width:t,x:286.66666666666663*r,y:375,children:[_t("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"}),_t("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)}))})},Ot=function(e){return _t("svg",{className:e.className,onClick:e.onClick,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Lt=function(e){return _t("svg",{className:e.className,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},It=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M972.657609 209.348408C987.158609 209.36839 998.930114 197.571202 998.949999 182.99865 998.969882 168.426097 987.230618 156.59651 972.729617 156.576528L32.457975 155.280806C17.956974 155.260823 6.18547 167.058012 6.165585 181.630564 6.1457 196.203116 17.884965 208.032703 32.385966 208.052686L972.657609 209.348408ZM180.466902 992.356169 180.466902 1019.014859 206.993296 1018.74074 833.361858 1012.267947 859.348284 1011.999407 859.348284 985.883377 859.348284 289.397297C859.348284 274.824732 847.59289 263.011332 833.091874 263.011332 818.590859 263.011332 806.835465 274.824732 806.835465 289.397297L806.835465 985.883377 832.82189 959.498805 206.453329 965.971599 232.979723 992.356169 232.979723 282.67005C232.979723 268.097483 221.224329 256.284085 206.723313 256.284085 192.222298 256.284085 180.466902 268.097483 180.466902 282.67005L180.466902 992.356169ZM656.410257 847.079027C656.410257 861.651593 668.165651 873.464992 682.666667 873.464992 697.167682 873.464992 708.923076 861.651593 708.923076 847.079027L708.923076 372.131659C708.923076 357.559091 697.167682 345.745694 682.666667 345.745694 668.165651 345.745694 656.410257 357.559091 656.410257 372.131659L656.410257 847.079027ZM341.333333 847.079027C341.333333 861.651593 353.08873 873.464992 367.589743 873.464992 382.090758 873.464992 393.846155 861.651593 393.846155 847.079027L393.846155 372.131659C393.846155 357.559091 382.090758 345.745694 367.589743 345.745694 353.08873 345.745694 341.333333 357.559091 341.333333 372.131659L341.333333 847.079027ZM498.871795 847.079027C498.871795 861.651593 510.627189 873.464992 525.128205 873.464992 539.62922 873.464992 551.384614 861.651593 551.384614 847.079027L551.384614 372.131659C551.384614 357.559091 539.62922 345.745694 525.128205 345.745694 510.627189 345.745694 498.871795 357.559091 498.871795 372.131659L498.871795 847.079027ZM392.147755 116.721777C392.147755 102.063669 403.758665 90.363507 418.40134 90.363507L622.925796 90.363507C637.408947 90.363507 649.179381 102.1619 649.179381 116.549585L649.179381 171.644875 701.692203 171.644875 701.692203 116.549585C701.692203 72.986607 666.38105 37.591577 622.925796 37.591577L418.40134 37.591577C374.724427 37.591577 339.634933 72.950804 339.634933 116.721777L339.634933 165.310801 392.147755 165.310801 392.147755 116.721777Z"})})},Dt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 184l144 144 144-144"})})},zt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"".concat(e.className," icon"),viewBox:"0 0 512 512",children:_t("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"})})},Pt=function(e){return _t("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",children:_t("circle",{cx:"25",cy:"25",r:"20",stroke:"currentColor",strokeWidth:"5",fill:"none",strokeDasharray:"31.415, 31.415",strokeLinecap:"round",children:_t("animateTransform",{attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"1s",repeatCount:"indefinite"})})})},Bt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ht=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},jt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ft=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Rt=function(e){return _t("svg",{className:e.className,id:"stop",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},Vt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})})},Wt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("path",{d:"M394.688 126.208a32 32 0 0 1 32-32h170.688a32 32 0 0 1 32 32v138.624h288a32 32 0 0 1 32 32v170.688a32 32 0 0 1-32 32H106.688a32 32 0 0 1-32-32V296.832a32 32 0 0 1 32-32h288V126.208z m64 32v138.624a32 32 0 0 1-32 32h-288v106.688h746.688V328.832h-288a32 32 0 0 1-32-32V158.208H458.688z"}),_t("path",{d:"M138.688 469.376a32 32 0 0 1 32-32h682.688a32 32 0 0 1 32 32v384a32 32 0 0 1-32 32H170.688a32 32 0 0 1-32-32v-384z m64 32v320h618.688v-320H202.688z"}),_t("path",{d:"M341.376 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32zM512 691.2a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0v-128a32 32 0 0 1 32-32zM682.688 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32z"})]})},Ut=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("path",{d:"M843.251 424.407l43.828-74.898c10.194-17.946 32.596-22.158 48.956-11.598 16.298 10.499 23.44 32.658 14.223 49.566l-113.11 195.212-61.164-40.044-126.418-82.285c-16.115-11.598-20.632-34.428-10.194-51.702 9.705-17.397 31.009-23.501 47.857-13.734l89.67 59.028C748.576 295.547 615.81 180.667 461.008 180.667c-177.387 0-320.042 148.758-320.042 331.335 0 183.613 143.692 331.334 319.981 331.334 107.861 0.184 208.58-56.158 268.034-149.858 1.099-1.038 1.099-2.075 2.075-2.075 6.348-9.949 17.092-15.871 28.568-15.81 19.35 0 35.648 16.848 35.648 36.93 0 7.508-2.137 14.833-6.104 21.059-72.823 114.698-196.066 183.675-328.099 183.614-216.088 0-391.4-181.478-391.4-405.195 0-223.718 175.312-405.195 391.339-405.195 183.125-0.427 342.016 131.606 382.243 317.601z"})})},qt=function(){return _t("svg",{version:"1.1",className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M627.498667 55.168l170.666666 170.666667a42.624 42.624 0 0 1 0 60.330666l-469.333333 469.333334A42.538667 42.538667 0 0 1 298.666667 768H128a42.666667 42.666667 0 0 1-42.666667-42.666667v-170.666666c0-11.306667 4.48-22.186667 12.501334-30.165334l469.333333-469.333333a42.624 42.624 0 0 1 60.330667 0zM896 896a42.666667 42.666667 0 0 1 0 85.333333H128a42.666667 42.666667 0 0 1 0-85.333333h768zM597.333333 145.664l-426.666666 426.666667V682.666667h110.336l426.666666-426.666667L597.333333 145.664z"})})},Yt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M184 112l144 144-144 144"})})},$t=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M896 870.4l-128-128c55.467-68.267 89.6-149.333 89.6-238.933 0-98.134-38.4-192-110.933-264.534-149.334-149.333-384-149.333-533.334-4.266-145.066 145.066-145.066 384 0 529.066 72.534 72.534 166.4 110.934 264.534 110.934 89.6 0 174.933-29.867 238.933-89.6l128 128c4.267 4.266 12.8 8.533 21.333 8.533s17.067-4.267 21.334-8.533c17.066-8.534 17.066-29.867 8.533-42.667zM260.267 721.067c-119.467-123.734-119.467-320 0-439.467 59.733-59.733 140.8-89.6 217.6-89.6 81.066 0 157.866 29.867 217.6 89.6 59.733 59.733 89.6 136.533 89.6 217.6 0 81.067-34.134 162.133-89.6 217.6-55.467 59.733-132.267 93.867-217.6 93.867-81.067 0-157.867-34.134-217.6-89.6z"})})},Xt=function(e){var t=e.items,n=ft([]),i=new ee("chat-thought-chain"),r=ft([]);Ae((function(){r.value=t.filter((function(e){return e.description})),r.value.length>0&&r.value.forEach((function(e,t){e.done&&(n.value=[].concat(o(n.value),[t]))}))}),[t]);return 0===r.value.length?null:_t("div",{className:"".concat(i.b()," ").concat(i.is("single",1===r.value.length)),children:r.value.map((function(e,t){if(e.description){var r=n.value.includes(t);return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("collapsed",r)),children:[_t("div",{className:i.e("item-icon"),children:e.icon||_t("span",{children:t})}),_t("div",{className:i.e("item-content"),children:[_t("div",{className:i.e("item-title"),onClick:function(){return function(e){n.value.includes(e)?n.value=n.value.filter((function(t){return t!==e})):n.value=[].concat(o(n.value),[e])}(t)},children:[e.title,_t(Dt,{className:i.e("icon")})]}),_t("div",{className:i.e("item-description"),children:e.description})]})]},t)}}))})},Zt=function(e){var t=e.items,n=e.onItemClick,i=new ee("chat-suggestions");return _t("div",{className:"".concat(i.b()),children:t.map((function(e,t){return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("action","action"===e.type)),onClick:function(t){return function(e,t){null==n||n(e,t)}(e,t)},title:e.metadata.content_name,children:[e.metadata.content_name,_t(Yt,{className:"".concat(i.e("item-icon"))})]},t)}))})},Gt=new ee("markdown-message"),Jt=function(e){var t=e.message,n=e.size,i=ft(oe()),r=ft(null),o=Oe((function(){return 20===t.state&&!0!==t.completed}),[t.state,t.completed]),a=Oe((function(){return 20===t.state&&!0===t.completed}),[t.state,t.completed]),c=ft({title:"",description:"",icon:_t(Pt,{})}),l=ft({hasSuggestions:!1,suggestions:[]}),u=function(e){e&&e.length>0?l.value={hasSuggestions:!0,suggestions:e}:l.value={hasSuggestions:!1,suggestions:[]}},d=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="",o=!1;return-1===n?(o=!1,i=e.slice(t+7),r=""):(o=!0,i=e.slice(t+7,n),r=e.slice(n+8)),{isThoughtCompleted:o,thoughtContent:i,answerContent:r}};return Ae((function(){if(n>=0&&r.value){if(-1!==t.content.indexOf("")){var e=d(t.content),i=e.isThoughtCompleted,o=e.thoughtContent,a=e.answerContent;i?(c.value.icon=_t(zt,{}),c.value.title="思考完成"):!0===t.completed?(c.value.icon=_t(zt,{}),c.value.title="思考已停止"):(c.value.icon=_t(Pt,{}),c.value.title="思考中..."),c.value.description=o||"",r.value.setMarkdown(a||"")}else r.value.setMarkdown(t.content||"");u(t.suggestions)}}),[t,n]),Ae((function(){var e="";if(-1!==t.content.indexOf("")){var n=d(t.content),o=n.isThoughtCompleted,a=n.thoughtContent,l=n.answerContent;c.value={title:o?"思考完成":!0===t.completed?"思考已停止":"思考中...",description:a||"",icon:o||!0===t.completed?_t(zt,{}):_t(Pt,{})},l&&(e=l)}else e=t.content;u(t.suggestions),r.value=new s({id:i,value:e||"",editor:{defaultModel:"previewOnly"}})}),[]),_t("div",{className:"".concat(Gt.b()," ").concat(Gt.is("loading",o)),children:[_t("div",{className:Gt.b("header"),children:[_t("div",{className:Gt.be("header","caption"),children:"AI "}),e.children,a?_t("div",{className:Gt.be("header","timeout"),children:"请求超时"}):null]}),_t("div",{className:"".concat(Gt.b("content")," pre-wrap-container"),children:[_t(Xt,{items:[c.value]}),_t("div",{id:i})]}),_t("div",{className:Gt.b("footer"),children:l.value.hasSuggestions?_t(Zt,{items:l.value.suggestions,onItemClick:function(t,n){!function(t,n){e.controller.handleSuggestionClick(e.message,t,n)}(t,n)}}):null})]})},Kt=new ee("ossfile-material"),Qt=function(e){var t=vt((function(){return e.material.data.name})),n=vt((function(){return e.material.metadata.size})),i=vt((function(){var t=e.material.metadata.state;return"successed"===t?"上传成功":"uploading"===t?"上传中":"failed"===t?"上传失败":"未知状态"})),r=vt((function(){switch(e.material.metadata.state){case"successed":return"#1890ff";case"uploading":return"#52c41a";default:return"#ff4d4f"}}));return _t("div",{className:Kt.b(),children:[_t("div",{className:Kt.b("left"),children:_t(Ht,{})}),_t("div",{className:Kt.b("right"),children:[_t("div",{className:Kt.e("name"),title:t,children:t}),_t("div",{className:Kt.e("metadata"),children:[_t("div",{children:[n,"B"]}),_t("div",{style:{color:r.value},children:i})]})]})]})},en=new ee("common-material"),tn=function(e){var t,n,i,r,o=null===(t=e.controller.opts.questionToolbarItems)||void 0===t?void 0:t.find((function(t){return t.id===e.material.metadata.actionId})),a=vt((function(){return e.material.metadata.name}));return _t("div",{className:en.b(),children:[_t("div",{className:en.b("left"),children:o&&o.icon?"function"==typeof o.icon?o.icon():(null===(n=o.icon)||void 0===n?void 0:n.showIcon)&&_t(L,{children:null!==(i=o.icon)&&void 0!==i&&i.cssClass?_t("i",{className:o.icon.cssClass}):null!==(r=o.icon)&&void 0!==r&&r.imagePath?ce(o.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:o.icon.imagePath}}):_t("img",{src:o.icon.imagePath}):null}):_t(Ft,{})}),_t("div",{className:en.b("right"),children:[_t("div",{className:en.e("name"),title:a,children:a}),_t("div",{className:en.e("metadata"),children:_t("div",{children:(null==o?void 0:o.label)||"素材资源"})})]})]})},nn=new ee("chat-input-material-item"),rn=function(e){var t=e.material,n=null;if("ossfile"===t.type)n=Qt;else n=tn;return _t("div",{className:"".concat(nn.b()," ").concat(nn.is("disabled",e.disabled)),children:[_t("div",{className:nn.e("icon"),onClick:function(){e.controller.deleteMaterial(t)},children:_t(jt,{})}),M(n,{material:t,controller:e.controller})]})},on=new ee("user-message-question"),an=function(e){var t=ft(oe()),n=ft(null),i=vt((function(){return e.message.content})),r=vt((function(){return de.parseMixedContent(i.value)}));return Ae((function(){n.value=new s({id:t,value:r.value.remainingText||"",editor:{defaultModel:"previewOnly"}})}),[r.value.remainingText]),_t("div",{className:on.b(),children:[_t("div",{className:on.e("user-header"),children:[e.children,_t("div",{className:on.e("user"),children:"我"})]}),_t("div",{className:on.e("content"),children:_t("div",{className:on.em("content","body"),children:[r.value.hasResources&&_t("div",{className:on.em("content","material"),children:r.value.resources.map((function(t){return _t(rn,{material:t,disabled:!0,controller:e.controller},t.id)}))}),_t("div",{className:"pre-wrap-container",children:_t("div",{id:t})})]})})]})},cn=new ee("error-message"),sn=function(e){var t=vt((function(){return e.message.content}));return _t("div",{className:cn.b(),children:[_t("div",{className:cn.b("header"),children:[_t("div",{className:cn.be("header","caption"),children:"AI "}),e.children]}),_t("div",{className:"".concat(cn.e("content")," pre-wrap-container"),children:_t("span",{children:t})})]})},ln=new ee("unknown-message"),un=function(e){return _t("div",{className:ln.b(),children:_t("div",{className:"".concat(ln.e("content")," pre-wrap-container"),children:["暂未支持的消息类型: ",e.message.type]})})},dn=new ee("chat-message-item"),hn=function(e){var t=e.message,n=e.size,i=null;switch(t.type){case"DEFAULT":i="ASSISTANT"===t.role?Jt:an;break;case"ERROR":i=sn;break;default:i=un}return _t("div",{className:dn.b(),children:M(i,{size:n,message:t,controller:e.controller,children:e.children})})},pn=function(){function e(t){v(this,e),this.msg=t}return _(e,[{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 e=this.msg.content;if(-1!==e.indexOf("")&&-1===e.indexOf(""))return"";if(-1!==(e=e.replace(/[^]*?<\/think>/g,"").trim()).indexOf("")&&-1===e.indexOf(""))return"";var t=(e=e.replace(/[^]*?<\/resources>/g,"").trim()).indexOf("");return-1!==t&&(e=e.substring(0,t).trim()),e}},{key:"content",get:function(){return this.msg.content}},{key:"completed",get:function(){return this.msg.completed}},{key:"suggestions",get:function(){return this.msg.suggestions}},{key:"_origin",get:function(){return this.msg}},{key:"update",value:function(e){e.content||(e.content=""),-1!==e.content.indexOf("")&&this.msg.content&&(this.msg.content=""),this.msg.content+=e.content}},{key:"updateCompleted",value:function(e){this.msg.completed=e}}]),e}(),fn=function(){function e(t){v(this,e),this.data=t}return _(e,[{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:"sourceCaption",get:function(){return this.data.sourceCaption||this.caption}},{key:"url",get:function(){return this.data.url}},{key:"aiChat",get:function(){return this.data.aiChat}}]),e}(),vn=function(){function e(t){v(this,e),this.material=t}return _(e,[{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}}]),e}(),mn=new ee("chat-toolbar-item"),_n=function(e){var t,n,i,r=e.model,o=e.data,c=e.className,s=e.disabled,l=void 0!==s&&s,u=e.buttonType,d=void 0===u?"default":u,h=e.onClick,p=a(Se(!1),2),f=p[0],v=p[1],m=Me(null),_=function(e){return"function"==typeof e.hidden?e.hidden(o):!0===e.hidden};if(_(r))return _t(L,{});var g=function(e){return!!l||("function"==typeof e.disabled?e.disabled(o):!0===e.disabled)},y=function(e){var t,n,i,r;return"function"==typeof e.icon?e.icon():null!==(t=e.icon)&&void 0!==t&&t.showIcon&&null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.showIcon&&null!==(r=e.icon)&&void 0!==r&&r.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):void 0},w=function(e,t){g(t)||(v(!1),h(e,t))};return Ae((function(){var e=function(e){m.current&&m.current.contains(e.target)||v(!1)};return f&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[f]),_t("div",{className:"".concat(mn.b()," ").concat(mn.b(d)," ").concat(r.customClass||""," ").concat(c||""," ").concat(mn.is("disabled",g(r))," ").concat(mn.is("more",!(null===(t=r.children)||void 0===t||!t.length))),children:[_t("div",{title:r.title,className:mn.e("content"),onClick:function(e){return w(e,r)},children:[_t("div",{className:mn.em("content","icon"),children:y(r)}),_t("div",{className:mn.em("content","label"),children:r.label})]}),(null===(n=r.children)||void 0===n?void 0:n.length)&&_t("div",{title:"更多",className:mn.e("more"),onClick:function(e){g(r)||v(!0)},children:_t("i",{"aria-hidden":"true",className:"fa fa-angle-down ".concat(mn.em("more","icon"))})}),f&&_t("div",{ref:m,className:mn.b("dropdown"),children:null===(i=r.children)||void 0===i?void 0:i.map((function(e,t){if(!_(e))return _t("div",{title:e.title,onClick:function(t){return w(t,e)},className:"".concat(mn.be("dropdown","item")," ").concat(e.customClass||""," ").concat(mn.is("disabled",g(e))),children:[_t("div",{className:mn.bem("dropdown","item","icon"),children:y(e)}),_t("div",{className:mn.bem("dropdown","item","label"),children:e.label})]},t)}))})]})},gn=new ee("chat-toolbar"),yn=function(e){var t=e.controller,n=e.items,i=void 0===n?[]:n,r=e.data,a=e.type,c=e.className,s=Ie(Ci),l=[],d=[{label:"重置对话",title:"重置对话",icon:function(){return _t(Ut,{})},onClick:function(){t.resetTopic()},children:[{label:"清空对话",title:"清空对话",icon:function(){return _t(Wt,{})},onClick:function(){t.clearTopic()}},{label:"新建对话",title:"新建对话",hidden:"TOPIC"!==e.controller.opts.mode,icon:function(){return _t(St,{})},onClick:function(){s.newTopic&&s.newTopic()}}]}],h=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r)}},{label:"删除",title:"删除",icon:function(){return _t(bt,{})},onClick:function(){t.deleteMessage(r)}},{label:"复制",title:"复制",icon:function(){return _t(kt,{})},onClick:function(){t.copyMessage(r)}}];s.enableBackFill&&h.unshift.apply(h,[{label:"回填",title:"回填",icon:function(){return _t(yt,{})},onClick:function(){t.backfill(r)}}]);var p=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r,!0)}}];if("content"===a)switch(r.type){case"DEFAULT":l="ASSISTANT"===r.role?[].concat(h,o(i)):[].concat(p);break;case"ERROR":l=[].concat(h,o(i))}else l=[].concat(d,o(i));var f=function(n,i){var o=u({},r);if(r instanceof pn?(Object.assign(o,{topic:t.topic}),o.msg.realcontent=r.realcontent):Object.assign(o.data,{messages:t.messages.value}),i.onClick&&"function"==typeof i.onClick)i.onClick(n,i,t.context,t.params,o);else{var a=e.controller.opts.extendToolbarClick;a&&"function"==typeof a&&a(n,i,t.context,t.params,o)}},v=Oe((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 _t("div",{className:"".concat(gn.b()," ").concat(c||""),children:l.map((function(e,t){return _t(_n,{data:r,model:e,disabled:v,buttonType:"content"===a?"circle":"default",onClick:f.bind(void 0)},t)}))})};var wn=function(e){var t,n,i,r=ft(!1),o=ft({}),a=new ee("chat-back-bottom"),c=ft(null),s=function(){if(c.value){var t=e.visibilityHeight||200,n=c.value.scrollHeight-c.value.scrollTop-c.value.offsetHeight;r.value=n>=t}},l=(t=s,n=300,i=null,function(){for(var e=this,r=arguments.length,o=new Array(r),a=0;a3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),K(M(Dn,{context:t.context},e.__v),t.l)}function Pn(e,t){var n=M(zn,{__v:e,i:t});return n.containerInfo=t,n}(Ln.prototype=new I).__a=function(e){var t=this,n=On(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),In(t,e,i)):r()};n?n(o):o()}},Ln.prototype.render=function(e){this.u=null,this.o=new Map;var t=F(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ln.prototype.componentDidUpdate=Ln.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){In(e,n,t)}))};var Bn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Hn=/^(?: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]/,jn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Fn=/[A-Z0-9]/g,Rn="undefined"!=typeof document,Vn=function(e){return("undefined"!=typeof Symbol&&"symbol"==f(Symbol())?/fil|che|rad/:/fil|che|ra/).test(e)};I.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(I.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Wn=l.event;function Un(){}function qn(){return this.cancelBubble}function Yn(){return this.defaultPrevented}l.event=function(e){return Wn&&(e=Wn(e)),e.persist=Un,e.isPropagationStopped=qn,e.isDefaultPrevented=Yn,e.nativeEvent=e};var $n={enumerable:!1,configurable:!0,get:function(){return this.class}},Xn=l.vnode;l.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={};for(var r in t){var o=t[r];if(!("value"===r&&"defaultValue"in t&&null==o||Rn&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===o?o="":"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Vn(t.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":jn.test(r)?r=a:-1===n.indexOf("-")&&Hn.test(r)?r=r.replace(Fn,"-$&").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(t.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=F(t.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",$n)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=Bn,Xn&&Xn(e)};var Zn=l.__r;l.__r=function(e){Zn&&Zn(e),e.__c};var Gn=l.diffed;l.diffed=function(e){Gn&&Gn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};var Jn=new Map;function Kn(e){var t=Jn.get(e);t&&t.destroy()}function Qn(e){var t=Jn.get(e);t&&t.update()}var ei=null;"undefined"==typeof window?((ei=function(e){return e}).destroy=function(e){return e},ei.update=function(e){return e}):((ei=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!Jn.has(e)){var t,n=null,i=window.getComputedStyle(e),r=(t=e.value,function(){a({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),o=function(t){e.removeEventListener("autosize:destroy",o),e.removeEventListener("autosize:update",c),e.removeEventListener("input",r),window.removeEventListener("resize",c),Object.keys(t).forEach((function(n){return e.style[n]=t[n]})),Jn.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",o),e.addEventListener("autosize:update",c),e.addEventListener("input",r),window.addEventListener("resize",c),e.style.overflowX="hidden",e.style.wordWrap="break-word",Jn.set(e,{destroy:o,update:c}),c()}function a(t){var r,o,c=t.restoreTextAlign,s=void 0===c?null:c,l=t.testForHeightReduction,u=void 0===l||l,d=i.overflowY;if(0!==e.scrollHeight&&("vertical"===i.resize?e.style.resize="none":"both"===i.resize&&(e.style.resize="horizontal"),u&&(r=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null}))}}(e),e.style.height=""),o="content-box"===i.boxSizing?e.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):e.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&o>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(e.style.overflow="scroll"),o=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(e.style.overflow="hidden"),e.style.height=o+"px",s&&(e.style.textAlign=s),r&&r(),n!==o&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=o),d!==i.overflow&&!s)){var h=i.textAlign;"hidden"===i.overflow&&(e.style.textAlign="start"===h?"end":"start"),a({restoreTextAlign:h,testForHeightReduction:!0})}}function c(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Kn),e},ei.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Qn),e});var ti=ei,ni=function(e){return e.STYLE_CACHE="ai-chat-style-cache",e.MINIMIZE_STYLY_CHCHE="ai-chat-minimize-style-cache",e.DATA_BASE_NAME="ibiz-chat",e.DATA_TABLE_NAME="history-message",e.DATA_TABLE_KEY_NAME="id",e}(ni||{}),ii=function(){function e(t){v(this,e),g(this,"messages",Qe([])),g(this,"materials",Qe([])),g(this,"input",Qe("")),g(this,"isLoading",Qe(!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=t,this.context=t.context,this.params=t.params,this.appDataEntityId=t.appDataEntityId,this.topicId=t.topicId,this.topic=t.topic,this.fecthHistory()}var t,n,i,r,a,c,s;return _(e,[{key:"fecthHistory",value:(s=p(d().mark((function e(){var t,n=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=7;break}return e.next=3,le.getData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 3:if(!((t=e.sent)&&t.data&&t.data.length>0)){e.next=7;break}return t.data.forEach((function(e){var t={messageid:e.messageid,state:e.state,type:e.type,role:e.role,content:e.content,suggestions:e.suggestions,completed:!0};n.addMessage(t)})),e.abrupt("return",!0);case 7:return e.next=9,this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId,appendCurData:this.opts.appendCurData});case 9:return e.sent&&this.opts.appendCurContent&&this.addMessage({state:30,messageid:oe(),role:"USER",type:"DEFAULT",content:this.opts.appendCurContent,completed:!0}),e.abrupt("return",!0);case 12:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"asyncToIndexDB",value:(c=p(d().mark((function e(){var t;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.topicId){e.next=2;break}return e.abrupt("return");case 2:return t={id:this.topicId,data:this.messages.value.map((function(e){return e._origin})),timestamp:(new Date).getTime()},e.next=5,le.updateData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"setInput",value:function(e){this.input.value=e||""}},{key:"addMessage",value:function(e){var t=this.messages.value.find((function(t){return t.messageid===e.messageid}));t?(t.update(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB()}},{key:"completeMessage",value:function(e,t){var n=this.messages.value.find((function(t){return t.messageid===e}));n&&(n.updateCompleted(t),this.messages.value=o(this.messages.value),this.asyncToIndexDB())}},{key:"replaceMessage",value:function(e){var t=this,n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==n?(this.messages.value[n]=new pn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB(),"DEFAULT"===e.type&&this.opts.recommendPrompt&&this.opts.recommendPrompt(this.context,this.params,{appDataEntityId:this.appDataEntityId,message:{messages:[e]}}).then((function(n){n&&n.content&&t.updateRecommendPrompt(e,n.content)}))}},{key:"stopMessage",value:function(e){var t=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));if(-1!==t){var n=this.messages.value[t];e.content=n.content,this.messages.value[t]=new pn(e),this.messages.value=o(this.messages.value)}else this.messages.value=[].concat(o(this.messages.value),[new pn(e)]);this.asyncToIndexDB()}},{key:"stringlyMaterialResource",value:function(){var e="",t=[];return this.materials.value&&this.materials.value.length>0&&(this.materials.value.forEach((function(e){if("ossfile"===e.type){var n=e.metadata;n.state&&"successed"===n.state&&t.push(e)}else t.push(e)})),this.materials.value=[]),t&&t.length>0&&(e=de.stringify(t)),e}},{key:"question",value:(a=p(d().mark((function e(t){var n,i=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.isLoading.value=!0,this.messages.value.forEach((function(e,t){var n=e._origin;n.suggestions&&(n.suggestions=void 0,i.messages.value[t]=new pn(n))})),this.messages.value=o(this.messages.value),this.asyncToIndexDB(),(n=this.stringlyMaterialResource())?n+="\n".concat(t):n=t,this.addMessage({state:30,messageid:oe(),role:"USER",type:"DEFAULT",content:n}),e.next=10,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 10:this.opts.action&&this.opts.action("question",t),this.isLoading.value=!1;case 12:return e.prev=12,this.isLoading.value=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[0,,12,15]])}))),function(e){return a.apply(this,arguments)})},{key:"abortQuestion",value:function(){try{this.opts.abortQuestion(this)}finally{this.isLoading.value=!1}}},{key:"backfill",value:function(e){this.opts.action&&this.opts.action("backfill",e)}},{key:"deleteMessage",value:function(e){var t=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==t&&(this.messages.value.splice(t,1),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),this.opts.action&&this.opts.action("deletemsg",e)}},{key:"refreshMessage",value:(r=p(d().mark((function e(t){var n,i,r,a=arguments;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],this.isLoading.value=!0,e.prev=2,i=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})),!n){e.next=11;break}return this.messages.value.splice(i+1,this.messages.value.length-i-1),this.messages.value=o(this.messages.value),e.next=9,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 9:e.next=21;break;case 11:if(i!==this.messages.value.length-1){e.next=18;break}return this.messages.value.pop(),this.messages.value=o(this.messages.value),e.next=16,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 16:e.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",t);case 23:return e.prev=23,this.isLoading.value=!1,e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[2,,23,26]])}))),function(e){return r.apply(this,arguments)})},{key:"copyMessage",value:function(e){var t=e.realcontent;se.copy(t),this.opts.action&&this.opts.action("copymsg",e)}},{key:"resetTopic",value:(i=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=3;break}return e.next=3,le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 3:this.messages.value=[],this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId});case 5:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"clearTopic",value:(n=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=3;break}return e.next=3,le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 3:this.messages.value=[];case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"addMaterial",value:function(e){var t=this.materials.value.find((function(t){return t.id===e.id}));this.materials.value=t?o(this.materials.value):[].concat(o(this.materials.value),[new vn(e)])}},{key:"replaceMaterial",value:function(e,t){var n=this.materials.value.findIndex((function(t){return t.id===e}));-1!==n?(this.materials.value[n]=new vn(t),this.materials.value=o(this.materials.value)):this.materials.value=[].concat(o(this.materials.value),[new vn(t)])}},{key:"deleteMaterial",value:function(e){var t=this.materials.value.findIndex((function(t){return t.id===e.id}));-1!==t&&(this.materials.value.splice(t,1),this.materials.value=o(this.materials.value))}},{key:"updateRecommendPrompt",value:function(e,t){if(t){var n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid})),i=he.parseMixedContent(t).suggestions;i&&i.length>0&&(e.suggestions=i,-1!==n?(this.messages.value[n]=new pn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB())}}},{key:"handleSuggestionClick",value:(t=p(d().mark((function e(t,n,i){var r,a,c,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:-1!==(r=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})))&&((a=this.messages.value[r]._origin).suggestions=void 0,this.messages.value[r]=new pn(a),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),c=n.type,e.t0=c,e.next="action"===e.t0?7:"raw"===e.t0?17:20;break;case 7:if(!this.opts.extendToolbarClick){e.next=16;break}if(s=n.data.actionid){e.next=11;break}throw new Error("actionid不能为空");case 11:return l=u({},t),Object.assign(l,{topic:this.topic}),l.msg.realcontent=t.realcontent,e.next=16,this.opts.extendToolbarClick(i,{id:s,appId:this.context.srfappid},this.context,this.params,l);case 16:case 19:return e.abrupt("break",21);case 17:return e.next=19,this.question(n.data.content);case 20:throw new Error("不支持".concat(c,"推荐类型"));case 21:case"end":return e.stop()}}),e,this)}))),function(e,n,i){return t.apply(this,arguments)})}]),e}(),ri=function(){function e(t){v(this,e),g(this,"topics",Qe([])),g(this,"activedTopic",Qe(void 0)),g(this,"currentTopicOptions",void 0),this.chat=t}var t,n,i,r,a,c,s;return _(e,[{key:"fetchHistory",value:(s=p(d().mark((function e(t){var n,i,r=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.configService(t.appid,"aitopics",t.type),e.next=3,n.load();case 3:(i=e.sent)&&i.length>0&&i.forEach((function(e){r.topics.value=[].concat(o(r.topics.value),[new fn(e)])}));case 5:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})},{key:"updateCurrentTopic",value:(c=p(d().mark((function e(t){var n,i,r,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.currentTopicOptions=t,n=this.topics.value.findIndex((function(e){return e.id===t.id})),i=new fn(t),-1!==n?this.topics.value.splice(n,1,new fn(t)):this.topics.value=[].concat(o(this.topics.value),[new fn(t)]),r=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),a=t.configService(t.appid,"aitopics",t.type),e.next=8,null==a?void 0:a.save(r);case 8:this.activedTopic.value=i;case 9:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"removeTopic",value:(a=p(d().mark((function e(t,n,i,r,a){var c,s,l,u,h;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=!0,!t.beforeDelete){e.next=5;break}return e.next=4,t.beforeDelete(n,i,r,a);case 4:s=e.sent;case 5:if(s){e.next=7;break}return e.abrupt("return");case 7:return-1!==(l=this.topics.value.findIndex((function(e){return e.id===r.id})))&&(this.topics.value.splice(l,1),this.topics.value=o(this.topics.value)),u=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),h=t.configService(t.appid,"aitopics",t.type),e.next=13,null==h?void 0:h.save(u);case 13:return e.next=15,le.deleteData(ni.DATA_BASE_NAME,ni.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 e.stop()}}),e,this)}))),function(e,t,n,i,r){return a.apply(this,arguments)})},{key:"updateTopic",value:(r=p(d().mark((function e(t,n){var i,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),r=t.configService(t.appid,"aitopics",t.type),e.next=4,null==r?void 0:r.save(i);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"handleTopicChange",value:function(e){var t;(null===(t=this.activedTopic.value)||void 0===t?void 0:t.id)!==e.id&&(this.activedTopic.value=e,this.chat.switchAiChatController(e))}},{key:"handleTopicAction",value:(i=p(d().mark((function e(t,n,i){var r,o,a,c,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.topics.value.find((function(e){return e.id===n.id})),!(this.currentTopicOptions&&r&&r.aiChat)){e.next=12;break}if(c=r.aiChat,s=c.context,l=c.params,"DELETE"!==t){e.next=8;break}return e.next=6,this.removeTopic(this.currentTopicOptions,s,l,r,i);case 6:e.next=11;break;case 8:if("RENAME"!==t){e.next=11;break}return e.next=11,this.updateTopic(this.currentTopicOptions,n);case 11:null===(o=(a=this.currentTopicOptions).action)||void 0===o||o.call(a,t,s,l,n,i);case 12:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"newTopic",value:(n=p(d().mark((function e(){var t,n,i,r,a,c,s,l,u;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this.activedTopic.value){e.next=3;break}return e.abrupt("return");case 3:return r=i.id.split("@")[0],a=this.topics.value.filter((function(e){return e.id.startsWith(r)})),c={appid:i.appid,id:"".concat(r,"@").concat(Date.now()),type:i.type,caption:"".concat(null===(t=i.sourceCaption)||void 0===t?void 0:t.split("_")[0],"_").concat(a.length),sourceCaption:i.sourceCaption,url:i.url,aiChat:i.aiChat},s=new fn(c),this.topics.value=[].concat(o(this.topics.value),[s]),l=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),u=null===(n=this.currentTopicOptions)||void 0===n?void 0:n.configService(c.appid,"aitopics",c.type),e.next=12,null==u?void 0:u.save(l);case 12:this.handleTopicChange(s);case 13:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"clearTopic",value:(t=p(d().mark((function e(){var t,n,i,r,o,a=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.topics.value.find((function(e){var t;return e.id===(null===(t=a.activedTopic.value)||void 0===t?void 0:t.id)})),this.currentTopicOptions&&n){e.next=3;break}return e.abrupt("return");case 3:if(i=!0,!this.currentTopicOptions.beforeDelete){e.next=8;break}return e.next=7,this.currentTopicOptions.beforeDelete(n.aiChat.context,n.aiChat.params,n,void 0,!0);case 7:i=e.sent;case 8:if(i){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,Promise.all(this.topics.value.map((function(e){if(e.id!==(null==n?void 0:n.id))return le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,e.id)})));case 12:return this.topics.value=n?[n]:[],r=null===(t=this.currentTopicOptions)||void 0===t?void 0:t.configService(this.currentTopicOptions.appid,"aitopics",this.currentTopicOptions.type),o=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),e.next=17,null==r?void 0:r.save(o);case 17:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),oi=_((function e(t){v(this,e),this.aiChat=t})),ai=function(t){e(o,t);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=p(d().mark((function e(t,n){var i,r,o,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n||!n.onClick||"function"!=typeof n.onClick){e.next=6;break}return e.next=3,n.onClick(t,n,this.aiChat.context,this.aiChat.params);case 3:i=e.sent,e.next=14;break;case 6:if(!(r=this.aiChat.opts.extendToolbarClick)){e.next=13;break}return e.next=10,r(t,n,this.aiChat.context,this.aiChat.params,{});case 10:i=e.sent,e.next=14;break;case 13:console.error("未找到扩展工具栏点击事件");case 14:i&&i.data&&i.data.length>0&&(o=i.data[0],a={id:o.id,type:o.type,data:o.data||{},metadata:o.metadata||{}},n.id&&Object.assign(a.metadata,{actionId:n.id}),this.aiChat.addMaterial(a));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})}]),o}(oi),ci=function(t){e(o,t);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=p(d().mark((function e(t,n){var i,r,o,a,c,s,l,u,h,f,v=this;return d().wrap((function(e){for(;;)switch(e.prev=e.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,h=i.onProgress,f={multiple:r||!0,accept:o||"*/*",maxSize:a||5242880,onSelect:function(e){null==c||c(e),e.length>0&&e.forEach((function(e){var t=v.buildMaterialObject(e);Object.assign(t.metadata,{state:"uploading"}),v.aiChat.addMaterial(t)}))},onUpload:function(){var e=p(d().mark((function e(t,n){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s(t,n,{context:v.aiChat.context,params:v.aiChat.params}));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),onSuccess:function(e,t){var n={id:e.id,type:"ossfile",data:{id:e.id,name:e.name},metadata:{ext:e.ext,fileext:e.fileext,fileid:e.fileid,filename:e.filename,size:e.size,filesize:e.filesize,state:"successed"}};v.aiChat.replaceMaterial(t.name,n),null==l||l(e,t)},onError:function(e,t){var n=v.buildMaterialObject(t);Object.assign(n.metadata,{state:"failed"}),v.aiChat.replaceMaterial(t.name,n),null==u||u(e,t)},onProgress:function(e,t){null==h||h(e,t)}},new ue(f).openFilePicker();case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"buildMaterialObject",value:function(e){return{id:e.name,type:"ossfile",data:{name:e.name,id:e.name},metadata:{size:e.size,type:e.type,lastModified:e.lastModified}}}}]),o}(oi),si=function(){function e(){v(this,e)}return _(e,null,[{key:"getMaterialHelper",value:function(e,t){return"ossfile"===e?new ci(t):new ai(t)}}]),e}(),li=function(){function e(){v(this,e),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 ri(this)}var t,n;return _(e,[{key:"aiChat",get:function(){var e;return this.aiTopicMap.get("".concat(null===(e=this.aiTopic.activedTopic.value)||void 0===e?void 0:e.id))}},{key:"initIndexDB",value:(n=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le.checkTableExists(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME);case 2:if(e.sent){e.next=6;break}return e.next=6,le.createTable(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,ni.DATA_TABLE_KEY_NAME,!1);case 6:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"create",value:(t=p(d().mark((function e(t){var n,i,r,o,a,c,s=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initIndexDB();case 2:if(this.backupChatOptions=t,this.close(),this.container=document.createElement("div"),this.container.classList.add("ibiz-ai-chat"),document.body.appendChild(this.container),o=t.chatOptions,!t.mode||"TOPIC"!==t.mode){e.next=19;break}if(this.isMountedAiTopic){e.next=13;break}return e.next=12,this.aiTopic.fetchHistory(t.topicOptions);case 12:this.isMountedAiTopic=!0;case 13:return a=t.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,otherToolbarItems:o.otherToolbarItems,appendCurData:o.appendCurData,appendCurContent:o.appendCurContent}}),e.next=17,this.aiTopic.updateCurrentTopic(a);case 17:e.next=20;break;case 19:this.aiTopic.activedTopic.value=void 0;case 20:return Object.assign(o,{topicId:null===(n=a)||void 0===n?void 0:n.id,topic:a}),c=new ii(o),this.aiTopicMap.set("".concat(null===(i=a)||void 0===i?void 0:i.id),c),K(M(Ti,{aiChat:c,aiTopic:this.aiTopic,mode:t.mode?t.mode:"DEFAULT",containerOptions:t.containerOptions,caption:t.mode&&"TOPIC"===t.mode?"AI助手":o.caption,enableBackFill:null===(r=t.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(e){o.fullscreen&&o.fullscreen(e,o.context,o.params)},minimize:function(e){o.minimize&&o.minimize(e,o.context,o.params)}}),this.container),e.abrupt("return",c);case 25:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"switchAiChatController",value:function(e){var t,n,i,r,o,a=this,c=u({},this.backupChatOptions.chatOptions);(e.aiChat&&Object.assign(c,{caption:e.aiChat.caption,context:e.aiChat.context,params:e.aiChat.params,contentToolbarItems:e.aiChat.contentToolbarItems,footerToolbarItems:e.aiChat.footerToolbarItems,questionToolbarItems:e.aiChat.questionToolbarItems,otherToolbarItems:e.aiChat.otherToolbarItems,appendCurData:e.aiChat.appendCurData,appendCurContent:e.aiChat.appendCurContent,appDataEntityId:e.aiChat.appDataEntityId,topicId:e.id,topic:e,extendToolbarClick:this.backupChatOptions.chatOptions.extendToolbarClick,recommendPrompt:this.backupChatOptions.chatOptions.recommendPrompt}),this.aiTopicMap.has("".concat(e.id))?t=this.aiTopicMap.get("".concat(e.id)):(t=new ii(c),this.aiTopicMap.set("".concat(e.id),t)),this.container)&&(K(null,this.container),K(M(Ti,{aiChat:t,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(e){c.fullscreen&&c.fullscreen(e,c.context,c.params)},minimize:function(e){c.minimize&&c.minimize(e,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)}}]),e}(),ui=(t("chat",new li),new ee("chat-input-material")),di=function(e){var t=e.controller.materials;return _t("div",{className:ui.b(),children:t.value.map((function(t){return _t(rn,{material:t,disabled:!1,controller:e.controller},t.id)}))})},hi=function(e){var t=e.children,n=e.actions,i=e.content,r=e.position,o=void 0===r?"bottom":r,c=e.isOpen,s=e.onToggleOpen,l=e.onAction,d=new ee("pop"),h=Ie(Ci),p=a(Se(c||!1),2),f=p[0],v=p[1],m=Me(null),_=Me(null);Ae((function(){void 0!==c&&v(c)}),[c]),Ae((function(){return _.current||(_.current=document.createElement("div"),_.current.className=d.b("content-container"),document.body.appendChild(_.current)),function(){_.current&&document.body.removeChild(_.current)}}),[]),Ae((function(){var e=function(e){!m.current||m.current.contains(e.target)||e.target.closest(".".concat(d.b()))||e.target.closest(".ibiz-quick-edit")||e.target.closest(".ibiz-picker__transfer")||(v(!1),null==s||s(!1))};return f&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[f,s]);return _t("span",{className:"".concat(d.b("trigger-container")),children:[_t("span",{className:"".concat(d.b("trigger-element")),ref:m,onClick:function(e){e.stopPropagation();var t=!f;v(t),null==s||s(t)},children:t}),f&&_.current&&Pn(_t("div",{className:"".concat(d.b()," pop-").concat(o),style:function(){if(!m.current)return{};var e=m.current.getBoundingClientRect(),t={position:"absolute",zIndex:h.zIndex+1},n={bottom:{top:e.bottom+window.scrollY,left:e.left+window.scrollX},top:{bottom:window.innerHeight-e.top+window.scrollY,left:e.left+window.scrollX},left:{top:e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX},right:{top:e.top+window.scrollY,left:e.right+window.scrollX},"top-left":{bottom:window.innerHeight-e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX}};return u(u({},t),n[o])}(),children:i||(null==n?void 0:n.map((function(e){return _t("div",{title:e.caption,className:d.e("item"),onMouseDown:function(t){t.stopPropagation(),null==l||l(e.id,t)},children:[e.icon,_t("div",{className:d.em("item","caption"),children:e.caption})]},e.id)})))}),_.current)]})},pi=new ee("chat-input"),fi=window.SpeechRecognition||window.webkitSpeechRecognition,vi=function(e){var t,n=a(Se(!1),2),i=n[0],r=n[1],o=Me(null),c=e.controller.input,s=ft(!1),l=Me();fi&&!l.current&&(l.current=new fi,l.current.onstart=function(){s.value=!0},l.current.onend=function(){s.value=!1},l.current.onresult=function(e){var t,n=null===(t=e.results)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t[0])||void 0===t?void 0:t.transcript;n&&(c.value="".concat(c.value).concat(n))});var u=Le((function(e){c.value=e.target.value}),[c]),h=vt((function(){return c.value.length<=0}));Ae((function(){return o.current&&ti(o.current),function(){o.current&&ti.destroy(o.current)}}),[o]);var f=Le(p(d().mark((function t(){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=c.value,c.value="",t.next=5,e.controller.question(n);case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])}))),[c]),v=Le(p(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{e.controller.abortQuestion()}catch(n){console.error(n)}case 1:case"end":return t.stop()}}),t)}))),[c]),m=function(){var t=p(d().mark((function t(n){var i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=si.getMaterialHelper("ossfile",e.controller),t.next=3,i.excuteAction(n);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_=function(){var t=p(d().mark((function t(n,i){var o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=si.getMaterialHelper("common",e.controller),t.next=3,o.excuteAction(n,i);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}();return _t("div",{className:pi.b("wrapper"),children:[_t("div",{className:pi.b("material-wrapper"),children:_t(di,{controller:e.controller})}),_t("div",{className:pi.b("main-wrapper"),children:[_t("textarea",{className:pi.e("textarea"),type:"text",rows:6,autoCorrect:"off",autoCapitalize:"off",autoComplete:"off",value:c,onInput:u,onKeyDown:function(e){"Enter"!==e.code||e.isComposing||(e.stopPropagation(),!1===e.shiftKey&&f())},ref:o,disabled:e.controller.isLoading.value}),_t("div",{className:pi.b("action-wrapper"),children:[_t("div",{className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",e.controller.isLoading.value)),title:"上传资料",children:_t(hi,{content:_t("div",{className:pi.b("pop-actions"),children:[_t("div",{className:pi.b("pop-action-item"),onClick:function(e){m(e)},children:[_t("span",{className:pi.b("pop-action-item-icon"),children:_t(Ht,{})}),_t("span",{className:pi.b("pop-action-item-title"),children:"文件资料"})]}),null===(t=e.questionToolbarItems)||void 0===t?void 0:t.map((function(e){var t,n,i;return _t("div",{className:pi.b("pop-action-item"),onClick:function(t){_(t,e)},children:[_t("span",{className:pi.b("pop-action-item-icon"),children:"function"==typeof e.icon?e.icon():(null===(t=e.icon)||void 0===t?void 0:t.showIcon)&&_t(L,{children:null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):null})}),_t("span",{className:pi.b("pop-action-item-title"),children:e.label})]},e.id)}))]}),position:"top-left",isOpen:i,onToggleOpen:r,children:_t(Bt,{})})}),_t("div",{title:s.value?"语音输入中...":"语音输入",className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",e.controller.isLoading.value)),onClick:function(){l.current&&!s.value&&l.current.start()},children:s.value?_t(Mt,{}):_t(At,{})}),e.controller.isLoading.value?_t("div",{title:"停止生成",className:"".concat(pi.be("action-wrapper","action-item")),onClick:v,children:_t(Rt,{})}):_t("div",{title:"发送消息",className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",h.value)),onClick:f,children:_t(wt,{})})]})]})]})},mi=new ee("chat-topic-item"),_i=function(e){var t=e.controller,n=e.topic,i=e.onClick,r=e.onAction,o=Me(null),c=vt((function(){var e;return(null===(e=t.activedTopic.value)||void 0===e?void 0:e.id)===n.id})),s=a(Se(!1),2),l=s[0],u=s[1],d=ft(!1);return _t("div",{className:"".concat(mi.b()," ").concat(mi.is("active",c.value)," ").concat(mi.is("edit",d.value)),onClick:i.bind(void 0),children:[_t("div",{className:mi.e("caption"),title:n.caption,children:d.value?_t("input",{ref:o,value:n.caption,onBlur:function(e){e.stopPropagation(),d.value=!1,r("RENAME",e)},onKeyDown:function(e){e.stopPropagation(),"Enter"===e.key&&(d.value=!1)},onClick:function(e){return e.stopPropagation()},onChange:function(e){return(t=e).stopPropagation(),void(n.data.caption=null===(i=t.target)||void 0===i?void 0:i.value);var t,i},className:mi.em("caption","editor")}):_t("span",{className:mi.em("caption","text"),children:n.caption})}),!d.value&&_t("div",{className:mi.e("icon"),children:[_t("span",{title:"跳转主视图",className:mi.em("icon","item"),onClick:function(e){e.stopPropagation(),r("LINK",e)}.bind(void 0),children:_t(Lt,{className:mi.b("link-icon")})}),c.value?null:_t(hi,{actions:[{id:"RENAME",caption:"重命名",icon:_t(qt,{})},{id:"DELETE",caption:"删除话题",icon:_t(It,{})}],position:"bottom",isOpen:l,onToggleOpen:u,onAction:function(e,t){"DELETE"===e?r("DELETE",t):"RENAME"===e&&(d.value=!0,setTimeout((function(){var e;null===(e=o.current)||void 0===e||e.focus()}),100)),u(!1)}.bind(void 0),children:_t("span",{className:mi.em("icon","item"),title:"更多",children:_t(Ot,{className:mi.e("more-icon")})})})]})]})},gi=new ee("chat-search"),yi=function(e){var t=e.className,n=e.value,i=e.placeholder,r=e.onChange,o=a(Se(!1),2),c=o[0],s=o[1],l=function(e){var t;e.stopPropagation(),null==r||r(null===(t=e.target)||void 0===t?void 0:t.value)};return _t("div",{className:"".concat(gi.b()," ").concat(gi.is("focus",c)," ").concat(t||""),children:[_t("div",{className:gi.e("prefix"),children:_t($t,{})}),_t("input",{value:n,className:gi.e("inner"),placeholder:i,onFocus:function(){return s(!0)},onBlur:function(){return s(!1)},onChange:function(e){return l(e)}})]})},wi=new ee("chat-topics"),bi=function(e){var t=Me(null),n=ft(void 0),i=ft([]);Ae((function(){i.value=e.controller.topics.value.filter((function(e){var t,i;return null===(t=e.caption)||void 0===t?void 0:t.toLowerCase().includes((null===(i=n.value)||void 0===i?void 0:i.trim().toLowerCase())||"")}))}),[e.controller.topics.value]);return Ae((function(){var e=t.current;if(e){var n=e.querySelector(".ibiz-chat-topic-item.is-active");null==n||n.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[e.controller.activedTopic.value]),_t("div",{className:wi.b(),children:[_t("div",{className:wi.e("header"),children:_t(yi,{value:n.value,placeholder:"搜索话题",onChange:function(t){n.value=t,i.value=e.controller.topics.value.filter((function(e){var t,i;return null===(t=e.caption)||void 0===t?void 0:t.toLowerCase().includes((null===(i=n.value)||void 0===i?void 0:i.trim().toLowerCase())||"")}))}.bind(void 0)})}),_t("div",{ref:t,className:wi.e("main"),children:i.value&&i.value.length>0?i.value.map((function(t){return _t(_i,{topic:t,controller:e.controller,onClick:function(){return function(t){e.controller.handleTopicChange(t)}(t)},onAction:function(n,i){return function(t,n,i){e.controller.handleTopicAction(t,n,i)}(n,t,i)}},t.id)})):_t("div",{className:wi.e("empty"),children:"暂无话题"})}),_t("div",{className:wi.e("footer"),children:_t("div",{title:"清空会话",className:wi.e("action"),onClick:function(){return e.controller.clearTopic()},children:[_t(It,{}),_t("span",{children:"清空会话"})]})})]})},xi=new ee("chat-minimize"),ki=function(e){var t=Me(null),n=a(Se(""),2),i=n[0],r=n[1],o=a(Se(0),2),c=o[0],s=o[1],l=Me(!1),u={x:(window.innerWidth-86)/window.innerWidth,y:(window.innerHeight-86)/window.innerHeight},d=vt((function(){var t=e.controller.messages.value[e.controller.messages.value.length-1];return!!t&&("ASSISTANT"===t.role&&20===t.state&&!0!==t.completed)})),h=vt((function(){var t="";if(!d.value)return r(""),s(0),t;var n=e.controller.messages.value[e.controller.messages.value.length-1];if(t=n.content,-1!==n.content.indexOf("")){var i=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="";return-1===n?(i=e.slice(t+7),r=""):(i=e.slice(t+7,n),r=e.slice(n+8)),{thoughtContent:i,answerContent:r}}(n.content);t=i.thoughtContent+i.answerContent}return t})),p=function(){Object.assign(t.current.style,{left:"".concat(100*u.x,"%"),top:"".concat(100*u.y,"%")}),localStorage.setItem(ni.MINIMIZE_STYLY_CHCHE,JSON.stringify(u))};return Ae((function(){var e,n=localStorage.getItem(ni.MINIMIZE_STYLY_CHCHE);if(n){var i=JSON.parse(n);pe(i)&&Object.assign(u,i)}p(),(e=t.current)&&(e.onmousedown=function(t){document.body.style.userSelect="none";var n=t.clientX-e.offsetLeft,i=t.clientY-e.offsetTop,r=Date.now(),o=function(e){var t=56/window.innerWidth,r=56/window.innerHeight,o=fe(e.clientX-n,e.clientY-i,t,r),a=o.x,c=o.y;Object.assign(u,{x:a,y:c}),requestAnimationFrame((function(){p()}))};document.addEventListener("mousemove",o),document.addEventListener("mouseup",(function e(){var t=Date.now();l.current=t-r>300,document.body.style.userSelect="",document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",e)}))})}),[]),Ae((function(){if(c1-e?this.calcSideModeStyle(i1-t&&(this.data.window.y=1-a)),this.setStyle()}},{key:"registerDragDialog",value:function(){var e=this;this.dragHandle.current.onmousedown=function(t){if(!e.state.isFullScreen){document.body.style.userSelect="none";var n=t.clientX-e.containerRef.current.offsetLeft,i=t.clientY-e.containerRef.current.offsetTop,r=function(t){if(!e.disabled){e.data.showMode="window";var r=fe(t.clientX-n,t.clientY-i,e.data.window.width,e.data.window.height),o=r.x,a=r.y;Object.assign(e.data.window,{x:o,y:a}),e.setStyle()}};document.addEventListener("mousemove",r),document.addEventListener("mouseup",(function t(){document.body.style.userSelect="",document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t),e.disabled||e.snapToEdge()}))}}}},{key:"registerDragDialogBorder",value:function(){var e=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(t){if(!e.state.isFullScreen){var n="side"===e.data.showMode?e.data.side:e.data.window;n.x=t.rect.left/window.innerWidth,n.y=t.rect.top/window.innerHeight,n.width=t.rect.width/window.innerWidth,n.height=t.rect.height/window.innerHeight,e.setStyle()}},start:function(){e.disabled=!0,document.body.style.userSelect="none"},end:function(){e.disabled=!1,document.body.style.userSelect=""}}})}},{key:"handleFullScreenChange",value:function(){this.setState({isFullScreen:null!==document.fullscreenElement})}},{key:"componentDidMount",value:function(){this.handleFullScreenChange=this.handleFullScreenChange.bind(this);var e=localStorage.getItem(ni.STYLE_CACHE);if(e){var t=JSON.parse(e);t.side&&pe(t.side)&&t.window&&pe(t.window)&&Object.assign(this.data,t)}this.setStyle(),this.registerDragDialog(),this.registerDragDialogBorder(),document.addEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"close",value:function(){this.props.close()}},{key:"fullScreen",value:function(){var e=this.containerRef.current;e&&(e.requestFullscreen(),this.props.fullscreen(!0))}},{key:"closeFullScreen",value:function(){var e;this.state.isFullScreen&&(null===(e=document)||void 0===e||e.exitFullscreen(),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.setState({isMinimize:!1}),this.props.minimize(!1)}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"render",value:function(){return _t(Ci.Provider,{value:this.containerContext,children:_t("div",{className:"".concat(this.ns.b()),children:[_t("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:[_t("div",{ref:this.dragHandle,className:this.ns.b("header"),children:[_t("div",{className:this.ns.b("header-caption"),children:this.props.caption||"AI助手"}),_t("div",{className:this.ns.b("header-action-wrapper"),children:[_t("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:_t(Nt,{})}),this.state.isFullScreen?_t("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:_t(Tt,{})}):_t("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:_t(Ct,{})}),_t("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:_t(gt,{})})]})]}),"TOPIC"===this.props.mode?_t("div",{className:"".concat(this.ns.b("main")),children:[_t("div",{className:"".concat(this.ns.be("main","left")),children:_t(bi,{controller:this.props.aiTopic})}),_t("div",{className:"".concat(this.ns.be("main","right")),children:[_t("div",{className:this.ns.b("content"),children:_t(xn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(yn,{data:this.props.aiTopic.activedTopic.value,type:"footer",className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(vi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}):_t("div",{className:"".concat(this.ns.be("main","default")),children:[_t("div",{className:this.ns.b("content"),children:_t(xn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(yn,{type:"footer",data:this.props.aiTopic.activedTopic.value,className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(vi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}),_t(ki,{title:this.props.caption||"AI助手",controller:this.props.aiChat,isMinimize:this.state.isMinimize,onClick:this.exitMinimize.bind(this)})]})})}}]),o}(I);t("ChatContainer",Ti)}}}))}(); diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.23/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.23/polyfills.legacy.js new file mode 100644 index 0000000000000000000000000000000000000000..c8c7654431885af1a2dc12a9fe73b198407bf314 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.23/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+""},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+""},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="\t\n\v\f\r                 \u2028\u2029\ufeff",JE=L,qE=Ao,KE=VE,YE=S("".replace),XE=RegExp("^["+KE+"]+"),QE=RegExp("(^|[^"+KE+"])["+KE+"]+$"),ZE=function(t){return function(r){var e=qE(JE(r));return 1&t&&(e=YE(e,XE,"")),2&t&&(e=YE(e,QE,"$1")),e}},tx={start:ZE(1),end:ZE(2),trim:ZE(3)},rx=te.PROPER,ex=o,nx=VE,ox=tx.trim;ro({target:"String",proto:!0,forced:function(t){return ex((function(){return!!nx[t]()||"​…᠎"!=="​…᠎"[t]()||rx&&nx[t].name!==t}))}("trim")},{trim:function(){return ox(this)}});var ix=Dt,ux=hn,ax=co,cx=mo,fx=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=ix(this),e=ux(r),n=arguments.length;if(n){fx(e+n);for(var o=e;o--;){var i=o+n;o in r?r[i]=r[o]:cx(r,i)}for(var u=0;uo;)for(var a,c=mx(arguments[o++]),f=i?Sx(px(c),i(c)):px(c),s=f.length,l=0;s>l;)a=f[l++],sx&&!hx(u,c,a)||(e[a]=c[a]);return e}:bx,xx=Ex;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==xx},{assign:xx});var Ox={exports:{}},jx=o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Ix=o,Tx=B,Rx=j,Px=jx,Ax=Object.isExtensible,kx=Ix((function(){Ax(1)}))||Px?function(t){return!!Tx(t)&&((!Px||"ArrayBuffer"!==Rx(t))&&(!Ax||Ax(t)))}:Ax,Cx=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),Nx=ro,Lx=S,Fx=pe,Mx=B,_x=Gt,Dx=Rr.f,Ux=Qe,$x=mw,Gx=kx,zx=Cx,Wx=!1,Bx=Vt("meta"),Hx=0,Vx=function(t){Dx(t,Bx,{value:{objectID:"O"+Hx++,weakData:{}}})},Jx=Ox.exports={enable:function(){Jx.enable=function(){},Wx=!0;var t=Ux.f,r=Lx([].splice),e={};e[Bx]=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!!c(this,t)}}),hO(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)}}),wO&&lO(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=xO(r),i=xO(n);yO(t,r,(function(t,r){EO(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)?mO("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,mO(void 0,!0))}),e?"entries":"values",!e,!0),bO(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=Yx[t],a=u&&u.prototype,c=u,f={},s=function(t){var r=Xx(a[t]);Zx(a,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!iO(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(Qx(t,!nO(u)||!(o||a.forEach&&!uO((function(){(new u).entries().next()})))))c=e.getConstructor(r,t,n,i),tO.enable();else if(Qx(t,!0)){var l=new c,h=l[i](o?{}:-0,1)!==l,v=uO((function(){l.has(1)})),p=aO((function(t){new u(t)})),d=!o&&uO((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((c=r((function(t,r){eO(t,a);var e=fO(new u,t,c);return oO(r)||rO(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,Kx({global:!0,constructor:!0,forced:c!==u},f),cO(c,t),o||e.setStrong(c,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),OO);var jO,IO=ro,TO=Fu,RO=n.f,PO=sn,AO=Ao,kO=_E,CO=L,NO=UE,LO=TO("".startsWith),FO=TO("".slice),MO=Math.min,_O=NO("startsWith");IO({target:"String",proto:!0,forced:!!(_O||(jO=RO(String.prototype,"startsWith"),!jO||jO.writable))&&!_O},{startsWith:function(t){var r=AO(CO(this));kO(t);var e=PO(MO(arguments.length>1?arguments[1]:void 0,r.length)),n=AO(t);return LO?LO(r,n,e):FO(r,e,e+n.length)===n}});var DO=ro,UO=Ms.findIndex,$O=sm,GO="findIndex",zO=!0;GO in[]&&Array(1)[GO]((function(){zO=!1})),DO({target:"Array",proto:!0,forced:zO},{findIndex:function(t){return UO(this,t,arguments.length>1?arguments[1]:void 0)}}),$O(GO);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=tx.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;o \ No newline at end of file diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.24/index.min.css b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.24/index.min.css new file mode 100644 index 0000000000000000000000000000000000000000..aa670638d3eee436f6d5f633b1c39c776b18980c --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.24/index.min.css @@ -0,0 +1 @@ +@charset "UTF-8";.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-chat-suggestions{--ibiz-chat-suggestions-bg: var(--ibiz-ai-chat-background-color);--ibiz-chat-suggestions-hover-bg-color: var(--ibiz-ai-chat-hover-background-color);--ibiz-chat-suggestions-border: var(--ibiz-ai-chat-border-color);display:flex;flex-direction:column;gap:var(--ibiz-spacing-base-tight);width:100%}.ibiz-chat-suggestions__item{display:flex;align-items:center;align-self:flex-start;justify-content:space-between;min-width:200px;height:32px;padding:0 12px;overflow:hidden;line-height:32px;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background-color:var(--ibiz-chat-suggestions-bg);border:1px solid var(--ibiz-chat-suggestions-border);border-radius:12px;transition:.3s background-color}.ibiz-chat-suggestions__item:hover{background-color:var(--ibiz-chat-suggestions-hover-bg-color)}.ibiz-chat-suggestions__item.is-action{color:var(--ibiz-ai-chat-color-2);background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-suggestions__item.is-action:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-suggestions__item .ibiz-chat-suggestions__item-icon{margin-left:12px;font-size:18px}.ibiz-markdown-message{padding:6px 10px}.ibiz-markdown-message .cherry{border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-markdown-message .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-markdown-message .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-markdown-message .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-markdown-message .cherry div[data-type=codeBlock] pre[class*=language-]::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.2)}.ibiz-markdown-message .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-markdown-message .cherry-previewer{padding:8px;border:0}.ibiz-markdown-message .cherry-previewer figure{max-width:1200px}.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)}.ibiz-markdown-message-content .cherry div.cherry-previewer{color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color-light)}.ibiz-markdown-message-footer{padding:10px 0}@keyframes circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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-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%;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:10px 16px;margin:0;font-size:14px;line-height:1.5;color:var(--color-fg-default);word-wrap:break-word;background:#e7f8ff;background-color:var(--ibiz-ai-chat-background-color-light);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--material{display:flex;flex-flow:row-reverse wrap;gap:8px;align-items:center;margin-bottom:8px}.ibiz-user-message-question__content .cherry{min-height:0;border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-user-message-question__content .cherry-markdown p{margin:0}.ibiz-user-message-question__content .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-user-message-question__content .cherry-previewer{padding:0;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color-light);border:0}.ibiz-user-message-question__content .cherry-previewer figure{max-width:1200px}.ibiz-user-message-question__content .cherry-previewer figure>svg{width:100%;min-height:100px}.ibiz-user-message-question__content .anchor{display:none!important}.ibiz-user-message-question__user-header{display:flex;align-items:center;justify-content:end;width:100%;height:32px;margin-bottom:8px}.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:10px 16px;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{display:flex;padding:6px 10px;justify-content:end}.ibiz-unknown-message__content{padding:10px 16px;color:#000;width:max-content;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-item{position:relative;display:flex;align-items:center;white-space:nowrap;cursor:pointer}.ibiz-chat-toolbar-item__content{display:flex;align-items:center;white-space:nowrap}.ibiz-chat-toolbar-item__content--icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:18px;height:18px;font-size:18px}.ibiz-chat-toolbar-item__content--label,.ibiz-chat-toolbar-item__more{display:flex;align-items:center}.ibiz-chat-toolbar-item__more--icon{font-size:18px}.ibiz-chat-toolbar-item-default{width:fit-content;font-size:14px;color:var(--ibiz-ai-chat-color-2)}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__content{z-index:9;gap:6px;padding:2px 14px;line-height:28px;background-color:var(--ibiz-ai-chat-background-color-2);border-radius:12px}.ibiz-chat-toolbar-item-default.is-disabled{cursor:not-allowed}.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__content,.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__more{background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__content:hover,.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__more:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-default.is-more .ibiz-chat-toolbar-item__content{padding:2px 8px 2px 14px;border-radius:12px 0 0 12px}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__more{z-index:9;height:32px;padding:2px 14px 2px 8px;background-color:var(--ibiz-ai-chat-background-color-2);border-left:1px solid var(--ibiz-ai-chat-border-color);border-radius:0 12px 12px 0}.ibiz-chat-toolbar-item-circle{max-width:32px;height:32px;padding:6px;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-item-circle.is-disabled{color:var(--ibiz-ai-chat-disabled-color);cursor:not-allowed}.ibiz-chat-toolbar-item-circle: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-item-circle .ibiz-chat-toolbar-item__content--label{width:calc(100% - 32px);margin-left:8px;font-size:14px}.ibiz-chat-toolbar-item-dropdown{position:absolute;right:0;bottom:36px;display:flex;flex-direction:column;gap:4px;max-width:150px;padding:4px;background-color:var(--ibiz-ai-chat-background-color-2);border-radius:6px}.ibiz-chat-toolbar-item-dropdown__item{display:flex;gap:6px;align-items:center;padding:0 8px;line-height:32px;cursor:pointer;border-radius:6px}.ibiz-chat-toolbar-item-dropdown__item.is-disabled{cursor:not-allowed;background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-dropdown__item:hover:not(.is-disabled){background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-dropdown__item--icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:18px;height:18px;font-size:18px}.ibiz-chat-toolbar-item-dropdown__item--label{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-toolbar{display:flex;flex-wrap:wrap;align-items:center}.ibiz-chat-toolbar .ibiz-chat-toolbar-item:not(:first-child){margin-left:6px}.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{width:calc(100% - 12px);height:calc(100% - 12px);margin:6px;overflow:hidden auto}.ibiz-chat-messages::-webkit-scrollbar{width:6px}.ibiz-chat-messages::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-wrapper{max-height:72px;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:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-input__textarea::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);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-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{gap:4px;padding:4px;display:flex;min-width:120px;border-radius:8px;flex-direction:column;background-color:var(--ibiz-color-bg-3);border:1px solid var(--ibiz-color-border)}.ibiz-pop__item{display:flex;padding:0 8px;cursor:pointer;line-height:32px;border-radius:6px;align-items:center}.ibiz-pop__item:hover{background-color:var(--ibiz-color-primary-hover)}.ibiz-pop__item--caption{min-width:0;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-pop__item svg{width:16px;height:16px;flex-shrink:0;margin-right:8px;fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-topic-item{height:38px;display:flex;padding:0 8px;cursor:pointer;border-radius:12px;position:relative;align-items:center;font-size:var(--ibiz-font-size-regular)}.ibiz-chat-topic-item:hover:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item:hover:not(.is-edit) .ibiz-chat-topic-item__icon{opacity:1}.ibiz-chat-topic-item.is-active:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item.is-edit{border:2px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-topic-item__caption{width:100%;height:100%;display:flex;align-items:center}.ibiz-chat-topic-item__caption--text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-topic-item__caption--editor{width:100%;height:100%;border:none;outline:none;color:var(--ibiz-ai-chat-color);background:var(--ibiz-ai-chat-background-color)}.ibiz-chat-topic-item__icon{top:50%;gap:8px;opacity:0;right:10px;height:24px;display:flex;outline:none;padding:0 8px;border-radius:8px;position:absolute;align-items:center;justify-content:flex-end;transform:translateY(-50%);color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item__icon--item{font-size:12px}.ibiz-chat-search{gap:8px;width:100%;display:flex;line-height:32px;border-radius:1px;padding:1px 11px;align-items:center;justify-content:center;border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-search:hover,.ibiz-chat-search.is-focus{border:1px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-search__prefix{width:14px;height:14px;display:flex;flex-shrink:0;font-size:14px;align-items:center}.ibiz-chat-search__inner{padding:2px 0 0;outline:0;flex-grow:1;border:none;height:28px;min-width:0;color:inherit;line-height:28px;background-color:initial}.ibiz-chat-topics{display:flex;flex-direction:column;gap:8px;height:100%;padding:8px 0}.ibiz-chat-topics__header{flex-shrink:0;padding:0 8px}.ibiz-chat-topics__main{flex-grow:1;padding:0 8px;overflow-y:auto}.ibiz-chat-topics__empty{font-size:var(--ibiz-font-size-regular);text-align:center}.ibiz-chat-topics__footer{display:flex;flex-shrink:0;align-items:center;justify-content:center;padding:0 8px}.ibiz-chat-topics__action{display:flex;gap:4px;align-items:center;padding:4px 12px;font-size:14px;cursor:pointer;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:2px}.ibiz-chat-topics__action:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topics__action>svg{width:14px!important;height:14px!important}.ibiz-chat-minimize{width:56px;height:56px;display:flex;z-index:99999;cursor:pointer;position:absolute;border-radius:50%;align-items:center;justify-content:center}.ibiz-chat-minimize.is-hidden{display:none}.ibiz-chat-minimize.is-show-halo{width:90px;height:90px;background-size:cover;background-position:center;background-repeat:no-repeat;background-image:url(assets/gif/halo.gif)}.ibiz-chat-minimize__content{width:56px;height:56px;display:flex;border-radius:50%;align-items:center;justify-content:center;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color)}.ibiz-chat-minimize__content:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-minimize__content svg{fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-minimize__content.is-show-border{border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover{left:50%;bottom:90px;padding:8px;display:block;font-size:12px;border-radius:8px;position:absolute;transform:translate(-50%);box-shadow:0 2px 8px rgba(0,0,0,.1);background-color:var(--ibiz-ai-chat-background-color);color:var(--ibiz-ai-chat-color);border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover .typewriter{direction:rtl;overflow:hidden;max-width:200px;width:fit-content;white-space:nowrap;text-overflow:ellipsis;animation:typing 3s steps(40,end)}@keyframes blink{0%,to{opacity:0}50%{opacity:1}}@keyframes typing{0%{width:0}to{width:100%}}@keyframes blink-caret{0%,to{border-color:transparent}50%{border-color:var(--ibiz-ai-chat-color)}}.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-ai-chat-scroll-bar-width: 8px;--ibiz-ai-chat-scroll-bar-height: 8px;--ibiz-ai-chat-scroll-bar-radius: 4px}.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__toolbar{margin:0;left:20px;gap:8px 4px;bottom:118px;min-height:48px;position:absolute;justify-content:center;width:calc(100% - 40px)}.ibiz-chat-container__toolbar.is-has-materials{bottom:180px}.ibiz-chat-container *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-container *::-webkit-scrollbar-thumb{border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.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-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.24/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.24/index.system.min.js new file mode 100644 index 0000000000000000000000000000000000000000..75104e0319456eee55151377bbea6aa91c63d6e4 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.24/index.system.min.js @@ -0,0 +1 @@ +!function(){function e(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)}function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,n)}function n(e){var t=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(e){return!1}}();return function(){var n,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}(this,n)}}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||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(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(e,t)||c(e,t)||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(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);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;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:I(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function h(e,t,n,i,r,o,a){try{var c=e[o](a),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(i,r)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){h(o,i,r,a,c,"next",e)}function c(e){h(o,i,r,a,c,"throw",e)}a(void 0)}))}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===c[a]&&(c[a]=e.defaultProps[a]);return O(e,c,i,o,null)}function O(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++h:r};return null==r&&null!=l.vnode&&l.vnode(o),o}function L(e){return e.children}function I(e,t){this.props=e,this.context=t}function D(e,t){if(null==t)return e.__?D(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&y.sort(x));B.__r=0}function H(e,t,n,i,r,o,a,c,s,l,u){var d,h,p,f,v,m,_,g,y,w=0,b=i&&i.__k||T,x=b.length,k=x,N=t.length;for(n.__k=[],d=0;d0?O(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)?(f.__=n,f.__b=n.__b+1,-1===(g=V(f,b,_=d+w,k))?p=C:(p=b[g]||C,b[g]=void 0,k--),$(e,f,p,r,o,a,c,s,l,u),v=f.__e,(h=f.ref)&&p.ref!=h&&(p.ref&&Z(p.ref,null,f),u.push(h,f.__c||v,f)),null!=v&&(null==m&&(m=v),(y=p===C||null===p.__v)?-1==g&&w--:g!==_&&(g===_+1?w++:g>_?k>N-_?w+=g-_:w--:w=g<_&&g==_-1?g-_:0),_=d+w,"function"!=typeof f.type||g===_&&p.__k!==f.__k?"function"==typeof f.type||g===_&&!y?void 0!==f.__d?(s=f.__d,f.__d=void 0):s=v.nextSibling:s=R(e,v,s):s=j(f,s,e),"function"==typeof n.type&&(n.__d=s))):(p=b[d])&&null==p.key&&p.__e&&(p.__e==s&&(p.__=i,s=D(p)),G(p,p,!1),b[d]=null);for(n.__e=m,d=x;d--;)null!=b[d]&&("function"==typeof n.type&&null!=b[d].__e&&b[d].__e==n.__d&&(n.__d=b[d].__e.nextSibling),G(b[d],b[d]))}function j(e,t,n){for(var i,r=e.__k,o=0;r&&o(null!=s?1:0))for(;a>=0||c=0){if((s=t[a])&&r==s.key&&o===s.type)return a;a--}if(c0&&void 0!==arguments[0]?arguments[0]:"";return Q(this.namespace,this.block,e,"","")}},{key:"e",value:function(e){return e?Q(this.namespace,this.block,"",e,""):""}},{key:"m",value:function(e){return e?Q(this.namespace,this.block,"","",e):""}},{key:"be",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,t,""):""}},{key:"em",value:function(e,t){return e&&t?Q(this.namespace,this.block,"",e,t):""}},{key:"bm",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,"",t):""}},{key:"bem",value:function(e,t,n){return e&&t&&n?Q(this.namespace,this.block,e,t,n):""}},{key:"is",value:function(e,t){return e&&t?"".concat("is-").concat(e):""}},{key:"cssVar",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarName(n)]=e[n]);return t}},{key:"cssVarBlock",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarBlockName(n)]=e[n]);return t}},{key:"cssVarName",value:function(e){return"--".concat(this.namespace,"-").concat(e)}},{key:"cssVarBlockName",value:function(e){return"--".concat(this.namespace,"-").concat(this.block,"-").concat(e)}}]),e}();function te(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ne(e,t){for(var n,i="",r=0,o=-1,a=0,c=0;c<=e.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}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(o+1,c):i=e.slice(o+1,c),r=c-o-1;o=c,a=0}else 46===n&&-1!==a?++a:a=-1}return i}var ie={resolve:function(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var r;i>=0?r=arguments[i]:(void 0===e&&(e=process.cwd()),r=e),te(r),0!==r.length&&(t=r+"/"+t,n=47===r.charCodeAt(0))}return t=ne(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(te(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=ne(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return te(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":ie.normalize(e)},relative:function(e,t){if(te(e),te(t),e===t)return"";if((e=ie.resolve(e))===(t=ie.resolve(t)))return"";for(var n=1;nc){if(47===t.charCodeAt(o+l))return t.slice(o+l+1);if(0===l)return t.slice(o+l)}else r>c&&(47===e.charCodeAt(n+l)?s=l:0===l&&(s=0));break}var u=e.charCodeAt(n+l);if(u!==t.charCodeAt(o+l))break;47===u&&(s=l)}var d="";for(l=n+s+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(o+s):(o+=s,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(te(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,r=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');te(e);var n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,c=-1;for(n=e.length-1;n>=0;--n){var s=e.charCodeAt(n);if(47===s){if(!o){i=n+1;break}}else-1===c&&(o=!1,c=n+1),a>=0&&(s===t.charCodeAt(a)?-1==--a&&(r=n):(a=-1,r=c))}return i===r?r=c:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){te(e);for(var t=-1,n=0,i=-1,r=!0,o=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(r=!1,i=a+1),46===c?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=a+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==f(e))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+f(e));return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}("/",e)},parse:function(e){te(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0),r=47===i;r?(t.root="/",n=1):n=0;for(var o=-1,a=0,c=-1,s=!0,l=e.length-1,u=0;l>=n;--l)if(47!==(i=e.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&&(t.base=t.name=0===a&&r?e.slice(1,c):e.slice(a,c)):(0===a&&r?(t.name=e.slice(1,o),t.base=e.slice(1,c)):(t.name=e.slice(a,o),t.base=e.slice(a,c)),t.ext=e.slice(o,c)),a>0?t.dir=e.slice(0,a-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};function re(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function oe(){return"".concat(re()+re(),"-").concat(re(),"-").concat(re(),"-").concat(re(),"-").concat(re()).concat(re()).concat(re())}ie.posix=ie;var ae=/]*>[\s\S]*?<\/svg>/;function ce(e){return ae.test(e)}var se=function(){function e(){v(this,e)}return _(e,null,[{key:"copy",value:function(e){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=e,this.inputElement.select(),document.execCommand("copy")}}]),e}();g(se,"inputElement",null);var le=function(){function e(){v(this,e)}var t,n,i,r,o,a,c,s,l,u;return _(e,null,[{key:"checkDataBaseExists",value:(u=p(d().mark((function e(t){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,indexedDB.databases();case 3:return n=e.sent,e.abrupt("return",n.some((function(e){return e.name===t})));case 7:return e.prev=7,e.t0=e.catch(0),console.error("检查数据库是否存在时出错:",e.t0),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])}))),function(e){return u.apply(this,arguments)})},{key:"deleteDatabase",value:(l=p(d().mark((function t(n){var i,r;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.lastLink&&(null===(i=(r=e.lastLink).close)||void 0===i||i.call(r)),t.abrupt("return",new Promise((function(e,t){var i=indexedDB.deleteDatabase(n);i.onsuccess=function(){e(!0)},i.onerror=function(){e(!1)},i.onblocked=function(){console.warn("删除数据库 ".concat(n," 被阻塞,可能有其他连接正在使用该数据库。")),t(new Error("删除数据库 ".concat(n," 被阻塞")))}})));case 2:case"end":return t.stop()}}),t)}))),function(e){return l.apply(this,arguments)})},{key:"checkTableExists",value:(s=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.checkDataBaseExists(n);case 2:if(t.sent){t.next=5;break}return t.abrupt("return",!1);case 5:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onupgradeneeded=function(t){e.db=t.target.result,e.version=e.db.version},o.onsuccess=function(n){e.db=n.target.result,e.lastLink=o.result;var r=e.db.objectStoreNames.contains(i);o.result.close(),t(r)},o.onerror=function(e){r(e.target.error)}})));case 6:case"end":return t.stop()}}),t)}))),function(e,t){return s.apply(this,arguments)})},{key:"createTable",value:(c=p(d().mark((function t(n,i,r){var o,a=arguments;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=a.length>3&&void 0!==a[3]&&a[3],t.abrupt("return",new Promise((function(t){var a,c;e.version+=1,e.lastLink&&(null===(a=(c=e.lastLink).close)||void 0===a||a.call(c));var s=indexedDB.open(n,e.version);s.onupgradeneeded=function(t){if(e.db=t.target.result,!e.db.objectStoreNames.contains(i)){var n={};r?n.keyPath=r:o&&(n.autoIncrement=!0),e.db.createObjectStore(i,n)}},s.onsuccess=function(){e.lastLink=s.result,s.result.close(),t(!0)},s.onerror=function(){t(!1)}})));case 2:case"end":return t.stop()}}),t)}))),function(e,t,n){return c.apply(this,arguments)})},{key:"deleteTable",value:(a=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){var r,o;e.version+=1,e.lastLink&&(null===(r=(o=e.lastLink).close)||void 0===r||r.call(o));var a=indexedDB.open(n,e.version);a.onupgradeneeded=function(t){e.db=t.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)&&e.db.deleteObjectStore(i)},a.onsuccess=function(n){e.db=n.target.result,e.lastLink=a.result,a.result.close(),t(!0)},a.onerror=function(){a.result.close(),t(!1)}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t){return a.apply(this,arguments)})},{key:"addData",value:(o=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).add(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(null)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return o.apply(this,arguments)})},{key:"deleteData",value:(r=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).delete(r);o.onsuccess=function(e){t(!0)},o.onerror=function(){t(!1)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"updateData",value:(i=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).put(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(r)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"getData",value:(n=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var c=e.db.transaction([i],"readonly").objectStore(i).get(r);c.onsuccess=function(e){t(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 t.stop()}}),t)}))),function(e,t,i){return n.apply(this,arguments)})},{key:"getAllData",value:(t=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=o.result,e.db.objectStoreNames.contains(i)){var r=e.db.transaction([i],"readonly").objectStore(i).getAll();r.onsuccess=function(e){t(r.result)},r.onerror=function(){t([])}}o.result.close()},o.onerror=function(){o.result.close(),r()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}]),e}();g(le,"version",1),g(le,"db",null),g(le,"lastLink",void 0);var ue=function(){function e(t){v(this,e),g(this,"options",void 0),this.options=u({multiple:!0,accept:"*/*",maxSize:5242880},t)}var t,n;return _(e,[{key:"openFilePicker",value:function(){var e=this,t=document.createElement("input");t.type="file",t.multiple=this.options.multiple,t.accept=this.options.accept||"",t.onchange=function(t){var n=Array.from(t.target.files||[]);e.handleFiles(n)},t.click()}},{key:"handleFiles",value:(n=p(d().mark((function e(t){var n,i,r,o=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.length){e.next=2;break}return e.abrupt("return");case 2:return r=t.filter((function(e){var t,n;return!(o.options.maxSize&&e.size>o.options.maxSize&&(null===(t=(n=o.options).onError)||void 0===t||t.call(n,new Error("文件大小超过限制 (".concat(o.formatSize(e.size)," > ").concat(o.formatSize(o.options.maxSize),")")),e),1))})),null===(n=(i=this.options).onSelect)||void 0===n||n.call(i,r),e.next=6,Promise.all(r.map((function(e){return o.processFile(e)})));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"processFile",value:(t=p(d().mark((function e(t){var n,i,r,o,a,c,s,l,u=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a=function(e){var n,i;null===(n=(i=u.options).onProgress)||void 0===n||n.call(i,t,e)},e.next=4,this.options.onUpload(t,a);case 4:c=e.sent,null===(n=(i=this.options).onProgress)||void 0===n||n.call(i,t,100),null===(r=(o=this.options).onSuccess)||void 0===r||r.call(o,c,t),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),null===(s=(l=this.options).onError)||void 0===s||s.call(l,e.t0 instanceof Error?e.t0:new Error("上传失败"),t);case 12:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e){return t.apply(this,arguments)})},{key:"formatSize",value:function(e){if(0===e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat((e/Math.pow(1024,t)).toFixed(2)," ").concat(["B","KB","MB","GB"][t])}}]),e}(),de=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("resource")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r),c=o?JSON.parse(o):{},s=a?JSON.parse(a):{};return{id:c.id,type:n,data:c,metadata:s}}catch(Jn){throw new Error("XML 解析错误: ".concat(Jn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/resources>/i.exec(e);if(!t)return{resources:[],remainingText:e,hasResources:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.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(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("resources");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("resource");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}(),he=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("suggestion")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r);return{type:n,data:o?JSON.parse(o):{},metadata:a?JSON.parse(a):{}}}catch(Jn){throw new Error("XML 解析错误: ".concat(Jn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/suggestions>/i.exec(e);if(!t)return{suggestions:[],remainingText:e,hasSuggestions:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.slice(r)).replace(/\n/g,"");try{return{suggestions:this.parse(n),remainingText:o,hasSuggestions:!0}}catch(c){return{suggestions:[],remainingText:o,hasSuggestions:!0,error:"资源解析失败: ".concat(c.message)}}}},{key:"stringify",value:function(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("suggestions");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("suggestion");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}();function pe(e){return e.x>=0&&e.x<=1&&e.y>=0&&e.y<=1}function fe(e,t,n,i){var r=e/window.innerWidth,o=t/window.innerHeight;return{x:Math.max(0,Math.min(r,1-n)),y:Math.max(0,Math.min(o,1-i))}}var ve,me,_e,ge,ye=0,we=[],be=[],xe=l.__b,ke=l.__r,Ce=l.diffed,Te=l.__c,Ne=l.unmount;function Ee(e,t){l.__h&&l.__h(me,e,ye||t),ye=0;var n=me.__H||(me.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:be}),n.__[e]}function Se(e){return ye=1,function(e,t,n){var i=Ee(ve++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):Fe(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=me,!me.u)){var r=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var a=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&i.__c.props===e)&&(!o||o.call(this,e,t,n))};me.u=!0;var o=me.shouldComponentUpdate,a=me.componentWillUpdate;me.componentWillUpdate=function(e,t,n){if(this.__e){var i=o;o=void 0,r(e,t,n),o=i}a&&a.call(this,e,t,n)},me.shouldComponentUpdate=r}return i.__N||i.__}(Fe,e)}function Ae(e,t){var n=Ee(ve++,3);!l.__s&&je(n.__H,t)&&(n.__=e,n.i=t,me.__H.__h.push(n))}function Me(e){return ye=5,Oe((function(){return{current:e}}),[])}function Oe(e,t){var n=Ee(ve++,7);return je(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Le(e,t){return ye=8,Oe((function(){return e}),t)}function Ie(e){var t=me.context[e.__c],n=Ee(ve++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(me)),t.props.value):e.__}function De(){for(var e;e=we.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Be),e.__H.__h.forEach(He),e.__H.__h=[]}catch(ei){e.__H.__h=[],l.__e(ei,e.__v)}}l.__b=function(e){me=null,xe&&xe(e)},l.__r=function(e){ke&&ke(e),ve=0;var t=(me=e.__c).__H;t&&(_e===me?(t.__h=[],me.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=be,e.__N=e.i=void 0}))):(t.__h.forEach(Be),t.__h.forEach(He),t.__h=[],ve=0)),_e=me},l.diffed=function(e){Ce&&Ce(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==we.push(t)&&ge===l.requestAnimationFrame||((ge=l.requestAnimationFrame)||Pe)(De)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==be&&(e.__=e.__V),e.i=void 0,e.__V=be}))),_e=me=null},l.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Be),e.__h=e.__h.filter((function(e){return!e.__||He(e)}))}catch(Ge){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l.__e(Ge,e.__v)}})),Te&&Te(e,t)},l.unmount=function(e){Ne&&Ne(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Be(e)}catch(e){t=e}})),n.__H=void 0,t&&l.__e(t,n.__v))};var ze="function"==typeof requestAnimationFrame;function Pe(e){var t,n=function(){clearTimeout(i),ze&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);ze&&(t=requestAnimationFrame(n))}function Be(e){var t=me,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),me=t}function He(e){var t=me;e.__c=e.__(),me=t}function je(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Fe(e,t){return"function"==typeof t?t(e):t}function Re(){throw new Error("Cycle detected")}var Ve=Symbol.for("preact-signals");function We(){if(Xe>1)Xe--;else{for(var e,t=!1;void 0!==$e;){var n=$e;for($e=void 0,Ze++;void 0!==n;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&et(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=i}}if(Ze=0,Xe--,t)throw e}}var Ue,qe,Ye=void 0,$e=void 0,Xe=0,Ze=0,Ge=0;function Je(e){if(void 0!==Ye){var t=e.n;if(void 0===t||t.t!==Ye)return t={i:0,S:e,p:Ye.s,n:void 0,t:Ye,e:void 0,x:void 0,r:t},void 0!==Ye.s&&(Ye.s.n=t),Ye.s=t,e.n=t,32&Ye.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=Ye.s,t.n=void 0,Ye.s.n=t,Ye.s=t),t}}function Ke(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Qe(e){return new Ke(e)}function et(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function tt(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function nt(e){for(var t=e.s,n=void 0;void 0!==t;){var i=t.p;-1===t.i?(t.S.U(t),void 0!==i&&(i.n=t.n),void 0!==t.n&&(t.n.p=i)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=i}e.s=n}function it(e){Ke.call(this,void 0),this.x=e,this.s=void 0,this.g=Ge-1,this.f=4}function rt(e){return new it(e)}function ot(e){var t=e.u;if(e.u=void 0,"function"==typeof t){Xe++;var n=Ye;Ye=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,at(e),t}finally{Ye=n,We()}}}function at(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ot(e)}function ct(e){if(Ye!==this)throw new Error("Out-of-order effect");nt(this),Ye=e,this.f&=-2,8&this.f&&at(this),We()}function st(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function lt(e){var t=new st(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function ut(e,t){l[e]=t.bind(null,l[e]||function(){})}function dt(e){qe&&qe(),qe=e&&e.S()}function ht(e){var t=this,n=e.data,i=ft(n);i.value=n;var r=Oe((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e;m(r.peek())||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=r.peek()},rt((function(){var e=i.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return r.value}function pt(e,t,n,i){var r=t in e&&void 0===e.ownerSVGElement,o=Qe(n);return{o:function(e,t){o.value=e,i=t},d:lt((function(){var n=o.value.value;i[t]!==n&&(i[t]=n,r?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}function ft(e){return Oe((function(){return Qe(e)}),[])}function vt(e){var t=Me(e);return t.current=e,Ue.__$f|=4,Oe((function(){return rt((function(){return t.current()}))}),[])}Ke.prototype.brand=Ve,Ke.prototype.h=function(){return!0},Ke.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},Ke.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Ke.prototype.subscribe=function(e){var t=this;return lt((function(){var n=t.value,i=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=i}}))},Ke.prototype.valueOf=function(){return this.value},Ke.prototype.toString=function(){return this.value+""},Ke.prototype.toJSON=function(){return this.value},Ke.prototype.peek=function(){return this.v},Object.defineProperty(Ke.prototype,"value",{get:function(){var e=Je(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(Ye instanceof it&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Ze>100&&Re(),this.v=e,this.i++,Ge++,Xe++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{We()}}}}),(it.prototype=new Ke).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Ge)return!0;if(this.g=Ge,this.f|=1,this.i>0&&!et(this))return this.f&=-2,!0;var e=Ye;try{tt(this),Ye=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return Ye=e,nt(this),this.f&=-2,!0},it.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Ke.prototype.S.call(this,e)},it.prototype.U=function(e){if(void 0!==this.t&&(Ke.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},it.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},it.prototype.peek=function(){if(this.h()||Re(),16&this.f)throw this.v;return this.v},Object.defineProperty(it.prototype,"value",{get:function(){1&this.f&&Re();var e=Je(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),st.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},st.prototype.S=function(){1&this.f&&Re(),this.f|=1,this.f&=-9,ot(this),tt(this),Xe++;var e=Ye;return Ye=this,ct.bind(this,e)},st.prototype.N=function(){2&this.f||(this.f|=2,this.o=$e,$e=this)},st.prototype.d=function(){this.f|=8,1&this.f||at(this)},ht.displayName="_st",Object.defineProperties(Ke.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ht},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),ut("__b",(function(e,t){if("string"==typeof t.type){var n,i=t.props;for(var r in i)if("children"!==r){var o=i[r];o instanceof Ke&&(n||(t.__np=n={}),n[r]=o,i[r]=o.peek())}}e(t)})),ut("__r",(function(e,t){dt();var n,i=t.__c;i&&(i.__$f&=-2,void 0===(n=i.__$u)&&(i.__$u=n=function(e){var t;return lt((function(){t=this})),t.c=function(){i.__$f|=1,i.setState({})},t}())),Ue=i,dt(n),e(t)})),ut("__e",(function(e,t,n,i){dt(),Ue=void 0,e(t,n,i)})),ut("diffed",(function(e,t){var n;if(dt(),Ue=void 0,"string"==typeof t.type&&(n=t.__e)){var i=t.__np,r=t.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=pt(n,s,u,r),o[s]=l):l.o(u,r)}}}e(t)})),ut("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__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=t.__c;if(a){var c=a.__$u;c&&(a.__$u=void 0,c.d())}}e(t)})),ut("__h",(function(e,t,n,i){(i<3||9===i)&&(t.__$f|=2),e(t,n,i)})),I.prototype.shouldComponentUpdate=function(e,t){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 t)return!0;for(var r in e)if("__source"!==r&&e[r]!==this.props[r])return!0;for(var o in this.props)if(!(o in e))return!0;return!1};var mt=0;function _t(e,t,n,i,r,o){var a,c,s={};for(c in t)"ref"==c?a=t[c]:s[c]=t[c];var u={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--mt,__source:r,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===s[c]&&(s[c]=a[c]);return l.vnode&&l.vnode(u),u}var gt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},yt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},wt=function(e){return _t("svg",{viewBox:"0 0 1024 1024",id:"send",className:e.className,version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},bt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},xt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},kt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Ct=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Tt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Nt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M960 544H64a32 32 0 1 1 0-64h896a32 32 0 1 1 0 64"})})},Et=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[_t("path",{d:"M481.0752 263.3728l50.9952 1.024 1.8432-105.8816-50.9952-0.8192z"}),_t("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"}),_t("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"}),_t("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"}),_t("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"}),_t("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"})]})},St=function(){return _t("svg",{viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_t("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"}),_t("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"}),_t("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"})]})},At=function(){return _t("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_t("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"})})},Mt=function(){var e=1e3,t=140,n=250,i=.8;return _t("svg",{fill:"currentColor",viewBox:"0 0 ".concat(e," ").concat(e),xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:Array.from({length:4}).map((function(e,r){return _t("rect",{fill:"currentColor",rx:70,ry:70,height:n,width:t,x:286.66666666666663*r,y:375,children:[_t("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"}),_t("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)}))})},Ot=function(e){return _t("svg",{className:e.className,onClick:e.onClick,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Lt=function(e){return _t("svg",{className:e.className,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},It=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M972.657609 209.348408C987.158609 209.36839 998.930114 197.571202 998.949999 182.99865 998.969882 168.426097 987.230618 156.59651 972.729617 156.576528L32.457975 155.280806C17.956974 155.260823 6.18547 167.058012 6.165585 181.630564 6.1457 196.203116 17.884965 208.032703 32.385966 208.052686L972.657609 209.348408ZM180.466902 992.356169 180.466902 1019.014859 206.993296 1018.74074 833.361858 1012.267947 859.348284 1011.999407 859.348284 985.883377 859.348284 289.397297C859.348284 274.824732 847.59289 263.011332 833.091874 263.011332 818.590859 263.011332 806.835465 274.824732 806.835465 289.397297L806.835465 985.883377 832.82189 959.498805 206.453329 965.971599 232.979723 992.356169 232.979723 282.67005C232.979723 268.097483 221.224329 256.284085 206.723313 256.284085 192.222298 256.284085 180.466902 268.097483 180.466902 282.67005L180.466902 992.356169ZM656.410257 847.079027C656.410257 861.651593 668.165651 873.464992 682.666667 873.464992 697.167682 873.464992 708.923076 861.651593 708.923076 847.079027L708.923076 372.131659C708.923076 357.559091 697.167682 345.745694 682.666667 345.745694 668.165651 345.745694 656.410257 357.559091 656.410257 372.131659L656.410257 847.079027ZM341.333333 847.079027C341.333333 861.651593 353.08873 873.464992 367.589743 873.464992 382.090758 873.464992 393.846155 861.651593 393.846155 847.079027L393.846155 372.131659C393.846155 357.559091 382.090758 345.745694 367.589743 345.745694 353.08873 345.745694 341.333333 357.559091 341.333333 372.131659L341.333333 847.079027ZM498.871795 847.079027C498.871795 861.651593 510.627189 873.464992 525.128205 873.464992 539.62922 873.464992 551.384614 861.651593 551.384614 847.079027L551.384614 372.131659C551.384614 357.559091 539.62922 345.745694 525.128205 345.745694 510.627189 345.745694 498.871795 357.559091 498.871795 372.131659L498.871795 847.079027ZM392.147755 116.721777C392.147755 102.063669 403.758665 90.363507 418.40134 90.363507L622.925796 90.363507C637.408947 90.363507 649.179381 102.1619 649.179381 116.549585L649.179381 171.644875 701.692203 171.644875 701.692203 116.549585C701.692203 72.986607 666.38105 37.591577 622.925796 37.591577L418.40134 37.591577C374.724427 37.591577 339.634933 72.950804 339.634933 116.721777L339.634933 165.310801 392.147755 165.310801 392.147755 116.721777Z"})})},Dt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 184l144 144 144-144"})})},zt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"".concat(e.className," icon"),viewBox:"0 0 512 512",children:_t("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"})})},Pt=function(e){return _t("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",children:_t("circle",{cx:"25",cy:"25",r:"20",stroke:"currentColor",strokeWidth:"5",fill:"none",strokeDasharray:"31.415, 31.415",strokeLinecap:"round",children:_t("animateTransform",{attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"1s",repeatCount:"indefinite"})})})},Bt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ht=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},jt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ft=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Rt=function(e){return _t("svg",{className:e.className,id:"stop",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},Vt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})})},Wt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("path",{d:"M394.688 126.208a32 32 0 0 1 32-32h170.688a32 32 0 0 1 32 32v138.624h288a32 32 0 0 1 32 32v170.688a32 32 0 0 1-32 32H106.688a32 32 0 0 1-32-32V296.832a32 32 0 0 1 32-32h288V126.208z m64 32v138.624a32 32 0 0 1-32 32h-288v106.688h746.688V328.832h-288a32 32 0 0 1-32-32V158.208H458.688z"}),_t("path",{d:"M138.688 469.376a32 32 0 0 1 32-32h682.688a32 32 0 0 1 32 32v384a32 32 0 0 1-32 32H170.688a32 32 0 0 1-32-32v-384z m64 32v320h618.688v-320H202.688z"}),_t("path",{d:"M341.376 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32zM512 691.2a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0v-128a32 32 0 0 1 32-32zM682.688 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32z"})]})},Ut=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("path",{d:"M843.251 424.407l43.828-74.898c10.194-17.946 32.596-22.158 48.956-11.598 16.298 10.499 23.44 32.658 14.223 49.566l-113.11 195.212-61.164-40.044-126.418-82.285c-16.115-11.598-20.632-34.428-10.194-51.702 9.705-17.397 31.009-23.501 47.857-13.734l89.67 59.028C748.576 295.547 615.81 180.667 461.008 180.667c-177.387 0-320.042 148.758-320.042 331.335 0 183.613 143.692 331.334 319.981 331.334 107.861 0.184 208.58-56.158 268.034-149.858 1.099-1.038 1.099-2.075 2.075-2.075 6.348-9.949 17.092-15.871 28.568-15.81 19.35 0 35.648 16.848 35.648 36.93 0 7.508-2.137 14.833-6.104 21.059-72.823 114.698-196.066 183.675-328.099 183.614-216.088 0-391.4-181.478-391.4-405.195 0-223.718 175.312-405.195 391.339-405.195 183.125-0.427 342.016 131.606 382.243 317.601z"})})},qt=function(){return _t("svg",{version:"1.1",className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M627.498667 55.168l170.666666 170.666667a42.624 42.624 0 0 1 0 60.330666l-469.333333 469.333334A42.538667 42.538667 0 0 1 298.666667 768H128a42.666667 42.666667 0 0 1-42.666667-42.666667v-170.666666c0-11.306667 4.48-22.186667 12.501334-30.165334l469.333333-469.333333a42.624 42.624 0 0 1 60.330667 0zM896 896a42.666667 42.666667 0 0 1 0 85.333333H128a42.666667 42.666667 0 0 1 0-85.333333h768zM597.333333 145.664l-426.666666 426.666667V682.666667h110.336l426.666666-426.666667L597.333333 145.664z"})})},Yt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M184 112l144 144-144 144"})})},$t=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M896 870.4l-128-128c55.467-68.267 89.6-149.333 89.6-238.933 0-98.134-38.4-192-110.933-264.534-149.334-149.333-384-149.333-533.334-4.266-145.066 145.066-145.066 384 0 529.066 72.534 72.534 166.4 110.934 264.534 110.934 89.6 0 174.933-29.867 238.933-89.6l128 128c4.267 4.266 12.8 8.533 21.333 8.533s17.067-4.267 21.334-8.533c17.066-8.534 17.066-29.867 8.533-42.667zM260.267 721.067c-119.467-123.734-119.467-320 0-439.467 59.733-59.733 140.8-89.6 217.6-89.6 81.066 0 157.866 29.867 217.6 89.6 59.733 59.733 89.6 136.533 89.6 217.6 0 81.067-34.134 162.133-89.6 217.6-55.467 59.733-132.267 93.867-217.6 93.867-81.067 0-157.867-34.134-217.6-89.6z"})})},Xt=function(e){var t=e.items,n=ft([]),i=new ee("chat-thought-chain"),r=ft([]);Ae((function(){r.value=t.filter((function(e){return e.description})),r.value.length>0&&r.value.forEach((function(e,t){e.done&&(n.value=[].concat(o(n.value),[t]))}))}),[t]);return 0===r.value.length?null:_t("div",{className:"".concat(i.b()," ").concat(i.is("single",1===r.value.length)),children:r.value.map((function(e,t){if(e.description){var r=n.value.includes(t);return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("collapsed",r)),children:[_t("div",{className:i.e("item-icon"),children:e.icon||_t("span",{children:t})}),_t("div",{className:i.e("item-content"),children:[_t("div",{className:i.e("item-title"),onClick:function(){return function(e){n.value.includes(e)?n.value=n.value.filter((function(t){return t!==e})):n.value=[].concat(o(n.value),[e])}(t)},children:[e.title,_t(Dt,{className:i.e("icon")})]}),_t("div",{className:i.e("item-description"),children:e.description})]})]},t)}}))})},Zt=function(e){var t=e.items,n=e.onItemClick,i=new ee("chat-suggestions");return _t("div",{className:"".concat(i.b()),children:t.map((function(e,t){return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("action","action"===e.type)),onClick:function(t){return function(e,t){null==n||n(e,t)}(e,t)},title:e.metadata.content_name,children:[e.metadata.content_name,_t(Yt,{className:"".concat(i.e("item-icon"))})]},t)}))})},Gt=new ee("markdown-message"),Jt=function(e){var t=e.message,n=e.size,i=ft(oe()),r=ft(null),o=Oe((function(){return 20===t.state&&!0!==t.completed}),[t.state,t.completed]),a=Oe((function(){return 20===t.state&&!0===t.completed}),[t.state,t.completed]),c=ft({title:"",description:"",icon:_t(Pt,{})}),l=ft({hasSuggestions:!1,suggestions:[]}),u=function(e){e&&e.length>0?l.value={hasSuggestions:!0,suggestions:e}:l.value={hasSuggestions:!1,suggestions:[]}},d=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="",o=!1;return-1===n?(o=!1,i=e.slice(t+7),r=""):(o=!0,i=e.slice(t+7,n),r=e.slice(n+8)),{isThoughtCompleted:o,thoughtContent:i,answerContent:r}};return Ae((function(){if(n>=0&&r.value){if(-1!==t.content.indexOf("")){var e=d(t.content),i=e.isThoughtCompleted,o=e.thoughtContent,a=e.answerContent;i?(c.value.icon=_t(zt,{}),c.value.title="思考完成"):!0===t.completed?(c.value.icon=_t(zt,{}),c.value.title="思考已停止"):(c.value.icon=_t(Pt,{}),c.value.title="思考中..."),c.value.description=o||"",r.value.setMarkdown(a||"")}else r.value.setMarkdown(t.content||"");u(t.suggestions)}}),[t,n]),Ae((function(){var e="";if(-1!==t.content.indexOf("")){var n=d(t.content),o=n.isThoughtCompleted,a=n.thoughtContent,l=n.answerContent;c.value={title:o?"思考完成":!0===t.completed?"思考已停止":"思考中...",description:a||"",icon:o||!0===t.completed?_t(zt,{}):_t(Pt,{})},l&&(e=l)}else e=t.content;u(t.suggestions),r.value=new s({id:i,value:e||"",editor:{defaultModel:"previewOnly"},themeSettings:{mainTheme:"dark",codeBlockTheme:"twilight"}})}),[]),_t("div",{className:"".concat(Gt.b()," ").concat(Gt.is("loading",o)),children:[_t("div",{className:Gt.b("header"),children:[_t("div",{className:Gt.be("header","caption"),children:"AI "}),e.children,a?_t("div",{className:Gt.be("header","timeout"),children:"请求超时"}):null]}),_t("div",{className:"".concat(Gt.b("content")," pre-wrap-container"),children:[_t(Xt,{items:[c.value]}),_t("div",{id:i})]}),_t("div",{className:Gt.b("footer"),children:l.value.hasSuggestions?_t(Zt,{items:l.value.suggestions,onItemClick:function(t,n){!function(t,n){e.controller.handleSuggestionClick(e.message,t,n)}(t,n)}}):null})]})},Kt=new ee("ossfile-material"),Qt=function(e){var t=vt((function(){return e.material.data.name})),n=vt((function(){return e.material.metadata.size})),i=vt((function(){var t=e.material.metadata.state;return"successed"===t?"上传成功":"uploading"===t?"上传中":"failed"===t?"上传失败":"未知状态"})),r=vt((function(){switch(e.material.metadata.state){case"successed":return"#1890ff";case"uploading":return"#52c41a";default:return"#ff4d4f"}}));return _t("div",{className:Kt.b(),children:[_t("div",{className:Kt.b("left"),children:_t(Ht,{})}),_t("div",{className:Kt.b("right"),children:[_t("div",{className:Kt.e("name"),title:t,children:t}),_t("div",{className:Kt.e("metadata"),children:[_t("div",{children:[n,"B"]}),_t("div",{style:{color:r.value},children:i})]})]})]})},en=new ee("common-material"),tn=function(e){var t,n,i,r,o=null===(t=e.controller.opts.questionToolbarItems)||void 0===t?void 0:t.find((function(t){return t.id===e.material.metadata.actionId})),a=vt((function(){return e.material.metadata.name}));return _t("div",{className:en.b(),children:[_t("div",{className:en.b("left"),children:o&&o.icon?"function"==typeof o.icon?o.icon():(null===(n=o.icon)||void 0===n?void 0:n.showIcon)&&_t(L,{children:null!==(i=o.icon)&&void 0!==i&&i.cssClass?_t("i",{className:o.icon.cssClass}):null!==(r=o.icon)&&void 0!==r&&r.imagePath?ce(o.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:o.icon.imagePath}}):_t("img",{src:o.icon.imagePath}):null}):_t(Ft,{})}),_t("div",{className:en.b("right"),children:[_t("div",{className:en.e("name"),title:a,children:a}),_t("div",{className:en.e("metadata"),children:_t("div",{children:(null==o?void 0:o.label)||"素材资源"})})]})]})},nn=new ee("chat-input-material-item"),rn=function(e){var t=e.material,n=null;if("ossfile"===t.type)n=Qt;else n=tn;return _t("div",{className:"".concat(nn.b()," ").concat(nn.is("disabled",e.disabled)),children:[_t("div",{className:nn.e("icon"),onClick:function(){e.controller.deleteMaterial(t)},children:_t(jt,{})}),M(n,{material:t,controller:e.controller})]})},on=new ee("user-message-question"),an=function(e){var t=ft(oe()),n=ft(null),i=vt((function(){return e.message.content})),r=vt((function(){return de.parseMixedContent(i.value)}));return Ae((function(){n.value=new s({id:t,value:r.value.remainingText||"",editor:{defaultModel:"previewOnly"},themeSettings:{mainTheme:"dark",codeBlockTheme:"twilight"}})}),[r.value.remainingText]),_t("div",{className:on.b(),children:[_t("div",{className:on.e("user-header"),children:[e.children,_t("div",{className:on.e("user"),children:"我"})]}),_t("div",{className:on.e("content"),children:_t("div",{className:on.em("content","body"),children:[r.value.hasResources&&_t("div",{className:on.em("content","material"),children:r.value.resources.map((function(t){return _t(rn,{material:t,disabled:!0,controller:e.controller},t.id)}))}),_t("div",{className:"pre-wrap-container",children:_t("div",{id:t})})]})})]})},cn=new ee("error-message"),sn=function(e){var t=vt((function(){return e.message.content}));return _t("div",{className:cn.b(),children:[_t("div",{className:cn.b("header"),children:[_t("div",{className:cn.be("header","caption"),children:"AI "}),e.children]}),_t("div",{className:"".concat(cn.e("content")," pre-wrap-container"),children:_t("span",{children:t})})]})},ln=new ee("unknown-message"),un=function(e){return _t("div",{className:ln.b(),children:_t("div",{className:"".concat(ln.e("content")," pre-wrap-container"),children:["暂未支持的消息类型: ",e.message.type]})})},dn=new ee("chat-message-item"),hn=function(e){var t=e.message,n=e.size,i=null;switch(t.type){case"DEFAULT":i="ASSISTANT"===t.role?Jt:an;break;case"ERROR":i=sn;break;default:i=un}return _t("div",{className:dn.b(),children:M(i,{size:n,message:t,controller:e.controller,children:e.children})})},pn=function(){function e(t){v(this,e),this.msg=t}return _(e,[{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 e=this.msg.content;if(-1!==e.indexOf("")&&-1===e.indexOf(""))return"";if(-1!==(e=e.replace(/[^]*?<\/think>/g,"").trim()).indexOf("")&&-1===e.indexOf(""))return"";var t=(e=e.replace(/[^]*?<\/resources>/g,"").trim()).indexOf("");return-1!==t&&(e=e.substring(0,t).trim()),e}},{key:"content",get:function(){return this.msg.content}},{key:"completed",get:function(){return this.msg.completed}},{key:"suggestions",get:function(){return this.msg.suggestions}},{key:"_origin",get:function(){return this.msg}},{key:"update",value:function(e){e.content||(e.content=""),-1!==e.content.indexOf("")&&this.msg.content&&(this.msg.content=""),this.msg.content+=e.content}},{key:"updateCompleted",value:function(e){this.msg.completed=e}}]),e}(),fn=function(){function e(t){v(this,e),this.data=t}return _(e,[{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:"sourceCaption",get:function(){return this.data.sourceCaption||this.caption}},{key:"url",get:function(){return this.data.url}},{key:"aiChat",get:function(){return this.data.aiChat}}]),e}(),vn=function(){function e(t){v(this,e),this.material=t}return _(e,[{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}}]),e}(),mn=new ee("chat-toolbar-item"),_n=function(e){var t,n,i,r=e.model,o=e.data,c=e.className,s=e.disabled,l=void 0!==s&&s,u=e.buttonType,d=void 0===u?"default":u,h=e.onClick,p=a(Se(!1),2),f=p[0],v=p[1],m=Me(null),_=function(e){return"function"==typeof e.hidden?e.hidden(o):!0===e.hidden};if(_(r))return _t(L,{});var g=function(e){return!!l||("function"==typeof e.disabled?e.disabled(o):!0===e.disabled)},y=function(e){var t,n,i,r;return"function"==typeof e.icon?e.icon():null!==(t=e.icon)&&void 0!==t&&t.showIcon&&null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.showIcon&&null!==(r=e.icon)&&void 0!==r&&r.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):void 0},w=function(e,t){g(t)||(v(!1),h(e,t))};return Ae((function(){var e=function(e){m.current&&m.current.contains(e.target)||v(!1)};return f&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[f]),_t("div",{className:"".concat(mn.b()," ").concat(mn.b(d)," ").concat(r.customClass||""," ").concat(c||""," ").concat(mn.is("disabled",g(r))," ").concat(mn.is("more",!(null===(t=r.children)||void 0===t||!t.length))),children:[_t("div",{title:r.title,className:mn.e("content"),onClick:function(e){return w(e,r)},children:[_t("div",{className:mn.em("content","icon"),children:y(r)}),_t("div",{className:mn.em("content","label"),children:r.label})]}),(null===(n=r.children)||void 0===n?void 0:n.length)&&_t("div",{title:"更多",className:mn.e("more"),onClick:function(e){g(r)||v(!0)},children:_t("i",{"aria-hidden":"true",className:"fa fa-angle-down ".concat(mn.em("more","icon"))})}),f&&_t("div",{ref:m,className:mn.b("dropdown"),children:null===(i=r.children)||void 0===i?void 0:i.map((function(e,t){if(!_(e))return _t("div",{title:e.title,onClick:function(t){return w(t,e)},className:"".concat(mn.be("dropdown","item")," ").concat(e.customClass||""," ").concat(mn.is("disabled",g(e))),children:[_t("div",{className:mn.bem("dropdown","item","icon"),children:y(e)}),_t("div",{className:mn.bem("dropdown","item","label"),children:e.label})]},t)}))})]})},gn=new ee("chat-toolbar"),yn=function(e){var t=e.controller,n=e.items,i=void 0===n?[]:n,r=e.data,a=e.type,c=e.className,s=e.mode,l=Ie(Ci),d=[],h=[{label:"重置对话",title:"重置对话",icon:function(){return _t(Ut,{})},onClick:function(){t.resetTopic()},children:[{label:"清空对话",title:"清空对话",icon:function(){return _t(Wt,{})},onClick:function(){t.clearTopic()}},{label:"新建对话",title:"新建对话",hidden:"TOPIC"!==s,icon:function(){return _t(St,{})},onClick:function(){l.newTopic&&l.newTopic()}}]}],p=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r)}},{label:"删除",title:"删除",icon:function(){return _t(bt,{})},onClick:function(){t.deleteMessage(r)}},{label:"复制",title:"复制",icon:function(){return _t(kt,{})},onClick:function(){t.copyMessage(r)}}];l.enableBackFill&&p.unshift.apply(p,[{label:"回填",title:"回填",icon:function(){return _t(yt,{})},onClick:function(){t.backfill(r)}}]);var f=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r,!0)}}];if("content"===a)switch(r.type){case"DEFAULT":d="ASSISTANT"===r.role?[].concat(p,o(i)):[].concat(f);break;case"ERROR":d=[].concat(p,o(i))}else d=[].concat(h,o(i));var v=function(n,i){var o=u({},r);if(r instanceof pn?(Object.assign(o,{topic:t.topic}),o.msg.realcontent=r.realcontent):(o.data||(o.data={}),Object.assign(o.data,{messages:t.messages.value})),i.onClick&&"function"==typeof i.onClick)i.onClick(n,i,t.context,t.params,o);else{var a=e.controller.opts.extendToolbarClick;a&&"function"==typeof a&&a(n,i,t.context,t.params,o)}},m=Oe((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 _t("div",{className:"".concat(gn.b()," ").concat(c||""),children:d.map((function(e,t){return _t(_n,{data:r,model:e,disabled:m,buttonType:"content"===a?"circle":"default",onClick:v.bind(void 0)},t)}))})};var wn=function(e){var t,n,i,r=ft(!1),o=ft({}),a=new ee("chat-back-bottom"),c=ft(null),s=function(){if(c.value){var t=e.visibilityHeight||200,n=c.value.scrollHeight-c.value.scrollTop-c.value.offsetHeight;r.value=n>=t}},l=(t=s,n=300,i=null,function(){for(var e=this,r=arguments.length,o=new Array(r),a=0;a3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),K(M(Dn,{context:t.context},e.__v),t.l)}function Pn(e,t){var n=M(zn,{__v:e,i:t});return n.containerInfo=t,n}(Ln.prototype=new I).__a=function(e){var t=this,n=On(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),In(t,e,i)):r()};n?n(o):o()}},Ln.prototype.render=function(e){this.u=null,this.o=new Map;var t=F(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ln.prototype.componentDidUpdate=Ln.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){In(e,n,t)}))};var Bn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Hn=/^(?: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]/,jn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Fn=/[A-Z0-9]/g,Rn="undefined"!=typeof document,Vn=function(e){return("undefined"!=typeof Symbol&&"symbol"==f(Symbol())?/fil|che|rad/:/fil|che|ra/).test(e)};I.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(I.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Wn=l.event;function Un(){}function qn(){return this.cancelBubble}function Yn(){return this.defaultPrevented}l.event=function(e){return Wn&&(e=Wn(e)),e.persist=Un,e.isPropagationStopped=qn,e.isDefaultPrevented=Yn,e.nativeEvent=e};var $n={enumerable:!1,configurable:!0,get:function(){return this.class}},Xn=l.vnode;l.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={};for(var r in t){var o=t[r];if(!("value"===r&&"defaultValue"in t&&null==o||Rn&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===o?o="":"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Vn(t.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":jn.test(r)?r=a:-1===n.indexOf("-")&&Hn.test(r)?r=r.replace(Fn,"-$&").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(t.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=F(t.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",$n)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=Bn,Xn&&Xn(e)};var Zn=l.__r;l.__r=function(e){Zn&&Zn(e),e.__c};var Gn=l.diffed;l.diffed=function(e){Gn&&Gn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};var Jn=new Map;function Kn(e){var t=Jn.get(e);t&&t.destroy()}function Qn(e){var t=Jn.get(e);t&&t.update()}var ei=null;"undefined"==typeof window?((ei=function(e){return e}).destroy=function(e){return e},ei.update=function(e){return e}):((ei=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!Jn.has(e)){var t,n=null,i=window.getComputedStyle(e),r=(t=e.value,function(){a({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),o=function(t){e.removeEventListener("autosize:destroy",o),e.removeEventListener("autosize:update",c),e.removeEventListener("input",r),window.removeEventListener("resize",c),Object.keys(t).forEach((function(n){return e.style[n]=t[n]})),Jn.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",o),e.addEventListener("autosize:update",c),e.addEventListener("input",r),window.addEventListener("resize",c),e.style.overflowX="hidden",e.style.wordWrap="break-word",Jn.set(e,{destroy:o,update:c}),c()}function a(t){var r,o,c=t.restoreTextAlign,s=void 0===c?null:c,l=t.testForHeightReduction,u=void 0===l||l,d=i.overflowY;if(0!==e.scrollHeight&&("vertical"===i.resize?e.style.resize="none":"both"===i.resize&&(e.style.resize="horizontal"),u&&(r=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null}))}}(e),e.style.height=""),o="content-box"===i.boxSizing?e.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):e.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&o>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(e.style.overflow="scroll"),o=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(e.style.overflow="hidden"),e.style.height=o+"px",s&&(e.style.textAlign=s),r&&r(),n!==o&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=o),d!==i.overflow&&!s)){var h=i.textAlign;"hidden"===i.overflow&&(e.style.textAlign="start"===h?"end":"start"),a({restoreTextAlign:h,testForHeightReduction:!0})}}function c(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Kn),e},ei.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Qn),e});var ti=ei,ni=function(e){return e.STYLE_CACHE="ai-chat-style-cache",e.MINIMIZE_STYLY_CHCHE="ai-chat-minimize-style-cache",e.DATA_BASE_NAME="ibiz-chat",e.DATA_TABLE_NAME="history-message",e.DATA_TABLE_KEY_NAME="id",e}(ni||{}),ii=function(){function e(t){v(this,e),g(this,"messages",Qe([])),g(this,"materials",Qe([])),g(this,"input",Qe("")),g(this,"isLoading",Qe(!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=t,this.context=t.context,this.params=t.params,this.appDataEntityId=t.appDataEntityId,this.topicId=t.topicId,this.topic=t.topic,this.fecthHistory()}var t,n,i,r,a,c,s;return _(e,[{key:"fecthHistory",value:(s=p(d().mark((function e(){var t,n=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=7;break}return e.next=3,le.getData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 3:if(!((t=e.sent)&&t.data&&t.data.length>0)){e.next=7;break}return t.data.forEach((function(e){var t={messageid:e.messageid,state:e.state,type:e.type,role:e.role,content:e.content,suggestions:e.suggestions,completed:!0};n.addMessage(t)})),e.abrupt("return",!0);case 7:return e.next=9,this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId,appendCurData:this.opts.appendCurData});case 9:return e.sent&&this.opts.appendCurContent&&this.addMessage({state:30,messageid:oe(),role:"USER",type:"DEFAULT",content:this.opts.appendCurContent,completed:!0}),e.abrupt("return",!0);case 12:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"asyncToIndexDB",value:(c=p(d().mark((function e(){var t;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.topicId){e.next=2;break}return e.abrupt("return");case 2:return t={id:this.topicId,data:this.messages.value.map((function(e){return e._origin})),timestamp:(new Date).getTime()},e.next=5,le.updateData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"setInput",value:function(e){this.input.value=e||""}},{key:"addMessage",value:function(e){var t=this.messages.value.find((function(t){return t.messageid===e.messageid}));t?(t.update(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB()}},{key:"completeMessage",value:function(e,t){var n=this.messages.value.find((function(t){return t.messageid===e}));n&&(n.updateCompleted(t),this.messages.value=o(this.messages.value),this.asyncToIndexDB())}},{key:"replaceMessage",value:function(e){var t=this,n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==n?(this.messages.value[n]=new pn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB(),"DEFAULT"===e.type&&this.opts.recommendPrompt&&this.opts.recommendPrompt(this.context,this.params,{appDataEntityId:this.appDataEntityId,message:{messages:[e]}}).then((function(n){n&&n.content&&t.updateRecommendPrompt(e,n.content)}))}},{key:"stopMessage",value:function(e){var t=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));if(-1!==t){var n=this.messages.value[t];e.content=n.content,this.messages.value[t]=new pn(e),this.messages.value=o(this.messages.value)}else this.messages.value=[].concat(o(this.messages.value),[new pn(e)]);this.asyncToIndexDB()}},{key:"stringlyMaterialResource",value:function(){var e="",t=[];return this.materials.value&&this.materials.value.length>0&&(this.materials.value.forEach((function(e){if("ossfile"===e.type){var n=e.metadata;n.state&&"successed"===n.state&&t.push(e)}else t.push(e)})),this.materials.value=[]),t&&t.length>0&&(e=de.stringify(t)),e}},{key:"question",value:(a=p(d().mark((function e(t){var n,i=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.isLoading.value=!0,this.messages.value.forEach((function(e,t){var n=e._origin;n.suggestions&&(n.suggestions=void 0,i.messages.value[t]=new pn(n))})),this.messages.value=o(this.messages.value),this.asyncToIndexDB(),(n=this.stringlyMaterialResource())?n+="\n".concat(t):n=t,this.addMessage({state:30,messageid:oe(),role:"USER",type:"DEFAULT",content:n}),e.next=10,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 10:this.opts.action&&this.opts.action("question",t),this.isLoading.value=!1;case 12:return e.prev=12,this.isLoading.value=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[0,,12,15]])}))),function(e){return a.apply(this,arguments)})},{key:"abortQuestion",value:function(){try{this.opts.abortQuestion(this)}finally{this.isLoading.value=!1}}},{key:"backfill",value:function(e){this.opts.action&&this.opts.action("backfill",e)}},{key:"deleteMessage",value:function(e){var t=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==t&&(this.messages.value.splice(t,1),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),this.opts.action&&this.opts.action("deletemsg",e)}},{key:"refreshMessage",value:(r=p(d().mark((function e(t){var n,i,r,a=arguments;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],this.isLoading.value=!0,e.prev=2,i=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})),!n){e.next=11;break}return this.messages.value.splice(i+1,this.messages.value.length-i-1),this.messages.value=o(this.messages.value),e.next=9,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 9:e.next=21;break;case 11:if(i!==this.messages.value.length-1){e.next=18;break}return this.messages.value.pop(),this.messages.value=o(this.messages.value),e.next=16,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 16:e.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",t);case 23:return e.prev=23,this.isLoading.value=!1,e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[2,,23,26]])}))),function(e){return r.apply(this,arguments)})},{key:"copyMessage",value:function(e){var t=e.realcontent;se.copy(t),this.opts.action&&this.opts.action("copymsg",e)}},{key:"resetTopic",value:(i=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.abortQuestion(),!this.topicId){e.next=4;break}return e.next=4,le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 4:this.messages.value=[],this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId});case 6:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"clearTopic",value:(n=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.abortQuestion(),!this.topicId){e.next=4;break}return e.next=4,le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 4:this.messages.value=[];case 5:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"addMaterial",value:function(e){var t=this.materials.value.find((function(t){return t.id===e.id}));this.materials.value=t?o(this.materials.value):[].concat(o(this.materials.value),[new vn(e)])}},{key:"replaceMaterial",value:function(e,t){var n=this.materials.value.findIndex((function(t){return t.id===e}));-1!==n?(this.materials.value[n]=new vn(t),this.materials.value=o(this.materials.value)):this.materials.value=[].concat(o(this.materials.value),[new vn(t)])}},{key:"deleteMaterial",value:function(e){var t=this.materials.value.findIndex((function(t){return t.id===e.id}));-1!==t&&(this.materials.value.splice(t,1),this.materials.value=o(this.materials.value))}},{key:"updateRecommendPrompt",value:function(e,t){if(t){var n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid})),i=he.parseMixedContent(t).suggestions;i&&i.length>0&&(e.suggestions=i,-1!==n?(this.messages.value[n]=new pn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB())}}},{key:"handleSuggestionClick",value:(t=p(d().mark((function e(t,n,i){var r,a,c,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:-1!==(r=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})))&&((a=this.messages.value[r]._origin).suggestions=void 0,this.messages.value[r]=new pn(a),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),c=n.type,e.t0=c,e.next="action"===e.t0?7:"raw"===e.t0?17:20;break;case 7:if(!this.opts.extendToolbarClick){e.next=16;break}if(s=n.data.actionid){e.next=11;break}throw new Error("actionid不能为空");case 11:return l=u({},t),Object.assign(l,{topic:this.topic}),l.msg.realcontent=t.realcontent,e.next=16,this.opts.extendToolbarClick(i,{id:s,appId:this.context.srfappid},this.context,this.params,l);case 16:case 19:return e.abrupt("break",21);case 17:return e.next=19,this.question(n.data.content);case 20:throw new Error("不支持".concat(c,"推荐类型"));case 21:case"end":return e.stop()}}),e,this)}))),function(e,n,i){return t.apply(this,arguments)})}]),e}(),ri=function(){function e(t){v(this,e),g(this,"topics",Qe([])),g(this,"activedTopic",Qe(void 0)),g(this,"currentTopicOptions",void 0),this.chat=t}var t,n,i,r,a,c,s;return _(e,[{key:"fetchHistory",value:(s=p(d().mark((function e(t){var n,i,r=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.configService(t.appid,"aitopics",t.type),e.next=3,n.load();case 3:(i=e.sent)&&i.length>0&&i.forEach((function(e){r.topics.value=[].concat(o(r.topics.value),[new fn(e)])}));case 5:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})},{key:"updateCurrentTopic",value:(c=p(d().mark((function e(t){var n,i,r,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.currentTopicOptions=t,n=this.topics.value.findIndex((function(e){return e.id===t.id})),i=new fn(t),-1!==n?this.topics.value.splice(n,1,new fn(t)):this.topics.value=[].concat(o(this.topics.value),[new fn(t)]),r=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),a=t.configService(t.appid,"aitopics",t.type),e.next=8,null==a?void 0:a.save(r);case 8:this.activedTopic.value=i;case 9:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"removeTopic",value:(a=p(d().mark((function e(t,n,i,r,a){var c,s,l,u,h;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=!0,!t.beforeDelete){e.next=5;break}return e.next=4,t.beforeDelete(n,i,r,a);case 4:s=e.sent;case 5:if(s){e.next=7;break}return e.abrupt("return");case 7:return-1!==(l=this.topics.value.findIndex((function(e){return e.id===r.id})))&&(this.topics.value.splice(l,1),this.topics.value=o(this.topics.value)),u=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),h=t.configService(t.appid,"aitopics",t.type),e.next=13,null==h?void 0:h.save(u);case 13:return e.next=15,le.deleteData(ni.DATA_BASE_NAME,ni.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 e.stop()}}),e,this)}))),function(e,t,n,i,r){return a.apply(this,arguments)})},{key:"updateTopic",value:(r=p(d().mark((function e(t,n){var i,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),r=t.configService(t.appid,"aitopics",t.type),e.next=4,null==r?void 0:r.save(i);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"handleTopicChange",value:function(e){var t;(null===(t=this.activedTopic.value)||void 0===t?void 0:t.id)!==e.id&&(this.activedTopic.value=e,this.chat.switchAiChatController(e))}},{key:"handleTopicAction",value:(i=p(d().mark((function e(t,n,i){var r,o,a,c,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.topics.value.find((function(e){return e.id===n.id})),!(this.currentTopicOptions&&r&&r.aiChat)){e.next=12;break}if(c=r.aiChat,s=c.context,l=c.params,"DELETE"!==t){e.next=8;break}return e.next=6,this.removeTopic(this.currentTopicOptions,s,l,r,i);case 6:e.next=11;break;case 8:if("RENAME"!==t){e.next=11;break}return e.next=11,this.updateTopic(this.currentTopicOptions,n);case 11:null===(o=(a=this.currentTopicOptions).action)||void 0===o||o.call(a,t,s,l,n,i);case 12:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"newTopic",value:(n=p(d().mark((function e(){var t,n,i,r,a,c,s,l,u;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this.activedTopic.value){e.next=3;break}return e.abrupt("return");case 3:return r=i.id.split("@")[0],a=this.topics.value.filter((function(e){return e.id.startsWith(r)})),c={appid:i.appid,id:"".concat(r,"@").concat(Date.now()),type:i.type,caption:"".concat(null===(t=i.sourceCaption)||void 0===t?void 0:t.split("_")[0],"_").concat(a.length),sourceCaption:i.sourceCaption,url:i.url,aiChat:i.aiChat},s=new fn(c),this.topics.value=[].concat(o(this.topics.value),[s]),l=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),u=null===(n=this.currentTopicOptions)||void 0===n?void 0:n.configService(c.appid,"aitopics",c.type),e.next=12,null==u?void 0:u.save(l);case 12:this.handleTopicChange(s);case 13:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"clearTopic",value:(t=p(d().mark((function e(){var t,n,i,r,o,a=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.topics.value.find((function(e){var t;return e.id===(null===(t=a.activedTopic.value)||void 0===t?void 0:t.id)})),this.currentTopicOptions&&n){e.next=3;break}return e.abrupt("return");case 3:if(i=!0,!this.currentTopicOptions.beforeDelete){e.next=8;break}return e.next=7,this.currentTopicOptions.beforeDelete(n.aiChat.context,n.aiChat.params,n,void 0,!0);case 7:i=e.sent;case 8:if(i){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,Promise.all(this.topics.value.map((function(e){if(e.id!==(null==n?void 0:n.id))return le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,e.id)})));case 12:return this.topics.value=n?[n]:[],r=null===(t=this.currentTopicOptions)||void 0===t?void 0:t.configService(this.currentTopicOptions.appid,"aitopics",this.currentTopicOptions.type),o=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),e.next=17,null==r?void 0:r.save(o);case 17:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),oi=_((function e(t){v(this,e),this.aiChat=t})),ai=function(t){e(o,t);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=p(d().mark((function e(t,n){var i,r,o,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n||!n.onClick||"function"!=typeof n.onClick){e.next=6;break}return e.next=3,n.onClick(t,n,this.aiChat.context,this.aiChat.params);case 3:i=e.sent,e.next=14;break;case 6:if(!(r=this.aiChat.opts.extendToolbarClick)){e.next=13;break}return e.next=10,r(t,n,this.aiChat.context,this.aiChat.params,{});case 10:i=e.sent,e.next=14;break;case 13:console.error("未找到扩展工具栏点击事件");case 14:i&&i.data&&i.data.length>0&&(o=i.data[0],a={id:o.id,type:o.type,data:o.data||{},metadata:o.metadata||{}},n.id&&Object.assign(a.metadata,{actionId:n.id}),this.aiChat.addMaterial(a));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})}]),o}(oi),ci=function(t){e(o,t);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=p(d().mark((function e(t,n){var i,r,o,a,c,s,l,u,h,f,v=this;return d().wrap((function(e){for(;;)switch(e.prev=e.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,h=i.onProgress,f={multiple:r||!0,accept:o||"*/*",maxSize:a||5242880,onSelect:function(e){null==c||c(e),e.length>0&&e.forEach((function(e){var t=v.buildMaterialObject(e);Object.assign(t.metadata,{state:"uploading"}),v.aiChat.addMaterial(t)}))},onUpload:function(){var e=p(d().mark((function e(t,n){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s(t,n,{context:v.aiChat.context,params:v.aiChat.params}));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),onSuccess:function(e,t){var n={id:e.id,type:"ossfile",data:{id:e.id,name:e.name},metadata:{ext:e.ext,fileext:e.fileext,fileid:e.fileid,filename:e.filename,size:e.size,filesize:e.filesize,state:"successed"}};v.aiChat.replaceMaterial(t.name,n),null==l||l(e,t)},onError:function(e,t){var n=v.buildMaterialObject(t);Object.assign(n.metadata,{state:"failed"}),v.aiChat.replaceMaterial(t.name,n),null==u||u(e,t)},onProgress:function(e,t){null==h||h(e,t)}},new ue(f).openFilePicker();case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"buildMaterialObject",value:function(e){return{id:e.name,type:"ossfile",data:{name:e.name,id:e.name},metadata:{size:e.size,type:e.type,lastModified:e.lastModified}}}}]),o}(oi),si=function(){function e(){v(this,e)}return _(e,null,[{key:"getMaterialHelper",value:function(e,t){return"ossfile"===e?new ci(t):new ai(t)}}]),e}(),li=function(){function e(){v(this,e),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 ri(this)}var t,n;return _(e,[{key:"aiChat",get:function(){var e;return this.aiTopicMap.get("".concat(null===(e=this.aiTopic.activedTopic.value)||void 0===e?void 0:e.id))}},{key:"initIndexDB",value:(n=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le.checkTableExists(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME);case 2:if(e.sent){e.next=6;break}return e.next=6,le.createTable(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,ni.DATA_TABLE_KEY_NAME,!1);case 6:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"create",value:(t=p(d().mark((function e(t){var n,i,r,o,a,c,s=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initIndexDB();case 2:if(this.backupChatOptions=t,this.close(),this.container=document.createElement("div"),this.container.classList.add("ibiz-ai-chat"),document.body.appendChild(this.container),o=t.chatOptions,!t.mode||"TOPIC"!==t.mode){e.next=19;break}if(this.isMountedAiTopic){e.next=13;break}return e.next=12,this.aiTopic.fetchHistory(t.topicOptions);case 12:this.isMountedAiTopic=!0;case 13:return a=t.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,otherToolbarItems:o.otherToolbarItems,appendCurData:o.appendCurData,appendCurContent:o.appendCurContent}}),e.next=17,this.aiTopic.updateCurrentTopic(a);case 17:e.next=20;break;case 19:this.aiTopic.activedTopic.value=void 0;case 20:return Object.assign(o,{topicId:null===(n=a)||void 0===n?void 0:n.id,topic:a}),c=new ii(o),this.aiTopicMap.set("".concat(null===(i=a)||void 0===i?void 0:i.id),c),K(M(Ti,{aiChat:c,aiTopic:this.aiTopic,mode:t.mode?t.mode:"DEFAULT",containerOptions:t.containerOptions,caption:t.mode&&"TOPIC"===t.mode?"AI助手":o.caption,enableBackFill:null===(r=t.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(e){o.fullscreen&&o.fullscreen(e,o.context,o.params)},minimize:function(e){o.minimize&&o.minimize(e,o.context,o.params)}}),this.container),e.abrupt("return",c);case 25:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"switchAiChatController",value:function(e){var t,n,i,r,o,a=this,c=u({},this.backupChatOptions.chatOptions);(e.aiChat&&Object.assign(c,{caption:e.aiChat.caption,context:e.aiChat.context,params:e.aiChat.params,contentToolbarItems:e.aiChat.contentToolbarItems,footerToolbarItems:e.aiChat.footerToolbarItems,questionToolbarItems:e.aiChat.questionToolbarItems,otherToolbarItems:e.aiChat.otherToolbarItems,appendCurData:e.aiChat.appendCurData,appendCurContent:e.aiChat.appendCurContent,appDataEntityId:e.aiChat.appDataEntityId,topicId:e.id,topic:e,extendToolbarClick:this.backupChatOptions.chatOptions.extendToolbarClick,recommendPrompt:this.backupChatOptions.chatOptions.recommendPrompt}),this.aiTopicMap.has("".concat(e.id))?t=this.aiTopicMap.get("".concat(e.id)):(t=new ii(c),this.aiTopicMap.set("".concat(e.id),t)),this.container)&&(K(null,this.container),K(M(Ti,{aiChat:t,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(e){c.fullscreen&&c.fullscreen(e,c.context,c.params)},minimize:function(e){c.minimize&&c.minimize(e,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)}}]),e}(),ui=(t("chat",new li),new ee("chat-input-material")),di=function(e){var t=e.controller.materials;return _t("div",{className:ui.b(),children:t.value.map((function(t){return _t(rn,{material:t,disabled:!1,controller:e.controller},t.id)}))})},hi=function(e){var t=e.children,n=e.actions,i=e.content,r=e.position,o=void 0===r?"bottom":r,c=e.isOpen,s=e.onToggleOpen,l=e.onAction,d=new ee("pop"),h=Ie(Ci),p=a(Se(c||!1),2),f=p[0],v=p[1],m=Me(null),_=Me(null);Ae((function(){void 0!==c&&v(c)}),[c]),Ae((function(){return _.current||(_.current=document.createElement("div"),_.current.className=d.b("content-container"),document.body.appendChild(_.current)),function(){_.current&&document.body.removeChild(_.current)}}),[]),Ae((function(){var e=function(e){!m.current||m.current.contains(e.target)||e.target.closest(".".concat(d.b()))||e.target.closest(".ibiz-quick-edit")||e.target.closest(".ibiz-picker__transfer")||(v(!1),null==s||s(!1))};return f&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[f,s]);return _t("span",{className:"".concat(d.b("trigger-container")),children:[_t("span",{className:"".concat(d.b("trigger-element")),ref:m,onClick:function(e){e.stopPropagation();var t=!f;v(t),null==s||s(t)},children:t}),f&&_.current&&Pn(_t("div",{className:"".concat(d.b()," pop-").concat(o),style:function(){if(!m.current)return{};var e=m.current.getBoundingClientRect(),t={position:"absolute",zIndex:h.zIndex+1},n={bottom:{top:e.bottom+window.scrollY,left:e.left+window.scrollX},top:{bottom:window.innerHeight-e.top+window.scrollY,left:e.left+window.scrollX},left:{top:e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX},right:{top:e.top+window.scrollY,left:e.right+window.scrollX},"top-left":{bottom:window.innerHeight-e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX}};return u(u({},t),n[o])}(),children:i||(null==n?void 0:n.map((function(e){return _t("div",{title:e.caption,className:d.e("item"),onMouseDown:function(t){t.stopPropagation(),null==l||l(e.id,t)},children:[e.icon,_t("div",{className:d.em("item","caption"),children:e.caption})]},e.id)})))}),_.current)]})},pi=new ee("chat-input"),fi=window.SpeechRecognition||window.webkitSpeechRecognition,vi=function(e){var t,n=a(Se(!1),2),i=n[0],r=n[1],o=Me(null),c=e.controller.input,s=ft(!1),l=Me();fi&&!l.current&&(l.current=new fi,l.current.onstart=function(){s.value=!0},l.current.onend=function(){s.value=!1},l.current.onresult=function(e){var t,n=null===(t=e.results)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t[0])||void 0===t?void 0:t.transcript;n&&(c.value="".concat(c.value).concat(n))});var u=Le((function(e){c.value=e.target.value}),[c]),h=vt((function(){return c.value.length<=0}));Ae((function(){return o.current&&ti(o.current),function(){o.current&&ti.destroy(o.current)}}),[o]);var f=Le(p(d().mark((function t(){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=c.value,c.value="",t.next=5,e.controller.question(n);case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])}))),[c]),v=Le(p(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{e.controller.abortQuestion()}catch(n){console.error(n)}case 1:case"end":return t.stop()}}),t)}))),[c]),m=function(){var t=p(d().mark((function t(n){var i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=si.getMaterialHelper("ossfile",e.controller),t.next=3,i.excuteAction(n);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_=function(){var t=p(d().mark((function t(n,i){var o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=si.getMaterialHelper("common",e.controller),t.next=3,o.excuteAction(n,i);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}();return _t("div",{className:pi.b("wrapper"),children:[_t("div",{className:pi.b("material-wrapper"),children:_t(di,{controller:e.controller})}),_t("div",{className:pi.b("main-wrapper"),children:[_t("textarea",{className:pi.e("textarea"),type:"text",rows:6,autoCorrect:"off",autoCapitalize:"off",autoComplete:"off",value:c,onInput:u,onKeyDown:function(e){"Enter"!==e.code||e.isComposing||(e.stopPropagation(),!1===e.shiftKey&&f())},ref:o,disabled:e.controller.isLoading.value}),_t("div",{className:pi.b("action-wrapper"),children:[_t("div",{className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",e.controller.isLoading.value)),title:"上传资料",children:_t(hi,{content:_t("div",{className:pi.b("pop-actions"),children:[_t("div",{className:pi.b("pop-action-item"),onClick:function(e){m(e)},children:[_t("span",{className:pi.b("pop-action-item-icon"),children:_t(Ht,{})}),_t("span",{className:pi.b("pop-action-item-title"),children:"文件资料"})]}),null===(t=e.questionToolbarItems)||void 0===t?void 0:t.map((function(e){var t,n,i;return _t("div",{className:pi.b("pop-action-item"),onClick:function(t){_(t,e)},children:[_t("span",{className:pi.b("pop-action-item-icon"),children:"function"==typeof e.icon?e.icon():(null===(t=e.icon)||void 0===t?void 0:t.showIcon)&&_t(L,{children:null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):null})}),_t("span",{className:pi.b("pop-action-item-title"),children:e.label})]},e.id)}))]}),position:"top-left",isOpen:i,onToggleOpen:r,children:_t(Bt,{})})}),_t("div",{title:s.value?"语音输入中...":"语音输入",className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",e.controller.isLoading.value)),onClick:function(){l.current&&!s.value&&l.current.start()},children:s.value?_t(Mt,{}):_t(At,{})}),e.controller.isLoading.value?_t("div",{title:"停止生成",className:"".concat(pi.be("action-wrapper","action-item")),onClick:v,children:_t(Rt,{})}):_t("div",{title:"发送消息",className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",h.value)),onClick:f,children:_t(wt,{})})]})]})]})},mi=new ee("chat-topic-item"),_i=function(e){var t=e.controller,n=e.topic,i=e.onClick,r=e.onAction,o=Me(null),c=vt((function(){var e;return(null===(e=t.activedTopic.value)||void 0===e?void 0:e.id)===n.id})),s=a(Se(!1),2),l=s[0],u=s[1],d=ft(!1);return _t("div",{className:"".concat(mi.b()," ").concat(mi.is("active",c.value)," ").concat(mi.is("edit",d.value)),onClick:i.bind(void 0),children:[_t("div",{className:mi.e("caption"),title:n.caption,children:d.value?_t("input",{ref:o,value:n.caption,onBlur:function(e){e.stopPropagation(),d.value=!1,r("RENAME",e)},onKeyDown:function(e){e.stopPropagation(),"Enter"===e.key&&(d.value=!1)},onClick:function(e){return e.stopPropagation()},onChange:function(e){return(t=e).stopPropagation(),void(n.data.caption=null===(i=t.target)||void 0===i?void 0:i.value);var t,i},className:mi.em("caption","editor")}):_t("span",{className:mi.em("caption","text"),children:n.caption})}),!d.value&&_t("div",{className:mi.e("icon"),children:[_t("span",{title:"跳转主视图",className:mi.em("icon","item"),onClick:function(e){e.stopPropagation(),r("LINK",e)}.bind(void 0),children:_t(Lt,{className:mi.b("link-icon")})}),c.value?null:_t(hi,{actions:[{id:"RENAME",caption:"重命名",icon:_t(qt,{})},{id:"DELETE",caption:"删除话题",icon:_t(It,{})}],position:"bottom",isOpen:l,onToggleOpen:u,onAction:function(e,t){"DELETE"===e?r("DELETE",t):"RENAME"===e&&(d.value=!0,setTimeout((function(){var e;null===(e=o.current)||void 0===e||e.focus()}),100)),u(!1)}.bind(void 0),children:_t("span",{className:mi.em("icon","item"),title:"更多",children:_t(Ot,{className:mi.e("more-icon")})})})]})]})},gi=new ee("chat-search"),yi=function(e){var t=e.className,n=e.value,i=e.placeholder,r=e.onChange,o=a(Se(!1),2),c=o[0],s=o[1],l=function(e){var t;e.stopPropagation(),null==r||r(null===(t=e.target)||void 0===t?void 0:t.value)};return _t("div",{className:"".concat(gi.b()," ").concat(gi.is("focus",c)," ").concat(t||""),children:[_t("div",{className:gi.e("prefix"),children:_t($t,{})}),_t("input",{value:n,className:gi.e("inner"),placeholder:i,onFocus:function(){return s(!0)},onBlur:function(){return s(!1)},onChange:function(e){return l(e)}})]})},wi=new ee("chat-topics"),bi=function(e){var t=Me(null),n=ft(void 0),i=ft([]);Ae((function(){i.value=e.controller.topics.value.filter((function(e){var t,i;return null===(t=e.caption)||void 0===t?void 0:t.toLowerCase().includes((null===(i=n.value)||void 0===i?void 0:i.trim().toLowerCase())||"")}))}),[e.controller.topics.value]);return Ae((function(){var e=t.current;if(e){var n=e.querySelector(".ibiz-chat-topic-item.is-active");null==n||n.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[e.controller.activedTopic.value]),_t("div",{className:wi.b(),children:[_t("div",{className:wi.e("header"),children:_t(yi,{value:n.value,placeholder:"搜索话题",onChange:function(t){n.value=t,i.value=e.controller.topics.value.filter((function(e){var t,i;return null===(t=e.caption)||void 0===t?void 0:t.toLowerCase().includes((null===(i=n.value)||void 0===i?void 0:i.trim().toLowerCase())||"")}))}.bind(void 0)})}),_t("div",{ref:t,className:wi.e("main"),children:i.value&&i.value.length>0?i.value.map((function(t){return _t(_i,{topic:t,controller:e.controller,onClick:function(){return function(t){e.controller.handleTopicChange(t)}(t)},onAction:function(n,i){return function(t,n,i){e.controller.handleTopicAction(t,n,i)}(n,t,i)}},t.id)})):_t("div",{className:wi.e("empty"),children:"暂无话题"})}),_t("div",{className:wi.e("footer"),children:_t("div",{title:"清空会话",className:wi.e("action"),onClick:function(){return e.controller.clearTopic()},children:[_t(It,{}),_t("span",{children:"清空会话"})]})})]})},xi=new ee("chat-minimize"),ki=function(e){var t=Me(null),n=a(Se(""),2),i=n[0],r=n[1],o=a(Se(0),2),c=o[0],s=o[1],l=Me(!1),u={x:(window.innerWidth-86)/window.innerWidth,y:(window.innerHeight-86)/window.innerHeight},d=vt((function(){var t=e.controller.messages.value[e.controller.messages.value.length-1];return!!t&&("ASSISTANT"===t.role&&20===t.state&&!0!==t.completed)})),h=vt((function(){var t="";if(!d.value)return r(""),s(0),t;var n=e.controller.messages.value[e.controller.messages.value.length-1];if(t=n.content,-1!==n.content.indexOf("")){var i=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="";return-1===n?(i=e.slice(t+7),r=""):(i=e.slice(t+7,n),r=e.slice(n+8)),{thoughtContent:i,answerContent:r}}(n.content);t=i.thoughtContent+i.answerContent}return t})),p=function(){Object.assign(t.current.style,{left:"".concat(100*u.x,"%"),top:"".concat(100*u.y,"%")}),localStorage.setItem(ni.MINIMIZE_STYLY_CHCHE,JSON.stringify(u))};return Ae((function(){var e,n=localStorage.getItem(ni.MINIMIZE_STYLY_CHCHE);if(n){var i=JSON.parse(n);pe(i)&&Object.assign(u,i)}p(),(e=t.current)&&(e.onmousedown=function(t){document.body.style.userSelect="none";var n=t.clientX-e.offsetLeft,i=t.clientY-e.offsetTop,r=Date.now(),o=function(e){var t=56/window.innerWidth,r=56/window.innerHeight,o=fe(e.clientX-n,e.clientY-i,t,r),a=o.x,c=o.y;Object.assign(u,{x:a,y:c}),requestAnimationFrame((function(){p()}))};document.addEventListener("mousemove",o),document.addEventListener("mouseup",(function e(){var t=Date.now();l.current=t-r>300,document.body.style.userSelect="",document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",e)}))})}),[]),Ae((function(){if(c1-e?this.calcSideModeStyle(i1-t&&(this.data.window.y=1-a)),this.setStyle()}},{key:"registerDragDialog",value:function(){var e=this;this.dragHandle.current.onmousedown=function(t){if(!e.state.isFullScreen){document.body.style.userSelect="none";var n=t.clientX-e.containerRef.current.offsetLeft,i=t.clientY-e.containerRef.current.offsetTop,r=function(t){if(!e.disabled){e.data.showMode="window";var r=fe(t.clientX-n,t.clientY-i,e.data.window.width,e.data.window.height),o=r.x,a=r.y;Object.assign(e.data.window,{x:o,y:a}),e.setStyle()}};document.addEventListener("mousemove",r),document.addEventListener("mouseup",(function t(){document.body.style.userSelect="",document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t),e.disabled||e.snapToEdge()}))}}}},{key:"registerDragDialogBorder",value:function(){var e=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(t){if(!e.state.isFullScreen){var n="side"===e.data.showMode?e.data.side:e.data.window;n.x=t.rect.left/window.innerWidth,n.y=t.rect.top/window.innerHeight,n.width=t.rect.width/window.innerWidth,n.height=t.rect.height/window.innerHeight,e.setStyle()}},start:function(){e.disabled=!0,document.body.style.userSelect="none"},end:function(){e.disabled=!1,document.body.style.userSelect=""}}})}},{key:"handleFullScreenChange",value:function(){this.setState({isFullScreen:null!==document.fullscreenElement})}},{key:"componentDidMount",value:function(){this.handleFullScreenChange=this.handleFullScreenChange.bind(this);var e=localStorage.getItem(ni.STYLE_CACHE);if(e){var t=JSON.parse(e);t.side&&pe(t.side)&&t.window&&pe(t.window)&&Object.assign(this.data,t)}this.setStyle(),this.registerDragDialog(),this.registerDragDialogBorder(),document.addEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"close",value:function(){this.props.close()}},{key:"fullScreen",value:function(){var e=this.containerRef.current;e&&(e.requestFullscreen(),this.props.fullscreen(!0))}},{key:"closeFullScreen",value:function(){var e;this.state.isFullScreen&&(null===(e=document)||void 0===e||e.exitFullscreen(),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.setState({isMinimize:!1}),this.props.minimize(!1)}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"render",value:function(){return _t(Ci.Provider,{value:this.containerContext,children:_t("div",{className:"".concat(this.ns.b()),children:[_t("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:[_t("div",{ref:this.dragHandle,className:this.ns.b("header"),children:[_t("div",{className:this.ns.b("header-caption"),children:this.props.caption||"AI助手"}),_t("div",{className:this.ns.b("header-action-wrapper"),children:[_t("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:_t(Nt,{})}),this.state.isFullScreen?_t("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:_t(Tt,{})}):_t("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:_t(Ct,{})}),_t("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:_t(gt,{})})]})]}),"TOPIC"===this.props.mode?_t("div",{className:"".concat(this.ns.b("main")),children:[_t("div",{className:"".concat(this.ns.be("main","left")),children:_t(bi,{controller:this.props.aiTopic})}),_t("div",{className:"".concat(this.ns.be("main","right")),children:[_t("div",{className:this.ns.b("content"),children:_t(xn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(yn,{type:"footer",mode:this.props.mode,data:this.props.aiTopic.activedTopic.value,className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(vi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}):_t("div",{className:"".concat(this.ns.be("main","default")),children:[_t("div",{className:this.ns.b("content"),children:_t(xn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(yn,{type:"footer",mode:this.props.mode,data:this.props.aiTopic.activedTopic.value,className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(vi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}),_t(ki,{title:this.props.caption||"AI助手",controller:this.props.aiChat,isMinimize:this.state.isMinimize,onClick:this.exitMinimize.bind(this)})]})})}}]),o}(I);t("ChatContainer",Ti)}}}))}(); diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.24/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.24/polyfills.legacy.js new file mode 100644 index 0000000000000000000000000000000000000000..c8c7654431885af1a2dc12a9fe73b198407bf314 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.24/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+""},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+""},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="\t\n\v\f\r                 \u2028\u2029\ufeff",JE=L,qE=Ao,KE=VE,YE=S("".replace),XE=RegExp("^["+KE+"]+"),QE=RegExp("(^|[^"+KE+"])["+KE+"]+$"),ZE=function(t){return function(r){var e=qE(JE(r));return 1&t&&(e=YE(e,XE,"")),2&t&&(e=YE(e,QE,"$1")),e}},tx={start:ZE(1),end:ZE(2),trim:ZE(3)},rx=te.PROPER,ex=o,nx=VE,ox=tx.trim;ro({target:"String",proto:!0,forced:function(t){return ex((function(){return!!nx[t]()||"​…᠎"!=="​…᠎"[t]()||rx&&nx[t].name!==t}))}("trim")},{trim:function(){return ox(this)}});var ix=Dt,ux=hn,ax=co,cx=mo,fx=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=ix(this),e=ux(r),n=arguments.length;if(n){fx(e+n);for(var o=e;o--;){var i=o+n;o in r?r[i]=r[o]:cx(r,i)}for(var u=0;uo;)for(var a,c=mx(arguments[o++]),f=i?Sx(px(c),i(c)):px(c),s=f.length,l=0;s>l;)a=f[l++],sx&&!hx(u,c,a)||(e[a]=c[a]);return e}:bx,xx=Ex;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==xx},{assign:xx});var Ox={exports:{}},jx=o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Ix=o,Tx=B,Rx=j,Px=jx,Ax=Object.isExtensible,kx=Ix((function(){Ax(1)}))||Px?function(t){return!!Tx(t)&&((!Px||"ArrayBuffer"!==Rx(t))&&(!Ax||Ax(t)))}:Ax,Cx=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),Nx=ro,Lx=S,Fx=pe,Mx=B,_x=Gt,Dx=Rr.f,Ux=Qe,$x=mw,Gx=kx,zx=Cx,Wx=!1,Bx=Vt("meta"),Hx=0,Vx=function(t){Dx(t,Bx,{value:{objectID:"O"+Hx++,weakData:{}}})},Jx=Ox.exports={enable:function(){Jx.enable=function(){},Wx=!0;var t=Ux.f,r=Lx([].splice),e={};e[Bx]=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!!c(this,t)}}),hO(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)}}),wO&&lO(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=xO(r),i=xO(n);yO(t,r,(function(t,r){EO(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)?mO("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,mO(void 0,!0))}),e?"entries":"values",!e,!0),bO(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=Yx[t],a=u&&u.prototype,c=u,f={},s=function(t){var r=Xx(a[t]);Zx(a,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!iO(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(Qx(t,!nO(u)||!(o||a.forEach&&!uO((function(){(new u).entries().next()})))))c=e.getConstructor(r,t,n,i),tO.enable();else if(Qx(t,!0)){var l=new c,h=l[i](o?{}:-0,1)!==l,v=uO((function(){l.has(1)})),p=aO((function(t){new u(t)})),d=!o&&uO((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((c=r((function(t,r){eO(t,a);var e=fO(new u,t,c);return oO(r)||rO(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,Kx({global:!0,constructor:!0,forced:c!==u},f),cO(c,t),o||e.setStrong(c,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),OO);var jO,IO=ro,TO=Fu,RO=n.f,PO=sn,AO=Ao,kO=_E,CO=L,NO=UE,LO=TO("".startsWith),FO=TO("".slice),MO=Math.min,_O=NO("startsWith");IO({target:"String",proto:!0,forced:!!(_O||(jO=RO(String.prototype,"startsWith"),!jO||jO.writable))&&!_O},{startsWith:function(t){var r=AO(CO(this));kO(t);var e=PO(MO(arguments.length>1?arguments[1]:void 0,r.length)),n=AO(t);return LO?LO(r,n,e):FO(r,e,e+n.length)===n}});var DO=ro,UO=Ms.findIndex,$O=sm,GO="findIndex",zO=!0;GO in[]&&Array(1)[GO]((function(){zO=!1})),DO({target:"Array",proto:!0,forced:zO},{findIndex:function(t){return UO(this,t,arguments.length>1?arguments[1]:void 0)}}),$O(GO);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=tx.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;o \ No newline at end of file diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.25/index.min.css b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.25/index.min.css new file mode 100644 index 0000000000000000000000000000000000000000..aa670638d3eee436f6d5f633b1c39c776b18980c --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.25/index.min.css @@ -0,0 +1 @@ +@charset "UTF-8";.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-chat-suggestions{--ibiz-chat-suggestions-bg: var(--ibiz-ai-chat-background-color);--ibiz-chat-suggestions-hover-bg-color: var(--ibiz-ai-chat-hover-background-color);--ibiz-chat-suggestions-border: var(--ibiz-ai-chat-border-color);display:flex;flex-direction:column;gap:var(--ibiz-spacing-base-tight);width:100%}.ibiz-chat-suggestions__item{display:flex;align-items:center;align-self:flex-start;justify-content:space-between;min-width:200px;height:32px;padding:0 12px;overflow:hidden;line-height:32px;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background-color:var(--ibiz-chat-suggestions-bg);border:1px solid var(--ibiz-chat-suggestions-border);border-radius:12px;transition:.3s background-color}.ibiz-chat-suggestions__item:hover{background-color:var(--ibiz-chat-suggestions-hover-bg-color)}.ibiz-chat-suggestions__item.is-action{color:var(--ibiz-ai-chat-color-2);background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-suggestions__item.is-action:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-suggestions__item .ibiz-chat-suggestions__item-icon{margin-left:12px;font-size:18px}.ibiz-markdown-message{padding:6px 10px}.ibiz-markdown-message .cherry{border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-markdown-message .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-markdown-message .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-markdown-message .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-markdown-message .cherry div[data-type=codeBlock] pre[class*=language-]::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.2)}.ibiz-markdown-message .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-markdown-message .cherry-previewer{padding:8px;border:0}.ibiz-markdown-message .cherry-previewer figure{max-width:1200px}.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)}.ibiz-markdown-message-content .cherry div.cherry-previewer{color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color-light)}.ibiz-markdown-message-footer{padding:10px 0}@keyframes circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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-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%;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:10px 16px;margin:0;font-size:14px;line-height:1.5;color:var(--color-fg-default);word-wrap:break-word;background:#e7f8ff;background-color:var(--ibiz-ai-chat-background-color-light);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--material{display:flex;flex-flow:row-reverse wrap;gap:8px;align-items:center;margin-bottom:8px}.ibiz-user-message-question__content .cherry{min-height:0;border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-user-message-question__content .cherry-markdown p{margin:0}.ibiz-user-message-question__content .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-user-message-question__content .cherry-previewer{padding:0;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color-light);border:0}.ibiz-user-message-question__content .cherry-previewer figure{max-width:1200px}.ibiz-user-message-question__content .cherry-previewer figure>svg{width:100%;min-height:100px}.ibiz-user-message-question__content .anchor{display:none!important}.ibiz-user-message-question__user-header{display:flex;align-items:center;justify-content:end;width:100%;height:32px;margin-bottom:8px}.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:10px 16px;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{display:flex;padding:6px 10px;justify-content:end}.ibiz-unknown-message__content{padding:10px 16px;color:#000;width:max-content;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-item{position:relative;display:flex;align-items:center;white-space:nowrap;cursor:pointer}.ibiz-chat-toolbar-item__content{display:flex;align-items:center;white-space:nowrap}.ibiz-chat-toolbar-item__content--icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:18px;height:18px;font-size:18px}.ibiz-chat-toolbar-item__content--label,.ibiz-chat-toolbar-item__more{display:flex;align-items:center}.ibiz-chat-toolbar-item__more--icon{font-size:18px}.ibiz-chat-toolbar-item-default{width:fit-content;font-size:14px;color:var(--ibiz-ai-chat-color-2)}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__content{z-index:9;gap:6px;padding:2px 14px;line-height:28px;background-color:var(--ibiz-ai-chat-background-color-2);border-radius:12px}.ibiz-chat-toolbar-item-default.is-disabled{cursor:not-allowed}.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__content,.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__more{background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__content:hover,.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__more:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-default.is-more .ibiz-chat-toolbar-item__content{padding:2px 8px 2px 14px;border-radius:12px 0 0 12px}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__more{z-index:9;height:32px;padding:2px 14px 2px 8px;background-color:var(--ibiz-ai-chat-background-color-2);border-left:1px solid var(--ibiz-ai-chat-border-color);border-radius:0 12px 12px 0}.ibiz-chat-toolbar-item-circle{max-width:32px;height:32px;padding:6px;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-item-circle.is-disabled{color:var(--ibiz-ai-chat-disabled-color);cursor:not-allowed}.ibiz-chat-toolbar-item-circle: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-item-circle .ibiz-chat-toolbar-item__content--label{width:calc(100% - 32px);margin-left:8px;font-size:14px}.ibiz-chat-toolbar-item-dropdown{position:absolute;right:0;bottom:36px;display:flex;flex-direction:column;gap:4px;max-width:150px;padding:4px;background-color:var(--ibiz-ai-chat-background-color-2);border-radius:6px}.ibiz-chat-toolbar-item-dropdown__item{display:flex;gap:6px;align-items:center;padding:0 8px;line-height:32px;cursor:pointer;border-radius:6px}.ibiz-chat-toolbar-item-dropdown__item.is-disabled{cursor:not-allowed;background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-dropdown__item:hover:not(.is-disabled){background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-dropdown__item--icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:18px;height:18px;font-size:18px}.ibiz-chat-toolbar-item-dropdown__item--label{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-toolbar{display:flex;flex-wrap:wrap;align-items:center}.ibiz-chat-toolbar .ibiz-chat-toolbar-item:not(:first-child){margin-left:6px}.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{width:calc(100% - 12px);height:calc(100% - 12px);margin:6px;overflow:hidden auto}.ibiz-chat-messages::-webkit-scrollbar{width:6px}.ibiz-chat-messages::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-wrapper{max-height:72px;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:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-input__textarea::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);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-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{gap:4px;padding:4px;display:flex;min-width:120px;border-radius:8px;flex-direction:column;background-color:var(--ibiz-color-bg-3);border:1px solid var(--ibiz-color-border)}.ibiz-pop__item{display:flex;padding:0 8px;cursor:pointer;line-height:32px;border-radius:6px;align-items:center}.ibiz-pop__item:hover{background-color:var(--ibiz-color-primary-hover)}.ibiz-pop__item--caption{min-width:0;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-pop__item svg{width:16px;height:16px;flex-shrink:0;margin-right:8px;fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-topic-item{height:38px;display:flex;padding:0 8px;cursor:pointer;border-radius:12px;position:relative;align-items:center;font-size:var(--ibiz-font-size-regular)}.ibiz-chat-topic-item:hover:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item:hover:not(.is-edit) .ibiz-chat-topic-item__icon{opacity:1}.ibiz-chat-topic-item.is-active:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item.is-edit{border:2px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-topic-item__caption{width:100%;height:100%;display:flex;align-items:center}.ibiz-chat-topic-item__caption--text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-topic-item__caption--editor{width:100%;height:100%;border:none;outline:none;color:var(--ibiz-ai-chat-color);background:var(--ibiz-ai-chat-background-color)}.ibiz-chat-topic-item__icon{top:50%;gap:8px;opacity:0;right:10px;height:24px;display:flex;outline:none;padding:0 8px;border-radius:8px;position:absolute;align-items:center;justify-content:flex-end;transform:translateY(-50%);color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item__icon--item{font-size:12px}.ibiz-chat-search{gap:8px;width:100%;display:flex;line-height:32px;border-radius:1px;padding:1px 11px;align-items:center;justify-content:center;border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-search:hover,.ibiz-chat-search.is-focus{border:1px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-search__prefix{width:14px;height:14px;display:flex;flex-shrink:0;font-size:14px;align-items:center}.ibiz-chat-search__inner{padding:2px 0 0;outline:0;flex-grow:1;border:none;height:28px;min-width:0;color:inherit;line-height:28px;background-color:initial}.ibiz-chat-topics{display:flex;flex-direction:column;gap:8px;height:100%;padding:8px 0}.ibiz-chat-topics__header{flex-shrink:0;padding:0 8px}.ibiz-chat-topics__main{flex-grow:1;padding:0 8px;overflow-y:auto}.ibiz-chat-topics__empty{font-size:var(--ibiz-font-size-regular);text-align:center}.ibiz-chat-topics__footer{display:flex;flex-shrink:0;align-items:center;justify-content:center;padding:0 8px}.ibiz-chat-topics__action{display:flex;gap:4px;align-items:center;padding:4px 12px;font-size:14px;cursor:pointer;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:2px}.ibiz-chat-topics__action:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topics__action>svg{width:14px!important;height:14px!important}.ibiz-chat-minimize{width:56px;height:56px;display:flex;z-index:99999;cursor:pointer;position:absolute;border-radius:50%;align-items:center;justify-content:center}.ibiz-chat-minimize.is-hidden{display:none}.ibiz-chat-minimize.is-show-halo{width:90px;height:90px;background-size:cover;background-position:center;background-repeat:no-repeat;background-image:url(assets/gif/halo.gif)}.ibiz-chat-minimize__content{width:56px;height:56px;display:flex;border-radius:50%;align-items:center;justify-content:center;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color)}.ibiz-chat-minimize__content:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-minimize__content svg{fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-minimize__content.is-show-border{border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover{left:50%;bottom:90px;padding:8px;display:block;font-size:12px;border-radius:8px;position:absolute;transform:translate(-50%);box-shadow:0 2px 8px rgba(0,0,0,.1);background-color:var(--ibiz-ai-chat-background-color);color:var(--ibiz-ai-chat-color);border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover .typewriter{direction:rtl;overflow:hidden;max-width:200px;width:fit-content;white-space:nowrap;text-overflow:ellipsis;animation:typing 3s steps(40,end)}@keyframes blink{0%,to{opacity:0}50%{opacity:1}}@keyframes typing{0%{width:0}to{width:100%}}@keyframes blink-caret{0%,to{border-color:transparent}50%{border-color:var(--ibiz-ai-chat-color)}}.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-ai-chat-scroll-bar-width: 8px;--ibiz-ai-chat-scroll-bar-height: 8px;--ibiz-ai-chat-scroll-bar-radius: 4px}.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__toolbar{margin:0;left:20px;gap:8px 4px;bottom:118px;min-height:48px;position:absolute;justify-content:center;width:calc(100% - 40px)}.ibiz-chat-container__toolbar.is-has-materials{bottom:180px}.ibiz-chat-container *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-container *::-webkit-scrollbar-thumb{border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.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-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.25/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.25/index.system.min.js new file mode 100644 index 0000000000000000000000000000000000000000..912260c319747e83e79c844f72a483809a786c41 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.25/index.system.min.js @@ -0,0 +1 @@ +!function(){function e(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)}function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,n)}function n(e){var t=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(e){return!1}}();return function(){var n,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}(this,n)}}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||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(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(e,t)||c(e,t)||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(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);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;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:I(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function h(e,t,n,i,r,o,a){try{var c=e[o](a),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(i,r)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){h(o,i,r,a,c,"next",e)}function c(e){h(o,i,r,a,c,"throw",e)}a(void 0)}))}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===c[a]&&(c[a]=e.defaultProps[a]);return O(e,c,i,o,null)}function O(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++h:r};return null==r&&null!=l.vnode&&l.vnode(o),o}function L(e){return e.children}function I(e,t){this.props=e,this.context=t}function D(e,t){if(null==t)return e.__?D(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&y.sort(x));B.__r=0}function H(e,t,n,i,r,o,a,c,s,l,u){var d,h,p,f,v,m,_,g,y,w=0,b=i&&i.__k||T,x=b.length,k=x,N=t.length;for(n.__k=[],d=0;d0?O(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)?(f.__=n,f.__b=n.__b+1,-1===(g=V(f,b,_=d+w,k))?p=C:(p=b[g]||C,b[g]=void 0,k--),$(e,f,p,r,o,a,c,s,l,u),v=f.__e,(h=f.ref)&&p.ref!=h&&(p.ref&&Z(p.ref,null,f),u.push(h,f.__c||v,f)),null!=v&&(null==m&&(m=v),(y=p===C||null===p.__v)?-1==g&&w--:g!==_&&(g===_+1?w++:g>_?k>N-_?w+=g-_:w--:w=g<_&&g==_-1?g-_:0),_=d+w,"function"!=typeof f.type||g===_&&p.__k!==f.__k?"function"==typeof f.type||g===_&&!y?void 0!==f.__d?(s=f.__d,f.__d=void 0):s=v.nextSibling:s=R(e,v,s):s=j(f,s,e),"function"==typeof n.type&&(n.__d=s))):(p=b[d])&&null==p.key&&p.__e&&(p.__e==s&&(p.__=i,s=D(p)),G(p,p,!1),b[d]=null);for(n.__e=m,d=x;d--;)null!=b[d]&&("function"==typeof n.type&&null!=b[d].__e&&b[d].__e==n.__d&&(n.__d=b[d].__e.nextSibling),G(b[d],b[d]))}function j(e,t,n){for(var i,r=e.__k,o=0;r&&o(null!=s?1:0))for(;a>=0||c=0){if((s=t[a])&&r==s.key&&o===s.type)return a;a--}if(c0&&void 0!==arguments[0]?arguments[0]:"";return Q(this.namespace,this.block,e,"","")}},{key:"e",value:function(e){return e?Q(this.namespace,this.block,"",e,""):""}},{key:"m",value:function(e){return e?Q(this.namespace,this.block,"","",e):""}},{key:"be",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,t,""):""}},{key:"em",value:function(e,t){return e&&t?Q(this.namespace,this.block,"",e,t):""}},{key:"bm",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,"",t):""}},{key:"bem",value:function(e,t,n){return e&&t&&n?Q(this.namespace,this.block,e,t,n):""}},{key:"is",value:function(e,t){return e&&t?"".concat("is-").concat(e):""}},{key:"cssVar",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarName(n)]=e[n]);return t}},{key:"cssVarBlock",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarBlockName(n)]=e[n]);return t}},{key:"cssVarName",value:function(e){return"--".concat(this.namespace,"-").concat(e)}},{key:"cssVarBlockName",value:function(e){return"--".concat(this.namespace,"-").concat(this.block,"-").concat(e)}}]),e}();function te(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ne(e,t){for(var n,i="",r=0,o=-1,a=0,c=0;c<=e.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}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(o+1,c):i=e.slice(o+1,c),r=c-o-1;o=c,a=0}else 46===n&&-1!==a?++a:a=-1}return i}var ie={resolve:function(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var r;i>=0?r=arguments[i]:(void 0===e&&(e=process.cwd()),r=e),te(r),0!==r.length&&(t=r+"/"+t,n=47===r.charCodeAt(0))}return t=ne(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(te(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=ne(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return te(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":ie.normalize(e)},relative:function(e,t){if(te(e),te(t),e===t)return"";if((e=ie.resolve(e))===(t=ie.resolve(t)))return"";for(var n=1;nc){if(47===t.charCodeAt(o+l))return t.slice(o+l+1);if(0===l)return t.slice(o+l)}else r>c&&(47===e.charCodeAt(n+l)?s=l:0===l&&(s=0));break}var u=e.charCodeAt(n+l);if(u!==t.charCodeAt(o+l))break;47===u&&(s=l)}var d="";for(l=n+s+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(o+s):(o+=s,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(te(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,r=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');te(e);var n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,c=-1;for(n=e.length-1;n>=0;--n){var s=e.charCodeAt(n);if(47===s){if(!o){i=n+1;break}}else-1===c&&(o=!1,c=n+1),a>=0&&(s===t.charCodeAt(a)?-1==--a&&(r=n):(a=-1,r=c))}return i===r?r=c:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){te(e);for(var t=-1,n=0,i=-1,r=!0,o=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(r=!1,i=a+1),46===c?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=a+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==f(e))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+f(e));return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}("/",e)},parse:function(e){te(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0),r=47===i;r?(t.root="/",n=1):n=0;for(var o=-1,a=0,c=-1,s=!0,l=e.length-1,u=0;l>=n;--l)if(47!==(i=e.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&&(t.base=t.name=0===a&&r?e.slice(1,c):e.slice(a,c)):(0===a&&r?(t.name=e.slice(1,o),t.base=e.slice(1,c)):(t.name=e.slice(a,o),t.base=e.slice(a,c)),t.ext=e.slice(o,c)),a>0?t.dir=e.slice(0,a-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};function re(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function oe(){return"".concat(re()+re(),"-").concat(re(),"-").concat(re(),"-").concat(re(),"-").concat(re()).concat(re()).concat(re())}ie.posix=ie;var ae=/]*>[\s\S]*?<\/svg>/;function ce(e){return ae.test(e)}var se=function(){function e(){v(this,e)}return _(e,null,[{key:"copy",value:function(e){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=e,this.inputElement.select(),document.execCommand("copy")}}]),e}();g(se,"inputElement",null);var le=function(){function e(){v(this,e)}var t,n,i,r,o,a,c,s,l,u;return _(e,null,[{key:"checkDataBaseExists",value:(u=p(d().mark((function e(t){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,indexedDB.databases();case 3:return n=e.sent,e.abrupt("return",n.some((function(e){return e.name===t})));case 7:return e.prev=7,e.t0=e.catch(0),console.error("检查数据库是否存在时出错:",e.t0),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])}))),function(e){return u.apply(this,arguments)})},{key:"deleteDatabase",value:(l=p(d().mark((function t(n){var i,r;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.lastLink&&(null===(i=(r=e.lastLink).close)||void 0===i||i.call(r)),t.abrupt("return",new Promise((function(e,t){var i=indexedDB.deleteDatabase(n);i.onsuccess=function(){e(!0)},i.onerror=function(){e(!1)},i.onblocked=function(){console.warn("删除数据库 ".concat(n," 被阻塞,可能有其他连接正在使用该数据库。")),t(new Error("删除数据库 ".concat(n," 被阻塞")))}})));case 2:case"end":return t.stop()}}),t)}))),function(e){return l.apply(this,arguments)})},{key:"checkTableExists",value:(s=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.checkDataBaseExists(n);case 2:if(t.sent){t.next=5;break}return t.abrupt("return",!1);case 5:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onupgradeneeded=function(t){e.db=t.target.result,e.version=e.db.version},o.onsuccess=function(n){e.db=n.target.result,e.lastLink=o.result;var r=e.db.objectStoreNames.contains(i);o.result.close(),t(r)},o.onerror=function(e){r(e.target.error)}})));case 6:case"end":return t.stop()}}),t)}))),function(e,t){return s.apply(this,arguments)})},{key:"createTable",value:(c=p(d().mark((function t(n,i,r){var o,a=arguments;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=a.length>3&&void 0!==a[3]&&a[3],t.abrupt("return",new Promise((function(t){var a,c;e.version+=1,e.lastLink&&(null===(a=(c=e.lastLink).close)||void 0===a||a.call(c));var s=indexedDB.open(n,e.version);s.onupgradeneeded=function(t){if(e.db=t.target.result,!e.db.objectStoreNames.contains(i)){var n={};r?n.keyPath=r:o&&(n.autoIncrement=!0),e.db.createObjectStore(i,n)}},s.onsuccess=function(){e.lastLink=s.result,s.result.close(),t(!0)},s.onerror=function(){t(!1)}})));case 2:case"end":return t.stop()}}),t)}))),function(e,t,n){return c.apply(this,arguments)})},{key:"deleteTable",value:(a=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){var r,o;e.version+=1,e.lastLink&&(null===(r=(o=e.lastLink).close)||void 0===r||r.call(o));var a=indexedDB.open(n,e.version);a.onupgradeneeded=function(t){e.db=t.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)&&e.db.deleteObjectStore(i)},a.onsuccess=function(n){e.db=n.target.result,e.lastLink=a.result,a.result.close(),t(!0)},a.onerror=function(){a.result.close(),t(!1)}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t){return a.apply(this,arguments)})},{key:"addData",value:(o=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).add(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(null)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return o.apply(this,arguments)})},{key:"deleteData",value:(r=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).delete(r);o.onsuccess=function(e){t(!0)},o.onerror=function(){t(!1)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"updateData",value:(i=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).put(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(r)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"getData",value:(n=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var c=e.db.transaction([i],"readonly").objectStore(i).get(r);c.onsuccess=function(e){t(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 t.stop()}}),t)}))),function(e,t,i){return n.apply(this,arguments)})},{key:"getAllData",value:(t=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=o.result,e.db.objectStoreNames.contains(i)){var r=e.db.transaction([i],"readonly").objectStore(i).getAll();r.onsuccess=function(e){t(r.result)},r.onerror=function(){t([])}}o.result.close()},o.onerror=function(){o.result.close(),r()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}]),e}();g(le,"version",1),g(le,"db",null),g(le,"lastLink",void 0);var ue=function(){function e(t){v(this,e),g(this,"options",void 0),this.options=u({multiple:!0,accept:"*/*",maxSize:5242880},t)}var t,n;return _(e,[{key:"openFilePicker",value:function(){var e=this,t=document.createElement("input");t.type="file",t.multiple=this.options.multiple,t.accept=this.options.accept||"",t.onchange=function(t){var n=Array.from(t.target.files||[]);e.handleFiles(n)},t.click()}},{key:"handleFiles",value:(n=p(d().mark((function e(t){var n,i,r,o=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.length){e.next=2;break}return e.abrupt("return");case 2:return r=t.filter((function(e){var t,n;return!(o.options.maxSize&&e.size>o.options.maxSize&&(null===(t=(n=o.options).onError)||void 0===t||t.call(n,new Error("文件大小超过限制 (".concat(o.formatSize(e.size)," > ").concat(o.formatSize(o.options.maxSize),")")),e),1))})),null===(n=(i=this.options).onSelect)||void 0===n||n.call(i,r),e.next=6,Promise.all(r.map((function(e){return o.processFile(e)})));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"processFile",value:(t=p(d().mark((function e(t){var n,i,r,o,a,c,s,l,u=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a=function(e){var n,i;null===(n=(i=u.options).onProgress)||void 0===n||n.call(i,t,e)},e.next=4,this.options.onUpload(t,a);case 4:c=e.sent,null===(n=(i=this.options).onProgress)||void 0===n||n.call(i,t,100),null===(r=(o=this.options).onSuccess)||void 0===r||r.call(o,c,t),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),null===(s=(l=this.options).onError)||void 0===s||s.call(l,e.t0 instanceof Error?e.t0:new Error("上传失败"),t);case 12:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e){return t.apply(this,arguments)})},{key:"formatSize",value:function(e){if(0===e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat((e/Math.pow(1024,t)).toFixed(2)," ").concat(["B","KB","MB","GB"][t])}}]),e}(),de=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("resource")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r),c=o?JSON.parse(o):{},s=a?JSON.parse(a):{};return{id:c.id,type:n,data:c,metadata:s}}catch(Jn){throw new Error("XML 解析错误: ".concat(Jn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/resources>/i.exec(e);if(!t)return{resources:[],remainingText:e,hasResources:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.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(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("resources");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("resource");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}(),he=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("suggestion")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r);return{type:n,data:o?JSON.parse(o):{},metadata:a?JSON.parse(a):{}}}catch(Jn){throw new Error("XML 解析错误: ".concat(Jn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/suggestions>/i.exec(e);if(!t)return{suggestions:[],remainingText:e,hasSuggestions:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.slice(r)).replace(/\n/g,"");try{return{suggestions:this.parse(n),remainingText:o,hasSuggestions:!0}}catch(c){return{suggestions:[],remainingText:o,hasSuggestions:!0,error:"资源解析失败: ".concat(c.message)}}}},{key:"stringify",value:function(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("suggestions");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("suggestion");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}();function pe(e){return e.x>=0&&e.x<=1&&e.y>=0&&e.y<=1}function fe(e,t,n,i){var r=e/window.innerWidth,o=t/window.innerHeight;return{x:Math.max(0,Math.min(r,1-n)),y:Math.max(0,Math.min(o,1-i))}}var ve,me,_e,ge,ye=0,we=[],be=[],xe=l.__b,ke=l.__r,Ce=l.diffed,Te=l.__c,Ne=l.unmount;function Ee(e,t){l.__h&&l.__h(me,e,ye||t),ye=0;var n=me.__H||(me.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:be}),n.__[e]}function Se(e){return ye=1,function(e,t,n){var i=Ee(ve++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):Fe(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=me,!me.u)){var r=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var a=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&i.__c.props===e)&&(!o||o.call(this,e,t,n))};me.u=!0;var o=me.shouldComponentUpdate,a=me.componentWillUpdate;me.componentWillUpdate=function(e,t,n){if(this.__e){var i=o;o=void 0,r(e,t,n),o=i}a&&a.call(this,e,t,n)},me.shouldComponentUpdate=r}return i.__N||i.__}(Fe,e)}function Ae(e,t){var n=Ee(ve++,3);!l.__s&&je(n.__H,t)&&(n.__=e,n.i=t,me.__H.__h.push(n))}function Me(e){return ye=5,Oe((function(){return{current:e}}),[])}function Oe(e,t){var n=Ee(ve++,7);return je(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Le(e,t){return ye=8,Oe((function(){return e}),t)}function Ie(e){var t=me.context[e.__c],n=Ee(ve++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(me)),t.props.value):e.__}function De(){for(var e;e=we.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Be),e.__H.__h.forEach(He),e.__H.__h=[]}catch(ei){e.__H.__h=[],l.__e(ei,e.__v)}}l.__b=function(e){me=null,xe&&xe(e)},l.__r=function(e){ke&&ke(e),ve=0;var t=(me=e.__c).__H;t&&(_e===me?(t.__h=[],me.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=be,e.__N=e.i=void 0}))):(t.__h.forEach(Be),t.__h.forEach(He),t.__h=[],ve=0)),_e=me},l.diffed=function(e){Ce&&Ce(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==we.push(t)&&ge===l.requestAnimationFrame||((ge=l.requestAnimationFrame)||Pe)(De)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==be&&(e.__=e.__V),e.i=void 0,e.__V=be}))),_e=me=null},l.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Be),e.__h=e.__h.filter((function(e){return!e.__||He(e)}))}catch(Ge){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l.__e(Ge,e.__v)}})),Te&&Te(e,t)},l.unmount=function(e){Ne&&Ne(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Be(e)}catch(e){t=e}})),n.__H=void 0,t&&l.__e(t,n.__v))};var ze="function"==typeof requestAnimationFrame;function Pe(e){var t,n=function(){clearTimeout(i),ze&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);ze&&(t=requestAnimationFrame(n))}function Be(e){var t=me,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),me=t}function He(e){var t=me;e.__c=e.__(),me=t}function je(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Fe(e,t){return"function"==typeof t?t(e):t}function Re(){throw new Error("Cycle detected")}var Ve=Symbol.for("preact-signals");function We(){if(Xe>1)Xe--;else{for(var e,t=!1;void 0!==$e;){var n=$e;for($e=void 0,Ze++;void 0!==n;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&et(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=i}}if(Ze=0,Xe--,t)throw e}}var Ue,qe,Ye=void 0,$e=void 0,Xe=0,Ze=0,Ge=0;function Je(e){if(void 0!==Ye){var t=e.n;if(void 0===t||t.t!==Ye)return t={i:0,S:e,p:Ye.s,n:void 0,t:Ye,e:void 0,x:void 0,r:t},void 0!==Ye.s&&(Ye.s.n=t),Ye.s=t,e.n=t,32&Ye.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=Ye.s,t.n=void 0,Ye.s.n=t,Ye.s=t),t}}function Ke(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Qe(e){return new Ke(e)}function et(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function tt(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function nt(e){for(var t=e.s,n=void 0;void 0!==t;){var i=t.p;-1===t.i?(t.S.U(t),void 0!==i&&(i.n=t.n),void 0!==t.n&&(t.n.p=i)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=i}e.s=n}function it(e){Ke.call(this,void 0),this.x=e,this.s=void 0,this.g=Ge-1,this.f=4}function rt(e){return new it(e)}function ot(e){var t=e.u;if(e.u=void 0,"function"==typeof t){Xe++;var n=Ye;Ye=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,at(e),t}finally{Ye=n,We()}}}function at(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ot(e)}function ct(e){if(Ye!==this)throw new Error("Out-of-order effect");nt(this),Ye=e,this.f&=-2,8&this.f&&at(this),We()}function st(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function lt(e){var t=new st(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function ut(e,t){l[e]=t.bind(null,l[e]||function(){})}function dt(e){qe&&qe(),qe=e&&e.S()}function ht(e){var t=this,n=e.data,i=ft(n);i.value=n;var r=Oe((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e;m(r.peek())||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=r.peek()},rt((function(){var e=i.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return r.value}function pt(e,t,n,i){var r=t in e&&void 0===e.ownerSVGElement,o=Qe(n);return{o:function(e,t){o.value=e,i=t},d:lt((function(){var n=o.value.value;i[t]!==n&&(i[t]=n,r?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}function ft(e){return Oe((function(){return Qe(e)}),[])}function vt(e){var t=Me(e);return t.current=e,Ue.__$f|=4,Oe((function(){return rt((function(){return t.current()}))}),[])}Ke.prototype.brand=Ve,Ke.prototype.h=function(){return!0},Ke.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},Ke.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Ke.prototype.subscribe=function(e){var t=this;return lt((function(){var n=t.value,i=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=i}}))},Ke.prototype.valueOf=function(){return this.value},Ke.prototype.toString=function(){return this.value+""},Ke.prototype.toJSON=function(){return this.value},Ke.prototype.peek=function(){return this.v},Object.defineProperty(Ke.prototype,"value",{get:function(){var e=Je(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(Ye instanceof it&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Ze>100&&Re(),this.v=e,this.i++,Ge++,Xe++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{We()}}}}),(it.prototype=new Ke).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Ge)return!0;if(this.g=Ge,this.f|=1,this.i>0&&!et(this))return this.f&=-2,!0;var e=Ye;try{tt(this),Ye=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return Ye=e,nt(this),this.f&=-2,!0},it.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Ke.prototype.S.call(this,e)},it.prototype.U=function(e){if(void 0!==this.t&&(Ke.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},it.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},it.prototype.peek=function(){if(this.h()||Re(),16&this.f)throw this.v;return this.v},Object.defineProperty(it.prototype,"value",{get:function(){1&this.f&&Re();var e=Je(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),st.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},st.prototype.S=function(){1&this.f&&Re(),this.f|=1,this.f&=-9,ot(this),tt(this),Xe++;var e=Ye;return Ye=this,ct.bind(this,e)},st.prototype.N=function(){2&this.f||(this.f|=2,this.o=$e,$e=this)},st.prototype.d=function(){this.f|=8,1&this.f||at(this)},ht.displayName="_st",Object.defineProperties(Ke.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ht},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),ut("__b",(function(e,t){if("string"==typeof t.type){var n,i=t.props;for(var r in i)if("children"!==r){var o=i[r];o instanceof Ke&&(n||(t.__np=n={}),n[r]=o,i[r]=o.peek())}}e(t)})),ut("__r",(function(e,t){dt();var n,i=t.__c;i&&(i.__$f&=-2,void 0===(n=i.__$u)&&(i.__$u=n=function(e){var t;return lt((function(){t=this})),t.c=function(){i.__$f|=1,i.setState({})},t}())),Ue=i,dt(n),e(t)})),ut("__e",(function(e,t,n,i){dt(),Ue=void 0,e(t,n,i)})),ut("diffed",(function(e,t){var n;if(dt(),Ue=void 0,"string"==typeof t.type&&(n=t.__e)){var i=t.__np,r=t.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=pt(n,s,u,r),o[s]=l):l.o(u,r)}}}e(t)})),ut("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__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=t.__c;if(a){var c=a.__$u;c&&(a.__$u=void 0,c.d())}}e(t)})),ut("__h",(function(e,t,n,i){(i<3||9===i)&&(t.__$f|=2),e(t,n,i)})),I.prototype.shouldComponentUpdate=function(e,t){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 t)return!0;for(var r in e)if("__source"!==r&&e[r]!==this.props[r])return!0;for(var o in this.props)if(!(o in e))return!0;return!1};var mt=0;function _t(e,t,n,i,r,o){var a,c,s={};for(c in t)"ref"==c?a=t[c]:s[c]=t[c];var u={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--mt,__source:r,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===s[c]&&(s[c]=a[c]);return l.vnode&&l.vnode(u),u}var gt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},yt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},wt=function(e){return _t("svg",{viewBox:"0 0 1024 1024",id:"send",className:e.className,version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},bt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},xt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},kt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Ct=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Tt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Nt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M960 544H64a32 32 0 1 1 0-64h896a32 32 0 1 1 0 64"})})},Et=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[_t("path",{d:"M481.0752 263.3728l50.9952 1.024 1.8432-105.8816-50.9952-0.8192z"}),_t("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"}),_t("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"}),_t("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"}),_t("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"}),_t("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"})]})},St=function(){return _t("svg",{viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_t("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"}),_t("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"}),_t("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"})]})},At=function(){return _t("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_t("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"})})},Mt=function(){var e=1e3,t=140,n=250,i=.8;return _t("svg",{fill:"currentColor",viewBox:"0 0 ".concat(e," ").concat(e),xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:Array.from({length:4}).map((function(e,r){return _t("rect",{fill:"currentColor",rx:70,ry:70,height:n,width:t,x:286.66666666666663*r,y:375,children:[_t("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"}),_t("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)}))})},Ot=function(e){return _t("svg",{className:e.className,onClick:e.onClick,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Lt=function(e){return _t("svg",{className:e.className,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},It=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M972.657609 209.348408C987.158609 209.36839 998.930114 197.571202 998.949999 182.99865 998.969882 168.426097 987.230618 156.59651 972.729617 156.576528L32.457975 155.280806C17.956974 155.260823 6.18547 167.058012 6.165585 181.630564 6.1457 196.203116 17.884965 208.032703 32.385966 208.052686L972.657609 209.348408ZM180.466902 992.356169 180.466902 1019.014859 206.993296 1018.74074 833.361858 1012.267947 859.348284 1011.999407 859.348284 985.883377 859.348284 289.397297C859.348284 274.824732 847.59289 263.011332 833.091874 263.011332 818.590859 263.011332 806.835465 274.824732 806.835465 289.397297L806.835465 985.883377 832.82189 959.498805 206.453329 965.971599 232.979723 992.356169 232.979723 282.67005C232.979723 268.097483 221.224329 256.284085 206.723313 256.284085 192.222298 256.284085 180.466902 268.097483 180.466902 282.67005L180.466902 992.356169ZM656.410257 847.079027C656.410257 861.651593 668.165651 873.464992 682.666667 873.464992 697.167682 873.464992 708.923076 861.651593 708.923076 847.079027L708.923076 372.131659C708.923076 357.559091 697.167682 345.745694 682.666667 345.745694 668.165651 345.745694 656.410257 357.559091 656.410257 372.131659L656.410257 847.079027ZM341.333333 847.079027C341.333333 861.651593 353.08873 873.464992 367.589743 873.464992 382.090758 873.464992 393.846155 861.651593 393.846155 847.079027L393.846155 372.131659C393.846155 357.559091 382.090758 345.745694 367.589743 345.745694 353.08873 345.745694 341.333333 357.559091 341.333333 372.131659L341.333333 847.079027ZM498.871795 847.079027C498.871795 861.651593 510.627189 873.464992 525.128205 873.464992 539.62922 873.464992 551.384614 861.651593 551.384614 847.079027L551.384614 372.131659C551.384614 357.559091 539.62922 345.745694 525.128205 345.745694 510.627189 345.745694 498.871795 357.559091 498.871795 372.131659L498.871795 847.079027ZM392.147755 116.721777C392.147755 102.063669 403.758665 90.363507 418.40134 90.363507L622.925796 90.363507C637.408947 90.363507 649.179381 102.1619 649.179381 116.549585L649.179381 171.644875 701.692203 171.644875 701.692203 116.549585C701.692203 72.986607 666.38105 37.591577 622.925796 37.591577L418.40134 37.591577C374.724427 37.591577 339.634933 72.950804 339.634933 116.721777L339.634933 165.310801 392.147755 165.310801 392.147755 116.721777Z"})})},Dt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 184l144 144 144-144"})})},zt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"".concat(e.className," icon"),viewBox:"0 0 512 512",children:_t("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"})})},Pt=function(e){return _t("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",children:_t("circle",{cx:"25",cy:"25",r:"20",stroke:"currentColor",strokeWidth:"5",fill:"none",strokeDasharray:"31.415, 31.415",strokeLinecap:"round",children:_t("animateTransform",{attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"1s",repeatCount:"indefinite"})})})},Bt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ht=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},jt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ft=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Rt=function(e){return _t("svg",{className:e.className,id:"stop",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},Vt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})})},Wt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("path",{d:"M394.688 126.208a32 32 0 0 1 32-32h170.688a32 32 0 0 1 32 32v138.624h288a32 32 0 0 1 32 32v170.688a32 32 0 0 1-32 32H106.688a32 32 0 0 1-32-32V296.832a32 32 0 0 1 32-32h288V126.208z m64 32v138.624a32 32 0 0 1-32 32h-288v106.688h746.688V328.832h-288a32 32 0 0 1-32-32V158.208H458.688z"}),_t("path",{d:"M138.688 469.376a32 32 0 0 1 32-32h682.688a32 32 0 0 1 32 32v384a32 32 0 0 1-32 32H170.688a32 32 0 0 1-32-32v-384z m64 32v320h618.688v-320H202.688z"}),_t("path",{d:"M341.376 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32zM512 691.2a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0v-128a32 32 0 0 1 32-32zM682.688 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32z"})]})},Ut=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("path",{d:"M843.251 424.407l43.828-74.898c10.194-17.946 32.596-22.158 48.956-11.598 16.298 10.499 23.44 32.658 14.223 49.566l-113.11 195.212-61.164-40.044-126.418-82.285c-16.115-11.598-20.632-34.428-10.194-51.702 9.705-17.397 31.009-23.501 47.857-13.734l89.67 59.028C748.576 295.547 615.81 180.667 461.008 180.667c-177.387 0-320.042 148.758-320.042 331.335 0 183.613 143.692 331.334 319.981 331.334 107.861 0.184 208.58-56.158 268.034-149.858 1.099-1.038 1.099-2.075 2.075-2.075 6.348-9.949 17.092-15.871 28.568-15.81 19.35 0 35.648 16.848 35.648 36.93 0 7.508-2.137 14.833-6.104 21.059-72.823 114.698-196.066 183.675-328.099 183.614-216.088 0-391.4-181.478-391.4-405.195 0-223.718 175.312-405.195 391.339-405.195 183.125-0.427 342.016 131.606 382.243 317.601z"})})},qt=function(){return _t("svg",{version:"1.1",className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M627.498667 55.168l170.666666 170.666667a42.624 42.624 0 0 1 0 60.330666l-469.333333 469.333334A42.538667 42.538667 0 0 1 298.666667 768H128a42.666667 42.666667 0 0 1-42.666667-42.666667v-170.666666c0-11.306667 4.48-22.186667 12.501334-30.165334l469.333333-469.333333a42.624 42.624 0 0 1 60.330667 0zM896 896a42.666667 42.666667 0 0 1 0 85.333333H128a42.666667 42.666667 0 0 1 0-85.333333h768zM597.333333 145.664l-426.666666 426.666667V682.666667h110.336l426.666666-426.666667L597.333333 145.664z"})})},Yt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M184 112l144 144-144 144"})})},$t=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M896 870.4l-128-128c55.467-68.267 89.6-149.333 89.6-238.933 0-98.134-38.4-192-110.933-264.534-149.334-149.333-384-149.333-533.334-4.266-145.066 145.066-145.066 384 0 529.066 72.534 72.534 166.4 110.934 264.534 110.934 89.6 0 174.933-29.867 238.933-89.6l128 128c4.267 4.266 12.8 8.533 21.333 8.533s17.067-4.267 21.334-8.533c17.066-8.534 17.066-29.867 8.533-42.667zM260.267 721.067c-119.467-123.734-119.467-320 0-439.467 59.733-59.733 140.8-89.6 217.6-89.6 81.066 0 157.866 29.867 217.6 89.6 59.733 59.733 89.6 136.533 89.6 217.6 0 81.067-34.134 162.133-89.6 217.6-55.467 59.733-132.267 93.867-217.6 93.867-81.067 0-157.867-34.134-217.6-89.6z"})})},Xt=function(e){var t=e.items,n=ft([]),i=new ee("chat-thought-chain"),r=ft([]);Ae((function(){r.value=t.filter((function(e){return e.description})),r.value.length>0&&r.value.forEach((function(e,t){e.done&&(n.value=[].concat(o(n.value),[t]))}))}),[t]);return 0===r.value.length?null:_t("div",{className:"".concat(i.b()," ").concat(i.is("single",1===r.value.length)),children:r.value.map((function(e,t){if(e.description){var r=n.value.includes(t);return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("collapsed",r)),children:[_t("div",{className:i.e("item-icon"),children:e.icon||_t("span",{children:t})}),_t("div",{className:i.e("item-content"),children:[_t("div",{className:i.e("item-title"),onClick:function(){return function(e){n.value.includes(e)?n.value=n.value.filter((function(t){return t!==e})):n.value=[].concat(o(n.value),[e])}(t)},children:[e.title,_t(Dt,{className:i.e("icon")})]}),_t("div",{className:i.e("item-description"),children:e.description})]})]},t)}}))})},Zt=function(e){var t=e.items,n=e.onItemClick,i=new ee("chat-suggestions");return _t("div",{className:"".concat(i.b()),children:t.map((function(e,t){return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("action","action"===e.type)),onClick:function(t){return function(e,t){null==n||n(e,t)}(e,t)},title:e.metadata.content_name,children:[e.metadata.content_name,_t(Yt,{className:"".concat(i.e("item-icon"))})]},t)}))})},Gt=new ee("markdown-message"),Jt=function(e){var t=e.message,n=e.size,i=ft(oe()),r=ft(null),o=Oe((function(){return 20===t.state&&!0!==t.completed}),[t.state,t.completed]),a=Oe((function(){return 20===t.state&&!0===t.completed}),[t.state,t.completed]),c=ft({title:"",description:"",icon:_t(Pt,{})}),l=ft({hasSuggestions:!1,suggestions:[]}),u=function(e){e&&e.length>0?l.value={hasSuggestions:!0,suggestions:e}:l.value={hasSuggestions:!1,suggestions:[]}},d=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="",o=!1;return-1===n?(o=!1,i=e.slice(t+7),r=""):(o=!0,i=e.slice(t+7,n),r=e.slice(n+8)),{isThoughtCompleted:o,thoughtContent:i,answerContent:r}};return Ae((function(){if(n>=0&&r.value){if(-1!==t.content.indexOf("")){var e=d(t.content),i=e.isThoughtCompleted,o=e.thoughtContent,a=e.answerContent;i?(c.value.icon=_t(zt,{}),c.value.title="思考完成"):!0===t.completed?(c.value.icon=_t(zt,{}),c.value.title="思考已停止"):(c.value.icon=_t(Pt,{}),c.value.title="思考中..."),c.value.description=o||"",r.value.setMarkdown(a||"")}else r.value.setMarkdown(t.content||"");u(t.suggestions)}}),[t,n]),Ae((function(){var e="";if(-1!==t.content.indexOf("")){var n=d(t.content),o=n.isThoughtCompleted,a=n.thoughtContent,l=n.answerContent;c.value={title:o?"思考完成":!0===t.completed?"思考已停止":"思考中...",description:a||"",icon:o||!0===t.completed?_t(zt,{}):_t(Pt,{})},l&&(e=l)}else e=t.content;u(t.suggestions),r.value=new s({id:i,value:e||"",editor:{defaultModel:"previewOnly"},themeSettings:{mainTheme:"dark"},previewer:{enablePreviewerBubble:!1}})}),[]),_t("div",{className:"".concat(Gt.b()," ").concat(Gt.is("loading",o)),children:[_t("div",{className:Gt.b("header"),children:[_t("div",{className:Gt.be("header","caption"),children:"AI "}),e.children,a?_t("div",{className:Gt.be("header","timeout"),children:"请求超时"}):null]}),_t("div",{className:"".concat(Gt.b("content")," pre-wrap-container"),children:[_t(Xt,{items:[c.value]}),_t("div",{id:i})]}),_t("div",{className:Gt.b("footer"),children:l.value.hasSuggestions?_t(Zt,{items:l.value.suggestions,onItemClick:function(t,n){!function(t,n){e.controller.handleSuggestionClick(e.message,t,n)}(t,n)}}):null})]})},Kt=new ee("ossfile-material"),Qt=function(e){var t=vt((function(){return e.material.data.name})),n=vt((function(){return e.material.metadata.size})),i=vt((function(){var t=e.material.metadata.state;return"successed"===t?"上传成功":"uploading"===t?"上传中":"failed"===t?"上传失败":"未知状态"})),r=vt((function(){switch(e.material.metadata.state){case"successed":return"#1890ff";case"uploading":return"#52c41a";default:return"#ff4d4f"}}));return _t("div",{className:Kt.b(),children:[_t("div",{className:Kt.b("left"),children:_t(Ht,{})}),_t("div",{className:Kt.b("right"),children:[_t("div",{className:Kt.e("name"),title:t,children:t}),_t("div",{className:Kt.e("metadata"),children:[_t("div",{children:[n,"B"]}),_t("div",{style:{color:r.value},children:i})]})]})]})},en=new ee("common-material"),tn=function(e){var t,n,i,r,o=null===(t=e.controller.opts.questionToolbarItems)||void 0===t?void 0:t.find((function(t){return t.id===e.material.metadata.actionId})),a=vt((function(){return e.material.metadata.name}));return _t("div",{className:en.b(),children:[_t("div",{className:en.b("left"),children:o&&o.icon?"function"==typeof o.icon?o.icon():(null===(n=o.icon)||void 0===n?void 0:n.showIcon)&&_t(L,{children:null!==(i=o.icon)&&void 0!==i&&i.cssClass?_t("i",{className:o.icon.cssClass}):null!==(r=o.icon)&&void 0!==r&&r.imagePath?ce(o.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:o.icon.imagePath}}):_t("img",{src:o.icon.imagePath}):null}):_t(Ft,{})}),_t("div",{className:en.b("right"),children:[_t("div",{className:en.e("name"),title:a,children:a}),_t("div",{className:en.e("metadata"),children:_t("div",{children:(null==o?void 0:o.label)||"素材资源"})})]})]})},nn=new ee("chat-input-material-item"),rn=function(e){var t=e.material,n=null;if("ossfile"===t.type)n=Qt;else n=tn;return _t("div",{className:"".concat(nn.b()," ").concat(nn.is("disabled",e.disabled)),children:[_t("div",{className:nn.e("icon"),onClick:function(){e.controller.deleteMaterial(t)},children:_t(jt,{})}),M(n,{material:t,controller:e.controller})]})},on=new ee("user-message-question"),an=function(e){var t=ft(oe()),n=ft(null),i=vt((function(){return e.message.content})),r=vt((function(){return de.parseMixedContent(i.value)}));return Ae((function(){n.value=new s({id:t,value:r.value.remainingText||"",editor:{defaultModel:"previewOnly"},themeSettings:{mainTheme:"dark"},previewer:{enablePreviewerBubble:!1}})}),[r.value.remainingText]),_t("div",{className:on.b(),children:[_t("div",{className:on.e("user-header"),children:[e.children,_t("div",{className:on.e("user"),children:"我"})]}),_t("div",{className:on.e("content"),children:_t("div",{className:on.em("content","body"),children:[r.value.hasResources&&_t("div",{className:on.em("content","material"),children:r.value.resources.map((function(t){return _t(rn,{material:t,disabled:!0,controller:e.controller},t.id)}))}),_t("div",{className:"pre-wrap-container",children:_t("div",{id:t})})]})})]})},cn=new ee("error-message"),sn=function(e){var t=vt((function(){return e.message.content}));return _t("div",{className:cn.b(),children:[_t("div",{className:cn.b("header"),children:[_t("div",{className:cn.be("header","caption"),children:"AI "}),e.children]}),_t("div",{className:"".concat(cn.e("content")," pre-wrap-container"),children:_t("span",{children:t})})]})},ln=new ee("unknown-message"),un=function(e){return _t("div",{className:ln.b(),children:_t("div",{className:"".concat(ln.e("content")," pre-wrap-container"),children:["暂未支持的消息类型: ",e.message.type]})})},dn=new ee("chat-message-item"),hn=function(e){var t=e.message,n=e.size,i=null;switch(t.type){case"DEFAULT":i="ASSISTANT"===t.role?Jt:an;break;case"ERROR":i=sn;break;default:i=un}return _t("div",{className:dn.b(),children:M(i,{size:n,message:t,controller:e.controller,children:e.children})})},pn=function(){function e(t){v(this,e),this.msg=t}return _(e,[{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 e=this.msg.content;if(-1!==e.indexOf("")&&-1===e.indexOf(""))return"";if(-1!==(e=e.replace(/[^]*?<\/think>/g,"").trim()).indexOf("")&&-1===e.indexOf(""))return"";var t=(e=e.replace(/[^]*?<\/resources>/g,"").trim()).indexOf("");return-1!==t&&(e=e.substring(0,t).trim()),e}},{key:"content",get:function(){return this.msg.content}},{key:"completed",get:function(){return this.msg.completed}},{key:"suggestions",get:function(){return this.msg.suggestions}},{key:"_origin",get:function(){return this.msg}},{key:"update",value:function(e){e.content||(e.content=""),-1!==e.content.indexOf("")&&this.msg.content&&(this.msg.content=""),this.msg.content+=e.content}},{key:"updateCompleted",value:function(e){this.msg.completed=e}}]),e}(),fn=function(){function e(t){v(this,e),this.data=t}return _(e,[{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:"sourceCaption",get:function(){return this.data.sourceCaption||this.caption}},{key:"url",get:function(){return this.data.url}},{key:"aiChat",get:function(){return this.data.aiChat}}]),e}(),vn=function(){function e(t){v(this,e),this.material=t}return _(e,[{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}}]),e}(),mn=new ee("chat-toolbar-item"),_n=function(e){var t,n,i,r=e.model,o=e.data,c=e.className,s=e.disabled,l=void 0!==s&&s,u=e.buttonType,d=void 0===u?"default":u,h=e.onClick,p=a(Se(!1),2),f=p[0],v=p[1],m=Me(null),_=function(e){return"function"==typeof e.hidden?e.hidden(o):!0===e.hidden};if(_(r))return _t(L,{});var g=function(e){return!!l||("function"==typeof e.disabled?e.disabled(o):!0===e.disabled)},y=function(e){var t,n,i,r;return"function"==typeof e.icon?e.icon():null!==(t=e.icon)&&void 0!==t&&t.showIcon&&null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.showIcon&&null!==(r=e.icon)&&void 0!==r&&r.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):void 0},w=function(e,t){g(t)||(v(!1),h(e,t))};return Ae((function(){var e=function(e){m.current&&m.current.contains(e.target)||v(!1)};return f&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[f]),_t("div",{className:"".concat(mn.b()," ").concat(mn.b(d)," ").concat(r.customClass||""," ").concat(c||""," ").concat(mn.is("disabled",g(r))," ").concat(mn.is("more",!(null===(t=r.children)||void 0===t||!t.length))),children:[_t("div",{title:r.title,className:mn.e("content"),onClick:function(e){return w(e,r)},children:[_t("div",{className:mn.em("content","icon"),children:y(r)}),_t("div",{className:mn.em("content","label"),children:r.label})]}),(null===(n=r.children)||void 0===n?void 0:n.length)&&_t("div",{title:"更多",className:mn.e("more"),onClick:function(e){g(r)||v(!0)},children:_t("i",{"aria-hidden":"true",className:"fa fa-angle-down ".concat(mn.em("more","icon"))})}),f&&_t("div",{ref:m,className:mn.b("dropdown"),children:null===(i=r.children)||void 0===i?void 0:i.map((function(e,t){if(!_(e))return _t("div",{title:e.title,onClick:function(t){return w(t,e)},className:"".concat(mn.be("dropdown","item")," ").concat(e.customClass||""," ").concat(mn.is("disabled",g(e))),children:[_t("div",{className:mn.bem("dropdown","item","icon"),children:y(e)}),_t("div",{className:mn.bem("dropdown","item","label"),children:e.label})]},t)}))})]})},gn=new ee("chat-toolbar"),yn=function(e){var t=e.controller,n=e.items,i=void 0===n?[]:n,r=e.data,a=e.type,c=e.className,s=e.mode,l=Ie(Ci),d=[],h=[{label:"重置对话",title:"重置对话",icon:function(){return _t(Ut,{})},onClick:function(){t.resetTopic()},children:[{label:"清空对话",title:"清空对话",icon:function(){return _t(Wt,{})},onClick:function(){t.clearTopic()}},{label:"新建对话",title:"新建对话",hidden:"TOPIC"!==s,icon:function(){return _t(St,{})},onClick:function(){l.newTopic&&l.newTopic()}}]}],p=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r)}},{label:"删除",title:"删除",icon:function(){return _t(bt,{})},onClick:function(){t.deleteMessage(r)}},{label:"复制",title:"复制",icon:function(){return _t(kt,{})},onClick:function(){t.copyMessage(r)}}];l.enableBackFill&&p.unshift.apply(p,[{label:"回填",title:"回填",icon:function(){return _t(yt,{})},onClick:function(){t.backfill(r)}}]);var f=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r,!0)}}];if("content"===a)switch(r.type){case"DEFAULT":d="ASSISTANT"===r.role?[].concat(p,o(i)):[].concat(f);break;case"ERROR":d=[].concat(p,o(i))}else d=[].concat(h,o(i));var v=function(n,i){var o=u({},r);if(r instanceof pn?(Object.assign(o,{topic:t.topic}),o.msg.realcontent=r.realcontent):(o.data||(o.data={}),Object.assign(o.data,{messages:t.messages.value})),i.onClick&&"function"==typeof i.onClick)i.onClick(n,i,t.context,t.params,o);else{var a=e.controller.opts.extendToolbarClick;a&&"function"==typeof a&&a(n,i,t.context,t.params,o)}},m=Oe((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 _t("div",{className:"".concat(gn.b()," ").concat(c||""),children:d.map((function(e,t){return _t(_n,{data:r,model:e,disabled:m,buttonType:"content"===a?"circle":"default",onClick:v.bind(void 0)},t)}))})};var wn=function(e){var t,n,i,r=ft(!1),o=ft({}),a=new ee("chat-back-bottom"),c=ft(null),s=function(){if(c.value){var t=e.visibilityHeight||200,n=c.value.scrollHeight-c.value.scrollTop-c.value.offsetHeight;r.value=n>=t}},l=(t=s,n=300,i=null,function(){for(var e=this,r=arguments.length,o=new Array(r),a=0;a3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),K(M(Dn,{context:t.context},e.__v),t.l)}function Pn(e,t){var n=M(zn,{__v:e,i:t});return n.containerInfo=t,n}(Ln.prototype=new I).__a=function(e){var t=this,n=On(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),In(t,e,i)):r()};n?n(o):o()}},Ln.prototype.render=function(e){this.u=null,this.o=new Map;var t=F(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ln.prototype.componentDidUpdate=Ln.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){In(e,n,t)}))};var Bn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Hn=/^(?: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]/,jn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Fn=/[A-Z0-9]/g,Rn="undefined"!=typeof document,Vn=function(e){return("undefined"!=typeof Symbol&&"symbol"==f(Symbol())?/fil|che|rad/:/fil|che|ra/).test(e)};I.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(I.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Wn=l.event;function Un(){}function qn(){return this.cancelBubble}function Yn(){return this.defaultPrevented}l.event=function(e){return Wn&&(e=Wn(e)),e.persist=Un,e.isPropagationStopped=qn,e.isDefaultPrevented=Yn,e.nativeEvent=e};var $n={enumerable:!1,configurable:!0,get:function(){return this.class}},Xn=l.vnode;l.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={};for(var r in t){var o=t[r];if(!("value"===r&&"defaultValue"in t&&null==o||Rn&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===o?o="":"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Vn(t.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":jn.test(r)?r=a:-1===n.indexOf("-")&&Hn.test(r)?r=r.replace(Fn,"-$&").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(t.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=F(t.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",$n)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=Bn,Xn&&Xn(e)};var Zn=l.__r;l.__r=function(e){Zn&&Zn(e),e.__c};var Gn=l.diffed;l.diffed=function(e){Gn&&Gn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};var Jn=new Map;function Kn(e){var t=Jn.get(e);t&&t.destroy()}function Qn(e){var t=Jn.get(e);t&&t.update()}var ei=null;"undefined"==typeof window?((ei=function(e){return e}).destroy=function(e){return e},ei.update=function(e){return e}):((ei=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!Jn.has(e)){var t,n=null,i=window.getComputedStyle(e),r=(t=e.value,function(){a({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),o=function(t){e.removeEventListener("autosize:destroy",o),e.removeEventListener("autosize:update",c),e.removeEventListener("input",r),window.removeEventListener("resize",c),Object.keys(t).forEach((function(n){return e.style[n]=t[n]})),Jn.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",o),e.addEventListener("autosize:update",c),e.addEventListener("input",r),window.addEventListener("resize",c),e.style.overflowX="hidden",e.style.wordWrap="break-word",Jn.set(e,{destroy:o,update:c}),c()}function a(t){var r,o,c=t.restoreTextAlign,s=void 0===c?null:c,l=t.testForHeightReduction,u=void 0===l||l,d=i.overflowY;if(0!==e.scrollHeight&&("vertical"===i.resize?e.style.resize="none":"both"===i.resize&&(e.style.resize="horizontal"),u&&(r=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null}))}}(e),e.style.height=""),o="content-box"===i.boxSizing?e.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):e.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&o>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(e.style.overflow="scroll"),o=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(e.style.overflow="hidden"),e.style.height=o+"px",s&&(e.style.textAlign=s),r&&r(),n!==o&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=o),d!==i.overflow&&!s)){var h=i.textAlign;"hidden"===i.overflow&&(e.style.textAlign="start"===h?"end":"start"),a({restoreTextAlign:h,testForHeightReduction:!0})}}function c(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Kn),e},ei.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Qn),e});var ti=ei,ni=function(e){return e.STYLE_CACHE="ai-chat-style-cache",e.MINIMIZE_STYLY_CHCHE="ai-chat-minimize-style-cache",e.DATA_BASE_NAME="ibiz-chat",e.DATA_TABLE_NAME="history-message",e.DATA_TABLE_KEY_NAME="id",e}(ni||{}),ii=function(){function e(t){v(this,e),g(this,"messages",Qe([])),g(this,"materials",Qe([])),g(this,"input",Qe("")),g(this,"isLoading",Qe(!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=t,this.context=t.context,this.params=t.params,this.appDataEntityId=t.appDataEntityId,this.topicId=t.topicId,this.topic=t.topic,this.fecthHistory()}var t,n,i,r,a,c,s,l,h,f;return _(e,[{key:"fecthHistory",value:(f=p(d().mark((function e(){var t,n=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=7;break}return e.next=3,le.getData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 3:if(!((t=e.sent)&&t.data&&t.data.length>0)){e.next=7;break}return t.data.forEach((function(e){var t={messageid:e.messageid,state:e.state,type:e.type,role:e.role,content:e.content,suggestions:e.suggestions,completed:!0};n.addMessage(t)})),e.abrupt("return",!0);case 7:return e.next=9,this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId,appendCurData:this.opts.appendCurData});case 9:return e.sent&&this.opts.appendCurContent&&this.addMessage({state:30,messageid:oe(),role:"USER",type:"DEFAULT",content:this.opts.appendCurContent,completed:!0}),e.abrupt("return",!0);case 12:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"asyncToIndexDB",value:(h=p(d().mark((function e(){var t;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.topicId){e.next=2;break}return e.abrupt("return");case 2:return t={id:this.topicId,data:this.messages.value.map((function(e){return e._origin})),timestamp:(new Date).getTime()},e.next=5,le.updateData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"setInput",value:function(e){this.input.value=e||""}},{key:"addMessage",value:function(e){var t=this.messages.value.find((function(t){return t.messageid===e.messageid}));t?(t.update(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB()}},{key:"completeMessage",value:(l=p(d().mark((function e(t,n){var i;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(i=this.messages.value.find((function(e){return e.messageid===t})))){e.next=6;break}return i.updateCompleted(n),this.messages.value=o(this.messages.value),e.next=6,this.asyncToIndexDB();case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"replaceMessage",value:function(e){var t=this,n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==n?(this.messages.value[n]=new pn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB(),"DEFAULT"===e.type&&this.opts.recommendPrompt&&this.opts.recommendPrompt(this.context,this.params,{appDataEntityId:this.appDataEntityId,message:{messages:[e]}}).then((function(n){n&&n.content&&t.updateRecommendPrompt(e,n.content)}))}},{key:"stopMessage",value:(s=p(d().mark((function e(t){var n,i;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return-1!==(n=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})))?(i=this.messages.value[n],t.content=i.content,this.messages.value[n]=new pn(t),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(t)]),e.next=4,this.asyncToIndexDB();case 4:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"stringlyMaterialResource",value:function(){var e="",t=[];return this.materials.value&&this.materials.value.length>0&&(this.materials.value.forEach((function(e){if("ossfile"===e.type){var n=e.metadata;n.state&&"successed"===n.state&&t.push(e)}else t.push(e)})),this.materials.value=[]),t&&t.length>0&&(e=de.stringify(t)),e}},{key:"question",value:(c=p(d().mark((function e(t){var n,i=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.isLoading.value=!0,this.messages.value.forEach((function(e,t){var n=e._origin;n.suggestions&&(n.suggestions=void 0,i.messages.value[t]=new pn(n))})),this.messages.value=o(this.messages.value),this.asyncToIndexDB(),(n=this.stringlyMaterialResource())?n+="\n".concat(t):n=t,this.addMessage({state:30,messageid:oe(),role:"USER",type:"DEFAULT",content:n}),e.next=10,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 10:this.opts.action&&this.opts.action("question",t),this.isLoading.value=!1;case 12:return e.prev=12,this.isLoading.value=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[0,,12,15]])}))),function(e){return c.apply(this,arguments)})},{key:"abortQuestion",value:(a=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.opts.abortQuestion(this);case 3:return e.prev=3,this.isLoading.value=!1,e.finish(3);case 6:case"end":return e.stop()}}),e,this,[[0,,3,6]])}))),function(){return a.apply(this,arguments)})},{key:"backfill",value:function(e){this.opts.action&&this.opts.action("backfill",e)}},{key:"deleteMessage",value:function(e){var t=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==t&&(this.messages.value.splice(t,1),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),this.opts.action&&this.opts.action("deletemsg",e)}},{key:"refreshMessage",value:(r=p(d().mark((function e(t){var n,i,r,a=arguments;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],this.isLoading.value=!0,e.prev=2,i=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})),!n){e.next=11;break}return this.messages.value.splice(i+1,this.messages.value.length-i-1),this.messages.value=o(this.messages.value),e.next=9,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 9:e.next=21;break;case 11:if(i!==this.messages.value.length-1){e.next=18;break}return this.messages.value.pop(),this.messages.value=o(this.messages.value),e.next=16,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 16:e.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",t);case 23:return e.prev=23,this.isLoading.value=!1,e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[2,,23,26]])}))),function(e){return r.apply(this,arguments)})},{key:"copyMessage",value:function(e){var t=e.realcontent;se.copy(t),this.opts.action&&this.opts.action("copymsg",e)}},{key:"resetTopic",value:(i=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.abortQuestion();case 2:if(!this.topicId){e.next=5;break}return e.next=5,le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 5:this.messages.value=[],this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId});case 7:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"clearTopic",value:(n=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.abortQuestion();case 2:if(!this.topicId){e.next=5;break}return e.next=5,le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 5:this.messages.value=[];case 6:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"addMaterial",value:function(e){var t=this.materials.value.find((function(t){return t.id===e.id}));this.materials.value=t?o(this.materials.value):[].concat(o(this.materials.value),[new vn(e)])}},{key:"replaceMaterial",value:function(e,t){var n=this.materials.value.findIndex((function(t){return t.id===e}));-1!==n?(this.materials.value[n]=new vn(t),this.materials.value=o(this.materials.value)):this.materials.value=[].concat(o(this.materials.value),[new vn(t)])}},{key:"deleteMaterial",value:function(e){var t=this.materials.value.findIndex((function(t){return t.id===e.id}));-1!==t&&(this.materials.value.splice(t,1),this.materials.value=o(this.materials.value))}},{key:"updateRecommendPrompt",value:function(e,t){if(t){var n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid})),i=he.parseMixedContent(t).suggestions;i&&i.length>0&&(e.suggestions=i,-1!==n?(this.messages.value[n]=new pn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB())}}},{key:"handleSuggestionClick",value:(t=p(d().mark((function e(t,n,i){var r,a,c,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:-1!==(r=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})))&&((a=this.messages.value[r]._origin).suggestions=void 0,this.messages.value[r]=new pn(a),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),c=n.type,e.t0=c,e.next="action"===e.t0?7:"raw"===e.t0?17:20;break;case 7:if(!this.opts.extendToolbarClick){e.next=16;break}if(s=n.data.actionid){e.next=11;break}throw new Error("actionid不能为空");case 11:return l=u({},t),Object.assign(l,{topic:this.topic}),l.msg.realcontent=t.realcontent,e.next=16,this.opts.extendToolbarClick(i,{id:s,appId:this.context.srfappid},this.context,this.params,l);case 16:case 19:return e.abrupt("break",21);case 17:return e.next=19,this.question(n.data.content);case 20:throw new Error("不支持".concat(c,"推荐类型"));case 21:case"end":return e.stop()}}),e,this)}))),function(e,n,i){return t.apply(this,arguments)})}]),e}(),ri=function(){function e(t){v(this,e),g(this,"topics",Qe([])),g(this,"activedTopic",Qe(void 0)),g(this,"currentTopicOptions",void 0),this.chat=t}var t,n,i,r,a,c,s;return _(e,[{key:"fetchHistory",value:(s=p(d().mark((function e(t){var n,i,r=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.configService(t.appid,"aitopics",t.type),e.next=3,n.load();case 3:(i=e.sent)&&i.length>0&&i.forEach((function(e){r.topics.value=[].concat(o(r.topics.value),[new fn(e)])}));case 5:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})},{key:"updateCurrentTopic",value:(c=p(d().mark((function e(t){var n,i,r,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.currentTopicOptions=t,n=this.topics.value.findIndex((function(e){return e.id===t.id})),i=new fn(t),-1!==n?this.topics.value.splice(n,1,new fn(t)):this.topics.value=[].concat(o(this.topics.value),[new fn(t)]),r=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),a=t.configService(t.appid,"aitopics",t.type),e.next=8,null==a?void 0:a.save(r);case 8:this.activedTopic.value=i;case 9:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"removeTopic",value:(a=p(d().mark((function e(t,n,i,r,a){var c,s,l,u,h;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=!0,!t.beforeDelete){e.next=5;break}return e.next=4,t.beforeDelete(n,i,r,a);case 4:s=e.sent;case 5:if(s){e.next=7;break}return e.abrupt("return");case 7:return-1!==(l=this.topics.value.findIndex((function(e){return e.id===r.id})))&&(this.topics.value.splice(l,1),this.topics.value=o(this.topics.value)),u=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),h=t.configService(t.appid,"aitopics",t.type),e.next=13,null==h?void 0:h.save(u);case 13:return e.next=15,le.deleteData(ni.DATA_BASE_NAME,ni.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 e.stop()}}),e,this)}))),function(e,t,n,i,r){return a.apply(this,arguments)})},{key:"updateTopic",value:(r=p(d().mark((function e(t,n){var i,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),r=t.configService(t.appid,"aitopics",t.type),e.next=4,null==r?void 0:r.save(i);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"handleTopicChange",value:function(e){var t;(null===(t=this.activedTopic.value)||void 0===t?void 0:t.id)!==e.id&&(this.activedTopic.value=e,this.chat.switchAiChatController(e))}},{key:"handleTopicAction",value:(i=p(d().mark((function e(t,n,i){var r,o,a,c,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.topics.value.find((function(e){return e.id===n.id})),!(this.currentTopicOptions&&r&&r.aiChat)){e.next=12;break}if(c=r.aiChat,s=c.context,l=c.params,"DELETE"!==t){e.next=8;break}return e.next=6,this.removeTopic(this.currentTopicOptions,s,l,r,i);case 6:e.next=11;break;case 8:if("RENAME"!==t){e.next=11;break}return e.next=11,this.updateTopic(this.currentTopicOptions,n);case 11:null===(o=(a=this.currentTopicOptions).action)||void 0===o||o.call(a,t,s,l,n,i);case 12:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"newTopic",value:(n=p(d().mark((function e(){var t,n,i,r,a,c,s,l,u;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this.activedTopic.value){e.next=3;break}return e.abrupt("return");case 3:return r=i.id.split("@")[0],a=this.topics.value.filter((function(e){return e.id.startsWith(r)})),c={appid:i.appid,id:"".concat(r,"@").concat(Date.now()),type:i.type,caption:"".concat(null===(t=i.sourceCaption)||void 0===t?void 0:t.split("_")[0],"_").concat(a.length),sourceCaption:i.sourceCaption,url:i.url,aiChat:i.aiChat},s=new fn(c),this.topics.value=[].concat(o(this.topics.value),[s]),l=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),u=null===(n=this.currentTopicOptions)||void 0===n?void 0:n.configService(c.appid,"aitopics",c.type),e.next=12,null==u?void 0:u.save(l);case 12:this.handleTopicChange(s);case 13:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"clearTopic",value:(t=p(d().mark((function e(){var t,n,i,r,o,a=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.topics.value.find((function(e){var t;return e.id===(null===(t=a.activedTopic.value)||void 0===t?void 0:t.id)})),this.currentTopicOptions&&n){e.next=3;break}return e.abrupt("return");case 3:if(i=!0,!this.currentTopicOptions.beforeDelete){e.next=8;break}return e.next=7,this.currentTopicOptions.beforeDelete(n.aiChat.context,n.aiChat.params,n,void 0,!0);case 7:i=e.sent;case 8:if(i){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,Promise.all(this.topics.value.map((function(e){if(e.id!==(null==n?void 0:n.id))return le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,e.id)})));case 12:return this.topics.value=n?[n]:[],r=null===(t=this.currentTopicOptions)||void 0===t?void 0:t.configService(this.currentTopicOptions.appid,"aitopics",this.currentTopicOptions.type),o=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),e.next=17,null==r?void 0:r.save(o);case 17:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),oi=_((function e(t){v(this,e),this.aiChat=t})),ai=function(t){e(o,t);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=p(d().mark((function e(t,n){var i,r,o,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n||!n.onClick||"function"!=typeof n.onClick){e.next=6;break}return e.next=3,n.onClick(t,n,this.aiChat.context,this.aiChat.params);case 3:i=e.sent,e.next=14;break;case 6:if(!(r=this.aiChat.opts.extendToolbarClick)){e.next=13;break}return e.next=10,r(t,n,this.aiChat.context,this.aiChat.params,{});case 10:i=e.sent,e.next=14;break;case 13:console.error("未找到扩展工具栏点击事件");case 14:i&&i.data&&i.data.length>0&&(o=i.data[0],a={id:o.id,type:o.type,data:o.data||{},metadata:o.metadata||{}},n.id&&Object.assign(a.metadata,{actionId:n.id}),this.aiChat.addMaterial(a));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})}]),o}(oi),ci=function(t){e(o,t);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=p(d().mark((function e(t,n){var i,r,o,a,c,s,l,u,h,f,v=this;return d().wrap((function(e){for(;;)switch(e.prev=e.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,h=i.onProgress,f={multiple:r||!0,accept:o||"*/*",maxSize:a||5242880,onSelect:function(e){null==c||c(e),e.length>0&&e.forEach((function(e){var t=v.buildMaterialObject(e);Object.assign(t.metadata,{state:"uploading"}),v.aiChat.addMaterial(t)}))},onUpload:function(){var e=p(d().mark((function e(t,n){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s(t,n,{context:v.aiChat.context,params:v.aiChat.params}));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),onSuccess:function(e,t){var n={id:e.id,type:"ossfile",data:{id:e.id,name:e.name},metadata:{ext:e.ext,fileext:e.fileext,fileid:e.fileid,filename:e.filename,size:e.size,filesize:e.filesize,state:"successed"}};v.aiChat.replaceMaterial(t.name,n),null==l||l(e,t)},onError:function(e,t){var n=v.buildMaterialObject(t);Object.assign(n.metadata,{state:"failed"}),v.aiChat.replaceMaterial(t.name,n),null==u||u(e,t)},onProgress:function(e,t){null==h||h(e,t)}},new ue(f).openFilePicker();case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"buildMaterialObject",value:function(e){return{id:e.name,type:"ossfile",data:{name:e.name,id:e.name},metadata:{size:e.size,type:e.type,lastModified:e.lastModified}}}}]),o}(oi),si=function(){function e(){v(this,e)}return _(e,null,[{key:"getMaterialHelper",value:function(e,t){return"ossfile"===e?new ci(t):new ai(t)}}]),e}(),li=function(){function e(){v(this,e),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 ri(this)}var t,n;return _(e,[{key:"aiChat",get:function(){var e;return this.aiTopicMap.get("".concat(null===(e=this.aiTopic.activedTopic.value)||void 0===e?void 0:e.id))}},{key:"initIndexDB",value:(n=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le.checkTableExists(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME);case 2:if(e.sent){e.next=6;break}return e.next=6,le.createTable(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,ni.DATA_TABLE_KEY_NAME,!1);case 6:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"create",value:(t=p(d().mark((function e(t){var n,i,r,o,a,c,s=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initIndexDB();case 2:if(this.backupChatOptions=t,this.close(),this.container=document.createElement("div"),this.container.classList.add("ibiz-ai-chat"),document.body.appendChild(this.container),o=t.chatOptions,!t.mode||"TOPIC"!==t.mode){e.next=19;break}if(this.isMountedAiTopic){e.next=13;break}return e.next=12,this.aiTopic.fetchHistory(t.topicOptions);case 12:this.isMountedAiTopic=!0;case 13:return a=t.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,otherToolbarItems:o.otherToolbarItems,appendCurData:o.appendCurData,appendCurContent:o.appendCurContent}}),e.next=17,this.aiTopic.updateCurrentTopic(a);case 17:e.next=20;break;case 19:this.aiTopic.activedTopic.value=void 0;case 20:return Object.assign(o,{topicId:null===(n=a)||void 0===n?void 0:n.id,topic:a}),c=new ii(o),this.aiTopicMap.set("".concat(null===(i=a)||void 0===i?void 0:i.id),c),K(M(Ti,{aiChat:c,aiTopic:this.aiTopic,mode:t.mode?t.mode:"DEFAULT",containerOptions:t.containerOptions,caption:t.mode&&"TOPIC"===t.mode?"AI助手":o.caption,enableBackFill:null===(r=t.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(e){o.fullscreen&&o.fullscreen(e,o.context,o.params)},minimize:function(e){o.minimize&&o.minimize(e,o.context,o.params)}}),this.container),e.abrupt("return",c);case 25:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"switchAiChatController",value:function(e){var t,n,i,r,o,a=this,c=u({},this.backupChatOptions.chatOptions);(e.aiChat&&Object.assign(c,{caption:e.aiChat.caption,context:e.aiChat.context,params:e.aiChat.params,contentToolbarItems:e.aiChat.contentToolbarItems,footerToolbarItems:e.aiChat.footerToolbarItems,questionToolbarItems:e.aiChat.questionToolbarItems,otherToolbarItems:e.aiChat.otherToolbarItems,appendCurData:e.aiChat.appendCurData,appendCurContent:e.aiChat.appendCurContent,appDataEntityId:e.aiChat.appDataEntityId,topicId:e.id,topic:e,extendToolbarClick:this.backupChatOptions.chatOptions.extendToolbarClick,recommendPrompt:this.backupChatOptions.chatOptions.recommendPrompt}),this.aiTopicMap.has("".concat(e.id))?t=this.aiTopicMap.get("".concat(e.id)):(t=new ii(c),this.aiTopicMap.set("".concat(e.id),t)),this.container)&&(K(null,this.container),K(M(Ti,{aiChat:t,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(e){c.fullscreen&&c.fullscreen(e,c.context,c.params)},minimize:function(e){c.minimize&&c.minimize(e,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)}}]),e}(),ui=(t("chat",new li),new ee("chat-input-material")),di=function(e){var t=e.controller.materials;return _t("div",{className:ui.b(),children:t.value.map((function(t){return _t(rn,{material:t,disabled:!1,controller:e.controller},t.id)}))})},hi=function(e){var t=e.children,n=e.actions,i=e.content,r=e.position,o=void 0===r?"bottom":r,c=e.isOpen,s=e.onToggleOpen,l=e.onAction,d=new ee("pop"),h=Ie(Ci),p=a(Se(c||!1),2),f=p[0],v=p[1],m=Me(null),_=Me(null);Ae((function(){void 0!==c&&v(c)}),[c]),Ae((function(){return _.current||(_.current=document.createElement("div"),_.current.className=d.b("content-container"),document.body.appendChild(_.current)),function(){_.current&&document.body.removeChild(_.current)}}),[]),Ae((function(){var e=function(e){!m.current||m.current.contains(e.target)||e.target.closest(".".concat(d.b()))||e.target.closest(".ibiz-quick-edit")||e.target.closest(".ibiz-picker__transfer")||(v(!1),null==s||s(!1))};return f&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[f,s]);return _t("span",{className:"".concat(d.b("trigger-container")),children:[_t("span",{className:"".concat(d.b("trigger-element")),ref:m,onClick:function(e){e.stopPropagation();var t=!f;v(t),null==s||s(t)},children:t}),f&&_.current&&Pn(_t("div",{className:"".concat(d.b()," pop-").concat(o),style:function(){if(!m.current)return{};var e=m.current.getBoundingClientRect(),t={position:"absolute",zIndex:h.zIndex+1},n={bottom:{top:e.bottom+window.scrollY,left:e.left+window.scrollX},top:{bottom:window.innerHeight-e.top+window.scrollY,left:e.left+window.scrollX},left:{top:e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX},right:{top:e.top+window.scrollY,left:e.right+window.scrollX},"top-left":{bottom:window.innerHeight-e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX}};return u(u({},t),n[o])}(),children:i||(null==n?void 0:n.map((function(e){return _t("div",{title:e.caption,className:d.e("item"),onMouseDown:function(t){t.stopPropagation(),null==l||l(e.id,t)},children:[e.icon,_t("div",{className:d.em("item","caption"),children:e.caption})]},e.id)})))}),_.current)]})},pi=new ee("chat-input"),fi=window.SpeechRecognition||window.webkitSpeechRecognition,vi=function(e){var t,n=a(Se(!1),2),i=n[0],r=n[1],o=Me(null),c=e.controller.input,s=ft(!1),l=Me();fi&&!l.current&&(l.current=new fi,l.current.onstart=function(){s.value=!0},l.current.onend=function(){s.value=!1},l.current.onresult=function(e){var t,n=null===(t=e.results)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t[0])||void 0===t?void 0:t.transcript;n&&(c.value="".concat(c.value).concat(n))});var u=Le((function(e){c.value=e.target.value}),[c]),h=vt((function(){return c.value.length<=0}));Ae((function(){return o.current&&ti(o.current),function(){o.current&&ti.destroy(o.current)}}),[o]);var f=Le(p(d().mark((function t(){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=c.value,c.value="",t.next=5,e.controller.question(n);case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])}))),[c]),v=Le(p(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{e.controller.abortQuestion()}catch(n){console.error(n)}case 1:case"end":return t.stop()}}),t)}))),[c]),m=function(){var t=p(d().mark((function t(n){var i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=si.getMaterialHelper("ossfile",e.controller),t.next=3,i.excuteAction(n);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_=function(){var t=p(d().mark((function t(n,i){var o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=si.getMaterialHelper("common",e.controller),t.next=3,o.excuteAction(n,i);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}();return _t("div",{className:pi.b("wrapper"),children:[_t("div",{className:pi.b("material-wrapper"),children:_t(di,{controller:e.controller})}),_t("div",{className:pi.b("main-wrapper"),children:[_t("textarea",{className:pi.e("textarea"),type:"text",rows:6,autoCorrect:"off",autoCapitalize:"off",autoComplete:"off",value:c,onInput:u,onKeyDown:function(e){"Enter"!==e.code||e.isComposing||(e.stopPropagation(),!1===e.shiftKey&&f())},ref:o,disabled:e.controller.isLoading.value}),_t("div",{className:pi.b("action-wrapper"),children:[_t("div",{className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",e.controller.isLoading.value)),title:"上传资料",children:_t(hi,{content:_t("div",{className:pi.b("pop-actions"),children:[_t("div",{className:pi.b("pop-action-item"),onClick:function(e){m(e)},children:[_t("span",{className:pi.b("pop-action-item-icon"),children:_t(Ht,{})}),_t("span",{className:pi.b("pop-action-item-title"),children:"文件资料"})]}),null===(t=e.questionToolbarItems)||void 0===t?void 0:t.map((function(e){var t,n,i;return _t("div",{className:pi.b("pop-action-item"),onClick:function(t){_(t,e)},children:[_t("span",{className:pi.b("pop-action-item-icon"),children:"function"==typeof e.icon?e.icon():(null===(t=e.icon)||void 0===t?void 0:t.showIcon)&&_t(L,{children:null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):null})}),_t("span",{className:pi.b("pop-action-item-title"),children:e.label})]},e.id)}))]}),position:"top-left",isOpen:i,onToggleOpen:r,children:_t(Bt,{})})}),_t("div",{title:s.value?"语音输入中...":"语音输入",className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",e.controller.isLoading.value)),onClick:function(){l.current&&!s.value&&l.current.start()},children:s.value?_t(Mt,{}):_t(At,{})}),e.controller.isLoading.value?_t("div",{title:"停止生成",className:"".concat(pi.be("action-wrapper","action-item")),onClick:v,children:_t(Rt,{})}):_t("div",{title:"发送消息",className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",h.value)),onClick:f,children:_t(wt,{})})]})]})]})},mi=new ee("chat-topic-item"),_i=function(e){var t=e.controller,n=e.topic,i=e.onClick,r=e.onAction,o=Me(null),c=vt((function(){var e;return(null===(e=t.activedTopic.value)||void 0===e?void 0:e.id)===n.id})),s=a(Se(!1),2),l=s[0],u=s[1],d=ft(!1);return _t("div",{className:"".concat(mi.b()," ").concat(mi.is("active",c.value)," ").concat(mi.is("edit",d.value)),onClick:i.bind(void 0),children:[_t("div",{className:mi.e("caption"),title:n.caption,children:d.value?_t("input",{ref:o,value:n.caption,onBlur:function(e){e.stopPropagation(),d.value=!1,r("RENAME",e)},onKeyDown:function(e){e.stopPropagation(),"Enter"===e.key&&(d.value=!1)},onClick:function(e){return e.stopPropagation()},onChange:function(e){return(t=e).stopPropagation(),void(n.data.caption=null===(i=t.target)||void 0===i?void 0:i.value);var t,i},className:mi.em("caption","editor")}):_t("span",{className:mi.em("caption","text"),children:n.caption})}),!d.value&&_t("div",{className:mi.e("icon"),children:[_t("span",{title:"跳转主视图",className:mi.em("icon","item"),onClick:function(e){e.stopPropagation(),r("LINK",e)}.bind(void 0),children:_t(Lt,{className:mi.b("link-icon")})}),c.value?null:_t(hi,{actions:[{id:"RENAME",caption:"重命名",icon:_t(qt,{})},{id:"DELETE",caption:"删除话题",icon:_t(It,{})}],position:"bottom",isOpen:l,onToggleOpen:u,onAction:function(e,t){"DELETE"===e?r("DELETE",t):"RENAME"===e&&(d.value=!0,setTimeout((function(){var e;null===(e=o.current)||void 0===e||e.focus()}),100)),u(!1)}.bind(void 0),children:_t("span",{className:mi.em("icon","item"),title:"更多",children:_t(Ot,{className:mi.e("more-icon")})})})]})]})},gi=new ee("chat-search"),yi=function(e){var t=e.className,n=e.value,i=e.placeholder,r=e.onChange,o=a(Se(!1),2),c=o[0],s=o[1],l=function(e){var t;e.stopPropagation(),null==r||r(null===(t=e.target)||void 0===t?void 0:t.value)};return _t("div",{className:"".concat(gi.b()," ").concat(gi.is("focus",c)," ").concat(t||""),children:[_t("div",{className:gi.e("prefix"),children:_t($t,{})}),_t("input",{value:n,className:gi.e("inner"),placeholder:i,onFocus:function(){return s(!0)},onBlur:function(){return s(!1)},onChange:function(e){return l(e)}})]})},wi=new ee("chat-topics"),bi=function(e){var t=Me(null),n=ft(void 0),i=ft([]);Ae((function(){i.value=e.controller.topics.value.filter((function(e){var t,i;return null===(t=e.caption)||void 0===t?void 0:t.toLowerCase().includes((null===(i=n.value)||void 0===i?void 0:i.trim().toLowerCase())||"")}))}),[e.controller.topics.value]);return Ae((function(){var e=t.current;if(e){var n=e.querySelector(".ibiz-chat-topic-item.is-active");null==n||n.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[e.controller.activedTopic.value]),_t("div",{className:wi.b(),children:[_t("div",{className:wi.e("header"),children:_t(yi,{value:n.value,placeholder:"搜索话题",onChange:function(t){n.value=t,i.value=e.controller.topics.value.filter((function(e){var t,i;return null===(t=e.caption)||void 0===t?void 0:t.toLowerCase().includes((null===(i=n.value)||void 0===i?void 0:i.trim().toLowerCase())||"")}))}.bind(void 0)})}),_t("div",{ref:t,className:wi.e("main"),children:i.value&&i.value.length>0?i.value.map((function(t){return _t(_i,{topic:t,controller:e.controller,onClick:function(){return function(t){e.controller.handleTopicChange(t)}(t)},onAction:function(n,i){return function(t,n,i){e.controller.handleTopicAction(t,n,i)}(n,t,i)}},t.id)})):_t("div",{className:wi.e("empty"),children:"暂无话题"})}),_t("div",{className:wi.e("footer"),children:_t("div",{title:"清空会话",className:wi.e("action"),onClick:function(){return e.controller.clearTopic()},children:[_t(It,{}),_t("span",{children:"清空会话"})]})})]})},xi=new ee("chat-minimize"),ki=function(e){var t=Me(null),n=a(Se(""),2),i=n[0],r=n[1],o=a(Se(0),2),c=o[0],s=o[1],l=Me(!1),u={x:(window.innerWidth-86)/window.innerWidth,y:(window.innerHeight-86)/window.innerHeight},d=vt((function(){var t=e.controller.messages.value[e.controller.messages.value.length-1];return!!t&&("ASSISTANT"===t.role&&20===t.state&&!0!==t.completed)})),h=vt((function(){var t="";if(!d.value)return r(""),s(0),t;var n=e.controller.messages.value[e.controller.messages.value.length-1];if(t=n.content,-1!==n.content.indexOf("")){var i=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="";return-1===n?(i=e.slice(t+7),r=""):(i=e.slice(t+7,n),r=e.slice(n+8)),{thoughtContent:i,answerContent:r}}(n.content);t=i.thoughtContent+i.answerContent}return t})),p=function(){Object.assign(t.current.style,{left:"".concat(100*u.x,"%"),top:"".concat(100*u.y,"%")}),localStorage.setItem(ni.MINIMIZE_STYLY_CHCHE,JSON.stringify(u))};return Ae((function(){var e,n=localStorage.getItem(ni.MINIMIZE_STYLY_CHCHE);if(n){var i=JSON.parse(n);pe(i)&&Object.assign(u,i)}p(),(e=t.current)&&(e.onmousedown=function(t){document.body.style.userSelect="none";var n=t.clientX-e.offsetLeft,i=t.clientY-e.offsetTop,r=Date.now(),o=function(e){var t=56/window.innerWidth,r=56/window.innerHeight,o=fe(e.clientX-n,e.clientY-i,t,r),a=o.x,c=o.y;Object.assign(u,{x:a,y:c}),requestAnimationFrame((function(){p()}))};document.addEventListener("mousemove",o),document.addEventListener("mouseup",(function e(){var t=Date.now();l.current=t-r>300,document.body.style.userSelect="",document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",e)}))})}),[]),Ae((function(){if(c1-e?this.calcSideModeStyle(i1-t&&(this.data.window.y=1-a)),this.setStyle()}},{key:"registerDragDialog",value:function(){var e=this;this.dragHandle.current.onmousedown=function(t){if(!e.state.isFullScreen){document.body.style.userSelect="none";var n=t.clientX-e.containerRef.current.offsetLeft,i=t.clientY-e.containerRef.current.offsetTop,r=function(t){if(!e.disabled){e.data.showMode="window";var r=fe(t.clientX-n,t.clientY-i,e.data.window.width,e.data.window.height),o=r.x,a=r.y;Object.assign(e.data.window,{x:o,y:a}),e.setStyle()}};document.addEventListener("mousemove",r),document.addEventListener("mouseup",(function t(){document.body.style.userSelect="",document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t),e.disabled||e.snapToEdge()}))}}}},{key:"registerDragDialogBorder",value:function(){var e=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(t){if(!e.state.isFullScreen){var n="side"===e.data.showMode?e.data.side:e.data.window;n.x=t.rect.left/window.innerWidth,n.y=t.rect.top/window.innerHeight,n.width=t.rect.width/window.innerWidth,n.height=t.rect.height/window.innerHeight,e.setStyle()}},start:function(){e.disabled=!0,document.body.style.userSelect="none"},end:function(){e.disabled=!1,document.body.style.userSelect=""}}})}},{key:"handleFullScreenChange",value:function(){this.setState({isFullScreen:null!==document.fullscreenElement})}},{key:"componentDidMount",value:function(){this.handleFullScreenChange=this.handleFullScreenChange.bind(this);var e=localStorage.getItem(ni.STYLE_CACHE);if(e){var t=JSON.parse(e);t.side&&pe(t.side)&&t.window&&pe(t.window)&&Object.assign(this.data,t)}this.setStyle(),this.registerDragDialog(),this.registerDragDialogBorder(),document.addEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"close",value:function(){this.props.close()}},{key:"fullScreen",value:function(){var e=this.containerRef.current;e&&(e.requestFullscreen(),this.props.fullscreen(!0))}},{key:"closeFullScreen",value:function(){var e;this.state.isFullScreen&&(null===(e=document)||void 0===e||e.exitFullscreen(),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.setState({isMinimize:!1}),this.props.minimize(!1)}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"render",value:function(){return _t(Ci.Provider,{value:this.containerContext,children:_t("div",{className:"".concat(this.ns.b()),children:[_t("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:[_t("div",{ref:this.dragHandle,className:this.ns.b("header"),children:[_t("div",{className:this.ns.b("header-caption"),children:this.props.caption||"AI助手"}),_t("div",{className:this.ns.b("header-action-wrapper"),children:[_t("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:_t(Nt,{})}),this.state.isFullScreen?_t("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:_t(Tt,{})}):_t("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:_t(Ct,{})}),_t("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:_t(gt,{})})]})]}),"TOPIC"===this.props.mode?_t("div",{className:"".concat(this.ns.b("main")),children:[_t("div",{className:"".concat(this.ns.be("main","left")),children:_t(bi,{controller:this.props.aiTopic})}),_t("div",{className:"".concat(this.ns.be("main","right")),children:[_t("div",{className:this.ns.b("content"),children:_t(xn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(yn,{type:"footer",mode:this.props.mode,data:this.props.aiTopic.activedTopic.value,className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(vi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}):_t("div",{className:"".concat(this.ns.be("main","default")),children:[_t("div",{className:this.ns.b("content"),children:_t(xn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(yn,{type:"footer",mode:this.props.mode,data:this.props.aiTopic.activedTopic.value,className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(vi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}),_t(ki,{title:this.props.caption||"AI助手",controller:this.props.aiChat,isMinimize:this.state.isMinimize,onClick:this.exitMinimize.bind(this)})]})})}}]),o}(I);t("ChatContainer",Ti)}}}))}(); diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.25/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.25/polyfills.legacy.js new file mode 100644 index 0000000000000000000000000000000000000000..c8c7654431885af1a2dc12a9fe73b198407bf314 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.25/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+""},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+""},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="\t\n\v\f\r                 \u2028\u2029\ufeff",JE=L,qE=Ao,KE=VE,YE=S("".replace),XE=RegExp("^["+KE+"]+"),QE=RegExp("(^|[^"+KE+"])["+KE+"]+$"),ZE=function(t){return function(r){var e=qE(JE(r));return 1&t&&(e=YE(e,XE,"")),2&t&&(e=YE(e,QE,"$1")),e}},tx={start:ZE(1),end:ZE(2),trim:ZE(3)},rx=te.PROPER,ex=o,nx=VE,ox=tx.trim;ro({target:"String",proto:!0,forced:function(t){return ex((function(){return!!nx[t]()||"​…᠎"!=="​…᠎"[t]()||rx&&nx[t].name!==t}))}("trim")},{trim:function(){return ox(this)}});var ix=Dt,ux=hn,ax=co,cx=mo,fx=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=ix(this),e=ux(r),n=arguments.length;if(n){fx(e+n);for(var o=e;o--;){var i=o+n;o in r?r[i]=r[o]:cx(r,i)}for(var u=0;uo;)for(var a,c=mx(arguments[o++]),f=i?Sx(px(c),i(c)):px(c),s=f.length,l=0;s>l;)a=f[l++],sx&&!hx(u,c,a)||(e[a]=c[a]);return e}:bx,xx=Ex;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==xx},{assign:xx});var Ox={exports:{}},jx=o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Ix=o,Tx=B,Rx=j,Px=jx,Ax=Object.isExtensible,kx=Ix((function(){Ax(1)}))||Px?function(t){return!!Tx(t)&&((!Px||"ArrayBuffer"!==Rx(t))&&(!Ax||Ax(t)))}:Ax,Cx=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),Nx=ro,Lx=S,Fx=pe,Mx=B,_x=Gt,Dx=Rr.f,Ux=Qe,$x=mw,Gx=kx,zx=Cx,Wx=!1,Bx=Vt("meta"),Hx=0,Vx=function(t){Dx(t,Bx,{value:{objectID:"O"+Hx++,weakData:{}}})},Jx=Ox.exports={enable:function(){Jx.enable=function(){},Wx=!0;var t=Ux.f,r=Lx([].splice),e={};e[Bx]=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!!c(this,t)}}),hO(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)}}),wO&&lO(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=xO(r),i=xO(n);yO(t,r,(function(t,r){EO(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)?mO("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,mO(void 0,!0))}),e?"entries":"values",!e,!0),bO(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=Yx[t],a=u&&u.prototype,c=u,f={},s=function(t){var r=Xx(a[t]);Zx(a,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!iO(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(Qx(t,!nO(u)||!(o||a.forEach&&!uO((function(){(new u).entries().next()})))))c=e.getConstructor(r,t,n,i),tO.enable();else if(Qx(t,!0)){var l=new c,h=l[i](o?{}:-0,1)!==l,v=uO((function(){l.has(1)})),p=aO((function(t){new u(t)})),d=!o&&uO((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((c=r((function(t,r){eO(t,a);var e=fO(new u,t,c);return oO(r)||rO(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,Kx({global:!0,constructor:!0,forced:c!==u},f),cO(c,t),o||e.setStrong(c,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),OO);var jO,IO=ro,TO=Fu,RO=n.f,PO=sn,AO=Ao,kO=_E,CO=L,NO=UE,LO=TO("".startsWith),FO=TO("".slice),MO=Math.min,_O=NO("startsWith");IO({target:"String",proto:!0,forced:!!(_O||(jO=RO(String.prototype,"startsWith"),!jO||jO.writable))&&!_O},{startsWith:function(t){var r=AO(CO(this));kO(t);var e=PO(MO(arguments.length>1?arguments[1]:void 0,r.length)),n=AO(t);return LO?LO(r,n,e):FO(r,e,e+n.length)===n}});var DO=ro,UO=Ms.findIndex,$O=sm,GO="findIndex",zO=!0;GO in[]&&Array(1)[GO]((function(){zO=!1})),DO({target:"Array",proto:!0,forced:zO},{findIndex:function(t){return UO(this,t,arguments.length>1?arguments[1]:void 0)}}),$O(GO);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=tx.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;o \ No newline at end of file diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.26/index.min.css b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.26/index.min.css new file mode 100644 index 0000000000000000000000000000000000000000..aa670638d3eee436f6d5f633b1c39c776b18980c --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.26/index.min.css @@ -0,0 +1 @@ +@charset "UTF-8";.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-chat-suggestions{--ibiz-chat-suggestions-bg: var(--ibiz-ai-chat-background-color);--ibiz-chat-suggestions-hover-bg-color: var(--ibiz-ai-chat-hover-background-color);--ibiz-chat-suggestions-border: var(--ibiz-ai-chat-border-color);display:flex;flex-direction:column;gap:var(--ibiz-spacing-base-tight);width:100%}.ibiz-chat-suggestions__item{display:flex;align-items:center;align-self:flex-start;justify-content:space-between;min-width:200px;height:32px;padding:0 12px;overflow:hidden;line-height:32px;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background-color:var(--ibiz-chat-suggestions-bg);border:1px solid var(--ibiz-chat-suggestions-border);border-radius:12px;transition:.3s background-color}.ibiz-chat-suggestions__item:hover{background-color:var(--ibiz-chat-suggestions-hover-bg-color)}.ibiz-chat-suggestions__item.is-action{color:var(--ibiz-ai-chat-color-2);background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-suggestions__item.is-action:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-suggestions__item .ibiz-chat-suggestions__item-icon{margin-left:12px;font-size:18px}.ibiz-markdown-message{padding:6px 10px}.ibiz-markdown-message .cherry{border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-markdown-message .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-markdown-message .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-markdown-message .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-markdown-message .cherry div[data-type=codeBlock] pre[class*=language-]::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.2)}.ibiz-markdown-message .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-markdown-message .cherry-previewer{padding:8px;border:0}.ibiz-markdown-message .cherry-previewer figure{max-width:1200px}.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)}.ibiz-markdown-message-content .cherry div.cherry-previewer{color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color-light)}.ibiz-markdown-message-footer{padding:10px 0}@keyframes circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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-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%;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:10px 16px;margin:0;font-size:14px;line-height:1.5;color:var(--color-fg-default);word-wrap:break-word;background:#e7f8ff;background-color:var(--ibiz-ai-chat-background-color-light);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--material{display:flex;flex-flow:row-reverse wrap;gap:8px;align-items:center;margin-bottom:8px}.ibiz-user-message-question__content .cherry{min-height:0;border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-user-message-question__content .cherry-markdown p{margin:0}.ibiz-user-message-question__content .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-user-message-question__content .cherry-previewer{padding:0;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color-light);border:0}.ibiz-user-message-question__content .cherry-previewer figure{max-width:1200px}.ibiz-user-message-question__content .cherry-previewer figure>svg{width:100%;min-height:100px}.ibiz-user-message-question__content .anchor{display:none!important}.ibiz-user-message-question__user-header{display:flex;align-items:center;justify-content:end;width:100%;height:32px;margin-bottom:8px}.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:10px 16px;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{display:flex;padding:6px 10px;justify-content:end}.ibiz-unknown-message__content{padding:10px 16px;color:#000;width:max-content;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-item{position:relative;display:flex;align-items:center;white-space:nowrap;cursor:pointer}.ibiz-chat-toolbar-item__content{display:flex;align-items:center;white-space:nowrap}.ibiz-chat-toolbar-item__content--icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:18px;height:18px;font-size:18px}.ibiz-chat-toolbar-item__content--label,.ibiz-chat-toolbar-item__more{display:flex;align-items:center}.ibiz-chat-toolbar-item__more--icon{font-size:18px}.ibiz-chat-toolbar-item-default{width:fit-content;font-size:14px;color:var(--ibiz-ai-chat-color-2)}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__content{z-index:9;gap:6px;padding:2px 14px;line-height:28px;background-color:var(--ibiz-ai-chat-background-color-2);border-radius:12px}.ibiz-chat-toolbar-item-default.is-disabled{cursor:not-allowed}.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__content,.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__more{background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__content:hover,.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__more:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-default.is-more .ibiz-chat-toolbar-item__content{padding:2px 8px 2px 14px;border-radius:12px 0 0 12px}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__more{z-index:9;height:32px;padding:2px 14px 2px 8px;background-color:var(--ibiz-ai-chat-background-color-2);border-left:1px solid var(--ibiz-ai-chat-border-color);border-radius:0 12px 12px 0}.ibiz-chat-toolbar-item-circle{max-width:32px;height:32px;padding:6px;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-item-circle.is-disabled{color:var(--ibiz-ai-chat-disabled-color);cursor:not-allowed}.ibiz-chat-toolbar-item-circle: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-item-circle .ibiz-chat-toolbar-item__content--label{width:calc(100% - 32px);margin-left:8px;font-size:14px}.ibiz-chat-toolbar-item-dropdown{position:absolute;right:0;bottom:36px;display:flex;flex-direction:column;gap:4px;max-width:150px;padding:4px;background-color:var(--ibiz-ai-chat-background-color-2);border-radius:6px}.ibiz-chat-toolbar-item-dropdown__item{display:flex;gap:6px;align-items:center;padding:0 8px;line-height:32px;cursor:pointer;border-radius:6px}.ibiz-chat-toolbar-item-dropdown__item.is-disabled{cursor:not-allowed;background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-dropdown__item:hover:not(.is-disabled){background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-dropdown__item--icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:18px;height:18px;font-size:18px}.ibiz-chat-toolbar-item-dropdown__item--label{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-toolbar{display:flex;flex-wrap:wrap;align-items:center}.ibiz-chat-toolbar .ibiz-chat-toolbar-item:not(:first-child){margin-left:6px}.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{width:calc(100% - 12px);height:calc(100% - 12px);margin:6px;overflow:hidden auto}.ibiz-chat-messages::-webkit-scrollbar{width:6px}.ibiz-chat-messages::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-wrapper{max-height:72px;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:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-input__textarea::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);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-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{gap:4px;padding:4px;display:flex;min-width:120px;border-radius:8px;flex-direction:column;background-color:var(--ibiz-color-bg-3);border:1px solid var(--ibiz-color-border)}.ibiz-pop__item{display:flex;padding:0 8px;cursor:pointer;line-height:32px;border-radius:6px;align-items:center}.ibiz-pop__item:hover{background-color:var(--ibiz-color-primary-hover)}.ibiz-pop__item--caption{min-width:0;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-pop__item svg{width:16px;height:16px;flex-shrink:0;margin-right:8px;fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-topic-item{height:38px;display:flex;padding:0 8px;cursor:pointer;border-radius:12px;position:relative;align-items:center;font-size:var(--ibiz-font-size-regular)}.ibiz-chat-topic-item:hover:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item:hover:not(.is-edit) .ibiz-chat-topic-item__icon{opacity:1}.ibiz-chat-topic-item.is-active:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item.is-edit{border:2px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-topic-item__caption{width:100%;height:100%;display:flex;align-items:center}.ibiz-chat-topic-item__caption--text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-topic-item__caption--editor{width:100%;height:100%;border:none;outline:none;color:var(--ibiz-ai-chat-color);background:var(--ibiz-ai-chat-background-color)}.ibiz-chat-topic-item__icon{top:50%;gap:8px;opacity:0;right:10px;height:24px;display:flex;outline:none;padding:0 8px;border-radius:8px;position:absolute;align-items:center;justify-content:flex-end;transform:translateY(-50%);color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item__icon--item{font-size:12px}.ibiz-chat-search{gap:8px;width:100%;display:flex;line-height:32px;border-radius:1px;padding:1px 11px;align-items:center;justify-content:center;border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-search:hover,.ibiz-chat-search.is-focus{border:1px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-search__prefix{width:14px;height:14px;display:flex;flex-shrink:0;font-size:14px;align-items:center}.ibiz-chat-search__inner{padding:2px 0 0;outline:0;flex-grow:1;border:none;height:28px;min-width:0;color:inherit;line-height:28px;background-color:initial}.ibiz-chat-topics{display:flex;flex-direction:column;gap:8px;height:100%;padding:8px 0}.ibiz-chat-topics__header{flex-shrink:0;padding:0 8px}.ibiz-chat-topics__main{flex-grow:1;padding:0 8px;overflow-y:auto}.ibiz-chat-topics__empty{font-size:var(--ibiz-font-size-regular);text-align:center}.ibiz-chat-topics__footer{display:flex;flex-shrink:0;align-items:center;justify-content:center;padding:0 8px}.ibiz-chat-topics__action{display:flex;gap:4px;align-items:center;padding:4px 12px;font-size:14px;cursor:pointer;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:2px}.ibiz-chat-topics__action:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topics__action>svg{width:14px!important;height:14px!important}.ibiz-chat-minimize{width:56px;height:56px;display:flex;z-index:99999;cursor:pointer;position:absolute;border-radius:50%;align-items:center;justify-content:center}.ibiz-chat-minimize.is-hidden{display:none}.ibiz-chat-minimize.is-show-halo{width:90px;height:90px;background-size:cover;background-position:center;background-repeat:no-repeat;background-image:url(assets/gif/halo.gif)}.ibiz-chat-minimize__content{width:56px;height:56px;display:flex;border-radius:50%;align-items:center;justify-content:center;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color)}.ibiz-chat-minimize__content:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-minimize__content svg{fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-minimize__content.is-show-border{border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover{left:50%;bottom:90px;padding:8px;display:block;font-size:12px;border-radius:8px;position:absolute;transform:translate(-50%);box-shadow:0 2px 8px rgba(0,0,0,.1);background-color:var(--ibiz-ai-chat-background-color);color:var(--ibiz-ai-chat-color);border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover .typewriter{direction:rtl;overflow:hidden;max-width:200px;width:fit-content;white-space:nowrap;text-overflow:ellipsis;animation:typing 3s steps(40,end)}@keyframes blink{0%,to{opacity:0}50%{opacity:1}}@keyframes typing{0%{width:0}to{width:100%}}@keyframes blink-caret{0%,to{border-color:transparent}50%{border-color:var(--ibiz-ai-chat-color)}}.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-ai-chat-scroll-bar-width: 8px;--ibiz-ai-chat-scroll-bar-height: 8px;--ibiz-ai-chat-scroll-bar-radius: 4px}.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__toolbar{margin:0;left:20px;gap:8px 4px;bottom:118px;min-height:48px;position:absolute;justify-content:center;width:calc(100% - 40px)}.ibiz-chat-container__toolbar.is-has-materials{bottom:180px}.ibiz-chat-container *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-container *::-webkit-scrollbar-thumb{border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.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-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.26/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.26/index.system.min.js new file mode 100644 index 0000000000000000000000000000000000000000..9ce1560d2d7d317ae1aeb84bf5804592700064c4 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.26/index.system.min.js @@ -0,0 +1 @@ +!function(){function e(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)}function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,n)}function n(e){var t=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(e){return!1}}();return function(){var n,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}(this,n)}}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||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(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(e,t)||c(e,t)||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(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);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;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:I(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function h(e,t,n,i,r,o,a){try{var c=e[o](a),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(i,r)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){h(o,i,r,a,c,"next",e)}function c(e){h(o,i,r,a,c,"throw",e)}a(void 0)}))}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===c[a]&&(c[a]=e.defaultProps[a]);return O(e,c,i,o,null)}function O(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++h:r};return null==r&&null!=l.vnode&&l.vnode(o),o}function L(e){return e.children}function I(e,t){this.props=e,this.context=t}function D(e,t){if(null==t)return e.__?D(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&y.sort(x));B.__r=0}function H(e,t,n,i,r,o,a,c,s,l,u){var d,h,p,f,v,m,_,g,y,w=0,b=i&&i.__k||T,x=b.length,k=x,N=t.length;for(n.__k=[],d=0;d0?O(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)?(f.__=n,f.__b=n.__b+1,-1===(g=V(f,b,_=d+w,k))?p=C:(p=b[g]||C,b[g]=void 0,k--),$(e,f,p,r,o,a,c,s,l,u),v=f.__e,(h=f.ref)&&p.ref!=h&&(p.ref&&Z(p.ref,null,f),u.push(h,f.__c||v,f)),null!=v&&(null==m&&(m=v),(y=p===C||null===p.__v)?-1==g&&w--:g!==_&&(g===_+1?w++:g>_?k>N-_?w+=g-_:w--:w=g<_&&g==_-1?g-_:0),_=d+w,"function"!=typeof f.type||g===_&&p.__k!==f.__k?"function"==typeof f.type||g===_&&!y?void 0!==f.__d?(s=f.__d,f.__d=void 0):s=v.nextSibling:s=R(e,v,s):s=j(f,s,e),"function"==typeof n.type&&(n.__d=s))):(p=b[d])&&null==p.key&&p.__e&&(p.__e==s&&(p.__=i,s=D(p)),G(p,p,!1),b[d]=null);for(n.__e=m,d=x;d--;)null!=b[d]&&("function"==typeof n.type&&null!=b[d].__e&&b[d].__e==n.__d&&(n.__d=b[d].__e.nextSibling),G(b[d],b[d]))}function j(e,t,n){for(var i,r=e.__k,o=0;r&&o(null!=s?1:0))for(;a>=0||c=0){if((s=t[a])&&r==s.key&&o===s.type)return a;a--}if(c0&&void 0!==arguments[0]?arguments[0]:"";return Q(this.namespace,this.block,e,"","")}},{key:"e",value:function(e){return e?Q(this.namespace,this.block,"",e,""):""}},{key:"m",value:function(e){return e?Q(this.namespace,this.block,"","",e):""}},{key:"be",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,t,""):""}},{key:"em",value:function(e,t){return e&&t?Q(this.namespace,this.block,"",e,t):""}},{key:"bm",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,"",t):""}},{key:"bem",value:function(e,t,n){return e&&t&&n?Q(this.namespace,this.block,e,t,n):""}},{key:"is",value:function(e,t){return e&&t?"".concat("is-").concat(e):""}},{key:"cssVar",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarName(n)]=e[n]);return t}},{key:"cssVarBlock",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarBlockName(n)]=e[n]);return t}},{key:"cssVarName",value:function(e){return"--".concat(this.namespace,"-").concat(e)}},{key:"cssVarBlockName",value:function(e){return"--".concat(this.namespace,"-").concat(this.block,"-").concat(e)}}]),e}();function te(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ne(e,t){for(var n,i="",r=0,o=-1,a=0,c=0;c<=e.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}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(o+1,c):i=e.slice(o+1,c),r=c-o-1;o=c,a=0}else 46===n&&-1!==a?++a:a=-1}return i}var ie={resolve:function(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var r;i>=0?r=arguments[i]:(void 0===e&&(e=process.cwd()),r=e),te(r),0!==r.length&&(t=r+"/"+t,n=47===r.charCodeAt(0))}return t=ne(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(te(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=ne(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return te(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":ie.normalize(e)},relative:function(e,t){if(te(e),te(t),e===t)return"";if((e=ie.resolve(e))===(t=ie.resolve(t)))return"";for(var n=1;nc){if(47===t.charCodeAt(o+l))return t.slice(o+l+1);if(0===l)return t.slice(o+l)}else r>c&&(47===e.charCodeAt(n+l)?s=l:0===l&&(s=0));break}var u=e.charCodeAt(n+l);if(u!==t.charCodeAt(o+l))break;47===u&&(s=l)}var d="";for(l=n+s+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(o+s):(o+=s,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(te(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,r=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');te(e);var n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,c=-1;for(n=e.length-1;n>=0;--n){var s=e.charCodeAt(n);if(47===s){if(!o){i=n+1;break}}else-1===c&&(o=!1,c=n+1),a>=0&&(s===t.charCodeAt(a)?-1==--a&&(r=n):(a=-1,r=c))}return i===r?r=c:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){te(e);for(var t=-1,n=0,i=-1,r=!0,o=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(r=!1,i=a+1),46===c?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=a+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==f(e))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+f(e));return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}("/",e)},parse:function(e){te(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0),r=47===i;r?(t.root="/",n=1):n=0;for(var o=-1,a=0,c=-1,s=!0,l=e.length-1,u=0;l>=n;--l)if(47!==(i=e.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&&(t.base=t.name=0===a&&r?e.slice(1,c):e.slice(a,c)):(0===a&&r?(t.name=e.slice(1,o),t.base=e.slice(1,c)):(t.name=e.slice(a,o),t.base=e.slice(a,c)),t.ext=e.slice(o,c)),a>0?t.dir=e.slice(0,a-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};function re(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function oe(){return"".concat(re()+re(),"-").concat(re(),"-").concat(re(),"-").concat(re(),"-").concat(re()).concat(re()).concat(re())}ie.posix=ie;var ae=/]*>[\s\S]*?<\/svg>/;function ce(e){return ae.test(e)}var se=function(){function e(){v(this,e)}return _(e,null,[{key:"copy",value:function(e){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=e,this.inputElement.select(),document.execCommand("copy")}}]),e}();g(se,"inputElement",null);var le=function(){function e(){v(this,e)}var t,n,i,r,o,a,c,s,l,u;return _(e,null,[{key:"checkDataBaseExists",value:(u=p(d().mark((function e(t){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,indexedDB.databases();case 3:return n=e.sent,e.abrupt("return",n.some((function(e){return e.name===t})));case 7:return e.prev=7,e.t0=e.catch(0),console.error("检查数据库是否存在时出错:",e.t0),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])}))),function(e){return u.apply(this,arguments)})},{key:"deleteDatabase",value:(l=p(d().mark((function t(n){var i,r;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.lastLink&&(null===(i=(r=e.lastLink).close)||void 0===i||i.call(r)),t.abrupt("return",new Promise((function(e,t){var i=indexedDB.deleteDatabase(n);i.onsuccess=function(){e(!0)},i.onerror=function(){e(!1)},i.onblocked=function(){console.warn("删除数据库 ".concat(n," 被阻塞,可能有其他连接正在使用该数据库。")),t(new Error("删除数据库 ".concat(n," 被阻塞")))}})));case 2:case"end":return t.stop()}}),t)}))),function(e){return l.apply(this,arguments)})},{key:"checkTableExists",value:(s=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.checkDataBaseExists(n);case 2:if(t.sent){t.next=5;break}return t.abrupt("return",!1);case 5:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onupgradeneeded=function(t){e.db=t.target.result,e.version=e.db.version},o.onsuccess=function(n){e.db=n.target.result,e.lastLink=o.result;var r=e.db.objectStoreNames.contains(i);o.result.close(),t(r)},o.onerror=function(e){r(e.target.error)}})));case 6:case"end":return t.stop()}}),t)}))),function(e,t){return s.apply(this,arguments)})},{key:"createTable",value:(c=p(d().mark((function t(n,i,r){var o,a=arguments;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=a.length>3&&void 0!==a[3]&&a[3],t.abrupt("return",new Promise((function(t){var a,c;e.version+=1,e.lastLink&&(null===(a=(c=e.lastLink).close)||void 0===a||a.call(c));var s=indexedDB.open(n,e.version);s.onupgradeneeded=function(t){if(e.db=t.target.result,!e.db.objectStoreNames.contains(i)){var n={};r?n.keyPath=r:o&&(n.autoIncrement=!0),e.db.createObjectStore(i,n)}},s.onsuccess=function(){e.lastLink=s.result,s.result.close(),t(!0)},s.onerror=function(){t(!1)}})));case 2:case"end":return t.stop()}}),t)}))),function(e,t,n){return c.apply(this,arguments)})},{key:"deleteTable",value:(a=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){var r,o;e.version+=1,e.lastLink&&(null===(r=(o=e.lastLink).close)||void 0===r||r.call(o));var a=indexedDB.open(n,e.version);a.onupgradeneeded=function(t){e.db=t.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)&&e.db.deleteObjectStore(i)},a.onsuccess=function(n){e.db=n.target.result,e.lastLink=a.result,a.result.close(),t(!0)},a.onerror=function(){a.result.close(),t(!1)}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t){return a.apply(this,arguments)})},{key:"addData",value:(o=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).add(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(null)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return o.apply(this,arguments)})},{key:"deleteData",value:(r=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).delete(r);o.onsuccess=function(e){t(!0)},o.onerror=function(){t(!1)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"updateData",value:(i=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).put(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(r)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"getData",value:(n=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var c=e.db.transaction([i],"readonly").objectStore(i).get(r);c.onsuccess=function(e){t(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 t.stop()}}),t)}))),function(e,t,i){return n.apply(this,arguments)})},{key:"getAllData",value:(t=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=o.result,e.db.objectStoreNames.contains(i)){var r=e.db.transaction([i],"readonly").objectStore(i).getAll();r.onsuccess=function(e){t(r.result)},r.onerror=function(){t([])}}o.result.close()},o.onerror=function(){o.result.close(),r()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}]),e}();g(le,"version",1),g(le,"db",null),g(le,"lastLink",void 0);var ue=function(){function e(t){v(this,e),g(this,"options",void 0),this.options=u({multiple:!0,accept:"*/*",maxSize:5242880},t)}var t,n;return _(e,[{key:"openFilePicker",value:function(){var e=this,t=document.createElement("input");t.type="file",t.multiple=this.options.multiple,t.accept=this.options.accept||"",t.onchange=function(t){var n=Array.from(t.target.files||[]);e.handleFiles(n)},t.click()}},{key:"handleFiles",value:(n=p(d().mark((function e(t){var n,i,r,o=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.length){e.next=2;break}return e.abrupt("return");case 2:return r=t.filter((function(e){var t,n;return!(o.options.maxSize&&e.size>o.options.maxSize&&(null===(t=(n=o.options).onError)||void 0===t||t.call(n,new Error("文件大小超过限制 (".concat(o.formatSize(e.size)," > ").concat(o.formatSize(o.options.maxSize),")")),e),1))})),null===(n=(i=this.options).onSelect)||void 0===n||n.call(i,r),e.next=6,Promise.all(r.map((function(e){return o.processFile(e)})));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"processFile",value:(t=p(d().mark((function e(t){var n,i,r,o,a,c,s,l,u=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a=function(e){var n,i;null===(n=(i=u.options).onProgress)||void 0===n||n.call(i,t,e)},e.next=4,this.options.onUpload(t,a);case 4:c=e.sent,null===(n=(i=this.options).onProgress)||void 0===n||n.call(i,t,100),null===(r=(o=this.options).onSuccess)||void 0===r||r.call(o,c,t),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),null===(s=(l=this.options).onError)||void 0===s||s.call(l,e.t0 instanceof Error?e.t0:new Error("上传失败"),t);case 12:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e){return t.apply(this,arguments)})},{key:"formatSize",value:function(e){if(0===e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat((e/Math.pow(1024,t)).toFixed(2)," ").concat(["B","KB","MB","GB"][t])}}]),e}(),de=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("resource")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r),c=o?JSON.parse(o):{},s=a?JSON.parse(a):{};return{id:c.id,type:n,data:c,metadata:s}}catch(Jn){throw new Error("XML 解析错误: ".concat(Jn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/resources>/i.exec(e);if(!t)return{resources:[],remainingText:e,hasResources:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.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(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("resources");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("resource");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}(),he=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("suggestion")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r);return{type:n,data:o?JSON.parse(o):{},metadata:a?JSON.parse(a):{}}}catch(Jn){throw new Error("XML 解析错误: ".concat(Jn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/suggestions>/i.exec(e);if(!t)return{suggestions:[],remainingText:e,hasSuggestions:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.slice(r)).replace(/\n/g,"");try{return{suggestions:this.parse(n),remainingText:o,hasSuggestions:!0}}catch(c){return{suggestions:[],remainingText:o,hasSuggestions:!0,error:"资源解析失败: ".concat(c.message)}}}},{key:"stringify",value:function(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("suggestions");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("suggestion");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}();function pe(e){return e.x>=0&&e.x<=1&&e.y>=0&&e.y<=1}function fe(e,t,n,i){var r=e/window.innerWidth,o=t/window.innerHeight;return{x:Math.max(0,Math.min(r,1-n)),y:Math.max(0,Math.min(o,1-i))}}var ve,me,_e,ge,ye=0,we=[],be=[],xe=l.__b,ke=l.__r,Ce=l.diffed,Te=l.__c,Ne=l.unmount;function Ee(e,t){l.__h&&l.__h(me,e,ye||t),ye=0;var n=me.__H||(me.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:be}),n.__[e]}function Se(e){return ye=1,function(e,t,n){var i=Ee(ve++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):Fe(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=me,!me.u)){var r=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var a=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&i.__c.props===e)&&(!o||o.call(this,e,t,n))};me.u=!0;var o=me.shouldComponentUpdate,a=me.componentWillUpdate;me.componentWillUpdate=function(e,t,n){if(this.__e){var i=o;o=void 0,r(e,t,n),o=i}a&&a.call(this,e,t,n)},me.shouldComponentUpdate=r}return i.__N||i.__}(Fe,e)}function Ae(e,t){var n=Ee(ve++,3);!l.__s&&je(n.__H,t)&&(n.__=e,n.i=t,me.__H.__h.push(n))}function Me(e){return ye=5,Oe((function(){return{current:e}}),[])}function Oe(e,t){var n=Ee(ve++,7);return je(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Le(e,t){return ye=8,Oe((function(){return e}),t)}function Ie(e){var t=me.context[e.__c],n=Ee(ve++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(me)),t.props.value):e.__}function De(){for(var e;e=we.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Be),e.__H.__h.forEach(He),e.__H.__h=[]}catch(ei){e.__H.__h=[],l.__e(ei,e.__v)}}l.__b=function(e){me=null,xe&&xe(e)},l.__r=function(e){ke&&ke(e),ve=0;var t=(me=e.__c).__H;t&&(_e===me?(t.__h=[],me.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=be,e.__N=e.i=void 0}))):(t.__h.forEach(Be),t.__h.forEach(He),t.__h=[],ve=0)),_e=me},l.diffed=function(e){Ce&&Ce(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==we.push(t)&&ge===l.requestAnimationFrame||((ge=l.requestAnimationFrame)||Pe)(De)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==be&&(e.__=e.__V),e.i=void 0,e.__V=be}))),_e=me=null},l.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Be),e.__h=e.__h.filter((function(e){return!e.__||He(e)}))}catch(Ge){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l.__e(Ge,e.__v)}})),Te&&Te(e,t)},l.unmount=function(e){Ne&&Ne(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Be(e)}catch(e){t=e}})),n.__H=void 0,t&&l.__e(t,n.__v))};var ze="function"==typeof requestAnimationFrame;function Pe(e){var t,n=function(){clearTimeout(i),ze&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);ze&&(t=requestAnimationFrame(n))}function Be(e){var t=me,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),me=t}function He(e){var t=me;e.__c=e.__(),me=t}function je(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Fe(e,t){return"function"==typeof t?t(e):t}function Re(){throw new Error("Cycle detected")}var Ve=Symbol.for("preact-signals");function We(){if(Xe>1)Xe--;else{for(var e,t=!1;void 0!==$e;){var n=$e;for($e=void 0,Ze++;void 0!==n;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&et(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=i}}if(Ze=0,Xe--,t)throw e}}var Ue,qe,Ye=void 0,$e=void 0,Xe=0,Ze=0,Ge=0;function Je(e){if(void 0!==Ye){var t=e.n;if(void 0===t||t.t!==Ye)return t={i:0,S:e,p:Ye.s,n:void 0,t:Ye,e:void 0,x:void 0,r:t},void 0!==Ye.s&&(Ye.s.n=t),Ye.s=t,e.n=t,32&Ye.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=Ye.s,t.n=void 0,Ye.s.n=t,Ye.s=t),t}}function Ke(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Qe(e){return new Ke(e)}function et(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function tt(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function nt(e){for(var t=e.s,n=void 0;void 0!==t;){var i=t.p;-1===t.i?(t.S.U(t),void 0!==i&&(i.n=t.n),void 0!==t.n&&(t.n.p=i)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=i}e.s=n}function it(e){Ke.call(this,void 0),this.x=e,this.s=void 0,this.g=Ge-1,this.f=4}function rt(e){return new it(e)}function ot(e){var t=e.u;if(e.u=void 0,"function"==typeof t){Xe++;var n=Ye;Ye=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,at(e),t}finally{Ye=n,We()}}}function at(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ot(e)}function ct(e){if(Ye!==this)throw new Error("Out-of-order effect");nt(this),Ye=e,this.f&=-2,8&this.f&&at(this),We()}function st(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function lt(e){var t=new st(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function ut(e,t){l[e]=t.bind(null,l[e]||function(){})}function dt(e){qe&&qe(),qe=e&&e.S()}function ht(e){var t=this,n=e.data,i=ft(n);i.value=n;var r=Oe((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e;m(r.peek())||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=r.peek()},rt((function(){var e=i.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return r.value}function pt(e,t,n,i){var r=t in e&&void 0===e.ownerSVGElement,o=Qe(n);return{o:function(e,t){o.value=e,i=t},d:lt((function(){var n=o.value.value;i[t]!==n&&(i[t]=n,r?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}function ft(e){return Oe((function(){return Qe(e)}),[])}function vt(e){var t=Me(e);return t.current=e,Ue.__$f|=4,Oe((function(){return rt((function(){return t.current()}))}),[])}Ke.prototype.brand=Ve,Ke.prototype.h=function(){return!0},Ke.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},Ke.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Ke.prototype.subscribe=function(e){var t=this;return lt((function(){var n=t.value,i=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=i}}))},Ke.prototype.valueOf=function(){return this.value},Ke.prototype.toString=function(){return this.value+""},Ke.prototype.toJSON=function(){return this.value},Ke.prototype.peek=function(){return this.v},Object.defineProperty(Ke.prototype,"value",{get:function(){var e=Je(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(Ye instanceof it&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Ze>100&&Re(),this.v=e,this.i++,Ge++,Xe++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{We()}}}}),(it.prototype=new Ke).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Ge)return!0;if(this.g=Ge,this.f|=1,this.i>0&&!et(this))return this.f&=-2,!0;var e=Ye;try{tt(this),Ye=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return Ye=e,nt(this),this.f&=-2,!0},it.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Ke.prototype.S.call(this,e)},it.prototype.U=function(e){if(void 0!==this.t&&(Ke.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},it.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},it.prototype.peek=function(){if(this.h()||Re(),16&this.f)throw this.v;return this.v},Object.defineProperty(it.prototype,"value",{get:function(){1&this.f&&Re();var e=Je(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),st.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},st.prototype.S=function(){1&this.f&&Re(),this.f|=1,this.f&=-9,ot(this),tt(this),Xe++;var e=Ye;return Ye=this,ct.bind(this,e)},st.prototype.N=function(){2&this.f||(this.f|=2,this.o=$e,$e=this)},st.prototype.d=function(){this.f|=8,1&this.f||at(this)},ht.displayName="_st",Object.defineProperties(Ke.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ht},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),ut("__b",(function(e,t){if("string"==typeof t.type){var n,i=t.props;for(var r in i)if("children"!==r){var o=i[r];o instanceof Ke&&(n||(t.__np=n={}),n[r]=o,i[r]=o.peek())}}e(t)})),ut("__r",(function(e,t){dt();var n,i=t.__c;i&&(i.__$f&=-2,void 0===(n=i.__$u)&&(i.__$u=n=function(e){var t;return lt((function(){t=this})),t.c=function(){i.__$f|=1,i.setState({})},t}())),Ue=i,dt(n),e(t)})),ut("__e",(function(e,t,n,i){dt(),Ue=void 0,e(t,n,i)})),ut("diffed",(function(e,t){var n;if(dt(),Ue=void 0,"string"==typeof t.type&&(n=t.__e)){var i=t.__np,r=t.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=pt(n,s,u,r),o[s]=l):l.o(u,r)}}}e(t)})),ut("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__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=t.__c;if(a){var c=a.__$u;c&&(a.__$u=void 0,c.d())}}e(t)})),ut("__h",(function(e,t,n,i){(i<3||9===i)&&(t.__$f|=2),e(t,n,i)})),I.prototype.shouldComponentUpdate=function(e,t){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 t)return!0;for(var r in e)if("__source"!==r&&e[r]!==this.props[r])return!0;for(var o in this.props)if(!(o in e))return!0;return!1};var mt=0;function _t(e,t,n,i,r,o){var a,c,s={};for(c in t)"ref"==c?a=t[c]:s[c]=t[c];var u={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--mt,__source:r,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===s[c]&&(s[c]=a[c]);return l.vnode&&l.vnode(u),u}var gt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},yt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},wt=function(e){return _t("svg",{viewBox:"0 0 1024 1024",id:"send",className:e.className,version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},bt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},xt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},kt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Ct=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Tt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Nt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M960 544H64a32 32 0 1 1 0-64h896a32 32 0 1 1 0 64"})})},Et=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[_t("path",{d:"M481.0752 263.3728l50.9952 1.024 1.8432-105.8816-50.9952-0.8192z"}),_t("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"}),_t("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"}),_t("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"}),_t("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"}),_t("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"})]})},St=function(){return _t("svg",{viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_t("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"}),_t("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"}),_t("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"})]})},At=function(){return _t("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_t("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"})})},Mt=function(){var e=1e3,t=140,n=250,i=.8;return _t("svg",{fill:"currentColor",viewBox:"0 0 ".concat(e," ").concat(e),xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:Array.from({length:4}).map((function(e,r){return _t("rect",{fill:"currentColor",rx:70,ry:70,height:n,width:t,x:286.66666666666663*r,y:375,children:[_t("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"}),_t("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)}))})},Ot=function(e){return _t("svg",{className:e.className,onClick:e.onClick,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Lt=function(e){return _t("svg",{className:e.className,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},It=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M972.657609 209.348408C987.158609 209.36839 998.930114 197.571202 998.949999 182.99865 998.969882 168.426097 987.230618 156.59651 972.729617 156.576528L32.457975 155.280806C17.956974 155.260823 6.18547 167.058012 6.165585 181.630564 6.1457 196.203116 17.884965 208.032703 32.385966 208.052686L972.657609 209.348408ZM180.466902 992.356169 180.466902 1019.014859 206.993296 1018.74074 833.361858 1012.267947 859.348284 1011.999407 859.348284 985.883377 859.348284 289.397297C859.348284 274.824732 847.59289 263.011332 833.091874 263.011332 818.590859 263.011332 806.835465 274.824732 806.835465 289.397297L806.835465 985.883377 832.82189 959.498805 206.453329 965.971599 232.979723 992.356169 232.979723 282.67005C232.979723 268.097483 221.224329 256.284085 206.723313 256.284085 192.222298 256.284085 180.466902 268.097483 180.466902 282.67005L180.466902 992.356169ZM656.410257 847.079027C656.410257 861.651593 668.165651 873.464992 682.666667 873.464992 697.167682 873.464992 708.923076 861.651593 708.923076 847.079027L708.923076 372.131659C708.923076 357.559091 697.167682 345.745694 682.666667 345.745694 668.165651 345.745694 656.410257 357.559091 656.410257 372.131659L656.410257 847.079027ZM341.333333 847.079027C341.333333 861.651593 353.08873 873.464992 367.589743 873.464992 382.090758 873.464992 393.846155 861.651593 393.846155 847.079027L393.846155 372.131659C393.846155 357.559091 382.090758 345.745694 367.589743 345.745694 353.08873 345.745694 341.333333 357.559091 341.333333 372.131659L341.333333 847.079027ZM498.871795 847.079027C498.871795 861.651593 510.627189 873.464992 525.128205 873.464992 539.62922 873.464992 551.384614 861.651593 551.384614 847.079027L551.384614 372.131659C551.384614 357.559091 539.62922 345.745694 525.128205 345.745694 510.627189 345.745694 498.871795 357.559091 498.871795 372.131659L498.871795 847.079027ZM392.147755 116.721777C392.147755 102.063669 403.758665 90.363507 418.40134 90.363507L622.925796 90.363507C637.408947 90.363507 649.179381 102.1619 649.179381 116.549585L649.179381 171.644875 701.692203 171.644875 701.692203 116.549585C701.692203 72.986607 666.38105 37.591577 622.925796 37.591577L418.40134 37.591577C374.724427 37.591577 339.634933 72.950804 339.634933 116.721777L339.634933 165.310801 392.147755 165.310801 392.147755 116.721777Z"})})},Dt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 184l144 144 144-144"})})},zt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"".concat(e.className," icon"),viewBox:"0 0 512 512",children:_t("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"})})},Pt=function(e){return _t("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",children:_t("circle",{cx:"25",cy:"25",r:"20",stroke:"currentColor",strokeWidth:"5",fill:"none",strokeDasharray:"31.415, 31.415",strokeLinecap:"round",children:_t("animateTransform",{attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"1s",repeatCount:"indefinite"})})})},Bt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ht=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},jt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ft=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Rt=function(e){return _t("svg",{className:e.className,id:"stop",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},Vt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})})},Wt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("path",{d:"M394.688 126.208a32 32 0 0 1 32-32h170.688a32 32 0 0 1 32 32v138.624h288a32 32 0 0 1 32 32v170.688a32 32 0 0 1-32 32H106.688a32 32 0 0 1-32-32V296.832a32 32 0 0 1 32-32h288V126.208z m64 32v138.624a32 32 0 0 1-32 32h-288v106.688h746.688V328.832h-288a32 32 0 0 1-32-32V158.208H458.688z"}),_t("path",{d:"M138.688 469.376a32 32 0 0 1 32-32h682.688a32 32 0 0 1 32 32v384a32 32 0 0 1-32 32H170.688a32 32 0 0 1-32-32v-384z m64 32v320h618.688v-320H202.688z"}),_t("path",{d:"M341.376 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32zM512 691.2a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0v-128a32 32 0 0 1 32-32zM682.688 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32z"})]})},Ut=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("path",{d:"M843.251 424.407l43.828-74.898c10.194-17.946 32.596-22.158 48.956-11.598 16.298 10.499 23.44 32.658 14.223 49.566l-113.11 195.212-61.164-40.044-126.418-82.285c-16.115-11.598-20.632-34.428-10.194-51.702 9.705-17.397 31.009-23.501 47.857-13.734l89.67 59.028C748.576 295.547 615.81 180.667 461.008 180.667c-177.387 0-320.042 148.758-320.042 331.335 0 183.613 143.692 331.334 319.981 331.334 107.861 0.184 208.58-56.158 268.034-149.858 1.099-1.038 1.099-2.075 2.075-2.075 6.348-9.949 17.092-15.871 28.568-15.81 19.35 0 35.648 16.848 35.648 36.93 0 7.508-2.137 14.833-6.104 21.059-72.823 114.698-196.066 183.675-328.099 183.614-216.088 0-391.4-181.478-391.4-405.195 0-223.718 175.312-405.195 391.339-405.195 183.125-0.427 342.016 131.606 382.243 317.601z"})})},qt=function(){return _t("svg",{version:"1.1",className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M627.498667 55.168l170.666666 170.666667a42.624 42.624 0 0 1 0 60.330666l-469.333333 469.333334A42.538667 42.538667 0 0 1 298.666667 768H128a42.666667 42.666667 0 0 1-42.666667-42.666667v-170.666666c0-11.306667 4.48-22.186667 12.501334-30.165334l469.333333-469.333333a42.624 42.624 0 0 1 60.330667 0zM896 896a42.666667 42.666667 0 0 1 0 85.333333H128a42.666667 42.666667 0 0 1 0-85.333333h768zM597.333333 145.664l-426.666666 426.666667V682.666667h110.336l426.666666-426.666667L597.333333 145.664z"})})},Yt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M184 112l144 144-144 144"})})},$t=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M896 870.4l-128-128c55.467-68.267 89.6-149.333 89.6-238.933 0-98.134-38.4-192-110.933-264.534-149.334-149.333-384-149.333-533.334-4.266-145.066 145.066-145.066 384 0 529.066 72.534 72.534 166.4 110.934 264.534 110.934 89.6 0 174.933-29.867 238.933-89.6l128 128c4.267 4.266 12.8 8.533 21.333 8.533s17.067-4.267 21.334-8.533c17.066-8.534 17.066-29.867 8.533-42.667zM260.267 721.067c-119.467-123.734-119.467-320 0-439.467 59.733-59.733 140.8-89.6 217.6-89.6 81.066 0 157.866 29.867 217.6 89.6 59.733 59.733 89.6 136.533 89.6 217.6 0 81.067-34.134 162.133-89.6 217.6-55.467 59.733-132.267 93.867-217.6 93.867-81.067 0-157.867-34.134-217.6-89.6z"})})},Xt=function(e){var t=e.items,n=ft([]),i=new ee("chat-thought-chain"),r=ft([]);Ae((function(){r.value=t.filter((function(e){return e.description})),r.value.length>0&&r.value.forEach((function(e,t){e.done&&(n.value=[].concat(o(n.value),[t]))}))}),[t]);return 0===r.value.length?null:_t("div",{className:"".concat(i.b()," ").concat(i.is("single",1===r.value.length)),children:r.value.map((function(e,t){if(e.description){var r=n.value.includes(t);return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("collapsed",r)),children:[_t("div",{className:i.e("item-icon"),children:e.icon||_t("span",{children:t})}),_t("div",{className:i.e("item-content"),children:[_t("div",{className:i.e("item-title"),onClick:function(){return function(e){n.value.includes(e)?n.value=n.value.filter((function(t){return t!==e})):n.value=[].concat(o(n.value),[e])}(t)},children:[e.title,_t(Dt,{className:i.e("icon")})]}),_t("div",{className:i.e("item-description"),children:e.description})]})]},t)}}))})},Zt=function(e){var t=e.items,n=e.onItemClick,i=new ee("chat-suggestions");return _t("div",{className:"".concat(i.b()),children:t.map((function(e,t){return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("action","action"===e.type)),onClick:function(t){return function(e,t){null==n||n(e,t)}(e,t)},title:e.metadata.content_name,children:[e.metadata.content_name,_t(Yt,{className:"".concat(i.e("item-icon"))})]},t)}))})},Gt=new ee("markdown-message"),Jt=function(e){var t=e.message,n=e.size,i=ft(oe()),r=ft(null),o=Oe((function(){return 20===t.state&&!0!==t.completed}),[t.state,t.completed]),a=Oe((function(){return 20===t.state&&!0===t.completed}),[t.state,t.completed]),c=ft({title:"",description:"",icon:_t(Pt,{})}),l=ft({hasSuggestions:!1,suggestions:[]}),u=function(e){e&&e.length>0?l.value={hasSuggestions:!0,suggestions:e}:l.value={hasSuggestions:!1,suggestions:[]}},d=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="",o=!1;return-1===n?(o=!1,i=e.slice(t+7),r=""):(o=!0,i=e.slice(t+7,n),r=e.slice(n+8)),{isThoughtCompleted:o,thoughtContent:i,answerContent:r}};return Ae((function(){if(n>=0&&r.value){if(-1!==t.content.indexOf("")){var e=d(t.content),i=e.isThoughtCompleted,o=e.thoughtContent,a=e.answerContent;i?(c.value.icon=_t(zt,{}),c.value.title="思考完成"):!0===t.completed?(c.value.icon=_t(zt,{}),c.value.title="思考已停止"):(c.value.icon=_t(Pt,{}),c.value.title="思考中..."),c.value.description=o||"",r.value.setMarkdown(a||"")}else r.value.setMarkdown(t.content||"");u(t.suggestions)}}),[t,n]),Ae((function(){var e="";if(-1!==t.content.indexOf("")){var n=d(t.content),o=n.isThoughtCompleted,a=n.thoughtContent,l=n.answerContent;c.value={title:o?"思考完成":!0===t.completed?"思考已停止":"思考中...",description:a||"",icon:o||!0===t.completed?_t(zt,{}):_t(Pt,{})},l&&(e=l)}else e=t.content;u(t.suggestions),r.value=new s({id:i,value:e||"",editor:{defaultModel:"previewOnly"},themeSettings:{mainTheme:"dark",codeBlockTheme:"dark"},previewer:{enablePreviewerBubble:!1}})}),[]),_t("div",{className:"".concat(Gt.b()," ").concat(Gt.is("loading",o)),children:[_t("div",{className:Gt.b("header"),children:[_t("div",{className:Gt.be("header","caption"),children:"AI "}),e.children,a?_t("div",{className:Gt.be("header","timeout"),children:"请求超时"}):null]}),_t("div",{className:"".concat(Gt.b("content")," pre-wrap-container"),children:[_t(Xt,{items:[c.value]}),_t("div",{id:i})]}),_t("div",{className:Gt.b("footer"),children:l.value.hasSuggestions?_t(Zt,{items:l.value.suggestions,onItemClick:function(t,n){!function(t,n){e.controller.handleSuggestionClick(e.message,t,n)}(t,n)}}):null})]})},Kt=new ee("ossfile-material"),Qt=function(e){var t=vt((function(){return e.material.data.name})),n=vt((function(){return e.material.metadata.size})),i=vt((function(){var t=e.material.metadata.state;return"successed"===t?"上传成功":"uploading"===t?"上传中":"failed"===t?"上传失败":"未知状态"})),r=vt((function(){switch(e.material.metadata.state){case"successed":return"#1890ff";case"uploading":return"#52c41a";default:return"#ff4d4f"}}));return _t("div",{className:Kt.b(),children:[_t("div",{className:Kt.b("left"),children:_t(Ht,{})}),_t("div",{className:Kt.b("right"),children:[_t("div",{className:Kt.e("name"),title:t,children:t}),_t("div",{className:Kt.e("metadata"),children:[_t("div",{children:[n,"B"]}),_t("div",{style:{color:r.value},children:i})]})]})]})},en=new ee("common-material"),tn=function(e){var t,n,i,r,o=null===(t=e.controller.opts.questionToolbarItems)||void 0===t?void 0:t.find((function(t){return t.id===e.material.metadata.actionId})),a=vt((function(){return e.material.metadata.name}));return _t("div",{className:en.b(),children:[_t("div",{className:en.b("left"),children:o&&o.icon?"function"==typeof o.icon?o.icon():(null===(n=o.icon)||void 0===n?void 0:n.showIcon)&&_t(L,{children:null!==(i=o.icon)&&void 0!==i&&i.cssClass?_t("i",{className:o.icon.cssClass}):null!==(r=o.icon)&&void 0!==r&&r.imagePath?ce(o.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:o.icon.imagePath}}):_t("img",{src:o.icon.imagePath}):null}):_t(Ft,{})}),_t("div",{className:en.b("right"),children:[_t("div",{className:en.e("name"),title:a,children:a}),_t("div",{className:en.e("metadata"),children:_t("div",{children:(null==o?void 0:o.label)||"素材资源"})})]})]})},nn=new ee("chat-input-material-item"),rn=function(e){var t=e.material,n=null;if("ossfile"===t.type)n=Qt;else n=tn;return _t("div",{className:"".concat(nn.b()," ").concat(nn.is("disabled",e.disabled)),children:[_t("div",{className:nn.e("icon"),onClick:function(){e.controller.deleteMaterial(t)},children:_t(jt,{})}),M(n,{material:t,controller:e.controller})]})},on=new ee("user-message-question"),an=function(e){var t=ft(oe()),n=ft(null),i=vt((function(){return e.message.content})),r=vt((function(){return de.parseMixedContent(i.value)}));return Ae((function(){n.value=new s({id:t,value:r.value.remainingText||"",editor:{defaultModel:"previewOnly"},themeSettings:{mainTheme:"dark",codeBlockTheme:"dark"},previewer:{enablePreviewerBubble:!1}})}),[r.value.remainingText]),_t("div",{className:on.b(),children:[_t("div",{className:on.e("user-header"),children:[e.children,_t("div",{className:on.e("user"),children:"我"})]}),_t("div",{className:on.e("content"),children:_t("div",{className:on.em("content","body"),children:[r.value.hasResources&&_t("div",{className:on.em("content","material"),children:r.value.resources.map((function(t){return _t(rn,{material:t,disabled:!0,controller:e.controller},t.id)}))}),_t("div",{className:"pre-wrap-container",children:_t("div",{id:t})})]})})]})},cn=new ee("error-message"),sn=function(e){var t=vt((function(){return e.message.content}));return _t("div",{className:cn.b(),children:[_t("div",{className:cn.b("header"),children:[_t("div",{className:cn.be("header","caption"),children:"AI "}),e.children]}),_t("div",{className:"".concat(cn.e("content")," pre-wrap-container"),children:_t("span",{children:t})})]})},ln=new ee("unknown-message"),un=function(e){return _t("div",{className:ln.b(),children:_t("div",{className:"".concat(ln.e("content")," pre-wrap-container"),children:["暂未支持的消息类型: ",e.message.type]})})},dn=new ee("chat-message-item"),hn=function(e){var t=e.message,n=e.size,i=null;switch(t.type){case"DEFAULT":i="ASSISTANT"===t.role?Jt:an;break;case"ERROR":i=sn;break;default:i=un}return _t("div",{className:dn.b(),children:M(i,{size:n,message:t,controller:e.controller,children:e.children})})},pn=function(){function e(t){v(this,e),this.msg=t}return _(e,[{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 e=this.msg.content;if(-1!==e.indexOf("")&&-1===e.indexOf(""))return"";if(-1!==(e=e.replace(/[^]*?<\/think>/g,"").trim()).indexOf("")&&-1===e.indexOf(""))return"";var t=(e=e.replace(/[^]*?<\/resources>/g,"").trim()).indexOf("");return-1!==t&&(e=e.substring(0,t).trim()),e}},{key:"content",get:function(){return this.msg.content}},{key:"completed",get:function(){return this.msg.completed}},{key:"suggestions",get:function(){return this.msg.suggestions}},{key:"_origin",get:function(){return this.msg}},{key:"update",value:function(e){e.content||(e.content=""),-1!==e.content.indexOf("")&&this.msg.content&&(this.msg.content=""),this.msg.content+=e.content}},{key:"updateCompleted",value:function(e){this.msg.completed=e}}]),e}(),fn=function(){function e(t){v(this,e),this.data=t}return _(e,[{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:"sourceCaption",get:function(){return this.data.sourceCaption||this.caption}},{key:"url",get:function(){return this.data.url}},{key:"aiChat",get:function(){return this.data.aiChat}}]),e}(),vn=function(){function e(t){v(this,e),this.material=t}return _(e,[{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}}]),e}(),mn=new ee("chat-toolbar-item"),_n=function(e){var t,n,i,r=e.model,o=e.data,c=e.className,s=e.disabled,l=void 0!==s&&s,u=e.buttonType,d=void 0===u?"default":u,h=e.onClick,p=a(Se(!1),2),f=p[0],v=p[1],m=Me(null),_=function(e){return"function"==typeof e.hidden?e.hidden(o):!0===e.hidden};if(_(r))return _t(L,{});var g=function(e){return!!l||("function"==typeof e.disabled?e.disabled(o):!0===e.disabled)},y=function(e){var t,n,i,r;return"function"==typeof e.icon?e.icon():null!==(t=e.icon)&&void 0!==t&&t.showIcon&&null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.showIcon&&null!==(r=e.icon)&&void 0!==r&&r.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):void 0},w=function(e,t){g(t)||(v(!1),h(e,t))};return Ae((function(){var e=function(e){m.current&&m.current.contains(e.target)||v(!1)};return f&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[f]),_t("div",{className:"".concat(mn.b()," ").concat(mn.b(d)," ").concat(r.customClass||""," ").concat(c||""," ").concat(mn.is("disabled",g(r))," ").concat(mn.is("more",!(null===(t=r.children)||void 0===t||!t.length))),children:[_t("div",{title:r.title,className:mn.e("content"),onClick:function(e){return w(e,r)},children:[_t("div",{className:mn.em("content","icon"),children:y(r)}),_t("div",{className:mn.em("content","label"),children:r.label})]}),(null===(n=r.children)||void 0===n?void 0:n.length)&&_t("div",{title:"更多",className:mn.e("more"),onClick:function(e){g(r)||v(!0)},children:_t("i",{"aria-hidden":"true",className:"fa fa-angle-down ".concat(mn.em("more","icon"))})}),f&&_t("div",{ref:m,className:mn.b("dropdown"),children:null===(i=r.children)||void 0===i?void 0:i.map((function(e,t){if(!_(e))return _t("div",{title:e.title,onClick:function(t){return w(t,e)},className:"".concat(mn.be("dropdown","item")," ").concat(e.customClass||""," ").concat(mn.is("disabled",g(e))),children:[_t("div",{className:mn.bem("dropdown","item","icon"),children:y(e)}),_t("div",{className:mn.bem("dropdown","item","label"),children:e.label})]},t)}))})]})},gn=new ee("chat-toolbar"),yn=function(e){var t=e.controller,n=e.items,i=void 0===n?[]:n,r=e.data,a=e.type,c=e.className,s=e.mode,l=Ie(Ci),d=[],h=[{label:"重置对话",title:"重置对话",icon:function(){return _t(Ut,{})},onClick:function(){t.resetTopic()},children:[{label:"清空对话",title:"清空对话",icon:function(){return _t(Wt,{})},onClick:function(){t.clearTopic()}},{label:"新建对话",title:"新建对话",hidden:"TOPIC"!==s,icon:function(){return _t(St,{})},onClick:function(){l.newTopic&&l.newTopic()}}]}],p=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r)}},{label:"删除",title:"删除",icon:function(){return _t(bt,{})},onClick:function(){t.deleteMessage(r)}},{label:"复制",title:"复制",icon:function(){return _t(kt,{})},onClick:function(){t.copyMessage(r)}}];l.enableBackFill&&p.unshift.apply(p,[{label:"回填",title:"回填",icon:function(){return _t(yt,{})},onClick:function(){t.backfill(r)}}]);var f=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r,!0)}}];if("content"===a)switch(r.type){case"DEFAULT":d="ASSISTANT"===r.role?[].concat(p,o(i)):[].concat(f);break;case"ERROR":d=[].concat(p,o(i))}else d=[].concat(h,o(i));var v=function(n,i){var o=u({},r);if(r instanceof pn?(Object.assign(o,{topic:t.topic}),o.msg.realcontent=r.realcontent):(o.data||(o.data={}),Object.assign(o.data,{messages:t.messages.value})),i.onClick&&"function"==typeof i.onClick)i.onClick(n,i,t.context,t.params,o);else{var a=e.controller.opts.extendToolbarClick;a&&"function"==typeof a&&a(n,i,t.context,t.params,o)}},m=Oe((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 _t("div",{className:"".concat(gn.b()," ").concat(c||""),children:d.map((function(e,t){return _t(_n,{data:r,model:e,disabled:m,buttonType:"content"===a?"circle":"default",onClick:v.bind(void 0)},t)}))})};var wn=function(e){var t,n,i,r=ft(!1),o=ft({}),a=new ee("chat-back-bottom"),c=ft(null),s=function(){if(c.value){var t=e.visibilityHeight||200,n=c.value.scrollHeight-c.value.scrollTop-c.value.offsetHeight;r.value=n>=t}},l=(t=s,n=300,i=null,function(){for(var e=this,r=arguments.length,o=new Array(r),a=0;a3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),K(M(Dn,{context:t.context},e.__v),t.l)}function Pn(e,t){var n=M(zn,{__v:e,i:t});return n.containerInfo=t,n}(Ln.prototype=new I).__a=function(e){var t=this,n=On(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),In(t,e,i)):r()};n?n(o):o()}},Ln.prototype.render=function(e){this.u=null,this.o=new Map;var t=F(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ln.prototype.componentDidUpdate=Ln.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){In(e,n,t)}))};var Bn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Hn=/^(?: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]/,jn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Fn=/[A-Z0-9]/g,Rn="undefined"!=typeof document,Vn=function(e){return("undefined"!=typeof Symbol&&"symbol"==f(Symbol())?/fil|che|rad/:/fil|che|ra/).test(e)};I.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(I.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Wn=l.event;function Un(){}function qn(){return this.cancelBubble}function Yn(){return this.defaultPrevented}l.event=function(e){return Wn&&(e=Wn(e)),e.persist=Un,e.isPropagationStopped=qn,e.isDefaultPrevented=Yn,e.nativeEvent=e};var $n={enumerable:!1,configurable:!0,get:function(){return this.class}},Xn=l.vnode;l.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={};for(var r in t){var o=t[r];if(!("value"===r&&"defaultValue"in t&&null==o||Rn&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===o?o="":"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Vn(t.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":jn.test(r)?r=a:-1===n.indexOf("-")&&Hn.test(r)?r=r.replace(Fn,"-$&").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(t.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=F(t.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",$n)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=Bn,Xn&&Xn(e)};var Zn=l.__r;l.__r=function(e){Zn&&Zn(e),e.__c};var Gn=l.diffed;l.diffed=function(e){Gn&&Gn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};var Jn=new Map;function Kn(e){var t=Jn.get(e);t&&t.destroy()}function Qn(e){var t=Jn.get(e);t&&t.update()}var ei=null;"undefined"==typeof window?((ei=function(e){return e}).destroy=function(e){return e},ei.update=function(e){return e}):((ei=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!Jn.has(e)){var t,n=null,i=window.getComputedStyle(e),r=(t=e.value,function(){a({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),o=function(t){e.removeEventListener("autosize:destroy",o),e.removeEventListener("autosize:update",c),e.removeEventListener("input",r),window.removeEventListener("resize",c),Object.keys(t).forEach((function(n){return e.style[n]=t[n]})),Jn.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",o),e.addEventListener("autosize:update",c),e.addEventListener("input",r),window.addEventListener("resize",c),e.style.overflowX="hidden",e.style.wordWrap="break-word",Jn.set(e,{destroy:o,update:c}),c()}function a(t){var r,o,c=t.restoreTextAlign,s=void 0===c?null:c,l=t.testForHeightReduction,u=void 0===l||l,d=i.overflowY;if(0!==e.scrollHeight&&("vertical"===i.resize?e.style.resize="none":"both"===i.resize&&(e.style.resize="horizontal"),u&&(r=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null}))}}(e),e.style.height=""),o="content-box"===i.boxSizing?e.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):e.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&o>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(e.style.overflow="scroll"),o=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(e.style.overflow="hidden"),e.style.height=o+"px",s&&(e.style.textAlign=s),r&&r(),n!==o&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=o),d!==i.overflow&&!s)){var h=i.textAlign;"hidden"===i.overflow&&(e.style.textAlign="start"===h?"end":"start"),a({restoreTextAlign:h,testForHeightReduction:!0})}}function c(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Kn),e},ei.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Qn),e});var ti=ei,ni=function(e){return e.STYLE_CACHE="ai-chat-style-cache",e.MINIMIZE_STYLY_CHCHE="ai-chat-minimize-style-cache",e.DATA_BASE_NAME="ibiz-chat",e.DATA_TABLE_NAME="history-message",e.DATA_TABLE_KEY_NAME="id",e}(ni||{}),ii=function(){function e(t){v(this,e),g(this,"messages",Qe([])),g(this,"materials",Qe([])),g(this,"input",Qe("")),g(this,"isLoading",Qe(!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=t,this.context=t.context,this.params=t.params,this.appDataEntityId=t.appDataEntityId,this.topicId=t.topicId,this.topic=t.topic,this.fecthHistory()}var t,n,i,r,a,c,s,l,h,f;return _(e,[{key:"fecthHistory",value:(f=p(d().mark((function e(){var t,n=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=7;break}return e.next=3,le.getData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 3:if(!((t=e.sent)&&t.data&&t.data.length>0)){e.next=7;break}return t.data.forEach((function(e){var t={messageid:e.messageid,state:e.state,type:e.type,role:e.role,content:e.content,suggestions:e.suggestions,completed:!0};n.addMessage(t)})),e.abrupt("return",!0);case 7:return e.next=9,this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId,appendCurData:this.opts.appendCurData});case 9:return e.sent&&this.opts.appendCurContent&&this.addMessage({state:30,messageid:oe(),role:"USER",type:"DEFAULT",content:this.opts.appendCurContent,completed:!0}),e.abrupt("return",!0);case 12:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"asyncToIndexDB",value:(h=p(d().mark((function e(){var t;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.topicId){e.next=2;break}return e.abrupt("return");case 2:return t={id:this.topicId,data:this.messages.value.map((function(e){return e._origin})),timestamp:(new Date).getTime()},e.next=5,le.updateData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"setInput",value:function(e){this.input.value=e||""}},{key:"addMessage",value:function(e){var t=this.messages.value.find((function(t){return t.messageid===e.messageid}));t?(t.update(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB()}},{key:"completeMessage",value:(l=p(d().mark((function e(t,n){var i;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(i=this.messages.value.find((function(e){return e.messageid===t})))){e.next=6;break}return i.updateCompleted(n),this.messages.value=o(this.messages.value),e.next=6,this.asyncToIndexDB();case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"replaceMessage",value:function(e){var t=this,n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==n?(this.messages.value[n]=new pn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB(),"DEFAULT"===e.type&&this.opts.recommendPrompt&&this.opts.recommendPrompt(this.context,this.params,{appDataEntityId:this.appDataEntityId,message:{messages:[e]}}).then((function(n){n&&n.content&&t.updateRecommendPrompt(e,n.content)}))}},{key:"stopMessage",value:(s=p(d().mark((function e(t){var n,i;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return-1!==(n=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})))?(i=this.messages.value[n],t.content=i.content,this.messages.value[n]=new pn(t),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(t)]),e.next=4,this.asyncToIndexDB();case 4:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"stringlyMaterialResource",value:function(){var e="",t=[];return this.materials.value&&this.materials.value.length>0&&(this.materials.value.forEach((function(e){if("ossfile"===e.type){var n=e.metadata;n.state&&"successed"===n.state&&t.push(e)}else t.push(e)})),this.materials.value=[]),t&&t.length>0&&(e=de.stringify(t)),e}},{key:"question",value:(c=p(d().mark((function e(t){var n,i=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.isLoading.value=!0,this.messages.value.forEach((function(e,t){var n=e._origin;n.suggestions&&(n.suggestions=void 0,i.messages.value[t]=new pn(n))})),this.messages.value=o(this.messages.value),this.asyncToIndexDB(),(n=this.stringlyMaterialResource())?n+="\n".concat(t):n=t,this.addMessage({state:30,messageid:oe(),role:"USER",type:"DEFAULT",content:n}),e.next=10,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 10:this.opts.action&&this.opts.action("question",t),this.isLoading.value=!1;case 12:return e.prev=12,this.isLoading.value=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[0,,12,15]])}))),function(e){return c.apply(this,arguments)})},{key:"abortQuestion",value:(a=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.opts.abortQuestion(this);case 3:return e.prev=3,this.isLoading.value=!1,e.finish(3);case 6:case"end":return e.stop()}}),e,this,[[0,,3,6]])}))),function(){return a.apply(this,arguments)})},{key:"backfill",value:function(e){this.opts.action&&this.opts.action("backfill",e)}},{key:"deleteMessage",value:function(e){var t=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==t&&(this.messages.value.splice(t,1),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),this.opts.action&&this.opts.action("deletemsg",e)}},{key:"refreshMessage",value:(r=p(d().mark((function e(t){var n,i,r,a=arguments;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],this.isLoading.value=!0,e.prev=2,i=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})),!n){e.next=11;break}return this.messages.value.splice(i+1,this.messages.value.length-i-1),this.messages.value=o(this.messages.value),e.next=9,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 9:e.next=21;break;case 11:if(i!==this.messages.value.length-1){e.next=18;break}return this.messages.value.pop(),this.messages.value=o(this.messages.value),e.next=16,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 16:e.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",t);case 23:return e.prev=23,this.isLoading.value=!1,e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[2,,23,26]])}))),function(e){return r.apply(this,arguments)})},{key:"copyMessage",value:function(e){var t=e.realcontent;se.copy(t),this.opts.action&&this.opts.action("copymsg",e)}},{key:"resetTopic",value:(i=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.abortQuestion();case 2:if(!this.topicId){e.next=5;break}return e.next=5,le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 5:this.messages.value=[],this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId});case 7:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"clearTopic",value:(n=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.abortQuestion();case 2:if(!this.topicId){e.next=5;break}return e.next=5,le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 5:this.messages.value=[];case 6:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"addMaterial",value:function(e){var t=this.materials.value.find((function(t){return t.id===e.id}));this.materials.value=t?o(this.materials.value):[].concat(o(this.materials.value),[new vn(e)])}},{key:"replaceMaterial",value:function(e,t){var n=this.materials.value.findIndex((function(t){return t.id===e}));-1!==n?(this.materials.value[n]=new vn(t),this.materials.value=o(this.materials.value)):this.materials.value=[].concat(o(this.materials.value),[new vn(t)])}},{key:"deleteMaterial",value:function(e){var t=this.materials.value.findIndex((function(t){return t.id===e.id}));-1!==t&&(this.materials.value.splice(t,1),this.materials.value=o(this.materials.value))}},{key:"updateRecommendPrompt",value:function(e,t){if(t){var n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid})),i=he.parseMixedContent(t).suggestions;i&&i.length>0&&(e.suggestions=i,-1!==n?(this.messages.value[n]=new pn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB())}}},{key:"handleSuggestionClick",value:(t=p(d().mark((function e(t,n,i){var r,a,c,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:-1!==(r=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})))&&((a=this.messages.value[r]._origin).suggestions=void 0,this.messages.value[r]=new pn(a),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),c=n.type,e.t0=c,e.next="action"===e.t0?7:"raw"===e.t0?17:20;break;case 7:if(!this.opts.extendToolbarClick){e.next=16;break}if(s=n.data.actionid){e.next=11;break}throw new Error("actionid不能为空");case 11:return l=u({},t),Object.assign(l,{topic:this.topic}),l.msg.realcontent=t.realcontent,e.next=16,this.opts.extendToolbarClick(i,{id:s,appId:this.context.srfappid},this.context,this.params,l);case 16:case 19:return e.abrupt("break",21);case 17:return e.next=19,this.question(n.data.content);case 20:throw new Error("不支持".concat(c,"推荐类型"));case 21:case"end":return e.stop()}}),e,this)}))),function(e,n,i){return t.apply(this,arguments)})}]),e}(),ri=function(){function e(t){v(this,e),g(this,"topics",Qe([])),g(this,"activedTopic",Qe(void 0)),g(this,"currentTopicOptions",void 0),this.chat=t}var t,n,i,r,a,c,s;return _(e,[{key:"fetchHistory",value:(s=p(d().mark((function e(t){var n,i,r=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.configService(t.appid,"aitopics",t.type),e.next=3,n.load();case 3:(i=e.sent)&&i.length>0&&i.forEach((function(e){r.topics.value=[].concat(o(r.topics.value),[new fn(e)])}));case 5:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})},{key:"updateCurrentTopic",value:(c=p(d().mark((function e(t){var n,i,r,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.currentTopicOptions=t,n=this.topics.value.findIndex((function(e){return e.id===t.id})),i=new fn(t),-1!==n?this.topics.value.splice(n,1,new fn(t)):this.topics.value=[].concat(o(this.topics.value),[new fn(t)]),r=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),a=t.configService(t.appid,"aitopics",t.type),e.next=8,null==a?void 0:a.save(r);case 8:this.activedTopic.value=i;case 9:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"removeTopic",value:(a=p(d().mark((function e(t,n,i,r,a){var c,s,l,u,h;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=!0,!t.beforeDelete){e.next=5;break}return e.next=4,t.beforeDelete(n,i,r,a);case 4:s=e.sent;case 5:if(s){e.next=7;break}return e.abrupt("return");case 7:return-1!==(l=this.topics.value.findIndex((function(e){return e.id===r.id})))&&(this.topics.value.splice(l,1),this.topics.value=o(this.topics.value)),u=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),h=t.configService(t.appid,"aitopics",t.type),e.next=13,null==h?void 0:h.save(u);case 13:return e.next=15,le.deleteData(ni.DATA_BASE_NAME,ni.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 e.stop()}}),e,this)}))),function(e,t,n,i,r){return a.apply(this,arguments)})},{key:"updateTopic",value:(r=p(d().mark((function e(t,n){var i,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),r=t.configService(t.appid,"aitopics",t.type),e.next=4,null==r?void 0:r.save(i);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"handleTopicChange",value:function(e){var t;(null===(t=this.activedTopic.value)||void 0===t?void 0:t.id)!==e.id&&(this.activedTopic.value=e,this.chat.switchAiChatController(e))}},{key:"handleTopicAction",value:(i=p(d().mark((function e(t,n,i){var r,o,a,c,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.topics.value.find((function(e){return e.id===n.id})),!(this.currentTopicOptions&&r&&r.aiChat)){e.next=12;break}if(c=r.aiChat,s=c.context,l=c.params,"DELETE"!==t){e.next=8;break}return e.next=6,this.removeTopic(this.currentTopicOptions,s,l,r,i);case 6:e.next=11;break;case 8:if("RENAME"!==t){e.next=11;break}return e.next=11,this.updateTopic(this.currentTopicOptions,n);case 11:null===(o=(a=this.currentTopicOptions).action)||void 0===o||o.call(a,t,s,l,n,i);case 12:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"newTopic",value:(n=p(d().mark((function e(){var t,n,i,r,a,c,s,l,u;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this.activedTopic.value){e.next=3;break}return e.abrupt("return");case 3:return r=i.id.split("@")[0],a=this.topics.value.filter((function(e){return e.id.startsWith(r)})),c={appid:i.appid,id:"".concat(r,"@").concat(Date.now()),type:i.type,caption:"".concat(null===(t=i.sourceCaption)||void 0===t?void 0:t.split("_")[0],"_").concat(a.length),sourceCaption:i.sourceCaption,url:i.url,aiChat:i.aiChat},s=new fn(c),this.topics.value=[].concat(o(this.topics.value),[s]),l=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),u=null===(n=this.currentTopicOptions)||void 0===n?void 0:n.configService(c.appid,"aitopics",c.type),e.next=12,null==u?void 0:u.save(l);case 12:this.handleTopicChange(s);case 13:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"clearTopic",value:(t=p(d().mark((function e(){var t,n,i,r,o,a=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.topics.value.find((function(e){var t;return e.id===(null===(t=a.activedTopic.value)||void 0===t?void 0:t.id)})),this.currentTopicOptions&&n){e.next=3;break}return e.abrupt("return");case 3:if(i=!0,!this.currentTopicOptions.beforeDelete){e.next=8;break}return e.next=7,this.currentTopicOptions.beforeDelete(n.aiChat.context,n.aiChat.params,n,void 0,!0);case 7:i=e.sent;case 8:if(i){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,Promise.all(this.topics.value.map((function(e){if(e.id!==(null==n?void 0:n.id))return le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,e.id)})));case 12:return this.topics.value=n?[n]:[],r=null===(t=this.currentTopicOptions)||void 0===t?void 0:t.configService(this.currentTopicOptions.appid,"aitopics",this.currentTopicOptions.type),o=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),e.next=17,null==r?void 0:r.save(o);case 17:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),oi=_((function e(t){v(this,e),this.aiChat=t})),ai=function(t){e(o,t);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=p(d().mark((function e(t,n){var i,r,o,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n||!n.onClick||"function"!=typeof n.onClick){e.next=6;break}return e.next=3,n.onClick(t,n,this.aiChat.context,this.aiChat.params);case 3:i=e.sent,e.next=14;break;case 6:if(!(r=this.aiChat.opts.extendToolbarClick)){e.next=13;break}return e.next=10,r(t,n,this.aiChat.context,this.aiChat.params,{});case 10:i=e.sent,e.next=14;break;case 13:console.error("未找到扩展工具栏点击事件");case 14:i&&i.data&&i.data.length>0&&(o=i.data[0],a={id:o.id,type:o.type,data:o.data||{},metadata:o.metadata||{}},n.id&&Object.assign(a.metadata,{actionId:n.id}),this.aiChat.addMaterial(a));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})}]),o}(oi),ci=function(t){e(o,t);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=p(d().mark((function e(t,n){var i,r,o,a,c,s,l,u,h,f,v=this;return d().wrap((function(e){for(;;)switch(e.prev=e.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,h=i.onProgress,f={multiple:r||!0,accept:o||"*/*",maxSize:a||5242880,onSelect:function(e){null==c||c(e),e.length>0&&e.forEach((function(e){var t=v.buildMaterialObject(e);Object.assign(t.metadata,{state:"uploading"}),v.aiChat.addMaterial(t)}))},onUpload:function(){var e=p(d().mark((function e(t,n){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s(t,n,{context:v.aiChat.context,params:v.aiChat.params}));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),onSuccess:function(e,t){var n={id:e.id,type:"ossfile",data:{id:e.id,name:e.name},metadata:{ext:e.ext,fileext:e.fileext,fileid:e.fileid,filename:e.filename,size:e.size,filesize:e.filesize,state:"successed"}};v.aiChat.replaceMaterial(t.name,n),null==l||l(e,t)},onError:function(e,t){var n=v.buildMaterialObject(t);Object.assign(n.metadata,{state:"failed"}),v.aiChat.replaceMaterial(t.name,n),null==u||u(e,t)},onProgress:function(e,t){null==h||h(e,t)}},new ue(f).openFilePicker();case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"buildMaterialObject",value:function(e){return{id:e.name,type:"ossfile",data:{name:e.name,id:e.name},metadata:{size:e.size,type:e.type,lastModified:e.lastModified}}}}]),o}(oi),si=function(){function e(){v(this,e)}return _(e,null,[{key:"getMaterialHelper",value:function(e,t){return"ossfile"===e?new ci(t):new ai(t)}}]),e}(),li=function(){function e(){v(this,e),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 ri(this)}var t,n;return _(e,[{key:"aiChat",get:function(){var e;return this.aiTopicMap.get("".concat(null===(e=this.aiTopic.activedTopic.value)||void 0===e?void 0:e.id))}},{key:"initIndexDB",value:(n=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le.checkTableExists(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME);case 2:if(e.sent){e.next=6;break}return e.next=6,le.createTable(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,ni.DATA_TABLE_KEY_NAME,!1);case 6:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"create",value:(t=p(d().mark((function e(t){var n,i,r,o,a,c,s=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initIndexDB();case 2:if(this.backupChatOptions=t,this.close(),this.container=document.createElement("div"),this.container.classList.add("ibiz-ai-chat"),document.body.appendChild(this.container),o=t.chatOptions,!t.mode||"TOPIC"!==t.mode){e.next=19;break}if(this.isMountedAiTopic){e.next=13;break}return e.next=12,this.aiTopic.fetchHistory(t.topicOptions);case 12:this.isMountedAiTopic=!0;case 13:return a=t.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,otherToolbarItems:o.otherToolbarItems,appendCurData:o.appendCurData,appendCurContent:o.appendCurContent}}),e.next=17,this.aiTopic.updateCurrentTopic(a);case 17:e.next=20;break;case 19:this.aiTopic.activedTopic.value=void 0;case 20:return Object.assign(o,{topicId:null===(n=a)||void 0===n?void 0:n.id,topic:a}),c=new ii(o),this.aiTopicMap.set("".concat(null===(i=a)||void 0===i?void 0:i.id),c),K(M(Ti,{aiChat:c,aiTopic:this.aiTopic,mode:t.mode?t.mode:"DEFAULT",containerOptions:t.containerOptions,caption:t.mode&&"TOPIC"===t.mode?"AI助手":o.caption,enableBackFill:null===(r=t.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(e){o.fullscreen&&o.fullscreen(e,o.context,o.params)},minimize:function(e){o.minimize&&o.minimize(e,o.context,o.params)}}),this.container),e.abrupt("return",c);case 25:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"switchAiChatController",value:function(e){var t,n,i,r,o,a=this,c=u({},this.backupChatOptions.chatOptions);(e.aiChat&&Object.assign(c,{caption:e.aiChat.caption,context:e.aiChat.context,params:e.aiChat.params,contentToolbarItems:e.aiChat.contentToolbarItems,footerToolbarItems:e.aiChat.footerToolbarItems,questionToolbarItems:e.aiChat.questionToolbarItems,otherToolbarItems:e.aiChat.otherToolbarItems,appendCurData:e.aiChat.appendCurData,appendCurContent:e.aiChat.appendCurContent,appDataEntityId:e.aiChat.appDataEntityId,topicId:e.id,topic:e,extendToolbarClick:this.backupChatOptions.chatOptions.extendToolbarClick,recommendPrompt:this.backupChatOptions.chatOptions.recommendPrompt}),this.aiTopicMap.has("".concat(e.id))?t=this.aiTopicMap.get("".concat(e.id)):(t=new ii(c),this.aiTopicMap.set("".concat(e.id),t)),this.container)&&(K(null,this.container),K(M(Ti,{aiChat:t,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(e){c.fullscreen&&c.fullscreen(e,c.context,c.params)},minimize:function(e){c.minimize&&c.minimize(e,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)}}]),e}(),ui=(t("chat",new li),new ee("chat-input-material")),di=function(e){var t=e.controller.materials;return _t("div",{className:ui.b(),children:t.value.map((function(t){return _t(rn,{material:t,disabled:!1,controller:e.controller},t.id)}))})},hi=function(e){var t=e.children,n=e.actions,i=e.content,r=e.position,o=void 0===r?"bottom":r,c=e.isOpen,s=e.onToggleOpen,l=e.onAction,d=new ee("pop"),h=Ie(Ci),p=a(Se(c||!1),2),f=p[0],v=p[1],m=Me(null),_=Me(null);Ae((function(){void 0!==c&&v(c)}),[c]),Ae((function(){return _.current||(_.current=document.createElement("div"),_.current.className=d.b("content-container"),document.body.appendChild(_.current)),function(){_.current&&document.body.removeChild(_.current)}}),[]),Ae((function(){var e=function(e){!m.current||m.current.contains(e.target)||e.target.closest(".".concat(d.b()))||e.target.closest(".ibiz-quick-edit")||e.target.closest(".ibiz-picker__transfer")||(v(!1),null==s||s(!1))};return f&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[f,s]);return _t("span",{className:"".concat(d.b("trigger-container")),children:[_t("span",{className:"".concat(d.b("trigger-element")),ref:m,onClick:function(e){e.stopPropagation();var t=!f;v(t),null==s||s(t)},children:t}),f&&_.current&&Pn(_t("div",{className:"".concat(d.b()," pop-").concat(o),style:function(){if(!m.current)return{};var e=m.current.getBoundingClientRect(),t={position:"absolute",zIndex:h.zIndex+1},n={bottom:{top:e.bottom+window.scrollY,left:e.left+window.scrollX},top:{bottom:window.innerHeight-e.top+window.scrollY,left:e.left+window.scrollX},left:{top:e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX},right:{top:e.top+window.scrollY,left:e.right+window.scrollX},"top-left":{bottom:window.innerHeight-e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX}};return u(u({},t),n[o])}(),children:i||(null==n?void 0:n.map((function(e){return _t("div",{title:e.caption,className:d.e("item"),onMouseDown:function(t){t.stopPropagation(),null==l||l(e.id,t)},children:[e.icon,_t("div",{className:d.em("item","caption"),children:e.caption})]},e.id)})))}),_.current)]})},pi=new ee("chat-input"),fi=window.SpeechRecognition||window.webkitSpeechRecognition,vi=function(e){var t,n=a(Se(!1),2),i=n[0],r=n[1],o=Me(null),c=e.controller.input,s=ft(!1),l=Me();fi&&!l.current&&(l.current=new fi,l.current.onstart=function(){s.value=!0},l.current.onend=function(){s.value=!1},l.current.onresult=function(e){var t,n=null===(t=e.results)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t[0])||void 0===t?void 0:t.transcript;n&&(c.value="".concat(c.value).concat(n))});var u=Le((function(e){c.value=e.target.value}),[c]),h=vt((function(){return c.value.length<=0}));Ae((function(){return o.current&&ti(o.current),function(){o.current&&ti.destroy(o.current)}}),[o]);var f=Le(p(d().mark((function t(){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=c.value,c.value="",t.next=5,e.controller.question(n);case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])}))),[c]),v=Le(p(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{e.controller.abortQuestion()}catch(n){console.error(n)}case 1:case"end":return t.stop()}}),t)}))),[c]),m=function(){var t=p(d().mark((function t(n){var i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=si.getMaterialHelper("ossfile",e.controller),t.next=3,i.excuteAction(n);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_=function(){var t=p(d().mark((function t(n,i){var o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=si.getMaterialHelper("common",e.controller),t.next=3,o.excuteAction(n,i);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}();return _t("div",{className:pi.b("wrapper"),children:[_t("div",{className:pi.b("material-wrapper"),children:_t(di,{controller:e.controller})}),_t("div",{className:pi.b("main-wrapper"),children:[_t("textarea",{className:pi.e("textarea"),type:"text",rows:6,autoCorrect:"off",autoCapitalize:"off",autoComplete:"off",value:c,onInput:u,onKeyDown:function(e){"Enter"!==e.code||e.isComposing||(e.stopPropagation(),!1===e.shiftKey&&f())},ref:o,disabled:e.controller.isLoading.value}),_t("div",{className:pi.b("action-wrapper"),children:[_t("div",{className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",e.controller.isLoading.value)),title:"上传资料",children:_t(hi,{content:_t("div",{className:pi.b("pop-actions"),children:[_t("div",{className:pi.b("pop-action-item"),onClick:function(e){m(e)},children:[_t("span",{className:pi.b("pop-action-item-icon"),children:_t(Ht,{})}),_t("span",{className:pi.b("pop-action-item-title"),children:"文件资料"})]}),null===(t=e.questionToolbarItems)||void 0===t?void 0:t.map((function(e){var t,n,i;return _t("div",{className:pi.b("pop-action-item"),onClick:function(t){_(t,e)},children:[_t("span",{className:pi.b("pop-action-item-icon"),children:"function"==typeof e.icon?e.icon():(null===(t=e.icon)||void 0===t?void 0:t.showIcon)&&_t(L,{children:null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):null})}),_t("span",{className:pi.b("pop-action-item-title"),children:e.label})]},e.id)}))]}),position:"top-left",isOpen:i,onToggleOpen:r,children:_t(Bt,{})})}),_t("div",{title:s.value?"语音输入中...":"语音输入",className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",e.controller.isLoading.value)),onClick:function(){l.current&&!s.value&&l.current.start()},children:s.value?_t(Mt,{}):_t(At,{})}),e.controller.isLoading.value?_t("div",{title:"停止生成",className:"".concat(pi.be("action-wrapper","action-item")),onClick:v,children:_t(Rt,{})}):_t("div",{title:"发送消息",className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",h.value)),onClick:f,children:_t(wt,{})})]})]})]})},mi=new ee("chat-topic-item"),_i=function(e){var t=e.controller,n=e.topic,i=e.onClick,r=e.onAction,o=Me(null),c=vt((function(){var e;return(null===(e=t.activedTopic.value)||void 0===e?void 0:e.id)===n.id})),s=a(Se(!1),2),l=s[0],u=s[1],d=ft(!1);return _t("div",{className:"".concat(mi.b()," ").concat(mi.is("active",c.value)," ").concat(mi.is("edit",d.value)),onClick:i.bind(void 0),children:[_t("div",{className:mi.e("caption"),title:n.caption,children:d.value?_t("input",{ref:o,value:n.caption,onBlur:function(e){e.stopPropagation(),d.value=!1,r("RENAME",e)},onKeyDown:function(e){e.stopPropagation(),"Enter"===e.key&&(d.value=!1)},onClick:function(e){return e.stopPropagation()},onChange:function(e){return(t=e).stopPropagation(),void(n.data.caption=null===(i=t.target)||void 0===i?void 0:i.value);var t,i},className:mi.em("caption","editor")}):_t("span",{className:mi.em("caption","text"),children:n.caption})}),!d.value&&_t("div",{className:mi.e("icon"),children:[_t("span",{title:"跳转主视图",className:mi.em("icon","item"),onClick:function(e){e.stopPropagation(),r("LINK",e)}.bind(void 0),children:_t(Lt,{className:mi.b("link-icon")})}),c.value?null:_t(hi,{actions:[{id:"RENAME",caption:"重命名",icon:_t(qt,{})},{id:"DELETE",caption:"删除话题",icon:_t(It,{})}],position:"bottom",isOpen:l,onToggleOpen:u,onAction:function(e,t){"DELETE"===e?r("DELETE",t):"RENAME"===e&&(d.value=!0,setTimeout((function(){var e;null===(e=o.current)||void 0===e||e.focus()}),100)),u(!1)}.bind(void 0),children:_t("span",{className:mi.em("icon","item"),title:"更多",children:_t(Ot,{className:mi.e("more-icon")})})})]})]})},gi=new ee("chat-search"),yi=function(e){var t=e.className,n=e.value,i=e.placeholder,r=e.onChange,o=a(Se(!1),2),c=o[0],s=o[1],l=function(e){var t;e.stopPropagation(),null==r||r(null===(t=e.target)||void 0===t?void 0:t.value)};return _t("div",{className:"".concat(gi.b()," ").concat(gi.is("focus",c)," ").concat(t||""),children:[_t("div",{className:gi.e("prefix"),children:_t($t,{})}),_t("input",{value:n,className:gi.e("inner"),placeholder:i,onFocus:function(){return s(!0)},onBlur:function(){return s(!1)},onChange:function(e){return l(e)}})]})},wi=new ee("chat-topics"),bi=function(e){var t=Me(null),n=ft(void 0),i=ft([]);Ae((function(){i.value=e.controller.topics.value.filter((function(e){var t,i;return null===(t=e.caption)||void 0===t?void 0:t.toLowerCase().includes((null===(i=n.value)||void 0===i?void 0:i.trim().toLowerCase())||"")}))}),[e.controller.topics.value]);return Ae((function(){var e=t.current;if(e){var n=e.querySelector(".ibiz-chat-topic-item.is-active");null==n||n.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[e.controller.activedTopic.value]),_t("div",{className:wi.b(),children:[_t("div",{className:wi.e("header"),children:_t(yi,{value:n.value,placeholder:"搜索话题",onChange:function(t){n.value=t,i.value=e.controller.topics.value.filter((function(e){var t,i;return null===(t=e.caption)||void 0===t?void 0:t.toLowerCase().includes((null===(i=n.value)||void 0===i?void 0:i.trim().toLowerCase())||"")}))}.bind(void 0)})}),_t("div",{ref:t,className:wi.e("main"),children:i.value&&i.value.length>0?i.value.map((function(t){return _t(_i,{topic:t,controller:e.controller,onClick:function(){return function(t){e.controller.handleTopicChange(t)}(t)},onAction:function(n,i){return function(t,n,i){e.controller.handleTopicAction(t,n,i)}(n,t,i)}},t.id)})):_t("div",{className:wi.e("empty"),children:"暂无话题"})}),_t("div",{className:wi.e("footer"),children:_t("div",{title:"清空会话",className:wi.e("action"),onClick:function(){return e.controller.clearTopic()},children:[_t(It,{}),_t("span",{children:"清空会话"})]})})]})},xi=new ee("chat-minimize"),ki=function(e){var t=Me(null),n=a(Se(""),2),i=n[0],r=n[1],o=a(Se(0),2),c=o[0],s=o[1],l=Me(!1),u={x:(window.innerWidth-86)/window.innerWidth,y:(window.innerHeight-86)/window.innerHeight},d=vt((function(){var t=e.controller.messages.value[e.controller.messages.value.length-1];return!!t&&("ASSISTANT"===t.role&&20===t.state&&!0!==t.completed)})),h=vt((function(){var t="";if(!d.value)return r(""),s(0),t;var n=e.controller.messages.value[e.controller.messages.value.length-1];if(t=n.content,-1!==n.content.indexOf("")){var i=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="";return-1===n?(i=e.slice(t+7),r=""):(i=e.slice(t+7,n),r=e.slice(n+8)),{thoughtContent:i,answerContent:r}}(n.content);t=i.thoughtContent+i.answerContent}return t})),p=function(){Object.assign(t.current.style,{left:"".concat(100*u.x,"%"),top:"".concat(100*u.y,"%")}),localStorage.setItem(ni.MINIMIZE_STYLY_CHCHE,JSON.stringify(u))};return Ae((function(){var e,n=localStorage.getItem(ni.MINIMIZE_STYLY_CHCHE);if(n){var i=JSON.parse(n);pe(i)&&Object.assign(u,i)}p(),(e=t.current)&&(e.onmousedown=function(t){document.body.style.userSelect="none";var n=t.clientX-e.offsetLeft,i=t.clientY-e.offsetTop,r=Date.now(),o=function(e){var t=56/window.innerWidth,r=56/window.innerHeight,o=fe(e.clientX-n,e.clientY-i,t,r),a=o.x,c=o.y;Object.assign(u,{x:a,y:c}),requestAnimationFrame((function(){p()}))};document.addEventListener("mousemove",o),document.addEventListener("mouseup",(function e(){var t=Date.now();l.current=t-r>300,document.body.style.userSelect="",document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",e)}))})}),[]),Ae((function(){if(c1-e?this.calcSideModeStyle(i1-t&&(this.data.window.y=1-a)),this.setStyle()}},{key:"registerDragDialog",value:function(){var e=this;this.dragHandle.current.onmousedown=function(t){if(!e.state.isFullScreen){document.body.style.userSelect="none";var n=t.clientX-e.containerRef.current.offsetLeft,i=t.clientY-e.containerRef.current.offsetTop,r=function(t){if(!e.disabled){e.data.showMode="window";var r=fe(t.clientX-n,t.clientY-i,e.data.window.width,e.data.window.height),o=r.x,a=r.y;Object.assign(e.data.window,{x:o,y:a}),e.setStyle()}};document.addEventListener("mousemove",r),document.addEventListener("mouseup",(function t(){document.body.style.userSelect="",document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t),e.disabled||e.snapToEdge()}))}}}},{key:"registerDragDialogBorder",value:function(){var e=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(t){if(!e.state.isFullScreen){var n="side"===e.data.showMode?e.data.side:e.data.window;n.x=t.rect.left/window.innerWidth,n.y=t.rect.top/window.innerHeight,n.width=t.rect.width/window.innerWidth,n.height=t.rect.height/window.innerHeight,e.setStyle()}},start:function(){e.disabled=!0,document.body.style.userSelect="none"},end:function(){e.disabled=!1,document.body.style.userSelect=""}}})}},{key:"handleFullScreenChange",value:function(){this.setState({isFullScreen:null!==document.fullscreenElement})}},{key:"componentDidMount",value:function(){this.handleFullScreenChange=this.handleFullScreenChange.bind(this);var e=localStorage.getItem(ni.STYLE_CACHE);if(e){var t=JSON.parse(e);t.side&&pe(t.side)&&t.window&&pe(t.window)&&Object.assign(this.data,t)}this.setStyle(),this.registerDragDialog(),this.registerDragDialogBorder(),document.addEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"close",value:function(){this.props.close()}},{key:"fullScreen",value:function(){var e=this.containerRef.current;e&&(e.requestFullscreen(),this.props.fullscreen(!0))}},{key:"closeFullScreen",value:function(){var e;this.state.isFullScreen&&(null===(e=document)||void 0===e||e.exitFullscreen(),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.setState({isMinimize:!1}),this.props.minimize(!1)}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"render",value:function(){return _t(Ci.Provider,{value:this.containerContext,children:_t("div",{className:"".concat(this.ns.b()),children:[_t("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:[_t("div",{ref:this.dragHandle,className:this.ns.b("header"),children:[_t("div",{className:this.ns.b("header-caption"),children:this.props.caption||"AI助手"}),_t("div",{className:this.ns.b("header-action-wrapper"),children:[_t("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:_t(Nt,{})}),this.state.isFullScreen?_t("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:_t(Tt,{})}):_t("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:_t(Ct,{})}),_t("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:_t(gt,{})})]})]}),"TOPIC"===this.props.mode?_t("div",{className:"".concat(this.ns.b("main")),children:[_t("div",{className:"".concat(this.ns.be("main","left")),children:_t(bi,{controller:this.props.aiTopic})}),_t("div",{className:"".concat(this.ns.be("main","right")),children:[_t("div",{className:this.ns.b("content"),children:_t(xn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(yn,{type:"footer",mode:this.props.mode,data:this.props.aiTopic.activedTopic.value,className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(vi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}):_t("div",{className:"".concat(this.ns.be("main","default")),children:[_t("div",{className:this.ns.b("content"),children:_t(xn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(yn,{type:"footer",mode:this.props.mode,data:this.props.aiTopic.activedTopic.value,className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(vi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}),_t(ki,{title:this.props.caption||"AI助手",controller:this.props.aiChat,isMinimize:this.state.isMinimize,onClick:this.exitMinimize.bind(this)})]})})}}]),o}(I);t("ChatContainer",Ti)}}}))}(); diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.26/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.26/polyfills.legacy.js new file mode 100644 index 0000000000000000000000000000000000000000..c8c7654431885af1a2dc12a9fe73b198407bf314 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.26/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+""},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+""},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="\t\n\v\f\r                 \u2028\u2029\ufeff",JE=L,qE=Ao,KE=VE,YE=S("".replace),XE=RegExp("^["+KE+"]+"),QE=RegExp("(^|[^"+KE+"])["+KE+"]+$"),ZE=function(t){return function(r){var e=qE(JE(r));return 1&t&&(e=YE(e,XE,"")),2&t&&(e=YE(e,QE,"$1")),e}},tx={start:ZE(1),end:ZE(2),trim:ZE(3)},rx=te.PROPER,ex=o,nx=VE,ox=tx.trim;ro({target:"String",proto:!0,forced:function(t){return ex((function(){return!!nx[t]()||"​…᠎"!=="​…᠎"[t]()||rx&&nx[t].name!==t}))}("trim")},{trim:function(){return ox(this)}});var ix=Dt,ux=hn,ax=co,cx=mo,fx=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=ix(this),e=ux(r),n=arguments.length;if(n){fx(e+n);for(var o=e;o--;){var i=o+n;o in r?r[i]=r[o]:cx(r,i)}for(var u=0;uo;)for(var a,c=mx(arguments[o++]),f=i?Sx(px(c),i(c)):px(c),s=f.length,l=0;s>l;)a=f[l++],sx&&!hx(u,c,a)||(e[a]=c[a]);return e}:bx,xx=Ex;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==xx},{assign:xx});var Ox={exports:{}},jx=o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Ix=o,Tx=B,Rx=j,Px=jx,Ax=Object.isExtensible,kx=Ix((function(){Ax(1)}))||Px?function(t){return!!Tx(t)&&((!Px||"ArrayBuffer"!==Rx(t))&&(!Ax||Ax(t)))}:Ax,Cx=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),Nx=ro,Lx=S,Fx=pe,Mx=B,_x=Gt,Dx=Rr.f,Ux=Qe,$x=mw,Gx=kx,zx=Cx,Wx=!1,Bx=Vt("meta"),Hx=0,Vx=function(t){Dx(t,Bx,{value:{objectID:"O"+Hx++,weakData:{}}})},Jx=Ox.exports={enable:function(){Jx.enable=function(){},Wx=!0;var t=Ux.f,r=Lx([].splice),e={};e[Bx]=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!!c(this,t)}}),hO(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)}}),wO&&lO(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=xO(r),i=xO(n);yO(t,r,(function(t,r){EO(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)?mO("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,mO(void 0,!0))}),e?"entries":"values",!e,!0),bO(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=Yx[t],a=u&&u.prototype,c=u,f={},s=function(t){var r=Xx(a[t]);Zx(a,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!iO(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(Qx(t,!nO(u)||!(o||a.forEach&&!uO((function(){(new u).entries().next()})))))c=e.getConstructor(r,t,n,i),tO.enable();else if(Qx(t,!0)){var l=new c,h=l[i](o?{}:-0,1)!==l,v=uO((function(){l.has(1)})),p=aO((function(t){new u(t)})),d=!o&&uO((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((c=r((function(t,r){eO(t,a);var e=fO(new u,t,c);return oO(r)||rO(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,Kx({global:!0,constructor:!0,forced:c!==u},f),cO(c,t),o||e.setStrong(c,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),OO);var jO,IO=ro,TO=Fu,RO=n.f,PO=sn,AO=Ao,kO=_E,CO=L,NO=UE,LO=TO("".startsWith),FO=TO("".slice),MO=Math.min,_O=NO("startsWith");IO({target:"String",proto:!0,forced:!!(_O||(jO=RO(String.prototype,"startsWith"),!jO||jO.writable))&&!_O},{startsWith:function(t){var r=AO(CO(this));kO(t);var e=PO(MO(arguments.length>1?arguments[1]:void 0,r.length)),n=AO(t);return LO?LO(r,n,e):FO(r,e,e+n.length)===n}});var DO=ro,UO=Ms.findIndex,$O=sm,GO="findIndex",zO=!0;GO in[]&&Array(1)[GO]((function(){zO=!1})),DO({target:"Array",proto:!0,forced:zO},{findIndex:function(t){return UO(this,t,arguments.length>1?arguments[1]:void 0)}}),$O(GO);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=tx.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;o \ No newline at end of file diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.27/index.min.css b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.27/index.min.css new file mode 100644 index 0000000000000000000000000000000000000000..6c65481ac71c9a7e0fac267beb67707fecfb0915 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.27/index.min.css @@ -0,0 +1 @@ +@charset "UTF-8";.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-chat-suggestions{--ibiz-chat-suggestions-bg: var(--ibiz-ai-chat-background-color);--ibiz-chat-suggestions-hover-bg-color: var(--ibiz-ai-chat-hover-background-color);--ibiz-chat-suggestions-border: var(--ibiz-ai-chat-border-color);display:flex;flex-direction:column;gap:var(--ibiz-spacing-base-tight);width:100%}.ibiz-chat-suggestions__item{display:flex;align-items:center;align-self:flex-start;justify-content:space-between;min-width:200px;height:32px;padding:0 12px;overflow:hidden;line-height:32px;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background-color:var(--ibiz-chat-suggestions-bg);border:1px solid var(--ibiz-chat-suggestions-border);border-radius:12px;transition:.3s background-color}.ibiz-chat-suggestions__item:hover{background-color:var(--ibiz-chat-suggestions-hover-bg-color)}.ibiz-chat-suggestions__item.is-action{color:var(--ibiz-ai-chat-color-2);background-color:var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-suggestions__item.is-action:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-suggestions__item .ibiz-chat-suggestions__item-icon{margin-left:12px;font-size:18px}.ibiz-markdown-message{padding:6px 10px}.ibiz-markdown-message .cherry{border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-markdown-message .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-markdown-message .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-markdown-message .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-markdown-message .cherry div[data-type=codeBlock] pre[class*=language-]::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,.2)}.ibiz-markdown-message .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-markdown-message .cherry-previewer{padding:8px;border:0}.ibiz-markdown-message .cherry-previewer figure{max-width:1200px}.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)}.ibiz-markdown-message-content .cherry div.cherry-previewer{color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color-light)}.ibiz-markdown-message-footer{padding:10px 0}@keyframes circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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-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%;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:10px 16px;margin:0;font-size:14px;line-height:1.5;color:var(--color-fg-default);word-wrap:break-word;background:#e7f8ff;background-color:var(--ibiz-ai-chat-background-color-light);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--material{display:flex;flex-flow:row-reverse wrap;gap:8px;align-items:center;margin-bottom:8px}.ibiz-user-message-question__content .cherry{min-height:0;border-radius:var(--ibiz-ai-chat-border-radius);box-shadow:none}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.ibiz-user-message-question__content .cherry *::-webkit-scrollbar-thumb:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-user-message-question__content .cherry-markdown p{margin:0}.ibiz-user-message-question__content .cherry-markdown pre{background-color:var(--ibiz-ai-chat-background-color)}.ibiz-user-message-question__content .cherry-previewer{padding:0;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color-light);border:0}.ibiz-user-message-question__content .cherry-previewer figure{max-width:1200px}.ibiz-user-message-question__content .cherry-previewer figure>svg{width:100%;min-height:100px}.ibiz-user-message-question__content .anchor{display:none!important}.ibiz-user-message-question__user-header{display:flex;align-items:center;justify-content:end;width:100%;height:32px;margin-bottom:8px}.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:10px 16px;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{display:flex;padding:6px 10px;justify-content:end}.ibiz-unknown-message__content{padding:10px 16px;color:#000;width:max-content;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-item{position:relative;display:flex;align-items:center;white-space:nowrap;cursor:pointer}.ibiz-chat-toolbar-item__content{display:flex;align-items:center;white-space:nowrap}.ibiz-chat-toolbar-item__content--icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:18px;height:18px;font-size:18px}.ibiz-chat-toolbar-item__content--label,.ibiz-chat-toolbar-item__more{display:flex;align-items:center}.ibiz-chat-toolbar-item__more--icon{font-size:18px}.ibiz-chat-toolbar-item-default{width:fit-content;font-size:14px;color:var(--ibiz-ai-chat-color-2)}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__content{z-index:9;gap:6px;padding:2px 14px;line-height:28px;background-color:var(--ibiz-ai-chat-background-color-2);border-radius:12px}.ibiz-chat-toolbar-item-default.is-disabled{cursor:not-allowed}.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__content,.ibiz-chat-toolbar-item-default.is-disabled .ibiz-chat-toolbar-item__more{background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__content:hover,.ibiz-chat-toolbar-item-default:not(.is-disabled) .ibiz-chat-toolbar-item__more:hover{background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-default.is-more .ibiz-chat-toolbar-item__content{padding:2px 8px 2px 14px;border-radius:12px 0 0 12px}.ibiz-chat-toolbar-item-default .ibiz-chat-toolbar-item__more{z-index:9;height:32px;padding:2px 14px 2px 8px;background-color:var(--ibiz-ai-chat-background-color-2);border-left:1px solid var(--ibiz-ai-chat-border-color);border-radius:0 12px 12px 0}.ibiz-chat-toolbar-item-circle{max-width:32px;height:32px;padding:6px;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-item-circle.is-disabled{color:var(--ibiz-ai-chat-disabled-color);cursor:not-allowed}.ibiz-chat-toolbar-item-circle: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-item-circle .ibiz-chat-toolbar-item__content--label{width:calc(100% - 32px);margin-left:8px;font-size:14px}.ibiz-chat-toolbar-item-dropdown{position:absolute;right:0;bottom:36px;display:flex;flex-direction:column;gap:4px;max-width:150px;padding:4px;background-color:var(--ibiz-ai-chat-background-color-2);border-radius:6px}.ibiz-chat-toolbar-item-dropdown__item{display:flex;gap:6px;align-items:center;padding:0 8px;line-height:32px;cursor:pointer;border-radius:6px}.ibiz-chat-toolbar-item-dropdown__item.is-disabled{cursor:not-allowed;background-color:var(--ibiz-ai-chat-disabled-color)}.ibiz-chat-toolbar-item-dropdown__item:hover:not(.is-disabled){background-color:var(--ibiz-ai-chat-hover-background-color-2)}.ibiz-chat-toolbar-item-dropdown__item--icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:18px;height:18px;font-size:18px}.ibiz-chat-toolbar-item-dropdown__item--label{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-toolbar{display:flex;flex-wrap:wrap;align-items:center}.ibiz-chat-toolbar .ibiz-chat-toolbar-item:not(:first-child){margin-left:6px}.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{width:calc(100% - 12px);height:calc(100% - 12px);margin:6px;overflow:hidden auto}.ibiz-chat-messages::-webkit-scrollbar{width:6px}.ibiz-chat-messages::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);border-radius:var(--ibiz-ai-chat-border-radius)}.ibiz-chat-input-material-wrapper{max-height:72px;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:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-input__textarea::-webkit-scrollbar-thumb{background-color:var(--ibiz-color-fill-2);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-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{gap:4px;padding:4px;display:flex;min-width:120px;border-radius:8px;flex-direction:column;background-color:var(--ibiz-color-bg-3);border:1px solid var(--ibiz-color-border)}.ibiz-pop__item{display:flex;padding:0 8px;cursor:pointer;line-height:32px;border-radius:6px;align-items:center}.ibiz-pop__item:hover{background-color:var(--ibiz-color-primary-hover)}.ibiz-pop__item--caption{min-width:0;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-pop__item svg{width:16px;height:16px;flex-shrink:0;margin-right:8px;fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-topic-item{height:38px;display:flex;padding:0 8px;cursor:pointer;border-radius:12px;position:relative;align-items:center;font-size:var(--ibiz-font-size-regular)}.ibiz-chat-topic-item:hover:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item:hover:not(.is-edit) .ibiz-chat-topic-item__icon{opacity:1}.ibiz-chat-topic-item.is-active:not(.is-edit){color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item.is-edit{border:2px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-topic-item__caption{width:100%;height:100%;display:flex;align-items:center}.ibiz-chat-topic-item__caption--text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chat-topic-item__caption--editor{width:100%;height:100%;border:none;outline:none;color:var(--ibiz-ai-chat-color);background:var(--ibiz-ai-chat-background-color)}.ibiz-chat-topic-item__icon{top:50%;gap:8px;opacity:0;right:10px;height:24px;display:flex;outline:none;padding:0 8px;border-radius:8px;position:absolute;align-items:center;justify-content:flex-end;transform:translateY(-50%);color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topic-item__icon--item{font-size:12px}.ibiz-chat-search{gap:8px;width:100%;display:flex;line-height:32px;border-radius:1px;padding:1px 11px;align-items:center;justify-content:center;border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-search:hover,.ibiz-chat-search.is-focus{border:1px solid var(--ibiz-ai-chat-background-color-2)}.ibiz-chat-search__prefix{width:14px;height:14px;display:flex;flex-shrink:0;font-size:14px;align-items:center}.ibiz-chat-search__inner{padding:2px 0 0;outline:0;flex-grow:1;border:none;height:28px;min-width:0;color:inherit;line-height:28px;background-color:initial}.ibiz-chat-topics{display:flex;flex-direction:column;gap:8px;height:100%;padding:8px 0}.ibiz-chat-topics__header{flex-shrink:0;padding:0 8px}.ibiz-chat-topics__main{flex-grow:1;padding:0 8px;overflow-y:auto}.ibiz-chat-topics__empty{font-size:var(--ibiz-font-size-regular);text-align:center}.ibiz-chat-topics__footer{display:flex;flex-shrink:0;align-items:center;justify-content:center;padding:0 8px}.ibiz-chat-topics__action{display:flex;gap:4px;align-items:center;padding:4px 12px;font-size:14px;cursor:pointer;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:2px}.ibiz-chat-topics__action:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-topics__action>svg{width:14px!important;height:14px!important}.ibiz-chat-minimize{width:56px;height:56px;display:flex;z-index:99999;cursor:pointer;position:absolute;border-radius:50%;align-items:center;justify-content:center}.ibiz-chat-minimize.is-hidden{display:none}.ibiz-chat-minimize.is-show-halo{width:90px;height:90px;background-size:cover;background-position:center;background-repeat:no-repeat;background-image:url(assets/gif/halo.gif)}.ibiz-chat-minimize__content{width:56px;height:56px;display:flex;border-radius:50%;align-items:center;justify-content:center;color:var(--ibiz-ai-chat-color);background-color:var(--ibiz-ai-chat-background-color)}.ibiz-chat-minimize__content:hover{color:var(--ibiz-ai-chat-hover-color);background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-chat-minimize__content svg{fill:currentcolor;display:inline-block;vertical-align:middle}.ibiz-chat-minimize__content.is-show-border{border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover{left:50%;bottom:90px;padding:8px;display:block;font-size:12px;border-radius:8px;position:absolute;transform:translate(-50%);box-shadow:0 2px 8px rgba(0,0,0,.1);background-color:var(--ibiz-ai-chat-background-color);color:var(--ibiz-ai-chat-color);border:1px solid var(--ibiz-ai-chat-border-color)}.ibiz-chat-minimize__content--popover .typewriter{direction:rtl;overflow:hidden;max-width:200px;width:fit-content;white-space:nowrap;text-overflow:ellipsis;animation:typing 3s steps(40,end)}@keyframes blink{0%,to{opacity:0}50%{opacity:1}}@keyframes typing{0%{width:0}to{width:100%}}@keyframes blink-caret{0%,to{border-color:transparent}50%{border-color:var(--ibiz-ai-chat-color)}}.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-ai-chat-scroll-bar-width: 8px;--ibiz-ai-chat-scroll-bar-height: 8px;--ibiz-ai-chat-scroll-bar-radius: 4px}.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__toolbar{position:absolute;bottom:118px;left:50%;gap:8px 4px;justify-content:center;width:max-content;min-height:48px;margin:0;transform:translate(-50%)}.ibiz-chat-container__toolbar.is-has-materials{bottom:180px}.ibiz-chat-container *::-webkit-scrollbar{width:var(--ibiz-ai-chat-scroll-bar-width);height:var(--ibiz-ai-chat-scroll-bar-height)}.ibiz-chat-container *::-webkit-scrollbar-thumb{border-radius:var(--ibiz-ai-chat-scroll-bar-radius)}.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-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.27/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.27/index.system.min.js new file mode 100644 index 0000000000000000000000000000000000000000..bc35e3177fc4bddf09a1c9e4783e161ca386f4cd --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.27/index.system.min.js @@ -0,0 +1 @@ +!function(){function e(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)}function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,n)}function n(e){var t=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(e){return!1}}();return function(){var n,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}(this,n)}}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||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(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(c.push(i.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(e,t)||c(e,t)||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(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);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;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:I(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function h(e,t,n,i,r,o,a){try{var c=e[o](a),s=c.value}catch(l){return void n(l)}c.done?t(s):Promise.resolve(s).then(i,r)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){h(o,i,r,a,c,"next",e)}function c(e){h(o,i,r,a,c,"throw",e)}a(void 0)}))}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===c[a]&&(c[a]=e.defaultProps[a]);return O(e,c,i,o,null)}function O(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++h:r};return null==r&&null!=l.vnode&&l.vnode(o),o}function L(e){return e.children}function I(e,t){this.props=e,this.context=t}function D(e,t){if(null==t)return e.__?D(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&y.sort(x));B.__r=0}function H(e,t,n,i,r,o,a,c,s,l,u){var d,h,p,f,v,m,_,g,y,w=0,b=i&&i.__k||T,x=b.length,k=x,N=t.length;for(n.__k=[],d=0;d0?O(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)?(f.__=n,f.__b=n.__b+1,-1===(g=V(f,b,_=d+w,k))?p=C:(p=b[g]||C,b[g]=void 0,k--),$(e,f,p,r,o,a,c,s,l,u),v=f.__e,(h=f.ref)&&p.ref!=h&&(p.ref&&Z(p.ref,null,f),u.push(h,f.__c||v,f)),null!=v&&(null==m&&(m=v),(y=p===C||null===p.__v)?-1==g&&w--:g!==_&&(g===_+1?w++:g>_?k>N-_?w+=g-_:w--:w=g<_&&g==_-1?g-_:0),_=d+w,"function"!=typeof f.type||g===_&&p.__k!==f.__k?"function"==typeof f.type||g===_&&!y?void 0!==f.__d?(s=f.__d,f.__d=void 0):s=v.nextSibling:s=R(e,v,s):s=j(f,s,e),"function"==typeof n.type&&(n.__d=s))):(p=b[d])&&null==p.key&&p.__e&&(p.__e==s&&(p.__=i,s=D(p)),G(p,p,!1),b[d]=null);for(n.__e=m,d=x;d--;)null!=b[d]&&("function"==typeof n.type&&null!=b[d].__e&&b[d].__e==n.__d&&(n.__d=b[d].__e.nextSibling),G(b[d],b[d]))}function j(e,t,n){for(var i,r=e.__k,o=0;r&&o(null!=s?1:0))for(;a>=0||c=0){if((s=t[a])&&r==s.key&&o===s.type)return a;a--}if(c0&&void 0!==arguments[0]?arguments[0]:"";return Q(this.namespace,this.block,e,"","")}},{key:"e",value:function(e){return e?Q(this.namespace,this.block,"",e,""):""}},{key:"m",value:function(e){return e?Q(this.namespace,this.block,"","",e):""}},{key:"be",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,t,""):""}},{key:"em",value:function(e,t){return e&&t?Q(this.namespace,this.block,"",e,t):""}},{key:"bm",value:function(e,t){return e&&t?Q(this.namespace,this.block,e,"",t):""}},{key:"bem",value:function(e,t,n){return e&&t&&n?Q(this.namespace,this.block,e,t,n):""}},{key:"is",value:function(e,t){return e&&t?"".concat("is-").concat(e):""}},{key:"cssVar",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarName(n)]=e[n]);return t}},{key:"cssVarBlock",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarBlockName(n)]=e[n]);return t}},{key:"cssVarName",value:function(e){return"--".concat(this.namespace,"-").concat(e)}},{key:"cssVarBlockName",value:function(e){return"--".concat(this.namespace,"-").concat(this.block,"-").concat(e)}}]),e}();function te(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function ne(e,t){for(var n,i="",r=0,o=-1,a=0,c=0;c<=e.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}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(o+1,c):i=e.slice(o+1,c),r=c-o-1;o=c,a=0}else 46===n&&-1!==a?++a:a=-1}return i}var ie={resolve:function(){for(var e,t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var r;i>=0?r=arguments[i]:(void 0===e&&(e=process.cwd()),r=e),te(r),0!==r.length&&(t=r+"/"+t,n=47===r.charCodeAt(0))}return t=ne(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(te(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=ne(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return te(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":ie.normalize(e)},relative:function(e,t){if(te(e),te(t),e===t)return"";if((e=ie.resolve(e))===(t=ie.resolve(t)))return"";for(var n=1;nc){if(47===t.charCodeAt(o+l))return t.slice(o+l+1);if(0===l)return t.slice(o+l)}else r>c&&(47===e.charCodeAt(n+l)?s=l:0===l&&(s=0));break}var u=e.charCodeAt(n+l);if(u!==t.charCodeAt(o+l))break;47===u&&(s=l)}var d="";for(l=n+s+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(o+s):(o+=s,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(te(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,r=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');te(e);var n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,c=-1;for(n=e.length-1;n>=0;--n){var s=e.charCodeAt(n);if(47===s){if(!o){i=n+1;break}}else-1===c&&(o=!1,c=n+1),a>=0&&(s===t.charCodeAt(a)?-1==--a&&(r=n):(a=-1,r=c))}return i===r?r=c:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){te(e);for(var t=-1,n=0,i=-1,r=!0,o=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(r=!1,i=a+1),46===c?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=a+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==f(e))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+f(e));return function(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}("/",e)},parse:function(e){te(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0),r=47===i;r?(t.root="/",n=1):n=0;for(var o=-1,a=0,c=-1,s=!0,l=e.length-1,u=0;l>=n;--l)if(47!==(i=e.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&&(t.base=t.name=0===a&&r?e.slice(1,c):e.slice(a,c)):(0===a&&r?(t.name=e.slice(1,o),t.base=e.slice(1,c)):(t.name=e.slice(a,o),t.base=e.slice(a,c)),t.ext=e.slice(o,c)),a>0?t.dir=e.slice(0,a-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};function re(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function oe(){return"".concat(re()+re(),"-").concat(re(),"-").concat(re(),"-").concat(re(),"-").concat(re()).concat(re()).concat(re())}ie.posix=ie;var ae=/]*>[\s\S]*?<\/svg>/;function ce(e){return ae.test(e)}var se=function(){function e(){v(this,e)}return _(e,null,[{key:"copy",value:function(e){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=e,this.inputElement.select(),document.execCommand("copy")}}]),e}();g(se,"inputElement",null);var le=function(){function e(){v(this,e)}var t,n,i,r,o,a,c,s,l,u;return _(e,null,[{key:"checkDataBaseExists",value:(u=p(d().mark((function e(t){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,indexedDB.databases();case 3:return n=e.sent,e.abrupt("return",n.some((function(e){return e.name===t})));case 7:return e.prev=7,e.t0=e.catch(0),console.error("检查数据库是否存在时出错:",e.t0),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])}))),function(e){return u.apply(this,arguments)})},{key:"deleteDatabase",value:(l=p(d().mark((function t(n){var i,r;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.lastLink&&(null===(i=(r=e.lastLink).close)||void 0===i||i.call(r)),t.abrupt("return",new Promise((function(e,t){var i=indexedDB.deleteDatabase(n);i.onsuccess=function(){e(!0)},i.onerror=function(){e(!1)},i.onblocked=function(){console.warn("删除数据库 ".concat(n," 被阻塞,可能有其他连接正在使用该数据库。")),t(new Error("删除数据库 ".concat(n," 被阻塞")))}})));case 2:case"end":return t.stop()}}),t)}))),function(e){return l.apply(this,arguments)})},{key:"checkTableExists",value:(s=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.checkDataBaseExists(n);case 2:if(t.sent){t.next=5;break}return t.abrupt("return",!1);case 5:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onupgradeneeded=function(t){e.db=t.target.result,e.version=e.db.version},o.onsuccess=function(n){e.db=n.target.result,e.lastLink=o.result;var r=e.db.objectStoreNames.contains(i);o.result.close(),t(r)},o.onerror=function(e){r(e.target.error)}})));case 6:case"end":return t.stop()}}),t)}))),function(e,t){return s.apply(this,arguments)})},{key:"createTable",value:(c=p(d().mark((function t(n,i,r){var o,a=arguments;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=a.length>3&&void 0!==a[3]&&a[3],t.abrupt("return",new Promise((function(t){var a,c;e.version+=1,e.lastLink&&(null===(a=(c=e.lastLink).close)||void 0===a||a.call(c));var s=indexedDB.open(n,e.version);s.onupgradeneeded=function(t){if(e.db=t.target.result,!e.db.objectStoreNames.contains(i)){var n={};r?n.keyPath=r:o&&(n.autoIncrement=!0),e.db.createObjectStore(i,n)}},s.onsuccess=function(){e.lastLink=s.result,s.result.close(),t(!0)},s.onerror=function(){t(!1)}})));case 2:case"end":return t.stop()}}),t)}))),function(e,t,n){return c.apply(this,arguments)})},{key:"deleteTable",value:(a=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){var r,o;e.version+=1,e.lastLink&&(null===(r=(o=e.lastLink).close)||void 0===r||r.call(o));var a=indexedDB.open(n,e.version);a.onupgradeneeded=function(t){e.db=t.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)&&e.db.deleteObjectStore(i)},a.onsuccess=function(n){e.db=n.target.result,e.lastLink=a.result,a.result.close(),t(!0)},a.onerror=function(){a.result.close(),t(!1)}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t){return a.apply(this,arguments)})},{key:"addData",value:(o=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).add(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(null)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return o.apply(this,arguments)})},{key:"deleteData",value:(r=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).delete(r);o.onsuccess=function(e){t(!0)},o.onerror=function(){t(!1)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"updateData",value:(i=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var o=e.db.transaction([i],"readwrite").objectStore(i).put(r);o.onsuccess=function(e){t(r)},o.onerror=function(){t(r)}}a.result.close()},a.onerror=function(){a.result.close(),o()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"getData",value:(n=p(d().mark((function t(n,i,r){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=indexedDB.open(n);a.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=a.result,e.db.objectStoreNames.contains(i)){var c=e.db.transaction([i],"readonly").objectStore(i).get(r);c.onsuccess=function(e){t(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 t.stop()}}),t)}))),function(e,t,i){return n.apply(this,arguments)})},{key:"getAllData",value:(t=p(d().mark((function t(n,i){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){var o=indexedDB.open(n);o.onsuccess=function(n){if(e.db=n.target.result,e.lastLink=o.result,e.db.objectStoreNames.contains(i)){var r=e.db.transaction([i],"readonly").objectStore(i).getAll();r.onsuccess=function(e){t(r.result)},r.onerror=function(){t([])}}o.result.close()},o.onerror=function(){o.result.close(),r()}})));case 1:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}]),e}();g(le,"version",1),g(le,"db",null),g(le,"lastLink",void 0);var ue=function(){function e(t){v(this,e),g(this,"options",void 0),this.options=u({multiple:!0,accept:"*/*",maxSize:5242880},t)}var t,n;return _(e,[{key:"openFilePicker",value:function(){var e=this,t=document.createElement("input");t.type="file",t.multiple=this.options.multiple,t.accept=this.options.accept||"",t.onchange=function(t){var n=Array.from(t.target.files||[]);e.handleFiles(n)},t.click()}},{key:"handleFiles",value:(n=p(d().mark((function e(t){var n,i,r,o=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.length){e.next=2;break}return e.abrupt("return");case 2:return r=t.filter((function(e){var t,n;return!(o.options.maxSize&&e.size>o.options.maxSize&&(null===(t=(n=o.options).onError)||void 0===t||t.call(n,new Error("文件大小超过限制 (".concat(o.formatSize(e.size)," > ").concat(o.formatSize(o.options.maxSize),")")),e),1))})),null===(n=(i=this.options).onSelect)||void 0===n||n.call(i,r),e.next=6,Promise.all(r.map((function(e){return o.processFile(e)})));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"processFile",value:(t=p(d().mark((function e(t){var n,i,r,o,a,c,s,l,u=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a=function(e){var n,i;null===(n=(i=u.options).onProgress)||void 0===n||n.call(i,t,e)},e.next=4,this.options.onUpload(t,a);case 4:c=e.sent,null===(n=(i=this.options).onProgress)||void 0===n||n.call(i,t,100),null===(r=(o=this.options).onSuccess)||void 0===r||r.call(o,c,t),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),null===(s=(l=this.options).onError)||void 0===s||s.call(l,e.t0 instanceof Error?e.t0:new Error("上传失败"),t);case 12:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e){return t.apply(this,arguments)})},{key:"formatSize",value:function(e){if(0===e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat((e/Math.pow(1024,t)).toFixed(2)," ").concat(["B","KB","MB","GB"][t])}}]),e}(),de=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("resource")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r),c=o?JSON.parse(o):{},s=a?JSON.parse(a):{};return{id:c.id,type:n,data:c,metadata:s}}catch(Jn){throw new Error("XML 解析错误: ".concat(Jn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/resources>/i.exec(e);if(!t)return{resources:[],remainingText:e,hasResources:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.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(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("resources");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("resource");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}(),he=function(){function e(){v(this,e)}return _(e,null,[{key:"getCdataContent",value:function(e){if(!e)return null;var t=Array.from(e.childNodes).find((function(e){return e.nodeType===e.CDATA_SECTION_NODE}));return(null==t?void 0:t.nodeValue)||e.textContent}},{key:"parse",value:function(e){var t=this,n=(new DOMParser).parseFromString(e,"text/xml");return Array.from(n.querySelectorAll("suggestion")).map((function(e){var n=e.getAttribute("type")||"",i=e.querySelector("data"),r=e.querySelector("metadata");try{var o=t.getCdataContent(i),a=t.getCdataContent(r);return{type:n,data:o?JSON.parse(o):{},metadata:a?JSON.parse(a):{}}}catch(Jn){throw new Error("XML 解析错误: ".concat(Jn.message))}}))}},{key:"parseMixedContent",value:function(e){var t=/]*>[\s\S]*?<\/suggestions>/i.exec(e);if(!t)return{suggestions:[],remainingText:e,hasSuggestions:!1};var n=a(t,1)[0],i=t.index,r=i+n.length,o=(e.slice(0,i)+e.slice(r)).replace(/\n/g,"");try{return{suggestions:this.parse(n),remainingText:o,hasSuggestions:!0}}catch(c){return{suggestions:[],remainingText:o,hasSuggestions:!0,error:"资源解析失败: ".concat(c.message)}}}},{key:"stringify",value:function(e){var t=document.implementation.createDocument(null,null,null),n=t.createElement("suggestions");n.setAttribute("version","1.0");var i=function(e){return"\n".concat(" ".repeat(e))};return e.forEach((function(e){n.appendChild(t.createTextNode(i(1)));var r=t.createElement("suggestion");r.setAttribute("type",e.type),r.setAttribute("version","1.0");var o=function(e,n){var r=t.createElement(e);r.appendChild(t.createTextNode(i(2)));var o=t.createCDATASection(JSON.stringify(n));return r.appendChild(o),r.appendChild(t.createTextNode(i(1))),r};r.appendChild(t.createTextNode(i(2))),r.appendChild(o("data",e.data)),r.appendChild(t.createTextNode(i(2))),r.appendChild(o("metadata",e.metadata)),r.appendChild(t.createTextNode(i(1))),n.appendChild(r)})),n.appendChild(t.createTextNode("\n")),t.appendChild(n),(new XMLSerializer).serializeToString(t).replace(/>\n<")}}]),e}();function pe(e){return e.x>=0&&e.x<=1&&e.y>=0&&e.y<=1}function fe(e,t,n,i){var r=e/window.innerWidth,o=t/window.innerHeight;return{x:Math.max(0,Math.min(r,1-n)),y:Math.max(0,Math.min(o,1-i))}}var ve,me,_e,ge,ye=0,we=[],be=[],xe=l.__b,ke=l.__r,Ce=l.diffed,Te=l.__c,Ne=l.unmount;function Ee(e,t){l.__h&&l.__h(me,e,ye||t),ye=0;var n=me.__H||(me.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:be}),n.__[e]}function Se(e){return ye=1,function(e,t,n){var i=Ee(ve++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):Fe(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=me,!me.u)){var r=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(e){return e.__c}));if(r.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var a=!1;return r.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&i.__c.props===e)&&(!o||o.call(this,e,t,n))};me.u=!0;var o=me.shouldComponentUpdate,a=me.componentWillUpdate;me.componentWillUpdate=function(e,t,n){if(this.__e){var i=o;o=void 0,r(e,t,n),o=i}a&&a.call(this,e,t,n)},me.shouldComponentUpdate=r}return i.__N||i.__}(Fe,e)}function Ae(e,t){var n=Ee(ve++,3);!l.__s&&je(n.__H,t)&&(n.__=e,n.i=t,me.__H.__h.push(n))}function Me(e){return ye=5,Oe((function(){return{current:e}}),[])}function Oe(e,t){var n=Ee(ve++,7);return je(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Le(e,t){return ye=8,Oe((function(){return e}),t)}function Ie(e){var t=me.context[e.__c],n=Ee(ve++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(me)),t.props.value):e.__}function De(){for(var e;e=we.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Be),e.__H.__h.forEach(He),e.__H.__h=[]}catch(ei){e.__H.__h=[],l.__e(ei,e.__v)}}l.__b=function(e){me=null,xe&&xe(e)},l.__r=function(e){ke&&ke(e),ve=0;var t=(me=e.__c).__H;t&&(_e===me?(t.__h=[],me.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=be,e.__N=e.i=void 0}))):(t.__h.forEach(Be),t.__h.forEach(He),t.__h=[],ve=0)),_e=me},l.diffed=function(e){Ce&&Ce(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==we.push(t)&&ge===l.requestAnimationFrame||((ge=l.requestAnimationFrame)||Pe)(De)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==be&&(e.__=e.__V),e.i=void 0,e.__V=be}))),_e=me=null},l.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Be),e.__h=e.__h.filter((function(e){return!e.__||He(e)}))}catch(Ge){t.some((function(e){e.__h&&(e.__h=[])})),t=[],l.__e(Ge,e.__v)}})),Te&&Te(e,t)},l.unmount=function(e){Ne&&Ne(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Be(e)}catch(e){t=e}})),n.__H=void 0,t&&l.__e(t,n.__v))};var ze="function"==typeof requestAnimationFrame;function Pe(e){var t,n=function(){clearTimeout(i),ze&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);ze&&(t=requestAnimationFrame(n))}function Be(e){var t=me,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),me=t}function He(e){var t=me;e.__c=e.__(),me=t}function je(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Fe(e,t){return"function"==typeof t?t(e):t}function Re(){throw new Error("Cycle detected")}var Ve=Symbol.for("preact-signals");function We(){if(Xe>1)Xe--;else{for(var e,t=!1;void 0!==$e;){var n=$e;for($e=void 0,Ze++;void 0!==n;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&et(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=i}}if(Ze=0,Xe--,t)throw e}}var Ue,qe,Ye=void 0,$e=void 0,Xe=0,Ze=0,Ge=0;function Je(e){if(void 0!==Ye){var t=e.n;if(void 0===t||t.t!==Ye)return t={i:0,S:e,p:Ye.s,n:void 0,t:Ye,e:void 0,x:void 0,r:t},void 0!==Ye.s&&(Ye.s.n=t),Ye.s=t,e.n=t,32&Ye.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=Ye.s,t.n=void 0,Ye.s.n=t,Ye.s=t),t}}function Ke(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Qe(e){return new Ke(e)}function et(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function tt(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function nt(e){for(var t=e.s,n=void 0;void 0!==t;){var i=t.p;-1===t.i?(t.S.U(t),void 0!==i&&(i.n=t.n),void 0!==t.n&&(t.n.p=i)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=i}e.s=n}function it(e){Ke.call(this,void 0),this.x=e,this.s=void 0,this.g=Ge-1,this.f=4}function rt(e){return new it(e)}function ot(e){var t=e.u;if(e.u=void 0,"function"==typeof t){Xe++;var n=Ye;Ye=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,at(e),t}finally{Ye=n,We()}}}function at(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ot(e)}function ct(e){if(Ye!==this)throw new Error("Out-of-order effect");nt(this),Ye=e,this.f&=-2,8&this.f&&at(this),We()}function st(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function lt(e){var t=new st(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function ut(e,t){l[e]=t.bind(null,l[e]||function(){})}function dt(e){qe&&qe(),qe=e&&e.S()}function ht(e){var t=this,n=e.data,i=ft(n);i.value=n;var r=Oe((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e;m(r.peek())||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=r.peek()},rt((function(){var e=i.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return r.value}function pt(e,t,n,i){var r=t in e&&void 0===e.ownerSVGElement,o=Qe(n);return{o:function(e,t){o.value=e,i=t},d:lt((function(){var n=o.value.value;i[t]!==n&&(i[t]=n,r?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}function ft(e){return Oe((function(){return Qe(e)}),[])}function vt(e){var t=Me(e);return t.current=e,Ue.__$f|=4,Oe((function(){return rt((function(){return t.current()}))}),[])}Ke.prototype.brand=Ve,Ke.prototype.h=function(){return!0},Ke.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},Ke.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Ke.prototype.subscribe=function(e){var t=this;return lt((function(){var n=t.value,i=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=i}}))},Ke.prototype.valueOf=function(){return this.value},Ke.prototype.toString=function(){return this.value+""},Ke.prototype.toJSON=function(){return this.value},Ke.prototype.peek=function(){return this.v},Object.defineProperty(Ke.prototype,"value",{get:function(){var e=Je(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(Ye instanceof it&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Ze>100&&Re(),this.v=e,this.i++,Ge++,Xe++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{We()}}}}),(it.prototype=new Ke).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Ge)return!0;if(this.g=Ge,this.f|=1,this.i>0&&!et(this))return this.f&=-2,!0;var e=Ye;try{tt(this),Ye=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return Ye=e,nt(this),this.f&=-2,!0},it.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Ke.prototype.S.call(this,e)},it.prototype.U=function(e){if(void 0!==this.t&&(Ke.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},it.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},it.prototype.peek=function(){if(this.h()||Re(),16&this.f)throw this.v;return this.v},Object.defineProperty(it.prototype,"value",{get:function(){1&this.f&&Re();var e=Je(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),st.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},st.prototype.S=function(){1&this.f&&Re(),this.f|=1,this.f&=-9,ot(this),tt(this),Xe++;var e=Ye;return Ye=this,ct.bind(this,e)},st.prototype.N=function(){2&this.f||(this.f|=2,this.o=$e,$e=this)},st.prototype.d=function(){this.f|=8,1&this.f||at(this)},ht.displayName="_st",Object.defineProperties(Ke.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ht},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),ut("__b",(function(e,t){if("string"==typeof t.type){var n,i=t.props;for(var r in i)if("children"!==r){var o=i[r];o instanceof Ke&&(n||(t.__np=n={}),n[r]=o,i[r]=o.peek())}}e(t)})),ut("__r",(function(e,t){dt();var n,i=t.__c;i&&(i.__$f&=-2,void 0===(n=i.__$u)&&(i.__$u=n=function(e){var t;return lt((function(){t=this})),t.c=function(){i.__$f|=1,i.setState({})},t}())),Ue=i,dt(n),e(t)})),ut("__e",(function(e,t,n,i){dt(),Ue=void 0,e(t,n,i)})),ut("diffed",(function(e,t){var n;if(dt(),Ue=void 0,"string"==typeof t.type&&(n=t.__e)){var i=t.__np,r=t.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=pt(n,s,u,r),o[s]=l):l.o(u,r)}}}e(t)})),ut("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__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=t.__c;if(a){var c=a.__$u;c&&(a.__$u=void 0,c.d())}}e(t)})),ut("__h",(function(e,t,n,i){(i<3||9===i)&&(t.__$f|=2),e(t,n,i)})),I.prototype.shouldComponentUpdate=function(e,t){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 t)return!0;for(var r in e)if("__source"!==r&&e[r]!==this.props[r])return!0;for(var o in this.props)if(!(o in e))return!0;return!1};var mt=0;function _t(e,t,n,i,r,o){var a,c,s={};for(c in t)"ref"==c?a=t[c]:s[c]=t[c];var u={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--mt,__source:r,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===s[c]&&(s[c]=a[c]);return l.vnode&&l.vnode(u),u}var gt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},yt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},wt=function(e){return _t("svg",{viewBox:"0 0 1024 1024",id:"send",className:e.className,version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},bt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},xt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},kt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Ct=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Tt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Nt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M960 544H64a32 32 0 1 1 0-64h896a32 32 0 1 1 0 64"})})},Et=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[_t("path",{d:"M481.0752 263.3728l50.9952 1.024 1.8432-105.8816-50.9952-0.8192z"}),_t("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"}),_t("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"}),_t("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"}),_t("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"}),_t("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"})]})},St=function(){return _t("svg",{viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_t("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"}),_t("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"}),_t("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"})]})},At=function(){return _t("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:_t("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"})})},Mt=function(){var e=1e3,t=140,n=250,i=.8;return _t("svg",{fill:"currentColor",viewBox:"0 0 ".concat(e," ").concat(e),xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:Array.from({length:4}).map((function(e,r){return _t("rect",{fill:"currentColor",rx:70,ry:70,height:n,width:t,x:286.66666666666663*r,y:375,children:[_t("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"}),_t("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)}))})},Ot=function(e){return _t("svg",{className:e.className,onClick:e.onClick,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},Lt=function(e){return _t("svg",{className:e.className,viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("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"})})},It=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M972.657609 209.348408C987.158609 209.36839 998.930114 197.571202 998.949999 182.99865 998.969882 168.426097 987.230618 156.59651 972.729617 156.576528L32.457975 155.280806C17.956974 155.260823 6.18547 167.058012 6.165585 181.630564 6.1457 196.203116 17.884965 208.032703 32.385966 208.052686L972.657609 209.348408ZM180.466902 992.356169 180.466902 1019.014859 206.993296 1018.74074 833.361858 1012.267947 859.348284 1011.999407 859.348284 985.883377 859.348284 289.397297C859.348284 274.824732 847.59289 263.011332 833.091874 263.011332 818.590859 263.011332 806.835465 274.824732 806.835465 289.397297L806.835465 985.883377 832.82189 959.498805 206.453329 965.971599 232.979723 992.356169 232.979723 282.67005C232.979723 268.097483 221.224329 256.284085 206.723313 256.284085 192.222298 256.284085 180.466902 268.097483 180.466902 282.67005L180.466902 992.356169ZM656.410257 847.079027C656.410257 861.651593 668.165651 873.464992 682.666667 873.464992 697.167682 873.464992 708.923076 861.651593 708.923076 847.079027L708.923076 372.131659C708.923076 357.559091 697.167682 345.745694 682.666667 345.745694 668.165651 345.745694 656.410257 357.559091 656.410257 372.131659L656.410257 847.079027ZM341.333333 847.079027C341.333333 861.651593 353.08873 873.464992 367.589743 873.464992 382.090758 873.464992 393.846155 861.651593 393.846155 847.079027L393.846155 372.131659C393.846155 357.559091 382.090758 345.745694 367.589743 345.745694 353.08873 345.745694 341.333333 357.559091 341.333333 372.131659L341.333333 847.079027ZM498.871795 847.079027C498.871795 861.651593 510.627189 873.464992 525.128205 873.464992 539.62922 873.464992 551.384614 861.651593 551.384614 847.079027L551.384614 372.131659C551.384614 357.559091 539.62922 345.745694 525.128205 345.745694 510.627189 345.745694 498.871795 357.559091 498.871795 372.131659L498.871795 847.079027ZM392.147755 116.721777C392.147755 102.063669 403.758665 90.363507 418.40134 90.363507L622.925796 90.363507C637.408947 90.363507 649.179381 102.1619 649.179381 116.549585L649.179381 171.644875 701.692203 171.644875 701.692203 116.549585C701.692203 72.986607 666.38105 37.591577 622.925796 37.591577L418.40134 37.591577C374.724427 37.591577 339.634933 72.950804 339.634933 116.721777L339.634933 165.310801 392.147755 165.310801 392.147755 116.721777Z"})})},Dt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 184l144 144 144-144"})})},zt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:"".concat(e.className," icon"),viewBox:"0 0 512 512",children:_t("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"})})},Pt=function(e){return _t("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",children:_t("circle",{cx:"25",cy:"25",r:"20",stroke:"currentColor",strokeWidth:"5",fill:"none",strokeDasharray:"31.415, 31.415",strokeLinecap:"round",children:_t("animateTransform",{attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"1s",repeatCount:"indefinite"})})})},Bt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ht=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},jt=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Ft=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("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"})})},Rt=function(e){return _t("svg",{className:e.className,id:"stop",viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("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"}),_t("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"})]})},Vt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})})},Wt=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:[_t("path",{d:"M394.688 126.208a32 32 0 0 1 32-32h170.688a32 32 0 0 1 32 32v138.624h288a32 32 0 0 1 32 32v170.688a32 32 0 0 1-32 32H106.688a32 32 0 0 1-32-32V296.832a32 32 0 0 1 32-32h288V126.208z m64 32v138.624a32 32 0 0 1-32 32h-288v106.688h746.688V328.832h-288a32 32 0 0 1-32-32V158.208H458.688z"}),_t("path",{d:"M138.688 469.376a32 32 0 0 1 32-32h682.688a32 32 0 0 1 32 32v384a32 32 0 0 1-32 32H170.688a32 32 0 0 1-32-32v-384z m64 32v320h618.688v-320H202.688z"}),_t("path",{d:"M341.376 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32zM512 691.2a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0v-128a32 32 0 0 1 32-32zM682.688 691.52a32 32 0 0 1 32 32V851.2a32 32 0 1 1-64 0v-127.68a32 32 0 0 1 32-32z"})]})},Ut=function(){return _t("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",children:_t("path",{d:"M843.251 424.407l43.828-74.898c10.194-17.946 32.596-22.158 48.956-11.598 16.298 10.499 23.44 32.658 14.223 49.566l-113.11 195.212-61.164-40.044-126.418-82.285c-16.115-11.598-20.632-34.428-10.194-51.702 9.705-17.397 31.009-23.501 47.857-13.734l89.67 59.028C748.576 295.547 615.81 180.667 461.008 180.667c-177.387 0-320.042 148.758-320.042 331.335 0 183.613 143.692 331.334 319.981 331.334 107.861 0.184 208.58-56.158 268.034-149.858 1.099-1.038 1.099-2.075 2.075-2.075 6.348-9.949 17.092-15.871 28.568-15.81 19.35 0 35.648 16.848 35.648 36.93 0 7.508-2.137 14.833-6.104 21.059-72.823 114.698-196.066 183.675-328.099 183.614-216.088 0-391.4-181.478-391.4-405.195 0-223.718 175.312-405.195 391.339-405.195 183.125-0.427 342.016 131.606 382.243 317.601z"})})},qt=function(){return _t("svg",{version:"1.1",className:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M627.498667 55.168l170.666666 170.666667a42.624 42.624 0 0 1 0 60.330666l-469.333333 469.333334A42.538667 42.538667 0 0 1 298.666667 768H128a42.666667 42.666667 0 0 1-42.666667-42.666667v-170.666666c0-11.306667 4.48-22.186667 12.501334-30.165334l469.333333-469.333333a42.624 42.624 0 0 1 60.330667 0zM896 896a42.666667 42.666667 0 0 1 0 85.333333H128a42.666667 42.666667 0 0 1 0-85.333333h768zM597.333333 145.664l-426.666666 426.666667V682.666667h110.336l426.666666-426.666667L597.333333 145.664z"})})},Yt=function(e){return _t("svg",{xmlns:"http://www.w3.org/2000/svg",className:e.className,viewBox:"0 0 512 512",children:_t("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M184 112l144 144-144 144"})})},$t=function(){return _t("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:_t("path",{d:"M896 870.4l-128-128c55.467-68.267 89.6-149.333 89.6-238.933 0-98.134-38.4-192-110.933-264.534-149.334-149.333-384-149.333-533.334-4.266-145.066 145.066-145.066 384 0 529.066 72.534 72.534 166.4 110.934 264.534 110.934 89.6 0 174.933-29.867 238.933-89.6l128 128c4.267 4.266 12.8 8.533 21.333 8.533s17.067-4.267 21.334-8.533c17.066-8.534 17.066-29.867 8.533-42.667zM260.267 721.067c-119.467-123.734-119.467-320 0-439.467 59.733-59.733 140.8-89.6 217.6-89.6 81.066 0 157.866 29.867 217.6 89.6 59.733 59.733 89.6 136.533 89.6 217.6 0 81.067-34.134 162.133-89.6 217.6-55.467 59.733-132.267 93.867-217.6 93.867-81.067 0-157.867-34.134-217.6-89.6z"})})},Xt=function(e){var t=e.items,n=ft([]),i=new ee("chat-thought-chain"),r=ft([]);Ae((function(){r.value=t.filter((function(e){return e.description})),r.value.length>0&&r.value.forEach((function(e,t){e.done&&(n.value=[].concat(o(n.value),[t]))}))}),[t]);return 0===r.value.length?null:_t("div",{className:"".concat(i.b()," ").concat(i.is("single",1===r.value.length)),children:r.value.map((function(e,t){if(e.description){var r=n.value.includes(t);return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("collapsed",r)),children:[_t("div",{className:i.e("item-icon"),children:e.icon||_t("span",{children:t})}),_t("div",{className:i.e("item-content"),children:[_t("div",{className:i.e("item-title"),onClick:function(){return function(e){n.value.includes(e)?n.value=n.value.filter((function(t){return t!==e})):n.value=[].concat(o(n.value),[e])}(t)},children:[e.title,_t(Dt,{className:i.e("icon")})]}),_t("div",{className:i.e("item-description"),children:e.description})]})]},t)}}))})},Zt=function(e){var t=e.items,n=e.onItemClick,i=new ee("chat-suggestions");return _t("div",{className:"".concat(i.b()),children:t.map((function(e,t){return _t("div",{className:"".concat(i.e("item")," ").concat(i.is("action","action"===e.type)),onClick:function(t){return function(e,t){null==n||n(e,t)}(e,t)},title:e.metadata.content_name,children:[e.metadata.content_name,_t(Yt,{className:"".concat(i.e("item-icon"))})]},t)}))})},Gt=new ee("markdown-message"),Jt=function(e){var t=e.message,n=e.size,i=ft(oe()),r=ft(null),o=Oe((function(){return 20===t.state&&!0!==t.completed}),[t.state,t.completed]),a=Oe((function(){return 20===t.state&&!0===t.completed}),[t.state,t.completed]),c=ft({title:"",description:"",icon:_t(Pt,{})}),l=ft({hasSuggestions:!1,suggestions:[]}),u=function(e){e&&e.length>0?l.value={hasSuggestions:!0,suggestions:e}:l.value={hasSuggestions:!1,suggestions:[]}},d=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="",o=!1;return-1===n?(o=!1,i=e.slice(t+7),r=""):(o=!0,i=e.slice(t+7,n),r=e.slice(n+8)),{isThoughtCompleted:o,thoughtContent:i,answerContent:r}};return Ae((function(){if(n>=0&&r.value){if(-1!==t.content.indexOf("")){var e=d(t.content),i=e.isThoughtCompleted,o=e.thoughtContent,a=e.answerContent;i?(c.value.icon=_t(zt,{}),c.value.title="思考完成"):!0===t.completed?(c.value.icon=_t(zt,{}),c.value.title="思考已停止"):(c.value.icon=_t(Pt,{}),c.value.title="思考中..."),c.value.description=o||"",r.value.setMarkdown(a||"")}else r.value.setMarkdown(t.content||"");u(t.suggestions)}}),[t,n]),Ae((function(){var e="";if(-1!==t.content.indexOf("")){var n=d(t.content),o=n.isThoughtCompleted,a=n.thoughtContent,l=n.answerContent;c.value={title:o?"思考完成":!0===t.completed?"思考已停止":"思考中...",description:a||"",icon:o||!0===t.completed?_t(zt,{}):_t(Pt,{})},l&&(e=l)}else e=t.content;u(t.suggestions),r.value=new s({id:i,value:e||"",editor:{defaultModel:"previewOnly"},themeSettings:{mainTheme:"dark",codeBlockTheme:"dark"},previewer:{enablePreviewerBubble:!1},engine:{syntax:{table:{enableChart:!1,externals:["echarts"]}}}})}),[]),_t("div",{className:"".concat(Gt.b()," ").concat(Gt.is("loading",o)),children:[_t("div",{className:Gt.b("header"),children:[_t("div",{className:Gt.be("header","caption"),children:"AI "}),e.children,a?_t("div",{className:Gt.be("header","timeout"),children:"请求超时"}):null]}),_t("div",{className:"".concat(Gt.b("content")," pre-wrap-container"),children:[_t(Xt,{items:[c.value]}),_t("div",{id:i})]}),_t("div",{className:Gt.b("footer"),children:l.value.hasSuggestions?_t(Zt,{items:l.value.suggestions,onItemClick:function(t,n){!function(t,n){e.controller.handleSuggestionClick(e.message,t,n)}(t,n)}}):null})]})},Kt=new ee("ossfile-material"),Qt=function(e){var t=vt((function(){return e.material.data.name})),n=vt((function(){return e.material.metadata.size})),i=vt((function(){var t=e.material.metadata.state;return"successed"===t?"上传成功":"uploading"===t?"上传中":"failed"===t?"上传失败":"未知状态"})),r=vt((function(){switch(e.material.metadata.state){case"successed":return"#1890ff";case"uploading":return"#52c41a";default:return"#ff4d4f"}}));return _t("div",{className:Kt.b(),children:[_t("div",{className:Kt.b("left"),children:_t(Ht,{})}),_t("div",{className:Kt.b("right"),children:[_t("div",{className:Kt.e("name"),title:t,children:t}),_t("div",{className:Kt.e("metadata"),children:[_t("div",{children:[n,"B"]}),_t("div",{style:{color:r.value},children:i})]})]})]})},en=new ee("common-material"),tn=function(e){var t,n,i,r,o=null===(t=e.controller.opts.questionToolbarItems)||void 0===t?void 0:t.find((function(t){return t.id===e.material.metadata.actionId})),a=vt((function(){return e.material.metadata.name}));return _t("div",{className:en.b(),children:[_t("div",{className:en.b("left"),children:o&&o.icon?"function"==typeof o.icon?o.icon():(null===(n=o.icon)||void 0===n?void 0:n.showIcon)&&_t(L,{children:null!==(i=o.icon)&&void 0!==i&&i.cssClass?_t("i",{className:o.icon.cssClass}):null!==(r=o.icon)&&void 0!==r&&r.imagePath?ce(o.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:o.icon.imagePath}}):_t("img",{src:o.icon.imagePath}):null}):_t(Ft,{})}),_t("div",{className:en.b("right"),children:[_t("div",{className:en.e("name"),title:a,children:a}),_t("div",{className:en.e("metadata"),children:_t("div",{children:(null==o?void 0:o.label)||"素材资源"})})]})]})},nn=new ee("chat-input-material-item"),rn=function(e){var t=e.material,n=null;if("ossfile"===t.type)n=Qt;else n=tn;return _t("div",{className:"".concat(nn.b()," ").concat(nn.is("disabled",e.disabled)),children:[_t("div",{className:nn.e("icon"),onClick:function(){e.controller.deleteMaterial(t)},children:_t(jt,{})}),M(n,{material:t,controller:e.controller})]})},on=new ee("user-message-question"),an=function(e){var t=ft(oe()),n=ft(null),i=vt((function(){return e.message.content})),r=vt((function(){return de.parseMixedContent(i.value)}));return Ae((function(){n.value=new s({id:t,value:r.value.remainingText||"",editor:{defaultModel:"previewOnly"},themeSettings:{mainTheme:"dark",codeBlockTheme:"dark"},previewer:{enablePreviewerBubble:!1},engine:{syntax:{table:{enableChart:!1,externals:["echarts"]}}}})}),[r.value.remainingText]),_t("div",{className:on.b(),children:[_t("div",{className:on.e("user-header"),children:[e.children,_t("div",{className:on.e("user"),children:"我"})]}),_t("div",{className:on.e("content"),children:_t("div",{className:on.em("content","body"),children:[r.value.hasResources&&_t("div",{className:on.em("content","material"),children:r.value.resources.map((function(t){return _t(rn,{material:t,disabled:!0,controller:e.controller},t.id)}))}),_t("div",{className:"pre-wrap-container",children:_t("div",{id:t})})]})})]})},cn=new ee("error-message"),sn=function(e){var t=vt((function(){return e.message.content}));return _t("div",{className:cn.b(),children:[_t("div",{className:cn.b("header"),children:[_t("div",{className:cn.be("header","caption"),children:"AI "}),e.children]}),_t("div",{className:"".concat(cn.e("content")," pre-wrap-container"),children:_t("span",{children:t})})]})},ln=new ee("unknown-message"),un=function(e){return _t("div",{className:ln.b(),children:_t("div",{className:"".concat(ln.e("content")," pre-wrap-container"),children:["暂未支持的消息类型: ",e.message.type]})})},dn=new ee("chat-message-item"),hn=function(e){var t=e.message,n=e.size,i=null;switch(t.type){case"DEFAULT":i="ASSISTANT"===t.role?Jt:an;break;case"ERROR":i=sn;break;default:i=un}return _t("div",{className:dn.b(),children:M(i,{size:n,message:t,controller:e.controller,children:e.children})})},pn=function(){function e(t){v(this,e),this.msg=t}return _(e,[{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 e=this.msg.content;if(-1!==e.indexOf("")&&-1===e.indexOf(""))return"";if(-1!==(e=e.replace(/[^]*?<\/think>/g,"").trim()).indexOf("")&&-1===e.indexOf(""))return"";var t=(e=e.replace(/[^]*?<\/resources>/g,"").trim()).indexOf("");return-1!==t&&(e=e.substring(0,t).trim()),e}},{key:"content",get:function(){return this.msg.content}},{key:"completed",get:function(){return this.msg.completed}},{key:"suggestions",get:function(){return this.msg.suggestions}},{key:"_origin",get:function(){return this.msg}},{key:"update",value:function(e){e.content||(e.content=""),-1!==e.content.indexOf("")&&this.msg.content&&(this.msg.content=""),this.msg.content+=e.content}},{key:"updateCompleted",value:function(e){this.msg.completed=e}}]),e}(),fn=function(){function e(t){v(this,e),this.data=t}return _(e,[{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:"sourceCaption",get:function(){return this.data.sourceCaption||this.caption}},{key:"url",get:function(){return this.data.url}},{key:"aiChat",get:function(){return this.data.aiChat}}]),e}(),vn=function(){function e(t){v(this,e),this.material=t}return _(e,[{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}}]),e}(),mn=new ee("chat-toolbar-item"),_n=function(e){var t,n,i,r=e.model,o=e.data,c=e.className,s=e.disabled,l=void 0!==s&&s,u=e.buttonType,d=void 0===u?"default":u,h=e.onClick,p=a(Se(!1),2),f=p[0],v=p[1],m=Me(null),_=function(e){return"function"==typeof e.hidden?e.hidden(o):!0===e.hidden};if(_(r))return _t(L,{});var g=function(e){return!!l||("function"==typeof e.disabled?e.disabled(o):!0===e.disabled)},y=function(e){var t,n,i,r;return"function"==typeof e.icon?e.icon():null!==(t=e.icon)&&void 0!==t&&t.showIcon&&null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.showIcon&&null!==(r=e.icon)&&void 0!==r&&r.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):void 0},w=function(e,t){g(t)||(v(!1),h(e,t))};return Ae((function(){var e=function(e){m.current&&m.current.contains(e.target)||v(!1)};return f&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[f]),_t("div",{className:"".concat(mn.b()," ").concat(mn.b(d)," ").concat(r.customClass||""," ").concat(c||""," ").concat(mn.is("disabled",g(r))," ").concat(mn.is("more",!(null===(t=r.children)||void 0===t||!t.length))),children:[_t("div",{title:r.title,className:mn.e("content"),onClick:function(e){return w(e,r)},children:[_t("div",{className:mn.em("content","icon"),children:y(r)}),_t("div",{className:mn.em("content","label"),children:r.label})]}),(null===(n=r.children)||void 0===n?void 0:n.length)&&_t("div",{title:"更多",className:mn.e("more"),onClick:function(e){g(r)||v(!0)},children:_t("i",{"aria-hidden":"true",className:"fa fa-angle-down ".concat(mn.em("more","icon"))})}),f&&_t("div",{ref:m,className:mn.b("dropdown"),children:null===(i=r.children)||void 0===i?void 0:i.map((function(e,t){if(!_(e))return _t("div",{title:e.title,onClick:function(t){return w(t,e)},className:"".concat(mn.be("dropdown","item")," ").concat(e.customClass||""," ").concat(mn.is("disabled",g(e))),children:[_t("div",{className:mn.bem("dropdown","item","icon"),children:y(e)}),_t("div",{className:mn.bem("dropdown","item","label"),children:e.label})]},t)}))})]})},gn=new ee("chat-toolbar"),yn=function(e){var t=e.controller,n=e.items,i=void 0===n?[]:n,r=e.data,a=e.type,c=e.className,s=e.mode,l=Ie(Ci),d=[],h=[{label:"重置对话",title:"重置对话",icon:function(){return _t(Ut,{})},onClick:function(){t.resetTopic()},children:[{label:"清空对话",title:"清空对话",icon:function(){return _t(Wt,{})},onClick:function(){t.clearTopic()}},{label:"新建对话",title:"新建对话",hidden:"TOPIC"!==s,icon:function(){return _t(St,{})},onClick:function(){l.newTopic&&l.newTopic()}}]}],p=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r)}},{label:"删除",title:"删除",icon:function(){return _t(bt,{})},onClick:function(){t.deleteMessage(r)}},{label:"复制",title:"复制",icon:function(){return _t(kt,{})},onClick:function(){t.copyMessage(r)}}];l.enableBackFill&&p.unshift.apply(p,[{label:"回填",title:"回填",icon:function(){return _t(yt,{})},onClick:function(){t.backfill(r)}}]);var f=[{label:"刷新",title:"刷新",icon:function(){return _t(xt,{})},onClick:function(){t.refreshMessage(r,!0)}}];if("content"===a)switch(r.type){case"DEFAULT":d="ASSISTANT"===r.role?[].concat(p,o(i)):[].concat(f);break;case"ERROR":d=[].concat(p,o(i))}else d=[].concat(h,o(i));var v=function(n,i){var o=u({},r);if(r instanceof pn?(Object.assign(o,{topic:t.topic}),o.msg.realcontent=r.realcontent):(o.data||(o.data={}),Object.assign(o.data,{messages:t.messages.value})),i.onClick&&"function"==typeof i.onClick)i.onClick(n,i,t.context,t.params,o);else{var a=e.controller.opts.extendToolbarClick;a&&"function"==typeof a&&a(n,i,t.context,t.params,o)}},m=Oe((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 _t("div",{className:"".concat(gn.b()," ").concat(c||""),children:d.map((function(e,t){return _t(_n,{data:r,model:e,disabled:m,buttonType:"content"===a?"circle":"default",onClick:v.bind(void 0)},t)}))})};var wn=function(e){var t,n,i,r=ft(!1),o=ft({}),a=new ee("chat-back-bottom"),c=ft(null),s=function(){if(c.value){var t=e.visibilityHeight||200,n=c.value.scrollHeight-c.value.scrollTop-c.value.offsetHeight;r.value=n>=t}},l=(t=s,n=300,i=null,function(){for(var e=this,r=arguments.length,o=new Array(r),a=0;a3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),K(M(Dn,{context:t.context},e.__v),t.l)}function Pn(e,t){var n=M(zn,{__v:e,i:t});return n.containerInfo=t,n}(Ln.prototype=new I).__a=function(e){var t=this,n=On(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),In(t,e,i)):r()};n?n(o):o()}},Ln.prototype.render=function(e){this.u=null,this.o=new Map;var t=F(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ln.prototype.componentDidUpdate=Ln.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){In(e,n,t)}))};var Bn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Hn=/^(?: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]/,jn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Fn=/[A-Z0-9]/g,Rn="undefined"!=typeof document,Vn=function(e){return("undefined"!=typeof Symbol&&"symbol"==f(Symbol())?/fil|che|rad/:/fil|che|ra/).test(e)};I.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(I.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Wn=l.event;function Un(){}function qn(){return this.cancelBubble}function Yn(){return this.defaultPrevented}l.event=function(e){return Wn&&(e=Wn(e)),e.persist=Un,e.isPropagationStopped=qn,e.isDefaultPrevented=Yn,e.nativeEvent=e};var $n={enumerable:!1,configurable:!0,get:function(){return this.class}},Xn=l.vnode;l.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={};for(var r in t){var o=t[r];if(!("value"===r&&"defaultValue"in t&&null==o||Rn&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var a=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===o?o="":"ondoubleclick"===a?r="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Vn(t.type)?"onfocus"===a?r="onfocusin":"onblur"===a?r="onfocusout":jn.test(r)?r=a:-1===n.indexOf("-")&&Hn.test(r)?r=r.replace(Fn,"-$&").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(t.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=F(t.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",$n)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=Bn,Xn&&Xn(e)};var Zn=l.__r;l.__r=function(e){Zn&&Zn(e),e.__c};var Gn=l.diffed;l.diffed=function(e){Gn&&Gn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};var Jn=new Map;function Kn(e){var t=Jn.get(e);t&&t.destroy()}function Qn(e){var t=Jn.get(e);t&&t.update()}var ei=null;"undefined"==typeof window?((ei=function(e){return e}).destroy=function(e){return e},ei.update=function(e){return e}):((ei=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!Jn.has(e)){var t,n=null,i=window.getComputedStyle(e),r=(t=e.value,function(){a({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),o=function(t){e.removeEventListener("autosize:destroy",o),e.removeEventListener("autosize:update",c),e.removeEventListener("input",r),window.removeEventListener("resize",c),Object.keys(t).forEach((function(n){return e.style[n]=t[n]})),Jn.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",o),e.addEventListener("autosize:update",c),e.addEventListener("input",r),window.addEventListener("resize",c),e.style.overflowX="hidden",e.style.wordWrap="break-word",Jn.set(e,{destroy:o,update:c}),c()}function a(t){var r,o,c=t.restoreTextAlign,s=void 0===c?null:c,l=t.testForHeightReduction,u=void 0===l||l,d=i.overflowY;if(0!==e.scrollHeight&&("vertical"===i.resize?e.style.resize="none":"both"===i.resize&&(e.style.resize="horizontal"),u&&(r=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null}))}}(e),e.style.height=""),o="content-box"===i.boxSizing?e.scrollHeight-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):e.scrollHeight+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),"none"!==i.maxHeight&&o>parseFloat(i.maxHeight)?("hidden"===i.overflowY&&(e.style.overflow="scroll"),o=parseFloat(i.maxHeight)):"hidden"!==i.overflowY&&(e.style.overflow="hidden"),e.style.height=o+"px",s&&(e.style.textAlign=s),r&&r(),n!==o&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=o),d!==i.overflow&&!s)){var h=i.textAlign;"hidden"===i.overflow&&(e.style.textAlign="start"===h?"end":"start"),a({restoreTextAlign:h,testForHeightReduction:!0})}}function c(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Kn),e},ei.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Qn),e});var ti=ei,ni=function(e){return e.STYLE_CACHE="ai-chat-style-cache",e.MINIMIZE_STYLY_CHCHE="ai-chat-minimize-style-cache",e.DATA_BASE_NAME="ibiz-chat",e.DATA_TABLE_NAME="history-message",e.DATA_TABLE_KEY_NAME="id",e}(ni||{}),ii=function(){function e(t){v(this,e),g(this,"messages",Qe([])),g(this,"materials",Qe([])),g(this,"input",Qe("")),g(this,"isLoading",Qe(!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=t,this.context=t.context,this.params=t.params,this.appDataEntityId=t.appDataEntityId,this.topicId=t.topicId,this.topic=t.topic,this.fecthHistory()}var t,n,i,r,a,c,s,l,h,f;return _(e,[{key:"fecthHistory",value:(f=p(d().mark((function e(){var t,n=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topicId){e.next=7;break}return e.next=3,le.getData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 3:if(!((t=e.sent)&&t.data&&t.data.length>0)){e.next=7;break}return t.data.forEach((function(e){var t={messageid:e.messageid,state:e.state,type:e.type,role:e.role,content:e.content,suggestions:e.suggestions,completed:!0};n.addMessage(t)})),e.abrupt("return",!0);case 7:return e.next=9,this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId,appendCurData:this.opts.appendCurData});case 9:return e.sent&&this.opts.appendCurContent&&this.addMessage({state:30,messageid:oe(),role:"USER",type:"DEFAULT",content:this.opts.appendCurContent,completed:!0}),e.abrupt("return",!0);case 12:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"asyncToIndexDB",value:(h=p(d().mark((function e(){var t;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.topicId){e.next=2;break}return e.abrupt("return");case 2:return t={id:this.topicId,data:this.messages.value.map((function(e){return e._origin})),timestamp:(new Date).getTime()},e.next=5,le.updateData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"setInput",value:function(e){this.input.value=e||""}},{key:"addMessage",value:function(e){var t=this.messages.value.find((function(t){return t.messageid===e.messageid}));t?(t.update(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB()}},{key:"completeMessage",value:(l=p(d().mark((function e(t,n){var i;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(i=this.messages.value.find((function(e){return e.messageid===t})))){e.next=6;break}return i.updateCompleted(n),this.messages.value=o(this.messages.value),e.next=6,this.asyncToIndexDB();case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"replaceMessage",value:function(e){var t=this,n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==n?(this.messages.value[n]=new pn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB(),"DEFAULT"===e.type&&this.opts.recommendPrompt&&this.opts.recommendPrompt(this.context,this.params,{appDataEntityId:this.appDataEntityId,message:{messages:[e]}}).then((function(n){n&&n.content&&t.updateRecommendPrompt(e,n.content)}))}},{key:"stopMessage",value:(s=p(d().mark((function e(t){var n,i;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return-1!==(n=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})))?(i=this.messages.value[n],t.content=i.content,this.messages.value[n]=new pn(t),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(t)]),e.next=4,this.asyncToIndexDB();case 4:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"stringlyMaterialResource",value:function(){var e="",t=[];return this.materials.value&&this.materials.value.length>0&&(this.materials.value.forEach((function(e){if("ossfile"===e.type){var n=e.metadata;n.state&&"successed"===n.state&&t.push(e)}else t.push(e)})),this.materials.value=[]),t&&t.length>0&&(e=de.stringify(t)),e}},{key:"question",value:(c=p(d().mark((function e(t){var n,i=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.isLoading.value=!0,this.messages.value.forEach((function(e,t){var n=e._origin;n.suggestions&&(n.suggestions=void 0,i.messages.value[t]=new pn(n))})),this.messages.value=o(this.messages.value),this.asyncToIndexDB(),(n=this.stringlyMaterialResource())?n+="\n".concat(t):n=t,this.addMessage({state:30,messageid:oe(),role:"USER",type:"DEFAULT",content:n}),e.next=10,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 10:this.opts.action&&this.opts.action("question",t),this.isLoading.value=!1;case 12:return e.prev=12,this.isLoading.value=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,this,[[0,,12,15]])}))),function(e){return c.apply(this,arguments)})},{key:"abortQuestion",value:(a=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.opts.abortQuestion(this);case 3:return e.prev=3,this.isLoading.value=!1,e.finish(3);case 6:case"end":return e.stop()}}),e,this,[[0,,3,6]])}))),function(){return a.apply(this,arguments)})},{key:"backfill",value:function(e){this.opts.action&&this.opts.action("backfill",e)}},{key:"deleteMessage",value:function(e){var t=this.messages.value.findIndex((function(t){return t.messageid===e.messageid}));-1!==t&&(this.messages.value.splice(t,1),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),this.opts.action&&this.opts.action("deletemsg",e)}},{key:"refreshMessage",value:(r=p(d().mark((function e(t){var n,i,r,a=arguments;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]&&a[1],this.isLoading.value=!0,e.prev=2,i=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})),!n){e.next=11;break}return this.messages.value.splice(i+1,this.messages.value.length-i-1),this.messages.value=o(this.messages.value),e.next=9,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 9:e.next=21;break;case 11:if(i!==this.messages.value.length-1){e.next=18;break}return this.messages.value.pop(),this.messages.value=o(this.messages.value),e.next=16,this.opts.question(this,this.context,this.params,{appDataEntityId:this.appDataEntityId},this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 16:e.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",t);case 23:return e.prev=23,this.isLoading.value=!1,e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[2,,23,26]])}))),function(e){return r.apply(this,arguments)})},{key:"copyMessage",value:function(e){var t=e.realcontent;se.copy(t),this.opts.action&&this.opts.action("copymsg",e)}},{key:"resetTopic",value:(i=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.abortQuestion();case 2:if(!this.topicId){e.next=5;break}return e.next=5,le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 5:this.messages.value=[],this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId,appendCurData:this.opts.appendCurData});case 7:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"clearTopic",value:(n=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.abortQuestion();case 2:if(!this.topicId){e.next=5;break}return e.next=5,le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,this.topicId);case 5:this.messages.value=[];case 6:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"addMaterial",value:function(e){var t=this.materials.value.find((function(t){return t.id===e.id}));this.materials.value=t?o(this.materials.value):[].concat(o(this.materials.value),[new vn(e)])}},{key:"replaceMaterial",value:function(e,t){var n=this.materials.value.findIndex((function(t){return t.id===e}));-1!==n?(this.materials.value[n]=new vn(t),this.materials.value=o(this.materials.value)):this.materials.value=[].concat(o(this.materials.value),[new vn(t)])}},{key:"deleteMaterial",value:function(e){var t=this.materials.value.findIndex((function(t){return t.id===e.id}));-1!==t&&(this.materials.value.splice(t,1),this.materials.value=o(this.materials.value))}},{key:"updateRecommendPrompt",value:function(e,t){if(t){var n=this.messages.value.findIndex((function(t){return t.messageid===e.messageid})),i=he.parseMixedContent(t).suggestions;i&&i.length>0&&(e.suggestions=i,-1!==n?(this.messages.value[n]=new pn(e),this.messages.value=o(this.messages.value)):this.messages.value=[].concat(o(this.messages.value),[new pn(e)]),this.asyncToIndexDB())}}},{key:"handleSuggestionClick",value:(t=p(d().mark((function e(t,n,i){var r,a,c,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:-1!==(r=this.messages.value.findIndex((function(e){return e.messageid===t.messageid})))&&((a=this.messages.value[r]._origin).suggestions=void 0,this.messages.value[r]=new pn(a),this.messages.value=o(this.messages.value)),this.asyncToIndexDB(),c=n.type,e.t0=c,e.next="action"===e.t0?7:"raw"===e.t0?17:20;break;case 7:if(!this.opts.extendToolbarClick){e.next=16;break}if(s=n.data.actionid){e.next=11;break}throw new Error("actionid不能为空");case 11:return l=u({},t),Object.assign(l,{topic:this.topic}),l.msg.realcontent=t.realcontent,e.next=16,this.opts.extendToolbarClick(i,{id:s,appId:this.context.srfappid},this.context,this.params,l);case 16:case 19:return e.abrupt("break",21);case 17:return e.next=19,this.question(n.data.content);case 20:throw new Error("不支持".concat(c,"推荐类型"));case 21:case"end":return e.stop()}}),e,this)}))),function(e,n,i){return t.apply(this,arguments)})}]),e}(),ri=function(){function e(t){v(this,e),g(this,"topics",Qe([])),g(this,"activedTopic",Qe(void 0)),g(this,"currentTopicOptions",void 0),this.chat=t}var t,n,i,r,a,c,s;return _(e,[{key:"fetchHistory",value:(s=p(d().mark((function e(t){var n,i,r=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.configService(t.appid,"aitopics",t.type),e.next=3,n.load();case 3:(i=e.sent)&&i.length>0&&i.forEach((function(e){r.topics.value=[].concat(o(r.topics.value),[new fn(e)])}));case 5:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})},{key:"updateCurrentTopic",value:(c=p(d().mark((function e(t){var n,i,r,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.currentTopicOptions=t,n=this.topics.value.findIndex((function(e){return e.id===t.id})),i=new fn(t),-1!==n?this.topics.value.splice(n,1,new fn(t)):this.topics.value=[].concat(o(this.topics.value),[new fn(t)]),r=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),a=t.configService(t.appid,"aitopics",t.type),e.next=8,null==a?void 0:a.save(r);case 8:this.activedTopic.value=i;case 9:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"removeTopic",value:(a=p(d().mark((function e(t,n,i,r,a){var c,s,l,u,h;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=!0,!t.beforeDelete){e.next=5;break}return e.next=4,t.beforeDelete(n,i,r,a);case 4:s=e.sent;case 5:if(s){e.next=7;break}return e.abrupt("return");case 7:return-1!==(l=this.topics.value.findIndex((function(e){return e.id===r.id})))&&(this.topics.value.splice(l,1),this.topics.value=o(this.topics.value)),u=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),h=t.configService(t.appid,"aitopics",t.type),e.next=13,null==h?void 0:h.save(u);case 13:return e.next=15,le.deleteData(ni.DATA_BASE_NAME,ni.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 e.stop()}}),e,this)}))),function(e,t,n,i,r){return a.apply(this,arguments)})},{key:"updateTopic",value:(r=p(d().mark((function e(t,n){var i,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),r=t.configService(t.appid,"aitopics",t.type),e.next=4,null==r?void 0:r.save(i);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"handleTopicChange",value:function(e){var t;(null===(t=this.activedTopic.value)||void 0===t?void 0:t.id)!==e.id&&(this.activedTopic.value=e,this.chat.switchAiChatController(e))}},{key:"handleTopicAction",value:(i=p(d().mark((function e(t,n,i){var r,o,a,c,s,l;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.topics.value.find((function(e){return e.id===n.id})),!(this.currentTopicOptions&&r&&r.aiChat)){e.next=12;break}if(c=r.aiChat,s=c.context,l=c.params,"DELETE"!==t){e.next=8;break}return e.next=6,this.removeTopic(this.currentTopicOptions,s,l,r,i);case 6:e.next=11;break;case 8:if("RENAME"!==t){e.next=11;break}return e.next=11,this.updateTopic(this.currentTopicOptions,n);case 11:null===(o=(a=this.currentTopicOptions).action)||void 0===o||o.call(a,t,s,l,n,i);case 12:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"newTopic",value:(n=p(d().mark((function e(){var t,n,i,r,a,c,s,l,u;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this.activedTopic.value){e.next=3;break}return e.abrupt("return");case 3:return r=i.id.split("@")[0],a=this.topics.value.filter((function(e){return e.id.startsWith(r)})),c={appid:i.appid,id:"".concat(r,"@").concat(Date.now()),type:i.type,caption:"".concat(null===(t=i.sourceCaption)||void 0===t?void 0:t.split("_")[0],"_").concat(a.length),sourceCaption:i.sourceCaption,url:i.url,aiChat:i.aiChat},s=new fn(c),this.topics.value=[].concat(o(this.topics.value),[s]),l=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),u=null===(n=this.currentTopicOptions)||void 0===n?void 0:n.configService(c.appid,"aitopics",c.type),e.next=12,null==u?void 0:u.save(l);case 12:this.handleTopicChange(s);case 13:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"clearTopic",value:(t=p(d().mark((function e(){var t,n,i,r,o,a=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.topics.value.find((function(e){var t;return e.id===(null===(t=a.activedTopic.value)||void 0===t?void 0:t.id)})),this.currentTopicOptions&&n){e.next=3;break}return e.abrupt("return");case 3:if(i=!0,!this.currentTopicOptions.beforeDelete){e.next=8;break}return e.next=7,this.currentTopicOptions.beforeDelete(n.aiChat.context,n.aiChat.params,n,void 0,!0);case 7:i=e.sent;case 8:if(i){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,Promise.all(this.topics.value.map((function(e){if(e.id!==(null==n?void 0:n.id))return le.deleteData(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,e.id)})));case 12:return this.topics.value=n?[n]:[],r=null===(t=this.currentTopicOptions)||void 0===t?void 0:t.configService(this.currentTopicOptions.appid,"aitopics",this.currentTopicOptions.type),o=this.topics.value.map((function(e){return{appid:e.appid,id:e.id,type:e.type,caption:e.caption,sourceCaption:e.sourceCaption,url:e.url,aiChat:e.aiChat}})),e.next=17,null==r?void 0:r.save(o);case 17:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),oi=_((function e(t){v(this,e),this.aiChat=t})),ai=function(t){e(o,t);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=p(d().mark((function e(t,n){var i,r,o,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n||!n.onClick||"function"!=typeof n.onClick){e.next=6;break}return e.next=3,n.onClick(t,n,this.aiChat.context,this.aiChat.params);case 3:i=e.sent,e.next=14;break;case 6:if(!(r=this.aiChat.opts.extendToolbarClick)){e.next=13;break}return e.next=10,r(t,n,this.aiChat.context,this.aiChat.params,{});case 10:i=e.sent,e.next=14;break;case 13:console.error("未找到扩展工具栏点击事件");case 14:i&&i.data&&i.data.length>0&&(o=i.data[0],a={id:o.id,type:o.type,data:o.data||{},metadata:o.metadata||{}},n.id&&Object.assign(a.metadata,{actionId:n.id}),this.aiChat.addMaterial(a));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})}]),o}(oi),ci=function(t){e(o,t);var i,r=n(o);function o(){return v(this,o),r.apply(this,arguments)}return _(o,[{key:"excuteAction",value:(i=p(d().mark((function e(t,n){var i,r,o,a,c,s,l,u,h,f,v=this;return d().wrap((function(e){for(;;)switch(e.prev=e.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,h=i.onProgress,f={multiple:r||!0,accept:o||"*/*",maxSize:a||5242880,onSelect:function(e){null==c||c(e),e.length>0&&e.forEach((function(e){var t=v.buildMaterialObject(e);Object.assign(t.metadata,{state:"uploading"}),v.aiChat.addMaterial(t)}))},onUpload:function(){var e=p(d().mark((function e(t,n){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s(t,n,{context:v.aiChat.context,params:v.aiChat.params}));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),onSuccess:function(e,t){var n={id:e.id,type:"ossfile",data:{id:e.id,name:e.name},metadata:{ext:e.ext,fileext:e.fileext,fileid:e.fileid,filename:e.filename,size:e.size,filesize:e.filesize,state:"successed"}};v.aiChat.replaceMaterial(t.name,n),null==l||l(e,t)},onError:function(e,t){var n=v.buildMaterialObject(t);Object.assign(n.metadata,{state:"failed"}),v.aiChat.replaceMaterial(t.name,n),null==u||u(e,t)},onProgress:function(e,t){null==h||h(e,t)}},new ue(f).openFilePicker();case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"buildMaterialObject",value:function(e){return{id:e.name,type:"ossfile",data:{name:e.name,id:e.name},metadata:{size:e.size,type:e.type,lastModified:e.lastModified}}}}]),o}(oi),si=function(){function e(){v(this,e)}return _(e,null,[{key:"getMaterialHelper",value:function(e,t){return"ossfile"===e?new ci(t):new ai(t)}}]),e}(),li=function(){function e(){v(this,e),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 ri(this)}var t,n;return _(e,[{key:"aiChat",get:function(){var e;return this.aiTopicMap.get("".concat(null===(e=this.aiTopic.activedTopic.value)||void 0===e?void 0:e.id))}},{key:"initIndexDB",value:(n=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le.checkTableExists(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME);case 2:if(e.sent){e.next=6;break}return e.next=6,le.createTable(ni.DATA_BASE_NAME,ni.DATA_TABLE_NAME,ni.DATA_TABLE_KEY_NAME,!1);case 6:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"create",value:(t=p(d().mark((function e(t){var n,i,r,o,a,c,s=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initIndexDB();case 2:if(this.backupChatOptions=t,this.close(),this.container=document.createElement("div"),this.container.classList.add("ibiz-ai-chat"),document.body.appendChild(this.container),o=t.chatOptions,!t.mode||"TOPIC"!==t.mode){e.next=19;break}if(this.isMountedAiTopic){e.next=13;break}return e.next=12,this.aiTopic.fetchHistory(t.topicOptions);case 12:this.isMountedAiTopic=!0;case 13:return a=t.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,otherToolbarItems:o.otherToolbarItems,appendCurData:o.appendCurData,appendCurContent:o.appendCurContent}}),e.next=17,this.aiTopic.updateCurrentTopic(a);case 17:e.next=20;break;case 19:this.aiTopic.activedTopic.value=void 0;case 20:return Object.assign(o,{topicId:null===(n=a)||void 0===n?void 0:n.id,topic:a}),c=new ii(o),this.aiTopicMap.set("".concat(null===(i=a)||void 0===i?void 0:i.id),c),K(M(Ti,{aiChat:c,aiTopic:this.aiTopic,mode:t.mode?t.mode:"DEFAULT",containerOptions:t.containerOptions,caption:t.mode&&"TOPIC"===t.mode?"AI助手":o.caption,enableBackFill:null===(r=t.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(e){o.fullscreen&&o.fullscreen(e,o.context,o.params)},minimize:function(e){o.minimize&&o.minimize(e,o.context,o.params)}}),this.container),e.abrupt("return",c);case 25:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"switchAiChatController",value:function(e){var t,n,i,r,o,a=this,c=u({},this.backupChatOptions.chatOptions);(e.aiChat&&Object.assign(c,{caption:e.aiChat.caption,context:e.aiChat.context,params:e.aiChat.params,contentToolbarItems:e.aiChat.contentToolbarItems,footerToolbarItems:e.aiChat.footerToolbarItems,questionToolbarItems:e.aiChat.questionToolbarItems,otherToolbarItems:e.aiChat.otherToolbarItems,appendCurData:e.aiChat.appendCurData,appendCurContent:e.aiChat.appendCurContent,appDataEntityId:e.aiChat.appDataEntityId,topicId:e.id,topic:e,extendToolbarClick:this.backupChatOptions.chatOptions.extendToolbarClick,recommendPrompt:this.backupChatOptions.chatOptions.recommendPrompt}),this.aiTopicMap.has("".concat(e.id))?t=this.aiTopicMap.get("".concat(e.id)):(t=new ii(c),this.aiTopicMap.set("".concat(e.id),t)),this.container)&&(K(null,this.container),K(M(Ti,{aiChat:t,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(e){c.fullscreen&&c.fullscreen(e,c.context,c.params)},minimize:function(e){c.minimize&&c.minimize(e,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)}}]),e}(),ui=(t("chat",new li),new ee("chat-input-material")),di=function(e){var t=e.controller.materials;return _t("div",{className:ui.b(),children:t.value.map((function(t){return _t(rn,{material:t,disabled:!1,controller:e.controller},t.id)}))})},hi=function(e){var t=e.children,n=e.actions,i=e.content,r=e.position,o=void 0===r?"bottom":r,c=e.isOpen,s=e.onToggleOpen,l=e.onAction,d=new ee("pop"),h=Ie(Ci),p=a(Se(c||!1),2),f=p[0],v=p[1],m=Me(null),_=Me(null);Ae((function(){void 0!==c&&v(c)}),[c]),Ae((function(){return _.current||(_.current=document.createElement("div"),_.current.className=d.b("content-container"),document.body.appendChild(_.current)),function(){_.current&&document.body.removeChild(_.current)}}),[]),Ae((function(){var e=function(e){!m.current||m.current.contains(e.target)||e.target.closest(".".concat(d.b()))||e.target.closest(".ibiz-quick-edit")||e.target.closest(".ibiz-picker__transfer")||(v(!1),null==s||s(!1))};return f&&document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[f,s]);return _t("span",{className:"".concat(d.b("trigger-container")),children:[_t("span",{className:"".concat(d.b("trigger-element")),ref:m,onClick:function(e){e.stopPropagation();var t=!f;v(t),null==s||s(t)},children:t}),f&&_.current&&Pn(_t("div",{className:"".concat(d.b()," pop-").concat(o),style:function(){if(!m.current)return{};var e=m.current.getBoundingClientRect(),t={position:"absolute",zIndex:h.zIndex+1},n={bottom:{top:e.bottom+window.scrollY,left:e.left+window.scrollX},top:{bottom:window.innerHeight-e.top+window.scrollY,left:e.left+window.scrollX},left:{top:e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX},right:{top:e.top+window.scrollY,left:e.right+window.scrollX},"top-left":{bottom:window.innerHeight-e.top+window.scrollY,right:window.innerWidth-e.left+window.scrollX}};return u(u({},t),n[o])}(),children:i||(null==n?void 0:n.map((function(e){return _t("div",{title:e.caption,className:d.e("item"),onMouseDown:function(t){t.stopPropagation(),null==l||l(e.id,t)},children:[e.icon,_t("div",{className:d.em("item","caption"),children:e.caption})]},e.id)})))}),_.current)]})},pi=new ee("chat-input"),fi=window.SpeechRecognition||window.webkitSpeechRecognition,vi=function(e){var t,n=a(Se(!1),2),i=n[0],r=n[1],o=Me(null),c=e.controller.input,s=ft(!1),l=Me();fi&&!l.current&&(l.current=new fi,l.current.onstart=function(){s.value=!0},l.current.onend=function(){s.value=!1},l.current.onresult=function(e){var t,n=null===(t=e.results)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t[0])||void 0===t?void 0:t.transcript;n&&(c.value="".concat(c.value).concat(n))});var u=Le((function(e){c.value=e.target.value}),[c]),h=vt((function(){return c.value.length<=0}));Ae((function(){return o.current&&ti(o.current),function(){o.current&&ti.destroy(o.current)}}),[o]);var f=Le(p(d().mark((function t(){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=c.value,c.value="",t.next=5,e.controller.question(n);case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])}))),[c]),v=Le(p(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{e.controller.abortQuestion()}catch(n){console.error(n)}case 1:case"end":return t.stop()}}),t)}))),[c]),m=function(){var t=p(d().mark((function t(n){var i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=si.getMaterialHelper("ossfile",e.controller),t.next=3,i.excuteAction(n);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_=function(){var t=p(d().mark((function t(n,i){var o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=si.getMaterialHelper("common",e.controller),t.next=3,o.excuteAction(n,i);case 3:r(!1);case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}();return _t("div",{className:pi.b("wrapper"),children:[_t("div",{className:pi.b("material-wrapper"),children:_t(di,{controller:e.controller})}),_t("div",{className:pi.b("main-wrapper"),children:[_t("textarea",{className:pi.e("textarea"),type:"text",rows:6,autoCorrect:"off",autoCapitalize:"off",autoComplete:"off",value:c,onInput:u,onKeyDown:function(e){"Enter"!==e.code||e.isComposing||(e.stopPropagation(),!1===e.shiftKey&&f())},ref:o,disabled:e.controller.isLoading.value}),_t("div",{className:pi.b("action-wrapper"),children:[_t("div",{className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",e.controller.isLoading.value)),title:"上传资料",children:_t(hi,{content:_t("div",{className:pi.b("pop-actions"),children:[_t("div",{className:pi.b("pop-action-item"),onClick:function(e){m(e)},children:[_t("span",{className:pi.b("pop-action-item-icon"),children:_t(Ht,{})}),_t("span",{className:pi.b("pop-action-item-title"),children:"文件资料"})]}),null===(t=e.questionToolbarItems)||void 0===t?void 0:t.map((function(e){var t,n,i;return _t("div",{className:pi.b("pop-action-item"),onClick:function(t){_(t,e)},children:[_t("span",{className:pi.b("pop-action-item-icon"),children:"function"==typeof e.icon?e.icon():(null===(t=e.icon)||void 0===t?void 0:t.showIcon)&&_t(L,{children:null!==(n=e.icon)&&void 0!==n&&n.cssClass?_t("i",{className:e.icon.cssClass}):null!==(i=e.icon)&&void 0!==i&&i.imagePath?ce(e.icon.imagePath)?_t("div",{dangerouslySetInnerHTML:{__html:e.icon.imagePath}}):_t("img",{src:e.icon.imagePath}):null})}),_t("span",{className:pi.b("pop-action-item-title"),children:e.label})]},e.id)}))]}),position:"top-left",isOpen:i,onToggleOpen:r,children:_t(Bt,{})})}),_t("div",{title:s.value?"语音输入中...":"语音输入",className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",e.controller.isLoading.value)),onClick:function(){l.current&&!s.value&&l.current.start()},children:s.value?_t(Mt,{}):_t(At,{})}),e.controller.isLoading.value?_t("div",{title:"停止生成",className:"".concat(pi.be("action-wrapper","action-item")),onClick:v,children:_t(Rt,{})}):_t("div",{title:"发送消息",className:"".concat(pi.be("action-wrapper","action-item")," ").concat(pi.is("disabled",h.value)),onClick:f,children:_t(wt,{})})]})]})]})},mi=new ee("chat-topic-item"),_i=function(e){var t=e.controller,n=e.topic,i=e.onClick,r=e.onAction,o=Me(null),c=vt((function(){var e;return(null===(e=t.activedTopic.value)||void 0===e?void 0:e.id)===n.id})),s=a(Se(!1),2),l=s[0],u=s[1],d=ft(!1);return _t("div",{className:"".concat(mi.b()," ").concat(mi.is("active",c.value)," ").concat(mi.is("edit",d.value)),onClick:i.bind(void 0),children:[_t("div",{className:mi.e("caption"),title:n.caption,children:d.value?_t("input",{ref:o,value:n.caption,onBlur:function(e){e.stopPropagation(),d.value=!1,r("RENAME",e)},onKeyDown:function(e){e.stopPropagation(),"Enter"===e.key&&(d.value=!1)},onClick:function(e){return e.stopPropagation()},onChange:function(e){return(t=e).stopPropagation(),void(n.data.caption=null===(i=t.target)||void 0===i?void 0:i.value);var t,i},className:mi.em("caption","editor")}):_t("span",{className:mi.em("caption","text"),children:n.caption})}),!d.value&&_t("div",{className:mi.e("icon"),children:[_t("span",{title:"跳转主视图",className:mi.em("icon","item"),onClick:function(e){e.stopPropagation(),r("LINK",e)}.bind(void 0),children:_t(Lt,{className:mi.b("link-icon")})}),c.value?null:_t(hi,{actions:[{id:"RENAME",caption:"重命名",icon:_t(qt,{})},{id:"DELETE",caption:"删除话题",icon:_t(It,{})}],position:"bottom",isOpen:l,onToggleOpen:u,onAction:function(e,t){"DELETE"===e?r("DELETE",t):"RENAME"===e&&(d.value=!0,setTimeout((function(){var e;null===(e=o.current)||void 0===e||e.focus()}),100)),u(!1)}.bind(void 0),children:_t("span",{className:mi.em("icon","item"),title:"更多",children:_t(Ot,{className:mi.e("more-icon")})})})]})]})},gi=new ee("chat-search"),yi=function(e){var t=e.className,n=e.value,i=e.placeholder,r=e.onChange,o=a(Se(!1),2),c=o[0],s=o[1],l=function(e){var t;e.stopPropagation(),null==r||r(null===(t=e.target)||void 0===t?void 0:t.value)};return _t("div",{className:"".concat(gi.b()," ").concat(gi.is("focus",c)," ").concat(t||""),children:[_t("div",{className:gi.e("prefix"),children:_t($t,{})}),_t("input",{value:n,className:gi.e("inner"),placeholder:i,onFocus:function(){return s(!0)},onBlur:function(){return s(!1)},onChange:function(e){return l(e)}})]})},wi=new ee("chat-topics"),bi=function(e){var t=Me(null),n=ft(void 0),i=ft([]);Ae((function(){i.value=e.controller.topics.value.filter((function(e){var t,i;return null===(t=e.caption)||void 0===t?void 0:t.toLowerCase().includes((null===(i=n.value)||void 0===i?void 0:i.trim().toLowerCase())||"")}))}),[e.controller.topics.value]);return Ae((function(){var e=t.current;if(e){var n=e.querySelector(".ibiz-chat-topic-item.is-active");null==n||n.scrollIntoView({behavior:"smooth",block:"nearest"})}}),[e.controller.activedTopic.value]),_t("div",{className:wi.b(),children:[_t("div",{className:wi.e("header"),children:_t(yi,{value:n.value,placeholder:"搜索话题",onChange:function(t){n.value=t,i.value=e.controller.topics.value.filter((function(e){var t,i;return null===(t=e.caption)||void 0===t?void 0:t.toLowerCase().includes((null===(i=n.value)||void 0===i?void 0:i.trim().toLowerCase())||"")}))}.bind(void 0)})}),_t("div",{ref:t,className:wi.e("main"),children:i.value&&i.value.length>0?i.value.map((function(t){return _t(_i,{topic:t,controller:e.controller,onClick:function(){return function(t){e.controller.handleTopicChange(t)}(t)},onAction:function(n,i){return function(t,n,i){e.controller.handleTopicAction(t,n,i)}(n,t,i)}},t.id)})):_t("div",{className:wi.e("empty"),children:"暂无话题"})}),_t("div",{className:wi.e("footer"),children:_t("div",{title:"清空会话",className:wi.e("action"),onClick:function(){return e.controller.clearTopic()},children:[_t(It,{}),_t("span",{children:"清空会话"})]})})]})},xi=new ee("chat-minimize"),ki=function(e){var t=Me(null),n=a(Se(""),2),i=n[0],r=n[1],o=a(Se(0),2),c=o[0],s=o[1],l=Me(!1),u={x:(window.innerWidth-86)/window.innerWidth,y:(window.innerHeight-86)/window.innerHeight},d=vt((function(){var t=e.controller.messages.value[e.controller.messages.value.length-1];return!!t&&("ASSISTANT"===t.role&&20===t.state&&!0!==t.completed)})),h=vt((function(){var t="";if(!d.value)return r(""),s(0),t;var n=e.controller.messages.value[e.controller.messages.value.length-1];if(t=n.content,-1!==n.content.indexOf("")){var i=function(e){var t=e.indexOf(""),n=e.indexOf(""),i="",r="";return-1===n?(i=e.slice(t+7),r=""):(i=e.slice(t+7,n),r=e.slice(n+8)),{thoughtContent:i,answerContent:r}}(n.content);t=i.thoughtContent+i.answerContent}return t})),p=function(){Object.assign(t.current.style,{left:"".concat(100*u.x,"%"),top:"".concat(100*u.y,"%")}),localStorage.setItem(ni.MINIMIZE_STYLY_CHCHE,JSON.stringify(u))};return Ae((function(){var e,n=localStorage.getItem(ni.MINIMIZE_STYLY_CHCHE);if(n){var i=JSON.parse(n);pe(i)&&Object.assign(u,i)}p(),(e=t.current)&&(e.onmousedown=function(t){document.body.style.userSelect="none";var n=t.clientX-e.offsetLeft,i=t.clientY-e.offsetTop,r=Date.now(),o=function(e){var t=56/window.innerWidth,r=56/window.innerHeight,o=fe(e.clientX-n,e.clientY-i,t,r),a=o.x,c=o.y;Object.assign(u,{x:a,y:c}),requestAnimationFrame((function(){p()}))};document.addEventListener("mousemove",o),document.addEventListener("mouseup",(function e(){var t=Date.now();l.current=t-r>300,document.body.style.userSelect="",document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",e)}))})}),[]),Ae((function(){if(c1-e?this.calcSideModeStyle(i1-t&&(this.data.window.y=1-a)),this.setStyle()}},{key:"registerDragDialog",value:function(){var e=this;this.dragHandle.current.onmousedown=function(t){if(!e.state.isFullScreen){document.body.style.userSelect="none";var n=t.clientX-e.containerRef.current.offsetLeft,i=t.clientY-e.containerRef.current.offsetTop,r=function(t){if(!e.disabled){e.data.showMode="window";var r=fe(t.clientX-n,t.clientY-i,e.data.window.width,e.data.window.height),o=r.x,a=r.y;Object.assign(e.data.window,{x:o,y:a}),e.setStyle()}};document.addEventListener("mousemove",r),document.addEventListener("mouseup",(function t(){document.body.style.userSelect="",document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t),e.disabled||e.snapToEdge()}))}}}},{key:"registerDragDialogBorder",value:function(){var e=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(t){if(!e.state.isFullScreen){var n="side"===e.data.showMode?e.data.side:e.data.window;n.x=t.rect.left/window.innerWidth,n.y=t.rect.top/window.innerHeight,n.width=t.rect.width/window.innerWidth,n.height=t.rect.height/window.innerHeight,e.setStyle()}},start:function(){e.disabled=!0,document.body.style.userSelect="none"},end:function(){e.disabled=!1,document.body.style.userSelect=""}}})}},{key:"handleFullScreenChange",value:function(){this.setState({isFullScreen:null!==document.fullscreenElement})}},{key:"componentDidMount",value:function(){this.handleFullScreenChange=this.handleFullScreenChange.bind(this);var e=localStorage.getItem(ni.STYLE_CACHE);if(e){var t=JSON.parse(e);t.side&&pe(t.side)&&t.window&&pe(t.window)&&Object.assign(this.data,t)}this.setStyle(),this.registerDragDialog(),this.registerDragDialogBorder(),document.addEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("fullscreenchange",this.handleFullScreenChange)}},{key:"close",value:function(){this.props.close()}},{key:"fullScreen",value:function(){var e=this.containerRef.current;e&&(e.requestFullscreen(),this.props.fullscreen(!0))}},{key:"closeFullScreen",value:function(){var e;this.state.isFullScreen&&(null===(e=document)||void 0===e||e.exitFullscreen(),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.setState({isMinimize:!1}),this.props.minimize(!1)}},{key:"stopPropagation",value:function(e){e.stopPropagation()}},{key:"render",value:function(){return _t(Ci.Provider,{value:this.containerContext,children:_t("div",{className:"".concat(this.ns.b()),children:[_t("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:[_t("div",{ref:this.dragHandle,className:this.ns.b("header"),children:[_t("div",{className:this.ns.b("header-caption"),children:this.props.caption||"AI助手"}),_t("div",{className:this.ns.b("header-action-wrapper"),children:[_t("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:_t(Nt,{})}),this.state.isFullScreen?_t("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:_t(Tt,{})}):_t("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:_t(Ct,{})}),_t("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:_t(gt,{})})]})]}),"TOPIC"===this.props.mode?_t("div",{className:"".concat(this.ns.b("main")),children:[_t("div",{className:"".concat(this.ns.be("main","left")),children:_t(bi,{controller:this.props.aiTopic})}),_t("div",{className:"".concat(this.ns.be("main","right")),children:[_t("div",{className:this.ns.b("content"),children:_t(xn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(yn,{type:"footer",mode:this.props.mode,data:this.props.aiTopic.activedTopic.value,className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(vi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}):_t("div",{className:"".concat(this.ns.be("main","default")),children:[_t("div",{className:this.ns.b("content"),children:_t(xn,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),_t(yn,{type:"footer",mode:this.props.mode,data:this.props.aiTopic.activedTopic.value,className:"".concat(this.ns.e("toolbar")," ").concat(this.ns.is("has-materials",this.props.aiChat.materials.value.length>0)),controller:this.props.aiChat,items:this.props.footerToolbarItems}),_t("div",{className:this.ns.b("footer"),children:_t(vi,{controller:this.props.aiChat,questionToolbarItems:this.props.questionToolbarItems})})]})]}),_t(ki,{title:this.props.caption||"AI助手",controller:this.props.aiChat,isMinimize:this.state.isMinimize,onClick:this.exitMinimize.bind(this)})]})})}}]),o}(I);t("ChatContainer",Ti)}}}))}(); diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.27/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.27/polyfills.legacy.js new file mode 100644 index 0000000000000000000000000000000000000000..c8c7654431885af1a2dc12a9fe73b198407bf314 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.27/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+""},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+""},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="\t\n\v\f\r                 \u2028\u2029\ufeff",JE=L,qE=Ao,KE=VE,YE=S("".replace),XE=RegExp("^["+KE+"]+"),QE=RegExp("(^|[^"+KE+"])["+KE+"]+$"),ZE=function(t){return function(r){var e=qE(JE(r));return 1&t&&(e=YE(e,XE,"")),2&t&&(e=YE(e,QE,"$1")),e}},tx={start:ZE(1),end:ZE(2),trim:ZE(3)},rx=te.PROPER,ex=o,nx=VE,ox=tx.trim;ro({target:"String",proto:!0,forced:function(t){return ex((function(){return!!nx[t]()||"​…᠎"!=="​…᠎"[t]()||rx&&nx[t].name!==t}))}("trim")},{trim:function(){return ox(this)}});var ix=Dt,ux=hn,ax=co,cx=mo,fx=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=ix(this),e=ux(r),n=arguments.length;if(n){fx(e+n);for(var o=e;o--;){var i=o+n;o in r?r[i]=r[o]:cx(r,i)}for(var u=0;uo;)for(var a,c=mx(arguments[o++]),f=i?Sx(px(c),i(c)):px(c),s=f.length,l=0;s>l;)a=f[l++],sx&&!hx(u,c,a)||(e[a]=c[a]);return e}:bx,xx=Ex;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==xx},{assign:xx});var Ox={exports:{}},jx=o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Ix=o,Tx=B,Rx=j,Px=jx,Ax=Object.isExtensible,kx=Ix((function(){Ax(1)}))||Px?function(t){return!!Tx(t)&&((!Px||"ArrayBuffer"!==Rx(t))&&(!Ax||Ax(t)))}:Ax,Cx=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),Nx=ro,Lx=S,Fx=pe,Mx=B,_x=Gt,Dx=Rr.f,Ux=Qe,$x=mw,Gx=kx,zx=Cx,Wx=!1,Bx=Vt("meta"),Hx=0,Vx=function(t){Dx(t,Bx,{value:{objectID:"O"+Hx++,weakData:{}}})},Jx=Ox.exports={enable:function(){Jx.enable=function(){},Wx=!0;var t=Ux.f,r=Lx([].splice),e={};e[Bx]=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!!c(this,t)}}),hO(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)}}),wO&&lO(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=xO(r),i=xO(n);yO(t,r,(function(t,r){EO(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)?mO("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,mO(void 0,!0))}),e?"entries":"values",!e,!0),bO(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=Yx[t],a=u&&u.prototype,c=u,f={},s=function(t){var r=Xx(a[t]);Zx(a,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!iO(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!iO(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(Qx(t,!nO(u)||!(o||a.forEach&&!uO((function(){(new u).entries().next()})))))c=e.getConstructor(r,t,n,i),tO.enable();else if(Qx(t,!0)){var l=new c,h=l[i](o?{}:-0,1)!==l,v=uO((function(){l.has(1)})),p=aO((function(t){new u(t)})),d=!o&&uO((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((c=r((function(t,r){eO(t,a);var e=fO(new u,t,c);return oO(r)||rO(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,Kx({global:!0,constructor:!0,forced:c!==u},f),cO(c,t),o||e.setStrong(c,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),OO);var jO,IO=ro,TO=Fu,RO=n.f,PO=sn,AO=Ao,kO=_E,CO=L,NO=UE,LO=TO("".startsWith),FO=TO("".slice),MO=Math.min,_O=NO("startsWith");IO({target:"String",proto:!0,forced:!!(_O||(jO=RO(String.prototype,"startsWith"),!jO||jO.writable))&&!_O},{startsWith:function(t){var r=AO(CO(this));kO(t);var e=PO(MO(arguments.length>1?arguments[1]:void 0,r.length)),n=AO(t);return LO?LO(r,n,e):FO(r,e,e+n.length)===n}});var DO=ro,UO=Ms.findIndex,$O=sm,GO="findIndex",zO=!0;GO in[]&&Array(1)[GO]((function(){zO=!1})),DO({target:"Array",proto:!0,forced:zO},{findIndex:function(t){return UO(this,t,arguments.length>1?arguments[1]:void 0)}}),$O(GO);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=tx.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;op{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-action{width:32px;height:32px;padding:6px;margin-right:6px;overflow:hidden;font-size:12px;white-space:nowrap;cursor:pointer;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:15px;transition:all .3s ease}.ibiz-user-message-question__user-action:hover{width:68px}.ibiz-user-message-question__user-action--title{margin-left:8px;font-size:14px;vertical-align:middle}.ibiz-user-message-question__user-action svg{vertical-align:baseline}.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-error-message-header__action-item{width:32px;height:32px;padding:6px;margin-left:6px;overflow:hidden;font-size:12px;white-space:nowrap;border:1px solid var(--ibiz-ai-chat-border-color);border-radius:15px;transition:all .3s ease}.ibiz-error-message-header__action-item--title{margin-left:8px;font-size:14px;vertical-align:middle}.ibiz-error-message-header__action-item svg{vertical-align:baseline}.ibiz-error-message-header__action-item:hover{width:68px}.ibiz-error-message-header__action-item:nth-child(1){margin-left:0}.ibiz-error-message-header__action-item:hover{color:var(--ibiz-ai-chat-hover-color);cursor:pointer;background-color:var(--ibiz-ai-chat-hover-background-color)}.ibiz-error-message .ibiz-error-message-header-action-wrapper{display:flex;align-items:center}.ibiz-chat-message-item{padding:6px 0}.ibiz-chat-message-item .pre-wrap-container{word-wrap:break-word;white-space:pre-wrap}.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-messages{width:100%;height:100%;padding:6px;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-x:hidden!important;overflow-y:auto;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-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-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;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 *{box-sizing:border-box}.ibiz-chat-container svg{display:inline-block;width:1em;height:1em;font-size:1.5em;vertical-align:middle;fill:currentcolor}.ibiz-chat-container-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;height:60px;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-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.6/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.6/index.system.min.js new file mode 100644 index 0000000000000000000000000000000000000000..2c584d206db698658c9d201d8b8150f100bbfe60 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.6/index.system.min.js @@ -0,0 +1 @@ +!function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e)||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 t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function s(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){s(o,r,i,a,c,"next",e)}function c(e){s(o,r,i,a,c,"throw",e)}a(void 0)}))}}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n2&&(s.children=arguments.length>3?o.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return A(e,s,r,i,null)}function A(e,t,n,r,i){var o={type:e,props:t,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!=d.vnode&&d.vnode(o),o}function O(e){return e.children}function L(e,t){this.props=e,this.context=t}function P(e,t){if(null==t)return e.__?P(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&m.sort(b));z.__r=0}function M(e,t,n,r,i,o,a,s,c,l,u){var f,h,_,d,v,p,m,y,g,b=0,x=r&&r.__k||k,E=x.length,N=E,C=t.length;for(n.__k=[],f=0;f0?A(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)?(d.__=n,d.__b=n.__b+1,-1===(y=U(d,x,m=f+b,N))?_=w:(_=x[y]||w,x[y]=void 0,N--),$(e,d,_,i,o,a,s,c,l,u),v=d.__e,(h=d.ref)&&_.ref!=h&&(_.ref&&q(_.ref,null,d),u.push(h,d.__c||v,d)),null!=v&&(null==p&&(p=v),(g=_===w||null===_.__v)?-1==y&&b--:y!==m&&(y===m+1?b++:y>m?N>C-m?b+=y-m:b--:b=y(null!=c?1:0))for(;a>=0||s=0){if((c=t[a])&&i==c.key&&o===c.type)return a;a--}if(s0&&void 0!==arguments[0]?arguments[0]:"";return X(this.namespace,this.block,e,"","")}},{key:"e",value:function(e){return e?X(this.namespace,this.block,"",e,""):""}},{key:"m",value:function(e){return e?X(this.namespace,this.block,"","",e):""}},{key:"be",value:function(e,t){return e&&t?X(this.namespace,this.block,e,t,""):""}},{key:"em",value:function(e,t){return e&&t?X(this.namespace,this.block,"",e,t):""}},{key:"bm",value:function(e,t){return e&&t?X(this.namespace,this.block,e,"",t):""}},{key:"bem",value:function(e,t,n){return e&&t&&n?X(this.namespace,this.block,e,t,n):""}},{key:"is",value:function(e,t){return e&&t?"".concat("is-").concat(e):""}},{key:"cssVar",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarName(n)]=e[n]);return t}},{key:"cssVarBlock",value:function(e){var t={};for(var n in e)e[n]&&(t[this.cssVarBlockName(n)]=e[n]);return t}},{key:"cssVarName",value:function(e){return"--".concat(this.namespace,"-").concat(e)}},{key:"cssVarBlockName",value:function(e){return"--".concat(this.namespace,"-").concat(this.block,"-").concat(e)}}]),e}();function K(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Q(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var ee={resolve:function(){for(var e,t="",n=!1,r=arguments.length-1;r>=-1&&!n;r--){var i;r>=0?i=arguments[r]:(void 0===e&&(e=process.cwd()),i=e),K(i),0!==i.length&&(t=i+"/"+t,n=47===i.charCodeAt(0))}return t=Q(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(K(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=Q(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return K(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":ee.normalize(e)},relative:function(e,t){if(K(e),K(t),e===t)return"";if((e=ee.resolve(e))===(t=ee.resolve(t)))return"";for(var n=1;ns){if(47===t.charCodeAt(o+l))return t.slice(o+l+1);if(0===l)return t.slice(o+l)}else i>s&&(47===e.charCodeAt(n+l)?c=l:0===l&&(c=0));break}var u=e.charCodeAt(n+l);if(u!==t.charCodeAt(o+l))break;47===u&&(c=l)}var f="";for(l=n+c+1;l<=r;++l)l!==r&&47!==e.charCodeAt(l)||(0===f.length?f+="..":f+="/..");return f.length>0?f+t.slice(o+c):(o+=c,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(K(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');K(e);var n,r=0,i=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,s=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!o){r=n+1;break}}else-1===s&&(o=!1,s=n+1),a>=0&&(c===t.charCodeAt(a)?-1==--a&&(i=n):(a=-1,i=s))}return r===i?i=s:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname:function(e){K(e);for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!==l(e))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+l(e));return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}("/",e)},parse:function(e){K(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0),i=47===r;i?(t.root="/",n=1):n=0;for(var o=-1,a=0,s=-1,c=!0,l=e.length-1,u=0;l>=n;--l)if(47!==(r=e.charCodeAt(l)))-1===s&&(c=!1,s=l+1),46===r?-1===o?o=l:1!==u&&(u=1):-1!==o&&(u=-1);else if(!c){a=l+1;break}return-1===o||-1===s||0===u||1===u&&o===s-1&&o===a+1?-1!==s&&(t.base=t.name=0===a&&i?e.slice(1,s):e.slice(a,s)):(0===a&&i?(t.name=e.slice(1,o),t.base=e.slice(1,s)):(t.name=e.slice(a,o),t.base=e.slice(a,s)),t.ext=e.slice(o,s)),a>0?t.dir=e.slice(0,a-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};function te(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function ne(){return"".concat(te()+te(),"-").concat(te(),"-").concat(te(),"-").concat(te(),"-").concat(te()).concat(te()).concat(te())}ee.posix=ee;var re=function(){function e(){u(this,e)}return h(e,null,[{key:"copy",value:function(e){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=e,this.inputElement.select(),document.execCommand("copy")}}]),e}();_(re,"inputElement",null);var ie,oe,ae,se,ce=0,le=[],ue=[],fe=d.__b,he=d.__r,_e=d.diffed,de=d.__c,ve=d.unmount;function pe(e,t){d.__h&&d.__h(oe,e,ce||t),ce=0;var n=oe.__H||(oe.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ue}),n.__[e]}function me(e,t){var n=pe(ie++,3);!d.__s&&Ne(n.__H,t)&&(n.__=e,n.i=t,oe.__H.__h.push(n))}function ye(e){return ce=5,ge((function(){return{current:e}}),[])}function ge(e,t){var n=pe(ie++,7);return Ne(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function be(e,t){return ce=8,ge((function(){return e}),t)}function we(){for(var e;e=le.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Se),e.__H.__h.forEach(Ee),e.__H.__h=[]}catch(Kt){e.__H.__h=[],d.__e(Kt,e.__v)}}d.__b=function(e){oe=null,fe&&fe(e)},d.__r=function(e){he&&he(e),ie=0;var t=(oe=e.__c).__H;t&&(ae===oe?(t.__h=[],oe.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=ue,e.__N=e.i=void 0}))):(t.__h.forEach(Se),t.__h.forEach(Ee),t.__h=[],ie=0)),ae=oe},d.diffed=function(e){_e&&_e(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==le.push(t)&&se===d.requestAnimationFrame||((se=d.requestAnimationFrame)||xe)(we)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==ue&&(e.__=e.__V),e.i=void 0,e.__V=ue}))),ae=oe=null},d.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Se),e.__h=e.__h.filter((function(e){return!e.__||Ee(e)}))}catch(Re){t.some((function(e){e.__h&&(e.__h=[])})),t=[],d.__e(Re,e.__v)}})),de&&de(e,t)},d.unmount=function(e){ve&&ve(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Se(e)}catch(e){t=e}})),n.__H=void 0,t&&d.__e(t,n.__v))};var ke="function"==typeof requestAnimationFrame;function xe(e){var t,n=function(){clearTimeout(r),ke&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ke&&(t=requestAnimationFrame(n))}function Se(e){var t=oe,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),oe=t}function Ee(e){var t=oe;e.__c=e.__(),oe=t}function Ne(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ce(){throw new Error("Cycle detected")}var Ae=Symbol.for("preact-signals");function Oe(){if(ze>1)ze--;else{for(var e,t=!1;void 0!==Te;){var n=Te;for(Te=void 0,Me++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Ve(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(Me=0,ze--,t)throw e}}var Le,Pe,He=void 0,Te=void 0,ze=0,Me=0,Re=0;function je(e){if(void 0!==He){var t=e.n;if(void 0===t||t.t!==He)return t={i:0,S:e,p:He.s,n:void 0,t:He,e:void 0,x:void 0,r:t},void 0!==He.s&&(He.s.n=t),He.s=t,e.n=t,32&He.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=He.s,t.n=void 0,He.s.n=t,He.s=t),t}}function Fe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Ue(e){return new Fe(e)}function Ve(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function We(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function Be(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function Ie(e){Fe.call(this,void 0),this.x=e,this.s=void 0,this.g=Re-1,this.f=4}function $e(e){return new Ie(e)}function De(e){var t=e.u;if(e.u=void 0,"function"==typeof t){ze++;var n=He;He=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,qe(e),t}finally{He=n,Oe()}}}function qe(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,De(e)}function Ge(e){if(He!==this)throw new Error("Out-of-order effect");Be(this),He=e,this.f&=-2,8&this.f&&qe(this),Oe()}function Ye(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Je(e){var t=new Ye(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}function Xe(e,t){d[e]=t.bind(null,d[e]||function(){})}function Ze(e){Pe&&Pe(),Pe=e&&e.S()}function Ke(e){var t=this,n=e.data,r=et(n);r.value=n;var i=ge((function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e;p(i.peek())||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=i.peek()},$e((function(){var e=r.value.value;return 0===e?0:!0===e?"":e||""}))}),[]);return i.value}function Qe(e,t,n,r){var i=t in e&&void 0===e.ownerSVGElement,o=Ue(n);return{o:function(e,t){o.value=e,r=t},d:Je((function(){var n=o.value.value;r[t]!==n&&(r[t]=n,i?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))}))}}function et(e){return ge((function(){return Ue(e)}),[])}function tt(e){var t=ye(e);return t.current=e,Le.__$f|=4,ge((function(){return $e((function(){return t.current()}))}),[])}Fe.prototype.brand=Ae,Fe.prototype.h=function(){return!0},Fe.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},Fe.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Fe.prototype.subscribe=function(e){var t=this;return Je((function(){var n=t.value,r=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=r}}))},Fe.prototype.valueOf=function(){return this.value},Fe.prototype.toString=function(){return this.value+""},Fe.prototype.toJSON=function(){return this.value},Fe.prototype.peek=function(){return this.v},Object.defineProperty(Fe.prototype,"value",{get:function(){var e=je(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(He instanceof Ie&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Me>100&&Ce(),this.v=e,this.i++,Re++,ze++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{Oe()}}}}),(Ie.prototype=new Fe).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Re)return!0;if(this.g=Re,this.f|=1,this.i>0&&!Ve(this))return this.f&=-2,!0;var e=He;try{We(this),He=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return He=e,Be(this),this.f&=-2,!0},Ie.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Fe.prototype.S.call(this,e)},Ie.prototype.U=function(e){if(void 0!==this.t&&(Fe.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},Ie.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Ie.prototype.peek=function(){if(this.h()||Ce(),16&this.f)throw this.v;return this.v},Object.defineProperty(Ie.prototype,"value",{get:function(){1&this.f&&Ce();var e=je(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),Ye.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},Ye.prototype.S=function(){1&this.f&&Ce(),this.f|=1,this.f&=-9,De(this),We(this),ze++;var e=He;return He=this,Ge.bind(this,e)},Ye.prototype.N=function(){2&this.f||(this.f|=2,this.o=Te,Te=this)},Ye.prototype.d=function(){this.f|=8,1&this.f||qe(this)},Ke.displayName="_st",Object.defineProperties(Fe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Ke},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),Xe("__b",(function(e,t){if("string"==typeof t.type){var n,r=t.props;for(var i in r)if("children"!==i){var o=r[i];o instanceof Fe&&(n||(t.__np=n={}),n[i]=o,r[i]=o.peek())}}e(t)})),Xe("__r",(function(e,t){Ze();var n,r=t.__c;r&&(r.__$f&=-2,void 0===(n=r.__$u)&&(r.__$u=n=function(e){var t;return Je((function(){t=this})),t.c=function(){r.__$f|=1,r.setState({})},t}())),Le=r,Ze(n),e(t)})),Xe("__e",(function(e,t,n,r){Ze(),Le=void 0,e(t,n,r)})),Xe("diffed",(function(e,t){var n;if(Ze(),Le=void 0,"string"==typeof t.type&&(n=t.__e)){var r=t.__np,i=t.props;if(r){var o=n.U;if(o)for(var a in o){var s=o[a];void 0===s||a in r||(s.d(),o[a]=void 0)}else n.U=o={};for(var c in r){var l=o[c],u=r[c];void 0===l?(l=Qe(n,c,u,i),o[c]=l):l.o(u,i)}}}e(t)})),Xe("unmount",(function(e,t){if("string"==typeof t.type){var n=t.__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=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)})),Xe("__h",(function(e,t,n,r){(r<3||9===r)&&(t.__$f|=2),e(t,n,r)})),L.prototype.shouldComponentUpdate=function(e,t){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 t)return!0;for(var i in e)if("__source"!==i&&e[i]!==this.props[i])return!0;for(var o in this.props)if(!(o in e))return!0;return!1};var nt=0;function rt(e,t,n,r,i,o){var a,s,c={};for(s in t)"ref"==s?a=t[s]:c[s]=t[s];var l={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--nt,__source:i,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===c[s]&&(c[s]=a[s]);return d.vnode&&d.vnode(l),l}var it=function(){return rt("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rt("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"})})},ot=function(){return rt("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rt("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"})})},at=function(){return rt("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rt("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"})})},st=function(){return rt("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rt("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"})})},ct=function(){return rt("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rt("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"})})},lt=function(){return rt("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rt("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"})})},ut=function(){return rt("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rt("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"})})},ft=function(){return rt("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rt("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"})})},ht=new Z("markdown-message"),_t=function(e){var t=e.message,n=e.size,r=et(ne()),i=et(null);me((function(){n>=0&&i.value&&i.value.setMarkdown(t.content)}),[t,n]),me((function(){i.value=new f({id:r,value:t.content,editor:{defaultModel:"previewOnly"}})}),[]);return rt("div",{className:"".concat(ht.b()," ").concat(ht.is("loading",20===t.state)),children:[rt("div",{className:ht.b("header"),children:[rt("div",{className:ht.be("header","caption"),children:"AI "}),rt("div",{className:ht.b("header-action-wrapper"),children:[rt("div",{className:ht.be("header","action-item"),onClick:function(){e.controller.backfill(t)},children:[rt(ot,{}),rt("span",{className:ht.bem("header","action-item","title"),children:"回填"})]}),rt("div",{className:ht.be("header","action-item"),onClick:function(){e.controller.refreshMessage(t)},children:[rt(ct,{}),rt("span",{className:ht.bem("header","action-item","title"),children:"刷新"})]}),rt("div",{className:ht.be("header","action-item"),onClick:function(){e.controller.deleteMessage(t)},children:[rt(st,{}),rt("span",{className:ht.bem("header","action-item","title"),children:"删除"})]}),rt("div",{className:ht.be("header","action-item"),onClick:function(){e.controller.copyMessage(t)},children:[rt(lt,{}),rt("span",{className:ht.bem("header","action-item","title"),children:"复制"})]})]})]}),rt("div",{className:"".concat(ht.b("content")," pre-wrap-container"),children:rt("div",{id:r})}),rt("div",{className:ht.b("footer")})]})},dt=new Z("user-message-question"),vt=function(e){var t=tt((function(){return e.message.content}));return rt("div",{className:dt.b(),children:[rt("div",{className:dt.e("user-header"),children:[rt("div",{className:dt.e("user-action"),onClick:function(){e.controller.refreshMessage(e.message,!0)},children:[rt(ct,{}),rt("span",{className:dt.em("user-action","title"),children:"刷新"})]}),rt("div",{className:dt.e("user"),children:"我"})]}),rt("div",{className:dt.e("content"),children:rt("div",{dir:"auto",className:dt.em("content","body"),children:rt("p",{dir:"auto",className:"pre-wrap-container",children:t})})})]})},pt=new Z("error-message"),mt=function(e){var t=tt((function(){return e.message.content}));return rt("div",{className:pt.b(),children:[rt("div",{className:pt.b("header"),children:[rt("div",{className:pt.be("header","caption"),children:"AI "}),rt("div",{className:pt.b("header-action-wrapper"),children:[rt("div",{className:pt.be("header","action-item"),onClick:function(){e.controller.backfill(e.message)},children:[rt(ot,{}),rt("span",{className:pt.bem("header","action-item","title"),children:"回填"})]}),rt("div",{className:pt.be("header","action-item"),onClick:function(){e.controller.refreshMessage(e.message)},children:[rt(ct,{}),rt("span",{className:pt.bem("header","action-item","title"),children:"刷新"})]}),rt("div",{className:pt.be("header","action-item"),onClick:function(){e.controller.deleteMessage(e.message)},children:[rt(st,{}),rt("span",{className:pt.bem("header","action-item","title"),children:"删除"})]}),rt("div",{className:pt.be("header","action-item"),onClick:function(){e.controller.copyMessage(e.message)},children:[rt(lt,{}),rt("span",{className:pt.bem("header","action-item","title"),children:"复制"})]})]})]}),rt("div",{className:"".concat(pt.e("content")," pre-wrap-container"),children:rt("span",{children:t})})]})},yt=new Z("unknown-message"),gt=function(e){return rt("div",{className:yt.b(),children:rt("span",{className:"".concat(yt.e("content")," pre-wrap-container"),children:["暂未支持的消息类型: ",e.message.type]})})},bt=new Z("chat-message-item"),wt=function(e){var t=e.message,n=e.size,r=null;switch(t.type){case"DEFAULT":r="ASSISTANT"===t.role?_t:vt;break;case"ERROR":r=mt;break;default:r=gt}return rt("div",{className:bt.b(),children:C(r,{size:n,message:t,controller:e.controller})})},kt=new Z("chat-messages"),xt=function(e){var t=ye(null),n=e.controller.messages;return function(e){var t=ye(e);t.current=e,me((function(){return Je((function(){return t.current()}))}),[])}((function(){t.current&&n.value.length>0&&(t.current.scrollTop=t.current.scrollHeight)})),rt("div",{ref:t,className:kt.b(),children:n.value.map((function(t){var n,r=(null===(n=t.content)||void 0===n?void 0:n.length)||0;return rt(wt,{message:t,size:r,controller:e.controller},t.messageid)}))})};function St(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Et(e){this.props=e}(Et.prototype=new L).isPureReactComponent=!0,Et.prototype.shouldComponentUpdate=function(e,t){return St(this.props,e)||St(this.state,t)};var Nt=d.__b;d.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Nt&&Nt(e)};var Ct=d.__e;d.__e=function(e,t,n,r){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);Ct(e,t,n,r)};var At=d.unmount;function Ot(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Ot(e,t,n)}))),e}function Lt(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Lt(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Pt(){this.__u=0,this.t=null,this.__b=null}function Ht(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Tt(){this.u=null,this.o=null}d.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),At&&At(e)},(Pt.prototype=new L).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=Ht(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Lt(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Pt.prototype.componentWillUnmount=function(){this.t=[]},Pt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Ot(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&C(O,null,e.fallback);return i&&(i.__h=null),[C(O,null,t.__a?null:e.children),i]};var zt=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]parseFloat(r.maxHeight)?("hidden"===r.overflowY&&(e.style.overflow="scroll"),o=parseFloat(r.maxHeight)):"hidden"!==r.overflowY&&(e.style.overflow="hidden"),e.style.height=o+"px",c&&(e.style.textAlign=c),i&&i(),n!==o&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=o),f!==r.overflow&&!c)){var h=r.textAlign;"hidden"===r.overflow&&(e.style.textAlign="start"===h?"end":"start"),a({restoreTextAlign:h,testForHeightReduction:!0})}}function s(){a({testForHeightReduction:!0,restoreTextAlign:null})}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Xt),e},Kt.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Zt),e});var Qt=Kt,en=new Z("chat-input"),tn=function(e){var t=ye(null),n=e.controller.input,r=et(!1),i=be((function(e){n.value=e.target.value}),[n]),o=tt((function(){return n.value.length<=0||!0===r.value}));me((function(){return t.current&&Qt(t.current),function(){t.current&&Qt.destroy(t.current)}}),[t]);var s=be(c(a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r.value=!0,t.prev=1,t.next=4,e.controller.question(n.value);case 4:n.value="",t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),console.error(t.t0);case 10:return t.prev=10,r.value=!1,t.finish(10);case 13:case"end":return t.stop()}}),t,null,[[1,7,10,13]])}))),[n,r]);return rt("div",{className:en.b(),children:[rt("textarea",{className:en.e("textarea"),type:"text",rows:6,autoCorrect:"off",autoCapitalize:"off",autoComplete:"off",value:n,onInput:i,onKeyDown:function(e){"Enter"===e.code&&(e.stopPropagation(),!1===e.shiftKey&&s())},ref:t,disabled:r}),rt("div",{className:en.b("action-wrapper"),children:rt("div",{title:r?"思考中...":"发送消息",className:"".concat(en.be("action-wrapper","action-item")," ").concat(en.is("disabled",o.value)," ").concat(en.is("loading",r.value)),onClick:s,disabled:o,children:rt(at,{})})})]})},nn=function(e){return e.STYLE_CACHE="ai-chat-style-cache",e}(nn||{}),rn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)}(o,e);var t=r(o);function o(e){var n;return u(this,o),_(i(n=t.call(this,e)),"ns",new Z("chat-container")),_(i(n),"containerRef",{current:null}),_(i(n),"dragHandle",{current:null}),_(i(n),"data",{x:window.innerWidth-600-100,y:100,width:600,height:600,minWidth:300,minHeight:300}),n.state={isFullScreen:!1},n}return h(o,[{key:"calcStyle",value:function(){return{right:"0px",top:"0px",height:"100vh",width:"".concat(this.data.width,"px"),"z-index":"1000"}}},{key:"setStyle",value:function(){Object.assign(this.containerRef.current.style,this.calcStyle())}},{key:"componentDidMount",value:function(){var e=this,t=localStorage.getItem(nn.STYLE_CACHE);t&&(this.data=JSON.parse(t),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 n=this.data;s(this.containerRef.current).resizable({edges:{top:!1,right:!0,bottom:!1,left:!0},margin:6,modifiers:[s.modifiers.restrictEdges({outer:document.body}),s.modifiers.restrictSize({min:{width:n.minWidth,height:n.minHeight}})],inertia:!0,listeners:{move:function(t){n.x+=t.deltaRect.left,n.y+=t.deltaRect.top,n.width=t.rect.width,n.height=t.rect.height,e.setStyle()}}})}},{key:"componentWillUnmount",value:function(){localStorage.setItem(nn.STYLE_CACHE,JSON.stringify(this.data))}},{key:"close",value:function(){this.props.close()}},{key:"fullScreen",value:function(){var e=this.containerRef.current;e&&(e.requestFullscreen(),this.setState({isFullScreen:!0}),this.props.fullscreen(!0))}},{key:"closeFullScreen",value:function(){var e;this.state.isFullScreen&&(null===(e=document)||void 0===e||e.exitFullscreen(),this.setState({isFullScreen:!1}),this.props.fullscreen(!1))}},{key:"render",value:function(){return rt("div",{className:"\n ".concat(this.ns.b(),"\n ").concat(this.ns.is("full-screen",this.state.isFullScreen)),ref:this.containerRef,children:[rt("div",{ref:this.dragHandle,className:this.ns.b("header"),children:[rt("div",{className:this.ns.b("header-caption"),children:this.props.caption||"AIChart"}),rt("div",{className:this.ns.b("header-action-wrapper"),children:[this.state.isFullScreen?rt("div",{className:"".concat(this.ns.be("header-action-wrapper","action-item")," ").concat(this.ns.be("header-action-wrapper","close-full-screen")),onClick:this.closeFullScreen.bind(this),children:rt(ft,{})}):rt("div",{className:"".concat(this.ns.be("header-action-wrapper","action-item")," ").concat(this.ns.be("header-action-wrapper","full-screen")),onClick:this.fullScreen.bind(this),children:rt(ut,{})}),rt("div",{className:"".concat(this.ns.be("header-action-wrapper","action-item")," ").concat(this.ns.be("header-action-wrapper","action-close")),onClick:this.close.bind(this),children:rt(it,{})})]})]}),rt("div",{className:this.ns.b("content"),children:rt(xt,{controller:this.props.controller})}),rt("div",{className:this.ns.b("footer"),children:rt(tn,{controller:this.props.controller})})]})}}]),o}(L);t("ChatContainer",rn);var on=function(){function e(t){u(this,e),this.msg=t}return h(e,[{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:"_origin",get:function(){return this.msg}},{key:"update",value:function(e){e.content||(e.content=""),this.msg.content+=e.content}}]),e}(),an=function(){function t(e){u(this,t),_(this,"messages",Ue([])),_(this,"input",Ue("")),this.opts=e}var n,r;return h(t,[{key:"setInput",value:function(e){this.input.value=e||""}},{key:"addMessage",value:function(t){var n=this.messages.value.find((function(e){return e.messageid===t.messageid}));n?(n.update(t),this.messages.value=e(this.messages.value)):this.messages.value=[].concat(e(this.messages.value),[new on(t)])}},{key:"replaceMessage",value:function(t){var n=this.messages.value.findIndex((function(e){return e.messageid===t.messageid}));-1!==n?(this.messages.value[n]=new on(t),this.messages.value=e(this.messages.value)):this.messages.value=[].concat(e(this.messages.value),[new on(t)])}},{key:"question",value:(r=c(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.addMessage({state:30,messageid:ne(),role:"USER",type:"DEFAULT",content:t}),e.next=3,this.opts.question(this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 3:this.opts.action&&this.opts.action("question",t);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"backfill",value:function(e){this.opts.action&&this.opts.action("backfill",e)}},{key:"deleteMessage",value:function(t){var n=this.messages.value.findIndex((function(e){return e.messageid===t.messageid}));-1!==n&&(this.messages.value.splice(n,1),this.messages.value=e(this.messages.value)),this.opts.action&&this.opts.action("deletemsg",t)}},{key:"refreshMessage",value:(n=c(a().mark((function t(n){var r,i,o,s=arguments;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=s.length>1&&void 0!==s[1]&&s[1],i=this.messages.value.findIndex((function(e){return e.messageid===n.messageid})),!r){t.next=9;break}return this.messages.value.splice(i+1,this.messages.value.length-i-1),this.messages.value=e(this.messages.value),t.next=7,this.opts.question(this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._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=e(this.messages.value),t.next=14,this.opts.question(this.messages.value.filter((function(e){return"ERROR"!==e.type})).map((function(e){return e._origin})));case 14:t.next=19;break;case 16:o=this.messages.value[i-1].content,this.messages.value.splice(i-1,2),this.question(o);case 19:this.opts.action&&this.opts.action("refreshmsg",n);case 20:case"end":return t.stop()}}),t,this)}))),function(e){return n.apply(this,arguments)})},{key:"copyMessage",value:function(e){var t=e.content;re.copy(t),this.opts.action&&this.opts.action("copymsg",e)}}]),t}(),sn=function(){function e(){u(this,e),_(this,"container",void 0)}return h(e,[{key:"create",value:function(e){var t=this;this.close(),this.container=document.createElement("div"),this.container.classList.add("ibiz-ai-chat"),document.body.appendChild(this.container);var n=new an(e);return J(C(rn,{controller:n,caption:e.caption,close:function(){t.close(),e.closed&&e.closed()},fullscreen:function(t){e.fullscreen&&e.fullscreen(t)}}),this.container),n}},{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)}}]),e}();t("chat",new sn)}}}))}(); diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.6/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.6/polyfills.legacy.js new file mode 100644 index 0000000000000000000000000000000000000000..19e40967bcfcbae0e36092b9054633c6e08b20e9 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.6/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)}},x=S,E=x({}.toString),O=x("".slice),j=function(t){return O(E(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)},xt=f,Et=G,Ot=B,jt=TypeError,It=function(t,r){var e,n;if("string"===r&&Et(e=t.toString)&&!Ot(n=xt(e,t)))return n;if(Et(e=t.valueOf)&&!Ot(n=xt(e,t)))return n;if("string"!==r&&Et(e=t.toString)&&!Ot(n=xt(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,xr=g,Er=_,Or=hr,jr=Gt,Ir=mr,Tr=Object.getOwnPropertyDescriptor;n.f=br?Tr:function(t,r){if(t=Er(t),r=Or(r),Ir)try{return Tr(t,r)}catch(e){}if(jr(t,r))return xr(!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,xe=pe,Ee="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(Ee);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");xe[Te]=!0,oe=function(t,r){if(be(t,Te))throw new Oe(Ee);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,xn=S([].push),En=function(t,r){var e,n=bn(t),o=0,i=[];for(e in n)!mn(Sn,e)&&mn(n,e)&&xn(i,e);for(;r.length>o;)mn(n,e=r[o++])&&(~wn(i,e)||xn(i,e));return i},On=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jn=En,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+""},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,xu=G,Eu=Li,Ou=Jr,ju=o,Iu=Gt,Tu=mu.IteratorPrototype,Pu=rr("toStringTag"),Ru=TypeError,Au=wu.Iterator,ku=!xu(Au)||Au.prototype!==Tu||!ju((function(){Au({})})),Cu=function(){if(Su(this,Tu),Eu(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)},xc=function(t){return{iterator:t,next:t.next,done:!1}},Ec=Sc,Oc=mt,jc=Nr,Ic=xc;ro({target:"Iterator",proto:!0,real:!0},{some:function(t){jc(this),Oc(t);var r=Ic(this),e=0;return Ec(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=xa,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=Ea(/./[o]),a=r(o,""[t],(function(t,r,e,n,o){var u=Ea(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),xf=nf([].push),Ef=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===Ef(o,n)&&-1===Ef(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))&&(xf(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+""},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=xc;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,xs=no,Es=Gf,Os=B,js=rr("species"),Is=Array,Ts=function(t){var r;return xs(t)&&(r=t.constructor,(Es(r)&&(r===Is||xs(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,xl=qs,El=i,Ol=rr("species"),jl=function(t){var r=Sl(t);El&&r&&!r[Ol]&&xl(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=xa,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}):Ed&&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=xa,$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=xc,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={},ry=j,ey=_,ny=Qe.f,oy=$o,iy="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];ty.f=function(t){return iy&&"Window"===ry(t)?function(t){try{return ny(t)}catch(lj){return oy(iy)}}(t):ny(ey(t))};var uy={},cy=rr;uy.f=cy;var ay=e,fy=ay,sy=Gt,ly=uy,hy=Pr.f,vy=function(t){var r=fy.Symbol||(fy.Symbol={});sy(r,t)||hy(r,t,{value:ly.f(t)})},py=f,dy=J,gy=rr,yy=Xe,my=function(){var t=dy("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,n=gy("toPrimitive");r&&!r[n]&&yy(r,n,(function(t){return py(e,this)}),{arity:1})},by=ro,wy=e,Sy=f,xy=S,Ey=i,Oy=ut,jy=o,Iy=Gt,Ty=q,Py=Nr,Ry=_,Ay=hr,ky=Ao,Cy=g,Ny=fu,Ly=Di,Fy=Qe,My=ty,_y=Tn,Dy=n,Uy=Pr,$y=Fi,Gy=s,zy=Xe,Wy=qs,By=Ft,Hy=pe,Vy=Vt,Jy=rr,qy=uy,Ky=vy,Yy=my,Xy=wl,Qy=Pe,Zy=Ms.forEach,tm=ve("hidden"),rm="Symbol",em="prototype",nm=Qy.set,om=Qy.getterFor(rm),im=Object[em],um=wy.Symbol,cm=um&&um[em],am=wy.RangeError,fm=wy.TypeError,sm=wy.QObject,lm=Dy.f,hm=Uy.f,vm=My.f,pm=Gy.f,dm=xy([].push),gm=By("symbols"),ym=By("op-symbols"),mm=By("wks"),bm=!sm||!sm[em]||!sm[em].findChild,wm=function(t,r,e){var n=lm(im,r);n&&delete im[r],hm(t,r,e),n&&t!==im&&hm(im,r,n)},Sm=Ey&&jy((function(){return 7!==Ny(hm({},"a",{get:function(){return hm(this,"a",{value:7}).a}})).a}))?wm:hm,xm=function(t,r){var e=gm[t]=Ny(cm);return nm(e,{type:rm,tag:t,description:r}),Ey||(e.description=r),e},Em=function(t,r,e){t===im&&Em(ym,r,e),Py(t);var n=Ay(r);return Py(e),Iy(gm,n)?(e.enumerable?(Iy(t,tm)&&t[tm][n]&&(t[tm][n]=!1),e=Ny(e,{enumerable:Cy(0,!1)})):(Iy(t,tm)||hm(t,tm,Cy(1,{})),t[tm][n]=!0),Sm(t,n,e)):hm(t,n,e)},Om=function(t,r){Py(t);var e=Ry(r),n=Ly(e).concat(Pm(e));return Zy(n,(function(r){Ey&&!Sy(jm,e,r)||Em(t,r,e[r])})),t},jm=function(t){var r=Ay(t),e=Sy(pm,this,r);return!(this===im&&Iy(gm,r)&&!Iy(ym,r))&&(!(e||!Iy(this,r)||!Iy(gm,r)||Iy(this,tm)&&this[tm][r])||e)},Im=function(t,r){var e=Ry(t),n=Ay(r);if(e!==im||!Iy(gm,n)||Iy(ym,n)){var o=lm(e,n);return!o||!Iy(gm,n)||Iy(e,tm)&&e[tm][n]||(o.enumerable=!0),o}},Tm=function(t){var r=vm(Ry(t)),e=[];return Zy(r,(function(t){Iy(gm,t)||Iy(Hy,t)||dm(e,t)})),e},Pm=function(t){var r=t===im,e=vm(r?ym:Ry(t)),n=[];return Zy(e,(function(t){!Iy(gm,t)||r&&!Iy(im,t)||dm(n,gm[t])})),n};Oy||(um=function(){if(Ty(cm,this))throw new fm("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?ky(arguments[0]):void 0,r=Vy(t),e=function(t){this===im&&Sy(e,ym,t),Iy(this,tm)&&Iy(this[tm],r)&&(this[tm][r]=!1);var n=Cy(1,t);try{Sm(this,r,n)}catch(lj){if(!(lj instanceof am))throw lj;wm(this,r,n)}};return Ey&&bm&&Sm(im,r,{configurable:!0,set:e}),xm(r,t)},zy(cm=um[em],"toString",(function(){return om(this).tag})),zy(um,"withoutSetter",(function(t){return xm(Vy(t),t)})),Gy.f=jm,Uy.f=Em,$y.f=Om,Dy.f=Im,Fy.f=My.f=Tm,_y.f=Pm,qy.f=function(t){return xm(Jy(t),t)},Ey&&(Wy(cm,"description",{configurable:!0,get:function(){return om(this).description}}),zy(im,"propertyIsEnumerable",jm,{unsafe:!0}))),by({global:!0,constructor:!0,wrap:!0,forced:!Oy,sham:!Oy},{Symbol:um}),Zy(Ly(mm),(function(t){Ky(t)})),by({target:rm,stat:!0,forced:!Oy},{useSetter:function(){bm=!0},useSimple:function(){bm=!1}}),by({target:"Object",stat:!0,forced:!Oy,sham:!Ey},{create:function(t,r){return void 0===r?Ny(t):Om(Ny(t),r)},defineProperty:Em,defineProperties:Om,getOwnPropertyDescriptor:Im}),by({target:"Object",stat:!0,forced:!Oy},{getOwnPropertyNames:Tm}),Yy(),Xy(um,rm),Hy[tm]=!0;var Rm=ut&&!!Symbol.for&&!!Symbol.keyFor,Am=ro,km=J,Cm=Gt,Nm=Ao,Lm=Ft,Fm=Rm,Mm=Lm("string-to-symbol-registry"),_m=Lm("symbol-to-string-registry");Am({target:"Symbol",stat:!0,forced:!Fm},{for:function(t){var r=Nm(t);if(Cm(Mm,r))return Mm[r];var e=km("Symbol")(r);return Mm[r]=e,_m[e]=r,e}});var Dm=ro,Um=Gt,$m=ht,Gm=pt,zm=Rm,Wm=Ft("symbol-to-string-registry");Dm({target:"Symbol",stat:!0,forced:!zm},{keyFor:function(t){if(!$m(t))throw new TypeError(Gm(t)+" is not a symbol");if(Um(Wm,t))return Wm[t]}});var Bm=Tn,Hm=Dt;ro({target:"Object",stat:!0,forced:!ut||o((function(){Bm.f(1)}))},{getOwnPropertySymbols:function(t){var r=Bm.f;return r?r(Hm(t)):[]}});var Vm=ro,Jm=i,qm=S,Km=Gt,Ym=G,Xm=q,Qm=Ao,Zm=qs,tb=Dn,rb=e.Symbol,eb=rb&&rb.prototype;if(Jm&&Ym(rb)&&(!("description"in eb)||void 0!==rb().description)){var nb={},ob=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:Qm(arguments[0]),r=Xm(eb,this)?new rb(t):void 0===t?rb():rb(t);return""===t&&(nb[r]=!0),r};tb(ob,rb),ob.prototype=eb,eb.constructor=ob;var ib="Symbol(description detection)"===String(rb("description detection")),ub=qm(eb.valueOf),cb=qm(eb.toString),ab=/^Symbol\((.*)\)[^)]+$/,fb=qm("".replace),sb=qm("".slice);Zm(eb,"description",{configurable:!0,get:function(){var t=ub(this);if(Km(nb,t))return"";var r=cb(t),e=ib?sb(r,7,-1):fb(r,ab,"$1");return""===e?void 0:e}}),Vm({global:!0,constructor:!0,forced:!0},{Symbol:ob})}var lb=f;ro({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return lb(URL.prototype.toString,this)}});var hb=Ms.map;ro({target:"Array",proto:!0,forced:!Hf("map")},{map:function(t){return hb(this,t,arguments.length>1?arguments[1]:void 0)}});var vb=f,pb=mt,db=Nr,gb=xc,yb=Vg,mb=Wg((function(){var t=this.iterator,r=db(vb(this.next,t));if(!(this.done=!!r.done))return yb(t,this.mapper,[r.value,this.counter++],!0)}));ro({target:"Iterator",proto:!0,real:!0,forced:false},{map:function(t){return db(this),pb(t),new mb(gb(this),{mapper:t})}});var bb=rr,wb=fu,Sb=Pr.f,xb=bb("unscopables"),Eb=Array.prototype;void 0===Eb[xb]&&Sb(Eb,xb,{configurable:!0,value:wb(null)});var Ob=function(t){Eb[xb][t]=!0},jb=mu.IteratorPrototype,Ib=fu,Tb=g,Pb=wl,Rb=$u,Ab=function(){return this},kb=ro,Cb=f,Nb=G,Lb=function(t,r,e,n){var o=r+" Iterator";return t.prototype=Ib(jb,{next:Tb(+!n,e)}),Pb(t,o,!1),Rb[o]=Ab,t},Fb=Li,Mb=gl,_b=wl,Db=Jr,Ub=Xe,$b=$u,Gb=te.PROPER,zb=te.CONFIGURABLE,Wb=mu.IteratorPrototype,Bb=mu.BUGGY_SAFARI_ITERATORS,Hb=rr("iterator"),Vb="keys",Jb="values",qb="entries",Kb=function(){return this},Yb=function(t,r,e,n,o,i,u){Lb(e,r,n);var c,a,f,s=function(t){if(t===o&&d)return d;if(!Bb&&t&&t in v)return v[t];switch(t){case Vb:case Jb:case qb:return function(){return new e(this,t)}}return function(){return new e(this)}},l=r+" Iterator",h=!1,v=t.prototype,p=v[Hb]||v["@@iterator"]||o&&v[o],d=!Bb&&p||s(o),g="Array"===r&&v.entries||p;if(g&&(c=Fb(g.call(new t)))!==Object.prototype&&c.next&&(Fb(c)!==Wb&&(Mb?Mb(c,Wb):Nb(c[Hb])||Ub(c,Hb,Kb)),_b(c,l,!0)),Gb&&o===Jb&&p&&p.name!==Jb&&(zb?Db(v,"name",Jb):(h=!0,d=function(){return Cb(p,this)})),o)if(a={values:s(Jb),keys:i?d:s(Vb),entries:s(qb)},u)for(f in a)(Bb||h||!(f in v))&&Ub(v,f,a[f]);else kb({target:r,proto:!0,forced:Bb||h},a);return v[Hb]!==d&&Ub(v,Hb,d,{name:o}),$b[r]=d,a},Xb=_,Qb=Ob,Zb=$u,tw=Pe,rw=Pr.f,ew=Yb,nw=Ig,ow=i,iw="Array Iterator",uw=tw.set,cw=tw.getterFor(iw),aw=ew(Array,"Array",(function(t,r){uw(this,{type:iw,target:Xb(t),index:0,kind:r})}),(function(){var t=cw(this),r=t.target,e=t.kind,n=t.index++;if(!r||n>=r.length)return t.target=void 0,nw(void 0,!0);switch(e){case"keys":return nw(n,!1);case"values":return nw(r[n],!1)}return nw([n,r[n]],!1)}),"values"),fw=Zb.Arguments=Zb.Array;if(Qb("keys"),Qb("values"),Qb("entries"),ow&&"values"!==fw.name)try{rw(fw,"name",{value:"values"})}catch(lj){}var sw={exports:{}},lw=o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),hw=o,vw=B,pw=j,dw=lw,gw=Object.isExtensible,yw=hw((function(){gw(1)}))||dw?function(t){return!!vw(t)&&((!dw||"ArrayBuffer"!==pw(t))&&(!gw||gw(t)))}:gw,mw=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),bw=ro,ww=S,Sw=pe,xw=B,Ew=Gt,Ow=Pr.f,jw=Qe,Iw=ty,Tw=yw,Pw=mw,Rw=!1,Aw=Vt("meta"),kw=0,Cw=function(t){Ow(t,Aw,{value:{objectID:"O"+kw++,weakData:{}}})},Nw=sw.exports={enable:function(){Nw.enable=function(){},Rw=!0;var t=jw.f,r=ww([].splice),e={};e[Aw]=1,t(e).length&&(jw.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)}}),Qw(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)}}),uS&&Xw(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=fS(r),i=fS(n);nS(t,r,(function(t,r){aS(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)?oS("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,oS(void 0,!0))}),e?"entries":"values",!e,!0),iS(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=Mw[t],c=u&&u.prototype,a=u,f={},s=function(t){var r=_w(c[t]);Uw(c,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!Hw(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!Hw(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!Hw(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(Dw(t,!Ww(u)||!(o||c.forEach&&!Vw((function(){(new u).entries().next()})))))a=e.getConstructor(r,t,n,i),$w.enable();else if(Dw(t,!0)){var l=new a,h=l[i](o?{}:-0,1)!==l,v=Vw((function(){l.has(1)})),p=Jw((function(t){new u(t)})),d=!o&&Vw((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((a=r((function(t,r){zw(t,c);var e=Kw(new u,t,a);return Bw(r)||Gw(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,Fw({global:!0,constructor:!0,forced:a!==u},f),qw(a,t),o||e.setStrong(a,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),sS);var lS=Ua.charAt,hS=Ao,vS=Pe,pS=Yb,dS=Ig,gS="String Iterator",yS=vS.set,mS=vS.getterFor(gS);pS(String,"String",(function(t){yS(this,{type:gS,string:hS(t),index:0})}),(function(){var t,r=mS(this),e=r.string,n=r.index;return n>=e.length?dS(void 0,!0):(t=lS(e,n),r.index+=t.length,dS(t,!1))}));var bS=e,wS=ms,SS=Ss,xS=aw,ES=Jr,OS=rr,jS=OS("iterator"),IS=OS("toStringTag"),TS=xS.values,PS=function(t,r){if(t){if(t[jS]!==TS)try{ES(t,jS,TS)}catch(lj){t[jS]=TS}if(t[IS]||ES(t,IS,r),wS[r])for(var e in xS)if(t[e]!==xS[e])try{ES(t,e,xS[e])}catch(lj){t[e]=xS[e]}}};for(var RS in wS)PS(bS[RS]&&bS[RS].prototype,RS);PS(SS,"DOMTokenList");var AS,kS=B,CS=j,NS=rr("match"),LS=function(t){var r;return kS(t)&&(void 0!==(r=t[NS])?!!r:"RegExp"===CS(t))},FS=TypeError,MS=rr("match"),_S=ro,DS=Fu,US=n.f,$S=sn,GS=Ao,zS=function(t){if(LS(t))throw new FS("The method doesn't accept regular expressions");return t},WS=L,BS=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[MS]=!1,"/./"[t](r)}catch(n){}}return!1},HS=DS("".startsWith),VS=DS("".slice),JS=Math.min,qS=BS("startsWith");_S({target:"String",proto:!0,forced:!!(qS||(AS=US(String.prototype,"startsWith"),!AS||AS.writable))&&!qS},{startsWith:function(t){var r=GS(WS(this));zS(t);var e=$S(JS(arguments.length>1?arguments[1]:void 0,r.length)),n=GS(t);return HS?HS(r,n,e):VS(r,e,e+n.length)===n}});var KS=Dt,YS=Di;ro({target:"Object",stat:!0,forced:o((function(){YS(1)}))},{keys:function(t){return YS(KS(t))}});var XS=i,QS=S,ZS=f,tx=o,rx=Di,ex=Tn,nx=s,ox=Dt,ix=A,ux=Object.assign,cx=Object.defineProperty,ax=QS([].concat),fx=!ux||tx((function(){if(XS&&1!==ux({b:1},ux(cx({},"a",{enumerable:!0,get:function(){cx(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!==ux({},t)[e]||rx(ux({},r)).join("")!==n}))?function(t,r){for(var e=ox(t),n=arguments.length,o=1,i=ex.f,u=nx.f;n>o;)for(var c,a=ix(arguments[o++]),f=i?ax(rx(a),i(a)):rx(a),s=f.length,l=0;s>l;)c=f[l++],XS&&!ZS(u,a,c)||(e[c]=a[c]);return e}:ux,sx=fx;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==sx},{assign:sx});var lx=S,hx=Gt,vx=SyntaxError,px=parseInt,dx=String.fromCharCode,gx=lx("".charAt),yx=lx("".slice),mx=lx(/./.exec),bx={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},wx=/^[\da-f]{4}$/i,Sx=/^[\u0000-\u001F]$/,xx=ro,Ex=i,Ox=e,jx=J,Ix=S,Tx=f,Px=G,Rx=B,Ax=no,kx=Gt,Cx=Ao,Nx=hn,Lx=Lo,Fx=o,Mx=function(t,r){for(var e=!0,n="";r1?arguments[1]:void 0)}}),uE(cE);var fE=Sc,sE=mt,lE=Nr,hE=xc;ro({target:"Iterator",proto:!0,real:!0},{find:function(t){lE(this),sE(t);var r=hE(this),e=0;return fE(r,(function(r,n){if(t(r,e++))return n(r)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}});var vE=ro,pE=Ms.findIndex,dE=Ob,gE="findIndex",yE=!0;gE in[]&&Array(1)[gE]((function(){yE=!1})),vE({target:"Array",proto:!0,forced:yE},{findIndex:function(t){return pE(this,t,arguments.length>1?arguments[1]:void 0)}}),dE(gE);var mE=ro,bE=Dt,wE=cn,SE=en,xE=hn,EE=ao,OE=so,jE=Ps,IE=Lo,TE=mo,PE=Hf("splice"),RE=Math.max,AE=Math.min;mE({target:"Array",proto:!0,forced:!PE},{splice:function(t,r){var e,n,o,i,u,c,a=bE(this),f=xE(a),s=wE(t,f),l=arguments.length;for(0===l?e=n=0:1===l?(e=0,n=f-s):(e=l-2,n=AE(RE(SE(r),0),f-s)),OE(f+e-n),o=jE(a,n),i=0;if-n+e;i--)TE(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]:TE(a,c);for(i=0;i2)if(f=lO(f),43===(r=yO(f,0))||45===r){if(88===(e=yO(f,2))||120===e)return NaN}else if(48===r){switch(yO(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=gO(f,2)).length,c=0;co)return NaN;return parseInt(i,n)}return+f},bO=tO(hO,!vO(" 0o1")||!vO("0b1")||vO("+0x1")),wO=function(t){var r,e=arguments.length<1?0:vO(function(t){var r=iO(t,"number");return"bigint"==typeof r?r:mO(r)}(t));return nO(pO,r=this)&&uO((function(){sO(r)}))?eO(Object(e),this,wO):e};wO.prototype=pO,bO&&(pO.constructor=wO),KE({global:!0,constructor:!0,wrap:!0,forced:bO},{Number:wO});bO&&function(t,r){for(var e,n=YE?cO(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++)rO(r,e=n[o])&&!rO(t,e)&&fO(t,e,aO(r,e))}(QE[hO],vO),vy("iterator"),vy("asyncIterator");var SO=J,xO=wl;vy("toStringTag"),xO(SO("Symbol"),"Symbol"),wl(e.JSON,"JSON",!0),wl(Math,"Math",!0);var EO=Dt,OO=Li,jO=Ii;ro({target:"Object",stat:!0,forced:o((function(){OO(1)})),sham:!jO},{getPrototypeOf:function(t){return OO(EO(t))}});var IO=e,TO=wl;ro({global:!0},{Reflect:{}}),TO(IO.Reflect,"Reflect",!0);var PO=S,RO=mt,AO=B,kO=Gt,CO=Vf,NO=u,LO=Function,FO=PO([].concat),MO=PO([].join),_O={},DO=NO?LO.bind:function(t){var r=RO(this),e=r.prototype,n=CO(arguments,1),o=function(){var e=FO(n,CO(arguments));return this instanceof o?function(t,r,e){if(!kO(_O,r)){for(var n=[],o=0;o1?arguments[1]:void 0,i=void 0!==o;i&&(o=ZO(o,n>2?arguments[2]:void 0));var u,c,a,f,s,l,h=aj(r),v=0;if(!h||this===fj&&nj(h))for(u=ij(r),c=e?new this(u):fj(u);u>v;v++)l=i?o(r[v],v):r[v],uj(c,v,l);else for(s=(f=cj(r,h)).next,c=e?new this:[];!(a=tj(s,f)).done;v++)l=i?ej(f,o,[a.value,v],!0):a.value,uj(c,v,l);return c.length=v,c};ro({target:"Array",stat:!0,forced:!op((function(t){Array.from(t)}))},{from:sj}),function(){function r(t,r){return(r||"")+" (SystemJS https://github.com/systemjs/systemjs/blob/main/docs/errors.md#"+t+")"}function e(t,r){if(-1!==t.indexOf("\\")&&(t=t.replace(O,"/")),"/"===t[0]&&"/"===t[1])return r.slice(0,r.indexOf(":")+1)+t;if("."===t[0]&&("/"===t[1]||"."===t[1]&&("/"===t[2]||2===t.length&&(t+="/"))||1===t.length&&(t+="/"))||"/"===t[0]){var e,n=r.slice(0,r.indexOf(":")+1);if(e="/"===r[n.length+1]?"file:"!==n?(e=r.slice(n.length+2)).slice(e.indexOf("/")+1):r.slice(8):r.slice(n.length+("/"===r[n.length])),"/"===t[0])return r.slice(0,r.length-e.length-1)+t;for(var o=e.slice(0,e.lastIndexOf("/")+1)+t,i=[],u=-1,c=0;ce.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 x=(g=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==x&&(g=g.slice(0,x+1))}var E,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){E=[t,r,e]},T.getRegister=function(){var t=E;return E=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{min-height:100px;width:100%}.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)}@keyframes circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.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;cursor:pointer;align-items:center;white-space:nowrap}.ibiz-chat-toolbar__item:not(:first-child){margin-left:6px}.ibiz-chat-toolbar__item--icon{width:18px;height:18px;display:flex;flex-shrink:0;font-size:18px;align-items:center;justify-content:center}.ibiz-chat-toolbar__item--label{display:flex;align-items:center}.ibiz-chat-toolbar__item.is-disabled{cursor:not-allowed}.ibiz-chat-toolbar__item.is-loading{pointer-events:none;animation:loading-change .8s infinite}.ibiz-chat-toolbar__circle .ibiz-chat-toolbar__item{width:32px;height:32px;padding:6px;font-size:12px;overflow:hidden;border-radius:15px;transition:all .3s ease;border:1px solid var(--ibiz-ai-chat-border-color)}.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{font-size:14px;margin-left:8px;width:calc(100% - 32px)}.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{gap:6px;z-index:1;font-size:14px;width:fit-content;padding:2px 14px;line-height:28px;border-radius:12px;color:var(--ibiz-ai-chat-color-2);background-color:var(--ibiz-ai-chat-background-color-2)}.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-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.8/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.8/index.system.min.js new file mode 100644 index 0000000000000000000000000000000000000000..9e7f811117ca5e06919e376fc895b3b5f939730d --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.8/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"===p(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),L(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;L(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:z(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 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 d(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 L(t){return t.children}function D(t,e){this.props=t,this.context=e}function z(t,e){if(null==e)return t.__?z(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,p,d,v,_,m,y,g,b=0,w=r&&r.__k||E,k=w.length,S=k,N=e.length;for(n.__k=[],f=0;f0?O(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)?(d.__=n,d.__b=n.__b+1,-1===(y=F(d,w,m=f+b,S))?p=x:(p=w[y]||x,w[y]=void 0,S--),$(t,d,p,i,o,a,c,s,u,l),v=d.__e,(h=d.ref)&&p.ref!=h&&(p.ref&&X(p.ref,null,d),l.push(h,d.__c||v,d)),null!=v&&(null==_&&(_=v),(g=p===x||null===p.__v)?-1==y&&b--:y!==m&&(y===m+1?b++:y>m?S>N-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"!==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,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(){d(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(){d(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=[],pt=[],dt=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:pt}),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):Lt(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.__}(Lt,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 St(){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(_n){t.__H.__h=[],f.__e(_n,t.__v)}}f.__b=function(t){st=null,dt&&dt(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=pt,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)||Nt)(St)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==pt&&(t.__=t.__V),t.i=void 0,t.__V=pt}))),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 Ct="function"==typeof requestAnimationFrame;function Nt(t){var e,n=function(){clearTimeout(r),Ct&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Ct&&(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 Lt(t,e){return"function"==typeof e?e(t):e}function Dt(){throw new Error("Cycle detected")}var zt=Symbol.for("preact-signals");function It(){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,It()}}}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),It()}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=zt,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&&Dt(),this.v=t,this.i++,Ft++,Bt++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{It()}}}}),(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()||Dt(),16&this.f)throw this.v;return this.v},Object.defineProperty(Xt.prototype,"value",{get:function(){1&this.f&&Dt();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&&Dt(),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)})),D.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=new Q("markdown-message"),le=function(t){var e=t.message,n=t.size,r=oe(it()),i=oe(null);return wt((function(){n>=0&&i.value&&i.value.setMarkdown(e.content)}),[e,n]),wt((function(){i.value=new u({id:r,value:e.content,editor:{defaultModel:"previewOnly"}})}),[]),se("div",{className:"".concat(ue.b()," ").concat(ue.is("loading",20===e.state)),children:[se("div",{className:ue.b("header"),children:[se("div",{className:ue.be("header","caption"),children:"AI "}),t.children]}),se("div",{className:"".concat(ue.b("content")," pre-wrap-container"),children:se("div",{id:r})}),se("div",{className:ue.b("footer")})]})},fe=new Q("user-message-question"),he=function(t){var e=ae((function(){return t.message.content}));return se("div",{className:fe.b(),children:[se("div",{className:fe.e("user-header"),children:[t.children,se("div",{className:fe.e("user"),children:"我"})]}),se("div",{className:fe.e("content"),children:se("div",{dir:"auto",className:fe.em("content","body"),children:se("p",{dir:"auto",className:"pre-wrap-container",children:e})})})]})},pe=new Q("error-message"),de=function(t){var e=ae((function(){return t.message.content}));return se("div",{className:pe.b(),children:[se("div",{className:pe.b("header"),children:[se("div",{className:pe.be("header","caption"),children:"AI "}),t.children]}),se("div",{className:"".concat(pe.e("content")," pre-wrap-container"),children:se("span",{children:e})})]})},ve=new Q("unknown-message"),_e=function(t){return se("div",{className:ve.b(),children:se("span",{className:"".concat(ve.e("content")," pre-wrap-container"),children:["暂未支持的消息类型: ",t.message.type]})})},me=new Q("chat-message-item"),ye=function(t){var e=t.message,n=t.size,r=null;switch(e.type){case"DEFAULT":r="ASSISTANT"===e.role?le:he;break;case"ERROR":r=de;break;default:r=_e}return se("div",{className:me.b(),children:A(r,{size:n,message:e,controller:t.controller,children:t.children})})},ge=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"})})},be=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"})})},we=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"})})},ke=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"})})},xe=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"})})},Ee=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"})})},Se=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"})})},Ce=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"})})},Ne=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"})})},Te=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"})]})},Ae=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"})]})},Oe=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"})})},Le=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)}))})},De=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"})})},ze=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"})})},Ie=new Q("chat-toolbar"),Me=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(Ae,{}),onClick:function(){console.log("TODO 新建对话")}}],f=[{label:"回填",title:"回填",icon:se(be,{}),onClick:function(){e.backfill(i)}},{label:"刷新",title:"刷新",icon:se(xe,{}),onClick:function(){e.refreshMessage(i)}},{label:"删除",title:"删除",icon:se(ke,{}),onClick:function(){e.deleteMessage(i)}},{label:"复制",title:"复制",icon:se(Ee,{}),onClick:function(){e.copyMessage(i)}}],h=[{label:"刷新",title:"刷新",icon:se(xe,{}),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 p=function(t){return"function"==typeof t.disabled?t.disabled(i):!0===t.disabled};return se("div",{className:"".concat(Ie.b()," ").concat(Ie.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(Ie.e("item")," ").concat(Ie.is("disabled",p(t))," ").concat(Ie.is("loading",20===i.state)," ").concat(a||""),title:t.title,onClick:function(n){return function(t,n){var r;p(n)||null===(r=n.onClick)||void 0===r||r.call(n,t,e.context,e.params,i)}(n,t)},children:[se("div",{className:"".concat(Ie.em("item","icon")),children:"function"==typeof t.icon?t.icon(A):t.icon}),se("div",{className:"".concat(Ie.em("item","label")),children:"function"==typeof t.label?t.label(A):t.label})]},n)}))})},Pe=new Q("chat-messages"),He=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:Pe.b(),children:n.value.map((function(e){var n,r=(null===(n=e.content)||void 0===n?void 0:n.length)||0;return se(ye,{size:r,message:e,controller:t.controller,children:se(Me,{data:e,type:"content",items:t.toolbarItems,controller:t.controller})},e.messageid)}))})};function je(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 Be(t){this.props=t}(Be.prototype=new D).isPureReactComponent=!0,Be.prototype.shouldComponentUpdate=function(t,e){return je(this.props,t)||je(this.state,e)};var Re=f.__b;f.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Re&&Re(t)};var Fe=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);Fe(t,e,n,r)};var Ue=f.unmount;function Ve(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 Ve(t,e,n)}))),t}function We(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return We(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 Ye(){this.__u=0,this.t=null,this.__b=null}function $e(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function qe(){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),Ue&&Ue(t)},(Ye.prototype=new D).__c=function(t,e){var n=e.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=$e(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]=We(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)},Ye.prototype.componentWillUnmount=function(){this.t=[]},Ye.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]=Ve(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&A(L,null,t.fallback);return i&&(i.__h=null),[A(L,null,e.__a?null:t.children),i]};var Xe=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(Ge,{context:e.context},t.__v),e.l)}function Je(t,e){var n=A(Ze,{__v:t,i:e});return n.containerInfo=e,n}(qe.prototype=new D).__a=function(t){var e=this,n=$e(e.__v),r=e.o.get(t);return r[0]++,function(i){var o=function(){e.props.revealOrder?(r.push(i),Xe(e,t,r)):i()};n?n(o):o()}},qe.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},qe.prototype.componentDidUpdate=qe.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){Xe(t,n,e)}))};var Ke="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Qe=/^(?: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]/,tn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,en=/[A-Z0-9]/g,nn="undefined"!=typeof document,rn=function(t){return("undefined"!=typeof Symbol&&"symbol"==p(Symbol())?/fil|che|rad/:/fil|che|ra/).test(t)};D.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(D.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var on=f.event;function an(){}function cn(){return this.cancelBubble}function sn(){return this.defaultPrevented}f.event=function(t){return on&&(t=on(t)),t.persist=an,t.isPropagationStopped=cn,t.isDefaultPrevented=sn,t.nativeEvent=t};var un={enumerable:!1,configurable:!0,get:function(){return this.class}},ln=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||nn&&"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||rn(e.type)?"onfocus"===a?i="onfocusin":"onblur"===a?i="onfocusout":tn.test(i)?i=a:-1===n.indexOf("-")&&Qe.test(i)?i=i.replace(en,"-$&").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",un)):(e.className&&!e.class||e.class&&e.className)&&(r.class=r.className=e.className),t.props=r}(t),t.$$typeof=Ke,ln&&ln(t)};var fn=f.__r;f.__r=function(t){fn&&fn(t),t.__c};var hn=f.diffed;f.diffed=function(t){hn&&hn(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 pn=new Map;function dn(t){var e=pn.get(t);e&&e.destroy()}function vn(t){var e=pn.get(t);e&&e.update()}var _n=null;"undefined"==typeof window?((_n=function(t){return t}).destroy=function(t){return t},_n.update=function(t){return t}):((_n=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&&!pn.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]})),pn.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",pn.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],dn),t},_n.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],vn),t});var mn=_n,yn=new Q("chat-input"),gn=window.SpeechRecognition||window.webkitSpeechRecognition,bn=function(t){var e=kt(null),n=t.controller.input,r=oe(!1),i=oe(!1),o=kt();gn&&!o.current&&(o.current=new gn,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&&mn(e.current),function(){e.current&&mn.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:yn.b(),children:[se("textarea",{className:yn.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:yn.b("action-wrapper"),children:[se("div",{title:i.value?"语音输入中...":"语音输入",className:"".concat(yn.be("action-wrapper","action-item")),onClick:function(){o.current&&!i.value&&o.current.start()},children:i.value?se(Le,{}):se(Oe,{})}),se("div",{title:r.value?"思考中...":"发送消息",className:"".concat(yn.be("action-wrapper","action-item")," ").concat(yn.is("disabled",c.value)," ").concat(yn.is("loading",r.value)),onClick:s,disabled:c,children:se(we,{})})]})]})},wn=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}(wn||{}),kn=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],p=f[1],d=kt(null),v=kt(null);wt((function(){void 0!==c&&p(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){!d.current||d.current.contains(t.target)||t.target.closest(l.b("content"))||(p(!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:d,onClick:function(t){t.stopPropagation();var e=!h;p(e),null==s||s(e)},children:e}),h&&v.current&&Je(se("div",{className:"".concat(l.b("content")," pop-").concat(i),style:function(){if(!d.current)return{};var t=d.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)]})},xn=new Q("chat-topic-item"),En=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(xn.b()," ").concat(xn.is("active",n)),onClick:i.bind(void 0),children:[se("div",{className:xn.b("caption"),title:r.caption,children:r.caption}),se("div",{className:xn.b("icon"),children:[se("span",{className:xn.be("icon","item"),title:"跳转主视图",onClick:function(t){t.stopPropagation(),o("LINK",t)}.bind(void 0),children:se(ze,{className:xn.b("link-icon")})}),e?null:se(kn,{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:xn.be("icon","item"),title:"更多",children:se(De,{className:xn.b("more-icon")})})})]})]})},Sn=new Q("chat-topics"),Cn=function(t){var e=t.controller.topics;return se("div",{className:Sn.b(),children:e.value.map((function(e){var n,r;return se(En,{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)}))})},Nn=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 d(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(wn.MINIMIZE_STYLY_CHCHE);e&&(this.minimizeData=JSON.parse(e));var n=localStorage.getItem(wn.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(wn.STYLE_CACHE,JSON.stringify(this.data)),localStorage.setItem(wn.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(Ne,{})}),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(Ce,{})}):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(Se,{})}),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(ge,{})})]})]}),"TOPIC"===this.props.mode?se("div",{className:"".concat(this.ns.b("main")),children:[se("div",{className:"".concat(this.ns.be("main","left")),children:se(Cn,{controller:this.props.aiTopic})}),se("div",{className:"".concat(this.ns.be("main","right")),children:[se("div",{className:this.ns.b("content"),children:se(He,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),se(Me,{data:{},type:"footer",className:this.ns.e("toolbar"),controller:this.props.aiChat,items:this.props.footerToolbarItems}),se("div",{className:this.ns.b("footer"),children:se(bn,{controller:this.props.aiChat})})]})]}):se("div",{className:"".concat(this.ns.be("main","default")),children:[se("div",{className:this.ns.b("content"),children:se(He,{controller:this.props.aiChat,toolbarItems:this.props.contentToolbarItems})}),se(Me,{data:{},type:"footer",className:this.ns.e("toolbar"),controller:this.props.aiChat,items:this.props.footerToolbarItems}),se("div",{className:this.ns.b("footer"),children:se(bn,{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(Te,{})})]})}}]),o}(D);r("ChatContainer",Nn);var Tn=function(){function t(e){d(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:"_origin",get:function(){return this.msg}},{key:"update",value:function(t){t.content||(t.content=""),this.msg.content+=t.content}}]),t}(),An=function(){function t(e){d(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}(),On=function(){function t(e){d(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;return _(t,[{key:"fecthHistory",value:(i=h(l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.opts.history(this.context,this.params,{appDataEntityId:this.appDataEntityId}));case 1:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"asyncToIndexDB",value:(r=h(l().mark((function t(e){var n,r;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 n={id:this.topicId,data:this.messages.value.map((function(t){return t._origin})),timestamp:(new Date).getTime()},r="ADD"===e?"addData":"updateData",t.next=6,at[r](wn.DATA_BASE_NAME,wn.DATA_TABLE_NAME,n);case 6:case"end":return t.stop()}}),t,this)}))),function(t){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=c(this.messages.value)):this.messages.value=[].concat(c(this.messages.value),[new Tn(t)])}},{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 Tn(t),this.messages.value=c(this.messages.value)):this.messages.value=[].concat(c(this.messages.value),[new Tn(t)])}},{key:"question",value:(n=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 n.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.opts.action&&this.opts.action("deletemsg",t)}},{key:"refreshMessage",value:(e=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.opts.action&&this.opts.action("refreshmsg",e);case 20:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"copyMessage",value:function(t){var e=t.content;ot.copy(e),this.opts.action&&this.opts.action("copymsg",t)}}]),t}(),Ln=function(){function t(e){d(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 An(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 An(e),-1!==n?this.topics.value.splice(n,1,new An(e)):this.topics.value=[].concat(c(this.topics.value),[new An(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: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 14: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}(),Dn=function(){function t(){d(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 Ln(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(wn.DATA_BASE_NAME,wn.DATA_TABLE_NAME);case 2:if(t.sent){t.next=6;break}return t.next=6,at.createTable(wn.DATA_BASE_NAME,wn.DATA_TABLE_NAME,wn.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 On(r),J(A(Nn,{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 On(i),this.container)&&(J(null,this.container),J(A(Nn,{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 Dn)}}}))}(); diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.8/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.8/polyfills.legacy.js new file mode 100644 index 0000000000000000000000000000000000000000..c3fa7dad4f0961a03c8ce8c3de7e3fee782f8e8d --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/ai-chat/0.0.8/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,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})),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:{}},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=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 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,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 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=ae,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,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 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=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+""},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,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,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,Pa,Ra=Nr,Aa=function(){var t=Ra(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=Pe.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=(Pa=/b*/g,Wa(Za,Ta=/a/,"a"),Wa(Za,Pa,"a"),0!==Ta.lastIndex||0!==Pa.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[Rc]=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&&Pc(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 Pf=S,Rf=o,Af=G,kf=To,Cf=ae,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=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+""},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},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,a=5===t||i;return function(c,f,s,l){for(var h,v,p=ks(c),d=As(p),g=Rs(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=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,al="process"===j(e.process),cl=S,fl=mt,sl=G,ll=String,hl=TypeError,vl=function(t,r,e){try{return cl(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=Ec,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),a=Gp(u,0),c=0;for(r=-1,n=arguments.length;ri&&Sd(o,arguments[i]),o}));l.prototype=f,"Error"!==a?gd?gd(l,s):yd(l,s,{name:!0}):xd&&o in c&&(md(l,c,o),md(l,c,"prepareStackTrace")),yd(l,c);try{f.name!==a&&pd(f,"name",a),f.constructor=l}catch(Oj){}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=Ec,$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=aa,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(Oj){throw e.done=!0,Oj}},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(Oj){return Fg(n,"throw",Oj)}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=aa,Vg=function(t,r,e,n){try{return n?r(Bg(e)[0],e[1]):r(e)}catch(Oj){Hg(t,"throw",Oj)}},Jg=ro,qg=f,Kg=mt,Yg=Nr,Xg=Ea,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=Sa,ry=mt,ey=Nr,ny=Ea;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=_,ay=Qe.f,cy=$o,fy="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];oy.f=function(t){return fy&&"Window"===iy(t)?function(t){try{return ay(t)}catch(Oj){return cy(fy)}}(t):ay(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",am=em.set,cm=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 am(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(Oj){if(!(Oj instanceof hm))throw Oj;Om(this,r,n)}};return Ty&&xm&&jm(fm,r,{configurable:!0,set:e}),Im(r,t)},Vy(lm=sm[um],"toString",(function(){return cm(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 cm(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 ab={},cb=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&&(ab[r]=!0),r};ob(cb,ib),cb.prototype=ub,ub.constructor=cb;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(ab,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:cb})}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=Ea,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=na,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,a,c,f,s,l,h=Cb(r),v=0;if(!h||this===Nb&&Tb(h))for(u=Rb(r),a=e?new this(u):Nb(u);u>v;v++)l=i?o(r[v],v):r[v],Ab(a,v,l);else for(s=(f=kb(r,h)).next,a=e?new this:[];!(c=Ob(s,f)).done;v++)l=i?Ib(f,o,[c.value,v],!0):c.value,Ab(a,v,l);return a.length=v,a};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 a,c,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&&(a=Hb(g.call(new t)))!==Object.prototype&&a.next&&(Hb(a)!==Zb&&(Vb?Vb(a,Zb):Wb(a[rw])||Kb(a,rw,iw)),Jb(a,l,!0)),Xb&&o===nw&&p&&p.name!==nw&&(Qb?qb(v,"name",nw):(h=!0,d=function(){return zb(p,this)})),o)if(c={values:s(nw),keys:i?d:s(ew),entries:s(ow)},u)for(f in c)(tw||h||!(f in v))&&Kb(v,f,c[f]);else Gb({target:r,proto:!0,forced:tw||h},c);return v[rw]!==d&&Kb(v,rw,d,{name:o}),Yb[r]=d,c},aw=Uc.charAt,cw=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:cw(t),index:0})}),(function(){var t,r=pw(this),e=r.string,n=r.index;return n>=e.length?lw(void 0,!0):(t=aw(e,n),r.index+=t.length,lw(t,!1))}));var dw=ro,gw=Dt,yw=an,mw=en,bw=hn,ww=co,Sw=so,Ew=Ps,xw=Lo,Ow=mo,jw=Hf("splice"),Iw=Math.max,Tw=Math.min;dw({target:"Array",proto:!0,forced:!jw},{splice:function(t,r){var e,n,o,i,u,a,c=gw(this),f=bw(c),s=yw(t,f),l=arguments.length;for(0===l?e=n=0:1===l?(e=0,n=f-s):(e=l-2,n=Tw(Iw(mw(r),0),f-s)),Sw(f+e-n),o=Ew(c,n),i=0;if-n+e;i--)Ow(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]:Ow(c,a);for(i=0;i=r.length)return t.target=void 0,$w(void 0,!0);switch(e){case"keys":return $w(n,!1);case"values":return $w(r[n],!1)}return $w([n,r[n]],!1)}),"values"),Vw=Mw.Arguments=Mw.Array;if(Fw("keys"),Fw("values"),Fw("entries"),Gw&&"values"!==Vw.name)try{Dw(Vw,"name",{value:"values"})}catch(Oj){}var Jw={exports:{}},qw=o((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Kw=o,Yw=B,Xw=j,Qw=qw,Zw=Object.isExtensible,tS=Kw((function(){Zw(1)}))||Qw?function(t){return!!Yw(t)&&((!Qw||"ArrayBuffer"!==Xw(t))&&(!Zw||Zw(t)))}:Zw,rS=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),eS=ro,nS=S,oS=pe,iS=B,uS=Gt,aS=Pr.f,cS=Qe,fS=oy,sS=tS,lS=rS,hS=!1,vS=Vt("meta"),pS=0,dS=function(t){aS(t,vS,{value:{objectID:"O"+pS++,weakData:{}}})},gS=Jw.exports={enable:function(){gS.enable=function(){},hS=!0;var t=cS.f,r=nS([].splice),e={};e[vS]=1,t(e).length&&(cS.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)}}),FS(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)}}),WS&&LS(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=VS(r),i=VS(n);$S(t,r,(function(t,r){HS(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)?GS("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,GS(void 0,!0))}),e?"entries":"values",!e,!0),zS(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=bS[t],a=u&&u.prototype,c=u,f={},s=function(t){var r=wS(a[t]);ES(a,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!PS(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!PS(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!PS(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(SS(t,!IS(u)||!(o||a.forEach&&!RS((function(){(new u).entries().next()})))))c=e.getConstructor(r,t,n,i),xS.enable();else if(SS(t,!0)){var l=new c,h=l[i](o?{}:-0,1)!==l,v=RS((function(){l.has(1)})),p=AS((function(t){new u(t)})),d=!o&&RS((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((c=r((function(t,r){jS(t,a);var e=CS(new u,t,c);return TS(r)||OS(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,mS({global:!0,constructor:!0,forced:c!==u},f),kS(c,t),o||e.setStrong(c,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),JS);var qS=e,KS=ms,YS=Ss,XS=Hw,QS=Jr,ZS=rr,tE=ZS("iterator"),rE=ZS("toStringTag"),eE=XS.values,nE=function(t,r){if(t){if(t[tE]!==eE)try{QS(t,tE,eE)}catch(Oj){t[tE]=eE}if(t[rE]||QS(t,rE,r),KS[r])for(var e in XS)if(t[e]!==XS[e])try{QS(t,e,XS[e])}catch(Oj){t[e]=XS[e]}}};for(var oE in KS)nE(qS[oE]&&qS[oE].prototype,oE);nE(YS,"DOMTokenList");var iE,uE=B,aE=j,cE=rr("match"),fE=function(t){var r;return uE(t)&&(void 0!==(r=t[cE])?!!r:"RegExp"===aE(t))},sE=TypeError,lE=rr("match"),hE=ro,vE=Fu,pE=n.f,dE=sn,gE=Ao,yE=function(t){if(fE(t))throw new sE("The method doesn't accept regular expressions");return t},mE=L,bE=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[lE]=!1,"/./"[t](r)}catch(n){}}return!1},wE=vE("".startsWith),SE=vE("".slice),EE=Math.min,xE=bE("startsWith");hE({target:"String",proto:!0,forced:!!(xE||(iE=pE(String.prototype,"startsWith"),!iE||iE.writable))&&!xE},{startsWith:function(t){var r=gE(mE(this));yE(t);var e=dE(EE(arguments.length>1?arguments[1]:void 0,r.length)),n=gE(t);return wE?wE(r,n,e):SE(r,e,e+n.length)===n}});var OE=Dt,jE=Di;ro({target:"Object",stat:!0,forced:o((function(){jE(1)}))},{keys:function(t){return jE(OE(t))}});var IE=i,TE=S,PE=f,RE=o,AE=Di,kE=Tn,CE=s,NE=Dt,LE=A,FE=Object.assign,ME=Object.defineProperty,_E=TE([].concat),DE=!FE||RE((function(){if(IE&&1!==FE({b:1},FE(ME({},"a",{enumerable:!0,get:function(){ME(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!==FE({},t)[e]||AE(FE({},r)).join("")!==n}))?function(t,r){for(var e=NE(t),n=arguments.length,o=1,i=kE.f,u=CE.f;n>o;)for(var a,c=LE(arguments[o++]),f=i?_E(AE(c),i(c)):AE(c),s=f.length,l=0;s>l;)a=f[l++],IE&&!PE(u,c,a)||(e[a]=c[a]);return e}:FE,UE=DE;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==UE},{assign:UE});var $E=S,GE=Gt,zE=SyntaxError,WE=parseInt,BE=String.fromCharCode,HE=$E("".charAt),VE=$E("".slice),JE=$E(/./.exec),qE={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},KE=/^[\da-f]{4}$/i,YE=/^[\u0000-\u001F]$/,XE=ro,QE=i,ZE=e,tx=J,rx=S,ex=f,nx=G,ox=B,ix=no,ux=Gt,ax=Ao,cx=hn,fx=Lo,sx=o,lx=function(t,r){for(var e=!0,n="";r1?arguments[1]:void 0)}}),Fx(Mx);var Dx=Sa,Ux=mt,$x=Nr,Gx=Ea;ro({target:"Iterator",proto:!0,real:!0},{find:function(t){$x(this),Ux(t);var r=Gx(this),e=0;return Dx(r,(function(r,n){if(t(r,e++))return n(r)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}});var zx=ro,Wx=Ms.findIndex,Bx=Nw,Hx="findIndex",Vx=!0;Hx in[]&&Array(1)[Hx]((function(){Vx=!1})),zx({target:"Array",proto:!0,forced:Vx},{findIndex:function(t){return Wx(this,t,arguments.length>1?arguments[1]:void 0)}}),Bx(Hx);var Jx=Ey;yy("toPrimitive"),Jx();var qx=Nr,Kx=It,Yx=TypeError,Xx=Gt,Qx=Xe,Zx=function(t){if(qx(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new Yx("Incorrect hint");return Kx(this,t)},tO=rr("toPrimitive"),rO=Date.prototype;Xx(rO,tO)||Qx(rO,tO,Zx);var eO=S(1..valueOf),nO=L,oO=Ao,iO="\t\n\v\f\r                 \u2028\u2029\ufeff",uO=S("".replace),aO=RegExp("^["+iO+"]+"),cO=RegExp("(^|[^"+iO+"])["+iO+"]+$"),fO=function(t){return function(r){var e=oO(nO(r));return 1&t&&(e=uO(e,aO,"")),2&t&&(e=uO(e,cO,"$1")),e}},sO={start:fO(1),end:fO(2),trim:fO(3)},lO=ro,hO=i,vO=e,pO=hy,dO=S,gO=Jn,yO=Gt,mO=Xp,bO=q,wO=ht,SO=fr,EO=o,xO=Qe.f,OO=n.f,jO=Pr.f,IO=eO,TO=sO.trim,PO="Number",RO=vO[PO];pO[PO];var AO=RO.prototype,kO=vO.TypeError,CO=dO("".slice),NO=dO("".charCodeAt),LO=function(t){var r,e,n,o,i,u,a,c,f=SO(t,"number");if(wO(f))throw new kO("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=TO(f),43===(r=NO(f,0))||45===r){if(88===(e=NO(f,2))||120===e)return NaN}else if(48===r){switch(NO(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=CO(f,2)).length,a=0;ao)return NaN;return parseInt(i,n)}return+f},FO=gO(PO,!RO(" 0o1")||!RO("0b1")||RO("+0x1")),MO=function(t){var r,e=arguments.length<1?0:RO(function(t){var r=SO(t,"number");return"bigint"==typeof r?r:LO(r)}(t));return bO(AO,r=this)&&EO((function(){IO(r)}))?mO(Object(e),this,MO):e};MO.prototype=AO,FO&&(AO.constructor=MO),lO({global:!0,constructor:!0,wrap:!0,forced:FO},{Number:MO});FO&&function(t,r){for(var e,n=hO?xO(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++)yO(r,e=n[o])&&!yO(t,e)&&jO(t,e,OO(r,e))}(pO[PO],RO),yy("iterator"),yy("asyncIterator");var _O=J,DO=wl;yy("toStringTag"),DO(_O("Symbol"),"Symbol"),wl(e.JSON,"JSON",!0),wl(Math,"Math",!0);var UO=Dt,$O=Li,GO=Ii;ro({target:"Object",stat:!0,forced:o((function(){$O(1)})),sham:!GO},{getPrototypeOf:function(t){return $O(UO(t))}});var zO=ro,WO=o,BO=_,HO=n.f,VO=i;zO({target:"Object",stat:!0,forced:!VO||WO((function(){HO(1)})),sham:!VO},{getOwnPropertyDescriptor:function(t,r){return HO(BO(t),r)}});var JO=Nn,qO=_,KO=n,YO=Lo;ro({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var r,e,n=qO(t),o=KO.f,i=JO(n),u={},a=0;i.length>a;)void 0!==(e=o(n,r=i[a++]))&&YO(u,r,e);return u}});var XO=e,QO=wl;ro({global:!0},{Reflect:{}}),QO(XO.Reflect,"Reflect",!0);var ZO=S,tj=mt,rj=B,ej=Gt,nj=Vf,oj=u,ij=Function,uj=ZO([].concat),aj=ZO([].join),cj={},fj=oj?ij.bind:function(t){var r=tj(this),e=r.prototype,n=nj(arguments,1),o=function(){var e=uj(n,nj(arguments));return this instanceof o?function(t,r,e){if(!ej(cj,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 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{fill:var(--ibiz-color-bg-fill)}.ibiz-collapse-item__item-div:hover>svg{fill:var(--ibiz-color-primary-light-active)}.ibiz-collapse-item .el-collapse-item__content{padding-bottom:10px}.ibiz-collapse-item__item-editMode>.el-tooltip__trigger{display:flex;align-items:center;justify-content:center}.ibiz-collapse-item__item-editMode:hover svg{fill:var(--ibiz-color-primary-light-active)}.ibiz-collapse-item-editMode-popover{--el-popover-padding: var(--ibiz-spacing-tight) 0}.ibiz-collapse-item-editMode-popover-item{display:flex;align-items:center;justify-content:space-between;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-loose);cursor:pointer}.ibiz-collapse-item-editMode-popover-item:hover{background-color:var(--ibiz-color-fill-1)}.ibiz-collapse-item-editMode-popover-item>svg{fill:var(--ibiz-color-primary-light-active)}.ibiz-color-scheme{width:100%}.el-select__wrapper{position:relative;box-sizing:border-box;display:flex;gap:6px;align-items:center;min-height:32px;padding:4px 12px;font-size:14px;line-height:24px;text-align:left;cursor:pointer;background-color:var(--el-fill-color-blank);border-radius:var(--el-border-radius-base);box-shadow:0 0 0 1px var(--el-border-color) inset;transition:var(--el-transition-duration)}.el-select__selection{position:relative;display:flex;flex:1;flex-wrap:wrap;gap:6px;align-items:center;min-width:0}.el-select__input-wrapper.is-hidden{position:absolute;opacity:0}.el-select__input-wrapper{max-width:100%}.el-select__selected-item{display:flex;flex-wrap:wrap;user-select:none}.ibiz-color-scheme-header{margin-bottom:var(--ibiz-spacing-tight);font-size:var(--ibiz-font-size-regular);line-height:calc(var(--ibiz-spacing-base-loose) + var(--ibiz-spacing-super-tight))}.ibiz-color-scheme-content{display:flex;flex-direction:column}.ibiz-color-scheme-picker:not(:last-child){margin-bottom:var(--ibiz-spacing-base)}.ibiz-color-scheme-picker .el-input__wrapper{padding:calc(var(--ibiz-spacing-extra-tight) + var(--ibiz-spacing-super-tight)) var(--ibiz-spacing-base-tight)}.ibiz-color-scheme-picker .el-input__inner{--el-input-inner-height: var(--ibiz-height-control-small)}.ibiz-color-scheme-template-color-picker .el-input__wrapper{padding:calc(var(--ibiz-spacing-extra-tight) + var(--ibiz-spacing-super-tight)) var(--ibiz-spacing-base-tight)}.ibiz-color-scheme-template-color-picker .el-input__inner{--el-input-inner-height: var(--ibiz-height-control-small)}.ibiz-color-scheme-template-color-picker .el-select__prefix{display:flex}.ibiz-color-scheme-template-color-picker__icon{display:block;width:calc(var(--ibiz-spacing-base-tight) + var(--ibiz-spacing-super-tight));height:calc(var(--ibiz-spacing-base-tight) + var(--ibiz-spacing-super-tight));margin-right:var(--ibiz-spacing-tight);border-radius:var(--ibiz-border-radius-extra-small)}.ibiz-color-scheme-template-color-picker__icon:last-of-type{margin-right:var(--ibiz-spacing-none)}.ibiz-color-scheme-template-color-picker-option{display:flex;align-items:center}.el-popper.is-light .ibiz-color-scheme-popper .el-select-dropdown__list{margin:var(--ibiz-spacing-base-tight) var(--ibiz-spacing-none)!important}.el-popper.is-light .ibiz-color-scheme-popper .el-select-dropdown__item{height:var(--ibiz-height-control-large);padding:var(--ibiz-spacing-none) var(--ibiz-spacing-base-loose);line-height:var(--ibiz-height-control-large)}.el-popper.is-light .ibiz-color-scheme-popper .el-select-dropdown__item.selected{background-color:var(--ibiz-color-primary-light-default)}.ibiz-font-border-select__top-content{display:flex;flex-flow:row nowrap;place-content:center flex-start;align-items:center;padding-left:16px}.ibiz-font-border-select__top-content-check .el-checkbox{--el-checkbox-input-height: 16px;--el-checkbox-input-width: 16px;--el-checkbox-checked-bg-color: #6698ff;--el-checkbox-checked-input-border-color: #6698ff}.ibiz-font-border-select__top-content-check .el-checkbox__inner:after{height:10px}.ibiz-font-border-select__top-content-title{margin-left:8px;font-size:14px;color:#333}.ibiz-font-border-select__dropdown{width:95px;height:40px;border-radius:4px;box-shadow:0 0 0 1px rgba(29,31,35,.1) inset}.ibiz-font-border-select__dropdown-popper,.ibiz-font-border-select__dropdown-popper.el-popper.el-dropdown__popper .el-dropdown-menu,.ibiz-font-border-select__dropdown-popper.el-popper.el-dropdown__popper .el-scrollbar .el-dropdown__list{background-color:#fff}.ibiz-font-border-select__dropdown-popper.el-popper.el-dropdown__popper .el-scrollbar .el-dropdown__list .el-dropdown-menu__item{color:#333;background-color:#fff}.ibiz-font-border-select__dropdown-popper.el-popper.el-dropdown__popper .el-scrollbar .el-dropdown__list .el-dropdown-menu__item:hover{background:#f5f5f5}.ibiz-font-border-select__dropdown-input{position:relative;display:flex;flex-flow:row nowrap;place-content:center center;align-items:center;width:95px;height:40px;border:1px solid #e0e3e9;border-radius:4px}.ibiz-font-border-select__dropdown-input>svg{position:absolute;right:13px;width:14px;height:14px;color:#888d91;transition:transform .3s;transform:rotate(0)}.ibiz-font-border-select__dropdown-input.visible>.svg{transform:rotate(-180deg)}.ibiz-font-border-select__dropdown-input-content{position:absolute;top:12px;left:16px;width:48px}.ibiz-font-border-select__dropdown-item{justify-content:center;width:84px;height:40px;background-color:#fff}.ibiz-font-border-select__dropdown-item.active{color:#6698ff;background:rgba(102,152,255,.1019607843)}.ibiz-font-border-select__bottom-content{display:flex;flex-flow:row nowrap;place-content:center space-around;align-items:center}.ibiz-font-border-select__input-number{width:87px}.ibiz-font-border-select__input-number .el-input--large .el-input__wrapper{padding-right:0;padding-left:10px}.ibiz-font-border-select__input-number-suffix{position:absolute;right:0;display:flex;flex-flow:column nowrap;place-content:center center;align-items:center;cursor:pointer;border-left:1px solid #eee;border-radius:0 4px 4px 0}.ibiz-font-border-select__input-number-suffix-add{width:21px;height:17px}.ibiz-font-border-select__input-number-suffix-add.readonly{cursor:not-allowed}.ibiz-font-border-select__input-number-suffix-add>svg{position:absolute;right:4px}.ibiz-font-border-select__input-number-suffix-minus{width:21px;height:17px;border-top:1px solid #eee;border-bottom-right-radius:4px}.ibiz-font-border-select__input-number-suffix-minus.readonly{cursor:not-allowed}.ibiz-font-border-select__input-number-suffix-minus>svg{position:absolute;right:4px}.ibiz-position-select{display:flex;flex-wrap:wrap}.ibiz-position-select__item{display:flex;align-items:center;justify-content:center;width:36px;height:36px;margin:0 12px 8px 0;font-size:16px;color:#fafafa;cursor:pointer;border:1px solid white;border-radius:4px}.ibiz-position-select__item:hover{border:1px solid #6698ff}.ibiz-position-select__item.is-selected{background-color:#eff4ff;border:1px solid #6698ff}.ibiz-position-select__item.is-disabled{cursor:no-drop;background-color:#fafafa;border:none}.ibiz-bi-filter-item{padding:var(--ibiz-spacing-base) var(--ibiz-spacing-extra-loose)}.ibiz-bi-filter-item__header{display:flex;align-items:center;justify-content:space-between;font-size:18px;line-height:32px}.ibiz-bi-filter-item__header--icon{display:flex;align-items:center;font-size:20px}.ibiz-bi-filter-item__header--icon:hover{cursor:pointer}.ibiz-bi-filter-item__content>div{padding:var(--ibiz-spacing-tight) 0}.ibiz-bi-filter-item__content>div>div{width:100%}.ibiz-bi-filter-item__content--editor .ibiz-date-range-select__date-range{margin:0}.ibiz-bi-filter-item__content--editor .ibiz-date-range-select__date-range--label{display:none}.ibiz-bi-filter-item__content--editor .ibiz-date-range-select__date-range--editor{margin:0}.ibiz-bi-filter-item__footer{display:flex;justify-content:end}.ibiz-bi-time-select{width:100%;padding:var(--ibiz-spacing-base-loose) var(--ibiz-spacing-loose)}.ibiz-bi-time-select__header{display:flex;justify-content:space-between;width:100%}.ibiz-bi-time-select__header--close{cursor:pointer}.ibiz-bi-time-select__header--close:hover{color:var(--ibiz-color-primary)}.ibiz-bi-time-select__content{padding:var(--ibiz-spacing-loose) 0}.ibiz-bi-time-select__footer{display:flex;justify-content:end;margin-top:var(--ibiz-spacing-base-tight)}.ibiz-bi-time-select-date-range-select{padding:0!important}.ibiz-drag-element{height:auto}.ibiz-drag-element__content{padding:var(--ibiz-spacing-extra-tight);border-radius:var(--ibiz-border-radius-small)}.ibiz-drag-element__content.is-draging{border:1px dashed var(--ibiz-color-danger)}.ibiz-drag-element__content.is-draging.is-success{border-color:var(--ibiz-color-success)}.ibiz-drag-element__item{cursor:move}.ibiz-drag-element__error-tip{display:none;font-size:var(--ibiz-font-size-small);color:var(--ibiz-color-danger)}.ibiz-drag-element__error-tip.is-visible{display:block}.ibiz-drag-element__no-select{width:100%;height:36px;padding-left:var(--ibiz-spacing-base-tight);margin:var(--ibiz-spacing-extra-tight) 0;line-height:36px;color:var(--ibiz-color-disabled-text);background-color:var(--ibiz-color-disabled-bg);border:1px dashed var(--ibiz-color-border);border-radius:var(--ibiz-border-radius-small)}.ibiz-drag-element__no-select.is-empty_error{font-size:var(--ibiz-font-size-small);border:1px dashed var(--ibiz-color-danger)}.ibiz-drag-element__content{width:100%;height:1000%;overflow:auto}.ibiz-drag-element__content--item{display:flex;align-items:center;height:36px;padding:0 var(--ibiz-spacing-base-tight);margin:var(--ibiz-spacing-tight) 0;background-color:var(--ibiz-color-primary-light-default);border-radius:var(--ibiz-border-radius-small)}.ibiz-drag-element__content--item svg{margin-right:var(--ibiz-spacing-base);font-size:var(--ibiz-font-size-header-6);color:var(--ibiz-color-primary-hover);vertical-align:middle}.ibiz-drag-element__content--item .ibiz-drag-element__content--text{flex:1}.ibiz-drag-element__content--item:hover{cursor:unset;background-color:var(--ibiz-color-fill-0)}.ibiz-drag-element__content--item:hover .ibiz-drag-element__content--icon{visibility:visible}.ibiz-drag-element__content--icon{cursor:pointer;visibility:hidden}.ibiz-drag-element__empty{display:none;color:var(--ibiz-color-danger)}.ibiz-drag-element__empty.is-error{display:block}.ibiz-drag-element__actions-pop{padding-right:0!important;padding-left:0!important}.ibiz-drag-element__actions .ibiz-icon{margin-right:var(--ibiz-spacing-tight)}.ibiz-drag-element__actions--expand-item{display:flex;align-items:center;width:32px;color:var(--ibiz-color-primary-hover);cursor:pointer}.ibiz-drag-element__actions--expand-item svg{margin-right:var(--ibiz-spacing-tight)}.ibiz-drag-element__actions--group-item{display:flex;align-items:center;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-tight);cursor:pointer}.ibiz-drag-element__actions--group-item svg{margin-right:var(--ibiz-spacing-tight)}.ibiz-drag-element__actions--group-item:hover{background-color:var(--ibiz-color-fill-0)}.ibiz-drag-element__actions--group-item.is-delete:hover{color:var(--ibiz-color-danger);background-color:var(--ibiz-color-fill-0)}.ibiz-drag-element__actions--item-text{flex:1}.ibiz-drag-element__editor--icon{color:var(--ibiz-color-primary-hover)}.ibiz-drag-element__aggmode--text{opacity:.5}.ibiz-drag-element__cordon.el-dialog{max-height:660px;overflow:hidden}.ibiz-quick-edit .ibiz-date-range-select{padding:var(--ibiz-spacing-tight)}.ibiz-bi-aggmode-select__aggmode{display:flex;justify-content:space-between}.ibiz-bi-aggmode-select__aggmode--text{opacity:.5}.ibiz-bi-aggmode-select__aggmode--group-item{display:flex;align-items:center;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-tight);cursor:pointer}.ibiz-bi-aggmode-select__aggmode--group-item svg{margin-right:var(--ibiz-spacing-tight)}.ibiz-bi-aggmode-select__aggmode--group-item:hover{background-color:var(--ibiz-color-fill-0)}.ibiz-bi-aggmode-select__aggmode--group-item.is-delete:hover{color:var(--ibiz-color-danger);background-color:var(--ibiz-color-fill-0)}.ibiz-bi-aggmode-select__aggmode-container{padding-right:0!important;padding-left:0!important}.ibiz-bi-aggmode-select__aggmode-list--item{display:flex;align-items:center;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-loose);cursor:pointer}.ibiz-bi-aggmode-select__aggmode-list--item:hover{background-color:var(--ibiz-color-fill-0)}.ibiz-bi-aggmode-select__aggmode-list--item.is-selected{color:var(--ibiz-color-primary);background-color:var(--ibiz-color-primary-light-default)}.ibiz-bi-sort{padding:var(--ibiz-spacing-base) 0}.ibiz-bi-sort__item{display:flex;align-items:center;justify-content:space-between;height:32px;padding:0 var(--ibiz-spacing-loose) 0 var(--ibiz-spacing-base);cursor:pointer}.ibiz-bi-sort__item:hover{background-color:var(--ibiz-color-fill-0)}.ibiz-bi-sort__item:hover .ibiz-bi-sort__item--icon{display:block}.ibiz-bi-sort__item--label{font-size:var(--ibiz-font-size-regular)}.ibiz-bi-sort__item--icon{font-size:var(--ibiz-font-size-header-5)}.ibiz-bi-sort__item--icon svg g path{color:var(--ibiz-color-tertiary-light-active)}.ibiz-bi-sort__item--icon.is-no-sort{visibility:hidden}.ibiz-bi-sort__item--icon.is-asc{visibility:visible}.ibiz-bi-sort__item--icon.is-asc svg g path:first-child{color:var(--ibiz-color-primary-light-active)}.ibiz-bi-sort__item--icon.is-desc{visibility:visible}.ibiz-bi-sort__item--icon.is-desc svg g path:last-child{color:var(--ibiz-color-primary-light-active)}.ibiz-bi-axis{padding:var(--ibiz-spacing-base) 0}.ibiz-bi-axis__item{display:flex;align-items:center;justify-content:space-between;height:32px;padding:0 var(--ibiz-spacing-base)}.ibiz-bi-axis__item svg{color:var(--ibiz-color-primary-light-active)}.ibiz-bi-axis__item:hover{background-color:var(--ibiz-color-fill-1)}.ibiz-bi-chart-cordon{display:flex;flex-direction:column;max-height:560px;padding:24px;overflow:hidden}.ibiz-bi-chart-cordon__header{display:flex;flex:0;align-items:center;justify-content:space-between;font-size:16px}.ibiz-bi-chart-cordon__header--close{cursor:pointer}.ibiz-bi-chart-cordon__header--close:hover{color:var(--ibiz-color-primary)}.ibiz-bi-chart-cordon__content{flex:1;margin:var(--ibiz-spacing-tight) 0;overflow:auto}.ibiz-bi-chart-cordon__content--item{margin-top:var(--ibiz-spacing-base)}.ibiz-bi-chart-cordon__content--item-header{display:flex;align-items:center;justify-content:space-between;height:44px;padding:4px 12px 4px 20px;background-color:var(--ibiz-color-fill-0);border:1px solid var(--ibiz-color-border);border-bottom:none;border-top-left-radius:var(--ibiz-border-radius-small);border-top-right-radius:var(--ibiz-border-radius-small)}.ibiz-bi-chart-cordon__content--item-editor{display:flex;flex-direction:column;gap:12px;padding:var(--ibiz-spacing-base);border:1px solid var(--ibiz-color-border);border-bottom-right-radius:var(--ibiz-border-radius-small);border-bottom-left-radius:var(--ibiz-border-radius-small)}.ibiz-bi-chart-cordon__content--line-set{display:flex;gap:8px}.ibiz-bi-chart-cordon__content--line-set>.el-input{width:50%}.ibiz-bi-chart-cordon__content--line-set .ibiz-font-border-select{width:50%}.ibiz-bi-chart-cordon__content--line-set .ibiz-font-border-select__bottom-content{display:flex;gap:8px}.ibiz-bi-chart-cordon__content--line-set .ibiz-font-border-select__bottom-content .ibiz-font-border-select__input-number{flex:1}.ibiz-bi-chart-cordon__content--line-type>.el-select{display:inline-block;width:calc(50% - 4px)}.ibiz-bi-chart-cordon__content--line-type>.el-input{display:inline-block;width:calc(50% - 4px);height:32px;margin-left:8px}.ibiz-bi-chart-cordon__content--line-type>.el-input .el-input__wrapper{width:100%}.ibiz-bi-chart-cordon__content--add{display:flex;align-items:center;justify-content:center;height:32px;margin-top:16px;cursor:pointer;background-color:var(--ibiz-color-white);border:1px solid var(--ibiz-color-border);border-radius:var(--ibiz-border-radius-small)}.ibiz-bi-chart-cordon__content--add:hover{background-color:var(--ibiz-color-fill-0);border-color:var(--ibiz-color-primary)}.ibiz-bi-chart-cordon__content--add svg:hover{color:var(--ibiz-color-primary-light-active)}.ibiz-bi-chart-cordon__content--item-delete{width:32px;height:32px;padding:8px;cursor:pointer;border-radius:var(--ibiz-border-radius-small);opacity:.7}.ibiz-bi-chart-cordon__content--item-delete:hover{color:var(--ibiz-color-danger);background-color:var(--ibiz-color-danger-light-hover)}.ibiz-bi-chart-cordon__input-number-suffix{position:absolute;right:0;display:flex;flex-flow:column nowrap;place-content:center center;align-items:center;cursor:pointer;border-left:1px solid #eee;border-radius:0 4px 4px 0}.ibiz-bi-chart-cordon__input-number-suffix-add{width:21px;height:17px}.ibiz-bi-chart-cordon__input-number-suffix-add.readonly{cursor:not-allowed}.ibiz-bi-chart-cordon__input-number-suffix-add>svg{position:absolute;right:4px}.ibiz-bi-chart-cordon__input-number-suffix-minus{width:21px;height:17px;border-top:1px solid #eee;border-bottom-right-radius:4px}.ibiz-bi-chart-cordon__input-number-suffix-minus.readonly{cursor:not-allowed}.ibiz-bi-chart-cordon__input-number-suffix-minus>svg{position:absolute;right:4px}.ibiz-bi-chart-cordon__footer{display:flex;flex:0;justify-content:end;margin-top:var(--ibiz-spacing-base-tight)}.ibiz-chart-pql-editor-modal{display:flex;flex-direction:column;width:100%;height:100%}.ibiz-chart-pql-editor-modal-header{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;height:56px;padding:0 var(--ibiz-spacing-extra-loose)}.ibiz-chart-pql-editor-modal-content{flex:1 1 0;padding:0 var(--ibiz-spacing-extra-loose)}.ibiz-chart-pql-editor-modal-footer{display:flex;justify-content:flex-end;height:68px;padding:var(--ibiz-spacing-base) var(--ibiz-spacing-extra-loose)}.ibiz-chart-pql-editor-modal-item__icon{display:flex;flex:0 0 auto;align-items:center;justify-content:center;margin-right:var(--ibiz-spacing-tight);font-size:var(--ibiz-font-size-header-6);color:var(--ibiz-color-link-hover)}.ibiz-chart-pql-editor-modal-item__text{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-chart-pql-editor{height:200px;cursor:pointer}.ibiz-content-container{width:100%;height:100%;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-tight) 0 var(--ibiz-spacing-tight);border:none}.ibiz-content-container .ibiz-control-chart{height:100%}.ibiz-bi-report-grid .el-table .el-table__header .el-table__cell{font-style:var(--ibiz-control-grid-header-font-style);text-align:var(--ibiz-control-grid-header-align)}.ibiz-bi-report-grid .el-table .ibiz-grid-field-column__text{overflow:visible;font-size:var(--ibiz-control-grid-content-font-size);font-style:var(--ibiz-control-grid-content-font-style);font-weight:var(--ibiz-control-grid-content-font-weight);color:var(--ibiz-control-grid-content-text-color)}.ibiz-bi-report-grid .el-table .ibiz-grid-field-column__script{line-height:23px}.ibiz-bi-report-grid .el-table{--el-table-border-color: var(--ibiz-color-border);--ibiz-control-grid-row-hover-color: transparent;--el-table-current-row-bg-color: transparent;--ibiz-control-grid-row-bg-color-2: var(--ibiz-control-grid-row-bg-color)}.ibiz-bi-report-grid .el-table tr td{pointer-events:none}.ibiz-bi-report-grid .el-table .el-table__header-wrapper .el-table__header thead>tr th:nth-child(1){padding-left:0}.ibiz-bi-report-grid .el-table .el-table__body-wrapper .el-table__body tbody>tr td:nth-child(1){padding-left:0}.ibiz-bi-report-grid .el-table--border .el-table__cell{border-right:var(--el-table-border)}.ibiz-bi-report-grid .el-table td.el-table__cell,.ibiz-bi-report-grid .el-table th.el-table__cell.is-leaf{border-bottom:var(--el-table-border)}.ibiz-bi-report-grid.el-table--scroll-header .el-table__inner-wrapper{overflow:auto}.ibiz-bi-report-grid.el-table--scroll-header .el-table__header-wrapper{position:sticky;top:0}.ibiz-bi-report-grid.el-table--scroll-header .el-table__body-wrapper{flex:none;height:auto}.ibiz-bi-report-grid.el-table--scroll-header .el-scrollbar__bar{display:none}.ibiz-bi-report-grid.el-table--top-agg .el-table__header-wrapper{order:0}.ibiz-bi-report-grid.el-table--top-agg .el-table__footer-wrapper{order:1}.ibiz-bi-report-grid.el-table--top-agg .el-table__footer-wrapper .el-table__footer{height:var(--ibiz-control-grid-content-row-height)}.ibiz-bi-report-grid.el-table--top-agg .el-table__body-wrapper{order:2}.ibiz-bi-report-grid.el-table--is-drill tr td{pointer-events:none}.ibiz-bi-report-grid.el-table--is-drill .enable-pointer{pointer-events:unset}.ibiz-amount{width:100%;height:100%}.ibiz-amount__content{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.ibiz-amount__content--number-text{cursor:pointer}.ibiz-amount__content--yoy,.ibiz-amount__content--qoq{display:flex}.ibiz-amount__content--compare-number{display:flex;align-items:baseline;width:150px}.ibiz-amount__content--yoy-value{display:none;margin-left:10px}.ibiz-amount__content--yoy-value.is-show{display:block}.ibiz-amount__content--yoy-lastyearMonth{display:none;flex:1;margin-left:10px}.ibiz-amount__content--yoy-lastyearMonth.is-show{display:block}.ibiz-amount__content--qoq-lastMonth{display:none;flex:1;margin-left:10px}.ibiz-amount__content--qoq-lastMonth.is-show{display:block}.ibiz-amount__content--qoq-value{display:none;margin-left:10px}.ibiz-amount__content--qoq-value.is-show{display:block}.ibiz-amount__check-detail{padding-right:0!important;padding-left:0!important}.ibiz-amount__check-detail--item{display:flex;gap:4px;align-items:center;justify-content:start;height:36px;padding:0 var(--ibiz-spacing-base-loose);cursor:pointer}.ibiz-amount__check-detail--item:hover{background-color:var(--ibiz-color-bg-0)}.ibiz-amount__check-detail--item svg{font-size:var(--ibiz-font-size-header-6);color:var(--ibiz-color-text-3)}.ibiz-amount__check-detail--text{font-size:var(--ibiz-font-size-regular)}.ibiz-amount__down{display:flex;gap:10px;align-items:center;justify-content:center;margin-left:10px}.ibiz-amount__down svg{color:var(--ibiz-color-danger-active)}.ibiz-amount__up{display:flex;gap:10px;align-items:center;justify-content:center;margin-left:10px}.ibiz-amount__up svg{color:var(--ibiz-color-success-light-active)}.ibiz-bi-content-caption{display:flex;align-items:center;justify-content:space-between;height:46px;padding-right:20px;border-bottom:1px solid var(--ibiz-color-border)}.ibiz-bi-content-caption__caption{padding-left:var(--ibiz-spacing-base-loose)}.ibiz-bi-content-caption__caption:hover .ibiz-bi-content-caption__label{display:none}.ibiz-bi-content-caption__caption:hover .ibiz-bi-content-caption__input{display:block}.ibiz-bi-content-caption__caption.is-focus .ibiz-bi-content-caption__label{display:none}.ibiz-bi-content-caption__caption.is-focus .ibiz-bi-content-caption__input{display:block}.ibiz-bi-content-caption__label svg{margin-left:var(--ibiz-spacing-base-tight);vertical-align:middle}.ibiz-bi-content-caption__input{display:none;width:320px}.ibiz-bi-content-caption__input .el-input__wrapper{width:100%}.ibiz-bi-content-caption__data-total{font-size:var(--ibiz-font-size-regular);color:var(--ibiz-color-text-3)}.ibiz-bi-content-caption__size{margin:0 var(--ibiz-spacing-extra-tight);color:var(--ibiz-color-text-0)}.ibiz-design-header{display:flex;justify-content:space-between;width:100%}.ibiz-design-header__caption{display:flex;align-items:center}.ibiz-design-header__caption:after{position:relative;top:0;margin-right:4px;margin-left:4px;color:var(--ibiz-color-danger);content:"*"}.ibiz-design-header__actions{display:flex;gap:32px;align-items:center}.ibiz-design-header__actions--close{cursor:pointer}.ibiz-design-header__actions--close:hover{color:var(--ibiz-color-primary-light-active)}.ibiz-design-header__actions--save .el-dropdown .el-dropdown__caret-button.el-button:before{background-color:var(--ibiz-color-bg-0)}.ibiz-design-header-report-caption__name{display:inline-block;height:24px;padding:0 10px;margin:0 10px;line-height:24px;color:var(--ibiz-color-danger);vertical-align:bottom;background-color:#ffeaea;border-radius:var(--ibiz-border-radius-small)}.ibiz-design-header-report-caption__desc{margin-top:10px;color:var(--ibiz-color-text-3)}.ibiz-bi-report-drill-shell{display:flex;flex-direction:column;height:100%}.ibiz-bi-report-drill-shell-header{display:flex;flex:0 0 auto;align-items:center;height:56px;padding:0 var(--ibiz-spacing-extra-loose);font-size:var(--ibiz-font-size-header-5)}.ibiz-bi-report-drill-shell-content{display:flex;flex:1 1 0;align-items:center;overflow:hidden;border-top:1px solid var(--ibiz-color-border)}.ibiz-bi-report-drill-shell-content-left{flex:0 0 auto;width:260px;height:100%;padding:0 var(--ibiz-spacing-tight);overflow:hidden;border-right:1px solid var(--ibiz-color-border)}.ibiz-bi-report-drill-shell-content-left-list{height:calc(100% - 50px);padding:var(--ibiz-spacing-tight) 0;overflow:auto;border-bottom:1px solid var(--ibiz-color-border)}.ibiz-bi-report-drill-shell-content-left-active-items{display:flex;align-items:center;height:50px;padding:var(--ibiz-spacing-tight)}.ibiz-bi-report-drill-shell-content-left-active-items__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-bi-report-drill-shell-item{padding:var(--ibiz-spacing-tight);margin-bottom:var(--ibiz-spacing-tight);cursor:pointer;border-radius:var(--ibiz-border-radius-small)}.ibiz-bi-report-drill-shell-item:hover{background-color:var(--ibiz-color-fill-0)}.ibiz-bi-report-drill-shell-item.is-active{background-color:var(--ibiz-color-primary-light-default)}.ibiz-bi-report-drill-shell-item__name{margin-bottom:var(--ibiz-spacing-extra-tight);overflow:hidden;font-size:var(--ibiz-font-size-header-6);font-weight:var(--ibiz-font-weight-bold);text-overflow:ellipsis;white-space:nowrap}.ibiz-bi-report-drill-shell-item__value{overflow:hidden;font-weight:var(--ibiz-font-weight-light);text-overflow:ellipsis;white-space:nowrap}.ibiz-bi-report-drill-shell-content-right{flex:1 1 0;height:100%;overflow:auto}.ibiz-bi-report-panel{height:100%}.ibiz-bi-report-panel-content{height:100%;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base)}.ibiz-bi-report-panel-content>.el-collapse{border:none}.ibiz-bi-report-panel-content>.el-collapse>.el-collapse-item:last-of-type.is-active .el-collapse-item__wrap{border-bottom:none}.ibiz-bi-report-panel-content-filter{display:flex;flex:0 0 auto;align-items:center;min-width:0;padding:var(--ibiz-spacing-tight);margin:0 auto 0 calc(var(--ibiz-spacing-base) + var(--ibiz-spacing-super-tight));line-height:1;border-radius:var(--ibiz-border-radius-small)}.ibiz-bi-report-panel-content-filter:hover{color:var(--ibiz-color-primary);background:var(--ibiz-color-primary-light-default)}.ibiz-bi-report-panel-content-filter__icon{margin-right:var(--ibiz-spacing-tight);font-size:var(--ibiz-font-size-header-6);pointer-events:none;fill:currentcolor}.ibiz-bi-report-panel-content-filter__text{pointer-events:none}.ibiz-bi-report-panel-content-filter__badge{min-width:var(--ibiz-spacing-base);padding:0 var(--ibiz-spacing-extra-tight);margin-left:var(--ibiz-spacing-tight);color:var(--ibiz-color-primary);pointer-events:none;background:var(--ibiz-color-primary-light-default);border-radius:var(--ibiz-spacing-base)}.ibiz-bi-report-panel-content-filter.is-active{color:var(--ibiz-color-primary);background:var(--ibiz-color-primary-light-default)}.ibiz-bi-report-panel-content-item-header{display:flex;flex:1;align-items:center;justify-content:space-between;margin-right:var(--ibiz-spacing-base-loose);font-size:var(--ibiz-font-size-regular);color:var(--ibiz-color-text-1)}.ibiz-bi-report-panel-content-item-header+.el-collapse-item__arrow{font-size:var(--ibiz-font-size-header-6);color:var(--ibiz-color-text-3)}.ibiz-bi-report-panel-content-item-header+.el-collapse-item__arrow.is-active{transform:rotate(-90deg)}.ibiz-bi-report-panel-content-item-header .el-checkbox__label{color:var(--ibiz-color-text-3)}.ibiz-bi-report-panel-content-chart{height:400px}.ibiz-bi-report-panel-content-grid>.ibiz-content-container{min-height:72px}.ibiz-bi-filter-condition{height:100%;font-size:var(--ibiz-font-size-regular)}.ibiz-bi-filter-condition__filter-number{display:flex;align-items:center;height:40px;padding-left:var(--ibiz-spacing-base);background-color:var(--ibiz-color-fill-0)}.ibiz-bi-filter-condition--disabled .ibiz-bi-filter-condition-item .ibiz-bi-filter-condition-item__btn{cursor:not-allowed}.ibiz-bi-filter-condition--disabled .ibiz-bi-filter-condition-item .ibiz-bi-filter-condition-item__btn:hover{background-color:transparent}.ibiz-bi-filter-condition--disabled .ibiz-bi-filter-condition-item .ibiz-bi-filter-condition-item__btn:hover svg{fill:var(--ibiz-color-text-3)}.ibiz-bi-filter-condition--disabled .ibiz-bi-filter-condition-footer-btn{cursor:not-allowed}.ibiz-bi-filter-condition--disabled .ibiz-bi-filter-condition-footer-btn:hover .ibiz-bi-filter-condition-footer-btn__text{text-decoration:none}.ibiz-bi-filter-condition-content.is-border-mode{border:1px solid var(--ibiz-color-border);border-radius:var(--ibiz-border-radius-small)}.ibiz-bi-filter-condition-content.is-border-mode .ibiz-bi-filter-condition-item{padding:0 var(--ibiz-spacing-base);margin-top:var(--ibiz-spacing-base)}.ibiz-bi-filter-condition-item{display:flex;align-items:center;margin-bottom:var(--ibiz-spacing-base)}.ibiz-bi-filter-condition-item__connection{flex:0 0 10%}.ibiz-bi-filter-condition-item__connection--init{padding-left:calc(var(--ibiz-spacing-base-tight) - var(--ibiz-spacing-super-tight) / 2)}.ibiz-bi-filter-condition-item__field,.ibiz-bi-filter-condition-item__valueOP{flex:0 0 30%;margin-right:var(--ibiz-spacing-base-tight)}.ibiz-bi-filter-condition-item__editor{flex:1 1 0}.ibiz-bi-filter-condition-item__btn{display:flex;flex:0 0 auto;align-items:center;justify-content:center;padding:var(--ibiz-spacing-tight);cursor:pointer;border-radius:var(--ibiz-border-radius-small)}.ibiz-bi-filter-condition-item__btn svg{fill:var(--ibiz-color-text-3)}.ibiz-bi-filter-condition-item__btn:hover{background-color:var(--ibiz-color-danger-light-default)}.ibiz-bi-filter-condition-item__btn:hover svg{fill:var(--ibiz-color-danger-hover)}.ibiz-bi-filter-condition-item-content{display:flex;flex:1 1 0;align-items:center;min-width:0;margin:0 var(--ibiz-spacing-base-tight)}.ibiz-bi-filter-condition-footer{display:flex;align-items:center}.ibiz-bi-filter-condition-footer.is-border-mode{display:flex;align-items:center;justify-content:center;height:40px;margin-top:var(--ibiz-spacing-base);text-align:center;border:1px solid var(--ibiz-color-border);border-radius:var(--ibiz-border-radius-small)}.ibiz-bi-filter-condition-footer-btn{display:flex;align-items:center;color:var(--ibiz-color-primary);cursor:pointer}.ibiz-bi-filter-condition-footer-btn__icon{margin-right:var(--ibiz-spacing-extra-tight);fill:var(--ibiz-color-primary)}.ibiz-bi-filter-condition-footer-btn:hover .ibiz-bi-filter-condition-footer-btn__text{text-decoration:underline}.ibiz-bi-filter{min-height:150px}.ibiz-bi-filter__pql-editor{min-height:200px}.ibiz-bi-filter-header{display:flex;align-items:center;height:56px;padding:0 var(--ibiz-spacing-extra-loose)}.ibiz-bi-filter-header-tab{margin-right:var(--ibiz-spacing-base-tight);margin-left:auto}.ibiz-bi-filter-header-tab .el-tabs{--el-tabs-header-height: var(--ibiz-height-control-default);display:flex;align-items:center}.ibiz-bi-filter-header-tab .el-tabs__nav{position:relative;display:flex;align-items:center;justify-content:center;width:100%;background-color:var(--ibiz-color-fill-0);border:none!important}.ibiz-bi-filter-header-tab .el-tabs__nav:after{position:absolute;left:var(--ibiz-spacing-super-tight);z-index:-1;width:calc(50% - var(--ibiz-spacing-extra-tight));height:calc(100% - var(--ibiz-spacing-extra-tight));content:"";background-color:var(--ibiz-color-bg-1);border-radius:var(--ibiz-border-radius-small);transition:all .5s ease}.ibiz-bi-filter-header-tab .el-tabs__header{margin:0}.ibiz-bi-filter-header-tab .el-tabs--card>.el-tabs__header,.ibiz-bi-filter-header-tab .el-tabs--card>.el-tabs__header .el-tabs__item{border:none}.ibiz-bi-filter-header-tab .el-tabs--card>.el-tabs__header .el-tabs__item{font-size:var(--ibiz-font-size-small);color:var(--ibiz-color-text-1)}.ibiz-bi-filter-header-tab--pql .el-tabs__nav:after{right:var(--ibiz-spacing-super-tight);left:calc(50% + var(--ibiz-spacing-super-tight))}.ibiz-bi-filter-header-btn{display:flex;align-items:center;padding:var(--ibiz-spacing-tight);margin-right:calc(0 - var(--ibiz-spacing-tight));cursor:pointer;border-radius:var(--ibiz-border-radius-small)}.ibiz-bi-filter-header-btn>svg{fill:currentcolor}.ibiz-bi-filter-header-btn:hover{color:var(--ibiz-color-primary);background-color:var(--ibiz-color-primary-light-default)}.ibiz-bi-filter-content{padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-extra-loose) 0}.ibiz-bi-filter-footer{display:flex;align-items:center;padding:var(--ibiz-spacing-base) var(--ibiz-spacing-extra-loose)}.ibiz-bi-filter-footer__reset-btn{display:flex;align-items:center;color:var(--ibiz-color-primary);cursor:pointer}.ibiz-bi-filter-footer__reset-btn:hover{text-decoration:underline}.ibiz-bi-filter-footer__cancel-btn{margin-left:auto}.ibiz-bi-filter-footer__confirm-btn{margin-left:var(--ibiz-spacing-tight)}.ibiz-bi-filter-item__icon{display:flex;flex:0 0 auto;align-items:center;justify-content:center;margin-right:var(--ibiz-spacing-tight);font-size:var(--ibiz-font-size-header-6);color:var(--ibiz-color-link-hover)}.ibiz-bi-filter-item__text{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/bi-report/0.0.26/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/bi-report/0.0.26/index.system.min.js new file mode 100644 index 0000000000000000000000000000000000000000..e26dcb667dfc691020c5274575c3e094e06b6895 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/bi-report/0.0.26/index.system.min.js @@ -0,0 +1 @@ +!function(){function e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,i,r,o,s=[],l=!0,c=!1;try{if(r=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(n=r.call(a)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(e,t)||p(e,t)||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 t(e,a,n){return t=s()?Reflect.construct.bind():function(e,t,a){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return a&&i(r,a.prototype),r},t.apply(null,arguments)}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,a){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:a):i.value}},a.apply(this,arguments)}function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function r(e){var t=s();return function(){var a,n=l(e);if(t){var i=l(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)}(this,a)}}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(){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(e){return!1}}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=p(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==a.return||a.return()}finally{if(s)throw r}}}}function d(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||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 p(e,t){if(e){if("string"==typeof e)return u(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--a){var i=this.tryEntries[a];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),L(a),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var n=a.completion;if("throw"===n.type){var i=n.arg;L(a)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,a,n){return this.delegate={iterator:k(t),resultName:a,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function g(e,t,a,n,i,r,o){try{var s=e[r](o),l=s.value}catch(c){return void a(c)}s.done?t(l):Promise.resolve(l).then(n,i)}function b(e){return function(){var t=this,a=arguments;return new Promise((function(n,i){var r=e.apply(t,a);function o(e){g(r,n,i,o,s,"next",e)}function s(e){g(r,n,i,o,s,"throw",e)}o(void 0)}))}}function w(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function I(e){for(var t=1;t=0?"measure"===e.type?[u,a]:[s,a]:null:"measure"===e.type?[u,a]:[s,a]};return{ns:n,renderItem:function(e){return u(e)},switchCollapse:function(){a("collapse",!e.collapse)},onAdd:function(){a("add")},computeNumber:function(){return e.isSearch?e.items.filter((function(t){return(t.pssysbicubemeasurename||t.pssysbicubedimensionname).indexOf(e.searchValue)>-1})).length:e.items.length}}},render:function(){var e=this;return T("div",{class:this.ns.b()},[T("div",{class:[this.ns.e("header"),this.ns.is("collapse",this.collapse)]},[T("div",{class:this.ns.em("header","caption")},[T("span",null,[this.caption]),T("span",null,[A("·")]),T("span",null,[this.computeNumber()])]),T("div",{class:this.ns.em("header","icons")},[T("div",{class:this.ns.em("header","icons-add"),onClick:this.onAdd},[T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false"},[T("g",{id:"ars1.Base基础/1.icon图标/1.-action/plus","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M8.578 7.383V1.602a.601.601 0 1 0-1.2 0v5.781H1.6a.601.601 0 0 0 0 1.203h5.777v5.812a.601.601 0 1 0 1.2 0V8.586H14.4a.601.601 0 0 0 0-1.203H8.578z",id:"arsFill-1"},null)])])]),T("div",{class:this.ns.em("header","icons-collapse"),onClick:this.switchCollapse},[this.collapse?T("i",{class:"fa fa-angle-right","aria-hidden":"true"},null):T("i",{class:"fa fa-angle-up","aria-hidden":"true"},null)])])]),!this.collapse&&T("div",{class:this.ns.e("content")},[this.items.map((function(t){return e.renderItem(t)}))])])}});var de=g({name:"BIReportSelect",components:{"bi-split":le,"bi-select-group":ce},props:{controller:{type:Object,required:!0}},setup:function(e){var t=s("select"),a=e.controller,n=x({searchState:!1,searchValue:"",popoverVisible:!1,splitValue:.5,measureCollapse:!1,dimensionCollapse:!1}),i=x(),r=function(){n.value.searchState=!n.value.searchState,n.value.searchState?D((function(){i.value.focus()})):n.value.searchValue=""},o=function(){return T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"aubnormal/search","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M6.751 12.303A5.557 5.557 0 0 1 1.2 6.751C1.2 3.691 3.69 1.2 6.751 1.2a5.558 5.558 0 0 1 5.551 5.551 5.557 5.557 0 0 1-5.551 5.552M6.751 0a6.751 6.751 0 1 0 4.309 11.949l3.855 3.855a.6.6 0 1 0 .849-.849l-3.854-3.853A6.751 6.751 0 0 0 6.751 0",id:"aubFill-1"},null)])])},l=function(){return T("div",{class:t.em("header","switch-data")},[T(O("el-tooltip"),{effect:"dark",content:"切换数据集",placement:"top"},{default:function(){return T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"adqnormal/arrow-right-left","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M4.473 1.027a.6.6 0 0 1 .778.573v12.99a.6.6 0 0 1-1.2 0V3.707L2.617 6.182a.6.6 0 1 1-1.04-.6l2.47-4.262a.599.599 0 0 1 .426-.293zm7.156 14.051a.6.6 0 0 1-.778-.573V1.7a.6.6 0 1 1 1.2 0v10.723l1.523-2.594a.6.6 0 1 1 1.04.6l-2.558 4.357a.599.599 0 0 1-.427.292z",id:"adq形状结合",transform:"rotate(90 8.095 8.095)"},null)])])}})])},c=function(){var e=b(y().mark((function e(t){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a.switchCube(t.pssysbicubeid);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),d=function(e){a.state.selectedScheme=e,a.state.cube=[],a.switchScheme(e.id)},p=function(e){"Escape"===e.code&&(e.stopPropagation(),r())},u=w((function(){return a.state.scheme&&a.state.scheme.length>0})),h=function(){var e,i,s;return T("div",{class:t.e("header")},[T("div",{class:t.em("header","caption")},[null===(e=a.state.selectedScheme)||void 0===e?void 0:e.name]),T("div",{class:t.em("header","select-icon")},[T("div",{class:t.em("header","search"),onClick:r},[T(O("el-tooltip"),{effect:"dark",content:"搜索",placement:"top"},(s=i=o(),"function"==typeof s||"[object Object]"===Object.prototype.toString.call(s)&&!M(s)?i:{default:function(){return[i]}}))]),T("div",{class:t.em("header","select")},[u.value?T(O("el-popover"),{visible:n.value.popoverVisible,"onUpdate:visible":function(e){return n.value.popoverVisible=e},trigger:"click",width:"200px","popper-class":t.em("header","cascader-list")},{reference:function(){return l()},default:function(){var e;return function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(e){return a.state.cube&&a.state.cube.length>0&&a.state.selectedScheme.id===e.id?n.value.popoverVisible&&T(O("el-popover"),{placement:"right-start",width:"200px",trigger:"hover",offset:0,"popper-class":t.em("header","cascader-list")},{reference:function(){return T("div",{class:t.e("select-item"),onClick:function(){return d(e)}},[T("div",{class:t.em("select-item","label")},[e.name]),T("div",{class:t.em("select-item","icon")},[T("i",{class:"fa fa-angle-right","aria-hidden":"true"},null)])])},default:function(){return a.state.cube.map((function(e){return T("div",{class:[t.e("select-item"),t.is("selected",a.state.selectCube.pssysbicubeid===e.pssysbicubeid)],onClick:function(){return c(e)}},[e.pssysbicubename])}))}}):T("div",{class:t.e("select-item"),onClick:function(){return d(e)}},[T("div",{class:t.em("select-item","label")},[e.name]),T("div",{class:t.em("select-item","icon")},[T("i",{class:"fa fa-angle-right","aria-hidden":"true"},null)])])}))}(null===(e=a.state)||void 0===e?void 0:e.scheme)}}):l()])])])},f=function(){var e=b(y().mark((function e(t){var n,i,r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="ps_sys_bi_cube_".concat(t.toLowerCase(),"_quick_create_").concat(t.toLowerCase()),e.next=3,ibiz.hub.config.view.get(n);case 3:return i=e.sent,e.next=6,ibiz.openView.modal(i.id,a.context,a.viewParams);case 6:(r=e.sent)&&r.ok&&a.refreshCubeDetails(t);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),m=w((function(){return n.value.measureCollapse||n.value.dimensionCollapse})),v=function(e,i,r,o){return T(O("bi-select-group"),{class:[C({},t.em("content","index"),i),t.is("collapse",i)],caption:e,searchValue:n.value.searchValue,isSearch:n.value.searchState,collapse:i,type:o,items:r,controller:a,onAdd:function(){f(o)},onCollapse:function(e){return function(e,t){"measure"===e?n.value.measureCollapse=t:n.value.dimensionCollapse=t}(o,e)}},null)};return{ns:t,searchInput:i,renderSelectHeader:function(){return n.value.searchState?T("div",{class:t.e("header")},[T(O("el-input"),{ref:"searchInput",class:t.em("header","search-input"),modelValue:n.value.searchValue,"onUpdate:modelValue":function(e){return n.value.searchValue=e},onKeydown:p,placeholder:"搜索"},{prefix:function(){return o()}}),T("div",{class:t.em("header","close"),onClick:r},[T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"agqaction/close","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M7.456 7.456V-.115h1.2v7.571h7.572v1.2H8.656v7.572h-1.2V8.656H-.115v-1.2h7.571z",id:"agq形状结合",transform:"rotate(45 8.056 8.056)"},null)])])])]):h()},renderSelectContent:function(){var e,i;return m.value?T("div",{class:[t.e("content"),t.is("collapse",m.value)]},[[v("指标",n.value.measureCollapse,(null===(e=a.state)||void 0===e?void 0:e.measure)||[],"measure"),v("维度",n.value.dimensionCollapse,(null===(i=a.state)||void 0===i?void 0:i.dimension)||[],"dimension")]]):T("div",{class:t.e("content")},[T(O("bi-split"),{modelValue:n.value.splitValue,"onUpdate:modelValue":function(e){return n.value.splitValue=e},mode:"vertical",min:"48px",max:"48px"},{top:function(){var e;return v("指标",n.value.measureCollapse,(null===(e=a.state)||void 0===e?void 0:e.measure)||[],"measure")},bottom:function(){var e;return v("维度",n.value.dimensionCollapse,(null===(e=a.state)||void 0===e?void 0:e.dimension)||[],"dimension")}})])}}},render:function(){return T("div",{class:this.ns.b("container")},[this.renderSelectHeader(),this.renderSelectContent()])}}),pe={data:{details:[{id:"measure",caption:"指标",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"measure",caption:"指标",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!1,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"REMOVE",caption:"删除"}]}]},{id:"period",caption:"同环比",type:"GROUP",isCollapse:!1,details:[{id:"period",caption:"时间维度",subCaption:"同环比",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!1,disableCalcField:!1,typeLimit:{tag:"IN",types:["DATE"]},actions:[{id:"CONFIG",caption:"配置"},{id:"UPDATE",caption:"设置显示名"},{id:"REMOVE",caption:"删除"}]}]},{id:"filter",caption:"筛选",type:"GROUP",isCollapse:!1,enableRemove:!0,switchEditMode:!0,details:[{id:"filter",caption:"筛选项",subCaption:"筛选",showCaption:!1,type:"ITEM",editorType:"DRAG",disableCalcField:!0,multiple:!0,actions:[{id:"FILTER",caption:"过滤"},{id:"REMOVE",caption:"删除"}],expandActions:[{id:"FILTER",caption:"过滤"}]}]}]},style:{details:[{id:"font",caption:"字体设置",type:"GROUP",details:[{id:"font",caption:"文字",type:"ITEM",editorType:"FONT",mode:"FONT",fontMax:300}]},{id:"yoy",caption:"同比",type:"GROUP",enableSwitch:!0,details:[{id:"yoy",caption:"同比",showCaption:!1,type:"ITEM",editorType:"CHECKBOXS",items:[{id:"orgin",label:"显示原始值"},{id:"difference",label:"显示差异值"}]}]},{id:"qoq",caption:"环比",type:"GROUP",enableSwitch:!0,details:[{id:"qoq",caption:"环比",showCaption:!1,type:"ITEM",editorType:"CHECKBOXS",items:[{id:"orgin",label:"显示原始值"},{id:"difference",label:"显示差异值"}]}]}]}},ue={caption:"",data:{measure:void 0,period:void 0,filter:void 0},style:{font:{show:!0,font:{fontWeight:"normal",fontStyle:"normal",fontSize:100,color:"#000"}},yoy:{show:!1,yoy:["orgin","difference"]},qoq:{show:!1,qoq:["orgin","difference"]}},extend:{}},he={data:{pagination:!0,details:[{id:"measure",caption:"指标",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"measure",caption:"指标",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!1,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"REMOVE",caption:"删除"}]}]},{id:"filter",caption:"筛选",type:"GROUP",isCollapse:!1,enableRemove:!0,switchEditMode:!0,details:[{id:"filter",caption:"筛选项",subCaption:"筛选",disableCalcField:!0,showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,actions:[{id:"FILTER",caption:"过滤"},{id:"REMOVE",caption:"删除"}],expandActions:[{id:"FILTER",caption:"过滤"}]}]}]},style:{details:[{id:"graphics",caption:"绘图",type:"GROUP",details:[{id:"color",caption:"当前配色",showCaption:!0,type:"ITEM",editorType:"COLOR",editorStyle:"ITEM"}]},{id:"fontSetting",caption:"字体设置",type:"GROUP",show:!0,details:[{id:"font",caption:"文字",type:"ITEM",editorType:"FONT",mode:"FONT"}]},{id:"featureSetting",caption:"功能设置",type:"GROUP",details:[{id:"endpoint",caption:"设置终点值:",showCaption:!0,type:"ITEM",editorType:"ENDPOINT"}]}]}},fe={dechartLegend:{showLegend:!1,id:"legend",appId:"srfAppId"},dechartTitle:{showTitle:!1,id:"title",appId:"srfAppId"},dechartSerieses:[{caption:"srfCaption",catalogField:"srfCatalogField",seriesType:"pie",valueField:"srfValue",id:"gauge",appId:"srfAppId"}],fetchControlAction:{appDEMethodId:"srfAppDEDataSetId",appDataEntityId:"srfAppDataEntityId",id:"fetch",appId:"srfAppId"},appDataEntityId:"srfAppDataEntityId",id:"srfAppId.srfAppDataEntityId.chart",appId:"srfAppId",name:"chart",readOnly:!0,autoLoad:!0,showBusyIndicator:!0,codeName:"chart",controlType:"CHART",logicName:"srfCaption"},me={caption:"",data:{measure:void 0,filter:void 0},style:{graphics:{colorScheme:"default",color:"#6698FF"},fontSetting:{show:!0,font:{fontWeight:"normal",fontStyle:"normal",fontSize:20,color:"#000"}},featureSetting:{endpoint:100}},extend:{}},ve={data:{pagination:!0,details:[{id:"measure",caption:"指标 / 纵轴",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"measure",caption:"指标",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:3,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"AXIS",caption:"应用轴"},{id:"CORDON",caption:"设置警戒线"},{id:"REMOVE",caption:"删除"}]}]},{id:"dimension",caption:"维度 / 横轴",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,showEmptyData:!1,details:[{id:"dimension",caption:"维度",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:3,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"SORT",caption:"排序"},{id:"REMOVE",caption:"删除"}]}]},{id:"group",caption:"分组",type:"GROUP",isCollapse:!1,details:[{id:"group",caption:"维度",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!1,typeLimit:{tag:"NOTIN",types:["DATE"]},actions:[{id:"REMOVE",caption:"删除"}]}]},{id:"filter",caption:"筛选",type:"GROUP",isCollapse:!1,enableRemove:!0,switchEditMode:!0,details:[{id:"filter",caption:"筛选项",subCaption:"筛选",disableCalcField:!0,showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,actions:[{id:"FILTER",caption:"过滤"},{id:"REMOVE",caption:"删除"}],expandActions:[{id:"FILTER",caption:"过滤"}]}]}]},style:{details:[{id:"graphics",caption:"绘图",type:"GROUP",isCollapse:!1,details:[{id:"color",caption:"当前配色",showCaption:!0,type:"ITEM",editorType:"COLOR",editorStyle:"ITEMS"}]},{id:"xAxis",caption:"横轴",type:"GROUP",enableSwitch:!1,details:[{id:"showTitle",caption:"显示轴标题",type:"ITEM",editorType:"CHECKBOX"},{id:"titleFont",caption:"轴标题",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showLabel",caption:"显示轴标签",type:"ITEM",editorType:"CHECKBOX"},{id:"labelFont",caption:"轴标签",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showAxisline",caption:"显示轴线",type:"ITEM",editorType:"CHECKBOX"},{id:"axisline",caption:"显示轴线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"showGridline",caption:"显示网格线",type:"ITEM",editorType:"CHECKBOX"},{id:"gridline",caption:"显示网格线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"enableLabelInterval",caption:"开启轴标签间隔",type:"ITEM",editorType:"CHECKBOX"},{id:"labelInterval",caption:"标签间隔",showCaption:!0,type:"ITEM",editorType:"NUMBER"}]},{id:"yAxis",caption:"纵轴",type:"GROUP",enableSwitch:!1,details:[{id:"showTitle",caption:"显示轴标题",type:"ITEM",editorType:"CHECKBOX"},{id:"titleFont",caption:"显示轴标题",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showLabel",caption:"显示轴标签",type:"ITEM",editorType:"CHECKBOX"},{id:"labelFont",caption:"显示轴标签",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showAxisline",caption:"显示轴线",type:"ITEM",editorType:"CHECKBOX"},{id:"axisline",caption:"显示轴线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"showGridline",caption:"显示网格线",type:"ITEM",editorType:"CHECKBOX"},{id:"gridline",caption:"显示网格线",type:"ITEM",editorType:"FONT",mode:"BORDER"}]},{id:"label",caption:"标签",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"position",caption:"显示数据",showCaption:!0,type:"ITEM",editorType:"RADIO",items:[{id:"top",label:"置顶"},{id:"inside",label:"居中"}]},{id:"scope",caption:"显示数据",showCaption:!0,type:"ITEM",editorType:"RADIO",items:[{id:"all",label:"全部数据"},{id:"max_min",label:"最大值/最小值"}]}]},{id:"legend",caption:"图例",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",showCaption:!0,type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"position",caption:"数据位置",showCaption:!0,type:"ITEM",editorType:"POSITION",editorStyle:"DIRECTION"}]}]}},ye={dechartLegend:{showLegend:!1,id:"legend",appId:"srfAppId"},dechartTitle:{showTitle:!1,id:"title",appId:"srfAppId"},dechartSerieses:[{catalogField:"srfCatalogField",seriesType:"bar",valueField:"is_leaf",id:"bar_1",appId:"srfAppId",chartSeriesEncode:{chartXAxisId:"0",chartYAxisId:"0",id:"0",appId:"srfAppId"}}],chartXAxises:[{echartsPos:"xAxis",echartsType:"category",position:"bottom",type:"category",name:"axis_xAxis_0",id:"0",appId:"srfAppId"}],chartYAxises:[{echartsPos:"yAxis",echartsType:"value",position:"left",type:"numeric",name:"axis_yAxis_0",id:"0",appId:"srfAppId"}],appDataEntityId:"srfAppDataEntityId",id:"srfAppId.srfAppDataEntityId.chart",appId:"srfAppId",name:"chart",readOnly:!0,autoLoad:!0,showBusyIndicator:!0,codeName:"ChartView_Chart",controlType:"CHART",logicName:"Chart"},ge={caption:"",data:{measure:void 0,dimension:void 0,group:void 0,filter:void 0},style:{graphics:{colorScheme:"default",color:[]},xAxis:{show:!0,showTitle:!0,titleFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#666"},showLabel:!0,labelFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#666"},showAxisline:!0,axisline:{borderStyle:"solid",borderSize:1,color:"#eee"},showGridline:!1,gridline:{borderStyle:"dashed",borderSize:1,color:"#eee"},enableLabelInterval:!1,labelInterval:1},yAxis:{show:!0,showTitle:!0,titleFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#666"},showLabel:!0,labelFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#666"},showAxisline:!0,axisline:{borderStyle:"solid",borderSize:1,color:"#eee"},showGridline:!1,gridline:{borderStyle:"dashed",borderSize:1,color:"#eee"}},label:{show:!1,font:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#666"},position:"top",scope:"all"},legend:{show:!0,font:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},position:"right-top"}},extend:{}},be={coordinateSystem:"XY",chartCoordinateSystems:[{chartGrid:{chartGridXAxis0Id:"0",chartGridYAxis0Id:"0",chartCoordinateSystemId:"0",type:"grid",name:"[bar_1]直角坐标系[0]",id:"0",appId:"srfAppId"},echartsType:"cartesian2d",type:"XY",name:"[bar_1]直角坐标系[0]",id:"0",appId:"srfAppId"}],dechartDataGrid:{showDataGrid:!1,id:"0",appId:"srfAppId"},dechartLegend:{showLegend:!0,id:"0",appId:"srfAppId"},dechartSerieses:[{caption:"srfCaption",catalogField:"srfCatalogField",echartsType:"bar",chartCoordinateSystemId:"0",chartDataSetId:"0",chartSeriesEncode:{chartXAxisId:"0",chartYAxisId:"0",x:["srfCatalogField"],y:["srfValue"],type:"XY",name:"坐标系编码",id:"0",appId:"srfAppId"},seriesLayoutBy:"column",seriesType:"bar",valueField:"srfValue",enableChartDataSet:!0,id:"bar_1",appId:"srfAppId"}],dechartTitle:{title:"柱状图",id:"0",appId:"srfAppId"},chartDataSetGroups:[{appDEDataSetId:"srfAppDEDataSetId",appDataEntityId:"srfAppDataEntityId",name:"DEFAULT",id:"0",appId:"srfAppId"}],chartDataSets:[],chartGrids:[{chartGridXAxis0Id:"0",chartGridYAxis0Id:"0",chartCoordinateSystemId:"0",type:"grid",name:"[bar_1]直角坐标系[0]",id:"0",appId:"srfAppId"}],chartXAxises:[{echartsPos:"xAxis",echartsType:"category",position:"bottom",type:"category",name:"axis_xAxis_0",id:"0",appId:"srfAppId"}],chartYAxises:[{echartsPos:"yAxis",echartsType:"value",position:"left",type:"numeric",name:"axis_yAxis_0",id:"0",appId:"srfAppId"}],fetchControlAction:{appDEMethodId:"fetchdefault",appDataEntityId:"srfAppDataEntityId",id:"fetch",appId:"srfAppId"},readOnly:!0,autoLoad:!0,showBusyIndicator:!0,codeName:"STACKCOL_Chart",controlType:"CHART",logicName:"srfCaption",appDataEntityId:"srfAppDataEntityId",controlParam:{id:"chart",appId:"srfAppId"},modelId:"A1BCD468-3027-4DAF-A36E-F8900BF586DA",modelType:"PSDECHART",name:"chart",id:"srfAppId.srfAppDataEntityId.STACKCOL_Chart",appId:"srfAppId"},we={data:{details:[{id:"measure",caption:"指标/纵轴",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"measure",caption:"指标/纵轴",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:3,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"AXIS",caption:"应用轴"},{id:"CORDON",caption:"设置警戒线"},{id:"REMOVE",caption:"删除"}]}]},{id:"dimension",caption:"维度/横轴",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"dimension",caption:"维度/横轴",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:3,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"SORT",caption:"排序"},{id:"REMOVE",caption:"删除"}]}]},{id:"group",caption:"分组",type:"GROUP",isCollapse:!1,details:[{id:"group",caption:"分组",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!1,typeLimit:{tag:"NOTIN",types:["DATE"]},actions:[{id:"UPDATE",caption:"设置显示名"},{id:"REMOVE",caption:"删除"}]}]},{id:"filter",caption:"筛选",type:"GROUP",isCollapse:!1,enableRemove:!0,switchEditMode:!0,details:[{id:"filter",caption:"筛选项",subCaption:"筛选",disableCalcField:!0,showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,actions:[{id:"FILTER",caption:"过滤"},{id:"REMOVE",caption:"删除"}],expandActions:[{id:"FILTER",caption:"过滤"}]}]}]},style:{details:[{id:"graphics",caption:"绘图",type:"GROUP",isCollapse:!1,details:[{id:"color",caption:"当前配色",showCaption:!0,type:"ITEM",editorType:"COLOR",editorStyle:"ITEMS"}]},{id:"xAxis",caption:"横轴",type:"GROUP",enableSwitch:!1,details:[{id:"showTitle",caption:"显示轴标题",type:"ITEM",editorType:"CHECKBOX"},{id:"titleFont",caption:"轴标题",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showLabel",caption:"显示轴标签",type:"ITEM",editorType:"CHECKBOX"},{id:"labelFont",caption:"轴标签",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showAxisline",caption:"显示轴线",type:"ITEM",editorType:"CHECKBOX"},{id:"axisline",caption:"显示轴线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"showGridline",caption:"显示网格线",type:"ITEM",editorType:"CHECKBOX"},{id:"gridline",caption:"显示网格线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"enableLabelInterval",caption:"开启轴标签间隔",type:"ITEM",editorType:"CHECKBOX"},{id:"labelInterval",caption:"标签间隔",showCaption:!0,type:"ITEM",editorType:"NUMBER"}]},{id:"yAxis",caption:"纵轴",type:"GROUP",enableSwitch:!1,details:[{id:"showTitle",caption:"显示轴标题",type:"ITEM",editorType:"CHECKBOX"},{id:"titleFont",caption:"显示轴标题",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showLabel",caption:"显示轴标签",type:"ITEM",editorType:"CHECKBOX"},{id:"labelFont",caption:"显示轴标签",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showAxisline",caption:"显示轴线",type:"ITEM",editorType:"CHECKBOX"},{id:"axisline",caption:"显示轴线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"showGridline",caption:"显示网格线",type:"ITEM",editorType:"CHECKBOX"},{id:"gridline",caption:"显示网格线",type:"ITEM",editorType:"FONT",mode:"BORDER"}]},{id:"label",caption:"标签",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"position",caption:"标签位置",type:"ITEM",editorType:"RADIO",items:[{id:"top",label:"置顶"},{id:"inside",label:"居中"}]},{id:"scope",caption:"显示数据",showCaption:!0,type:"ITEM",editorType:"RADIO",items:[{id:"all",label:"全部数据"},{id:"max_min",label:"最大值/最小值"}]}]},{id:"legend",caption:"图例",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",showCaption:!0,type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"position",caption:"数据位置",showCaption:!0,type:"ITEM",editorType:"POSITION",editorStyle:"DIRECTION"}]}]}},Ie={caption:"",data:{measure:void 0,dimension:void 0,group:void 0,filter:void 0},style:{graphics:{colorScheme:"default",color:[]},xAxis:{show:!0,showTitle:!0,titleFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showLabel:!0,labelFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showAxisline:!0,axisline:{borderStyle:"solid",borderSize:1,color:"#000"},showGridline:!1,gridline:{borderStyle:"solid",borderSize:1,color:"#000"},enableLabelInterval:!1,labelInterval:1},yAxis:{show:!0,showTitle:!0,titleFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showLabel:!0,labelFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showAxisline:!0,axisline:{borderStyle:"dashed",borderSize:1,color:"#dddddd"},showGridline:!0,gridline:{borderStyle:"dashed",borderSize:1,color:"#dddddd"}},label:{show:!1,font:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},position:"top",scope:"all"},legend:{show:!0,font:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},position:"right-top"}},extend:{}},Ce={data:{details:[{id:"measure",caption:"指标/纵轴",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"measure",caption:"指标/纵轴",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:3,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"CORDON",caption:"设置警戒线"},{id:"REMOVE",caption:"删除"}]}]},{id:"dimension",caption:"维度/横轴",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"dimension",caption:"维度/横轴",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:3,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"SORT",caption:"排序"},{id:"REMOVE",caption:"删除"}]}]},{id:"group",caption:"分组",type:"GROUP",isCollapse:!1,details:[{id:"group",caption:"分组",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!1,typeLimit:{tag:"NOTIN",types:["DATE"]},actions:[{id:"UPDATE",caption:"设置显示名"},{id:"REMOVE",caption:"删除"}]}]},{id:"filter",caption:"筛选",type:"GROUP",isCollapse:!1,enableRemove:!0,switchEditMode:!0,details:[{id:"filter",caption:"筛选项",subCaption:"筛选",disableCalcField:!0,showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,actions:[{id:"FILTER",caption:"过滤"},{id:"REMOVE",caption:"删除"}],expandActions:[{id:"FILTER",caption:"过滤"}]}]}]},style:{details:[{id:"graphics",caption:"绘图",type:"GROUP",isCollapse:!1,details:[{id:"color",caption:"当前配色",showCaption:!0,type:"ITEM",editorType:"COLOR",editorStyle:"ITEMS"}]},{id:"xAxis",caption:"横轴",type:"GROUP",enableSwitch:!1,details:[{id:"showTitle",caption:"显示轴标题",type:"ITEM",editorType:"CHECKBOX"},{id:"titleFont",caption:"轴标题",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showLabel",caption:"显示轴标签",type:"ITEM",editorType:"CHECKBOX"},{id:"labelFont",caption:"轴标签",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showAxisline",caption:"显示轴线",type:"ITEM",editorType:"CHECKBOX"},{id:"axisline",caption:"显示轴线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"showGridline",caption:"显示网格线",type:"ITEM",editorType:"CHECKBOX"},{id:"gridline",caption:"显示网格线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"enableLabelInterval",caption:"开启轴标签间隔",type:"ITEM",editorType:"CHECKBOX"},{id:"labelInterval",caption:"标签间隔",showCaption:!0,type:"ITEM",editorType:"NUMBER"}]},{id:"yAxis",caption:"纵轴",type:"GROUP",enableSwitch:!1,details:[{id:"showTitle",caption:"显示轴标题",type:"ITEM",editorType:"CHECKBOX"},{id:"titleFont",caption:"显示轴标题",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showLabel",caption:"显示轴标签",type:"ITEM",editorType:"CHECKBOX"},{id:"labelFont",caption:"显示轴标签",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showAxisline",caption:"显示轴线",type:"ITEM",editorType:"CHECKBOX"},{id:"axisline",caption:"显示轴线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"showGridline",caption:"显示网格线",type:"ITEM",editorType:"CHECKBOX"},{id:"gridline",caption:"显示网格线",type:"ITEM",editorType:"FONT",mode:"BORDER"}]},{id:"label",caption:"标签",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"position",caption:"标签位置",type:"ITEM",editorType:"RADIO",items:[{id:"top",label:"置顶"},{id:"inside",label:"居中"}]},{id:"scope",caption:"显示数据",showCaption:!0,type:"ITEM",editorType:"RADIO",items:[{id:"all",label:"全部数据"},{id:"max_min",label:"最大值/最小值"}]}]},{id:"legend",caption:"图例",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",showCaption:!0,type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"position",caption:"数据位置",showCaption:!0,type:"ITEM",editorType:"POSITION",editorStyle:"DIRECTION"}]}]}},Te={caption:"",data:{measure:void 0,dimension:void 0,group:void 0,filter:void 0},style:{graphics:{colorScheme:"default",color:[]},xAxis:{show:!0,showTitle:!0,titleFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showLabel:!0,labelFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showAxisline:!0,axisline:{borderStyle:"solid",borderSize:1,color:"#000"},showGridline:!1,gridline:{borderStyle:"solid",borderSize:1,color:"#000"},enableLabelInterval:!1,labelInterval:1},yAxis:{show:!0,showTitle:!0,titleFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showLabel:!0,labelFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showAxisline:!0,axisline:{borderStyle:"dashed",borderSize:1,color:"#dddddd"},showGridline:!0,gridline:{borderStyle:"dashed",borderSize:1,color:"#dddddd"}},label:{show:!1,font:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},position:"top",scope:"all"},legend:{show:!0,font:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},position:"right-top"}},extend:{}},xe={coordinateSystem:"XY",chartCoordinateSystems:[{chartGrid:{chartGridXAxis0Id:"0",chartGridYAxis0Id:"0",chartCoordinateSystemId:"0",type:"grid",name:"[bar_1]直角坐标系[0]",id:"0",appId:"srfAppId"},echartsType:"cartesian2d",type:"XY",name:"[bar_1]直角坐标系[0]",id:"0",appId:"srfAppId"}],dechartDataGrid:{showDataGrid:!1,id:"0",appId:"srfAppId"},dechartLegend:{showLegend:!0,id:"0",appId:"srfAppId"},dechartSerieses:[{caption:"srfCaption",catalogField:"srfCatalogField",echartsType:"bar",chartCoordinateSystemId:"0",chartDataSetId:"0",chartSeriesEncode:{chartXAxisId:"0",chartYAxisId:"0",x:["srfCatalogField"],y:["srfValue"],type:"XY",name:"坐标系编码",id:"0",appId:"srfAppId"},seriesLayoutBy:"column",seriesType:"bar",valueField:"srfValue",enableChartDataSet:!0,id:"bar_1",appId:"srfAppId"}],dechartTitle:{title:"柱状图",id:"0",appId:"srfAppId"},chartDataSetGroups:[{appDEDataSetId:"srfAppDEDataSetId",appDataEntityId:"srfAppDataEntityId",name:"DEFAULT",id:"0",appId:"srfAppId"}],chartDataSets:[],chartGrids:[{chartGridXAxis0Id:"0",chartGridYAxis0Id:"0",chartCoordinateSystemId:"0",type:"grid",name:"[bar_1]直角坐标系[0]",id:"0",appId:"srfAppId"}],chartXAxises:[{echartsPos:"xAxis",echartsType:"category",position:"bottom",type:"category",name:"axis_xAxis_0",id:"0",appId:"srfAppId"}],chartYAxises:[{echartsPos:"yAxis",echartsType:"value",position:"left",type:"numeric",name:"axis_yAxis_0",id:"0",appId:"srfAppId"}],fetchControlAction:{appDEMethodId:"fetchdefault",appDataEntityId:"srfAppDataEntityId",id:"fetch",appId:"srfAppId"},readOnly:!0,autoLoad:!0,showBusyIndicator:!0,codeName:"STACKCOL_Chart",controlType:"CHART",logicName:"srfCaption",appDataEntityId:"srfAppDataEntityId",controlParam:{id:"chart",appId:"srfAppId"},modelId:"A1BCD468-3027-4DAF-A36E-F8900BF586DA",modelType:"PSDECHART",name:"chart",id:"srfAppId.srfAppDataEntityId.STACKCOL_Chart",appId:"srfAppId"},Ee={coordinateSystem:"XY",chartCoordinateSystems:[{chartGrid:{chartGridXAxis0Id:"0",chartGridYAxis0Id:"0",chartCoordinateSystemId:"0",type:"grid",name:"[bar_1]直角坐标系[0]",id:"0",appId:"srfAppId"},echartsType:"cartesian2d",type:"XY",name:"[bar_1]直角坐标系[0]",id:"0",appId:"srfAppId"}],dechartDataGrid:{showDataGrid:!1,id:"0",appId:"srfAppId"},dechartLegend:{showLegend:!0,id:"0",appId:"srfAppId"},dechartSerieses:[{caption:"srfCaption",catalogField:"srfCatalogField",echartsType:"bar",chartCoordinateSystemId:"0",chartDataSetId:"0",chartSeriesEncode:{chartXAxisId:"0",chartYAxisId:"0",x:["srfCatalogField"],y:["srfValue"],type:"XY",name:"坐标系编码",id:"0",appId:"srfAppId"},seriesLayoutBy:"column",seriesType:"bar",valueField:"srfValue",enableChartDataSet:!0,id:"bar_1",appId:"srfAppId"}],dechartTitle:{title:"柱状图",id:"0",appId:"srfAppId"},chartDataSetGroups:[{appDEDataSetId:"srfAppDEDataSetId",appDataEntityId:"srfAppDataEntityId",name:"DEFAULT",id:"0",appId:"srfAppId"}],chartDataSets:[],chartGrids:[{chartGridXAxis0Id:"0",chartGridYAxis0Id:"0",chartCoordinateSystemId:"0",type:"grid",name:"[bar_1]直角坐标系[0]",id:"0",appId:"srfAppId"}],chartXAxises:[{echartsPos:"xAxis",echartsType:"category",position:"bottom",type:"category",name:"axis_xAxis_0",id:"0",appId:"srfAppId"}],chartYAxises:[{echartsPos:"yAxis",echartsType:"value",position:"left",type:"numeric",name:"axis_yAxis_0",id:"0",appId:"srfAppId"}],fetchControlAction:{appDEMethodId:"fetchdefault",appDataEntityId:"srfAppDataEntityId",id:"fetch",appId:"srfAppId"},readOnly:!0,autoLoad:!0,showBusyIndicator:!0,codeName:"MULTI_SERIES_BAR_Chart",controlType:"CHART",logicName:"srfCaption",appDataEntityId:"srfAppDataEntityId",controlParam:{id:"chart",appId:"srfAppId"},modelId:"A1BCD468-3027-4DAF-A36E-F8900BF586DA",modelType:"PSDECHART",name:"chart",id:"srfAppId.srfAppDataEntityId.MULTI_SERIES_BAR_Chart",appId:"srfAppId"},Se={data:{details:[{id:"measure",caption:"指标/横轴",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"measure",caption:"指标/横轴",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:3,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"AXIS",caption:"应用轴"},{id:"CORDON",caption:"设置警戒线"},{id:"REMOVE",caption:"删除"}]}]},{id:"dimension",caption:"维度/纵轴",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"dimension",caption:"维度/纵轴",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:3,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"SORT",caption:"排序"},{id:"REMOVE",caption:"删除"}]}]},{id:"group",caption:"分组",type:"GROUP",isCollapse:!1,details:[{id:"group",caption:"分组",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!1,typeLimit:{tag:"NOTIN",types:["DATE"]},actions:[{id:"UPDATE",caption:"设置显示名"},{id:"REMOVE",caption:"删除"}]}]},{id:"filter",caption:"筛选",type:"GROUP",isCollapse:!1,enableRemove:!0,switchEditMode:!0,details:[{id:"filter",caption:"筛选项",subCaption:"筛选",disableCalcField:!0,showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,actions:[{id:"FILTER",caption:"过滤"},{id:"REMOVE",caption:"删除"}],expandActions:[{id:"FILTER",caption:"过滤"}]}]}]},style:{details:[{id:"graphics",caption:"绘图",type:"GROUP",isCollapse:!1,details:[{id:"color",caption:"当前配色",showCaption:!0,type:"ITEM",editorType:"COLOR",editorStyle:"ITEMS"}]},{id:"xAxis",caption:"横轴",type:"GROUP",enableSwitch:!1,details:[{id:"showTitle",caption:"显示轴标题",type:"ITEM",editorType:"CHECKBOX"},{id:"titleFont",caption:"轴标题",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showLabel",caption:"显示轴标签",type:"ITEM",editorType:"CHECKBOX"},{id:"labelFont",caption:"轴标签",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showAxisline",caption:"显示轴线",type:"ITEM",editorType:"CHECKBOX"},{id:"axisline",caption:"显示轴线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"showGridline",caption:"显示网格线",type:"ITEM",editorType:"CHECKBOX"},{id:"gridline",caption:"显示网格线",type:"ITEM",editorType:"FONT",mode:"BORDER"}]},{id:"yAxis",caption:"纵轴",type:"GROUP",enableSwitch:!1,details:[{id:"showTitle",caption:"显示轴标题",type:"ITEM",editorType:"CHECKBOX"},{id:"titleFont",caption:"显示轴标题",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showLabel",caption:"显示轴标签",type:"ITEM",editorType:"CHECKBOX"},{id:"labelFont",caption:"显示轴标签",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showAxisline",caption:"显示轴线",type:"ITEM",editorType:"CHECKBOX"},{id:"axisline",caption:"显示轴线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"showGridline",caption:"显示网格线",type:"ITEM",editorType:"CHECKBOX"},{id:"gridline",caption:"显示网格线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"enableLabelInterval",caption:"开启轴标签间隔",type:"ITEM",editorType:"CHECKBOX"},{id:"labelInterval",caption:"标签间隔",showCaption:!0,type:"ITEM",editorType:"NUMBER"}]},{id:"label",caption:"标签",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"position",caption:"标签位置",type:"ITEM",editorType:"RADIO",items:[{id:"right",label:"置顶"},{id:"inside",label:"居中"}]},{id:"scope",caption:"显示数据",showCaption:!0,type:"ITEM",editorType:"RADIO",items:[{id:"all",label:"全部数据"},{id:"max_min",label:"最大值/最小值"}]}]},{id:"legend",caption:"图例",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",showCaption:!0,type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"position",caption:"数据位置",showCaption:!0,type:"ITEM",editorType:"POSITION",editorStyle:"DIRECTION"}]}]}},De={caption:"",data:{measure:void 0,dimension:void 0,group:void 0,filter:void 0},style:{graphics:{colorScheme:"default",color:[]},xAxis:{show:!0,showTitle:!0,titleFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showLabel:!0,labelFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showAxisline:!0,axisline:{borderStyle:"solid",borderSize:1,color:"#000"},showGridline:!1,gridline:{borderStyle:"solid",borderSize:1,color:"#000"}},yAxis:{show:!0,showTitle:!0,titleFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showLabel:!0,labelFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showAxisline:!0,axisline:{borderStyle:"dashed",borderSize:1,color:"#dddddd"},showGridline:!0,gridline:{borderStyle:"dashed",borderSize:1,color:"#dddddd"},enableLabelInterval:!1,labelInterval:1},label:{show:!1,font:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},position:"right",scope:"all"},legend:{show:!0,font:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},position:"right-top"}},extend:{}},Oe={coordinateSystem:"XY",chartCoordinateSystems:[{chartGrid:{chartGridXAxis0Id:"0",chartGridYAxis0Id:"0",chartCoordinateSystemId:"0",type:"grid",name:"[bar_1]直角坐标系[0]",id:"0",appId:"srfAppId"},echartsType:"cartesian2d",type:"XY",name:"[bar_1]直角坐标系[0]",id:"0",appId:"srfAppId"}],dechartDataGrid:{showDataGrid:!1,id:"0",appId:"srfAppId"},dechartLegend:{showLegend:!0,id:"0",appId:"srfAppId"},dechartSerieses:[{caption:"srfCaption",catalogField:"srfCatalogField",echartsType:"bar",chartCoordinateSystemId:"0",chartDataSetId:"0",chartSeriesEncode:{chartXAxisId:"0",chartYAxisId:"0",x:["srfCatalogField"],y:["srfValue"],type:"XY",name:"坐标系编码",id:"0",appId:"srfAppId"},seriesLayoutBy:"column",seriesType:"bar",valueField:"srfValue",enableChartDataSet:!0,id:"bar_1",appId:"srfAppId"}],dechartTitle:{title:"柱状图",id:"0",appId:"srfAppId"},chartDataSetGroups:[{appDEDataSetId:"srfAppDEDataSetId",appDataEntityId:"srfAppDataEntityId",name:"DEFAULT",id:"0",appId:"srfAppId"}],chartDataSets:[],chartGrids:[{chartGridXAxis0Id:"0",chartGridYAxis0Id:"0",chartCoordinateSystemId:"0",type:"grid",name:"[bar_1]直角坐标系[0]",id:"0",appId:"srfAppId"}],chartXAxises:[{echartsPos:"xAxis",echartsType:"category",position:"bottom",type:"category",name:"axis_xAxis_0",id:"0",appId:"srfAppId"}],chartYAxises:[{echartsPos:"yAxis",echartsType:"value",position:"left",type:"numeric",name:"axis_yAxis_0",id:"0",appId:"srfAppId"}],fetchControlAction:{appDEMethodId:"fetchdefault",appDataEntityId:"srfAppDataEntityId",id:"fetch",appId:"srfAppId"},readOnly:!0,autoLoad:!0,showBusyIndicator:!0,codeName:"STACK_BAR_Chart",controlType:"CHART",logicName:"srfCaption",appDataEntityId:"srfAppDataEntityId",controlParam:{id:"chart",appId:"srfAppId"},modelId:"A1BCD468-3027-4DAF-A36E-F8900BF586DA",modelType:"PSDECHART",name:"chart",id:"srfAppId.srfAppDataEntityId.STACK_BAR_Chart",appId:"srfAppId"},Ae={data:{details:[{id:"measure",caption:"指标/横轴",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"measure",caption:"指标/横轴",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:3,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"AXIS",caption:"应用轴"},{id:"CORDON",caption:"设置警戒线"},{id:"REMOVE",caption:"删除"}]}]},{id:"dimension",caption:"维度/纵轴",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"dimension",caption:"维度/纵轴",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:3,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"SORT",caption:"排序"},{id:"REMOVE",caption:"删除"}]}]},{id:"group",caption:"分组",type:"GROUP",isCollapse:!1,details:[{id:"group",caption:"分组",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!1,typeLimit:{tag:"NOTIN",types:["DATE"]},actions:[{id:"UPDATE",caption:"设置显示名"},{id:"REMOVE",caption:"删除"}]}]},{id:"filter",caption:"筛选",type:"GROUP",isCollapse:!1,enableRemove:!0,switchEditMode:!0,details:[{id:"filter",caption:"筛选项",subCaption:"筛选",disableCalcField:!0,showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,actions:[{id:"FILTER",caption:"过滤"},{id:"REMOVE",caption:"删除"}],expandActions:[{id:"FILTER",caption:"过滤"}]}]}]},style:{details:[{id:"graphics",caption:"绘图",type:"GROUP",isCollapse:!1,details:[{id:"color",caption:"当前配色",showCaption:!0,type:"ITEM",editorType:"COLOR",editorStyle:"ITEMS"}]},{id:"xAxis",caption:"横轴",type:"GROUP",enableSwitch:!1,details:[{id:"showTitle",caption:"显示轴标题",type:"ITEM",editorType:"CHECKBOX"},{id:"titleFont",caption:"轴标题",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showLabel",caption:"显示轴标签",type:"ITEM",editorType:"CHECKBOX"},{id:"labelFont",caption:"轴标签",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showAxisline",caption:"显示轴线",type:"ITEM",editorType:"CHECKBOX"},{id:"axisline",caption:"显示轴线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"showGridline",caption:"显示网格线",type:"ITEM",editorType:"CHECKBOX"},{id:"gridline",caption:"显示网格线",type:"ITEM",editorType:"FONT",mode:"BORDER"}]},{id:"yAxis",caption:"纵轴",type:"GROUP",enableSwitch:!1,details:[{id:"showTitle",caption:"显示轴标题",type:"ITEM",editorType:"CHECKBOX"},{id:"titleFont",caption:"显示轴标题",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showLabel",caption:"显示轴标签",type:"ITEM",editorType:"CHECKBOX"},{id:"labelFont",caption:"显示轴标签",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showAxisline",caption:"显示轴线",type:"ITEM",editorType:"CHECKBOX"},{id:"axisline",caption:"显示轴线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"showGridline",caption:"显示网格线",type:"ITEM",editorType:"CHECKBOX"},{id:"gridline",caption:"显示网格线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"enableLabelInterval",caption:"开启轴标签间隔",type:"ITEM",editorType:"CHECKBOX"},{id:"labelInterval",caption:"标签间隔",showCaption:!0,type:"ITEM",editorType:"NUMBER"}]},{id:"label",caption:"标签",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"position",caption:"标签位置",type:"ITEM",editorType:"RADIO",items:[{id:"right",label:"置顶"},{id:"inside",label:"居中"}]},{id:"scope",caption:"显示数据",showCaption:!0,type:"ITEM",editorType:"RADIO",items:[{id:"all",label:"全部数据"},{id:"max_min",label:"最大值/最小值"}]}]},{id:"legend",caption:"图例",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",showCaption:!0,type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"position",caption:"数据位置",showCaption:!0,type:"ITEM",editorType:"POSITION",editorStyle:"DIRECTION"}]}]}},Me={caption:"",data:{measure:void 0,dimension:void 0,group:void 0,filter:void 0},style:{graphics:{colorScheme:"default",color:[]},xAxis:{show:!0,showTitle:!0,titleFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showLabel:!0,labelFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showAxisline:!0,axisline:{borderStyle:"solid",borderSize:1,color:"#000"},showGridline:!1,gridline:{borderStyle:"solid",borderSize:1,color:"#000"}},yAxis:{show:!0,showTitle:!0,titleFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showLabel:!0,labelFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showAxisline:!0,axisline:{borderStyle:"dashed",borderSize:1,color:"#dddddd"},showGridline:!0,gridline:{borderStyle:"dashed",borderSize:1,color:"#dddddd"},enableLabelInterval:!1,labelInterval:1},label:{show:!1,font:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},position:"right",scope:"all"},legend:{show:!0,font:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},position:"right-top"}},extend:{}},Le={coordinateSystem:"XY",chartCoordinateSystems:[{chartGrid:{chartGridXAxis0Id:"0",chartGridYAxis0Id:"0",chartCoordinateSystemId:"0",type:"grid",name:"[line_1]直角坐标系[0]",id:"0",appId:"srfAppId"},echartsType:"cartesian2d",type:"XY",name:"[line_1]直角坐标系[0]",id:"0",appId:"srfAppId"}],dechartDataGrid:{showDataGrid:!1,id:"0",appId:"srfAppId"},dechartLegend:{showLegend:!0,id:"0",appId:"srfAppId"},dechartSerieses:[{caption:"srfCaption",catalogField:"srfCatalogField",echartsType:"line",chartCoordinateSystemId:"0",chartDataSetId:"0",chartSeriesEncode:{chartXAxisId:"0",chartYAxisId:"0",x:["srfCatalogField"],y:["srfValue"],type:"XY",name:"坐标系编码",id:"0",appId:"srfAppId"},seriesLayoutBy:"column",seriesType:"line",valueField:"srfValue",enableChartDataSet:!0,id:"line_1",appId:"srfAppId"}],dechartTitle:{title:"柱状图",id:"0",appId:"srfAppId"},chartDataSetGroups:[{appDEDataSetId:"srfAppDEDataSetId",appDataEntityId:"srfAppDataEntityId",name:"DEFAULT",id:"0",appId:"srfAppId"}],chartDataSets:[],chartGrids:[{chartGridXAxis0Id:"0",chartGridYAxis0Id:"0",chartCoordinateSystemId:"0",type:"grid",name:"[line_1]直角坐标系[0]",id:"0",appId:"srfAppId"}],chartXAxises:[{echartsPos:"xAxis",echartsType:"category",position:"bottom",type:"category",name:"axis_xAxis_0",id:"0",appId:"srfAppId"}],chartYAxises:[{echartsPos:"yAxis",echartsType:"value",position:"left",type:"numeric",name:"axis_yAxis_0",id:"0",appId:"srfAppId"}],fetchControlAction:{appDEMethodId:"fetchdefault",appDataEntityId:"srfAppDataEntityId",id:"fetch",appId:"srfAppId"},readOnly:!0,autoLoad:!0,showBusyIndicator:!0,codeName:"MULTI_SERIES_LINE_Chart",controlType:"CHART",logicName:"srfCaption",appDataEntityId:"srfAppDataEntityId",controlParam:{id:"chart",appId:"srfAppId"},modelId:"A1BCD468-3027-4DAF-A36E-F8900BF586DA",modelType:"PSDECHART",name:"chart",id:"srfAppId.srfAppDataEntityId.MULTI_SERIES_LINE_Chart",appId:"srfAppId"},Re={data:{details:[{id:"measure",caption:"指标/纵轴",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"measure",caption:"指标/纵轴",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:3,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"AXIS",caption:"应用轴"},{id:"CORDON",caption:"设置警戒线"},{id:"REMOVE",caption:"删除"}]}]},{id:"dimension",caption:"维度/横轴",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"dimension",caption:"维度/横轴",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:3,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"SORT",caption:"排序"},{id:"REMOVE",caption:"删除"}]}]},{id:"group",caption:"分组",type:"GROUP",isCollapse:!1,details:[{id:"group",caption:"分组",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!1,typeLimit:{tag:"NOTIN",types:["DATE"]},actions:[{id:"UPDATE",caption:"设置显示名"},{id:"REMOVE",caption:"删除"}]}]},{id:"filter",caption:"筛选",type:"GROUP",isCollapse:!1,enableRemove:!0,switchEditMode:!0,details:[{id:"filter",caption:"筛选项",subCaption:"筛选",disableCalcField:!0,showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,actions:[{id:"FILTER",caption:"过滤"},{id:"REMOVE",caption:"删除"}],expandActions:[{id:"FILTER",caption:"过滤"}]}]}]},style:{details:[{id:"graphics",caption:"绘图",type:"GROUP",isCollapse:!1,details:[{id:"color",caption:"当前配色",showCaption:!0,type:"ITEM",editorType:"COLOR",editorStyle:"ITEMS"}]},{id:"xAxis",caption:"横轴",type:"GROUP",enableSwitch:!1,details:[{id:"showTitle",caption:"显示轴标题",type:"ITEM",editorType:"CHECKBOX"},{id:"titleFont",caption:"轴标题",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showLabel",caption:"显示轴标签",type:"ITEM",editorType:"CHECKBOX"},{id:"labelFont",caption:"轴标签",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showAxisline",caption:"显示轴线",type:"ITEM",editorType:"CHECKBOX"},{id:"axisline",caption:"显示轴线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"showGridline",caption:"显示网格线",type:"ITEM",editorType:"CHECKBOX"},{id:"gridline",caption:"显示网格线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"enableLabelInterval",caption:"开启轴标签间隔",type:"ITEM",editorType:"CHECKBOX"},{id:"labelInterval",caption:"标签间隔",showCaption:!0,type:"ITEM",editorType:"NUMBER"}]},{id:"yAxis",caption:"纵轴",type:"GROUP",enableSwitch:!1,details:[{id:"showTitle",caption:"显示轴标题",type:"ITEM",editorType:"CHECKBOX"},{id:"titleFont",caption:"显示轴标题",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showLabel",caption:"显示轴标签",type:"ITEM",editorType:"CHECKBOX"},{id:"labelFont",caption:"显示轴标签",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showAxisline",caption:"显示轴线",type:"ITEM",editorType:"CHECKBOX"},{id:"axisline",caption:"显示轴线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"showGridline",caption:"显示网格线",type:"ITEM",editorType:"CHECKBOX"},{id:"gridline",caption:"显示网格线",type:"ITEM",editorType:"FONT",mode:"BORDER"}]},{id:"label",caption:"标签",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"position",caption:"标签位置",type:"ITEM",editorType:"RADIO",items:[{id:"top",label:"线上方"},{id:"bottom",label:"线下方"}]},{id:"scope",caption:"显示数据",showCaption:!0,type:"ITEM",editorType:"RADIO",items:[{id:"all",label:"全部数据"},{id:"max_min",label:"最大值/最小值"}]}]},{id:"legend",caption:"图例",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",showCaption:!0,type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"position",caption:"数据位置",showCaption:!0,type:"ITEM",editorType:"POSITION",editorStyle:"DIRECTION"}]}]}},ke={caption:"",data:{measure:void 0,dimension:void 0,group:void 0,filter:void 0},style:{graphics:{colorScheme:"default",color:[]},xAxis:{show:!0,showTitle:!0,titleFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showLabel:!0,labelFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showAxisline:!0,axisline:{borderStyle:"solid",borderSize:1,color:"#000"},showGridline:!1,gridline:{borderStyle:"solid",borderSize:1,color:"#000"},enableLabelInterval:!1,labelInterval:1},yAxis:{show:!0,showTitle:!0,titleFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showLabel:!0,labelFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showAxisline:!0,axisline:{borderStyle:"dashed",borderSize:1,color:"#dddddd"},showGridline:!0,gridline:{borderStyle:"dashed",borderSize:1,color:"#dddddd"}},label:{show:!1,font:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},position:"top",scope:"all"},legend:{show:!0,font:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},position:"right-top"}},extend:{}},Fe={coordinateSystem:"XY",chartCoordinateSystems:[{chartGrid:{chartGridXAxis0Id:"0",chartGridYAxis0Id:"0",chartCoordinateSystemId:"0",type:"grid",name:"[line_1]直角坐标系[0]",id:"0",appId:"srfAppId"},echartsType:"cartesian2d",type:"XY",name:"[line_1]直角坐标系[0]",id:"0",appId:"srfAppId"}],dechartDataGrid:{showDataGrid:!1,id:"0",appId:"srfAppId"},dechartLegend:{showLegend:!0,id:"0",appId:"srfAppId"},dechartSerieses:[{caption:"srfCaption",catalogField:"srfCatalogField",echartsType:"line",chartCoordinateSystemId:"0",chartDataSetId:"0",chartSeriesEncode:{chartXAxisId:"0",chartYAxisId:"0",x:["srfCatalogField"],y:["srfValue"],type:"XY",name:"坐标系编码",id:"0",appId:"srfAppId"},seriesLayoutBy:"column",seriesType:"line",valueField:"srfValue",enableChartDataSet:!0,id:"line_1",appId:"srfAppId"}],dechartTitle:{title:"柱状图",id:"0",appId:"srfAppId"},chartDataSetGroups:[{appDEDataSetId:"srfAppDEDataSetId",appDataEntityId:"srfAppDataEntityId",name:"DEFAULT",id:"0",appId:"srfAppId"}],chartDataSets:[],chartGrids:[{chartGridXAxis0Id:"0",chartGridYAxis0Id:"0",chartCoordinateSystemId:"0",type:"grid",name:"[line_1]直角坐标系[0]",id:"0",appId:"srfAppId"}],chartXAxises:[{echartsPos:"xAxis",echartsType:"category",position:"bottom",type:"category",name:"axis_xAxis_0",id:"0",appId:"srfAppId"}],chartYAxises:[{echartsPos:"yAxis",echartsType:"value",position:"left",type:"numeric",name:"axis_yAxis_0",id:"0",appId:"srfAppId"}],fetchControlAction:{appDEMethodId:"fetchdefault",appDataEntityId:"srfAppDataEntityId",id:"fetch",appId:"srfAppId"},readOnly:!0,autoLoad:!0,showBusyIndicator:!0,codeName:"MULTI_SERIES_LINE_Chart",controlType:"CHART",logicName:"srfCaption",appDataEntityId:"srfAppDataEntityId",controlParam:{id:"chart",appId:"srfAppId"},modelId:"A1BCD468-3027-4DAF-A36E-F8900BF586DA",modelType:"PSDECHART",name:"chart",id:"srfAppId.srfAppDataEntityId.MULTI_SERIES_LINE_Chart",appId:"srfAppId"},Ne={data:{details:[{id:"measure",caption:"指标/纵轴",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"measure",caption:"指标/纵轴",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:3,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"CORDON",caption:"设置警戒线"},{id:"REMOVE",caption:"删除"}]}]},{id:"dimension",caption:"维度/横轴",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"dimension",caption:"维度/横轴",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:3,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"SORT",caption:"排序"},{id:"REMOVE",caption:"删除"}]}]},{id:"group",caption:"分组",type:"GROUP",isCollapse:!1,details:[{id:"group",caption:"分组",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!1,typeLimit:{tag:"NOTIN",types:["DATE"]},actions:[{id:"UPDATE",caption:"设置显示名"},{id:"REMOVE",caption:"删除"}]}]},{id:"filter",caption:"筛选",type:"GROUP",isCollapse:!1,enableRemove:!0,switchEditMode:!0,details:[{id:"filter",caption:"筛选项",subCaption:"筛选",disableCalcField:!0,showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,actions:[{id:"FILTER",caption:"过滤"},{id:"REMOVE",caption:"删除"}],expandActions:[{id:"FILTER",caption:"过滤"}]}]}]},style:{details:[{id:"graphics",caption:"绘图",type:"GROUP",isCollapse:!1,details:[{id:"color",caption:"当前配色",showCaption:!0,type:"ITEM",editorType:"COLOR",editorStyle:"ITEMS"}]},{id:"xAxis",caption:"横轴",type:"GROUP",enableSwitch:!1,details:[{id:"showTitle",caption:"显示轴标题",type:"ITEM",editorType:"CHECKBOX"},{id:"titleFont",caption:"轴标题",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showLabel",caption:"显示轴标签",type:"ITEM",editorType:"CHECKBOX"},{id:"labelFont",caption:"轴标签",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showAxisline",caption:"显示轴线",type:"ITEM",editorType:"CHECKBOX"},{id:"axisline",caption:"显示轴线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"showGridline",caption:"显示网格线",type:"ITEM",editorType:"CHECKBOX"},{id:"gridline",caption:"显示网格线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"enableLabelInterval",caption:"开启轴标签间隔",type:"ITEM",editorType:"CHECKBOX"},{id:"labelInterval",caption:"标签间隔",showCaption:!0,type:"ITEM",editorType:"NUMBER"}]},{id:"yAxis",caption:"纵轴",type:"GROUP",enableSwitch:!1,details:[{id:"showTitle",caption:"显示轴标题",type:"ITEM",editorType:"CHECKBOX"},{id:"titleFont",caption:"显示轴标题",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showLabel",caption:"显示轴标签",type:"ITEM",editorType:"CHECKBOX"},{id:"labelFont",caption:"显示轴标签",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showAxisline",caption:"显示轴线",type:"ITEM",editorType:"CHECKBOX"},{id:"axisline",caption:"显示轴线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"showGridline",caption:"显示网格线",type:"ITEM",editorType:"CHECKBOX"},{id:"gridline",caption:"显示网格线",type:"ITEM",editorType:"FONT",mode:"BORDER"}]},{id:"label",caption:"标签",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"position",caption:"标签位置",type:"ITEM",editorType:"RADIO",items:[{id:"top",label:"线上方"},{id:"bottom",label:"线下方"}]},{id:"scope",caption:"显示数据",showCaption:!0,type:"ITEM",editorType:"RADIO",items:[{id:"all",label:"全部数据"},{id:"max_min",label:"最大值/最小值"}]}]},{id:"legend",caption:"图例",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",showCaption:!0,type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"position",caption:"数据位置",showCaption:!0,type:"ITEM",editorType:"POSITION",editorStyle:"DIRECTION"}]}]}},Pe={caption:"",data:{measure:void 0,dimension:void 0,group:void 0,filter:void 0},style:{graphics:{colorScheme:"default",color:[]},xAxis:{show:!0,showTitle:!0,titleFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showLabel:!0,labelFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showAxisline:!0,axisline:{borderStyle:"solid",borderSize:1,color:"#000"},showGridline:!1,gridline:{borderStyle:"solid",borderSize:1,color:"#000"},enableLabelInterval:!1,labelInterval:1},yAxis:{show:!0,showTitle:!0,titleFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showLabel:!0,labelFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showAxisline:!0,axisline:{borderStyle:"dashed",borderSize:1,color:"#dddddd"},showGridline:!0,gridline:{borderStyle:"dashed",borderSize:1,color:"#dddddd"}},label:{show:!1,font:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},position:"top",scope:"all"},legend:{show:!0,font:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},position:"right-top"}},extend:{}},Be={coordinateSystem:"XY",chartCoordinateSystems:[{chartGrid:{chartGridXAxis0Id:"0",chartGridYAxis0Id:"0",chartCoordinateSystemId:"0",type:"grid",name:"[line_1]直角坐标系[0]",id:"0",appId:"srfAppId"},echartsType:"cartesian2d",type:"XY",name:"[line_1]直角坐标系[0]",id:"0",appId:"srfAppId"}],dechartDataGrid:{showDataGrid:!1,id:"0",appId:"srfAppId"},dechartLegend:{showLegend:!0,id:"0",appId:"srfAppId"},dechartSerieses:[{caption:"srfCaption",catalogField:"srfCatalogField",echartsType:"line",chartCoordinateSystemId:"0",chartDataSetId:"0",chartSeriesEncode:{chartXAxisId:"0",chartYAxisId:"0",x:["srfCatalogField"],y:["srfValue"],type:"XY",name:"坐标系编码",id:"0",appId:"srfAppId"},seriesLayoutBy:"column",seriesType:"line",valueField:"srfValue",enableChartDataSet:!0,id:"line_1",appId:"srfAppId"}],dechartTitle:{title:"柱状图",id:"0",appId:"srfAppId"},chartDataSetGroups:[{appDEDataSetId:"srfAppDEDataSetId",appDataEntityId:"srfAppDataEntityId",name:"DEFAULT",id:"0",appId:"srfAppId"}],chartDataSets:[],chartGrids:[{chartGridXAxis0Id:"0",chartGridYAxis0Id:"0",chartCoordinateSystemId:"0",type:"grid",name:"[line_1]直角坐标系[0]",id:"0",appId:"srfAppId"}],chartXAxises:[{echartsPos:"xAxis",echartsType:"category",position:"bottom",type:"category",name:"axis_xAxis_0",id:"0",appId:"srfAppId"}],chartYAxises:[{echartsPos:"yAxis",echartsType:"value",position:"left",type:"numeric",name:"axis_yAxis_0",id:"0",appId:"srfAppId"}],fetchControlAction:{appDEMethodId:"fetchdefault",appDataEntityId:"srfAppDataEntityId",id:"fetch",appId:"srfAppId"},readOnly:!0,autoLoad:!0,showBusyIndicator:!0,codeName:"AREA_Chart",controlType:"CHART",logicName:"srfCaption",appDataEntityId:"srfAppDataEntityId",controlParam:{id:"chart",appId:"srfAppId"},modelId:"A1BCD468-3027-4DAF-A36E-F8900BF586DA",modelType:"PSDECHART",name:"chart",id:"srfAppId.srfAppDataEntityId.AREA_Chart",appId:"srfAppId"},ze={data:{details:[{id:"measure",caption:"指标/纵轴",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"measure",caption:"指标/纵轴",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:3,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"AXIS",caption:"应用轴"},{id:"CORDON",caption:"设置警戒线"},{id:"REMOVE",caption:"删除"}]}]},{id:"dimension",caption:"维度/横轴",type:"GROUP",isCollapse:!1,enableRemove:!0,required:!0,details:[{id:"dimension",caption:"维度/横轴",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:3,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"SORT",caption:"排序"},{id:"REMOVE",caption:"删除"}]}]},{id:"group",caption:"分组",type:"GROUP",isCollapse:!1,details:[{id:"group",caption:"分组",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!1,typeLimit:{tag:"NOTIN",types:["DATE"]},actions:[{id:"UPDATE",caption:"设置显示名"},{id:"REMOVE",caption:"删除"}]}]},{id:"filter",caption:"筛选",type:"GROUP",isCollapse:!1,enableRemove:!0,switchEditMode:!0,details:[{id:"filter",caption:"筛选项",subCaption:"筛选",disableCalcField:!0,showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,actions:[{id:"FILTER",caption:"过滤"},{id:"REMOVE",caption:"删除"}],expandActions:[{id:"FILTER",caption:"过滤"}]}]}]},style:{details:[{id:"graphics",caption:"绘图",type:"GROUP",isCollapse:!1,details:[{id:"color",caption:"当前配色",showCaption:!0,type:"ITEM",editorType:"COLOR",editorStyle:"ITEMS"}]},{id:"xAxis",caption:"横轴",type:"GROUP",enableSwitch:!1,details:[{id:"showTitle",caption:"显示轴标题",type:"ITEM",editorType:"CHECKBOX"},{id:"titleFont",caption:"轴标题",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showLabel",caption:"显示轴标签",type:"ITEM",editorType:"CHECKBOX"},{id:"labelFont",caption:"轴标签",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showAxisline",caption:"显示轴线",type:"ITEM",editorType:"CHECKBOX"},{id:"axisline",caption:"显示轴线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"showGridline",caption:"显示网格线",type:"ITEM",editorType:"CHECKBOX"},{id:"gridline",caption:"显示网格线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"enableLabelInterval",caption:"开启轴标签间隔",type:"ITEM",editorType:"CHECKBOX"},{id:"labelInterval",caption:"标签间隔",showCaption:!0,type:"ITEM",editorType:"NUMBER"}]},{id:"yAxis",caption:"纵轴",type:"GROUP",enableSwitch:!1,details:[{id:"showTitle",caption:"显示轴标题",type:"ITEM",editorType:"CHECKBOX"},{id:"titleFont",caption:"显示轴标题",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showLabel",caption:"显示轴标签",type:"ITEM",editorType:"CHECKBOX"},{id:"labelFont",caption:"显示轴标签",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showAxisline",caption:"显示轴线",type:"ITEM",editorType:"CHECKBOX"},{id:"axisline",caption:"显示轴线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"showGridline",caption:"显示网格线",type:"ITEM",editorType:"CHECKBOX"},{id:"gridline",caption:"显示网格线",type:"ITEM",editorType:"FONT",mode:"BORDER"}]},{id:"label",caption:"标签",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"position",caption:"标签位置",type:"ITEM",editorType:"RADIO",items:[{id:"top",label:"线上方"},{id:"bottom",label:"线下方"}]},{id:"scope",caption:"显示数据",showCaption:!0,type:"ITEM",editorType:"RADIO",items:[{id:"all",label:"全部数据"},{id:"max_min",label:"最大值/最小值"}]}]},{id:"legend",caption:"图例",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",showCaption:!0,type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"position",caption:"数据位置",showCaption:!0,type:"ITEM",editorType:"POSITION",editorStyle:"DIRECTION"}]}]}},Ge={caption:"",data:{measure:void 0,dimension:void 0,group:void 0,filter:void 0},style:{graphics:{colorScheme:"default",color:[]},xAxis:{show:!0,showTitle:!0,titleFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showLabel:!0,labelFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showAxisline:!0,axisline:{borderStyle:"solid",borderSize:1,color:"#000"},showGridline:!1,gridline:{borderStyle:"solid",borderSize:1,color:"#000"},enableLabelInterval:!1,labelInterval:1},yAxis:{show:!0,showTitle:!0,titleFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showLabel:!0,labelFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showAxisline:!0,axisline:{borderStyle:"dashed",borderSize:1,color:"#dddddd"},showGridline:!0,gridline:{borderStyle:"dashed",borderSize:1,color:"#dddddd"}},label:{show:!1,font:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},position:"top",scope:"all"},legend:{show:!0,font:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},position:"right-top"}},extend:{}},Ve={data:{pagination:!0,details:[{id:"measure",caption:"指标",type:"GROUP",isCollapse:!1,allowClear:!0,required:!0,enableRemove:!0,details:[{id:"measure",caption:"指标",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:5,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"REMOVE",caption:"删除"}]}]},{id:"dimension",caption:"维度",type:"GROUP",isCollapse:!1,allowClear:!0,required:!1,enableRemove:!0,details:[{id:"dimension",caption:"维度",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:5,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"SORT",caption:"排序"},{id:"REMOVE",caption:"删除"}]}]},{id:"filter",caption:"筛选",type:"GROUP",isCollapse:!1,allowClear:!0,enableRemove:!0,switchEditMode:!0,details:[{id:"filter",caption:"筛选项",subCaption:"筛选",disableCalcField:!0,showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,actions:[{id:"FILTER",caption:"过滤"},{id:"REMOVE",caption:"删除"}],expandActions:[{id:"FILTER",caption:"过滤"}]}]}]},style:{details:[{id:"gridFont",caption:"表格字体",type:"GROUP",enableSwitch:!1,details:[{id:"gridHeader",caption:"表头",showCaption:!0,type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"gridHeaderAlign",caption:"表头对齐",showCaption:!1,type:"ITEM",editorType:"POSITION",editorStyle:"CENTER",showCenter:!0},{id:"gridBody",caption:"表身",showCaption:!0,type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"gridBodyAlign",caption:"表身对齐",showCaption:!1,type:"ITEM",editorType:"POSITION",editorStyle:"CENTER",showCenter:!0}]},{id:"agg",caption:"合计行",type:"GROUP",enableSwitch:!0,details:[{id:"position",caption:"合计行位置",showCaption:!1,type:"ITEM",editorType:"RADIO",items:[{id:"top",label:"顶部"},{id:"bottom",label:"底部"}]}]},{id:"function",caption:"功能设置",type:"GROUP",details:[{id:"function",caption:"功能设置",showCaption:!1,type:"ITEM",editorType:"CHECKBOXS",items:[{id:"dimensionMerge",label:"同维度合并"},{id:"fixedGridHeader",label:"固定表头"},{id:"fixedDimension",label:"固定维度列"},{id:"showPercent",label:"显示百分比"}]}]}]}},je={aggMode:"NONE",columnEnableFilter:2,columnEnableLink:2,groupMode:"NONE",pagingMode:1,pagingSize:20,sortMode:"REMOTE",enableCustomized:!1,enablePagingBar:!1,fetchControlAction:{appDEMethodId:"srfAppDEDataSetId",appDataEntityId:"srfAppDataEntityId",id:"fetch",appId:"srfAppId"},autoLoad:!0,showBusyIndicator:!0,singleSelect:!0,codeName:"PIVOT_TABLE",controlType:"GRID",logicName:"主表格",appDataEntityId:"srfAppDataEntityId",controlParam:{id:"grid",appId:"srfAppId"},modelId:"9db1aa2be35a58b18c1974ca7cb64cc1",modelType:"PSDEGRID",name:"grid",id:"srfAppId.srfAppDataEntityId.PIVOT_TABLE",appId:"srfAppId"},Ue={caption:"",data:{measure:void 0,dimension:void 0,filter:[]},style:{gridFont:{show:!0,gridHeader:{fontWeight:"normal",fontStyle:"normal",fontSize:14,color:"#555b61"},gridHeaderAlign:"center",gridBody:{fontWeight:"normal",fontStyle:"normal",fontSize:14,color:"#1d1f23"},gridBodyAlign:"left"},agg:{show:!1,position:"top"},function:{show:!0,function:["dimensionMerge","fixedGridHeader"]}},extend:{}},_e={data:{pagination:!0,details:[{id:"measure",caption:"指标",type:"GROUP",isCollapse:!1,allowClear:!0,required:!0,enableRemove:!0,details:[{id:"measure",caption:"指标",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:5,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"REMOVE",caption:"删除"}]}]},{id:"dimension",caption:"维度(行)",type:"GROUP",isCollapse:!1,allowClear:!0,required:!1,enableRemove:!0,details:[{id:"dimension",caption:"维度",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:5,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"SORT",caption:"排序"},{id:"REMOVE",caption:"删除"}]}]},{id:"dimension_col",caption:"维度(列)",type:"GROUP",isCollapse:!1,allowClear:!0,required:!1,enableRemove:!0,details:[{id:"dimension",caption:"维度",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!1,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"SORT",caption:"排序"},{id:"REMOVE",caption:"删除"}]}]},{id:"filter",caption:"筛选",type:"GROUP",isCollapse:!1,allowClear:!0,enableRemove:!0,switchEditMode:!0,details:[{id:"filter",caption:"筛选项",subCaption:"筛选",disableCalcField:!0,showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,actions:[{id:"FILTER",caption:"过滤"},{id:"REMOVE",caption:"删除"}],expandActions:[{id:"FILTER",caption:"过滤"}]}]}]},style:{details:[{id:"gridFont",caption:"表格字体",type:"GROUP",enableSwitch:!1,details:[{id:"gridHeader",caption:"表头",showCaption:!0,type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"gridHeaderAlign",caption:"表头对齐",showCaption:!1,type:"ITEM",editorType:"POSITION",editorStyle:"CENTER",showCenter:!0},{id:"gridBody",caption:"表身",showCaption:!0,type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"gridBodyAlign",caption:"表身对齐",showCaption:!1,type:"ITEM",editorType:"POSITION",editorStyle:"CENTER",showCenter:!0}]},{id:"agg",caption:"合计行/列",type:"GROUP",enableSwitch:!0,details:[{id:"rowPosition",caption:"行位置",showCaption:!0,type:"ITEM",editorType:"RADIO",items:[{id:"top",label:"顶部"},{id:"bottom",label:"底部"}]},{id:"colPosition",caption:"列位置",showCaption:!0,type:"ITEM",editorType:"RADIO",items:[{id:"left",label:"左侧"},{id:"right",label:"右侧"}]}]},{id:"function",caption:"功能设置",type:"GROUP",details:[{id:"function",caption:"功能设置",showCaption:!1,type:"ITEM",editorType:"CHECKBOXS",items:[{id:"dimensionMerge",label:"同维度合并"},{id:"fixedGridHeader",label:"固定表头"},{id:"fixedDimension",label:"固定维度列"},{id:"showPercent",label:"显示百分比"}]}]}]}},He={aggMode:"NONE",columnEnableFilter:2,columnEnableLink:2,gridStyle:"USER",groupMode:"NONE",pagingMode:1,pagingSize:20,sortMode:"REMOTE",enableCustomized:!1,enablePagingBar:!1,singleSelect:!0,fetchControlAction:{appDEMethodId:"srfAppDEDataSetId",appDataEntityId:"srfAppDataEntityId",id:"fetch",appId:"srfAppId"},autoLoad:!0,showBusyIndicator:!0,codeName:"PIVOT_TABLE",controlType:"GRID",logicName:"主表格",appDataEntityId:"srfAppDataEntityId",controlParam:{id:"grid",appId:"srfAppId"},modelId:"9db1aa2be35a58b18c1974ca7cb64cc1",modelType:"PSDEGRID",name:"grid",id:"srfAppId.srfAppDataEntityId.PIVOT_TABLE",appId:"srfAppId"},qe={caption:"",data:{measure:void 0,dimension:void 0,dimension_col:void 0,filter:[],size:50},style:{gridFont:{show:!0,gridHeader:{fontWeight:"normal",fontStyle:"normal",fontSize:14,color:"#555b61"},gridHeaderAlign:"center",gridBody:{fontWeight:"normal",fontStyle:"normal",fontSize:14,color:"#1d1f23"},gridBodyAlign:"left"},agg:{show:!1,rowPosition:"top",colPosition:"left"},function:{show:!0,function:["dimensionMerge","fixedGridHeader"]}},extend:{}},Xe={data:{pagination:!0,details:[{id:"measure",caption:"指标",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"measure",caption:"指标",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!1,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"REMOVE",caption:"删除"}]}]},{id:"dimension",caption:"维度",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"dimension",caption:"维度",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!1,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"SORT",caption:"排序"},{id:"REMOVE",caption:"删除"}]}]},{id:"filter",caption:"筛选",type:"GROUP",isCollapse:!1,enableRemove:!0,switchEditMode:!0,details:[{id:"filter",caption:"筛选项",subCaption:"筛选",disableCalcField:!0,showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,actions:[{id:"FILTER",caption:"过滤"},{id:"REMOVE",caption:"删除"}],expandActions:[{id:"FILTER",caption:"过滤"}]}]}]},style:{details:[{id:"graphics",caption:"绘图",type:"GROUP",isCollapse:!1,details:[{id:"color",caption:"当前配色",showCaption:!0,type:"ITEM",editorType:"COLOR",editorStyle:"ITEMS"}]},{id:"label",caption:"标签",type:"GROUP",enableSwitch:!0,details:[{id:"percentage",caption:"显示百分比",type:"ITEM",editorType:"CHECKBOX"},{id:"font",caption:"文字",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"scope",caption:"显示数据范围",showCaption:!0,type:"ITEM",editorType:"RADIO",items:[{id:"all",label:"全部数据"},{id:"max_min",label:"最大值/最小值"}]}]},{id:"legend",caption:"图例",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",showCaption:!0,type:"ITEM",editorType:"FONT"},{id:"position",caption:"数据位置",showCaption:!0,type:"ITEM",editorType:"POSITION",editorStyle:"DIRECTION",showCenter:!0}]}]}},Je={coordinateSystem:"NONE",chartCoordinateSystems:[{echartsType:"none",type:"NONE",name:"[pie]无坐标系[0]",id:"0",appId:"srfAppId"}],dechartDataGrid:{id:"0",appId:"srfAppId"},dechartLegend:{showLegend:!0,id:"0",appId:"srfAppId"},dechartSerieses:[{caption:"srfCaption",catalogField:"srfCatalogField",catalogCodeListId:"srfAppCodeListId",echartsType:"pie",chartCoordinateSystemId:"0",chartDataSetId:"0",chartSeriesEncode:{category:"srfCatalogField",value:"srfValue",type:"NONE",name:"坐标系编码",id:"0",appId:"srfAppId"},seriesLayoutBy:"column",seriesType:"pie",valueField:"srfValue",enableChartDataSet:!0,id:"pie_0",appId:"srfAppId"}],dechartTitle:{title:"srfCaption",showTitle:!1,id:"0",appId:"srfAppId"},chartDataSetGroups:[{appDEDataSetId:"srfAppDEDataSetId",appDataEntityId:"srfAppDataEntityId",name:"DEFAULT",id:"0",appId:"srfAppId"}],chartDataSets:[],fetchControlAction:{appDEMethodId:"srfAppDEDataSetId",appDataEntityId:"srfAppDataEntityId",id:"fetch",appId:"srfAppId"},readOnly:!0,autoLoad:!0,showBusyIndicator:!0,codeName:"PIE_Chart",controlType:"CHART",logicName:"srfCaption",appDataEntityId:"srfAppDataEntityId",controlParam:{id:"chart",appId:"srfAppId"},modelId:"B5AC8AE3-2186-497C-B6E8-BDBAE218B618",modelType:"PSDECHART",name:"chart",id:"srfAppId.srfAppDataEntityId.PIE_Chart",appId:"srfAppId"},We={caption:"",data:{measure:void 0,dimension:void 0,filter:void 0},style:{graphics:{colorScheme:"default",color:[]},label:{show:!1,percentage:!1,font:{fontWeight:"normal",fontStyle:"normal",fontSize:14,color:"#000"},scope:"all"},legend:{show:!0,font:{fontWeight:"normal",fontStyle:"normal",fontSize:14,color:"#000"},position:"left-top"}},extend:{}},Ye={coordinateSystem:"RADAR",chartCoordinateSystems:[{chartRadar:{chartCoordinateSystemId:"0",type:"radar",name:"[radar_0]雷达坐标系[0]",id:"0",appId:"srfAppId"},echartsType:"radar",type:"RADAR",name:"[radar_0]雷达坐标系[0]",id:"0",appId:"srfAppId"}],dechartDataGrid:{id:"0",appId:"srfAppId"},dechartLegend:{showLegend:!0,id:"0",appId:"srfAppId"},dechartSerieses:[{caption:"srfCaption",catalogField:"srfCatalogField",echartsType:"radar",chartCoordinateSystemId:"0",chartDataSetId:"0",seriesField:"srfSeriesField",seriesLayoutBy:"column",seriesType:"radar",valueField:"srfValue",enableChartDataSet:!0,id:"radar_0",appId:"srfAppId"}],dechartTitle:{title:"srfCaption",titlePos:"TOP",showTitle:!0,id:"0",appId:"srfAppId"},chartDataSetGroups:[{appDEDataSetId:"srfAppDEDataSetId",appDataEntityId:"srfAppDataEntityId",name:"DEFAULT",id:"0",appId:"srfAppId"}],chartDataSets:[],chartRadars:[{chartCoordinateSystemId:"0",type:"radar",name:"[radar_0]雷达坐标系[0]",id:"0",appId:"srfAppId"}],fetchControlAction:{appDEMethodId:"srfAppDEDataSetId",appDataEntityId:"srfAppDataEntityId",id:"fetch",appId:"srfAppId"},readOnly:!0,autoLoad:!0,showBusyIndicator:!0,codeName:"Radar_Chart",controlType:"CHART",logicName:"srfCaption",appDataEntityId:"srfAppDataEntityId",controlParam:{id:"chart",appId:"srfAppId"},modelId:"0517D092-EB9B-4300-91CA-906647294254",modelType:"PSDECHART",name:"chart",id:"srfAppId.srfAppDataEntityId.Radar_Chart",appId:"srfAppId"},$e={caption:"",data:{measure:void 0,dimension:void 0,filter:void 0},style:{graphics:{colorScheme:"default",color:[]},label:{show:!1,font:{fontWeight:"normal",fontStyle:"normal",fontSize:14,color:"#000"},scope:"all"},legend:{show:!0,font:{fontWeight:"normal",fontStyle:"normal",fontSize:14,color:"#000"},position:"left-top"}},extend:{}},Ke={data:{pagination:!0,details:[{id:"measure",caption:"指标",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"measure",caption:"指标",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:3,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"REMOVE",caption:"删除"}]}]},{id:"dimension",caption:"维度",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"dimension",caption:"维度",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!1,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"SORT",caption:"排序"},{id:"REMOVE",caption:"删除"}]}]},{id:"filter",caption:"筛选",type:"GROUP",isCollapse:!1,enableRemove:!0,switchEditMode:!0,details:[{id:"filter",caption:"筛选项",subCaption:"筛选",disableCalcField:!0,showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,actions:[{id:"FILTER",caption:"过滤"},{id:"REMOVE",caption:"删除"}],expandActions:[{id:"FILTER",caption:"过滤"}]}]}]},style:{details:[{id:"graphics",caption:"绘图",type:"GROUP",isCollapse:!1,details:[{id:"color",caption:"当前配色",showCaption:!0,type:"ITEM",editorType:"COLOR",editorStyle:"ITEMS"}]},{id:"label",caption:"标签",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"scope",caption:"显示数据范围",showCaption:!0,type:"ITEM",editorType:"RADIO",items:[{id:"all",label:"全部数据"},{id:"max_min",label:"最大值/最小值"}]}]},{id:"legend",caption:"图例",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",showCaption:!0,type:"ITEM",editorType:"FONT"},{id:"position",caption:"数据位置",showCaption:!0,type:"ITEM",editorType:"POSITION",editorStyle:"DIRECTION",showCenter:!0}]}]},extend:{}},Ze={data:{pagination:!0,details:[{id:"measure",caption:"指标/纵轴",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"measure",caption:"指标/纵轴",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!1,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"AXIS",caption:"应用轴"},{id:"CORDON",caption:"设置警戒线"},{id:"REMOVE",caption:"删除"}]}]},{id:"dimension",caption:"维度/横轴",type:"GROUP",isCollapse:!1,required:!0,enableRemove:!0,details:[{id:"dimension",caption:"维度/横轴",showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,max:3,actions:[{id:"UPDATE",caption:"设置显示名"},{id:"SORT",caption:"排序"},{id:"REMOVE",caption:"删除"}]}]},{id:"filter",caption:"筛选",type:"GROUP",isCollapse:!1,enableRemove:!0,switchEditMode:!0,details:[{id:"filter",caption:"筛选项",subCaption:"筛选",disableCalcField:!0,showCaption:!1,type:"ITEM",editorType:"DRAG",multiple:!0,actions:[{id:"FILTER",caption:"过滤"},{id:"REMOVE",caption:"删除"}],expandActions:[{id:"FILTER",caption:"过滤"}]}]}]},style:{details:[{id:"graphics",caption:"绘图",type:"GROUP",isCollapse:!1,details:[{id:"color",caption:"当前配色",showCaption:!0,type:"ITEM",editorType:"COLOR",editorStyle:"ITEMS"}]},{id:"xAxis",caption:"横轴",type:"GROUP",enableSwitch:!1,details:[{id:"showTitle",caption:"显示轴标题",type:"ITEM",editorType:"CHECKBOX"},{id:"titleFont",caption:"轴标题",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showLabel",caption:"显示轴标签",type:"ITEM",editorType:"CHECKBOX"},{id:"labelFont",caption:"轴标签",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showAxisline",caption:"显示轴线",type:"ITEM",editorType:"CHECKBOX"},{id:"axisline",caption:"显示轴线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"showGridline",caption:"显示网格线",type:"ITEM",editorType:"CHECKBOX"},{id:"gridline",caption:"显示网格线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"enableLabelInterval",caption:"开启轴标签间隔",type:"ITEM",editorType:"CHECKBOX"},{id:"labelInterval",caption:"标签间隔",showCaption:!0,type:"ITEM",editorType:"NUMBER"}]},{id:"yAxis",caption:"纵轴",type:"GROUP",enableSwitch:!1,details:[{id:"showTitle",caption:"显示轴标题",type:"ITEM",editorType:"CHECKBOX"},{id:"titleFont",caption:"显示轴标题",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showLabel",caption:"显示轴标签",type:"ITEM",editorType:"CHECKBOX"},{id:"labelFont",caption:"显示轴标签",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"showAxisline",caption:"显示轴线",type:"ITEM",editorType:"CHECKBOX"},{id:"axisline",caption:"显示轴线",type:"ITEM",editorType:"FONT",mode:"BORDER"},{id:"showGridline",caption:"显示网格线",type:"ITEM",editorType:"CHECKBOX"},{id:"gridline",caption:"显示网格线",type:"ITEM",editorType:"FONT",mode:"BORDER"}]},{id:"label",caption:"标签",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"scope",caption:"显示数据",showCaption:!0,type:"ITEM",editorType:"RADIO",items:[{id:"all",label:"全部数据"},{id:"max_min",label:"最大值/最小值"}]}]},{id:"legend",caption:"图例",type:"GROUP",enableSwitch:!0,details:[{id:"font",caption:"文字",showCaption:!0,type:"ITEM",editorType:"FONT",mode:"FONT"},{id:"position",caption:"数据位置",showCaption:!0,type:"ITEM",editorType:"POSITION",editorStyle:"DIRECTION"}]}]}},Qe={caption:"",data:{measure:void 0,dimension:void 0,filter:void 0},style:{graphics:{colorScheme:"default",color:[]},xAxis:{show:!0,showTitle:!0,titleFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showLabel:!0,labelFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showAxisline:!0,axisline:{borderStyle:"solid",borderSize:1,color:"#000"},showGridline:!1,gridline:{borderStyle:"solid",borderSize:1,color:"#000"},enableLabelInterval:!1,labelInterval:1},yAxis:{show:!0,showTitle:!0,titleFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showLabel:!0,labelFont:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},showAxisline:!0,axisline:{borderStyle:"dashed",borderSize:1,color:"#dddddd"},showGridline:!0,gridline:{borderStyle:"dashed",borderSize:1,color:"#dddddd"}},label:{show:!1,font:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},scope:"all"},legend:{show:!0,font:{fontWeight:"normal",fontStyle:"normal",fontSize:12,color:"#000"},position:"right-top"}},extend:{}},et={coordinateSystem:"XY",chartCoordinateSystems:[{chartGrid:{chartGridXAxis0Id:"0",chartGridYAxis0Id:"0",chartCoordinateSystemId:"0",type:"grid",name:"[scatter_0]直角坐标系[0]",id:"0",appId:"srfAppId"},echartsType:"cartesian2d",type:"XY",name:"[scatter_0]直角坐标系[0]",id:"0",appId:"srfAppId"}],dechartDataGrid:{id:"0",appId:"srfAppId"},dechartLegend:{showLegend:!0,id:"0",appId:"srfAppId"},dechartSerieses:[{catalogField:"srfCatalogField",echartsType:"scatter",chartCoordinateSystemId:"0",chartDataSetId:"0",chartSeriesEncode:{chartXAxisId:"0",chartYAxisId:"0",x:["srfCatalogField"],y:["srfValue"],itemId:"srfValue",itemName:"srfValue",type:"XY",name:"坐标系编码",id:"0",appId:"srfAppId"},seriesField:"srfValue",seriesLayoutBy:"column",seriesType:"scatter",valueField:"srfValue",enableChartDataSet:!0,id:"scatter_0",appId:"srfAppId"}],dechartTitle:{title:"srfCaption",showTitle:!0,id:"0",appId:"srfAppId"},chartDataSetGroups:[{appDEDataSetId:"srfAppDEDataSetId",appDataEntityId:"srfAppDataEntityId",name:"DEFAULT",id:"0",appId:"srfAppId"}],chartDataSets:[],chartXAxises:[{echartsPos:"xAxis",echartsType:"category",position:"bottom",type:"category",name:"axis_xAxis_0",id:"0",appId:"srfAppId"}],chartYAxises:[{echartsPos:"yAxis",echartsType:"value",position:"left",type:"numeric",name:"axis_yAxis_0",id:"0",appId:"srfAppId"}],fetchControlAction:{appDEMethodId:"fetchdefault",appDataEntityId:"web.reginfo",id:"fetch",appId:"srfAppId"},readOnly:!0,autoLoad:!0,showBusyIndicator:!0,codeName:"SCATTER_Chart",controlType:"CHART",logicName:"srfCaption",appDataEntityId:"srfAppDataEntityId",controlParam:{id:"chart",appId:"srfAppId"},modelId:"AF51908C-6D6F-4055-9E30-C6A599FB191C",modelType:"PSDECHART",name:"chart",id:"srfAppId.srfAppDataEntityId.PIE_Chart",appId:"srfAppId"},tt=[{type:"NUMBER",caption:"数字",icon:'\n 数字\n \n \n \n '},{type:"MULTI_SERIES_COL",caption:"多系列柱状图",icon:'\n 柱状图\n \n \n \n \n \n \n \n \n \n'},{type:"STACK_COL",caption:"堆叠柱状图",icon:'\n 堆叠柱状图\n \n \n \n \n \n \n \n \n \n \n \n'},{type:"ZONE_COL",caption:"分区柱状图",icon:'\n 分区柱状图\n \n \n \n \n \n \n \n \n \n \n \n \n'},{type:"MULTI_SERIES_BAR",caption:"多系列条形图",icon:'\n 条形图\n \n \n \n \n \n \n \n \n \n'},{type:"STACK_BAR",caption:"堆积条形图",icon:'\n 条形柱状图\n \n \n \n \n \n \n \n \n \n \n \n \n'},{type:"MULTI_SERIES_LINE",caption:"多系列折线图",icon:'\n 折线图\n \n \n \n \n \n \n'},{type:"ZONE_LINE",caption:"分区折线图",icon:'\n 分区折线图\n \n \n \n \n \n \n \n \n'},{type:"AREA",caption:"面积图",icon:'\n 面积图\n \n \n \n \n \n \n'},{type:"GRID",caption:"表格",icon:'\n 表格\n \n \n \n \n \n \n \n \n \n \n \n'},{type:"CROSSTABLE",caption:"交叉表",icon:'\n 交叉表\n \n \n \n \n \n \n \n \n'},{type:"PIE",caption:"饼图",icon:'\n 饼图\n \n \n \n \n \n \n'},{type:"RADAR",caption:"雷达图",icon:'\n 雷达图\n \n \n \n \n \n \n \n \n \n \n'},{type:"GAUGE",caption:"仪表盘",icon:'\n 仪表盘\n \n \n \n \n \n \n \n \n \n \n \n'},{type:"SCATTER",caption:"散点图",icon:'\n 散点图\n \n \n \n \n \n \n \n \n \n \n'}],at=function(e){return e.FILTERMODE="extend.filterMode",e.PQLVALUE="extend.pqlValue",e.AGGMODE="extend.aggmode",e.PERIOD="extend.period",e.SORT="extend.sort",e.AXIS="extend.axis",e.CORDON="extend.cordon",e}(at||{});function nt(e){switch(e){case"NUMBER":return{chartConfig:pe,chartDefaultValue:ue};case"GAUGE":return{chartConfig:he,chartModel:fe,chartDefaultValue:me};case"MULTI_SERIES_COL":return{chartConfig:ve,chartModel:ye,chartDefaultValue:ge};case"STACK_COL":return{chartConfig:we,chartModel:be,chartDefaultValue:Ie};case"ZONE_COL":return{chartConfig:Ce,chartModel:xe,chartDefaultValue:Te};case"MULTI_SERIES_BAR":return{chartConfig:Se,chartModel:Ee,chartDefaultValue:De};case"STACK_BAR":return{chartConfig:Ae,chartModel:Oe,chartDefaultValue:Me};case"MULTI_SERIES_LINE":return{chartConfig:Re,chartModel:Le,chartDefaultValue:ke};case"ZONE_LINE":return{chartConfig:Ne,chartModel:Fe,chartDefaultValue:Pe};case"AREA":return{chartConfig:ze,chartModel:Be,chartDefaultValue:Ge};case"GRID":return{chartConfig:Ve,chartModel:je,chartDefaultValue:Ue};case"CROSSTABLE":return{chartConfig:_e,chartModel:He,chartDefaultValue:qe};case"PIE":return{chartConfig:Xe,chartModel:Je,chartDefaultValue:We};case"RADAR":return{chartConfig:Ke,chartModel:Ye,chartDefaultValue:$e};case"SCATTER":return{chartConfig:Ze,chartModel:et,chartDefaultValue:Qe};default:throw new z("传入类型".concat(e,"未识别"))}}var it=g({name:"BIChartTypes",props:{chartType:{type:String,default:"NUMBER"}},emits:["select"],setup:function(e,t){var a=t.emit,n=s("chart-types"),i=x([]),r=x("");E((function(){return e.chartType}),(function(e){r.value=e}),{immediate:!0}),S((function(){i.value=tt}));return{ns:n,items:i,select:r,onSelect:function(e){a("select",e)}}},render:function(){var e=this;return T("div",{class:this.ns.b()},[this.items.map((function(t){return T(O("el-tooltip"),{effect:"dark",content:t.caption,placement:"top","show-after":200,"hide-after":0,"popper-class":e.ns.e("tooltip"),"show-arrow":!0},{default:function(){return T("div",{class:[e.ns.e("item"),e.ns.is("selected",e.select===t.type)],onClick:function(){return e.onSelect(t)},innerHTML:t.icon},null)}})}))])}}),rt=g({name:"BICollapseItem",props:{label:{type:String,required:!0},enableShowEmptyData:{type:Boolean,required:!1,default:!0},enableRemove:{type:Boolean,required:!1,default:!0},enableEditMode:{type:Boolean,required:!1,default:!0},enableSwitch:{type:Boolean,required:!1,default:!0},switchValue:{type:Boolean,required:!1,default:!0},name:{type:[String,Number],required:!0},required:{type:Boolean,default:!1},editMode:{type:String}},emits:["switchChange","svgClick"],setup:function(e,t){var a=t.emit;return{ns:s("collapse-item"),visible:x(!1),showEmptyDataSvg:function(){return T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[T("g",{id:"apm1.Base基础/1.icon图标/2.normal/more-vertical","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M8 4.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5zm0 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5zm0 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5z",id:"apm形状结合"},null)])])},editModeSvg:function(){return T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[T("g",{id:"akn1.Base基础/1.icon图标/2.normal/filter备份","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M1.6 2h12.8a.6.6 0 0 1 0 1.2H1.6a.6.6 0 1 1 0-1.2zm2.5 5.393h7.8a.6.6 0 0 1 0 1.2H4.1a.6.6 0 1 1 0-1.2zm2.5 5.416h2.8a.6.6 0 0 1 0 1.2H6.6a.6.6 0 1 1 0-1.2z",id:"akn形状结合"},null)])])},removeSvg:function(){return T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[T("g",{id:"aweaction/sweep","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M11.6 14.8h2.7v-4.7H1.7v4.7h2.7v-2.9h1.2v2.9h1.8v-3.9h1.2v3.9h1.8v-2.9h1.2v2.9zm2.7-5.9V6.2h-5v-5H6.7v5h-5v2.7h12.6zM5.5 5V1a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v4h4a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-13a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h4z",id:"awe形状结合"},null)])])},checkSvg:function(){return T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[T("g",{"stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M6.012 11.201L1.313 6.832l-.817.879 5.54 5.15 9.304-9.163-.842-.855z"},null)])])},ClickSvg:function(e,t,n){a("svgClick",{event:e,mode:t,value:n})},switchChange:function(){a("switchChange",!e.switchValue)}}},render:function(){var e=this;return T("div",{class:this.ns.b()},[T(O("el-collapse-item"),{name:this.name,class:this.ns.e("item-content")},{default:function(){var t,a;return null===(t=(a=e.$slots).default)||void 0===t?void 0:t.call(a)},title:function(){return T("div",{class:e.ns.e("item")},[T("div",{class:[e.ns.e("item-title"),e.ns.is("required",e.required)]},[e.label]),T("div",{class:e.ns.e("item-wrapper")},[e.enableShowEmptyData?T("div",{class:[e.ns.e("item-showEmptyData"),e.ns.e("item-div")],onClick:function(t){t.stopPropagation(),e.ClickSvg(t,"showEmptyData")}},[e.showEmptyDataSvg()]):null,e.enableEditMode?T(O("el-tooltip"),{effect:"dark",content:"切换编辑模式",placement:"top","popper-class":e.ns.e("tooltip")},{default:function(){return[T("div",{class:[e.ns.e("item-editMode"),e.ns.e("item-div")],onClick:function(t){t.stopPropagation(),e.visible=!0}},[T(O("el-popover"),{visible:e.visible,"onUpdate:visible":function(t){return e.visible=t},placement:"bottom-start","popper-class":e.ns.b("editMode-popover"),"show-arrow":!1,width:240,trigger:"click"},{reference:function(){return e.editModeSvg()},default:function(){return T("div",{class:e.ns.b("editMode-popover-content")},[T("div",{class:e.ns.b("editMode-popover-item"),onClick:function(t){t.stopPropagation(),e.visible=!1,e.ClickSvg(t,"editMode","default")}},[T("div",{class:e.ns.be("editMode-popover-item","text")},[A("基本")]),"pql"!==e.editMode&&e.checkSvg()]),T("div",{class:e.ns.b("editMode-popover-item"),onClick:function(t){t.stopPropagation(),e.visible=!1,e.ClickSvg(t,"editMode","pql")}},[T("div",{class:e.ns.be("editMode-popover-item","text")},[A("PQL")]),"pql"===e.editMode&&e.checkSvg()])])}})])]}}):null,e.enableRemove?T(O("el-tooltip"),{effect:"dark",content:"清空",placement:"top","popper-class":e.ns.e("tooltip")},{default:function(){return[T("div",{class:[e.ns.e("item-remove"),e.ns.e("item-div")],onClick:function(t){t.stopPropagation(),e.ClickSvg(t,"remove")}},[e.removeSvg()])]}}):null,e.enableSwitch?T("div",{class:[e.ns.e("item-switch")]},[T(O("el-switch"),{"model-value":e.switchValue,onChange:e.switchChange,onClick:function(e){e.stopPropagation()}},null)]):null])])}})])}});var ot=function(){function e(){f(this,e),this.map=new Map,this.maxListeners=100}var t;return v(e,[{key:"setMaxListeners",value:function(e){this.maxListeners=e}},{key:"getSize",value:function(e){return this.map.has(e)?this.map.get(e).length:0}},{key:"addListener",value:function(e,t){if(t instanceof Function){this.map.has(e)||this.map.set(e,[]);var a=this.map.get(e);if(!(a.length0)for(var n=0;n1?t-1:0),n=1;n1?a-1:0),i=1;i0&&e.splice(0,e.length);else if(e instanceof Object&&e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&delete e[t]}(e)})),this.map.clear()}}]),e}(),st=function(){function e(t){f(this,e),this.e=new ot,this.e.setMaxListeners(t||300)}return v(e,[{key:"getSize",value:function(e){return this.e.getSize(e)}},{key:"on",value:function(e,t){this.e.addListener(e,t)}},{key:"off",value:function(e,t){this.e.removeListener(e,t)}},{key:"emit",value:function(e){for(var t,a=arguments.length,n=new Array(a>1?a-1:0),i=1;i1?a-1:0),i=1;i=e.fontMin||t<=e.fontMax)&&(n=t),te.fontMax&&(n=e.fontMax)):((t>=e.borderMin||t<=e.borderMax)&&(n=t),te.borderMax&&(n=e.borderMax)),a("change",{fontSize:n,fontWeight:"italic"!==r.value?r.value:"normal",fontStyle:"italic"===r.value?"italic":"normal",borderSize:n,borderStyle:"solid"===r.value?"solid":"dashed"===r.value?"dashed":"doubleDashed"===r.value?"doubleDashed":"dotted"===r.value?"dotted":"solid",color:i.value})},p=w({get:function(){return"".concat(l.value.toString()," px")},set:function(e){var t=parseInt(e,10);Number.isNaN(t)?l.value=0:l.value=t,d()}}),u=x(["#000000","#2C2C2C","#50555C","#ACB3BF","#D0D3D9","#C4C4C4","#DADADA","#E5E5E5","#F0F0F0","#F24E1E","#E99C58","#FFC700","#FF4D00","#FF00D6","#D82E57","#8E1DE8","#0ACF83","#18A0FB","#A259FF","#907CFF"]);return{ns:n,fontItem:[{value:"normal",label:"常规"},{value:"bold",label:"加粗"},{value:"italic",label:"斜体"}],borderItem:[{value:"solid",label:"normalBorder"},{value:"dashed",label:"dashed"},{value:"doubleDashed",label:"doubleDashed"},{value:"dotted",label:"dotted"}],normalBorder:function(){return T("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"3",style:"font-family: Lucida Grande, Lucida Sans Unicode, Arial, Helvetica, sans-serif; font-size: 12px;"},[T("desc",null,[A("Line Type")]),T("defs",null,null),T("path",{fill:"none",d:"M 0 0 L 150 0","stroke-width":"3",stroke:"#cacaca","stroke-dasharray":"none"},null)])},dashed:function(){return T("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"3",style:"font-family: Lucida Grande, Lucida Sans Unicode, Arial, Helvetica, sans-serif; font-size: 12px;"},[T("desc",null,[A("Line Type")]),T("defs",null,null),T("path",{fill:"none",d:"M 0 0 L 150 0","stroke-width":"3",stroke:"#cacaca","stroke-dasharray":"8,6"},null)])},doubleDashed:function(){return T("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"3",style:"font-family: Lucida Grande, Lucida Sans Unicode, Arial, Helvetica, sans-serif; font-size: 12px;"},[T("desc",null,[A("Line Type")]),T("defs",null,null),T("path",{fill:"none",d:"M 0 0 L 150 0","stroke-width":"3",stroke:"#cacaca","stroke-dasharray":"16,6"},null)])},dotted:function(){return T("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"3",style:"font-family: Lucida Grande, Lucida Sans Unicode, Arial, Helvetica, sans-serif; font-size: 12px;"},[T("desc",null,[A("Line Type")]),T("defs",null,null),T("path",{fill:"none",d:"M 0 0 L 150 0","stroke-width":"3",stroke:"#cacaca","stroke-dasharray":"2,6"},null)])},selectValue:r,number:l,numberPx:p,addNumber:function(){return T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[T("g",{id:"abdnavigation/angle-up","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M7.978 11.498l-.005.005L2.3 5.831 3.13 5l4.848 4.848L12.826 5l.83.831-5.673 5.672-.005-.005z",id:"abd形状结合",transform:"rotate(180 7.978 8.252)"},null)])])},minusNumber:function(){return T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[T("g",{id:"aaynavigation/angle-down","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M7.978 11.997l-.005.006L2.3 6.33l.83-.831 4.848 4.848L12.826 5.5l.83.83-5.673 5.673-.005-.006z",id:"aay形状结合"},null)])])},handleColNumberChange:function(t){var a;c.value=!1;var n=null===(a=t.target)||void 0===a?void 0:a.value,i=parseInt(n,10);"FONT"===e.mode?((i>=e.fontMin||i<=e.fontMax)&&(l.value=i),ie.fontMax&&(l.value=e.fontMax)):((i>=e.borderMin||i<=e.borderMax)&&(l.value=i),ie.borderMax&&(l.value=e.borderMax)),d()},changeNumber:function(t){"add"===t?(l.value+=1,"FONT"===e.mode?l.value>e.fontMax&&(l.value=e.fontMax):l.value>e.borderMax&&(l.value=e.borderMax)):"minus"===t&&(l.value-=1,"FONT"===e.mode?l.value'},{value:"top",caption:"正上",icon:''},{value:"right-top",caption:"右上",icon:''},{value:"left-bottom",caption:"左下",icon:''},{value:"bottom",caption:"正下",icon:''},{value:"right-bottom",caption:"右下",icon:''},{value:"left",caption:"正左",icon:''},{value:"right",caption:"正右",icon:''}],gt=[{value:"left",caption:"靠左",icon:''},{value:"center",caption:"居中",icon:''},{value:"right",caption:"靠右",icon:''}],bt=g({name:"BIPositionSelect",props:{value:{type:String},editorStyle:{type:String,default:"CENTER"},disabled:{type:Boolean,default:!1},showCenter:{type:Boolean,default:!1}},emits:["change"],setup:function(e,t){var a=t.emit,n=s("position-select"),i=x("");E((function(){return e.value}),(function(){e.value?i.value=e.value:"CENTER"===e.editorStyle?i.value=gt[0].value:i.value=yt[0].value}),{immediate:!0});return{ns:n,selected:i,onSelect:function(t){e.disabled||a("change",t.value)}}},render:function(){var e=this,t=[];return t="CENTER"===this.editorStyle?gt:yt,T("div",{class:this.ns.b()},[t.map((function(t){return"left"!==t.value&&"right"!==t.value||e.showCenter?T(O("el-tooltip"),{effect:"dark",content:t.caption,placement:"top","show-after":200,"hide-after":0,"popper-class":e.ns.e("tooltip"),"show-arrow":!0},{default:function(){return T("div",{class:[e.ns.e("item"),e.ns.is("selected",e.selected===t.value),e.ns.is("disabled",e.disabled)],onClick:function(){return e.onSelect(t)},innerHTML:t.icon},null)}}):null}))])}});function wt(e,t){"[object Array]"===Object.prototype.toString.call(e)?e.forEach((function(e){wt(e,t)})):"[object Object]"===Object.prototype.toString.call(e)&&Object.keys(e).forEach((function(a){var n=e[a];"object"===h(n)?(Array.isArray(n),wt(e[a],t)):"string"==typeof n&&(e[a]=t(n))}))}function It(e,t){var a=t.appId,n=t.appDataEntityId,i=t.caption,r=t.catalog,o=t.value,s=t.seriesField,l=t.catalogCodeListId,c=void 0===l?"":l,d=t.seriesCodeListId,p=void 0===d?"":d,u=t.serieText,h=t.catname,f=t.jsonFormat;return e.replaceAll("srfAppId",a).replaceAll("srfAppDataEntityId",n).replaceAll("srfCaption",i).replaceAll("srfCatalogField",r).replaceAll("srfValue",o).replaceAll("srfSeriesField",s).replaceAll("srfCatalogCodeListId",c).replaceAll("srfSeriesCodeListId",p).replaceAll("srfCatalogName",h).replaceAll("srfSerieText",u).replaceAll("srfJsonFormat",f)}function Ct(e,t){try{if(t.reportUIModel)return JSON.parse(t.reportUIModel)[e]}catch(a){ibiz.message.error("解析报表UI模型错误")}}function Tt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=[],n=Ct("extend",e);return t.length>0&&t.forEach((function(e){var t={name:e.measureTag};e.measureParams&&(t.param=e.measureParams),n&&n["aggmode@".concat(e.measureTag)]&&(t.aggmode=n["aggmode@".concat(e.measureTag)]),a.push(t)})),a}function xt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=[],n=Ct("extend",e);return t.length>0&&t.forEach((function(e){var t={name:e.dimensionTag};e.dimensionParams&&(t.param=e.dimensionParams),n&&n["period@".concat(e.dimensionTag)]&&(t.period=n["period@".concat(e.dimensionTag)]),a.push(t)})),a}function Et(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=[],i=Ct("extend",e);return t.length>0&&t.forEach((function(e){i&&i["sort@".concat(e.measureTag)]&&n.push("".concat(e.measureTag,",").concat(i["sort@".concat(e.measureTag)]))})),a.length>0&&a.forEach((function(e){i&&i["sort@".concat(e.dimensionTag)]&&(e.textAppDEFieldId?n.push("".concat(e.dimensionTag,"_text,").concat(i["sort@".concat(e.dimensionTag)])):n.push("".concat(e.dimensionTag,",").concat(i["sort@".concat(e.dimensionTag)])))})),n.join(";")||void 0}function St(e,t,a,n){var i=a.appDataEntityId,r=a.caption,o=a.dimension,s=[];return e.forEach((function(e,a){var l=H(t),c={appId:ibiz.env.appId,appDataEntityId:i,caption:r,catalog:o.dimensionTag,catname:o.dimensionName,value:e.measureTag,serieText:e.measureName,seriesCodeListId:e.appCodeListId,catalogCodeListId:o.appCodeListId,jsonFormat:e.jsonFormat};Object.assign(l,{id:"".concat(l.seriesType,"_").concat(a)}),c.catalogCodeListId&&Object.assign(l,{catalogCodeListId:"srfCatalogCodeListId"}),c.seriesCodeListId&&Object.assign(l,{seriesCodeListId:"srfSeriesCodeListId"}),c.jsonFormat&&Object.assign(l,{jsonFormat:"srfJsonFormat"}),wt(l,(function(e){return It(e,c)})),n&&n(l,a),s.push(l)})),s}function Dt(e,t){var a=[];if(e.length){var n=e[0].split(".").pop(),i=t.findIndex((function(e){return e.dimensionTag===n}));if(i>=0){var r=t[i];a.push({measureTag:r.dimensionTag,measureName:r.dimensionName,appCodeListId:r.appCodeListId,appId:ibiz.env.appId})}}return a}function Ot(e,t){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||!e.length)return{"EC.name":t.serieText,"EC.tooltip":JSON.stringify({formatter:"function(param){\n const tempdata = param.data[2];\n const chartData = JSON.parse(localStorage.getItem(tempdata._chartid));\n const names = param.name.split('_');\n const catalogData = tempdata._catalogLevelData;\n\n let value = ".concat(n," ? param.value[0] : param.value[1];\n if('").concat(t.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(value), '").concat(t.jsonFormat,"') || value;\n }\n // 计算维度项分层\n let dimcatalogs = '';\n catalogData.forEach((item) => {\n let text = item.valueText || '未定义'\n if(chartData && Object.keys(chartData).length > 0 && chartData[item.codename] && chartData[item.codename][item.value]){\n text = chartData[item.codename][item.value];\n }\n const dimitem = '
' + item.name + ':
' +text + '
'\n dimcatalogs += dimitem;\n })\n\n return '
'+ dimcatalogs +'
'+ param.marker + param.seriesName +':
'+ value +'
' \n }")})};var i=e[0],r={"EC.tooltip":JSON.stringify({formatter:"function(param){\n const {data} = param; \n const chartData = JSON.parse(localStorage.getItem(data[2]._chartid));\n const catalogData = data[2]._catalogLevelData;\n\n let tempName = param.seriesName;\n const field = Object.keys(data[2]).find(key => {\n return key !== '_groupName' && data[2][key] === param.seriesName;\n })\n if(field && chartData && chartData[field]){\n tempName = chartData[field][param.seriesName];\n }\n // 计算维度项分层\n let dimcatalogs = '';\n catalogData.forEach((item) => {\n let text = item.valueText || '未定义'\n if(chartData && Object.keys(chartData).length > 0 && chartData[item.codename] && chartData[item.codename][item.value]){\n text = chartData[item.codename][item.value];\n }\n const dimitem = '
' + item.name + ':
' +text + '
'\n dimcatalogs += dimitem;\n })\n\n let value = ".concat(n," ? param.value[0] : param.value[1];\n if('").concat(t.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(value), '").concat(t.jsonFormat,"') || value;\n }\n return '
' + dimcatalogs + \n '
'+\n '
").concat(i.measureName,":
'+\n '
'+ tempName +'
'+\n '
' + \n '
'+ \n '
' + param.marker + '").concat(t.serieText,":
'+\n '
' + value + '
'+\n '
'+\n '
'\n }")})};return a&&Object.assign(r,{"EC.stack":t.serieText}),r}function At(e,t,a){return{"EC.tooltip":JSON.stringify({formatter:"function(param){\n let tempName = param.name;\n const { data } = param;\n const getOrigin = (origin) => {\n if (origin && origin.$origin) {\n return getOrigin(origin.$origin);\n }\n return origin;\n };\n const origin = getOrigin(data.value[1].$origin);\n const chartData = JSON.parse(localStorage.getItem(data.value[1]._chartid));\n if(origin){\n const field = Object.keys(origin).find(key => {\n return origin[key] === param.name;\n })\n if(field && chartData && chartData[field]){\n tempName = chartData[field][param.name];\n }\n }else if(chartData){\n const _tempname = Object.keys(chartData).find(_chart => {\n return chartData[_chart][param.name]\n })\n if(_tempname){\n tempName = chartData[_tempname][param.name]\n }\n }\n \n let value = param.value[0];\n if('".concat(e.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(value), '").concat(e.jsonFormat,"') || value;\n }\n return '
' + \n '
'+\n '
").concat(a.dimensionName,":
' + \n '
'+tempName+'
' +\n '
' + \n '
'+\n '
'+ param.marker + '").concat(t[0].measureName,":
'+\n '
' + value + '
' + \n '
'+\n '
'\n }")})}}var Mt=[q.IS_NULL,q.IS_NOT_NULL,q.EXISTS,q.NOT_EXISTS],Lt=[{valueOP:q.EQ,label:"等于"},{valueOP:q.NOT_EQ,label:"不等于"},{valueOP:q.GT,label:"大于"},{valueOP:q.GT_AND_EQ,label:"大于等于"},{valueOP:q.LT,label:"小于"},{valueOP:q.LT_AND_EQ,label:"小于等于"},{valueOP:q.IS_NULL,label:"为空"},{valueOP:q.IS_NOT_NULL,label:"非空"},{valueOP:q.IN,label:"属于"},{valueOP:q.NOT_IN,label:"不属于"},{valueOP:q.LIKE,label:"文本包含"},{valueOP:q.LIFT_LIKE,label:"文本左包含"},{valueOP:q.RIGHT_LIKE,label:"文本右包含"},{valueOP:q.EXISTS,label:"存在"},{valueOP:q.NOT_EXISTS,label:"不存在"}],Rt={string:[q.EQ,q.NOT_EQ,q.IS_NULL,q.IS_NOT_NULL,q.USER_LIKE,q.LIKE,q.LIFT_LIKE,q.RIGHT_LIKE],number:[q.EQ,q.GT,q.GT_AND_EQ,q.LT,q.LT_AND_EQ,q.NOT_EQ,q.IS_NULL,q.IS_NOT_NULL,q.IN,q.NOT_IN],date:[q.EQ,q.GT,q.GT_AND_EQ,q.LT,q.LT_AND_EQ,q.NOT_EQ,q.IS_NULL,q.IS_NOT_NULL,q.IN,q.NOT_IN],dropdown:[q.EQ,q.NOT_EQ,q.IS_NULL,q.IS_NOT_NULL,q.IN,q.NOT_IN],dataPicker:[q.EQ,q.NOT_EQ,q.IS_NULL,q.IS_NOT_NULL,q.IN,q.NOT_IN]},kt={string:{appId:"",editorType:"TEXTBOX"},number:{appId:"",editorType:"NUMBER"},date:{appId:"",editorType:"DATEPICKEREX",dateTimeFormat:"YYYY-MM-DD"},daterange:{appId:"",editorType:"DATERANGE_SWITCHUNIT",dateTimeFormat:"YYYY-MM-DD",editorParams:{defaultUnit:"DAY",switchUnit:"false"}},dropdown:{appId:"",valueType:"SIMPLE",editorType:"MDROPDOWNLIST",appCodeListId:"",editorParams:{overflowMode:"ellipsis"}},dataPicker:{appId:"",editorType:"ADDRESSPICKUP",appDEDataSetId:"fetchdefault",objectIdField:"srfkey",objectNameField:"srfmajortext",valueType:"OBJECTS",editorParams:{overflowMode:"ellipsis"}}};function Ft(e){var t=I({},kt[e.type]);return"dropdown"===e.type&&Object.assign(t,{appCodeListId:e.appCodeListId}),"dataPicker"===e.type&&Object.assign(t,{appDataEntityId:e.appDataEntityId}),t}function Nt(e){var t,a=Ct("filter",e),n=Ct("extend",e),i=[];if(n&&n.pqlValue&&i.push({nodeType:"CUSTOM",customType:"PQL",customCond:n.pqlValue}),a&&a.length>0){var r=a.map((function(e){return e.condition})).filter((function(e){return!(null==(t=e)||ht(t));var t}));r&&r.length>0&&(r.forEach((function(e){Array.isArray(e.value)&&(e.value=e.value.map((function(e){return e.srfkey})).join(","))})),i.push.apply(i,d(r)))}i.length>0&&(t=X([{nodeType:"GROUP",logicType:"AND",children:i}]));return t}function Pt(e){return Bt.apply(this,arguments)}function Bt(){return(Bt=b(y().mark((function e(t){var a,n,i;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ibiz.hub.getAppDataEntity(t,ibiz.env.appId);case 2:return a=e.sent,n="/jsonschema/".concat(a.name),0===a.dynaSysMode&&ibiz.appData&&(n+="?dynamodeltag=".concat(ibiz.appData.dynamodeltag)),e.next=7,ibiz.net.get(n);case 7:return i=e.sent,e.abrupt("return",i.data);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function zt(e){return Gt.apply(this,arguments)}function Gt(){return(Gt=b(y().mark((function e(t){var a,n;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.properties){e.next=2;break}return e.abrupt("return",[]);case 2:if(a=t.properties,Object.keys(a).length>0){e.next=5;break}return e.abrupt("return",[]);case 5:return n=[],Object.keys(a).forEach((function(e){var t,i="string",r=a[e].type;switch(a[e].type){case"string":"date-time"===a[e].format&&(i="date"),a[e].$ref&&(i="dataPicker"),a[e].enumSource&&(i="dropdown");break;case"integer":case"number":i="number",a[e].enumSource&&(i="dropdown");break;default:a[e].$ref&&(i="dataPicker")}n.push({type:i,originalType:r,appDEFieldId:e,valueOPs:Rt[i],caption:a[e].description,appDataEntityId:null===(t=a[e].$ref)||void 0===t?void 0:t.split(".")[0],appCodeListId:a[e].enumSource})})),e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vt(e){return jt.apply(this,arguments)}function jt(){return(jt=b(y().mark((function t(a){var n,i,r,o,s;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a.parampsdeuiactiontag){t.next=6;break}return n=a.parampsdeuiactiontag.split("@"),i=e(n,2),r=i[0],o=i[1],t.next=4,ibiz.hub.getAppDataEntity(o,ibiz.env.appId);case 4:return s=t.sent,t.abrupt("return","".concat(r,"@").concat(s.codeName));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ut(e,t){return _t.apply(this,arguments)}function _t(){return(_t=b(y().mark((function t(a,n){var i,r,o,s,l,c,d,p,u,h,f;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a.psdefid){t.next=11;break}if(r=null===(i=a.psdefid.split(".").pop())||void 0===i?void 0:i.toLowerCase(),o=a.pssysbicubeid.split(".").pop(),s=n.find((function(e){return e.appDEFieldId===r}))){t.next=10;break}return t.next=7,ibiz.hub.getAppDataEntity(o,ibiz.env.appId);case 7:c=t.sent,(d=null==c||null===(l=c.minorAppDERSs)||void 0===l?void 0:l.find((function(e){return e.parentAppDEFieldId===r})))&&d.majorAppDataEntityId&&(p=d.majorAppDataEntityId.split("."),u=e(p,2),h=u[1],f=n.find((function(e){return e.appDEFieldId===h})),s=I(I({},f),{},{appDEFieldId:r}));case 10:return t.abrupt("return",s);case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function Ht(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qt={exports:{}};!function(e,t){!function(t,a){e.exports=a()}(0,(function(){var e=[],t=[],a={},n={},i={};function r(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function o(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function s(e,t){return e.replace(t[0],(function(a,n){var i,r,s=(i=t[1],r=arguments,i.replace(/\$(\d{1,2})/g,(function(e,t){return r[t]||""})));return o(""===a?e[n-1]:a,s)}))}function l(e,t,n){if(!e.length||a.hasOwnProperty(e))return t;for(var i=n.length;i--;){var r=n[i];if(r[0].test(t))return s(t,r)}return t}function c(e,t,a){return function(n){var i=n.toLowerCase();return t.hasOwnProperty(i)?o(n,i):e.hasOwnProperty(i)?o(n,e[i]):l(i,n,a)}}function d(e,t,a,n){return function(n){var i=n.toLowerCase();return!!t.hasOwnProperty(i)||!e.hasOwnProperty(i)&&l(i,i,a)===i}}function p(e,t,a){return(a?t+" ":"")+(1===t?p.singular(e):p.plural(e))}return p.plural=c(i,n,e),p.isPlural=d(i,n,e),p.singular=c(n,i,t),p.isSingular=d(n,i,t),p.addPluralRule=function(t,a){e.push([r(t),a])},p.addSingularRule=function(e,a){t.push([r(e),a])},p.addUncountableRule=function(e){"string"!=typeof e?(p.addPluralRule(e,"$0"),p.addSingularRule(e,"$0")):a[e.toLowerCase()]=!0},p.addIrregularRule=function(e,t){t=t.toLowerCase(),e=e.toLowerCase(),i[e]=t,n[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach((function(e){return p.addIrregularRule(e[0],e[1])})),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach((function(e){return p.addPluralRule(e[0],e[1])})),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach((function(e){return p.addSingularRule(e[0],e[1])})),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(p.addUncountableRule),p}))}(qt);var Xt=Ht(qt.exports);Xt.addPluralRule(/(matr|vert|ind)ix|ex$/,"$1ices");var Jt=[{valueOP:q.EQ,label:"等于",sqlOP:"="},{valueOP:q.NOT_EQ,label:"不等于",sqlOP:"<>"},{valueOP:q.GT,label:"大于",sqlOP:">"},{valueOP:q.GT_AND_EQ,label:"大于等于",sqlOP:">="},{valueOP:q.LT,label:"小于",sqlOP:"<"},{valueOP:q.LT_AND_EQ,label:"小于等于",sqlOP:"<="},{valueOP:q.IS_NULL,label:"为空",sqlOP:"IS NULL"},{valueOP:q.IS_NOT_NULL,label:"非空",sqlOP:"IS NOT NULL"},{valueOP:q.IN,label:"属于",sqlOP:"IN"},{valueOP:q.NOT_IN,label:"不属于",sqlOP:"NOT IN"},{valueOP:q.LIKE,label:"文本包含",sqlOP:"LIKE"}],Wt=new Map;Jt.forEach((function(e){Wt.set(e.valueOP,e)}));var Yt=new Map;Jt.forEach((function(e){Yt.set(e.sqlOP,e.valueOP)}));var $t=function(e){try{for(var t=e.split(" "),a=[],n=0;n= STARTOFWEEK('").concat(s,"')) AND (").concat(t," <= STARTOFWEEK('").concat(l,"'))"):"MONTH"===a?"(".concat(t," >= STARTOFMONTH('").concat(s,"')) AND (").concat(t," <= STARTOFMONTH('").concat(l,"'))"):"QUARTER"===a?"(".concat(t," >= STARTOFQUARTER('").concat(s,"')) AND (").concat(t," <= STARTOFQUARTER('").concat(l,"'))"):"YEAR"===a?"(".concat(t," >= STARTOFYEAR('").concat(s,"')) AND (").concat(t," <= STARTOFYEAR('").concat(l,"'))"):"(".concat(t," >= TIMESTAMP('").concat(s,"')) AND (").concat(t," <= TIMESTAMP('").concat(l,"'))")}},{key:"handleStringToDate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"DYNAMIC",a=d(e.matchAll(/\w+\('(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})'\)/g)).map((function(e){return e[1]}));if(a&&a.length){var n=this.computedDateUnit(e),i=this.computedDateTypesTime(n,t,a[0],a[1]);return{unit:n,type:t,start:i.start,end:i.end}}}},{key:"computedDateUnit",value:function(e){var t=Zt.find((function(t){return e.indexOf(t.tag)>=0}));return null!=t&&t.unit?t.unit:"DAY"}},{key:"computedDynamicTimeToDate",value:function(e,t,a,n){if("STATIC"===t){var i=new Date(1e3*a),r=new Date(1e3*n);return"YEAR"===e?[i.getFullYear(),r.getFullYear()]:[i.toLocaleDateString(),r.toLocaleDateString()]}var o=new Date;if(o.setHours(0,0,0,0),"WEEK"===e)return[this.timeSpanConvertToWeek(o,a),this.timeSpanConvertToWeek(o,n)];if("MONTH"===e)return[this.timeSpanConvertToMonth(o,a),this.timeSpanConvertToMonth(o,n)];if("QUARTER"===e)return[this.timeSpanConvertToQuarter(o,a),this.timeSpanConvertToQuarter(o,n)];if("YEAR"===e)return[o.getFullYear()-a,o.getFullYear()-n];var s=24*a*60*60*1e3,l=24*n*60*60*1e3,c=new Date(o.getTime()+s),d=new Date(o.getTime()+l);return[c.toLocaleDateString().replaceAll("/","-"),d.toLocaleDateString().replaceAll("/","-")]}},{key:"timeSpanConvertToQuarter",value:function(e,t){var a=Math.floor(t/4),n=t%4,i=e.getFullYear()-a,r=e.getMonth()+1,o=Math.ceil(r/3)-n;return o<0&&(i-=1,o+=4),o>4&&(i+=1,o-=4),"".concat(i,"-").concat(3*o)}},{key:"timeSpanConvertToWeek",value:function(e,t){var a=e.getTime();return new Date(a-7*t*24*60*60*1e3).toLocaleDateString()}},{key:"timeSpanConvertToMonth",value:function(e,t){var a=Math.floor(t/12),n=t%12,i=e.getFullYear()-a,r=e.getMonth()+1-n;return r<0&&(i-=1,r+=12),r>12&&(i+=1,r-=12),"".concat(i,"-").concat(r)}},{key:"completeTimeFormat",value:function(e,t){var a=new Date(e);return"START"===t?a.setHours(0,0,0,0):a.setHours(23,59,59,0),re(a).format("YYYY-MM-DD HH:mm:ss")}},{key:"computedDateTypesTime",value:function(e,t,a,n){return"STATIC"===t?this.computedStaticTime(e,a,n):this.computedDynamicTime(e,a,n)}},{key:"computedDynamicTime",value:function(e,t,a){switch(e){case"DAY":default:return this.computedDaysSpace(t,a);case"WEEK":return this.computedWeeksSpace(t,a);case"MONTH":return this.computedMonthsSpace(t,a);case"QUARTER":return this.computedQuartersSpace(t,a);case"YEAR":return this.computedYearsSpace(t,a)}}},{key:"computedYearsSpace",value:function(e,t){var a=(new Date).getFullYear();return{start:new Date(e).getFullYear()-a,end:new Date(t).getFullYear()-a}}},{key:"computedQuartersSpace",value:function(e,t){var a=new Date,n=new Date(e),i=new Date(t),r=function(e,t){var a=e.getFullYear(),n=e.getMonth()+1,i=Math.ceil(n/3),r=t.getFullYear(),o=t.getMonth()+1;return 4*(r-a)-i+Math.ceil(o/3)};return{start:r(a,n),end:r(a,i)}}},{key:"computedDaysSpace",value:function(e,t){var a=new Date,n=new Date(e),i=new Date(t);return a.setHours(0,0,0,0),n.setHours(0,0,0,0),i.setHours(0,0,0,0),{start:(n.getTime()-a.getTime())/864e5,end:(i.getTime()-a.getTime())/864e5}}},{key:"computedWeeksSpace",value:function(e,t){var a=this,n=new Date,i=new Date(e),r=new Date(t);n.setHours(0,0,0,0),i.setHours(0,0,0,0),r.setHours(0,0,0,0);var o=function(e,t){var n=a.getDateWeekMonday(e);return(a.getDateWeekMonday(t).getTime()-n.getTime())/6048e5};return{start:o(n,i),end:o(n,r)}}},{key:"computedMonthsSpace",value:function(e,t){var a=new Date,n=new Date(e),i=new Date(t),r=function(e,t){var a=e.getFullYear(),n=e.getMonth()+1;return 12*(t.getFullYear()-a)-n+(t.getMonth()+1)};return{start:r(a,n),end:r(a,i)}}},{key:"getDateWeekMonday",value:function(e){var t=e.getDay(),a=t;0===t&&(a=7);var n=e.getTime()-24*(a-1)*60*60*1e3;return new Date(n)}},{key:"computedStaticTime",value:function(e,t,a){switch(e){case"DAY":default:return this.computedDaysTime(t,a);case"WEEK":return this.computedWeeksTime(t,a);case"MONTH":return this.computedMonthsTime(t,a);case"QUARTER":return this.computedQuartersTime(t,a);case"YEAR":return this.computedYearsTime(t,a)}}},{key:"computedDaysTime",value:function(e,t){var a=new Date(e),n=new Date(t);return a.setHours(0,0,0,0),n.setHours(23,59,59,0),{start:a.getTime()/1e3,end:n.getTime()/1e3}}},{key:"computedWeeksTime",value:function(e,t){var a=new Date(e),n=new Date(t);return a.setHours(0,0,0,0),n.setHours(23,59,59,0),{start:a.getTime()/1e3,end:n.getTime()/1e3}}},{key:"computedMonthsTime",value:function(e,t){var a=new Date(e),n=new Date(t);return a.setHours(0,0,0,0),[1,3,5,7,8,10,12].includes(n.getMonth()+1)?n.setDate(31):1===n.getMonth()?n.setDate(29):n.setDate(30),n.setHours(23,59,59,0),{start:a.getTime()/1e3,end:n.getTime()/1e3}}},{key:"computedQuartersTime",value:function(e,t){var a=new Date(e),n=new Date(t);return a.setHours(0,0,0,0),n.setHours(23,59,59,0),{start:a.getTime()/1e3,end:n.getTime()/1e3}}},{key:"computedYearsTime",value:function(e,t){var a=new Date(e),n=new Date(t);return a.setHours(0,0,0,0),n.setMonth(11),n.setDate(31),n.setHours(23,59,59,0),{start:a.getTime()/1e3,end:n.getTime()/1e3}}}]),e}();var ea=g({name:"BIFilterItem",props:{field:{type:Object,required:!0},condition:{type:Object},context:{type:Object,required:!0},type:{type:String},params:{type:Object,required:!0},modal:{type:Object,required:!0}},emits:{change:function(e){return!0},mateChange:function(e){return!0}},setup:function(e,t){var a=t.emit,n=s("bi-filter-item"),i=x(void 0),r=x(void 0),o=x(void 0),l=x({value:null,valueOP:null,nodeType:"FIELD",field:e.field.appDEFieldId}),c=x(!1),d=new Qt,p=w((function(){return Lt.filter((function(t){return e.field.valueOPs.includes(t.valueOP)}))})),u=function(){var t=b(y().mark((function t(){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.condition&&(l.value=I({},e.condition)),"date"===e.field.type&&"PQL"===l.value.customType?(c.value=!0,i.value=I({},kt.daterange),l.value.value=d.handleStringToDate(l.value.customCond,e.type),l.value.valueOP="IN"):i.value=Ft(e.field),t.next=4,J(i.value);case 4:if(r.value=t.sent,!r.value){t.next=9;break}return t.next=8,r.value.createController(i.value,{context:e.context,params:e.params});case 8:o.value=t.sent;case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();u();var h=function(){e.modal.dismiss()},f=function(e){l.value.value=e},m=function(){var t=b(y().mark((function t(){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o.value=void 0,i.value=I({},kt.daterange),t.next=4,J(i.value);case 4:if(r.value=t.sent,!r.value){t.next=9;break}return t.next=8,r.value.createController(i.value,{context:e.context,params:e.params});case 8:o.value=t.sent;case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),v=function(){var t=b(y().mark((function t(){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o.value=void 0,i.value=Ft(e.field),t.next=4,J(i.value);case 4:if(r.value=t.sent,!r.value){t.next=9;break}return t.next=8,r.value.createController(i.value,{context:e.context,params:e.params});case 8:o.value=t.sent;case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),g=function(){var t=b(y().mark((function t(a){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:l.value.valueOP=a,f(null),c.value?"date"===e.field.type&&"IN"===a||(c.value=!1,v()):"date"===e.field.type&&"IN"===a&&(c.value=!0,m());case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),C=function(){if(l.value.valueOP&&Mt.includes(l.value.valueOP))return null;if(o.value){var e=O(r.value.formEditor);return L(e,{value:l.value.value,controller:o.value,onChange:function(e,t){f(e)}})}};return{ns:n,onClose:h,onConfirm:function(){if(c.value){var t={nodeType:"CUSTOM",customType:"PQL",customCond:d.handleDateToString(l.value.value,e.field.appDEFieldId),field:e.field.appDEFieldId};a("mateChange",l.value.value.type),a("change",t)}else a("change",l.value);h()},renderContent:function(){var t,a;return T("div",{class:n.e("content")},[T("div",{class:n.em("content","field")},[T(O("el-select"),{"model-value":l.value.field},{default:function(){return[T(O("el-option"),{key:e.field.appDEFieldId,value:e.field.appDEFieldId,label:e.field.caption},null)]}})]),T("div",{class:n.em("content","option")},[T(O("el-select"),{"model-value":l.value.valueOP,onChange:function(e){g(e)}},(a=t=p.value.map((function(e){return T(O("el-option"),{key:e.valueOP,value:e.valueOP,label:e.label},null)})),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!M(a)?t:{default:function(){return[t]}}))]),T("div",{class:n.em("content","editor")},[C()])])}}},render:function(){return T("div",{class:this.ns.b()},[T("div",{class:this.ns.e("header")},[T("span",{class:this.ns.em("header","caption")},[A("筛选")]),T("span",{class:this.ns.em("header","icon")},[T(O("ion-icon"),{name:"close-outline",onClick:this.onClose},null)])]),this.renderContent(),T("div",{class:this.ns.e("footer")},[T(O("el-button"),{text:!0,onClick:this.onClose},{default:function(){return[A("取消")]}}),T(O("el-button"),{onClick:this.onConfirm},{default:function(){return[A("确定")]}})])])}}),ta=g({name:"BITimeSelect",props:{value:{type:Object,default:function(){}},modal:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,required:!0}},emits:["change"],setup:function(e,t){var a=t.emit,n=s("bi-time-select"),i=x(),r=x(),o=x(),l=x({unit:"DAY",type:"DYNAMIC",start:-7,end:0}),c=function(){var t=b(y().mark((function t(){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i.value={appId:"",editorType:"DATERANGE_SWITCHUNIT",dateTimeFormat:"YYYY-MM-DD"},t.next=3,J(i.value);case 3:if(r.value=t.sent,!r.value){t.next=8;break}return t.next=7,r.value.createController(i.value,{context:e.context,params:e.params});case 7:o.value=t.sent;case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();E((function(){return e.value}),(function(e){e&&(l.value=e)}),{immediate:!0}),c();return{ns:n,renderEditor:function(){if(o.value){var t=O("IBizDateRangeSelect");return L(t,{value:e.value,controller:o.value,onChange:function(e){var t;t=e,l.value=t}})}},onOK:function(){a("change",l.value),e.modal.dismiss()},onCancel:function(){e.modal.dismiss()}}},render:function(){return T("div",{class:this.ns.b()},[T("div",{class:this.ns.e("header")},[T("span",{class:this.ns.em("header","caption")},[A("配置")]),T("svg",{onClick:this.onCancel,class:this.ns.em("header","close"),viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"agwaction/close","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M7.456 7.456V-.115h1.2v7.571h7.572v1.2H8.656v7.572h-1.2V8.656H-.115v-1.2h7.571z",id:"agw形状结合",transform:"rotate(45 8.056 8.056)"},null)])])]),T("div",{class:this.ns.e("content")},[this.renderEditor()]),T("div",{class:this.ns.e("footer")},[T(O("el-button"),{link:!0,onClick:this.onCancel},{default:function(){return[A("取消")]}}),T(O("el-button"),{type:"primary",onClick:this.onOK},{default:function(){return[A("确认")]}})])])}}),aa=[{name:"合计",value:"SUM"},{name:"平均",value:"AVG"},{name:"最大值",value:"MAX"},{name:"最小值",value:"MIN"},{name:"计数",value:"COUNT"}],na=g({name:"BIAggmodeSelect",props:{item:{type:Object,required:!0},value:{type:String}},emit:["change"],setup:function(e,t){var a=t.emit,n=s("bi-aggmode-select"),i=x(!1);return{ns:n,aggModeList:aa,aggmodeVisible:i,handleClick:function(e){e.stopPropagation(),e.preventDefault()},aggModeClick:function(e,t){t.stopPropagation(),t.preventDefault(),i.value=!1,a("change",e)}}},render:function(){var e=this;return T(O("el-popover"),{visible:this.aggmodeVisible,"onUpdate:visible":function(t){return e.aggmodeVisible=t},"popper-class":this.ns.e("aggmode-container"),placement:"right-start",width:200},{reference:function(){return T("div",{class:[e.ns.e("aggmode"),e.ns.em("aggmode","group-item")],onPointerup:e.handleClick},[T("span",null,[T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"ade1.Base基础/1.icon图标/1.-action/arithmetic","stroke-width":"1","fill-rule":"evenodd"},[T("g",{id:"ade计算_arithmetic",transform:"translate(1.4 1.4)","fill-rule":"nonzero"},[T("path",{d:"M12.6 12.824a.6.6 0 0 1 .097 1.192l-.097.008H7.933a.6.6 0 0 1-.097-1.192l.097-.008H12.6zm.413-12.66a.6.6 0 0 1 .09.764l-.068.085-12 12.649a.6.6 0 0 1-.937-.741l.067-.085 12-12.649a.6.6 0 0 1 .848-.022zM12.6 9.663a.6.6 0 0 1 .097 1.192l-.097.008H7.933a.6.6 0 0 1-.097-1.192l.097-.008H12.6zM3.267 0a.6.6 0 0 1 .592.503L3.867.6l-.001 2.21h2.067a.6.6 0 0 1 .098 1.193l-.098.008-2.067-.001v2.212a.6.6 0 0 1-1.191.097l-.008-.097-.001-2.212H.6A.6.6 0 0 1 .503 2.82L.6 2.81l2.066-.001V.6a.6.6 0 0 1 .6-.6z",id:"ade形状结合"},null)])])]),T("span",null,[A("计算")])]),T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"abbnavigation/angle-right","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M7.978 11.498l-.005.005L2.3 5.831 3.13 5l4.848 4.848L12.826 5l.83.831-5.673 5.672-.005-.005z",id:"abb形状结合",transform:"rotate(-90 7.978 8.252)"},null)])])])},default:function(){return T("div",{class:[e.ns.e("aggmode-list")]},[e.aggModeList.map((function(t){return T("div",{class:[e.ns.em("aggmode-list","item"),e.ns.is("selected",e.value===t.value)],onPointerup:function(a){return e.aggModeClick(t.value,a)}},[t.name])}))])}})}}),ia=g({name:"BISort",props:{value:{type:Object,default:function(){}},measures:{type:Array,default:[]},dimension:{type:Object,default:function(){},required:!0},modal:{type:Object,required:!0}},emit:["change"],setup:function(e,t){var a=t.emit,n=s("bi-sort"),i=function(t){return"asc"===e.value["sort@".concat(t.id)]},r=function(t){return"desc"===e.value["sort@".concat(t.id)]},o=function(t){return!e.value["sort@".concat(t.id)]},l=function(t){return T("div",{class:n.e("item"),onClick:function(){return function(t){var n=null;"asc"===e.value["sort@".concat(t.id)]&&(n="desc"),"desc"===e.value["sort@".concat(t.id)]&&(n=null),e.value["sort@".concat(t.id)]||(n="asc"),a("change",t.id,n)}(t)}},[T("div",{class:n.em("item","label")},[t.name]),T("div",{class:[n.em("item","icon"),n.is("no-sort",o(t)),n.is("asc",i(t)),n.is("desc",r(t))]},[T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"avt1.Base基础/1.icon图标/5.navigation/sort-positive-sequence","stroke-width":"1","fill-rule":"nonzero"},[T("path",{d:"M7.173 2.605l-2.625 3A.6.6 0 0 0 5 6.6h5.25a.6.6 0 0 0 .452-.995l-2.625-3a.6.6 0 0 0-.904 0z",id:"avt路径"},null),T("path",{d:"M10.25 9.108H5a.6.6 0 0 0-.452.995l2.625 3a.6.6 0 0 0 .904 0l2.625-3a.6.6 0 0 0-.452-.995z",id:"avtsecondary-color"},null)])])])])};return{ns:n,renderDimension:function(){var t={name:e.dimension.pssysbicubedimensionname,id:e.dimension.codename};return l(t)},renderMeasure:function(){return e.measures.map((function(e){var t={name:e.pssysbicubemeasurename,id:e.codename};return l(t)}))},onMouseLevel:function(){e.modal.dismiss()}}},render:function(){return T("div",{class:this.ns.b(),onMouseleave:this.onMouseLevel},[this.renderDimension(),this.renderMeasure()])}}),ra=g({name:"BIAxis",props:{value:{type:String,default:"LEFT"},modal:{type:Object,required:!0}},emits:["change"],setup:function(e,t){var a=t.emit;return{ns:s("bi-axis"),renderSelectIcon:function(){return T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"agctips/check","stroke-width":"1","fill-rule":"evenodd"},[T("path",{id:"agc路径-12",d:"M6.012 11.201L1.313 6.832l-.817.879 5.54 5.15 9.304-9.163-.842-.855z"},null)])])},onClick:function(e){a("change",e)},onMouseLevel:function(){e.modal.dismiss()}}},render:function(){var e=this;return T("div",{class:this.ns.b(),onMouseleave:this.onMouseLevel},[T("div",{class:this.ns.e("item"),onClick:function(){return e.onClick("LEFT")}},[T("span",null,[A("左轴")]),"LEFT"===this.value&&this.renderSelectIcon()]),T("div",{class:this.ns.e("item"),onClick:function(){return e.onClick("RIGHT")}},[T("span",null,[A("右轴")]),"RIGHT"===this.value&&this.renderSelectIcon()])])}}),oa=g({props:{value:{type:Array,default:[]},modal:{type:Object,required:!0}},components:{"bi-font-border-select":vt},emit:["cordonChange"],setup:function(e,t){var a=t.emit,n=s("bi-chart-cordon"),i=x([]),r=[{name:"固定值",value:"FIXED"},{name:"最大值",value:"MAX"},{name:"最小值",value:"MIN"},{name:"平均值",value:"AVERAGE"}],o=function(){i.value.push({id:ut(),name:"警戒线".concat(i.value.length+1),lineStyle:"dashed",lineSize:1,lineColor:"red",cordonType:"FIXED",cordonSize:0})},l=function(e,t){"ADD"===e?t.cordonSize+=1:t.cordonSize-=1};E((function(){return e.value}),(function(e){e&&Array.isArray(e)&&e.length>0?i.value=e:i.value=[]}),{immediate:!0});return{ns:n,onCancel:function(){e.modal.dismiss()},onOK:function(){a("cordonChange",i.value),e.modal.dismiss()},renderContent:function(){return i.value.map((function(e,t){return T("div",{class:n.em("content","item")},[T("div",{class:n.em("content","item-header")},[T("div",{class:n.em("content","item-index")},[A("警戒线("),t+1,A(")")]),T("div",{class:n.em("content","item-delete"),onClick:function(){return function(e){var t=i.value.findIndex((function(t){return t.id===e.id}));t>=0&&i.value.splice(t,1)}(e)}},[T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"azkaction/trash","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M4.002 3.403V1a1 1 0 0 1 1-1h6.003a1 1 0 0 1 1 1v2.403h3.396a.6.6 0 1 1 0 1.2h-1.395V15a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4.603H.6a.6.6 0 1 1 0-1.2h3.4zm8.804 1.205H3.2V14.8h9.605V4.608zM5.202 1.2v2.155h5.603V1.2H5.202zm.6 6.417a.6.6 0 0 1 1.201 0v4.758a.6.6 0 0 1-1.2 0V7.617zm3.202 0a.6.6 0 0 1 1.2 0v4.758a.6.6 0 0 1-1.2 0V7.617z",id:"azk删除"},null)])])])]),T("div",{class:n.em("content","item-editor")},[T("div",{class:n.em("content","line-set")},[T(O("el-input"),{modelValue:e.name,"onUpdate:modelValue":function(t){return e.name=t}},null),T(O("bi-font-border-select"),{mode:"BORDER",borderMax:10,borderMin:1,useDotted:!0,value:{borderStyle:e.lineStyle,borderSize:e.lineSize,color:e.lineColor},onChange:function(t){return function(e,t){var a=t.borderStyle,n=t.borderSize,i=t.color;e.lineStyle=a,e.lineSize=n,e.lineColor=i}(e,t)}},null)]),T("div",{class:n.em("content","line-type")},[T(O("el-select"),{modelValue:e.cordonType,"onUpdate:modelValue":function(t){return e.cordonType=t},class:n.em("content","cordon-type"),size:"large"},{default:function(){return r.map((function(e){return T(O("el-option"),{key:e.value,label:e.name,value:e.value},{default:function(){return[e.name]}})}))}}),"FIXED"===e.cordonType&&T(O("el-input"),{class:n.e("input-number"),modelValue:e.cordonSize,"onUpdate:modelValue":function(t){return e.cordonSize=t},size:"large"},{suffix:function(){return T("div",{class:[n.e("input-number-suffix")]},[T("span",{class:[n.e("input-number-suffix-add"),n.is("readonly",e.cordonSize>=10)],onClick:function(){return l("ADD",e)}},[T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[T("g",{id:"abdnavigation/angle-up","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M7.978 11.498l-.005.005L2.3 5.831 3.13 5l4.848 4.848L12.826 5l.83.831-5.673 5.672-.005-.005z",id:"abd形状结合",transform:"rotate(180 7.978 8.252)"},null)])])]),T("span",{class:[n.e("input-number-suffix-minus"),n.is("readonly",e.cordonSize<=1)],onClick:function(){return l("REDUCE",e)}},[T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[T("g",{id:"aaynavigation/angle-down","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M7.978 11.997l-.005.006L2.3 6.33l.83-.831 4.848 4.848L12.826 5.5l.83.83-5.673 5.673-.005-.006z",id:"aay形状结合"},null)])])])])}})])])])}))},renderAddItem:function(){return T("div",{class:n.em("content","add"),onClick:o},[T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"asg1.Base基础/1.icon图标/1.-action/plus","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M8.578 7.383V1.602a.601.601 0 1 0-1.2 0v5.781H1.6a.601.601 0 0 0 0 1.203h5.777v5.812a.601.601 0 1 0 1.2 0V8.586H14.4a.601.601 0 0 0 0-1.203H8.578z",id:"asgFill-1"},null)])]),T("span",null,[A("新增警戒线")])])}}},render:function(){return T("div",{class:this.ns.b()},[T("div",{class:this.ns.e("header")},[T("span",{class:this.ns.em("header","caption")},[A("警戒线")]),T("svg",{onClick:this.onCancel,class:this.ns.em("header","close"),viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"agwaction/close","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M7.456 7.456V-.115h1.2v7.571h7.572v1.2H8.656v7.572h-1.2V8.656H-.115v-1.2h7.571z",id:"agw形状结合",transform:"rotate(45 8.056 8.056)"},null)])])]),T("div",{class:this.ns.e("content")},[this.renderContent(),this.renderAddItem()]),T("div",{class:this.ns.e("footer")},[T(O("el-button"),{link:!0,onClick:this.onCancel},{default:function(){return[A("取消")]}}),T(O("el-button"),{type:"primary",onClick:this.onOK},{default:function(){return[A("确认")]}})])])}}),sa=g({name:"BIDragElement",components:{draggable:ie,"bi-aggmode-select":na},props:{controller:{type:Object,required:!0},multiple:{type:Boolean,default:!0},caption:{type:String,default:""},subCaption:{type:String,default:""},type:{type:String,default:"measure"},value:{type:Array,default:function(){return[]}},actions:{type:Array,default:function(){return[]}},expandActions:{type:Array,default:function(){return[]}},error:{type:Object}},emits:["change","extendChange"],setup:function(e,t){var a=t.emit,n=s("drag-element"),i=x([]),r=x(null),o=x(),l=x(),c=x(),p=x({visible:!1,currentId:""}),u=ut(),h=x(),f=x(!1),m=null,v=V,g=x(new Map),C=x(!1),M=["SORT","AXIS"],k=x(),F=w((function(){return e.controller.state.propertyData})),N=function(){var e=b(y().mark((function e(){var t,a,n;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(t-1&&i.value.splice(t,1),a("extendChange","".concat(at.AGGMODE,"@").concat(e.codename),null),a("extendChange","".concat(at.PERIOD,"@").concat(e.codename),null),a("extendChange","".concat(at.SORT,"@").concat(e.codename),null),a("extendChange","".concat(at.CORDON,"@").concat(e.codename),null),a("extendChange","".concat(at.AXIS,"@").concat(e.codename),null),a("change",i.value)},re=function(t){return"measure"===e.type?"COMMON"===t.bimeasuretype?T("svg",{class:n.em("content","item-icon-com"),viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"alzeditor/hashtag","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M4.236 9.9l.422-3.8H2.6a.6.6 0 1 1 0-1.2h2.19l.372-3.347a.6.6 0 1 1 1.192.133L5.998 4.9h4.793l.37-3.347a.6.6 0 0 1 1.193.133L11.998 4.9h2.459a.6.6 0 0 1 0 1.2h-2.592l-.421 3.8h2.013a.6.6 0 0 1 0 1.2H11.31l-.374 3.368a.6.6 0 0 1-1.192-.132l.358-3.236H5.311l-.374 3.368a.6.6 0 0 1-1.192-.132l.358-3.236H1.6a.6.6 0 0 1 0-1.2h2.636zm1.208 0h4.792l.422-3.8H5.865l-.421 3.8z",id:"alz形状结合"},null)])]):T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"aljeditor/formula","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M12.663 11.027c-.117.142-.25.318-.4.527.09.88.404 1.722.913 2.446a.807.807 0 0 0 .951.051c.212-.071.317.313 0 .494a2.582 2.582 0 0 1-2.376.185 2.786 2.786 0 0 1-.918-1.726c-.101.152-.177.27-.223.346-.05.08-.121.194-.215.34a5.11 5.11 0 0 1-.776.993 1.134 1.134 0 0 1-.787.3.82.82 0 0 1-.832-.852 1.058 1.058 0 0 1 1.085-1.113c.176 0 .352.021.522.066.167.045.324.094.471.147a2.69 2.69 0 0 0 .264-.271c.129-.15.25-.305.362-.467-.15-.602-.31-1.287-.527-2.038a.869.869 0 0 0-1.281-.585c-.259.118-.388-.329.094-.529.447-.184 2.482-1.047 2.941.8.075.303.144.597.212.885l.246-.38c.085-.13.157-.246.218-.346.213-.368.476-.704.781-1 .214-.194.492-.301.781-.3a.8.8 0 0 1 .594.239.84.84 0 0 1 .238.619c.015.3-.1.59-.314.8a1.075 1.075 0 0 1-.767.3 2.1 2.1 0 0 1-.535-.069 5.572 5.572 0 0 1-.456-.138 1.662 1.662 0 0 0-.266.276zM7.223 5.4H8.5a.6.6 0 1 1 0 1.2H6.928c-.236 1.116-.614 3-.573 2.8-.105.506-.198.919-.297 1.318-.17.677-.36 1.312-.604 1.999-.587 1.652-1.397 2.363-2.395 2.363-.146 0-.283-.009-.412-.027-.627-.087-1.061-.549-1.305-1.273a.6.6 0 0 1 1.137-.383c.112.334.224.452.334.468.072.01.154.015.246.015.432 0 .833-.352 1.264-1.565.23-.65.41-1.248.57-1.889.096-.38.185-.778.287-1.27-.04.193.285-1.423.522-2.556H4.5a.6.6 0 1 1 0-1.2h1.472c.456-1.698 1.376-3.494 2.285-4.009.84-.476 1.634-.401 2.159.29a.6.6 0 0 1-.955.726c-.124-.163-.254-.175-.612.028-.51.289-1.218 1.642-1.627 2.965z",id:"alj形状结合"},null)])]):"COMMON"===t.bidimensiontype?T("svg",{class:n.em("content","item-icon-fx"),viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"bbd1.Base基础/1.icon图标/2.normal/View-report-fill","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M9 1.2v4.974h1V3.2h2v2.974h1.5a1.5 1.5 0 0 1 1.5 1.5v5.784a1.5 1.5 0 0 1-1.5 1.5h-11a1.5 1.5 0 0 1-1.5-1.5V7.674a1.5 1.5 0 0 1 1.5-1.5H4V3.2h2v2.974h1V1.2h2zM6 6.636H4v4.038h2V6.636zm1 4.038h2V6.636H7v4.038zm5-4.053h-2v4.053h2V6.621z",id:"bbd形状结合"},null)])]):T("svg",{class:n.em("content","item-icon-fx"),viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"alheditor/formula","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M12.663 11.027c-.117.142-.25.318-.4.527.09.88.404 1.722.913 2.446a.807.807 0 0 0 .951.051c.212-.071.317.313 0 .494a2.582 2.582 0 0 1-2.376.185 2.786 2.786 0 0 1-.918-1.726c-.101.152-.177.27-.223.346-.05.08-.121.194-.215.34a5.11 5.11 0 0 1-.776.993 1.134 1.134 0 0 1-.787.3.82.82 0 0 1-.832-.852 1.058 1.058 0 0 1 1.085-1.113c.176 0 .352.021.522.066.167.045.324.094.471.147a2.69 2.69 0 0 0 .264-.271c.129-.15.25-.305.362-.467-.15-.602-.31-1.287-.527-2.038a.869.869 0 0 0-1.281-.585c-.259.118-.388-.329.094-.529.447-.184 2.482-1.047 2.941.8.075.303.144.597.212.885l.246-.38c.085-.13.157-.246.218-.346.213-.368.476-.704.781-1 .214-.194.492-.301.781-.3a.8.8 0 0 1 .594.239.84.84 0 0 1 .238.619c.015.3-.1.59-.314.8a1.075 1.075 0 0 1-.767.3 2.1 2.1 0 0 1-.535-.069 5.572 5.572 0 0 1-.456-.138 1.662 1.662 0 0 0-.266.276zM7.223 5.4H8.5a.6.6 0 1 1 0 1.2H6.928c-.236 1.116-.614 3-.573 2.8-.105.506-.198.919-.297 1.318-.17.677-.36 1.312-.604 1.999-.587 1.652-1.397 2.363-2.395 2.363-.146 0-.283-.009-.412-.027-.627-.087-1.061-.549-1.305-1.273a.6.6 0 0 1 1.137-.383c.112.334.224.452.334.468.072.01.154.015.246.015.432 0 .833-.352 1.264-1.565.23-.65.41-1.248.57-1.889.096-.38.185-.778.287-1.27-.04.193.285-1.423.522-2.556H4.5a.6.6 0 1 1 0-1.2h1.472c.456-1.698 1.376-3.494 2.285-4.009.84-.476 1.634-.401 2.159.29a.6.6 0 0 1-.955.726c-.124-.163-.254-.175-.612.028-.51.289-1.218 1.642-1.627 2.965z",id:"alh形状结合"},null)])])},oe=function(){var e=b(y().mark((function e(t,a,n){var i,r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(!f.value||k.value&&M.includes(k.value))){e.next=41;break}return e.next=3,null===(i=m)||void 0===i?void 0:i.dismiss();case 3:r=j(t),f.value=!0,e.prev=5,k.value=a,e.t0=a,e.next="UPDATE"===e.t0?10:"REMOVE"===e.t0?14:"FILTER"===e.t0?16:"CONFIG"===e.t0?19:"SORT"===e.t0?22:"CORDON"===e.t0?25:"AXIS"===e.t0?28:31;break;case 10:return l.value=n,o.value=n.pssysbicubemeasurename||n.pssysbicubedimensionname,D((function(){c.value.focus()})),e.abrupt("break",33);case 14:return ie(n),e.abrupt("break",33);case 16:return e.next=18,H(r,n);case 18:case 21:case 24:case 27:case 30:return e.abrupt("break",33);case 19:return e.next=21,q(r,n);case 22:return e.next=24,K(r,n);case 25:return e.next=27,Z(r,n);case 28:return e.next=30,Q(r,n);case 31:return e.next=33,te(r,n);case 33:e.next=38;break;case 35:throw e.prev=35,e.t1=e.catch(5),new z(e.t1);case 38:return e.prev=38,f.value=!1,e.finish(38);case 41:case"end":return e.stop()}}),e,null,[[5,35,38,41]])})));return function(t,a,n){return e.apply(this,arguments)}}(),se=function(e){if(g.value.has(e.codename)){var t=g.value.get(e.codename);return T("div",{class:n.em("actions","group-item"),onPointerup:function(a){return oe(a,t.uiactionTag,e)}},[t.sysImage&&T(O("iBizIcon"),{icon:t.sysImage},null),T("span",null,[t.caption])])}},le=function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"group",i=T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false"},[T("g",{id:"baxnormal/vertical-view-lines","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M4.092 8.854v-2c0-.163-.138-.3-.3-.3-.163 0-.3.137-.3.3v2c0 .163.137.3.3.3.162 0 .3-.137.3-.3zM14.869 7.3a.6.6 0 1 1 0 1.2H5.292v.354c0 .825-.675 1.5-1.5 1.5s-1.5-.675-1.5-1.5V8.5H1.1a.6.6 0 0 1 0-1.2h1.192v-.446c0-.825.675-1.5 1.5-1.5s1.5.675 1.5 1.5V7.3h9.577zm-4.07-3.8v-2c0-.163-.139-.3-.3-.3-.164 0-.3.137-.3.3v2c0 .163.136.3.3.3.161 0 .3-.137.3-.3zm4.07-1.6a.6.6 0 1 1 0 1.2H12v.4c0 .825-.676 1.5-1.5 1.5-.826 0-1.5-.675-1.5-1.5v-.4H1.1a.6.6 0 1 1 0-1.2h7.898v-.4c0-.825.675-1.5 1.5-1.5s1.5.675 1.5 1.5v.4h2.871zM12.55 14.208v-2c0-.162-.138-.3-.3-.3-.162 0-.3.138-.3.3v2c0 .163.138.3.3.3.162 0 .3-.137.3-.3zm2.319-1.6a.6.6 0 0 1 0 1.201H13.75v.399c0 .825-.675 1.5-1.5 1.5s-1.5-.675-1.5-1.5v-.399H1.1a.6.6 0 0 1 0-1.201h9.65v-.4c0-.825.675-1.5 1.5-1.5s1.5.675 1.5 1.5v.4h1.119z",id:"bax形状结合"},null)])]),r=null;return"UPDATE"===e.id?i=T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false"},[T("g",{id:"aiwaction/edit","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M2 8.34L10.71 0 15 4.17 6.538 13H2V8.34zm1.2.512V11.8h2.826l7.283-7.6-2.606-2.533L3.2 8.852zM0 16v-1.2h16V16H0z",id:"aiw编辑"},null)])]):"REMOVE"===e.id?i=T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"azaaction/trash","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M4.002 3.403V1a1 1 0 0 1 1-1h6.003a1 1 0 0 1 1 1v2.403h3.396a.6.6 0 1 1 0 1.2h-1.395V15a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4.603H.6a.6.6 0 1 1 0-1.2h3.4zm8.804 1.205H3.2V14.8h9.605V4.608zM5.202 1.2v2.155h5.603V1.2H5.202zm.6 6.417a.6.6 0 0 1 1.201 0v4.758a.6.6 0 0 1-1.2 0V7.617zm3.202 0a.6.6 0 0 1 1.2 0v4.758a.6.6 0 0 1-1.2 0V7.617z",id:"aza删除"},null)])]):"FILTER"===e.id?i=T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false",fill:"currentColor"},[T("g",{id:"akp1.Base基础/1.icon图标/2.normal/filter备份","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M1.6 2h12.8a.6.6 0 0 1 0 1.2H1.6a.6.6 0 1 1 0-1.2zm2.5 5.393h7.8a.6.6 0 0 1 0 1.2H4.1a.6.6 0 1 1 0-1.2zm2.5 5.416h2.8a.6.6 0 0 1 0 1.2H6.6a.6.6 0 1 1 0-1.2z",id:"akp形状结合"},null)])]):"CONFIG"===e.id?i=T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false",fill:"currentColor"},[T("g",{id:"bbhnormal/vertical-view-lines","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M4.092 8.854v-2c0-.163-.138-.3-.3-.3-.163 0-.3.137-.3.3v2c0 .163.137.3.3.3.162 0 .3-.137.3-.3zM14.869 7.3a.6.6 0 1 1 0 1.2H5.292v.354c0 .825-.675 1.5-1.5 1.5s-1.5-.675-1.5-1.5V8.5H1.1a.6.6 0 0 1 0-1.2h1.192v-.446c0-.825.675-1.5 1.5-1.5s1.5.675 1.5 1.5V7.3h9.577zm-4.07-3.8v-2c0-.163-.139-.3-.3-.3-.164 0-.3.137-.3.3v2c0 .163.136.3.3.3.161 0 .3-.137.3-.3zm4.07-1.6a.6.6 0 1 1 0 1.2H12v.4c0 .825-.676 1.5-1.5 1.5-.826 0-1.5-.675-1.5-1.5v-.4H1.1a.6.6 0 1 1 0-1.2h7.898v-.4c0-.825.675-1.5 1.5-1.5s1.5.675 1.5 1.5v.4h2.871zM12.55 14.208v-2c0-.162-.138-.3-.3-.3-.162 0-.3.138-.3.3v2c0 .163.138.3.3.3.162 0 .3-.137.3-.3zm2.319-1.6a.6.6 0 0 1 0 1.201H13.75v.399c0 .825-.675 1.5-1.5 1.5s-1.5-.675-1.5-1.5v-.399H1.1a.6.6 0 0 1 0-1.201h9.65v-.4c0-.825.675-1.5 1.5-1.5s1.5.675 1.5 1.5v.4h1.119z",id:"bbh形状结合"},null)])]):"SORT"===e.id?(i=T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"avq1.Base基础/1.icon图标/2.normal/sort-positive-sequence","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M4.7 1.068v11.93l2.182-2.18.848.849-3.515 3.515-.582-.583H3.5v-.133l-2.8-2.8.849-.848L3.5 12.77V1.068h1.2zm9.771 8.082v.972l-2.779 3.527h1.711v-1.33H14.6v2.53h-4.558v-1.026l2.725-3.474h-1.57v.921H10V9.15h4.471zM11.791 1l1.11.014 1.474 5.785.938.001V8h-2.62V6.8l.382-.001-.198-.918h-1.354l-.24.918.504.001V8H9.19V6.8l.756-.001L11.792 1zm.478 2.038l-.498 1.898h.904l-.406-1.898z",id:"avq形状结合"},null)])]),r=T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"abbnavigation/angle-right","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M7.978 11.498l-.005.005L2.3 5.831 3.13 5l4.848 4.848L12.826 5l.83.831-5.673 5.672-.005-.005z",id:"abb形状结合",transform:"rotate(-90 7.978 8.252)"},null)])])):"CORDON"===e.id?i=T("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"a1.Base基础/1.icon图标/6.chart/Analytical-line","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M3.1,0.9 L3.1,12.9 L16.1,12.9 L16.1,14.1 L3.1,14.1 L3.1,16.1 L1.9,16.1 L1.9,14.1 L-0.1,14.1 L-0.1,12.9 L1.9,12.9 L1.9,0.9 L3.1,0.9 Z M14.4906668,8.9 L14.4906668,10.1 L11.2906668,10.1 L11.2906668,8.9 L14.4906668,8.9 Z M10.4906668,8.9 L10.4906668,10.1 L7.29066679,10.1 L7.29066679,8.9 L10.4906668,8.9 Z M6.49066679,8.9 L6.49066679,10.1 L4.78461538,10.1 L4.78461538,8.9 L6.49066679,8.9 Z M14.4906668,3.9 L14.4906668,5.1 L11.2906668,5.1 L11.2906668,3.9 L14.4906668,3.9 Z M10.4906668,3.9 L10.4906668,5.1 L7.29066679,5.1 L7.29066679,3.9 L10.4906668,3.9 Z M6.49066679,3.9 L6.49066679,5.1 L4.78461538,5.1 L4.78461538,3.9 L6.49066679,3.9 Z",id:"a形状结合"},null)])]):"AXIS"===e.id&&(i=T("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"b1.Base基础/1.icon图标/6.chart/Axis-settings","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M4.1,0.5 L4.099,11.5 L16,11.5 L16,12.7 L13.6,12.7 L13.6,14.9 L12.4,14.9 L12.4,12.7 L10.6,12.7 L10.6,14.9 L9.4,14.9 L9.4,12.7 L7.6,12.7 L7.6,14.9 L6.4,14.9 L6.4,12.7 L4.099,12.7 L4.1,15.7 L2.9,15.7 L2.899,12.7 L0,12.7 L0,11.5 L2.899,11.5 L2.899,9.7 L0.9,9.7 L0.9,8.5 L2.899,8.5 L2.899,6.7 L0.9,6.7 L0.9,5.5 L2.899,5.5 L2.899,3.7 L0.9,3.7 L0.9,2.5 L2.899,2.5 L2.9,0.5 L4.1,0.5 Z",id:"b形状结合"},null)])]),r=T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"abbnavigation/angle-right","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M7.978 11.498l-.005.005L2.3 5.831 3.13 5l4.848 4.848L12.826 5l.83.831-5.673 5.672-.005-.005z",id:"abb形状结合",transform:"rotate(-90 7.978 8.252)"},null)])])),T("div",{class:[n.em("actions","".concat(a,"-item")),n.is("delete","REMOVE"===e.id)],onPointerup:function(a){return oe(a,e.id,t)}},[i,T("span",{class:n.em("actions","item-text")},["group"===a&&e.caption,"expand"===a&&"FILTER"===e.id&&t.condition?1:""]),r])},ce=function(){if(o.value){var e=i.value.find((function(e){var t=e.pssysbicubedimensionid||e.pssysbicubemeasureid;return t===l.value.pssysbicubedimensionid||t===l.value.pssysbicubemeasureid}));e&&(Object.prototype.hasOwnProperty.call(e,"pssysbicubedimensionname")?e.pssysbicubedimensionname=o.value:e.pssysbicubemeasurename=o.value),l.value=null,o.value="",a("change",i.value)}else l.value=null},de=function(e){e&&"Enter"===e.code?ce():e&&"Escape"===e.code&&(e.stopPropagation(),l.value=null,o.value="")},pe=function(e){var t=function(e){if("COMMON"===e.bimeasuretype||e.aggtype){var t=aa.find((function(t){return t.value===e.aggtype}));if(t)return T("span",{class:n.em("aggmode","text")},[t.name])}return null}(e);return[t]},ue=function(t){return t.pssysbicubemeasureid?pe(t):function(t){return[T("div",{class:n.e("actions"),ref:h},[e.expandActions.map((function(e){return le(e,t,"expand")}))])]}(t)},he=function(e){var t=[];if("COMMON"===e.bimeasuretype||e.aggtype){var n=T(O("bi-aggmode-select"),{item:e,value:e.aggtype,onChange:function(t){return function(e,t){D((function(){f.value=!1,p.value.visible=!1,e.aggtype=t,a("extendChange","".concat(at.AGGMODE,"@").concat(e.codename),t)}))}(e,t)}},null);t.push(n)}return t},fe=function(t){if("dimension"===e.type){var a=T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false",fill:"currentColor"},[T("g",{id:"bbhnormal/vertical-view-lines","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M4.092 8.854v-2c0-.163-.138-.3-.3-.3-.163 0-.3.137-.3.3v2c0 .163.137.3.3.3.162 0 .3-.137.3-.3zM14.869 7.3a.6.6 0 1 1 0 1.2H5.292v.354c0 .825-.675 1.5-1.5 1.5s-1.5-.675-1.5-1.5V8.5H1.1a.6.6 0 0 1 0-1.2h1.192v-.446c0-.825.675-1.5 1.5-1.5s1.5.675 1.5 1.5V7.3h9.577zm-4.07-3.8v-2c0-.163-.139-.3-.3-.3-.164 0-.3.137-.3.3v2c0 .163.136.3.3.3.161 0 .3-.137.3-.3zm4.07-1.6a.6.6 0 1 1 0 1.2H12v.4c0 .825-.676 1.5-1.5 1.5-.826 0-1.5-.675-1.5-1.5v-.4H1.1a.6.6 0 1 1 0-1.2h7.898v-.4c0-.825.675-1.5 1.5-1.5s1.5.675 1.5 1.5v.4h2.871zM12.55 14.208v-2c0-.162-.138-.3-.3-.3-.162 0-.3.138-.3.3v2c0 .163.138.3.3.3.162 0 .3-.137.3-.3zm2.319-1.6a.6.6 0 0 1 0 1.201H13.75v.399c0 .825-.675 1.5-1.5 1.5s-1.5-.675-1.5-1.5v-.399H1.1a.6.6 0 0 1 0-1.201h9.65v-.4c0-.825.675-1.5 1.5-1.5s1.5.675 1.5 1.5v.4h1.119z",id:"bbh形状结合"},null)])]);return T("div",{class:[n.em("actions","group-item")],onPointerup:function(a){return function(t,a){"dimension"===e.type&&oe(t,"CONFIG",a)}(a,t)}},[a,T("span",null,[A("配置")])])}},me=function(t){var a=[],n=se(t);t.pssysbicubemeasureid?a.push.apply(a,d(he(t))):a.push.apply(a,d(function(t){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];if("period"!==e.type&&Kt(t.stddatatype)&&!a){var i=fe(t);n.push(i)}return n}(t,!!n)));var i=function(t){return e.actions.map((function(e){return le(e,t)}))}(t);return[n].concat(a,d(i))};E((function(){return e.value}),(function(t){i.value=t?e.value:[],N()}),{immediate:!0,deep:!0});var ve=function(){f.value||(p.value.visible=!1)};return S((function(){e.controller.evt.on("onDragTarget",(function(e){r.value=e,C.value=P(e).ok})),v=G(window,"keydown",(function(e){var t;27===e.keyCode&&(null===(t=m)||void 0===t||t.dismiss())})),window.addEventListener("pointerup",ve)})),R((function(){var e;v!==V&&v(),null===(e=m)||void 0===e||e.dismiss(),window.removeEventListener("pointerup",ve)})),{ns:n,onDrop:ne,onDragenter:function(e){e.preventDefault()},onDragleave:function(e){e.preventDefault()},onDragover:function(e){e.preventDefault()},renderItemText:function(e){var t=e.pssysbicubedimensionid||e.pssysbicubemeasureid,a=T("div",{class:n.em("content","item")},[T("div",{class:n.em("content","item-icon")},[re(e)]),T("div",{class:n.em("content","text")},[e.pssysbicubemeasurename||e.pssysbicubedimensionname]),ue(e),T("div",{class:n.em("content","icon")},[T(O("el-popover"),{visible:p.value.visible&&t===p.value.currentId,width:200,placement:"right","popper-class":n.e("actions-pop")},{default:function(){return T("div",{class:n.e("actions")},[me(e)])},reference:function(){return T("span",{onPointerup:function(e){return n=t,(a=e).stopPropagation(),a.preventDefault(),p.value.currentId=n,void(p.value.visible=!0);var a,n}},[T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{id:"apr1.Base基础/1.icon图标/2.normal/more-vertical","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M8 4.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5zm0 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5zm0 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5z",id:"apr形状结合"},null)])])])}})])]),i=T("div",{class:n.e("ediotr")},[T(O("el-input"),{ref:function(e){c.value=e},modelValue:o.value,"onUpdate:modelValue":function(e){return o.value=e},autofocus:!0,onKeydown:de,onBlur:ce},{prefix:function(){return T("span",{class:n.em("editor","icon")},[re(e)])}})]);return!l.value||l.value.pssysbicubemeasureid!==t&&l.value.pssysbicubedimensionid!==t?a:i},checkType:P,checkState:function(){return e.controller.verifyErrorState(e.type,i.value,["MAXLIMIT","TYPELIMIT"],{targetItem:r.value})},onMoveEnd:function(){a("change",i.value)},showDrag:C,items:i,uuid:u}},render:function(){var e,t=this,a=[T("div",{class:[this.ns.e("no-select"),this.ns.is("empty_error",this.error&&!this.error.ok)]},[A("拖入"),this.caption]),T("div",{class:[this.ns.e("empty"),this.ns.is("error",this.error&&!this.error.ok)]},[null===(e=this.error)||void 0===e?void 0:e.msg])],n=T(ie,{modelValue:this.items,"onUpdate:modelValue":function(e){return t.items=e},draggable:".".concat(this.ns.e("item")),filter:".".concat(this.ns.e("empty")),onEnd:this.onMoveEnd,"force-fallback":!0,"chosen-class":"chosenClass",animation:"300",group:this.uuid,"fallback-class":!0,"fallback-on-body":!0,sort:!0},{item:function(e){var a=e.element;return T("div",{class:t.ns.e("item")},[t.renderItemText(a)])}});return T("div",{class:[this.ns.b()],onDrop:this.onDrop,onDragenter:this.onDragenter,onDragleave:this.onDragleave,onDragover:this.onDragover},[T("div",{class:[this.ns.e("content"),this.ns.is("draging",this.showDrag),this.ns.is("success",this.checkState().ok)]},[this.items.length>0?n:a]),T("div",{class:[this.ns.e("error-tip"),this.ns.is("visible",this.showDrag&&!this.checkState().ok)]},[this.checkState().msg])])}}),la=g({name:"BIChartPqlEditorModal",props:{fields:{type:Array,default:function(){return[]}},fieldIconMap:{type:Object,default:function(){return new Map}},value:{type:String,default:""},context:{type:Object,required:!0},params:{type:Object}},emits:{cancel:function(){return!0},confirm:function(e){return!0}},setup:function(e,t){var a=t.emit,n=s("chart-pql-editor-modal"),i=x(e.value),r=x();return{ns:n,currentValue:i,pqlEditor:r,handleChange:function(e){i.value=e},handleCancel:function(e){e.stopPropagation(),a("cancel")},handleConfirm:function(e){e.stopPropagation();try{var t,n;if(r.value)if(!(null===(t=(n=r.value).verify)||void 0===t?void 0:t.call(n)))return;a("confirm",i.value)}catch(o){ibiz.log.error(null==o?void 0:o.message)}},renderItem:function(t){return[T("div",{class:n.be("item","icon")},["measure"===e.fieldIconMap.get(t.value)?T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{"stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M4.236 9.9l.422-3.8H2.6a.6.6 0 1 1 0-1.2h2.19l.372-3.347a.6.6 0 1 1 1.192.133L5.998 4.9h4.793l.37-3.347a.6.6 0 0 1 1.193.133L11.998 4.9h2.459a.6.6 0 0 1 0 1.2h-2.592l-.421 3.8h2.013a.6.6 0 0 1 0 1.2H11.31l-.374 3.368a.6.6 0 0 1-1.192-.132l.358-3.236H5.311l-.374 3.368a.6.6 0 0 1-1.192-.132l.358-3.236H1.6a.6.6 0 0 1 0-1.2h2.636zm1.208 0h4.792l.422-3.8H5.865l-.421 3.8z"},null)])]):T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{"stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M9 1.2v4.974h1V3.2h2v2.974h1.5a1.5 1.5 0 0 1 1.5 1.5v5.784a1.5 1.5 0 0 1-1.5 1.5h-11a1.5 1.5 0 0 1-1.5-1.5V7.674a1.5 1.5 0 0 1 1.5-1.5H4V3.2h2v2.974h1V1.2h2zM6 6.636H4v4.038h2V6.636zm1 4.038h2V6.636H7v4.038zm5-4.053h-2v4.053h2V6.621z"},null)])])]),T("div",{class:n.be("item","text")},[t.label||""])]}}},render:function(){return T("div",{class:this.ns.b()},[T("div",{class:this.ns.b("header")},[A("PQL 筛选编辑器")]),T("div",{class:this.ns.b("content")},[T(O("iBizPqlEditor"),{ref:"pqlEditor",class:this.ns.e("pql-editor"),placeholder:"输入筛选条件",value:this.currentValue,fields:this.fields,context:this.context,params:this.params,renderItem:this.renderItem,onChange:this.handleChange},null)]),T("div",{class:this.ns.b("footer")},[T(O("el-button"),{text:!0,onClick:this.handleCancel},{default:function(){return[A("取消")]}}),T(O("el-button"),{onClick:this.handleConfirm},{default:function(){return[A("确认")]}})])])}}),ca=g({name:"BIChartPqlEditor",props:{controller:{type:Object,required:!0},value:{type:String,default:""}},emits:{change:function(e){return!0}},setup:function(e,t){var a,n=t.emit,i=s("chart-pql-editor"),r=x(""),o=["COMMON"],l=w((function(){var t,a;return[].concat(d(null===(t=e.controller.state.measure)||void 0===t?void 0:t.filter((function(e){return o.includes(e.bimeasuretype)}))),d(null===(a=e.controller.state.dimension)||void 0===a?void 0:a.filter((function(e){return o.includes(e.bidimensiontype)}))))})),c=x([]),p=x(new Map);E((function(){return l.value}),b(y().mark((function t(){var a,n,i,r;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all(l.value.map(function(){var t=b(y().mark((function t(a){var n;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ut(a,e.controller.state.schemaFields||[]);case 2:return(n=t.sent)&&p.value.set(n.appDEFieldId,a.bimeasuretype?"measure":"dimension"),t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 2:if(n=t.sent,c.value=n.filter((function(e){return!!e})),!(i=null===(a=e.controller.state.selectCube)||void 0===a?void 0:a.psdename)){t.next=10;break}return t.next=8,ibiz.hub.getAppDataEntity(i,e.controller.context.srfappid);case 8:(r=t.sent)&&c.value.forEach((function(e){e.appDataEntityFullTag=r.defullTag}));case 10:case"end":return t.stop()}}),t)}))),{immediate:!0}),E((function(){return e.value}),(function(){r.value=e.value||""}),{immediate:!0});var u=function(){var e;null===(e=a)||void 0===e||e.dismiss()},h=function(e){var t;r.value=e,null===(t=a)||void 0===t||t.dismiss(),n("change",r.value)},f=function(){var t=b(y().mark((function t(){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=2;break}return t.abrupt("return");case 2:return a=ibiz.overlay.createModal((function(){return L(la,{value:r.value,fields:c.value,fieldIconMap:p.value,context:e.controller.context,params:e.controller.viewParams,onCancel:u,onConfirm:h})}),void 0,{width:"40%",height:"70%"}),t.next=5,a.present();case 5:return t.next=7,a.onWillDismiss();case 7:a=void 0;case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return{ns:i,fields:c,currentValue:r,openModal:f}},render:function(){var e=this;return T("div",{class:this.ns.b()},[T(O("iBizPqlEditor"),{fields:this.fields,value:this.currentValue,readonly:!0,placeholder:"点击此处输入筛选条件",context:this.controller.context,params:this.controller.viewParams,onClick:function(t){t.stopPropagation(),e.openModal()}},null)])}});function da(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!M(e)}var pa=g({name:"BIReportProperty",components:{"bi-chart-types":it,"bi-drag-element":sa,"bi-collapse-item":rt,"bi-color-scheme":ft,"bi-font-border-select":vt,"bi-position-select":bt,"bi-chart-pql-editor":ca},props:{controller:{type:Object,required:!0}},emits:["reportChartTypeChange"],setup:function(e,t){var a=t.emit,n=s("property"),i=e.controller,r=x({data:[],style:"",paginationVisible:!1}),o=w((function(){return i.state.selectChartType})),l=w((function(){return i.state.reportChart})),c=x("data"),d=w((function(){return i.state.propertyData})),p=w((function(){return i.state.error})),u=w((function(){var e;return(null===(e=l.value)||void 0===e||null===(e=e.state)||void 0===e?void 0:e.propertyConfig)||{}}));E((function(){return u.value}),(function(e){e&&e.data&&(r.value.data=[],e.data.details.forEach((function(e){"GROUP"===e.type&&r.value.data.push(e.id)}))),e&&e.style&&(r.value.style="",e.style.details.length>0&&(r.value.style=e.style.details[0].id))}),{immediate:!0,deep:!0});var h=function(e,t){i.setData(e,t)},f=function(e){e&&"Escape"===e.code&&e.stopPropagation()};return{ns:n,onReportChartTypeChange:function(e){a("reportChartTypeChange",e.type)},chartType:o,propertyConfig:u,selectTabValue:c,groupConfig:r,renderDetails:function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map((function(t){var a,r,o;return"GROUP"===t.type?T(O("bi-collapse-item"),{label:t.caption,required:t.required,name:t.id,enableSwitch:t.enableSwitch||!1,switchValue:null===(a=d.value)||void 0===a||null===(a=a[e][t.id])||void 0===a?void 0:a.show,enableShowEmptyData:t.showEmptyData||!1,enableRemove:t.enableRemove||!1,enableEditMode:t.switchEditMode||!1,onSwitchChange:function(a){return h("".concat(e,".").concat(t.id,".show"),a)},editMode:null===(r=d.value)||void 0===r||null===(r=r.extend)||void 0===r?void 0:r.filterMode,onSvgClick:function(a){!function(e,t,a,n){var i;switch(a){case"editMode":h(at.FILTERMODE,n);break;case"remove":if("filter"===t&&"pql"===(null===(i=d.value)||void 0===i||null===(i=i.extend)||void 0===i?void 0:i.filterMode))return void h(at.PQLVALUE,"");h("".concat(e,".").concat(t),null)}}(e,t.id,a.mode,a.value)}},da(o=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map((function(a){var r,o,s,l,c,u,m,v,y,g,b,w,I,C,x,E,S,D,A;switch(a.editorType){case"DRAG":return T("div",{class:[n.em("chart-setting","item"),n.em("chart-setting","drag")]},[a.showCaption?T("div",{class:n.em("chart-setting","label")},[a.caption]):null,"filter"===t&&"pql"===(null===(r=d.value)||void 0===r||null===(r=r.extend)||void 0===r?void 0:r.filterMode)?T(O("bi-chart-pql-editor"),{value:null===(o=d.value)||void 0===o||null===(o=o.extend)||void 0===o?void 0:o.pqlValue,controller:i,onChange:function(e){h(at.PQLVALUE,e)}},null):T(O("bi-drag-element"),{value:null===(s=d.value)||void 0===s?void 0:s[e][t],controller:i,caption:a.caption,subCaption:a.subCaption,multiple:a.multiple,type:a.id,actions:a.actions,expandActions:a.expandActions,error:null===(l=p.value)||void 0===l?void 0:l[t],onChange:function(a){h("".concat(e,".").concat(t),a)},onExtendChange:function(e,t){h(e,t)}},null)]);case"COLOR":return T("div",{class:[n.em("chart-setting","item"),n.em("chart-setting","color")]},[a.showCaption?T("div",{class:n.em("chart-setting","label")},[a.caption]):null,T(O("bi-color-scheme"),{editorStyle:a.editorStyle,value:null===(c=d.value)||void 0===c?void 0:c[e][t],onChange:function(a){return h("".concat(e,".").concat(t),a)}},null)]);case"FONT":return T("div",{class:[n.em("chart-setting","item"),n.em("chart-setting","font")]},[a.showCaption?T("div",{class:n.em("chart-setting","label")},[a.caption]):null,T(O("bi-font-border-select"),{value:null===(u=d.value)||void 0===u||null===(u=u[e][t])||void 0===u?void 0:u[a.id],mode:a.mode,disabled:!(null!==(m=d.value)&&void 0!==m&&null!==(m=m[e][t])&&void 0!==m&&m.show),fontMax:a.fontMax,onChange:function(n){return h("".concat(e,".").concat(t,".").concat(a.id),n)}},null)]);case"CHECKBOX":return T("div",{class:[n.em("chart-setting","item"),n.em("chart-setting","checkbox")]},[a.showCaption?T("div",{class:n.em("chart-setting","label")},[a.caption]):null,T(O("el-checkbox"),{"model-value":null===(v=d.value)||void 0===v||null===(v=v[e][t])||void 0===v?void 0:v[a.id],disabled:!(null!==(y=d.value)&&void 0!==y&&null!==(y=y[e][t])&&void 0!==y&&y.show),label:a.caption,size:"large",onChange:function(n){return h("".concat(e,".").concat(t,".").concat(a.id),n)}},null)]);case"CHECKBOXS":return T("div",{class:[n.em("chart-setting","item"),n.em("chart-setting","checkboxs")]},[a.showCaption?T("div",{class:n.em("chart-setting","label")},[a.caption]):null,T(O("el-checkbox-group"),{"model-value":null===(g=d.value)||void 0===g||null===(g=g[e][t])||void 0===g?void 0:g[a.id],disabled:!(null!==(b=d.value)&&void 0!==b&&null!==(b=b[e][t])&&void 0!==b&&b.show),onChange:function(n){return h("".concat(e,".").concat(t,".").concat(a.id),n)}},da(D=a.items.map((function(e){return T(O("el-checkbox"),{value:e.id,label:e.id,size:"default"},{default:function(){return[e.label]}})})))?D:{default:function(){return[D]}})]);case"RADIO":return T("div",{class:[n.em("chart-setting","item"),n.em("chart-setting","radio")]},[a.showCaption?T("div",{class:n.em("chart-setting","label")},[a.caption]):null,T(O("el-radio-group"),{"model-value":null===(w=d.value)||void 0===w||null===(w=w[e][t])||void 0===w?void 0:w[a.id],disabled:!(null!==(I=d.value)&&void 0!==I&&null!==(I=I[e][t])&&void 0!==I&&I.show),onChange:function(n){return h("".concat(e,".").concat(t,".").concat(a.id),n)}},da(A=a.items.map((function(e){return T(O("el-radio"),{value:e.id,label:e.id,size:"default"},{default:function(){return[e.label]}})})))?A:{default:function(){return[A]}})]);case"POSITION":return T("div",{class:[n.em("chart-setting","item"),n.em("chart-setting","pos")]},[a.showCaption?T("div",{class:n.em("chart-setting","label")},[a.caption]):null,T(O("bi-position-select"),{value:null===(C=d.value)||void 0===C||null===(C=C[e][t])||void 0===C?void 0:C[a.id],disabled:!(null!==(x=d.value)&&void 0!==x&&null!==(x=x[e][t])&&void 0!==x&&x.show),editorStyle:a.editorStyle,showCenter:a.showCenter,onChange:function(n){return h("".concat(e,".").concat(t,".").concat(a.id),n)}},null)]);case"ENDPOINT":return T("div",{class:[n.em("chart-setting","item"),n.em("chart-setting","endpoint")]},[a.showCaption?T("div",{class:n.em("chart-setting","label")},[a.caption]):null,T(O("el-input-number"),{modelValue:null===(E=d.value)||void 0===E||null===(E=E[e][t])||void 0===E?void 0:E[a.id],min:1,"controls-position":"right",onkeydown:f,onChange:function(n){return h("".concat(e,".").concat(t,".").concat(a.id),n)}},null)]);case"NUMBER":return T("div",{class:[n.em("chart-setting","item"),n.em("chart-setting","label-interval")]},[a.showCaption?T("div",{class:n.em("chart-setting","label")},[a.caption]):null,T(O("el-input-number"),{modelValue:null===(S=d.value)||void 0===S||null===(S=S[e][t])||void 0===S?void 0:S[a.id],min:0,step:1,precision:0,"controls-position":"right",onkeydown:f,onChange:function(n){return h("".concat(e,".").concat(t,".").concat(a.id),n)}},null)]);default:return T("div",{class:n.e("no-support")},["".concat((a.caption,t),"暂未实现")])}}))}(e,t.details,t.id))?o:{default:function(){return[o]}}):null}))},renderPagination:function(){return T("div",{class:n.e("chart-pagination")},[T("span",{class:n.em("chart-pagination","caption")},[A("显示条数:")]),T(O("el-popover"),{visible:r.value.paginationVisible,"onUpdate:visible":function(e){return r.value.paginationVisible=e},trigger:"click",placement:"top-start",width:240,"popper-class":n.em("chart-pagination","list")},{reference:function(){var e;return T("span",{class:n.em("chart-pagination","size")},[T("span",{class:n.em("chart-pagination","pagination-number")},[(null===(e=d.value)||void 0===e?void 0:e.data.size)||100]),T("span",{class:n.em("chart-pagination","icon")},[T("span",null,[A("条")]),T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",fill:"currentColor"},[T("g",{id:"aaynavigation/angle-down","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M7.978 11.997l-.005.006L2.3 6.33l.83-.831 4.848 4.848L12.826 5.5l.83.83-5.673 5.673-.005-.006z",id:"aay形状结合"},null)])])])])},default:function(){return[10,50,100,1e3,5e3].map((function(e){var t;return T("div",{class:[n.em("chart-pagination","pagination-item"),n.is("selected",e===(null===(t=d.value)||void 0===t?void 0:t.data.size))],onClick:function(){var t;t=e,r.value.paginationVisible=!1,h("data.size",t)}},[e])}))}})])}}},render:function(){var e=this;return T("div",{class:this.ns.b("container")},[T("div",{class:this.ns.e("caption")},[A("图表类型")]),T("div",{class:this.ns.e("chart-types")},[T(O("bi-chart-types"),{onSelect:this.onReportChartTypeChange,chartType:this.chartType},null)]),T("div",{class:[this.ns.e("style-select"),this.ns.is("style","style"===this.selectTabValue)]},[T(O("el-tabs"),{modelValue:this.selectTabValue,"onUpdate:modelValue":function(t){return e.selectTabValue=t},type:"card"},{default:function(){return[T(O("el-tab-pane"),{name:"data"},{default:function(){var t,a;return T("div",{class:e.ns.e("chart-setting")},[T(O("el-collapse"),{class:e.ns.b("editor-collapse"),accordion:!1,modelValue:e.groupConfig.data,"onUpdate:modelValue":function(t){return e.groupConfig.data=t}},da(a=e.renderDetails("data",null===(t=e.propertyConfig)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.details))?a:{default:function(){return[a]}})])},label:function(){return T("div",{class:e.ns.e("data")},[A("数据")])}}),T(O("el-tab-pane"),{name:"style"},{default:function(){var t,a;return T("div",{class:e.ns.e("chart-setting")},[T(O("el-collapse"),{class:e.ns.b("editor-collapse"),accordion:!0,modelValue:e.groupConfig.style,"onUpdate:modelValue":function(t){return e.groupConfig.style=t}},da(a=e.renderDetails("style",null===(t=e.propertyConfig)||void 0===t||null===(t=t.style)||void 0===t?void 0:t.details))?a:{default:function(){return[a]}})])},label:function(){return T("div",{class:e.ns.e("style")},[A("样式")])}})]}})])])}}),ua=function(){function e(){f(this,e),C(this,"providers",new Map)}return v(e,[{key:"register",value:function(e,t){this.providers.set(e,t)}},{key:"unRegister",value:function(e){this.providers.delete(e)}},{key:"get",value:function(e){var t=this.providers.get(e);if(t){for(var a=arguments.length,n=new Array(a>1?a-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{};this.schemaFields=e,this.config=t}},{key:"verifyState",value:function(e,t,a,n){var i=this,r=["ENABLECALC","MAXLIMIT","TYPELIMIT","REQUIRE"],o={ok:!0,msg:""};return a&&0!==a.length&&(r=a),r.some((function(a){var r=i.verifyMap.get(a);if(r){var s=r(e,t,i.schemaFields,i.config,I(I({},n),{},{that:i}));if(s&&!s.ok)return o=s,!0}return!1})),o}},{key:"checkRequire",value:function(e,t,a,n,i){var r=n.details.find((function(t){return t.id===e}));return r&&r.required&&(!t||t&&Array.isArray(t)&&0===t.length)?{ok:!1,msg:"".concat(r.caption.split("/")[0],"不能为空")}:{ok:!0,msg:""}}},{key:"checkLimit",value:function(e,t,a,n,i){var r=n.details.find((function(t){return t.id===e})),o={ok:!0,msg:""};if(!r)return o;var s=r.details[0];return s&&s.multiple&&t&&Array.isArray(t)&&t.length>=s.max?{ok:!1,msg:"".concat(s.caption.split("/")[0],"最多支持").concat(s.max,"个")}:o}},{key:"checkTypeLimit",value:function(e,t,a,n,i){var r,o=i.targetItem,s=i.that,l=n.details.find((function(t){return t.id===e})),c={ok:!0,msg:""};if(!l||!o)return c;var d=l.details[0];if(!d.typeLimit)return c;var p={ok:!1,msg:"该维度不支持".concat(d.subCaption||d.caption)},u=null==o||null===(r=o.psdefid)||void 0===r?void 0:r.split(".").at(-1),h=d.typeLimit,f=h.tag,m=h.types;if(m.includes("DATE")){var v=s.checkIsDate(o);if("IN"===f&&v)return c;if("NOTIN"===f&&v)return p}var y=a.find((function(e){return e.appDEFieldId===u}));if(!y)return p;var g=m.includes(y.type.toUpperCase());return"NOTIN"===f&&(g=!g),g?c:p}},{key:"checkIsDate",value:function(e){return!(!e||27!==e.stddatatype&&5!==e.stddatatype)}},{key:"checkEnableDragCalcField",value:function(e,t,a,n,i){var r=n.details.find((function(t){return t.id===e})),o={ok:!0,msg:""};if(!r)return o;var s=r.details[0];if(!s.disableCalcField)return o;var l={ok:!1,msg:"该维度不支持".concat(s.subCaption||s.caption)},c=i.targetItem;return c&&c.bidimensiontype&&"COMMON"!==c.bidimensiontype&&s.disableCalcField?l:o}}]),e}(),ga=function(){function e(t,a,n,i,r,o){f(this,e),C(this,"evt",new st),C(this,"allAppBICubes",[]),C(this,"state",void 0),C(this,"backupData",{}),C(this,"verifyController",void 0),this.context=t,this.viewParams=a,this.config=n,this.dismiss=i,this.measureToolbar=r,this.dimensionToolbar=o,this.verifyController=new ya,this.initState()}var t,a,n,i,r,o,s,l,d,p,u,h,m,g,w,T,x,E,S;return v(e,[{key:"getDefaultValue",value:function(e,t){var a=nt(e),n=a.chartDefaultValue,i=a.chartConfig,r=H(n);return t&&Object.keys(t).length>0&&Object.keys(t).forEach((function(e){"data"===e?Object.keys(t.data).forEach((function(e){if(Object.prototype.hasOwnProperty.call(r.data,e)){var a,n=null==i?void 0:i.data.details.find((function(t){return t.id===e}));if(!n)return;if(n&&n.details[0].multiple)r.data[e]=t.data[e];else r.data[e]=null===(a=t.data[e])||void 0===a?void 0:a.slice(0,1)}})):r[e]=t[e]})),r}},{key:"initState",value:function(){var e=this.config.selectChartType;this.state={},this.state.isCreated=!1,this.state.scheme=[],this.state.selectedScheme=void 0,this.state.cube=[],this.state.selectCube=void 0,this.state.measure=[],this.state.dimension=[],this.state.selectChartType=e,this.state.propertyData=this.getDefaultValue(this.config.selectChartType,this.config.propertyData),this.state.reportChart=void 0,this.state.schemaFields=[],this.state.dataChangeState=!1,this.state.reportModel=void 0,this.state.error={}}},{key:"verifyErrorState",value:function(e,t,a,n){return this.verifyController.verifyState(e,t,a,n)}},{key:"initErrorState",value:function(){var e=this;this.state.error={};var t=nt(this.state.selectChartType).chartConfig;if(t){var a=t.data;if(a&&a.details){var n=a.details.filter((function(e){return!0===e.required}));n&&0!==n.length&&n.forEach((function(t){e.state.error[t.id]={ok:!0,msg:""}}))}}}},{key:"setBackUpData",value:function(e){this.backupData=H({propertyData:e,selectChartType:this.state.selectChartType,selectCube:this.state.selectCube})}},{key:"created",value:(S=b(y().mark((function e(){var t;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetchSchemeDetails();case 2:return e.next=4,this.mergeSourceParams();case 4:return this.setBackUpData(this.state.propertyData),e.next=7,this.compileAppBIReport(this.state.propertyData);case 7:return(t=e.sent)&&(this.state.reportModel=t),e.next=11,this.initFilters();case 11:this.initVerifyState(),this.state.isCreated=!0;case 13:case"end":return e.stop()}}),e,this)}))),function(){return S.apply(this,arguments)})},{key:"mergeSourceParams",value:(E=b(y().mark((function e(){var t,a=this;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(t=this.state.propertyData.data)&&t.measure&&t.measure.length>0&&t.measure.forEach((function(e,t){var n=a.state.measure.find((function(t){return t.pssysbicubemeasureid===e.pssysbicubemeasureid}));n&&(a.state.propertyData.data.measure[t]=Object.assign(H(n),e))})),t&&t.dimension&&t.dimension.length>0&&t.dimension.forEach((function(e,t){var n=a.state.dimension.find((function(t){return t.pssysbicubedimensionid===e.pssysbicubedimensionid}));n&&(a.state.propertyData.data.dimension[t]=Object.assign(H(n),e))}));case 3:case"end":return e.stop()}}),e,this)}))),function(){return E.apply(this,arguments)})},{key:"destroyed",value:(x=b(y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return x.apply(this,arguments)})},{key:"fetchSchemeDetails",value:(T=b(y().mark((function e(){var t,a,n=this;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.config.selectCubeId,e.next=3,this.fetchCube();case 3:if(this.allAppBICubes=e.sent,a={},!(this.allAppBICubes&&this.allAppBICubes.length>0)){e.next=21;break}if(this.allAppBICubes.forEach((function(e){var i={id:e.pssysbischemeid,name:e.pssysbischemename};t===e.pssysbicubeid&&(n.state.selectedScheme=i,n.state.selectCube=e,n.context.pssysbicube=e.pssysbicubeid),a[e.pssysbischemeid]=i})),this.state.scheme=Object.values(a),!this.state.selectedScheme&&this.state.scheme.length>0&&(this.state.selectedScheme=this.state.scheme[0]),this.state.selectedScheme){e.next=11;break}return e.abrupt("return");case 11:if(this.state.cube=this.allAppBICubes.filter((function(e){return e.pssysbischemeid===n.state.selectedScheme.id})),!this.state.selectCube&&this.state.cube.length>0&&(this.state.selectCube=this.state.cube[0],this.context.pssysbicube=this.state.selectCube.pssysbicubeid),this.context.pssysbicube){e.next=15;break}return e.abrupt("return");case 15:return e.next=17,this.fetchCubeMeasure(this.context.pssysbicube);case 17:return this.state.measure=e.sent,e.next=20,this.fetchCubeDimension(this.context.pssysbicube);case 20:this.state.dimension=e.sent;case 21:case"end":return e.stop()}}),e,this)}))),function(){return T.apply(this,arguments)})},{key:"initFilters",value:(w=b(y().mark((function e(){var t,a,n;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.state.selectCube,a=[],!t){e.next=10;break}return e.next=5,Pt(t.psdename);case 5:if(!(n=e.sent)){e.next=10;break}return e.next=9,zt(n);case 9:a=e.sent;case 10:this.state.schemaFields=a;case 11:case"end":return e.stop()}}),e,this)}))),function(){return w.apply(this,arguments)})},{key:"fetchCube",value:(g=b(y().mark((function e(){var t,a;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=ibiz.hub.getApp(ibiz.env.appId),e.next=3,t.deService.exec("pssysbicube","fetchdefault",this.context,this.viewParams);case 3:return a=e.sent,e.abrupt("return",a.data||[]);case 5:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"fetchCubeMeasure",value:(m=b(y().mark((function e(t){var a,n,i;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=I(I({},this.viewParams),{n_pssysbicubeid_eq:t,size:1e3}),n=ibiz.hub.getApp(ibiz.env.appId),e.next=4,n.deService.exec("pssysbicubemeasure","fetchdefault",this.context,a);case 4:return i=e.sent,e.abrupt("return",i.data||[]);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"fetchCubeDimension",value:(h=b(y().mark((function e(t){var a,n,i;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=I(I({},this.viewParams),{n_pssysbicubeid_eq:t,size:1e3}),n=ibiz.hub.getApp(ibiz.env.appId),e.next=4,n.deService.exec("pssysbicubedimension","fetchdefault",this.context,a);case 4:return i=e.sent,e.abrupt("return",i.data||[]);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"refreshCubeDetails",value:(u=b(y().mark((function e(t){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if("measure"!==t){e.next=6;break}return e.next=5,this.fetchCubeMeasure(this.context.pssysbicube);case 5:this.state.measure=e.sent;case 6:if("dimension"!==t){e.next=10;break}return e.next=9,this.fetchCubeDimension(this.context.pssysbicube);case 9:this.state.dimension=e.sent;case 10:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"compileAppBIReport",value:(p=b(y().mark((function e(t){var a,n,i,r,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=H(this.context),Object.assign(a,{pssysbireport:"__UNKNOWN__"}),e.next=4,ibiz.util.biReport.translateDataToAppBIReport({reportTag:this.config.reportTag,selectChartType:this.state.selectChartType,selectCubeId:this.state.selectCube.pssysbicubeid,caption:t.caption,data:t.data,style:t.style,extend:t.extend});case 4:return n=e.sent,i=ibiz.hub.getApp(ibiz.env.appId),e.next=8,i.deService.exec("pssysbireport","compileappbireport",a,n);case 8:if(!(r=e.sent)||!r.data){e.next=15;break}return e.next=12,ibiz.hub.translationModelToDsl(r.data,"APPBIREPORT");case 12:return(o=e.sent).appBISchemeId=this.config.selectedSchemeId,e.abrupt("return",o);case 15:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"computeAppBIReportModel",value:(d=b(y().mark((function e(t,a){var n,i,r,o,s,l;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={},"caption"===t&&(n.name=a),t.startsWith("style")&&(s={selectChartType:this.state.selectChartType,style:this.state.propertyData.style},null!==(i=this.state.propertyData.data)&&void 0!==i&&i.filter&&Object.assign(s,{filter:this.state.propertyData.data.filter}),null!==(r=this.state.propertyData.data)&&void 0!==r&&r.period&&Object.assign(s,{period:this.state.propertyData.data.period}),(null===(o=this.state.propertyData.data)||void 0===o||null===(o=o.group)||void 0===o?void 0:o.length)>0&&(l=this.state.propertyData.data.group.map((function(e){return e.pssysbicubedimensionid})),Object.assign(s,{group:l})),this.state.propertyData.extend&&Object.assign(s,{extend:this.state.propertyData.extend}),n.reportUIModel=JSON.stringify(s)),!t.startsWith("data")){e.next=10;break}return e.next=6,this.compileAppBIReport(this.state.propertyData);case 6:if(e.t0=e.sent,e.t0){e.next=9;break}e.t0={};case 9:n=e.t0;case 10:return e.abrupt("return",n);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"checkData",value:function(e,t){this.state.error[e]=this.verifyErrorState(e,t,["REQUIRE"])}},{key:"setData",value:(l=b(y().mark((function e(t,a){var n,i,r,o,s,l,d,p;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(-1!==t.indexOf(".")){n=t.split("."),i=this.state.propertyData,r=c(n.slice(0,-1));try{for(r.s();!(o=r.n()).done;)s=o.value,i=i[s]}catch(u){r.e(u)}finally{r.f()}l=n[n.length-1],null===a?delete i[l]:i[l]=a,this.checkData(l,a)}else this.state.propertyData[t]=a;if(this.state.dataChangeState=!0,!(d=this.state.reportChart)){e.next=9;break}return e.next=6,this.computeAppBIReportModel(t,a);case 6:return p=e.sent,e.next=9,d.handleValueChange(t,a,p);case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"switchScheme",value:(s=b(y().mark((function e(t){var a,n;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this.state.scheme.length){e.next=2;break}return e.abrupt("return");case 2:if(a=this.state.scheme.find((function(e){return e.id===t}))){e.next=5;break}return e.abrupt("return");case 5:if(this.state.selectedScheme=a,n=this.allAppBICubes.filter((function(e){return e.pssysbischemeid===a.id})),this.state.cube=n||[],0!==this.state.cube.length){e.next=12;break}return this.state.selectCube=void 0,delete this.context.pssysbicube,e.abrupt("return");case 12:if(this.state.selectCube=this.state.cube[0],this.context.pssysbicube=this.state.selectCube.pssysbicubeid,this.context.pssysbicube){e.next=18;break}return this.state.measure=[],this.state.dimension=[],e.abrupt("return");case 18:return e.next=20,this.fetchCubeMeasure(this.context.pssysbicube);case 20:return this.state.measure=e.sent,e.next=23,this.fetchCubeDimension(this.context.pssysbicube);case 23:this.state.dimension=e.sent;case 24:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"switchCube",value:(o=b(y().mark((function e(t){var a;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(a=this.allAppBICubes.find((function(e){return e.pssysbicubeid===t}))){e.next=7;break}return this.state.selectCube=void 0,delete this.context.pssysbicube,e.abrupt("return");case 7:if(this.state.selectCube=a,this.context.pssysbicube=this.state.selectCube.pssysbicubeid,this.context.pssysbicube){e.next=13;break}return this.state.measure=[],this.state.dimension=[],e.abrupt("return");case 13:return e.next=15,this.fetchCubeMeasure(this.context.pssysbicube);case 15:return this.state.measure=e.sent,e.next=18,this.fetchCubeDimension(this.context.pssysbicube);case 18:return this.state.dimension=e.sent,this.evt.emit("onSelectedCube",{tag:t}),e.next=22,this.initFilters();case 22:return this.initVerifyState(),e.next=25,this.switchReportType(this.state.selectChartType,!1);case 25:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"initVerifyState",value:function(){var e;this.initErrorState();var t=nt(this.state.selectChartType).chartConfig;null===(e=this.verifyController)||void 0===e||e.init(this.state.schemaFields,t.data)}},{key:"switchReportType",value:(r=b(y().mark((function e(t){var a,n,i,r,o,s=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=!(s.length>1&&void 0!==s[1])||s[1],this.state.reportModel=void 0,this.state.dataChangeState=!0,this.state.selectChartType=t,n=H(this.state.propertyData),i={caption:n.caption},a&&Object.assign(i,{data:n.data}),r=this.getDefaultValue(t,i),e.next=10,this.compileAppBIReport(r);case 10:(o=e.sent)&&(this.state.reportModel=o,this.state.propertyData=r),this.initVerifyState(),this.evt.emit("onSelectedReportType",{tag:t});case 14:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"setReportChart",value:(i=b(y().mark((function e(t){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.state.reportChart=t;case 1:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"close",value:(n=b(y().mark((function e(){var t;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.state.dataChangeState){e.next=7;break}return e.next=3,ibiz.confirm.warning({title:"确认返回",desc:"返回则无法保存编辑的信息。"});case 3:t=e.sent,this.dismiss&&t&&this.dismiss({ok:!0,data:[]}),e.next=8;break;case 7:this.dismiss&&this.dismiss({ok:!0,data:[]});case 8:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"save",value:(a=b(y().mark((function e(){var t,a,n,i,r,o,s;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t={ok:!1},!(a=this.state.reportChart)){e.next=8;break}return e.next=5,a.checkData();case 5:if(e.sent){e.next=8;break}return e.abrupt("return");case 8:return n={reportTag:this.config.reportTag,selectChartType:this.state.selectChartType,selectCubeId:this.state.selectCube.pssysbicubeid,caption:this.state.propertyData.caption,data:this.state.propertyData.data,style:this.state.propertyData.style,extend:this.state.propertyData.extend},e.next=11,ibiz.util.biReport.translateDataToAppBIReport(n);case 11:return i=e.sent,r=H(this.context),o=ibiz.hub.getApp(ibiz.env.appId),e.prev=14,e.next=17,o.deService.exec("pssysbireport","update",r,i);case 17:(s=e.sent)&&s.data&&(t.data=s.data,this.setBackUpData(this.state.propertyData),ibiz.message.success("保存成功")),this.state.dataChangeState=!1,e.next=25;break;case 22:throw e.prev=22,e.t0=e.catch(14),new z(e.t0.message);case 25:this.dismiss&&this.dismiss(t);case 26:case"end":return e.stop()}}),e,this,[[14,22]])}))),function(){return a.apply(this,arguments)})},{key:"cancel",value:(t=b(y().mark((function e(){var t,a,n,i,r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.state.dataChangeState){e.next=12;break}return this.state.reportModel=void 0,t=H(this.backupData),a=t.propertyData,n=t.selectChartType,i=t.selectCube,this.state.propertyData=a,this.state.selectChartType=n,this.state.selectCube=i,e.next=8,this.compileAppBIReport(a);case 8:(r=e.sent)&&(this.state.reportModel=r),this.state.dataChangeState=!1,H(this.backupData);case 12:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getOptItemAction",value:function(e,t){var a=this,n=new $;return null!=t&&t.length?(t.forEach((function(e){var t=e.uiactionId;if(t){var i=new K(e.id,a.context.srfappid,t);n.addState(e.id,i)}})),n.update(this.context,e),n):(ibiz.log.debug(ibiz.i18n.t("runtime.controller.control.dataView.noBehaviourGroupAction")),n)}}]),e}(),ba=function(){function e(t){f(this,e),C(this,"legendGap",20),this.controller=t}var t;return v(e,[{key:"translateDataToModel",value:(t=b(y().mark((function e(t,a,n){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return e.stop()}}),e)}))),function(e,a,n){return t.apply(this,arguments)})},{key:"getLegendOPtions",value:function(e){var t={type:"scroll"};return"left"!==e&&"right"!==e||(t.orient="vertical",t[e]=this.legendGap,t.top="middle"),"top"!==e&&"bottom"!==e||(t.left="center",t.top=e),"left-top"===e&&(t.left=this.legendGap,t.top="top"),"right-top"===e&&(t.right=this.legendGap,t.top="top"),"left-bottom"===e&&(t.left=this.legendGap,t.top="bottom"),"right-bottom"===e&&(t.right=this.legendGap,t.top="bottom"),t}},{key:"getDefaultGridOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t={show:!1,left:"5%",right:"5%"};return["left-top","right-top","top"].includes(e)&&(t.bottom=70),["left-bottom","right-bottom","bottom"].includes(e)&&(t.top=30),"left"===e&&(t.top=30,t.bottom=70,t.right=0),"right"===e&&(t.top=30,t.bottom=70,t.let=0),JSON.stringify(t)}},{key:"axisLabel",value:function(){var e={formatter:"function(param) {\n if (param && param.includes(' ')) {\n const time = new Date(param);\n if (time.toString() !== 'Invalid Date') {\n return time.toLocaleDateString().replaceAll('/','-');\n }\n }\n return param.split('_').pop();\n }"};return e}},{key:"computeLabelEllipsis",value:function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?{width:60*(e>0?e:1),overflow:"truncate",ellipsis:"..."}:{}}},{key:"computeAxisLayout",value:function(e,t){var a,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return"RIGHT"===(null===(a=t.extend)||void 0===a?void 0:a["axis@".concat(e.valueField)])?n?{"EC.xAxisIndex":1}:{"EC.yAxisIndex":1}:{}}}]),e}(),wa=function(e){n(i,e);var t,a=r(i);function i(){return f(this,i),a.apply(this,arguments)}return v(i,[{key:"translateDataToModel",value:(t=b(y().mark((function e(t,a){var n,i,r,o,s,l,c,d,p,u,h,f=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(i=f.length>2&&void 0!==f[2]?f[2]:{}).appDataEntityId,o=i.items,s=i.mode,r&&a&&t){e.next=4;break}return e.abrupt("return");case 4:if(t.appBIReportMeasures){e.next=6;break}return e.abrupt("return",a);case 6:return l={appId:ibiz.env.appId,appDataEntityId:r,caption:t.name,catalog:"$catalog",value:null===(n=t.appBIReportMeasures)||void 0===n?void 0:n[0].measureTag},wt(a,(function(e){return It(e,l)})),t&&(d=this.transform(t,o),p=d.params,u=d.seriesParams,Object.assign(a,{userParam:p}),null===(c=a.dechartSerieses)||void 0===c||c.forEach((function(e){Object.assign(e,{userParam:u})}))),"CONTENT"===s&&(h=t.appBIReportMeasures.map((function(e){return{name:e.measureTag,isDrill:!!e.drillDetailAppViewId}})),Object.assign(a,{controlParam:{ctrlParams:{ENABLEDRILLDETAIL:h}}})),e.abrupt("return",a);case 11:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"transform",value:function(e,t){var a={"EC.color":JSON.stringify([])},n=e.reportUIModel,i=e.appBIReportMeasures,r=!1;i[0].jsonFormat&&(r=!0);var o,s={"EC.type":"gauge","EC.radius":"90%","EC.startAngle":"220","EC.endAngle":"-40","EC.splitNumber":"4","EC.tooltip":"{\n formatter:function(param){\n let value = param.value[0];\n if(".concat(r,"){\n value = ibiz.util.text.format(String(value), '").concat(i[0].jsonFormat,'\') || value;\n }\n return "
"+ param.seriesId +"
"+ param.marker + param.name+""+ value+"
"\n }\n }'),"EC.axisTick":'{"splitNumber":5,"distance":5,"lineStyle":{"width":2,"color":"#ddd"}}',"EC.splitLine":'{"length":10,"distance":5,"lineStyle":{"width":2,"color":"#ddd"}}',"EC.title":'{"show":false}',"EC.pointer":'{"length":"50%"}',"EC.detail":'{"offsetCenter":[0,"60%"]}',"EC.progress":'{"show":true,"width":60}',"EC.axisLine":'{"lineStyle":{"width":60,"color":[[1,"rgb(245, 245, 245)"]]}}',"EC.axisLabel":'{"distance":76,"color":"#333","fontSize":12,"formatter": "function (num){return (num * 100) / 100 + `%` }"}'};if(n){var l=JSON.parse(n);l.style&&(o=l.style)}if(o){var c=o,d=c.graphics,p=c.fontSetting,u=c.featureSetting;if(d&&(d.color&&"string"==typeof d.color&&(a["EC.color"]=JSON.stringify([d.color])),Array.isArray(d.color)&&(a["EC.color"]=JSON.stringify(d.color))),p){var h=p.font||{},f=h.fontWeight,m=h.fontStyle,v=h.fontSize,y=h.color;s["EC.detail"]=JSON.stringify({offsetCenter:[0,"60%"],fontWeight:f,fontStyle:m,fontSize:v,color:y,formatter:"function (value) {\n let tempValue = value;\n if('".concat(i[0].jsonFormat,"' !== 'undefined'){\n tempValue = ibiz.util.text.format(String(value), '").concat(i[0].jsonFormat,"')\n }\n return tempValue;\n }")})}if(u){var g=u.endpoint;s["EC.max"]=JSON.stringify(g),s["EC.axisLabel"]=JSON.stringify({distance:76,color:"#333",fontSize:12,formatter:"function (num){return (num * 100) / '".concat(g,"' + '%' }")})}}return{params:a,seriesParams:s,axisParams:{}}}}]),i}(ba),Ia=function(e){n(i,e);var t,a=r(i);function i(){return f(this,i),a.apply(this,arguments)}return v(i,[{key:"translateDataToModel",value:(t=b(y().mark((function e(t,a){var n,i,r,o,s,l,c,p,u,h,f,m,v,g,b,w,C,T,x,E=this,S=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(i=S.length>2&&void 0!==S[2]?S[2]:{}).appDataEntityId,o=i.items,s=i.mode,l=i.chartid,t&&a&&r){e.next=4;break}return e.abrupt("return");case 4:if(t.appBIReportDimensions&&t.appBIReportMeasures){e.next=6;break}return e.abrupt("return",a);case 6:return c={appId:ibiz.env.appId,appDataEntityId:r,caption:t.name},wt(a,(function(e){return It(e,c)})),a.dechartSerieses=[],p={caption:"srfCaption",catalogField:"srfCatalogField",echartsType:"bar",chartCoordinateSystemId:"0",chartDataSetId:"0",chartSeriesEncode:{chartXAxisId:"0",chartYAxisId:"0",x:["srfCatalogField"],y:["srfValue"],type:"XY",name:"坐标系编码",id:"0",appId:"srfAppId"},seriesLayoutBy:"column",seriesType:"bar",valueField:"srfValue",serieText:"srfSerieText",catalogName:"srfCatalogName",enableChartDataSet:!0,appId:"srfAppId"},u={},t.reportUIModel&&(u=JSON.parse(t.reportUIModel)),h=[],u&&u.group&&Array.isArray(u.group)&&(h=Dt(u.group,t.appBIReportDimensions)),f=St(t.appBIReportMeasures,p,{appDataEntityId:r,caption:t.name,dimension:t.appBIReportDimensions[0]},(function(e){if(h&&h.length){var t=h[0];Object.assign(e,{seriesCodeListId:t.appCodeListId,seriesField:t.measureTag})}})),(n=a.dechartSerieses).push.apply(n,d(f)),t&&(v=this.transformStyle(t,h,l)||{},g=v.params,b=v.seriesParams,Object.assign(a,{userParam:g}),null===(m=a.dechartSerieses)||void 0===m||m.forEach((function(e){Object.assign(e,{userParam:I(I(I({},E.computeAxisLayout(e,u,!0)),E.computeMaxMin(b,o,e)),Ot(h,e,!0,!0))})}))),w={MODE:"ROW"},"CONTENT"===s&&(C=t.appBIReportMeasures.map((function(e){return{name:e.measureTag,isDrill:!!e.drillDetailAppViewId}})),Object.assign(w,{ENABLEDRILLDETAIL:C})),T=!1,x=t.appBIReportDimensions.filter((function(e){if(h.length&&!T){var t=h[0].measureTag;return e.dimensionTag!==t||(T=!0,!1)}return!0})).map((function(e){var t;return{sort:null===(t=u.extend)||void 0===t?void 0:t["sort@".concat(e.dimensionTag)],codename:e.dimensionTag,name:e.dimensionName,mode:e.appCodeListId?"codelist":"field",codelistId:e.appCodeListId}})),Object.assign(w,{CATALOGFIELDS:JSON.stringify(x),NOSORT:!0,chartid:l}),Object.assign(a,{controlParam:{ctrlParams:w}}),e.abrupt("return",a);case 24:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"computeMaxMin",value:function(e,t,a){var n=H(JSON.parse(e["EC.label"]));if(n&&"all"!==n.scope){var i=a.valueField,r=t.filter((function(e){return Object.prototype.hasOwnProperty.call(e,i)})).map((function(e){return Number(e[i])||0})),o=Math.max.apply(Math,d(r))||0,s=Math.min.apply(Math,d(r))||0;n.formatter="function(param) {\n if(param.value[0] === ".concat(o," || param.value[0] === ").concat(s,"){\n if('").concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[0]), '").concat(a.jsonFormat,"')\n return value;\n } \n return param.value[0];\n }\n return '';\n }")}return n&&"all"===n.scope&&(n.formatter="function(param) {\n if('".concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[0]), '").concat(a.jsonFormat,"')\n return value;\n } \n return param.value[0];\n }")),I(I({},e),{},{"EC.label":JSON.stringify(n)})}},{key:"transformStyle",value:function(e,t,a){var n,i={},r={},o=e.reportUIModel;if(o){var s=JSON.parse(o);s.style&&(n=s.style)}if(i["EC.title"]=JSON.stringify({show:!1}),n){var l=n,c=l.graphics,d=l.label,p=l.legend,u=l.xAxis,h=l.yAxis;if(c&&Array.isArray(c.color)&&c.color.length&&(i["EC.color"]=JSON.stringify(c.color)),d){var f=I({show:!!d.show,scope:d.scope,formatter:"function(param) {\n return param.value[0];\n }",position:d.position},d.font);r["EC.label"]=JSON.stringify(f)}if(p){var m="";t&&t.length>0&&(m=t[0].measureTag);var v={show:!!p.show,textStyle:p.font,icon:"circle",formatter:"function(param){\n const chartData = JSON.parse(localStorage.getItem('".concat(a,"'));\n let legendtext = param;\n if('").concat(m,"' && chartData && chartData['").concat(m,"']){\n legendtext = chartData['").concat(m,"'][param]\n }\n return legendtext;\n }")};p.position&&Object.assign(v,this.getLegendOPtions(p.position)),i["EC.legend"]=JSON.stringify(v)}if(u){var y=u.show,g=u.showTitle,b=u.titleFont,w=u.showLabel,C=u.labelFont,T=u.showAxisline,x=u.axisline,E=u.showGridline,S=u.gridline,D={show:!!y,type:"value",showTitle:g,nameLocation:"center",nameTextStyle:I({lineHeight:60},b),axisLabel:I({show:!!w},C),axisLine:{show:!!T,lineStyle:{type:"doubleDashed"===x.borderStyle?[15]:x.borderStyle,width:x.borderSize,color:x.color}},splitLine:{show:!!E,lineStyle:{type:"doubleDashed"===S.borderStyle?[15]:S.borderStyle,width:S.borderSize,color:S.color}}};i["EC.xAxis"]=JSON.stringify(D)}if(h){var O=h.show,A=h.showTitle,M=h.titleFont,L=h.showLabel,R=h.labelFont,k=h.showAxisline,F=h.axisline,N=h.showGridline,P=h.gridline,B=h.enableLabelInterval,z=h.labelInterval,G={show:!!O,type:"category",name:A?void 0:"",nameTextStyle:I({},M),axisLabel:I(I(I({show:!!L,interval:B?z:"auto"},this.axisLabel()),R),this.computeLabelEllipsis(B,z)),axisLine:{show:!!k,lineStyle:{type:"doubleDashed"===F.borderStyle?[15]:F.borderStyle,width:F.borderSize,color:F.color}},splitLine:{show:!!N,lineStyle:{type:"doubleDashed"===P.borderStyle?[15]:P.borderStyle,width:P.borderSize,color:P.color}}};i["EC.yAxis"]=JSON.stringify(G)}i["EC.grid"]=this.getDefaultGridOptions(null==p?void 0:p.position)}return{params:i,seriesParams:r,axisParams:{}}}},{key:"axisLabel",value:function(){var e={formatter:"function(param) {\n if (param && param.includes(' ')) {\n const time = new Date(param);\n if (time.toString() !== 'Invalid Date') {\n return time.toLocaleDateString().replaceAll('/','-');\n }\n }\n if(param.indexOf('_') < 0){\n return param;\n }\n const str = param.split('_').pop();\n if(str.length > 4){\n return str.slice(0,4) + '...'\n }\n return str;\n }"};return e}}]),i}(ba),Ca=function(e){n(i,e);var t,a=r(i);function i(){return f(this,i),a.apply(this,arguments)}return v(i,[{key:"translateDataToModel",value:(t=b(y().mark((function e(t,a){var n,i,r,o,s,l,c,p,u,h,f,m,v,g,b,w,C,T,x,E=this,S=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(i=S.length>2&&void 0!==S[2]?S[2]:{}).appDataEntityId,o=i.items,s=i.mode,l=i.chartid,t&&a&&r){e.next=4;break}return e.abrupt("return");case 4:if(t.appBIReportDimensions&&t.appBIReportMeasures){e.next=6;break}return e.abrupt("return",a);case 6:return c={appId:ibiz.env.appId,appDataEntityId:r,caption:t.name},wt(a,(function(e){return It(e,c)})),a.dechartSerieses=[],p={caption:"srfCaption",catalogField:"srfCatalogField",echartsType:"line",chartCoordinateSystemId:"0",chartDataSetId:"0",chartSeriesEncode:{chartXAxisId:"0",chartYAxisId:"0",x:["srfCatalogField"],y:["srfValue"],type:"XY",name:"坐标系编码",id:"0",appId:"srfAppId"},seriesLayoutBy:"column",seriesType:"line",valueField:"srfValue",serieText:"srfSerieText",catalogName:"srfCatalogName",enableChartDataSet:!0,appId:"srfAppId"},u={},t.reportUIModel&&(u=JSON.parse(t.reportUIModel)),h=[],u&&u.group&&Array.isArray(u.group)&&(h=Dt(u.group,t.appBIReportDimensions)),f=St(t.appBIReportMeasures,p,{appDataEntityId:r,caption:t.name,dimension:t.appBIReportDimensions[0]},(function(e){if(h&&h.length){var t=h[0];Object.assign(e,{seriesCodeListId:t.appCodeListId,seriesField:t.measureTag})}})),(n=a.dechartSerieses).push.apply(n,d(f)),t&&(v=this.transformStyle(t,h,l)||{},g=v.params,b=v.seriesParams,Object.assign(a,{userParam:g}),null===(m=a.dechartSerieses)||void 0===m||m.forEach((function(e){Object.assign(e,{userParam:I(I(I({},E.computeAxisLayout(e,u)),E.computeMaxMin(b,o,e)),Ot(h,e))})})),w={},"CONTENT"===s&&(C=t.appBIReportMeasures.map((function(e){return{name:e.measureTag,isDrill:!!e.drillDetailAppViewId}})),Object.assign(w,{ENABLEDRILLDETAIL:C})),T=!1,x=t.appBIReportDimensions.filter((function(e){if(h.length&&!T){var t=h[0].measureTag;return e.dimensionTag!==t||(T=!0,!1)}return!0})).map((function(e){var t;return{sort:null===(t=u.extend)||void 0===t?void 0:t["sort@".concat(e.dimensionTag)],codename:e.dimensionTag,name:e.dimensionName,mode:e.appCodeListId?"codelist":"field",codelistId:e.appCodeListId}})),Object.assign(w,{CATALOGFIELDS:JSON.stringify(x),NOSORT:!0,chartid:l}),Object.assign(a,{controlParam:{ctrlParams:w}})),e.abrupt("return",a);case 18:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"computeMaxMin",value:function(e,t,a){var n=H(JSON.parse(e["EC.label"]));if(n&&"all"!==n.scope){var i=a.valueField,r=t.filter((function(e){return Object.prototype.hasOwnProperty.call(e,i)})).map((function(e){return Number(e[i])||0})),o=Math.max.apply(Math,d(r))||0,s=Math.min.apply(Math,d(r))||0;n.formatter="function(param) {\n if(param.value[1] === ".concat(o," || param.value[1] === ").concat(s,"){\n if('").concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[1]), '").concat(a.jsonFormat,"')\n return value;\n } \n return param.value[1];\n }\n return '';\n }")}return n&&"all"===n.scope&&(n.formatter="function(param) {\n if('".concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[1]), '").concat(a.jsonFormat,"')\n return value;\n } \n return param.value[1];\n }")),I(I({},e),{},{"EC.label":JSON.stringify(n)})}},{key:"transformStyle",value:function(e,t,a){var n,i={},r={},o=e.reportUIModel;if(o){var s=JSON.parse(o);s.style&&(n=s.style)}if(i["EC.title"]=JSON.stringify({show:!1}),n){var l=n,c=l.graphics,d=l.label,p=l.legend,u=l.xAxis,h=l.yAxis;if(c&&Array.isArray(c.color)&&c.color.length&&(i["EC.color"]=JSON.stringify(c.color)),d){var f=I({show:!!d.show,scope:d.scope,formatter:"function(param) {\n return param.value[1];\n }",position:d.position},d.font);r["EC.label"]=JSON.stringify(f)}if(p){var m="";t&&t.length>0&&(m=t[0].measureTag);var v={show:!!p.show,textStyle:p.font,icon:"circle",formatter:"function(param){\n const chartData = JSON.parse(localStorage.getItem('".concat(a,"'));\n let legendtext = param;\n if('").concat(m,"' && chartData && chartData['").concat(m,"']){\n legendtext = chartData['").concat(m,"'][param]\n }\n return legendtext;\n }")};p.position&&Object.assign(v,this.getLegendOPtions(p.position)),i["EC.legend"]=JSON.stringify(v)}if(u){var y=u.show,g=u.showTitle,b=u.titleFont,w=u.showLabel,C=u.labelFont,T=u.showAxisline,x=u.axisline,E=u.showGridline,S=u.gridline,D=u.enableLabelInterval,O=u.labelInterval,A={show:!!y,type:"category",name:g?void 0:"",nameTextStyle:I({},b),axisLabel:I(I(I({show:!!w,interval:D?O:"auto"},this.axisLabel()),C),this.computeLabelEllipsis(D,O)),axisLine:{show:!!T,lineStyle:{type:"doubleDashed"===x.borderStyle?[15]:x.borderStyle,width:x.borderSize,color:x.color}},splitLine:{show:!!E,lineStyle:{type:"doubleDashed"===S.borderStyle?[15]:S.borderStyle,width:S.borderSize,color:S.color}}};i["EC.xAxis"]=JSON.stringify(A)}if(h){var M=h.show,L=h.showTitle,R=h.titleFont,k=h.showLabel,F=h.labelFont,N=h.showAxisline,P=h.axisline,B=h.showGridline,z=h.gridline,G={show:!!M,type:"value",showTitle:L,nameTextStyle:I({},R),axisLabel:I({show:!!k},F),axisLine:{show:!!N,lineStyle:{type:"doubleDashed"===P.borderStyle?[15]:P.borderStyle,width:P.borderSize,color:P.color}},splitLine:{show:!!B,lineStyle:{type:"doubleDashed"===z.borderStyle?[15]:z.borderStyle,width:z.borderSize,color:z.color}}};i["EC.yAxis"]=JSON.stringify(G)}i["EC.grid"]=this.getDefaultGridOptions(null==p?void 0:p.position)}return{params:i,seriesParams:r,axisParams:{}}}}]),i}(ba),Ta=function(e){n(i,e);var t,a=r(i);function i(){return f(this,i),a.apply(this,arguments)}return v(i,[{key:"translateDataToModel",value:(t=b(y().mark((function e(t,a){var n,i,r,o,s,l,c,p,u,h,f,m,v,g,b,w,C,T,x,E=this,S=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(i=S.length>2&&void 0!==S[2]?S[2]:{}).appDataEntityId,o=i.items,s=i.mode,l=i.chartid,t&&a&&r){e.next=4;break}return e.abrupt("return");case 4:if(t.appBIReportDimensions&&t.appBIReportMeasures){e.next=6;break}return e.abrupt("return",a);case 6:return c={appId:ibiz.env.appId,appDataEntityId:r,caption:t.name},wt(a,(function(e){return It(e,c)})),a.dechartSerieses=[],p={caption:"srfCaption",catalogField:"srfCatalogField",echartsType:"bar",chartCoordinateSystemId:"0",chartDataSetId:"0",chartSeriesEncode:{chartXAxisId:"0",chartYAxisId:"0",x:["srfCatalogField"],y:["srfValue"],type:"XY",name:"坐标系编码",id:"0",appId:"srfAppId"},seriesLayoutBy:"column",seriesType:"bar",valueField:"srfValue",serieText:"srfSerieText",catalogName:"srfCatalogName",enableChartDataSet:!0,appId:"srfAppId"},u={},t.reportUIModel&&(u=JSON.parse(t.reportUIModel)),h=[],u&&u.group&&Array.isArray(u.group)&&(h=Dt(u.group,t.appBIReportDimensions)),f=St(t.appBIReportMeasures,p,{appDataEntityId:r,caption:t.name,dimension:t.appBIReportDimensions[0]},(function(e){if(h&&h.length){var t=h[0];Object.assign(e,{seriesCodeListId:t.appCodeListId,seriesField:t.measureTag})}})),(n=a.dechartSerieses).push.apply(n,d(f)),t&&(v=this.transformStyle(t,h,l)||{},g=v.params,b=v.seriesParams,Object.assign(a,{userParam:g}),null===(m=a.dechartSerieses)||void 0===m||m.forEach((function(e){Object.assign(e,{userParam:I(I(I({"EC.barWidth":"50%","EC.barMaxWidth":"36"},E.computeAxisLayout(e,u)),E.computeMaxMin(b,o,e)),Ot(h,e,!0))})})),w={},"CONTENT"===s&&(C=t.appBIReportMeasures.map((function(e){return{name:e.measureTag,isDrill:!!e.drillDetailAppViewId}})),Object.assign(w,{ENABLEDRILLDETAIL:C})),T=!1,x=t.appBIReportDimensions.filter((function(e){if(h.length&&!T){var t=h[0].measureTag;return e.dimensionTag!==t||(T=!0,!1)}return!0})).map((function(e){var t;return{sort:null===(t=u.extend)||void 0===t?void 0:t["sort@".concat(e.dimensionTag)],codename:e.dimensionTag,name:e.dimensionName,mode:e.appCodeListId?"codelist":"field",codelistId:e.appCodeListId}})),Object.assign(w,{CATALOGFIELDS:JSON.stringify(x),NOSORT:!0,chartid:l}),Object.assign(a,{controlParam:{ctrlParams:w}})),e.abrupt("return",a);case 18:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"computeMaxMin",value:function(e,t,a){var n=H(JSON.parse(e["EC.label"]));if(n&&"all"!==n.scope){var i=a.valueField,r=t.filter((function(e){return Object.prototype.hasOwnProperty.call(e,i)})).map((function(e){return Number(e[i])||0})),o=Math.max.apply(Math,d(r))||0,s=Math.min.apply(Math,d(r))||0;n.formatter="function(param) { \n if(param.value[1] === ".concat(o," || param.value[1] === ").concat(s,"){\n if('").concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[1]), '").concat(a.jsonFormat,"')\n return value;\n } \n return param.value[1];\n }\n return '';\n }")}return n&&"all"===n.scope&&(n.formatter="function(param) {\n if('".concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[1]), '").concat(a.jsonFormat,"')\n return value;\n } \n return param.value[1];\n }")),I(I({},e),{},{"EC.label":JSON.stringify(n)})}},{key:"transformStyle",value:function(e,t,a){var n,i={},r={},o=e.reportUIModel;if(o){var s=JSON.parse(o);s.style&&(n=s.style)}if(i["EC.title"]=JSON.stringify({show:!1}),n){var l=n,c=l.graphics,d=l.label,p=l.legend,u=l.xAxis,h=l.yAxis;if(c&&(c.color&&"string"==typeof c.color&&(i["EC.color"]=JSON.stringify([c.color])),Array.isArray(c.color)&&c.color.length&&(i["EC.color"]=JSON.stringify(c.color))),d){var f=I({show:!!d.show,scope:d.scope,formatter:"function(param) {\n return param.value[1];\n }",position:d.position},d.font);r["EC.label"]=JSON.stringify(f)}if(p){var m="";t&&t.length>0&&(m=t[0].measureTag);var v={show:!!p.show,textStyle:p.font,icon:"circle",formatter:"function(param){\n const chartData = JSON.parse(localStorage.getItem('".concat(a,"'));\n let legendtext = param;\n if('").concat(m,"' && chartData && chartData['").concat(m,"']){\n legendtext = chartData['").concat(m,"'][param]\n }\n return legendtext;\n }")};p.position&&Object.assign(v,this.getLegendOPtions(p.position)),i["EC.legend"]=JSON.stringify(v)}if(u){var y=u.show,g=u.showTitle,b=u.titleFont,w=u.showLabel,C=u.labelFont,T=u.showAxisline,x=u.axisline,E=u.showGridline,S=u.gridline,D=u.enableLabelInterval,O=u.labelInterval,A={show:!!y,type:"category",name:g?void 0:"",nameTextStyle:I({},b),axisLabel:I(I(I({show:!!w,interval:D?O:"auto"},this.axisLabel()),C),this.computeLabelEllipsis(D,O)),axisLine:{show:!!T,lineStyle:{type:"doubleDashed"===x.borderStyle?[15]:x.borderStyle,width:x.borderSize,color:x.color}},minorSplitLine:{show:!1},splitLine:{show:!!E,lineStyle:{type:"doubleDashed"===S.borderStyle?[15]:S.borderStyle,width:S.borderSize,color:S.color}}};i["EC.xAxis"]=JSON.stringify(A)}if(h){var M=h.show,L=h.showTitle,R=h.titleFont,k=h.showLabel,F=h.labelFont,N=h.showAxisline,P=h.axisline,B=h.showGridline,z=h.gridline,G={show:!!M,type:"value",showTitle:L,nameTextStyle:I({},R),axisLabel:I({show:!!k},F),axisLine:{show:!!N,lineStyle:{type:"doubleDashed"===P.borderStyle?[15]:P.borderStyle,width:P.borderSize,color:P.color}},minorSplitLine:{show:!1},splitLine:{show:!!B,lineStyle:{type:"doubleDashed"===z.borderStyle?[15]:z.borderStyle,width:z.borderSize,color:z.color}}};i["EC.yAxis"]=JSON.stringify(G)}i["EC.grid"]=this.getDefaultGridOptions(null==p?void 0:p.position)}return{params:i,seriesParams:r,axisParams:{}}}},{key:"axisLabel",value:function(){var e={formatter:"function(param) {\n if (param && param.includes(' ')) {\n const time = new Date(param);\n if (time.toString() !== 'Invalid Date') {\n return time.toLocaleDateString().replaceAll('/','-');\n }\n }\n if(param.indexOf('_') < 0){\n return param;\n }\n const str = param.split('_').pop();\n if(str.length > 4){\n return str.slice(0,4) + '...'\n }\n return str;\n }"};return e}}]),i}(ba),xa=function(e){n(i,e);var t,a=r(i);function i(){return f(this,i),a.apply(this,arguments)}return v(i,[{key:"translateDataToModel",value:(t=b(y().mark((function e(t,a){var n,i,r,o,s,l,c,p,u,h,f,m,v,g,b,w=this,C=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(i=C.length>2&&void 0!==C[2]?C[2]:{}).appDataEntityId,o=i.items,s=i.mode,l=i.chartid,t&&a&&r){e.next=4;break}return e.abrupt("return");case 4:if(t.appBIReportDimensions&&t.appBIReportMeasures){e.next=6;break}return e.abrupt("return",a);case 6:return c={appId:ibiz.env.appId,appDataEntityId:r,caption:t.name,catalog:t.appBIReportDimensions[0].dimensionTag,value:t.appBIReportMeasures[0].measureTag},wt(a,(function(e){return It(e,c)})),a.dechartSerieses=[],p={caption:"srfCaption",catalogField:"srfCatalogField",echartsType:"pie",chartCoordinateSystemId:"0",chartDataSetId:"0",chartSeriesEncode:{category:"srfCatalogField",value:"srfValue",type:"NONE",name:"坐标系编码",id:"0",appId:"srfAppId"},seriesLayoutBy:"column",seriesType:"pie",valueField:"srfValue",enableChartDataSet:!0,id:"pie_0",appId:"srfAppId"},u=St(t.appBIReportMeasures,p,{appDataEntityId:r,caption:t.name,dimension:t.appBIReportDimensions[0]}),(n=a.dechartSerieses).push.apply(n,d(u)),t&&(f=this.transformStyle(t,t.appBIReportDimensions[0],l)||{},m=f.params,v=f.seriesParams,Object.assign(a,{userParam:m}),null===(h=a.dechartSerieses)||void 0===h||h.forEach((function(e){Object.assign(e,{userParam:I(I({},w.computeMaxMin(v,o,e)),At(e,t.appBIReportMeasures,t.appBIReportDimensions[0]))})})),g={},"CONTENT"===s&&(b=t.appBIReportMeasures.map((function(e){return{name:e.measureTag,isDrill:!!e.drillDetailAppViewId}})),Object.assign(g,{ENABLEDRILLDETAIL:b})),Object.assign(a,{controlParam:{ctrlParams:I(I({},g),{},{chartid:l})}})),e.abrupt("return",a);case 14:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"computeMaxMin",value:function(e,t,a){var n=H(JSON.parse(e["EC.label"]));if(n&&"all"!==n.scope){var i=a.valueField,r=t.filter((function(e){return Object.prototype.hasOwnProperty.call(e,i)})).map((function(e){return Number(e[i])})),o=Math.max.apply(Math,d(r)),s=Math.min.apply(Math,d(r));n.formatter="function(param) {\n let tempName = param.name;\n const { data } = param;\n const getOrigin = (origin) => {\n if (origin && origin.$origin) {\n return getOrigin(origin.$origin);\n }\n return origin;\n };\n const origin = getOrigin(data.value[1].$origin);\n const chartData = JSON.parse(localStorage.getItem(data.value[1]._chartid));\n if(origin){\n const field = Object.keys(origin).find(key => {\n return origin[key] === param.name;\n })\n if(field && chartData && chartData[field]){\n tempName = chartData[field][param.name];\n }\n }else if(chartData){\n const _tempname = Object.keys(chartData).find(_chart => {\n return chartData[_chart][param.name]\n })\n if(_tempname){\n tempName = chartData[_tempname][param.name]\n }\n }\n\n if(param.value[0] === ".concat(o," || param.value[0] === ").concat(s,"){\n if(").concat(n.percentage,"){\n return tempName + ':(' + param.percent + '%' + ')';\n }\n if('").concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[0]), '").concat(a.jsonFormat,"')\n return tempName + ':' + value;\n } \n return tempName + ':' + param.value[0];\n }\n return '';\n }")}return n&&"all"===n.scope&&(n.formatter="function(param) {\n let tempName = param.name;\n const { data } = param;\n const getOrigin = (origin) => {\n if (origin && origin.$origin) {\n return getOrigin(origin.$origin);\n }\n return origin;\n };\n const origin = getOrigin(data.value[1].$origin);\n const chartData = JSON.parse(localStorage.getItem(data.value[1]._chartid));\n if(origin){\n const field = Object.keys(origin).find(key => {\n return origin[key] === param.name;\n })\n if(field && chartData && chartData[field]){\n tempName = chartData[field][param.name];\n }\n }else if(chartData){\n const _tempname = Object.keys(chartData).find(_chart => {\n return chartData[_chart][param.name]\n })\n if(_tempname){\n tempName = chartData[_tempname][param.name]\n }\n }\n\n if(".concat(n.percentage,"){\n return tempName + ':(' + param.percent + '%' + ')';\n }\n if('").concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[0]), '").concat(a.jsonFormat,"')\n return tempName + ':' + value;\n } \n return tempName + ':' + param.value[0];\n }")),I(I({},e),{},{"EC.label":JSON.stringify(n)})}},{key:"transformStyle",value:function(e,t,a){var n,i={},r={},o=e.reportUIModel;if(o){var s=JSON.parse(o);s.style&&(n=s.style)}if(i["EC.title"]=JSON.stringify({show:!1}),n){var l=n,c=l.graphics,d=l.label,p=l.legend;if(c&&Array.isArray(c.color)&&c.color.length&&(i["EC.color"]=JSON.stringify(c.color)),d){var u=I({show:!!d.show,scope:d.scope,percentage:d.percentage},d.font);if(d.percentage?u.formatter="function(param) {\n let tempName = param.name;\n const { data } = param;\n const getOrigin = (origin) => {\n if (origin && origin.$origin) {\n return getOrigin(origin.$origin);\n }\n return origin;\n };\n const origin = getOrigin(data.value[1].$origin);\n const chartData = JSON.parse(localStorage.getItem(data.value[1]._chartid));\n const field = Object.keys(origin).find(key => {\n return origin[key] === param.name;\n })\n if(field && chartData[field]){\n tempName = chartData[field][param.name];\n }\n\n return tempName + ':(' + param.percent + '%' + ')';\n }":u.formatter="function(param) {\n let tempName = param.name;\n const { data } = param;\n const getOrigin = (origin) => {\n if (origin && origin.$origin) {\n return getOrigin(origin.$origin);\n }\n return origin;\n };\n const origin = getOrigin(data.value[1].$origin);\n const chartData = JSON.parse(localStorage.getItem(data.value[1]._chartid));\n const field = Object.keys(origin).find(key => {\n return origin[key] === param.name;\n })\n if(field && chartData[field]){\n tempName = chartData[field][param.name];\n }\n\n return tempName + ':' + param.value[0];\n }",r["EC.label"]=JSON.stringify(u),"all"!==d.scope){r["EC.labelLayout"]=function(e){if(""===e.text)return{fontSize:0,height:0,labelLinePoints:[0,0]}}}d.show||(r["EC.emphasis"]=JSON.stringify({label:!1}))}if(p){var h={show:!!p.show,textStyle:p.font,icon:"circle",formatter:"function(param){\n const chartData = JSON.parse(localStorage.getItem('".concat(a,"'));\n let legendtext = param;\n if('").concat(t.dimensionTag,"' && chartData && chartData['").concat(t.dimensionTag,"']){\n legendtext = chartData['").concat(t.dimensionTag,"'][param]\n }\n return legendtext;\n }")};p.position&&Object.assign(h,this.getLegendOPtions(p.position)),i["EC.legend"]=JSON.stringify(h),["left-top","right-top","top"].includes(p.position)&&(r["EC.center"]=JSON.stringify(["50%","60%"])),["left-bottom","right-bottom","bottom"].includes(p.position)&&(r["EC.center"]=JSON.stringify(["50%","40%"])),"left"===p.position&&(r["EC.center"]=JSON.stringify(["60%","50%"])),"right"===p.position&&(r["EC.center"]=JSON.stringify(["40%","50%"]))}}return{params:i,seriesParams:r,axisParams:{}}}}]),i}(ba),Ea=function(e){n(i,e);var t,a=r(i);function i(){return f(this,i),a.apply(this,arguments)}return v(i,[{key:"translateDataToModel",value:(t=b(y().mark((function e(t,a){var n,i,r,o,s,l,c,p,u,h,f,m,v,g,b,w,C,T=this,x=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(i=x.length>2&&void 0!==x[2]?x[2]:{}).appDataEntityId,o=i.items,s=i.mode,l=i.chartid,t&&a&&r){e.next=4;break}return e.abrupt("return");case 4:if(t.appBIReportDimensions&&t.appBIReportMeasures){e.next=6;break}return e.abrupt("return",a);case 6:return c={appId:ibiz.env.appId,appDataEntityId:r,caption:t.name},wt(a,(function(e){return It(e,c)})),a.dechartSerieses=[],p={caption:"srfCaption",catalogField:"srfCatalogField",echartsType:"scatter",chartCoordinateSystemId:"0",chartDataSetId:"0",chartSeriesEncode:{chartXAxisId:"0",chartYAxisId:"0",x:["srfCatalogField"],y:["srfValue"],type:"XY",name:"坐标系编码",id:"0",appId:"srfAppId"},seriesLayoutBy:"column",seriesType:"scatter",valueField:"srfValue",serieText:"srfSerieText",catalogName:"srfCatalogName",enableChartDataSet:!0,appId:"srfAppId"},u={},t.reportUIModel&&(u=JSON.parse(t.reportUIModel)),h=St(t.appBIReportMeasures,p,{appDataEntityId:r,caption:t.name,dimension:t.appBIReportDimensions[0]}),(n=a.dechartSerieses).push.apply(n,d(h)),t&&(m=this.transformStyle(t)||{},v=m.params,g=m.seriesParams,Object.assign(a,{userParam:v}),null===(f=a.dechartSerieses)||void 0===f||f.forEach((function(e){Object.assign(e,{userParam:I(I(I({},T.computeAxisLayout(e,u)),T.computeMaxMin(g,o,e)),Ot([],e,!0))})})),b={},"CONTENT"===s&&(w=t.appBIReportMeasures.map((function(e){return{name:e.measureTag,isDrill:!!e.drillDetailAppViewId}})),Object.assign(b,{ENABLEDRILLDETAIL:w})),C=t.appBIReportDimensions.map((function(e){var t;return{sort:null===(t=u.extend)||void 0===t?void 0:t["sort@".concat(e.dimensionTag)],codename:e.dimensionTag,name:e.dimensionName,mode:e.appCodeListId?"codelist":"field",codelistId:e.appCodeListId}})),Object.assign(b,{CATALOGFIELDS:JSON.stringify(C),NOSORT:!0,chartid:l}),Object.assign(a,{controlParam:{ctrlParams:b}})),e.abrupt("return",a);case 16:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"computeMaxMin",value:function(e,t,a){var n=H(JSON.parse(e["EC.label"]));if(n&&"all"!==n.scope){var i=a.valueField,r=t.filter((function(e){return Object.prototype.hasOwnProperty.call(e,i)})).map((function(e){return Number(e[i])||0})),o=Math.max.apply(Math,d(r))||0,s=Math.min.apply(Math,d(r))||0;n.formatter="function(param) {\n if(param.value[1] === ".concat(o," || param.value[1] === ").concat(s,"){\n if('").concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[1]), '").concat(a.jsonFormat,"')\n return value || param.value[1];\n } \n return param.value[1];\n }\n return '';\n }")}return n&&"all"===n.scope&&(n.formatter="function(param) {\n if('".concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[1]), '").concat(a.jsonFormat,"')\n return value || param.value[1];\n } \n return param.value[1];\n }")),{"EC.label":JSON.stringify(n)}}},{key:"transformStyle",value:function(e){var t,a={},n={},i=e.reportUIModel;if(i){var r=JSON.parse(i);r.style&&(t=r.style)}if(a["EC.title"]=JSON.stringify({show:!1}),t){var o=t,s=o.graphics,l=o.label,c=o.legend,d=o.xAxis,p=o.yAxis;if(s&&Array.isArray(s.color)&&s.color.length&&(a["EC.color"]=JSON.stringify(s.color)),l){var u=I({show:!!l.show,scope:l.scope,formatter:"function(param) {\n return param.value[1];\n }",position:"top"},l.font);n["EC.label"]=JSON.stringify(u)}if(c){var h={show:!!c.show,textStyle:c.font,icon:"circle"};c.position&&Object.assign(h,this.getLegendOPtions(c.position)),a["EC.legend"]=JSON.stringify(h)}if(d){var f=d.show,m=d.showTitle,v=d.titleFont,y=d.showLabel,g=d.labelFont,b=d.showAxisline,w=d.axisline,C=d.showGridline,T=d.gridline,x=d.enableLabelInterval,E=d.labelInterval,S={show:!!f,type:"category",name:m?void 0:"",nameTextStyle:I({},v),axisLabel:I(I(I({show:!!y,interval:x?E:"auto"},this.axisLabel()),g),this.computeLabelEllipsis(x,E)),axisLine:{show:!!b,lineStyle:{type:"doubleDashed"===w.borderStyle?[15]:w.borderStyle,width:w.borderSize,color:w.color}},splitLine:{show:!!C,lineStyle:{type:"doubleDashed"===T.borderStyle?[15]:T.borderStyle,width:T.borderSize,color:T.color}}};a["EC.xAxis"]=JSON.stringify(S)}if(p){var D=p.show,O=p.showTitle,A=p.titleFont,M=p.showLabel,L=p.labelFont,R=p.showAxisline,k=p.axisline,F=p.showGridline,N=p.gridline,P={show:!!D,type:"value",showTitle:O,nameTextStyle:I({},A),axisLabel:I({show:!!M},L),axisLine:{show:!!R,lineStyle:{type:"doubleDashed"===k.borderStyle?[15]:k.borderStyle,width:k.borderSize,color:k.color}},splitLine:{show:!!F,lineStyle:{type:"doubleDashed"===N.borderStyle?[15]:N.borderStyle,width:N.borderSize,color:N.color}}};a["EC.yAxis"]=JSON.stringify(P)}a["EC.grid"]=this.getDefaultGridOptions(null==c?void 0:c.position)}return{params:a,seriesParams:n,axisParams:{}}}}]),i}(ba),Sa=function(e){n(i,e);var t,a=r(i);function i(){return f(this,i),a.apply(this,arguments)}return v(i,[{key:"translateDataToModel",value:(t=b(y().mark((function e(t,a){var n,i,r,o,s,l,c,p,u,h,f,m,v,g,b,w,C,T,x,E=this,S=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(i=S.length>2&&void 0!==S[2]?S[2]:{}).appDataEntityId,o=i.items,s=i.mode,l=i.chartid,t&&a&&r){e.next=4;break}return e.abrupt("return");case 4:if(t.appBIReportDimensions&&t.appBIReportMeasures){e.next=6;break}return e.abrupt("return",a);case 6:return c={appId:ibiz.env.appId,appDataEntityId:r,caption:t.name},wt(a,(function(e){return It(e,c)})),a.dechartSerieses=[],p={caption:"srfCaption",catalogField:"srfCatalogField",echartsType:"bar",chartCoordinateSystemId:"0",chartDataSetId:"0",chartSeriesEncode:{chartXAxisId:"0",chartYAxisId:"0",x:["srfCatalogField"],y:["srfValue"],type:"XY",name:"坐标系编码",id:"0",appId:"srfAppId"},seriesLayoutBy:"column",seriesType:"bar",valueField:"srfValue",serieText:"srfSerieText",catalogName:"srfCatalogName",enableChartDataSet:!0,appId:"srfAppId"},u={},t.reportUIModel&&(u=JSON.parse(t.reportUIModel)),h=[],u&&u.group&&Array.isArray(u.group)&&(h=Dt(u.group,t.appBIReportDimensions)),f=St(t.appBIReportMeasures,p,{appDataEntityId:r,caption:t.name,dimension:t.appBIReportDimensions[0]},(function(e){if(h&&h.length){var t=h[0];Object.assign(e,{seriesCodeListId:t.appCodeListId,seriesField:t.measureTag})}})),(n=a.dechartSerieses).push.apply(n,d(f)),t&&(v=this.transformStyle(t,h,l)||{},g=v.params,b=v.seriesParams,Object.assign(a,{userParam:g}),null===(m=a.dechartSerieses)||void 0===m||m.forEach((function(e){Object.assign(e,{userParam:I(I(I({"EC.barWidth":"50%","EC.barMaxWidth":"36"},E.computeAxisLayout(e,u)),E.computeMaxMin(b,o,e)),Ot(h,e,!0))})})),w={},"CONTENT"===s&&(C=t.appBIReportMeasures.map((function(e){return{name:e.measureTag,isDrill:!!e.drillDetailAppViewId}})),Object.assign(w,{ENABLEDRILLDETAIL:C})),T=!1,x=t.appBIReportDimensions.filter((function(e){if(h.length&&!T){var t=h[0].measureTag;return e.dimensionTag!==t||(T=!0,!1)}return!0})).map((function(e){var t;return{sort:null===(t=u.extend)||void 0===t?void 0:t["sort@".concat(e.dimensionTag)],codename:e.dimensionTag,name:e.dimensionName,mode:e.appCodeListId?"codelist":"field",codelistId:e.appCodeListId}})),Object.assign(w,{CATALOGFIELDS:JSON.stringify(x),NOSORT:!0,chartid:l}),Object.assign(a,{controlParam:{ctrlParams:w}})),e.abrupt("return",a);case 18:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"computeMaxMin",value:function(e,t,a){var n=H(JSON.parse(e["EC.label"]));if(n&&"all"!==n.scope){var i=a.valueField,r=t.filter((function(e){return Object.prototype.hasOwnProperty.call(e,i)})).map((function(e){return Number(e[i])||0})),o=Math.max.apply(Math,d(r))||0,s=Math.min.apply(Math,d(r))||0;n.formatter="function(param) {\n if(param.value[1] === ".concat(o," || param.value[1] === ").concat(s,"){\n if('").concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[1]), '").concat(a.jsonFormat,"')\n return value;\n } \n return param.value[1];\n }\n return '';\n }")}return n&&"all"===n.scope&&(n.formatter="function(param) {\n if('".concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[1]), '").concat(a.jsonFormat,"')\n return value;\n } \n return param.value[1];\n }")),I(I({},e),{},{"EC.label":JSON.stringify(n)})}},{key:"transformStyle",value:function(e,t,a){var n,i={},r={},o=e.reportUIModel;if(o){var s=JSON.parse(o);s.style&&(n=s.style)}if(i["EC.title"]=JSON.stringify({show:!1}),n){var l=n,c=l.graphics,d=l.label,p=l.legend,u=l.xAxis,h=l.yAxis;if(c&&Array.isArray(c.color)&&c.color.length&&(i["EC.color"]=JSON.stringify(c.color)),d){var f=I({show:!!d.show,scope:d.scope,formatter:"function(param) {\n return param.value[1];\n }",position:d.position},d.font);r["EC.label"]=JSON.stringify(f),r["EC.stack"]="stackcol"}if(p){var m="";t&&t.length>0&&(m=t[0].measureTag);var v={show:!!p.show,textStyle:p.font,icon:"circle",formatter:"function(param){\n const chartData = JSON.parse(localStorage.getItem('".concat(a,"'));\n let legendtext = param;\n if('").concat(m,"' && chartData && chartData['").concat(m,"']){\n legendtext = chartData['").concat(m,"'][param]\n }\n return legendtext;\n }")};p.position&&Object.assign(v,this.getLegendOPtions(p.position)),i["EC.legend"]=JSON.stringify(v)}if(u){var y=u.show,g=u.showTitle,b=u.titleFont,w=u.showLabel,C=u.labelFont,T=u.showAxisline,x=u.axisline,E=u.showGridline,S=u.gridline,D=u.enableLabelInterval,O=u.labelInterval,A={show:!!y,type:"category",name:g?void 0:"",nameTextStyle:I({},b),axisLabel:I(I(I({show:!!w,interval:D?O:"auto"},this.axisLabel()),C),this.computeLabelEllipsis(D,O)),axisLine:{show:!!T,lineStyle:{type:"doubleDashed"===x.borderStyle?[15]:x.borderStyle,width:x.borderSize,color:x.color}},splitLine:{show:!!E,lineStyle:{type:"doubleDashed"===S.borderStyle?[15]:S.borderStyle,width:S.borderSize,color:S.color}}};i["EC.xAxis"]=JSON.stringify(A)}if(h){var M=h.show,L=h.showTitle,R=h.titleFont,k=h.showLabel,F=h.labelFont,N=h.showAxisline,P=h.axisline,B=h.showGridline,z=h.gridline,G={show:!!M,type:"value",showTitle:L,nameTextStyle:I({},R),axisLabel:I({show:!!k},F),axisLine:{show:!!N,lineStyle:{type:"doubleDashed"===P.borderStyle?[15]:P.borderStyle,width:P.borderSize,color:P.color}},splitLine:{show:!!B,lineStyle:{type:"doubleDashed"===z.borderStyle?[15]:z.borderStyle,width:z.borderSize,color:z.color}}};i["EC.yAxis"]=JSON.stringify(G)}i["EC.grid"]=this.getDefaultGridOptions(null==p?void 0:p.position)}return{params:i,seriesParams:r,axisParams:{}}}},{key:"axisLabel",value:function(){var e={formatter:"function(param) {\n if (param && param.includes(' ')) {\n const time = new Date(param);\n if (time.toString() !== 'Invalid Date') {\n return time.toLocaleDateString().replaceAll('/','-');\n }\n }\n if(param.indexOf('_') < 0){\n return param;\n }\n const str = param.split('_').pop();\n if(str.length > 4){\n return str.slice(0,4) + '...'\n }\n return str;\n }"};return e}}]),i}(ba),Da=function(e){n(i,e);var t,a=r(i);function i(){return f(this,i),a.apply(this,arguments)}return v(i,[{key:"translateDataToModel",value:(t=b(y().mark((function e(t,a){var n,i,r,o,s,l,c,p,u,h,f,m,v,g,b,w,C,T,x,E=this,S=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(i=S.length>2&&void 0!==S[2]?S[2]:{}).appDataEntityId,o=i.items,s=i.mode,l=i.chartid,t&&a&&r){e.next=4;break}return e.abrupt("return");case 4:if(t.appBIReportDimensions&&t.appBIReportMeasures){e.next=6;break}return e.abrupt("return",a);case 6:return c={appId:ibiz.env.appId,appDataEntityId:r,caption:t.name},wt(a,(function(e){return It(e,c)})),a.dechartSerieses=[],p={caption:"srfCaption",catalogField:"srfCatalogField",echartsType:"bar",chartCoordinateSystemId:"0",chartDataSetId:"0",chartSeriesEncode:{chartXAxisId:"0",chartYAxisId:"0",x:["srfCatalogField"],y:["srfValue"],type:"XY",name:"坐标系编码",id:"0",appId:"srfAppId"},seriesLayoutBy:"column",seriesType:"bar",valueField:"srfValue",serieText:"srfSerieText",catalogName:"srfCatalogName",enableChartDataSet:!0,appId:"srfAppId"},u={},t.reportUIModel&&(u=JSON.parse(t.reportUIModel)),h=[],u&&u.group&&Array.isArray(u.group)&&(h=Dt(u.group,t.appBIReportDimensions)),f=St(t.appBIReportMeasures,p,{appDataEntityId:r,caption:t.name,dimension:t.appBIReportDimensions[0]},(function(e,t){if(Object.assign(e.chartSeriesEncode,{chartXAxisId:t,chartYAxisId:t}),h&&h.length){var a=h[0];Object.assign(e,{seriesCodeListId:a.appCodeListId,seriesField:a.measureTag})}})),(n=a.dechartSerieses).push.apply(n,d(f)),t&&(v=this.transformStyle(t,h,l)||{},g=v.params,b=v.seriesParams,Object.assign(a,{userParam:g}),null===(m=a.dechartSerieses)||void 0===m||m.forEach((function(e){Object.assign(e,{userParam:I(I({},E.computeMaxMin(b,o,e)),Ot(h,e,!0))})})),w={ZONE:!0},"CONTENT"===s&&(C=t.appBIReportMeasures.map((function(e){return{name:e.measureTag,isDrill:!!e.drillDetailAppViewId}})),Object.assign(w,{ENABLEDRILLDETAIL:C})),T=!1,x=t.appBIReportDimensions.filter((function(e){if(h.length&&!T){var t=h[0].measureTag;return e.dimensionTag!==t||(T=!0,!1)}return!0})).map((function(e){var t;return{sort:null===(t=u.extend)||void 0===t?void 0:t["sort@".concat(e.dimensionTag)],codename:e.dimensionTag,name:e.dimensionName,mode:e.appCodeListId?"codelist":"field",codelistId:e.appCodeListId}})),Object.assign(w,{CATALOGFIELDS:JSON.stringify(x),NOSORT:!0,chartid:l}),Object.assign(a,{controlParam:{ctrlParams:w}})),e.abrupt("return",a);case 18:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"computeMaxMin",value:function(e,t,a){var n=H(JSON.parse(e["EC.label"]));if(n&&"all"!==n.scope){var i=a.valueField,r=t.filter((function(e){return Object.prototype.hasOwnProperty.call(e,i)})).map((function(e){return Number(e[i])||0})),o=Math.max.apply(Math,d(r))||0,s=Math.min.apply(Math,d(r))||0;n.formatter="function(param) {\n if(param.value[1] === ".concat(o," || param.value[1] === ").concat(s,"){\n if('").concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[1]), '").concat(a.jsonFormat,"')\n return value;\n } \n return param.value[1];\n }\n return '';\n }")}return n&&"all"===n.scope&&(n.formatter="function(param) {\n if('".concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[1]), '").concat(a.jsonFormat,"')\n return value;\n } \n return param.value[1];\n }")),I(I({},e),{},{"EC.label":JSON.stringify(n)})}},{key:"transformStyle",value:function(e,t,a){var n,i={},r={},o=e.reportUIModel;if(o){var s=JSON.parse(o);s.style&&(n=s.style)}if(i["EC.title"]=JSON.stringify({show:!1}),n){var l=n,c=l.graphics,d=l.label,p=l.legend,u=l.xAxis,h=l.yAxis;if(c&&Array.isArray(c.color)&&c.color.length&&(i["EC.color"]=JSON.stringify(c.color)),d){var f=I({show:!!d.show,scope:d.scope,formatter:"function(param) {\n return param.value[1];\n }",position:d.position},d.font);r["EC.label"]=JSON.stringify(f)}if(p){var m="";t&&t.length>0&&(m=t[0].measureTag);var v={show:!!p.show,textStyle:p.font,icon:"circle",formatter:"function(param){\n const chartData = JSON.parse(localStorage.getItem('".concat(a,"'));\n let legendtext = param;\n if('").concat(m,"' && chartData && chartData['").concat(m,"']){\n legendtext = chartData['").concat(m,"'][param]\n }\n return legendtext;\n }")};p.position&&Object.assign(v,this.getLegendOPtions(p.position)),i["EC.legend"]=JSON.stringify(v)}if(u){var y=u.show,g=u.showTitle,b=u.titleFont,w=u.showLabel,C=u.labelFont,T=u.showAxisline,x=u.axisline,E=u.showGridline,S=u.gridline,D=u.enableLabelInterval,O=u.labelInterval,A={show:!!y,type:"category",name:g?void 0:"",nameTextStyle:I({},b),axisLabel:I(I(I({show:!!w,interval:D?O:"auto"},this.axisLabel()),C),this.computeLabelEllipsis(D,O)),axisLine:{show:!!T,lineStyle:{type:"doubleDashed"===x.borderStyle?[15]:x.borderStyle,width:x.borderSize,color:x.color}},splitLine:{show:!!E,lineStyle:{type:"doubleDashed"===S.borderStyle?[15]:S.borderStyle,width:S.borderSize,color:S.color}},axisTick:{show:!0}};i["EC.xAxis"]=JSON.stringify(A)}if(h){var M=h.show,L=h.showTitle,R=h.titleFont,k=h.showLabel,F=h.labelFont,N=h.showAxisline,P=h.axisline,B=h.showGridline,z=h.gridline,G={show:!!M,type:"value",showTitle:L,nameLocation:"center",nameGap:50,nameTextStyle:I({},R),axisLabel:I({show:!!k,rich:{top:I({padding:[0,0,15,0]},F),bottom:I({padding:[10,0,0,0]},F)}},F),axisLine:{show:!!N,lineStyle:{type:"doubleDashed"===P.borderStyle?[15]:P.borderStyle,width:P.borderSize,color:P.color}},splitLine:{show:!!B,lineStyle:{type:"doubleDashed"===z.borderStyle?[15]:z.borderStyle,width:z.borderSize,color:z.color}}};i["EC.yAxis"]=JSON.stringify(G)}i["EC.grid"]=this.getDefaultGridOptions(null==p?void 0:p.position)}return{params:i,seriesParams:r,axisParams:{}}}},{key:"getDefaultGridOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t={show:!1,left:"5%",right:"5%"};return["left-top","right-top","top"].includes(e)&&(t.bottom=30),["left-bottom","right-bottom","bottom"].includes(e)&&(t.top=30),"left"===e&&(t.top=30,t.bottom=30,t.right=0),"right"===e&&(t.top=30,t.bottom=30,t.let=0),JSON.stringify(t)}}]),i}(ba),Oa=function(e){n(i,e);var t,a=r(i);function i(){return f(this,i),a.apply(this,arguments)}return v(i,[{key:"translateDataToModel",value:(t=b(y().mark((function e(t,a){var n,i,r,o,s,l,c,p,u,h,f,m,v,g,b,w,C,T,x,E=this,S=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(i=S.length>2&&void 0!==S[2]?S[2]:{}).appDataEntityId,o=i.items,s=i.mode,l=i.chartid,t&&a&&r){e.next=4;break}return e.abrupt("return");case 4:if(t.appBIReportDimensions&&t.appBIReportMeasures){e.next=6;break}return e.abrupt("return",a);case 6:return c={appId:ibiz.env.appId,appDataEntityId:r,caption:t.name},wt(a,(function(e){return It(e,c)})),a.dechartSerieses=[],p={caption:"srfCaption",catalogField:"srfCatalogField",echartsType:"bar",chartCoordinateSystemId:"0",chartDataSetId:"0",chartSeriesEncode:{chartXAxisId:"0",chartYAxisId:"0",x:["srfCatalogField"],y:["srfValue"],type:"XY",name:"坐标系编码",id:"0",appId:"srfAppId"},seriesLayoutBy:"column",seriesType:"bar",valueField:"srfValue",serieText:"srfSerieText",catalogName:"srfCatalogName",enableChartDataSet:!0,appId:"srfAppId"},u={},t.reportUIModel&&(u=JSON.parse(t.reportUIModel)),h=[],u&&u.group&&Array.isArray(u.group)&&(h=Dt(u.group,t.appBIReportDimensions)),f=St(t.appBIReportMeasures,p,{appDataEntityId:r,caption:t.name,dimension:t.appBIReportDimensions[0]},(function(e){if(h&&h.length){var t=h[0];Object.assign(e,{seriesCodeListId:t.appCodeListId,seriesField:t.measureTag})}})),(n=a.dechartSerieses).push.apply(n,d(f)),t&&(v=this.transformStyle(t,h,l)||{},g=v.params,b=v.seriesParams,Object.assign(a,{userParam:g}),null===(m=a.dechartSerieses)||void 0===m||m.forEach((function(e){Object.assign(e,{userParam:I(I(I({},E.computeAxisLayout(e,u,!0)),E.computeMaxMin(b,o,e)),Ot(h,e,!0,!0))})}))),w={MODE:"ROW"},"CONTENT"===s&&(C=t.appBIReportMeasures.map((function(e){return{name:e.measureTag,isDrill:!!e.drillDetailAppViewId}})),Object.assign(w,{ENABLEDRILLDETAIL:C})),T=!1,x=t.appBIReportDimensions.filter((function(e){if(h.length&&!T){var t=h[0].measureTag;return e.dimensionTag!==t||(T=!0,!1)}return!0})).map((function(e){var t;return{sort:null===(t=u.extend)||void 0===t?void 0:t["sort@".concat(e.dimensionTag)],codename:e.dimensionTag,name:e.dimensionName,mode:e.appCodeListId?"codelist":"field",codelistId:e.appCodeListId}})),Object.assign(w,{CATALOGFIELDS:JSON.stringify(x),NOSORT:!0,chartid:l}),Object.assign(a,{controlParam:{ctrlParams:w}}),e.abrupt("return",a);case 24:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"computeMaxMin",value:function(e,t,a){var n=H(JSON.parse(e["EC.label"]));if(n&&"all"!==n.scope){var i=a.valueField,r=t.filter((function(e){return Object.prototype.hasOwnProperty.call(e,i)})).map((function(e){return Number(e[i])||0})),o=Math.max.apply(Math,d(r))||0,s=Math.min.apply(Math,d(r))||0;n.formatter="function(param) {\n if(param.value[0] === ".concat(o," || param.value[0] === ").concat(s,"){\n if('").concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[0]), '").concat(a.jsonFormat,"')\n return value;\n } \n return param.value[0];\n }\n return '';\n }")}return n&&"all"===n.scope&&(n.formatter="function(param) {\n if('".concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[0]), '").concat(a.jsonFormat,"')\n return value;\n } \n return param.value[0];\n }")),I(I({},e),{},{"EC.label":JSON.stringify(n)})}},{key:"transformStyle",value:function(e,t,a){var n,i={},r={},o=e.reportUIModel;if(o){var s=JSON.parse(o);s.style&&(n=s.style)}if(i["EC.title"]=JSON.stringify({show:!1}),n){var l=n,c=l.graphics,d=l.label,p=l.legend,u=l.xAxis,h=l.yAxis;if(c&&Array.isArray(c.color)&&c.color.length&&(i["EC.color"]=JSON.stringify(c.color)),d){var f=I({show:!!d.show,scope:d.scope,formatter:"function(param) {\n return param.value[0];\n }",position:d.position},d.font);r["EC.label"]=JSON.stringify(f),r["EC.stack"]="stackbar"}if(p){var m="";t&&t.length>0&&(m=t[0].measureTag);var v={show:!!p.show,textStyle:p.font,icon:"circle",formatter:"function(param){\n const chartData = JSON.parse(localStorage.getItem('".concat(a,"'));\n let legendtext = param;\n if('").concat(m,"' && chartData && chartData['").concat(m,"']){\n legendtext = chartData['").concat(m,"'][param]\n }\n return legendtext;\n }")};p.position&&Object.assign(v,this.getLegendOPtions(p.position)),i["EC.legend"]=JSON.stringify(v)}if(u){var y=u.show,g=u.showTitle,b=u.titleFont,w=u.showLabel,C=u.labelFont,T=u.showAxisline,x=u.axisline,E=u.showGridline,S=u.gridline,D={show:!!y,type:"value",showTitle:g,nameLocation:"center",nameTextStyle:I({lineHeight:60},b),axisLabel:I({show:!!w},C),axisLine:{show:!!T,lineStyle:{type:"doubleDashed"===x.borderStyle?[15]:x.borderStyle,width:x.borderSize,color:x.color}},splitLine:{show:!!E,lineStyle:{type:"doubleDashed"===S.borderStyle?[15]:S.borderStyle,width:S.borderSize,color:S.color}}};i["EC.xAxis"]=JSON.stringify(D)}if(h){var O=h.show,A=h.showTitle,M=h.titleFont,L=h.showLabel,R=h.labelFont,k=h.showAxisline,F=h.axisline,N=h.showGridline,P=h.gridline,B=h.enableLabelInterval,z=h.labelInterval,G={show:!!O,type:"category",name:A?void 0:"",nameTextStyle:I({},M),axisLabel:I(I(I({show:!!L,interval:B?z:"auto"},this.axisLabel()),R),this.computeLabelEllipsis(B,z)),axisLine:{show:!!k,lineStyle:{type:"doubleDashed"===F.borderStyle?[15]:F.borderStyle,width:F.borderSize,color:F.color}},splitLine:{show:!!N,lineStyle:{type:"doubleDashed"===P.borderStyle?[15]:P.borderStyle,width:P.borderSize,color:P.color}}};i["EC.yAxis"]=JSON.stringify(G)}i["EC.grid"]=this.getDefaultGridOptions(null==p?void 0:p.position)}return{params:i,seriesParams:r,axisParams:{}}}},{key:"axisLabel",value:function(){var e={formatter:"function(param) {\n if (param && param.includes(' ')) {\n const time = new Date(param);\n if (time.toString() !== 'Invalid Date') {\n return time.toLocaleDateString().replaceAll('/','-');\n }\n }\n if(param.indexOf('_') < 0){\n return param;\n }\n const str = param.split('_').pop();\n if(str.length > 4){\n return str.slice(0,4) + '...'\n }\n return str;\n }"};return e}}]),i}(ba),Aa=function(e){n(i,e);var t,a=r(i);function i(){return f(this,i),a.apply(this,arguments)}return v(i,[{key:"translateDataToModel",value:(t=b(y().mark((function e(t,a){var n,i,r,o,s,l,c,p,u,h,f,m,v,g,b,w,C,T,x,E=this,S=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(i=S.length>2&&void 0!==S[2]?S[2]:{}).appDataEntityId,o=i.items,s=i.mode,l=i.chartid,t&&a&&r){e.next=4;break}return e.abrupt("return");case 4:if(t.appBIReportDimensions&&t.appBIReportMeasures){e.next=6;break}return e.abrupt("return",a);case 6:return c={appId:ibiz.env.appId,appDataEntityId:r,caption:t.name},wt(a,(function(e){return It(e,c)})),a.dechartSerieses=[],p={caption:"srfCaption",catalogField:"srfCatalogField",echartsType:"line",chartCoordinateSystemId:"0",chartDataSetId:"0",chartSeriesEncode:{chartXAxisId:"0",chartYAxisId:"0",x:["srfCatalogField"],y:["srfValue"],type:"XY",name:"坐标系编码",id:"0",appId:"srfAppId"},seriesLayoutBy:"column",seriesType:"line",valueField:"srfValue",serieText:"srfSerieText",catalogName:"srfCatalogName",enableChartDataSet:!0,appId:"srfAppId"},u={},t.reportUIModel&&(u=JSON.parse(t.reportUIModel)),h=[],u&&u.group&&Array.isArray(u.group)&&(h=Dt(u.group,t.appBIReportDimensions)),f=St(t.appBIReportMeasures,p,{appDataEntityId:r,caption:t.name,dimension:t.appBIReportDimensions[0]},(function(e){if(h&&h.length){var t=h[0];Object.assign(e,{seriesCodeListId:t.appCodeListId,seriesField:t.measureTag})}})),(n=a.dechartSerieses).push.apply(n,d(f)),t&&(v=this.transformStyle(t,h,l)||{},g=v.params,b=v.seriesParams,Object.assign(a,{userParam:g}),null===(m=a.dechartSerieses)||void 0===m||m.forEach((function(e){Object.assign(e,{userParam:I(I(I({},E.computeAxisLayout(e,u)),E.computeMaxMin(b,o,e)),Ot(h,e))})})),w={},"CONTENT"===s&&(C=t.appBIReportMeasures.map((function(e){return{name:e.measureTag,isDrill:!!e.drillDetailAppViewId}})),Object.assign(w,{ENABLEDRILLDETAIL:C})),T=!1,x=t.appBIReportDimensions.filter((function(e){if(h.length&&!T){var t=h[0].measureTag;return e.dimensionTag!==t||(T=!0,!1)}return!0})).map((function(e){var t;return{sort:null===(t=u.extend)||void 0===t?void 0:t["sort@".concat(e.dimensionTag)],codename:e.dimensionTag,name:e.dimensionName,mode:e.appCodeListId?"codelist":"field",codelistId:e.appCodeListId}})),Object.assign(w,{CATALOGFIELDS:JSON.stringify(x),NOSORT:!0,chartid:l}),Object.assign(a,{controlParam:{ctrlParams:w}})),e.abrupt("return",a);case 18:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"computeMaxMin",value:function(e,t,a){var n=H(JSON.parse(e["EC.label"]));if(n&&"all"!==n.scope){var i=a.valueField,r=t.filter((function(e){return Object.prototype.hasOwnProperty.call(e,i)})).map((function(e){return Number(e[i])||0})),o=Math.max.apply(Math,d(r))||0,s=Math.min.apply(Math,d(r))||0;n.formatter="function(param) {\n if(param.value[1] === ".concat(o," || param.value[1] === ").concat(s,"){\n if('").concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[1]), '").concat(a.jsonFormat,"')\n return value;\n } \n return param.value[1];\n }\n return '';\n }")}return n&&"all"===n.scope&&(n.formatter="function(param) {\n if('".concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[1]), '").concat(a.jsonFormat,"')\n return value;\n } \n return param.value[1];\n }")),I(I({},e),{},{"EC.label":JSON.stringify(n)})}},{key:"transformStyle",value:function(e,t,a){var n,i={},r={},o=e.reportUIModel;if(o){var s=JSON.parse(o);s.style&&(n=s.style)}if(i["EC.title"]=JSON.stringify({show:!1}),n){var l=n,c=l.graphics,d=l.label,p=l.legend,u=l.xAxis,h=l.yAxis;if(c&&Array.isArray(c.color)&&c.color.length&&(i["EC.color"]=JSON.stringify(c.color)),d){var f=I({show:!!d.show,scope:d.scope,formatter:"function(param) {\n return param.value[1];\n }",position:d.position},d.font);r["EC.label"]=JSON.stringify(f),r["EC.areaStyle"]=JSON.stringify({})}if(p){var m="";t&&t.length>0&&(m=t[0].measureTag);var v={show:!!p.show,textStyle:p.font,icon:"circle",formatter:"function(param){\n const chartData = JSON.parse(localStorage.getItem('".concat(a,"'));\n let legendtext = param;\n if('").concat(m,"' && chartData && chartData['").concat(m,"']){\n legendtext = chartData['").concat(m,"'][param]\n }\n return legendtext;\n }")};p.position&&Object.assign(v,this.getLegendOPtions(p.position)),i["EC.legend"]=JSON.stringify(v)}if(u){var y=u.show,g=u.showTitle,b=u.titleFont,w=u.showLabel,C=u.labelFont,T=u.showAxisline,x=u.axisline,E=u.showGridline,S=u.gridline,D=u.enableLabelInterval,O=u.labelInterval,A={show:!!y,type:"category",name:g?void 0:"",nameTextStyle:I({},b),axisLabel:I(I(I({show:!!w,interval:D?O:"auto"},this.axisLabel()),C),this.computeLabelEllipsis(D,O)),axisLine:{show:!!T,lineStyle:{type:"doubleDashed"===x.borderStyle?[15]:x.borderStyle,width:x.borderSize,color:x.color}},splitLine:{show:!!E,lineStyle:{type:"doubleDashed"===S.borderStyle?[15]:S.borderStyle,width:S.borderSize,color:S.color}}};i["EC.xAxis"]=JSON.stringify(A)}if(h){var M=h.show,L=h.showTitle,R=h.titleFont,k=h.showLabel,F=h.labelFont,N=h.showAxisline,P=h.axisline,B=h.showGridline,z=h.gridline,G={show:!!M,type:"value",showTitle:L,nameTextStyle:I({},R),axisLabel:I({show:!!k},F),axisLine:{show:!!N,lineStyle:{type:"doubleDashed"===P.borderStyle?[15]:P.borderStyle,width:P.borderSize,color:P.color}},splitLine:{show:!!B,lineStyle:{type:"doubleDashed"===z.borderStyle?[15]:z.borderStyle,width:z.borderSize,color:z.color}}};i["EC.yAxis"]=JSON.stringify(G)}i["EC.grid"]=this.getDefaultGridOptions(null==p?void 0:p.position)}return{params:i,seriesParams:r,axisParams:{}}}}]),i}(ba),Ma=function(e){n(i,e);var t,a=r(i);function i(){return f(this,i),a.apply(this,arguments)}return v(i,[{key:"translateDataToModel",value:(t=b(y().mark((function e(t,a){var n,i,r,o,s,l,c,p,u,h,f,m,v,g,b,w,C,T,x,E=this,S=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(i=S.length>2&&void 0!==S[2]?S[2]:{}).appDataEntityId,o=i.items,s=i.mode,l=i.chartid,t&&a&&r){e.next=4;break}return e.abrupt("return");case 4:if(t.appBIReportDimensions&&t.appBIReportMeasures){e.next=6;break}return e.abrupt("return",a);case 6:return c={appId:ibiz.env.appId,appDataEntityId:r,caption:t.name},wt(a,(function(e){return It(e,c)})),a.dechartSerieses=[],p={caption:"srfCaption",catalogField:"srfCatalogField",echartsType:"line",chartCoordinateSystemId:"0",chartDataSetId:"0",chartSeriesEncode:{chartXAxisId:"0",chartYAxisId:"0",x:["srfCatalogField"],y:["srfValue"],type:"XY",name:"坐标系编码",id:"0",appId:"srfAppId"},seriesLayoutBy:"column",seriesType:"line",valueField:"srfValue",serieText:"srfSerieText",catalogName:"srfCatalogName",enableChartDataSet:!0,appId:"srfAppId"},u={},t.reportUIModel&&(u=JSON.parse(t.reportUIModel)),h=[],u&&u.group&&Array.isArray(u.group)&&(h=Dt(u.group,t.appBIReportDimensions)),f=St(t.appBIReportMeasures,p,{appDataEntityId:r,caption:t.name,dimension:t.appBIReportDimensions[0]},(function(e,t){if(Object.assign(e.chartSeriesEncode,{chartXAxisId:t,chartYAxisId:t}),h&&h.length){var a=h[0];Object.assign(e,{seriesCodeListId:a.appCodeListId,seriesField:a.measureTag})}})),(n=a.dechartSerieses).push.apply(n,d(f)),t&&(v=this.transformStyle(t,h,l)||{},g=v.params,b=v.seriesParams,Object.assign(a,{userParam:g}),null===(m=a.dechartSerieses)||void 0===m||m.forEach((function(e){Object.assign(e,{userParam:I(I({},E.computeMaxMin(b,o,e)),Ot(h,e))})})),w={ZONE:!0},"CONTENT"===s&&(C=t.appBIReportMeasures.map((function(e){return{name:e.measureTag,isDrill:!!e.drillDetailAppViewId}})),Object.assign(w,{ENABLEDRILLDETAIL:C})),T=!1,x=t.appBIReportDimensions.filter((function(e){if(h.length&&!T){var t=h[0].measureTag;return e.dimensionTag!==t||(T=!0,!1)}return!0})).map((function(e){var t;return{sort:null===(t=u.extend)||void 0===t?void 0:t["sort@".concat(e.dimensionTag)],codename:e.dimensionTag,name:e.dimensionName,mode:e.appCodeListId?"codelist":"field",codelistId:e.appCodeListId}})),Object.assign(w,{CATALOGFIELDS:JSON.stringify(x),NOSORT:!0,chartid:l}),Object.assign(a,{controlParam:{ctrlParams:w}})),e.abrupt("return",a);case 18:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"computeMaxMin",value:function(e,t,a){var n=H(JSON.parse(e["EC.label"]));if(n&&"all"!==n.scope){var i=a.valueField,r=t.filter((function(e){return Object.prototype.hasOwnProperty.call(e,i)})).map((function(e){return Number(e[i])||0})),o=Math.max.apply(Math,d(r))||0,s=Math.min.apply(Math,d(r))||0;n.formatter="function(param) {\n if(param.value[1] === ".concat(o," || param.value[1] === ").concat(s,"){\n if('").concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[1]), '").concat(a.jsonFormat,"')\n return value;\n } \n return param.value[1];\n }\n return '';\n }")}return n&&"all"===n.scope&&(n.formatter="function(param) {\n if('".concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value[1]), '").concat(a.jsonFormat,"')\n return value;\n } \n return param.value[1];\n }")),I(I({},e),{},{"EC.label":JSON.stringify(n)})}},{key:"transformStyle",value:function(e,t,a){var n,i={},r={},o=e.reportUIModel;if(o){var s=JSON.parse(o);s.style&&(n=s.style)}if(i["EC.title"]=JSON.stringify({show:!1}),n){var l=n,c=l.graphics,d=l.label,p=l.legend,u=l.xAxis,h=l.yAxis;if(c&&Array.isArray(c.color)&&c.color.length&&(i["EC.color"]=JSON.stringify(c.color)),d){var f=I({show:!!d.show,scope:d.scope,formatter:"function(param) {\n return param.value[1];\n }",position:d.position},d.font);r["EC.label"]=JSON.stringify(f)}if(p){var m="";t&&t.length>0&&(m=t[0].measureTag);var v={show:!!p.show,textStyle:p.font,icon:"circle",formatter:"function(param){\n const chartData = JSON.parse(localStorage.getItem('".concat(a,"'));\n let legendtext = param;\n if('").concat(m,"' && chartData && chartData['").concat(m,"']){\n legendtext = chartData['").concat(m,"'][param]\n }\n return legendtext;\n }")};p.position&&Object.assign(v,this.getLegendOPtions(p.position)),i["EC.legend"]=JSON.stringify(v)}if(u){var y=u.show,g=u.showTitle,b=u.titleFont,w=u.showLabel,C=u.labelFont,T=u.showAxisline,x=u.axisline,E=u.showGridline,S=u.gridline,D=u.enableLabelInterval,O=u.labelInterval,A={show:!!y,type:"category",name:g?void 0:"",nameTextStyle:I({},b),axisLabel:I(I(I({show:!!w,interval:D?O:"auto"},this.axisLabel()),C),this.computeLabelEllipsis(D,O)),axisLine:{show:!!T,lineStyle:{type:"doubleDashed"===x.borderStyle?[15]:x.borderStyle,width:x.borderSize,color:x.color}},splitLine:{show:!!E,lineStyle:{type:"doubleDashed"===S.borderStyle?[15]:S.borderStyle,width:S.borderSize,color:S.color}},axisTick:{show:!0}};i["EC.xAxis"]=JSON.stringify(A)}if(h){var M=h.show,L=h.showTitle,R=h.titleFont,k=h.showLabel,F=h.labelFont,N=h.showAxisline,P=h.axisline,B=h.showGridline,z=h.gridline,G={show:!!M,type:"value",showTitle:L,nameLocation:"center",nameGap:50,nameTextStyle:I({},R),axisLabel:I({show:!!k,rich:{top:I({padding:[0,0,15,0]},F),bottom:I({padding:[10,0,0,0]},F)}},F),axisLine:{show:!!N,lineStyle:{type:"doubleDashed"===P.borderStyle?[15]:P.borderStyle,width:P.borderSize,color:P.color}},splitLine:{show:!!B,lineStyle:{type:"doubleDashed"===z.borderStyle?[15]:z.borderStyle,width:z.borderSize,color:z.color}}};i["EC.yAxis"]=JSON.stringify(G)}i["EC.grid"]=this.getDefaultGridOptions(null==p?void 0:p.position)}return{params:i,seriesParams:r,axisParams:{}}}}]),i}(ba),La=function(e){n(i,e);var t,a=r(i);function i(){return f(this,i),a.apply(this,arguments)}return v(i,[{key:"translateDataToModel",value:(t=b(y().mark((function e(t,a){var n,i,r,o,s,l,c,p,u,h,f,m,v,g,b,w=this,C=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(i=C.length>2&&void 0!==C[2]?C[2]:{}).appDataEntityId,o=i.items,s=i.mode,l=i.chartid,t&&a&&r){e.next=4;break}return e.abrupt("return");case 4:if(t.appBIReportDimensions&&t.appBIReportMeasures){e.next=6;break}return e.abrupt("return",a);case 6:return c={appId:ibiz.env.appId,appDataEntityId:r,caption:t.name,catalog:t.appBIReportDimensions[0].dimensionTag,value:t.appBIReportMeasures[0].measureTag},wt(a,(function(e){return It(e,c)})),a.dechartSerieses=[],p={caption:"srfSerieText",catalogField:"srfCatalogField",echartsType:"radar",chartCoordinateSystemId:"0",chartDataSetId:"0",seriesLayoutBy:"column",seriesType:"radar",valueField:"srfValue",enableChartDataSet:!0,id:"radar_0",appId:"srfAppId"},u=St(t.appBIReportMeasures,p,{appDataEntityId:r,caption:t.name,dimension:t.appBIReportDimensions[0]}),(n=a.dechartSerieses).push.apply(n,d(u)),t&&(f=this.transformStyle(t)||{},m=f.params,v=f.seriesParams,Object.assign(a,{userParam:m}),null===(h=a.dechartSerieses)||void 0===h||h.forEach((function(e){Object.assign(e,{userParam:I({},w.computeMaxMin(v,o,e))})})),g={},"CONTENT"===s&&(b=t.appBIReportMeasures.map((function(e){return{name:e.measureTag,isDrill:!!e.drillDetailAppViewId}})),Object.assign(g,{ENABLEDRILLDETAIL:b})),Object.assign(a,{controlParam:{ctrlParams:I(I({},g),{},{chartid:l})}})),e.abrupt("return",a);case 14:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"computeMaxMin",value:function(e,t,a){var n=H(JSON.parse(e["EC.label"]));if(n&&"all"!==n.scope){var i=a.valueField,r=t.filter((function(e){return Object.prototype.hasOwnProperty.call(e,i)})).map((function(e){return Number(e[i])})),o=Math.max.apply(Math,d(r)),s=Math.min.apply(Math,d(r));n.formatter="function(param) {\n if(param.value === ".concat(o," || param.value === ").concat(s,"){\n if('").concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value), '").concat(a.jsonFormat,"')\n return value;\n } \n return param.value;\n }\n return '';\n }")}return n&&"all"===n.scope&&(n.formatter="function(param) {\n if('".concat(a.jsonFormat,"' !== 'undefined'){\n value = ibiz.util.text.format(String(param.value), '").concat(a.jsonFormat,"')\n return value;\n } \n return param.value;\n }")),I(I({},e),{},{"EC.label":JSON.stringify(n)})}},{key:"transformStyle",value:function(e){var t,a={},n={},i=e.reportUIModel;if(i){var r=JSON.parse(i);r.style&&(t=r.style)}if(n["EC.areaStyle"]=JSON.stringify({}),a["EC.title"]=JSON.stringify({show:!1}),t){var o=t,s=o.graphics,l=o.label,c=o.legend;if(s&&Array.isArray(s.color)&&s.color.length&&(a["EC.color"]=JSON.stringify(s.color)),l){var d=I({show:!!l.show,scope:l.scope},l.font);if(n["EC.label"]=JSON.stringify(d),"all"!==l.scope){n["EC.labelLayout"]=function(e){if(""===e.text)return{fontSize:0,height:0,labelLinePoints:[0,0]}}}}if(c){var p={show:!!c.show,textStyle:c.font,icon:"circle"};c.position&&Object.assign(p,this.getLegendOPtions(c.position)),a["EC.legend"]=JSON.stringify(p)}}return{params:a,seriesParams:n,axisParams:{}}}}]),i}(ba),Ra=function(e){n(i,e);var t,a=r(i);function i(){return f(this,i),a.apply(this,arguments)}return v(i,[{key:"translateDataToModel",value:(t=b(y().mark((function e(t,a){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a);case 2:case"end":return e.stop()}}),e)}))),function(e,a){return t.apply(this,arguments)})}]),i}(ba),ka=function(e){n(l,e);var t,a,i,s=r(l);function l(){var e;f(this,l);for(var t=arguments.length,a=new Array(t),n=0;n0&&void 0!==arguments[0])||arguments[0],t=this.styleConfig,a=t.gridFont,n=t.agg,i={};return a&&(i.align=a.gridBodyAlign),e&&n&&n.show&&(i.aggMode="SUM"),i}},{key:"calcTotalCol",value:function(e,t){var a=this.styleConfig.agg;if(this.dimensionCol.length>0&&a.show&&a.colPosition===e){var n=this.clacMeasureColumns(this.measures,this.totalColTag),i={dataItemName:this.totalColTag,appDEFieldId:this.totalColTag,caption:"合计",codeName:this.totalColTag,columnType:"GROUPGRIDCOLUMN",id:this.totalColTag,appId:"srfAppId",degridColumns:n};t.push(i)}}},{key:"calcGroupType",value:(i=b(y().mark((function e(t){var a,n,i,r,o,s,l,c,d=this;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=[],!(this.dimensionCol.length>0)){e.next=10;break}if(n=this.dimensionCol[0],i=n.dimensionTag,r=n.appCodeListId,o=this.controller,s=o.context,l=o.viewParams,!r){e.next=7;break}return e.next=7,this.loadCodeList(r,s,l);case 7:c=!1,t.forEach((function(e){var t=e[d.getGridField(i)];t?a.includes(t)||a.push(t):c=!0})),c&&a.push("");case 10:return e.abrupt("return",a);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"clacMeasureColumns",value:function(e,t){var a=this;return e.map((function(e){var n=a.getGridField(e.measureTag);t&&(n="".concat(t,"@").concat(n));var i="".concat(a.totalColTag,"@").concat(a.getGridField(e.measureTag));return e.appCodeListId&&a.codelistColumn.push(n),a.percentkeys.push(n),I(I({dataItemName:n,appDEFieldId:n,caption:e.measureName,codeName:n,width:150,widthUnit:"STAR",appCodeListId:e.appCodeListId,columnType:"DEFGRIDCOLUMN",id:n,appId:"srfAppId",totalCodename:i,format:e.jsonFormat,valueType:"SIMPLE"},a.calcColumnStyle()),{},{align:"RIGHT"})}))}},{key:"calcGridColumns",value:function(e){var t=this,a=[];if(this.dimensionRow&&a.push.apply(a,d(this.dimensionRow.map((function(e){return e.appCodeListId&&t.codelistColumn.push(t.getGridField(e.dimensionTag)),I({dataItemName:t.getGridField(e.dimensionTag),appDEFieldId:t.getGridField(e.appDEFieldId||e.dimensionTag),width:150,widthUnit:"STAR",appCodeListId:e.appCodeListId,caption:e.dimensionName,codeName:t.getGridField(e.dimensionTag),columnType:"DEFGRIDCOLUMN",id:t.getGridField(e.dimensionTag),appId:"srfAppId"},t.calcColumnStyle(!1))})))),this.calcTotalCol("left",a),this.dimensionCol.length>0){var n=this.dimensionCol[0],i=e.map((function(e){var a=t.clacMeasureColumns(t.measures,e);return{dataItemName:t.getGridField(n.dimensionTag),appDEFieldId:t.getGridField(n.appDEFieldId),caption:t.transCodeListValue(e),appCodeListId:n.appCodeListId,codeName:t.getGridField(n.dimensionTag),columnType:"GROUPGRIDCOLUMN",id:t.getGridField(n.dimensionTag),appId:"srfAppId",degridColumns:a}}));a.push.apply(a,d(i))}else{var r=this.clacMeasureColumns(this.measures);a.push.apply(a,d(r))}return this.calcTotalCol("right",a),a}},{key:"calcGridDataItems",value:function(e){var t=this,a=[],n=this.styleConfig.function.function||[];return e.forEach((function(e){var i={};n.includes("showPercent")&&e.totalCodename&&t.measuresTotalResult[e.totalCodename]&&(i.customCode=!0,i.scriptCode="\n if (Object.prototype.hasOwnProperty.call(data, '".concat(e.appDEFieldId,"')) {\n const value = data['").concat(e.appDEFieldId,"'] / ").concat(t.measuresTotalResult[e.totalCodename],";\n let formatValue = data['").concat(e.appDEFieldId,"'];\n if (controller.valueFormat) {\n formatValue = ibiz.util.text.format(formatValue, controller.valueFormat);\n }\n return formatValue + '(' + ibiz.util.text.format(value, '0.##%') + ')'\n }")),a.push(I({appDEFieldId:e.appDEFieldId,valueType:"SIMPLE",dataType:25,id:e.id,appId:"srfAppId",format:e.format},i)),"GROUPGRIDCOLUMN"===e.columnType&&a.push.apply(a,d(t.calcGridDataItems(e.degridColumns)))})),a}},{key:"calcRowSpan",value:function(){var e=this;return this.dimensionRow.map((function(t){return e.getGridField(t.dimensionTag)}))}},{key:"getItem",value:function(e,t,a){var n=this;return e.find((function(e){return-1===t.findIndex((function(t){return e[n.getGridField(t.dimensionTag)]!==a[n.getGridField(t.dimensionTag)]}))}))}},{key:"calcGridData",value:function(e){var t=this;if(this.colDataMap.clear(),this.dimensionCol.length>0){var a=[],n=this.dimensionCol[0].dimensionTag;return e.forEach((function(e){t.measures.forEach((function(i){var r=t.getGridField(i.measureTag)||"",o=e[t.getGridField(n)],s=r||"";o&&(s="".concat(o,"@").concat(r),t.colDataMap.set(o,t.getDrillValue(e,t.getGridField(n))));var l=t.getItem(a,t.dimensionRow,e);if(l)l[s]=e[r];else{var c=C({},s,e[r]);t.dimensionRow.forEach((function(a){c[t.getGridField(a.dimensionTag)]=e[t.getGridField(a.dimensionTag)]})),c.$origin=e.$origin,a.push(c)}}))})),a}return e}},{key:"calcTotalData",value:function(e){var t=this;this.measures.forEach((function(e){var a="".concat(t.totalColTag,"@").concat(t.getGridField(e.measureTag));t.measuresTotalResult[a]=0})),e.forEach((function(e){t.measures.forEach((function(a){var n="".concat(t.totalColTag,"@").concat(t.getGridField(a.measureTag)),i=t.percentkeys.reduce((function(t,a){var n=Number(e[a])||0;return j(t,n)}),0);t.measuresTotalResult[n]+=i,e[n]=i}))}))}},{key:"translateDataToModel",value:(a=b(y().mark((function e(t,a){var n,i,r,o,s,l,c,d,p,u,h,f,m,v,g=this,b=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(n=b.length>2&&void 0!==b[2]?b[2]:{}).appDataEntityId,r=n.mode,o=n.items,s=void 0===o?[]:o,t&&a&&i){e.next=4;break}return e.abrupt("return");case 4:if(l=t.appBIReportMeasures,c=t.appBIReportDimensions,d=void 0===c?[]:c,l){e.next=7;break}return e.abrupt("return",a);case 7:return this.measures=l,this.getDimension(d),p={appId:ibiz.env.appId,appDataEntityId:i,caption:t.name,value:l[0].measureTag},this.styleConfig=this.getStyleConfig(t)||{},this.codelistColumn=[],this.percentkeys=[],this.calcGridFieldMap(s),u=this.filterPeriod(U(s)),e.next=17,this.calcGroupType(u);case 17:return h=e.sent,f=this.calcGridColumns(h),m=this.calcGridData(u),this.calcTotalData(m),v=this.calcGridDataItems(f),this.controller.state.tableData=m,Object.assign(a,{degridColumns:f,degridDataItems:v}),wt(a,(function(e){return It(e,p)})),this.transformStyle(a,r),"CONTENT"===r&&(this.controller.state.attrs={"cell-class-name":function(e){var t=e.column.property.split("@").pop();if(-1!==g.measures.findIndex((function(e){return g.getGridField(e.measureTag)===t})))return"enable-pointer"},onCellClick:function(e,t){if(!ibiz.fullscreenUtil.isFullScreen){var a=t.property.split("@").pop(),n=l.find((function(e){return g.getGridField(e.measureTag)===a}));if(n&&n.drillDetailAppViewId&&!t.property.startsWith(g.totalColTag)){var i=e.getOrigin(),r=g.dimensionRow.map((function(e){return{value:g.getDrillValue(i.$origin||i,e.dimensionTag),name:e.dimensionTag}}));if(t.property.includes("@")){var o=t.property.split("@").shift();g.colDataMap.has(o)&&(o=g.colDataMap.get(o)),r.push({value:o,name:g.dimensionCol[0].dimensionTag})}var s={measure:{name:a},dimension:r};g.controller.handleDrillDetail(s)}}}}),e.abrupt("return",a);case 28:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"getStyleConfig",value:function(e){var t=e.reportUIModel;if(t){var a=JSON.parse(t);if(a.style)return a.style;this.hasPeriod=!!a.period}}},{key:"getDimension",value:function(e){this.dimensionRow=e.filter((function(e){return"COLHEADER"!==e.placement})),this.dimensionCol=e.filter((function(e){return"COLHEADER"===e.placement}))}},{key:"loadCodeList",value:(t=b(y().mark((function e(t,a,n){var i,r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((i=ibiz.hub.getApp(a.srfappid)).codeList.getCodeList(t)){e.next=5;break}return ibiz.message.error("未找到代码表: ".concat(t)),e.abrupt("return",[]);case 5:return e.next=7,i.codeList.get(t,a,n);case 7:return r=e.sent,this.codeListItems=r,e.abrupt("return",r);case 10:case"end":return e.stop()}}),e,this)}))),function(e,a,n){return t.apply(this,arguments)})},{key:"transCodeListValue",value:function(e){var t=this.findCodeListItem(this.codeListItems,e);return t?t.text:e}},{key:"findCodeListItem",value:function(e,t){if(e){var a=e.find((function(e){return e.value==t}));if(a)return a;for(var n=0;n0&&void 0!==arguments[0])||arguments[0],t=this.styleConfig,a=t.gridFont,n=t.agg,i={};return a&&(i.align=a.gridBodyAlign),e&&n&&n.show&&(i.aggMode="SUM"),i}},{key:"calcGridColumns",value:function(e){var t=this,a=e.appBIReportMeasures,n=void 0===a?[]:a,i=e.appBIReportDimensions,r=void 0===i?[]:i,o=[];if(r.length>0){var s=r.map((function(e){return I({dataItemName:t.getGridField(e.dimensionTag),appDEFieldId:t.getGridField(e.appDEFieldId),caption:e.dimensionName,codeName:t.getGridField(e.dimensionTag),width:150,widthUnit:"STAR",appCodeListId:e.appCodeListId,columnType:"DEFGRIDCOLUMN",id:t.getGridField(e.dimensionTag),appId:"srfAppId"},t.calcColumnStyle(!1))}));o.push.apply(o,d(s))}return n.length>0&&o.push.apply(o,d(n.map((function(e){return I(I({dataItemName:t.getGridField(e.measureTag),appDEFieldId:t.getGridField(e.appDEFieldId||e.measureTag),caption:e.measureName,codeName:t.getGridField(e.measureTag),width:150,widthUnit:"STAR",appCodeListId:e.appCodeListId,columnType:"DEFGRIDCOLUMN",id:t.getGridField(e.measureTag),appId:"srfAppId",format:e.jsonFormat,valueType:"SIMPLE"},t.calcColumnStyle()),{},{align:"RIGHT"})})))),o}},{key:"calcGridDataItems",value:function(e){var t=this,a=[];return e.forEach((function(e){a.push({appDEFieldId:e.appDEFieldId,valueType:"SIMPLE",dataType:25,id:e.id,appId:"srfAppId",format:e.format}),"GROUPGRIDCOLUMN"===e.columnType&&a.push.apply(a,d(t.calcGridDataItems(e.degridColumns)))})),a}},{key:"calcRowSpan",value:function(e){var t=e.appBIReportDimensions;return(void 0===t?[]:t).map((function(e){return e.dimensionTag}))}},{key:"translateDataToModel",value:(t=b(y().mark((function e(t,a){var n,i,r,o,s,l,c,d,p,u,h,f,m=this,v=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(n=v.length>2&&void 0!==v[2]?v[2]:{}).appDataEntityId,r=n.mode,o=n.items,s=void 0===o?[]:o,t&&a&&i){e.next=4;break}return e.abrupt("return");case 4:if(t.appBIReportMeasures){e.next=6;break}return e.abrupt("return",a);case 6:return l={appId:ibiz.env.appId,appDataEntityId:i,caption:t.name,value:t.appBIReportMeasures[0].measureTag},this.calcGridFieldMap(t,s),this.styleConfig=this.getStyleConfig(t)||{},c=this.calcGridColumns(t),d=this.calcGridDataItems(c),Object.assign(a,{degridColumns:c,degridDataItems:d}),this.controller.state.tableData=this.filterPeriod(this.controller.state.items),wt(a,(function(e){return It(e,l)})),this.transformStyle(t,a,r),"CONTENT"===r&&(p=t.appBIReportMeasures,u=void 0===p?[]:p,h=t.appBIReportDimensions,f=void 0===h?[]:h,this.controller.state.attrs={"cell-class-name":function(e){var t=e.column;if(-1!==u.findIndex((function(e){return e.measureTag===t.property})))return"enable-pointer"},onCellClick:function(e,t){if(!ibiz.fullscreenUtil.isFullScreen){var a=u.find((function(e){return e.measureTag===t.property}));if(a&&a.drillDetailAppViewId){var n=e.getOrigin(),i=f.map((function(e){return{value:m.getDrillValue(n.$origin||n,e.dimensionTag),name:e.dimensionTag}})),r={measure:{name:t.property},dimension:i};m.controller.handleDrillDetail(r)}}}}),e.abrupt("return",a);case 17:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)})},{key:"getStyleConfig",value:function(e){var t=e.reportUIModel;if(t){var a=JSON.parse(t);if(a.style)return a.style;this.hasPeriod=!!a.period}}},{key:"transformStyle",value:function(e,t,a){var n=this.styleConfig,i={vars:{},classList:[]};if(i.vars={"--ibiz-control-grid-header-align":n.gridFont.gridHeaderAlign,"--ibiz-control-grid-header-font-size":"".concat(n.gridFont.gridHeader.fontSize,"px"),"--ibiz-control-grid-header-font-weight":n.gridFont.gridHeader.fontWeight,"--ibiz-control-grid-header-text-color":n.gridFont.gridHeader.color,"--ibiz-control-grid-header-font-style":n.gridFont.gridHeader.fontStyle,"--ibiz-control-grid-content-font-size":"".concat(n.gridFont.gridBody.fontSize,"px"),"--ibiz-control-grid-content-font-weight":n.gridFont.gridBody.fontWeight,"--ibiz-control-grid-content-text-color":n.gridFont.gridBody.color,"--ibiz-control-grid-content-font-style":n.gridFont.gridBody.fontStyle},n.agg.show&&(Object.assign(t,{aggMode:"PAGE"}),"top"===n.agg.position&&i.classList.push("el-table--top-agg")),n.function.show){var r={},o=n.function.function||[];if(o.includes("fixedGridHeader")||i.classList.push("el-table--scroll-header"),o.includes("dimensionMerge")){var s=this.calcRowSpan(e);Object.assign(r,{rowspankeys:s})}o.includes("fixedDimension")&&e.appBIReportDimensions&&Object.assign(t,{frozenFirstColumn:e.appBIReportDimensions.length}),o.includes("showPercent")&&Object.assign(r,{percentkeys:e.appBIReportMeasures.map((function(e){return e.measureTag}))}),Object.assign(t.controlParam,{ctrlParams:r})}"CONTENT"===a&&i.classList.push("el-table--is-drill"),this.controller.state.style=i}},{key:"filterPeriod",value:function(e){return e.filter((function(e){return!e.srfperiodtype}))}},{key:"getDrillValue",value:function(e,t){return e.$origin&&Object.prototype.hasOwnProperty.call(e.$origin,t)?e.$origin[t]:e[t]}},{key:"calcGridFieldMap",value:function(e,t){var a=this;this.gridFieldMap.clear();var n=[];t.forEach((function(e){n=Array.from(new Set([].concat(d(n),d(Object.keys(e)))))}));var i=e.appBIReportMeasures,r=void 0===i?[]:i,o=e.appBIReportDimensions,s=void 0===o?[]:o;r.forEach((function(e){e.appDEFieldId&&n.includes("".concat(e.appDEFieldId,"_text"))&&a.gridFieldMap.set(e.appDEFieldId,"".concat(e.appDEFieldId,"_text")),e.measureTag&&n.includes("".concat(e.measureTag,"_text"))&&a.gridFieldMap.set(e.measureTag,"".concat(e.measureTag,"_text"))})),s.forEach((function(e){e.appDEFieldId&&n.includes("".concat(e.appDEFieldId,"_text"))&&a.gridFieldMap.set(e.appDEFieldId,"".concat(e.appDEFieldId,"_text")),e.dimensionTag&&n.includes("".concat(e.dimensionTag,"_text"))&&a.gridFieldMap.set(e.dimensionTag,"".concat(e.dimensionTag,"_text"))}))}},{key:"getGridField",value:function(e){return e&&this.gridFieldMap.has(e)?this.gridFieldMap.get(e):e}}]),i}(ba),Na=function(){function e(){f(this,e)}return v(e,null,[{key:"createConverter",value:function(e,t){return"PIE"===e?new xa(t):"SCATTER"===e?new Ea(t):"STACK_COL"===e?new Sa(t):"GAUGE"===e?new wa(t):"MULTI_SERIES_LINE"===e?new Ca(t):"MULTI_SERIES_BAR"===e?new Ia(t):"MULTI_SERIES_COL"===e?new Ta(t):"ZONE_COL"===e?new Da(t):"STACK_BAR"===e?new Oa(t):"AREA"===e?new Aa(t):"ZONE_LINE"===e?new Ma(t):"RADAR"===e?new La(t):"NUMBER"===e?new Ra(t):"CROSSTABLE"===e?new ka(t):"GRID"===e?new Fa(t):void 0}}]),e}(),Pa=function(){function e(t,a,n,i,r){f(this,e),C(this,"state",void 0),C(this,"converter",void 0),C(this,"chartModel",void 0),C(this,"chartDefaultValue",void 0),C(this,"chartConfig",void 0),C(this,"appDataEntityId",void 0),C(this,"chartController",void 0),C(this,"uuid",""),C(this,"dynaDataDic",{}),this.mode=t,this.context=a,this.viewParams=n,this.config=i,this.initData=r;var o=r.chartModel,s=r.chartConfig,l=r.chartDefaultValue;this.chartModel=o,this.chartConfig=s,this.chartDefaultValue=l;var c="NUMBER";i.reportUIModel&&(c=JSON.parse(i.reportUIModel).selectChartType||"NUMBER");var d=this.config,p=d.appBISchemeId,u=d.appBICubeId,h=d.id,m=d.name;this.uuid="".concat(this.context.srfappid,"@").concat(p,"@").concat(u,"@").concat(h,"@").concat(c,"@").concat(encodeURIComponent(m)),this.converter=Na.createConverter(c,this),this.initState()}var t,a,n,i,r,o,s,l,d,p,u;return v(e,[{key:"setChartController",value:function(e){var t=this;this.chartController=e,e.evt.on("onBeforeUpdate",(function(){if(t.chartController){var e,a=t.chartController.options,n=void 0===a?{}:a,i=n.series||[],r=n.xAxis,o=n.yAxis,s="ROW"===(null===(e=t.state.model.controlParam)||void 0===e||null===(e=e.ctrlParams)||void 0===e?void 0:e.MODE);delete n.dataZoom;var l=i.find((function(e){return e.data&&e.data.length>20}));i.length>0&&(i.length>15||l)&&(n.dataZoom=s?[{yAxisIndex:Array.isArray(o)?o.map((function(e,t){return t})):0,start:0,end:10}]:[{xAxisIndex:Array.isArray(r)?r.map((function(e,t){return t})):0,start:0,end:10}]),i.length>0&&i.forEach((function(e,a){if("radar"===e.type&&t.chartController){var i,r=t.chartController.generator.seriesGenerators[a].valueField,o=null===(i=t.state.reportModel.appBIReportMeasures)||void 0===i?void 0:i.find((function(e){return e.measureTag===r}));null!=o&&o.jsonFormat&&e.data&&e.data.length>0&&e.data.forEach((function(e){e.value=e.value.map((function(e){return ibiz.util.text.format(String(e),o.jsonFormat)}))}));var s=n.radar;s&&Array.isArray(s)&&s.forEach((function(e){e.indicator&&Array.isArray(e.indicator)&&e.indicator.forEach((function(e){var a=Object.keys(t.dynaDataDic).find((function(a){return t.dynaDataDic[a][e.name]}));a&&(e.name=t.dynaDataDic[a][e.name])}))}))}}));var c=t,d=function(e){var t;if(!e)return null;var a=[];if(e.reportUIModel){var n=JSON.parse(e.reportUIModel);n&&n.group&&Array.isArray(n.group)&&(a=Dt(n.group,e.appBIReportDimensions))}var i=!1;return null===(t=e.appBIReportDimensions)||void 0===t?void 0:t.filter((function(e){if(a.length&&!i){var t=a[0].measureTag;return e.dimensionTag!==t||(i=!0,!1)}return!0})).map((function(e){return{codename:e.dimensionTag,name:e.dimensionName,mode:e.appCodeListId?"codelist":"field",textAppDEFieldId:e.textAppDEFieldId,codelistId:e.appCodeListId}}))}(c.state.reportModel);if(d&&d.length>0){var p=d.findIndex((function(e){return"field"===e.mode&&e.textAppDEFieldId}));s?o.forEach((function(e){e.axisLabel&&(e.axisLabel.formatter=function(e){var t=e.split("_").map((function(e){var t,a=c.dynaDataDic[null===(t=d[p])||void 0===t?void 0:t.codename];return a&&a[e]?a[e]:e})).at(-1);return!t||t.indexOf("undefined")>-1?"undefined":t.length>4&&!t.includes("\n")?"".concat(t.slice(0,4),"..."):t})})):r&&Array.isArray(r)&&r.length>0&&r.forEach((function(e){e.axisLabel&&(e.axisLabel.formatter=function(e){return e.split("_").map((function(e){var t,a=c.dynaDataDic[null===(t=d[p])||void 0===t?void 0:t.codename];return a&&a[e]?a[e]:e})).at(-1)})})),n.dataZoom&&Array.isArray(n.dataZoom)&&n.dataZoom.forEach((function(e){if(p>=0){var t,a=c.dynaDataDic[null===(t=d[p])||void 0===t?void 0:t.codename];Object.assign(e,{labelFormatter:function(e,t){var n=t.split("_").at(-1);return a&&n&&a[n]?a[n]:n||"undefined"}})}}))}var u={};t.state.reportModel&&t.state.reportModel.reportUIModel&&(u=JSON.parse(t.state.reportModel.reportUIModel)),i.length>0&&t.state.model.dechartSerieses&&u.extend&&t.state.model.dechartSerieses.forEach((function(e){var a,n=null===(a=u.extend)||void 0===a?void 0:a["cordon@".concat(e.valueField)],r={symbol:"none",silent:!0},o=[];if(n){var l=i.findIndex((function(t){return e.seriesField?t.stack===e.serieText:t.name===e.serieText})),c=1,p=[];d&&d.forEach((function(e){if(p.push(e.codename),e.codelistId){var a=t.chartController.generator.codeListMap.get(e.codelistId);c*=a.length}else{var n=t.state.items.map((function(t){return t[e.codename]||0!==t[e.codename]})),i=Array.from(new Set(n));c*=i.length}})),n.forEach((function(a){var n=function(e,t,a,n,i,r){var o={color:e.lineColor,width:e.lineSize,type:e.lineStyle};"dotted"===e.lineStyle?Object.assign(o,{type:[1,5],dashOffset:5,cap:"round"}):"doubleDashed"===e.lineStyle&&Object.assign(o,{type:[5,5],dashOffset:5,cap:"round"});var s={name:e.name,lineStyle:o,label:{textBorderWidth:0,color:e.lineColor,fontWeight:400,position:"insideEndTop",formatter:function(e){return"".concat(e.name," : ").concat(e.value)}}},l=0;if("FIXED"===e.cordonType)l=e.cordonSize;else if("MAX"===e.cordonType){var c=-1/0;a.forEach((function(e){i.findIndex((function(t){return!e[t]&&0!==e[t]}))<0&&Number(e[t.valueField])>c&&(c=Number(e[t.valueField]))})),l=c}else if("MIN"===e.cordonType){var d=1/0;a.forEach((function(e){i.findIndex((function(t){return!e[t]&&0!==e[t]}))<0&&Number(e[t.valueField])-1?Object.assign(i[l],{markLine:r}):Object.assign(i[0],{markLine:r})}}))}}))}},{key:"initState",value:function(){this.state={},this.state.isCreated=!1,this.state.refreshFlag=!0,this.state.propertyConfig=this.chartConfig,this.state.items=[],this.state.reportModel=this.config}},{key:"created",value:(u=b(y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.init();case 3:return e.prev=3,this.state.isCreated=!0,e.finish(3);case 6:case"end":return e.stop()}}),e,this,[[0,,3,6]])}))),function(){return u.apply(this,arguments)})},{key:"init",value:(p=b(y().mark((function e(){var t,a,n,i,r,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.config,n=a.appBISchemeId,i=a.appBICubeId,e.next=3,this.getCubeById("".concat(n,".").concat(i));case 3:if(r=e.sent){e.next=6;break}return e.abrupt("return");case 6:return this.appDataEntityId=r.psdename.toLowerCase(),e.next=9,this.load();case 9:return e.next=11,null===(t=this.converter)||void 0===t?void 0:t.translateDataToModel(this.state.reportModel,H(this.chartModel),{items:this.state.items,mode:this.mode,chartid:this.uuid,appDataEntityId:this.appDataEntityId});case 11:if(o=e.sent){e.next=14;break}return e.abrupt("return");case 14:this.state.model=o;case 15:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"getCubeById",value:(d=b(y().mark((function e(t){var a,n,i;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return(a=H(this.context)).pssysbicube=t,n=ibiz.hub.getApp(ibiz.env.appId),e.next=7,n.deService.exec("pssysbicube","get",a,this.viewParams);case 7:return i=e.sent,e.abrupt("return",i.data||{});case 9:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"load",value:(l=b(y().mark((function e(){var t;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.state.items=[],e.next=3,this.checkData();case 3:if(!e.sent){e.next=9;break}return e.next=7,this.fetchDataSource();case 7:t=e.sent,this.state.items=t;case 9:return e.abrupt("return",this.state.items);case 10:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"destroyed",value:(s=b(y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:localStorage.removeItem(this.uuid);case 1:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"handleValueChange",value:(o=b(y().mark((function e(t,a,n){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n&&Object.keys(n).length>0&&((t.startsWith("style")||t.startsWith("extend.cordon")||t.startsWith("extend.axis"))&&Object.assign(this.state.reportModel,n),(t.startsWith("data")||t.startsWith("extend"))&&(this.state.reportModel=n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,a){return o.apply(this,arguments)})},{key:"checkData",value:(r=b(y().mark((function e(){var t,a,n,i,r,o,s;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!0,this.chartConfig){e.next=3;break}return e.abrupt("return",t);case 3:if((a=this.chartConfig.data)&&a.details){e.next=6;break}return e.abrupt("return",t);case 6:if((n=a.details.filter((function(e){return!0===e.required})))&&0!==n.length){e.next=9;break}return e.abrupt("return",t);case 9:i=this.state.reportModel,r=c(n),e.prev=11,s=y().mark((function e(){var a,n,r,s;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(a=o.value).id||"measure"!==a.id){e.next=5;break}if(i.appBIReportMeasures&&(!i.appBIReportMeasures||0!==i.appBIReportMeasures.length)){e.next=5;break}return t=!1,e.abrupt("return",0);case 5:if(!a.id||"dimension"!==a.id){e.next=19;break}if(i.appBIReportDimensions&&(!i.appBIReportDimensions||0!==i.appBIReportDimensions.length)){e.next=11;break}return t=!1,e.abrupt("return",0);case 11:if(!i.reportUIModel){e.next=19;break}if(r=H(i.appBIReportDimensions),s=JSON.parse(i.reportUIModel),!((null===(n=s.group)||void 0===n?void 0:n.length)>0)){e.next=19;break}if(s.group.forEach((function(e){var t=e.split(".").pop();r=r.filter((function(e){return e.dimensionTag!==t}))})),0!==r.length){e.next=19;break}return t=!1,e.abrupt("return",0);case 19:case"end":return e.stop()}}),e)})),r.s();case 14:if((o=r.n()).done){e.next=21;break}return e.delegateYield(s(),"t0",16);case 16:if(0!==e.t0){e.next=19;break}return e.abrupt("break",21);case 19:e.next=14;break;case 21:e.next=26;break;case 23:e.prev=23,e.t1=e.catch(11),r.e(e.t1);case 26:return e.prev=26,r.f(),e.finish(26);case 29:return e.abrupt("return",t);case 30:case"end":return e.stop()}}),e,this,[[11,23,26,29]])}))),function(){return r.apply(this,arguments)})},{key:"refresh",value:(i=b(y().mark((function e(){var t,a,n,i,r=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=r.length>0&&void 0!==r[0]?r[0]:"UI",this.state.refreshFlag=!1,"ALL"!==a){e.next=11;break}return e.next=5,this.checkData();case 5:if(!e.sent){e.next=11;break}return e.next=9,this.fetchDataSource();case 9:n=e.sent,this.state.items=n;case 11:return e.next=13,null===(t=this.converter)||void 0===t?void 0:t.translateDataToModel(this.state.reportModel,H(this.chartModel),{items:this.state.items,mode:this.mode,chartid:this.uuid,appDataEntityId:this.appDataEntityId});case 13:if(i=e.sent){e.next=16;break}return e.abrupt("return");case 16:this.state.model=i,this.state.refreshFlag=!0;case 18:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"fetchDataSource",value:(n=b(y().mark((function e(){var t,a,n,i,r,o,s,l,c,d,p,u,h;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.config.appBICubeId,a="",!this.config.reportTag||-1!==this.config.reportTag.indexOf(".")){e.next=10;break}return e.next=5,ibiz.hub.getAppDataEntity(this.appDataEntityId,ibiz.env.appId);case 5:n=e.sent,a="/".concat(n.deapicodeName2,"/report?srfreporttag=").concat(this.config.reportTag||"bi_report","&srfcontenttype=json"),this.context&&(i=Z(this.context,n),a=i+a),e.next=12;break;case 10:r=this.config.reportTag.split("."),a="/".concat((f=r[0],Xt(f)),"/report?srfreporttag=").concat(r[1],"&srfcontenttype=json");case 12:return o={bicubetag:t,bimeasures:Tt(this.state.reportModel,this.state.reportModel.appBIReportMeasures||[]),bidimensions:xt(this.state.reportModel,this.state.reportModel.appBIReportDimensions||[]),bisort:Et(this.state.reportModel,this.state.reportModel.appBIReportMeasures,this.state.reportModel.appBIReportDimensions)},s=Nt(this.state.reportModel),this.viewParams&&this.viewParams.srfsearchconds&&(s&&s.length>0?(c=s[0],null===(l=c.searchconds)||void 0===l||l.push(this.viewParams.srfsearchconds)):s=this.viewParams.srfsearchconds),Object.assign(o,{searchconds:s}),this.state.reportModel.reportUIModel&&(d=JSON.parse(this.state.reportModel.reportUIModel)).period&&d.period.length>0&&(p=d.period[0].value)&&Object.assign(o,{biperiod:p}),e.next=19,ibiz.net.post(a,o);case 19:return u=e.sent,h=this.handResponseData(u.data),e.abrupt("return",h);case 22:case"end":return e.stop()}var f}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"handResponseData",value:function(e){var t=this,a=[],n=[],i={};return this.state.reportModel.appBIReportDimensions&&this.state.reportModel.appBIReportDimensions.forEach((function(e){if(!e.appCodeListId&&e.textAppDEFieldId&&n.push(e.dimensionTag),e.stdDataType&&Kt(e.stdDataType)){var a=Ct("extend",t.state.reportModel);a&&a["period@".concat(e.dimensionTag)]&&(i[e.dimensionTag]=a["period@".concat(e.dimensionTag)])}})),n.length>0&&(n.forEach((function(a){var n={};e&&e.length>0&&e.forEach((function(e){Object.prototype.hasOwnProperty.call(e,"".concat(a,"_text"))&&(n[e[a]]=e["".concat(a,"_text")])})),t.dynaDataDic[a]=n})),localStorage.setItem(this.uuid,JSON.stringify(this.dynaDataDic))),e&&e.length>0&&e.forEach((function(e){e.$origin=H(e),Object.keys(i).length>0&&Object.keys(i).forEach((function(t){var a,n;e[t]=(a=i[t].unit,n=e[t],a&&"DAY"===a&&n&&/^\d{8}$/.test(n)?"".concat(n.substring(0,4),"年").concat(n.substring(4,6),"月").concat(n.substring(6),"日"):a&&"WEEK"===a&&n&&/^\d{4}W\d{1,2}$/.test(n)?"".concat(n.substring(0,4),"年").concat(n.substring(5),"周"):a&&"MONTH"===a&&n&&/^\d{4}\d{2}$/.test(n)?"".concat(n.substring(0,4),"年").concat(n.substring(4),"月"):a&&"QUARTER"===a&&n&&/^\d{4}Q\d{1}$/.test(n)?"".concat(n.substring(0,4),"年").concat(n.substring(5),"季度"):a&&"YEAR"===a&&n&&/^\d{4}$/.test(n)?"".concat(n.substring(0,4),"年"):n)})),a.push(e)})),a}},{key:"openDrillModal",value:(a=b(y().mark((function e(t,a){var n;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=ibiz.overlay.createModal("BIReportDrillShell",{appViewId:t,context:this.context,data:a,reportModel:this.state.reportModel,config:this.config,dynamicDataDic:this.dynaDataDic},{width:"80%",height:"80%"}),e.next=3,n.present();case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"handleDrillDetail",value:(t=b(y().mark((function e(t){var a;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=this.computeDrillDetailAppView(t)){e.next=3;break}return e.abrupt("return");case 3:this.openDrillModal(a,t);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"computeDrillDetailAppView",value:function(e){var t,a=e.measure;if(a&&a.name){var n=null===(t=this.config.appBIReportMeasures)||void 0===t?void 0:t.find((function(e){return e.measureTag===a.name}));if(n){var i=n.drillDetailAppViewId;if(i)return i;ibiz.log.error("执行数据反查未找到反查视图中断")}else ibiz.log.error("执行数据反查未找到指标数据中断")}else ibiz.log.error("执行数据反查无指标数据中断")}}]),e}(),Ba=function(e){n(o,e);var t,i=r(o);function o(e,t,a,n){var r;return f(this,o),(r=i.call(this,e,t,a,n,{chartModel:Je,chartConfig:Xe,chartDefaultValue:We})).mode=e,r.context=t,r.viewParams=a,r.config=n,r}return v(o,[{key:"handleValueChange",value:(t=b(y().mark((function e(t,n,i){var r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(l(o.prototype),"handleValueChange",this).call(this,t,n,i),!t.startsWith("data.")&&!t.startsWith("extend")){e.next=12;break}return e.next=4,this.checkData();case 4:if(e.sent){e.next=8;break}return this.state.model=this.chartModel,e.abrupt("return");case 8:return e.next=10,this.fetchDataSource();case 10:r=e.sent,this.state.items=r;case 12:this.refresh();case 13:case"end":return e.stop()}}),e,this)}))),function(e,a,n){return t.apply(this,arguments)})}]),o}(Pa),za=function(e){n(o,e);var t,i=r(o);function o(e,t,a,n){var r;return f(this,o),(r=i.call(this,e,t,a,n,{chartModel:et,chartConfig:Ze,chartDefaultValue:Qe})).mode=e,r.context=t,r.viewParams=a,r.config=n,r}return v(o,[{key:"handleValueChange",value:(t=b(y().mark((function e(t,n,i){var r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(l(o.prototype),"handleValueChange",this).call(this,t,n,i),!t.startsWith("data.")&&!t.startsWith("extend")){e.next=12;break}return e.next=4,this.checkData();case 4:if(e.sent){e.next=8;break}return this.state.model=this.chartModel,e.abrupt("return");case 8:return e.next=10,this.fetchDataSource();case 10:r=e.sent,this.state.items=r;case 12:this.refresh();case 13:case"end":return e.stop()}}),e,this)}))),function(e,a,n){return t.apply(this,arguments)})}]),o}(Pa),Ga=function(e){n(o,e);var t,i=r(o);function o(e,t,a,n){var r;return f(this,o),(r=i.call(this,e,t,a,n,{chartModel:be,chartConfig:we,chartDefaultValue:Ie})).mode=e,r.context=t,r.viewParams=a,r.config=n,r}return v(o,[{key:"handleValueChange",value:(t=b(y().mark((function e(t,n,i){var r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(l(o.prototype),"handleValueChange",this).call(this,t,n,i),!t.startsWith("data.")&&!t.startsWith("extend")){e.next=12;break}return e.next=4,this.checkData();case 4:if(e.sent){e.next=8;break}return this.state.model=this.chartModel,e.abrupt("return");case 8:return e.next=10,this.fetchDataSource();case 10:r=e.sent,this.state.items=r;case 12:this.refresh();case 13:case"end":return e.stop()}}),e,this)}))),function(e,a,n){return t.apply(this,arguments)})}]),o}(Pa),Va=function(e){n(s,e);var t,i,o=r(s);function s(e,t,a,n){var i;return f(this,s),(i=o.call(this,e,t,a,n,{chartModel:fe,chartConfig:he,chartDefaultValue:me})).mode=e,i.context=t,i.viewParams=a,i.config=n,i}return v(s,[{key:"handleValueChange",value:(i=b(y().mark((function e(t,n,i){var r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(l(s.prototype),"handleValueChange",this).call(this,t,n,i),!t.startsWith("data.")&&!t.startsWith("extend")){e.next=13;break}return e.next=4,this.checkData();case 4:if(e.sent){e.next=9;break}this.state.items=[],e.next=13;break;case 9:return e.next=11,this.fetchDataSource();case 11:r=e.sent,this.state.items=r;case 13:this.refresh();case 14:case"end":return e.stop()}}),e,this)}))),function(e,t,a){return i.apply(this,arguments)})},{key:"fetchDataSource",value:(t=b(y().mark((function e(){var t,n,i,r,o,c;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a(l(s.prototype),"fetchDataSource",this).call(this);case 2:if(i=e.sent,r=(null===(t=this.state.reportModel.appBIReportMeasures)||void 0===t?void 0:t[0].measureTag)||"",o=(null===(n=this.state.reportModel.appBIReportMeasures)||void 0===n?void 0:n[0].measureName)||"",!i||!r){e.next=8;break}return c=i.reduce((function(e,t){return e+parseFloat("".concat(t[r]||0))}),0),e.abrupt("return",[C({$catalog:o},r,c)]);case 8:return e.abrupt("return",[]);case 9:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),s}(Pa),ja=function(e){n(o,e);var t,i=r(o);function o(e,t,a,n){var r;return f(this,o),(r=i.call(this,e,t,a,n,{chartModel:Le,chartConfig:Re,chartDefaultValue:ke})).mode=e,r.context=t,r.viewParams=a,r.config=n,r}return v(o,[{key:"handleValueChange",value:(t=b(y().mark((function e(t,n,i){var r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(l(o.prototype),"handleValueChange",this).call(this,t,n,i),!t.startsWith("data.")&&!t.startsWith("extend")){e.next=12;break}return e.next=4,this.checkData();case 4:if(e.sent){e.next=8;break}return this.state.model=this.chartModel,e.abrupt("return");case 8:return e.next=10,this.fetchDataSource();case 10:r=e.sent,this.state.items=r;case 12:this.refresh();case 13:case"end":return e.stop()}}),e,this)}))),function(e,a,n){return t.apply(this,arguments)})}]),o}(Pa),Ua=function(e){n(o,e);var t,i=r(o);function o(e,t,a,n){var r;return f(this,o),(r=i.call(this,e,t,a,n,{chartModel:Ee,chartConfig:Se,chartDefaultValue:De})).mode=e,r.context=t,r.viewParams=a,r.config=n,r}return v(o,[{key:"handleValueChange",value:(t=b(y().mark((function e(t,n,i){var r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(l(o.prototype),"handleValueChange",this).call(this,t,n,i),!t.startsWith("data.")&&!t.startsWith("extend")){e.next=12;break}return e.next=4,this.checkData();case 4:if(e.sent){e.next=8;break}return this.state.model=this.chartModel,e.abrupt("return");case 8:return e.next=10,this.fetchDataSource();case 10:r=e.sent,this.state.items=r;case 12:this.refresh();case 13:case"end":return e.stop()}}),e,this)}))),function(e,a,n){return t.apply(this,arguments)})}]),o}(Pa),_a=function(e){n(o,e);var t,i=r(o);function o(e,t,a,n){var r;return f(this,o),(r=i.call(this,e,t,a,n,{chartModel:ye,chartConfig:ve,chartDefaultValue:ge})).mode=e,r.context=t,r.viewParams=a,r.config=n,r}return v(o,[{key:"handleValueChange",value:(t=b(y().mark((function e(t,n,i){var r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(l(o.prototype),"handleValueChange",this).call(this,t,n,i),!t.startsWith("data.")&&!t.startsWith("extend")){e.next=13;break}return e.next=4,this.checkData();case 4:if(e.sent){e.next=9;break}this.state.items=[],e.next=13;break;case 9:return e.next=11,this.fetchDataSource();case 11:r=e.sent,this.state.items=r;case 13:this.refresh();case 14:case"end":return e.stop()}}),e,this)}))),function(e,a,n){return t.apply(this,arguments)})}]),o}(Pa),Ha=function(e){n(o,e);var t,i=r(o);function o(e,t,a,n){var r;return f(this,o),(r=i.call(this,e,t,a,n,{chartModel:xe,chartConfig:Ce,chartDefaultValue:Te})).mode=e,r.context=t,r.viewParams=a,r.config=n,r}return v(o,[{key:"handleValueChange",value:(t=b(y().mark((function e(t,n,i){var r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(l(o.prototype),"handleValueChange",this).call(this,t,n,i),!t.startsWith("data.")&&!t.startsWith("extend")){e.next=12;break}return e.next=4,this.checkData();case 4:if(e.sent){e.next=8;break}return this.state.model=this.chartModel,e.abrupt("return");case 8:return e.next=10,this.fetchDataSource();case 10:r=e.sent,this.state.items=r;case 12:this.refresh();case 13:case"end":return e.stop()}}),e,this)}))),function(e,a,n){return t.apply(this,arguments)})}]),o}(Pa),qa=function(e){n(o,e);var t,i=r(o);function o(e,t,a,n){var r;return f(this,o),(r=i.call(this,e,t,a,n,{chartModel:Oe,chartConfig:Ae,chartDefaultValue:Me})).mode=e,r.context=t,r.viewParams=a,r.config=n,r}return v(o,[{key:"handleValueChange",value:(t=b(y().mark((function e(t,n,i){var r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(l(o.prototype),"handleValueChange",this).call(this,t,n,i),!t.startsWith("data.")&&!t.startsWith("extend")){e.next=12;break}return e.next=4,this.checkData();case 4:if(e.sent){e.next=8;break}return this.state.model=this.chartModel,e.abrupt("return");case 8:return e.next=10,this.fetchDataSource();case 10:r=e.sent,this.state.items=r;case 12:this.refresh();case 13:case"end":return e.stop()}}),e,this)}))),function(e,a,n){return t.apply(this,arguments)})}]),o}(Pa),Xa=function(e){n(o,e);var t,i=r(o);function o(e,t,a,n){var r;return f(this,o),(r=i.call(this,e,t,a,n,{chartModel:Be,chartConfig:ze,chartDefaultValue:Ge})).mode=e,r.context=t,r.viewParams=a,r.config=n,r}return v(o,[{key:"handleValueChange",value:(t=b(y().mark((function e(t,n,i){var r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(l(o.prototype),"handleValueChange",this).call(this,t,n,i),!t.startsWith("data.")&&!t.startsWith("extend")){e.next=12;break}return e.next=4,this.checkData();case 4:if(e.sent){e.next=8;break}return this.state.model=this.chartModel,e.abrupt("return");case 8:return e.next=10,this.fetchDataSource();case 10:r=e.sent,this.state.items=r;case 12:this.refresh();case 13:case"end":return e.stop()}}),e,this)}))),function(e,a,n){return t.apply(this,arguments)})}]),o}(Pa),Ja=function(e){n(o,e);var t,i=r(o);function o(e,t,a,n){var r;return f(this,o),(r=i.call(this,e,t,a,n,{chartModel:Fe,chartConfig:Ne,chartDefaultValue:Pe})).mode=e,r.context=t,r.viewParams=a,r.config=n,r}return v(o,[{key:"handleValueChange",value:(t=b(y().mark((function e(t,n,i){var r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(l(o.prototype),"handleValueChange",this).call(this,t,n,i),!t.startsWith("data.")&&!t.startsWith("extend")){e.next=12;break}return e.next=4,this.checkData();case 4:if(e.sent){e.next=8;break}return this.state.model=this.chartModel,e.abrupt("return");case 8:return e.next=10,this.fetchDataSource();case 10:r=e.sent,this.state.items=r;case 12:this.refresh();case 13:case"end":return e.stop()}}),e,this)}))),function(e,a,n){return t.apply(this,arguments)})}]),o}(Pa),Wa=function(e){n(o,e);var t,i=r(o);function o(e,t,a,n){var r;return f(this,o),(r=i.call(this,e,t,a,n,{chartModel:Ye,chartConfig:Ke,chartDefaultValue:$e})).mode=e,r.context=t,r.viewParams=a,r.config=n,r}return v(o,[{key:"handleValueChange",value:(t=b(y().mark((function e(t,n,i){var r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(l(o.prototype),"handleValueChange",this).call(this,t,n,i),!t.startsWith("data.")&&!t.startsWith("extend")){e.next=12;break}return e.next=4,this.checkData();case 4:if(e.sent){e.next=8;break}return this.state.model=this.chartModel,e.abrupt("return");case 8:return e.next=10,this.fetchDataSource();case 10:r=e.sent,this.state.items=r;case 12:this.refresh();case 13:case"end":return e.stop()}}),e,this)}))),function(e,a,n){return t.apply(this,arguments)})}]),o}(Pa),Ya=function(e){n(o,e);var t,i=r(o);function o(e,t,a,n){var r;return f(this,o),(r=i.call(this,e,t,a,n,{chartModel:{},chartConfig:pe,chartDefaultValue:ue})).mode=e,r.context=t,r.viewParams=a,r.config=n,r}return v(o,[{key:"handleValueChange",value:(t=b(y().mark((function e(t,n,i){var r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(l(o.prototype),"handleValueChange",this).call(this,t,n,i),!t.startsWith("data.")&&!t.startsWith("extend")){e.next=12;break}return e.next=4,this.checkData();case 4:if(e.sent){e.next=8;break}return this.state.model=this.chartModel,e.abrupt("return");case 8:return e.next=10,this.fetchDataSource();case 10:r=e.sent,this.state.items=r;case 12:this.refresh();case 13:case"end":return e.stop()}}),e,this)}))),function(e,a,n){return t.apply(this,arguments)})}]),o}(Pa),$a=function(e){n(o,e);var t,i=r(o);function o(e,t,a,n){var r;return f(this,o),(r=i.call(this,e,t,a,n,{chartModel:He,chartConfig:_e,chartDefaultValue:qe})).mode=e,r.context=t,r.viewParams=a,r.config=n,r}return v(o,[{key:"initState",value:function(){a(l(o.prototype),"initState",this).call(this),this.state.style={}}},{key:"handleValueChange",value:(t=b(y().mark((function e(t,n,i){var r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(l(o.prototype),"handleValueChange",this).call(this,t,n,i),!t.startsWith("data.")&&!t.startsWith("extend")){e.next=12;break}return e.next=4,this.checkData();case 4:if(e.sent){e.next=8;break}return this.state.model=this.chartModel,e.abrupt("return");case 8:return e.next=10,this.fetchDataSource();case 10:r=e.sent,this.state.items=r;case 12:this.refresh();case 13:case"end":return e.stop()}}),e,this)}))),function(e,a,n){return t.apply(this,arguments)})}]),o}(Pa),Ka=function(e){n(o,e);var t,i=r(o);function o(e,t,a,n){var r;return f(this,o),(r=i.call(this,e,t,a,n,{chartModel:je,chartConfig:Ve,chartDefaultValue:Ue})).mode=e,r.context=t,r.viewParams=a,r.config=n,r}return v(o,[{key:"initState",value:function(){a(l(o.prototype),"initState",this).call(this),this.state.style={},this.state.attrs={}}},{key:"handleValueChange",value:(t=b(y().mark((function e(t,n,i){var r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a(l(o.prototype),"handleValueChange",this).call(this,t,n,i),!t.startsWith("data.")&&!t.startsWith("extend")){e.next=12;break}return e.next=4,this.checkData();case 4:if(e.sent){e.next=8;break}return this.state.model=this.chartModel,e.abrupt("return");case 8:return e.next=10,this.fetchDataSource();case 10:r=e.sent,this.state.items=r;case 12:this.refresh();case 13:case"end":return e.stop()}}),e,this)}))),function(e,a,n){return t.apply(this,arguments)})}]),o}(Pa),Za=function(){function e(){f(this,e),C(this,"component","IBizBIReportNumber")}return v(e,[{key:"createController",value:function(e){var a=se((function(){for(var e=arguments.length,a=new Array(e),n=0;n0?"+":"",this.uiState.yoy,A(")")])]),T("div",{class:this.ns.em("content","icon")},[this.renderUpDownResult(this.uiState.yoyTotal,this.uiState.currentTotal)])]),(null===(n=this.reportUIModelStyle.qoq)||void 0===n?void 0:n.show)&&T("div",{class:this.ns.em("content","qoq")},[T("div",{class:this.ns.em("content","compare-number")},[T("span",null,[A("环比")]),T("span",{class:[this.ns.em("content","qoq-qoqTotal"),this.ns.is("show",null===(i=this.reportUIModelStyle.qoq)||void 0===i||null===(i=i.qoq)||void 0===i?void 0:i.includes("orgin"))]},[this.uiState.qoqTotal]),T("span",{class:[this.ns.em("content","qoq-value"),this.ns.is("show",null===(r=this.reportUIModelStyle.qoq)||void 0===r||null===(r=r.qoq)||void 0===r?void 0:r.includes("difference"))]},[A("("),this.uiState.qoq>0?"+":"",this.uiState.qoq,A(")")])]),T("div",{class:this.ns.em("content","icon")},[this.renderUpDownResult(this.uiState.qoqTotal,this.uiState.currentTotal)])])])])]):null}}),yn=g({name:"IBizBIReportContent",components:{IBizBIReportChartShell:fn,IBizBIReportGridShell:mn,IBizBIReportNumber:vn},props:{mode:{type:String,require:!0},context:{type:Object,require:!0},viewParams:{type:Object,require:!0},controller:{type:Object},config:{type:Object}},emits:["reportChartChange","init"],setup:function(e,t){var a=t.emit,n=s("content"),i={name:"AppView",id:"AppView",viewType:"DECUSTOMVIEW",appId:ibiz.env.appId};F("ctx",new Q(i,_.create({})).ctx);var r=x(),o=x();if("DESIGN"===e.mode){var l;!function(t){var n,i=va(t);r.value=i;var s=I({},e.config);Object.assign(s,{selectChartType:t,selectCubeId:null===(n=e.controller)||void 0===n?void 0:n.state.selectCube.pssysbicubeid}),o.value=null==i?void 0:i.createController({mode:"DESIGN",context:e.context,viewParams:e.viewParams,config:e.config}),a("reportChartChange",o.value)}(null===(l=e.controller)||void 0===l?void 0:l.state.selectChartType)}else{var c=e.config.reportUIModel,d="NUMBER";if(c)d=JSON.parse(c).selectChartType||"NUMBER";var p=va(d);r.value=p,o.value=null==p?void 0:p.createController({mode:"CONTENT",context:e.context,viewParams:e.viewParams,config:e.config})}a("init",o.value),R((function(){o.value&&o.value.destroyed()}));return{ns:n,c:o,provider:r,onDrillDetail:function(e){var t;null===(t=o.value)||void 0===t||t.handleDrillDetail(e)}}},render:function(){var e;return N(T("div",{class:this.ns.b("container")},[(null===(e=this.c)||void 0===e?void 0:e.state.isCreated)&&L(O(this.provider.component),{c:this.c,onDrillDetail:this.onDrillDetail})]),[[P("loading"),this.c&&!this.c.state.isCreated]])}}),gn=g({name:"BIContentCaption",props:{config:{type:Object,default:function(){}},controller:{type:Object}},setup:function(e){var t=s("bi-content-caption"),a=w((function(){var t;return null===(t=e.controller)||void 0===t||null===(t=t.state.propertyData)||void 0===t?void 0:t.caption})),n=x({chartCaption:a.value,isFocus:!1}),i=function(){var t;n.value.isFocus=!1,null===(t=e.controller)||void 0===t||t.setData("caption",n.value.chartCaption)};return{ns:t,caption:w((function(){var t;return(null===(t=e.controller)||void 0===t?void 0:t.state.propertyData.caption)||"未命名"})),uiState:n,onFocus:function(){var t;n.value.isFocus=!0,n.value.chartCaption=null===(t=e.controller)||void 0===t||null===(t=t.state.propertyData)||void 0===t?void 0:t.caption},onChange:i,handleKeyDown:function(t){if(t&&"Enter"===t.code)i();else if(t&&"Escape"===t.code){var a;t.stopPropagation(),n.value.isFocus=!1,n.value.chartCaption=null===(a=e.controller)||void 0===a?void 0:a.state.propertyData.caption}}}},render:function(){var e,t=this;return T("div",{class:this.ns.b()},[T("div",{class:[this.ns.e("caption"),this.ns.is("focus",this.uiState.isFocus)]},[T("div",{class:this.ns.e("label")},[T("span",null,[this.caption]),T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false"},[T("g",{id:"aiwaction/edit","stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M2 8.34L10.71 0 15 4.17 6.538 13H2V8.34zm1.2.512V11.8h2.826l7.283-7.6-2.606-2.533L3.2 8.852zM0 16v-1.2h16V16H0z",id:"aiw编辑"},null)])])]),T(O("el-input"),{class:this.ns.e("input"),modelValue:this.uiState.chartCaption,"onUpdate:modelValue":function(e){return t.uiState.chartCaption=e},placeholder:"请输入报表名称(不超过32字符)",onFocus:this.onFocus,onKeydown:this.handleKeyDown,onBlur:this.onChange},null)]),T("div",{class:this.ns.e("data-total")},[A("共"),T("span",{class:this.ns.e("size")},[(null===(e=this.controller)||void 0===e||null===(e=e.state.reportChart)||void 0===e||null===(e=e.state)||void 0===e?void 0:e.items.length)||0]),A("条数据")])])}}),bn=g({name:"BIDesignHeader",props:{controller:{type:Object,required:!0}},setup:function(e){var t=s("design-header"),a=w((function(){return e.controller.state.propertyData})),n=w((function(){var e;return null===(e=a.value)||void 0===e?void 0:e.caption})),i=function(){var t=b(y().mark((function t(){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.controller.close();case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),r=function(){var a=b(y().mark((function a(){return y().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!e.controller||e.controller.state.dataChangeState){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,ibiz.confirm.warning({title:"确认取消保存",desc:T("div",{class:t.b("report-caption")},[T("div",null,[A("确认取消保存报表"),T("div",{class:t.be("report-caption","name")},[n.value||"未命名"]),A("吗?")]),T("div",{class:t.be("report-caption","desc")},[A("取消保存后无法保存编辑信息。")])])});case 4:a.sent&&e.controller.cancel();case 6:case"end":return a.stop()}}),a)})));return function(){return a.apply(this,arguments)}}();return{ns:t,caption:n,onSave:function(){e.controller.save()},onClose:i,onReset:r}},render:function(){return T("div",{class:this.ns.b()},[T("div",{class:this.ns.e("caption")},[T("span",{class:this.ns.em("caption","text")},[this.caption])]),T("div",{class:this.ns.e("actions")},[T("div",{class:this.ns.em("actions","close"),onClick:this.onClose},[A("返回")]),T("div",{class:this.ns.em("actions","save")},[T(O("el-dropdown"),{"split-button":!0,type:"primary",onClick:this.onSave,onCommand:this.onReset,"popper-class":this.ns.b("save-popper")},{default:function(){return T("span",null,[A("保存")])},dropdown:function(){return T(O("el-dropdown-menu"),null,{default:function(){return[T(O("el-dropdown-item"),null,{default:function(){return[A("取消保存")]}})]}})}})])])])}}),wn=g({name:"IBizBIReportDesign",components:{"bi-report-select":de,"bi-report-property":pa,"bi-report-content":yn,"bi-content-caption":gn,"bi-design-header":bn},props:{context:{type:Object,require:!0},viewParams:{type:Object,require:!0},dismiss:{type:Object},config:{type:Object,default:function(){return{reportTag:"bi_report",selectChartType:"NUMBER"}}},measureToolbar:{type:Object},dimensionToolbar:{type:Object}},emit:["action-click"],setup:function(e,a){var n=a.emit,i=s("bi-report-design"),r=oe((function(){for(var e=arguments.length,a=new Array(e),n=0;n0){var v;u+="$";var y=new Map;p.forEach((function(e,t){y.set(e.name,e.value),u+="".concat(e.name,"=").concat(e.value),t!==p.length-1&&(u+="&")})),(m=null===(v=e.reportModel.appBIReportDimensions)||void 0===v?void 0:v.filter((function(e){return y.has(e.dimensionTag)})))&&m.length>0&&Object.assign(h,{bidimensions:xt(e.reportModel,m)})}Object.assign(h,{bisort:Et(e.reportModel,[f],m)});var g=[{condtype:"CUSTOM",customtype:"BIDRILLDETAIL",customcond:u}],b=Nt(e.reportModel);b&&g.push(b[0]),Object.assign(h,{searchconds:g}),o.value=h,r.value=n.value.filter((function(e){return i.value.some((function(t){return t===e.name}))})).map((function(e){return e.text})).join(",")}else ibiz.log.error("执行数据反查未找到指标数据中断")},p=function(){var t=b(y().mark((function t(){var r,o,s,p,u,h,f,m;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,l.value=!1,r=e.data,o=r.measure,s=r.dimension,o&&(u=null===(p=e.reportModel.appBIReportMeasures)||void 0===p?void 0:p.find((function(e){return e.measureTag===o.name})))&&(a.value=u.measureName||""),!Array.isArray(s)){t.next=12;break}if(!(f=null===(h=e.reportModel.appBIReportDimensions)||void 0===h?void 0:h.filter((function(e){return s.some((function(t){return t.name===e.dimensionTag}))})))||!f.length){t.next=12;break}return t.next=9,Promise.all(f.map(function(){var t=b(y().mark((function t(a){var n,i,r,o,l,d;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=null===(n=s.find((function(e){return e.name===a.dimensionTag})))||void 0===n?void 0:n.value,r=i,!a.appCodeListId){t.next=8;break}return t.next=5,c(a.appCodeListId);case 5:o=t.sent,(l=null==o?void 0:o.find((function(e){return e.value===i})))&&(r=l.text);case 8:return!a.appCodeListId&&a.textAppDEFieldId&&e.dynamicDataDic&&(r=null===(d=e.dynamicDataDic[a.dimensionTag])||void 0===d?void 0:d["".concat(i)]),t.abrupt("return",{text:a.dimensionName,name:a.dimensionTag,value:i,valueText:r});case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 9:m=t.sent,n.value=m,i.value=n.value.map((function(e){return e.name}));case 12:d();case 13:return t.prev=13,l.value=!0,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[0,,13,16]])})));return function(){return t.apply(this,arguments)}}();p();return{ns:t,caption:a,items:n,activeItems:i,activeText:r,customParams:o,isLoaded:l,handleClick:function(e){var t=i.value.findIndex((function(t){return t===e.name}));-1!==t?i.value.splice(t,1):i.value.push(e.name),d()}}},render:function(){var e=this;if(this.isLoaded)return T("div",{class:this.ns.b()},[T("div",{class:this.ns.b("header")},[this.caption]),T("div",{class:this.ns.b("content")},[this.items.length>0&&T("div",{class:this.ns.b("content-left")},[T("div",{class:this.ns.b("content-left-list")},[this.items.map((function(t){return T("div",{class:[e.ns.b("item"),e.ns.is("active",e.activeItems.includes(t.name))],onClick:function(){e.handleClick(t)}},[T("div",{class:e.ns.be("item","name")},[t.text||""]),T("div",{class:e.ns.be("item","value")},[t.valueText||""])])}))]),T("div",{class:this.ns.b("content-left-active-items"),title:"已过滤的纬度:".concat(this.activeText)},[T("span",{class:this.ns.be("content-left-active-items","text")},[A("已过滤的纬度:"),this.activeText])])]),T("div",{class:this.ns.b("content-right")},[L(O("IBizViewShell"),{context:this.context,params:this.customParams,viewId:this.appViewId})])])])}}),Cn=function(e){n(s,e);var t,i=r(s);function s(){var e;f(this,s);for(var t=arguments.length,a=new Array(t),n=0;n0&&Object.keys(t).forEach((function(e){"data"===e?Object.keys(t.data).forEach((function(e){if(Object.prototype.hasOwnProperty.call(r.data,e)){var a,n=null==i?void 0:i.data.details.find((function(t){return t.id===e}));if(!n)return;if(n&&n.details[0].multiple)r.data[e]=t.data[e];else r.data[e]=null===(a=t.data[e])||void 0===a?void 0:a.slice(0,1)}else"period"===e&&(r.data[e]=t.data[e])})):r[e]=t[e]})),r}},{key:"compileAppBIReport",value:(c=b(y().mark((function e(t,a){var n,i,r,o,s;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=H(this.context),Object.assign(n,{pssysbireport:"__UNKNOWN__"}),e.next=4,ibiz.util.biReport.translateDataToAppBIReport({reportTag:this.config.reportTag,selectChartType:t,selectCubeId:this.config.selectCubeId,caption:a.caption,data:a.data,style:a.style,extend:a.extend});case 4:return i=e.sent,r=ibiz.hub.getApp(ibiz.env.appId),e.next=8,r.deService.exec("pssysbireport","compileappbireport",n,i);case 8:if(!(o=e.sent)||!o.data){e.next=15;break}return e.next=12,ibiz.hub.translationModelToDsl(o.data,"APPBIREPORT");case 12:return(s=e.sent).appBISchemeId=this.config.selectedSchemeId,e.abrupt("return",s);case 15:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"initReportModel",value:(s=b(y().mark((function e(){var t;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.state.propertyData={},this.state.reportModel=void 0,this.state.propertyData=this.getDefaultValue(this.config.selectChartType,H(this.config.propertyData)),this.state.defaultPropertyData=H(this.state.propertyData),e.next=6,this.compileAppBIReport(this.config.selectChartType,this.state.propertyData);case 6:(t=e.sent)&&(this.state.reportModel=t,this.state.defaultReportModel=H(t));case 8:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"initGridReportModel",value:(i=b(y().mark((function e(){var t,a,n,i,r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.config.selectChartType,a=this.gridType.includes(t)?t:"GRID",this.state.gridPropertyData={},this.state.gridReportModel=void 0,n=H(this.gridType.includes(this.config.selectChartType)?this.config.propertyData:this.state.propertyData),i={caption:n.caption},Object.assign(i,{data:n.data}),Object.assign(i,{extend:n.extend}),this.gridType.includes(t)&&Object.assign(i,{style:n.style}),this.state.gridPropertyData=this.getDefaultValue(a,i),this.state.defaultGridPropertyData=H(this.state.gridPropertyData),e.next=13,this.compileAppBIReport(a,this.state.gridPropertyData);case 13:(r=e.sent)&&(this.state.gridReportModel=r,this.state.defaultGridReportModel=H(r));case 15:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"updateGridReportModel",value:(t=b(y().mark((function e(){var t,a,n,i,r,o,s,l;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.grid){e.next=2;break}return e.abrupt("return");case 2:return i=this.config.selectChartType,r=this.gridType.includes(i)?i:"GRID",o={},s={selectChartType:r,style:this.state.gridPropertyData.style},null!==(t=this.state.gridPropertyData.data)&&void 0!==t&&t.filter&&Object.assign(s,{filter:this.state.gridPropertyData.data.filter}),null!==(a=this.state.gridPropertyData.data)&&void 0!==a&&a.period&&Object.assign(s,{period:this.state.gridPropertyData.data.period}),(null===(n=this.state.gridPropertyData.data)||void 0===n||null===(n=n.group)||void 0===n?void 0:n.length)>0&&(l=this.state.gridPropertyData.data.group.map((function(e){return e.pssysbicubedimensionid})),Object.assign(s,{group:l})),o.reportUIModel=JSON.stringify(s),e.next=12,this.grid.handleValueChange("style","",o);case 12:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),O}(ee);function On(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!M(e)}var An=g({name:"BIFilterCondition",props:{value:{type:Object},schemaFields:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},context:{type:Object,required:!0},params:{type:Object,required:!0},borderMode:{type:String,default:"DEFAULT"}},emits:{change:function(e){return!0}},setup:function(e,t){var a=t.emit,n=s("bi-filter-condition"),i=x([]),r=x([{text:"且",value:"AND"},{text:"或",value:"OR"}]),o=new Map;Lt.forEach((function(e){return o.set(e.valueOP,e.label)}));var l=x(new Map);E((function(){return e.schemaFields}),(function(){l.value=new Map,e.schemaFields.forEach((function(e){l.value.set(e.appDEFieldId,e)}))}),{immediate:!0});var c=function(){var t=b(y().mark((function t(a){var n,i,r,o;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a.editorProvider=void 0,a.editor=void 0,n=l.value.get(a.field)){t.next=5;break}return t.abrupt("return");case 5:return i=Ft(n),t.next=8,J(i);case 8:if(!(r=t.sent)){t.next=15;break}return a.editorProvider=r,t.next=13,r.createController(i,{context:e.context,params:e.params});case 13:o=t.sent,a.editor=o;case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();E((function(){return e.value}),b(y().mark((function t(){var a,n;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.value){t.next=3;break}return i.value=[],t.abrupt("return");case 3:if(a=e.value.children,!Array.isArray(a)||!a.length){t.next=10;break}return n=e.value.logicType||"",t.next=8,Promise.all(a.map(function(){var e=b(y().mark((function e(t){var a,i,r,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.field||"",i=t.valueOP||"",r=t.value,o={key:ut(),connection:n,field:a,valueOP:i,value:r},e.next=6,c(o);case 6:return e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 8:return i.value=t.sent,t.abrupt("return");case 10:i.value=[];case 11:case"end":return t.stop()}}),t)}))),{immediate:!0});var d=function(){var e;if(i.value.length){var t=[];i.value.forEach((function(e){t.push({nodeType:"FIELD",field:e.field,valueOP:e.valueOP,value:e.value})}));var n={nodeType:"GROUP",logicType:(null===(e=i.value[0])||void 0===e?void 0:e.connection)||"AND",children:t};a("change",n)}else a("change",null)},p=function(){var t=b(y().mark((function t(){var a,n,r,o,s,p;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.disabled){t.next=2;break}return t.abrupt("return");case 2:return r=i.value[0],o=(null===(a=e.schemaFields[0])||void 0===a?void 0:a.appDEFieldId)||"",s=(null===(n=l.value.get(o))||void 0===n||null===(n=n.valueOPs)||void 0===n?void 0:n[0])||"",p={key:ut(),connection:(null==r?void 0:r.connection)||"AND",field:o,valueOP:s},t.next=8,c(p);case 8:i.value.push(p),d();case 10:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),u=function(){var e=b(y().mark((function e(t){var a,n;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=l.value.get(t.field),t.valueOP=(null==n||null===(a=n.valueOPs)||void 0===a?void 0:a[0])||"",t.value=void 0,e.next=5,c(t);case 5:d();case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return{ns:n,items:i,connectionItems:r,filterModeMap:o,schemaFieldMap:l,handleAdd:p,handleRemove:function(t){e.disabled||(i.value.splice(t,1),d())},renderEditor:function(t){if(!t.valueOP||Mt.includes(t.valueOP))return null;if(t.editorProvider&&t.editor){var a=O(t.editorProvider.formEditor);return L(a,{value:t.value,controller:t.editor,disabled:e.disabled,onChange:function(e){t.value=e,d()}})}},handleConnectionChange:function(e){i.value.forEach((function(t){t.connection=e.connection})),d()},handleFieldChange:u,handleValueOPChange:function(e){e.value=void 0,d()}}},render:function(){var e=this;return T("div",{class:[this.ns.b(),this.disabled&&this.ns.m("disabled")]},["BORDER"===this.borderMode&&T("div",{class:this.ns.e("filter-number")},[A("查询条件("),this.items.length,A(")")]),T("div",{class:[this.ns.b("content"),this.ns.is("border-mode","BORDER"===this.borderMode)]},[this.items.map((function(t,a){var n,i;return T("div",{class:e.ns.b("item")},[T("div",{class:[e.ns.be("item","connection"),0===a&&e.ns.bem("item","connection","init")]},[0===a?T("div",null,[A("当")]):T(O("el-select"),{modelValue:t.connection,"onUpdate:modelValue":function(e){return t.connection=e},disabled:a>1||e.disabled,onChange:function(){e.handleConnectionChange(t)}},On(n=e.connectionItems.map((function(e){return T(O("el-option"),{key:e.value,value:e.value,label:e.text},null)})))?n:{default:function(){return[n]}})]),T("div",{class:e.ns.b("item-content")},[T("div",{class:e.ns.be("item","field")},[T(O("el-select"),{modelValue:t.field,"onUpdate:modelValue":function(e){return t.field=e},disabled:e.disabled,onChange:function(){e.handleFieldChange(t)}},On(i=e.schemaFields.map((function(e){return T(O("el-option"),{key:e.appDEFieldId,value:e.appDEFieldId,label:e.caption},null)})))?i:{default:function(){return[i]}})]),T("div",{class:e.ns.be("item","valueOP")},[T(O("el-select"),{modelValue:t.valueOP,"onUpdate:modelValue":function(e){return t.valueOP=e},disabled:e.disabled,onChange:function(){e.handleValueOPChange(t)}},{default:function(){var a;return[null===(a=e.schemaFieldMap.get(t.field))||void 0===a||null===(a=a.valueOPs)||void 0===a?void 0:a.map((function(t){return T(O("el-option"),{key:t,value:t,label:e.filterModeMap.get(t)||t},null)}))]}})]),T("div",{class:e.ns.be("item","editor")},[e.renderEditor(t)])]),T("div",{class:e.ns.be("item","btn"),title:"删除",onClick:function(t){t.stopPropagation(),e.handleRemove(a)}},[T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[T("g",{"stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M4.002 3.403V1a1 1 0 0 1 1-1h6.003a1 1 0 0 1 1 1v2.403h3.396a.6.6 0 1 1 0 1.2h-1.395V15a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4.603H.6a.6.6 0 1 1 0-1.2h3.4zm8.804 1.205H3.2V14.8h9.605V4.608zM5.202 1.2v2.155h5.603V1.2H5.202zm.6 6.417a.6.6 0 0 1 1.201 0v4.758a.6.6 0 0 1-1.2 0V7.617zm3.202 0a.6.6 0 0 1 1.2 0v4.758a.6.6 0 0 1-1.2 0V7.617z"},null)])])])])}))]),T("div",{class:[this.ns.b("footer"),this.ns.is("border-mode","BORDER"===this.borderMode)]},[T("div",{class:this.ns.b("footer-btn"),onClick:this.handleAdd},[T("svg",{class:this.ns.be("footer-btn","icon"),viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[T("g",{"stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M8.578 7.383V1.602a.601.601 0 1 0-1.2 0v5.781H1.6a.601.601 0 0 0 0 1.203h5.777v5.812a.601.601 0 1 0 1.2 0V8.586H14.4a.601.601 0 0 0 0-1.203H8.578z"},null)])]),T("div",{class:this.ns.be("footer-btn","text")},[A("新增筛选条件")])])])])}}),Mn=g({name:"BIFilter",components:{"bi-filter-condition":An},props:{modal:{type:Object,required:!0},state:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,required:!0},borderMode:{type:String,default:"DEFAULT"}},emit:["confirm"],setup:function(e,t){var a=t.emit,n=s("bi-filter"),i=x(e.state.filterMode||"default"),r=w((function(){return e.state.isLoadedSchema})),o=x();E((function(){return e.state.cond}),(function(){o.value=e.state.cond}),{immediate:!0});var l=w((function(){return e.state.conditionFields})),c=w((function(){return e.state.fields})),d=w((function(){return e.state.fieldIconMap})),p=x(""),u=x();E((function(){return e.state.customCond}),(function(){p.value=e.state.customCond||""}),{immediate:!0});return{ns:n,activeTab:i,isLoaded:r,cond:o,schemaFields:l,handleCondChange:function(e){o.value=e},customCond:p,pqlEditor:u,fields:c,fieldIconMap:d,handleCustomCondChange:function(e){p.value=e},handleReset:function(t){t.stopPropagation(),e.modal.dismiss(),a("reset")},handleCancel:function(t){t.stopPropagation(),e.modal.dismiss()},handleConfirm:function(t){t.stopPropagation();try{if("pql"===i.value){var n,r;if(u.value)if(!(null===(n=(r=u.value).verify)||void 0===n?void 0:n.call(r)))return;a("confirm",{type:i.value,customCond:p.value})}else a("confirm",{type:i.value,cond:o.value});e.modal.dismiss()}catch(s){ibiz.log.error(null==s?void 0:s.message)}},renderItem:function(e){return[T("div",{class:n.be("item","icon")},["measure"===d.value.get(e.value)?T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{"stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M4.236 9.9l.422-3.8H2.6a.6.6 0 1 1 0-1.2h2.19l.372-3.347a.6.6 0 1 1 1.192.133L5.998 4.9h4.793l.37-3.347a.6.6 0 0 1 1.193.133L11.998 4.9h2.459a.6.6 0 0 1 0 1.2h-2.592l-.421 3.8h2.013a.6.6 0 0 1 0 1.2H11.31l-.374 3.368a.6.6 0 0 1-1.192-.132l.358-3.236H5.311l-.374 3.368a.6.6 0 0 1-1.192-.132l.358-3.236H1.6a.6.6 0 0 1 0-1.2h2.636zm1.208 0h4.792l.422-3.8H5.865l-.421 3.8z"},null)])]):T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",focusable:"false",fill:"currentColor"},[T("g",{"stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M9 1.2v4.974h1V3.2h2v2.974h1.5a1.5 1.5 0 0 1 1.5 1.5v5.784a1.5 1.5 0 0 1-1.5 1.5h-11a1.5 1.5 0 0 1-1.5-1.5V7.674a1.5 1.5 0 0 1 1.5-1.5H4V3.2h2v2.974h1V1.2h2zM6 6.636H4v4.038h2V6.636zm1 4.038h2V6.636H7v4.038zm5-4.053h-2v4.053h2V6.621z"},null)])])]),T("div",{class:n.be("item","text")},[e.label||""])]}}},render:function(){var e=this;return N(T("div",{class:this.ns.b()},[this.isLoaded?[T("div",{class:this.ns.b("header")},[T("div",{class:this.ns.b("header-text")},[A("筛选")]),T("div",{class:[this.ns.b("header-tab"),this.ns.bm("header-tab",this.activeTab)]},[T(O("el-tabs"),{type:"card",modelValue:this.activeTab,"onUpdate:modelValue":function(t){return e.activeTab=t}},{default:function(){return[T(O("el-tab-pane"),{name:"default",label:"基本"},null),T(O("el-tab-pane"),{name:"pql",label:"PQL"},null)]}})]),T("div",{class:this.ns.b("header-btn"),onClick:this.handleCancel},[T("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[T("g",{"stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M7.456 7.456V-.115h1.2v7.571h7.572v1.2H8.656v7.572h-1.2V8.656H-.115v-1.2h7.571z",transform:"rotate(45 8.056 8.056)"},null)])])])]),T("div",{class:this.ns.b("content")},["pql"===this.activeTab?T(O("iBizPqlEditor"),{ref:"pqlEditor",class:this.ns.e("pql-editor"),placeholder:"输入筛选条件",value:this.customCond,fields:this.fields,context:this.context,params:this.params,renderItem:this.renderItem,onChange:this.handleCustomCondChange},null):T(O("bi-filter-condition"),{class:this.ns.e("filter-condition"),value:this.cond,schemaFields:this.schemaFields,context:this.context,params:this.params,onChange:this.handleCondChange,borderMode:this.borderMode},null)]),T("div",{class:this.ns.b("footer")},[T("div",{class:this.ns.be("footer","reset-btn"),onClick:this.handleReset},[A("重置")]),T(O("el-button"),{class:this.ns.be("footer","cancel-btn"),text:!0,onClick:this.handleCancel},{default:function(){return[A("取消")]}}),T(O("el-button"),{class:this.ns.be("footer","confirm-btn"),onClick:this.handleConfirm},{default:function(){return[A("确认")]}})])]:null]),[[P("loading"),!this.isLoaded]])}}),Ln=g({name:"BIReportPanelContent",props:{modelData:{type:Object,required:!0},controller:{type:Dn,required:!0}},setup:function(e){var t,a,n=s("bi-report-panel-content"),i=e.controller,r=x(["chart","grid"]),o=x(!1),l=x(!1);o.value=!(null===(t=i.state.gridPropertyData)||void 0===t||null===(t=t.style)||void 0===t||null===(t=t.agg)||void 0===t||!t.show);var c=null===(a=i.state.gridPropertyData)||void 0===a||null===(a=a.style)||void 0===a||null===(a=a.function)||void 0===a?void 0:a.function;Array.isArray(c)&&(l.value=c.includes("showPercent"));var d,p=function(){var e=b(y().mark((function e(t){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i.state.gridPropertyData.style||(i.state.gridPropertyData.style={}),i.state.gridPropertyData.style.agg||(i.state.gridPropertyData.style.agg={}),i.state.gridPropertyData.style.agg.show=t,i.updateGridReportModel();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=x();S((function(){u.value&&ResizeObserver&&(d=new ResizeObserver((function(){var e,t;null===(e=i.chart)||void 0===e||null===(e=e.chartController)||void 0===e||null===(t=e.resizeChart)||void 0===t||t.call(e)}))).observe(u.value)})),R((function(){var e;null===(e=d)||void 0===e||e.disconnect()}));var h,f=x(!1),m=function(){var e,t;i.resetModel(),o.value=!(null===(e=i.state.gridPropertyData)||void 0===e||null===(e=e.style)||void 0===e||null===(e=e.agg)||void 0===e||!e.show);var a=null===(t=i.state.gridPropertyData)||void 0===t||null===(t=t.style)||void 0===t||null===(t=t.function)||void 0===t?void 0:t.function;Array.isArray(a)?l.value=a.includes("showPercent"):l.value=!1},v=function(e){var t=e.type;if(i.state.filterMode=t,"default"===t){var a=e.cond;if(i.state.cond=a,a){var n=a.children;if(Array.isArray(n)&&n.length){var r=a.logicType,o=n.map((function(e){return I(I({},i.state.conditionFieldMap.get(e.field)),{},{groupLogicType:r,condition:{value:e.value,valueOP:e.valueOP,nodeType:"FIELD",field:e.field}})}));return void i.updateFilter(o)}}i.updateFilter([])}"pql"===t&&i.updateCustomCond(e.customCond)},g=function(){var e=b(y().mark((function e(t){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.stopPropagation(),!h){e.next=3;break}return e.abrupt("return");case 3:return i.state.isLoadedSchema||i.loadSchema(),h=ibiz.overlay.createPopover((function(e){return L(Mn,{modal:e,state:i.state,context:i.panel.context,params:i.panel.params,onConfirm:v,onReset:m})}),void 0,{placement:"bottom-start",autoClose:!0,noArrow:!0,width:800}),e.next=7,h.present(t.target);case 7:return f.value=!0,e.next=10,h.onWillDismiss();case 10:f.value=!1,h=void 0;case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return R((function(){var e;null===(e=h)||void 0===e||e.dismiss()})),{ns:n,c:i,value:r,showAgg:o,showPercent:l,chartRef:u,isActive:f,handleShowAggChange:p,handleShowPercentChange:function(e){i.state.gridPropertyData.style||(i.state.gridPropertyData.style={}),i.state.gridPropertyData.style.function||(i.state.gridPropertyData.style.function={}),Array.isArray(i.state.gridPropertyData.style.function.function)||(i.state.gridPropertyData.style.function.function=[]);var t=i.state.gridPropertyData.style.function.function,a=t.indexOf("showPercent");e&&-1===a&&t.push("showPercent"),e||-1===a||t.splice(a,1),i.updateGridReportModel()},handleGridInit:function(e){i.setGrid(e)},handleChartInit:function(e){i.setChart(e)},openFilterPopover:g}},render:function(){var e=this;return T("div",{class:this.ns.b()},[T(O("el-collapse"),{modelValue:this.value,"onUpdate:modelValue":function(t){return e.value=t}},{default:function(){return[e.c.state.reportModel&&T(O("el-collapse-item"),{name:"chart"},{title:function(){return T("div",{class:e.ns.b("item-header")},[T("div",{class:e.ns.b("item-header-left")},[A("图表")])])},default:function(){return T("div",{class:e.ns.b("chart"),ref:"chartRef"},[T(O("iBizBIReportContent"),{mode:"CONTENT",context:e.c.context,viewParams:e.c.panel.params,config:e.c.state.reportModel,onInit:e.handleChartInit},null)])}}),e.c.state.gridReportModel&&T(O("el-collapse-item"),{name:"grid"},{title:function(){return T("div",{class:e.ns.b("item-header")},[T("div",{class:e.ns.b("item-header-left")},[e.c.gridType.includes(e.c.config.selectChartType)?"图表":"数据"]),T("div",{class:[e.ns.b("filter"),e.ns.is("active",e.isActive)],onClick:e.openFilterPopover},[T("svg",{class:e.ns.be("filter","icon"),viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em",preserveAspectRatio:"xMidYMid meet",focusable:"false"},[T("g",{"stroke-width":"1","fill-rule":"evenodd"},[T("path",{d:"M1.6 2h12.8a.6.6 0 0 1 0 1.2H1.6a.6.6 0 1 1 0-1.2zm2.5 5.393h7.8a.6.6 0 0 1 0 1.2H4.1a.6.6 0 1 1 0-1.2zm2.5 5.416h2.8a.6.6 0 0 1 0 1.2H6.6a.6.6 0 1 1 0-1.2z"},null)])]),T("div",{class:e.ns.be("filter","text")},[A("筛选")]),!!e.c.state.condNum&&T("div",{class:e.ns.be("filter","badge")},[e.c.state.condNum])]),T("div",{class:e.ns.b("item-header-right"),onClick:function(e){e.stopPropagation()}},[T(O("el-checkbox"),{modelValue:e.showAgg,"onUpdate:modelValue":function(t){return e.showAgg=t},onChange:e.handleShowAggChange,label:"显示合计",size:"large"},null),T(O("el-checkbox"),{modelValue:e.showPercent,"onUpdate:modelValue":function(t){return e.showPercent=t},onChange:e.handleShowPercentChange,label:"显示百分比",size:"large"},null)])])},default:function(){return T("div",{class:e.ns.b("grid")},[T(O("iBizBIReportContent"),{mode:"CONTENT",context:e.c.context,viewParams:e.c.panel.params,config:e.c.state.gridReportModel,onInit:e.handleGridInit},null)])}})]}})])}}),Rn=function(){function e(){f(this,e),C(this,"component","BIReportPanelContent")}var t;return v(e,[{key:"createController",value:(t=b(y().mark((function e(t,a,n){var i;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new Dn(t,a,n),e.next=3,i.init();case 3:return e.abrupt("return",i);case 4:case"end":return e.stop()}}),e)}))),function(e,a,n){return t.apply(this,arguments)})}]),e}(),kn={install:function(e){e.component(Ln.name,Ln),ae("CUSTOM_BI_REPORT_PANEL_CONTENT",(function(){return new Rn}))}},Fn={install:function(e){e.use(En),e.use(kn)}};i("default",{install:function(e){e.component(wn.name,wn),e.component(yn.name,yn),e.component(In.name,In),ma("NUMBER",(function(){return new Za})),ma("PIE",(function(){return new Qa})),ma("SCATTER",(function(){return new on})),ma("STACK_COL",(function(){return new sn})),ma("GAUGE",(function(){return new en})),ma("MULTI_SERIES_BAR",(function(){return new tn})),ma("MULTI_SERIES_LINE",(function(){return new an})),ma("MULTI_SERIES_COL",(function(){return new nn})),ma("ZONE_COL",(function(){return new ln})),ma("STACK_BAR",(function(){return new cn})),ma("AREA",(function(){return new dn})),ma("ZONE_LINE",(function(){return new pn})),ma("RADAR",(function(){return new un})),ma("CROSSTABLE",(function(){return new rn})),ma("GRID",(function(){return new hn})),e.use(Fn)}})}}}))}(); diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/bi-report/0.0.26/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/bi-report/0.0.26/polyfills.legacy.js new file mode 100644 index 0000000000000000000000000000000000000000..0d67ea324e86c02f012f8aaf499887de9d9b4265 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/bi-report/0.0.26/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)||r("object"==typeof t&&t)||function(){return this}()||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)}},x=S,E=x({}.toString),O=x("".slice),j=function(t){return O(E(t),8,-1)},I=o,T=j,R=Object,A=S("".split),P=I((function(){return!R("z").propertyIsEnumerable(0)}))?function(t){return"String"===T(t)?A(t,""):R(t)}:R,k=function(t){return null==t},C=k,N=TypeError,F=function(t){if(C(t))throw new N("Can't call method on "+t);return t},M=P,L=F,D=function(t){return M(L(t))},_="object"==typeof document&&document.all,U={all:_,IS_HTMLDDA:void 0===_&&void 0!==_},z=U.all,$=U.IS_HTMLDDA?function(t){return"function"==typeof t||t===z}:function(t){return"function"==typeof t},G=$,W=U.all,B=U.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:G(t)||t===W}:function(t){return"object"==typeof t?null!==t:G(t)},V=e,H=$,Y=function(t,r){return arguments.length<2?(e=V[t],H(e)?e:void 0):V[t]&&V[t][r];var e},q=S({}.isPrototypeOf),J="undefined"!=typeof navigator&&String(navigator.userAgent)||"",K=e,X=J,Q=K.process,Z=K.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=Y,ft=$,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=$,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)},xt=f,Et=$,Ot=B,jt=TypeError,It=function(t,r){var e,n;if("string"===r&&Et(e=t.toString)&&!Ot(n=xt(e,t)))return n;if(Et(e=t.valueOf)&&!Ot(n=xt(e,t)))return n;if("string"!==r&&Et(e=t.toString)&&!Ot(n=xt(e,t)))return n;throw new jt("Can't convert object to primitive value")},Tt={exports:{}},Rt=e,At=Object.defineProperty,Pt=function(t,r){try{At(Rt,t,{value:r,configurable:!0,writable:!0})}catch(e){Rt[t]=r}return r},kt=Pt,Ct="__core-js_shared__",Nt=e[Ct]||kt(Ct,{}),Ft=Nt;(Tt.exports=function(t,r){return Ft[t]||(Ft[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.34.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Mt=Tt.exports,Lt=F,Dt=Object,_t=function(t){return Dt(Lt(t))},Ut=_t,zt=S({}.hasOwnProperty),$t=Object.hasOwn||function(t,r){return zt(Ut(t),r)},Gt=S,Wt=0,Bt=Math.random(),Vt=Gt(1..toString),Ht=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Vt(++Wt+Bt,36)},Yt=Mt,qt=$t,Jt=Ht,Kt=ut,Xt=at,Qt=e.Symbol,Zt=Yt("wks"),tr=Xt?Qt.for||Qt:Qt&&Qt.withoutSetter||Jt,rr=function(t){return qt(Zt,t)||(Zt[t]=Kt&&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,xr=g,Er=D,Or=hr,jr=$t,Ir=mr,Tr=Object.getOwnPropertyDescriptor;n.f=br?Tr:function(t,r){if(t=Er(t),r=Or(r),Ir)try{return Tr(t,r)}catch(e){}if(jr(t,r))return xr(!wr(Sr.f,t,r),t[r])};var Rr={},Ar=i&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Pr=B,kr=String,Cr=TypeError,Nr=function(t){if(Pr(t))return t;throw new Cr(kr(t)+" is not an object")},Fr=i,Mr=mr,Lr=Ar,Dr=Nr,_r=hr,Ur=TypeError,zr=Object.defineProperty,$r=Object.getOwnPropertyDescriptor,Gr="enumerable",Wr="configurable",Br="writable";Rr.f=Fr?Lr?function(t,r,e){if(Dr(t),r=_r(r),Dr(e),"function"==typeof t&&"prototype"===r&&"value"in e&&Br in e&&!e[Br]){var n=$r(t,r);n&&n[Br]&&(t[r]=e.value,e={configurable:Wr in e?e[Wr]:n[Wr],enumerable:Gr in e?e[Gr]:n[Gr],writable:!1})}return zr(t,r,e)}:zr:function(t,r,e){if(Dr(t),r=_r(r),Dr(e),Mr)try{return zr(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 Vr=Rr,Hr=g,Yr=i?function(t,r,e){return Vr.f(t,r,Hr(1,e))}:function(t,r,e){return t[r]=e,t},qr={exports:{}},Jr=i,Kr=$t,Xr=Function.prototype,Qr=Jr&&Object.getOwnPropertyDescriptor,Zr=Kr(Xr,"name"),te={EXISTS:Zr,PROPER:Zr&&"something"===function(){}.name,CONFIGURABLE:Zr&&(!Jr||Jr&&Qr(Xr,"name").configurable)},re=$,ee=Nt,ne=S(Function.toString);re(ee.inspectSource)||(ee.inspectSource=function(t){return ne(t)});var oe,ie,ue,ae=ee.inspectSource,ce=$,fe=e.WeakMap,se=ce(fe)&&/native code/.test(String(fe)),le=Ht,he=Mt("keys"),ve=function(t){return he[t]||(he[t]=le(t))},pe={},de=se,ge=e,ye=B,me=Yr,be=$t,we=Nt,Se=ve,xe=pe,Ee="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(Ee);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");xe[Te]=!0,oe=function(t,r){if(be(t,Te))throw new Oe(Ee);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}}},Ae=S,Pe=o,ke=$,Ce=$t,Ne=i,Fe=te.CONFIGURABLE,Me=ae,Le=Re.enforce,De=Re.get,_e=String,Ue=Object.defineProperty,ze=Ae("".slice),$e=Ae("".replace),Ge=Ae([].join),We=Ne&&!Pe((function(){return 8!==Ue((function(){}),"length",{value:8}).length})),Be=String(String).split("String"),Ve=qr.exports=function(t,r,e){"Symbol("===ze(_e(r),0,7)&&(r="["+$e(_e(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!Ce(t,"name")||Fe&&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=Le(t);return Ce(n,"source")||(n.source=Ge(Be,"string"==typeof r?r:"")),t};Function.prototype.toString=Ve((function(){return ke(this)&&De(this).source||Me(this)}),"toString");var He=qr.exports,Ye=$,qe=Rr,Je=He,Ke=Pt,Xe=function(t,r,e,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:r;if(Ye(e)&&Je(e,i,n),n.global)o?t[r]=e:Ke(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=D,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=$t,bn=D,wn=yn.indexOf,Sn=pe,xn=S([].push),En=function(t,r){var e,n=bn(t),o=0,i=[];for(e in n)!mn(Sn,e)&&mn(n,e)&&xn(i,e);for(;r.length>o;)mn(n,e=r[o++])&&(~wn(i,e)||xn(i,e));return i},On=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jn=En,In=On.concat("length","prototype");Qe.f=Object.getOwnPropertyNames||function(t){return jn(t,In)};var Tn={};Tn.f=Object.getOwnPropertySymbols;var Rn=Y,An=Qe,Pn=Tn,kn=Nr,Cn=S([].concat),Nn=Rn("Reflect","ownKeys")||function(t){var r=An.f(kn(t)),e=Pn.f;return e?Cn(r,e(t)):r},Fn=$t,Mn=Nn,Ln=n,Dn=Rr,_n=function(t,r,e){for(var n=Mn(r),o=Dn.f,i=Ln.f,u=0;uu;)lo.f(t,e=o[u++],n[e]);return t};var go,yo=Y("document","documentElement"),mo=Nr,bo=io,wo=On,So=pe,xo=yo,Eo=gr,Oo="prototype",jo="script",Io=ve("IE_PROTO"),To=function(){},Ro=function(t){return"<"+jo+">"+t+""},Ao=function(t){t.write(Ro("")),t.close();var r=t.parentWindow.Object;return t=null,r},Po=function(){try{go=new ActiveXObject("htmlfile")}catch(o){}var t,r,e;Po="undefined"!=typeof document?document.domain&&go?Ao(go):(r=Eo("iframe"),e="java"+jo+":",r.style.display="none",xo.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(Ro("document.F=Object")),t.close(),t.F):Ao(go);for(var n=wo.length;n--;)delete Po[Oo][wo[n]];return Po()};So[Io]=!0;var ko=Object.create||function(t,r){var e;return null!==t?(To[Oo]=mo(t),e=new To,To[Oo]=null,e[Io]=t):e=Po(),void 0===r?e:bo.f(e,r)},Co=rr,No=ko,Fo=Rr.f,Mo=Co("unscopables"),Lo=Array.prototype;void 0===Lo[Mo]&&Fo(Lo,Mo,{configurable:!0,value:No(null)});var Do=function(t){Lo[Mo][t]=!0},_o=function(t){for(var r=eo(this),e=oo(r),n=arguments.length,o=no(n>1?arguments[1]:void 0,e),i=n>2?arguments[2]:void 0,u=void 0===i?e:no(i,e);u>o;)r[o++]=t;return r},Uo=Do;ro({target:"Array",proto:!0},{fill:_o}),Uo("fill");var zo=j,$o=S,Go=function(t){if("Function"===zo(t))return $o(t)},Wo=mt,Bo=u,Vo=Go(Go.bind),Ho=function(t,r){return Wo(t),void 0===r?t:Bo?Vo(t,r):function(){return t.apply(r,arguments)}},Yo=j,qo=Array.isArray||function(t){return"Array"===Yo(t)},Jo={};Jo[rr("toStringTag")]="z";var Ko="[object z]"===String(Jo),Xo=Ko,Qo=$,Zo=j,ti=rr("toStringTag"),ri=Object,ei="Arguments"===Zo(function(){return arguments}()),ni=Xo?Zo:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(e){}}(r=ri(t),ti))?e:ei?Zo(r):"Object"===(n=Zo(r))&&Qo(r.callee)?"Arguments":n},oi=S,ii=o,ui=$,ai=ni,ci=ae,fi=function(){},si=[],li=Y("Reflect","construct"),hi=/^\s*(?:class|function)\b/,vi=oi(hi.exec),pi=!hi.test(fi),di=function(t){if(!ui(t))return!1;try{return li(fi,si,t),!0}catch(r){return!1}},gi=function(t){if(!ui(t))return!1;switch(ai(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return pi||!!vi(hi,ci(t))}catch(r){return!0}};gi.sham=!0;var yi=!li||ii((function(){var t;return di(di.call)||!di(Object)||!di((function(){t=!0}))||t}))?gi:di,mi=qo,bi=yi,wi=B,Si=rr("species"),xi=Array,Ei=function(t){var r;return mi(t)&&(r=t.constructor,(bi(r)&&(r===xi||mi(r.prototype))||wi(r)&&null===(r=r[Si]))&&(r=void 0)),void 0===r?xi:r},Oi=function(t,r){return new(Ei(t))(0===r?0:r)},ji=Ho,Ii=P,Ti=_t,Ri=hn,Ai=Oi,Pi=S([].push),ki=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=Ti(c),d=Ii(p),g=Ri(d),y=ji(f,s),m=0,b=l||Ai,w=r?b(c,g):e||u?b(c,0):void 0;g>m;m++)if((a||m in d)&&(v=y(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:Pi(w,h)}else switch(t){case 4:return!1;case 7:Pi(w,h)}return i?-1:n||o?o:w}},Ci={forEach:ki(0),map:ki(1),filter:ki(2),some:ki(3),every:ki(4),find:ki(5),findIndex:ki(6),filterReject:ki(7)},Ni=o,Fi=et,Mi=rr("species"),Li=function(t){return Fi>=51||!Ni((function(){var r=[];return(r.constructor={})[Mi]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},Di=Ci.map;ro({target:"Array",proto:!0,forced:!Li("map")},{map:function(t){return Di(this,t,arguments.length>1?arguments[1]:void 0)}});var _i,Ui,zi,$i=function(t){return{iterator:t,next:t.next,done:!1}},Gi=Xe,Wi=function(t,r,e){for(var n in r)Gi(t,n,r[n],e);return t},Bi=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Vi=$t,Hi=$,Yi=_t,qi=Bi,Ji=ve("IE_PROTO"),Ki=Object,Xi=Ki.prototype,Qi=qi?Ki.getPrototypeOf:function(t){var r=Yi(t);if(Vi(r,Ji))return r[Ji];var e=r.constructor;return Hi(e)&&r instanceof e?e.prototype:r instanceof Ki?Xi:null},Zi=o,tu=$,ru=B,eu=Qi,nu=Xe,ou=rr("iterator"),iu=!1;[].keys&&("next"in(zi=[].keys())?(Ui=eu(eu(zi)))!==Object.prototype&&(_i=Ui):iu=!0);var uu=!ru(_i)||Zi((function(){var t={};return _i[ou].call(t)!==t}));uu&&(_i={}),tu(_i[ou])||nu(_i,ou,(function(){return this}));var au={IteratorPrototype:_i,BUGGY_SAFARI_ITERATORS:iu},cu=function(t,r){return{value:t,done:r}},fu=f,su=Nr,lu=St,hu=function(t,r,e){var n,o;su(t);try{if(!(n=lu(t,"return"))){if("throw"===r)throw e;return e}n=fu(n,t)}catch(i){o=!0,n=i}if("throw"===r)throw e;if(o)throw n;return su(n),e},vu=f,pu=ko,du=Yr,gu=Wi,yu=Re,mu=St,bu=au.IteratorPrototype,wu=cu,Su=hu,xu=rr("toStringTag"),Eu="IteratorHelper",Ou="WrapForValidIterator",ju=yu.set,Iu=function(t){var r=yu.getterFor(t?Ou:Eu);return gu(pu(bu),{next:function(){var e=r(this);if(t)return e.nextHandler();try{var n=e.done?void 0:e.nextHandler();return wu(n,e.done)}catch(o){throw e.done=!0,o}},return:function(){var e=r(this),n=e.iterator;if(e.done=!0,t){var o=mu(n,"return");return o?vu(o,n):wu(void 0,!0)}if(e.inner)try{Su(e.inner.iterator,"normal")}catch(i){return Su(n,"throw",i)}return Su(n,"normal"),wu(void 0,!0)}})},Tu=Iu(!0),Ru=Iu(!1);du(Ru,xu,"Iterator Helper");var Au=function(t,r){var e=function(e,n){n?(n.iterator=e.iterator,n.next=e.next):n=e,n.type=r?Ou:Eu,n.nextHandler=t,n.counter=0,n.done=!1,ju(this,n)};return e.prototype=r?Tu:Ru,e},Pu=Nr,ku=hu,Cu=function(t,r,e,n){try{return n?r(Pu(e)[0],e[1]):r(e)}catch(o){ku(t,"throw",o)}},Nu=f,Fu=mt,Mu=Nr,Lu=$i,Du=Cu,_u=Au((function(){var t=this.iterator,r=Mu(Nu(this.next,t));if(!(this.done=!!r.done))return Du(t,this.mapper,[r.value,this.counter++],!0)}));ro({target:"Iterator",proto:!0,real:!0,forced:false},{map:function(t){return Mu(this),Fu(t),new _u(Lu(this),{mapper:t})}});var Uu=e,zu=S,$u=mt,Gu=function(t,r,e){try{return zu($u(Object.getOwnPropertyDescriptor(t,r)[e]))}catch(n){}},Wu=$,Bu=String,Vu=TypeError,Hu=Gu,Yu=Nr,qu=function(t){if("object"==typeof t||Wu(t))return t;throw new Vu("Can't set "+Bu(t)+" as a prototype")},Ju=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=Hu(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(n){}return function(e,n){return Yu(e),qu(n),r?t(e,n):e.__proto__=n,e}}():void 0),Ku=$,Xu=B,Qu=Ju,Zu=function(t,r,e){var n,o;return Qu&&Ku(n=r.constructor)&&n!==e&&Xu(o=n.prototype)&&o!==e.prototype&&Qu(t,o),t},ta=S(1..valueOf),ra=ni,ea=String,na=function(t){if("Symbol"===ra(t))throw new TypeError("Cannot convert a Symbol value to a string");return ea(t)},oa=F,ia=na,ua="\t\n\v\f\r                 \u2028\u2029\ufeff",aa=S("".replace),ca=RegExp("^["+ua+"]+"),fa=RegExp("(^|[^"+ua+"])["+ua+"]+$"),sa=function(t){return function(r){var e=ia(oa(r));return 1&t&&(e=aa(e,ca,"")),2&t&&(e=aa(e,fa,"$1")),e}},la={start:sa(1),end:sa(2),trim:sa(3)},ha=ro,va=i,pa=e,da=Uu,ga=S,ya=Yn,ma=$t,ba=Zu,wa=q,Sa=ht,xa=fr,Ea=o,Oa=Qe.f,ja=n.f,Ia=Rr.f,Ta=ta,Ra=la.trim,Aa="Number",Pa=pa[Aa];da[Aa];var ka=Pa.prototype,Ca=pa.TypeError,Na=ga("".slice),Fa=ga("".charCodeAt),Ma=function(t){var r,e,n,o,i,u,a,c,f=xa(t,"number");if(Sa(f))throw new Ca("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=Ra(f),43===(r=Fa(f,0))||45===r){if(88===(e=Fa(f,2))||120===e)return NaN}else if(48===r){switch(Fa(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=Na(f,2)).length,a=0;ao)return NaN;return parseInt(i,n)}return+f},La=ya(Aa,!Pa(" 0o1")||!Pa("0b1")||Pa("+0x1")),Da=function(t){var r,e=arguments.length<1?0:Pa(function(t){var r=xa(t,"number");return"bigint"==typeof r?r:Ma(r)}(t));return wa(ka,r=this)&&Ea((function(){Ta(r)}))?ba(Object(e),this,Da):e};Da.prototype=ka,La&&(ka.constructor=Da),ha({global:!0,constructor:!0,wrap:!0,forced:La},{Number:Da});La&&function(t,r){for(var e,n=va?Oa(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++)ma(r,e=n[o])&&!ma(t,e)&&Ia(t,e,ja(r,e))}(da[Aa],Pa);var _a=yn.includes,Ua=Do;ro({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(t){return _a(this,t,arguments.length>1?arguments[1]:void 0)}}),Ua("includes");var za=i,$a=S,Ga=f,Wa=o,Ba=co,Va=Tn,Ha=s,Ya=_t,qa=P,Ja=Object.assign,Ka=Object.defineProperty,Xa=$a([].concat),Qa=!Ja||Wa((function(){if(za&&1!==Ja({b:1},Ja(Ka({},"a",{enumerable:!0,get:function(){Ka(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!==Ja({},t)[e]||Ba(Ja({},r)).join("")!==n}))?function(t,r){for(var e=Ya(t),n=arguments.length,o=1,i=Va.f,u=Ha.f;n>o;)for(var a,c=qa(arguments[o++]),f=i?Xa(Ba(c),i(c)):Ba(c),s=f.length,l=0;s>l;)a=f[l++],za&&!Ga(u,c,a)||(e[a]=c[a]);return e}:Ja,Za=Qa;ro({target:"Object",stat:!0,arity:2,forced:Object.assign!==Za},{assign:Za});var tc=en,rc=na,ec=F,nc=RangeError,oc=ro,ic=S,uc=en,ac=ta,cc=function(t){var r=rc(ec(this)),e="",n=tc(t);if(n<0||n===1/0)throw new nc("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(r+=r))1&n&&(e+=r);return e},fc=o,sc=RangeError,lc=String,hc=Math.floor,vc=ic(cc),pc=ic("".slice),dc=ic(1..toFixed),gc=function(t,r,e){return 0===r?e:r%2==1?gc(t,r-1,e*t):gc(t*t,r/2,e)},yc=function(t,r,e){for(var n=-1,o=e;++n<6;)o+=r*t[n],t[n]=o%1e7,o=hc(o/1e7)},mc=function(t,r){for(var e=6,n=0;--e>=0;)n+=t[e],t[e]=hc(n/r),n=n%r*1e7},bc=function(t){for(var r=6,e="";--r>=0;)if(""!==e||0===r||0!==t[r]){var n=lc(t[r]);e=""===e?n:e+vc("0",7-n.length)+n}return e};oc({target:"Number",proto:!0,forced:fc((function(){return"0.000"!==dc(8e-5,3)||"1"!==dc(.9,0)||"1.25"!==dc(1.255,2)||"1000000000000000128"!==dc(0xde0b6b3a7640080,0)}))||!fc((function(){dc({})}))},{toFixed:function(t){var r,e,n,o,i=ac(this),u=uc(t),a=[0,0,0,0,0,0],c="",f="0";if(u<0||u>20)throw new sc("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return lc(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*gc(2,69,1))-69)<0?i*gc(2,-r,1):i/gc(2,r,1),e*=4503599627370496,(r=52-r)>0){for(yc(a,0,e),n=u;n>=7;)yc(a,1e7,0),n-=7;for(yc(a,gc(10,n,1),0),n=r-1;n>=23;)mc(a,1<<23),n-=23;mc(a,1<0?c+((o=f.length)<=u?"0."+vc("0",u-o)+f:pc(f,0,o-u)+"."+pc(f,o-u)):c+f}});var wc=Ci.filter;ro({target:"Array",proto:!0,forced:!Li("filter")},{filter:function(t){return wc(this,t,arguments.length>1?arguments[1]:void 0)}});var Sc=ni,xc=Ko?{}.toString:function(){return"[object "+Sc(this)+"]"};Ko||Xe(Object.prototype,"toString",xc,{unsafe:!0});var Ec=q,Oc=TypeError,jc=function(t,r){if(Ec(r,t))return t;throw new Oc("Incorrect invocation")},Ic=He,Tc=Rr,Rc=function(t,r,e){return e.get&&Ic(e.get,r,{getter:!0}),e.set&&Ic(e.set,r,{setter:!0}),Tc.f(t,r,e)},Ac=hr,Pc=Rr,kc=g,Cc=function(t,r,e){var n=Ac(r);n in t?Pc.f(t,n,kc(0,e)):t[n]=e},Nc=ro,Fc=e,Mc=jc,Lc=Nr,Dc=$,_c=Qi,Uc=Rc,zc=Cc,$c=o,Gc=$t,Wc=au.IteratorPrototype,Bc=i,Vc="constructor",Hc="Iterator",Yc=rr("toStringTag"),qc=TypeError,Jc=Fc[Hc],Kc=!Dc(Jc)||Jc.prototype!==Wc||!$c((function(){Jc({})})),Xc=function(){if(Mc(this,Wc),_c(this)===Wc)throw new qc("Abstract class Iterator not directly constructable")},Qc=function(t,r){Bc?Uc(Wc,t,{configurable:!0,get:function(){return r},set:function(r){if(Lc(this),this===Wc)throw new qc("You can't redefine this property");Gc(this,t)?this[t]=r:zc(this,t,r)}}):Wc[t]=r};Gc(Wc,Yc)||Qc(Yc,Hc),!Kc&&Gc(Wc,Vc)&&Wc[Vc]!==Object||Qc(Vc,Xc),Xc.prototype=Wc,Nc({global:!0,constructor:!0,forced:Kc},{Iterator:Xc});var Zc=ro,tf=f,rf=mt,ef=Nr,nf=$i,of=Cu,uf=Au((function(){for(var t,r,e=this.iterator,n=this.predicate,o=this.next;;){if(t=ef(tf(o,e)),this.done=!!t.done)return;if(r=t.value,of(e,n,[r,this.counter++],!0))return r}}));Zc({target:"Iterator",proto:!0,real:!0,forced:false},{filter:function(t){return ef(this),rf(t),new uf(nf(this),{predicate:t})}});var af=Nr,cf=function(){var t=af(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},ff=f,sf=$t,lf=q,hf=cf,vf=RegExp.prototype,pf=function(t){var r=t.flags;return void 0!==r||"flags"in vf||sf(t,"flags")||!lf(vf,t)?r:ff(hf,t)},df=te.PROPER,gf=Xe,yf=Nr,mf=na,bf=o,wf=pf,Sf="toString",xf=RegExp.prototype[Sf],Ef=bf((function(){return"/a/b"!==xf.call({source:"a",flags:"b"})})),Of=df&&xf.name!==Sf;(Ef||Of)&&gf(RegExp.prototype,Sf,(function(){var t=yf(this);return"/"+mf(t.source)+"/"+mf(wf(t))}),{unsafe:!0});var jf=i,If=te.EXISTS,Tf=S,Rf=Rc,Af=Function.prototype,Pf=Tf(Af.toString),kf=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Cf=Tf(kf.exec);jf&&!If&&Rf(Af,"name",{configurable:!0,get:function(){try{return Cf(kf,Pf(this))[1]}catch(t){return""}}});var Nf=TypeError,Ff=function(t){if(t>9007199254740991)throw Nf("Maximum allowed index exceeded");return t},Mf=ro,Lf=o,Df=qo,_f=B,Uf=_t,zf=hn,$f=Ff,Gf=Cc,Wf=Oi,Bf=Li,Vf=et,Hf=rr("isConcatSpreadable"),Yf=Vf>=51||!Lf((function(){var t=[];return t[Hf]=!1,t.concat()[0]!==t})),qf=function(t){if(!_f(t))return!1;var r=t[Hf];return void 0!==r?!!r:Df(t)};Mf({target:"Array",proto:!0,arity:1,forced:!Yf||!Bf("concat")},{concat:function(t){var r,e,n,o,i,u=Uf(this),a=Wf(u,0),c=0;for(r=-1,n=arguments.length;rf-n+e;i--)ls(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]:ls(c,a);for(i=0;i=r.length)return t.target=void 0,Zs(void 0,!0);switch(t.kind){case"keys":return Zs(e,!1);case"values":return Zs(r[e],!1)}return Zs([e,r[e]],!1)}),"values"),il=Js.Arguments=Js.Array;if(qs("keys"),qs("values"),qs("entries"),tl&&"values"!==il.name)try{Xs(il,"name",{value:"values"})}catch(oP){}var ul={exports:{}},al={},cl=an,fl=hn,sl=Cc,ll=Array,hl=Math.max,vl=j,pl=D,dl=Qe.f,gl=function(t,r,e){for(var n=fl(t),o=cl(r,n),i=cl(void 0===e?n:e,n),u=ll(hl(i-o,0)),a=0;oi;i++)if((a=y(t[i]))&&lh(yh,a))return a;return new gh(!1)}n=hh(t,o)}for(c=h?t.next:n.next;!(f=uh(c,n)).done;){try{a=y(f.value)}catch(oP){ph(n,"throw",oP)}if("object"==typeof a&&a&&lh(yh,a))return a}return new gh(!1)},bh=rr("iterator"),wh=!1;try{var Sh=0,xh={next:function(){return{done:!!Sh++}},return:function(){wh=!0}};xh[bh]=function(){return this},Array.from(xh,(function(){throw 2}))}catch(oP){}var Eh=function(t,r){try{if(!r&&!wh)return!1}catch(oP){return!1}var e=!1;try{var n={};n[bh]=function(){return{next:function(){return{done:e=!0}}}},t(n)}catch(oP){}return e},Oh=ro,jh=e,Ih=S,Th=Yn,Rh=Xe,Ah=$l,Ph=mh,kh=jc,Ch=$,Nh=k,Fh=B,Mh=o,Lh=Eh,Dh=bs,_h=Zu,Uh=function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=jh[t],a=u&&u.prototype,c=u,f={},s=function(t){var r=Ih(a[t]);Rh(a,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!Fh(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!Fh(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!Fh(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(Th(t,!Ch(u)||!(o||a.forEach&&!Mh((function(){(new u).entries().next()})))))c=e.getConstructor(r,t,n,i),Ah.enable();else if(Th(t,!0)){var l=new c,h=l[i](o?{}:-0,1)!==l,v=Mh((function(){l.has(1)})),p=Lh((function(t){new u(t)})),d=!o&&Mh((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((c=r((function(t,r){kh(t,a);var e=_h(new u,t,c);return Nh(r)||Ph(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}return f[t]=c,Oh({global:!0,constructor:!0,forced:c!==u},f),Dh(c,t),o||e.setStrong(c,t,n),c},zh=Y,$h=Rc,Gh=i,Wh=rr("species"),Bh=function(t){var r=zh(t);Gh&&r&&!r[Wh]&&$h(r,Wh,{configurable:!0,get:function(){return this}})},Vh=ko,Hh=Rc,Yh=Wi,qh=Ho,Jh=jc,Kh=k,Xh=mh,Qh=Hs,Zh=cu,tv=Bh,rv=i,ev=$l.fastKey,nv=Re.set,ov=Re.getterFor,iv={getConstructor:function(t,r,e,n){var o=t((function(t,o){Jh(t,i),nv(t,{type:r,index:Vh(null),first:void 0,last:void 0,size:0}),rv||(t.size=0),Kh(o)||Xh(o,t[n],{that:t,AS_ENTRIES:e})})),i=o.prototype,u=ov(r),a=function(t,r,e){var n,o,i=u(t),a=c(t,r);return a?a.value=e:(i.last=a={index:o=ev(r,!0),key:r,value:e,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),rv?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},c=function(t,r){var e,n=u(t),o=ev(r);if("F"!==o)return n.index[o];for(e=n.first;e;e=e.next)if(e.key===r)return e};return Yh(i,{clear:function(){for(var t=u(this),r=t.index,e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=void 0),delete r[e.index],e=e.next;t.first=t.last=void 0,rv?t.size=0:this.size=0},delete:function(t){var r=this,e=u(r),n=c(r,t);if(n){var o=n.next,i=n.previous;delete e.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),e.first===n&&(e.first=o),e.last===n&&(e.last=i),rv?e.size--:r.size--}return!!n},forEach:function(t){for(var r,e=u(this),n=qh(t,arguments.length>1?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)}}),Yh(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)}}),rv&&Hh(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=ov(r),i=ov(n);Qh(t,r,(function(t,r){nv(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)?Zh("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,Zh(void 0,!0))}),e?"entries":"values",!e,!0),tv(r)}};Uh("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),iv);var uv=S,av=en,cv=na,fv=F,sv=uv("".charAt),lv=uv("".charCodeAt),hv=uv("".slice),vv=function(t){return function(r,e){var n,o,i=cv(fv(r)),u=av(e),a=i.length;return u<0||u>=a?t?"":void 0:(n=lv(i,u))<55296||n>56319||u+1===a||(o=lv(i,u+1))<56320||o>57343?t?sv(i,u):n:t?hv(i,u,u+2):o-56320+(n-55296<<10)+65536}},pv={codeAt:vv(!1),charAt:vv(!0)},dv=pv.charAt,gv=na,yv=Re,mv=Hs,bv=cu,wv="String Iterator",Sv=yv.set,xv=yv.getterFor(wv);mv(String,"String",(function(t){Sv(this,{type:wv,string:gv(t),index:0})}),(function(){var t,r=xv(this),e=r.string,n=r.index;return n>=e.length?bv(void 0,!0):(t=dv(e,n),r.index+=t.length,bv(t,!1))}));var Ev={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},Ov=gr("span").classList,jv=Ov&&Ov.constructor&&Ov.constructor.prototype,Iv=jv===Object.prototype?void 0:jv,Tv=e,Rv=Ev,Av=Iv,Pv=ol,kv=Yr,Cv=bs,Nv=rr("iterator"),Fv=Pv.values,Mv=function(t,r){if(t){if(t[Nv]!==Fv)try{kv(t,Nv,Fv)}catch(oP){t[Nv]=Fv}if(Cv(t,r,!0),Rv[r])for(var e in Pv)if(t[e]!==Pv[e])try{kv(t,e,Pv[e])}catch(oP){t[e]=Pv[e]}}};for(var Lv in Rv)Mv(Tv[Lv]&&Tv[Lv].prototype,Lv);Mv(Av,"DOMTokenList");var Dv=_t,_v=hn,Uv=Zf,zv=Ff;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(oP){return oP instanceof TypeError}}()},{push:function(t){var r=Dv(this),e=_v(r),n=arguments.length;zv(e+n);for(var o=0;oi&&yp(o,arguments[i]),o}));l.prototype=f,"Error"!==a?hp?hp(l,s):vp(l,s,{name:!0}):bp&&o in c&&(pp(l,c,o),pp(l,c,"prepareStackTrace")),vp(l,c);try{f.name!==a&&sp(f,"name",a),f.constructor=l}catch(oP){}return l}},Ep="WebAssembly",Op=e[Ep],jp=7!==new Error("e",{cause:7}).cause,Ip=function(t,r){var e={};e[t]=xp(t,r,jp),wp({global:!0,constructor:!0,arity:1,forced:jp},e)},Tp=function(t,r){if(Op&&Op[t]){var e={};e[t]=xp(Ep+"."+t,r,jp),wp({target:Ep,stat:!0,constructor:!0,arity:1,forced:jp},e)}};Ip("Error",(function(t){return function(r){return Sp(t,this,arguments)}})),Ip("EvalError",(function(t){return function(r){return Sp(t,this,arguments)}})),Ip("RangeError",(function(t){return function(r){return Sp(t,this,arguments)}})),Ip("ReferenceError",(function(t){return function(r){return Sp(t,this,arguments)}})),Ip("SyntaxError",(function(t){return function(r){return Sp(t,this,arguments)}})),Ip("TypeError",(function(t){return function(r){return Sp(t,this,arguments)}})),Ip("URIError",(function(t){return function(r){return Sp(t,this,arguments)}})),Tp("CompileError",(function(t){return function(r){return Sp(t,this,arguments)}})),Tp("LinkError",(function(t){return function(r){return Sp(t,this,arguments)}})),Tp("RuntimeError",(function(t){return function(r){return Sp(t,this,arguments)}}));var Rp=mh,Ap=mt,Pp=Nr,kp=$i;ro({target:"Iterator",proto:!0,real:!0},{forEach:function(t){Pp(this),Ap(t);var r=kp(this),e=0;Rp(r,(function(r){t(r,e++)}),{IS_RECORD:!0})}});var Cp=o,Np=function(t,r){var e=[][t];return!!e&&Cp((function(){e.call(null,r||function(){return 1},1)}))},Fp=Ci.forEach,Mp=Np("forEach")?[].forEach:function(t){return Fp(this,t,arguments.length>1?arguments[1]:void 0)},Lp=e,Dp=Ev,_p=Iv,Up=Mp,zp=Yr,$p=function(t){if(t&&t.forEach!==Up)try{zp(t,"forEach",Up)}catch(oP){t.forEach=Up}};for(var Gp in Dp)Dp[Gp]&&$p(Lp[Gp]&&Lp[Gp].prototype);$p(_p);var Wp,Bp,Vp,Hp,Yp="process"===j(e.process),qp=yi,Jp=pt,Kp=TypeError,Xp=function(t){if(qp(t))return t;throw new Kp(Jp(t)+" is not a constructor")},Qp=Nr,Zp=Xp,td=k,rd=rr("species"),ed=function(t,r){var e,n=Qp(t).constructor;return void 0===n||td(e=Qp(n)[rd])?r:Zp(e)},nd=S([].slice),od=TypeError,id=/(?:ipad|iphone|ipod).*applewebkit/i.test(J),ud=e,ad=Vv,cd=Ho,fd=$,sd=$t,ld=o,hd=yo,vd=nd,pd=gr,dd=function(t,r){if(t1?arguments[1]:void 0)}}),tm(rm);var nm=mh,om=mt,im=Nr,um=$i;ro({target:"Iterator",proto:!0,real:!0},{find:function(t){im(this),om(t);var r=um(this),e=0;return nm(r,(function(r,n){if(t(r,e++))return n(r)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}});var am=qo,cm=$,fm=j,sm=na,lm=S([].push),hm=ro,vm=Y,pm=Vv,dm=f,gm=S,ym=o,mm=$,bm=ht,wm=nd,Sm=function(t){if(cm(t))return t;if(am(t)){for(var r=t.length,e=[],n=0;nb)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$
c")})),Xm=f,Qm=S,Zm=na,tb=cf,rb=Bm,eb=ko,nb=Re.get,ob=Ym,ib=Km,ub=Mt("native-string-replace",String.prototype.replace),ab=RegExp.prototype.exec,cb=ab,fb=Qm("".charAt),sb=Qm("".indexOf),lb=Qm("".replace),hb=Qm("".slice),vb=function(){var t=/a/,r=/b*/g;return Xm(ab,t,"a"),Xm(ab,r,"a"),0!==t.lastIndex||0!==r.lastIndex}(),pb=rb.BROKEN_CARET,db=void 0!==/()??/.exec("")[1];(vb||db||pb||ob||ib)&&(cb=function(t){var r,e,n,o,i,u,a,c=this,f=nb(c),s=Zm(t),l=f.raw;if(l)return l.lastIndex=c.lastIndex,r=Xm(cb,l,s),c.lastIndex=l.lastIndex,r;var h=f.groups,v=pb&&c.sticky,p=Xm(tb,c),d=c.source,g=0,y=s;if(v&&(p=lb(p,"y",""),-1===sb(p,"g")&&(p+="g"),y=hb(s,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==fb(s,c.lastIndex-1))&&(d="(?: "+d+")",y=" "+y,g++),e=new RegExp("^(?:"+d+")",p)),db&&(e=new RegExp("^"+d+"$(?!\\s)",p)),vb&&(n=c.lastIndex),o=Xm(ab,v?e:c,y),v?o?(o.input=hb(o.input,g),o[0]=hb(o[0],g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:vb&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),db&&o&&o.length>1&&Xm(ub,o[0],e,(function(){for(i=1;i]*>)/g,Fb=/\$([$&'`]|\d{1,2})/g,Mb=function(t,r,e,n,o,i){var u=e+t.length,a=n.length,c=Fb;return void 0!==o&&(o=Rb(o),c=Nb),kb(i,c,(function(i,c){var f;switch(Pb(c,0)){case"$":return"$";case"&":return t;case"`":return Cb(r,0,e);case"'":return Cb(r,u);case"<":f=o[Cb(c,1,-1)];break;default:var s=+c;if(0===s)return i;if(s>a){var l=Ab(s/10);return 0===l?i:l<=a?void 0===n[l-1]?Pb(c,1):n[l-1]+Pb(c,1):i}f=n[s-1]}return void 0===f?"":f}))},Lb=f,Db=Nr,_b=$,Ub=j,zb=gb,$b=TypeError,Gb=function(t,r){var e=t.exec;if(_b(e)){var n=Lb(e,t,r);return null!==n&&Db(n),n}if("RegExp"===Ub(t))return Lb(zb,t,r);throw new $b("RegExp#exec called on incompatible receiver")},Wb=Vv,Bb=f,Vb=S,Hb=function(t,r,e,n){var o=Sb(t),i=!wb((function(){var r={};return r[o]=function(){return 7},7!==""[t](r)})),u=i&&!wb((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[Eb]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return r=!0,null},e[o](""),!r}));if(!i||!u||e){var a=yb(/./[o]),c=r(o,""[t],(function(t,r,e,n,o){var u=yb(t),c=r.exec;return c===bb||c===Ob.exec?i&&!o?{done:!0,value:a(r,e,n)}:{done:!0,value:u(e,r,n)}:{done:!1}}));mb(String.prototype,t,c[0]),mb(Ob,o,c[1])}n&&xb(Ob[o],"sham",!0)},Yb=o,qb=Nr,Jb=$,Kb=k,Xb=en,Qb=sn,Zb=na,tw=F,rw=Ib,ew=St,nw=Mb,ow=Gb,iw=rr("replace"),uw=Math.max,aw=Math.min,cw=Vb([].concat),fw=Vb([].push),sw=Vb("".indexOf),lw=Vb("".slice),hw="$0"==="a".replace(/./,"$0"),vw=!!/./[iw]&&""===/./[iw]("a","$0"),pw=!Yb((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}));Hb("replace",(function(t,r,e){var n=vw?"$":"$0";return[function(t,e){var n=tw(this),o=Kb(t)?void 0:ew(t,iw);return o?Bb(o,t,n,e):Bb(r,Zb(n),t,e)},function(t,o){var i=qb(this),u=Zb(t);if("string"==typeof o&&-1===sw(o,n)&&-1===sw(o,"$<")){var a=e(r,i,u,o);if(a.done)return a.value}var c=Jb(o);c||(o=Zb(o));var f,s=i.global;s&&(f=i.unicode,i.lastIndex=0);for(var l,h=[];null!==(l=ow(i,u))&&(fw(h,l),s);){""===Zb(l[0])&&(i.lastIndex=rw(u,Qb(i.lastIndex),f))}for(var v,p="",d=0,g=0;g=d&&(p+=lw(u,d,b)+y,d=b+m.length)}return p+lw(u,d)}]}),!pw||!hw||vw);var dw=B,gw=j,yw=rr("match"),mw=function(t){var r;return dw(t)&&(void 0!==(r=t[yw])?!!r:"RegExp"===gw(t))},bw=ro,ww=f,Sw=S,xw=F,Ew=$,Ow=k,jw=mw,Iw=na,Tw=St,Rw=pf,Aw=Mb,Pw=rr("replace"),kw=TypeError,Cw=Sw("".indexOf);Sw("".replace);var Nw=Sw("".slice),Fw=Math.max,Mw=function(t,r,e){return e>t.length?-1:""===r?e:Cw(t,r,e)};bw({target:"String",proto:!0},{replaceAll:function(t,r){var e,n,o,i,u,a,c,f,s=xw(this),l=0,h=0,v="";if(!Ow(t)){if(jw(t)&&(e=Iw(xw(Rw(t))),!~Cw(e,"g")))throw new kw("`.replaceAll` does not allow non-global regexes");if(n=Tw(t,Pw))return ww(n,t,s,r)}for(o=Iw(s),i=Iw(t),(u=Ew(r))||(r=Iw(r)),a=i.length,c=Fw(1,a),l=Mw(o,i,0);-1!==l;)f=u?Iw(r(i,l,o)):Aw(i,o,l,[],void 0,r),v+=Nw(o,h,l)+f,h=l+a,l=Mw(o,i,l+c);return h1?arguments[1]:void 0)}}),LS(DS);var US=hn,zS=Ho,$S=P,GS=_t,WS=hr,BS=hn,VS=ko,HS=function(t,r,e){for(var n=0,o=arguments.length>2?e:US(r),i=new t(o);o>n;)i[n]=r[n++];return i},YS=Array,qS=S([].push),JS=function(t,r,e,n){for(var o,i,u,a=GS(t),c=$S(a),f=zS(r,e),s=VS(null),l=BS(c),h=0;l>h;h++)u=c[h],(i=WS(f(u,h,a)))in s?qS(s[i],u):s[i]=[u];if(n&&(o=n(a))!==YS)for(i in s)s[i]=HS(o,s[i]);return s},KS=Do;ro({target:"Array",proto:!0},{group:function(t){return JS(this,t,arguments.length>1?arguments[1]:void 0)}}),KS("group");var XS=e;ro({global:!0,forced:XS.globalThis!==XS},{globalThis:XS});var QS=ro,ZS=e,tx=Rc,rx=i,ex=TypeError,nx=Object.defineProperty,ox=ZS.self!==ZS;try{if(rx){var ix=Object.getOwnPropertyDescriptor(ZS,"self");!ox&&ix&&ix.get&&ix.enumerable||tx(ZS,"self",{get:function(){return ZS},set:function(t){if(this!==ZS)throw new ex("Illegal invocation");nx(ZS,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else QS({global:!0,simple:!0,forced:ox},{self:ZS})}catch(oP){}var ux=i,ax=e,cx=S,fx=Yn,sx=Zu,lx=Yr,hx=ko,vx=Qe.f,px=q,dx=mw,gx=na,yx=pf,mx=Bm,bx=Yv,wx=Xe,Sx=o,xx=$t,Ex=Re.enforce,Ox=Bh,jx=Ym,Ix=Km,Tx=rr("match"),Rx=ax.RegExp,Ax=Rx.prototype,Px=ax.SyntaxError,kx=cx(Ax.exec),Cx=cx("".charAt),Nx=cx("".replace),Fx=cx("".indexOf),Mx=cx("".slice),Lx=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Dx=/a/g,_x=/a/g,Ux=new Rx(Dx)!==Dx,zx=mx.MISSED_STICKY,$x=mx.UNSUPPORTED_Y,Gx=ux&&(!Ux||zx||jx||Ix||Sx((function(){return _x[Tx]=!1,Rx(Dx)!==Dx||Rx(_x)===_x||"/a/i"!==String(Rx(Dx,"i"))})));if(fx("RegExp",Gx)){for(var Wx=function(t,r){var e,n,o,i,u,a,c=px(Ax,this),f=dx(t),s=void 0===r,l=[],h=t;if(!c&&f&&s&&t.constructor===Wx)return t;if((f||px(Ax,t))&&(t=t.source,s&&(r=yx(h))),t=void 0===t?"":gx(t),r=void 0===r?"":gx(r),h=t,jx&&"dotAll"in Dx&&(n=!!r&&Fx(r,"s")>-1)&&(r=Nx(r,/s/g,"")),e=r,zx&&"sticky"in Dx&&(o=!!r&&Fx(r,"y")>-1)&&$x&&(r=Nx(r,/y/g,"")),Ix&&(i=function(t){for(var r,e=t.length,n=0,o="",i=[],u=hx(null),a=!1,c=!1,f=0,s="";n<=e;n++){if("\\"===(r=Cx(t,n)))r+=Cx(t,++n);else if("]"===r)a=!1;else if(!a)switch(!0){case"["===r:a=!0;break;case"("===r:kx(Lx,Mx(t,n+1))&&(n+=2,c=!0),o+=r,f++;continue;case">"===r&&c:if(""===s||xx(u,s))throw new Px("Invalid capture group name");u[s]=!0,i[i.length]=[s,f],c=!1,s="";continue}c?s+=r:o+=r}return[o,i]}(t),t=i[0],l=i[1]),u=sx(Rx(t,r),c?this:Ax,Wx),(n||o||l.length)&&(a=Ex(u),n&&(a.dotAll=!0,a.raw=Wx(function(t){for(var r,e=t.length,n=0,o="",i=!1;n<=e;n++)"\\"!==(r=Cx(t,n))?i||"."!==r?("["===r?i=!0:"]"===r&&(i=!1),o+=r):o+="[\\s\\S]":o+=r+Cx(t,++n);return o}(t),e)),o&&(a.sticky=!0),l.length&&(a.groups=l)),t!==h)try{lx(u,"source",""===h?"(?:)":h)}catch(oP){}return u},Bx=vx(Rx),Vx=0;Bx.length>Vx;)bx(Wx,Rx,Bx[Vx++]);Ax.constructor=Wx,Wx.prototype=Ax,wx(ax,"RegExp",Wx,{constructor:!0})}Ox("RegExp");var Hx=i,Yx=Ym,qx=j,Jx=Rc,Kx=Re.get,Xx=RegExp.prototype,Qx=TypeError;Hx&&Yx&&Jx(Xx,"dotAll",{configurable:!0,get:function(){if(this!==Xx){if("RegExp"===qx(this))return!!Kx(this).dotAll;throw new Qx("Incompatible receiver, RegExp required")}}});var Zx=i,tE=Bm.MISSED_STICKY,rE=j,eE=Rc,nE=Re.get,oE=RegExp.prototype,iE=TypeError;Zx&&tE&&eE(oE,"sticky",{configurable:!0,get:function(){if(this!==oE){if("RegExp"===rE(this))return!!nE(this).sticky;throw new iE("Incompatible receiver, RegExp required")}}});var uE,aE,cE=ro,fE=f,sE=$,lE=Nr,hE=na,vE=(uE=!1,(aE=/[ac]/).exec=function(){return uE=!0,/./.exec.apply(this,arguments)},!0===aE.test("abc")&&uE),pE=/./.test;cE({target:"RegExp",proto:!0,forced:!vE},{test:function(t){var r=lE(this),e=hE(t),n=r.exec;if(!sE(n))return fE(pE,r,e);var o=fE(n,r,e);return null!==o&&(lE(o),!0)}});var dE=ro,gE=qo,yE=yi,mE=B,bE=an,wE=hn,SE=D,xE=Cc,EE=rr,OE=nd,jE=Li("slice"),IE=EE("species"),TE=Array,RE=Math.max;dE({target:"Array",proto:!0,forced:!jE},{slice:function(t,r){var e,n,o,i=SE(this),u=wE(i),a=bE(t,u),c=bE(void 0===r?u:r,u);if(gE(i)&&(e=i.constructor,(yE(e)&&(e===TE||gE(e.prototype))||mE(e)&&null===(e=e[IE]))&&(e=void 0),e===TE||void 0===e))return OE(i,a,c);for(n=new(void 0===e?TE:e)(RE(c-a,0)),o=0;a1?arguments[1]:void 0)}});var zE=ro,$E=f,GE=Go,WE=Is,BE=cu,VE=F,HE=sn,YE=na,qE=Nr,JE=k,KE=mw,XE=pf,QE=St,ZE=Xe,tO=o,rO=ed,eO=Ib,nO=Gb,oO=Re,iO=rr("matchAll"),uO="RegExp String",aO=uO+" Iterator",cO=oO.set,fO=oO.getterFor(aO),sO=RegExp.prototype,lO=TypeError,hO=GE("".indexOf),vO=GE("".matchAll),pO=!!vO&&!tO((function(){vO("a",/./)})),dO=WE((function(t,r,e,n){cO(this,{type:aO,regexp:t,string:r,global:e,unicode:n,done:!1})}),uO,(function(){var t=fO(this);if(t.done)return BE(void 0,!0);var r=t.regexp,e=t.string,n=nO(r,e);return null===n?(t.done=!0,BE(void 0,!0)):t.global?(""===YE(n[0])&&(r.lastIndex=eO(e,HE(r.lastIndex),t.unicode)),BE(n,!1)):(t.done=!0,BE(n,!1))})),gO=function(t){var r,e,n,o=qE(this),i=YE(t),u=rO(o,RegExp),a=YE(XE(o));return r=new u(u===RegExp?o.source:o,a),e=!!~hO(a,"g"),n=!!~hO(a,"u"),r.lastIndex=HE(o.lastIndex),new dO(r,i,e,n)};zE({target:"String",proto:!0,forced:pO},{matchAll:function(t){var r,e,n,o=VE(this);if(JE(t)){if(pO)return vO(o,t)}else{if(KE(t)&&(r=YE(VE(XE(t))),!~hO(r,"g")))throw new lO("`.matchAll` does not allow non-global regexes");if(pO)return vO(o,t);if(n=QE(t,iO))return $E(n,t,o)}return e=YE(o),new RegExp(t,"g")[iO](e)}}),iO in sO||ZE(sO,iO,gO);var yO=mh,mO=mt,bO=Nr,wO=$i;ro({target:"Iterator",proto:!0,real:!0},{some:function(t){bO(this),mO(t);var r=wO(this),e=0;return yO(r,(function(r,n){if(t(r,e++))return n()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var SO=_t,xO=hn,EO=en,OO=Do;ro({target:"Array",proto:!0},{at:function(t){var r=SO(this),e=xO(r),n=EO(t),o=n>=0?n:e+n;return o<0||o>=e?void 0:r[o]}}),OO("at");var jO=ro,IO=F,TO=en,RO=na,AO=o,PO=S("".charAt);jO({target:"String",proto:!0,forced:AO((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(t){var r=RO(IO(this)),e=r.length,n=TO(t),o=n>=0?n:e+n;return o<0||o>=e?void 0:PO(r,o)}});var kO=i,CO=o,NO=S,FO=Qi,MO=co,LO=D,DO=NO(s.f),_O=NO([].push),UO=kO&&CO((function(){var t=Object.create(null);return t[2]=2,!DO(t,2)})),zO=function(t){return function(r){for(var e,n=LO(r),o=MO(n),i=UO&&null===FO(n),u=o.length,a=0,c=[];u>a;)e=o[a++],kO&&!(i?e in n:DO(n,e))||_O(c,t?[e,n[e]]:n[e]);return c}},$O={entries:zO(!0),values:zO(!1)}.values;ro({target:"Object",stat:!0},{values:function(t){return $O(t)}});var GO=ro,WO=Go,BO=n.f,VO=sn,HO=na,YO=kE,qO=F,JO=NE,KO=WO("".startsWith),XO=WO("".slice),QO=Math.min,ZO=JO("startsWith"),tj=!ZO&&!!function(){var t=BO(String.prototype,"startsWith");return t&&!t.writable}();GO({target:"String",proto:!0,forced:!tj&&!ZO},{startsWith:function(t){var r=HO(qO(this));YO(t);var e=VO(QO(arguments.length>1?arguments[1]:void 0,r.length)),n=HO(t);return KO?KO(r,n,e):XO(r,e,e+n.length)===n}});var rj=mh,ej=mt,nj=Nr,oj=$i,ij=TypeError;ro({target:"Iterator",proto:!0,real:!0},{reduce:function(t){nj(this),ej(t);var r=oj(this),e=arguments.length<2,n=e?void 0:arguments[1],o=0;if(rj(r,(function(r){e?(e=!1,n=r):n=t(n,r,o),o++}),{IS_RECORD:!0}),e)throw new ij("Reduce of empty iterator with no initial value");return n}});var uj=Ho,aj=f,cj=_t,fj=Cu,sj=Vl,lj=yi,hj=hn,vj=Cc,pj=oh,dj=Xl,gj=Array,yj=function(t){var r=cj(t),e=lj(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=uj(o,n>2?arguments[2]:void 0));var u,a,c,f,s,l,h=dj(r),v=0;if(!h||this===gj&&sj(h))for(u=hj(r),a=e?new this(u):gj(u);u>v;v++)l=i?o(r[v],v):r[v],vj(a,v,l);else for(s=(f=pj(r,h)).next,a=e?new this:[];!(c=aj(s,f)).done;v++)l=i?fj(f,o,[c.value,v],!0):c.value,vj(a,v,l);return a.length=v,a};ro({target:"Array",stat:!0,forced:!Eh((function(t){Array.from(t)}))},{from:yj}),Uh("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),iv);var mj=S,bj=Set.prototype,wj={Set:Set,add:mj(bj.add),has:mj(bj.has),remove:mj(bj.delete),proto:bj},Sj=wj.has,xj=function(t){return Sj(t),t},Ej=f,Oj=function(t,r,e){for(var n,o,i=e?t:t.iterator,u=t.next;!(n=Ej(u,i)).done;)if(void 0!==(o=r(n.value)))return o},jj=S,Ij=Oj,Tj=wj.Set,Rj=wj.proto,Aj=jj(Rj.forEach),Pj=jj(Rj.keys),kj=Pj(new Tj).next,Cj=function(t,r,e){return e?Ij({iterator:Pj(t),next:kj},r):Aj(t,r)},Nj=Cj,Fj=wj.Set,Mj=wj.add,Lj=function(t){var r=new Fj;return Nj(t,(function(t){Mj(r,t)})),r},Dj=Gu(wj.proto,"size","get")||function(t){return t.size},_j=mt,Uj=Nr,zj=f,$j=en,Gj=$i,Wj="Invalid size",Bj=RangeError,Vj=TypeError,Hj=Math.max,Yj=function(t,r,e,n){this.set=t,this.size=r,this.has=e,this.keys=n};Yj.prototype={getIterator:function(){return Gj(Uj(zj(this.keys,this.set)))},includes:function(t){return zj(this.has,this.set,t)}};var qj=function(t){Uj(t);var r=+t.size;if(r!=r)throw new Vj(Wj);var e=$j(r);if(e<0)throw new Bj(Wj);return new Yj(t,Hj(e,0),_j(t.has),_j(t.keys))},Jj=xj,Kj=Lj,Xj=Dj,Qj=qj,Zj=Cj,tI=Oj,rI=wj.has,eI=wj.remove,nI=Y,oI=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},iI=function(t){var r=nI("Set");try{(new r)[t](oI(0));try{return(new r)[t](oI(-1)),!1}catch(e){return!0}}catch(oP){return!1}},uI=function(t){var r=Jj(this),e=Qj(t),n=Kj(r);return Xj(r)<=e.size?Zj(r,(function(t){e.includes(t)&&eI(n,t)})):tI(e.getIterator(),(function(t){rI(r,t)&&eI(n,t)})),n};ro({target:"Set",proto:!0,real:!0,forced:!iI("difference")},{difference:uI});var aI=xj,cI=Dj,fI=qj,sI=Cj,lI=Oj,hI=wj.Set,vI=wj.add,pI=wj.has,dI=o,gI=function(t){var r=aI(this),e=fI(t),n=new hI;return cI(r)>e.size?lI(e.getIterator(),(function(t){pI(r,t)&&vI(n,t)})):sI(r,(function(t){e.includes(t)&&vI(n,t)})),n};ro({target:"Set",proto:!0,real:!0,forced:!iI("intersection")||dI((function(){return"3,2"!==Array.from(new Set([1,2,3]).intersection(new Set([3,2])))}))},{intersection:gI});var yI=xj,mI=wj.has,bI=Dj,wI=qj,SI=Cj,xI=Oj,EI=hu,OI=function(t){var r=yI(this),e=wI(t);if(bI(r)<=e.size)return!1!==SI(r,(function(t){if(e.includes(t))return!1}),!0);var n=e.getIterator();return!1!==xI(n,(function(t){if(mI(r,t))return EI(n,"normal",!1)}))};ro({target:"Set",proto:!0,real:!0,forced:!iI("isDisjointFrom")},{isDisjointFrom:OI});var jI=xj,II=Dj,TI=Cj,RI=qj,AI=function(t){var r=jI(this),e=RI(t);return!(II(r)>e.size)&&!1!==TI(r,(function(t){if(!e.includes(t))return!1}),!0)};ro({target:"Set",proto:!0,real:!0,forced:!iI("isSubsetOf")},{isSubsetOf:AI});var PI=xj,kI=wj.has,CI=Dj,NI=qj,FI=Oj,MI=hu,LI=function(t){var r=PI(this),e=NI(t);if(CI(r)a;)void 0!==(e=o(n,r=i[a++]))&&mA(u,r,e);return u}}),nT("iterator"),nT("asyncIterator");var bA=Y,wA=bs;nT("toStringTag"),wA(bA("Symbol"),"Symbol"),bs(e.JSON,"JSON",!0),bs(Math,"Math",!0);var SA=_t,xA=Qi,EA=Bi;ro({target:"Object",stat:!0,forced:o((function(){xA(1)})),sham:!EA},{getPrototypeOf:function(t){return xA(SA(t))}});var OA=e,jA=bs;ro({global:!0},{Reflect:{}}),jA(OA.Reflect,"Reflect",!0);var IA=S,TA=mt,RA=B,AA=$t,PA=nd,kA=u,CA=Function,NA=IA([].concat),FA=IA([].join),MA={},LA=kA?CA.bind:function(t){var r=TA(this),e=r.prototype,n=PA(arguments,1),o=function(){var e=NA(n,PA(arguments));return this instanceof o?function(t,r,e){if(!AA(MA,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 x=(g=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==x&&(g=g.slice(0,x+1))}var E,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){E=[t,r,e]},T.getRegister=function(){var t=E;return E=void 0,t};var R=Object.freeze(Object.create(null));w.System=new s;var A,P,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){M=t.filename,L=t.error}));var F=location.origin}T.createScript=function(t){var r=document.createElement("script");r.async=!0,t.indexOf(F+"/")&&(r.crossOrigin="anonymous");var e=C.integrity[t];return e&&(r.integrity=e),r.src=t,r};var M,L,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){A=t;var o=this;P=setTimeout((function(){D[n.src]=[t,r],o.import(n.src)}))}}else A=void 0;return _.call(this,t,r)},T.instantiate=function(t,e){var n=D[t];if(n)return delete D[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),M===t)u(L);else{var r=o.getRegister(t);r&&r[0]===A&&clearTimeout(P),i(r)}})),document.head.appendChild(n)}))}))},T.shouldFetch=function(){return!1},"undefined"!=typeof fetch&&(T.fetch=fetch);var U=T.instantiate,z=/^(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||!z.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 $=T.instantiate;T.instantiate=function(t,r,e){var n=C.depcache[t];if(n)for(var o=0;odiv{width:100%;height:100%}.ibiz-screen-dashboard .ibiz-portlet-layout__caption-text{color:var(--ibiz-screen-dashboard-text-color)}.ibiz-screen-dashboard .ibiz-portlet-layout{--ibiz-portlet-layout-header-bg-color: getCssVar("screen-dashboard", "bg-color");--ibiz-portlet-layout-content-bg-color: getCssVar("screen-dashboard", "bg-color")}.ibiz-screen-dashboard .ibiz-view{--ibiz-view-bg-color: getCssVar("screen-dashboard", "bg-color")}.ibiz-screen-dashboard .ibiz-no-data,.ibiz-screen-dashboard .el-empty.is-no-data{display:none}.ibiz-screen-dashboard .ibiz-control-grid{--ibiz-control-grid-row-bg-color: getCssVar("screen-dashboard", "bg-color");--ibiz-control-grid-row-bg-color-2: getCssVar("screen-dashboard", "bg-color");--ibiz-control-grid-row-hover-color: getCssVar("screen-dashboard", "bg-color");--ibiz-control-grid-header-bg-color: getCssVar("screen-dashboard", "bg-color")}.ibiz-screen-dashboard .ibiz-control-grid .el-table{--el-table-header-bg-color: getCssVar("screen-dashboard", "bg-color");--el-table-current-row-bg-color: getCssVar("screen-dashboard", "bg-color")}.ibiz-screen-portlet{position:relative;width:100%;height:100%}.ibiz-screen-portlet.is-full-icon .ibiz-portlet-layout-header{position:relative}.ibiz-screen-portlet.is-full-icon .ibiz-portlet-layout-header__left{position:unset}.ibiz-screen-portlet.is-full-icon .ibiz-portlet-layout__caption{max-width:100%}.ibiz-screen-portlet.is-full-icon .ibiz-portlet-layout__caption:before{display:none}.ibiz-screen-portlet.is-full-icon .ibiz-portlet-layout__caption-icon{position:absolute;top:0;left:0;z-index:0;width:100%;height:100%}.ibiz-screen-portlet.is-full-icon .ibiz-portlet-layout__caption-text,.ibiz-screen-portlet.is-container{position:relative}.ibiz-screen-portlet.is-container>.ibiz-portlet-layout>.ibiz-portlet-layout-header{display:none}.ibiz-screen-portlet.is-container>.ibiz-icon{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%}.ibiz-screen-portlet.is-container .ibiz-screen-portlet.is-container{z-index:9}.ibiz-screen-portlet__body-image{position:absolute;top:50px;z-index:-1;width:100%;height:calc(100% - 50px)}.ibiz-custom-border__content{position:relative;width:100%;height:100%}.ibiz-custom-border.is-full-border>svg{transform:translateY(50px)}.ibiz-custom-border.is-full-border.is-style-1 .ibiz-custom-border__left-top{transform:translateY(50px)}.ibiz-custom-border.is-full-border.is-style-1 .ibiz-custom-border__right-top{transform:translateY(50px) rotateY(180deg)}.ibiz-custom-border.is-full-border.is-style-1 .ibiz-custom-border__left-bottom{transform:translateY(50px) rotateX(180deg)}.ibiz-custom-border.is-full-border.is-style-1 .ibiz-custom-border__right-bottom{transform:translateY(50px) rotateX(180deg) rotateY(180deg)}.ibiz-custom-border.is-full-border.is-style-10 .ibiz-custom-border__wrapper,.ibiz-custom-border.is-full-border.is-style-10 .ibiz-custom-border__mask{transform:translateY(50px)}.ibiz-custom-border.is-full-border.is-style-11>svg{transform:translateY(0)}.ibiz-custom-border.is-full-border.is-style-11 .ibiz-portlet-layout-header__left{position:absolute;top:12%;left:49%;transform:translate(-50%,-50%)}.ibiz-screen-radio-list{--ibiz-screen-radio-list-group-row-number: 0;--ibiz-screen-radio-list-radio-input-display: none;--ibiz-screen-radio-list-radio-padding: 0 5px;--ibiz-screen-radio-list-radio-border: 1px solid var(--ibiz-screen-dashboard-border-color);--ibiz-screen-radio-list-radio-checked-font-weight: 600;--ibiz-screen-radio-list-radio-label-padding-left: 0}.ibiz-screen-radio-list__text{font-size:var(--ibiz-form-item-font-size);color:var(--ibiz-form-item-text-color)}.ibiz-screen-radio-list .el-radio__input{display:var(--ibiz-screen-radio-list-radio-input-display)}.ibiz-screen-radio-list .el-radio{width:max-content;padding:var(--ibiz-screen-radio-list-radio-padding);text-align:center;background-color:var(--ibiz-screen-dashboard-bg-color);border:var(--ibiz-screen-radio-list-radio-border)}.ibiz-screen-radio-list .el-radio .ibiz-screen-radio-list__text{color:var(--ibiz-screen-dashboard-primary-active-color)}.ibiz-screen-radio-list .el-radio.is-checked{background-color:var(--ibiz-screen-dashboard-primary-active-color)}.ibiz-screen-radio-list .el-radio.is-checked .ibiz-screen-radio-list__text{font-weight:var(--ibiz-screen-radio-list-radio-checked-font-weight);color:var(--ibiz-screen-dashboard-text-color)}.ibiz-screen-radio-list .el-radio .el-radio__label{padding-left:var(--ibiz-screen-radio-list-radio-label-padding-left)}.ibiz-screen-radio-list--readonly{font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-readonly-color)}.ibiz-screen-radio-list__button--round-corner{margin-right:var(--ibiz-spacing-base-loose)}.ibiz-screen-radio-list__button--round-corner.el-radio-button.is-active .el-radio-button__inner{color:var(--ibiz-color-primary);background-color:var(--ibiz-color-secondary-light-default);border-color:var(--ibiz-color-secondary-light-default)}.ibiz-screen-radio-list__button--round-corner.el-radio-button.is-active .el-radio-button__original-radio:checked+.el-radio-button__inner{box-shadow:none}.ibiz-screen-radio-list__button--round-corner.el-radio-button .el-radio-button__inner{padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base);background-color:var(--ibiz-color-tertiary-light-hover);border-color:var(--ibiz-color-tertiary-light-hover);border-radius:var(--ibiz-height-control-default)}.ibiz-screen-radio-list__button--round-corner.el-radio-button .el-radio-button__inner:nth-last-child(1){margin:0}.ibiz-screen-radio-list__button--round-corner.el-radio-button.is-disabled.is-active .el-radio-button__inner{border:var(--ibiz-border-thickness-control) solid var(--ibiz-color-disabled-text)}.ibiz-screen-radio-list__button--round-corner.el-radio-button.is-disabled .el-radio-button__inner{color:var(--ibiz-color-disabled-text);background:var(--ibiz-color-disabled-bg);border-color:var(--ibiz-color-disabled-border)}.ibiz-screen-radio-list.is-grid-layout .el-radio-group{display:grid;grid-template-columns:repeat(var(--ibiz-screen-radio-list-group-row-number),1fr)}.ibiz-form-item .ibiz-screen-radio-list.is-show-default{padding:var(--ibiz-form-item-hover-edit-padding)}.ibiz-screen-real-time{--ibiz-screen-real-time-font-size: 18px;--ibiz-screen-real-time-padding-left: 10%;--ibiz-screen-real-time-white-space: nowrap;--ibiz-screen-real-time-height: 100%;--ibiz-screen-real-time-align-items: center;--ibiz-screen-real-time-item-padding-right: 8px;display:flex;align-items:var(--ibiz-screen-real-time-align-items);height:var(--ibiz-screen-real-time-height);padding-left:var(--ibiz-screen-real-time-padding-left);font-size:var(--ibiz-screen-real-time-font-size);color:var(--ibiz-screen-dashboard-primary-text-color);white-space:var(--ibiz-screen-real-time-white-space)}.ibiz-screen-real-time__left-time,.ibiz-screen-real-time__week{padding-right:var(--ibiz-screen-real-time-item-padding-right)}.ibiz-screen-portlet-real-time{--ibiz-screen-portlet-real-time-font-size: 18px;--ibiz-screen-portlet-real-time-padding-left: 10%;--ibiz-screen-portlet-real-time-white-space: nowrap;--ibiz-screen-portlet-real-time-height: 100%;--ibiz-screen-portlet-real-time-align-items: center;--ibiz-screen-portlet-real-time-item-padding-right: 8px;display:flex;align-items:var(--ibiz-screen-portlet-real-time-align-items);height:var(--ibiz-screen-portlet-real-time-height);padding-left:var(--ibiz-screen-portlet-real-time-padding-left);font-size:var(--ibiz-screen-portlet-real-time-font-size);color:var(--ibiz-screen-dashboard-primary-text-color);white-space:var(--ibiz-screen-portlet-real-time-white-space)}.ibiz-screen-portlet-real-time__left-time,.ibiz-screen-portlet-real-time__week{padding-right:var(--ibiz-screen-portlet-real-time-item-padding-right)}.ibiz-screen-panel-container{width:100%;height:100%}.ibiz-carousel-list-content{height:100%;overflow:auto}.ibiz-carousel-list-content.is-allow-roll:hover{animation-play-state:paused!important}@keyframes scroll-left-right{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scroll-top{0%{transform:translateY(0)}to{transform:translateY(-50%)}}.ibiz-carousel-grid-content:hover{animation-play-state:paused!important}.ibiz-control-grid__table.is-allow-roll .el-scrollbar__bar.is-vertical{display:none}.ibiz-control-grid__table.is-allow-roll tbody{flex:none;height:auto;animation:scroll-top var(--speed) linear infinite}.ibiz-control-grid__table.is-allow-roll tbody:hover{animation-play-state:paused!important}.ibiz-percent-pond{display:flex;gap:10px;align-items:end;width:100%}.ibiz-percent-pond__slider{flex:1}.ibiz-percent-pond__slider--line{position:relative;width:100%;height:1px;overflow:visible;background-color:gray;opacity:.6}.ibiz-percent-pond__slider--line:before{position:absolute;top:-2px;left:0;width:4px;height:4px;content:"";background-color:var(--ibiz-screen-dashboard-primary-color)}.ibiz-percent-pond__slider--line:after{position:absolute;top:-2px;right:0;width:4px;height:4px;content:"";background-color:var(--ibiz-screen-dashboard-primary-color)}.ibiz-percent-pond__slider--cover-slider{position:relative;width:100%;height:5px;margin-top:16px;background-color:var(--ibiz-color-fill-0);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAT4AAAAGCAYAAABaZvJEAAAA20lEQVRYhe3YvyrGcRQG8A+9G4MdxawMb8kV2Bis/sRiklyDa2BSeheTxSiTiYhJJhvlzw2w6dGvvjfxvp3p1OnznPnpjCXZwTqucIsPzGAL0zjBN96xXbZs2bLDbsexj0k84wVz2MMKPnHfwhtly5YtOwq2h1+c4RV97GIZdzhvR9ZwiJ+yZcuWHXbbNb7TVgtnG1rCYwt31XEVB/grW7Zs2ZGwSSaSdPMoyUOS4yT9tltIcpPkKclm2bJly46C7bWH3zymcI1LvLV6uIgvDHDRXNmyZcsOr2XwD/WvZ19mO61bAAAAAElFTkSuQmCC)}.ibiz-percent-pond__slider--use-cover{position:absolute;left:0;width:0;height:100%;background-color:var(--ibiz-screen-dashboard-primary-color);opacity:.5}.ibiz-percent-pond__slider--slider-arrow{position:absolute;top:-28px;left:0;color:var(--ibiz-screen-dashboard-primary-color);opacity:.5}.ibiz-percent-pond__value{display:flex;flex:0;align-items:end;color:var(--ibiz-color-primary-light-active)}.ibiz-percent-pond__value--current{display:inline-block;font-size:32px;line-height:1}.ibiz-percent-pond__value--total{display:inline-block;font-size:16px;font-weight:600}.ibiz-panel-button.is-custon-btn{padding:0}.ibiz-panel-button-custon-btn{position:relative;width:100%;height:100%;padding:var(--ibiz-spacing-tight);color:var(--svgColor, var(--ibiz-screen-dashboard-text-color));text-align:center;cursor:pointer}.ibiz-panel-button-custon-btn>svg{position:absolute;top:0;left:0;z-index:-1}.ibiz-panel-button-custon-btn .dv-button-svg{display:block;flex:1 1 0%;width:100%;height:100%;filter:drop-shadow(var(--svgBorderColor, var(--ibiz-screen-dashboard-primary-color)) 0 0 2px)}.ibiz-panel-button-custon-btn .dv-button-svg-bg{opacity:var(--svgBgOpacity);fill:var(--svgBgColor, var(--ibiz-screen-dashboard-primary-color));stroke:transparent;stroke-width:0}.ibiz-panel-button-custon-btn .dv-button-svg-line{fill:transparent;stroke:var(--svgColor, var(--ibiz-screen-dashboard-primary-color));stroke-width:2;vector-effect:non-scaling-stroke}.ibiz-water-level-pond{width:100%;height:100%;overflow:hidden}.ibiz-water-level-pond canvas{width:100%;height:100%}.ibiz-water-level-pond__value{position:absolute;top:50%;left:50%;font-size:24px;color:var(--ibiz-screen-dashboard-text-color);transform:translate(-50%,-50%)}.ibiz-custom-image-search-box{position:relative}.ibiz-custom-image-search-box__image{width:100%;height:34px}.ibiz-custom-image-search-box__input{position:absolute;top:0;left:0}.ibiz-custom-image-search-box__input .el-input__wrapper .el-input__suffix:before{position:absolute;top:9px;right:37px;display:block;width:4px;height:13px;content:"";background-color:#00e2f4;border-radius:4px}.ibiz-custom-image-search-box__input .el-input__wrapper.is-focus,.ibiz-custom-image-search-box__input .el-input__wrapper:hover,.ibiz-custom-image-search-box__input.has-image .el-input__wrapper{box-shadow:unset}.ibiz-custom-image-search-box__search-icon{color:#2ce8e1;cursor:pointer}.cockpit-large-screen .ibiz-custom-image-search-box{position:absolute}.ibiz-tagged-wall__content{margin:0 auto;text-align:center}.ibiz-tagged-wall__tag-body{display:inline-block;width:100%;margin:auto}.ibiz-tagged-wall__tag-body-tags{text-align:center;word-break:break-word}.ibiz-tagged-wall__tag-body-tags-li{min-height:30px;text-align:center}.ibiz-custom-tag{display:inline-block;margin:5px;font-size:24px;user-select:none}.ibiz-custom-border{--ibiz-style-1-offsetY: 0}.ibiz-custom-border.is-style-1{position:relative;width:100%;height:100%}.ibiz-custom-border.is-style-1 .ibiz-custom-border__wrapper{position:absolute;width:100%;height:calc(100% - var(--ibiz-style-1-offsetY))}.ibiz-custom-border.is-style-1 .ibiz-custom-border__border-box{z-index:100;height:0}.ibiz-custom-border.is-style-1 .ibiz-custom-border__border{position:absolute;display:block}.ibiz-custom-border.is-style-1 .ibiz-custom-border__right-top{right:0;transform:rotateY(180deg)}.ibiz-custom-border.is-style-1 .ibiz-custom-border__left-bottom{bottom:0;transform:rotateX(180deg)}.ibiz-custom-border.is-style-1 .ibiz-custom-border__right-bottom{right:0;bottom:0;transform:rotateX(180deg) rotateY(180deg)}.ibiz-custom-border.is-style-1 .ibiz-custom-border__content{width:100%;height:100%}.ibiz-custom-border{--ibiz-style-2-offsetY: 0}.ibiz-custom-border.is-style-2{position:relative;z-index:1;width:100%;height:100%}.ibiz-custom-border.is-style-2 .ibiz-custom-border__border-svg--container{position:absolute;top:0;left:0;width:100%;height:100%;height:calc(100% - var(--ibiz-style-2-offsetY))}.ibiz-custom-border.is-style-2 .ibiz-custom-border__border-svg--container>polyline{fill:none;stroke-width:1}.ibiz-custom-border.is-style-2 .ibiz-custom-border__content{width:100%;height:100%}.ibiz-custom-border{--ibiz-style-3-offsetY: 0}.ibiz-custom-border.is-style-3{position:relative;z-index:1;width:100%;height:100%}.ibiz-custom-border.is-style-3 .ibiz-custom-border__border-svg--container{position:absolute;top:0;left:0;width:100%;height:calc(100% - var(--ibiz-style-3-offsetY))}.ibiz-custom-border.is-style-3 .ibiz-custom-border__border-svg--container>polyline{fill:none}.ibiz-custom-border.is-style-3 .ibiz-custom-border__bb3-line1{stroke-width:3}.ibiz-custom-border.is-style-3 .ibiz-custom-border__bb3-line2{stroke-width:1}.ibiz-custom-border.is-style-3 .ibiz-custom-border__content{width:100%;height:100%}.ibiz-custom-border{--ibiz-style-4-offsetY: 0}.ibiz-custom-border.is-style-4{position:relative;width:100%;height:100%}.ibiz-custom-border.is-style-4 .ibiz-custom-border__de-reverse{transform:rotate(180deg)}.ibiz-custom-border.is-style-4 .ibiz-custom-border__svg-container{position:absolute;top:0;left:0;width:100%;height:calc(100% - var(--ibiz-style-4-offsetY))}.ibiz-custom-border.is-style-4 .ibiz-custom-border__svg-container>polyline{fill:none}.ibiz-custom-border.is-style-4 .sw1,.ibiz-custom-border.is-style-4 .dv-bb4-line-10,.ibiz-custom-border.is-style-4 .dv-bb4-line-7,.ibiz-custom-border.is-style-4 .dv-bb4-line-6,.ibiz-custom-border.is-style-4 .dv-bb4-line-5,.ibiz-custom-border.is-style-4 .dv-bb4-line-2,.ibiz-custom-border.is-style-4 .dv-bb4-line-1{stroke-width:1}.ibiz-custom-border.is-style-4 .sw3,.ibiz-custom-border.is-style-4 .dv-bb4-line-9,.ibiz-custom-border.is-style-4 .dv-bb4-line-8,.ibiz-custom-border.is-style-4 .dv-bb4-line-4,.ibiz-custom-border.is-style-4 .dv-bb4-line-3{stroke-linecap:round;stroke-width:3px}.ibiz-custom-border.is-style-4 .dv-bb4-line-9{stroke-dasharray:100 250}.ibiz-custom-border.is-style-4 .dv-bb4-line-10{stroke-dasharray:80 270}.ibiz-custom-border.is-style-4 .ibiz-custom-border__content{position:relative;width:100%;height:100%}.ibiz-custom-border{--ibiz-style-5-offsetY: 0}.ibiz-custom-border.is-style-5{position:relative;width:100%;height:100%}.ibiz-custom-border.is-style-5 .ibiz-custom-border__de-reverse{transform:rotate(180deg)}.ibiz-custom-border.is-style-5 .ibiz-custom-border__svg-container{position:absolute;top:0;left:0;width:100%;height:calc(100% - var(--ibiz-style-5-offsetY))}.ibiz-custom-border.is-style-5 .ibiz-custom-border__svg-container>polyline{fill:none}.ibiz-custom-border.is-style-5 .dv-bb5-line-1,.ibiz-custom-border.is-style-5 .dv-bb5-line-2{stroke-width:1}.ibiz-custom-border.is-style-5 .dv-bb5-line-3,.ibiz-custom-border.is-style-5 .dv-bb5-line-6{stroke-width:5}.ibiz-custom-border.is-style-5 .dv-bb5-line-4,.ibiz-custom-border.is-style-5 .dv-bb5-line-5{stroke-width:2}.ibiz-custom-border{--ibiz-style-6-offsetY: 0}.ibiz-custom-border.is-style-6{position:relative;width:100%;height:100%}.ibiz-custom-border.is-style-6 .ibiz-custom-border__de-reverse{transform:rotate(180deg)}.ibiz-custom-border.is-style-6 .ibiz-custom-border__svg-container{position:absolute;top:0;left:0;width:100%;height:calc(100% - var(--ibiz-style-6-offsetY))}.ibiz-custom-border.is-style-6 .ibiz-custom-border__svg-container>polyline{fill:none}.ibiz-custom-border.is-style-6 .ibiz-custom-border__border-box-content{position:relative;width:100%;height:100%}.ibiz-custom-border{--ibiz-style-7-offsetY: 0}.ibiz-custom-border.is-style-7{position:relative;width:100%;height:100%}.ibiz-custom-border.is-style-7 .ibiz-custom-border__de-reverse{transform:rotate(180deg)}.ibiz-custom-border.is-style-7 .ibiz-custom-border__svg-container{position:absolute;top:0;left:0;width:100%;height:calc(100% - var(--ibiz-style-7-offsetY))}.ibiz-custom-border.is-style-7 .ibiz-custom-border__svg-container>polyline{fill:none}.ibiz-custom-border.is-style-7 .dv-bb7-line-width-2{stroke-width:2}.ibiz-custom-border.is-style-7 .dv-bb7-line-width-5{stroke-width:5}.ibiz-custom-border.is-style-7 .ibiz-custom-border__content{position:relative;width:100%;height:100%}.ibiz-custom-border{--ibiz-style-8-offsetY: 0}.ibiz-custom-border.is-style-8{position:relative;width:100%;height:100%}.ibiz-custom-border.is-style-8 .ibiz-custom-border__svg-container{position:absolute;top:0;left:0;width:100%;height:100%;height:calc(100% - var(--ibiz-style-8-offsetY))}.ibiz-custom-border.is-style-8 .ibiz-custom-border__border-box-content{position:relative;width:100%;height:100%}.ibiz-custom-border{--ibiz-style-9-offsetY: 0}.ibiz-custom-border.is-style-9{position:relative;z-index:1;width:100%;height:100%}.ibiz-custom-border.is-style-9 .ibiz-custom-border__border-svg--container{position:absolute;top:0;left:0;width:100%;height:calc(100% - var(--ibiz-style-9-offsetY))}.ibiz-custom-border.is-style-9 .ibiz-custom-border__content{width:100%;height:100%}.ibiz-custom-border{--ibiz-style-10-offsetY: 0;--ibiz-style-10-padding: 0}.ibiz-custom-border.is-style-10{position:relative;width:100%;height:100%}.ibiz-custom-border.is-style-10 .ibiz-custom-border__wrapper{position:absolute;width:100%;height:calc(100% - var(--ibiz-style-10-offsetY))}.ibiz-custom-border.is-style-10 .ibiz-custom-border__border-box{z-index:100;height:0}.ibiz-custom-border.is-style-10 .ibiz-custom-border__mask{position:absolute;top:var(--ibiz-style-10-padding);left:var(--ibiz-style-10-padding);width:calc(100% - 2 * var(--ibiz-style-10-padding));height:calc(100% - 2 * var(--ibiz-style-10-padding) - var(--ibiz-style-10-offsetY));border-radius:10px}.ibiz-custom-border.is-style-10 .ibiz-custom-border__border-svg--container{position:absolute;display:block}.ibiz-custom-border.is-style-10 .ibiz-custom-border__right-top{right:0;transform:rotateY(180deg)}.ibiz-custom-border.is-style-10 .ibiz-custom-border__left-bottom{bottom:0;transform:rotateX(180deg)}.ibiz-custom-border.is-style-10 .ibiz-custom-border__right-bottom{right:0;bottom:0;transform:rotateX(180deg) rotateY(180deg)}.ibiz-custom-border.is-style-10 .ibiz-custom-border__content{width:100%;height:100%}.ibiz-custom-border.is-style-11{position:relative;width:100%;height:100%}.ibiz-custom-border.is-style-11 .ibiz-custom-border__border-svg--container{position:absolute;top:0;left:0;width:100%;height:100%}.ibiz-custom-border.is-style-11 .ibiz-custom-border__border-svg--container>polyline{fill:none;stroke-width:1}.ibiz-custom-border.is-style-11 .ibiz-custom-border__content{width:100%;height:100%}.ibiz-custom-border{--ibiz-style-12-offsetY: 0}.ibiz-custom-border.is-style-12{position:relative;width:100%;height:100%}.ibiz-custom-border.is-style-12 .ibiz-custom-border__de-reverse{transform:rotate(180deg)}.ibiz-custom-border.is-style-12 .ibiz-custom-border__svg-container{position:absolute;top:0;left:0;width:100%;height:calc(100% - var(--ibiz-style-12-offsetY))}.ibiz-custom-border.is-style-12 .ibiz-custom-border__svg-container>polyline{fill:none}.ibiz-custom-border.is-style-12 .ibiz-custom-border__content{position:relative;width:100%;height:100%}.ibiz-custom-border{--ibiz-style-13-offsetY: 0}.ibiz-custom-border.is-style-13{position:relative;width:100%;height:100%}.ibiz-custom-border.is-style-13 .ibiz-custom-border__border-svg--container{position:absolute;top:0;left:0;width:100%;height:calc(100% - var(--ibiz-style-13-offsetY))}.ibiz-custom-decoration-1{position:relative;width:100%;height:100%}.ibiz-custom-decoration-1>svg{position:absolute;transform-origin:left top}.ibiz-custom-decoration-2{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.ibiz-custom-decoration-2>svg{position:absolute;top:50%}.ibiz-custom-decoration-3{position:relative;width:100%;height:100%}.ibiz-custom-decoration-3>svg{position:absolute;transform-origin:left top}.ibiz-custom-decoration-4{position:relative;width:100%;height:100%}.ibiz-custom-decoration-4 .container{position:absolute;display:flex;flex:1;overflow:hidden}.ibiz-custom-decoration-4 .normal{left:50%;margin-left:-2px;animation:ani-height ease-in-out infinite}.ibiz-custom-decoration-4 .reverse{top:50%;margin-top:-2px;animation:ani-width ease-in-out infinite}@keyframes ani-height{0%{height:0%}70%{height:100%}to{height:100%}}@keyframes ani-width{0%{width:0%}70%{width:100%}to{width:100%}}.ibiz-custom-decoration-4>svg{position:absolute}.ibiz-custom-decoration-5{position:relative;width:100%;height:100%}.ibiz-custom-decoration-5>svg{position:absolute}.ibiz-custom-decoration-6{position:relative;width:100%;height:100%}.ibiz-custom-decoration-6>svg{transform-origin:left top}.ibiz-custom-decoration-11{position:relative;z-index:1;width:100%;height:100%}.ibiz-custom-decoration-11__decoration-content{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%} diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/data-view/0.0.4/index.system.min.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/data-view/0.0.4/index.system.min.js new file mode 100644 index 0000000000000000000000000000000000000000..7262651b6a759f2e3f4f8a1a071564f12b7e5b13 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/data-view/0.0.4/index.system.min.js @@ -0,0 +1 @@ +!function(){function t(e){return t="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},t(e)}function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function n(t){for(var n=1;nt.length)&&(e=t.length);for(var n=0,a=Array(e);n=0;--r){var c=this.tryEntries[r],l=c.completion;if("root"===c.tryLoc)return a("end");if(c.tryLoc<=this.prev){var i=o.call(c,"catchLoc"),u=o.call(c,"finallyLoc");if(i&&u){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&o.call(a,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(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 a=n.completion;if("throw"===a.type){var o=a.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:O(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},n}function v(t,e,n,a,o,r,c){try{var l=t[r](c),i=l.value}catch(t){return void n(t)}l.done?e(i):Promise.resolve(i).then(a,o)}function f(t){return function(){var e=this,n=arguments;return new Promise((function(a,o){var r=t.apply(e,n);function c(t){v(r,a,o,c,l,"next",t)}function l(t){v(r,a,o,c,l,"throw",t)}c(void 0)}))}}function d(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){for(var n=0;n0),this.ns.is("container","CONTAINER"===this.controller.model.portletType)]},r)}return U("div",{class:[this.ns.b(),this.ns.is("full-icon","full"===this.c.iconType),this.ns.is("container","CONTAINER"===this.controller.model.portletType)]},[r,n&&"CONTAINER"===this.controller.model.portletType&&U($("iBizIcon"),{class:this.ns.e("bg-icon"),icon:n},null),this.c.bodyBgUrl&&U("img",{class:this.ns.e("body-image"),src:this.c.bodyBgUrl},null)])}}),Tt=function(){return p((function t(){y(this,t),d(this,"component","ScreenPortlet")}),[{key:"createController",value:(t=f(s().mark((function t(e,n,a){var o,r,c,l,i;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=ft(e),!(r=Object.assign(o,{sysPFPluginId:""})).showTitleBar&&r.sysImage&&(r.showTitleBar=!0,r.title=""),t.next=5,N(r);case 5:if(!(c=t.sent)){t.next=11;break}return t.next=9,c.createController(o,n,a);case 9:return l=t.sent,t.abrupt("return",l);case 11:return i=new O(o,n,a),t.next=14,i.init();case 14:return t.abrupt("return",i);case 15:case"end":return t.stop()}}),t)}))),function(e,n,a){return t.apply(this,arguments)})}]);var t}(),Pt=v(Mt,(function(t){t.component(Mt.name,Mt),A("PORTLET_CUSTOM_SCREEN",(function(){return new Tt})),A("CUSTOM_SCREEN",(function(){return new Tt}))})),Nt=Object.prototype.toString;var Ot={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object","[object Set]":"set","[object Map]":"map","[object WeakMap]":"weakmap"};function At(t){return Ot[Nt.call(t)]}function It(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function Bt(){return"".concat(It()+It(),"-").concat(It(),"-").concat(It(),"-").concat(It(),"-").concat(It()).concat(It()).concat(It())}function zt(t){if("array"===At(t)||function(t){return"string"===At(t)}(t))return 0===t.length;if(function(t){return"object"===At(t)}(t)){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}return function(t){return"map"===At(t)}(t)||function(t){return"set"===At(t)}(t)?0===t.size:null==t}function Yt(t){return null!=t&&!zt(t)}var Wt=_({name:"ScreenRadioList",props:h(),emits:m(),setup:function(t,e){var n=e.emit,a=u("screen-radio-list"),o=t.controller,r=o.model,c=null,l="radio",i=!1;r.editorParams&&(r.editorParams.renderMode&&(l=r.editorParams.renderMode),r.editorParams.isBtnRoundCorner&&(i=o.toBoolean(r.editorParams.isBtnRoundCorner)));var s=b(t,n),v=s.useInFocusAndBlur,f=s.useInValueChange,d=X([]);Q((function(){o.enablecirculate&&(c=setInterval((function(){!function(){var e=d.value.findIndex((function(e){return e.value===t.value}));d.value&&d.value.length>0&&(e-1?(this.showWeek=!0,0===a&&(this.leftTime="",this.rightTime=n[1]),1===a&&(n.splice(a,1),n.forEach((function(t,e){0===e&&(o.leftTime=t),1===e&&(o.rightTime=t)})))):(this.showWeek=!1,n.forEach((function(t,e){0===e&&(o.leftTime=t),1===e&&(o.rightTime=t)}))));case 2:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})}]);var n}(D),Gt=function(){return p((function t(){y(this,t),d(this,"formEditor","ScreenRealTime"),d(this,"gridEditor","ScreenRealTime")}),[{key:"createController",value:(t=f(s().mark((function t(e,n){var a;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=new _t(e,n),t.next=3,a.init();case 3:return t.abrupt("return",a);case 4:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}]);var t}(),Ut=v(Vt,(function(t){t.component(Vt.name,Vt),R("SPAN_SCREEN_REAL_TIME",(function(){return new Gt}))})),Xt=_({name:"ScreenPortletRealTime",props:c(),setup:function(t){var e=u("screen-portlet-real-time"),n=t.controller,a=null,o=["日","一","二","三","四","五","六"],r=X(""),c=X(""),l=X("");return Q((function(){a=setInterval((function(){var t=dt();r.value=n.leftTime?"".concat(t.format(n.leftTime)," "):"",c.value=n.showWeek?"星期".concat(o[t.day()]," "):"",l.value=n.rightTime?t.format(n.rightTime):""}),1e3)})),et((function(){a&&clearInterval(a)})),{ns:e,c:n,leftText:r,week:c,rightText:l}},render:function(){return U("div",{class:this.ns.b()},[this.leftText?U("div",{class:this.ns.e("left-time")},[this.leftText]):null,this.week?U("div",{class:this.ns.e("week")},[this.week]):null,U("div",{class:this.ns.e("right-time")},[this.rightText])])}}),$t=function(t){function e(){var t;y(this,e);for(var n=arguments.length,a=new Array(n),o=0;o-1?(this.showWeek=!0,0===o&&(this.leftTime="",this.rightTime=a[1]),1===o&&(a.splice(o,1),a.forEach((function(t,e){0===e&&(r.leftTime=t),1===e&&(r.rightTime=t)})))):(this.showWeek=!1,a.forEach((function(t,e){0===e&&(r.leftTime=t),1===e&&(r.rightTime=t)}))));case 2:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})}]);var n}(P),qt=function(){return p((function t(){y(this,t),d(this,"component","ScreenPortletRealTime")}),[{key:"createController",value:(t=f(s().mark((function t(e,n,a){var o;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=new $t(e,n,a),t.next=3,o.init();case 3:return t.abrupt("return",o);case 4:case"end":return t.stop()}}),t)}))),function(e,n,a){return t.apply(this,arguments)})}]);var t}(),Qt=v(Xt,(function(t){t.component(Xt.name,Xt),A("PORTLET_CUSTOM_SCREEN_PORTLET_REAL_TIME",(function(){return new qt}))})),Kt=function(t){function e(){var t;y(this,e);for(var n=arguments.length,a=new Array(n),o=0;o=e.state.total||e.state.isLoading||e.state.total<=e.state.size))})),v=X(),f=X(Bt()),d=X();"true"===e.controlParams.defaultexpandall&&(J((function(){return e.state.groups}),(function(){e.state.groups.length>0&&(d.value=e.state.groups.map((function(t){return t.key})))})),d.value=e.state.groups.map((function(t){return t.key})));var h=G((function(){if(!o.value||"DEFAULT"!==r.value)return{};var t={flex:"none",height:"auto"};return Object.assign(t,{animation:"scroll-top ".concat(a.value,"s linear infinite")}),t}));J((function(){return e.state.curPage}),(function(){if(1===e.state.curPage&&(2===e.model.pagingMode||3===e.model.pagingMode)){var t;f.value=Bt();var n=null===(t=v.value)||void 0===t||null===(t=t.ElInfiniteScroll)||void 0===t?void 0:t.containerEl;n&&(n.lastScrollTop=0,n.scrollTop=0)}}));var p=function(t,a){var o=e.context,r=e.params,c=e.state.selectedData.findIndex((function(e){return e.srfkey===t.srfkey})),l=[n.b("item"),n.is("active",-1!==c)];return U($("iBizControlShell"),{class:l,style:"",data:t,modelData:a,context:o,params:r,onClick:function(){return e.onRowClick(t)},onDblclick:function(){return e.onDbRowClick(t)}},null)},m=function(t){var a=e.state.selectedData.findIndex((function(e){return e.srfkey===t.srfkey})),o=[n.b("item"),n.is("active",-1!==a)];return U("div",{class:o,key:t.srfkey,onClick:function(){return e.onRowClick(t)},onDblclick:function(){return e.onDbRowClick(t)}},["".concat(ht(t.srfmajortext)?"":t.srfmajortext)])},y=function(e){var a=t.modelData.itemLayoutPanel;return U($("el-collapse-item"),{title:yt(e.caption),class:n.be("group-content","item"),name:e.key},{default:function(){return[e.children.length>0?e.children.map((function(t){return a?p(t,a):m(t)})):U("div",{class:n.bem("group-content","item","empty")},[ibiz.i18n.t("app.noData")])]}})},g=function(t,n){var a=n?p(t,n):m(t);if(e.borderStyle){var o=$(e.borderStyle);return q(o,{},a)}return a},b=function(){var t,l=null===(t=c.value)||void 0===t||null===(t=t.$el)||void 0===t?void 0:t.getElementsByClassName(n.b("scroll-item"));if(!o.value&&v.value&&l&&l.length&&!l[0].offsetHeight)var u=setInterval((function(){l[0].offsetHeight>0&&e.state.items.length*l[0].offsetHeight>v.value.clientHeight?(o.value=!0,function(){clearInterval(i.value);var t=1;i.value=setInterval((function(){var a,l=null===(a=c.value)||void 0===a||null===(a=a.$el)||void 0===a?void 0:a.getElementsByClassName(n.b("scroll-item"));if(o.value&&"STEP"===r.value){var u=l[0].offsetHeight;v.value.scrollTo({top:u*t,behavior:"smooth"}),t>=e.state.items.length?(setTimeout((function(){v.value.scrollTo({top:0,behavior:"instant"})}),500),t=1):t+=1}else clearInterval(i.value)}),1e3*a.value)}(),clearInterval(u)):(clearInterval(u),clearInterval(i.value))}),10)};return J((function(){return v.value}),(function(t){t&&b()}),{immediate:!0,deep:!0}),{c:e,ns:n,carouselContainer:c,infiniteScroll:v,renderListContent:function(){var a;if(e.model.enableGroup&&!e.state.isSimple)return U($("el-collapse"),{modelValue:d.value,"onUpdate:modelValue":function(t){return d.value=t},class:[n.b("group-content"),n.b("content"),n.is("allow-roll",o.value)],style:h.value},{default:function(){var t;return[null===(t=e.state.groups)||void 0===t?void 0:t.map((function(t){return U("div",{class:[n.b("scroll-item")]},[y(t)])}))]}});var r=t.modelData.itemLayoutPanel;return nt(U("div",{class:[n.b("scroll"),n.b("content"),n.is("allow-roll",o.value)],style:h.value,"infinite-scroll-distance":10,"infinite-scroll-disabled":s.value,ref:"infiniteScroll",key:f.value},[e.state.items.map((function(t,e){return U("div",{class:[n.b("scroll-item")]},[g(t,r)])})),o.value&&e.state.items.map((function(t,e){return U("div",{class:[n.b("scroll-item")]},[g(t,r)])})),3===e.model.pagingMode&&!(e.state.items.length>=e.state.total||e.state.isLoading||e.state.total<=e.state.size)&&U("div",{class:n.e("load-more-button")},[U($("el-button"),{text:!0,onClick:function(){return e.loadMore()}},ne(a=ibiz.i18n.t("control.common.loadMore"))?a:{default:function(){return[a]}})])]),[[at("infinite-scroll"),function(){return e.loadMore()}]])},renderNoData:function(){var t,a=e.state.isLoaded;if(a)return a&&U($("iBizNoData"),{class:n.b("content"),text:e.model.emptyText,emptyTextLanguageRes:e.model.emptyTextLanguageRes,enableShowImage:e.state.hideNoDataImage},ne(t=function(){var t,n=null===(t=e.model.controls)||void 0===t?void 0:t.find((function(t){return t.name==="".concat(e.model.name,"_quicktoolbar")}));if(n)return U($("iBizToolbarControl"),{modelData:n,context:e.context,params:e.params},null)}())?t:{default:function(){return[t]}})},renderBatchToolBar:function(){var t,a=null===(t=e.model.controls)||void 0===t?void 0:t.find((function(t){return t.name==="".concat(e.model.name,"_batchtoolbar")}));if(a)return U("div",{class:n.b("batchtoolbar")},[U($("iBizToolbarControl"),{modelData:a,context:e.context,params:e.params},null)])}}},render:function(){var t=null;return this.c.state.isCreated&&(t=[this.c.state.items.length>0?this.renderListContent():this.renderNoData(),this.renderBatchToolBar(),this.c.state.enablePagingBar&&1===this.c.model.pagingMode?U($("iBizPagination"),{class:this.ns.e("pagination"),total:this.c.state.total,curPage:this.c.state.curPage,size:this.c.state.size,totalPages:this.c.state.totalPages},null):null]),U($("iBizControlBase"),{class:[this.ns.is("enable-page",!!this.c.state.enablePagingBar),"test"],ref:"carouselContainer",controller:this.c},ne(t)?t:{default:function(){return[t]}})}}),oe=p((function t(){y(this,t),d(this,"component","CarouselList")})),re=v(ae,(function(t){t.component(ae.name,ae),M("LIST_RENDER_CAROUSEL_LIST",(function(){return new oe}))}));function ce(t,e){var n=[],a=t[0]||"",o=e.filter((function(t){return t[a]||n.push(t),t[a]}));return o.sort((function(e,n){var a,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=r(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var a=0,o=function(){};return{s:o,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,l=!0,i=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return l=t.done,t},e:function(t){i=!0,c=t},f:function(){try{l||null==n.return||n.return()}finally{if(i)throw c}}}}(t);try{for(o.s();!(a=o.n()).done;){var c=a.value;if(e[c]!==n[c])return e[c]>n[c]?1:-1}}catch(l){o.e(l)}finally{o.f()}return 0})),o.push.apply(o,n),o}function le(t,e){var n=null,a=0,o=X({}),r=ot((function(){t.value&&function(){if(window.ResizeObserver){var r=t.value.$el.querySelector(".el-table__header-wrapper");r&&(n=new ResizeObserver((function(t){var n=t[0].contentRect.height;if(n!==a){var r={"now-header-height":"".concat(n,"px")};o.value=e.cssVarBlock(r),a=n}}))).observe(r)}}()}));return rt((function(){n&&n.disconnect(),r()})),{headerCssVars:o}}function ie(t,e,n){if(!n.enableRowEditOrder)return{};var a=0,o=0,r=null,c=null,l=[],i=function(t){var e="";return t.forEach((function(t){t.startsWith("id-")&&(e=t.replace("id-",""))})),e};return J([function(){return t.value},function(){return n.state.isLoaded}],(function(e,u){if(u&&e){var s=t.value.$el;if(s)s.getElementsByClassName("el-table__row").forEach((function(t){!function(t){t.setAttribute("draggable","true");var e=gt(t,"dragstart",(function(t){if(t.target){var e=t.target;t.dataTransfer.effectAllowed="move";var o=i(e.classList);a=n.state.rows.findIndex((function(t){return t.data.srfkey===o})),r=n.state.rows[a]}})),u=gt(t,"dragenter",(function(t){var e;t.preventDefault();var a=t.currentTarget,l=i(a.classList);o=n.state.rows.findIndex((function(t){return t.data.srfkey===l})),(null===(e=r)||void 0===e?void 0:e.data.srfkey)!==l&&-1!==o&&(c=n.state.rows[o])})),s=gt(t,"dragover",(function(t){t.preventDefault()})),v=gt(t,"dragend",(function(t){t.preventDefault(),r&&c&&n.onDragChange(r,c,o>a?"next":"prev")}));l.push(e),l.push(u),l.push(s),l.push(v)}(t)}))}})),{cleanup:function(){l.forEach((function(t){t()}))}}}var ue=function(t){function e(t,n,a,o){var r;return y(this,e),d(r=g(this,e,[t,n,a,o]),"speed",2),d(r,"rollMode","DEFAULT"),r.init(),r}return C(e,t),p(e,[{key:"init",value:function(){this.controlParams&&(this.controlParams.rollmode&&(this.rollMode=this.controlParams.rollmode),this.controlParams.speed?this.speed=this.controlParams.speed:"DEFAULT"===this.rollMode?this.speed=12:this.speed=2)}}])}(F);function se(t,e){var a,o={};return null===(a=t.controlAttributes)||void 0===a||a.forEach((function(t){t.attrName&&t.attrValue&&(o[t.attrName]=V.execSingleLine(t.attrValue,n({},e)))})),o}function ve(t,e,a,o){if("GROUPGRIDCOLUMN"===e.columnType){var r,c,l=(null===(r=e.degridColumns)||void 0===r?void 0:r.filter((function(t){return!t.hideDefault&&!t.hiddenDataItem})))||[],i=e.width,u=(null===(c=e.align)||void 0===c?void 0:c.toLowerCase())||"center";return U($("el-table-column"),{prop:e.codeName,label:e.caption,"min-width":i,align:u},{default:function(){return l.map((function(e,n){return ve(t,e,a,n)}))}})}return function(t,e,a,o){var r,c=e.codeName,l=e.width,i=t.columns[c],u=t.state.columnStates.find((function(t){return t.key===c})),s=i.isAdaptiveColumn||!t.hasAdaptiveColumn&&o===a.length-1?"min-width":"width";return U($("el-table-column"),Z({label:e.caption,prop:c},d({},s,l),{fixed:u.fixed,sortable:!!e.enableSort&&"custom",align:(null===(r=e.align)||void 0===r?void 0:r.toLowerCase())||"center"}),{default:function(a){var o=a.row,r=o;o.isGroupData&&(r=o.first);var l=t.findRowState(r);if(l){var u=$(t.providers[c].component);return q(u,{controller:i,row:l,key:r.tempsrfkey+c,attrs:se(e,n(n({},t.getEventArgs()),{},{data:l.data}))})}return null}})}(t,e,a,o)}var fe=_({name:"CarouselGrid",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:function(){return{}}},provider:{type:Object},mdctrlActiveMode:{type:Number,default:void 0},singleSelect:{type:Boolean,default:void 0},rowEditOpen:{type:Boolean,default:void 0},isSimple:{type:Boolean,required:!1},data:{type:Array,required:!1},loadDefault:{type:Boolean,default:!0}},setup:function(t,e){var n=e.slots,r=x((function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&t.state.selectedData.forEach((function(t){t===n&&(a="current-row")}));var o=t.findRowState(n);return null!=o&&o.showRowEdit&&(a+=" editing-row"),n.srfkey&&(a+=" id-".concat(n.srfkey)),t.enableRowEditOrder&&(a+=" enable-order"),a},handleHeaderCellClassName:function(e){e._row;var n,a=e.column,o=(e._rowIndex,e._columnIndex,null===(n=t.model.degridColumns)||void 0===n?void 0:n.find((function(t){return t.codeName===a.property})));return o&&o.headerSysCss&&o.headerSysCss.cssName?o.headerSysCss.cssName:""}}}(r),g=y.tableRef,b=y.onRowClick,w=y.onDbRowClick,C=y.onSelectionChange,k=y.onSortChange,E=y.handleRowClassName,S=y.handleHeaderCellClassName,D=le(g,c).headerCssVars,R=ie(g,0,r).cleanup,M=void 0===R?bt:R,T=function(t,e){var n=function(){e.data&&(t.state.items=e.data,t.state.rows=e.data.map((function(e){return new j(new H(e),t)})),t.calcAggResult(t.state.items),t.calcTotalData())},o=G((function(){var e,n=Object.values(t.fieldColumns).find((function(e){return e.model.appDEFieldId===t.model.minorSortAppDEFieldId}));return{prop:null==n?void 0:n.model.codeName,order:"desc"===(null===(e=t.model.minorSortDir)||void 0===e?void 0:e.toLowerCase())?"descending":"ascending"}}));t.evt.on("onCreated",f(s().mark((function a(){return s().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:e.isSimple&&(n(),t.state.isLoaded=!0);case 1:case"end":return a.stop()}}),a)})))),J((function(){return e.data}),(function(){e.isSimple&&n()}),{deep:!0});var r=G((function(){var e=t.state;if(t.model.enableGroup){var n=[];return e.groups.forEach((function(t){if(t.children.length){var e=a(t.children),o=e.shift();n.push({tempsrfkey:(null==o?void 0:o.tempsrfkey)||t.caption,srfkey:(null==o?void 0:o.srfkey)||t.caption,isGroupData:!0,caption:t.caption,first:o,children:e})}})),n}var o=t.controlParams.rowspankeys,r=void 0===o?[]:o;return r.length>0?ce(r,e.rows.map((function(t){return t.data}))):e.rows.map((function(t){return t.data}))})),c=G((function(){if(t.isMultistageHeader)return t.model.degridColumns||[];var e=[];return t.state.columnStates.forEach((function(n){var a,o;if(!n.hidden){var r=(null===(a=t.fieldColumns[n.key])||void 0===a?void 0:a.model)||(null===(o=t.uaColumns[n.key])||void 0===o?void 0:o.model);r&&e.push(r)}})),e}));return{tableData:r,renderColumns:c,defaultSort:o,summaryMethod:function(e){return e.columns.map((function(e,n){return 0===n?t.aggTitle:t.state.aggResult[e.property]}))},spanMethod:function(e){var n=e.row,a=e.column,o=e.rowIndex,l=e.columnIndex,i=a.property,u=t.controlParams,s=u.rowspankeys,v=void 0===s?[]:s,f=u.colspankeys,d=void 0===f?[]:f;if(v.length>0&&v.includes(i)){var h=0===l||n[i];if(o>0&&h&&n[i]===r.value[o-1][i])return{rowspan:0,colspan:0};for(var p=1,m=o+1;m0&&d.includes(i)){var y=c.value[l-1].codeName;if(l>0&&d.includes(y)&&n[i]===n[y])return{rowspan:0,colspan:0};for(var g=1,b=l+1;b=r.state.total||r.state.isLoading||r.state.total<=r.state.size)})),Y=X(),F=X(Bt());return J((function(){return r.state.curPage}),(function(){if(1===r.state.curPage&&(2===r.model.pagingMode||3===r.model.pagingMode)){var t;F.value=Bt();var e=null===(t=Y.value)||void 0===t||null===(t=t.ElInfiniteScroll)||void 0===t?void 0:t.containerEl;e&&(e.lastScrollTop=0,e.scrollTop=0)}})),{c:r,ns:c,ns1:i,tableRef:g,tableData:P,renderColumns:N,allowRoll:h,rollStyle:d,renderTableColumn:function(t,e){return n[t.id]?lt(n,t.id,{model:t,data:r.state.items}):ve(r,t,N.value,e)},onDbRowClick:w,onRowClick:b,onSelectionChange:C,onSortChange:k,handleRowClassName:E,handleHeaderCellClassName:S,renderNoData:function(){return U("div",null,null)},summaryMethod:A,spanMethod:I,headerDragend:B,handleResize:function(){var t;if(null!==(t=g.value)&&void 0!==t&&t.$el){var e=g.value.$el.getElementsByClassName("el-scrollbar__wrap");if(e&&e.length){var n=e[0],a=P.value.length*m.value;if(n.clientHeight&&a>n.clientHeight&&(h.value=!0,h.value))if("STEP"===r.rollMode){clearInterval(v.value);var o=1;v.value=setInterval((function(){n.scrollTo({top:m.value*o,behavior:"smooth"}),o>=P.value.length?(setTimeout((function(){n.scrollTo({top:0,behavior:"instant"})}),500),o=1):o+=1}),1e3*r.speed)}else d.value={"--speed":"".concat(r.speed,"s")}}}},conputedGridData:function(t){return h.value?[].concat(a(t),a(t)):t},defaultSort:O,headerCssVars:D,isLodeMoreDisabled:z,infiniteScroll:Y,infiniteScrollKey:F}},render:function(){var t=this;if(this.c.state.isCreated){this.handleResize();var e=this.c.state,n="true"===this.c.controlParams.defaultexpandall;return U($("iBizControlBase"),{class:[this.ns1.b(),this.ns.is("show-header",!this.c.state.hideHeader),this.ns.is("enable-page",this.c.state.enablePagingBar),this.ns.is("enable-group",this.c.model.enableGroup),this.ns.is("single-select",e.singleSelect),this.ns.is("empty",0===e.items.length),this.ns.is("enable-customized",this.c.model.enableCustomized)],controller:this.c,style:this.headerCssVars},{default:function(){return[U($("el-table"),Z({ref:"tableRef",class:[t.ns.e("table"),t.ns.is("allow-roll",t.allowRoll&&"DEFAULT"===t.c.rollMode)],"default-sort":t.defaultSort,border:!0,"show-header":!t.c.state.hideHeader,"show-summary":t.c.enableAgg,"summary-method":t.summaryMethod,"highlight-current-row":e.singleSelect,"row-class-name":t.handleRowClassName,"header-cell-class-name":t.handleHeaderCellClassName,"row-key":"tempsrfkey",data:t.conputedGridData(t.tableData),"default-expand-all":n,"span-method":t.spanMethod,onRowClick:t.onRowClick,onRowDblclick:t.onDbRowClick,onSelectionChange:t.onSelectionChange,onSortChange:t.onSortChange,onHeaderDragend:t.headerDragend,"tooltip-effect":"light","scrollbar-always-on":!0},t.$attrs,{style:t.rollStyle}),{empty:t.renderNoData,default:function(){return[t.renderColumns.map((function(e,n){return t.renderTableColumn(e,n)}))]}})]}})}}}),de=p((function t(){y(this,t),d(this,"component","CarouselGrid")})),he=v(fe,(function(t){t.component(fe.name,fe),M("GRID_RENDER_CAROUSEL_GRID",(function(){return new de}))})),pe=_({name:"PercentPond",props:E(),setup:function(t){var e=u("percent-pond"),n=t.controller,a=X(0);return J((function(){return t.data[n.totalField]}),(function(t){a.value=t||0===t?t:0}),{immediate:!0}),{ns:e,useCover:function(){var e=Number(t.value)||0;return"".concat(0===a.value?0:Math.round(e/a.value*100)||0,"%")},total:a}},render:function(){return U("div",{class:this.ns.b()},[U("div",{class:this.ns.e("slider")},[U("div",{class:this.ns.em("slider","line")},null),U("div",{class:this.ns.em("slider","cover-slider")},[U("div",{class:this.ns.em("slider","use-cover"),style:{width:this.useCover()}},null),U("i",{class:["fa fa-caret-down",this.ns.em("slider","slider-arrow")],style:{left:"calc(".concat(this.useCover()," - 5px)")},"aria-hidden":"true"},null)])]),U("div",{class:this.ns.e("value")},[U("div",{class:this.ns.em("value","current")},[this.value]),U("div",{class:this.ns.em("value","total")},[it("/"),this.total])])])}}),me=function(t){function e(){var t;y(this,e);for(var n=arguments.length,a=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},n=e.canvasWidth,a=e.canvasHeight,o=e.waveWidth,r=void 0===o?.055:o,c=e.waveHeight,l=void 0===c?6:c,i=e.xOffset,u=void 0===i?0:i,s=e.speed,v=void 0===s?4:s,f=e.color,h=void 0===f?"#DBB77A":f;y(this,t),d(this,"points",[]),d(this,"startX",0),d(this,"canvasWidth",0),d(this,"canvasHeight",0),d(this,"waveWidth",0),d(this,"waveHeight",0),d(this,"xOffset",0),d(this,"speed",0),d(this,"color",""),this.points=[],this.startX=0,this.canvasWidth=n,this.canvasHeight=a,this.waveWidth=r/100,this.waveHeight=l,this.xOffset=u,this.speed=v,this.color=h}),[{key:"draw",value:function(t){t.save();var e=this.points;t.beginPath();for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{}).nowRange;this.points=[];for(var e=this.startX,n=this.waveHeight,a=this.waveWidth,o=this.canvasWidth,r=this.canvasHeight,c=this.xOffset,l=e;l0&&void 0!==arguments[0])||arguments[0];return new Promise((function(a){ct((function(){l=t.value,o.value=t.value?t.value.clientWidth:0,r.value=t.value?t.value.clientHeight:0,t.value?o.value&&r.value||console.warn("DataV: Component width or height is 0px, rendering abnormality may occur!"):console.warn("DataV: Failed to get dom node, component rendering may be abnormal!"),"function"==typeof e&&n&&e(),a(!0)}))}))},u=function(){c&&(c.disconnect(),c.takeRecords(),c=null)},v=function(){var t=f(s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i(!1);case 2:a=He(200,i,vt(),null),c=Fe(l,a),window.addEventListener("resize",a),"function"==typeof n&&n();case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return Q((function(){v()})),rt((function(){u()})),ut(v),st(u),{width:o,height:r,initWH:i}}function _e(t){return t[Math.floor(Math.random()*t.length)]}var Ge=function(t){function e(){var t;y(this,e);for(var n=arguments.length,a=new Array(n),o=0;othis.rangeValue&&(this.nowRange-=1),this.wave.update({nowRange:this.nowRange}),this.wave.draw(n),this.requestID=window.requestAnimationFrame((function(){return e.startDraw(t)}))}},{key:"cancelAnimation",value:function(){window.cancelAnimationFrame(this.requestID)}},{key:"refresh",value:function(){this.canvasWidth=this.canvas.offsetWidth,this.canvasHeight=this.canvas.offsetHeight,this.canvas.height=this.canvasHeight,this.canvas.width=this.canvasWidth,this.wave&&(this.wave.canvasHeight=this.canvasHeight,this.wave.canvasWidth=this.canvasWidth)}},{key:"drawContainer",value:function(t){var e=this.shape;"circle"===e?this.drawCircle(t):"rect"===e&&this.drawRect(t)}},{key:"drawCircle",value:function(t){var e=Math.min(this.canvasHeight,this.canvasWidth)/2-4,n=this.getThemeVar("--ibiz-screen-dashboard-border-color");t.lineWidth=4,t.beginPath(),t.arc(this.canvasWidth/2,this.canvasHeight/2,e,0,2*Math.PI),t.strokeStyle=n,t.stroke(),t.clip()}},{key:"drawRect",value:function(t){t.beginPath(),t.rect(10,10,this.canvasWidth-20,this.canvasHeight-20);var e=this.getThemeVar("--ibiz-screen-dashboard-border-color");t.strokeStyle=e,t.lineWidth=2,t.closePath(),t.stroke(),t.clip()}},{key:"calcScale",value:function(t){var e=t.getContext("2d"),n=window.devicePixelRatio||1,a=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1,o=n/a;if(n!==a){var r=t.width,c=t.height;t.width=r*o,t.height=c*o,t.style.width="".concat(r,"px"),t.style.height="".concat(c,"px"),e.scale(o,o)}}},{key:"setDate",value:function(t){this.rangeValue=100*t}}]);var n}(D),Ue=function(){return p((function t(){y(this,t),d(this,"formEditor","WaterLevelPond"),d(this,"gridEditor","WaterLevelPond")}),[{key:"createController",value:(t=f(s().mark((function t(e,n){var a;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=new Ge(e,n),t.next=3,a.init();case 3:return t.abrupt("return",a);case 4:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}]);var t}(),Xe=v(Me,(function(t){t.component(Me.name,Me),R("SLIDER_WATER_LEVEL_POND",(function(){return new Ue}))})),$e=_({name:"CustomImageSearchBox",props:S(),emits:m(),setup:function(t){var e=u("custom-image-search-box"),n=t.controller,a=X(""),o=function(){if(t.controller.dashboard){var e=t.controller.dashboard;e&&e.refresh({query:a.value})}};return{c:n,ns:e,searchValue:a,onSearch:o,handleKeyUp:function(t){t&&"Enter"===t.code&&o()}}},render:function(){var t,e=this,n=null===(t=this.c.model.sysImage)||void 0===t?void 0:t.rawContent;return U("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[n?U("img",{class:this.ns.e("image"),src:n},null):null,U($("el-input"),{class:[this.ns.e("input"),n?"has-image":""],modelValue:this.searchValue,"onUpdate:modelValue":function(t){return e.searchValue=t},placeholder:this.c.placeholder,clearable:!1,"suffix-icon":U($("ion-icon"),{onClick:this.onSearch,class:this.ns.e("search-icon"),name:"search"},null),onKeyup:this.handleKeyUp},null)])}}),qe=function(t){function e(){var t;y(this,e);for(var n=arguments.length,a=new Array(n),o=0;o0?_e(t.controller.customColorGroup):(e=Math.floor(256*Math.random()),n=Math.floor(256*Math.random()),a=Math.floor(256*Math.random()),"rgb(".concat(e,",").concat(n,",").concat(a,")"));var e,n,a})),normalSize:G((function(){return t.controller.enableFontSizeRandom?"".concat(function(t,e){var n=0,a=0,o=0;do{o=(n=2*Math.random()-1)*n+(a=2*Math.random()-1)*a}while(0===o||o>=1);return t+n*Math.sqrt(-2*Math.log(o)/o)*e}(t.controller.maxFontSize,t.controller.minFontSize),"px"):"".concat(t.controller.defaultFontSize,"px")})),getRandomColorFromArray:_e}},render:function(){return U("a",{class:this.ns.b(),style:"color:".concat(this.setColor,";font-size:").concat(this.normalSize)},[this.tname])}}),Ze=function(t){function e(){var t;y(this,e);for(var n=arguments.length,a=new Array(n),o=0;o1;){var r=o.pop(),c=o.pop();e[n]=c,e[a-(n+1)]=r,n++}return 1===o.length&&(e[n]=o.pop()),e}(c);var l=a.value.sort((function(){return Math.random()>.5?-1:1})).concat();return n.value.map((function(t,e){return l.splice(0,t)}))}));return J((function(){return t.state.items}),(function(){a.value=t.state.items})),{c:t,ns:e,tags:o,tagList:a}},render:function(){var t=this;return U("div",{class:this.ns.b()},[U("div",{class:this.ns.e("tag-body")},[U("div",{class:this.ns.e("tag-body-tags")},[this.tags.map((function(e,n){return U("div",{key:n,class:t.ns.e("tag-body-tags-li")},[e.map((function(e){return U(Je,{key:e.id,tname:e.name,controller:t.c},null)}))])}))])])])}}),en=p((function t(){y(this,t),d(this,"component","TaggedWall")})),nn=v(tn,(function(t){t.component(tn.name,tn),M("LIST_RENDER_TAGGED_WALL",(function(){return new en}))})),an=_({name:"CustomDV1",props:{offsetX:{style:Number,default:0},offsetY:{style:Number,default:0},color:{type:Array,default:function(){return[]}}},setup:function(t){var e=u("custom-border"),n=[We()||"#0095ee","#95d8f8"],a=["left-top","right-top","left-bottom","right-bottom"],o=X(),r=X(0),c=X(0),l=G((function(){return Be(n,t.color||[])})),i=function(){ct((function(){var t=o.value;t&&(r.value=t.clientWidth,c.value=t.clientHeight)}))};return Q((function(){i(),ze(o.value,i),window.addEventListener("resize",i)})),rt((function(){Ye(o.value),window.removeEventListener("resize",i)})),{ns:e,customDv1:o,renderBorder:function(){var n=r.value-t.offsetX,o=c.value-t.offsetY;return U("div",{class:[e.e("border-box")]},[U("svg",{class:[e.e("border")],width:n,height:o},[U("polygon",{fill:"var(--ibiz-screen-dashboard-custom-dv-bg)",points:"10, 27 10, ".concat(c.value-27-t.offsetY," 13, ").concat(c.value-24-t.offsetY," 13, ").concat(c.value-21-t.offsetY," 24, ").concat(c.value-11-t.offsetY,"\n 38, ").concat(c.value-11-t.offsetY," 41, ").concat(c.value-8-t.offsetY," 73, ").concat(c.value-8-t.offsetY," 75, ").concat(c.value-10-t.offsetY," 81, ").concat(c.value-10-t.offsetY,"\n 85, ").concat(c.value-6-t.offsetY," ").concat(r.value-85,", ").concat(c.value-6-t.offsetY," ").concat(r.value-81,", ").concat(c.value-10-t.offsetY," ").concat(r.value-75,", ").concat(c.value-10-t.offsetY,"\n ").concat(r.value-73,", ").concat(c.value-8-t.offsetY," ").concat(r.value-41,", ").concat(c.value-8-t.offsetY," ").concat(r.value-38,", ").concat(c.value-11-t.offsetY,"\n ").concat(r.value-24,", ").concat(c.value-11-t.offsetY," ").concat(r.value-13,", ").concat(c.value-21-t.offsetY," ").concat(r.value-13,", ").concat(c.value-24-t.offsetY,"\n ").concat(r.value-10,", ").concat(c.value-27-t.offsetY," ").concat(r.value-10,", 27 ").concat(r.value-13,", 25 ").concat(r.value-13,", 21\n ").concat(r.value-24,", 11 ").concat(r.value-38,", 11 ").concat(r.value-41,", 8 ").concat(r.value-73,", 8 ").concat(r.value-75,", 10\n ").concat(r.value-81,", 10 ").concat(r.value-85,", 6 85, 6 81, 10 75, 10 73, 8 41, 8 38, 11 24, 11 13, 21 13, 24")},null)]),a.map((function(t){return U("svg",{key:t,class:[e.e(t),e.e("border")]},[U("polygon",{fill:l.value[0],points:"\n ".concat(14,",").concat(74," ").concat(14,",").concat(26," ").concat(20,",").concat(20," ").concat(26,",").concat(20," ").concat(32,",").concat(14," ").concat(35,",").concat(14," ").concat(38,",").concat(17," ").concat(44,",").concat(17," ").concat(47,",").concat(14," ").concat(92,",").concat(14," ").concat(89,",").concat(17," ").concat(83,",").concat(17," ").concat(81.2,",").concat(15," ").concat(48.8,",").concat(15," ").concat(45.8,",").concat(18.2," ").concat(32,",").concat(18.2," ").concat(20,",").concat(29," ").concat(20,",").concat(32," ").concat(17,",").concat(35," ").concat(17,",").concat(59," ").concat(15.8,",").concat(62," ").concat(15.8,",").concat(71,"\n ")},[U("animate",{attributeName:"fill",values:"".concat(l.value[0],";").concat(l.value[1],";").concat(l.value[0]),dur:"0.5s",begin:"0s",repeatCount:"indefinite"},null)]),U("polygon",{fill:l.value[1],points:"\n ".concat(35.6,",").concat(12.8," ").concat(46.4,",").concat(12.8," ").concat(43.4,",").concat(15.8," ").concat(38.6,",").concat(15.8,"\n ")},[U("animate",{attributeName:"fill",values:"".concat(l.value[1],";").concat(l.value[0],";").concat(l.value[1]),dur:"0.5s",begin:"0s",repeatCount:"indefinite"},null)]),U("polygon",{fill:l.value[0],points:"\n ".concat(17,",").concat(62," ").concat(17,",").concat(71," ").concat(15.2,",").concat(74," ").concat(15.2,",").concat(83," ").concat(15.8,",").concat(86," ").concat(15.8,",").concat(118," ").concat(16.4,",").concat(118," ").concat(16.4,",").concat(74," ").concat(17.6,",").concat(74," ").concat(17.6,",").concat(62,"\n ")},[U("animate",{attributeName:"fill",values:"".concat(l.value[0],";").concat(l.value[1],";transparent"),dur:"1s",begin:"0s",repeatCount:"indefinite"},null)])])}))])}}},render:function(){var t,e;return U("div",{ref:"customDv1",class:[this.ns.b(),this.ns.is("style-1",!0)],style:"--ibiz-style-1-offsetY:".concat(this.offsetY,"px")},[U("div",{class:this.ns.e("wrapper")},[this.renderBorder()]),U("div",{class:this.ns.e("content")},[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])])}}),on=v(an,(function(t){t.component(an.name,an)})),rn=_({name:"CustomDV2",props:{offsetX:{style:Number,default:0},offsetY:{style:Number,default:0},color:{type:Array,default:function(){return[]}}},setup:function(t){var e=u("custom-border"),n=[We()||"#0095ee","#95d8f8"],a=X(),o=X(0),r=X(0),c=G((function(){return Be(n,t.color||[])})),l=function(){ct((function(){var t=a.value;t&&(o.value=t.clientWidth,r.value=t.clientHeight)}))};return Q((function(){l(),ze(a.value,l),window.addEventListener("resize",l)})),rt((function(){Ye(a.value),window.removeEventListener("resize",l)})),{ns:e,customDv2:a,renderBorder:function(){var n=o.value-t.offsetX,a=r.value-t.offsetY;return U("svg",{class:[e.em("border-svg","container")],width:n,height:a,style:"--ibiz-style-2-offsetY:".concat(t.offsetY,"px")},[U("polygon",{fill:"var(--ibiz-screen-dashboard-custom-dv-bg)",points:"\n ".concat(15,", ").concat(15," \n ").concat(o.value-7-8,", ").concat(15," \n ").concat(o.value-7-8,", ").concat(r.value-7-t.offsetY-8," \n ").concat(15,", ").concat(r.value-7-8-t.offsetY,"\n ")},null),U("polyline",{stroke:c.value[0],points:"\n ".concat(10,", ").concat(10," \n ").concat(o.value-2-8,", ").concat(10," \n ").concat(o.value-2-8,", ").concat(r.value-2-t.offsetY-8," \n ").concat(10,", ").concat(r.value-2-t.offsetY-8," \n ").concat(10,", ").concat(10,"\n ")},null),U("polyline",{stroke:c.value[1],points:"\n ".concat(14,", ").concat(14," \n ").concat(o.value-6-8,", ").concat(14," \n ").concat(o.value-6-8,", ").concat(r.value-6-8-t.offsetY," \n ").concat(14,", ").concat(r.value-6-t.offsetY-8," \n ").concat(14,", ").concat(14,"\n ")},null),U("circle",{fill:c.value[0],cx:"".concat(19),cy:"".concat(19),r:"1"},null),U("circle",{fill:c.value[0],cx:"".concat(o.value-11-8),cy:"".concat(19),r:"1"},null),U("circle",{fill:c.value[0],cx:"".concat(o.value-11-8),cy:"".concat(r.value-11-8-t.offsetY),r:"1"},null),U("circle",{fill:c.value[0],cx:"".concat(19),cy:"".concat(r.value-11-8-t.offsetY),r:"1"},null)])}}},render:function(){var t,e;return U("div",{ref:"customDv2",class:[this.ns.b(),this.ns.is("style-2",!0)]},[this.renderBorder(),U("div",{class:this.ns.e("content")},[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])])}}),cn=v(rn,(function(t){t.component(rn.name,rn)})),ln=_({name:"CustomDV3",props:{offsetX:{style:Number,default:0},offsetY:{style:Number,default:0},color:{type:Array,default:function(){return[]}}},setup:function(t){var e=u("custom-border"),n=[We()||"#0095ee","#95d8f8"],a=X(),o=X(0),r=X(0),c=G((function(){return Be(n,t.color||[])})),l=function(){ct((function(){var t=a.value;t&&(o.value=t.clientWidth,r.value=t.clientHeight)}))};return Q((function(){l(),ze(a.value,l),window.addEventListener("resize",l)})),rt((function(){Ye(a.value),window.removeEventListener("resize",l)})),{ns:e,customDv3:a,renderBorder:function(){var n=o.value-t.offsetX,a=r.value-t.offsetY;return U("svg",{class:[e.em("border-svg","container")],width:n,height:a,style:"--ibiz-style-3-offsetY:".concat(t.offsetY,"px")},[U("polygon",{fill:"var(--ibiz-screen-dashboard-custom-dv-bg)",points:"\n ".concat(31,", ").concat(31," \n ").concat(o.value-24-8,", ").concat(31," \n ").concat(o.value-24-8,", ").concat(r.value-24-t.offsetY-8," \n ").concat(31,", ").concat(r.value-24-t.offsetY-8,"\n ")},null),U("polyline",{class:[e.e("bb3-line1")],stroke:c.value[0],points:"\n ".concat(12,", ").concat(12," \n ").concat(o.value-22-8,", ").concat(12," \n ").concat(o.value-22-8,", ").concat(r.value-22-t.offsetY-8," \n ").concat(12,", ").concat(r.value-22-t.offsetY-8," \n ").concat(12,", ").concat(12,"\n ")},null),U("polyline",{class:[e.e("bb3-line2")],stroke:c.value[1],points:"\n ".concat(18,", ").concat(18," \n ").concat(o.value-16-8,", ").concat(18," \n ").concat(o.value-16-8,", ").concat(r.value-16-t.offsetY-8," \n ").concat(18,", ").concat(r.value-16-t.offsetY-8," \n ").concat(18,", ").concat(18,"\n ")},null),U("polyline",{class:[e.e("bb3-line2")],stroke:c.value[1],points:"\n ".concat(24,", ").concat(24," \n ").concat(o.value-10-8,", ").concat(24," \n ").concat(o.value-10-8,", ").concat(r.value-10-t.offsetY-8," \n ").concat(24,", ").concat(r.value-10-t.offsetY-8," \n ").concat(24,", ").concat(24,"\n ")},null),U("polyline",{class:[e.e("bb3-line2")],stroke:c.value[1],points:"\n ".concat(30,", ").concat(30," \n ").concat(o.value-4-8,", ").concat(30," \n ").concat(o.value-4-8,", ").concat(r.value-4-t.offsetY-8," \n ").concat(30,", ").concat(r.value-4-t.offsetY-8," \n ").concat(30,", ").concat(30,"\n ")},null)])}}},render:function(){var t,e;return U("div",{ref:"customDv3",class:[this.ns.b(),this.ns.is("style-3",!0)]},[this.renderBorder(),U("div",{class:this.ns.e("content")},[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])])}}),un=v(ln,(function(t){t.component(ln.name,ln)})),sn=_({name:"CustomDV4",props:{offsetX:{style:Number,default:0},offsetY:{style:Number,default:0},color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1}},setup:function(t){var e,n,a=u("custom-border"),o=X(0),r=X(0),c=X(),l=X([]),i=function(){return new Promise((function(t){ct((function(){var e=c.value;o.value=e?e.offsetWidth:0,r.value=e?e.offsetHeight:0,e?o.value&&r.value||console.warn("DataV: Component width or height is 0px, rendering abnormality may occur!"):console.warn("DataV: Failed to get dom node, component rendering may be abnormal!"),t()}))}))},v=function(){if(!Array.isArray(t.color))return console.warn("颜色配置错误,需要一个数组"),void(l.value=[We()||"#123afc","rgba(0,0,255,0.7)"]);l.value=[];var e=[We()||"#123afc","rgba(0,0,255,0.7)"];if(t.color.length>0){for(var n=0;n0){for(var n=0;n0){for(var n=0;n0){for(var n=0;n0){for(var n=0;n.6?U("rect",{key:t.join(","),fill:f.value[0],x:t[0]-s.value,y:t[1]-s.value,width:i.value,height:i.value},[Math.random()>.6?U("animate",{attributeName:"fill",values:"".concat(f.value[0],";transparent"),dur:"1s",begin:2*Math.random(),repeatCount:"indefinite"},null):null]):null})),d.value[0]?U("rect",{fill:f.value[1],x:d.value[0][0]-i.value,y:d.value[0][1]-i.value,width:2*i.value,height:2*i.value},[U("animate",{attributeName:"width",values:"0;".concat(2*i.value),dur:"2s",repeatCount:"indefinite"},null),U("animate",{attributeName:"height",values:"0;".concat(2*i.value),dur:"2s",repeatCount:"indefinite"},null),U("animate",{attributeName:"x",values:"".concat(d.value[0][0],";").concat(d.value[0][0]-i.value),dur:"2s",repeatCount:"indefinite"},null),U("animate",{attributeName:"y",values:"".concat(d.value[0][1],";").concat(d.value[0][1]-i.value),dur:"2s",repeatCount:"indefinite"},null)]):null,d.value[1]?U("rect",{fill:f.value[1],x:d.value[1][0]-40,y:d.value[1][1]-i.value,width:40,height:2*i.value},[U("animate",{attributeName:"width",values:"0;40;0",dur:"2s",repeatCount:"indefinite"},null),U("animate",{attributeName:"x",values:"".concat(d.value[1][0],";").concat(d.value[1][0]-40,";").concat(d.value[1][0]),dur:"2s",repeatCount:"indefinite"},null)]):null])}}},render:function(){var t,e;return U("div",{ref:"customDecoration1",class:this.ns.b()},[this.renderBorder(),null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}}),Pn=v(Tn,(function(t){t.component(Tn.name,Tn)})),Nn=_({name:"CustomDecoration2",props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},dur:{type:Number,default:2}},setup:function(t){var e=u("custom-decoration-2"),n=[We()||"#0095ee","#95d8f8"],a=X(),o=X(0),r=X(0),c=X(0),l=X(0),i=X(0),s=X(0),v=G((function(){return Be(n,t.color||[])}));J((function(){return t.reverse}),(function(){t.reverse?(c.value=1,l.value=s.value,o.value=i.value/2,r.value=0):(c.value=i.value,l.value=1,o.value=0,r.value=s.value/2)}),{immediate:!0});var f=function(){ct((function(){var t=a.value;t&&(i.value=t.clientWidth,s.value=t.clientHeight)}))};return Q((function(){f(),ze(a.value,f),window.addEventListener("resize",f)})),rt((function(){Ye(a.value),window.removeEventListener("resize",f)})),{ns:e,customDecoration2:a,renderBorder:function(){return U("svg",{width:"".concat(i.value,"px"),height:"".concat(s.value,"px")},[U("rect",{x:o.value,y:r.value,width:c.value,height:l.value,fill:v.value[0]},[U("animate",{attributeName:t.reverse?"height":"width",from:"0",to:t.reverse?s.value:i.value,dur:"".concat(t.dur,"s"),calcMode:"spline",keyTimes:"0;1",keySplines:".42,0,.58,1",repeatCount:"indefinite"},null)]),U("rect",{x:o.value,y:r.value,width:"1",height:"1",fill:v.value[1]},[U("animate",{attributeName:t.reverse?"y":"x",from:"0",to:t.reverse?s.value:i.value,dur:"".concat(t.dur,"s"),calcMode:"spline",keyTimes:"0;1",keySplines:"0.42,0,0.58,1",repeatCount:"indefinite"},null)])])}}},render:function(){var t,e;return U("div",{ref:"customDecoration2",class:this.ns.b()},[this.renderBorder(),null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}}),On=v(Nn,(function(t){t.component(Nn.name,Nn)})),An=_({name:"CustomDecoration3",props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:1.2}},setup:function(t){var e=u("custom-decoration-3"),n=X(7),r=X([300,35]),c=X([1,1]),l=X(2),i=X(25),s=X(n.value/2),v=X([]),f=[We()||"#0095ee","#95d8f8"],d=X(),h=G((function(){return Be(f,t.color||[])})),p=function(){!function(){var t=o(r.value,2),e=t[0],n=t[1],c=e/(i.value+1),u=n/(l.value+1),s=Array.from({length:l.value}).fill(0).map((function(t,e){return Array.from({length:i.value}).fill(0).map((function(t,n){return[c*(n+1),u*(e+1)]}))}));v.value=s.reduce((function(t,e){return[].concat(a(t),a(e))}),[])}(),b()},m=Ve(d,(function(){p()}),(function(){p()})),y=m.width,g=m.height,b=function(){var t=o(r.value,2),e=t[0],n=t[1];c.value=[y.value/e,g.value/n]};return{ns:e,customDecoration3:d,renderBorder:function(){return U("svg",{width:"".concat(r.value[0],"px"),height:"".concat(r.value[1],"px"),style:"transform:scale(".concat(c.value[0],",").concat(c.value[1],");")},[v.value.map((function(t){return U("rect",{key:t.join(),fill:h.value[0],x:t[0]-s.value,y:t[1]-s.value,width:n.value,height:n.value},[Math.random()>.6?U("animate",{attributeName:"fill",values:"".concat(h.value.join(";")),dur:"".concat(Math.random()+1,"s"),begin:2*Math.random(),repeatCount:"indefinite"},null):null])}))])}}},render:function(){var t,e;return U("div",{ref:"customDecoration3",class:this.ns.b()},[this.renderBorder(),null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}}),In=v(An,(function(t){t.component(An.name,An)})),Bn=_({name:"CustomDecoration4",props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},dur:{type:Number,default:1.2}},setup:function(t){var e=u("custom-decoration-4"),n=[We()||"#0095ee","#95d8f8"],a=X(),o=X(0),r=X(0),c=G((function(){return Be(n,t.color||[])})),l=function(){ct((function(){var t=a.value;t&&(o.value=t.clientWidth,r.value=t.clientHeight)}))};return Q((function(){l(),ze(a.value,l),window.addEventListener("resize",l)})),rt((function(){Ye(a.value),window.removeEventListener("resize",l)})),{ns:e,customDecoration4:a,renderBorder:function(){return U("div",{class:"container ".concat(t.reverse?"reverse":"normal"),style:t.reverse?"width:".concat(o.value,"px;height:5px;animation-duration:").concat(t.dur,"s"):"width:5px;height:".concat(r.value,"px;animation-duration:").concat(t.dur,"s")},[U("svg",{width:t.reverse?o.value:5,height:t.reverse?5:r.value},[U("polyline",{stroke:c.value[0],points:t.reverse?"0, 2.5 ".concat(o.value,", 2.5"):"2.5, 0 2.5, ".concat(r.value)},null),U("polyline",{class:"bold-line",stroke:c.value[1],"stroke-width":"3","stroke-dasharray":"20, 80","stroke-dashoffset":"-30",points:t.reverse?"0, 2.5 ".concat(o.value,", 2.5"):"2.5, 0 2.5, ".concat(r.value)},null)])])}}},render:function(){var t,e;return U("div",{ref:"customDecoration4",class:this.ns.b()},[this.renderBorder(),null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}}),zn=v(Bn,(function(t){t.component(Bn.name,Bn)})),Yn=_({name:"CustomDecoration5",props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:1.2}},setup:function(t){var e=u("custom-decoration-5"),n=[We()||"#0095ee","#95d8f8"],a=X(),o=X(0),r=X(0),c=X(""),l=X(""),i=X(0),s=X(0),v=G((function(){return Be(n,t.color||[])})),f=function(){ct((function(){var t,e,n,u,v=a.value;v&&(o.value=v.clientWidth,r.value=v.clientHeight,t=[[0,.2*r.value],[.18*o.value,.2*r.value],[.2*o.value,.4*r.value],[.25*o.value,.4*r.value],[.27*o.value,.6*r.value],[.72*o.value,.6*r.value],[.75*o.value,.4*r.value],[.8*o.value,.4*r.value],[.82*o.value,.2*r.value],[o.value,.2*r.value]],e=[[.3*o.value,.8*r.value],[.7*o.value,.8*r.value]],n=je(t),u=je(e),c.value=t.map((function(t){return t.join(",")})).join(" "),l.value=e.map((function(t){return t.join(",")})).join(" "),i.value=n,s.value=u)}))};return Q((function(){f(),ze(a.value,f),window.addEventListener("resize",f)})),rt((function(){Ye(a.value),window.removeEventListener("resize",f)})),{ns:e,customDecoration5:a,renderBorder:function(){return U("svg",{width:o.value,height:r.value},[U("polyline",{fill:"transparent",stroke:v.value[0],"stroke-width":"3",points:c.value},[U("animate",{attributeName:"stroke-dasharray",attributeType:"XML",from:"0, ".concat(i.value/2,", 0, ").concat(i.value/2),to:"0, 0, ".concat(i.value,", 0"),dur:"".concat(t.dur,"s"),begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.4,1,0.49,0.98",repeatCount:"indefinite"},null)]),U("polyline",{fill:"transparent",stroke:v.value[1],"stroke-width":"2",points:l.value},[U("animate",{attributeName:"stroke-dasharray",attributeType:"XML",from:"0, ".concat(s.value/2,", 0, ").concat(s.value/2),to:"0, 0, ".concat(s.value,", 0"),dur:"".concat(t.dur,"s"),begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:".4,1,.49,.98",repeatCount:"indefinite"},null)])])}}},render:function(){var t,e;return U("div",{ref:"customDecoration5",class:this.ns.b()},[this.renderBorder(),null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}}),Wn=v(Yn,(function(t){t.component(Yn.name,Yn)})),jn=_({name:"CustomDecoration6",props:{color:{type:Array,default:function(){return[]}}},setup:function(t){var e=arguments,n=u("custom-decoration-6"),r=X(7),c=X([300,35]),l=X([1,1]),i=X(1),s=X(40),v=X(r.value/2),f=X([]),d=X([]),h=X([]),p=X([]),m=X(),y=[We()||"#0095ee","#95d8f8"],g=G((function(){return Be(y,t.color||[])})),b=function(t,n){return 1===e.length?Number.parseInt((Math.random()*t+1).toString(),10):Number.parseInt((Math.random()*(n-t+1)+t).toString(),10)},w=function(){!function(){var t=o(c.value,2),e=t[0],n=t[1],r=e/(s.value+1),l=n/(i.value+1),u=Array.from({length:i.value}).fill(0).map((function(t,e){return Array.from({length:s.value}).fill(0).map((function(t,n){return[r*(n+1),l*(e+1)]}))}));f.value=u.reduce((function(t,e){return[].concat(a(t),a(e))}),[]);var v=Array.from({length:i.value*s.value}).fill(0).map((function(){return Math.random()>.8?b(.7*n,n):b(.2*n,.5*n)}));d.value=v,h.value=Array.from({length:i.value*s.value}).fill(0).map((function(t,e){return v[e]*Math.random()})),p.value=Array.from({length:i.value*s.value}).fill(0).map((function(){return Math.random()+1.5}))}(),L()},C=Ve(m,(function(){w()}),(function(){w()})),k=C.width,x=C.height,L=function(){var t=o(c.value,2),e=t[0],n=t[1];l.value=[k.value/e,x.value/n]};return{ns:n,customDecoration6:m,renderBorder:function(){return U("svg",{width:"".concat(c.value[0],"px"),height:"".concat(c.value[1],"px"),style:"transform:scale(".concat(l.value[0],",").concat(l.value[1],");")},[f.value.map((function(t,e){return U("rect",{key:e,fill:g.value[Math.random()>.5?0:1],x:t[0]-v.value,y:t[1]-d.value[e]/2,width:r.value,height:d.value[e]},[U("animate",{attributeName:"y",values:"".concat(t[1]-h.value[e]/2,";").concat(t[1]-d.value[e]/2,";").concat(t[1]-h.value[e]/2),dur:"".concat(p.value[e],"s"),keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"},null),U("animate",{attributeName:"height",values:"".concat(h.value[e],";").concat(d.value[e],";").concat(h.value[e]),dur:"".concat(p.value[e],"s"),keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"},null)])}))])}}},render:function(){var t,e;return U("div",{ref:"customDecoration6",class:this.ns.b()},[this.renderBorder(),null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}}),Hn=v(jn,(function(t){t.component(jn.name,jn)})),Fn=_({name:"CustomDecoration11",props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:1.2}},setup:function(t){var e=u("custom-decoration-11"),n=[We()||"#0095ee","#95d8f8"],a=X(),o=X(0),r=X(0),c=G((function(){return Be(n,t.color||[])})),l=function(){ct((function(){var t=a.value;t&&(o.value=t.clientWidth,r.value=t.clientHeight)}))};return Q((function(){l(),ze(a.value,l),window.addEventListener("resize",l)})),rt((function(){Ye(a.value),window.removeEventListener("resize",l)})),{ns:e,customDecoration5:a,renderBorder:function(){return U("svg",{class:[e.em("border-svg","container")],width:o.value,height:r.value},[U("polygon",{fill:Ie(c.value[1]||n[1],10)||"",stroke:c.value[1],points:"20 10, 25 4, 55 4 60 10"},null),U("polygon",{fill:Ie(c.value[1]||n[1],10)||"",stroke:c.value[1],points:"20 ".concat(r.value-10,", 25 ").concat(r.value-4,", 55 ").concat(r.value-4," 60 ").concat(r.value-10)},null),U("polygon",{fill:Ie(c.value[1]||n[1],10)||"",stroke:c.value[1],points:"".concat(o.value-20," 10, ").concat(o.value-25," 4, ").concat(o.value-55," 4 ").concat(o.value-60," 10")},null),U("polygon",{fill:Ie(c.value[1]||n[1],10)||"",stroke:c.value[1],points:"".concat(o.value-20," ").concat(r.value-10,", ").concat(o.value-25," ").concat(r.value-4,", ").concat(o.value-55," ").concat(r.value-4," ").concat(o.value-60," ").concat(r.value-10)},null),U("polygon",{fill:Ie(c.value[0]||n[0],20)||"",stroke:c.value[0],points:"\n 20 10, 5 ".concat(r.value/2," 20 ").concat(r.value-10,"\n ").concat(o.value-20," ").concat(r.value-10," ").concat(o.value-5," ").concat(r.value/2," ").concat(o.value-20," 10\n ")},null),U("polyline",{fill:"transparent",stroke:Ie(c.value[0]||n[0],70)||"",points:"25 18, 15 ".concat(r.value/2," 25 ").concat(r.value-18)},null),U("polyline",{fill:"transparent",stroke:Ie(c.value[0]||n[0],70)||"",points:"".concat(o.value-25," 18, ").concat(o.value-15," ").concat(r.value/2," ").concat(o.value-25," ").concat(r.value-18)},null)])}}},render:function(){var t,e;return U("div",{ref:"customDecoration5",class:this.ns.b()},[this.renderBorder(),U("div",{class:this.ns.e("decoration-content")},[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])])}}),Vn=v(Fn,(function(t){t.component(Fn.name,Fn)}));t("default",{install:function(t){t.use(xt),t.use(St),t.use(Pt),t.use(Ft),t.use(Ut),t.use(Qt),t.use(te),t.use(re),t.use(he),t.use(ge),t.use(Re),t.use(Xe),t.use(Ke),t.use(nn),t.use(on),t.use(cn),t.use(un),t.use(vn),t.use(dn),t.use(pn),t.use(yn),t.use(bn),t.use(Cn),t.use(xn),t.use(En),t.use(Dn),t.use(Mn),t.use(Pn),t.use(On),t.use(In),t.use(zn),t.use(Wn),t.use(Hn),t.use(Vn)}})}}}))}(); diff --git a/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/data-view/0.0.4/polyfills.legacy.js b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/data-view/0.0.4/polyfills.legacy.js new file mode 100644 index 0000000000000000000000000000000000000000..79866f89af1148600df79d18f0c6fdc9165f54a9 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/@ibiz-template-plugin/data-view/0.0.4/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)||r("object"==typeof t&&t)||function(){return this}()||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,v=Object.getOwnPropertyDescriptor,h=v&&!l.call({1:2},1);s.f=h?function(t){var r=v(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)}},O=S,E=O({}.toString),x=O("".slice),j=function(t){return x(E(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},N=k,C=TypeError,L=function(t){if(N(t))throw new C("Can't call method on "+t);return t},F=A,M=L,D=function(t){return F(M(t))},_="object"==typeof document&&document.all,U=void 0===_&&void 0!==_?function(t){return"function"==typeof t||t===_}:function(t){return"function"==typeof t},$=U,B=function(t){return"object"==typeof t?null!==t:$(t)},G=e,W=U,z=function(t,r){return arguments.length<2?(e=G[t],W(e)?e:void 0):G[t]&&G[t][r];var e},V=S({}.isPrototypeOf),J=e.navigator,H=J&&J.userAgent,q=H?String(H):"",K=e,Y=q,X=K.process,Q=K.Deno,Z=X&&X.versions||Q&&Q.version,tt=Z&&Z.v8;tt&&(d=(p=tt.split("."))[0]>0&&p[0]<4?1:+(p[0]+p[1])),!d&&Y&&(!(p=Y.match(/Edge\/(\d+)/))||p[1]>=74)&&(p=Y.match(/Chrome\/(\d+)/))&&(d=+p[1]);var rt=d,et=rt,nt=o,ot=e.String,it=!!Object.getOwnPropertySymbols&&!nt((function(){var t=Symbol("symbol detection");return!ot(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&et&&et<41})),ut=it&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=z,ct=U,ft=V,st=Object,lt=ut?function(t){return"symbol"==typeof t}:function(t){var r=at("Symbol");return ct(r)&&ft(r.prototype,st(t))},vt=String,ht=function(t){try{return vt(t)}catch(r){return"Object"}},pt=U,dt=ht,gt=TypeError,yt=function(t){if(pt(t))return t;throw new gt(dt(t)+" is not a function")},mt=yt,bt=k,wt=function(t,r){var e=t[r];return bt(e)?void 0:mt(e)},St=f,Ot=U,Et=B,xt=TypeError,jt=function(t,r){var e,n;if("string"===r&&Ot(e=t.toString)&&!Et(n=St(e,t)))return n;if(Ot(e=t.valueOf)&&!Et(n=St(e,t)))return n;if("string"!==r&&Ot(e=t.toString)&&!Et(n=St(e,t)))return n;throw new xt("Can't convert object to primitive value")},It={exports:{}},Tt=e,Pt=Object.defineProperty,Rt=function(t,r){try{Pt(Tt,t,{value:r,configurable:!0,writable:!0})}catch(e){Tt[t]=r}return r},At=e,kt=Rt,Nt="__core-js_shared__",Ct=It.exports=At[Nt]||kt(Nt,{});(Ct.versions||(Ct.versions=[])).push({version:"3.38.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Lt=It.exports,Ft=Lt,Mt=function(t,r){return Ft[t]||(Ft[t]=r||{})},Dt=L,_t=Object,Ut=function(t){return _t(Dt(t))},$t=Ut,Bt=S({}.hasOwnProperty),Gt=Object.hasOwn||function(t,r){return Bt($t(t),r)},Wt=S,zt=0,Vt=Math.random(),Jt=Wt(1..toString),Ht=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Jt(++zt+Vt,36)},qt=Mt,Kt=Gt,Yt=Ht,Xt=it,Qt=ut,Zt=e.Symbol,tr=qt("wks"),rr=Qt?Zt.for||Zt:Zt&&Zt.withoutSetter||Yt,er=function(t){return Kt(tr,t)||(tr[t]=Xt&&Kt(Zt,t)?Zt[t]:rr("Symbol."+t)),tr[t]},nr=f,or=B,ir=lt,ur=wt,ar=jt,cr=TypeError,fr=er("toPrimitive"),sr=function(t,r){if(!or(t)||ir(t))return t;var e,n=ur(t,fr);if(n){if(void 0===r&&(r="default"),e=nr(n,t,r),!or(e)||ir(e))return e;throw new cr("Can't convert object to primitive value")}return void 0===r&&(r="number"),ar(t,r)},lr=sr,vr=lt,hr=function(t){var r=lr(t,"string");return vr(r)?r:r+""},pr=B,dr=e.document,gr=pr(dr)&&pr(dr.createElement),yr=function(t){return gr?dr.createElement(t):{}},mr=yr,br=!i&&!o((function(){return 7!==Object.defineProperty(mr("div"),"a",{get:function(){return 7}}).a})),wr=i,Sr=f,Or=s,Er=g,xr=D,jr=hr,Ir=Gt,Tr=br,Pr=Object.getOwnPropertyDescriptor;n.f=wr?Pr:function(t,r){if(t=xr(t),r=jr(r),Tr)try{return Pr(t,r)}catch(e){}if(Ir(t,r))return Er(!Sr(Or.f,t,r),t[r])};var Rr={},Ar=i&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),kr=B,Nr=String,Cr=TypeError,Lr=function(t){if(kr(t))return t;throw new Cr(Nr(t)+" is not an object")},Fr=i,Mr=br,Dr=Ar,_r=Lr,Ur=hr,$r=TypeError,Br=Object.defineProperty,Gr=Object.getOwnPropertyDescriptor,Wr="enumerable",zr="configurable",Vr="writable";Rr.f=Fr?Dr?function(t,r,e){if(_r(t),r=Ur(r),_r(e),"function"==typeof t&&"prototype"===r&&"value"in e&&Vr in e&&!e[Vr]){var n=Gr(t,r);n&&n[Vr]&&(t[r]=e.value,e={configurable:zr in e?e[zr]:n[zr],enumerable:Wr in e?e[Wr]:n[Wr],writable:!1})}return Br(t,r,e)}:Br:function(t,r,e){if(_r(t),r=Ur(r),_r(e),Mr)try{return Br(t,r,e)}catch(n){}if("get"in e||"set"in e)throw new $r("Accessors not supported");return"value"in e&&(t[r]=e.value),t};var Jr=Rr,Hr=g,qr=i?function(t,r,e){return Jr.f(t,r,Hr(1,e))}:function(t,r,e){return t[r]=e,t},Kr={exports:{}},Yr=i,Xr=Gt,Qr=Function.prototype,Zr=Yr&&Object.getOwnPropertyDescriptor,te=Xr(Qr,"name"),re={EXISTS:te,PROPER:te&&"something"===function(){}.name,CONFIGURABLE:te&&(!Yr||Yr&&Zr(Qr,"name").configurable)},ee=U,ne=Lt,oe=S(Function.toString);ee(ne.inspectSource)||(ne.inspectSource=function(t){return oe(t)});var ie,ue,ae,ce=ne.inspectSource,fe=U,se=e.WeakMap,le=fe(se)&&/native code/.test(String(se)),ve=Ht,he=Mt("keys"),pe=function(t){return he[t]||(he[t]=ve(t))},de={},ge=le,ye=e,me=B,be=qr,we=Gt,Se=Lt,Oe=pe,Ee=de,xe="Object already initialized",je=ye.TypeError,Ie=ye.WeakMap;if(ge||Se.state){var Te=Se.state||(Se.state=new Ie);Te.get=Te.get,Te.has=Te.has,Te.set=Te.set,ie=function(t,r){if(Te.has(t))throw new je(xe);return r.facade=t,Te.set(t,r),r},ue=function(t){return Te.get(t)||{}},ae=function(t){return Te.has(t)}}else{var Pe=Oe("state");Ee[Pe]=!0,ie=function(t,r){if(we(t,Pe))throw new je(xe);return r.facade=t,be(t,Pe,r),r},ue=function(t){return we(t,Pe)?t[Pe]:{}},ae=function(t){return we(t,Pe)}}var Re={set:ie,get:ue,has:ae,enforce:function(t){return ae(t)?ue(t):ie(t,{})},getterFor:function(t){return function(r){var e;if(!me(r)||(e=ue(r)).type!==t)throw new je("Incompatible receiver, "+t+" required");return e}}},Ae=S,ke=o,Ne=U,Ce=Gt,Le=i,Fe=re.CONFIGURABLE,Me=ce,De=Re.enforce,_e=Re.get,Ue=String,$e=Object.defineProperty,Be=Ae("".slice),Ge=Ae("".replace),We=Ae([].join),ze=Le&&!ke((function(){return 8!==$e((function(){}),"length",{value:8}).length})),Ve=String(String).split("String"),Je=Kr.exports=function(t,r,e){"Symbol("===Be(Ue(r),0,7)&&(r="["+Ge(Ue(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!Ce(t,"name")||Fe&&t.name!==r)&&(Le?$e(t,"name",{value:r,configurable:!0}):t.name=r),ze&&e&&Ce(e,"arity")&&t.length!==e.arity&&$e(t,"length",{value:e.arity});try{e&&Ce(e,"constructor")&&e.constructor?Le&&$e(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=De(t);return Ce(n,"source")||(n.source=We(Ve,"string"==typeof r?r:"")),t};Function.prototype.toString=Je((function(){return Ne(this)&&_e(this).source||Me(this)}),"toString");var He=Kr.exports,qe=U,Ke=Rr,Ye=He,Xe=Rt,Qe=function(t,r,e,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:r;if(qe(e)&&Ye(e,i,n),n.global)o?t[r]=e:Xe(r,e);else{try{n.unsafe?t[r]&&(o=!0):delete t[r]}catch(u){}o?t[r]=e:Ke.f(t,r,{value:e,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},Ze={},tn=Math.ceil,rn=Math.floor,en=Math.trunc||function(t){var r=+t;return(r>0?rn:tn)(r)},nn=function(t){var r=+t;return r!=r||0===r?0:en(r)},on=nn,un=Math.max,an=Math.min,cn=function(t,r){var e=on(t);return e<0?un(e+r,0):an(e,r)},fn=nn,sn=Math.min,ln=function(t){var r=fn(t);return r>0?sn(r,9007199254740991):0},vn=ln,hn=function(t){return vn(t.length)},pn=D,dn=cn,gn=hn,yn=function(t){return function(r,e,n){var o=pn(r),i=gn(o);if(0===i)return!t&&-1;var u,a=dn(n,i);if(t&&e!=e){for(;i>a;)if((u=o[a++])!=u)return!0}else for(;i>a;a++)if((t||a in o)&&o[a]===e)return t||a||0;return!t&&-1}},mn={includes:yn(!0),indexOf:yn(!1)},bn=Gt,wn=D,Sn=mn.indexOf,On=de,En=S([].push),xn=function(t,r){var e,n=wn(t),o=0,i=[];for(e in n)!bn(On,e)&&bn(n,e)&&En(i,e);for(;r.length>o;)bn(n,e=r[o++])&&(~Sn(i,e)||En(i,e));return i},jn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],In=xn,Tn=jn.concat("length","prototype");Ze.f=Object.getOwnPropertyNames||function(t){return In(t,Tn)};var Pn={};Pn.f=Object.getOwnPropertySymbols;var Rn=z,An=Ze,kn=Pn,Nn=Lr,Cn=S([].concat),Ln=Rn("Reflect","ownKeys")||function(t){var r=An.f(Nn(t)),e=kn.f;return e?Cn(r,e(t)):r},Fn=Gt,Mn=Ln,Dn=n,_n=Rr,Un=function(t,r,e){for(var n=Mn(r),o=_n.f,i=Dn.f,u=0;uu;)Oo.f(t,e=o[u++],n[e]);return t};var Io,To=z("document","documentElement"),Po=Lr,Ro=go,Ao=jn,ko=de,No=To,Co=yr,Lo="prototype",Fo="script",Mo=pe("IE_PROTO"),Do=function(){},_o=function(t){return"<"+Fo+">"+t+""},Uo=function(t){t.write(_o("")),t.close();var r=t.parentWindow.Object;return t=null,r},$o=function(){try{Io=new ActiveXObject("htmlfile")}catch(o){}var t,r,e;$o="undefined"!=typeof document?document.domain&&Io?Uo(Io):(r=Co("iframe"),e="java"+Fo+":",r.style.display="none",No.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(_o("document.F=Object")),t.close(),t.F):Uo(Io);for(var n=Ao.length;n--;)delete $o[Lo][Ao[n]];return $o()};ko[Mo]=!0;var Bo=Object.create||function(t,r){var e;return null!==t?(Do[Lo]=Po(t),e=new Do,Do[Lo]=null,e[Mo]=t):e=$o(),void 0===r?e:Ro.f(e,r)},Go={},Wo=S([].slice),zo=j,Vo=D,Jo=Ze.f,Ho=Wo,qo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Go.f=function(t){return qo&&"Window"===zo(t)?function(t){try{return Jo(t)}catch(r){return Ho(qo)}}(t):Jo(Vo(t))};var Ko=He,Yo=Rr,Xo=function(t,r,e){return e.get&&Ko(e.get,r,{getter:!0}),e.set&&Ko(e.set,r,{setter:!0}),Yo.f(t,r,e)},Qo={},Zo=er;Qo.f=Zo;var ti=e,ri=ti,ei=Gt,ni=Qo,oi=Rr.f,ii=function(t){var r=ri.Symbol||(ri.Symbol={});ei(r,t)||oi(r,t,{value:ni.f(t)})},ui=f,ai=z,ci=er,fi=Qe,si=function(){var t=ai("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,n=ci("toPrimitive");r&&!r[n]&&fi(r,n,(function(t){return ui(e,this)}),{arity:1})},li=Rr.f,vi=Gt,hi=er("toStringTag"),pi=function(t,r,e){t&&!e&&(t=t.prototype),t&&!vi(t,hi)&&li(t,hi,{configurable:!0,value:r})},di=j,gi=S,yi=function(t){if("Function"===di(t))return gi(t)},mi=yt,bi=u,wi=yi(yi.bind),Si=function(t,r){return mi(t),void 0===r?t:bi?wi(t,r):function(){return t.apply(r,arguments)}},Oi=j,Ei=Array.isArray||function(t){return"Array"===Oi(t)},xi=S,ji=o,Ii=U,Ti=lo,Pi=ce,Ri=function(){},Ai=z("Reflect","construct"),ki=/^\s*(?:class|function)\b/,Ni=xi(ki.exec),Ci=!ki.test(Ri),Li=function(t){if(!Ii(t))return!1;try{return Ai(Ri,[],t),!0}catch(r){return!1}},Fi=function(t){if(!Ii(t))return!1;switch(Ti(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ci||!!Ni(ki,Pi(t))}catch(r){return!0}};Fi.sham=!0;var Mi=!Ai||ji((function(){var t;return Li(Li.call)||!Li(Object)||!Li((function(){t=!0}))||t}))?Fi:Li,Di=Ei,_i=Mi,Ui=B,$i=er("species"),Bi=Array,Gi=function(t){var r;return Di(t)&&(r=t.constructor,(_i(r)&&(r===Bi||Di(r.prototype))||Ui(r)&&null===(r=r[$i]))&&(r=void 0)),void 0===r?Bi:r},Wi=function(t,r){return new(Gi(t))(0===r?0:r)},zi=Si,Vi=A,Ji=Ut,Hi=hn,qi=Wi,Ki=S([].push),Yi=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 v,h,p=Ji(c),d=Vi(p),g=Hi(d),y=zi(f,s),m=0,b=l||qi,w=r?b(c,g):e||u?b(c,0):void 0;g>m;m++)if((a||m in d)&&(h=y(v=d[m],m,p),t))if(r)w[m]=h;else if(h)switch(t){case 3:return!0;case 5:return v;case 6:return m;case 2:Ki(w,v)}else switch(t){case 4:return!1;case 7:Ki(w,v)}return i?-1:n||o?o:w}},Xi={forEach:Yi(0),map:Yi(1),filter:Yi(2),some:Yi(3),every:Yi(4),find:Yi(5),findIndex:Yi(6),filterReject:Yi(7)},Qi=eo,Zi=e,tu=f,ru=S,eu=i,nu=it,ou=o,iu=Gt,uu=V,au=Lr,cu=D,fu=hr,su=po,lu=g,vu=Bo,hu=bo,pu=Ze,du=Go,gu=Pn,yu=n,mu=Rr,bu=go,wu=s,Su=Qe,Ou=Xo,Eu=Mt,xu=de,ju=Ht,Iu=er,Tu=Qo,Pu=ii,Ru=si,Au=pi,ku=Re,Nu=Xi.forEach,Cu=pe("hidden"),Lu="Symbol",Fu="prototype",Mu=ku.set,Du=ku.getterFor(Lu),_u=Object[Fu],Uu=Zi.Symbol,$u=Uu&&Uu[Fu],Bu=Zi.RangeError,Gu=Zi.TypeError,Wu=Zi.QObject,zu=yu.f,Vu=mu.f,Ju=du.f,Hu=wu.f,qu=ru([].push),Ku=Eu("symbols"),Yu=Eu("op-symbols"),Xu=Eu("wks"),Qu=!Wu||!Wu[Fu]||!Wu[Fu].findChild,Zu=function(t,r,e){var n=zu(_u,r);n&&delete _u[r],Vu(t,r,e),n&&t!==_u&&Vu(_u,r,n)},ta=eu&&ou((function(){return 7!==vu(Vu({},"a",{get:function(){return Vu(this,"a",{value:7}).a}})).a}))?Zu:Vu,ra=function(t,r){var e=Ku[t]=vu($u);return Mu(e,{type:Lu,tag:t,description:r}),eu||(e.description=r),e},ea=function(t,r,e){t===_u&&ea(Yu,r,e),au(t);var n=fu(r);return au(e),iu(Ku,n)?(e.enumerable?(iu(t,Cu)&&t[Cu][n]&&(t[Cu][n]=!1),e=vu(e,{enumerable:lu(0,!1)})):(iu(t,Cu)||Vu(t,Cu,lu(1,vu(null))),t[Cu][n]=!0),ta(t,n,e)):Vu(t,n,e)},na=function(t,r){au(t);var e=cu(r),n=hu(e).concat(aa(e));return Nu(n,(function(r){eu&&!tu(oa,e,r)||ea(t,r,e[r])})),t},oa=function(t){var r=fu(t),e=tu(Hu,this,r);return!(this===_u&&iu(Ku,r)&&!iu(Yu,r))&&(!(e||!iu(this,r)||!iu(Ku,r)||iu(this,Cu)&&this[Cu][r])||e)},ia=function(t,r){var e=cu(t),n=fu(r);if(e!==_u||!iu(Ku,n)||iu(Yu,n)){var o=zu(e,n);return!o||!iu(Ku,n)||iu(e,Cu)&&e[Cu][n]||(o.enumerable=!0),o}},ua=function(t){var r=Ju(cu(t)),e=[];return Nu(r,(function(t){iu(Ku,t)||iu(xu,t)||qu(e,t)})),e},aa=function(t){var r=t===_u,e=Ju(r?Yu:cu(t)),n=[];return Nu(e,(function(t){!iu(Ku,t)||r&&!iu(_u,t)||qu(n,Ku[t])})),n};nu||(Uu=function(){if(uu($u,this))throw new Gu("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?su(arguments[0]):void 0,r=ju(t),e=function(t){var n=void 0===this?Zi:this;n===_u&&tu(e,Yu,t),iu(n,Cu)&&iu(n[Cu],r)&&(n[Cu][r]=!1);var o=lu(1,t);try{ta(n,r,o)}catch(i){if(!(i instanceof Bu))throw i;Zu(n,r,o)}};return eu&&Qu&&ta(_u,r,{configurable:!0,set:e}),ra(r,t)},Su($u=Uu[Fu],"toString",(function(){return Du(this).tag})),Su(Uu,"withoutSetter",(function(t){return ra(ju(t),t)})),wu.f=oa,mu.f=ea,bu.f=na,yu.f=ia,pu.f=du.f=ua,gu.f=aa,Tu.f=function(t){return ra(Iu(t),t)},eu&&(Ou($u,"description",{configurable:!0,get:function(){return Du(this).description}}),Su(_u,"propertyIsEnumerable",oa,{unsafe:!0}))),Qi({global:!0,constructor:!0,wrap:!0,forced:!nu,sham:!nu},{Symbol:Uu}),Nu(hu(Xu),(function(t){Pu(t)})),Qi({target:Lu,stat:!0,forced:!nu},{useSetter:function(){Qu=!0},useSimple:function(){Qu=!1}}),Qi({target:"Object",stat:!0,forced:!nu,sham:!eu},{create:function(t,r){return void 0===r?vu(t):na(vu(t),r)},defineProperty:ea,defineProperties:na,getOwnPropertyDescriptor:ia}),Qi({target:"Object",stat:!0,forced:!nu},{getOwnPropertyNames:ua}),Ru(),Au(Uu,Lu),xu[Cu]=!0;var ca=it&&!!Symbol.for&&!!Symbol.keyFor,fa=eo,sa=z,la=Gt,va=po,ha=Mt,pa=ca,da=ha("string-to-symbol-registry"),ga=ha("symbol-to-string-registry");fa({target:"Symbol",stat:!0,forced:!pa},{for:function(t){var r=va(t);if(la(da,r))return da[r];var e=sa("Symbol")(r);return da[r]=e,ga[e]=r,e}});var ya=eo,ma=Gt,ba=lt,wa=ht,Sa=ca,Oa=Mt("symbol-to-string-registry");ya({target:"Symbol",stat:!0,forced:!Sa},{keyFor:function(t){if(!ba(t))throw new TypeError(wa(t)+" is not a symbol");if(ma(Oa,t))return Oa[t]}});var Ea=u,xa=Function.prototype,ja=xa.apply,Ia=xa.call,Ta="object"==typeof Reflect&&Reflect.apply||(Ea?Ia.bind(ja):function(){return Ia.apply(ja,arguments)}),Pa=Ei,Ra=U,Aa=j,ka=po,Na=S([].push),Ca=eo,La=z,Fa=Ta,Ma=f,Da=S,_a=o,Ua=U,$a=lt,Ba=Wo,Ga=function(t){if(Ra(t))return t;if(Pa(t)){for(var r=t.length,e=[],n=0;ni&&pf(o,arguments[i]),o}));l.prototype=f,"Error"!==a?ff?ff(l,s):sf(l,s,{name:!0}):gf&&o in c&&(lf(l,c,o),lf(l,c,"prepareStackTrace")),sf(l,c);try{f.name!==a&&af(f,"name",a),f.constructor=l}catch(v){}return l}},wf="WebAssembly",Sf=e[wf],Of=7!==new Error("e",{cause:7}).cause,Ef=function(t,r){var e={};e[t]=bf(t,r,Of),yf({global:!0,constructor:!0,arity:1,forced:Of},e)},xf=function(t,r){if(Sf&&Sf[t]){var e={};e[t]=bf(wf+"."+t,r,Of),yf({target:wf,stat:!0,constructor:!0,arity:1,forced:Of},e)}};Ef("Error",(function(t){return function(r){return mf(t,this,arguments)}})),Ef("EvalError",(function(t){return function(r){return mf(t,this,arguments)}})),Ef("RangeError",(function(t){return function(r){return mf(t,this,arguments)}})),Ef("ReferenceError",(function(t){return function(r){return mf(t,this,arguments)}})),Ef("SyntaxError",(function(t){return function(r){return mf(t,this,arguments)}})),Ef("TypeError",(function(t){return function(r){return mf(t,this,arguments)}})),Ef("URIError",(function(t){return function(r){return mf(t,this,arguments)}})),xf("CompileError",(function(t){return function(r){return mf(t,this,arguments)}})),xf("LinkError",(function(t){return function(r){return mf(t,this,arguments)}})),xf("RuntimeError",(function(t){return function(r){return mf(t,this,arguments)}}));var jf=TypeError,If=function(t){if(t>9007199254740991)throw jf("Maximum allowed index exceeded");return t},Tf=i,Pf=Rr,Rf=g,Af=function(t,r,e){Tf?Pf.f(t,r,Rf(0,e)):t[r]=e},kf=o,Nf=rt,Cf=er("species"),Lf=function(t){return Nf>=51||!kf((function(){var r=[];return(r.constructor={})[Cf]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},Ff=eo,Mf=o,Df=Ei,_f=B,Uf=Ut,$f=hn,Bf=If,Gf=Af,Wf=Wi,zf=Lf,Vf=rt,Jf=er("isConcatSpreadable"),Hf=Vf>=51||!Mf((function(){var t=[];return t[Jf]=!1,t.concat()[0]!==t})),qf=function(t){if(!_f(t))return!1;var r=t[Jf];return void 0!==r?!!r:Df(t)};Ff({target:"Array",proto:!0,arity:1,forced:!Hf||!zf("concat")},{concat:function(t){var r,e,n,o,i,u=Uf(this),a=Wf(u,0),c=0;for(r=-1,n=arguments.length;r1?arguments[1]:void 0,e),i=n>2?arguments[2]:void 0,u=void 0===i?e:Yf(i,e);u>o;)r[o++]=t;return r},is=ns;eo({target:"Array",proto:!0},{fill:os}),is("fill");var us=Xi.filter;eo({target:"Array",proto:!0,forced:!Lf("filter")},{filter:function(t){return us(this,t,arguments.length>1?arguments[1]:void 0)}});var as=eo,cs=Xi.find,fs=ns,ss="find",ls=!0;ss in[]&&Array(1)[ss]((function(){ls=!1})),as({target:"Array",proto:!0,forced:ls},{find:function(t){return cs(this,t,arguments.length>1?arguments[1]:void 0)}}),fs(ss);var vs=eo,hs=Xi.findIndex,ps=ns,ds="findIndex",gs=!0;ds in[]&&Array(1)[ds]((function(){gs=!1})),vs({target:"Array",proto:!0,forced:gs},{findIndex:function(t){return hs(this,t,arguments.length>1?arguments[1]:void 0)}}),ps(ds);var ys=f,ms=Lr,bs=wt,ws=function(t,r,e){var n,o;ms(t);try{if(!(n=bs(t,"return"))){if("throw"===r)throw e;return e}n=ys(n,t)}catch(i){o=!0,n=i}if("throw"===r)throw e;if(o)throw n;return ms(n),e},Ss=Lr,Os=ws,Es=function(t,r,e,n){try{return n?r(Ss(e)[0],e[1]):r(e)}catch(o){Os(t,"throw",o)}},xs={},js=xs,Is=er("iterator"),Ts=Array.prototype,Ps=function(t){return void 0!==t&&(js.Array===t||Ts[Is]===t)},Rs=lo,As=wt,ks=k,Ns=xs,Cs=er("iterator"),Ls=function(t){if(!ks(t))return As(t,Cs)||As(t,"@@iterator")||Ns[Rs(t)]},Fs=f,Ms=yt,Ds=Lr,_s=ht,Us=Ls,$s=TypeError,Bs=function(t,r){var e=arguments.length<2?Us(t):r;if(Ms(e))return Ds(Fs(e,t));throw new $s(_s(t)+" is not iterable")},Gs=Si,Ws=f,zs=Ut,Vs=Es,Js=Ps,Hs=Mi,qs=hn,Ks=Af,Ys=Bs,Xs=Ls,Qs=Array,Zs=er("iterator"),tl=!1;try{var rl=0,el={next:function(){return{done:!!rl++}},return:function(){tl=!0}};el[Zs]=function(){return this},Array.from(el,(function(){throw 2}))}catch(bI){}var nl=function(t,r){try{if(!r&&!tl)return!1}catch(bI){return!1}var e=!1;try{var n={};n[Zs]=function(){return{next:function(){return{done:e=!0}}}},t(n)}catch(bI){}return e},ol=function(t){var r=zs(t),e=Hs(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Gs(o,n>2?arguments[2]:void 0));var u,a,c,f,s,l,v=Xs(r),h=0;if(!v||this===Qs&&Js(v))for(u=qs(r),a=e?new this(u):Qs(u);u>h;h++)l=i?o(r[h],h):r[h],Ks(a,h,l);else for(a=e?new this:[],s=(f=Ys(r,v)).next;!(c=Ws(s,f)).done;h++)l=i?Vs(f,o,[c.value,h],!0):c.value,Ks(a,h,l);return a.length=h,a};eo({target:"Array",stat:!0,forced:!nl((function(t){Array.from(t)}))},{from:ol});var il=mn.includes,ul=ns;eo({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(t){return il(this,t,arguments.length>1?arguments[1]:void 0)}}),ul("includes");var al,cl,fl,sl=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ll=Gt,vl=U,hl=Ut,pl=sl,dl=pe("IE_PROTO"),gl=Object,yl=gl.prototype,ml=pl?gl.getPrototypeOf:function(t){var r=hl(t);if(ll(r,dl))return r[dl];var e=r.constructor;return vl(e)&&r instanceof e?e.prototype:r instanceof gl?yl:null},bl=o,wl=U,Sl=B,Ol=ml,El=Qe,xl=er("iterator"),jl=!1;[].keys&&("next"in(fl=[].keys())?(cl=Ol(Ol(fl)))!==Object.prototype&&(al=cl):jl=!0);var Il=!Sl(al)||bl((function(){var t={};return al[xl].call(t)!==t}));Il&&(al={}),wl(al[xl])||El(al,xl,(function(){return this}));var Tl={IteratorPrototype:al,BUGGY_SAFARI_ITERATORS:jl},Pl=Tl.IteratorPrototype,Rl=Bo,Al=g,kl=pi,Nl=xs,Cl=function(){return this},Ll=eo,Fl=f,Ml=U,Dl=function(t,r,e,n){var o=r+" Iterator";return t.prototype=Rl(Pl,{next:Al(+!n,e)}),kl(t,o,!1),Nl[o]=Cl,t},_l=ml,Ul=_c,$l=pi,Bl=qr,Gl=Qe,Wl=xs,zl=re.PROPER,Vl=re.CONFIGURABLE,Jl=Tl.IteratorPrototype,Hl=Tl.BUGGY_SAFARI_ITERATORS,ql=er("iterator"),Kl="keys",Yl="values",Xl="entries",Ql=function(){return this},Zl=function(t,r,e,n,o,i,u){Dl(e,r,n);var a,c,f,s=function(t){if(t===o&&d)return d;if(!Hl&&t&&t in h)return h[t];switch(t){case Kl:case Yl:case Xl:return function(){return new e(this,t)}}return function(){return new e(this)}},l=r+" Iterator",v=!1,h=t.prototype,p=h[ql]||h["@@iterator"]||o&&h[o],d=!Hl&&p||s(o),g="Array"===r&&h.entries||p;if(g&&(a=_l(g.call(new t)))!==Object.prototype&&a.next&&(_l(a)!==Jl&&(Ul?Ul(a,Jl):Ml(a[ql])||Gl(a,ql,Ql)),$l(a,l,!0)),zl&&o===Yl&&p&&p.name!==Yl&&(Vl?Bl(h,"name",Yl):(v=!0,d=function(){return Fl(p,this)})),o)if(c={values:s(Yl),keys:i?d:s(Kl),entries:s(Xl)},u)for(f in c)(Hl||v||!(f in h))&&Gl(h,f,c[f]);else Ll({target:r,proto:!0,forced:Hl||v},c);return h[ql]!==d&&Gl(h,ql,d,{name:o}),Wl[r]=d,c},tv=function(t,r){return{value:t,done:r}},rv=D,ev=ns,nv=xs,ov=Re,iv=Rr.f,uv=Zl,av=tv,cv=i,fv="Array Iterator",sv=ov.set,lv=ov.getterFor(fv),vv=uv(Array,"Array",(function(t,r){sv(this,{type:fv,target:rv(t),index:0,kind:r})}),(function(){var t=lv(this),r=t.target,e=t.index++;if(!r||e>=r.length)return t.target=void 0,av(void 0,!0);switch(t.kind){case"keys":return av(e,!1);case"values":return av(r[e],!1)}return av([e,r[e]],!1)}),"values"),hv=nv.Arguments=nv.Array;if(ev("keys"),ev("values"),ev("entries"),cv&&"values"!==hv.name)try{iv(hv,"name",{value:"values"})}catch(bI){}var pv=o,dv=function(t,r){var e=[][t];return!!e&&pv((function(){e.call(null,r||function(){return 1},1)}))},gv=eo,yv=A,mv=D,bv=dv,wv=S([].join);gv({target:"Array",proto:!0,forced:yv!==Object||!bv("join",",")},{join:function(t){return wv(mv(this),void 0===t?",":t)}});var Sv=Xi.map;eo({target:"Array",proto:!0,forced:!Lf("map")},{map:function(t){return Sv(this,t,arguments.length>1?arguments[1]:void 0)}});var Ov=i,Ev=Ei,xv=TypeError,jv=Object.getOwnPropertyDescriptor,Iv=Ov&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(bI){return bI instanceof TypeError}}()?function(t,r){if(Ev(t)&&!jv(t,"length").writable)throw new xv("Cannot set read only .length");return t.length=r}:function(t,r){return t.length=r},Tv=Ut,Pv=hn,Rv=Iv,Av=If;eo({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(bI){return bI instanceof TypeError}}()},{push:function(t){var r=Tv(this),e=Pv(r),n=arguments.length;Av(e+n);for(var o=0;o0;)t[o]=t[--o];o!==i++&&(t[o]=n)}else for(var u=Kv(e/2),a=Yv(qv(t,0,u),r),c=Yv(qv(t,u),r),f=a.length,s=c.length,l=0,v=0;l3)){if(ph)return!0;if(gh)return gh<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++)yh.push({k:r+n,v:e})}for(yh.sort((function(t,r){return r.v-t.v})),n=0;nfh(e)?1:-1}}(t)),e=ah(o),n=0;nf-n+e;i--)Ch(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]:Ch(c,a);for(i=0;ii;i++)if((a=y(t[i]))&&Ap(Mp,a))return a;return new Fp(!1)}n=kp(t,o)}for(c=v?t.next:n.next;!(f=jp(c,n)).done;){try{a=y(f.value)}catch(bI){Cp(n,"throw",bI)}if("object"==typeof a&&a&&Ap(Mp,a))return a}return new Fp(!1)},_p=V,Up=TypeError,$p=function(t,r){if(_p(r,t))return t;throw new Up("Incorrect invocation")},Bp=eo,Gp=e,Wp=S,zp=qn,Vp=Qe,Jp=Ep,Hp=Dp,qp=$p,Kp=U,Yp=k,Xp=B,Qp=o,Zp=nl,td=pi,rd=Wc,ed=Qe,nd=function(t,r,e){for(var n in r)ed(t,n,r[n],e);return t},od=z,id=Xo,ud=i,ad=er("species"),cd=function(t){var r=od(t);ud&&r&&!r[ad]&&id(r,ad,{configurable:!0,get:function(){return this}})},fd=Bo,sd=Xo,ld=nd,vd=Si,hd=$p,pd=k,dd=Dp,gd=Zl,yd=tv,md=cd,bd=i,wd=Ep.fastKey,Sd=Re.set,Od=Re.getterFor,Ed={getConstructor:function(t,r,e,n){var o=t((function(t,o){hd(t,i),Sd(t,{type:r,index:fd(null),first:void 0,last:void 0,size:0}),bd||(t.size=0),pd(o)||dd(o,t[n],{that:t,AS_ENTRIES:e})})),i=o.prototype,u=Od(r),a=function(t,r,e){var n,o,i=u(t),a=c(t,r);return a?a.value=e:(i.last=a={index:o=wd(r,!0),key:r,value:e,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),bd?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},c=function(t,r){var e,n=u(t),o=wd(r);if("F"!==o)return n.index[o];for(e=n.first;e;e=e.next)if(e.key===r)return e};return ld(i,{clear:function(){for(var t=u(this),r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),r=r.next;t.first=t.last=void 0,t.index=fd(null),bd?t.size=0:this.size=0},delete:function(t){var r=this,e=u(r),n=c(r,t);if(n){var o=n.next,i=n.previous;delete e.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),e.first===n&&(e.first=o),e.last===n&&(e.last=i),bd?e.size--:r.size--}return!!n},forEach:function(t){for(var r,e=u(this),n=vd(t,arguments.length>1?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)}}),ld(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)}}),bd&&sd(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,r,e){var n=r+" Iterator",o=Od(r),i=Od(n);gd(t,r,(function(t,r){Sd(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)?yd("keys"===r?e.key:"values"===r?e.value:[e.key,e.value],!1):(t.target=void 0,yd(void 0,!0))}),e?"entries":"values",!e,!0),md(r)}};(function(t,r,e){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=Gp[t],a=u&&u.prototype,c=u,f={},s=function(t){var r=Wp(a[t]);Vp(a,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!Xp(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return o&&!Xp(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!Xp(t))&&r(this,0===t?0:t)}:function(t,e){return r(this,0===t?0:t,e),this})};if(zp(t,!Kp(u)||!(o||a.forEach&&!Qp((function(){(new u).entries().next()})))))c=e.getConstructor(r,t,n,i),Jp.enable();else if(zp(t,!0)){var l=new c,v=l[i](o?{}:-0,1)!==l,h=Qp((function(){l.has(1)})),p=Zp((function(t){new u(t)})),d=!o&&Qp((function(){for(var t=new u,r=5;r--;)t[i](r,r);return!t.has(-0)}));p||((c=r((function(t,r){qp(t,a);var e=rd(new u,t,c);return Yp(r)||Hp(r,e[i],{that:e,AS_ENTRIES:n}),e}))).prototype=a,a.constructor=c),(h||d)&&(s("delete"),s("has"),n&&s("get")),(d||v)&&s(i),o&&a.clear&&delete a.clear}f[t]=c,Bp({global:!0,constructor:!0,forced:c!==u},f),td(c,t),o||e.setStrong(c,t,n)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Ed),pi(Math,"Math",!0);var xd=S(1..valueOf),jd="\t\n\v\f\r                 \u2028\u2029\ufeff",Id=L,Td=po,Pd=jd,Rd=S("".replace),Ad=RegExp("^["+Pd+"]+"),kd=RegExp("(^|[^"+Pd+"])["+Pd+"]+$"),Nd=function(t){return function(r){var e=Td(Id(r));return 1&t&&(e=Rd(e,Ad,"")),2&t&&(e=Rd(e,kd,"$1")),e}},Cd={start:Nd(1),end:Nd(2),trim:Nd(3)},Ld=eo,Fd=i,Md=e,Dd=ti,_d=S,Ud=qn,$d=Gt,Bd=Wc,Gd=V,Wd=lt,zd=sr,Vd=o,Jd=Ze.f,Hd=n.f,qd=Rr.f,Kd=xd,Yd=Cd.trim,Xd="Number",Qd=Md[Xd];Dd[Xd];var Zd=Qd.prototype,tg=Md.TypeError,rg=_d("".slice),eg=_d("".charCodeAt),ng=function(t){var r,e,n,o,i,u,a,c,f=zd(t,"number");if(Wd(f))throw new tg("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=Yd(f),43===(r=eg(f,0))||45===r){if(88===(e=eg(f,2))||120===e)return NaN}else if(48===r){switch(eg(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=rg(f,2)).length,a=0;ao)return NaN;return parseInt(i,n)}return+f},og=Ud(Xd,!Qd(" 0o1")||!Qd("0b1")||Qd("+0x1")),ig=function(t){var r,e=arguments.length<1?0:Qd(function(t){var r=zd(t,"number");return"bigint"==typeof r?r:ng(r)}(t));return Gd(Zd,r=this)&&Vd((function(){Kd(r)}))?Bd(Object(e),this,ig):e};ig.prototype=Zd,og&&(Zd.constructor=ig),Ld({global:!0,constructor:!0,wrap:!0,forced:og},{Number:ig});og&&function(t,r){for(var e,n=Fd?Jd(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++)$d(r,e=n[o])&&!$d(t,e)&&qd(t,e,Hd(r,e))}(Dd[Xd],Qd),eo({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var ug=e,ag=o,cg=S,fg=po,sg=Cd.trim,lg=jd,vg=ug.parseInt,hg=ug.Symbol,pg=hg&&hg.iterator,dg=/^[+-]?0x/i,gg=cg(dg.exec),yg=8!==vg(lg+"08")||22!==vg(lg+"0x16")||pg&&!ag((function(){vg(Object(pg))}))?function(t,r){var e=sg(fg(t));return vg(e,r>>>0||(gg(dg,e)?16:10))}:vg;eo({target:"Number",stat:!0,forced:Number.parseInt!==yg},{parseInt:yg});var mg=i,bg=S,wg=f,Sg=o,Og=bo,Eg=Pn,xg=s,jg=Ut,Ig=A,Tg=Object.assign,Pg=Object.defineProperty,Rg=bg([].concat),Ag=!Tg||Sg((function(){if(mg&&1!==Tg({b:1},Tg(Pg({},"a",{enumerable:!0,get:function(){Pg(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!==Tg({},t)[e]||Og(Tg({},r)).join("")!==n}))?function(t,r){for(var e=jg(t),n=arguments.length,o=1,i=Eg.f,u=xg.f;n>o;)for(var a,c=Ig(arguments[o++]),f=i?Rg(Og(c),i(c)):Og(c),s=f.length,l=0;s>l;)a=f[l++],mg&&!wg(u,c,a)||(e[a]=c[a]);return e}:Tg,kg=Ag;eo({target:"Object",stat:!0,arity:2,forced:Object.assign!==kg},{assign:kg});var Ng=eo,Cg=o,Lg=D,Fg=n.f,Mg=i;Ng({target:"Object",stat:!0,forced:!Mg||Cg((function(){Fg(1)})),sham:!Mg},{getOwnPropertyDescriptor:function(t,r){return Fg(Lg(t),r)}});var Dg=Ln,_g=D,Ug=n,$g=Af;eo({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var r,e,n=_g(t),o=Ug.f,i=Dg(n),u={},a=0;i.length>a;)void 0!==(e=o(n,r=i[a++]))&&$g(u,r,e);return u}});var Bg=Ut,Gg=ml,Wg=sl;eo({target:"Object",stat:!0,forced:o((function(){Gg(1)})),sham:!Wg},{getPrototypeOf:function(t){return Gg(Bg(t))}});var zg=Ut,Vg=bo;eo({target:"Object",stat:!0,forced:o((function(){Vg(1)}))},{keys:function(t){return Vg(zg(t))}});var Jg=lo,Hg=oo?{}.toString:function(){return"[object "+Jg(this)+"]"};oo||Qe(Object.prototype,"toString",Hg,{unsafe:!0});var qg=i,Kg=o,Yg=S,Xg=ml,Qg=bo,Zg=D,ty=Yg(s.f),ry=Yg([].push),ey=qg&&Kg((function(){var t=Object.create(null);return t[2]=2,!ty(t,2)})),ny=function(t){return function(r){for(var e,n=Zg(r),o=Qg(n),i=ey&&null===Xg(n),u=o.length,a=0,c=[];u>a;)e=o[a++],qg&&!(i?e in n:ty(n,e))||ry(c,t?[e,n[e]]:n[e]);return c}},oy={entries:ny(!0),values:ny(!1)}.values;eo({target:"Object",stat:!0},{values:function(t){return oy(t)}});var iy,uy,ay,cy,fy=e,sy=q,ly=j,vy=function(t){return sy.slice(0,t.length)===t},hy=vy("Bun/")?"BUN":vy("Cloudflare-Workers")?"CLOUDFLARE":vy("Deno/")?"DENO":vy("Node.js/")?"NODE":fy.Bun&&"string"==typeof Bun.version?"BUN":fy.Deno&&"object"==typeof Deno.version?"DENO":"process"===ly(fy.process)?"NODE":fy.window&&fy.document?"BROWSER":"REST",py="NODE"===hy,dy=Mi,gy=ht,yy=TypeError,my=function(t){if(dy(t))return t;throw new yy(gy(t)+" is not a constructor")},by=Lr,wy=my,Sy=k,Oy=er("species"),Ey=TypeError,xy=/(?:ipad|iphone|ipod).*applewebkit/i.test(q),jy=e,Iy=Ta,Ty=Si,Py=U,Ry=Gt,Ay=o,ky=To,Ny=Wo,Cy=yr,Ly=function(t,r){if(tb)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})),lS=f,vS=S,hS=po,pS=Qw,dS=oS,gS=Bo,yS=Re.get,mS=aS,bS=sS,wS=Mt("native-string-replace",String.prototype.replace),SS=RegExp.prototype.exec,OS=SS,ES=vS("".charAt),xS=vS("".indexOf),jS=vS("".replace),IS=vS("".slice),TS=(Yw=/b*/g,lS(SS,Kw=/a/,"a"),lS(SS,Yw,"a"),0!==Kw.lastIndex||0!==Yw.lastIndex),PS=dS.BROKEN_CARET,RS=void 0!==/()??/.exec("")[1];(TS||RS||PS||mS||bS)&&(OS=function(t){var r,e,n,o,i,u,a,c=this,f=yS(c),s=hS(t),l=f.raw;if(l)return l.lastIndex=c.lastIndex,r=lS(OS,l,s),c.lastIndex=l.lastIndex,r;var v=f.groups,h=PS&&c.sticky,p=lS(pS,c),d=c.source,g=0,y=s;if(h&&(p=jS(p,"y",""),-1===xS(p,"g")&&(p+="g"),y=IS(s,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==ES(s,c.lastIndex-1))&&(d="(?: "+d+")",y=" "+y,g++),e=new RegExp("^(?:"+d+")",p)),RS&&(e=new RegExp("^"+d+"$(?!\\s)",p)),TS&&(n=c.lastIndex),o=lS(SS,h?e:c,y),h?o?(o.input=IS(o.input,g),o[0]=IS(o[0],g),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:TS&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),RS&&o&&o.length>1&&lS(wS,o[0],e,(function(){for(i=1;i1?arguments[1]:void 0)}});var gO=S,yO=nn,mO=po,bO=L,wO=gO("".charAt),SO=gO("".charCodeAt),OO=gO("".slice),EO=function(t){return function(r,e){var n,o,i=mO(bO(r)),u=yO(e),a=i.length;return u<0||u>=a?t?"":void 0:(n=SO(i,u))<55296||n>56319||u+1===a||(o=SO(i,u+1))<56320||o>57343?t?wO(i,u):n:t?OO(i,u,u+2):o-56320+(n-55296<<10)+65536}},xO={codeAt:EO(!1),charAt:EO(!0)},jO=xO.charAt,IO=po,TO=Re,PO=Zl,RO=tv,AO="String Iterator",kO=TO.set,NO=TO.getterFor(AO);PO(String,"String",(function(t){kO(this,{type:AO,string:IO(t),index:0})}),(function(){var t,r=NO(this),e=r.string,n=r.index;return n>=e.length?RO(void 0,!0):(t=jO(e,n),r.index+=t.length,RO(t,!1))}));var CO=f,LO=Qe,FO=AS,MO=o,DO=er,_O=qr,UO=DO("species"),$O=RegExp.prototype,BO=xO.charAt,GO=S,WO=Ut,zO=Math.floor,VO=GO("".charAt),JO=GO("".replace),HO=GO("".slice),qO=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,KO=/\$([$&'`]|\d{1,2})/g,YO=f,XO=Lr,QO=U,ZO=j,tE=AS,rE=TypeError,eE=Ta,nE=f,oE=S,iE=function(t,r,e,n){var o=DO(t),i=!MO((function(){var r={};return r[o]=function(){return 7},7!==""[t](r)})),u=i&&!MO((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[UO]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return r=!0,null},e[o](""),!r}));if(!i||!u||e){var a=/./[o],c=r(o,""[t],(function(t,r,e,n,o){var u=r.exec;return u===FO||u===$O.exec?i&&!o?{done:!0,value:CO(a,r,e,n)}:{done:!0,value:CO(t,e,r,n)}:{done:!1}}));LO(String.prototype,t,c[0]),LO($O,o,c[1])}n&&_O($O[o],"sham",!0)},uE=o,aE=Lr,cE=U,fE=k,sE=nn,lE=ln,vE=po,hE=L,pE=function(t,r,e){return r+(e?BO(t,r).length:1)},dE=wt,gE=function(t,r,e,n,o,i){var u=e+t.length,a=n.length,c=KO;return void 0!==o&&(o=WO(o),c=qO),JO(i,c,(function(i,c){var f;switch(VO(c,0)){case"$":return"$";case"&":return t;case"`":return HO(r,0,e);case"'":return HO(r,u);case"<":f=o[HO(c,1,-1)];break;default:var s=+c;if(0===s)return i;if(s>a){var l=zO(s/10);return 0===l?i:l<=a?void 0===n[l-1]?VO(c,1):n[l-1]+VO(c,1):i}f=n[s-1]}return void 0===f?"":f}))},yE=function(t,r){var e=t.exec;if(QO(e)){var n=YO(e,t,r);return null!==n&&XO(n),n}if("RegExp"===ZO(t))return YO(tE,t,r);throw new rE("RegExp#exec called on incompatible receiver")},mE=er("replace"),bE=Math.max,wE=Math.min,SE=oE([].concat),OE=oE([].push),EE=oE("".indexOf),xE=oE("".slice),jE="$0"==="a".replace(/./,"$0"),IE=!!/./[mE]&&""===/./[mE]("a","$0"),TE=!uE((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}));iE("replace",(function(t,r,e){var n=IE?"$":"$0";return[function(t,e){var n=hE(this),o=fE(t)?void 0:dE(t,mE);return o?nE(o,t,n,e):nE(r,vE(n),t,e)},function(t,o){var i=aE(this),u=vE(t);if("string"==typeof o&&-1===EE(o,n)&&-1===EE(o,"$<")){var a=e(r,i,u,o);if(a.done)return a.value}var c=cE(o);c||(o=vE(o));var f,s=i.global;s&&(f=i.unicode,i.lastIndex=0);for(var l,v=[];null!==(l=yE(i,u))&&(OE(v,l),s);){""===vE(l[0])&&(i.lastIndex=pE(u,lE(i.lastIndex),f))}for(var h,p="",d=0,g=0;g=d&&(p+=xE(u,d,b)+y,d=b+m.length)}return p+xE(u,d)}]}),!TE||!jE||IE);var PE,RE=eo,AE=yi,kE=n.f,NE=ln,CE=po,LE=aO,FE=L,ME=fO,DE=AE("".slice),_E=Math.min,UE=ME("startsWith");RE({target:"String",proto:!0,forced:!!(UE||(PE=kE(String.prototype,"startsWith"),!PE||PE.writable))&&!UE},{startsWith:function(t){var r=CE(FE(this));LE(t);var e=NE(_E(arguments.length>1?arguments[1]:void 0,r.length)),n=CE(t);return DE(r,e,e+n.length)===n}});var $E=L,BE=po,GE=/"/g,WE=S("".replace),zE=o,VE=function(t,r,e,n){var o=BE($E(t)),i="<"+r;return""!==e&&(i+=" "+e+'="'+WE(BE(n),GE,""")+'"'),i+">"+o+""},JE=function(t){return zE((function(){var r=""[t]('"');return r!==r.toLowerCase()||r.split('"').length>3}))};eo({target:"String",proto:!0,forced:JE("fixed")},{fixed:function(){return VE(this,"tt","","")}});var HE=eo,qE=e,KE=$p,YE=Lr,XE=U,QE=ml,ZE=Xo,tx=Af,rx=o,ex=Gt,nx=Tl.IteratorPrototype,ox=i,ix="constructor",ux="Iterator",ax=er("toStringTag"),cx=TypeError,fx=qE[ux],sx=!XE(fx)||fx.prototype!==nx||!rx((function(){fx({})})),lx=function(){if(KE(this,nx),QE(this)===nx)throw new cx("Abstract class Iterator not directly constructable")},vx=function(t,r){ox?ZE(nx,t,{configurable:!0,get:function(){return r},set:function(r){if(YE(this),this===nx)throw new cx("You can't redefine this property");ex(this,t)?this[t]=r:tx(this,t,r)}}):nx[t]=r};ex(nx,ax)||vx(ax,ux),!sx&&ex(nx,ix)&&nx[ix]!==Object||vx(ix,lx),lx.prototype=nx,HE({global:!0,constructor:!0,forced:sx},{Iterator:lx});var hx=function(t){return{iterator:t,next:t.next,done:!1}},px=f,dx=Bo,gx=qr,yx=nd,mx=Re,bx=wt,wx=Tl.IteratorPrototype,Sx=tv,Ox=ws,Ex=er("toStringTag"),xx="IteratorHelper",jx="WrapForValidIterator",Ix=mx.set,Tx=function(t){var r=mx.getterFor(t?jx:xx);return yx(dx(wx),{next:function(){var e=r(this);if(t)return e.nextHandler();try{var n=e.done?void 0:e.nextHandler();return Sx(n,e.done)}catch(bI){throw e.done=!0,bI}},return:function(){var e=r(this),n=e.iterator;if(e.done=!0,t){var o=bx(n,"return");return o?px(o,n):Sx(void 0,!0)}if(e.inner)try{Ox(e.inner.iterator,"normal")}catch(bI){return Ox(n,"throw",bI)}return Ox(n,"normal"),Sx(void 0,!0)}})},Px=Tx(!0),Rx=Tx(!1);gx(Rx,Ex,"Iterator Helper");var Ax=function(t,r){var e=function(e,n){n?(n.iterator=e.iterator,n.next=e.next):n=e,n.type=r?jx:xx,n.nextHandler=t,n.counter=0,n.done=!1,Ix(this,n)};return e.prototype=r?Px:Rx,e},kx=eo,Nx=f,Cx=yt,Lx=Lr,Fx=hx,Mx=Es,Dx=Ax((function(){for(var t,r,e=this.iterator,n=this.predicate,o=this.next;;){if(t=Lx(Nx(o,e)),this.done=!!t.done)return;if(r=t.value,Mx(e,n,[r,this.counter++],!0))return r}}));kx({target:"Iterator",proto:!0,real:!0,forced:false},{filter:function(t){return Lx(this),Cx(t),new Dx(Fx(this),{predicate:t})}});var _x=Dp,Ux=yt,$x=Lr,Bx=hx;eo({target:"Iterator",proto:!0,real:!0},{find:function(t){$x(this),Ux(t);var r=Bx(this),e=0;return _x(r,(function(r,n){if(t(r,e++))return n(r)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}});var Gx=Dp,Wx=yt,zx=Lr,Vx=hx;eo({target:"Iterator",proto:!0,real:!0},{forEach:function(t){zx(this),Wx(t);var r=Vx(this),e=0;Gx(r,(function(r){t(r,e++)}),{IS_RECORD:!0})}});var Jx=f,Hx=yt,qx=Lr,Kx=hx,Yx=Es,Xx=Ax((function(){var t=this.iterator,r=qx(Jx(this.next,t));if(!(this.done=!!r.done))return Yx(t,this.mapper,[r.value,this.counter++],!0)}));eo({target:"Iterator",proto:!0,real:!0,forced:false},{map:function(t){return qx(this),Hx(t),new Xx(Kx(this),{mapper:t})}});var Qx=Dp,Zx=yt,tj=Lr,rj=hx,ej=TypeError;eo({target:"Iterator",proto:!0,real:!0},{reduce:function(t){tj(this),Zx(t);var r=rj(this),e=arguments.length<2,n=e?void 0:arguments[1],o=0;if(Qx(r,(function(r){e?(e=!1,n=r):n=t(n,r,o),o++}),{IS_RECORD:!0}),e)throw new ej("Reduce of empty iterator with no initial value");return n}});var nj=S,oj=Gt,ij=SyntaxError,uj=parseInt,aj=String.fromCharCode,cj=nj("".charAt),fj=nj("".slice),sj=nj(/./.exec),lj={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},vj=/^[\da-f]{4}$/i,hj=/^[\u0000-\u001F]$/,pj=eo,dj=i,gj=e,yj=z,mj=S,bj=f,wj=U,Sj=B,Oj=Ei,Ej=Gt,xj=po,jj=hn,Ij=Af,Tj=o,Pj=function(t,r){for(var e=!0,n="";r1?arguments[1]:void 0)},eI=e,nI=Yj,oI=Zj,iI=rI,uI=qr,aI=function(t){if(t&&t.forEach!==iI)try{uI(t,"forEach",iI)}catch(bI){t.forEach=iI}};for(var cI in nI)nI[cI]&&aI(eI[cI]&&eI[cI].prototype);aI(oI);var fI=e,sI=Yj,lI=Zj,vI=vv,hI=qr,pI=pi,dI=er("iterator"),gI=vI.values,yI=function(t,r){if(t){if(t[dI]!==gI)try{hI(t,dI,gI)}catch(bI){t[dI]=gI}if(pI(t,r,!0),sI[r])for(var e in vI)if(t[e]!==vI[e])try{hI(t,e,vI[e])}catch(bI){t[e]=vI[e]}}};for(var mI in sI)yI(fI[mI]&&fI[mI].prototype,mI);yI(lI,"DOMTokenList"),function(){function r(t,r){return(r||"")+" (SystemJS https://github.com/systemjs/systemjs/blob/main/docs/errors.md#"+t+")"}function e(t,r){if(-1!==t.indexOf("\\")&&(t=t.replace(x,"/")),"/"===t[0]&&"/"===t[1])return r.slice(0,r.indexOf(":")+1)+t;if("."===t[0]&&("/"===t[1]||"."===t[1]&&("/"===t[2]||2===t.length&&(t+="/"))||1===t.length&&(t+="/"))||"/"===t[0]){var e,n=r.slice(0,r.indexOf(":")+1);if(e="/"===r[n.length+1]?"file:"!==n?(e=r.slice(n.length+2)).slice(e.indexOf("/")+1):r.slice(8):r.slice(n.length+("/"===r[n.length])),"/"===t[0])return r.slice(0,r.length-e.length-1)+t;for(var o=e.slice(0,e.lastIndexOf("/")+1)+t,i=[],u=-1,a=0;ae.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,priority:t.fetchPriority,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)}(N,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 O=(g=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==O&&(g=g.slice(0,O+1))}var E,x=/\\/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||h(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){E=[t,r,e]},T.getRegister=function(){var t=E;return E=void 0,t};var P=Object.freeze(Object.create(null));w.System=new s;var R,A,k=Promise.resolve(),N={imports:{},scopes:{},depcache:{},integrity:{}},C=b;if(T.prepareImport=function(t){return(C||t)&&(d(),C=!1),k},T.getImportMap=function(){return JSON.parse(JSON.stringify(N))},b&&(d(),window.addEventListener("DOMContentLoaded",d)),T.addImportMap=function(t,r){i(t,r||g,N)},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=N.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(){D[n.src]=[t,r],o.import(n.src)}))}}else R=void 0;return _.call(this,t,r)},T.instantiate=function(t,e){var n=D[t];if(n)return delete D[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:N.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(N,e(t,n=n||g)||t,n)||function(t,e){throw Error(r(8,[t,e].join(", ")))}(t,n)};var B=T.instantiate;T.instantiate=function(t,r,e){var n=N.depcache[t];if(n)for(var o=0;o0&&o[0]<4?1:+(o[0]+o[1])),!i&&U&&(!(o=U.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=U.match(/Chrome\/(\d+)/))&&(i=+o[1]);var q=i,J=G.String,Y=!!Object.getOwnPropertySymbols&&!c((function(){var t=Symbol("symbol detection");return!J(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&q&&q<41})),X=Y,Q=X&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Z=function(t,r){return arguments.length<2?B(N[t])||B(G[t]):N[t]&&N[t][r]||G[t]&&G[t][r]},tt=$,rt=Q,et=Object,nt=rt?function(t){return"symbol"==typeof t}:function(t){var r=Z("Symbol");return z(r)&&tt(r.prototype,et(t))},ot=String,it=function(t){try{return ot(t)}catch(t){return"Object"}},at=TypeError,ut=function(t){if(z(t))return t;throw new at(it(t)+" is not a function")},ct=P,ft=function(t){return"object"==typeof t?null!==t:z(t)},st=TypeError,lt=Object.defineProperty,pt=function(t,r){try{lt(G,t,{value:r,configurable:!0,writable:!0})}catch(e){G[t]=r}return r},vt=e((function(t){var r="__core-js_shared__",e=t.exports=G[r]||pt(r,{});(e.versions||(e.versions=[])).push({version:"3.37.1",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),yt=vt,ht=Object,dt=function(t){return ht(D(t))},bt=m({}.hasOwnProperty),gt=Object.hasOwn||function(t,r){return bt(dt(t),r)},mt=0,Ot=Math.random(),wt=m(1..toString),_t=function(t,r){return yt[t]||(yt[t]=r||{})},jt=gt,St=function(t){return"Symbol("+(void 0===t?"":t)+")_"+wt(++mt+Ot,36)},xt=G.Symbol,At=_t("wks"),Pt=rt?xt.for||xt:xt&&xt.withoutSetter||St,Tt=nt,Et=function(t,r){var e=t[r];return C(e)?void 0:ut(e)},Ft=function(t,r){var e,n;if("string"===r&&z(e=t.toString)&&!ft(n=ct(e,t)))return n;if(z(e=t.valueOf)&&!ft(n=ct(e,t)))return n;if("string"!==r&&z(e=t.toString)&&!ft(n=ct(e,t)))return n;throw new st("Can't convert object to primitive value")},kt=function(t){return jt(At,t)||(At[t]=X&&jt(xt,t)?xt[t]:Pt("Symbol."+t)),At[t]},Lt=TypeError,Mt=kt("toPrimitive"),Ct=function(t,r){if(!ft(t)||Tt(t))return t;var e,n=Et(t,Mt);if(n){if(void 0===r&&(r="default"),e=ct(n,t,r),!ft(e)||Tt(e))return e;throw new Lt("Can't convert object to primitive value")}return void 0===r&&(r="number"),Ft(t,r)},Rt=G.document,It=ft(Rt)&&ft(Rt.createElement),Dt=x,zt=function(t){return It?Rt.createElement(t):{}},Nt=!Dt&&!c((function(){return 7!==Object.defineProperty(zt("div"),"a",{get:function(){return 7}}).a})),Gt=F,Bt=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},$t=function(t){return I(D(t))},Ut=function(t){var r=Ct(t,"string");return Tt(r)?r:r+""},Wt=Nt,Vt=Object.getOwnPropertyDescriptor,Kt={f:Dt?Vt:function(t,r){if(t=$t(t),r=Ut(r),Wt)try{return Vt(t,r)}catch(t){}if(jt(t,r))return Bt(!ct(Gt.f,t,r),t[r])}},Ht=/#|\.prototype\./,qt=function(t,r){var e=Yt[Jt(t)];return e===Qt||e!==Xt&&(z(r)?c(r):!!r)},Jt=qt.normalize=function(t){return String(t).replace(Ht,".").toLowerCase()},Yt=qt.data={},Xt=qt.NATIVE="N",Qt=qt.POLYFILL="P",Zt=qt,tr=function(t){if("Function"===_(t))return m(t)},rr=tr(tr.bind),er=Dt&&c((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),nr=String,or=TypeError,ir=er,ar=function(t){if(ft(t))return t;throw new or(nr(t)+" is not an object")},ur=TypeError,cr=Object.defineProperty,fr=Object.getOwnPropertyDescriptor,sr="enumerable",lr="configurable",pr="writable",vr={f:Dt?ir?function(t,r,e){if(ar(t),r=Ut(r),ar(e),"function"==typeof t&&"prototype"===r&&"value"in e&&pr in e&&!e[pr]){var n=fr(t,r);n&&n[pr]&&(t[r]=e.value,e={configurable:lr in e?e[lr]:n[lr],enumerable:sr in e?e[sr]:n[sr],writable:!1})}return cr(t,r,e)}:cr:function(t,r,e){if(ar(t),r=Ut(r),ar(e),Wt)try{return cr(t,r,e)}catch(t){}if("get"in e||"set"in e)throw new ur("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},yr=y,hr=Kt,dr=Zt,br=function(t,r){return ut(t),void 0===r?t:s?rr(t,r):function(){return t.apply(r,arguments)}},gr=Dt?function(t,r,e){return vr.f(t,r,Bt(1,e))}:function(t,r,e){return t[r]=e,t},mr=hr.f,Or=function(t){var r=function(e,n,o){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,o)}return yr(t,this,arguments)};return r.prototype=t.prototype,r},wr=function(t,r){var e,n,o,i,a,u,c,f,s,l=t.target,p=t.global,v=t.stat,y=t.proto,h=p?G:v?G[l]:G[l]&&G[l].prototype,d=p?N:N[l]||gr(N,l,{})[l],b=d.prototype;for(i in r)n=!(e=dr(p?i:l+(v?".":"#")+i,t.forced))&&h&&jt(h,i),u=d[i],n&&(c=t.dontCallGetSet?(s=mr(h,i))&&s.value:h[i]),a=n&&c?c:r[i],(e||y||typeof u!=typeof a)&&(f=t.bind&&n?br(a,G):t.wrap&&n?Or(a):y&&z(a)?tr(a):a,(t.sham||a&&a.sham||u&&u.sham)&&gr(f,"sham",!0),gr(d,i,f),y&&(jt(N,o=l+"Prototype")||gr(N,o,{}),gr(N[o],i,a),t.real&&b&&(e||!b[i])&&gr(b,i,a)))},_r=vr.f;wr({target:"Object",stat:!0,forced:Object.defineProperty!==_r,sham:!Dt},{defineProperty:_r});var jr=e((function(t){var r=N.Object,e=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(e.sham=!0)})),Sr=jr,xr=Sr,Ar=Array.isArray||function(t){return"Array"===_(t)},Pr=Math.ceil,Tr=Math.floor,Er=Math.trunc||function(t){var r=+t;return(r>0?Tr:Pr)(r)},Fr=function(t){var r=+t;return r!=r||0===r?0:Er(r)},kr=Math.min,Lr=function(t){var r=Fr(t);return r>0?kr(r,9007199254740991):0},Mr=TypeError,Cr={};Cr[kt("toStringTag")]="z";var Rr="[object z]"===String(Cr),Ir=kt("toStringTag"),Dr=Object,zr="Arguments"===_(function(){return arguments}()),Nr=Rr?_:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=Dr(t),Ir))?e:zr?_(r):"Object"===(n=_(r))&&z(r.callee)?"Arguments":n},Gr=m(Function.toString);z(yt.inspectSource)||(yt.inspectSource=function(t){return Gr(t)});var Br=yt.inspectSource,$r=Nr,Ur=Br,Wr=function(){},Vr=Z("Reflect","construct"),Kr=/^\s*(?:class|function)\b/,Hr=m(Kr.exec),qr=!Kr.test(Wr),Jr=function(t){if(!z(t))return!1;try{return Vr(Wr,[],t),!0}catch(t){return!1}},Yr=function(t){if(!z(t))return!1;switch($r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return qr||!!Hr(Kr,Ur(t))}catch(t){return!0}};Yr.sham=!0;var Xr=!Vr||c((function(){var t;return Jr(Jr.call)||!Jr(Object)||!Jr((function(){t=!0}))||t}))?Yr:Jr,Qr=Ar,Zr=Xr,te=kt("species"),re=Array,ee=function(t){var r;return Qr(t)&&(r=t.constructor,(Zr(r)&&(r===re||Qr(r.prototype))||ft(r)&&null===(r=r[te]))&&(r=void 0)),void 0===r?re:r},ne=kt("species"),oe=function(t){return Lr(t.length)},ie=function(t){if(t>9007199254740991)throw Mr("Maximum allowed index exceeded");return t},ae=function(t,r,e){Dt?vr.f(t,r,Bt(0,e)):t[r]=e},ue=function(t,r){return new(ee(t))(0===r?0:r)},ce=function(t){return q>=51||!c((function(){var r=[];return(r.constructor={})[ne]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},fe=kt("isConcatSpreadable"),se=q>=51||!c((function(){var t=[];return t[fe]=!1,t.concat()[0]!==t})),le=function(t){if(!ft(t))return!1;var r=t[fe];return void 0!==r?!!r:Qr(t)},pe=!se||!ce("concat");wr({target:"Array",proto:!0,arity:1,forced:pe},{concat:function(t){var r,e,n,o,i,a=dt(this),u=ue(a,0),c=0;for(r=-1,n=arguments.length;ru;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((t||u in o)&&o[u]===e)return t||u||0;return!t&&-1}},Oe={includes:me(!0),indexOf:me(!1)},we={},_e=Oe.indexOf,je=m([].push),Se=function(t,r){var e,n=$t(t),o=0,i=[];for(e in n)!jt(we,e)&&jt(n,e)&&je(i,e);for(;r.length>o;)jt(n,e=r[o++])&&(~_e(i,e)||je(i,e));return i},xe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ae=Object.keys||function(t){return Se(t,xe)},Pe=Dt&&!ir?Object.defineProperties:function(t,r){ar(t);for(var e,n=$t(r),o=Ae(r),i=o.length,a=0;i>a;)vr.f(t,e=o[a++],n[e]);return t},Te={f:Pe},Ee=Z("document","documentElement"),Fe=_t("keys"),ke=Te,Le=Ee,Me=function(t){return Fe[t]||(Fe[t]=St(t))},Ce="prototype",Re="script",Ie=Me("IE_PROTO"),De=function(){},ze=function(t){return"<"+Re+">"+t+""},Ne=function(t){t.write(ze("")),t.close();var r=t.parentWindow.Object;return t=null,r},Ge=function(){try{ve=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;Ge="undefined"!=typeof document?document.domain&&ve?Ne(ve):(r=zt("iframe"),e="java"+Re+":",r.style.display="none",Le.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(ze("document.F=Object")),t.close(),t.F):Ne(ve);for(var n=xe.length;n--;)delete Ge[Ce][xe[n]];return Ge()};we[Ie]=!0;var Be,$e,Ue,We=Object.create||function(t,r){var e;return null!==t?(De[Ce]=ar(t),e=new De,De[Ce]=null,e[Ie]=t):e=Ge(),void 0===r?e:ke.f(e,r)},Ve=xe.concat("length","prototype"),Ke={f:Object.getOwnPropertyNames||function(t){return Se(t,Ve)}},He=m([].slice),qe=Ke,Je=He,Ye=qe.f,Xe="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Qe={f:function(t){return Xe&&"Window"===_(t)?function(t){try{return Ye(t)}catch(t){return Je(Xe)}}(t):Ye($t(t))}},Ze={f:Object.getOwnPropertySymbols},tn={f:kt},rn=vr.f,en=function(t,r,e,n){return n&&n.enumerable?t[r]=e:gr(t,r,e),t},nn=Rr?{}.toString:function(){return"[object "+$r(this)+"]"},on=vr.f,an=kt("toStringTag"),un=G.WeakMap,cn=z(un)&&/native code/.test(String(un)),fn="Object already initialized",sn=G.TypeError,ln=G.WeakMap;if(cn||yt.state){var pn=yt.state||(yt.state=new ln);pn.get=pn.get,pn.has=pn.has,pn.set=pn.set,Be=function(t,r){if(pn.has(t))throw new sn(fn);return r.facade=t,pn.set(t,r),r},$e=function(t){return pn.get(t)||{}},Ue=function(t){return pn.has(t)}}else{var vn=Me("state");we[vn]=!0,Be=function(t,r){if(jt(t,vn))throw new sn(fn);return r.facade=t,gr(t,vn,r),r},$e=function(t){return jt(t,vn)?t[vn]:{}},Ue=function(t){return jt(t,vn)}}var yn={set:Be,get:$e,has:Ue,enforce:function(t){return Ue(t)?$e(t):Be(t,{})},getterFor:function(t){return function(r){var e;if(!ft(r)||(e=$e(r)).type!==t)throw new sn("Incompatible receiver, "+t+" required");return e}}},hn=m([].push),dn=function(t){var r=1===t,e=2===t,n=3===t,o=4===t,i=6===t,a=7===t,u=5===t||i;return function(c,f,s,l){for(var p,v,y=dt(c),h=I(y),d=oe(h),b=br(f,s),g=0,m=l||ue,O=r?m(c,d):e||a?m(c,0):void 0;d>g;g++)if((u||g in h)&&(v=b(p=h[g],g,y),t))if(r)O[g]=v;else if(v)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:hn(O,p)}else switch(t){case 4:return!1;case 7:hn(O,p)}return i?-1:n||o?o:O}},bn={forEach:dn(0),map:dn(1),filter:dn(2),some:dn(3),every:dn(4),find:dn(5),findIndex:dn(6),filterReject:dn(7)},gn=function(t){if("Symbol"===$r(t))throw new TypeError("Cannot convert a Symbol value to a string");return he(t)},mn=We,On=Qe,wn=Ze,_n=function(t,r,e){return vr.f(t,r,e)},jn=function(t){var r=N.Symbol||(N.Symbol={});jt(r,t)||rn(r,t,{value:tn.f(t)})},Sn=function(){var t=Z("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,n=kt("toPrimitive");r&&!r[n]&&en(r,n,(function(t){return ct(e,this)}),{arity:1})},xn=function(t,r,e,n){var o=e?t:t&&t.prototype;o&&(jt(o,an)||on(o,an,{configurable:!0,value:r}),n&&!Rr&&gr(o,"toString",nn))},An=yn,Pn=bn,Tn=Pn.forEach,En=Me("hidden"),Fn="Symbol",kn="prototype",Ln=An.set,Mn=An.getterFor(Fn),Cn=Object[kn],Rn=G.Symbol,In=Rn&&Rn[kn],Dn=G.RangeError,zn=G.TypeError,Nn=G.QObject,Gn=hr.f,Bn=vr.f,$n=On.f,Un=Gt.f,Wn=m([].push),Vn=_t("symbols"),Kn=_t("op-symbols"),Hn=_t("wks"),qn=!Nn||!Nn[kn]||!Nn[kn].findChild,Jn=function(t,r,e){var n=Gn(Cn,r);n&&delete Cn[r],Bn(t,r,e),n&&t!==Cn&&Bn(Cn,r,n)},Yn=Dt&&c((function(){return 7!==mn(Bn({},"a",{get:function(){return Bn(this,"a",{value:7}).a}})).a}))?Jn:Bn,Xn=function(t,r){var e=Vn[t]=mn(In);return Ln(e,{type:Fn,tag:t,description:r}),Dt||(e.description=r),e},Qn=function(t,r,e){t===Cn&&Qn(Kn,r,e),ar(t);var n=Ut(r);return ar(e),jt(Vn,n)?(e.enumerable?(jt(t,En)&&t[En][n]&&(t[En][n]=!1),e=mn(e,{enumerable:Bt(0,!1)})):(jt(t,En)||Bn(t,En,Bt(1,mn(null))),t[En][n]=!0),Yn(t,n,e)):Bn(t,n,e)},Zn=function(t,r){ar(t);var e=$t(r),n=Ae(e).concat(no(e));return Tn(n,(function(r){Dt&&!ct(to,e,r)||Qn(t,r,e[r])})),t},to=function(t){var r=Ut(t),e=ct(Un,this,r);return!(this===Cn&&jt(Vn,r)&&!jt(Kn,r))&&(!(e||!jt(this,r)||!jt(Vn,r)||jt(this,En)&&this[En][r])||e)},ro=function(t,r){var e=$t(t),n=Ut(r);if(e!==Cn||!jt(Vn,n)||jt(Kn,n)){var o=Gn(e,n);return!o||!jt(Vn,n)||jt(e,En)&&e[En][n]||(o.enumerable=!0),o}},eo=function(t){var r=$n($t(t)),e=[];return Tn(r,(function(t){jt(Vn,t)||jt(we,t)||Wn(e,t)})),e},no=function(t){var r=t===Cn,e=$n(r?Kn:$t(t)),n=[];return Tn(e,(function(t){!jt(Vn,t)||r&&!jt(Cn,t)||Wn(n,Vn[t])})),n};X||(Rn=function(){if(tt(In,this))throw new zn("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?gn(arguments[0]):void 0,r=St(t),e=function(t){var n=void 0===this?G:this;n===Cn&&ct(e,Kn,t),jt(n,En)&&jt(n[En],r)&&(n[En][r]=!1);var o=Bt(1,t);try{Yn(n,r,o)}catch(t){if(!(t instanceof Dn))throw t;Jn(n,r,o)}};return Dt&&qn&&Yn(Cn,r,{configurable:!0,set:e}),Xn(r,t)},In=Rn[kn],en(In,"toString",(function(){return Mn(this).tag})),en(Rn,"withoutSetter",(function(t){return Xn(St(t),t)})),Gt.f=to,vr.f=Qn,ke.f=Zn,hr.f=ro,qe.f=On.f=eo,wn.f=no,tn.f=function(t){return Xn(kt(t),t)},Dt&&_n(In,"description",{configurable:!0,get:function(){return Mn(this).description}})),wr({global:!0,constructor:!0,wrap:!0,forced:!X,sham:!X},{Symbol:Rn}),Tn(Ae(Hn),(function(t){jn(t)})),wr({target:Fn,stat:!0,forced:!X},{useSetter:function(){qn=!0},useSimple:function(){qn=!1}}),wr({target:"Object",stat:!0,forced:!X,sham:!Dt},{create:function(t,r){return void 0===r?mn(t):Zn(mn(t),r)},defineProperty:Qn,defineProperties:Zn,getOwnPropertyDescriptor:ro}),wr({target:"Object",stat:!0,forced:!X},{getOwnPropertyNames:eo}),Sn(),xn(Rn,Fn),we[En]=!0;var oo=X&&!!Symbol.for&&!!Symbol.keyFor,io=_t("string-to-symbol-registry"),ao=_t("symbol-to-string-registry");wr({target:"Symbol",stat:!0,forced:!oo},{for:function(t){var r=gn(t);if(jt(io,r))return io[r];var e=Z("Symbol")(r);return io[r]=e,ao[e]=r,e}});var uo=_t("symbol-to-string-registry");wr({target:"Symbol",stat:!0,forced:!oo},{keyFor:function(t){if(!Tt(t))throw new TypeError(it(t)+" is not a symbol");if(jt(uo,t))return uo[t]}});var co=m([].push),fo=function(t){if(z(t))return t;if(Qr(t)){for(var r=t.length,e=[],n=0;n=r.length)return t.target=void 0,ui(void 0,!0);switch(t.kind){case"keys":return ui(e,!1);case"values":return ui(r[e],!1)}return ui([e,r[e]],!1)}),"values");Uo.Arguments=Uo.Array;ii(),ii(),ii();var li={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};for(var pi in li)xn(G[pi],pi),Uo[pi]=Uo.Array;var vi=Eo,yi=vr.f,hi=kt("metadata"),di=Function.prototype;void 0===di[hi]&&yi(di,hi,{value:null}),jn("asyncDispose"),jn("dispose"),jn("metadata");var bi=vi,gi=Z("Symbol"),mi=gi.keyFor,Oi=m(gi.prototype.valueOf),wi=gi.isRegisteredSymbol||function(t){try{return void 0!==mi(Oi(t))}catch(t){return!1}};wr({target:"Symbol",stat:!0},{isRegisteredSymbol:wi});for(var _i=Z("Symbol"),ji=_i.isWellKnownSymbol,Si=Z("Object","getOwnPropertyNames"),xi=m(_i.prototype.valueOf),Ai=_t("wks"),Pi=0,Ti=Si(_i),Ei=Ti.length;Pi=u?t?"":void 0:(n=Ci(i,a))<55296||n>56319||a+1===u||(o=Ci(i,a+1))<56320||o>57343?t?Mi(i,a):n:t?Ri(i,a,a+2):o-56320+(n-55296<<10)+65536}},Di={codeAt:Ii(!1),charAt:Ii(!0)}.charAt,zi="String Iterator",Ni=An.set,Gi=An.getterFor(zi);ai(String,"String",(function(t){Ni(this,{type:zi,string:gn(t),index:0})}),(function(){var t,r=Gi(this),e=r.string,n=r.index;return n>=e.length?ui(void 0,!0):(t=Di(e,n),r.index+=t.length,ui(t,!1))}));var Bi=tn.f("iterator"),$i=Li,Ui=Bi,Wi=e((function(t){function r(e){return t.exports=r="function"==typeof $i&&"symbol"==typeof Ui?function(t){return typeof t}:function(t){return t&&"function"==typeof $i&&t.constructor===$i&&t!==$i.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}));r(Wi);var Vi=tn.f("toPrimitive"),Ki=e((function(t){var r=Wi.default;t.exports=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Vi];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}));r(Ki);var Hi=e((function(t){var r=Wi.default;t.exports=function(t){var e=Ki(t,"string");return"symbol"==r(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports}));r(Hi);var qi=xr,Ji=r(e((function(t){t.exports=function(t,r,e){return(r=Hi(r))in t?qi(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t},t.exports.__esModule=!0,t.exports.default=t.exports}))),Yi=N.Object.getOwnPropertySymbols,Xi=Yi,Qi=function(t,r){var e=[][t];return!!e&&c((function(){e.call(null,r||function(){return 1},1)}))},Zi=Oe.indexOf,ta=tr([].indexOf),ra=!!ta&&1/ta([1],1,-0)<0,ea=ra||!Qi("indexOf");wr({target:"Array",proto:!0,forced:ea},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return ra?ta(this,t,r)||0:Zi(this,t,r)}});var na=function(t,r){var e=N[t+"Prototype"],n=e&&e[r];if(n)return n;var o=G[t],i=o&&o.prototype;return i&&i[r]},oa=na("Array","indexOf"),ia=Array.prototype,aa=function(t){var r=t.indexOf;return t===ia||tt(ia,t)&&r===ia.indexOf?oa:r},ua=e((function(t){t.exports=function(t,r){if(null==t)return{};var e={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(aa(r).call(r,n)>=0)continue;e[n]=t[n]}return e},t.exports.__esModule=!0,t.exports.default=t.exports}));r(ua);var ca=Xi,fa=e((function(t){t.exports=function(t,r){if(null==t)return{};var e,n,o=ua(t,r);if(ca){var i=ca(t);for(n=0;n=0||{}.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o},t.exports.__esModule=!0,t.exports.default=t.exports})),sa=r(fa),la=r(e((function(t){t.exports=function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}))),pa=r(e((function(t){function r(t,r){for(var e=0;e=0:u>c;c+=f)c in a&&(o=e(o,a[c],c,i));return o}},da={left:ha(!1),right:ha(!0)},ba="process"===_(G.process),ga=da.left,ma=!ba&&q>79&&q<83||!Qi("reduce");wr({target:"Array",proto:!0,forced:ma},{reduce:function(t){var r=arguments.length;return ga(this,t,r,r>1?arguments[1]:void 0)}});var Oa=na("Array","reduce"),wa=Array.prototype,_a=function(t){var r=t.reduce;return t===wa||tt(wa,t)&&r===wa.reduce?Oa:r},ja=Pn.map,Sa=ce("map");wr({target:"Array",proto:!0,forced:!Sa},{map:function(t){return ja(this,t,arguments.length>1?arguments[1]:void 0)}});var xa=na("Array","map"),Aa=Array.prototype,Pa=function(t){var r=t.map;return t===Aa||tt(Aa,t)&&r===Aa.map?xa:r},Ta=ce("slice"),Ea=kt("species"),Fa=Array,ka=Math.max;wr({target:"Array",proto:!0,forced:!Ta},{slice:function(t,r){var e,n,o,i=$t(this),a=oe(i),u=ge(t,a),c=ge(void 0===r?a:r,a);if(Qr(i)&&(e=i.constructor,(Zr(e)&&(e===Fa||Qr(e.prototype))||ft(e)&&null===(e=e[Ea]))&&(e=void 0),e===Fa||void 0===e))return Je(i,u,c);for(n=new(void 0===e?Fa:e)(ka(c-u,0)),o=0;u1?arguments[1]:void 0)}});var Qa=na("Array","filter"),Za=Array.prototype,tu=function(t){var r=t.filter;return t===Za||tt(Za,t)&&r===Za.filter?Qa:r},ru=hr.f,eu=!Dt||c((function(){ru(1)}));wr({target:"Object",stat:!0,forced:eu,sham:!Dt},{getOwnPropertyDescriptor:function(t,r){return ru($t(t),r)}});var nu=e((function(t){var r=N.Object,e=t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)};r.getOwnPropertyDescriptor.sham&&(e.sham=!0)})),ou=nu,iu=Pn.forEach,au=Qi("forEach")?[].forEach:function(t){return iu(this,t,arguments.length>1?arguments[1]:void 0)};wr({target:"Array",proto:!0,forced:[].forEach!==au},{forEach:au});var uu=na("Array","forEach");n(Object.freeze({__proto__:null}));var cu=Array.prototype,fu={DOMTokenList:!0,NodeList:!0},su=function(t){var r=t.forEach;return t===cu||tt(cu,t)&&r===cu.forEach||jt(fu,$r(t))?uu:r},lu=m([].concat),pu=Z("Reflect","ownKeys")||function(t){var r=qe.f(ar(t)),e=wn.f;return e?lu(r,e(t)):r},vu=pu;wr({target:"Object",stat:!0,sham:!Dt},{getOwnPropertyDescriptors:function(t){for(var r,e,n=$t(t),o=hr.f,i=vu(n),a={},u=0;i.length>u;)void 0!==(e=o(n,r=i[u++]))&&ae(a,r,e);return a}});var yu=N.Object.getOwnPropertyDescriptors,hu=ke.f;wr({target:"Object",stat:!0,forced:Object.defineProperties!==hu,sham:!Dt},{defineProperties:hu});var du=e((function(t){var r=N.Object,e=t.exports=function(t,e){return r.defineProperties(t,e)};r.defineProperties.sham&&(e.sham=!0)})),bu=du,gu=Sr;var mu=function(){this.__data__=[],this.size=0};var Ou=function(t,r){return t===r||t!=t&&r!=r};var wu=function(t,r){for(var e=t.length;e--;)if(Ou(t[e][0],r))return e;return-1},_u=Array.prototype.splice;var ju=function(t){var r=this.__data__,e=wu(r,t);return!(e<0)&&(e==r.length-1?r.pop():_u.call(r,e,1),--this.size,!0)};var Su=function(t){var r=this.__data__,e=wu(r,t);return e<0?void 0:r[e][1]};var xu=function(t){return wu(this.__data__,t)>-1};var Au=function(t,r){var e=this.__data__,n=wu(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};function Pu(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r-1&&t%1==0&&t<=9007199254740991};var rf=function(t){return null!=t&&tf(t.length)&&!Hu(t)};var ef=function(t){return Kc(t)&&rf(t)};var nf=function(){return!1},of=e((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e?Ru.Buffer:void 0,i=(o?o.isBuffer:void 0)||nf;t.exports=i})),af=Function.prototype,uf=Object.prototype,cf=af.toString,ff=uf.hasOwnProperty,sf=cf.call(Object);var lf=function(t){if(!Kc(t)||"[object Object]"!=Vu(t))return!1;var r=$c(t);if(null===r)return!0;var e=ff.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&cf.call(e)==sf},pf={};pf["[object Float32Array]"]=pf["[object Float64Array]"]=pf["[object Int8Array]"]=pf["[object Int16Array]"]=pf["[object Int32Array]"]=pf["[object Uint8Array]"]=pf["[object Uint8ClampedArray]"]=pf["[object Uint16Array]"]=pf["[object Uint32Array]"]=!0,pf["[object Arguments]"]=pf["[object Array]"]=pf["[object ArrayBuffer]"]=pf["[object Boolean]"]=pf["[object DataView]"]=pf["[object Date]"]=pf["[object Error]"]=pf["[object Function]"]=pf["[object Map]"]=pf["[object Number]"]=pf["[object Object]"]=pf["[object RegExp]"]=pf["[object Set]"]=pf["[object String]"]=pf["[object WeakMap]"]=!1;var vf=function(t){return Kc(t)&&tf(t.length)&&!!pf[Vu(t)]};var yf=function(t){return function(r){return t(r)}},hf=e((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e&&Mu.process,i=function(){try{var t=n&&n.require&&n.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i})),df=hf&&hf.isTypedArray,bf=df?yf(df):vf;var gf=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]},mf=Object.prototype.hasOwnProperty;var Of=function(t,r,e){var n=t[r];mf.call(t,r)&&Ou(n,e)&&(void 0!==e||r in t)||Lc(t,r,e)};var wf=function(t,r,e,n){var o=!e;e||(e={});for(var i=-1,a=r.length;++i-1&&t%1==0&&t0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}},$f=Bf(Nf);var Uf=function(t,r){return $f(Df(t,r,Cf),t+"")};var Wf=function(t,r,e){if(!Ku(e))return!1;var n=typeof r;return!!("number"==n?rf(e)&&Sf(r,e.length):"string"==n&&r in e)&&Ou(e[r],t)};var Vf=function(t){return Uf((function(r,e){var n=-1,o=e.length,i=o>1?e[o-1]:void 0,a=o>2?e[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,a&&Wf(e[0],e[1],a)&&(i=o<3?void 0:i,o=1),r=Object(r);++n0&&void 0!==arguments[0]?arguments[0]:{};la(this,t);var e=r.echarts,n=sa(r,Kf);if(!e&&!window.echarts)throw new Error("table-echarts-plugin[init]: Package echarts not found.");this.options=qf(qf({},Jf),n||{}),this.echartsRef=e||window.echarts,this.dom=null}return pa(t,[{key:"getInstance",value:function(){return this.dom||(this.dom=document.createElement("div"),this.echartsRef.init(this.dom,null,this.options)),this.echartsRef.getInstanceByDom(this.dom)}},{key:"render",value:function(t,r,e){var n={};switch(t){case"bar":n=this.renderBarChart(e,r);break;case"line":n=this.renderLineChart(e,r);break;default:return""}var o=this.getInstance();return o.clear(),o.setOption(n),o.getDom().innerHTML}},{key:"renderBarChart",value:function(t,r){return this.$renderChartCommon(t,r,"bar")}},{key:"renderLineChart",value:function(t,r){return this.$renderChartCommon(t,r,"line")}},{key:"$renderChartCommon",value:function(t,r,e){var n,o,i={bar:{type:"bar",barWidth:20,animation:!1,name:"",data:[]},line:{type:"line",animation:!1,name:"",data:[]}};if(i[e]){var a=_a(n=t.rows).call(n,(function(t,r){var n;return t.legend.data.push(r[0]),t.series.push(qf(qf({},i[e]),{},{name:r[0],data:Pa(n=Ca(r).call(r,1)).call(n,(function(t){return Ka(t.replace(/,/g,""))}))})),t}),{legend:{data:[]},series:[]});return qf(qf({},a),{},{xAxis:{data:Ca(o=t.header).call(o,1),type:"category"},yAxis:{type:"value",axisLabel:{width:"100%"}},grid:{containLabel:!0,left:"1%",right:"1%",bottom:"10%"}})}}},{key:"onDestroy",value:function(){this.dom&&this.echartsRef.dispose(this.dom)}}],[{key:"install",value:function(r){if("undefined"==typeof window)return console.warn("echarts-table-engine only works in browser."),void Vf(r,{engine:{syntax:{table:{enableChart:!1}}}});Vf(r,{engine:{syntax:{table:{enableChart:!0,chartRenderEngine:t,externals:["echarts"]}}}})}}])}();return Yf})); diff --git a/app_zentaoimpweb/public/extras/js/cherry-markdown/0.8.58/addons/cherry-code-block-mermaid-plugin.d.ts b/app_zentaoimpweb/public/extras/js/cherry-markdown/0.8.58/addons/cherry-code-block-mermaid-plugin.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..7817883c86ed5dd1588b458db00e3cf39870e59a --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/cherry-markdown/0.8.58/addons/cherry-code-block-mermaid-plugin.d.ts @@ -0,0 +1,32 @@ +export default class MermaidCodeEngine { + static TYPE: string; + static install(cherryOptions: any, ...args: any[]): void; + constructor(mermaidOptions?: {}); + mermaidAPIRefs: any; + options: { + theme: string; + altFontFamily: string; + fontFamily: string; + themeCSS: string; + flowchart: { + useMaxWidth: boolean; + }; + sequence: { + useMaxWidth: boolean; + }; + startOnLoad: boolean; + logLevel: number; + }; + dom: any; + mermaidCanvas: any; + mountMermaidCanvas($engine: any): void; + /** + * 转换svg为img,如果出错则直出svg + * @param {string} svgCode + * @param {string} graphId + * @returns {string} + */ + convertMermaidSvgToImg(svgCode: string, graphId: string): string; + render(src: any, sign: any, $engine: any, config?: {}): any; + svg2img: any; +} diff --git a/app_zentaoimpweb/public/extras/js/cherry-markdown/0.8.58/addons/cherry-code-block-mermaid-plugin.js b/app_zentaoimpweb/public/extras/js/cherry-markdown/0.8.58/addons/cherry-code-block-mermaid-plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..3359692cbfc2650f0a1d28287cfc0098b5893142 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/cherry-markdown/0.8.58/addons/cherry-code-block-mermaid-plugin.js @@ -0,0 +1 @@ +!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(t="undefined"!=typeof globalThis?globalThis:t||self).CherryCodeBlockMermaidPlugin=r()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function e(t,r){return t(r={exports:{}},r.exports),r.exports}function n(t){return t&&t.default||t}var o,i,a=function(t){return t&&t.Math===Math&&t},u=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof t&&t)||a("object"==typeof t&&t)||function(){return this}()||Function("return this")(),c=function(t){try{return!!t()}catch(t){return!0}},f=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=f,l=Function.prototype,p=l.apply,v=l.call,y="object"==typeof Reflect&&Reflect.apply||(s?v.bind(p):function(){return v.apply(p,arguments)}),d=Function.prototype,h=d.call,b=s&&d.bind.bind(h,h),g=s?b:function(t){return function(){return h.apply(t,arguments)}},m=g,w=m({}.toString),_=m("".slice),O=function(t){return _(w(t),8,-1)},j="object"==typeof document&&document.all,S=void 0===j&&void 0!==j?function(t){return"function"==typeof t||t===j}:function(t){return"function"==typeof t},P=!c((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),x=Function.prototype.call,A=s?x.bind(x):function(){return x.apply(x,arguments)},T={}.propertyIsEnumerable,E=Object.getOwnPropertyDescriptor,F={f:E&&!T.call({1:2},1)?function(t){var r=E(this,t);return!!r&&r.enumerable}:T},M=Object,I=m("".split),C=c((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"===O(t)?I(t,""):M(t)}:M,L=function(t){return null==t},k=TypeError,R=C,z=function(t){if(L(t))throw new k("Can't call method on "+t);return t},D=S,N={},B=u,G=function(t){return D(t)?t:void 0},U=m({}.isPrototypeOf),W="undefined"!=typeof navigator&&String(navigator.userAgent)||"",V=B.process,$=B.Deno,H=V&&V.versions||$&&$.version,K=H&&H.v8;K&&(i=(o=K.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&W&&(!(o=W.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=W.match(/Chrome\/(\d+)/))&&(i=+o[1]);var q=i,J=B.String,Y=!!Object.getOwnPropertySymbols&&!c((function(){var t=Symbol("symbol detection");return!J(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&q&&q<41})),X=Y,Q=X&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Z=function(t,r){return arguments.length<2?G(N[t])||G(B[t]):N[t]&&N[t][r]||B[t]&&B[t][r]},tt=U,rt=Q,et=Object,nt=rt?function(t){return"symbol"==typeof t}:function(t){var r=Z("Symbol");return D(r)&&tt(r.prototype,et(t))},ot=String,it=function(t){try{return ot(t)}catch(t){return"Object"}},at=TypeError,ut=function(t){if(D(t))return t;throw new at(it(t)+" is not a function")},ct=A,ft=function(t){return"object"==typeof t?null!==t:D(t)},st=TypeError,lt=Object.defineProperty,pt=function(t,r){try{lt(B,t,{value:r,configurable:!0,writable:!0})}catch(e){B[t]=r}return r},vt=e((function(t){var r="__core-js_shared__",e=t.exports=B[r]||pt(r,{});(e.versions||(e.versions=[])).push({version:"3.37.1",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),yt=vt,dt=Object,ht=function(t){return dt(z(t))},bt=m({}.hasOwnProperty),gt=Object.hasOwn||function(t,r){return bt(ht(t),r)},mt=0,wt=Math.random(),_t=m(1..toString),Ot=function(t,r){return yt[t]||(yt[t]=r||{})},jt=gt,St=function(t){return"Symbol("+(void 0===t?"":t)+")_"+_t(++mt+wt,36)},Pt=B.Symbol,xt=Ot("wks"),At=rt?Pt.for||Pt:Pt&&Pt.withoutSetter||St,Tt=nt,Et=function(t,r){var e=t[r];return L(e)?void 0:ut(e)},Ft=function(t,r){var e,n;if("string"===r&&D(e=t.toString)&&!ft(n=ct(e,t)))return n;if(D(e=t.valueOf)&&!ft(n=ct(e,t)))return n;if("string"!==r&&D(e=t.toString)&&!ft(n=ct(e,t)))return n;throw new st("Can't convert object to primitive value")},Mt=function(t){return jt(xt,t)||(xt[t]=X&&jt(Pt,t)?Pt[t]:At("Symbol."+t)),xt[t]},It=TypeError,Ct=Mt("toPrimitive"),Lt=function(t,r){if(!ft(t)||Tt(t))return t;var e,n=Et(t,Ct);if(n){if(void 0===r&&(r="default"),e=ct(n,t,r),!ft(e)||Tt(e))return e;throw new It("Can't convert object to primitive value")}return void 0===r&&(r="number"),Ft(t,r)},kt=B.document,Rt=ft(kt)&&ft(kt.createElement),zt=P,Dt=function(t){return Rt?kt.createElement(t):{}},Nt=!zt&&!c((function(){return 7!==Object.defineProperty(Dt("div"),"a",{get:function(){return 7}}).a})),Bt=F,Gt=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},Ut=function(t){return R(z(t))},Wt=function(t){var r=Lt(t,"string");return Tt(r)?r:r+""},Vt=Nt,$t=Object.getOwnPropertyDescriptor,Ht={f:zt?$t:function(t,r){if(t=Ut(t),r=Wt(r),Vt)try{return $t(t,r)}catch(t){}if(jt(t,r))return Gt(!ct(Bt.f,t,r),t[r])}},Kt=/#|\.prototype\./,qt=function(t,r){var e=Yt[Jt(t)];return e===Qt||e!==Xt&&(D(r)?c(r):!!r)},Jt=qt.normalize=function(t){return String(t).replace(Kt,".").toLowerCase()},Yt=qt.data={},Xt=qt.NATIVE="N",Qt=qt.POLYFILL="P",Zt=qt,tr=function(t){if("Function"===O(t))return m(t)},rr=tr(tr.bind),er=zt&&c((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),nr=String,or=TypeError,ir=er,ar=function(t){if(ft(t))return t;throw new or(nr(t)+" is not an object")},ur=TypeError,cr=Object.defineProperty,fr=Object.getOwnPropertyDescriptor,sr="enumerable",lr="configurable",pr="writable",vr={f:zt?ir?function(t,r,e){if(ar(t),r=Wt(r),ar(e),"function"==typeof t&&"prototype"===r&&"value"in e&&pr in e&&!e[pr]){var n=fr(t,r);n&&n[pr]&&(t[r]=e.value,e={configurable:lr in e?e[lr]:n[lr],enumerable:sr in e?e[sr]:n[sr],writable:!1})}return cr(t,r,e)}:cr:function(t,r,e){if(ar(t),r=Wt(r),ar(e),Vt)try{return cr(t,r,e)}catch(t){}if("get"in e||"set"in e)throw new ur("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},yr=y,dr=Ht,hr=Zt,br=function(t,r){return ut(t),void 0===r?t:s?rr(t,r):function(){return t.apply(r,arguments)}},gr=zt?function(t,r,e){return vr.f(t,r,Gt(1,e))}:function(t,r,e){return t[r]=e,t},mr=dr.f,wr=function(t){var r=function(e,n,o){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,o)}return yr(t,this,arguments)};return r.prototype=t.prototype,r},_r=Math.ceil,Or=Math.floor,jr=Math.trunc||function(t){var r=+t;return(r>0?Or:_r)(r)},Sr=function(t){var r=+t;return r!=r||0===r?0:jr(r)},Pr=Math.max,xr=Math.min,Ar=Math.min,Tr=function(t){var r=Sr(t);return r>0?Ar(r,9007199254740991):0},Er=function(t,r){var e=Sr(t);return e<0?Pr(e+r,0):xr(e,r)},Fr=function(t){return Tr(t.length)},Mr=function(t){return function(r,e,n){var o=Ut(r),i=Fr(o);if(0===i)return!t&&-1;var a,u=Er(n,i);if(t&&e!=e){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((t||u in o)&&o[u]===e)return t||u||0;return!t&&-1}},Ir={includes:Mr(!0),indexOf:Mr(!1)},Cr={},Lr=Ir.indexOf,kr=m([].push),Rr=function(t,r){var e,n=Ut(t),o=0,i=[];for(e in n)!jt(Cr,e)&&jt(n,e)&&kr(i,e);for(;r.length>o;)jt(n,e=r[o++])&&(~Lr(i,e)||kr(i,e));return i},zr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dr=Object.keys||function(t){return Rr(t,zr)},Nr=function(t,r){var e,n,o,i,a,u,c,f,s,l=t.target,p=t.global,v=t.stat,y=t.proto,d=p?B:v?B[l]:B[l]&&B[l].prototype,h=p?N:N[l]||gr(N,l,{})[l],b=h.prototype;for(i in r)n=!(e=hr(p?i:l+(v?".":"#")+i,t.forced))&&d&&jt(d,i),u=h[i],n&&(c=t.dontCallGetSet?(s=mr(d,i))&&s.value:d[i]),a=n&&c?c:r[i],(e||y||typeof u!=typeof a)&&(f=t.bind&&n?br(a,B):t.wrap&&n?wr(a):y&&D(a)?tr(a):a,(t.sham||a&&a.sham||u&&u.sham)&&gr(f,"sham",!0),gr(h,i,f),y&&(jt(N,o=l+"Prototype")||gr(N,o,{}),gr(N[o],i,a),t.real&&b&&(e||!b[i])&&gr(b,i,a)))},Br=Dr,Gr=c((function(){Br(1)}));Nr({target:"Object",stat:!0,forced:Gr},{keys:function(t){return Br(ht(t))}});var Ur=N.Object.keys,Wr={};Wr[Mt("toStringTag")]="z";var Vr,$r="[object z]"===String(Wr),Hr=Mt("toStringTag"),Kr=Object,qr="Arguments"===O(function(){return arguments}()),Jr=$r?O:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=Kr(t),Hr))?e:qr?O(r):"Object"===(n=O(r))&&D(r.callee)?"Arguments":n},Yr=String,Xr=zt&&!ir?Object.defineProperties:function(t,r){ar(t);for(var e,n=Ut(r),o=Br(r),i=o.length,a=0;i>a;)vr.f(t,e=o[a++],n[e]);return t},Qr={f:Xr},Zr=Z("document","documentElement"),te=Ot("keys"),re=Qr,ee=Zr,ne=function(t){return te[t]||(te[t]=St(t))},oe="prototype",ie="script",ae=ne("IE_PROTO"),ue=function(){},ce=function(t){return"<"+ie+">"+t+""},fe=function(t){t.write(ce("")),t.close();var r=t.parentWindow.Object;return t=null,r},se=function(){try{Vr=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;se="undefined"!=typeof document?document.domain&&Vr?fe(Vr):(r=Dt("iframe"),e="java"+ie+":",r.style.display="none",ee.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(ce("document.F=Object")),t.close(),t.F):fe(Vr);for(var n=zr.length;n--;)delete se[oe][zr[n]];return se()};Cr[ae]=!0;var le,pe,ve,ye=Object.create||function(t,r){var e;return null!==t?(ue[oe]=ar(t),e=new ue,ue[oe]=null,e[ae]=t):e=se(),void 0===r?e:re.f(e,r)},de=zr.concat("length","prototype"),he={f:Object.getOwnPropertyNames||function(t){return Rr(t,de)}},be=m([].slice),ge=he,me=be,we=ge.f,_e="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Oe={f:function(t){return _e&&"Window"===O(t)?function(t){try{return we(t)}catch(t){return me(_e)}}(t):we(Ut(t))}},je={f:Object.getOwnPropertySymbols},Se={f:Mt},Pe=vr.f,xe=function(t,r,e,n){return n&&n.enumerable?t[r]=e:gr(t,r,e),t},Ae=$r?{}.toString:function(){return"[object "+Jr(this)+"]"},Te=vr.f,Ee=Mt("toStringTag"),Fe=B.WeakMap,Me=D(Fe)&&/native code/.test(String(Fe)),Ie="Object already initialized",Ce=B.TypeError,Le=B.WeakMap;if(Me||yt.state){var ke=yt.state||(yt.state=new Le);ke.get=ke.get,ke.has=ke.has,ke.set=ke.set,le=function(t,r){if(ke.has(t))throw new Ce(Ie);return r.facade=t,ke.set(t,r),r},pe=function(t){return ke.get(t)||{}},ve=function(t){return ke.has(t)}}else{var Re=ne("state");Cr[Re]=!0,le=function(t,r){if(jt(t,Re))throw new Ce(Ie);return r.facade=t,gr(t,Re,r),r},pe=function(t){return jt(t,Re)?t[Re]:{}},ve=function(t){return jt(t,Re)}}var ze={set:le,get:pe,has:ve,enforce:function(t){return ve(t)?pe(t):le(t,{})},getterFor:function(t){return function(r){var e;if(!ft(r)||(e=pe(r)).type!==t)throw new Ce("Incompatible receiver, "+t+" required");return e}}},De=Array.isArray||function(t){return"Array"===O(t)},Ne=m(Function.toString);D(yt.inspectSource)||(yt.inspectSource=function(t){return Ne(t)});var Be=yt.inspectSource,Ge=function(){},Ue=Z("Reflect","construct"),We=/^\s*(?:class|function)\b/,Ve=m(We.exec),$e=!We.test(Ge),He=function(t){if(!D(t))return!1;try{return Ue(Ge,[],t),!0}catch(t){return!1}},Ke=function(t){if(!D(t))return!1;switch(Jr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return $e||!!Ve(We,Be(t))}catch(t){return!0}};Ke.sham=!0;var qe=!Ue||c((function(){var t;return He(He.call)||!He(Object)||!He((function(){t=!0}))||t}))?Ke:He,Je=De,Ye=qe,Xe=Mt("species"),Qe=Array,Ze=function(t){var r;return Je(t)&&(r=t.constructor,(Ye(r)&&(r===Qe||Je(r.prototype))||ft(r)&&null===(r=r[Xe]))&&(r=void 0)),void 0===r?Qe:r},tn=function(t,r){return new(Ze(t))(0===r?0:r)},rn=m([].push),en=function(t){var r=1===t,e=2===t,n=3===t,o=4===t,i=6===t,a=7===t,u=5===t||i;return function(c,f,s,l){for(var p,v,y=ht(c),d=R(y),h=Fr(d),b=br(f,s),g=0,m=l||tn,w=r?m(c,h):e||a?m(c,0):void 0;h>g;g++)if((u||g in d)&&(v=b(p=d[g],g,y),t))if(r)w[g]=v;else if(v)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:rn(w,p)}else switch(t){case 4:return!1;case 7:rn(w,p)}return i?-1:n||o?o:w}},nn={forEach:en(0),map:en(1),filter:en(2),some:en(3),every:en(4),find:en(5),findIndex:en(6),filterReject:en(7)},on=function(t){if("Symbol"===Jr(t))throw new TypeError("Cannot convert a Symbol value to a string");return Yr(t)},an=ye,un=Oe,cn=je,fn=function(t,r,e){return vr.f(t,r,e)},sn=function(t){var r=N.Symbol||(N.Symbol={});jt(r,t)||Pe(r,t,{value:Se.f(t)})},ln=function(){var t=Z("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,n=Mt("toPrimitive");r&&!r[n]&&xe(r,n,(function(t){return ct(e,this)}),{arity:1})},pn=function(t,r,e,n){var o=e?t:t&&t.prototype;o&&(jt(o,Ee)||Te(o,Ee,{configurable:!0,value:r}),n&&!$r&&gr(o,"toString",Ae))},vn=ze,yn=nn,dn=yn.forEach,hn=ne("hidden"),bn="Symbol",gn="prototype",mn=vn.set,wn=vn.getterFor(bn),_n=Object[gn],On=B.Symbol,jn=On&&On[gn],Sn=B.RangeError,Pn=B.TypeError,xn=B.QObject,An=dr.f,Tn=vr.f,En=un.f,Fn=Bt.f,Mn=m([].push),In=Ot("symbols"),Cn=Ot("op-symbols"),Ln=Ot("wks"),kn=!xn||!xn[gn]||!xn[gn].findChild,Rn=function(t,r,e){var n=An(_n,r);n&&delete _n[r],Tn(t,r,e),n&&t!==_n&&Tn(_n,r,n)},zn=zt&&c((function(){return 7!==an(Tn({},"a",{get:function(){return Tn(this,"a",{value:7}).a}})).a}))?Rn:Tn,Dn=function(t,r){var e=In[t]=an(jn);return mn(e,{type:bn,tag:t,description:r}),zt||(e.description=r),e},Nn=function(t,r,e){t===_n&&Nn(Cn,r,e),ar(t);var n=Wt(r);return ar(e),jt(In,n)?(e.enumerable?(jt(t,hn)&&t[hn][n]&&(t[hn][n]=!1),e=an(e,{enumerable:Gt(0,!1)})):(jt(t,hn)||Tn(t,hn,Gt(1,an(null))),t[hn][n]=!0),zn(t,n,e)):Tn(t,n,e)},Bn=function(t,r){ar(t);var e=Ut(r),n=Br(e).concat(Vn(e));return dn(n,(function(r){zt&&!ct(Gn,e,r)||Nn(t,r,e[r])})),t},Gn=function(t){var r=Wt(t),e=ct(Fn,this,r);return!(this===_n&&jt(In,r)&&!jt(Cn,r))&&(!(e||!jt(this,r)||!jt(In,r)||jt(this,hn)&&this[hn][r])||e)},Un=function(t,r){var e=Ut(t),n=Wt(r);if(e!==_n||!jt(In,n)||jt(Cn,n)){var o=An(e,n);return!o||!jt(In,n)||jt(e,hn)&&e[hn][n]||(o.enumerable=!0),o}},Wn=function(t){var r=En(Ut(t)),e=[];return dn(r,(function(t){jt(In,t)||jt(Cr,t)||Mn(e,t)})),e},Vn=function(t){var r=t===_n,e=En(r?Cn:Ut(t)),n=[];return dn(e,(function(t){!jt(In,t)||r&&!jt(_n,t)||Mn(n,In[t])})),n};X||(On=function(){if(tt(jn,this))throw new Pn("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?on(arguments[0]):void 0,r=St(t),e=function(t){var n=void 0===this?B:this;n===_n&&ct(e,Cn,t),jt(n,hn)&&jt(n[hn],r)&&(n[hn][r]=!1);var o=Gt(1,t);try{zn(n,r,o)}catch(t){if(!(t instanceof Sn))throw t;Rn(n,r,o)}};return zt&&kn&&zn(_n,r,{configurable:!0,set:e}),Dn(r,t)},jn=On[gn],xe(jn,"toString",(function(){return wn(this).tag})),xe(On,"withoutSetter",(function(t){return Dn(St(t),t)})),Bt.f=Gn,vr.f=Nn,re.f=Bn,dr.f=Un,ge.f=un.f=Wn,cn.f=Vn,Se.f=function(t){return Dn(Mt(t),t)},zt&&fn(jn,"description",{configurable:!0,get:function(){return wn(this).description}})),Nr({global:!0,constructor:!0,wrap:!0,forced:!X,sham:!X},{Symbol:On}),dn(Br(Ln),(function(t){sn(t)})),Nr({target:bn,stat:!0,forced:!X},{useSetter:function(){kn=!0},useSimple:function(){kn=!1}}),Nr({target:"Object",stat:!0,forced:!X,sham:!zt},{create:function(t,r){return void 0===r?an(t):Bn(an(t),r)},defineProperty:Nn,defineProperties:Bn,getOwnPropertyDescriptor:Un}),Nr({target:"Object",stat:!0,forced:!X},{getOwnPropertyNames:Wn}),ln(),pn(On,bn),Cr[hn]=!0;var $n=X&&!!Symbol.for&&!!Symbol.keyFor,Hn=Ot("string-to-symbol-registry"),Kn=Ot("symbol-to-string-registry");Nr({target:"Symbol",stat:!0,forced:!$n},{for:function(t){var r=on(t);if(jt(Hn,r))return Hn[r];var e=Z("Symbol")(r);return Hn[r]=e,Kn[e]=r,e}});var qn=Ot("symbol-to-string-registry");Nr({target:"Symbol",stat:!0,forced:!$n},{keyFor:function(t){if(!Tt(t))throw new TypeError(it(t)+" is not a symbol");if(jt(qn,t))return qn[t]}});var Jn=m([].push),Yn=function(t){if(D(t))return t;if(Je(t)){for(var r=t.length,e=[],n=0;n=51||!c((function(){var r=[];return(r.constructor={})[vo]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},ho=yn.filter,bo=yo("filter");Nr({target:"Array",proto:!0,forced:!bo},{filter:function(t){return ho(this,t,arguments.length>1?arguments[1]:void 0)}});var go=function(t,r){var e=N[t+"Prototype"],n=e&&e[r];if(n)return n;var o=B[t],i=o&&o.prototype;return i&&i[r]},mo=go("Array","filter"),wo=Array.prototype,_o=function(t){var r=t.filter;return t===wo||tt(wo,t)&&r===wo.filter?mo:r},Oo=dr.f,jo=!zt||c((function(){Oo(1)}));Nr({target:"Object",stat:!0,forced:jo,sham:!zt},{getOwnPropertyDescriptor:function(t,r){return Oo(Ut(t),r)}});var So=e((function(t){var r=N.Object,e=t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)};r.getOwnPropertyDescriptor.sham&&(e.sham=!0)})),Po=So,xo=function(t,r){var e=[][t];return!!e&&c((function(){e.call(null,r||function(){return 1},1)}))},Ao=yn.forEach,To=xo("forEach")?[].forEach:function(t){return Ao(this,t,arguments.length>1?arguments[1]:void 0)};Nr({target:"Array",proto:!0,forced:[].forEach!==To},{forEach:To});var Eo=go("Array","forEach"),Fo=Array.prototype,Mo={DOMTokenList:!0,NodeList:!0},Io=function(t){var r=t.forEach;return t===Fo||tt(Fo,t)&&r===Fo.forEach||jt(Mo,Jr(t))?Eo:r},Co=m([].concat),Lo=Z("Reflect","ownKeys")||function(t){var r=ge.f(ar(t)),e=cn.f;return e?Co(r,e(t)):r},ko=Lo,Ro=function(t,r,e){zt?vr.f(t,r,Gt(0,e)):t[r]=e};Nr({target:"Object",stat:!0,sham:!zt},{getOwnPropertyDescriptors:function(t){for(var r,e,n=Ut(t),o=dr.f,i=ko(n),a={},u=0;i.length>u;)void 0!==(e=o(n,r=i[u++]))&&Ro(a,r,e);return a}});var zo=N.Object.getOwnPropertyDescriptors,Do=re.f;Nr({target:"Object",stat:!0,forced:Object.defineProperties!==Do,sham:!zt},{defineProperties:Do});var No=e((function(t){var r=N.Object,e=t.exports=function(t,e){return r.defineProperties(t,e)};r.defineProperties.sham&&(e.sham=!0)})),Bo=No,Go=vr.f;Nr({target:"Object",stat:!0,forced:Object.defineProperty!==Go,sham:!zt},{defineProperty:Go});var Uo=e((function(t){var r=N.Object,e=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(e.sham=!0)})),Wo=Uo,Vo=Wo,$o=Function,Ho=m([].concat),Ko=m([].join),qo={},Jo=s?$o.bind:function(t){var r=ut(this),e=r.prototype,n=me(arguments,1),o=function(){var e=Ho(n,me(arguments));return this instanceof o?function(t,r,e){if(!jt(qo,r)){for(var n=[],o=0;o9007199254740991)throw fi("Maximum allowed index exceeded");return t},pi=c((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();Nr({target:"Array",proto:!0,arity:1,forced:pi},{push:function(t){var r=ht(this),e=Fr(r),n=arguments.length;li(e+n);for(var o=0;o=51||!c((function(){var t=[];return t[Ri]=!1,t.concat()[0]!==t})),Di=function(t){if(!ft(t))return!1;var r=t[Ri];return void 0!==r?!!r:Je(t)},Ni=!zi||!yo("concat");Nr({target:"Array",proto:!0,arity:1,forced:Ni},{concat:function(t){var r,e,n,o,i,a=ht(this),u=tn(a,0),c=0;for(r=-1,n=arguments.length;r=r.length)return t.target=void 0,ma(void 0,!0);switch(t.kind){case"keys":return ma(e,!1);case"values":return ma(r[e],!1)}return ma([e,r[e]],!1)}),"values");aa.Arguments=aa.Array;ba(),ba(),ba();var ja={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};for(var Sa in ja)pn(B[Sa],Sa),aa[Sa]=aa.Array;var Pa=Hi,xa=vr.f,Aa=Mt("metadata"),Ta=Function.prototype;void 0===Ta[Aa]&&xa(Ta,Aa,{value:null}),sn("asyncDispose"),sn("dispose"),sn("metadata");var Ea=Pa,Fa=Z("Symbol"),Ma=Fa.keyFor,Ia=m(Fa.prototype.valueOf),Ca=Fa.isRegisteredSymbol||function(t){try{return void 0!==Ma(Ia(t))}catch(t){return!1}};Nr({target:"Symbol",stat:!0},{isRegisteredSymbol:Ca});for(var La=Z("Symbol"),ka=La.isWellKnownSymbol,Ra=Z("Object","getOwnPropertyNames"),za=m(La.prototype.valueOf),Da=Ot("wks"),Na=0,Ba=Ra(La),Ga=Ba.length;Na=u?t?"":void 0:(n=Ha(i,a))<55296||n>56319||a+1===u||(o=Ha(i,a+1))<56320||o>57343?t?$a(i,a):n:t?Ka(i,a,a+2):o-56320+(n-55296<<10)+65536}},Ja={codeAt:qa(!1),charAt:qa(!0)}.charAt,Ya="String Iterator",Xa=vn.set,Qa=vn.getterFor(Ya);ga(String,"String",(function(t){Xa(this,{type:Ya,string:on(t),index:0})}),(function(){var t,r=Qa(this),e=r.string,n=r.index;return n>=e.length?ma(void 0,!0):(t=Ja(e,n),r.index+=t.length,ma(t,!1))}));var Za=Se.f("iterator"),tu=Va,ru=Za,eu=e((function(t){function r(e){return t.exports=r="function"==typeof tu&&"symbol"==typeof ru?function(t){return typeof t}:function(t){return t&&"function"==typeof tu&&t.constructor===tu&&t!==tu.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}));r(eu),n(Object.freeze({__proto__:null}));var nu=Se.f("toPrimitive"),ou=e((function(t){var r=eu.default;t.exports=function(t,e){if("object"!=r(t)||!t)return t;var n=t[nu];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}));r(ou);var iu=e((function(t){var r=eu.default;t.exports=function(t){var e=ou(t,"string");return"symbol"==r(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports}));r(iu);var au=ki,uu=r(e((function(t){function r(t,r){for(var e=0;e-1};var mu=function(t,r){var e=this.__data__,n=yu(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};function wu(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r-1&&t%1==0&&t<=9007199254740991};var qc=function(t){return null!=t&&Kc(t.length)&&!Bu(t)};var Jc=function(t){return Nc(t)&&qc(t)};var Yc=function(){return!1},Xc=e((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e?Tu.Buffer:void 0,i=(o?o.isBuffer:void 0)||Yc;t.exports=i})),Qc=Function.prototype,Zc=Object.prototype,tf=Qc.toString,rf=Zc.hasOwnProperty,ef=tf.call(Object);var nf=function(t){if(!Nc(t)||"[object Object]"!=Du(t))return!1;var r=kc(t);if(null===r)return!0;var e=rf.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&tf.call(e)==ef},of={};of["[object Float32Array]"]=of["[object Float64Array]"]=of["[object Int8Array]"]=of["[object Int16Array]"]=of["[object Int32Array]"]=of["[object Uint8Array]"]=of["[object Uint8ClampedArray]"]=of["[object Uint16Array]"]=of["[object Uint32Array]"]=!0,of["[object Arguments]"]=of["[object Array]"]=of["[object ArrayBuffer]"]=of["[object Boolean]"]=of["[object DataView]"]=of["[object Date]"]=of["[object Error]"]=of["[object Function]"]=of["[object Map]"]=of["[object Number]"]=of["[object Object]"]=of["[object RegExp]"]=of["[object Set]"]=of["[object String]"]=of["[object WeakMap]"]=!1;var af=function(t){return Nc(t)&&Kc(t.length)&&!!of[Du(t)]};var uf=function(t){return function(r){return t(r)}},cf=e((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e&&xu.process,i=function(){try{var t=n&&n.require&&n.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i})),ff=cf&&cf.isTypedArray,sf=ff?uf(ff):af;var lf=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]},pf=Object.prototype.hasOwnProperty;var vf=function(t,r,e){var n=t[r];pf.call(t,r)&&vu(n,e)&&(void 0!==e||r in t)||Pc(t,r,e)};var yf=function(t,r,e,n){var o=!e;e||(e={});for(var i=-1,a=r.length;++i-1&&t%1==0&&t0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}},kf=Lf(If);var Rf=function(t,r){return kf(Ff(t,r,Af),t+"")};var zf=function(t,r,e){if(!Nu(e))return!1;var n=typeof r;return!!("number"==n?qc(e)&&bf(r,e.length):"string"==n&&r in e)&&vu(e[r],t)};var Df=function(t){return Rf((function(r,e){var n=-1,o=e.length,i=o>1?e[o-1]:void 0,a=o>2?e[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,a&&zf(e[0],e[1],a)&&(i=o<3?void 0:i,o=1),r=Object(r);++n0&&void 0!==arguments[0]?arguments[0]:{};Li(this,t),cu(this,"mermaidAPIRefs",null),cu(this,"options",Gf),cu(this,"dom",null),cu(this,"mermaidCanvas",null);var e=r.mermaid,n=r.mermaidAPI;if(!(n||window.mermaidAPI||e&&e.mermaidAPI||window.mermaid&&window.mermaid.mermaidAPI))throw new Error("code-block-mermaid-plugin[init]: Package mermaid or mermaidAPI not found.");this.options=Bf(Bf({},Gf),r||{}),this.mermaidAPIRefs=n||window.mermaidAPI||e.mermaidAPI||window.mermaid.mermaidAPI,delete this.options.mermaid,delete this.options.mermaidAPI,this.mermaidAPIRefs.initialize(this.options)}return uu(t,[{key:"mountMermaidCanvas",value:function(t){this.mermaidCanvas&&document.body.contains(this.mermaidCanvas)||(this.mermaidCanvas=document.createElement("div"),this.mermaidCanvas.style="width:1024px;opacity:0;position:fixed;top:100%;",(t.$cherry.wrapperDom||document.body).appendChild(this.mermaidCanvas))}},{key:"convertMermaidSvgToImg",value:function(t,r){var e,n=new DOMParser,o=function(t){return t.replace("')}}else e=o(t)}catch(r){e=o(t)}return e}},{key:"render",value:function(t,r,e){var n,o,i,a=this,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=r;c||(c=Math.round(1e8*Math.random())),this.mountMermaidCanvas(e);var f=lu(n="mermaid-".concat(c,"-")).call(n,(new Date).getTime());this.svg2img=null!==(o=null==u?void 0:u.svg2img)&&void 0!==o&&o;try{this.mermaidAPIRefs.render(f,t,(function(t){var r=t.replace(/\s*markerUnits="0"/g,"").replace(/\s*x="NaN"/g,"").replace(/
/g,"
");i=a.convertMermaidSvgToImg(r,f)}),this.mermaidCanvas)}catch(t){return null==t?void 0:t.str}return i}}],[{key:"install",value:function(r){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o0&&o[0]<4?1:+(o[0]+o[1])),!i&&$&&(!(o=$.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=$.match(/Chrome\/(\d+)/))&&(i=+o[1]);var H=i,J=G.String,Y=!!Object.getOwnPropertySymbols&&!c((function(){var t=Symbol("symbol detection");return!J(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&H&&H<41})),X=Y,Q=X&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Z=function(t,r){return arguments.length<2?U(N[t])||U(G[t]):N[t]&&N[t][r]||G[t]&&G[t][r]},tt=B,rt=Q,et=Object,nt=rt?function(t){return"symbol"==typeof t}:function(t){var r=Z("Symbol");return D(r)&&tt(r.prototype,et(t))},ot=String,it=function(t){try{return ot(t)}catch(t){return"Object"}},ut=TypeError,at=function(t){if(D(t))return t;throw new ut(it(t)+" is not a function")},ct=P,ft=function(t){return"object"==typeof t?null!==t:D(t)},lt=TypeError,st=Object.defineProperty,pt=function(t,r){try{st(G,t,{value:r,configurable:!0,writable:!0})}catch(e){G[t]=r}return r},vt=e((function(t){var r="__core-js_shared__",e=t.exports=G[r]||pt(r,{});(e.versions||(e.versions=[])).push({version:"3.37.1",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),yt=vt,dt=Object,ht=function(t){return dt(R(t))},bt=m({}.hasOwnProperty),gt=Object.hasOwn||function(t,r){return bt(ht(t),r)},mt=0,_t=Math.random(),wt=m(1..toString),Ot=function(t,r){return yt[t]||(yt[t]=r||{})},jt=gt,St=function(t){return"Symbol("+(void 0===t?"":t)+")_"+wt(++mt+_t,36)},xt=G.Symbol,At=Ot("wks"),Pt=rt?xt.for||xt:xt&&xt.withoutSetter||St,Tt=nt,Et=function(t,r){var e=t[r];return k(e)?void 0:at(e)},Ct=function(t,r){var e,n;if("string"===r&&D(e=t.toString)&&!ft(n=ct(e,t)))return n;if(D(e=t.valueOf)&&!ft(n=ct(e,t)))return n;if("string"!==r&&D(e=t.toString)&&!ft(n=ct(e,t)))return n;throw new lt("Can't convert object to primitive value")},Ft=function(t){return jt(At,t)||(At[t]=X&&jt(xt,t)?xt[t]:Pt("Symbol."+t)),At[t]},Mt=TypeError,Lt=Ft("toPrimitive"),kt=function(t,r){if(!ft(t)||Tt(t))return t;var e,n=Et(t,Lt);if(n){if(void 0===r&&(r="default"),e=ct(n,t,r),!ft(e)||Tt(e))return e;throw new Mt("Can't convert object to primitive value")}return void 0===r&&(r="number"),Ct(t,r)},zt=G.document,It=ft(zt)&&ft(zt.createElement),Rt=x,Dt=function(t){return It?zt.createElement(t):{}},Nt=!Rt&&!c((function(){return 7!==Object.defineProperty(Dt("div"),"a",{get:function(){return 7}}).a})),Gt=C,Ut=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},Bt=function(t){return I(R(t))},$t=function(t){var r=kt(t,"string");return Tt(r)?r:r+""},Wt=Nt,Vt=Object.getOwnPropertyDescriptor,Kt={f:Rt?Vt:function(t,r){if(t=Bt(t),r=$t(r),Wt)try{return Vt(t,r)}catch(t){}if(jt(t,r))return Ut(!ct(Gt.f,t,r),t[r])}},qt=/#|\.prototype\./,Ht=function(t,r){var e=Yt[Jt(t)];return e===Qt||e!==Xt&&(D(r)?c(r):!!r)},Jt=Ht.normalize=function(t){return String(t).replace(qt,".").toLowerCase()},Yt=Ht.data={},Xt=Ht.NATIVE="N",Qt=Ht.POLYFILL="P",Zt=Ht,tr=function(t){if("Function"===O(t))return m(t)},rr=tr(tr.bind),er=Rt&&c((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),nr=String,or=TypeError,ir=er,ur=function(t){if(ft(t))return t;throw new or(nr(t)+" is not an object")},ar=TypeError,cr=Object.defineProperty,fr=Object.getOwnPropertyDescriptor,lr="enumerable",sr="configurable",pr="writable",vr={f:Rt?ir?function(t,r,e){if(ur(t),r=$t(r),ur(e),"function"==typeof t&&"prototype"===r&&"value"in e&&pr in e&&!e[pr]){var n=fr(t,r);n&&n[pr]&&(t[r]=e.value,e={configurable:sr in e?e[sr]:n[sr],enumerable:lr in e?e[lr]:n[lr],writable:!1})}return cr(t,r,e)}:cr:function(t,r,e){if(ur(t),r=$t(r),ur(e),Wt)try{return cr(t,r,e)}catch(t){}if("get"in e||"set"in e)throw new ar("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},yr=y,dr=Kt,hr=Zt,br=function(t,r){return at(t),void 0===r?t:l?rr(t,r):function(){return t.apply(r,arguments)}},gr=Rt?function(t,r,e){return vr.f(t,r,Ut(1,e))}:function(t,r,e){return t[r]=e,t},mr=dr.f,_r=function(t){var r=function(e,n,o){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,o)}return yr(t,this,arguments)};return r.prototype=t.prototype,r},wr=Math.ceil,Or=Math.floor,jr=Math.trunc||function(t){var r=+t;return(r>0?Or:wr)(r)},Sr=function(t){var r=+t;return r!=r||0===r?0:jr(r)},xr=Math.max,Ar=Math.min,Pr=Math.min,Tr=function(t){var r=Sr(t);return r>0?Pr(r,9007199254740991):0},Er=function(t,r){var e=Sr(t);return e<0?xr(e+r,0):Ar(e,r)},Cr=function(t){return Tr(t.length)},Fr=function(t){return function(r,e,n){var o=Bt(r),i=Cr(o);if(0===i)return!t&&-1;var u,a=Er(n,i);if(t&&e!=e){for(;i>a;)if((u=o[a++])!=u)return!0}else for(;i>a;a++)if((t||a in o)&&o[a]===e)return t||a||0;return!t&&-1}},Mr={includes:Fr(!0),indexOf:Fr(!1)},Lr={},kr=Mr.indexOf,zr=m([].push),Ir=function(t,r){var e,n=Bt(t),o=0,i=[];for(e in n)!jt(Lr,e)&&jt(n,e)&&zr(i,e);for(;r.length>o;)jt(n,e=r[o++])&&(~kr(i,e)||zr(i,e));return i},Rr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dr=Object.keys||function(t){return Ir(t,Rr)},Nr=function(t,r){var e,n,o,i,u,a,c,f,l,s=t.target,p=t.global,v=t.stat,y=t.proto,d=p?G:v?G[s]:G[s]&&G[s].prototype,h=p?N:N[s]||gr(N,s,{})[s],b=h.prototype;for(i in r)n=!(e=hr(p?i:s+(v?".":"#")+i,t.forced))&&d&&jt(d,i),a=h[i],n&&(c=t.dontCallGetSet?(l=mr(d,i))&&l.value:d[i]),u=n&&c?c:r[i],(e||y||typeof a!=typeof u)&&(f=t.bind&&n?br(u,G):t.wrap&&n?_r(u):y&&D(u)?tr(u):u,(t.sham||u&&u.sham||a&&a.sham)&&gr(f,"sham",!0),gr(h,i,f),y&&(jt(N,o=s+"Prototype")||gr(N,o,{}),gr(N[o],i,u),t.real&&b&&(e||!b[i])&&gr(b,i,u)))},Gr=Dr,Ur=c((function(){Gr(1)}));Nr({target:"Object",stat:!0,forced:Ur},{keys:function(t){return Gr(ht(t))}});var Br=N.Object.keys,$r={};$r[Ft("toStringTag")]="z";var Wr,Vr="[object z]"===String($r),Kr=Ft("toStringTag"),qr=Object,Hr="Arguments"===O(function(){return arguments}()),Jr=Vr?O:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=qr(t),Kr))?e:Hr?O(r):"Object"===(n=O(r))&&D(r.callee)?"Arguments":n},Yr=String,Xr=Rt&&!ir?Object.defineProperties:function(t,r){ur(t);for(var e,n=Bt(r),o=Gr(r),i=o.length,u=0;i>u;)vr.f(t,e=o[u++],n[e]);return t},Qr={f:Xr},Zr=Z("document","documentElement"),te=Ot("keys"),re=Qr,ee=Zr,ne=function(t){return te[t]||(te[t]=St(t))},oe="prototype",ie="script",ue=ne("IE_PROTO"),ae=function(){},ce=function(t){return"<"+ie+">"+t+""},fe=function(t){t.write(ce("")),t.close();var r=t.parentWindow.Object;return t=null,r},le=function(){try{Wr=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;le="undefined"!=typeof document?document.domain&&Wr?fe(Wr):(r=Dt("iframe"),e="java"+ie+":",r.style.display="none",ee.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(ce("document.F=Object")),t.close(),t.F):fe(Wr);for(var n=Rr.length;n--;)delete le[oe][Rr[n]];return le()};Lr[ue]=!0;var se,pe,ve,ye=Object.create||function(t,r){var e;return null!==t?(ae[oe]=ur(t),e=new ae,ae[oe]=null,e[ue]=t):e=le(),void 0===r?e:re.f(e,r)},de=Rr.concat("length","prototype"),he={f:Object.getOwnPropertyNames||function(t){return Ir(t,de)}},be=m([].slice),ge=he,me=be,_e=ge.f,we="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Oe={f:function(t){return we&&"Window"===O(t)?function(t){try{return _e(t)}catch(t){return me(we)}}(t):_e(Bt(t))}},je={f:Object.getOwnPropertySymbols},Se={f:Ft},xe=vr.f,Ae=function(t,r,e,n){return n&&n.enumerable?t[r]=e:gr(t,r,e),t},Pe=Vr?{}.toString:function(){return"[object "+Jr(this)+"]"},Te=vr.f,Ee=Ft("toStringTag"),Ce=G.WeakMap,Fe=D(Ce)&&/native code/.test(String(Ce)),Me="Object already initialized",Le=G.TypeError,ke=G.WeakMap;if(Fe||yt.state){var ze=yt.state||(yt.state=new ke);ze.get=ze.get,ze.has=ze.has,ze.set=ze.set,se=function(t,r){if(ze.has(t))throw new Le(Me);return r.facade=t,ze.set(t,r),r},pe=function(t){return ze.get(t)||{}},ve=function(t){return ze.has(t)}}else{var Ie=ne("state");Lr[Ie]=!0,se=function(t,r){if(jt(t,Ie))throw new Le(Me);return r.facade=t,gr(t,Ie,r),r},pe=function(t){return jt(t,Ie)?t[Ie]:{}},ve=function(t){return jt(t,Ie)}}var Re={set:se,get:pe,has:ve,enforce:function(t){return ve(t)?pe(t):se(t,{})},getterFor:function(t){return function(r){var e;if(!ft(r)||(e=pe(r)).type!==t)throw new Le("Incompatible receiver, "+t+" required");return e}}},De=Array.isArray||function(t){return"Array"===O(t)},Ne=m(Function.toString);D(yt.inspectSource)||(yt.inspectSource=function(t){return Ne(t)});var Ge=yt.inspectSource,Ue=function(){},Be=Z("Reflect","construct"),$e=/^\s*(?:class|function)\b/,We=m($e.exec),Ve=!$e.test(Ue),Ke=function(t){if(!D(t))return!1;try{return Be(Ue,[],t),!0}catch(t){return!1}},qe=function(t){if(!D(t))return!1;switch(Jr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ve||!!We($e,Ge(t))}catch(t){return!0}};qe.sham=!0;var He=!Be||c((function(){var t;return Ke(Ke.call)||!Ke(Object)||!Ke((function(){t=!0}))||t}))?qe:Ke,Je=De,Ye=He,Xe=Ft("species"),Qe=Array,Ze=function(t){var r;return Je(t)&&(r=t.constructor,(Ye(r)&&(r===Qe||Je(r.prototype))||ft(r)&&null===(r=r[Xe]))&&(r=void 0)),void 0===r?Qe:r},tn=function(t,r){return new(Ze(t))(0===r?0:r)},rn=m([].push),en=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,l,s){for(var p,v,y=ht(c),d=I(y),h=Cr(d),b=br(f,l),g=0,m=s||tn,_=r?m(c,h):e||u?m(c,0):void 0;h>g;g++)if((a||g in d)&&(v=b(p=d[g],g,y),t))if(r)_[g]=v;else if(v)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:rn(_,p)}else switch(t){case 4:return!1;case 7:rn(_,p)}return i?-1:n||o?o:_}},nn={forEach:en(0),map:en(1),filter:en(2),some:en(3),every:en(4),find:en(5),findIndex:en(6),filterReject:en(7)},on=function(t){if("Symbol"===Jr(t))throw new TypeError("Cannot convert a Symbol value to a string");return Yr(t)},un=ye,an=Oe,cn=je,fn=function(t,r,e){return vr.f(t,r,e)},ln=function(t){var r=N.Symbol||(N.Symbol={});jt(r,t)||xe(r,t,{value:Se.f(t)})},sn=function(){var t=Z("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,n=Ft("toPrimitive");r&&!r[n]&&Ae(r,n,(function(t){return ct(e,this)}),{arity:1})},pn=function(t,r,e,n){var o=e?t:t&&t.prototype;o&&(jt(o,Ee)||Te(o,Ee,{configurable:!0,value:r}),n&&!Vr&&gr(o,"toString",Pe))},vn=Re,yn=nn,dn=yn.forEach,hn=ne("hidden"),bn="Symbol",gn="prototype",mn=vn.set,_n=vn.getterFor(bn),wn=Object[gn],On=G.Symbol,jn=On&&On[gn],Sn=G.RangeError,xn=G.TypeError,An=G.QObject,Pn=dr.f,Tn=vr.f,En=an.f,Cn=Gt.f,Fn=m([].push),Mn=Ot("symbols"),Ln=Ot("op-symbols"),kn=Ot("wks"),zn=!An||!An[gn]||!An[gn].findChild,In=function(t,r,e){var n=Pn(wn,r);n&&delete wn[r],Tn(t,r,e),n&&t!==wn&&Tn(wn,r,n)},Rn=Rt&&c((function(){return 7!==un(Tn({},"a",{get:function(){return Tn(this,"a",{value:7}).a}})).a}))?In:Tn,Dn=function(t,r){var e=Mn[t]=un(jn);return mn(e,{type:bn,tag:t,description:r}),Rt||(e.description=r),e},Nn=function(t,r,e){t===wn&&Nn(Ln,r,e),ur(t);var n=$t(r);return ur(e),jt(Mn,n)?(e.enumerable?(jt(t,hn)&&t[hn][n]&&(t[hn][n]=!1),e=un(e,{enumerable:Ut(0,!1)})):(jt(t,hn)||Tn(t,hn,Ut(1,un(null))),t[hn][n]=!0),Rn(t,n,e)):Tn(t,n,e)},Gn=function(t,r){ur(t);var e=Bt(r),n=Gr(e).concat(Wn(e));return dn(n,(function(r){Rt&&!ct(Un,e,r)||Nn(t,r,e[r])})),t},Un=function(t){var r=$t(t),e=ct(Cn,this,r);return!(this===wn&&jt(Mn,r)&&!jt(Ln,r))&&(!(e||!jt(this,r)||!jt(Mn,r)||jt(this,hn)&&this[hn][r])||e)},Bn=function(t,r){var e=Bt(t),n=$t(r);if(e!==wn||!jt(Mn,n)||jt(Ln,n)){var o=Pn(e,n);return!o||!jt(Mn,n)||jt(e,hn)&&e[hn][n]||(o.enumerable=!0),o}},$n=function(t){var r=En(Bt(t)),e=[];return dn(r,(function(t){jt(Mn,t)||jt(Lr,t)||Fn(e,t)})),e},Wn=function(t){var r=t===wn,e=En(r?Ln:Bt(t)),n=[];return dn(e,(function(t){!jt(Mn,t)||r&&!jt(wn,t)||Fn(n,Mn[t])})),n};X||(On=function(){if(tt(jn,this))throw new xn("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?on(arguments[0]):void 0,r=St(t),e=function(t){var n=void 0===this?G:this;n===wn&&ct(e,Ln,t),jt(n,hn)&&jt(n[hn],r)&&(n[hn][r]=!1);var o=Ut(1,t);try{Rn(n,r,o)}catch(t){if(!(t instanceof Sn))throw t;In(n,r,o)}};return Rt&&zn&&Rn(wn,r,{configurable:!0,set:e}),Dn(r,t)},jn=On[gn],Ae(jn,"toString",(function(){return _n(this).tag})),Ae(On,"withoutSetter",(function(t){return Dn(St(t),t)})),Gt.f=Un,vr.f=Nn,re.f=Gn,dr.f=Bn,ge.f=an.f=$n,cn.f=Wn,Se.f=function(t){return Dn(Ft(t),t)},Rt&&fn(jn,"description",{configurable:!0,get:function(){return _n(this).description}})),Nr({global:!0,constructor:!0,wrap:!0,forced:!X,sham:!X},{Symbol:On}),dn(Gr(kn),(function(t){ln(t)})),Nr({target:bn,stat:!0,forced:!X},{useSetter:function(){zn=!0},useSimple:function(){zn=!1}}),Nr({target:"Object",stat:!0,forced:!X,sham:!Rt},{create:function(t,r){return void 0===r?un(t):Gn(un(t),r)},defineProperty:Nn,defineProperties:Gn,getOwnPropertyDescriptor:Bn}),Nr({target:"Object",stat:!0,forced:!X},{getOwnPropertyNames:$n}),sn(),pn(On,bn),Lr[hn]=!0;var Vn=X&&!!Symbol.for&&!!Symbol.keyFor,Kn=Ot("string-to-symbol-registry"),qn=Ot("symbol-to-string-registry");Nr({target:"Symbol",stat:!0,forced:!Vn},{for:function(t){var r=on(t);if(jt(Kn,r))return Kn[r];var e=Z("Symbol")(r);return Kn[r]=e,qn[e]=r,e}});var Hn=Ot("symbol-to-string-registry");Nr({target:"Symbol",stat:!0,forced:!Vn},{keyFor:function(t){if(!Tt(t))throw new TypeError(it(t)+" is not a symbol");if(jt(Hn,t))return Hn[t]}});var Jn=m([].push),Yn=function(t){if(D(t))return t;if(Je(t)){for(var r=t.length,e=[],n=0;n=51||!c((function(){var r=[];return(r.constructor={})[vo]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},ho=yn.filter,bo=yo("filter");Nr({target:"Array",proto:!0,forced:!bo},{filter:function(t){return ho(this,t,arguments.length>1?arguments[1]:void 0)}});var go=function(t,r){var e=N[t+"Prototype"],n=e&&e[r];if(n)return n;var o=G[t],i=o&&o.prototype;return i&&i[r]},mo=go("Array","filter"),_o=Array.prototype,wo=function(t){var r=t.filter;return t===_o||tt(_o,t)&&r===_o.filter?mo:r},Oo=dr.f,jo=!Rt||c((function(){Oo(1)}));Nr({target:"Object",stat:!0,forced:jo,sham:!Rt},{getOwnPropertyDescriptor:function(t,r){return Oo(Bt(t),r)}});var So=e((function(t){var r=N.Object,e=t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)};r.getOwnPropertyDescriptor.sham&&(e.sham=!0)})),xo=So,Ao=function(t,r){var e=[][t];return!!e&&c((function(){e.call(null,r||function(){return 1},1)}))},Po=yn.forEach,To=Ao("forEach")?[].forEach:function(t){return Po(this,t,arguments.length>1?arguments[1]:void 0)};Nr({target:"Array",proto:!0,forced:[].forEach!==To},{forEach:To});var Eo=go("Array","forEach");n(Object.freeze({__proto__:null}));var Co=Array.prototype,Fo={DOMTokenList:!0,NodeList:!0},Mo=function(t){var r=t.forEach;return t===Co||tt(Co,t)&&r===Co.forEach||jt(Fo,Jr(t))?Eo:r},Lo=m([].concat),ko=Z("Reflect","ownKeys")||function(t){var r=ge.f(ur(t)),e=cn.f;return e?Lo(r,e(t)):r},zo=ko,Io=function(t,r,e){Rt?vr.f(t,r,Ut(0,e)):t[r]=e};Nr({target:"Object",stat:!0,sham:!Rt},{getOwnPropertyDescriptors:function(t){for(var r,e,n=Bt(t),o=dr.f,i=zo(n),u={},a=0;i.length>a;)void 0!==(e=o(n,r=i[a++]))&&Io(u,r,e);return u}});var Ro=N.Object.getOwnPropertyDescriptors,Do=re.f;Nr({target:"Object",stat:!0,forced:Object.defineProperties!==Do,sham:!Rt},{defineProperties:Do});var No=e((function(t){var r=N.Object,e=t.exports=function(t,e){return r.defineProperties(t,e)};r.defineProperties.sham&&(e.sham=!0)})),Go=No,Uo=vr.f;Nr({target:"Object",stat:!0,forced:Object.defineProperty!==Uo,sham:!Rt},{defineProperty:Uo});var Bo=e((function(t){var r=N.Object,e=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(e.sham=!0)})),$o=Bo,Wo=Bo,Vo=TypeError,Ko=function(t){if(t>9007199254740991)throw Vo("Maximum allowed index exceeded");return t},qo=Ft("isConcatSpreadable"),Ho=H>=51||!c((function(){var t=[];return t[qo]=!1,t.concat()[0]!==t})),Jo=function(t){if(!ft(t))return!1;var r=t[qo];return void 0!==r?!!r:Je(t)},Yo=!Ho||!yo("concat");Nr({target:"Array",proto:!0,arity:1,forced:Yo},{concat:function(t){var r,e,n,o,i,u=ht(this),a=tn(u,0),c=0;for(r=-1,n=arguments.length;r=r.length)return t.target=void 0,Ii(void 0,!0);switch(t.kind){case"keys":return Ii(e,!1);case"values":return Ii(r[e],!1)}return Ii([e,r[e]],!1)}),"values");gi.Arguments=gi.Array;ki(),ki(),ki();var Gi={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};for(var Ui in Gi)pn(G[Ui],Ui),gi[Ui]=gi.Array;var Bi=oi,$i=vr.f,Wi=Ft("metadata"),Vi=Function.prototype;void 0===Vi[Wi]&&$i(Vi,Wi,{value:null}),ln("asyncDispose"),ln("dispose"),ln("metadata");var Ki=Bi,qi=Z("Symbol"),Hi=qi.keyFor,Ji=m(qi.prototype.valueOf),Yi=qi.isRegisteredSymbol||function(t){try{return void 0!==Hi(Ji(t))}catch(t){return!1}};Nr({target:"Symbol",stat:!0},{isRegisteredSymbol:Yi});for(var Xi=Z("Symbol"),Qi=Xi.isWellKnownSymbol,Zi=Z("Object","getOwnPropertyNames"),tu=m(Xi.prototype.valueOf),ru=Ot("wks"),eu=0,nu=Zi(Xi),ou=nu.length;eu=a?t?"":void 0:(n=fu(i,u))<55296||n>56319||u+1===a||(o=fu(i,u+1))<56320||o>57343?t?cu(i,u):n:t?lu(i,u,u+2):o-56320+(n-55296<<10)+65536}},pu={codeAt:su(!1),charAt:su(!0)}.charAt,vu="String Iterator",yu=vn.set,du=vn.getterFor(vu);zi(String,"String",(function(t){yu(this,{type:vu,string:on(t),index:0})}),(function(){var t,r=du(this),e=r.string,n=r.index;return n>=e.length?Ii(void 0,!0):(t=pu(e,n),r.index+=t.length,Ii(t,!1))}));var hu=Se.f("iterator"),bu=au,gu=hu,mu=e((function(t){function r(e){return t.exports=r="function"==typeof bu&&"symbol"==typeof gu?function(t){return typeof t}:function(t){return t&&"function"==typeof bu&&t.constructor===bu&&t!==bu.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}));r(mu),n(Object.freeze({__proto__:null}));var _u=Se.f("toPrimitive"),wu=e((function(t){var r=mu.default;t.exports=function(t,e){if("object"!=r(t)||!t)return t;var n=t[_u];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}));r(wu);var Ou=e((function(t){var r=mu.default;t.exports=function(t){var e=wu(t,"string");return"symbol"==r(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports}));r(Ou);var ju=Wo,Su=r(e((function(t){t.exports=function(t,r,e){return(r=Ou(r))in t?ju(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t},t.exports.__esModule=!0,t.exports.default=t.exports}))),xu=r(e((function(t){t.exports=function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}))),Au=r(e((function(t){function r(t,r){for(var e=0;e-1};var Ru=function(t,r){var e=this.__data__,n=Mu(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};function Du(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r-1&&t%1==0&&t<=9007199254740991};var pc=function(t){return null!=t&&sc(t.length)&&!oa(t)};var vc=function(t){return nc(t)&&pc(t)};var yc=function(){return!1},dc=e((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e?Ku.Buffer:void 0,i=(o?o.isBuffer:void 0)||yc;t.exports=i})),hc=Function.prototype,bc=Object.prototype,gc=hc.toString,mc=bc.hasOwnProperty,_c=gc.call(Object);var wc=function(t){if(!nc(t)||"[object Object]"!=ea(t))return!1;var r=Za(t);if(null===r)return!0;var e=mc.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&gc.call(e)==_c},Oc={};Oc["[object Float32Array]"]=Oc["[object Float64Array]"]=Oc["[object Int8Array]"]=Oc["[object Int16Array]"]=Oc["[object Int32Array]"]=Oc["[object Uint8Array]"]=Oc["[object Uint8ClampedArray]"]=Oc["[object Uint16Array]"]=Oc["[object Uint32Array]"]=!0,Oc["[object Arguments]"]=Oc["[object Array]"]=Oc["[object ArrayBuffer]"]=Oc["[object Boolean]"]=Oc["[object DataView]"]=Oc["[object Date]"]=Oc["[object Error]"]=Oc["[object Function]"]=Oc["[object Map]"]=Oc["[object Number]"]=Oc["[object Object]"]=Oc["[object RegExp]"]=Oc["[object Set]"]=Oc["[object String]"]=Oc["[object WeakMap]"]=!1;var jc=function(t){return nc(t)&&sc(t.length)&&!!Oc[ea(t)]};var Sc=function(t){return function(r){return t(r)}},xc=e((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e&&Wu.process,i=function(){try{var t=n&&n.require&&n.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i})),Ac=xc&&xc.isTypedArray,Pc=Ac?Sc(Ac):jc;var Tc=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]},Ec=Object.prototype.hasOwnProperty;var Cc=function(t,r,e){var n=t[r];Ec.call(t,r)&&Fu(n,e)&&(void 0!==e||r in t)||$a(t,r,e)};var Fc=function(t,r,e,n){var o=!e;e||(e={});for(var i=-1,u=r.length;++i-1&&t%1==0&&t0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}},Qc=Xc(Jc);var Zc=function(t,r){return Qc(qc(t,r,Wc),t+"")};var tf=function(t,r,e){if(!na(e))return!1;var n=typeof r;return!!("number"==n?pc(e)&&kc(r,e.length):"string"==n&&r in e)&&Fu(e[r],t)};var rf=function(t){return Zc((function(r,e){var n=-1,o=e.length,i=o>1?e[o-1]:void 0,u=o>2?e[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&tf(e[0],e[1],u)&&(i=o<3?void 0:i,o=1),r=Object(r);++n>>0||(vf(pf,e)?16:10))}:ff;Nr({global:!0,forced:parseInt!==yf},{parseInt:yf});var df=N.parseInt,hf=function(){var t,r,e,n,o,i,u,a,c,f,l,s,p,v,y,d,h,b,g,m,_,w,O,j,S,x,A,P,T,E,C,F,M,L,k,z,I,R,D,N,G,U,B,$,W,V,K,q,H,J,Y,X,Q,Z,tt,rt=32768,et=0,nt=1,ot=2,it=8192,ut=2*rt,at=3,ct=258,ft=8192,lt=ft,st=8192,pt=st-1,vt=rt-1,yt=0,dt=4096,ht=ct+at+1,bt=rt-ht,gt=1,mt=15,_t=7,wt=29,Ot=256,jt=256,St=Ot+1+wt,xt=30,At=19,Pt=16,Tt=17,Et=18,Ct=2*St+1,Ft=df((13+at-1)/at),Mt=null;function Lt(){this.fc=0,this.dl=0}function kt(){this.dyn_tree=null,this.static_tree=null,this.extra_bits=null,this.extra_base=0,this.elems=0,this.max_length=0,this.max_code=0}function zt(t,r,e,n){this.good_length=t,this.max_lazy=r,this.nice_length=e,this.max_chain=n}function It(){this.next=null,this.len=0,this.ptr=new Array(it),this.off=0}var Rt=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Dt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Nt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Gt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ut=[new zt(0,0,0,0),new zt(4,4,8,4),new zt(4,5,16,8),new zt(4,6,32,32),new zt(4,4,16,16),new zt(8,16,32,32),new zt(8,16,128,128),new zt(8,32,128,256),new zt(32,128,258,1024),new zt(32,258,258,4096)];function Bt(r){r.next=t,t=r}function $t(t){return l[rt+t]}function Wt(t,r){return l[rt+t]=r}function Vt(n){Mt[i+o++]=n,i+o==it&&function(){if(0!=o){var n,u;for(null!=t?(a=t,t=t.next):a=new It,a.next=null,a.len=a.off=0,n=a,null==r?r=e=n:e=e.next=n,n.len=o-i,u=0;u>>8):(Vt(255&t),Vt(t>>>8))}function qt(){y=(y<>7)])}function Yt(t,r,e){return t[r].fcbt?_-bt:yt,c=_+ct,f=a[o+i-1],s=a[o+i];m>=P&&(n>>=2);do{if(a[(r=t)+i]==s&&a[r+i-1]==f&&a[r]==a[o]&&a[++r]==a[o+1]){o+=2,r++;do{}while(a[++o]==a[++r]&&a[++o]==a[++r]&&a[++o]==a[++r]&&a[++o]==a[++r]&&a[++o]==a[++r]&&a[++o]==a[++r]&&a[++o]==a[++r]&&a[++o]==a[++r]&&oi){if(w=t,i=e,e>=ct)break;f=a[o+i-1],s=a[o+i]}}}while((t=l[t&vt])>u&&0!=--n);return i}function Zt(){var t,r,e=ut-j-_;if(-1==e)e--;else if(_>=rt+bt){for(t=0;t=rt?r-rt:yt);for(t=0;t=rt?r-rt:yt;e+=rt}O||((t=Xt(a,_+j,e))<=0?O=!0:j+=t)}function tr(){O||(s=0,p=0,function(){var t,r,e,n,o;if(0!=F[0].dl)return;for(L.dyn_tree=T,L.static_tree=C,L.extra_bits=Rt,L.extra_base=Ot+1,L.elems=St,L.max_length=mt,L.max_code=0,k.dyn_tree=E,k.static_tree=F,k.extra_bits=Dt,k.extra_base=0,k.elems=xt,k.max_length=mt,k.max_code=0,z.dyn_tree=M,z.static_tree=null,z.extra_bits=Nt,z.extra_base=0,z.elems=At,z.max_length=_t,z.max_code=0,e=0,n=0;n>=7;nj&&(g=j),g>=at)if(t=lr(_-w,g-at),j-=g,g<=x){g--;do{_++,qt()}while(0!=--g);_++}else _+=g,g=0,y=((y=255&a[_])<j&&(g=j),g==at&&_-w>dt&&g--),m>=at&&g<=m){var t;t=lr(_-1-h,m-at),j-=m-1,m-=2;do{_++,qt()}while(0!=--m);b=0,g=at-1,_++,t&&(fr(0),v=_)}else 0!=b?(lr(0,255&a[_-1])&&(fr(0),v=_),_++,j--):(b=1,_++,j--);for(;jr.len&&(a=r.len),c=0;co-i&&(a=o-i),c=0;c>1;r>=1;r--)or(n,r);do{r=R[gt],R[gt]=R[D--],or(n,gt),e=R[gt],R[--N]=r,R[--N]=e,n[a].fc=n[r].fc+n[e].fc,G[r]>G[e]+1?G[a]=G[r]:G[a]=G[e]+1,n[r].dl=n[e].dl=a,R[gt]=a++,or(n,gt)}while(D>=2);R[--N]=R[gt],function(t){var r,e,n,o,i,u,a=t.dyn_tree,c=t.extra_bits,f=t.extra_base,l=t.max_code,s=t.max_length,p=t.static_tree,v=0;for(o=0;o<=mt;o++)I[o]=0;for(a[R[N]].dl=0,r=N+1;rs&&(o=s,v++),a[e].dl=o,e>l||(I[o]++,i=0,e>=f&&(i=c[e-f]),u=a[e].fc,X+=u*(o+i),null!=p&&(Q+=u*(p[e].dl+i)));if(0!=v){do{for(o=s-1;0==I[o];)o--;I[o]--,I[o+1]+=2,I[s]--,v-=2}while(v>0);for(o=s;0!=o;o--)for(e=I[o];0!=e;)(n=R[--r])>l||(a[n].dl!=o&&(X+=(o-a[n].dl)*a[n].fc,a[n].fc=o),e--)}}(t),ir(n,u)}function ar(t,r){var e,n,o=-1,i=t[0].dl,u=0,a=7,c=4;for(0==i&&(a=138,c=3),t[r+1].dl=65535,e=0;e<=r;e++)n=i,i=t[e+1].dl,++u=3&&0==M[Gt[t]].dl;t--);return X+=3*(t+1)+5+5+4,t}(),(e=Q+3+7>>3)<=(r=X+3+7>>3)&&(r=e),o+4<=r&&v>=0)for(vr((et<<1)+t,3),dr(),Kt(o),Kt(~o),i=0;i2&&!(4095&K)){var e,n=8*K,o=_-v;for(e=0;e>=3,q>=1}while(upr-r?(Kt(s|=t<>pr-p,p+=r-pr):(s|=t<>=1,e<<=1}while(--r>0);return e>>1}function dr(){p>8?Kt(s):p>0&&Vt(s),s=0,p=0}return function(o,i){var u,s;Z=o,tt=0,void 0===i&&(i=6),function(o){var i;if(o?o<1?o=1:o>9&&(o=9):o=6,A=o,n=!1,O=!1,null==Mt){for(t=r=e=null,Mt=new Array(it),a=new Array(ut),c=new Array(lt),f=new Array(32832),l=new Array(65536),T=new Array(Ct),i=0;i0;){var y=new Array(u);for(s=0;s>4,o=(15&r)<<2|e>>6,i=63&e,u="";return u+=_f(63&t>>2),u+=_f(63&n),u+=_f(63&o),u+=_f(63&i)}function _f(t){var r=t;return r<10?String.fromCharCode(48+r):(r-=10)<26?String.fromCharCode(65+r):(r-=26)<26?String.fromCharCode(97+r):0===(r-=26)?"-":1===r?"_":"?"}function wf(t,r){var e,n=unescape(encodeURIComponent(t));return Eu(e="".concat(r,"/svg/")).call(e,function(t){for(var r="",e=0;e0&&void 0!==arguments[0]?arguments[0]:{};xu(this,t);this.baseUrl=null!==(r=e.baseUrl)&&void 0!==r?r:"http://www.plantuml.com/plantuml"}return Au(t,[{key:"render",value:function(t,r){var e,n,o=r;o||(o=Math.round(1e8*Math.random()));var i=Eu(e="plantuml-".concat(o,"-")).call(e,(new Date).getTime());return Eu(n='')}}],[{key:"install",value:function(r,e){var n;rf(r,{engine:{syntax:{codeBlock:{customRenderer:{plantuml:new t(gf(gf({},e),null!==(n=r.engine.syntax.plantuml)&&void 0!==n?n:{}))}}}}})}}])}();return Of})); diff --git a/app_zentaoimpweb/public/extras/js/cherry-markdown/0.8.58/cherry-markdown.min.css b/app_zentaoimpweb/public/extras/js/cherry-markdown/0.8.58/cherry-markdown.min.css new file mode 100644 index 0000000000000000000000000000000000000000..4c6a288cfea4b49438bccaae319ed73524c694dd --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/cherry-markdown/0.8.58/cherry-markdown.min.css @@ -0,0 +1 @@ +.CodeMirror{font-family:monospace;height:300px;color:black;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:white}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:black}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0 !important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20, 255, 20, 0.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:blue}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255, 150, 0, 0.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll !important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none !important;border:none !important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255, 255, 0, 0.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.cherry *::-webkit-scrollbar{height:7px;width:7px;background:rgba(0,0,0,0)}.cherry *::-webkit-scrollbar:hover{background:rgba(128,128,128,.1)}.cherry *::-webkit-scrollbar-thumb{background:#d3d7da;-webkit-border-radius:6px}.cherry *::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.6)}.cherry *::-webkit-scrollbar-corner{background:rgba(0,0,0,0)}@font-face{font-family:"ch-icon";src:url("./fonts/ch-icon.eot");src:url("./fonts/ch-icon.eot?#iefix") format("eot"),url("./fonts/ch-icon.woff2") format("woff2"),url("./fonts/ch-icon.woff") format("woff"),url("./fonts/ch-icon.ttf") format("truetype"),url("./fonts/ch-icon.svg#ch-icon") format("svg");font-weight:normal;font-style:normal}.ch-icon:before{display:inline-block;font-family:"ch-icon";font-style:normal;font-weight:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ch-icon-list:before{content:""}.ch-icon-check:before{content:""}.ch-icon-square:before{content:""}.ch-icon-bold:before{content:""}.ch-icon-code:before{content:""}.ch-icon-color:before{content:""}.ch-icon-header:before{content:""}.ch-icon-image:before{content:""}.ch-icon-italic:before{content:""}.ch-icon-link:before{content:""}.ch-icon-ol:before{content:""}.ch-icon-size:before{content:""}.ch-icon-strike:before{content:""}.ch-icon-table:before{content:""}.ch-icon-ul:before{content:""}.ch-icon-underline:before{content:""}.ch-icon-word:before{content:""}.ch-icon-blockquote:before{content:""}.ch-icon-font:before{content:""}.ch-icon-insertClass:before{content:""}.ch-icon-insertFlow:before{content:""}.ch-icon-insertFormula:before{content:""}.ch-icon-insertGantt:before{content:""}.ch-icon-insertGraph:before{content:""}.ch-icon-insertPie:before{content:""}.ch-icon-insertSeq:before{content:""}.ch-icon-insertState:before{content:""}.ch-icon-line:before{content:""}.ch-icon-preview:before{content:""}.ch-icon-previewClose:before{content:""}.ch-icon-toc:before{content:""}.ch-icon-sub:before{content:""}.ch-icon-sup:before{content:""}.ch-icon-h1:before{content:""}.ch-icon-h2:before{content:""}.ch-icon-h3:before{content:""}.ch-icon-h4:before{content:""}.ch-icon-h5:before{content:""}.ch-icon-h6:before{content:""}.ch-icon-video:before{content:""}.ch-icon-insert:before{content:""}.ch-icon-little_table:before{content:""}.ch-icon-pdf:before{content:""}.ch-icon-checklist:before{content:""}.ch-icon-close:before{content:""}.ch-icon-fullscreen:before{content:""}.ch-icon-minscreen:before{content:""}.ch-icon-insertChart:before{content:""}.ch-icon-question:before{content:""}.ch-icon-settings:before{content:""}.ch-icon-ok:before{content:""}.ch-icon-br:before{content:""}.ch-icon-normal:before{content:""}.ch-icon-undo:before{content:""}.ch-icon-redo:before{content:""}.ch-icon-copy:before{content:""}.ch-icon-phone:before{content:""}.ch-icon-cherry-table-delete:before{content:""}.ch-icon-cherry-table-insert-bottom:before{content:""}.ch-icon-cherry-table-insert-left:before{content:""}.ch-icon-cherry-table-insert-right:before{content:""}.ch-icon-cherry-table-insert-top:before{content:""}.ch-icon-sort-s:before{content:""}.ch-icon-pinyin:before{content:""}.ch-icon-create:before{content:""}.ch-icon-download:before{content:""}.ch-icon-edit:before{content:""}.ch-icon-export:before{content:""}.ch-icon-folder-open:before{content:""}.ch-icon-folder:before{content:""}.ch-icon-help:before{content:""}.ch-icon-pen-fill:before{content:""}.ch-icon-pen:before{content:""}.ch-icon-tips:before{content:""}.ch-icon-warn:before{content:""}.ch-icon-mistake:before{content:""}.ch-icon-success:before{content:""}.ch-icon-danger:before{content:""}.ch-icon-info:before{content:""}.ch-icon-primary:before{content:""}.ch-icon-warning:before{content:""}.ch-icon-justify:before{content:""}.ch-icon-justifyCenter:before{content:""}.ch-icon-justifyLeft:before{content:""}.ch-icon-justifyRight:before{content:""}.ch-icon-chevronsLeft:before{content:""}.ch-icon-chevronsRight:before{content:""}.ch-icon-trendingUp:before{content:""}.ch-icon-codeBlock:before{content:""}.ch-icon-expand:before{content:""}.ch-icon-unExpand:before{content:""}.ch-icon-swap-vert:before{content:""}.ch-icon-swap:before{content:""}.ch-icon-keyboard:before{content:""}.ch-icon-command:before{content:""}.ch-icon-search:before{content:""}.cherry-markdown{word-break:break-all}.cherry-markdown h1,.cherry-markdown h2,.cherry-markdown h3,.cherry-markdown h4,.cherry-markdown h5,.cherry-markdown h6,.cherry-markdown .h1,.cherry-markdown .h2,.cherry-markdown .h3,.cherry-markdown .h4,.cherry-markdown .h5,.cherry-markdown .h6{font-family:inherit;font-weight:700;line-height:1.1;color:inherit}.cherry-markdown h1 small,.cherry-markdown h2 small,.cherry-markdown h3 small,.cherry-markdown h4 small,.cherry-markdown h5 small,.cherry-markdown h6 small,.cherry-markdown .h1 small,.cherry-markdown .h2 small,.cherry-markdown .h3 small,.cherry-markdown .h4 small,.cherry-markdown .h5 small,.cherry-markdown .h6 small,.cherry-markdown h1 .small,.cherry-markdown h2 .small,.cherry-markdown h3 .small,.cherry-markdown h4 .small,.cherry-markdown h5 .small,.cherry-markdown h6 .small,.cherry-markdown .h1 .small,.cherry-markdown .h2 .small,.cherry-markdown .h3 .small,.cherry-markdown .h4 .small,.cherry-markdown .h5 .small,.cherry-markdown .h6 .small{font-weight:normal;line-height:1;color:#999}.cherry-markdown h1,.cherry-markdown h2,.cherry-markdown h3{margin-top:30px;margin-bottom:16px}.cherry-markdown h1 small,.cherry-markdown h2 small,.cherry-markdown h3 small,.cherry-markdown h1 .small,.cherry-markdown h2 .small,.cherry-markdown h3 .small{font-size:65%}.cherry-markdown h4,.cherry-markdown h5,.cherry-markdown h6{margin-top:12px;margin-bottom:12px}.cherry-markdown h4 small,.cherry-markdown h5 small,.cherry-markdown h6 small,.cherry-markdown h4 .small,.cherry-markdown h5 .small,.cherry-markdown h6 .small{font-size:75%}.cherry-markdown h1,.cherry-markdown .h1{font-size:2em}.cherry-markdown h2,.cherry-markdown .h2{font-size:1.5em}.cherry-markdown h3,.cherry-markdown .h3{font-size:1.25em}.cherry-markdown h4,.cherry-markdown .h4{font-size:1em}.cherry-markdown h5,.cherry-markdown .h5{font-size:.875em}.cherry-markdown h6,.cherry-markdown .h6{font-size:.85em}.cherry-markdown b,.cherry-markdown strong{font-weight:bold}.cherry-markdown ul,.cherry-markdown ol{padding-left:24px;margin-bottom:16px}.cherry-markdown ul ul,.cherry-markdown ul ol,.cherry-markdown ol ul,.cherry-markdown ol ol{margin-bottom:0}.cherry-markdown ul li,.cherry-markdown ol li{list-style:inherit}.cherry-markdown ul li p,.cherry-markdown ol li p{margin:0}.cherry-markdown div ul,.cherry-markdown div ol{margin-bottom:0}.cherry-markdown hr{height:0;border:0;border-top:1px solid #dfe6ee;margin:16px 0;box-sizing:content-box;overflow:visible}.cherry-markdown kbd{border:1px solid #dfe6ee;border-radius:4px;padding:1px 2px;box-sizing:border-box;box-shadow:inset 0px -1px #dfe6ee;font-size:.85rem}.cherry-markdown table{border-collapse:collapse}.cherry-markdown table th,.cherry-markdown table td{border:1px solid #dfe6ee;padding:.2em .4em;min-width:100px}.cherry-markdown table th{background-color:#eee}.cherry-markdown .link-quote{color:#3582fb}.cherry-markdown a{color:#3582fb;position:relative;text-decoration:none}.cherry-markdown a[target=_blank]{padding:0 2px}.cherry-markdown a[target=_blank]::after{content:"";font-size:12px;font-family:"ch-icon";margin:0 2px}.cherry-markdown a:hover{color:#056bad}.cherry-markdown em{font-style:italic}.cherry-markdown sup{vertical-align:super}.cherry-markdown sub{vertical-align:sub}.cherry-markdown figure{overflow-x:auto}.cherry-markdown p,.cherry-markdown pre,.cherry-markdown blockquote,.cherry-markdown table{margin:0 0 16px}.cherry-markdown blockquote{color:#6d6e6f;padding:10px 15px;border-left:10px solid #d6dbdf;background:rgba(102,128,153,.05)}.cherry-markdown blockquote p,.cherry-markdown blockquote blockquote,.cherry-markdown blockquote table,.cherry-markdown blockquote pre,.cherry-markdown blockquote ul,.cherry-markdown blockquote ol{margin:0}.cherry-markdown pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;background-color:#f6f8fa;border-radius:6px}.cherry-markdown .prettyprint{min-width:500px;display:inline-block;background:#00212b;font-family:Menlo,"Bitstream Vera Sans Mono","DejaVu Sans Mono",Monaco,Consolas,monospace;border:0 !important}.cherry-markdown .pln{color:#dfe6ee}.cherry-markdown .str{color:#ffaf21}.cherry-markdown .kwd{color:#f85353}.cherry-markdown ol.linenums{margin-top:0;margin-bottom:0;color:#969896}.cherry-markdown li.L0,.cherry-markdown li.L1,.cherry-markdown li.L2,.cherry-markdown li.L3,.cherry-markdown li.L4,.cherry-markdown li.L5,.cherry-markdown li.L6,.cherry-markdown li.L7,.cherry-markdown li.L8,.cherry-markdown li.L9{padding-left:1em;background-color:#00212b;list-style-type:decimal}@media screen{.cherry-markdown .cherry-markdown .com{color:#969896}.cherry-markdown .cherry-markdown .typ{color:#81a2be}.cherry-markdown .cherry-markdown .lit{color:#de935f}.cherry-markdown .cherry-markdown .pun{color:#c5c8c6}.cherry-markdown .cherry-markdown .opn{color:#c5c8c6}.cherry-markdown .cherry-markdown .clo{color:#c5c8c6}.cherry-markdown .cherry-markdown .tag{color:#c66}.cherry-markdown .cherry-markdown .atn{color:#de935f}.cherry-markdown .cherry-markdown .atv{color:#8abeb7}.cherry-markdown .cherry-markdown .dec{color:#de935f}.cherry-markdown .cherry-markdown .var{color:#c66}.cherry-markdown .cherry-markdown .fun{color:#81a2be}}.cherry-markdown div[data-type=codeBlock]{display:inline-block;width:100%;box-sizing:border-box;border-radius:2px;margin-bottom:16px;font-size:14px;overflow-x:auto}.cherry-markdown div[data-type=codeBlock]>pre{margin:0}.cherry-markdown div[data-type=codeBlock]>pre code[class*=language-]{counter-reset:line}.cherry-markdown div[data-type=codeBlock]>pre code[class*=language-].wrap{white-space:pre-wrap}.cherry-markdown div[data-type=codeBlock]>pre code[class*=language-] .code-line{display:inline-block;position:relative;padding-left:3em;height:1.3em;line-height:2em}.cherry-markdown div[data-type=codeBlock]>pre code[class*=language-] .code-line:before{counter-increment:line;content:counter(line);margin-right:1em;position:absolute;left:0}.cherry-markdown div[data-type=codeBlock]>pre code[class*=language-] .code-line:last-child{margin-bottom:0}.cherry-markdown :not(pre)>code{padding:.1em;border-radius:.3em;white-space:normal;color:#f85353;background-color:#e5e5e5}[data-inline-code-theme=black] .cherry-markdown :not(pre)>code{color:#3f4a56;background-color:#e5e5e5}.cherry-markdown a.anchor:before{content:"§";text-decoration:none;width:15px;font-size:.5em;vertical-align:middle;display:inline-block;text-align:center;margin-left:-15px}.cherry-markdown .toc{margin-bottom:16px;padding-left:0}.cherry-markdown .toc .toc-title{font-size:24px;margin-bottom:5px}.cherry-markdown .toc .toc-li{border-bottom:1px ridge #dfe6ee;list-style:none}.cherry-markdown .toc .toc-li a{text-decoration:none;color:#3f4a56}.cherry-markdown .toc .toc-li a:hover{color:#056bad}.cherry-markdown .auto-num-toc{counter-reset:headtoclevel1}.cherry-markdown .auto-num-toc .toc-li-1{counter-reset:headtoclevel2}.cherry-markdown .auto-num-toc .toc-li-1 a:before{counter-increment:headtoclevel1;content:counter(headtoclevel1) ". "}.cherry-markdown .auto-num-toc .toc-li-2{counter-reset:headtoclevel3}.cherry-markdown .auto-num-toc .toc-li-2 a:before{counter-increment:headtoclevel2;content:counter(headtoclevel1) "." counter(headtoclevel2) ". "}.cherry-markdown .auto-num-toc .toc-li-3{counter-reset:headtoclevel4}.cherry-markdown .auto-num-toc .toc-li-3 a:before{counter-increment:headtoclevel3;content:counter(headtoclevel1) "." counter(headtoclevel2) "." counter(headtoclevel3) ". "}.cherry-markdown .auto-num-toc .toc-li-4{counter-reset:headtoclevel5}.cherry-markdown .auto-num-toc .toc-li-4 a:before{counter-increment:headtoclevel4;content:counter(headtoclevel1) "." counter(headtoclevel2) "." counter(headtoclevel3) "." counter(headtoclevel4) ". "}.cherry-markdown .auto-num-toc .toc-li-5{counter-reset:headtoclevel6}.cherry-markdown .auto-num-toc .toc-li-5 a:before{counter-increment:headtoclevel5;content:counter(headtoclevel1) "." counter(headtoclevel2) "." counter(headtoclevel3) "." counter(headtoclevel4) "." counter(headtoclevel5) ". "}.cherry-markdown .auto-num-toc .toc-li-6 a:before{counter-increment:headtoclevel6;content:counter(headtoclevel1) "." counter(headtoclevel2) "." counter(headtoclevel3) "." counter(headtoclevel4) "." counter(headtoclevel5) "." counter(headtoclevel6) ". "}.cherry-markdown .check-list-item{list-style:none}.cherry-markdown .check-list-item .ch-icon{margin:0 6px 0 -20px}.cherry-markdown .footnote:not(a){padding-top:20px;border-top:1px solid #dfe6ee;margin-top:50px}.cherry-markdown .footnote:not(a) .footnote-title{font-size:20px;margin-top:-38px;background-color:#fff;width:60px;margin-bottom:16px}.cherry-markdown .footnote:not(a) .one-footnote{color:#6d6e6f;margin-bottom:16px;border-bottom:1px dotted #dfe6ee}.cherry-markdown .cherry-table-container{max-width:100%;overflow-x:auto}.cherry-markdown .cherry-table-container .cherry-table th,.cherry-markdown .cherry-table-container .cherry-table td{border:1px solid #dfe6ee;padding:.2em .4em;min-width:100px}.cherry-markdown .cherry-table-container .cherry-table th{white-space:nowrap}.cherry-markdown mjx-assistive-mml{position:absolute;top:0;left:0;clip:rect(1px, 1px, 1px, 1px);padding:1px 0 0 0;border:0}.cherry-markdown.head-num{counter-reset:level1}.cherry-markdown.head-num h1 .anchor:before,.cherry-markdown.head-num h2 .anchor:before,.cherry-markdown.head-num h3 .anchor:before,.cherry-markdown.head-num h4 .anchor:before,.cherry-markdown.head-num h5 .anchor:before,.cherry-markdown.head-num h6 .anchor:before{width:auto;font-size:inherit;vertical-align:inherit;padding-right:10px}.cherry-markdown.head-num h1{counter-reset:level2}.cherry-markdown.head-num h2{counter-reset:level3}.cherry-markdown.head-num h3{counter-reset:level4}.cherry-markdown.head-num h4{counter-reset:level5}.cherry-markdown.head-num h5{counter-reset:level6}.cherry-markdown.head-num h1 .anchor:before{counter-increment:level1;content:counter(level1) ". "}.cherry-markdown.head-num h2 .anchor:before{counter-increment:level2;content:counter(level1) "." counter(level2) " "}.cherry-markdown.head-num h3 .anchor:before{counter-increment:level3;content:counter(level1) "." counter(level2) "." counter(level3) " "}.cherry-markdown.head-num h4 .anchor:before{counter-increment:level4;content:counter(level1) "." counter(level2) "." counter(level3) "." counter(level4) " "}.cherry-markdown.head-num h5 .anchor:before{counter-increment:level5;content:counter(level1) "." counter(level2) "." counter(level3) "." counter(level4) "." counter(level5) " "}.cherry-markdown.head-num h6 .anchor:before{counter-increment:level6;content:counter(level1) "." counter(level2) "." counter(level3) "." counter(level4) "." counter(level5) "." counter(level6) " "}div[data-type=codeBlock] code[class*=language-],div[data-type=codeBlock] pre[class*=language-]{color:#ccc;background:none;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}div[data-type=codeBlock] pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}div[data-type=codeBlock] :not(pre)>code[class*=language-],div[data-type=codeBlock] pre[class*=language-]{background:#2d2d2d}div[data-type=codeBlock] :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}div[data-type=codeBlock] .token.comment,div[data-type=codeBlock] .token.block-comment,div[data-type=codeBlock] .token.prolog,div[data-type=codeBlock] .token.doctype,div[data-type=codeBlock] .token.cdata{color:#999}div[data-type=codeBlock] .token.punctuation{color:#ccc}div[data-type=codeBlock] .token.tag,div[data-type=codeBlock] .token.attr-name,div[data-type=codeBlock] .token.namespace,div[data-type=codeBlock] .token.deleted{color:#e2777a}div[data-type=codeBlock] .token.function-name{color:#6196cc}div[data-type=codeBlock] .token.boolean,div[data-type=codeBlock] .token.number,div[data-type=codeBlock] .token.function{color:#f08d49}div[data-type=codeBlock] .token.property,div[data-type=codeBlock] .token.class-name,div[data-type=codeBlock] .token.constant,div[data-type=codeBlock] .token.symbol{color:#f8c555}div[data-type=codeBlock] .token.selector,div[data-type=codeBlock] .token.important,div[data-type=codeBlock] .token.atrule,div[data-type=codeBlock] .token.keyword,div[data-type=codeBlock] .token.builtin{color:#cc99cd}div[data-type=codeBlock] .token.string,div[data-type=codeBlock] .token.char,div[data-type=codeBlock] .token.attr-value,div[data-type=codeBlock] .token.regex,div[data-type=codeBlock] .token.variable{color:#7ec699}div[data-type=codeBlock] .token.operator,div[data-type=codeBlock] .token.entity,div[data-type=codeBlock] .token.url{color:#67cdcc}div[data-type=codeBlock] .token.important,div[data-type=codeBlock] .token.bold{font-weight:bold}div[data-type=codeBlock] .token.italic{font-style:italic}div[data-type=codeBlock] .token.entity{cursor:help}div[data-type=codeBlock] .token.inserted{color:green}div[data-code-wrap=wrap] div[data-type=codeBlock] code[class*=language-]{white-space:pre-wrap}[data-code-block-theme=default] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-]{color:#000;background:none;text-shadow:0 1px #fff;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-]::-moz-selection,[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-] ::-moz-selection,[data-code-block-theme=default] div[data-type=codeBlock] code[class*=language-]::-moz-selection,[data-code-block-theme=default] div[data-type=codeBlock] code[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-]::selection,[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-] ::selection,[data-code-block-theme=default] div[data-type=codeBlock] code[class*=language-]::selection,[data-code-block-theme=default] div[data-type=codeBlock] code[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}@media print{[data-code-block-theme=default] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-]{text-shadow:none}}[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}[data-code-block-theme=default] div[data-type=codeBlock] :not(pre)>code[class*=language-],[data-code-block-theme=default] div[data-type=codeBlock] pre[class*=language-]{background:#f5f2f0}[data-code-block-theme=default] div[data-type=codeBlock] :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}[data-code-block-theme=default] div[data-type=codeBlock] .token.comment,[data-code-block-theme=default] div[data-type=codeBlock] .token.prolog,[data-code-block-theme=default] div[data-type=codeBlock] .token.doctype,[data-code-block-theme=default] div[data-type=codeBlock] .token.cdata{color:#708090}[data-code-block-theme=default] div[data-type=codeBlock] .token.punctuation{color:#999}[data-code-block-theme=default] div[data-type=codeBlock] .token.namespace{opacity:.7}[data-code-block-theme=default] div[data-type=codeBlock] .token.property,[data-code-block-theme=default] div[data-type=codeBlock] .token.tag,[data-code-block-theme=default] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=default] div[data-type=codeBlock] .token.number,[data-code-block-theme=default] div[data-type=codeBlock] .token.constant,[data-code-block-theme=default] div[data-type=codeBlock] .token.symbol,[data-code-block-theme=default] div[data-type=codeBlock] .token.deleted{color:#905}[data-code-block-theme=default] div[data-type=codeBlock] .token.selector,[data-code-block-theme=default] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=default] div[data-type=codeBlock] .token.string,[data-code-block-theme=default] div[data-type=codeBlock] .token.char,[data-code-block-theme=default] div[data-type=codeBlock] .token.builtin,[data-code-block-theme=default] div[data-type=codeBlock] .token.inserted{color:#690}[data-code-block-theme=default] div[data-type=codeBlock] .token.operator,[data-code-block-theme=default] div[data-type=codeBlock] .token.entity,[data-code-block-theme=default] div[data-type=codeBlock] .token.url,[data-code-block-theme=default] div[data-type=codeBlock] .language-css .token.string,[data-code-block-theme=default] div[data-type=codeBlock] .style .token.string{color:#9a6e3a;background:rgba(255,255,255,.5)}[data-code-block-theme=default] div[data-type=codeBlock] .token.atrule,[data-code-block-theme=default] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=default] div[data-type=codeBlock] .token.keyword{color:#07a}[data-code-block-theme=default] div[data-type=codeBlock] .token.function,[data-code-block-theme=default] div[data-type=codeBlock] .token.class-name{color:#dd4a68}[data-code-block-theme=default] div[data-type=codeBlock] .token.regex,[data-code-block-theme=default] div[data-type=codeBlock] .token.important,[data-code-block-theme=default] div[data-type=codeBlock] .token.variable{color:#e90}[data-code-block-theme=default] div[data-type=codeBlock] .token.important,[data-code-block-theme=default] div[data-type=codeBlock] .token.bold{font-weight:bold}[data-code-block-theme=default] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=default] div[data-type=codeBlock] .token.entity{cursor:help}[data-code-block-theme=dark] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=dark] div[data-type=codeBlock] pre[class*=language-]{color:#fff;background:none;text-shadow:0 -0.1em .2em #000;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}@media print{[data-code-block-theme=dark] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=dark] div[data-type=codeBlock] pre[class*=language-]{text-shadow:none}}[data-code-block-theme=dark] div[data-type=codeBlock] pre[class*=language-],[data-code-block-theme=dark] div[data-type=codeBlock] :not(pre)>code[class*=language-]{background:#4d4033}[data-code-block-theme=dark] div[data-type=codeBlock] pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border:.3em solid #7a6652;border-radius:.5em;box-shadow:1px 1px .5em #000 inset}[data-code-block-theme=dark] div[data-type=codeBlock] :not(pre)>code[class*=language-]{padding:.15em .2em .05em;border-radius:.3em;border:.13em solid #7a6652;box-shadow:1px 1px .3em -0.1em #000 inset;white-space:normal}[data-code-block-theme=dark] div[data-type=codeBlock] .token.comment,[data-code-block-theme=dark] div[data-type=codeBlock] .token.prolog,[data-code-block-theme=dark] div[data-type=codeBlock] .token.doctype,[data-code-block-theme=dark] div[data-type=codeBlock] .token.cdata{color:#998066}[data-code-block-theme=dark] div[data-type=codeBlock] .token.punctuation{opacity:.7}[data-code-block-theme=dark] div[data-type=codeBlock] .token.namespace{opacity:.7}[data-code-block-theme=dark] div[data-type=codeBlock] .token.property,[data-code-block-theme=dark] div[data-type=codeBlock] .token.tag,[data-code-block-theme=dark] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=dark] div[data-type=codeBlock] .token.number,[data-code-block-theme=dark] div[data-type=codeBlock] .token.constant,[data-code-block-theme=dark] div[data-type=codeBlock] .token.symbol{color:#d1949e}[data-code-block-theme=dark] div[data-type=codeBlock] .token.selector,[data-code-block-theme=dark] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=dark] div[data-type=codeBlock] .token.string,[data-code-block-theme=dark] div[data-type=codeBlock] .token.char,[data-code-block-theme=dark] div[data-type=codeBlock] .token.builtin,[data-code-block-theme=dark] div[data-type=codeBlock] .token.inserted{color:#bde052}[data-code-block-theme=dark] div[data-type=codeBlock] .token.operator,[data-code-block-theme=dark] div[data-type=codeBlock] .token.entity,[data-code-block-theme=dark] div[data-type=codeBlock] .token.url,[data-code-block-theme=dark] div[data-type=codeBlock] .language-css .token.string,[data-code-block-theme=dark] div[data-type=codeBlock] .style .token.string,[data-code-block-theme=dark] div[data-type=codeBlock] .token.variable{color:#f5b83d}[data-code-block-theme=dark] div[data-type=codeBlock] .token.atrule,[data-code-block-theme=dark] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=dark] div[data-type=codeBlock] .token.keyword{color:#d1949e}[data-code-block-theme=dark] div[data-type=codeBlock] .token.regex,[data-code-block-theme=dark] div[data-type=codeBlock] .token.important{color:#e90}[data-code-block-theme=dark] div[data-type=codeBlock] .token.important,[data-code-block-theme=dark] div[data-type=codeBlock] .token.bold{font-weight:bold}[data-code-block-theme=dark] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=dark] div[data-type=codeBlock] .token.entity{cursor:help}[data-code-block-theme=dark] div[data-type=codeBlock] .token.deleted{color:red}[data-code-block-theme=one-dark] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=one-dark] div[data-type=codeBlock] pre[class*=language-]{background:#282c34;color:#abb2bf;text-shadow:0 1px rgba(0,0,0,.3);font-family:"Fira Code","Fira Mono",Menlo,Consolas,"DejaVu Sans Mono",monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme=one-dark] div[data-type=codeBlock] code[class*=language-]::-moz-selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] code[class*=language-] *::-moz-selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre[class*=language-] *::-moz-selection{background:#3e4451;color:inherit;text-shadow:none}[data-code-block-theme=one-dark] div[data-type=codeBlock] code[class*=language-]::selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] code[class*=language-] *::selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre[class*=language-] *::selection{background:#3e4451;color:inherit;text-shadow:none}[data-code-block-theme=one-dark] div[data-type=codeBlock] pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}[data-code-block-theme=one-dark] div[data-type=codeBlock] :not(pre)>code[class*=language-]{padding:.2em .3em;border-radius:.3em;white-space:normal}@media print{[data-code-block-theme=one-dark] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=one-dark] div[data-type=codeBlock] pre[class*=language-]{text-shadow:none}}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.comment,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.prolog,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.cdata{color:#5c6370}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.doctype,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.punctuation,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.entity{color:#abb2bf}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.class-name,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.constant,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.number,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.atrule{color:#d19a66}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.keyword{color:#c678dd}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.property,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.tag,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.symbol,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.deleted,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.important{color:#e06c75}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.selector,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.string,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.char,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.builtin,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.inserted,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.regex,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.attr-value>.token.punctuation{color:#98c379}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.variable,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.operator,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.function{color:#61afef}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.url{color:#56b6c2}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.attr-value>.token.punctuation.attr-equals,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.special-attr>.token.attr-value>.token.value.css{color:#abb2bf}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-css .token.selector{color:#e06c75}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-css .token.property{color:#abb2bf}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-css .token.function,[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-css .token.url>.token.function{color:#56b6c2}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-css .token.url>.token.string.url{color:#98c379}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-css .token.important,[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-css .token.atrule .token.rule{color:#c678dd}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-javascript .token.operator{color:#c678dd}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation{color:#be5046}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-json .token.operator{color:#abb2bf}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-json .token.null.keyword{color:#d19a66}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.url,[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.url>.token.operator,[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.url-reference.url>.token.string{color:#abb2bf}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.url>.token.content{color:#61afef}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.url>.token.url,[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.url-reference.url{color:#56b6c2}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.blockquote.punctuation,[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.hr.punctuation{color:#5c6370;font-style:italic}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.code-snippet{color:#98c379}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.bold .token.content{color:#d19a66}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.italic .token.content{color:#c678dd}[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.strike .token.content,[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.strike .token.punctuation,[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.list.punctuation,[data-code-block-theme=one-dark] div[data-type=codeBlock] .language-markdown .token.title.important>.token.punctuation{color:#e06c75}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.bold{font-weight:bold}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.comment,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.entity{cursor:help}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.namespace{opacity:.8}[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.token.tab:not(:empty):before,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.token.cr:before,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.token.lf:before,[data-code-block-theme=one-dark] div[data-type=codeBlock] .token.token.space:before{color:rgba(171,178,191,.15);text-shadow:none}[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item{margin-right:.4em}[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>button,[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>a,[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>span{background:#3a3f4b;color:#828997;padding:.1em .4em;border-radius:.3em}[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:hover,[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:focus,[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:hover,[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:focus,[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:hover,[data-code-block-theme=one-dark] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:focus{background:#3e4451;color:#abb2bf}[data-code-block-theme=one-dark] div[data-type=codeBlock] .line-highlight.line-highlight{background:rgba(153,187,255,.04)}[data-code-block-theme=one-dark] div[data-type=codeBlock] .line-highlight.line-highlight:before,[data-code-block-theme=one-dark] div[data-type=codeBlock] .line-highlight.line-highlight[data-end]:after{background:#3a3f4b;color:#abb2bf;padding:.1em .6em;border-radius:.3em;box-shadow:0 2px 0 0 rgba(0,0,0,.2)}[data-code-block-theme=one-dark] div[data-type=codeBlock] pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:rgba(153,187,255,.04)}[data-code-block-theme=one-dark] div[data-type=codeBlock] .line-numbers.line-numbers .line-numbers-rows,[data-code-block-theme=one-dark] div[data-type=codeBlock] .command-line .command-line-prompt{border-right-color:rgba(171,178,191,.15)}[data-code-block-theme=one-dark] div[data-type=codeBlock] .line-numbers .line-numbers-rows>span:before,[data-code-block-theme=one-dark] div[data-type=codeBlock] .command-line .command-line-prompt>span:before{color:#636d83}[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-1,[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-5,[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-9{color:#e06c75}[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-2,[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-6,[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-10{color:#98c379}[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-3,[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-7,[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-11{color:#61afef}[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-4,[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-8,[data-code-block-theme=one-dark] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-12{color:#c678dd}[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix),[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix){background-color:rgba(255,82,102,.15)}[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix)::-moz-selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix) *::-moz-selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection{background-color:rgba(251,86,105,.25)}[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix)::selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix) *::selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix)::selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix) *::selection{background-color:rgba(251,86,105,.25)}[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix),[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix){background-color:rgba(26,255,91,.15)}[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix)::-moz-selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix) *::-moz-selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection{background-color:rgba(56,224,98,.25)}[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix)::selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix) *::selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix)::selection,[data-code-block-theme=one-dark] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix) *::selection{background-color:rgba(56,224,98,.25)}[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer.prism-previewer:before,[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-gradient.prism-previewer-gradient div{border-color:#262931}[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-color.prism-previewer-color:before,[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-gradient.prism-previewer-gradient div,[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing:before{border-radius:.3em}[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer.prism-previewer:after{border-top-color:#262931}[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-flipped.prism-previewer-flipped.after{border-bottom-color:#262931}[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-angle.prism-previewer-angle:before,[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-time.prism-previewer-time:before,[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing{background:#31363f}[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-angle.prism-previewer-angle circle,[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-time.prism-previewer-time circle{stroke:#abb2bf;stroke-opacity:1}[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing circle,[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing path,[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing line{stroke:#abb2bf}[data-code-block-theme=one-dark] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing circle{fill:rgba(0,0,0,0)}[data-code-block-theme=one-light] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=one-light] div[data-type=codeBlock] pre[class*=language-]{background:#fafafa;color:#383a42;font-family:"Fira Code","Fira Mono",Menlo,Consolas,"DejaVu Sans Mono",monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:2;-o-tab-size:2;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme=one-light] div[data-type=codeBlock] code[class*=language-]::-moz-selection,[data-code-block-theme=one-light] div[data-type=codeBlock] code[class*=language-] *::-moz-selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre[class*=language-] *::-moz-selection{background:#e5e5e6;color:inherit}[data-code-block-theme=one-light] div[data-type=codeBlock] code[class*=language-]::selection,[data-code-block-theme=one-light] div[data-type=codeBlock] code[class*=language-] *::selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre[class*=language-] *::selection{background:#e5e5e6;color:inherit}[data-code-block-theme=one-light] div[data-type=codeBlock] pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}[data-code-block-theme=one-light] div[data-type=codeBlock] :not(pre)>code[class*=language-]{padding:.2em .3em;border-radius:.3em;white-space:normal}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.comment,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.prolog,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.cdata{color:#a0a1a7}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.doctype,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.punctuation,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.entity{color:#383a42}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.class-name,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.constant,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.number,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.atrule{color:#b76b01}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.keyword{color:#a626a4}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.property,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.tag,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.symbol,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.deleted,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.important{color:#e45649}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.selector,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.string,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.char,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.builtin,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.inserted,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.regex,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.attr-value>.token.punctuation{color:#50a14f}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.variable,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.operator,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.function{color:#4078f2}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.url{color:#0184bc}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.attr-value>.token.punctuation.attr-equals,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.special-attr>.token.attr-value>.token.value.css{color:#383a42}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-css .token.selector{color:#e45649}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-css .token.property{color:#383a42}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-css .token.function,[data-code-block-theme=one-light] div[data-type=codeBlock] .language-css .token.url>.token.function{color:#0184bc}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-css .token.url>.token.string.url{color:#50a14f}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-css .token.important,[data-code-block-theme=one-light] div[data-type=codeBlock] .language-css .token.atrule .token.rule{color:#a626a4}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-javascript .token.operator{color:#a626a4}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-javascript .token.template-string>.token.interpolation>.token.interpolation-punctuation.punctuation{color:#ca1243}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-json .token.operator{color:#383a42}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-json .token.null.keyword{color:#b76b01}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.url,[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.url>.token.operator,[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.url-reference.url>.token.string{color:#383a42}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.url>.token.content{color:#4078f2}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.url>.token.url,[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.url-reference.url{color:#0184bc}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.blockquote.punctuation,[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.hr.punctuation{color:#a0a1a7;font-style:italic}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.code-snippet{color:#50a14f}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.bold .token.content{color:#b76b01}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.italic .token.content{color:#a626a4}[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.strike .token.content,[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.strike .token.punctuation,[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.list.punctuation,[data-code-block-theme=one-light] div[data-type=codeBlock] .language-markdown .token.title.important>.token.punctuation{color:#e45649}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.bold{font-weight:bold}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.comment,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.entity{cursor:help}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.namespace{opacity:.8}[data-code-block-theme=one-light] div[data-type=codeBlock] .token.token.tab:not(:empty):before,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.token.cr:before,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.token.lf:before,[data-code-block-theme=one-light] div[data-type=codeBlock] .token.token.space:before{color:rgba(56,58,66,.2)}[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item{margin-right:.4em}[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>button,[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>a,[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>span{background:#e5e5e6;color:#696c77;padding:.1em .4em;border-radius:.3em}[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:hover,[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>button:focus,[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:hover,[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>a:focus,[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:hover,[data-code-block-theme=one-light] div[data-type=codeBlock] div.code-toolbar>.toolbar.toolbar>.toolbar-item>span:focus{background:#c6c7c7;color:#383a42}[data-code-block-theme=one-light] div[data-type=codeBlock] .line-highlight.line-highlight{background:rgba(56,58,66,.05)}[data-code-block-theme=one-light] div[data-type=codeBlock] .line-highlight.line-highlight:before,[data-code-block-theme=one-light] div[data-type=codeBlock] .line-highlight.line-highlight[data-end]:after{background:#e5e5e6;color:#383a42;padding:.1em .6em;border-radius:.3em;box-shadow:0 2px 0 0 rgba(0,0,0,.2)}[data-code-block-theme=one-light] div[data-type=codeBlock] pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:rgba(56,58,66,.05)}[data-code-block-theme=one-light] div[data-type=codeBlock] .line-numbers.line-numbers .line-numbers-rows,[data-code-block-theme=one-light] div[data-type=codeBlock] .command-line .command-line-prompt{border-right-color:rgba(56,58,66,.2)}[data-code-block-theme=one-light] div[data-type=codeBlock] .line-numbers .line-numbers-rows>span:before,[data-code-block-theme=one-light] div[data-type=codeBlock] .command-line .command-line-prompt>span:before{color:#9d9d9f}[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-1,[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-5,[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-9{color:#e45649}[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-2,[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-6,[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-10{color:#50a14f}[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-3,[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-7,[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-11{color:#4078f2}[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-4,[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-8,[data-code-block-theme=one-light] div[data-type=codeBlock] .rainbow-braces .token.token.punctuation.brace-level-12{color:#a626a4}[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix),[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix){background-color:rgba(255,82,102,.15)}[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix)::-moz-selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix) *::-moz-selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection{background-color:rgba(251,86,105,.25)}[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix)::selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.deleted:not(.prefix) *::selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix)::selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.deleted:not(.prefix) *::selection{background-color:rgba(251,86,105,.25)}[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix),[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix){background-color:rgba(26,255,91,.15)}[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix)::-moz-selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix) *::-moz-selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection{background-color:rgba(56,224,98,.25)}[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix)::selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre.diff-highlight>code .token.token.inserted:not(.prefix) *::selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix)::selection,[data-code-block-theme=one-light] div[data-type=codeBlock] pre>code.diff-highlight .token.token.inserted:not(.prefix) *::selection{background-color:rgba(56,224,98,.25)}[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer.prism-previewer:before,[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-gradient.prism-previewer-gradient div{border-color:#f2f2f2}[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-color.prism-previewer-color:before,[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-gradient.prism-previewer-gradient div,[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing:before{border-radius:.3em}[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer.prism-previewer:after{border-top-color:#f2f2f2}[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-flipped.prism-previewer-flipped.after{border-bottom-color:#f2f2f2}[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-angle.prism-previewer-angle:before,[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-time.prism-previewer-time:before,[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing{background:#fff}[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-angle.prism-previewer-angle circle,[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-time.prism-previewer-time circle{stroke:#383a42;stroke-opacity:1}[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing circle,[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing path,[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing line{stroke:#383a42}[data-code-block-theme=one-light] div[data-type=codeBlock] .prism-previewer-easing.prism-previewer-easing circle{fill:rgba(0,0,0,0)}[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-],[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-]{color:#d4d4d4;font-size:13px;text-shadow:none;font-family:Menlo,Monaco,Consolas,"Andale Mono","Ubuntu Mono","Courier New",monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-]::selection,[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-]::selection,[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-] *::selection,[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-] *::selection{text-shadow:none;background:#264f78}@media print{[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-],[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-]{text-shadow:none}}[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;background:#1e1e1e}[data-code-block-theme=vs-dark] div[data-type=codeBlock] :not(pre)>code[class*=language-]{padding:.1em .3em;border-radius:.3em;color:#db4c69;background:#1e1e1e}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .namespace{opacity:.7}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.doctype .token.doctype-tag{color:#569cd6}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.doctype .token.name{color:#9cdcfe}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.comment,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.prolog{color:#6a9955}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.punctuation,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .language-html .language-css .token.punctuation,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .language-html .language-javascript .token.punctuation{color:#d4d4d4}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.property,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.tag,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.number,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.constant,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.symbol,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.inserted,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.unit{color:#b5cea8}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.selector,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.string,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.char,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.builtin,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.deleted{color:#ce9178}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .language-css .token.string.url{text-decoration:underline}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.operator,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.entity{color:#d4d4d4}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.operator.arrow{color:#569cd6}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.atrule{color:#ce9178}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.atrule .token.rule{color:#c586c0}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.atrule .token.url{color:#9cdcfe}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.atrule .token.url .token.function{color:#dcdcaa}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.atrule .token.url .token.punctuation{color:#d4d4d4}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.keyword{color:#569cd6}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.keyword.module,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.keyword.control-flow{color:#c586c0}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.function,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.function .token.maybe-class-name{color:#dcdcaa}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.regex{color:#d16969}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.important{color:#569cd6}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.constant{color:#9cdcfe}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.class-name,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.maybe-class-name{color:#4ec9b0}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.console{color:#9cdcfe}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.parameter{color:#9cdcfe}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.interpolation{color:#9cdcfe}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.punctuation.interpolation-punctuation{color:#569cd6}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.boolean{color:#569cd6}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.property,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.variable,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.imports .token.maybe-class-name,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.exports .token.maybe-class-name{color:#9cdcfe}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.selector{color:#d7ba7d}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.escape{color:#d7ba7d}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.tag{color:#569cd6}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.tag .token.punctuation{color:gray}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.cdata{color:gray}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.attr-name{color:#9cdcfe}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.attr-value .token.punctuation{color:#ce9178}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.attr-value .token.punctuation.attr-equals{color:#d4d4d4}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.entity{color:#569cd6}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .token.namespace{color:#4ec9b0}[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-javascript],[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-javascript],[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-jsx],[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-jsx],[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-typescript],[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-typescript],[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-tsx],[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-tsx]{color:#9cdcfe}[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-css],[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-css]{color:#ce9178}[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-html],[data-code-block-theme=vs-dark] div[data-type=codeBlock] code[class*=language-html]{color:#d4d4d4}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .language-regex .token.anchor{color:#dcdcaa}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .language-html .token.punctuation{color:gray}[data-code-block-theme=vs-dark] div[data-type=codeBlock] pre[class*=language-]>code[class*=language-]{position:relative;z-index:1}[data-code-block-theme=vs-dark] div[data-type=codeBlock] .line-highlight.line-highlight{background:#f7ebc6;box-shadow:inset 5px 0 0 #f7d87c;z-index:0}[data-code-block-theme=vs-light] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=vs-light] div[data-type=codeBlock] pre[class*=language-]{color:#393a34;font-family:"Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;font-size:.9em;line-height:1.2em;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme=vs-light] div[data-type=codeBlock] pre>code[class*=language-]{font-size:1em}[data-code-block-theme=vs-light] div[data-type=codeBlock] pre[class*=language-]::-moz-selection,[data-code-block-theme=vs-light] div[data-type=codeBlock] pre[class*=language-] ::-moz-selection,[data-code-block-theme=vs-light] div[data-type=codeBlock] code[class*=language-]::-moz-selection,[data-code-block-theme=vs-light] div[data-type=codeBlock] code[class*=language-] ::-moz-selection{background:#c1def1}[data-code-block-theme=vs-light] div[data-type=codeBlock] pre[class*=language-]::selection,[data-code-block-theme=vs-light] div[data-type=codeBlock] pre[class*=language-] ::selection,[data-code-block-theme=vs-light] div[data-type=codeBlock] code[class*=language-]::selection,[data-code-block-theme=vs-light] div[data-type=codeBlock] code[class*=language-] ::selection{background:#c1def1}[data-code-block-theme=vs-light] div[data-type=codeBlock] pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border:1px solid #ddd;background-color:#fff}[data-code-block-theme=vs-light] div[data-type=codeBlock] :not(pre)>code[class*=language-]{padding:.2em;padding-top:1px;padding-bottom:1px;background:#f8f8f8;border:1px solid #ddd}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.comment,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.prolog,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.doctype,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.cdata{color:green;font-style:italic}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.namespace{opacity:.7}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.string{color:#a31515}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.punctuation,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.operator{color:#393a34}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.url,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.symbol,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.number,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.variable,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.constant,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.inserted{color:#36acaa}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.atrule,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.keyword,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=vs-light] div[data-type=codeBlock] .language-autohotkey .token.selector,[data-code-block-theme=vs-light] div[data-type=codeBlock] .language-json .token.boolean,[data-code-block-theme=vs-light] div[data-type=codeBlock] .language-json .token.number,[data-code-block-theme=vs-light] div[data-type=codeBlock] code[class*=language-css]{color:blue}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.function{color:#393a34}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.deleted,[data-code-block-theme=vs-light] div[data-type=codeBlock] .language-autohotkey .token.tag{color:#9a050f}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.selector,[data-code-block-theme=vs-light] div[data-type=codeBlock] .language-autohotkey .token.keyword{color:#00009f}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.important{color:#e90}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.important,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.bold{font-weight:bold}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.class-name,[data-code-block-theme=vs-light] div[data-type=codeBlock] .language-json .token.property{color:#2b91af}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.tag,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.selector{color:maroon}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.property,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.regex,[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.entity{color:red}[data-code-block-theme=vs-light] div[data-type=codeBlock] .token.directive.tag .tag{background:#ff0;color:#393a34}[data-code-block-theme=vs-light] div[data-type=codeBlock] .line-numbers.line-numbers .line-numbers-rows{border-right-color:#a5a5a5}[data-code-block-theme=vs-light] div[data-type=codeBlock] .line-numbers .line-numbers-rows>span:before{color:#2b91af}[data-code-block-theme=vs-light] div[data-type=codeBlock] .line-highlight.line-highlight{background:rgba(193,222,241,.2);background:-webkit-linear-gradient(left, rgba(193, 222, 241, 0.2) 70%, rgba(221, 222, 241, 0));background:linear-gradient(to right, rgba(193, 222, 241, 0.2) 70%, rgba(221, 222, 241, 0))}[data-code-block-theme=okaidia] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=okaidia] div[data-type=codeBlock] pre[class*=language-]{color:#f8f8f2;background:none;text-shadow:0 1px rgba(0,0,0,.3);font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme=okaidia] div[data-type=codeBlock] pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}[data-code-block-theme=okaidia] div[data-type=codeBlock] :not(pre)>code[class*=language-],[data-code-block-theme=okaidia] div[data-type=codeBlock] pre[class*=language-]{background:#272822}[data-code-block-theme=okaidia] div[data-type=codeBlock] :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.comment,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.prolog,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.doctype,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.cdata{color:#8292a2}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.punctuation{color:#f8f8f2}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.namespace{opacity:.7}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.property,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.tag,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.constant,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.symbol,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.deleted{color:#f92672}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.number{color:#ae81ff}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.selector,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.string,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.char,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.builtin,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.inserted{color:#a6e22e}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.operator,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.entity,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.url,[data-code-block-theme=okaidia] div[data-type=codeBlock] .language-css .token.string,[data-code-block-theme=okaidia] div[data-type=codeBlock] .style .token.string,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.variable{color:#f8f8f2}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.atrule,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.function,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.class-name{color:#e6db74}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.keyword{color:#66d9ef}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.regex,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.important{color:#fd971f}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.important,[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.bold{font-weight:bold}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=okaidia] div[data-type=codeBlock] .token.entity{cursor:help}[data-code-block-theme=twilight] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-]{color:#fff;background:none;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:1em;text-align:left;text-shadow:0 -0.1em .2em #000;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-],[data-code-block-theme=twilight] div[data-type=codeBlock] :not(pre)>code[class*=language-]{background:#141414}[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-]{border-radius:.5em;border:.3em solid #545454;box-shadow:1px 1px .5em #000 inset;margin:.5em 0;overflow:auto;padding:1em}[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-]::-moz-selection{background:#27292a}[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-]::selection{background:#27292a}[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-]::-moz-selection,[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-] ::-moz-selection,[data-code-block-theme=twilight] div[data-type=codeBlock] code[class*=language-]::-moz-selection,[data-code-block-theme=twilight] div[data-type=codeBlock] code[class*=language-] ::-moz-selection{text-shadow:none;background:rgba(237,237,237,.15)}[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-]::selection,[data-code-block-theme=twilight] div[data-type=codeBlock] pre[class*=language-] ::selection,[data-code-block-theme=twilight] div[data-type=codeBlock] code[class*=language-]::selection,[data-code-block-theme=twilight] div[data-type=codeBlock] code[class*=language-] ::selection{text-shadow:none;background:rgba(237,237,237,.15)}[data-code-block-theme=twilight] div[data-type=codeBlock] :not(pre)>code[class*=language-]{border-radius:.3em;border:.13em solid #545454;box-shadow:1px 1px .3em -0.1em #000 inset;padding:.15em .2em .05em;white-space:normal}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.comment,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.prolog,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.doctype,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.cdata{color:#787878}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.punctuation{opacity:.7}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.namespace{opacity:.7}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.tag,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.number,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.deleted{color:#cf694a}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.keyword,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.property,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.selector,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.constant,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.symbol,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.builtin{color:#f9ee9a}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.string,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.char,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.operator,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.entity,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.url,[data-code-block-theme=twilight] div[data-type=codeBlock] .language-css .token.string,[data-code-block-theme=twilight] div[data-type=codeBlock] .style .token.string,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.variable,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.inserted{color:#919e6b}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.atrule{color:#7386a5}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.regex,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.important{color:#e9c163}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.important,[data-code-block-theme=twilight] div[data-type=codeBlock] .token.bold{font-weight:bold}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=twilight] div[data-type=codeBlock] .token.entity{cursor:help}[data-code-block-theme=twilight] div[data-type=codeBlock] pre[data-line]{padding:1em 0 1em 3em;position:relative}[data-code-block-theme=twilight] div[data-type=codeBlock] .language-markup .token.tag,[data-code-block-theme=twilight] div[data-type=codeBlock] .language-markup .token.attr-name,[data-code-block-theme=twilight] div[data-type=codeBlock] .language-markup .token.punctuation{color:#ad895c}[data-code-block-theme=twilight] div[data-type=codeBlock] .token{position:relative;z-index:1}[data-code-block-theme=twilight] div[data-type=codeBlock] .line-highlight{background:rgba(84,84,84,.25);background:linear-gradient(to right, hsla(0, 0%, 33%, 0.1) 70%, hsla(0, 0%, 33%, 0));border-bottom:1px dashed #545454;border-top:1px dashed #545454;left:0;line-height:inherit;margin-top:.75em;padding:inherit 0;pointer-events:none;position:absolute;right:0;white-space:pre;z-index:0}[data-code-block-theme=twilight] div[data-type=codeBlock] .line-highlight:before,[data-code-block-theme=twilight] div[data-type=codeBlock] .line-highlight[data-end]:after{background-color:#8794a6;border-radius:999px;box-shadow:0 1px #fff;color:#f5f2f0;content:attr(data-start);font:bold 65%/1.5 sans-serif;left:.6em;min-width:1em;padding:0 .5em;position:absolute;text-align:center;text-shadow:none;top:.4em;vertical-align:.3em}[data-code-block-theme=twilight] div[data-type=codeBlock] .line-highlight[data-end]:after{bottom:.4em;content:attr(data-end);top:auto}[data-code-block-theme=coy] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]{color:#000;background:none;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]{position:relative;margin:.5em 0;overflow-y:hidden;padding:0}[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]>code{position:relative;border-left:10px solid #358ccb;box-shadow:-1px 0px 0px 0px #358ccb,0px 0px 0px 1px #dfdfdf;background-color:#fdfdfd;background-image:linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%);background-size:3em 3em;background-origin:content-box;background-attachment:local}[data-code-block-theme=coy] div[data-type=codeBlock] code[class*=language-]{max-height:inherit;height:inherit;padding:0 1em;display:block}[data-code-block-theme=coy] div[data-type=codeBlock] :not(pre)>code[class*=language-],[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]{background-color:#fdfdfd;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin-bottom:1em}[data-code-block-theme=coy] div[data-type=codeBlock] :not(pre)>code[class*=language-]{position:relative;padding:.2em;border-radius:.3em;color:#c92c2c;border:1px solid rgba(0,0,0,.1);display:inline;white-space:normal}[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]:before,[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]:after{content:"";z-index:-2;display:block;position:absolute;bottom:.75em;left:.18em;width:40%;height:20%;max-height:13em;box-shadow:0px 13px 8px #979797;-webkit-transform:rotate(-2deg);-moz-transform:rotate(-2deg);-ms-transform:rotate(-2deg);-o-transform:rotate(-2deg);transform:rotate(-2deg)}[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]:after{right:.75em;left:auto;-webkit-transform:rotate(2deg);-moz-transform:rotate(2deg);-ms-transform:rotate(2deg);-o-transform:rotate(2deg);transform:rotate(2deg)}[data-code-block-theme=coy] div[data-type=codeBlock] .token.comment,[data-code-block-theme=coy] div[data-type=codeBlock] .token.block-comment,[data-code-block-theme=coy] div[data-type=codeBlock] .token.prolog,[data-code-block-theme=coy] div[data-type=codeBlock] .token.doctype,[data-code-block-theme=coy] div[data-type=codeBlock] .token.cdata{color:#7d8b99}[data-code-block-theme=coy] div[data-type=codeBlock] .token.punctuation{color:#5f6364}[data-code-block-theme=coy] div[data-type=codeBlock] .token.property,[data-code-block-theme=coy] div[data-type=codeBlock] .token.tag,[data-code-block-theme=coy] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=coy] div[data-type=codeBlock] .token.number,[data-code-block-theme=coy] div[data-type=codeBlock] .token.function-name,[data-code-block-theme=coy] div[data-type=codeBlock] .token.constant,[data-code-block-theme=coy] div[data-type=codeBlock] .token.symbol,[data-code-block-theme=coy] div[data-type=codeBlock] .token.deleted{color:#c92c2c}[data-code-block-theme=coy] div[data-type=codeBlock] .token.selector,[data-code-block-theme=coy] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=coy] div[data-type=codeBlock] .token.string,[data-code-block-theme=coy] div[data-type=codeBlock] .token.char,[data-code-block-theme=coy] div[data-type=codeBlock] .token.function,[data-code-block-theme=coy] div[data-type=codeBlock] .token.builtin,[data-code-block-theme=coy] div[data-type=codeBlock] .token.inserted{color:#2f9c0a}[data-code-block-theme=coy] div[data-type=codeBlock] .token.operator,[data-code-block-theme=coy] div[data-type=codeBlock] .token.entity,[data-code-block-theme=coy] div[data-type=codeBlock] .token.url,[data-code-block-theme=coy] div[data-type=codeBlock] .token.variable{color:#a67f59;background:rgba(255,255,255,.5)}[data-code-block-theme=coy] div[data-type=codeBlock] .token.atrule,[data-code-block-theme=coy] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=coy] div[data-type=codeBlock] .token.keyword,[data-code-block-theme=coy] div[data-type=codeBlock] .token.class-name{color:#1990b8}[data-code-block-theme=coy] div[data-type=codeBlock] .token.regex,[data-code-block-theme=coy] div[data-type=codeBlock] .token.important{color:#e90}[data-code-block-theme=coy] div[data-type=codeBlock] .language-css .token.string,[data-code-block-theme=coy] div[data-type=codeBlock] .style .token.string{color:#a67f59;background:rgba(255,255,255,.5)}[data-code-block-theme=coy] div[data-type=codeBlock] .token.important{font-weight:normal}[data-code-block-theme=coy] div[data-type=codeBlock] .token.bold{font-weight:bold}[data-code-block-theme=coy] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=coy] div[data-type=codeBlock] .token.entity{cursor:help}[data-code-block-theme=coy] div[data-type=codeBlock] .token.namespace{opacity:.7}@media screen and (max-width: 767px){[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]:before,[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-]:after{bottom:14px;box-shadow:none}}[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-].line-numbers.line-numbers{padding-left:0}[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-].line-numbers.line-numbers code{padding-left:3.8em}[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-].line-numbers.line-numbers .line-numbers-rows{left:0}[data-code-block-theme=coy] div[data-type=codeBlock] pre[class*=language-][data-line]{padding-top:0;padding-bottom:0;padding-left:0}[data-code-block-theme=coy] div[data-type=codeBlock] pre[data-line] code{position:relative;padding-left:4em}[data-code-block-theme=coy] div[data-type=codeBlock] pre .line-highlight{margin-top:0}[data-code-block-theme=solarized-light] div[data-type=codeBlock] code[class*=language-],[data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-]{color:#657b83;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}[data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-]::-moz-selection,[data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-] ::-moz-selection,[data-code-block-theme=solarized-light] div[data-type=codeBlock] code[class*=language-]::-moz-selection,[data-code-block-theme=solarized-light] div[data-type=codeBlock] code[class*=language-] ::-moz-selection{background:#073642}[data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-]::selection,[data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-] ::selection,[data-code-block-theme=solarized-light] div[data-type=codeBlock] code[class*=language-]::selection,[data-code-block-theme=solarized-light] div[data-type=codeBlock] code[class*=language-] ::selection{background:#073642}[data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}[data-code-block-theme=solarized-light] div[data-type=codeBlock] :not(pre)>code[class*=language-],[data-code-block-theme=solarized-light] div[data-type=codeBlock] pre[class*=language-]{background-color:#fdf6e3}[data-code-block-theme=solarized-light] div[data-type=codeBlock] :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.comment,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.prolog,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.doctype,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.cdata{color:#93a1a1}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.punctuation{color:#586e75}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.namespace{opacity:.7}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.property,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.tag,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.boolean,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.number,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.constant,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.symbol,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.deleted{color:#268bd2}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.selector,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.attr-name,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.string,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.char,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.builtin,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.url,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.inserted{color:#2aa198}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.entity{color:#657b83;background:#eee8d5}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.atrule,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.attr-value,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.keyword{color:#859900}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.function,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.class-name{color:#b58900}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.regex,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.important,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.variable{color:#cb4b16}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.important,[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.bold{font-weight:bold}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.italic{font-style:italic}[data-code-block-theme=solarized-light] div[data-type=codeBlock] .token.entity{cursor:help}.cherry-detail details{background:rgba(248,249,250,.6666666667);border-radius:8px;overflow:hidden;margin-bottom:10px}.cherry-detail details summary{user-select:none;padding:5px 10px;background-color:#6c757d;color:#fff;border-radius:8px}.cherry-detail details .cherry-detail-body{padding:15px 25px 0 25px}.cherry-detail__multiple{border-radius:8px;overflow:hidden}.cherry-detail__multiple details{margin-bottom:1px;border-radius:0;border:none}.cherry-detail__multiple details summary{border-radius:0}.cherry-text-align__center table{margin-left:auto;margin-right:auto}.cherry-text-align__right table{margin-left:auto}.cherry-panel{margin:10px 0;overflow:hidden;border-radius:8px;box-sizing:border-box;border:.5px solid}.cherry-panel .cherry-panel--title{color:#fff;padding:5px 20px}.cherry-panel .cherry-panel--title.cherry-panel--title__not-empty::before{font-family:"ch-icon";margin:0 12px 0 -6px;vertical-align:bottom}.cherry-panel .cherry-panel--body{padding:5px 20px}.cherry-panel__primary{background-color:#cfe2ff;color:#0a58ca}.cherry-panel__primary .cherry-panel--title{background-color:#0d6dfe}.cherry-panel__primary .cherry-panel--title.cherry-panel--title__not-empty::before{content:""}.cherry-panel__info{background-color:#cff4fc;color:#087990}.cherry-panel__info .cherry-panel--title{background-color:#099cba}.cherry-panel__info .cherry-panel--title.cherry-panel--title__not-empty::before{content:""}.cherry-panel__warning{background-color:#fff3cd;color:#997404}.cherry-panel__warning .cherry-panel--title{background-color:#b38806}.cherry-panel__warning .cherry-panel--title.cherry-panel--title__not-empty::before{content:""}.cherry-panel__danger{background-color:#f8d7da;color:#b02a37}.cherry-panel__danger .cherry-panel--title{background-color:#dc3545}.cherry-panel__danger .cherry-panel--title.cherry-panel--title__not-empty::before{content:""}.cherry-panel__success{background-color:#d1e7dd;color:#146c43}.cherry-panel__success .cherry-panel--title{background-color:#198754}.cherry-panel__success .cherry-panel--title.cherry-panel--title__not-empty::before{content:""}.cherry .doing-resize-img{-moz-user-select:none;-webkit-user-select:none;user-select:none}.cherry .cherry-previewer img{transition:all .1s}.cherry .cherry-previewer-img-size-handler{position:absolute;box-shadow:0 1px 4px 0 rgba(20,81,154,.5);border:1px solid #3582fb;box-sizing:content-box;pointer-events:none}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points{position:absolute;height:10px;width:10px;margin-top:-7px;margin-left:-7px;border-radius:9px;background:#3582fb;border:2px solid #fff;box-sizing:content-box;box-shadow:0px 2px 2px 0px rgba(20,81,154,.5);pointer-events:all}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__background{background-repeat:no-repeat;background-size:100% 100%;opacity:.5;width:100%;height:100%}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-leftTop{cursor:nw-resize}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-rightTop{cursor:sw-resize}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-leftBottom{cursor:sw-resize}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-rightBottom{cursor:nw-resize}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-middleTop{cursor:n-resize}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-middleBottom{cursor:n-resize}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-leftMiddle{cursor:e-resize}.cherry .cherry-previewer-img-size-handler .cherry-previewer-img-size-handler__points-rightMiddle{cursor:e-resize}.cherry .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input{position:absolute}.cherry .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea{width:100%;height:100%;border:0;box-sizing:border-box;resize:none;outline:1px solid #3582fb;word-break:break-all}.cherry .cherry-previewer-codeBlock-content-handler .cherry-previewer-codeBlock-content-handler__input{position:absolute}.cherry .cherry-previewer-table-hover-handler{position:absolute;pointer-events:none;z-index:999}.cherry .cherry-previewer-table-hover-handler-container,.cherry .cherry-previewer-table-hover-handler-sort-container,.cherry .cherry-previewer-table-hover-handler-delete-container{position:absolute;height:100%;width:100%;padding:0;margin:0;list-style-type:none}.cherry .cherry-previewer-table-hover-handler__symbol{pointer-events:auto;display:flex;justify-content:center;position:absolute;color:#3582fb;width:12px;height:12px;line-height:12px;border:1px solid rgba(53,130,251,0);background-color:rgba(255,255,255,0);border-radius:3px;cursor:pointer;transition:all .3s}.cherry .cherry-previewer-table-hover-handler__symbol:hover{background-color:rgba(53,130,251,.5333333333);color:#fff}.cherry .cherry-previewer-table-hover-handler__sort{pointer-events:auto;display:flex;justify-content:center;position:absolute;color:#3582fb;width:12px;height:12px;padding:5px 0;line-height:12px;border:1px solid rgba(53,130,251,0);background-color:rgba(255,255,255,0);border-radius:3px;cursor:pointer;transition:all .3s}.cherry .cherry-previewer-table-hover-handler__sort:hover{background-color:rgba(53,130,251,.5333333333);border-color:rgba(53,130,251,.5333333333);color:#fff}.cherry .cherry-previewer-table-hover-handler__sort[data-type=ColUp],.cherry .cherry-previewer-table-hover-handler__sort[data-type=ColDown]{padding:0 5px}.cherry .cherry-previewer-table-hover-handler__delete{pointer-events:auto;position:absolute;color:#fff;width:25px;height:15px;font-size:12px;line-height:12px;border:1px solid rgba(255,77,79,0);border-radius:3px;background-color:rgba(255,77,79,0);color:rgba(255,77,79,.5);cursor:pointer;transition:all .3s}.cherry .cherry-previewer-table-hover-handler__delete:hover{background-color:#ff4d4f;border-color:#ff4d4f;color:#fff}.cherry .cherry-previewer-table-hover-handler__delete[data-type=left],.cherry .cherry-previewer-table-hover-handler__delete[data-type=right]{padding:0;width:18px;height:18px}@keyframes changeBgColor{0%{background-color:rgba(255,255,204,.5333333333)}60%{background-color:rgba(255,255,204,.5333333333)}100%{background-color:rgba(255,255,204,0)}}.cherry .cherry-highlight-line{animation:changeBgColor 3s}@media print{img,figure,pre,table{page-break-inside:avoid}.cherry-previewer{width:100% !important;max-height:none;border-left:none !important}.cherry-toolbar,.cherry-sidebar,.cherry-editor,.cherry-drag{display:none !important}}.cherry-insert-formula-wrappler{width:610px !important;height:300px !important;padding:15px;display:flex;position:fixed !important;z-index:9999999;box-shadow:0 .5rem 1rem rgba(0,0,0,.15);box-sizing:border-box;border-radius:10px;background-color:#fff !important;overflow:hidden}.cherry-insert-formula-wrappler .cherry-insert-formula-more{position:absolute;bottom:0;font-size:12px}.cherry-insert-formula-wrappler .cherry-insert-formula-tabs{width:100px;height:100%;list-style:none;padding:0;margin:0;margin-right:10px}.cherry-insert-formula-wrappler .cherry-insert-formula-tabs .cherry-insert-formula-tab{width:100%;height:30px;text-align:center;border:1px solid #fff;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer}.cherry-insert-formula-wrappler .cherry-insert-formula-tabs .cherry-insert-formula-tab>a{display:block;text-decoration:none;user-select:none;user-select:none}.cherry-insert-formula-wrappler .cherry-insert-formula-tabs .cherry-insert-formula-tab:not(:first-child){margin-top:10px}.cherry-insert-formula-wrappler .cherry-insert-formula-tabs .cherry-insert-formula-tab.active{color:#000;border:1px solid #000;border-radius:5px}.cherry-insert-formula-wrappler .cherry-insert-formula-select{height:100%;flex:1;display:none;overflow-y:scroll}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary{width:130px}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary:not(:first-child){margin-top:10px}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func{min-width:200px;height:260px;position:absolute;left:255px;top:0;z-index:100;padding:20px 10px;background-color:#fff;border-left:1px solid rgba(0,0,0,.15);display:none;overflow-y:scroll}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func .cherry-insert-formula-categary__func-categary{border-top:1px solid #e9ecef;border-bottom:1px solid #e9ecef;margin-bottom:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func .cherry-insert-formula-categary__func-item{cursor:pointer;border:1px solid #fff;display:inline-block;text-align:center;background-color:#f8f9fa;margin:2px;padding:2px;vertical-align:middle;line-height:30px;border-color:#f8f9fa;border-radius:5px}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func .cherry-insert-formula-categary__func-item:hover{border-color:#dae0e5;background-color:#e2e6ea}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func .cherry-insert-formula-categary__func-item svg,.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func .cherry-insert-formula-categary__func-item img{pointer-events:none}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__func:hover{display:block}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__btn{cursor:pointer;display:inline-block;font-weight:400;text-align:center;vertical-align:middle;user-select:none;background-color:rgba(0,0,0,0);border:1px solid rgba(0,0,0,0);padding:.375rem .75rem;font-size:1rem;line-height:1.5;border-radius:.25rem;width:100%}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__btn>img{width:100%;height:60%}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__btn:hover{color:#3582fb}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .cherry-insert-formula-categary__btn:hover+.cherry-insert-formula-categary__func{float:left;display:block}.cherry-insert-formula-wrappler .cherry-insert-formula-select .cherry-insert-formula-categary .btn-light{color:#212529;background-color:#ebecf2;border-color:#f8f9fa}.cherry-insert-formula-wrappler .cherry-insert-formula-select.active{display:block}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.formula-utils-bubble-container{width:350px;height:40px;background-color:#fff;position:fixed;left:0;top:0;display:none;z-index:1000;box-sizing:border-box}.formula-utils-bubble-container .formula-utils-btn{flex:1;position:relative}.formula-utils-bubble-container .formula-utils-btn>button{width:100%;height:100%;border:1px solid #fff;background-color:#ebecf2;cursor:pointer;border-radius:5px}.formula-utils-bubble-container .formula-utils-btn>button:hover{background-color:#eee}.formula-utils-bubble-container .formula-utils-btn>button:focus{outline:none}.formula-utils-bubble-container .formula-utils-btn>button:active{background-color:#ddd}.formula-utils-bubble-container .formula-utils-btn>button:hover+.formula-utils-submenu{display:block}.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu{position:absolute;display:none;width:100%;background-color:#fff;border:1px solid #f8f9fa;left:0;top:100%;box-shadow:0 0 5px #f8f9fa}.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu:hover{display:block}.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu div{width:100%;height:40px}.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu div button{width:100%;height:100%;border:1px solid #fff;background-color:#fff;cursor:pointer}.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu div button:hover{background-color:#eee}.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu div button:focus{outline:none}.formula-utils-bubble-container .formula-utils-btn .formula-utils-submenu div button:active{background-color:#ddd}.cherry-shortcut-key-config-panel-wrapper{width:250px !important;height:400px !important}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner{width:100%;height:100%;overflow:auto}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner::-webkit-scrollbar{display:none}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner .shortcut-top{width:100%}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner .cherry-shortcut-key-config-panel-ul{list-style:none;padding:0;margin:0}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner .cherry-shortcut-key-config-panel-ul .shortcut-key-item{display:flex;justify-content:space-between;height:auto;padding:2px 15px;border-top:1px solid #eee}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner .cherry-shortcut-key-config-panel-ul .shortcut-key-item .input-shortcut-wrapper{width:100px}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner .cherry-shortcut-key-config-panel-ul .shortcut-key-item .input-shortcut-wrapper input{width:100%}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner .cherry-shortcut-key-config-panel-ul .shortcut-key-item .shortcut-key-config-panel-name{max-width:120px}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner .cherry-shortcut-key-config-panel-ul .shortcut-key-item .shortcut-key-config-panel-kbd{display:flex;gap:10px;min-width:120px;justify-content:right}.cherry-shortcut-key-config-panel-wrapper .cherry-shortcut-key-config-panel-inner .cherry-shortcut-key-config-panel-ul .shortcut-key-item .shortcut-key-config-panel-kbd .keyboard-key{border-radius:3px;border-style:solid;border-width:1px;display:inline-block;font-size:11px;margin:0 2px;padding:3px 5px;vertical-align:middle;line-height:20px;margin:4px;min-width:16px;text-align:center}.cherry-shortcut-key-config-panel-wrapper .shortcut-static .cherry-shortcut-key-config-panel-ul{gap:0}.cherry-shortcut-key-config-panel-wrapper .shortcut-static .cherry-shortcut-key-config-panel-ul .shortcut-key-item{cursor:default}.cherry-shortcut-key-config-panel-wrapper .shortcut-static .cherry-shortcut-key-config-panel-ul .shortcut-key-item .shortcut-key-config-panel-static{display:flex;gap:3px;min-width:80px;justify-content:right}.cherry-shortcut-key-config-panel-wrapper .shortcut-static .cherry-shortcut-key-config-panel-ul .shortcut-key-item .shortcut-key-config-panel-static .shortcut-split{color:#aaa}.cherry-shortcut-key-config-panel-wrapper .shortcut-panel-title,.cherry-shortcut-key-config-panel-wrapper .shortcut-panel-settings{font-size:14px;padding:10px 15px;background-color:#eee}.cherry-shortcut-key-config-panel-wrapper .shortcut-panel-settings{padding:10px 15px;font-size:12px;cursor:pointer;user-select:none;border-bottom:1px solid #aaa;justify-content:space-between;display:flex}.cherry-shortcut-key-config-panel-wrapper .shortcut-panel-settings .shortcut-settings-btn{height:auto;line-height:1.2em}.cherry-shortcut-key-config-panel-wrapper .shortcut-panel-settings .shortcut-settings-btn:hover{color:#ff4d4f}.cherry-shortcut-key-config-panel-wrapper.disable .cherry-shortcut-key-config-panel-ul{opacity:.3}.cherry-shortcut-key-config-panel-wrapper.disable .j-shortcut-settings-disable-btn{color:#ff4d4f}.cherry{display:flex;flex-flow:row wrap;align-items:stretch;align-content:flex-start;height:100%;min-height:60px;position:relative}.cherry .cherry-editor,.cherry .cherry-previewer{max-height:calc(100% - 48px);min-height:calc(100% - 48px)}.cherry .CodeMirror{height:100%}.cherry.cherry--no-toolbar .cherry-toolbar,.cherry.cherry--no-toolbar .cherry-sidebar{height:0;display:none}.cherry.cherry--no-toolbar .cherry-editor,.cherry.cherry--no-toolbar .cherry-previewer{max-height:100%;min-height:100%}.cherry{font-family:"Helvetica Neue",Arial,"Hiragino Sans GB","STHeiti","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;font-size:16px;line-height:27px;color:#3f4a56;background:#fff;box-shadow:0 0 10px rgba(128,145,165,.2)}.cherry .ch-icon{vertical-align:middle}.cherry .clearfix{zoom:1}.cherry .clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;font-size:0}.cherry.fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;z-index:99}.cherry .no-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cherry .cherry-insert-table-menu{display:block;position:fixed;top:40px;left:40px;border-collapse:separate;box-shadow:0 0 10px rgba(128,145,165,.2);padding:4px;border-radius:3px;width:auto;height:auto}.cherry .cherry-insert-table-menu-item{padding:7px;border:1px solid #dfe6ee}.cherry .cherry-insert-table-menu-item.active{background-color:#ebf3ff}.cherry[data-toolbar-theme=dark] .cherry-insert-table-menu-item{border-color:rgba(255,255,255,.2)}.cherry[data-toolbar-theme=dark] .cherry-insert-table-menu-item.active{background-color:#d7e6fe}.cherry-dropdown{position:absolute;width:130px;min-height:40px;background:#fff;box-shadow:0 5px 15px -5px rgba(0,0,0,.5);margin-left:-60px;z-index:13}.cherry-dropdown-item{width:100%;padding:0 15px;text-align:left;display:inline-block;height:36px;line-height:36px;font-size:14px;font-style:normal;cursor:pointer;box-sizing:border-box}.cherry-dropdown-item:hover{background:#ebf3ff;color:#5d9bfc}.cherry-dropdown-item__selected{background:#ebf3ff;color:#5d9bfc}.cherry-dropdown-item .ch-icon{margin-right:10px}[data-toolbar-theme=dark] .cherry-dropdown{background:#20304b}[data-toolbar-theme=dark] .cherry-dropdown .cherry-dropdown-item{background:rgba(0,0,0,0);color:#d7e6fe}[data-toolbar-theme=dark] .cherry-dropdown .cherry-dropdown-item:hover{background:rgba(255,255,255,.1);color:#fff}[data-toolbar-theme=dark] .cherry-dropdown .cherry-dropdown-item__selected{background:rgba(255,255,255,.1);color:#5d9bfc}.cherry-toolbar{position:relative;display:flex;align-items:baseline;justify-content:space-between;padding:0 20px;min-height:48px;font-size:14px;line-height:2.8;flex-basis:100%;box-sizing:border-box;z-index:2;user-select:none;box-shadow:0 0 10px rgba(128,145,165,.2);background:#fff;overflow:hidden}.cherry-toolbar .icon-loading.loading{display:inline-block;width:8px;height:8px}.cherry-toolbar .icon-loading.loading:after{content:" ";display:block;width:8px;height:8px;margin-left:2px;margin-top:-2px;border-radius:50%;border:2px solid #000;border-color:#000 rgba(0,0,0,0) #000 rgba(0,0,0,0);animation:loading 1.2s linear infinite}[data-toolbar-theme=dark] .cherry-toolbar{background:#20304b;box-shadow:0 0 10px rgba(128,145,165,.2)}[data-toolbar-theme=dark] .cherry-toolbar .cherry-toolbar-button{color:#d7e6fe;background:rgba(0,0,0,0)}[data-toolbar-theme=dark] .cherry-toolbar .cherry-toolbar-button:hover{color:#fff;background:rgba(255,255,255,.1)}.cherry-toolbar .toolbar-left,.cherry-toolbar .toolbar-right{display:flex;align-items:center;min-height:48px;flex-wrap:wrap;flex:1}.cherry-toolbar .toolbar-left{margin-right:20px}.cherry-toolbar .toolbar-right{flex:0 1 auto;flex-direction:row-reverse;margin-left:10px;box-sizing:border-box;min-height:0}.cherry-toolbar.preview-only .cherry-toolbar-button{display:none}.cherry-toolbar.preview-only .cherry-toolbar-switchPreview{display:inline}.cherry-toolbar-button{float:left;padding:0 12px;height:38px;color:#3f4a56;background:rgba(0,0,0,0);border:1px solid rgba(0,0,0,0);-webkit-transition:background-color ease-in-out .15s,color ease-in-out .15s,border-color ease-in-out .15s;transition:background-color ease-in-out .15s,color ease-in-out .15s,border-color ease-in-out .15s;cursor:pointer;font-style:normal}.cherry-toolbar-button:hover{color:#5d9bfc;background:#ebf3ff}.cherry-toolbar-button.cherry-toolbar-split{font-size:0;height:19px;padding:0;margin:9.5px 4px;border:1px solid rgba(0,0,0,0);border-left:1px solid #dfe6ee;pointer-events:none;overflow:hidden;opacity:.5}.cherry-toolbar-button.disabled{color:#ccc}.cherry .ace_search{background:#fff}.cherry-sidebar{width:30px;position:absolute;top:48px;right:7px;z-index:11;bottom:0;overflow:hidden}.cherry-sidebar .cherry-toolbar-button{height:30px;padding:3px 12px 0 6px}.cherry-sidebar .cherry-toolbar-button:hover{background:rgba(0,0,0,0)}.cherry-sidebar .cherry-toolbar-button .icon-loading.loading{display:inline-block;width:8px;height:8px}.cherry-sidebar .cherry-toolbar-button .icon-loading.loading:after{content:" ";display:block;width:8px;height:8px;margin-left:2px;margin-top:-2px;border-radius:50%;border:2px solid #000;border-color:#000 rgba(0,0,0,0) #000 rgba(0,0,0,0);animation:loading 1.2s linear infinite}@keyframes loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.cherry-bubble{position:absolute;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;font-size:14px;min-height:35px;min-width:50px;border:1px solid #dfe6ee;background-color:#fff;box-shadow:0 2px 15px -5px rgba(0,0,0,.5);border-radius:3px;z-index:8}.cherry-bubble.cherry-bubble--centered{left:50%;transform:translateX(-50%)}.cherry-bubble .cherry-bubble-top,.cherry-bubble .cherry-bubble-bottom{position:absolute;left:50%;width:0;height:0;margin-left:-8px;border-left:8px solid rgba(0,0,0,0);border-right:8px solid rgba(0,0,0,0)}.cherry-bubble .cherry-bubble-top{top:0;transform:translateY(-100%);border-bottom:8px solid #fff}.cherry-bubble .cherry-bubble-bottom{bottom:0;transform:translateY(100%);border-top:8px solid #fff}.cherry-bubble .cherry-toolbar-button{display:inline-flex;align-items:center;justify-content:center;height:35px;cursor:pointer;user-select:none}.cherry-bubble .cherry-toolbar-button:hover{border-color:#dfe6ee;background-color:rgba(89,128,166,.05)}.cherry-bubble .cherry-toolbar-button.cherry-toolbar-split{height:65%;min-height:22.75px}[data-toolbar-theme=dark] .cherry-bubble{border-color:#20304b;background:#20304b}[data-toolbar-theme=dark] .cherry-bubble .cherry-toolbar-button{color:#d7e6fe;background:rgba(0,0,0,0)}[data-toolbar-theme=dark] .cherry-bubble .cherry-toolbar-button:hover{color:#fff;background:rgba(255,255,255,.1)}[data-toolbar-theme=dark] .cherry-bubble .cherry-bubble-top{border-bottom-color:#20304b}[data-toolbar-theme=dark] .cherry-bubble .cherry-bubble-bottom{border-top-color:#20304b}[data-toolbar-theme=dark] .cherry-bubble .cherry-toolbar-button:hover{border-color:#20304b}.cherry-switch-paste .switch-btn--bg{position:absolute;width:50%;height:100%;box-sizing:border-box;z-index:-1;left:0;top:0;opacity:.3;background-color:#5d9bfc;border-radius:2px;transition:all .3s}.cherry-switch-paste .cherry-toolbar-button{display:inline-flex;align-items:center;justify-content:center;width:80px;text-align:center}.cherry-switch-paste .cherry-toolbar-button:hover{border-color:rgba(0,0,0,0)}.cherry-switch-paste[data-type=text] .cherry-text-btn{color:#3f4a56}.cherry-switch-paste[data-type=text] .cherry-md-btn{color:#5d9bfc}.cherry-switch-paste[data-type=md] .cherry-md-btn{color:#3f4a56}.cherry-switch-paste[data-type=md] .cherry-text-btn{color:#5d9bfc}.cherry-switch-paste[data-type=md] .switch-btn--bg{left:50%}[data-toolbar-theme=dark] .cherry-switch-paste .switch-btn--bg{background-color:#fff}[data-toolbar-theme=dark] .cherry-switch-paste[data-type=text] .cherry-text-btn{color:#d7e6fe}[data-toolbar-theme=dark] .cherry-switch-paste[data-type=text] .cherry-md-btn{color:#fff}[data-toolbar-theme=dark] .cherry-switch-paste[data-type=md] .cherry-md-btn{color:#d7e6fe}[data-toolbar-theme=dark] .cherry-switch-paste[data-type=md] .cherry-text-btn{color:#fff}[data-toolbar-theme=dark] .cherry-switch-paste[data-type=md] .switch-btn--bg{left:50%}.cherry-floatmenu{z-index:4;display:none;position:absolute;left:30px;margin-left:60px;height:27px;line-height:27px;border-radius:3px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cherry-floatmenu .cherry-toolbar-button{float:left;padding:0 9px;margin:0;height:27px;line-height:27px;font-size:14px;color:#3f4a56;overflow:hidden;vertical-align:middle;text-align:center;border:0;cursor:pointer;font-style:normal}.cherry-floatmenu .cherry-toolbar-button.cherry-toolbar-split{border-left:1px solid #dfe6ee;width:0;padding:0;overflow:hidden;height:25px}.cherry-floatmenu .cherry-toolbar-button .ch-icon{color:#aaa;font-size:12px}.cherry-floatmenu .cherry-toolbar-button:hover{background:rgba(0,0,0,.05)}.cherry-floatmenu .cherry-toolbar-button:hover .ch-icon{color:#3f4a56}.cherry-editor{position:relative;padding-top:5px;padding-right:5px;width:50%;box-sizing:border-box;overflow:hidden}.cherry-editor.cherry-editor--full{width:100%;padding-right:0}.cherry-editor.cherry-editor--hidden{display:none}.cherry-editor-writing-style--focus::before{content:"";display:block;width:100%;position:absolute;top:0;background:linear-gradient(to bottom, rgba(0, 0, 0, 0.0235294118), rgba(0, 0, 0, 0.2));pointer-events:none;z-index:11}.cherry-editor-writing-style--focus::after{content:"";display:block;width:100%;position:absolute;bottom:0;background:linear-gradient(to top, rgba(0, 0, 0, 0.0235294118), rgba(0, 0, 0, 0.2));pointer-events:none;z-index:11}.cherry-editor-writing-style--typewriter .CodeMirror-lines{position:relative}.cherry-editor-writing-style--typewriter .CodeMirror-lines::before{content:"";display:block}.cherry-editor-writing-style--typewriter .CodeMirror-lines::after{content:"";display:block}.cherry-editor .CodeMirror{font-family:"Helvetica Neue",Arial,"Hiragino Sans GB","STHeiti","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;background:#fff;color:#3f4a56}.cherry-editor .CodeMirror textarea{font-size:27px}.cherry-editor .CodeMirror-lines{padding:15px 34px}.cherry-editor .CodeMirror-lines .long-text,.cherry-editor .CodeMirror-lines .drawio,.cherry-editor .CodeMirror-lines .base64{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:80px;white-space:nowrap;vertical-align:bottom;color:#8b008b !important;font-size:12px !important}.cherry-editor .cm-s-default .cm-header{color:#3f4a56}.cherry-editor .cm-s-default .cm-string{color:#3f4a56}.cherry-editor .cm-s-default .cm-comment{color:#3582fb;font-family:"Menlo","Liberation Mono","Consolas","DejaVu Sans Mono","Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:.9em}.cherry-editor .cm-s-default .cm-whitespace,.cherry-editor .cm-tab{font-family:"Menlo","Liberation Mono","Consolas","DejaVu Sans Mono","Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:.9em}.cherry-editor .cm-s-default .cm-quote{color:#3582fb}.cherry-editor .cm-s-default .cm-link{color:#3582fb}.cherry-editor .cm-s-default .cm-url{background:#d7e6fe;font-family:"Menlo","Liberation Mono","Consolas","DejaVu Sans Mono","Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:.9em}.cherry-editor .cm-s-default .cm-variable-2{color:#3f4a56}.cherry-editor .cm-s-default .cm-variable-3{color:#3f4a56}.cherry-editor .cm-s-default .cm-keyword{color:#3f4a56}.cherry-editor .cm-s-default .cm-fullWidth{color:#d71616;z-index:3;cursor:pointer}.cherry-drag{width:15px;cursor:ew-resize;position:absolute;z-index:12;background:rgba(0,0,0,0)}.cherry-drag.cherry-drag--show{width:5px;display:block;background:#dfe6ee}.cherry-drag.cherry-drag--hidden{display:none}.cherry-editor-mask{z-index:10;position:absolute;display:none;background:rgba(0,0,0,.2)}.cherry-editor-mask.cherry-editor-mask--show{display:block}.cherry-previewer-mask{z-index:10;position:absolute;display:none;background:rgba(0,0,0,.4)}.cherry-previewer-mask.cherry-previewer-mask--show{display:block}.cherry-previewer-codeBlock-click-handler{position:absolute;z-index:1}.cherry-mask-code-block{width:100%;padding-top:50px;display:none;background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), to(#fff));background-image:linear-gradient(-180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);text-align:center;position:absolute;left:0;right:0;bottom:.5em;z-index:10}.cherry-mask-code-block .expand-btn{width:25px;height:25px;border:1px solid rgba(255,255,255,0);cursor:pointer;border-radius:5px;transition:all .3s;z-index:12;color:#3582fb;background-color:#d7e6fe;display:inline-block}.cherry-mask-code-block .expand-btn:hover{color:#eee;background-color:#3582fb;border-color:#eee}.cherry-code-unExpand pre{height:240px;overflow:hidden !important}.cherry-code-unExpand .cherry-mask-code-block{display:inline-block}.cherry-previewer-codeBlock-hover-handler{z-index:0;position:absolute;pointer-events:none}.cherry-previewer-codeBlock-hover-handler *{pointer-events:all}.cherry-previewer-codeBlock-hover-handler .cherry-code-block-custom-btn,.cherry-previewer-codeBlock-hover-handler .cherry-copy-code-block,.cherry-previewer-codeBlock-hover-handler .cherry-unExpand-code-block,.cherry-previewer-codeBlock-hover-handler .cherry-edit-code-block{position:relative;width:25px;text-align:center;height:25px;border:1px solid #3582fb;cursor:pointer;float:right;top:15px;border-radius:5px;transition:all .3s;z-index:2;color:#3582fb;background-color:#eee;border-color:#3582fb}.cherry-previewer-codeBlock-hover-handler .cherry-code-block-custom-btn{width:auto}.cherry-previewer-codeBlock-hover-handler .cherry-expand-code-block{position:absolute;width:25px;text-align:center;height:25px;border:1px solid #3582fb;cursor:pointer;float:right;border-radius:5px;margin-left:-27px;transition:all .3s;z-index:2;color:#3582fb;background-color:#eee;border-color:#3582fb}.cherry-previewer-codeBlock-hover-handler .cherry-expand-code-block{top:45px;right:10px}.cherry-previewer-codeBlock-hover-handler .cherry-unExpand-code-block{z-index:12}.cherry-previewer-codeBlock-hover-handler .cherry-unExpand-code-block.hidden{display:none}.cherry-previewer-codeBlock-hover-handler .cherry-code-block-custom-btn:hover,.cherry-previewer-codeBlock-hover-handler .cherry-copy-code-block:hover,.cherry-previewer-codeBlock-hover-handler .cherry-expand-code-block:hover,.cherry-previewer-codeBlock-hover-handler .cherry-unExpand-code-block:hover,.cherry-previewer-codeBlock-hover-handler .cherry-edit-code-block:hover{color:#eee;background-color:#3582fb;border-color:#eee}.cherry-previewer-codeBlock-hover-handler .cherry-code-preview-lang-select{position:absolute;transform:translate(2px, -50%)}.float-previewer-wrap{position:fixed;right:0;top:0;z-index:100;border-radius:12px;overflow:hidden;box-shadow:0 0 60px rgba(0,0,0,.1);resize:both;min-width:430px;min-height:300px}.float-previewer-wrap.float-previewer-dragging{box-shadow:0 0 60px rgba(0,0,0,.3)}.float-previewer-wrap.float-previewer-dragging .float-previewer-header{cursor:grabbing;background:#ace4ff}.float-previewer-wrap .float-previewer-header{z-index:999999;height:40px;border-bottom:1px solid #ebedee;background:#caecfd;display:flex;align-items:center;justify-content:space-between;padding:0 20px;cursor:grab}.float-previewer-wrap .float-previewer-header .float-previewer-title{user-select:none;font-size:16px;color:#333;font-weight:bold}.float-previewer-wrap .cherry-previewer{border-left:none}.cherry-previewer{padding:20px 45px 20px 20px;border-left:2px solid #ebedee;width:50%;box-sizing:border-box;background-color:#fff;min-height:auto;overflow-y:auto;-webkit-print-color-adjust:exact}.cherry-previewer .cherry-mobile-previewer-content{width:375px;height:100%;margin:0 auto;padding:25px 30px;overflow-y:scroll;box-shadow:0 0 60px rgba(0,0,0,.1);box-sizing:border-box}.cherry-previewer.cherry-previewer--hidden{width:0;display:none}.cherry-previewer.cherry-previewer--full{width:100%}.cherry-previewer .cherry-list__upper-roman{list-style:upper-roman}.cherry-previewer .cherry-list__lower-greek{list-style:lower-greek}.cherry-previewer .cherry-list__lower-alpha{list-style:lower-alpha}.cherry-previewer .cherry-list__cjk-ideographic{list-style:cjk-ideographic}.cherry-previewer .cherry-list__circle{list-style:circle}.cherry-previewer .cherry-list__square{list-style:square}[data-code-block-theme=default] .cherry-previewer .cherry-code-block-custom-btn,[data-code-block-theme=default] .cherry-previewer .cherry-copy-code-block,[data-code-block-theme=default] .cherry-previewer .cherry-expand-code-block,[data-code-block-theme=default] .cherry-previewer .cherry-unExpand-code-block,[data-code-block-theme=default] .cherry-previewer .cherry-edit-code-block,[data-code-block-theme=funky] .cherry-previewer .cherry-code-block-custom-btn,[data-code-block-theme=funky] .cherry-previewer .cherry-copy-code-block,[data-code-block-theme=funky] .cherry-previewer .cherry-expand-code-block,[data-code-block-theme=funky] .cherry-previewer .cherry-unExpand-code-block,[data-code-block-theme=funky] .cherry-previewer .cherry-edit-code-block,[data-code-block-theme=solarized-light] .cherry-previewer .cherry-code-block-custom-btn,[data-code-block-theme=solarized-light] .cherry-previewer .cherry-copy-code-block,[data-code-block-theme=solarized-light] .cherry-previewer .cherry-expand-code-block,[data-code-block-theme=solarized-light] .cherry-previewer .cherry-unExpand-code-block,[data-code-block-theme=solarized-light] .cherry-previewer .cherry-edit-code-block,[data-code-block-theme=coy] .cherry-previewer .cherry-code-block-custom-btn,[data-code-block-theme=coy] .cherry-previewer .cherry-copy-code-block,[data-code-block-theme=coy] .cherry-previewer .cherry-expand-code-block,[data-code-block-theme=coy] .cherry-previewer .cherry-unExpand-code-block,[data-code-block-theme=coy] .cherry-previewer .cherry-edit-code-block{background-color:#3582fb}@keyframes blink{0%{opacity:1}50%{opacity:0}100%{opacity:1}}.cherry-previewer .cherry-flow-session-cursor{background-color:rgba(53,130,251,.5333333333);padding:0 2.5px;animation:blink 1s infinite}.cherry-color-wrap{display:none;position:fixed;width:auto;padding:5px 10px;z-index:6;background:#fff;box-shadow:0 0 10px rgba(128,145,165,.2)}.cherry-color-wrap h3{font-size:12px;margin:0px;font-weight:400}[data-toolbar-theme=dark] .cherry-color-wrap h3{color:#d7e6fe}.cherry-color-wrap .cherry-color-text{float:left;width:128px;margin:0 8px 0 5px}.cherry-color-wrap .cherry-color-bg{float:left;width:128px;margin-right:5px}.cherry-color-wrap .cherry-color-item{float:left;width:14px;height:14px;border:1px solid #fff;cursor:pointer}.cherry-color-wrap .cherry-color-item:hover{border:1px solid #000}.Cherry-Math svg{max-width:100%}.cherry-suggester-panel{display:none;position:absolute;left:0;top:0;background:#fff;border-radius:2px;max-height:500px;box-shadow:0 2px 8px 1px rgba(0,0,0,.2);overflow-x:hidden;overflow-y:auto}.cherry-suggester-panel .cherry-suggester-panel__item{border:none;white-space:nowrap;min-width:50px;padding:5px 13px;color:#333;display:block;cursor:pointer}.cherry-suggester-panel .cherry-suggester-panel__item.cherry-suggester-panel__item--selected{background-color:#f2f2f5;text-decoration:none;color:#eb7350}.cherry-suggester-panel .cherry-suggester-panel__item>i{display:inline-block;transform:translateY(2px);margin-right:8px}.cherry-suggestion{background-color:#ebf3ff;color:#3582fb;padding:1px 4px;border-radius:3px;cursor:pointer}.cherry-flex-toc{z-index:11;position:absolute;width:160px;height:calc(100% - 220px);max-height:600px;right:0;top:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:rgba(255,255,255,.2);margin-right:8px;box-sizing:border-box;user-select:none;box-shadow:0px 5px 11px rgba(51,51,51,.2);border-radius:10px;transition:all .3s}.cherry-flex-toc.cherry-flex-toc__fixed{position:fixed}.cherry-flex-toc:hover{background-color:#fff;width:260px}.cherry-flex-toc .cherry-toc-head{border-bottom:1px dashed rgba(51,51,51,.2);padding:5px}.cherry-flex-toc .cherry-toc-head .cherry-toc-title{font-size:16px;font-weight:bold;padding-left:5px}.cherry-flex-toc .cherry-toc-head .ch-icon-chevronsLeft{display:none}.cherry-flex-toc .cherry-toc-head .ch-icon-chevronsRight,.cherry-flex-toc .cherry-toc-head .ch-icon-chevronsLeft{padding:5px;position:absolute;right:0;top:0}.cherry-flex-toc .cherry-toc-head i{cursor:pointer;padding:5px 5px 0}.cherry-flex-toc .cherry-toc-head i:hover{color:#3582fb}.cherry-flex-toc .cherry-toc-list{overflow-y:auto;height:calc(100% - 40px);overflow-x:hidden;width:100%;padding-bottom:10px}.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a{display:block;text-decoration:none;color:#000;border-left:5px solid rgba(51,51,51,.2);height:28px;line-height:28px;transition:all .3s;padding-left:10px;overflow:hidden;word-break:break-all;text-overflow:ellipsis;cursor:pointer}.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a.current{border-left-color:#3582fb;color:#3582fb}.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a:hover{border-left-color:rgba(53,130,251,.6666666667);color:rgba(53,130,251,.6666666667)}.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__1{font-weight:bold}.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__2{padding-left:20px}.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__3{padding-left:40px}.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__4{padding-left:60px}.cherry-flex-toc .cherry-toc-list .cherry-toc-one-a__5{padding-left:80px}.cherry-flex-toc.cherry-flex-toc__pure{width:30px;height:calc(100% - 200px);max-height:600px;background:rgba(255,255,255,0);box-shadow:none;border-radius:0}.cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head{height:25px;border-bottom:1px dashed rgba(51,51,51,0)}.cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head .cherry-toc-title{display:none}.cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head .ch-icon-chevronsRight{display:none}.cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head .ch-icon-chevronsLeft{display:inline}.cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-list{padding-left:7px}.cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-list .cherry-toc-one-a{overflow:hidden;width:0;margin-bottom:3px;height:5px;border-left-width:18px}.cherry-flex-toc.auto-num .cherry-toc-list{counter-reset:toclevel1}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__1{counter-reset:toclevel2}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__2{counter-reset:toclevel3}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__3{counter-reset:toclevel4}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__4{counter-reset:toclevel5}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__5{counter-reset:toclevel6}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__1:before{counter-increment:toclevel1;content:counter(toclevel1) ". "}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__2:before{counter-increment:toclevel2;content:counter(toclevel1) "." counter(toclevel2) ". "}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__3:before{counter-increment:toclevel3;content:counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) ". "}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__4:before{counter-increment:toclevel4;content:counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) "." counter(toclevel4) ". "}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__5:before{counter-increment:toclevel5;content:counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) "." counter(toclevel4) "." counter(toclevel5) ". "}.cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__6:before{counter-increment:toclevel5;content:counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) "." counter(toclevel4) "." counter(toclevel5) "." counter(toclevel6) ". "}.cherry-markdown.theme__default ul.cherry-list__upper-roman{list-style:upper-roman}.cherry-markdown.theme__default ul.cherry-list__lower-alpha{list-style:lower-alpha}.cherry-markdown.theme__default ul.cherry-list__lower-greek{list-style:lower-greek}.cherry-markdown.theme__default ul.cherry-list__cjk-ideographic{list-style:cjk-ideographic}.cherry-markdown.theme__default ul.cherry-list__circle{list-style:circle}.cherry-markdown.theme__default ul.cherry-list__square{list-style:square}.cherry.theme__dark .cherry-toolbar,.cherry.theme__dark .cherry-floatmenu,.cherry.theme__dark .cherry-bubble,.cherry.theme__dark .cherry-sidebar{background:#3c3c3c;border-color:#3c3c3c}.cherry.theme__dark .cherry-toolbar .cherry-toolbar-button,.cherry.theme__dark .cherry-floatmenu .cherry-toolbar-button,.cherry.theme__dark .cherry-bubble .cherry-toolbar-button,.cherry.theme__dark .cherry-sidebar .cherry-toolbar-button{color:#d7e6fe}.cherry.theme__dark .cherry-toolbar .cherry-toolbar-button:hover,.cherry.theme__dark .cherry-floatmenu .cherry-toolbar-button:hover,.cherry.theme__dark .cherry-bubble .cherry-toolbar-button:hover,.cherry.theme__dark .cherry-sidebar .cherry-toolbar-button:hover{background-color:#454646;color:#fff !important;border-color:#3c3c3c}.cherry.theme__dark .cherry-toolbar .cherry-toolbar-button:hover i,.cherry.theme__dark .cherry-floatmenu .cherry-toolbar-button:hover i,.cherry.theme__dark .cherry-bubble .cherry-toolbar-button:hover i,.cherry.theme__dark .cherry-sidebar .cherry-toolbar-button:hover i{color:#fff !important}.cherry.theme__dark .cherry-dropdown{background:#3c3c3c}.cherry.theme__dark .cherry-dropdown .cherry-dropdown-item{color:#d7e6fe}.cherry.theme__dark .cherry-dropdown .cherry-dropdown-item__selected{background-color:#454646;color:#fff}.cherry.theme__dark .cherry-dropdown .cherry-dropdown-item:hover{background-color:#454646;color:#fff}.cherry.theme__dark .cherry-dropdown.cherry-color-wrap h3{color:#d7e6fe}.cherry.theme__dark .cherry-dropdown.cherry-color-wrap .cherry-color-item{border-color:#454646}.cherry.theme__dark .cherry-dropdown.cherry-color-wrap .cherry-color-item:hover{border-color:#f78553}.cherry.theme__dark .cherry-dropdown .cherry-insert-table-menu-item{border-color:#454646}.cherry.theme__dark .cherry-bubble .cherry-bubble-bottom{border-top-color:#3c3c3c}.cherry.theme__dark .cherry-bubble .cherry-bubble-top{border-bottom-color:#3c3c3c}.cherry.theme__dark .cherry-editor{background-color:#252526}.cherry.theme__dark .cherry-editor .CodeMirror{background-color:#252526}.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-cursor{border-left:1px solid #fff}.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll span,.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-variable-2,.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-string,.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-strong,.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-em,.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-meta{color:#c8c8c8}.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-image-marker,.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-quote,.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-header,.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-atom{color:#f78553}.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{background-color:#513838}.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-comment,.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{color:#ffcb6b}.cherry.theme__dark .cherry-editor .CodeMirror .CodeMirror-selected{background-color:#454646}.cherry.theme__dark .cherry-sidebar{box-shadow:0 0 10px rgba(128,145,165,.2)}.cherry.theme__dark .cherry-previewer{background-color:#333}.cherry.theme__dark .cherry-previewer .cherry-mobile-previewer-content{background-color:#252526}.cherry.theme__dark .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea{background-color:#252526;color:#c8c8c8;outline-color:#f78553}.cherry.theme__dark .cherry-flex-toc:hover{background-color:#d0cece;width:260px}.cherry.theme__dark .cherry-flex-toc .cherry-toc-head i:hover{color:#f78553}.cherry.theme__dark .cherry-flex-toc .cherry-toc-list .cherry-toc-one-a{border-left-color:rgba(247,133,83,.3)}.cherry.theme__dark .cherry-flex-toc .cherry-toc-list .cherry-toc-one-a.current{border-left-color:#ff6421;color:#ff6421}.cherry.theme__dark .cherry-flex-toc .cherry-toc-list .cherry-toc-one-a:hover{border-left-color:#f7a20e;color:#ff6421}.cherry.theme__dark .cherry-flex-toc.cherry-flex-toc__pure{width:30px;height:calc(100% - 200px);max-height:600px;background:rgba(255,255,255,0);box-shadow:none;border-radius:0}.cherry.theme__dark .cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head{height:25px;border-bottom:1px dashed rgba(51,51,51,0)}.cherry.theme__dark .cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head .cherry-toc-title{display:none}.cherry.theme__dark .cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head .ch-icon-chevronsRight{display:none}.cherry.theme__dark .cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-head .ch-icon-chevronsLeft{display:inline;color:#ff6421}.cherry.theme__dark .cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-list{padding-left:7px}.cherry.theme__dark .cherry-flex-toc.cherry-flex-toc__pure .cherry-toc-list .cherry-toc-one-a{overflow:hidden;width:0;margin-bottom:3px;height:5px;border-left-width:18px}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list{counter-reset:toclevel1}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__1{counter-reset:toclevel2}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__2{counter-reset:toclevel3}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__3{counter-reset:toclevel4}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__4{counter-reset:toclevel5}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__5{counter-reset:toclevel6}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__1:before{counter-increment:toclevel1;content:counter(toclevel1) ". "}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__2:before{counter-increment:toclevel2;content:counter(toclevel1) "." counter(toclevel2) ". "}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__3:before{counter-increment:toclevel3;content:counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) ". "}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__4:before{counter-increment:toclevel4;content:counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) "." counter(toclevel4) ". "}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__5:before{counter-increment:toclevel5;content:counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) "." counter(toclevel4) "." counter(toclevel5) ". "}.cherry.theme__dark .cherry-flex-toc.auto-num .cherry-toc-list .cherry-toc-one-a__6:before{counter-increment:toclevel5;content:counter(toclevel1) "." counter(toclevel2) "." counter(toclevel3) "." counter(toclevel4) "." counter(toclevel5) "." counter(toclevel6) ". "}.cherry-markdown.theme__dark{color:#c8c8c8;background-color:#333}.cherry-markdown.theme__dark h1,.cherry-markdown.theme__dark h2,.cherry-markdown.theme__dark h3,.cherry-markdown.theme__dark h4,.cherry-markdown.theme__dark h5{color:#f78553}.cherry-markdown.theme__dark ul.cherry-list__upper-roman{list-style:upper-roman}.cherry-markdown.theme__dark ul.cherry-list__lower-alpha{list-style:lower-alpha}.cherry-markdown.theme__dark ul.cherry-list__lower-greek{list-style:lower-greek}.cherry-markdown.theme__dark ul.cherry-list__cjk-ideographic{list-style:cjk-ideographic}.cherry-markdown.theme__dark ul.cherry-list__circle{list-style:circle}.cherry-markdown.theme__dark ul.cherry-list__square{list-style:square}.cherry-markdown.theme__dark ul.cherry-list__default{background-color:#333}.cherry-markdown.theme__dark blockquote{color:#c8c8c8}.cherry-markdown.theme__dark a{text-decoration:none;color:#ffcb6b}.cherry-markdown.theme__dark a:hover{color:#f78553}.cherry-markdown.theme__dark hr{border-color:dimgray}.cherry-markdown.theme__dark p code,.cherry-markdown.theme__dark li code{background-color:#513838;color:#ffcb6b;border:1px solid dimgray}.cherry-markdown.theme__dark table,.cherry-markdown.theme__dark .cherry-table{color:#c8c8c8}.cherry-markdown.theme__dark table th,.cherry-markdown.theme__dark .cherry-table th{background-color:#513838}.cherry-markdown.theme__dark table tr,.cherry-markdown.theme__dark table th,.cherry-markdown.theme__dark table td,.cherry-markdown.theme__dark .cherry-table tr,.cherry-markdown.theme__dark .cherry-table th,.cherry-markdown.theme__dark .cherry-table td{border-color:dimgray}.cherry-markdown.theme__dark .footnote{border-color:dimgray}.cherry-markdown.theme__dark .footnote .footnote-title{background-color:#513838}.cherry-markdown.theme__dark .footnote .one-footnote{color:#c8c8c8;border-color:dimgray}.cherry-markdown.theme__dark .footnote .one-footnote a.footnote-ref{padding:5px}.cherry-markdown.theme__dark .toc{border:1px solid dimgray;margin-top:15px;margin-bottom:15px;margin-right:15px}.cherry-markdown.theme__dark .toc .toc-title{padding:15px;margin-bottom:15px;border-bottom:1px solid dimgray}.cherry-markdown.theme__dark .toc .toc-li{border:none;padding:0 20px}.cherry-markdown.theme__dark .toc .toc-li a{color:#c8c8c8}.cherry-markdown.theme__dark .toc .toc-li a:hover{color:#f78553}.cherry-markdown.theme__dark figure svg path,.cherry-markdown.theme__dark figure svg rect,.cherry-markdown.theme__dark figure svg line{stroke:#ffcb6b !important}.cherry-markdown.theme__dark figure svg text{fill:#faa000 !important;stroke:none !important}.cherry-markdown.theme__dark figure svg tspan{fill:#faa000 !important}.cherry-markdown.theme__dark figure svg circle{fill:#ececff !important}.cherry-markdown.theme__dark figure svg circle.state-start{fill:#faa000 !important}@keyframes changeBgColorDark{0%{background-color:#4e4c4c}60%{background-color:#4e4c4c}100%{background-color:#333}}.cherry-markdown.theme__dark .cherry-highlight-line{animation:changeBgColorDark 3s}.cherry.theme__light .cherry-toolbar,.cherry.theme__light .cherry-floatmenu,.cherry.theme__light .cherry-bubble,.cherry.theme__light .cherry-sidebar{background:#fff;border-color:#fff}.cherry.theme__light .cherry-toolbar .cherry-toolbar-button,.cherry.theme__light .cherry-floatmenu .cherry-toolbar-button,.cherry.theme__light .cherry-bubble .cherry-toolbar-button,.cherry.theme__light .cherry-sidebar .cherry-toolbar-button{color:#3f4a56}.cherry.theme__light .cherry-toolbar .cherry-toolbar-button:hover,.cherry.theme__light .cherry-floatmenu .cherry-toolbar-button:hover,.cherry.theme__light .cherry-bubble .cherry-toolbar-button:hover,.cherry.theme__light .cherry-sidebar .cherry-toolbar-button:hover{background-color:#ebf3ff;color:#5d9bfc !important;border-color:#fff}.cherry.theme__light .cherry-toolbar .cherry-toolbar-button:hover i,.cherry.theme__light .cherry-floatmenu .cherry-toolbar-button:hover i,.cherry.theme__light .cherry-bubble .cherry-toolbar-button:hover i,.cherry.theme__light .cherry-sidebar .cherry-toolbar-button:hover i{color:#5d9bfc !important}.cherry.theme__light .cherry-dropdown{background:#fff}.cherry.theme__light .cherry-dropdown .cherry-dropdown-item{color:#3f4a56}.cherry.theme__light .cherry-dropdown .cherry-dropdown-item__selected{background-color:#ebf3ff;color:#5d9bfc}.cherry.theme__light .cherry-dropdown .cherry-dropdown-item:hover{background-color:#ebf3ff;color:#5d9bfc}.cherry.theme__light .cherry-dropdown.cherry-color-wrap h3{color:#3f4a56}.cherry.theme__light .cherry-dropdown.cherry-color-wrap .cherry-color-item{border-color:#ebf3ff}.cherry.theme__light .cherry-dropdown.cherry-color-wrap .cherry-color-item:hover{border-color:#f78553}.cherry.theme__light .cherry-dropdown .cherry-insert-table-menu-item{border-color:#ebf3ff}.cherry.theme__light .cherry-bubble .cherry-bubble-bottom{border-top-color:#fff}.cherry.theme__light .cherry-bubble .cherry-bubble-top{border-bottom-color:#fff}.cherry.theme__light .cherry-editor{background-color:#fff}.cherry.theme__light .cherry-editor .CodeMirror{background-color:#fff}.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-cursor{border-left:1px solid #000}.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll span,.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-variable-2,.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-string,.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-strong,.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-em,.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-meta{color:#3f4a56}.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-image-marker,.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-quote,.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-header,.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-atom{color:#228be6}.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{background-color:#d7e6fe}.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-comment,.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{color:#4dabf7}.cherry.theme__light .cherry-editor .CodeMirror .CodeMirror-selected{background-color:#ebf3ff}.cherry.theme__light .cherry-sidebar{box-shadow:0 0 10px rgba(128,145,165,.2)}.cherry.theme__light .cherry-previewer{background-color:#fff}.cherry.theme__light .cherry-previewer .cherry-mobile-previewer-content{background-color:#fff}.cherry.theme__light .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea{background-color:#fff;color:#3f4a56;outline-color:#228be6}.cherry-markdown.theme__light{color:#3f4a56;background-color:#fff}.cherry-markdown.theme__light h1,.cherry-markdown.theme__light h2,.cherry-markdown.theme__light h3,.cherry-markdown.theme__light h4,.cherry-markdown.theme__light h5{color:#228be6}.cherry-markdown.theme__light ul.cherry-list__upper-roman{list-style:upper-roman}.cherry-markdown.theme__light ul.cherry-list__lower-alpha{list-style:lower-alpha}.cherry-markdown.theme__light ul.cherry-list__lower-greek{list-style:lower-greek}.cherry-markdown.theme__light ul.cherry-list__cjk-ideographic{list-style:cjk-ideographic}.cherry-markdown.theme__light ul.cherry-list__circle{list-style:circle}.cherry-markdown.theme__light ul.cherry-list__square{list-style:square}.cherry-markdown.theme__light blockquote{color:#3f4a56;background-color:#e7f5ff;border-color:#1971c2}.cherry-markdown.theme__light a{text-decoration:none;color:#4dabf7}.cherry-markdown.theme__light a:hover{text-decoration:underline;color:#228be6}.cherry-markdown.theme__light hr{border-color:#1971c2}.cherry-markdown.theme__light p code,.cherry-markdown.theme__light li code{background-color:#d7e6fe;color:#4dabf7;border:1px solid #1971c2}.cherry-markdown.theme__light table,.cherry-markdown.theme__light .cherry-table{color:#3f4a56}.cherry-markdown.theme__light table th,.cherry-markdown.theme__light .cherry-table th{background-color:#d7e6fe}.cherry-markdown.theme__light table tr,.cherry-markdown.theme__light table th,.cherry-markdown.theme__light table td,.cherry-markdown.theme__light .cherry-table tr,.cherry-markdown.theme__light .cherry-table th,.cherry-markdown.theme__light .cherry-table td{border-color:#1971c2}.cherry-markdown.theme__light .footnote{border-color:#1971c2}.cherry-markdown.theme__light .footnote .footnote-title{background-color:#d7e6fe}.cherry-markdown.theme__light .footnote .one-footnote{color:#3f4a56;border-color:#1971c2}.cherry-markdown.theme__light .footnote .one-footnote a.footnote-ref{padding:5px}.cherry.theme__green .cherry-toolbar,.cherry.theme__green .cherry-floatmenu,.cherry.theme__green .cherry-bubble,.cherry.theme__green .cherry-sidebar{background:#fff;border-color:#fff}.cherry.theme__green .cherry-toolbar .cherry-toolbar-button,.cherry.theme__green .cherry-floatmenu .cherry-toolbar-button,.cherry.theme__green .cherry-bubble .cherry-toolbar-button,.cherry.theme__green .cherry-sidebar .cherry-toolbar-button{color:#2b8a3e}.cherry.theme__green .cherry-toolbar .cherry-toolbar-button i,.cherry.theme__green .cherry-floatmenu .cherry-toolbar-button i,.cherry.theme__green .cherry-bubble .cherry-toolbar-button i,.cherry.theme__green .cherry-sidebar .cherry-toolbar-button i{color:#2b8a3e}.cherry.theme__green .cherry-toolbar .cherry-toolbar-button:hover,.cherry.theme__green .cherry-floatmenu .cherry-toolbar-button:hover,.cherry.theme__green .cherry-bubble .cherry-toolbar-button:hover,.cherry.theme__green .cherry-sidebar .cherry-toolbar-button:hover{background-color:#51cf66;color:#ebfbee !important;border-color:#fff}.cherry.theme__green .cherry-toolbar .cherry-toolbar-button:hover i,.cherry.theme__green .cherry-floatmenu .cherry-toolbar-button:hover i,.cherry.theme__green .cherry-bubble .cherry-toolbar-button:hover i,.cherry.theme__green .cherry-sidebar .cherry-toolbar-button:hover i{color:#ebfbee !important}.cherry.theme__green .cherry-dropdown{background:#fff}.cherry.theme__green .cherry-dropdown .cherry-dropdown-item{color:#2b8a3e}.cherry.theme__green .cherry-dropdown .cherry-dropdown-item__selected{background-color:#51cf66;color:#ebfbee}.cherry.theme__green .cherry-dropdown .cherry-dropdown-item:hover{background-color:#51cf66;color:#ebfbee}.cherry.theme__green .cherry-dropdown.cherry-color-wrap h3{color:#2b8a3e}.cherry.theme__green .cherry-dropdown.cherry-color-wrap .cherry-color-item{border-color:#51cf66}.cherry.theme__green .cherry-dropdown.cherry-color-wrap .cherry-color-item:hover{border-color:#2b8a3e}.cherry.theme__green .cherry-dropdown .cherry-insert-table-menu-item{border-color:#51cf66}.cherry.theme__green .cherry-bubble .cherry-bubble-bottom{border-top-color:#fff}.cherry.theme__green .cherry-bubble .cherry-bubble-top{border-bottom-color:#fff}.cherry.theme__green .cherry-editor{background-color:#fff}.cherry.theme__green .cherry-editor .CodeMirror{background-color:#fff}.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-cursor{border-left:1px solid #2b8a3e}.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll span,.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-variable-2,.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-string,.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-strong,.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-em,.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-meta{color:#2b8a3e}.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-image-marker,.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-quote,.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-header,.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-atom{color:#37b24d}.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{background-color:#ebfbee}.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-comment,.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{color:#40c057}.cherry.theme__green .cherry-editor .CodeMirror .CodeMirror-selected{background-color:#b2f2bb}.cherry.theme__green .cherry-sidebar{box-shadow:0 0 10px rgba(128,145,165,.2)}.cherry.theme__green .cherry-previewer{background-color:#ebfbee}.cherry.theme__green .cherry-previewer .cherry-mobile-previewer-content{background-color:#fff}.cherry.theme__green .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea{background-color:#fff;color:#2b8a3e;outline-color:#37b24d}.cherry-markdown.theme__green{color:#2b8a3e;background-color:#ebfbee}.cherry-markdown.theme__green h1,.cherry-markdown.theme__green h2,.cherry-markdown.theme__green h3,.cherry-markdown.theme__green h4,.cherry-markdown.theme__green h5{color:#37b24d;text-align:center;margin-bottom:35px}.cherry-markdown.theme__green ul.cherry-list__upper-roman{list-style:upper-roman}.cherry-markdown.theme__green ul.cherry-list__lower-greek{list-style:lower-greek}.cherry-markdown.theme__green ul.cherry-list__lower-alpha{list-style:lower-alpha}.cherry-markdown.theme__green ul.cherry-list__cjk-ideographic{list-style:cjk-ideographic}.cherry-markdown.theme__green ul.cherry-list__circle{list-style:circle}.cherry-markdown.theme__green ul.cherry-list__square{list-style:square}.cherry-markdown.theme__green blockquote{color:#2b8a3e;background-color:#d3f9d8;border-color:#2f9e44}.cherry-markdown.theme__green a{text-decoration:none;color:#40c057}.cherry-markdown.theme__green a:hover{text-decoration:underline;color:#37b24d}.cherry-markdown.theme__green hr{border-color:#2f9e44}.cherry-markdown.theme__green p code,.cherry-markdown.theme__green li code{background-color:#d3f9d8;color:#40c057;border:1px solid #2f9e44}.cherry-markdown.theme__green table,.cherry-markdown.theme__green .cherry-table{color:#2b8a3e}.cherry-markdown.theme__green table th,.cherry-markdown.theme__green .cherry-table th{background-color:#d3f9d8}.cherry-markdown.theme__green table tr,.cherry-markdown.theme__green table th,.cherry-markdown.theme__green table td,.cherry-markdown.theme__green .cherry-table tr,.cherry-markdown.theme__green .cherry-table th,.cherry-markdown.theme__green .cherry-table td{border-color:#2f9e44}.cherry-markdown.theme__green .footnote{border-color:#2f9e44}.cherry-markdown.theme__green .footnote .footnote-title{background-color:#d3f9d8}.cherry-markdown.theme__green .footnote .one-footnote{color:#2b8a3e;border-color:#2f9e44}.cherry-markdown.theme__green .footnote .one-footnote a.footnote-ref{padding:5px}.cherry-markdown.theme__green .toc{border-bottom:1px solid #2f9e44;padding-bottom:15px;margin-bottom:30px}.cherry-markdown.theme__green .toc .toc-title{text-align:center;padding-bottom:15px;margin-top:30px;margin-bottom:15px;border-bottom:1px solid #2f9e44}.cherry-markdown.theme__green .toc .toc-li{border:none}.cherry-markdown.theme__green .toc .toc-li a{color:#2b8a3e}.cherry-markdown.theme__green .toc .toc-li a:hover{color:#37b24d}.cherry.theme__red .cherry-toolbar,.cherry.theme__red .cherry-floatmenu,.cherry.theme__red .cherry-bubble,.cherry.theme__red .cherry-sidebar{background:#ffdeeb;border-color:#ffdeeb}.cherry.theme__red .cherry-toolbar .cherry-toolbar-button,.cherry.theme__red .cherry-floatmenu .cherry-toolbar-button,.cherry.theme__red .cherry-bubble .cherry-toolbar-button,.cherry.theme__red .cherry-sidebar .cherry-toolbar-button{color:#c2255c}.cherry.theme__red .cherry-toolbar .cherry-toolbar-button i,.cherry.theme__red .cherry-floatmenu .cherry-toolbar-button i,.cherry.theme__red .cherry-bubble .cherry-toolbar-button i,.cherry.theme__red .cherry-sidebar .cherry-toolbar-button i{color:#c2255c}.cherry.theme__red .cherry-toolbar .cherry-toolbar-button:hover,.cherry.theme__red .cherry-floatmenu .cherry-toolbar-button:hover,.cherry.theme__red .cherry-bubble .cherry-toolbar-button:hover,.cherry.theme__red .cherry-sidebar .cherry-toolbar-button:hover{background-color:#f06595;color:#fff0f6 !important;border-color:#ffdeeb}.cherry.theme__red .cherry-toolbar .cherry-toolbar-button:hover i,.cherry.theme__red .cherry-floatmenu .cherry-toolbar-button:hover i,.cherry.theme__red .cherry-bubble .cherry-toolbar-button:hover i,.cherry.theme__red .cherry-sidebar .cherry-toolbar-button:hover i{color:#fff0f6 !important}.cherry.theme__red .cherry-dropdown{background:#ffdeeb}.cherry.theme__red .cherry-dropdown .cherry-dropdown-item{color:#c2255c}.cherry.theme__red .cherry-dropdown .cherry-dropdown-item__selected{background-color:#f06595;color:#fff0f6}.cherry.theme__red .cherry-dropdown .cherry-dropdown-item:hover{background-color:#f06595;color:#fff0f6}.cherry.theme__red .cherry-dropdown.cherry-color-wrap h3{color:#c2255c}.cherry.theme__red .cherry-dropdown.cherry-color-wrap .cherry-color-item{border-color:#f06595}.cherry.theme__red .cherry-dropdown.cherry-color-wrap .cherry-color-item:hover{border-color:#a61e4d}.cherry.theme__red .cherry-dropdown .cherry-insert-table-menu-item{border-color:#f06595}.cherry.theme__red .cherry-bubble .cherry-bubble-bottom{border-top-color:#ffdeeb}.cherry.theme__red .cherry-bubble .cherry-bubble-top{border-bottom-color:#ffdeeb}.cherry.theme__red .cherry-editor{background-color:#fff0f6}.cherry.theme__red .cherry-editor .CodeMirror{background-color:#fff0f6}.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-cursor{border-left:1px solid #a61e4d}.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll span,.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-variable-2,.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-string,.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-strong,.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-em,.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-meta{color:#a61e4d}.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-image-marker,.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-quote,.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-header,.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-atom{color:#d6336c}.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{background-color:#ffdeeb}.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-comment,.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{color:#f06595}.cherry.theme__red .cherry-editor .CodeMirror .CodeMirror-selected{background-color:#fcc2d7}.cherry.theme__red .cherry-sidebar{box-shadow:0 0 10px #fcc2d7}.cherry.theme__red .cherry-previewer{background-color:#fff0f6}.cherry.theme__red .cherry-previewer .cherry-mobile-previewer-content{background-color:#fff0f6}.cherry.theme__red .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea{background-color:#fff0f6;color:#a61e4d;outline-color:#d6336c}.cherry-markdown.theme__red{color:#a61e4d;background-color:#fff0f6}.cherry-markdown.theme__red h1,.cherry-markdown.theme__red h2,.cherry-markdown.theme__red h3,.cherry-markdown.theme__red h4,.cherry-markdown.theme__red h5{color:#d6336c;text-align:center;border-bottom:1px dashed #c2255c;padding-bottom:15px;margin-bottom:25px}.cherry-markdown.theme__red ul.cherry-list__upper-roman{list-style:upper-roman}.cherry-markdown.theme__red ul.cherry-list__lower-greek{list-style:lower-greek}.cherry-markdown.theme__red ul.cherry-list__lower-alpha{list-style:lower-alpha}.cherry-markdown.theme__red ul.cherry-list__cjk-ideographic{list-style:cjk-ideographic}.cherry-markdown.theme__red ul.cherry-list__circle{list-style:circle}.cherry-markdown.theme__red ul.cherry-list__square{list-style:square}.cherry-markdown.theme__red blockquote{color:#a61e4d;background-color:#ffdeeb;border-color:#c2255c}.cherry-markdown.theme__red a{text-decoration:none;color:#f06595}.cherry-markdown.theme__red a:hover{text-decoration:underline;color:#d6336c}.cherry-markdown.theme__red hr{border-color:#c2255c}.cherry-markdown.theme__red p code,.cherry-markdown.theme__red li code{background-color:#ffdeeb;color:#f06595;border:1px solid #c2255c}.cherry-markdown.theme__red table,.cherry-markdown.theme__red .cherry-table{color:#a61e4d}.cherry-markdown.theme__red table th,.cherry-markdown.theme__red .cherry-table th{background-color:#ffdeeb}.cherry-markdown.theme__red table tr,.cherry-markdown.theme__red table th,.cherry-markdown.theme__red table td,.cherry-markdown.theme__red .cherry-table tr,.cherry-markdown.theme__red .cherry-table th,.cherry-markdown.theme__red .cherry-table td{border-color:#c2255c}.cherry-markdown.theme__red .footnote{border-color:#c2255c}.cherry-markdown.theme__red .footnote .footnote-title{background-color:#ffdeeb}.cherry-markdown.theme__red .footnote .one-footnote{color:#a61e4d;border-color:#c2255c}.cherry-markdown.theme__red .footnote .one-footnote a.footnote-ref{padding:5px}.cherry-markdown.theme__red .toc{border-bottom:1px solid #c2255c;padding-bottom:15px;margin-bottom:30px}.cherry-markdown.theme__red .toc .toc-title{text-align:center;padding-bottom:15px;margin-top:30px;margin-bottom:15px;border-bottom:1px solid #c2255c}.cherry-markdown.theme__red .toc .toc-li{border:none}.cherry-markdown.theme__red .toc .toc-li a{color:#a61e4d}.cherry-markdown.theme__red .toc .toc-li a:hover{color:#d6336c}.cherry.theme__violet .cherry-toolbar,.cherry.theme__violet .cherry-floatmenu,.cherry.theme__violet .cherry-bubble,.cherry.theme__violet .cherry-sidebar{background:#fff;border-color:#fff}.cherry.theme__violet .cherry-toolbar .cherry-toolbar-button,.cherry.theme__violet .cherry-floatmenu .cherry-toolbar-button,.cherry.theme__violet .cherry-bubble .cherry-toolbar-button,.cherry.theme__violet .cherry-sidebar .cherry-toolbar-button{color:#5f3dc4}.cherry.theme__violet .cherry-toolbar .cherry-toolbar-button i,.cherry.theme__violet .cherry-floatmenu .cherry-toolbar-button i,.cherry.theme__violet .cherry-bubble .cherry-toolbar-button i,.cherry.theme__violet .cherry-sidebar .cherry-toolbar-button i{color:#5f3dc4}.cherry.theme__violet .cherry-toolbar .cherry-toolbar-button:hover,.cherry.theme__violet .cherry-floatmenu .cherry-toolbar-button:hover,.cherry.theme__violet .cherry-bubble .cherry-toolbar-button:hover,.cherry.theme__violet .cherry-sidebar .cherry-toolbar-button:hover{background-color:#845ef7;color:#f3f0ff !important;border-color:#fff}.cherry.theme__violet .cherry-toolbar .cherry-toolbar-button:hover i,.cherry.theme__violet .cherry-floatmenu .cherry-toolbar-button:hover i,.cherry.theme__violet .cherry-bubble .cherry-toolbar-button:hover i,.cherry.theme__violet .cherry-sidebar .cherry-toolbar-button:hover i{color:#f3f0ff !important}.cherry.theme__violet .cherry-dropdown{background:#fff}.cherry.theme__violet .cherry-dropdown .cherry-dropdown-item{color:#5f3dc4}.cherry.theme__violet .cherry-dropdown .cherry-dropdown-item__selected{background-color:#845ef7;color:#f3f0ff}.cherry.theme__violet .cherry-dropdown .cherry-dropdown-item:hover{background-color:#845ef7;color:#f3f0ff}.cherry.theme__violet .cherry-dropdown.cherry-color-wrap h3{color:#5f3dc4}.cherry.theme__violet .cherry-dropdown.cherry-color-wrap .cherry-color-item{border-color:#845ef7}.cherry.theme__violet .cherry-dropdown.cherry-color-wrap .cherry-color-item:hover{border-color:#5f3dc4}.cherry.theme__violet .cherry-dropdown .cherry-insert-table-menu-item{border-color:#845ef7}.cherry.theme__violet .cherry-bubble .cherry-bubble-bottom{border-top-color:#fff}.cherry.theme__violet .cherry-bubble .cherry-bubble-top{border-bottom-color:#fff}.cherry.theme__violet .cherry-editor{background-color:#fff}.cherry.theme__violet .cherry-editor .CodeMirror{background-color:#fff}.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-cursor{border-left:1px solid #5f3dc4}.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll span,.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-variable-2,.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-string,.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-strong,.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-em,.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-meta{color:#5f3dc4}.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-image-marker,.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-quote,.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-header,.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-atom{color:#7048e8}.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{background-color:#f3f0ff}.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-comment,.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{color:#7950f2}.cherry.theme__violet .cherry-editor .CodeMirror .CodeMirror-selected{background-color:#d0bfff}.cherry.theme__violet .cherry-sidebar{box-shadow:0 0 10px rgba(128,145,165,.2)}.cherry.theme__violet .cherry-previewer{background-color:#fff}.cherry.theme__violet .cherry-previewer .cherry-mobile-previewer-content{background-color:#fff}.cherry.theme__violet .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea{background-color:#fff;color:#5f3dc4;outline-color:#7048e8}.cherry-markdown.theme__violet{color:#5f3dc4;background-color:#fff}.cherry-markdown.theme__violet h1,.cherry-markdown.theme__violet h2,.cherry-markdown.theme__violet h3,.cherry-markdown.theme__violet h4,.cherry-markdown.theme__violet h5{color:#7048e8;text-align:center;margin-bottom:35px}.cherry-markdown.theme__violet ul.cherry-list__upper-roman{list-style:upper-roman}.cherry-markdown.theme__violet ul.cherry-list__lower-greek{list-style:lower-greek}.cherry-markdown.theme__violet ul.cherry-list__lower-alpha{list-style:lower-alpha}.cherry-markdown.theme__violet ul.cherry-list__cjk-ideographic{list-style:cjk-ideographic}.cherry-markdown.theme__violet ul.cherry-list__circle{list-style:circle}.cherry-markdown.theme__violet ul.cherry-list__square{list-style:square}.cherry-markdown.theme__violet blockquote{color:#5f3dc4;background-color:#e5dbff;border-color:#6741d9}.cherry-markdown.theme__violet a{text-decoration:none;color:#7950f2}.cherry-markdown.theme__violet a:hover{text-decoration:underline;color:#7048e8}.cherry-markdown.theme__violet hr{border-color:#6741d9}.cherry-markdown.theme__violet p code,.cherry-markdown.theme__violet li code{background-color:#e5dbff;color:#7950f2;border:1px solid #6741d9}.cherry-markdown.theme__violet table,.cherry-markdown.theme__violet .cherry-table{color:#5f3dc4}.cherry-markdown.theme__violet table th,.cherry-markdown.theme__violet .cherry-table th{background-color:#e5dbff}.cherry-markdown.theme__violet table tr,.cherry-markdown.theme__violet table th,.cherry-markdown.theme__violet table td,.cherry-markdown.theme__violet .cherry-table tr,.cherry-markdown.theme__violet .cherry-table th,.cherry-markdown.theme__violet .cherry-table td{border-color:#6741d9}.cherry-markdown.theme__violet .footnote{border-color:#6741d9}.cherry-markdown.theme__violet .footnote .footnote-title{background-color:#e5dbff}.cherry-markdown.theme__violet .footnote .one-footnote{color:#5f3dc4;border-color:#6741d9}.cherry-markdown.theme__violet .footnote .one-footnote a.footnote-ref{padding:5px}.cherry-markdown.theme__violet .toc{border-bottom:1px solid #6741d9;padding-bottom:15px;margin-bottom:30px}.cherry-markdown.theme__violet .toc .toc-title{text-align:center;padding-bottom:15px;margin-top:30px;margin-bottom:15px;border-bottom:1px solid #6741d9}.cherry-markdown.theme__violet .toc .toc-li{border:none}.cherry-markdown.theme__violet .toc .toc-li a{color:#5f3dc4}.cherry-markdown.theme__violet .toc .toc-li a:hover{color:#7048e8}.cherry.theme__blue .cherry-toolbar,.cherry.theme__blue .cherry-floatmenu,.cherry.theme__blue .cherry-bubble,.cherry.theme__blue .cherry-sidebar{background:#ede7f6;border-color:#ede7f6;box-shadow:0 0 12px #c5cae9}.cherry.theme__blue .cherry-toolbar .cherry-toolbar-button,.cherry.theme__blue .cherry-floatmenu .cherry-toolbar-button,.cherry.theme__blue .cherry-bubble .cherry-toolbar-button,.cherry.theme__blue .cherry-sidebar .cherry-toolbar-button{color:#3949ab}.cherry.theme__blue .cherry-toolbar .cherry-toolbar-button i,.cherry.theme__blue .cherry-floatmenu .cherry-toolbar-button i,.cherry.theme__blue .cherry-bubble .cherry-toolbar-button i,.cherry.theme__blue .cherry-sidebar .cherry-toolbar-button i{color:#3949ab}.cherry.theme__blue .cherry-toolbar .cherry-toolbar-button:hover,.cherry.theme__blue .cherry-floatmenu .cherry-toolbar-button:hover,.cherry.theme__blue .cherry-bubble .cherry-toolbar-button:hover,.cherry.theme__blue .cherry-sidebar .cherry-toolbar-button:hover{background-color:#b39ddb;color:#edf2ff !important;border-color:#ede7f6}.cherry.theme__blue .cherry-toolbar .cherry-toolbar-button:hover i,.cherry.theme__blue .cherry-floatmenu .cherry-toolbar-button:hover i,.cherry.theme__blue .cherry-bubble .cherry-toolbar-button:hover i,.cherry.theme__blue .cherry-sidebar .cherry-toolbar-button:hover i{color:#edf2ff !important}.cherry.theme__blue .cherry-dropdown{background:#ede7f6}.cherry.theme__blue .cherry-dropdown .cherry-dropdown-item{color:#3949ab}.cherry.theme__blue .cherry-dropdown .cherry-dropdown-item__selected{background-color:#b39ddb;color:#edf2ff}.cherry.theme__blue .cherry-dropdown .cherry-dropdown-item:hover{background-color:#b39ddb;color:#edf2ff}.cherry.theme__blue .cherry-dropdown.cherry-color-wrap h3{color:#3949ab}.cherry.theme__blue .cherry-dropdown.cherry-color-wrap .cherry-color-item{border-color:#b39ddb}.cherry.theme__blue .cherry-dropdown.cherry-color-wrap .cherry-color-item:hover{border-color:#283593}.cherry.theme__blue .cherry-dropdown .cherry-insert-table-menu-item{border-color:#b39ddb}.cherry.theme__blue .cherry-bubble .cherry-bubble-bottom{border-top-color:#ede7f6}.cherry.theme__blue .cherry-bubble .cherry-bubble-top{border-bottom-color:#ede7f6}.cherry.theme__blue .cherry-editor{background-color:rgba(243,240,255,.862745098)}.cherry.theme__blue .cherry-editor .CodeMirror{background-color:rgba(243,240,255,.862745098)}.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-cursor{border-left:1px solid #283593}.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll span,.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-variable-2,.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-string,.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-strong,.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-em,.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-meta{color:#283593}.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-image-marker,.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-quote,.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-header,.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-atom{color:#303f9f}.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{background-color:#ede7f6}.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-comment,.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-scroll .cm-url{color:#8c9eff}.cherry.theme__blue .cherry-editor .CodeMirror .CodeMirror-selected{background-color:#d1c4e9}.cherry.theme__blue .cherry-sidebar{box-shadow:0 0 12px #c5cae9}.cherry.theme__blue .cherry-previewer{background-color:rgba(243,240,255,.862745098)}.cherry.theme__blue .cherry-previewer .cherry-mobile-previewer-content{background-color:rgba(243,240,255,.862745098)}.cherry.theme__blue .cherry-previewer-table-content-handler .cherry-previewer-table-content-handler__input textarea{background-color:rgba(243,240,255,.862745098);color:#283593;outline-color:#303f9f}.cherry-markdown.theme__blue{color:#283593;background-color:rgba(243,240,255,.862745098)}.cherry-markdown.theme__blue h1,.cherry-markdown.theme__blue h2,.cherry-markdown.theme__blue h3,.cherry-markdown.theme__blue h4,.cherry-markdown.theme__blue h5{color:#303f9f;text-align:center;border-bottom:1px dashed #3949ab;padding-bottom:15px;margin-bottom:25px}.cherry-markdown.theme__blue ul.cherry-list__upper-roman{list-style:upper-roman}.cherry-markdown.theme__blue ul.cherry-list__lower-alpha{list-style:lower-alpha}.cherry-markdown.theme__blue ul.cherry-list__lower-greek{list-style:lower-greek}.cherry-markdown.theme__blue ul.cherry-list__cjk-ideographic{list-style:cjk-ideographic}.cherry-markdown.theme__blue ul.cherry-list__circle{list-style:circle}.cherry-markdown.theme__blue ul.cherry-list__square{list-style:square}.cherry-markdown.theme__blue blockquote{color:#283593;background-color:#ede7f6;border-color:#3949ab}.cherry-markdown.theme__blue a{text-decoration:none;color:#8c9eff}.cherry-markdown.theme__blue a:hover{text-decoration:underline;color:#303f9f}.cherry-markdown.theme__blue hr{border-color:#3949ab}.cherry-markdown.theme__blue p code,.cherry-markdown.theme__blue li code{background-color:#ede7f6;color:#8c9eff;border:1px solid #3949ab}.cherry-markdown.theme__blue table,.cherry-markdown.theme__blue .cherry-table{color:#283593}.cherry-markdown.theme__blue table th,.cherry-markdown.theme__blue .cherry-table th{background-color:#ede7f6}.cherry-markdown.theme__blue table tr,.cherry-markdown.theme__blue table th,.cherry-markdown.theme__blue table td,.cherry-markdown.theme__blue .cherry-table tr,.cherry-markdown.theme__blue .cherry-table th,.cherry-markdown.theme__blue .cherry-table td{border-color:#3949ab}.cherry-markdown.theme__blue .footnote{border-color:#3949ab}.cherry-markdown.theme__blue .footnote .footnote-title{background-color:#ede7f6}.cherry-markdown.theme__blue .footnote .one-footnote{color:#283593;border-color:#3949ab}.cherry-markdown.theme__blue .footnote .one-footnote a.footnote-ref{padding:5px}.cherry-markdown.theme__blue .toc{border-bottom:1px solid #3949ab;padding-bottom:15px;margin-bottom:30px}.cherry-markdown.theme__blue .toc .toc-title{text-align:center;padding-bottom:15px;margin-top:30px;margin-bottom:15px;border-bottom:1px solid #3949ab}.cherry-markdown.theme__blue .toc .toc-li{border:none}.cherry-markdown.theme__blue .toc .toc-li a{color:#283593}.cherry-markdown.theme__blue .toc .toc-li a:hover{color:#303f9f} \ No newline at end of file diff --git a/app_zentaoimpweb/public/extras/js/cherry-markdown/0.8.58/cherry-markdown.system.min.js b/app_zentaoimpweb/public/extras/js/cherry-markdown/0.8.58/cherry-markdown.system.min.js new file mode 100644 index 0000000000000000000000000000000000000000..fa36349544908445f0d336ce5219e9e9f8897a31 --- /dev/null +++ b/app_zentaoimpweb/public/extras/js/cherry-markdown/0.8.58/cherry-markdown.system.min.js @@ -0,0 +1 @@ +System.register("Cherry",[],(function(t){"use strict";return{execute:function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t,e){return t(e={exports:{}},e.exports),e.exports}function i(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var a,o,s=function(t){return t&&t.Math===Math&&t},l=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof e&&e)||s("object"==typeof e&&e)||function(){return this}()||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},h=!u((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=h,d=Function.prototype,A=d.apply,g=d.call,p="object"==typeof Reflect&&Reflect.apply||(f?g.bind(A):function(){return g.apply(A,arguments)}),m=Function.prototype,b=m.call,v=f&&m.bind.bind(b,b),y=f?v:function(t){return function(){return b.apply(t,arguments)}},w=y,k=w({}.toString),x=w("".slice),C=function(t){return x(k(t),8,-1)},E="object"==typeof document&&document.all,T=void 0===E&&void 0!==E?function(t){return"function"==typeof t||t===E}:function(t){return"function"==typeof t},B=!u((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),_=Function.prototype.call,S=f?_.bind(_):function(){return _.apply(_,arguments)},L={}.propertyIsEnumerable,I=Object.getOwnPropertyDescriptor,M=I&&!L.call({1:2},1)?function(t){var e=I(this,t);return!!e&&e.enumerable}:L,O={f:M},D=Object,F=w("".split),N=u((function(){return!D("z").propertyIsEnumerable(0)}))?function(t){return"String"===C(t)?F(t,""):D(t)}:D,R=function(t){return null==t},P=TypeError,Q=N,U=function(t){if(R(t))throw new P("Can't call method on "+t);return t},H=T,$={},j=l,K=function(t){return H(t)?t:void 0},z=w({}.isPrototypeOf),G="undefined"!=typeof navigator&&String(navigator.userAgent)||"",X=j.process,V=j.Deno,W=X&&X.versions||V&&V.version,q=W&&W.v8;q&&(o=(a=q.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!o&&G&&(!(a=G.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=G.match(/Chrome\/(\d+)/))&&(o=+a[1]);var Y=o,J=j.String,Z=!!Object.getOwnPropertySymbols&&!u((function(){var t=Symbol("symbol detection");return!J(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Y&&Y<41})),tt=Z,et=tt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,nt=function(t,e){return arguments.length<2?K($[t])||K(j[t]):$[t]&&$[t][e]||j[t]&&j[t][e]},rt=z,it=et,at=Object,ot=it?function(t){return"symbol"==typeof t}:function(t){var e=nt("Symbol");return H(e)&&rt(e.prototype,at(t))},st=String,ct=function(t){try{return st(t)}catch(t){return"Object"}},lt=TypeError,ut=function(t){if(H(t))return t;throw new lt(ct(t)+" is not a function")},ht=S,ft=function(t){return"object"==typeof t?null!==t:H(t)},dt=TypeError,At=Object.defineProperty,gt=!0,pt=function(t,e){try{At(j,t,{value:e,configurable:!0,writable:!0})}catch(n){j[t]=e}return e},mt=r((function(t){var e="__core-js_shared__",n=t.exports=j[e]||pt(e,{});(n.versions||(n.versions=[])).push({version:"3.37.1",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),bt=mt,vt=Object,yt=function(t){return vt(U(t))},wt=w({}.hasOwnProperty),kt=Object.hasOwn||function(t,e){return wt(yt(t),e)},xt=0,Ct=Math.random(),Et=w(1..toString),Tt=function(t,e){return bt[t]||(bt[t]=e||{})},Bt=kt,_t=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Et(++xt+Ct,36)},St=j.Symbol,Lt=Tt("wks"),It=it?St.for||St:St&&St.withoutSetter||_t,Mt=ot,Ot=function(t,e){var n=t[e];return R(n)?void 0:ut(n)},Dt=function(t,e){var n,r;if("string"===e&&H(n=t.toString)&&!ft(r=ht(n,t)))return r;if(H(n=t.valueOf)&&!ft(r=ht(n,t)))return r;if("string"!==e&&H(n=t.toString)&&!ft(r=ht(n,t)))return r;throw new dt("Can't convert object to primitive value")},Ft=function(t){return Bt(Lt,t)||(Lt[t]=tt&&Bt(St,t)?St[t]:It("Symbol."+t)),Lt[t]},Nt=TypeError,Rt=Ft("toPrimitive"),Pt=function(t,e){if(!ft(t)||Mt(t))return t;var n,r=Ot(t,Rt);if(r){if(void 0===e&&(e="default"),n=ht(r,t,e),!ft(n)||Mt(n))return n;throw new Nt("Can't convert object to primitive value")}return void 0===e&&(e="number"),Dt(t,e)},Qt=j.document,Ut=ft(Qt)&&ft(Qt.createElement),Ht=B,$t=function(t){return Ut?Qt.createElement(t):{}},jt=!Ht&&!u((function(){return 7!==Object.defineProperty($t("div"),"a",{get:function(){return 7}}).a})),Kt=O,zt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Gt=function(t){return Q(U(t))},Xt=function(t){var e=Pt(t,"string");return Mt(e)?e:e+""},Vt=jt,Wt=Object.getOwnPropertyDescriptor,qt={f:Ht?Wt:function(t,e){if(t=Gt(t),e=Xt(e),Vt)try{return Wt(t,e)}catch(t){}if(Bt(t,e))return zt(!ht(Kt.f,t,e),t[e])}},Yt=/#|\.prototype\./,Jt=function(t,e){var n=te[Zt(t)];return n===ne||n!==ee&&(H(e)?u(e):!!e)},Zt=Jt.normalize=function(t){return String(t).replace(Yt,".").toLowerCase()},te=Jt.data={},ee=Jt.NATIVE="N",ne=Jt.POLYFILL="P",re=Jt,ie=function(t){if("Function"===C(t))return w(t)},ae=ie(ie.bind),oe=Ht&&u((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),se=String,ce=TypeError,le=oe,ue=function(t){if(ft(t))return t;throw new ce(se(t)+" is not an object")},he=TypeError,fe=Object.defineProperty,de=Object.getOwnPropertyDescriptor,Ae="enumerable",ge="configurable",pe="writable",me={f:Ht?le?function(t,e,n){if(ue(t),e=Xt(e),ue(n),"function"==typeof t&&"prototype"===e&&"value"in n&&pe in n&&!n[pe]){var r=de(t,e);r&&r[pe]&&(t[e]=n.value,n={configurable:ge in n?n[ge]:r[ge],enumerable:Ae in n?n[Ae]:r[Ae],writable:!1})}return fe(t,e,n)}:fe:function(t,e,n){if(ue(t),e=Xt(e),ue(n),Vt)try{return fe(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new he("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},be=Ht?function(t,e,n){return me.f(t,e,zt(1,n))}:function(t,e,n){return t[e]=n,t},ve=p,ye=qt,we=re,ke=function(t,e){return ut(t),void 0===e?t:f?ae(t,e):function(){return t.apply(e,arguments)}},xe=be,Ce=ye.f,Ee=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return ve(t,this,arguments)};return e.prototype=t.prototype,e},Te=w([].slice),Be=Function,_e=w([].concat),Se=w([].join),Le={},Ie=f?Be.bind:function(t){var e=ut(this),n=e.prototype,r=Te(arguments,1),i=function(){var n=_e(r,Te(arguments));return this instanceof i?function(t,e,n){if(!Bt(Le,e)){for(var r=[],i=0;i0?tn:Ze)(e)},nn=en,rn=function(t){var e=+t;return e!=e||0===e?0:nn(e)},an=Math.max,on=Math.min,sn=Math.min,cn=function(t){var e=rn(t);return e>0?sn(e,9007199254740991):0},ln=function(t,e){var n=rn(t);return n<0?an(n+e,0):on(n,e)},un=function(t){return cn(t.length)},hn=function(t){return function(e,n,r){var i=Gt(e),a=un(i);if(0===a)return!t&&-1;var o,s=ln(r,a);if(t&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===n)return t||s||0;return!t&&-1}},fn={includes:hn(!0),indexOf:hn(!1)},dn={},An=fn.indexOf,gn=w([].push),pn=function(t,e){var n,r=Gt(t),i=0,a=[];for(n in r)!Bt(dn,n)&&Bt(r,n)&&gn(a,n);for(;e.length>i;)Bt(r,n=e[i++])&&(~An(a,n)||gn(a,n));return a},mn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bn=Object.keys||function(t){return pn(t,mn)},vn=Ht&&!le?Object.defineProperties:function(t,e){ue(t);for(var n,r=Gt(e),i=bn(e),a=i.length,o=0;a>o;)me.f(t,n=i[o++],r[n]);return t},yn={f:vn},wn=nt("document","documentElement"),kn=Tt("keys"),xn=yn,Cn=wn,En=function(t){return kn[t]||(kn[t]=_t(t))},Tn="prototype",Bn="script",_n=En("IE_PROTO"),Sn=function(){},Ln=function(t){return"<"+Bn+">"+t+""},In=function(t){t.write(Ln("")),t.close();var e=t.parentWindow.Object;return t=null,e},Mn=function(){try{We=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Mn="undefined"!=typeof document?document.domain&&We?In(We):(e=$t("iframe"),n="java"+Bn+":",e.style.display="none",Cn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Ln("document.F=Object")),t.close(),t.F):In(We);for(var r=mn.length;r--;)delete Mn[Tn][mn[r]];return Mn()};dn[_n]=!0;var On=Object.create||function(t,e){var n;return null!==t?(Sn[Tn]=ue(t),n=new Sn,Sn[Tn]=null,n[_n]=t):n=Mn(),void 0===e?n:xn.f(n,e)},Dn=function(t,e){var n,r,i,a,o,s,c,l,u,h=t.target,f=t.global,d=t.stat,A=t.proto,g=f?j:d?j[h]:j[h]&&j[h].prototype,p=f?$:$[h]||xe($,h,{})[h],m=p.prototype;for(a in e)r=!(n=we(f?a:h+(d?".":"#")+a,t.forced))&&g&&Bt(g,a),s=p[a],r&&(c=t.dontCallGetSet?(u=Ce(g,a))&&u.value:g[a]),o=r&&c?c:e[a],(n||A||typeof s!=typeof o)&&(l=t.bind&&r?ke(o,j):t.wrap&&r?Ee(o):A&&H(o)?ie(o):o,(t.sham||o&&o.sham||s&&s.sham)&&xe(l,"sham",!0),xe(p,a,l),A&&(Bt($,i=h+"Prototype")||xe($,i,{}),xe($[i],a,o),t.real&&m&&(n||!m[a])&&xe(m,a,o)))},Fn=Ie,Nn=function(t){if(Ye(t))return t;throw new Je(ct(t)+" is not a constructor")},Rn=On,Pn=nt("Reflect","construct"),Qn=Object.prototype,Un=[].push,Hn=u((function(){function t(){}return!(Pn((function(){}),[],t)instanceof t)})),$n=!u((function(){Pn((function(){}))})),jn=Hn||$n;Dn({target:"Reflect",stat:!0,forced:jn,sham:jn},{construct:function(t,e){Nn(t),ue(e);var n=arguments.length<3?t:Nn(arguments[2]);if($n&&!Hn)return Pn(t,e,n);if(t===n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return ve(Un,r,e),new(ve(Fn,t,r))}var i=n.prototype,a=Rn(ft(i)?i:Qn),o=ve(t,a,e);return ft(o)?o:a}});var Kn,zn,Gn,Xn=$.Reflect.construct,Vn=Xn,Wn=String,qn=mn.concat("length","prototype"),Yn={f:Object.getOwnPropertyNames||function(t){return pn(t,qn)}},Jn=Yn.f,Zn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tr={f:function(t){return Zn&&"Window"===C(t)?function(t){try{return Jn(t)}catch(t){return Te(Zn)}}(t):Jn(Gt(t))}},er={f:Object.getOwnPropertySymbols},nr={f:Ft},rr=me.f,ir=function(t,e,n,r){return r&&r.enumerable?t[e]=n:xe(t,e,n),t},ar=Oe?{}.toString:function(){return"[object "+Ue(this)+"]"},or=me.f,sr=Ft("toStringTag"),cr=j.WeakMap,lr=H(cr)&&/native code/.test(String(cr)),ur="Object already initialized",hr=j.TypeError,fr=j.WeakMap;if(lr||bt.state){var dr=bt.state||(bt.state=new fr);dr.get=dr.get,dr.has=dr.has,dr.set=dr.set,Kn=function(t,e){if(dr.has(t))throw new hr(ur);return e.facade=t,dr.set(t,e),e},zn=function(t){return dr.get(t)||{}},Gn=function(t){return dr.has(t)}}else{var Ar=En("state");dn[Ar]=!0,Kn=function(t,e){if(Bt(t,Ar))throw new hr(ur);return e.facade=t,xe(t,Ar,e),e},zn=function(t){return Bt(t,Ar)?t[Ar]:{}},Gn=function(t){return Bt(t,Ar)}}var gr={set:Kn,get:zn,has:Gn,enforce:function(t){return Gn(t)?zn(t):Kn(t,{})},getterFor:function(t){return function(e){var n;if(!ft(e)||(n=zn(e)).type!==t)throw new hr("Incompatible receiver, "+t+" required");return n}}},pr=Array.isArray||function(t){return"Array"===C(t)},mr=Ft("species"),br=Array,vr=function(t){var e;return pr(t)&&(e=t.constructor,(Ye(e)&&(e===br||pr(e.prototype))||ft(e)&&null===(e=e[mr]))&&(e=void 0)),void 0===e?br:e},yr=function(t,e){return new(vr(t))(0===e?0:e)},wr=w([].push),kr=function(t){var e=1===t,n=2===t,r=3===t,i=4===t,a=6===t,o=7===t,s=5===t||a;return function(c,l,u,h){for(var f,d,A=yt(c),g=Q(A),p=un(g),m=ke(l,u),b=0,v=h||yr,y=e?v(c,p):n||o?v(c,0):void 0;p>b;b++)if((s||b in g)&&(d=m(f=g[b],b,A),t))if(e)y[b]=d;else if(d)switch(t){case 3:return!0;case 5:return f;case 6:return b;case 2:wr(y,f)}else switch(t){case 4:return!1;case 7:wr(y,f)}return a?-1:r||i?i:y}},xr={forEach:kr(0),map:kr(1),filter:kr(2),some:kr(3),every:kr(4),find:kr(5),findIndex:kr(6),filterReject:kr(7)},Cr=function(t){if("Symbol"===Ue(t))throw new TypeError("Cannot convert a Symbol value to a string");return Wn(t)},Er=tr,Tr=er,Br=function(t,e,n){return me.f(t,e,n)},_r=function(t){var e=$.Symbol||($.Symbol={});Bt(e,t)||rr(e,t,{value:nr.f(t)})},Sr=function(){var t=nt("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,r=Ft("toPrimitive");e&&!e[r]&&ir(e,r,(function(t){return ht(n,this)}),{arity:1})},Lr=function(t,e,n,r){var i=n?t:t&&t.prototype;i&&(Bt(i,sr)||or(i,sr,{configurable:!0,value:e}),r&&!Oe&&xe(i,"toString",ar))},Ir=gr,Mr=xr,Or=Mr.forEach,Dr=En("hidden"),Fr="Symbol",Nr="prototype",Rr=Ir.set,Pr=Ir.getterFor(Fr),Qr=Object[Nr],Ur=j.Symbol,Hr=Ur&&Ur[Nr],$r=j.RangeError,jr=j.TypeError,Kr=j.QObject,zr=ye.f,Gr=me.f,Xr=Er.f,Vr=Kt.f,Wr=w([].push),qr=Tt("symbols"),Yr=Tt("op-symbols"),Jr=Tt("wks"),Zr=!Kr||!Kr[Nr]||!Kr[Nr].findChild,ti=function(t,e,n){var r=zr(Qr,e);r&&delete Qr[e],Gr(t,e,n),r&&t!==Qr&&Gr(Qr,e,r)},ei=Ht&&u((function(){return 7!==Rn(Gr({},"a",{get:function(){return Gr(this,"a",{value:7}).a}})).a}))?ti:Gr,ni=function(t,e){var n=qr[t]=Rn(Hr);return Rr(n,{type:Fr,tag:t,description:e}),Ht||(n.description=e),n},ri=function(t,e,n){t===Qr&&ri(Yr,e,n),ue(t);var r=Xt(e);return ue(n),Bt(qr,r)?(n.enumerable?(Bt(t,Dr)&&t[Dr][r]&&(t[Dr][r]=!1),n=Rn(n,{enumerable:zt(0,!1)})):(Bt(t,Dr)||Gr(t,Dr,zt(1,Rn(null))),t[Dr][r]=!0),ei(t,r,n)):Gr(t,r,n)},ii=function(t,e){ue(t);var n=Gt(e),r=bn(n).concat(ci(n));return Or(r,(function(e){Ht&&!ht(ai,n,e)||ri(t,e,n[e])})),t},ai=function(t){var e=Xt(t),n=ht(Vr,this,e);return!(this===Qr&&Bt(qr,e)&&!Bt(Yr,e))&&(!(n||!Bt(this,e)||!Bt(qr,e)||Bt(this,Dr)&&this[Dr][e])||n)},oi=function(t,e){var n=Gt(t),r=Xt(e);if(n!==Qr||!Bt(qr,r)||Bt(Yr,r)){var i=zr(n,r);return!i||!Bt(qr,r)||Bt(n,Dr)&&n[Dr][r]||(i.enumerable=!0),i}},si=function(t){var e=Xr(Gt(t)),n=[];return Or(e,(function(t){Bt(qr,t)||Bt(dn,t)||Wr(n,t)})),n},ci=function(t){var e=t===Qr,n=Xr(e?Yr:Gt(t)),r=[];return Or(n,(function(t){!Bt(qr,t)||e&&!Bt(Qr,t)||Wr(r,qr[t])})),r};tt||(Ur=function(){if(rt(Hr,this))throw new jr("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Cr(arguments[0]):void 0,e=_t(t),n=function(t){var r=void 0===this?j:this;r===Qr&&ht(n,Yr,t),Bt(r,Dr)&&Bt(r[Dr],e)&&(r[Dr][e]=!1);var i=zt(1,t);try{ei(r,e,i)}catch(t){if(!(t instanceof $r))throw t;ti(r,e,i)}};return Ht&&Zr&&ei(Qr,e,{configurable:!0,set:n}),ni(e,t)},Hr=Ur[Nr],ir(Hr,"toString",(function(){return Pr(this).tag})),ir(Ur,"withoutSetter",(function(t){return ni(_t(t),t)})),Kt.f=ai,me.f=ri,xn.f=ii,ye.f=oi,Yn.f=Er.f=si,Tr.f=ci,nr.f=function(t){return ni(Ft(t),t)},Ht&&Br(Hr,"description",{configurable:!0,get:function(){return Pr(this).description}})),Dn({global:!0,constructor:!0,wrap:!0,forced:!tt,sham:!tt},{Symbol:Ur}),Or(bn(Jr),(function(t){_r(t)})),Dn({target:Fr,stat:!0,forced:!tt},{useSetter:function(){Zr=!0},useSimple:function(){Zr=!1}}),Dn({target:"Object",stat:!0,forced:!tt,sham:!Ht},{create:function(t,e){return void 0===e?Rn(t):ii(Rn(t),e)},defineProperty:ri,defineProperties:ii,getOwnPropertyDescriptor:oi}),Dn({target:"Object",stat:!0,forced:!tt},{getOwnPropertyNames:si}),Sr(),Lr(Ur,Fr),dn[Dr]=!0;var li=tt&&!!Symbol.for&&!!Symbol.keyFor,ui=Tt("string-to-symbol-registry"),hi=Tt("symbol-to-string-registry");Dn({target:"Symbol",stat:!0,forced:!li},{for:function(t){var e=Cr(t);if(Bt(ui,e))return ui[e];var n=nt("Symbol")(e);return ui[e]=n,hi[n]=e,n}});var fi=Tt("symbol-to-string-registry");Dn({target:"Symbol",stat:!0,forced:!li},{keyFor:function(t){if(!Mt(t))throw new TypeError(ct(t)+" is not a symbol");if(Bt(fi,t))return fi[t]}});var di=w([].push),Ai=function(t){if(H(t))return t;if(pr(t)){for(var e=t.length,n=[],r=0;r=51||!u((function(){var e=[];return(e.constructor={})[Mi]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Di=Mr.filter,Fi=Oi("filter");Dn({target:"Array",proto:!0,forced:!Fi},{filter:function(t){return Di(this,t,arguments.length>1?arguments[1]:void 0)}});var Ni=function(t,e){var n=$[t+"Prototype"],r=n&&n[e];if(r)return r;var i=j[t],a=i&&i.prototype;return a&&a[e]},Ri=Ni("Array","filter"),Pi=Array.prototype,Qi=function(t){var e=t.filter;return t===Pi||rt(Pi,t)&&e===Pi.filter?Ri:e},Ui=ye.f,Hi=!Ht||u((function(){Ui(1)}));Dn({target:"Object",stat:!0,forced:Hi,sham:!Ht},{getOwnPropertyDescriptor:function(t,e){return Ui(Gt(t),e)}});var $i=r((function(t){var e=$.Object,n=t.exports=function(t,n){return e.getOwnPropertyDescriptor(t,n)};e.getOwnPropertyDescriptor.sham&&(n.sham=!0)})),ji=$i,Ki=ji,zi=w([].concat),Gi=nt("Reflect","ownKeys")||function(t){var e=Yn.f(ue(t)),n=Tr.f;return n?zi(e,n(t)):e},Xi=Gi,Vi=function(t,e,n){Ht?me.f(t,e,zt(0,n)):t[e]=n};Dn({target:"Object",stat:!0,sham:!Ht},{getOwnPropertyDescriptors:function(t){for(var e,n,r=Gt(t),i=ye.f,a=Xi(r),o={},s=0;a.length>s;)void 0!==(n=i(r,e=a[s++]))&&Vi(o,e,n);return o}});var Wi=$.Object.getOwnPropertyDescriptors,qi=xn.f;Dn({target:"Object",stat:!0,forced:Object.defineProperties!==qi,sham:!Ht},{defineProperties:qi});var Yi=r((function(t){var e=$.Object,n=t.exports=function(t,n){return e.defineProperties(t,n)};e.defineProperties.sham&&(n.sham=!0)})),Ji=Yi,Zi=Ji,ta=me.f;Dn({target:"Object",stat:!0,forced:Object.defineProperty!==ta,sham:!Ht},{defineProperty:ta});var ea=r((function(t){var e=$.Object,n=t.exports=function(t,n,r){return e.defineProperty(t,n,r)};e.defineProperty.sham&&(n.sham=!0)})),na=ea;function ra(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var ia=ea,aa=ia,oa=TypeError,sa=function(t){if(t>9007199254740991)throw oa("Maximum allowed index exceeded");return t},ca=Ft("isConcatSpreadable"),la=Y>=51||!u((function(){var t=[];return t[ca]=!1,t.concat()[0]!==t})),ua=function(t){if(!ft(t))return!1;var e=t[ca];return void 0!==e?!!e:pr(t)},ha=!la||!Oi("concat");Dn({target:"Array",proto:!0,arity:1,forced:ha},{concat:function(t){var e,n,r,i,a,o=yt(this),s=yr(o,0),c=0;for(e=-1,r=arguments.length;e=e.length)return t.target=void 0,Ya(void 0,!0);switch(t.kind){case"keys":return Ya(n,!1);case"values":return Ya(e[n],!1)}return Ya([n,e[n]],!1)}),"values");La.Arguments=La.Array;Wa(),Wa(),Wa();var eo={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};for(var no in eo)Lr(j[no],no),La[no]=La.Array;var ro=ga,io=me.f,ao=Ft("metadata"),oo=Function.prototype;void 0===oo[ao]&&io(oo,ao,{value:null}),_r("asyncDispose"),_r("dispose"),_r("metadata");var so=ro,co=so,lo=nt("Symbol"),uo=lo.keyFor,ho=w(lo.prototype.valueOf),fo=lo.isRegisteredSymbol||function(t){try{return void 0!==uo(ho(t))}catch(t){return!1}};Dn({target:"Symbol",stat:!0},{isRegisteredSymbol:fo});for(var Ao=nt("Symbol"),go=Ao.isWellKnownSymbol,po=nt("Object","getOwnPropertyNames"),mo=w(Ao.prototype.valueOf),bo=Tt("wks"),vo=0,yo=po(Ao),wo=yo.length;vo=s?t?"":void 0:(r=Bo(a,o))<55296||r>56319||o+1===s||(i=Bo(a,o+1))<56320||i>57343?t?To(a,o):r:t?_o(a,o,o+2):i-56320+(r-55296<<10)+65536}},Lo={codeAt:So(!1),charAt:So(!0)},Io=Lo.charAt,Mo="String Iterator",Oo=Ir.set,Do=Ir.getterFor(Mo);qa(String,"String",(function(t){Oo(this,{type:Mo,string:Cr(t),index:0})}),(function(){var t,e=Do(this),n=e.string,r=e.index;return r>=n.length?Ya(void 0,!0):(t=Io(n,r),e.index+=t.length,Ya(t,!1))}));var Fo=nr.f("iterator"),No=Fo,Ro=No;function Po(t){return Po="function"==typeof Eo&&"symbol"==typeof Ro?function(t){return typeof t}:function(t){return t&&"function"==typeof Eo&&t.constructor===Eo&&t!==Eo.prototype?"symbol":typeof t},Po(t)}var Qo=nr.f("toPrimitive");function Uo(t){var e=function(t,e){if("object"!=Po(t)||!t)return t;var n=t[Qo];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Po(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Po(e)?e:e+""}function Ho(t,e){for(var n=0;nn,o=H(r)?r:ms(r),s=a?Te(arguments,n):[],c=a?function(){ve(o,this,s)}:o;return e?t(c,i):t(c)}:t},ys=vs(j.setInterval,!0);Dn({global:!0,bind:!0,forced:j.setInterval!==ys},{setInterval:ys});var ws=vs(j.setTimeout,!0);Dn({global:!0,bind:!0,forced:j.setTimeout!==ws},{setTimeout:ws});var ks=$.setTimeout,xs=Object.assign,Cs=Object.defineProperty,Es=w([].concat),Ts=!xs||u((function(){if(Ht&&1!==xs({b:1},xs(Cs({},"a",{enumerable:!0,get:function(){Cs(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!==xs({},t)[n]||bn(xs({},e)).join("")!==r}))?function(t,e){for(var n=yt(t),r=arguments.length,i=1,a=Tr.f,o=Kt.f;r>i;)for(var s,c=Q(arguments[i++]),l=a?Es(bn(c),a(c)):bn(c),u=l.length,h=0;u>h;)s=l[h++],Ht&&!ht(o,c,s)||(n[s]=c[s]);return n}:xs,Bs=Ts;Dn({target:"Object",stat:!0,arity:2,forced:Object.assign!==Bs},{assign:Bs});var _s=$.Object.assign,Ss=_s,Ls=u((function(){bn(1)}));Dn({target:"Object",stat:!0,forced:Ls},{keys:function(t){return bn(yt(t))}});var Is=$.Object.keys,Ms=function(t,e){var n=[][t];return!!n&&u((function(){n.call(null,e||function(){return 1},1)}))},Os=Mr.forEach,Ds=Ms("forEach")?[].forEach:function(t){return Os(this,t,arguments.length>1?arguments[1]:void 0)};Dn({target:"Array",proto:!0,forced:[].forEach!==Ds},{forEach:Ds});var Fs=Ni("Array","forEach"),Ns=Array.prototype,Rs={DOMTokenList:!0,NodeList:!0},Ps=function(t){var e=t.forEach;return t===Ns||rt(Ns,t)&&e===Ns.forEach||Bt(Rs,Ue(t))?Fs:e},Qs=Ps,Us=Ft("match"),Hs=function(){var t=ue(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},$s=RegExp.prototype,js=Math.floor,Ks=w("".charAt),zs=w("".replace),Gs=w("".slice),Xs=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Vs=/\$([$&'`]|\d{1,2})/g,Ws=function(t){var e;return ft(t)&&(void 0!==(e=t[Us])?!!e:"RegExp"===C(t))},qs=function(t){var e=t.flags;return void 0!==e||"flags"in $s||Bt(t,"flags")||!rt($s,t)?e:ht(Hs,t)},Ys=function(t,e,n,r,i,a){var o=n+t.length,s=r.length,c=Vs;return void 0!==i&&(i=yt(i),c=Xs),zs(a,c,(function(a,c){var l;switch(Ks(c,0)){case"$":return"$";case"&":return t;case"`":return Gs(e,0,n);case"'":return Gs(e,o);case"<":l=i[Gs(c,1,-1)];break;default:var u=+c;if(0===u)return a;if(u>s){var h=js(u/10);return 0===h?a:h<=s?void 0===r[h-1]?Ks(c,1):r[h-1]+Ks(c,1):a}l=r[u-1]}return void 0===l?"":l}))},Js=Ft("replace"),Zs=TypeError,tc=w("".indexOf),ec=w("".replace),nc=w("".slice),rc=Math.max;Dn({target:"String",proto:!0},{replaceAll:function(t,e){var n,r,i,a,o,s,c,l,u,h=U(this),f=0,d=0,A="";if(!R(t)){if((n=Ws(t))&&(r=Cr(U(qs(t))),!~tc(r,"g")))throw new Zs("`.replaceAll` does not allow non-global regexes");if(i=Ot(t,Js))return ht(i,t,h,e);if(n)return ec(Cr(h),t,e)}for(a=Cr(h),o=Cr(t),(s=H(e))||(e=Cr(e)),c=o.length,l=rc(1,c),f=tc(a,o);-1!==f;)u=s?Cr(e(o,f,a)):Ys(o,a,f,[],void 0,e),A+=nc(a,d,f)+u,d=f+c,f=f+l>a.length?-1:tc(a,o,f+l);return d-1};var Ac=function(t,e){var n=this.__data__,r=lc(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function gc(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=9007199254740991};var Xl=function(t){return null!=t&&Gl(t.length)&&!Fc(t)};var Vl=function(t){return Pl(t)&&Xl(t)};var Wl=function(){return!1},ql=r((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n?xc.Buffer:void 0,a=(i?i.isBuffer:void 0)||Wl;t.exports=a})),Yl=Function.prototype,Jl=Object.prototype,Zl=Yl.toString,tu=Jl.hasOwnProperty,eu=Zl.call(Object);var nu=function(t){if(!Pl(t)||"[object Object]"!=Oc(t))return!1;var e=Dl(t);if(null===e)return!0;var n=tu.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Zl.call(n)==eu},ru={};ru["[object Float32Array]"]=ru["[object Float64Array]"]=ru["[object Int8Array]"]=ru["[object Int16Array]"]=ru["[object Int32Array]"]=ru["[object Uint8Array]"]=ru["[object Uint8ClampedArray]"]=ru["[object Uint16Array]"]=ru["[object Uint32Array]"]=!0,ru["[object Arguments]"]=ru["[object Array]"]=ru["[object ArrayBuffer]"]=ru["[object Boolean]"]=ru["[object DataView]"]=ru["[object Date]"]=ru["[object Error]"]=ru["[object Function]"]=ru["[object Map]"]=ru["[object Number]"]=ru["[object Object]"]=ru["[object RegExp]"]=ru["[object Set]"]=ru["[object String]"]=ru["[object WeakMap]"]=!1;var iu=function(t){return Pl(t)&&Gl(t.length)&&!!ru[Oc(t)]};var au=function(t){return function(e){return t(e)}},ou=r((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,i=r&&r.exports===n&&wc.process,a=function(){try{var t=r&&r.require&&r.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=a})),su=ou&&ou.isTypedArray,cu=su?au(su):iu;var lu=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},uu=Object.prototype.hasOwnProperty;var hu=function(t,e,n){var r=t[e];uu.call(t,e)&&cc(r,n)&&(void 0!==n||e in t)||wl(t,e,n)};var fu=function(t,e,n,r){var i=!n;n||(n={});for(var a=-1,o=e.length;++a-1&&t%1==0&&t0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},Du=Ou(Iu);var Fu=function(t,e){return Du(_u(t,e,Eu),t+"")};var Nu=function(t,e,n){if(!Dc(n))return!1;var r=typeof e;return!!("number"==r?Xl(n)&&gu(e,n.length):"string"==r&&e in n)&&cc(n[e],t)};var Ru=function(t){return Fu((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,o&&Nu(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++r1?arguments[1]:void 0;return ju?$u(this,t,e)||0:Hu(this,t,e)}});var zu=Ni("Array","indexOf"),Gu=Array.prototype,Xu=function(t){var e=t.indexOf;return t===Gu||rt(Gu,t)&&e===Gu.indexOf?zu:e},Vu=Xu;function Wu(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(Vu(e).call(e,r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Uu){var a=Uu(t);for(r=0;r=0||{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var qu=RangeError,Yu=function(t){var e=Cr(U(this)),n="",r=rn(t);if(r<0||r===1/0)throw new qu("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n},Ju=w(Yu),Zu=w("".slice),th=Math.ceil,eh=function(t){return function(e,n,r){var i,a,o=Cr(U(e)),s=cn(n),c=o.length,l=void 0===r?" ":Cr(r);return s<=c||""===l?o:((a=Ju(l,th((i=s-c)/l.length))).length>i&&(a=Zu(a,0,i)),t?o+a:a+o)}},nh={start:eh(!1),end:eh(!0)}.start,rh=RangeError,ih=isFinite,ah=Math.abs,oh=Date.prototype,sh=oh.toISOString,ch=w(oh.getTime),lh=w(oh.getUTCDate),uh=w(oh.getUTCFullYear),hh=w(oh.getUTCHours),fh=w(oh.getUTCMilliseconds),dh=w(oh.getUTCMinutes),Ah=w(oh.getUTCMonth),gh=w(oh.getUTCSeconds),ph=u((function(){return"0385-07-25T07:06:39.999Z"!==sh.call(new Date(-50000000000001))}))||!u((function(){sh.call(new Date(NaN))}))?function(){if(!ih(ch(this)))throw new rh("Invalid time value");var t=this,e=uh(t),n=fh(t),r=e<0?"-":e>9999?"+":"";return r+nh(ah(e),r?6:4,0)+"-"+nh(Ah(t)+1,2,0)+"-"+nh(lh(t),2,0)+"T"+nh(hh(t),2,0)+":"+nh(dh(t),2,0)+":"+nh(gh(t),2,0)+"."+nh(n,3,0)+"Z"}:sh,mh=ph,bh=u((function(){return null!==new Date(NaN).toJSON()||1!==ht(Date.prototype.toJSON,{toISOString:function(){return 1}})}));Dn({target:"Date",proto:!0,forced:bh},{toJSON:function(t){var e=yt(this),n=Pt(e,"number");return"number"!=typeof n||isFinite(n)?"toISOString"in e||"Date"!==C(e)?e.toISOString():ht(mh,e):null}}),$.JSON||($.JSON={stringify:JSON.stringify});var vh=function(t,e,n){return ve($.JSON.stringify,null,arguments)},yh=vh,wh=Mr.find,kh="find",xh=!0;kh in[]&&Array(1)[kh]((function(){xh=!1})),Dn({target:"Array",proto:!0,forced:xh},{find:function(t){return wh(this,t,arguments.length>1?arguments[1]:void 0)}}),Wa();var Ch=Ni("Array","find"),Eh=Array.prototype,Th=function(t){var e=t.find;return t===Eh||rt(Eh,t)&&e===Eh.find?Ch:e},Bh="\t\n\v\f\r                 \u2028\u2029\ufeff",_h=w("".replace),Sh=RegExp("^["+Bh+"]+"),Lh=RegExp("(^|[^"+Bh+"])["+Bh+"]+$"),Ih=function(t){return function(e){var n=Cr(U(e));return 1&t&&(n=_h(n,Sh,"")),2&t&&(n=_h(n,Lh,"$1")),n}},Mh={start:Ih(1),end:Ih(2),trim:Ih(3)},Oh=Qa.PROPER,Dh=Mh,Fh=Dh.trim;Dn({target:"String",proto:!0,forced:function(t){return u((function(){return!!Bh[t]()||"​…᠎"!=="​…᠎"[t]()||Oh&&Bh[t].name!==t}))}("trim")},{trim:function(){return Fh(this)}});var Nh=Ni("String","trim"),Rh=String.prototype,Ph=function(t){var e=t.trim;return"string"==typeof t||t===Rh||rt(Rh,t)&&e===Rh.trim?Nh:e},Qh=function(t,e,n){var r,i;ue(t);try{if(!(r=Ot(t,"return"))){if("throw"===e)throw n;return n}r=ht(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return ue(r),n},Uh=Ft("iterator"),Hh=Array.prototype,$h=Ft("iterator"),jh=function(t){if(!R(t))return Ot(t,$h)||Ot(t,"@@iterator")||La[Ue(t)]},Kh=TypeError,zh=function(t,e,n,r){try{return r?e(ue(n)[0],n[1]):e(n)}catch(e){Qh(t,"throw",e)}},Gh=function(t){return void 0!==t&&(La.Array===t||Hh[Uh]===t)},Xh=function(t,e){var n=arguments.length<2?jh(t):e;if(ut(n))return ue(ht(n,t));throw new Kh(ct(t)+" is not iterable")},Vh=Array,Wh=Ft("iterator"),qh=!1;try{var Yh=0,Jh={next:function(){return{done:!!Yh++}},return:function(){qh=!0}};Jh[Wh]=function(){return this},Array.from(Jh,(function(){throw 2}))}catch(t){}var Zh=function(t){var e=yt(t),n=Ye(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=void 0!==i;a&&(i=ke(i,r>2?arguments[2]:void 0));var o,s,c,l,u,h,f=jh(e),d=0;if(!f||this===Vh&&Gh(f))for(o=un(e),s=n?new this(o):Vh(o);o>d;d++)h=a?i(e[d],d):e[d],Vi(s,d,h);else for(s=n?new this:[],u=(l=Xh(e,f)).next;!(c=ht(u,l)).done;d++)h=a?zh(l,i,[c.value,d],!0):c.value,Vi(s,d,h);return s.length=d,s},tf=function(t,e){try{if(!e&&!qh)return!1}catch(t){return!1}var n=!1;try{var r={};r[Wh]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},ef=!tf((function(t){Array.from(t)}));Dn({target:"Array",stat:!0,forced:ef},{from:Zh});var nf=$.Array.from,rf=nf,af=TypeError,of=Ft("match"),sf=function(t){if(Ws(t))throw new af("The method doesn't accept regular expressions");return t},cf=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[of]=!1,"/./"[t](e)}catch(t){}}return!1},lf=(ye.f,ie("".slice)),uf=Math.min,hf=cf("startsWith");Dn({target:"String",proto:!0,forced:!hf},{startsWith:function(t){var e=Cr(U(this));sf(t);var n=cn(uf(arguments.length>1?arguments[1]:void 0,e.length)),r=Cr(t);return lf(e,n,n+r.length)===r}});var ff=Ni("String","startsWith"),df=String.prototype,Af=function(t){var e=t.startsWith;return"string"==typeof t||t===df||rt(df,t)&&e===df.startsWith?ff:e},gf=r((function(t,e){t.exports=function(){var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),a=/Edge\/(\d+)/.exec(t),o=r||i||a,s=o&&(r?document.documentMode||6:+(a||i)[1]),c=!a&&/WebKit\//.test(t),l=c&&/Qt\/\d+\.\d+/.test(t),u=!a&&/Chrome\//.test(t),h=/Opera\//.test(t),f=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),A=/PhantomJS/.test(t),g=!a&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),p=/Android/.test(t),m=g||p||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),b=g||/Mac/.test(e),v=/\bCrOS\b/.test(t),y=/win/i.test(e),w=h&&t.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(h=!1,c=!0);var k=b&&(l||h&&(null==w||w<12.11)),x=n||o&&s>=9;function C(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var E,T=function(t,e){var n=t.className,r=C(e).exec(n);if(r){var i=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function B(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function _(t,e){return B(t).appendChild(e)}function S(t,e,n,r){var i=document.createElement(t);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof e)i.appendChild(document.createTextNode(e));else if(e)for(var a=0;a=e)return o+(e-a);o+=s-a,o+=n-o%n,a=s+1}}g?F=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:o&&(F=function(t){try{t.select()}catch(t){}});var Q=function(){this.id=null,this.f=null,this.time=0,this.handler=N(this.onTimeout,this)};function U(t,e){for(var n=0;n=e)return r+Math.min(o,e-i);if(i+=a-r,r=a+1,(i+=n-i%n)>=e)return r}}var X=[""];function V(t){for(;X.length<=t;)X.push(W(X)+" ");return X[t]}function W(t){return t[t.length-1]}function q(t,e){for(var n=[],r=0;r"€"&&(t.toUpperCase()!=t.toLowerCase()||tt.test(t))}function nt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&et(t))||e.test(t):et(t)}function rt(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var it=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function at(t){return t.charCodeAt(0)>=768&&it.test(t)}function ot(t,e,n){for(;(n<0?e>0:en?-1:1;;){if(e==n)return e;var i=(e+n)/2,a=r<0?Math.ceil(i):Math.floor(i);if(a==e)return t(a)?e:n;t(a)?n=a:e=a+r}}function ct(t,e,n,r){if(!t)return r(e,n,"ltr",0);for(var i=!1,a=0;ae||e==n&&o.to==e)&&(r(Math.max(o.from,e),Math.min(o.to,n),1==o.level?"rtl":"ltr",a),i=!0)}i||r(e,n,"ltr")}var lt=null;function ut(t,e,n){var r;lt=null;for(var i=0;ie)return i;a.to==e&&(a.from!=a.to&&"before"==n?r=i:lt=i),a.from==e&&(a.from!=a.to&&"before"!=n?r=i:lt=i)}return null!=r?r:lt}var ht=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",e="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?t.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?e.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,o=/[Lb1n]/,s=/[1n]/;function c(t,e,n){this.level=t,this.from=e,this.to=n}return function(t,e){var l="ltr"==e?"L":"R";if(0==t.length||"ltr"==e&&!r.test(t))return!1;for(var u=t.length,h=[],f=0;f-1&&(r[e]=i.slice(0,a).concat(i.slice(a+1)))}}}function mt(t,e){var n=gt(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function wt(t){t.prototype.on=function(t,e){At(this,t,e)},t.prototype.off=function(t,e){pt(this,t,e)}}function kt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function xt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Ct(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function Et(t){kt(t),xt(t)}function Tt(t){return t.target||t.srcElement}function Bt(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),b&&t.ctrlKey&&1==e&&(e=3),e}var _t,St,Lt=function(){if(o&&s<9)return!1;var t=S("div");return"draggable"in t||"dragDrop"in t}();function It(t){if(null==_t){var e=S("span","​");_(t,S("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(_t=e.offsetWidth<=1&&e.offsetHeight>2&&!(o&&s<8))}var n=_t?S("span","​"):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Mt(t){if(null!=St)return St;var e=_(t,document.createTextNode("AخA")),n=E(e,0,1).getBoundingClientRect(),r=E(e,1,2).getBoundingClientRect();return B(t),!(!n||n.left==n.right)&&(St=r.right-n.right<3)}var Ot,Dt=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],r=t.length;e<=r;){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var a=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),o=a.indexOf("\r");-1!=o?(n.push(a.slice(0,o)),e+=o+1):(n.push(a),e=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Ft=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Nt="oncopy"in(Ot=S("div"))||(Ot.setAttribute("oncopy","return;"),"function"==typeof Ot.oncopy),Rt=null;function Pt(t){if(null!=Rt)return Rt;var e=_(t,S("span","x")),n=e.getBoundingClientRect(),r=E(e,0,1).getBoundingClientRect();return Rt=Math.abs(n.left-r.left)>1}var Qt={},Ut={};function Ht(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),Qt[t]=e}function $t(t,e){Ut[t]=e}function jt(t){if("string"==typeof t&&Ut.hasOwnProperty(t))t=Ut[t];else if(t&&"string"==typeof t.name&&Ut.hasOwnProperty(t.name)){var e=Ut[t.name];"string"==typeof e&&(e={name:e}),(t=Z(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return jt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return jt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Kt(t,e){e=jt(e);var n=Qt[e.name];if(!n)return Kt(t,"text/plain");var r=n(t,e);if(zt.hasOwnProperty(e.name)){var i=zt[e.name];for(var a in i)i.hasOwnProperty(a)&&(r.hasOwnProperty(a)&&(r["_"+a]=r[a]),r[a]=i[a])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var o in e.modeProps)r[o]=e.modeProps[o];return r}var zt={};function Gt(t,e){R(e,zt.hasOwnProperty(t)?zt[t]:zt[t]={})}function Xt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var i=e[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Vt(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function Wt(t,e,n){return!t.startState||t.startState(e,n)}var qt=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Yt(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var r=0;;++r){var i=n.children[r],a=i.chunkSize();if(e=t.first&&en?ae(n,Yt(t,n).text.length):de(e,Yt(t,e.line).text.length)}function de(t,e){var n=t.ch;return null==n||n>e?ae(t.line,e):n<0?ae(t.line,0):t}function Ae(t,e){for(var n=[],r=0;r=this.string.length},qt.prototype.sol=function(){return this.pos==this.lineStart},qt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qt.prototype.next=function(){if(this.pose},qt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},qt.prototype.skipToEnd=function(){this.pos=this.string.length},qt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},qt.prototype.backUp=function(t){this.pos-=t},qt.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var i=function(t){return n?t.toLowerCase():t};if(i(this.string.substr(this.pos,t.length))==i(t))return!1!==e&&(this.pos+=t.length),!0},qt.prototype.current=function(){return this.string.slice(this.start,this.pos)},qt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},qt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},qt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var ge=function(t,e){this.state=t,this.lookAhead=e},pe=function(t,e,n,r){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function me(t,e,n,r){var i=[t.state.modeGen],a={};Te(t,e.text,t.doc.mode,n,(function(t,e){return i.push(t,e)}),a,r);for(var o=n.state,s=function(r){n.baseTokens=i;var s=t.state.overlays[r],c=1,l=0;n.state=!0,Te(t,e.text,s.mode,n,(function(t,e){for(var n=c;lt&&i.splice(c,1,t,i[c+1],r),c+=2,l=Math.min(t,r)}if(e)if(s.opaque)i.splice(n,c-n,t,"overlay "+e),c=n+2;else for(;nt.options.maxHighlightLength&&Xt(t.doc.mode,r.state),a=me(t,e,r);i&&(r.state=i),e.stateAfter=r.save(!i),e.styles=a.styles,a.classes?e.styleClasses=a.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function ve(t,e,n){var r=t.doc,i=t.display;if(!r.mode.startState)return new pe(r,!0,e);var a=Be(t,e,n),o=a>r.first&&Yt(r,a-1).stateAfter,s=o?pe.fromSaved(r,o,a):new pe(r,Wt(r.mode),a);return r.iter(a,e,(function(n){ye(t,n.text,s);var r=s.line;n.stateAfter=r==e-1||r%5==0||r>=i.viewFrom&&re.start)return a}throw new Error("Mode "+t.name+" failed to advance stream.")}pe.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},pe.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},pe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},pe.fromSaved=function(t,e,n){return e instanceof ge?new pe(t,Xt(t.mode,e.state),n,e.lookAhead):new pe(t,Xt(t.mode,e),n)},pe.prototype.save=function(t){var e=!1!==t?Xt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ge(e,this.maxLookAhead):e};var xe=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function Ce(t,e,n,r){var i,a,o=t.doc,s=o.mode,c=Yt(o,(e=fe(o,e)).line),l=ve(t,e.line,n),u=new qt(c.text,t.options.tabSize,l);for(r&&(a=[]);(r||u.post.options.maxHighlightLength?(s=!1,o&&ye(t,e,r,h.pos),h.pos=e.length,c=null):c=Ee(ke(n,h,r.state,f),a),f){var d=f[0].name;d&&(c="m-"+(c?d+" "+c:d))}if(!s||u!=c){for(;lo;--s){if(s<=a.first)return a.first;var c=Yt(a,s-1),l=c.stateAfter;if(l&&(!n||s+(l instanceof ge?l.lookAhead:0)<=a.modeFrontier))return s;var u=P(c.text,null,t.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}function _e(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontiern;r--){var i=Yt(t,r).stateAfter;if(i&&(!(i instanceof ge)||r+i.lookAhead=e:a.to>e);(r||(r=[])).push(new Oe(o,a.from,s?null:a.to))}}return r}function Pe(t,e,n){var r;if(t)for(var i=0;i=e:a.to>e)||a.from==e&&"bookmark"==o.type&&(!n||a.marker.insertLeft)){var s=null==a.from||(o.inclusiveLeft?a.from<=e:a.from0&&s)for(var v=0;v0)){var u=[c,1],h=oe(l.from,s.from),f=oe(l.to,s.to);(h<0||!o.inclusiveLeft&&!h)&&u.push({from:l.from,to:s.from}),(f>0||!o.inclusiveRight&&!f)&&u.push({from:s.to,to:l.to}),i.splice.apply(i,u),c+=u.length-3}}return i}function $e(t){var e=t.markedSpans;if(e){for(var n=0;ne)&&(!n||Ge(n,a.marker)<0)&&(n=a.marker)}return n}function Ye(t,e,n,r,i){var a=Yt(t,e),o=Le&&a.markedSpans;if(o)for(var s=0;s=0&&h<=0||u<=0&&h>=0)&&(u<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?oe(l.to,n)>=0:oe(l.to,n)>0)||u>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?oe(l.from,r)<=0:oe(l.from,r)<0)))return!0}}}function Je(t){for(var e;e=Ve(t);)t=e.find(-1,!0).line;return t}function Ze(t){for(var e;e=We(t);)t=e.find(1,!0).line;return t}function tn(t){for(var e,n;e=We(t);)t=e.find(1,!0).line,(n||(n=[])).push(t);return n}function en(t,e){var n=Yt(t,e),r=Je(n);return n==r?e:ee(r)}function nn(t,e){if(e>t.lastLine())return e;var n,r=Yt(t,e);if(!rn(t,r))return e;for(;n=We(r);)r=n.find(1,!0).line;return ee(r)+1}function rn(t,e){var n=Le&&e.markedSpans;if(n)for(var r=void 0,i=0;ie.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var ln=function(t,e,n){this.text=t,je(this,e),this.height=n?n(this):1};function un(t,e,n,r){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),$e(t),je(t,n);var i=r?r(t):1;i!=t.height&&te(t,i)}function hn(t){t.parent=null,$e(t)}ln.prototype.lineNo=function(){return ee(this)},wt(ln);var fn={},dn={};function An(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?dn:fn;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function gn(t,e){var n=L("span",null,null,c?"padding-right: .1px":null),r={pre:L("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var a=i?e.rest[i-1]:e.line,o=void 0;r.pos=0,r.addToken=mn,Mt(t.display.measure)&&(o=ft(a,t.doc.direction))&&(r.addToken=vn(r.addToken,o)),r.map=[],wn(a,r,be(t,a,e!=t.display.externalMeasured&&ee(a))),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=D(a.styleClasses.bgClass,r.bgClass||"")),a.styleClasses.textClass&&(r.textClass=D(a.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(It(t.display.measure))),0==i?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(c){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return mt(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=D(r.pre.className,r.textClass||"")),r}function pn(t){var e=S("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function mn(t,e,n,r,i,a,c){if(e){var l,u=t.splitSpaces?bn(e,t.trailingSpace):e,h=t.cm.state.specialChars,f=!1;if(h.test(e)){l=document.createDocumentFragment();for(var d=0;;){h.lastIndex=d;var A=h.exec(e),g=A?A.index-d:e.length-d;if(g){var p=document.createTextNode(u.slice(d,d+g));o&&s<9?l.appendChild(S("span",[p])):l.appendChild(p),t.map.push(t.pos,t.pos+g,p),t.col+=g,t.pos+=g}if(!A)break;d+=g+1;var m=void 0;if("\t"==A[0]){var b=t.cm.options.tabSize,v=b-t.col%b;(m=l.appendChild(S("span",V(v),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),t.col+=v}else"\r"==A[0]||"\n"==A[0]?((m=l.appendChild(S("span","\r"==A[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",A[0]),t.col+=1):((m=t.cm.options.specialCharPlaceholder(A[0])).setAttribute("cm-text",A[0]),o&&s<9?l.appendChild(S("span",[m])):l.appendChild(m),t.col+=1);t.map.push(t.pos,t.pos+1,m),t.pos++}}else t.col+=e.length,l=document.createTextNode(u),t.map.push(t.pos,t.pos+e.length,l),o&&s<9&&(f=!0),t.pos+=e.length;if(t.trailingSpace=32==u.charCodeAt(e.length-1),n||r||i||f||a||c){var y=n||"";r&&(y+=r),i&&(y+=i);var w=S("span",[l],y,a);if(c)for(var k in c)c.hasOwnProperty(k)&&"style"!=k&&"class"!=k&&w.setAttribute(k,c[k]);return t.content.appendChild(w)}t.content.appendChild(l)}}function bn(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,r="",i=0;il&&h.from<=l);f++);if(h.to>=u)return t(n,r,i,a,o,s,c);t(n,r.slice(0,h.to-l),i,a,null,s,c),a=null,r=r.slice(h.to-l),l=h.to}}}function yn(t,e,n,r){var i=!r&&n.widgetNode;i&&t.map.push(t.pos,t.pos+e,i),!r&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=e,t.trailingSpace=!1}function wn(t,e,n){var r=t.markedSpans,i=t.text,a=0;if(r)for(var o,s,c,l,u,h,f,d=i.length,A=0,g=1,p="",m=0;;){if(m==A){c=l=u=s="",f=null,h=null,m=1/0;for(var b=[],v=void 0,y=0;yA||k.collapsed&&w.to==A&&w.from==A)){if(null!=w.to&&w.to!=A&&m>w.to&&(m=w.to,l=""),k.className&&(c+=" "+k.className),k.css&&(s=(s?s+";":"")+k.css),k.startStyle&&w.from==A&&(u+=" "+k.startStyle),k.endStyle&&w.to==m&&(v||(v=[])).push(k.endStyle,w.to),k.title&&((f||(f={})).title=k.title),k.attributes)for(var x in k.attributes)(f||(f={}))[x]=k.attributes[x];k.collapsed&&(!h||Ge(h.marker,k)<0)&&(h=w)}else w.from>A&&m>w.from&&(m=w.from)}if(v)for(var C=0;C=d)break;for(var T=Math.min(d,m);;){if(p){var B=A+p.length;if(!h){var _=B>T?p.slice(0,T-A):p;e.addToken(e,_,o?o+c:c,u,A+_.length==m?l:"",s,f)}if(B>=T){p=p.slice(T-A),A=T;break}A=B,u=""}p=i.slice(a,a=n[g++]),o=An(n[g++],e.cm.options)}}else for(var S=1;S2&&a.push((c.bottom+l.top)/2-n.top)}}a.push(n.bottom-n.top)}}function Jn(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var r=0;rn)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}function Zn(t,e){var n=ee(e=Je(e)),r=t.display.externalMeasured=new kn(t.doc,e,n);r.lineN=n;var i=r.built=gn(t,r);return r.text=i.pre,_(t.display.lineMeasure,i.pre),r}function tr(t,e,n,r){return rr(t,nr(t,e),n,r)}function er(t,e){if(e>=t.display.viewFrom&&e=n.lineN&&ee)&&(i=(a=c-s)-1,e>=c&&(o="right")),null!=i){if(r=t[l+2],s==c&&n==(r.insertLeft?"left":"right")&&(o=n),"left"==n&&0==i)for(;l&&t[l-2]==t[l-3]&&t[l-1].insertLeft;)r=t[2+(l-=3)],o="left";if("right"==n&&i==c-s)for(;l=0&&(n=t[i]).left==n.right;i--);return n}function cr(t,e,n,r){var i,a=or(e.map,n,r),c=a.node,l=a.start,u=a.end,h=a.collapse;if(3==c.nodeType){for(var f=0;f<4;f++){for(;l&&at(e.line.text.charAt(a.coverStart+l));)--l;for(;a.coverStart+u0&&(h=r="right"),i=t.options.lineWrapping&&(d=c.getClientRects()).length>1?d["right"==r?d.length-1:0]:c.getBoundingClientRect()}if(o&&s<9&&!l&&(!i||!i.left&&!i.right)){var A=c.parentNode.getClientRects()[0];i=A?{left:A.left,right:A.left+Lr(t.display),top:A.top,bottom:A.bottom}:ar}for(var g=i.top-e.rect.top,p=i.bottom-e.rect.top,m=(g+p)/2,b=e.view.measure.heights,v=0;v=r.text.length?(c=r.text.length,l="before"):c<=0&&(c=0,l="after"),!s)return o("before"==l?c-1:c,"before"==l);function u(t,e,n){return o(n?t-1:t,1==s[e].level!=n)}var h=ut(s,c,l),f=lt,d=u(c,h,"before"==l);return null!=f&&(d.other=u(c,f,"before"!=l)),d}function yr(t,e){var n=0;e=fe(t.doc,e),t.options.lineWrapping||(n=Lr(t.display)*e.ch);var r=Yt(t.doc,e.line),i=on(r)+zn(t.display);return{left:n,right:n,top:i,bottom:i+r.height}}function wr(t,e,n,r,i){var a=ae(t,e,n);return a.xRel=i,r&&(a.outside=r),a}function kr(t,e,n){var r=t.doc;if((n+=t.display.viewOffset)<0)return wr(r.first,0,null,-1,-1);var i=ne(r,n),a=r.first+r.size-1;if(i>a)return wr(r.first+r.size-1,Yt(r,a).text.length,null,1,1);e<0&&(e=0);for(var o=Yt(r,i);;){var s=Tr(t,o,i,e,n),c=qe(o,s.ch+(s.xRel>0||s.outside>0?1:0));if(!c)return s;var l=c.find(1);if(l.line==i)return l;o=Yt(r,i=l.line)}}function xr(t,e,n,r){r-=gr(e);var i=e.text.length,a=st((function(e){return rr(t,n,e-1).bottom<=r}),i,0);return{begin:a,end:i=st((function(e){return rr(t,n,e).top>r}),a,i)}}function Cr(t,e,n,r){return n||(n=nr(t,e)),xr(t,e,n,pr(t,e,rr(t,n,r),"line").top)}function Er(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function Tr(t,e,n,r,i){i-=on(e);var a=nr(t,e),o=gr(e),s=0,c=e.text.length,l=!0,u=ft(e,t.doc.direction);if(u){var h=(t.options.lineWrapping?_r:Br)(t,e,n,a,u,r,i);s=(l=1!=h.level)?h.from:h.to-1,c=l?h.to:h.from-1}var f,d,A=null,g=null,p=st((function(e){var n=rr(t,a,e);return n.top+=o,n.bottom+=o,!!Er(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(A=e,g=n),!0)}),s,c),m=!1;if(g){var b=r-g.left=y.bottom?1:0}return wr(n,p=ot(e.text,p,1),d,m,r-f)}function Br(t,e,n,r,i,a,o){var s=st((function(s){var c=i[s],l=1!=c.level;return Er(vr(t,ae(n,l?c.to:c.from,l?"before":"after"),"line",e,r),a,o,!0)}),0,i.length-1),c=i[s];if(s>0){var l=1!=c.level,u=vr(t,ae(n,l?c.from:c.to,l?"after":"before"),"line",e,r);Er(u,a,o,!0)&&u.top>o&&(c=i[s-1])}return c}function _r(t,e,n,r,i,a,o){var s=xr(t,e,r,o),c=s.begin,l=s.end;/\s/.test(e.text.charAt(l-1))&&l--;for(var u=null,h=null,f=0;f=l||d.to<=c)){var A=rr(t,r,1!=d.level?Math.min(l,d.to)-1:Math.max(c,d.from)).right,g=Ag)&&(u=d,h=g)}}return u||(u=i[i.length-1]),u.froml&&(u={from:u.from,to:l,level:u.level}),u}function Sr(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==ir){ir=S("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)ir.appendChild(document.createTextNode("x")),ir.appendChild(S("br"));ir.appendChild(document.createTextNode("x"))}_(t.measure,ir);var n=ir.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),B(t.measure),n||1}function Lr(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=S("span","xxxxxxxxxx"),n=S("pre",[e],"CodeMirror-line-like");_(t.measure,n);var r=e.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function Ir(t){for(var e=t.display,n={},r={},i=e.gutters.clientLeft,a=e.gutters.firstChild,o=0;a;a=a.nextSibling,++o){var s=t.display.gutterSpecs[o].className;n[s]=a.offsetLeft+a.clientLeft+i,r[s]=a.clientWidth}return{fixedPos:Mr(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function Mr(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Or(t){var e=Sr(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/Lr(t.display)-3);return function(i){if(rn(t.doc,i))return 0;var a=0;if(i.widgets)for(var o=0;o0&&(c=Yt(t.doc,l.line).text).length==l.ch){var u=P(c,c.length,t.options.tabSize)-c.length;l=ae(l.line,Math.max(0,Math.round((a-Xn(t.display).left)/Lr(t.display))-u))}return l}function Nr(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,r=0;re)&&(i.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=i.viewTo)Le&&en(t.doc,e)i.viewFrom?Qr(t):(i.viewFrom+=r,i.viewTo+=r);else if(e<=i.viewFrom&&n>=i.viewTo)Qr(t);else if(e<=i.viewFrom){var a=Ur(t,n,n+r,1);a?(i.view=i.view.slice(a.index),i.viewFrom=a.lineN,i.viewTo+=r):Qr(t)}else if(n>=i.viewTo){var o=Ur(t,e,e,-1);o?(i.view=i.view.slice(0,o.index),i.viewTo=o.lineN):Qr(t)}else{var s=Ur(t,e,e,-1),c=Ur(t,n,n+r,1);s&&c?(i.view=i.view.slice(0,s.index).concat(xn(t,s.lineN,c.lineN)).concat(i.view.slice(c.index)),i.viewTo+=r):Qr(t)}var l=i.externalMeasured;l&&(n=i.lineN&&e=r.viewTo)){var a=r.view[Nr(t,e)];if(null!=a.node){var o=a.changes||(a.changes=[]);-1==U(o,n)&&o.push(n)}}}function Qr(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function Ur(t,e,n,r){var i,a=Nr(t,e),o=t.display.view;if(!Le||n==t.doc.first+t.doc.size)return{index:a,lineN:n};for(var s=t.display.viewFrom,c=0;c0){if(a==o.length-1)return null;i=s+o[a].size-e,a++}else i=s-e;e+=i,n+=i}for(;en(t.doc,n)!=n;){if(a==(r<0?0:o.length-1))return null;n+=r*o[a-(r<0?1:0)].size,a+=r}return{index:a,lineN:n}}function Hr(t,e,n){var r=t.display;0==r.view.length||e>=r.viewTo||n<=r.viewFrom?(r.view=xn(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=xn(t,e,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Nr(t,n)))),r.viewTo=n}function $r(t){for(var e=t.display.view,n=0,r=0;r=t.display.viewTo||s.to().line0?e.blinker=setInterval((function(){t.hasFocus()||Jr(t),e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function Wr(t){t.state.focused||(t.display.input.focus(),Yr(t))}function qr(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,Jr(t))}),100)}function Yr(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(mt(t,"focus",t,e),t.state.focused=!0,O(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),c&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),Vr(t))}function Jr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(mt(t,"blur",t,e),t.state.focused=!1,T(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Zr(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=0;r.005||f<-.005)&&(te(i.line,c),ti(i.line),i.rest))for(var d=0;dt.display.sizerWidth){var A=Math.ceil(l/Lr(t.display));A>t.display.maxLineLength&&(t.display.maxLineLength=A,t.display.maxLine=i.line,t.display.maxLineChanged=!0)}}}}function ti(t){if(t.widgets)for(var e=0;e=o&&(a=ne(e,on(Yt(e,c))-t.wrapper.clientHeight),o=c)}return{from:a,to:Math.max(o,a+1)}}function ni(t,e){if(!bt(t,"scrollCursorIntoView")){var n=t.display,r=n.sizer.getBoundingClientRect(),i=null;if(e.top+r.top<0?i=!0:e.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!A){var a=S("div","​",null,"position: absolute;\n top: "+(e.top-n.viewOffset-zn(t.display))+"px;\n height: "+(e.bottom-e.top+Vn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(a),a.scrollIntoView(i),t.display.lineSpace.removeChild(a)}}}function ri(t,e,n,r){var i;null==r&&(r=0),t.options.lineWrapping||e!=n||(n="before"==(e=e.ch?ae(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e).sticky?ae(e.line,e.ch+1,"before"):e);for(var a=0;a<5;a++){var o=!1,s=vr(t,e),c=n&&n!=e?vr(t,n):s,l=ai(t,i={left:Math.min(s.left,c.left),top:Math.min(s.top,c.top)-r,right:Math.max(s.left,c.left),bottom:Math.max(s.bottom,c.bottom)+r}),u=t.doc.scrollTop,h=t.doc.scrollLeft;if(null!=l.scrollTop&&(fi(t,l.scrollTop),Math.abs(t.doc.scrollTop-u)>1&&(o=!0)),null!=l.scrollLeft&&(Ai(t,l.scrollLeft),Math.abs(t.doc.scrollLeft-h)>1&&(o=!0)),!o)break}return i}function ii(t,e){var n=ai(t,e);null!=n.scrollTop&&fi(t,n.scrollTop),null!=n.scrollLeft&&Ai(t,n.scrollLeft)}function ai(t,e){var n=t.display,r=Sr(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,a=qn(t),o={};e.bottom-e.top>a&&(e.bottom=e.top+a);var s=t.doc.height+Gn(n),c=e.tops-r;if(e.topi+a){var u=Math.min(e.top,(l?s:e.bottom)-a);u!=i&&(o.scrollTop=u)}var h=t.options.fixedGutter?0:n.gutters.offsetWidth,f=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft-h,d=Wn(t)-n.gutters.offsetWidth,A=e.right-e.left>d;return A&&(e.right=e.left+d),e.left<10?o.scrollLeft=0:e.leftd+f-3&&(o.scrollLeft=e.right+(A?0:10)-d),o}function oi(t,e){null!=e&&(ui(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function si(t){ui(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function ci(t,e,n){null==e&&null==n||ui(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function li(t,e){ui(t),t.curOp.scrollToPos=e}function ui(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,hi(t,yr(t,e.from),yr(t,e.to),e.margin))}function hi(t,e,n,r){var i=ai(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-r,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+r});ci(t,i.scrollLeft,i.scrollTop)}function fi(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||ji(t,{top:e}),di(t,e,!0),n&&ji(t),Fi(t,100))}function di(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function Ai(t,e,n,r){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,Xi(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function gi(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+Gn(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Vn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var pi=function(t,e,n){this.cm=n;var r=this.vert=S("div",[S("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=S("div",[S("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,t(r),t(i),At(r,"scroll",(function(){r.clientHeight&&e(r.scrollTop,"vertical")})),At(i,"scroll",(function(){i.clientWidth&&e(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,o&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pi.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0";var i=t.viewHeight-(e?r:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px";var a=t.viewWidth-t.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+a)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},pi.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},pi.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},pi.prototype.zeroWidthHack=function(){var t=b&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Q,this.disableVert=new Q},pi.prototype.enableZeroWidthBar=function(t,e,n){function r(){var i=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,r)}t.style.pointerEvents="auto",e.set(1e3,r)},pi.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var mi=function(){};function bi(t,e){e||(e=gi(t));var n=t.display.barWidth,r=t.display.barHeight;vi(t,e);for(var i=0;i<4&&n!=t.display.barWidth||r!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&Zr(t),vi(t,gi(t)),n=t.display.barWidth,r=t.display.barHeight}function vi(t,e){var n=t.display,r=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}mi.prototype.update=function(){return{bottom:0,right:0}},mi.prototype.setScrollLeft=function(){},mi.prototype.setScrollTop=function(){},mi.prototype.clear=function(){};var yi={native:pi,null:mi};function wi(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&T(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new yi[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),At(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?Ai(t,e):fi(t,e)}),t),t.display.scrollbars.addClass&&O(t.display.wrapper,t.display.scrollbars.addClass)}var ki=0;function xi(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ki},En(t.curOp)}function Ci(t){var e=t.curOp;e&&Bn(e,(function(t){for(var e=0;e=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new Ri(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Bi(t){t.updatedDisplay=t.mustUpdate&&Hi(t.cm,t.update)}function _i(t){var e=t.cm,n=e.display;t.updatedDisplay&&Zr(e),t.barMeasure=gi(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=tr(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Vn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Wn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Si(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft=t.display.viewTo)){var n=+new Date+t.options.workTime,r=ve(t,e.highlightFrontier),i=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(a){if(r.line>=t.display.viewFrom){var o=a.styles,s=a.text.length>t.options.maxHighlightLength?Xt(e.mode,r.state):null,c=me(t,a,r,!0);s&&(r.state=s),a.styles=c.styles;var l=a.styleClasses,u=c.classes;u?a.styleClasses=u:l&&(a.styleClasses=null);for(var h=!o||o.length!=a.styles.length||l!=u&&(!l||!u||l.bgClass!=u.bgClass||l.textClass!=u.textClass),f=0;!h&&fn)return Fi(t,t.options.workDelay),!0})),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),i.length&&Ii(t,(function(){for(var e=0;e=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==$r(t))return!1;Vi(t)&&(Qr(t),e.dims=Ir(t));var i=r.first+r.size,a=Math.max(e.visible.from-t.options.viewportMargin,r.first),o=Math.min(i,e.visible.to+t.options.viewportMargin);n.viewFromo&&n.viewTo-o<20&&(o=Math.min(i,n.viewTo)),Le&&(a=en(t.doc,a),o=nn(t.doc,o));var s=a!=n.viewFrom||o!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;Hr(t,a,o),n.viewOffset=on(Yt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var c=$r(t);if(!s&&0==c&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var l=Qi(t);return c>4&&(n.lineDiv.style.display="none"),Ki(t,n.updateLineNumbers,e.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Ui(l),B(n.cursorDiv),B(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,Fi(t,400)),n.updateLineNumbers=null,!0}function $i(t,e){for(var n=e.viewport,r=!0;;r=!1){if(r&&t.options.lineWrapping&&e.oldDisplayWidth!=Wn(t))r&&(e.visible=ei(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+Gn(t.display)-qn(t),n.top)}),e.visible=ei(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!Hi(t,e))break;Zr(t);var i=gi(t);jr(t),bi(t,i),Gi(t,i),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function ji(t,e){var n=new Ri(t,e);if(Hi(t,n)){Zr(t),$i(t,n);var r=gi(t);jr(t),bi(t,r),Gi(t,r),n.finish()}}function Ki(t,e,n){var r=t.display,i=t.options.lineNumbers,a=r.lineDiv,o=a.firstChild;function s(e){var n=e.nextSibling;return c&&b&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var l=r.view,u=r.viewFrom,h=0;h-1&&(d=!1),In(t,f,u,n)),d&&(B(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(ie(t.options,u)))),o=f.node.nextSibling}else{var A=Qn(t,f,u,n);a.insertBefore(A,o)}u+=f.size}for(;o;)o=s(o)}function zi(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px"}function Gi(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Vn(t)+"px"}function Xi(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=Mr(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,a=r+"px",o=0;os.clientWidth,u=s.scrollHeight>s.clientHeight;if(i&&l||a&&u){if(a&&b&&c)t:for(var f=e.target,d=o.view;f!=s;f=f.parentNode)for(var A=0;A=0&&oe(t,r.to())<=0)return n}return-1};var aa=function(t,e){this.anchor=t,this.head=e};function oa(t,e,n){var r=t&&t.options.selectionsMayTouch,i=e[n];e.sort((function(t,e){return oe(t.from(),e.from())})),n=U(e,i);for(var a=1;a0:c>=0){var l=ue(s.from(),o.from()),u=le(s.to(),o.to()),h=s.empty()?o.from()==o.head:s.from()==s.head;a<=n&&--n,e.splice(--a,2,new aa(h?u:l,h?l:u))}}return new ia(e,n)}function sa(t,e){return new ia([new aa(t,e||t)],0)}function ca(t){return t.text?ae(t.from.line+t.text.length-1,W(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function la(t,e){if(oe(t,e.from)<0)return t;if(oe(t,e.to)<=0)return ca(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=ca(e).ch-e.to.ch),ae(n,r)}function ua(t,e){for(var n=[],r=0;r1&&t.remove(s.line+1,A-1),t.insert(s.line+1,m)}Sn(t,"change",t,e)}function ma(t,e,n){function r(t,i,a){if(t.linked)for(var o=0;o1&&!t.done[t.done.length-2].ranges?(t.done.pop(),W(t.done)):void 0}function Ea(t,e,n,r){var i=t.history;i.undone.length=0;var a,o,s=+new Date;if((i.lastOp==r||i.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&i.lastModTime>s-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(a=Ca(i,i.lastOp==r)))o=W(a.changes),0==oe(e.from,e.to)&&0==oe(e.from,o.to)?o.to=ca(e):a.changes.push(ka(t,e));else{var c=W(i.done);for(c&&c.ranges||_a(t.sel,i.done),a={changes:[ka(t,e)],generation:i.generation},i.done.push(a);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=e.origin,o||mt(t,"historyAdded")}function Ta(t,e,n,r){var i=e.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function Ba(t,e,n,r){var i=t.history,a=r&&r.origin;n==i.lastSelOp||a&&i.lastSelOrigin==a&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==a||Ta(t,a,W(i.done),e))?i.done[i.done.length-1]=e:_a(e,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=a,i.lastSelOp=n,r&&!1!==r.clearRedo&&xa(i.undone)}function _a(t,e){var n=W(e);n&&n.ranges&&n.equals(t)||e.push(t)}function Sa(t,e,n,r){var i=e["spans_"+t.id],a=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),(function(n){n.markedSpans&&((i||(i=e["spans_"+t.id]={}))[a]=n.markedSpans),++a}))}function La(t){if(!t)return null;for(var e,n=0;n-1&&(W(s)[h]=l[h],delete l[h])}}}return r}function Da(t,e,n,r){if(r){var i=t.anchor;if(n){var a=oe(e,i)<0;a!=oe(n,i)<0?(i=e,e=n):a!=oe(e,n)<0&&(e=n)}return new aa(i,e)}return new aa(n||e,e)}function Fa(t,e,n,r,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),Ha(t,new ia([Da(t.sel.primary(),e,n,i)],0),r)}function Na(t,e,n){for(var r=[],i=t.cm&&(t.cm.display.shift||t.extend),a=0;a=e.ch:s.to>e.ch))){if(i&&(mt(c,"beforeCursorEnter"),c.explicitlyCleared)){if(a.markedSpans){--o;continue}break}if(!c.atomic)continue;if(n){var h=c.find(r<0?1:-1),f=void 0;if((r<0?u:l)&&(h=Va(t,h,-r,h&&h.line==e.line?a:null)),h&&h.line==e.line&&(f=oe(h,n))&&(r<0?f<0:f>0))return Ga(t,h,e,r,i)}var d=c.find(r<0?-1:1);return(r<0?l:u)&&(d=Va(t,d,r,d.line==e.line?a:null)),d?Ga(t,d,e,r,i):null}}return e}function Xa(t,e,n,r,i){var a=r||1,o=Ga(t,e,n,a,i)||!i&&Ga(t,e,n,a,!0)||Ga(t,e,n,-a,i)||!i&&Ga(t,e,n,-a,!0);return o||(t.cantEdit=!0,ae(t.first,0))}function Va(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?fe(t,ae(e.line-1)):null:n>0&&e.ch==(r||Yt(t,e.line)).text.length?e.line=0;--i)Ja(t,{from:r[i].from,to:r[i].to,text:i?[""]:e.text,origin:e.origin});else Ja(t,e)}}function Ja(t,e){if(1!=e.text.length||""!=e.text[0]||0!=oe(e.from,e.to)){var n=ua(t,e);Ea(t,e,n,t.cm?t.cm.curOp.id:NaN),eo(t,e,n,Qe(t,e));var r=[];ma(t,(function(t,n){n||-1!=U(r,t.history)||(oo(t.history,e),r.push(t.history)),eo(t,e,null,Qe(t,e))}))}}function Za(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var i,a=t.history,o=t.sel,s="undo"==e?a.done:a.undone,c="undo"==e?a.undone:a.done,l=0;l=0;--d){var A=f(d);if(A)return A.v}}}}function to(t,e){if(0!=e&&(t.first+=e,t.sel=new ia(q(t.sel.ranges,(function(t){return new aa(ae(t.anchor.line+e,t.anchor.ch),ae(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){Rr(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;rt.lastLine())){if(e.from.linea&&(e={from:e.from,to:ae(a,Yt(t,a).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Jt(t,e.from,e.to),n||(n=ua(t,e)),t.cm?no(t.cm,e,r):pa(t,e,r),$a(t,n,j),t.cantEdit&&Xa(t,ae(t.firstLine(),0))&&(t.cantEdit=!1)}}function no(t,e,n){var r=t.doc,i=t.display,a=e.from,o=e.to,s=!1,c=a.line;t.options.lineWrapping||(c=ee(Je(Yt(r,a.line))),r.iter(c,o.line+1,(function(t){if(t==i.maxLine)return s=!0,!0}))),r.sel.contains(e.from,e.to)>-1&&vt(t),pa(r,e,n,Or(t)),t.options.lineWrapping||(r.iter(c,a.line+e.text.length,(function(t){var e=sn(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),_e(r,a.line),Fi(t,400);var l=e.text.length-(o.line-a.line)-1;e.full?Rr(t):a.line!=o.line||1!=e.text.length||ga(t.doc,e)?Rr(t,a.line,o.line+1,l):Pr(t,a.line,"text");var u=yt(t,"changes"),h=yt(t,"change");if(h||u){var f={from:a,to:o,text:e.text,removed:e.removed,origin:e.origin};h&&Sn(t,"change",t,f),u&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(f)}t.display.selForContextMenu=null}function ro(t,e,n,r,i){var a;r||(r=n),oe(r,n)<0&&(n=(a=[r,n])[0],r=a[1]),"string"==typeof e&&(e=t.splitLines(e)),Ya(t,{from:n,to:r,text:e,origin:i})}function io(t,e,n,r){n1||!(this.children[0]instanceof co))){var s=[];this.collapse(s),this.children=[new co(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e50){for(var o=i.lines.length%25+25,s=o;s10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r0||0==o&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=L("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(Ye(t,e.line,e,n,a)||e.line!=n.line&&Ye(t,n.line,e,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");Me()}a.addToHistory&&Ea(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var s,c=e.line,l=t.cm;if(t.iter(c,n.line+1,(function(t){l&&a.collapsed&&!l.options.lineWrapping&&Je(t)==l.display.maxLine&&(s=!0),a.collapsed&&c!=e.line&&te(t,0),Ne(t,new Oe(a,c==e.line?e.ch:null,c==n.line?n.ch:null)),++c})),a.collapsed&&t.iter(e.line,n.line+1,(function(e){rn(t,e)&&te(e,0)})),a.clearOnEnter&&At(a,"beforeCursorEnter",(function(){return a.clear()})),a.readOnly&&(Ie(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),a.collapsed&&(a.id=++Ao,a.atomic=!0),l){if(s&&(l.curOp.updateMaxLine=!0),a.collapsed)Rr(l,e.line,n.line+1);else if(a.className||a.startStyle||a.endStyle||a.css||a.attributes||a.title)for(var u=e.line;u<=n.line;u++)Pr(l,u,"text");a.atomic&&Ka(l.doc),Sn(l,"markerAdded",l,a)}return a}go.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&xi(t),yt(this,"clear")){var n=this.find();n&&Sn(this,"clear",n.from,n.to)}for(var r=null,i=null,a=0;at.display.maxLineLength&&(t.display.maxLine=l,t.display.maxLineLength=u,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&Rr(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Ka(t.doc)),t&&Sn(t,"markerCleared",t,this,r,i),e&&Ci(t),this.parent&&this.parent.clear()}},go.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i=0;c--)Ya(this,r[c]);s?Ua(this,s):this.cm&&si(this.cm)})),undo:Di((function(){Za(this,"undo")})),redo:Di((function(){Za(this,"redo")})),undoSelection:Di((function(){Za(this,"undo",!0)})),redoSelection:Di((function(){Za(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r=t.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,n){t=fe(this,t),e=fe(this,e);var r=[],i=t.line;return this.iter(t.line,e.line+1,(function(a){var o=a.markedSpans;if(o)for(var s=0;s=c.to||null==c.from&&i!=t.line||null!=c.from&&i==e.line&&c.from>=e.ch||n&&!n(c.marker)||r.push(c.marker.parent||c.marker)}++i})),r},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var r=0;rt)return e=t,!0;t-=a,++n})),fe(this,ae(n,e))},indexFromPos:function(t){var e=(t=fe(this,t)).ch;if(t.linee&&(e=t.from),null!=t.to&&t.to-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var h=t.dataTransfer.getData("Text");if(h){var f;if(e.state.draggingText&&!e.state.draggingText.copy&&(f=e.listSelections()),$a(e.doc,sa(n,n)),f)for(var d=0;d=0;e--)ro(t.doc,"",r[e].from,r[e].to,"+delete");si(t)}))}function Xo(t,e,n){var r=ot(t.text,e+n,n);return r<0||r>t.text.length?null:r}function Vo(t,e,n){var r=Xo(t,e.ch,n);return null==r?null:new ae(e.line,r,n<0?"after":"before")}function Wo(t,e,n,r,i){if(t){"rtl"==e.doc.direction&&(i=-i);var a=ft(n,e.doc.direction);if(a){var o,s=i<0?W(a):a[0],c=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var l=nr(e,n);o=i<0?n.text.length-1:0;var u=rr(e,l,o).top;o=st((function(t){return rr(e,l,t).top==u}),i<0==(1==s.level)?s.from:s.to-1,o),"before"==c&&(o=Xo(n,o,1))}else o=i<0?s.to:s.from;return new ae(r,o,c)}}return new ae(r,i<0?n.text.length:0,i<0?"before":"after")}function qo(t,e,n,r){var i=ft(e,t.doc.direction);if(!i)return Vo(e,n,r);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var a=ut(i,n.ch,n.sticky),o=i[a];if("ltr"==t.doc.direction&&o.level%2==0&&(r>0?o.to>n.ch:o.from=o.from&&f>=u.begin)){var d=h?"before":"after";return new ae(n.line,f,d)}}var A=function(t,e,r){for(var a=function(t,e){return e?new ae(n.line,c(t,1),"before"):new ae(n.line,t,"after")};t>=0&&t0==(1!=o.level),l=s?r.begin:c(r.end,-1);if(o.from<=l&&l0?u.end:c(u.begin,-1);return null==p||r>0&&p==e.text.length||!(g=A(r>0?0:i.length-1,r,l(p)))?null:g}Po.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Po.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Po.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Po.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Po.default=b?Po.macDefault:Po.pcDefault;var Yo={selectAll:Wa,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),j)},killLine:function(t){return Go(t,(function(e){if(e.empty()){var n=Yt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line0)i=new ae(i.line,i.ch+1),t.replaceRange(a.charAt(i.ch-1)+a.charAt(i.ch-2),ae(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var o=Yt(t.doc,i.line-1).text;o&&(i=new ae(i.line,1),t.replaceRange(a.charAt(0)+t.doc.lineSeparator()+o.charAt(o.length-1),ae(i.line-1,o.length-1),i,"+transpose"))}n.push(new aa(i,i))}t.setSelections(n)}))},newlineAndIndent:function(t){return Ii(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;r-1&&(oe((i=s.ranges[i]).from(),e)<0||e.xRel>0)&&(oe(i.to(),e)>0||e.xRel<0)?ks(t,r,e,a):Cs(t,r,e,a)}function ks(t,e,n,r){var i=t.display,a=!1,l=Mi(t,(function(e){c&&(i.scroller.draggable=!1),t.state.draggingText=!1,pt(i.wrapper.ownerDocument,"mouseup",l),pt(i.wrapper.ownerDocument,"mousemove",u),pt(i.scroller,"dragstart",h),pt(i.scroller,"drop",l),a||(kt(e),r.addNew||Fa(t.doc,n,null,null,r.extend),c&&!f||o&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(t){a=a||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},h=function(){return a=!0};c&&(i.scroller.draggable=!0),t.state.draggingText=l,l.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),At(i.wrapper.ownerDocument,"mouseup",l),At(i.wrapper.ownerDocument,"mousemove",u),At(i.scroller,"dragstart",h),At(i.scroller,"drop",l),qr(t),setTimeout((function(){return i.input.focus()}),20)}function xs(t,e,n){if("char"==n)return new aa(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new aa(ae(e.line,0),fe(t.doc,ae(e.line+1,0)));var r=n(t,e);return new aa(r.from,r.to)}function Cs(t,e,n,r){var i=t.display,a=t.doc;kt(e);var o,s,c=a.sel,l=c.ranges;if(r.addNew&&!r.extend?(s=a.sel.contains(n),o=s>-1?l[s]:new aa(n,n)):(o=a.sel.primary(),s=a.sel.primIndex),"rectangle"==r.unit)r.addNew||(o=new aa(n,n)),n=Fr(t,e,!0,!0),s=-1;else{var u=xs(t,n,r.unit);o=r.extend?Da(o,u.anchor,u.head,r.extend):u}r.addNew?-1==s?(s=l.length,Ha(a,oa(t,l.concat([o]),s),{scroll:!1,origin:"*mouse"})):l.length>1&&l[s].empty()&&"char"==r.unit&&!r.extend?(Ha(a,oa(t,l.slice(0,s).concat(l.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),c=a.sel):Ra(a,s,o,K):(s=0,Ha(a,new ia([o],0),K),c=a.sel);var h=n;function f(e){if(0!=oe(h,e))if(h=e,"rectangle"==r.unit){for(var i=[],l=t.options.tabSize,u=P(Yt(a,n.line).text,n.ch,l),f=P(Yt(a,e.line).text,e.ch,l),d=Math.min(u,f),A=Math.max(u,f),g=Math.min(n.line,e.line),p=Math.min(t.lastLine(),Math.max(n.line,e.line));g<=p;g++){var m=Yt(a,g).text,b=G(m,d,l);d==A?i.push(new aa(ae(g,b),ae(g,b))):m.length>b&&i.push(new aa(ae(g,b),ae(g,G(m,A,l))))}i.length||i.push(new aa(n,n)),Ha(a,oa(t,c.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var v,y=o,w=xs(t,e,r.unit),k=y.anchor;oe(w.anchor,k)>0?(v=w.head,k=ue(y.from(),w.anchor)):(v=w.anchor,k=le(y.to(),w.head));var x=c.ranges.slice(0);x[s]=Es(t,new aa(fe(a,k),v)),Ha(a,oa(t,x,s),K)}}var d=i.wrapper.getBoundingClientRect(),A=0;function g(e){var n=++A,o=Fr(t,e,!0,"rectangle"==r.unit);if(o)if(0!=oe(o,h)){t.curOp.focus=M(),f(o);var s=ei(i,a);(o.line>=s.to||o.lined.bottom?20:0;c&&setTimeout(Mi(t,(function(){A==n&&(i.scroller.scrollTop+=c,g(e))})),50)}}function p(e){t.state.selectingText=!1,A=1/0,e&&(kt(e),i.input.focus()),pt(i.wrapper.ownerDocument,"mousemove",m),pt(i.wrapper.ownerDocument,"mouseup",b),a.history.lastSelOrigin=null}var m=Mi(t,(function(t){0!==t.buttons&&Bt(t)?g(t):p(t)})),b=Mi(t,p);t.state.selectingText=b,At(i.wrapper.ownerDocument,"mousemove",m),At(i.wrapper.ownerDocument,"mouseup",b)}function Es(t,e){var n=e.anchor,r=e.head,i=Yt(t.doc,n.line);if(0==oe(n,r)&&n.sticky==r.sticky)return e;var a=ft(i);if(!a)return e;var o=ut(a,n.ch,n.sticky),s=a[o];if(s.from!=n.ch&&s.to!=n.ch)return e;var c,l=o+(s.from==n.ch==(1!=s.level)?0:1);if(0==l||l==a.length)return e;if(r.line!=n.line)c=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var u=ut(a,r.ch,r.sticky),h=u-o||(r.ch-n.ch)*(1==s.level?-1:1);c=u==l-1||u==l?h<0:h>0}var f=a[l+(c?-1:0)],d=c==(1==f.level),A=d?f.from:f.to,g=d?"after":"before";return n.ch==A&&n.sticky==g?e:new aa(new ae(n.line,A,g),r)}function Ts(t,e,n,r){var i,a;if(e.touches)i=e.touches[0].clientX,a=e.touches[0].clientY;else try{i=e.clientX,a=e.clientY}catch(t){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&kt(e);var o=t.display,s=o.lineDiv.getBoundingClientRect();if(a>s.bottom||!yt(t,n))return Ct(e);a-=s.top-o.viewOffset;for(var c=0;c=i)return mt(t,n,t,ne(t.doc,a),t.display.gutterSpecs[c].className,e),Ct(e)}}function Bs(t,e){return Ts(t,e,"gutterClick",!0)}function _s(t,e){Kn(t.display,e)||Ss(t,e)||bt(t,e,"contextmenu")||x||t.display.input.onContextMenu(e)}function Ss(t,e){return!!yt(t,"gutterContextMenu")&&Ts(t,e,"gutterContextMenu",!1)}function Ls(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(t)}ps.prototype.compare=function(t,e,n){return this.time+gs>t&&0==oe(e,this.pos)&&n==this.button};var Is={toString:function(){return"CodeMirror.Init"}},Ms={},Os={};function Ds(t){var e=t.optionHandlers;function n(n,r,i,a){t.defaults[n]=r,i&&(e[n]=a?function(t,e,n){n!=Is&&i(t,e,n)}:i)}t.defineOption=n,t.Init=Is,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,da(t)}),!0),n("indentUnit",2,da,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){Aa(t),fr(t),Rr(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter((function(t){for(var i=0;;){var a=t.text.indexOf(e,i);if(-1==a)break;i=a+e.length,n.push(ae(r,a))}r++}));for(var i=n.length-1;i>=0;i--)ro(t.doc,e,n[i],ae(n[i].line,n[i].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=Is&&t.refresh()})),n("specialCharPlaceholder",pn,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",m?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!y),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){Ls(t),Yi(t)}),!0),n("keyMap","default",(function(t,e,n){var r=zo(e),i=n!=Is&&zo(n);i&&i.detach&&i.detach(t,r),r.attach&&r.attach(t,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ns,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=Wi(e,t.options.lineNumbers),Yi(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?Mr(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return bi(t)}),!0),n("scrollbarStyle","native",(function(t){wi(t),bi(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=Wi(t.options.gutters,e),Yi(t)}),!0),n("firstLineNumber",1,Yi,!0),n("lineNumberFormatter",(function(t){return t}),Yi,!0),n("showCursorWhenSelecting",!1,jr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(Jr(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("screenReaderLabel",null,(function(t,e){e=""===e?null:e,t.display.input.screenReaderLabelChanged(e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Fs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,jr,!0),n("singleCursorHeightPerLine",!0,jr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Aa,!0),n("addModeClass",!1,Aa,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,Aa,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}function Fs(t,e,n){if(!e!=!(n&&n!=Is)){var r=t.display.dragFunctions,i=e?At:pt;i(t.display.scroller,"dragstart",r.start),i(t.display.scroller,"dragenter",r.enter),i(t.display.scroller,"dragover",r.over),i(t.display.scroller,"dragleave",r.leave),i(t.display.scroller,"drop",r.drop)}}function Ns(t){t.options.lineWrapping?(O(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(T(t.display.wrapper,"CodeMirror-wrap"),cn(t)),Dr(t),Rr(t),fr(t),setTimeout((function(){return bi(t)}),100)}function Rs(t,e){var n=this;if(!(this instanceof Rs))return new Rs(t,e);this.options=e=e?R(e):{},R(Ms,e,!1);var r=e.value;"string"==typeof r?r=new xo(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var i=new Rs.inputStyles[e.inputStyle](this),a=this.display=new Ji(t,r,i,e);for(var l in a.wrapper.CodeMirror=this,Ls(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),wi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Q,keySeq:null,specialChars:null},e.autofocus&&!m&&a.input.focus(),o&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Ps(this),Io(),xi(this),this.curOp.forceUpdate=!0,ba(this,r),e.autofocus&&!m||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Yr(n)}),20):Jr(this),Os)Os.hasOwnProperty(l)&&Os[l](this,e[l],Is);Vi(this),e.finishInit&&e.finishInit(this);for(var u=0;u400}At(e.scroller,"touchstart",(function(i){if(!bt(t,i)&&!a(i)&&!Bs(t,i)){e.input.ensurePolled(),clearTimeout(n);var o=+new Date;e.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}})),At(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),At(e.scroller,"touchend",(function(n){var r=e.activeTouch;if(r&&!Kn(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,o=t.coordsChar(e.activeTouch,"page");a=!r.prev||c(r,r.prev)?new aa(o,o):!r.prev.prev||c(r,r.prev.prev)?t.findWordAt(o):new aa(ae(o.line,0),fe(t.doc,ae(o.line+1,0))),t.setSelection(a.anchor,a.head),t.focus(),kt(n)}i()})),At(e.scroller,"touchcancel",i),At(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(fi(t,e.scroller.scrollTop),Ai(t,e.scroller.scrollLeft,!0),mt(t,"scroll",t))})),At(e.scroller,"mousewheel",(function(e){return ra(t,e)})),At(e.scroller,"DOMMouseScroll",(function(e){return ra(t,e)})),At(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){bt(t,e)||Et(e)},over:function(e){bt(t,e)||(Bo(t,e),Et(e))},start:function(e){return To(t,e)},drop:Mi(t,Eo),leave:function(e){bt(t,e)||_o(t)}};var l=e.input.getField();At(l,"keyup",(function(e){return hs.call(t,e)})),At(l,"keydown",Mi(t,ls)),At(l,"keypress",Mi(t,fs)),At(l,"focus",(function(e){return Yr(t,e)})),At(l,"blur",(function(e){return Jr(t,e)}))}Rs.defaults=Ms,Rs.optionHandlers=Os;var Qs=[];function Us(t,e,n,r){var i,a=t.doc;null==n&&(n="add"),"smart"==n&&(a.mode.indent?i=ve(t,e).state:n="prev");var o=t.options.tabSize,s=Yt(a,e),c=P(s.text,null,o);s.stateAfter&&(s.stateAfter=null);var l,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((l=a.mode.indent(i,s.text.slice(u.length),s.text))==$||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=e>a.first?P(Yt(a,e-1).text,null,o):0:"add"==n?l=c+t.options.indentUnit:"subtract"==n?l=c-t.options.indentUnit:"number"==typeof n&&(l=c+n),l=Math.max(0,l);var h="",f=0;if(t.options.indentWithTabs)for(var d=Math.floor(l/o);d;--d)f+=o,h+="\t";if(fo,c=Dt(e),l=null;if(s&&r.ranges.length>1)if(Hs&&Hs.text.join("\n")==e){if(r.ranges.length%Hs.text.length==0){l=[];for(var u=0;u=0;f--){var d=r.ranges[f],A=d.from(),g=d.to();d.empty()&&(n&&n>0?A=ae(A.line,A.ch-n):t.state.overwrite&&!s?g=ae(g.line,Math.min(Yt(a,g.line).text.length,g.ch+W(c).length)):s&&Hs&&Hs.lineWise&&Hs.text.join("\n")==c.join("\n")&&(A=g=ae(A.line,0)));var p={from:A,to:g,text:l?l[f%l.length]:c,origin:i||(s?"paste":t.state.cutIncoming>o?"cut":"+input")};Ya(t.doc,p),Sn(t,"inputRead",t,p)}e&&!s&&zs(t,e),si(t),t.curOp.updateInput<2&&(t.curOp.updateInput=h),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ks(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Ii(e,(function(){return js(e,n,0,null,"paste")})),!0}function zs(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var a=t.getModeAt(i.head),o=!1;if(a.electricChars){for(var s=0;s-1){o=Us(t,i.head.line,"smart");break}}else a.electricInput&&a.electricInput.test(Yt(t.doc,i.head.line).text.slice(0,i.head.ch))&&(o=Us(t,i.head.line,"smart"));o&&Sn(t,"electricInput",t,i.head.line)}}}function Gs(t){for(var e=[],n=[],r=0;rn&&(Us(this,i.head.line,t,!0),n=i.head.line,r==this.doc.sel.primIndex&&si(this));else{var a=i.from(),o=i.to(),s=Math.max(n,a.line);n=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1;for(var c=s;c0&&Ra(this.doc,r,new aa(a,l[r].to()),j)}}})),getTokenAt:function(t,e){return Ce(this,t,e)},getLineTokens:function(t,e){return Ce(this,ae(t),e,!0)},getTokenTypeAt:function(t){t=fe(this.doc,t);var e,n=be(this,Yt(this.doc,t.line)),r=0,i=(n.length-1)/2,a=t.ch;if(0==a)e=n[2];else for(;;){var o=r+i>>1;if((o?n[2*o-1]:0)>=a)i=o;else{if(!(n[2*o+1]a&&(t=a,i=!0),r=Yt(this.doc,t)}else r=t;return pr(this,r,{top:0,left:0},e||"page",n||i).top+(i?this.doc.height-on(r):0)},defaultTextHeight:function(){return Sr(this.display)},defaultCharWidth:function(){return Lr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,i){var a=this.display,o=(t=vr(this,fe(this.doc,t))).bottom,s=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),a.sizer.appendChild(e),"over"==r)o=t.top;else if("above"==r||"near"==r){var c=Math.max(a.wrapper.clientHeight,this.doc.height),l=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>c)&&t.top>e.offsetHeight?o=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=c&&(o=t.bottom),s+e.offsetWidth>l&&(s=l-e.offsetWidth)}e.style.top=o+"px",e.style.left=e.style.right="","right"==i?(s=a.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(a.sizer.clientWidth-e.offsetWidth)/2),e.style.left=s+"px"),n&&ii(this,{left:s,top:o,right:s+e.offsetWidth,bottom:o+e.offsetHeight})},triggerOnKeyDown:Oi(ls),triggerOnKeyPress:Oi(fs),triggerOnKeyUp:hs,triggerOnMouseDown:Oi(bs),execCommand:function(t){if(Yo.hasOwnProperty(t))return Yo[t].call(null,this)},triggerElectric:Oi((function(t){zs(this,t)})),findPosH:function(t,e,n,r){var i=1;e<0&&(i=-1,e=-e);for(var a=fe(this.doc,t),o=0;o0&&o(e.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&Dr(this),mt(this,"refresh",this)})),swapDoc:Oi((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),ba(this,t),fr(this),this.display.input.reset(),ci(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,Sn(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},wt(t),t.registerHelper=function(e,r,i){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=i},t.registerGlobalHelper=function(e,r,i,a){t.registerHelper(e,r,a),n[e]._global.push({pred:i,val:a})}}function qs(t,e,n,r,i){var a=e,o=n,s=Yt(t,e.line),c=i&&"rtl"==t.direction?-n:n;function l(){var n=e.line+c;return!(n=t.first+t.size)&&(e=new ae(n,e.ch,e.sticky),s=Yt(t,n))}function u(a){var o;if("codepoint"==r){var u=s.text.charCodeAt(e.ch+(r>0?0:-1));o=isNaN(u)?null:new ae(e.line,Math.max(0,Math.min(s.text.length,e.ch+n*(u>=55296&&u<56320?2:1))),-n)}else o=i?qo(t.cm,s,e,n):Vo(s,e,n);if(null==o){if(a||!l())return!1;e=Wo(i,t.cm,s,e.line,c)}else e=o;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var h=null,f="group"==r,d=t.cm&&t.cm.getHelper(e,"wordChars"),A=!0;!(n<0)||u(!A);A=!1){var g=s.text.charAt(e.ch)||"\n",p=nt(g,d)?"w":f&&"\n"==g?"n":!f||/\s/.test(g)?null:"p";if(!f||A||p||(p="s"),h&&h!=p){n<0&&(n=1,u(),e.sticky="after");break}if(p&&(h=p),n>0&&!u(!A))break}var m=Xa(t,e,a,o,!0);return se(a,m)&&(m.hitSide=!0),m}function Ys(t,e,n,r){var i,a,o=t.doc,s=e.left;if("page"==r){var c=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(c-.5*Sr(t.display),3);i=(n>0?e.bottom:e.top)+n*l}else"line"==r&&(i=n>0?e.bottom+3:e.top-3);for(;(a=kr(t,s,i)).outside;){if(n<0?i<=0:i>=o.height){a.hitSide=!0;break}i+=5*n}return a}var Js=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Zs(t,e){var n=er(t,e.line);if(!n||n.hidden)return null;var r=Yt(t.doc,e.line),i=Jn(n,r,e.line),a=ft(r,t.doc.direction),o="left";a&&(o=ut(a,e.ch)%2?"right":"left");var s=or(i.map,e.ch,o);return s.offset="right"==s.collapse?s.end:s.start,s}function tc(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}function ec(t,e){return e&&(t.bad=!0),t}function nc(t,e,n,r,i){var a="",o=!1,s=t.doc.lineSeparator(),c=!1;function l(t){return function(e){return e.id==t}}function u(){o&&(a+=s,c&&(a+=s),o=c=!1)}function h(t){t&&(u(),a+=t)}function f(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void h(n);var a,d=e.getAttribute("cm-marker");if(d){var A=t.findMarks(ae(r,0),ae(i+1,0),l(+d));return void(A.length&&(a=A[0].find(0))&&h(Jt(t.doc,a.from,a.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;g&&u();for(var p=0;p=e.display.viewTo||a.line=e.display.viewFrom&&Zs(e,i)||{node:c[0].measure.map[2],offset:0},u=a.liner.firstLine()&&(o=ae(o.line-1,Yt(r.doc,o.line-1).length)),s.ch==Yt(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;o.line==i.viewFrom||0==(t=Nr(r,o.line))?(e=ee(i.view[0].line),n=i.view[0].node):(e=ee(i.view[t].line),n=i.view[t-1].node.nextSibling);var c,l,u=Nr(r,s.line);if(u==i.view.length-1?(c=i.viewTo-1,l=i.lineDiv.lastChild):(c=ee(i.view[u+1].line)-1,l=i.view[u+1].node.previousSibling),!n)return!1;for(var h=r.doc.splitLines(nc(r,n,l,e,c)),f=Jt(r.doc,ae(e,0),ae(c,Yt(r.doc,c).text.length));h.length>1&&f.length>1;)if(W(h)==W(f))h.pop(),f.pop(),c--;else{if(h[0]!=f[0])break;h.shift(),f.shift(),e++}for(var d=0,A=0,g=h[0],p=f[0],m=Math.min(g.length,p.length);do.ch&&b.charCodeAt(b.length-A-1)==v.charCodeAt(v.length-A-1);)d--,A++;h[h.length-1]=b.slice(0,b.length-A).replace(/^\u200b+/,""),h[0]=h[0].slice(d).replace(/\u200b+$/,"");var w=ae(e,d),k=ae(c,f.length?W(f).length-A:0);return h.length>1||h[0]||oe(w,k)?(ro(r.doc,h,w,k,"+input"),!0):void 0},Js.prototype.ensurePolled=function(){this.forceCompositionEnd()},Js.prototype.reset=function(){this.forceCompositionEnd()},Js.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Js.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Js.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Ii(this.cm,(function(){return Rr(t.cm)}))},Js.prototype.setUneditable=function(t){t.contentEditable="false"},Js.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Mi(this.cm,js)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Js.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Js.prototype.onContextMenu=function(){},Js.prototype.resetPosition=function(){},Js.prototype.needsContentAttribute=!0;var ac=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Q,this.hasSelection=!1,this.composing=null};function oc(t,e){if((e=e?R(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=M();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=s.getValue()}var i;if(t.form&&(At(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var a=t.form;i=a.submit;try{var o=a.submit=function(){r(),a.submit=i,a.submit(),a.submit=o}}catch(t){}}e.finishInit=function(n){n.save=r,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,r(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(pt(t.form,"submit",r),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var s=Rs((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s}function sc(t){t.off=pt,t.on=At,t.wheelEventPixels=na,t.Doc=xo,t.splitLines=Dt,t.countColumn=P,t.findColumn=G,t.isWordChar=et,t.Pass=$,t.signal=mt,t.Line=ln,t.changeEnd=ca,t.scrollbarModel=yi,t.Pos=ae,t.cmpPos=oe,t.modes=Qt,t.mimeModes=Ut,t.resolveMode=jt,t.getMode=Kt,t.modeExtensions=zt,t.extendMode=Gt,t.copyState=Xt,t.startState=Wt,t.innerMode=Vt,t.commands=Yo,t.keyMap=Po,t.keyName=Ko,t.isModifierKey=$o,t.lookupKey=Ho,t.normalizeKeyMap=Uo,t.StringStream=qt,t.SharedTextMarker=mo,t.TextMarker=go,t.LineWidget=uo,t.e_preventDefault=kt,t.e_stopPropagation=xt,t.e_stop=Et,t.addClass=O,t.contains=I,t.rmClass=T,t.keyNames=Do}ac.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var i=this.textarea;function a(t){if(!bt(r,t)){if(r.somethingSelected())$s({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=Gs(r);$s({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,j):(n.prevInput="",i.value=e.text.join("\n"),F(i))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),g&&(i.style.width="0px"),At(i,"input",(function(){o&&s>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),At(i,"paste",(function(t){bt(r,t)||Ks(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),At(i,"cut",a),At(i,"copy",a),At(t.scroller,"paste",(function(e){if(!Kn(t,e)&&!bt(r,e)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var a=new Event("paste");a.clipboardData=e.clipboardData,i.dispatchEvent(a)}})),At(t.lineSpace,"selectstart",(function(e){Kn(t,e)||kt(e)})),At(i,"compositionstart",(function(){var t=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}})),At(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},ac.prototype.createField=function(t){this.wrapper=Vs(),this.textarea=this.wrapper.firstChild},ac.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},ac.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=Kr(t);if(t.options.moveInputWithCursor){var i=vr(t,n.sel.primary().head,"div"),a=e.wrapper.getBoundingClientRect(),o=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+o.top-a.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+o.left-a.left))}return r},ac.prototype.showSelection=function(t){var e=this.cm.display;_(e.cursorDiv,t.cursors),_(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},ac.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&F(this.textarea),o&&s>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",o&&s>=9&&(this.hasSelection=null))}},ac.prototype.getField=function(){return this.textarea},ac.prototype.supportsTouch=function(){return!1},ac.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!m||M()!=this.textarea))try{this.textarea.focus()}catch(t){}},ac.prototype.blur=function(){this.textarea.blur()},ac.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ac.prototype.receivedFocus=function(){this.slowPoll()},ac.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},ac.prototype.fastPoll=function(){var t=!1,e=this;function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}e.pollingFast=!0,e.polling.set(20,n)},ac.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||Ft(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=n.value;if(i==r&&!e.somethingSelected())return!1;if(o&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var a=i.charCodeAt(0);if(8203!=a||r||(r="​"),8666==a)return this.reset(),this.cm.execCommand("undo")}for(var c=0,l=Math.min(r.length,i.length);c1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ac.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ac.prototype.onKeyPress=function(){o&&s>=9&&(this.hasSelection=null),this.fastPoll()},ac.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var a=Fr(n,t),l=r.scroller.scrollTop;if(a&&!h){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(a)&&Mi(n,Ha)(n.doc,sa(a),j);var u,f=i.style.cssText,d=e.wrapper.style.cssText,A=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-A.top-5)+"px; left: "+(t.clientX-A.left-5)+"px;\n z-index: 1000; background: "+(o?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",c&&(u=window.scrollY),r.input.focus(),c&&window.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=m,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),o&&s>=9&&p(),x){Et(t);var g=function(){pt(window,"mouseup",g),setTimeout(m,20)};At(window,"mouseup",g)}else setTimeout(m,50)}function p(){if(null!=i.selectionStart){var t=n.somethingSelected(),a="​"+(t?i.value:"");i.value="⇚",i.value=a,e.prevInput=t?"":"​",i.selectionStart=1,i.selectionEnd=a.length,r.selForContextMenu=n.doc.sel}}function m(){if(e.contextMenuPending==m&&(e.contextMenuPending=!1,e.wrapper.style.cssText=d,i.style.cssText=f,o&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=i.selectionStart)){(!o||o&&s<9)&&p();var t=0,a=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==e.prevInput?Mi(n,Wa)(n):t++<10?r.detectingSelectAll=setTimeout(a,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(a,200)}}},ac.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t,this.textarea.readOnly=!!t},ac.prototype.setUneditable=function(){},ac.prototype.needsContentAttribute=!1,Ds(Rs),Ws(Rs);var cc="iter insert remove copy getEditor constructor".split(" ");for(var lc in xo.prototype)xo.prototype.hasOwnProperty(lc)&&U(cc,lc)<0&&(Rs.prototype[lc]=function(t){return function(){return t.apply(this.doc,arguments)}}(xo.prototype[lc]));return wt(xo),Rs.inputStyles={textarea:ac,contenteditable:Js},Rs.defineMode=function(t){Rs.defaults.mode||"null"==t||(Rs.defaults.mode=t),Ht.apply(this,arguments)},Rs.defineMIME=$t,Rs.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Rs.defineMIME("text/plain","null"),Rs.defineExtension=function(t,e){Rs.prototype[t]=e},Rs.defineDocExtension=function(t,e){xo.prototype[t]=e},Rs.fromTextArea=oc,sc(Rs),Rs.version="5.58.2",Rs}()}));r((function(t,e){var n,r,i;r={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},i={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1},(n=gf).defineMode("xml",(function(t,e){var a,o,s=t.indentUnit,c={},l=e.htmlMode?r:i;for(var u in l)c[u]=l[u];for(var u in e)c[u]=e[u];function h(t,e){function n(n){return e.tokenize=n,n(t,e)}var r=t.next();return"<"==r?t.eat("!")?t.eat("[")?t.match("CDATA[")?n(A("atom","]]>")):null:t.match("--")?n(A("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(g(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=A("meta","?>"),"meta"):(a=t.eat("/")?"closeTag":"openTag",e.tokenize=f,"tag bracket"):"&"==r?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function f(t,e){var n=t.next();if(">"==n||"/"==n&&t.eat(">"))return e.tokenize=h,a=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return a="equals",null;if("<"==n){e.tokenize=h,e.state=v,e.tagName=e.tagStart=null;var r=e.tokenize(t,e);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(e.tokenize=d(n),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(t){var e=function(e,n){for(;!e.eol();)if(e.next()==t){n.tokenize=f;break}return"string"};return e.isInAttribute=!0,e}function A(t,e){return function(n,r){for(;!n.eol();){if(n.match(e)){r.tokenize=h;break}n.next()}return t}}function g(t){return function(e,n){for(var r;null!=(r=e.next());){if("<"==r)return n.tokenize=g(t+1),n.tokenize(e,n);if(">"==r){if(1==t){n.tokenize=h;break}return n.tokenize=g(t-1),n.tokenize(e,n)}}return"meta"}}function p(t,e,n){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=n,(c.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function m(t){t.context&&(t.context=t.context.prev)}function b(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!c.contextGrabbers.hasOwnProperty(n)||!c.contextGrabbers[n].hasOwnProperty(e))return;m(t)}}function v(t,e,n){return"openTag"==t?(n.tagStart=e.column(),y):"closeTag"==t?w:v}function y(t,e,n){return"word"==t?(n.tagName=e.current(),o="tag",C):c.allowMissingTagName&&"endTag"==t?(o="tag bracket",C(t,e,n)):(o="error",y)}function w(t,e,n){if("word"==t){var r=e.current();return n.context&&n.context.tagName!=r&&c.implicitlyClosed.hasOwnProperty(n.context.tagName)&&m(n),n.context&&n.context.tagName==r||!1===c.matchClosing?(o="tag",k):(o="tag error",x)}return c.allowMissingTagName&&"endTag"==t?(o="tag bracket",k(t,e,n)):(o="error",x)}function k(t,e,n){return"endTag"!=t?(o="error",k):(m(n),v)}function x(t,e,n){return o="error",k(t,e,n)}function C(t,e,n){if("word"==t)return o="attribute",E;if("endTag"==t||"selfcloseTag"==t){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||c.autoSelfClosers.hasOwnProperty(r)?b(n,r):(b(n,r),n.context=new p(n,r,i==n.indented)),v}return o="error",C}function E(t,e,n){return"equals"==t?T:(c.allowMissing||(o="error"),C(t,e,n))}function T(t,e,n){return"string"==t?B:"word"==t&&c.allowUnquoted?(o="string",C):(o="error",C(t,e,n))}function B(t,e,n){return"string"==t?B:C(t,e,n)}return h.isInText=!0,{startState:function(t){var e={tokenize:h,state:v,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;a=null;var n=e.tokenize(t,e);return(n||a)&&"comment"!=n&&(o=null,e.state=e.state(a||n,t,e),o&&(n="error"==o?n+" error":o)),n},indent:function(t,e,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return n.Pass;if(t.tokenize!=f&&t.tokenize!=h)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==c.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(c.multilineTagIndentFactor||1);if(c.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:c.htmlMode?"html":"xml",helperType:c.htmlMode?"html":"xml",skipAttribute:function(t){t.state==T&&(t.state=C)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var e=[],n=t.context;n;n=n.prev)n.tagName&&e.push(n.tagName);return e.reverse()}}})),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})),r((function(t,e){!function(t){t.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var e=0;e-1&&e.substring(i+1,e.length);if(a)return t.findModeByExtension(a)},t.findModeByName=function(e){e=e.toLowerCase();for(var n=0;n` "'(~:]+/,A=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,g=/^\s*\[[^\]]+?\]:.*$/,p=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,m=" ";function b(t,e,n){return e.f=e.inline=n,n(t,e)}function v(t,e,n){return e.f=e.block=n,n(t,e)}function y(t){return!t||!/\S/.test(t.string)}function w(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==x){var e=i;if(!e){var a=n.innerMode(r,t.htmlState);e="xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText}e&&(t.f=B,t.block=k,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function k(t,r){var i=t.column()===r.indentation,s=y(r.prevLine.stream),d=r.indentedCode,p=r.prevLine.hr,m=!1!==r.list,v=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var w=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,m)){for(r.list=null;w=4&&(d||r.prevLine.fencedCodeEnd||r.prevLine.header||s))return t.skipToEnd(),r.indentedCode=!0,o.code;if(t.eatSpace())return null;if(i&&r.indentation<=v&&(T=t.match(h))&&T[1].length<=6)return r.quote=0,r.header=T[1].length,r.thisLine.header=!0,e.highlightFormatting&&(r.formatting="header"),r.f=r.inline,E(r);if(r.indentation<=v&&t.eat(">"))return r.quote=i?1:r.quote+1,e.highlightFormatting&&(r.formatting="quote"),t.eatSpace(),E(r);if(!x&&!r.setext&&i&&r.indentation<=v&&(T=t.match(l))){var B=T[1]?"ol":"ul";return r.indentation=w+t.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,e.taskLists&&t.match(u,!1)&&(r.taskList=!0),r.f=r.inline,e.highlightFormatting&&(r.formatting=["list","list-"+B]),E(r)}return i&&r.indentation<=v&&(T=t.match(A,!0))?(r.quote=0,r.fencedEndRE=new RegExp(T[1]+"+ *$"),r.localMode=e.fencedCodeBlockHighlighting&&a(T[2]||e.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=n.startState(r.localMode)),r.f=r.block=C,e.highlightFormatting&&(r.formatting="code-block"),r.code=-1,E(r)):r.setext||!(k&&m||r.quote||!1!==r.list||r.code||x||g.test(t.string))&&(T=t.lookAhead(1))&&(T=T.match(f))?(r.setext?(r.header=r.setext,r.setext=0,t.skipToEnd(),e.highlightFormatting&&(r.formatting="header")):(r.header="="==T[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,E(r)):x?(t.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,o.hr):"["===t.peek()?b(t,r,M):b(t,r,r.inline)}function x(t,e){var a=r.token(t,e.htmlState);if(!i){var o=n.innerMode(r,e.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||e.md_inside&&t.current().indexOf(">")>-1)&&(e.f=B,e.block=k,e.htmlState=null)}return a}function C(t,n){var r,i=n.listStack[n.listStack.length-1]||0,a=n.indentation=t.quote?n.push(o.formatting+"-"+t.formatting[r]+"-"+t.quote):n.push("error"))}if(t.taskOpen)return n.push("meta"),n.length?n.join(" "):null;if(t.taskClosed)return n.push("property"),n.length?n.join(" "):null;if(t.linkHref?n.push(o.linkHref,"url"):(t.strong&&n.push(o.strong),t.em&&n.push(o.em),t.strikethrough&&n.push(o.strikethrough),t.emoji&&n.push(o.emoji),t.linkText&&n.push(o.linkText),t.code&&n.push(o.code),t.image&&n.push(o.image),t.imageAltText&&n.push(o.imageAltText,"link"),t.imageMarker&&n.push(o.imageMarker)),t.header&&n.push(o.header,o.header+"-"+t.header),t.quote&&(n.push(o.quote),!e.maxBlockquoteDepth||e.maxBlockquoteDepth>=t.quote?n.push(o.quote+"-"+t.quote):n.push(o.quote+"-"+e.maxBlockquoteDepth)),!1!==t.list){var i=(t.listStack.length-1)%3;i?1===i?n.push(o.list2):n.push(o.list3):n.push(o.list1)}return t.trailingSpaceNewLine?n.push("trailing-space-new-line"):t.trailingSpace&&n.push("trailing-space-"+(t.trailingSpace%2?"a":"b")),n.length?n.join(" "):null}function T(t,e){if(t.match(d,!0))return E(e)}function B(t,i){var a=i.text(t,i);if(void 0!==a)return a;if(i.list)return i.list=null,E(i);if(i.taskList)return" "===t.match(u,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,e.highlightFormatting&&(i.formatting="task"),i.taskList=!1,E(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return e.highlightFormatting&&(i.formatting="header"),E(i);var s=t.next();if(i.linkTitle){i.linkTitle=!1;var c=s;"("===s&&(c=")");var l="^\\s*(?:[^"+(c=(c+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+c;if(t.match(new RegExp(l),!0))return o.linkHref}if("`"===s){var h=i.formatting;e.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var f=t.current().length;if(0!=i.code||i.quote&&1!=f){if(f==i.code){var d=E(i);return i.code=0,d}return i.formatting=h,E(i)}return i.code=f,E(i)}if(i.code)return E(i);if("\\"===s&&(t.next(),e.highlightFormatting)){var A=E(i),g=o.formatting+"-escape";return A?A+" "+g:g}if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,e.highlightFormatting&&(i.formatting="image"),E(i);if("["===s&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,e.highlightFormatting&&(i.formatting="image"),E(i);if("]"===s&&i.imageAltText){e.highlightFormatting&&(i.formatting="image");var A=E(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=S,A}if("["===s&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,e.highlightFormatting&&(i.formatting="link")),E(i);if("]"===s&&i.linkText){e.highlightFormatting&&(i.formatting="link");var A=E(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?S:B,A}if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=_,e.highlightFormatting&&(i.formatting="link"),(A=E(i))?A+=" ":A="",A+o.linkInline;if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=_,e.highlightFormatting&&(i.formatting="link"),(A=E(i))?A+=" ":A="",A+o.linkEmail;if(e.xml&&"<"===s&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var m=t.string.indexOf(">",t.pos);if(-1!=m){var b=t.string.substring(t.start,m);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(b)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=n.startState(r),v(t,i,x)}if(e.xml&&"<"===s&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===s||"_"===s){for(var y=1,w=1==t.pos?" ":t.string.charAt(t.pos-2);y<3&&t.eat(s);)y++;var k=t.peek()||" ",C=!/\s/.test(k)&&(!p.test(k)||/\s/.test(w)||p.test(w)),T=!/\s/.test(w)&&(!p.test(w)||/\s/.test(k)||p.test(k)),L=null,I=null;if(y%2&&(i.em||!C||"*"!==s&&T&&!p.test(w)?i.em!=s||!T||"*"!==s&&C&&!p.test(k)||(L=!1):L=!0),y>1&&(i.strong||!C||"*"!==s&&T&&!p.test(w)?i.strong!=s||!T||"*"!==s&&C&&!p.test(k)||(I=!1):I=!0),null!=I||null!=L)return e.highlightFormatting&&(i.formatting=null==L?"strong":null==I?"em":"strong em"),!0===L&&(i.em=s),!0===I&&(i.strong=s),d=E(i),!1===L&&(i.em=!1),!1===I&&(i.strong=!1),d}else if(" "===s&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return E(i);t.backUp(1)}if(e.strikethrough)if("~"===s&&t.eatWhile(s)){if(i.strikethrough)return e.highlightFormatting&&(i.formatting="strikethrough"),d=E(i),i.strikethrough=!1,d;if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,e.highlightFormatting&&(i.formatting="strikethrough"),E(i)}else if(" "===s&&t.match(/^~~/,!0)){if(" "===t.peek())return E(i);t.backUp(2)}if(e.emoji&&":"===s&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,e.highlightFormatting&&(i.formatting="emoji");var M=E(i);return i.emoji=!1,M}return" "===s&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),E(i)}function _(t,n){if(">"===t.next()){n.f=n.inline=B,e.highlightFormatting&&(n.formatting="link");var r=E(n);return r?r+=" ":r="",r+o.linkInline}return t.match(/^[^>]+/,!0),o.linkInline}function S(t,n){if(t.eatSpace())return null;var r=t.next();return"("===r||"["===r?(n.f=n.inline=I("("===r?")":"]"),e.highlightFormatting&&(n.formatting="link-string"),n.linkHref=!0,E(n)):"error"}var L={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function I(t){return function(n,r){if(n.next()===t){r.f=r.inline=B,e.highlightFormatting&&(r.formatting="link-string");var i=E(r);return r.linkHref=!1,i}return n.match(L[t]),r.linkHref=!0,E(r)}}function M(t,n){return t.match(/^([^\]\\]|\\.)*\]:/,!1)?(n.f=O,t.next(),e.highlightFormatting&&(n.formatting="link"),n.linkText=!0,E(n)):b(t,n,B)}function O(t,n){if(t.match(/^\]:/,!0)){n.f=n.inline=D,e.highlightFormatting&&(n.formatting="link");var r=E(n);return n.linkText=!1,r}return t.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function D(t,e){return t.eatSpace()?null:(t.match(/^[^\s]+/,!0),void 0===t.peek()?e.linkTitle=!0:t.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),e.f=e.inline=B,o.linkHref+" url")}var F={startState:function(){return{f:k,prevLine:{stream:null},thisLine:{stream:null},block:k,htmlState:null,indentation:0,inline:B,text:T,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&n.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?n.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(t,e){if(e.formatting=!1,t!=e.thisLine.stream){if(e.header=0,e.hr=!1,t.match(/^\s*$/,!0))return w(e),null;if(e.prevLine=e.thisLine,e.thisLine={stream:t},e.taskList=!1,e.trailingSpace=0,e.trailingSpaceNewLine=!1,!e.localState&&(e.f=e.block,e.f!=x)){var n=t.match(/^\s*/,!0)[0].replace(/\t/g,m).length;if(e.indentation=n,e.indentationDiff=null,n>0)return null}}return e.f(t,e)},innerMode:function(t){return t.block==x?{state:t.htmlState,mode:r}:t.localState?{state:t.localState,mode:t.localMode}:{state:t,mode:F}},indent:function(t,e,i){return t.block==x&&r.indent?r.indent(t.htmlState,e,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,e,i):n.Pass},blankLine:w,getType:E,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return F}),"xml"),n.defineMIME("text/markdown","markdown"),n.defineMIME("text/x-markdown","markdown")})),r((function(t,e){var n;(n=gf).overlayMode=function(t,e,r){return{startState:function(){return{base:n.startState(t),overlay:n.startState(e),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:n.copyState(t,r.base),overlay:n.copyState(e,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(n,i){return(n!=i.streamSeen||Math.min(i.basePos,i.overlayPos)]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i,(n=gf).defineMode("gfm",(function(t,e){var i=0;function a(t){return t.code=!1,null}var o={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(t){return{code:t.code,codeBlock:t.codeBlock,ateSpace:t.ateSpace}},token:function(t,n){if(n.combineTokens=null,n.codeBlock)return t.match(/^```+/)?(n.codeBlock=!1,null):(t.skipToEnd(),null);if(t.sol()&&(n.code=!1),t.sol()&&t.match(/^```+/))return t.skipToEnd(),n.codeBlock=!0,null;if("`"===t.peek()){t.next();var a=t.pos;t.eatWhile("`");var o=1+t.pos-a;return n.code?o===i&&(n.code=!1):(i=o,n.code=!0),null}if(n.code)return t.next(),null;if(t.eatSpace())return n.ateSpace=!0,null;if((t.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==e.gitHubSpice)){if(t.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(t.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return t.match(r)&&"]("!=t.string.slice(t.start-2,t.start)&&(0==t.start||/\W/.test(t.string.charAt(t.start-1)))?(n.combineTokens=!0,"link"):(t.next(),null)},blankLine:a},s={taskLists:!0,strikethrough:!0,emoji:!0};for(var c in e)s[c]=e[c];return s.name="markdown",n.overlayMode(n.getMode(t,s),o)}),"markdown"),n.defineMIME("text/x-gfm","gfm")}));r((function(t,e){var n;(n=gf).defineMode("yaml",(function(){var t=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i");return{token:function(e,n){var r=e.peek(),i=n.escaped;if(n.escaped=!1,"#"==r&&(0==e.pos||/\s/.test(e.string.charAt(e.pos-1))))return e.skipToEnd(),"comment";if(e.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(n.literal&&e.indentation()>n.keyCol)return e.skipToEnd(),"string";if(n.literal&&(n.literal=!1),e.sol()){if(n.keyCol=0,n.pair=!1,n.pairStart=!1,e.match(/---/))return"def";if(e.match(/\.\.\./))return"def";if(e.match(/\s*-\s+/))return"meta"}if(e.match(/^(\{|\}|\[|\])/))return"{"==r?n.inlinePairs++:"}"==r?n.inlinePairs--:"["==r?n.inlineList++:n.inlineList--,"meta";if(n.inlineList>0&&!i&&","==r)return e.next(),"meta";if(n.inlinePairs>0&&!i&&","==r)return n.keyCol=0,n.pair=!1,n.pairStart=!1,e.next(),"meta";if(n.pairStart){if(e.match(/^\s*(\||\>)\s*/))return n.literal=!0,"meta";if(e.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(0==n.inlinePairs&&e.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(n.inlinePairs>0&&e.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(e.match(t))return"keyword"}return!n.pair&&e.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(n.pair=!0,n.keyCol=e.indentation(),"atom"):n.pair&&e.match(/^:\s*/)?(n.pairStart=!0,"meta"):(n.pairStart=!1,n.escaped="\\"==r,e.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}})),n.defineMIME("text/x-yaml","yaml"),n.defineMIME("text/yaml","yaml")}));r((function(t,e){var n,r,i,a;r=0,i=1,a=2,(n=gf).defineMode("yaml-frontmatter",(function(t,e){var o=n.getMode(t,"yaml"),s=n.getMode(t,e&&e.base||"gfm");function c(t){return t.state==a?s:o}return{startState:function(){return{state:r,inner:n.startState(o)}},copyState:function(t){return{state:t.state,inner:n.copyState(c(t),t.inner)}},token:function(t,e){if(e.state==r)return t.match(/---/,!1)?(e.state=i,o.token(t,e.inner)):(e.state=a,e.inner=n.startState(s),s.token(t,e.inner));if(e.state==i){var c=t.sol()&&t.match(/(---|\.\.\.)/,!1),l=o.token(t,e.inner);return c&&(e.state=a,e.inner=n.startState(s)),l}return s.token(t,e.inner)},innerMode:function(t){return{mode:c(t),state:t.inner}},blankLine:function(t){var e=c(t);if(e.blankLine)return e.blankLine(t.inner)}}}))})),r((function(t,e){!function(t){var e=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;function i(t,n){var r=n.line,i=0,a=0,o=e.exec(t.getLine(r)),s=o[1];do{var c=r+(i+=1),l=t.getLine(c),u=e.exec(l);if(u){var h=u[1],f=parseInt(o[3],10)+i-a,d=parseInt(u[3],10),A=d;if(s!==h||isNaN(d)){if(s.length>h.length)return;if(s.lengthd&&(A=f+1),t.replaceRange(l.replace(e,h+A+u[4]+u[5]),{line:c,ch:0},{line:c,ch:l.length})}}while(u)}t.commands.newlineAndIndentContinueMarkdownList=function(a){if(a.getOption("disableInput"))return t.Pass;for(var o=a.listSelections(),s=[],c=0;c\s*$/.test(A),b=!/>\s*$/.test(A);(m||b)&&a.replaceRange("",{line:l.line,ch:0},{line:l.line,ch:l.ch+1}),s[c]="\n"}else{var v=g[1],y=g[5],w=!(r.test(g[2])||g[2].indexOf(">")>=0),k=w?parseInt(g[3],10)+1+g[4]:g[2].replace("x"," ");s[c]="\n"+v+k+y,w&&i(a,l)}}a.replaceSelections(s)}}(gf)}));r((function(t,e){!function(t){var e=t.Pos;function n(t,e){return t.line-e.line||t.ch-e.ch}var r="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=new RegExp("<(/?)(["+r+"]["+r+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function a(t,e,n,r){this.line=e,this.ch=n,this.cm=t,this.text=t.getLine(e),this.min=r?Math.max(r.from,t.firstLine()):t.firstLine(),this.max=r?Math.min(r.to-1,t.lastLine()):t.lastLine()}function o(t,n){var r=t.cm.getTokenTypeAt(e(t.line,n));return r&&/\btag\b/.test(r)}function s(t){if(!(t.line>=t.max))return t.ch=0,t.text=t.cm.getLine(++t.line),!0}function c(t){if(!(t.line<=t.min))return t.text=t.cm.getLine(--t.line),t.ch=t.text.length,!0}function l(t){for(;;){var e=t.text.indexOf(">",t.ch);if(-1==e){if(s(t))continue;return}if(o(t,e+1)){var n=t.text.lastIndexOf("/",e),r=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,r?"selfClose":"regular"}t.ch=e+1}}function u(t){for(;;){var e=t.ch?t.text.lastIndexOf("<",t.ch-1):-1;if(-1==e){if(c(t))continue;return}if(o(t,e+1)){i.lastIndex=e,t.ch=e;var n=i.exec(t.text);if(n&&n.index==e)return n}else t.ch=e}}function h(t){for(;;){i.lastIndex=t.ch;var e=i.exec(t.text);if(!e){if(s(t))continue;return}if(o(t,e.index+1))return t.ch=e.index+e[0].length,e;t.ch=e.index+1}}function f(t){for(;;){var e=t.ch?t.text.lastIndexOf(">",t.ch-1):-1;if(-1==e){if(c(t))continue;return}if(o(t,e+1)){var n=t.text.lastIndexOf("/",e),r=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,r?"selfClose":"regular"}t.ch=e}}function d(t,n){for(var r=[];;){var i,a=h(t),o=t.line,s=t.ch-(a?a[0].length:0);if(!a||!(i=l(t)))return;if("selfClose"!=i)if(a[1]){for(var c=r.length-1;c>=0;--c)if(r[c]==a[2]){r.length=c;break}if(c<0&&(!n||n==a[2]))return{tag:a[2],from:e(o,s),to:e(t.line,t.ch)}}else r.push(a[2])}}function A(t,n){for(var r=[];;){var i=f(t);if(!i)return;if("selfClose"!=i){var a=t.line,o=t.ch,s=u(t);if(!s)return;if(s[1])r.push(s[2]);else{for(var c=r.length-1;c>=0;--c)if(r[c]==s[2]){r.length=c;break}if(c<0&&(!n||n==s[2]))return{tag:s[2],from:e(t.line,t.ch),to:e(a,o)}}}else u(t)}}t.registerHelper("fold","xml",(function(t,r){for(var i=new a(t,r.line,0);;){var o=h(i);if(!o||i.line!=r.line)return;var s=l(i);if(!s)return;if(!o[1]&&"selfClose"!=s){var c=e(i.line,i.ch),u=d(i,o[2]);return u&&n(u.from,c)>0?{from:c,to:u.from}:null}}})),t.findMatchingTag=function(t,r,i){var o=new a(t,r.line,r.ch,i);if(-1!=o.text.indexOf(">")||-1!=o.text.indexOf("<")){var s=l(o),c=s&&e(o.line,o.ch),h=s&&u(o);if(s&&h&&!(n(o,r)>0)){var f={from:e(o.line,o.ch),to:c,tag:h[2]};return"selfClose"==s?{open:f,close:null,at:"open"}:h[1]?{open:A(o,h[2]),close:f,at:"close"}:{open:f,close:d(o=new a(t,c.line,c.ch,i),h[2]),at:"open"}}}},t.findEnclosingTag=function(t,e,n,r){for(var i=new a(t,e.line,e.ch,n);;){var o=A(i,r);if(!o)break;var s=d(new a(t,e.line,e.ch,n),o.tag);if(s)return{open:o,close:s}}},t.scanForClosingTag=function(t,e,n,r){return d(new a(t,e.line,e.ch,r?{from:0,to:r}:null),n)}}(gf)}));r((function(t,e){!function(t){t.defineOption("autoCloseTags",!1,(function(e,n,i){if(i!=t.Init&&i&&e.removeKeyMap("autoCloseTags"),n){var o={name:"autoCloseTags"};"object"==typeof n&&!1===n.whenClosing||(o["'/'"]=function(t){return a(t)}),"object"==typeof n&&!1===n.whenOpening||(o["'>'"]=function(t){return r(t)}),e.addKeyMap(o)}}));var e=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],n=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function r(r){if(r.getOption("disableInput"))return t.Pass;for(var i=r.listSelections(),a=[],c=r.getOption("autoCloseTags"),l=0;lu.ch&&(g=g.slice(0,g.length-h.end+u.ch));var v=g.toLowerCase();if(!g||"string"==h.type&&(h.end!=u.ch||!/[\"\']/.test(h.string.charAt(h.string.length-1))||1==h.string.length)||"tag"==h.type&&A.close||h.string.indexOf("/")==u.ch-h.start-1||m&&o(m,v)>-1||s(r,f.mode.xmlCurrentContext&&f.mode.xmlCurrentContext(d)||[],g,u,!0))return t.Pass;var y="object"==typeof c&&c.emptyTags;if(y&&o(y,g)>-1)a[l]={text:"/>",newPos:t.Pos(u.line,u.ch+2)};else{var w=b&&o(b,v)>-1;a[l]={indent:w,text:">"+(w?"\n\n":"")+"",newPos:w?t.Pos(u.line+1,0):t.Pos(u.line,u.ch+1)}}}var k="object"==typeof c&&c.dontIndentOnAutoClose;for(l=i.length-1;l>=0;l--){var x=a[l];r.replaceRange(x.text,i[l].head,i[l].anchor,"+insert");var C=r.listSelections().slice(0);C[l]={head:x.newPos,anchor:x.newPos},r.setSelections(C),!k&&x.indent&&(r.indentLine(x.newPos.line,null,!0),r.indentLine(x.newPos.line+1,null,!0))}}function i(e,n){for(var r=e.listSelections(),i=[],a=n?"/":""!=e.getLine(u.line).charAt(h.end)&&(A+=">"),i[l]=A}if(e.replaceSelections(i),r=e.listSelections(),!c)for(l=0;l=0&&n[l]==r;l--)++c;for(i=s.to,l=1;lu);h++){var f=t.getLine(l++);i=null==i?f:i+"\n"+f}c*=2,e.lastIndex=n.ch;var d=e.exec(i);if(d){var A=i.slice(0,d.index).split("\n"),g=d[0].split("\n"),p=n.line+A.length-1,m=A[A.length-1].length;return{from:r(p,m),to:r(p+g.length-1,1==g.length?m+g[0].length:g[g.length-1].length),match:d}}}}function l(t,e,n){for(var r,i=0;i<=t.length;){e.lastIndex=i;var a=e.exec(t);if(!a)break;var o=a.index+a[0].length;if(o>t.length-n)break;(!r||o>r.index+r[0].length)&&(r=a),i=a.index+1}return r}function u(t,e,n){e=a(e,"g");for(var i=n.line,o=n.ch,s=t.firstLine();i>=s;i--,o=-1){var c=t.getLine(i),u=l(c,e,o<0?0:c.length-o);if(u)return{from:r(i,u.index),to:r(i,u.index+u[0].length),match:u}}}function h(t,e,n){if(!o(e))return u(t,e,n);e=a(e,"gm");for(var i,s=1,c=t.getLine(n.line).length-n.ch,h=n.line,f=t.firstLine();h>=f;){for(var d=0;d=f;d++){var A=t.getLine(h--);i=null==i?A:A+"\n"+i}s*=2;var g=l(i,e,c);if(g){var p=i.slice(0,g.index).split("\n"),m=g[0].split("\n"),b=h+p.length,v=p[p.length-1].length;return{from:r(b,v),to:r(b+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:g}}}}function f(t,e,n,r){if(t.length==e.length)return n;for(var i=0,a=n+Math.max(0,t.length-e.length);;){if(i==a)return i;var o=i+a>>1,s=r(t.slice(0,o)).length;if(s==n)return o;s>n?a=o:i=o+1}}function d(t,i,a,o){if(!i.length)return null;var s=o?e:n,c=s(i).split(/\r|\n\r?/);t:for(var l=a.line,u=a.ch,h=t.lastLine()+1-c.length;l<=h;l++,u=0){var d=t.getLine(l).slice(u),A=s(d);if(1==c.length){var g=A.indexOf(c[0]);if(-1==g)continue t;return a=f(d,A,g,s)+u,{from:r(l,f(d,A,g,s)+u),to:r(l,f(d,A,g+c[0].length,s)+u)}}var p=A.length-c[0].length;if(A.slice(p)==c[0]){for(var m=1;m=h;l--,u=-1){var d=t.getLine(l);u>-1&&(d=d.slice(0,u));var A=s(d);if(1==c.length){var g=A.lastIndexOf(c[0]);if(-1==g)continue t;return{from:r(l,f(d,A,g,s)),to:r(l,f(d,A,g+c[0].length,s))}}var p=c[c.length-1];if(A.slice(0,p.length)==p){var m=1;for(a=l-c.length+1;m0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(gf)})),r((function(t,e){!function(t){var e=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=t.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(t){return t&&t.bracketRegex||/[(){}[\]]/}function a(t,e,a){var s=t.getLineHandle(e.line),c=e.ch-1,l=a&&a.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var u=i(a),h=!l&&c>=0&&u.test(s.text.charAt(c))&&r[s.text.charAt(c)]||u.test(s.text.charAt(c+1))&&r[s.text.charAt(++c)];if(!h)return null;var f=">"==h.charAt(1)?1:-1;if(a&&a.strict&&f>0!=(c==e.ch))return null;var d=t.getTokenTypeAt(n(e.line,c+1)),A=o(t,n(e.line,c+(f>0?1:0)),f,d||null,a);return null==A?null:{from:n(e.line,c),to:A&&A.pos,match:A&&A.ch==h.charAt(0),forward:f>0}}function o(t,e,a,o,s){for(var c=s&&s.maxScanLineLength||1e4,l=s&&s.maxScanLines||1e3,u=[],h=i(s),f=a>0?Math.min(e.line+l,t.lastLine()+1):Math.max(t.firstLine()-1,e.line-l),d=e.line;d!=f;d+=a){var A=t.getLine(d);if(A){var g=a>0?0:A.length-1,p=a>0?A.length:-1;if(!(A.length>c))for(d==e.line&&(g=e.ch-(a<0?1:0));g!=p;g+=a){var m=A.charAt(g);if(h.test(m)&&(void 0===o||t.getTokenTypeAt(n(d,g+1))==o)){var b=r[m];if(b&&">"==b.charAt(1)==a>0)u.push(m);else{if(!u.length)return{pos:n(d,g),ch:m};u.pop()}}}}}return d-a!=(a>0?t.lastLine():t.firstLine())&&null}function s(t,r,i){for(var o=t.state.matchBrackets.maxHighlightLineLength||1e3,s=[],c=t.listSelections(),l=0;l0&&r.ch>=a.length)return e.clipPos(n(r.line+1,0));for(var o,s="start",c=r.ch,l=c,u=i<0?0:a.length,h=0;l!=u;l+=i,h++){var f=a.charAt(i<0?l-1:l),d="_"!=f&&t.isWordChar(f)?"w":"o";if("w"==d&&f.toUpperCase()==f&&(d="W"),"start"==s)"o"!=d?(s="in",o=d):c=l+i;else if("in"==s&&o!=d){if("w"==o&&"W"==d&&i<0&&l--,"W"==o&&"w"==d&&i>0){if(l==c+1){o="w";continue}l--}break}}return n(r.line,l)}function i(t,e){t.extendSelectionsBy((function(n){return t.display.shift||t.doc.extend||n.empty()?r(t.doc,n.head,e):e<0?n.from():n.to()}))}function a(e,r){if(e.isReadOnly())return t.Pass;e.operation((function(){for(var t=e.listSelections().length,i=[],a=-1,o=0;o=n&&t.execCommand("goLineUp")}t.scrollTo(null,e.top-t.defaultTextHeight())},e.scrollLineDown=function(t){var e=t.getScrollInfo();if(!t.somethingSelected()){var n=t.lineAtHeight(e.top,"local")+1;t.getCursor().line<=n&&t.execCommand("goLineDown")}t.scrollTo(null,e.top+t.defaultTextHeight())},e.splitSelectionByLine=function(t){for(var e=t.listSelections(),r=[],i=0;ia.line&&s==o.line&&0==o.ch||r.push({anchor:s==a.line?a:n(s,0),head:s==o.line?o:n(s)});t.setSelections(r,0)},e.singleSelectionTop=function(t){var e=t.listSelections()[0];t.setSelection(e.anchor,e.head,{scroll:!1})},e.selectLine=function(t){for(var e=t.listSelections(),r=[],i=0;i=0;s--){var l=r[i[s]];if(!(c&&t.cmpPos(l.head,c)>0)){var u=o(e,l.head);c=u.from,e.replaceRange(n(u.word),u.from,u.to)}}}))}function A(e){var n=e.getCursor("from"),r=e.getCursor("to");if(0==t.cmpPos(n,r)){var i=o(e,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:e.getRange(n,r),word:i}}function g(t,e){var r=A(t);if(r){var i=r.query,a=t.getSearchCursor(i,e?r.to:r.from);(e?a.findNext():a.findPrevious())?t.setSelection(a.from(),a.to()):(a=t.getSearchCursor(i,e?n(t.firstLine(),0):t.clipPos(n(t.lastLine()))),(e?a.findNext():a.findPrevious())?t.setSelection(a.from(),a.to()):r.word&&t.setSelection(r.from,r.to))}}e.selectScope=function(t){u(t)||t.execCommand("selectAll")},e.selectBetweenBrackets=function(e){if(!u(e))return t.Pass},e.goToBracket=function(e){e.extendSelectionsBy((function(r){var i=e.scanForBracket(r.head,1,h(e.getTokenTypeAt(r.head)));if(i&&0!=t.cmpPos(i.pos,r.head))return i.pos;var a=e.scanForBracket(r.head,-1,h(e.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return a&&n(a.pos.line,a.pos.ch+1)||r.head}))},e.swapLineUp=function(e){if(e.isReadOnly())return t.Pass;for(var r=e.listSelections(),i=[],a=e.firstLine()-1,o=[],s=0;sa?i.push(l,u):i.length&&(i[i.length-1]=u),a=u}e.operation((function(){for(var t=0;te.lastLine()?e.replaceRange("\n"+s,n(e.lastLine()),null,"+swapLine"):e.replaceRange(s+"\n",n(a,0),null,"+swapLine")}e.setSelections(o),e.scrollIntoView()}))},e.swapLineDown=function(e){if(e.isReadOnly())return t.Pass;for(var r=e.listSelections(),i=[],a=e.lastLine()+1,o=r.length-1;o>=0;o--){var s=r[o],c=s.to().line+1,l=s.from().line;0!=s.to().ch||s.empty()||c--,c=0;t-=2){var r=i[t],a=i[t+1],o=e.getLine(r);r==e.lastLine()?e.replaceRange("",n(r-1),n(r),"+swapLine"):e.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),e.replaceRange(o+"\n",n(a,0),null,"+swapLine")}e.scrollIntoView()}))},e.toggleCommentIndented=function(t){t.toggleComment({indent:!0})},e.joinLines=function(t){for(var e=t.listSelections(),r=[],i=0;i=0;a--){var o=r[a].head,s=e.getRange({line:o.line,ch:0},o),c=t.countColumn(s,null,e.getOption("tabSize")),l=e.findPosH(o,-1,"char",!1);if(s&&!/\S/.test(s)&&c%i==0){var u=new n(o.line,t.findColumn(s,c-i,i));u.ch!=o.ch&&(l=u)}e.replaceRange("",l,o,"+delete")}}))},e.delLineRight=function(t){t.operation((function(){for(var e=t.listSelections(),r=e.length-1;r>=0;r--)t.replaceRange("",e[r].anchor,n(e[r].to().line),"+delete");t.scrollIntoView()}))},e.upcaseAtCursor=function(t){d(t,(function(t){return t.toUpperCase()}))},e.downcaseAtCursor=function(t){d(t,(function(t){return t.toLowerCase()}))},e.setSublimeMark=function(t){t.state.sublimeMark&&t.state.sublimeMark.clear(),t.state.sublimeMark=t.setBookmark(t.getCursor())},e.selectToSublimeMark=function(t){var e=t.state.sublimeMark&&t.state.sublimeMark.find();e&&t.setSelection(t.getCursor(),e)},e.deleteToSublimeMark=function(e){var n=e.state.sublimeMark&&e.state.sublimeMark.find();if(n){var r=e.getCursor(),i=n;if(t.cmpPos(r,i)>0){var a=i;i=r,r=a}e.state.sublimeKilled=e.getRange(r,i),e.replaceRange("",r,i)}},e.swapWithSublimeMark=function(t){var e=t.state.sublimeMark&&t.state.sublimeMark.find();e&&(t.state.sublimeMark.clear(),t.state.sublimeMark=t.setBookmark(t.getCursor()),t.setCursor(e))},e.sublimeYank=function(t){null!=t.state.sublimeKilled&&t.replaceSelection(t.state.sublimeKilled,null,"paste")},e.showInCenter=function(t){var e=t.cursorCoords(null,"local");t.scrollTo(null,(e.top+e.bottom)/2-t.getScrollInfo().clientHeight/2)},e.findUnder=function(t){g(t,!0)},e.findUnderPrevious=function(t){g(t,!1)},e.findAllUnder=function(t){var e=A(t);if(e){for(var n=t.getSearchCursor(e.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=e.from.line&&n.from().ch<=e.from.ch&&i++;t.setSelections(r,i)}};var p=t.keyMap;p.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Cmd-F5":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},t.normalizeKeyMap(p.macSublime),p.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Ctrl-F9":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},t.normalizeKeyMap(p.pcSublime);var m=p.default==p.macDefault;p.sublime=m?p.macSublime:p.pcSublime}(gf)}));r((function(t,e){!function(t){function e(e,n,r){var i,a=e.getWrapperElement();return(i=a.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),t.addClass(a,"dialog-opened"),i}function n(t,e){t.state.currentNotificationClose&&t.state.currentNotificationClose(),t.state.currentNotificationClose=e}t.defineExtension("openDialog",(function(r,i,a){a||(a={}),n(this,null);var o=e(this,r,a.bottom),s=!1,c=this;function l(e){if("string"==typeof e)h.value=e;else{if(s)return;s=!0,t.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),c.focus(),a.onClose&&a.onClose(o)}}var u,h=o.getElementsByTagName("input")[0];return h?(h.focus(),a.value&&(h.value=a.value,!1!==a.selectValueOnOpen&&h.select()),a.onInput&&t.on(h,"input",(function(t){a.onInput(t,h.value,l)})),a.onKeyUp&&t.on(h,"keyup",(function(t){a.onKeyUp(t,h.value,l)})),t.on(h,"keydown",(function(e){a&&a.onKeyDown&&a.onKeyDown(e,h.value,l)||((27==e.keyCode||!1!==a.closeOnEnter&&13==e.keyCode)&&(h.blur(),t.e_stop(e),l()),13==e.keyCode&&i(h.value,e))})),!1!==a.closeOnBlur&&t.on(o,"focusout",(function(t){null!==t.relatedTarget&&l()}))):(u=o.getElementsByTagName("button")[0])&&(t.on(u,"click",(function(){l(),c.focus()})),!1!==a.closeOnBlur&&t.on(u,"blur",l),u.focus()),l})),t.defineExtension("openConfirm",(function(r,i,a){n(this,null);var o=e(this,r,a&&a.bottom),s=o.getElementsByTagName("button"),c=!1,l=this,u=1;function h(){c||(c=!0,t.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o),l.focus())}s[0].focus();for(var f=0;f",type:"keyToKey",toKeys:"h"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"",type:"keyToKey",toKeys:"W"},{keys:"",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"",type:"keyToKey",toKeys:"w"},{keys:"",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"",type:"keyToKey",toKeys:"0"},{keys:"",type:"keyToKey",toKeys:"$"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"",type:"idle",context:"normal"},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r",type:"action",action:"replace",isEdit:!0},{keys:"@",type:"action",action:"replayMacro"},{keys:"q",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"",type:"action",action:"redo"},{keys:"m",type:"action",action:"setMark"},{keys:'"',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a",type:"motion",motion:"textObjectManipulation"},{keys:"i",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}]).length,a=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"global",shortName:"g"}],o=(n=gf).Pos,s=function(){function t(t){t.setOption("disableInput",!0),t.setOption("showCursorWhenSelecting",!1),n.signal(t,"vim-mode-change",{mode:"normal"}),t.on("cursorActivity",$e),K(t),n.on(t.getInputField(),"paste",m(t))}function e(t){t.setOption("disableInput",!1),t.off("cursorActivity",$e),n.off(t.getInputField(),"paste",m(t)),t.state.vim=null}function s(t,r){this==n.keyMap.vim&&(n.rmClass(t.getWrapperElement(),"cm-fat-cursor"),"contenteditable"==t.getOption("inputStyle")&&null!=document.body.style.caretColor&&(f(t),t.getInputField().style.caretColor="")),r&&r.attach==c||e(t)}function c(e,r){this==n.keyMap.vim&&(n.addClass(e.getWrapperElement(),"cm-fat-cursor"),"contenteditable"==e.getOption("inputStyle")&&null!=document.body.style.caretColor&&(h(e),e.getInputField().style.caretColor="transparent")),r&&r.attach==c||t(e)}function l(t){if(t.state.fatCursorMarks){u(t);for(var e=t.listSelections(),n=[],r=0;r")}function m(t){var e=t.state.vim;return e.onPasteFn||(e.onPasteFn=function(){e.insertMode||(t.setCursor(lt(t.getCursor(),0,1)),at.enterInsertMode(t,{},e))}),e.onPasteFn}var b=/[\d]/,v=[n.isWordChar,function(t){return t&&!n.isWordChar(t)&&!/\s/.test(t)}],y=[function(t){return/\S/.test(t)}];function w(t,e){for(var n=[],r=t;r"]),T=[].concat(k,x,C,["-",'"',".",":","_","/"]);function B(t,e){return e>=t.firstLine()&&e<=t.lastLine()}function _(t){return/^[a-z]$/.test(t)}function S(t){return-1!="()[]{}".indexOf(t)}function L(t){return b.test(t)}function I(t){return/^[A-Z]$/.test(t)}function M(t){return/^\s*$/.test(t)}function O(t){return-1!=".?!".indexOf(t)}function D(t,e){for(var n=0;nn?e=n:e0?1:-1,u=a.getCursor();do{if((s=i[(t+(e+=l))%t])&&(c=s.find())&&!gt(u,c))break}while(er)}return s}function s(t,n){var r=e,i=o(t,n);return e=r,i&&i.find()}return{cachedCursor:void 0,add:a,find:s,move:o}},$=function(t){return t?{changes:t.changes,expectCursorActivityForChange:t.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function j(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=$()}function K(t){return t.state.vim||(t.state.vim={inputState:new X,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},fakeCursor:null,insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),t.state.vim}function z(){for(var t in Q={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:H(),macroModeState:new j,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new Y({}),searchHistoryController:new J,exCommandHistoryController:new J},F){var e=F[t];e.value=e.defaultValue}}j.prototype={exitMacroRecordMode:function(){var t=Q.macroModeState;t.onRecordingDone&&t.onRecordingDone(),t.onRecordingDone=void 0,t.isRecording=!1},enterMacroRecordMode:function(t,e){var n=Q.registerController.getRegister(e);n&&(n.clear(),this.latestRegister=e,t.openDialog&&(this.onRecordingDone=t.openDialog("(recording)["+e+"]",null,{bottom:!0})),this.isRecording=!0)}};var G={buildKeyMap:function(){},getRegisterController:function(){return Q.registerController},resetVimGlobalState_:z,getVimGlobalState_:function(){return Q},maybeInitVimState_:K,suppressErrorLogging:!1,InsertModeKey:Ge,map:function(t,e,n){Me.map(t,e,n)},unmap:function(t,e){Me.unmap(t,e)},noremap:function(t,e,n){function a(t){return t?[t]:["normal","insert","visual"]}for(var o=a(n),s=r.length,c=s-i;c=0;o--){var s=a[o];if(t!==s.context)if(s.context)this._mapCommand(s);else{var c=["normal","insert","visual"];for(var l in c)if(c[l]!==t){var u={};for(var h in s)u[h]=s[h];u.context=c[l],this._mapCommand(u)}}}},setOption:R,getOption:P,defineOption:N,defineEx:function(t,e,n){if(e){if(0!==t.indexOf(e))throw new Error('(Vim.defineEx) "'+e+'" is not a prefix of "'+t+'", command not registered')}else e=t;Ie[t]=n,Me.commandMap_[e]={name:t,shortName:e,type:"api"}},handleKey:function(t,e,n){var r=this.findKey(t,e,n);if("function"==typeof r)return r()},findKey:function(t,e,i){var a,o=K(t);function s(){var n=Q.macroModeState;if(n.isRecording){if("q"==e)return n.exitMacroRecordMode(),V(t),!0;"mapping"!=i&&Pe(n,e)}}function c(){if(""==e)return V(t),o.visualMode?Ot(t):o.insertMode&&De(t),!0}function l(r){for(var i;r;)i=/<\w+-.+?>|<\w+>|./.exec(r),e=i[0],r=r.substring(i.index+e.length),n.Vim.handleKey(t,e,"mapping")}function u(){if(c())return!0;for(var n=o.inputState.keyBuffer=o.inputState.keyBuffer+e,i=1==e.length,a=Z.matchCommand(n,r,o.inputState,"insert");n.length>1&&"full"!=a.type;){n=o.inputState.keyBuffer=n.slice(1);var s=Z.matchCommand(n,r,o.inputState,"insert");"none"!=s.type&&(a=s)}if("none"==a.type)return V(t),!1;if("partial"==a.type)return U&&window.clearTimeout(U),U=window.setTimeout((function(){o.insertMode&&o.inputState.keyBuffer&&V(t)}),P("insertModeEscKeysTimeout")),!i;if(U&&window.clearTimeout(U),i){for(var l=t.listSelections(),u=0;u0||this.motionRepeat.length>0)&&(t=1,this.prefixRepeat.length>0&&(t*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(t*=parseInt(this.motionRepeat.join(""),10))),t},W.prototype={setText:function(t,e,n){this.keyBuffer=[t||""],this.linewise=!!e,this.blockwise=!!n},pushText:function(t,e){e&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(t)},pushInsertModeChanges:function(t){this.insertModeChanges.push($(t))},pushSearchQuery:function(t){this.searchQueries.push(t)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},Y.prototype={pushText:function(t,e,n,r,i){if("_"!==t){r&&"\n"!==n.charAt(n.length-1)&&(n+="\n");var a=this.isValidRegister(t)?this.getRegister(t):null;if(a)I(t)?a.pushText(n,r):a.setText(n,r,i),this.unnamedRegister.setText(a.toString(),r);else{switch(e){case"yank":this.registers[0]=new W(n,r,i);break;case"delete":case"change":-1==n.indexOf("\n")?this.registers["-"]=new W(n,r):(this.shiftNumericRegisters_(),this.registers[1]=new W(n,r))}this.unnamedRegister.setText(n,r,i)}}},getRegister:function(t){return this.isValidRegister(t)?(t=t.toLowerCase(),this.registers[t]||(this.registers[t]=new W),this.registers[t]):this.unnamedRegister},isValidRegister:function(t){return t&&D(t,T)},shiftNumericRegisters_:function(){for(var t=9;t>=2;t--)this.registers[t]=this.getRegister(""+(t-1))}},J.prototype={nextMatch:function(t,e){var n=this.historyBuffer,r=e?-1:1;null===this.initialPrefix&&(this.initialPrefix=t);for(var i=this.iterator+r;e?i>=0:i=n.length?(this.iterator=n.length,this.initialPrefix):i<0?t:void 0},pushInput:function(t){var e=this.historyBuffer.indexOf(t);e>-1&&this.historyBuffer.splice(e,1),t.length&&this.historyBuffer.push(t)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var Z={matchCommand:function(t,e,n,r){var i,a=ut(t,e,r,n);if(!a.full&&!a.partial)return{type:"none"};if(!a.full&&a.partial)return{type:"partial"};for(var o=0;o"==i.keys.slice(-11)){var c=ft(t);if(!c)return{type:"none"};n.selectedCharacter=c}return{type:"full",command:i}},processCommand:function(t,e,n){switch(e.inputState.repeatOverride=n.repeatOverride,n.type){case"motion":this.processMotion(t,e,n);break;case"operator":this.processOperator(t,e,n);break;case"operatorMotion":this.processOperatorMotion(t,e,n);break;case"action":this.processAction(t,e,n);break;case"search":this.processSearch(t,e,n);break;case"ex":case"keyToEx":this.processEx(t,e,n)}},processMotion:function(t,e,n){e.inputState.motion=n.motion,e.inputState.motionArgs=ct(n.motionArgs),this.evalInput(t,e)},processOperator:function(t,e,n){var r=e.inputState;if(r.operator){if(r.operator==n.operator)return r.motion="expandToLine",r.motionArgs={linewise:!0},void this.evalInput(t,e);V(t)}r.operator=n.operator,r.operatorArgs=ct(n.operatorArgs),n.exitVisualBlock&&(e.visualBlock=!1,Lt(t)),e.visualMode&&this.evalInput(t,e)},processOperatorMotion:function(t,e,n){var r=e.visualMode,i=ct(n.operatorMotionArgs);i&&r&&i.visualLine&&(e.visualLine=!0),this.processOperator(t,e,n),r||this.processMotion(t,e,n)},processAction:function(t,e,n){var r=e.inputState,i=r.getRepeat(),a=!!i,o=ct(n.actionArgs)||{};r.selectedCharacter&&(o.selectedCharacter=r.selectedCharacter),n.operator&&this.processOperator(t,e,n),n.motion&&this.processMotion(t,e,n),(n.motion||n.operator)&&this.evalInput(t,e),o.repeat=i||1,o.repeatIsExplicit=a,o.registerName=r.registerName,V(t),e.lastMotion=null,n.isEdit&&this.recordLastEdit(e,r,n),at[n.action](t,o,e)},processSearch:function(t,e,r){if(t.getSearchCursor){var i=r.searchArgs.forward,a=r.searchArgs.wholeWordOnly;ne(t).setReversed(!i);var o=i?"/":"?",s=ne(t).getQuery(),c=t.getScrollInfo();switch(r.searchArgs.querySrc){case"prompt":var l=Q.macroModeState;l.isPlaying?d(f=l.replaySearchQueries.shift(),!0,!1):me(t,{onClose:A,prefix:o,desc:pe,onKeyUp:g,onKeyDown:p});break;case"wordUnderCursor":var u=Rt(t,!1,!0,!1,!0),h=!0;if(u||(u=Rt(t,!1,!0,!1,!1),h=!1),!u)return;var f=t.getLine(u.start.line).substring(u.start.ch,u.end.ch);f=h&&a?"\\b"+f+"\\b":kt(f),Q.jumpList.cachedCursor=t.getCursor(),t.setCursor(u.start),d(f,!0,!1)}}function d(n,i,a){Q.searchHistoryController.pushInput(n),Q.searchHistoryController.reset();try{ve(t,n,i,a)}catch(e){return Ae(t,"Invalid regex: "+n),void V(t)}Z.processMotion(t,e,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:r.searchArgs.toJumplist}})}function A(e){t.scrollTo(c.left,c.top),d(e,!0,!0);var n=Q.macroModeState;n.isRecording&&Ue(n,e)}function g(e,r,a){var o,s,l,u=n.keyName(e);"Up"==u||"Down"==u?(o="Up"==u,s=e.target?e.target.selectionEnd:0,a(r=Q.searchHistoryController.nextMatch(r,o)||""),s&&e.target&&(e.target.selectionEnd=e.target.selectionStart=Math.min(s,e.target.value.length))):"Left"!=u&&"Right"!=u&&"Ctrl"!=u&&"Alt"!=u&&"Shift"!=u&&Q.searchHistoryController.reset();try{l=ve(t,r,!0,!0)}catch(e){}l?t.scrollIntoView(xe(t,!i,l),30):(Ee(t),t.scrollTo(c.left,c.top))}function p(e,r,i){var a=n.keyName(e);"Esc"==a||"Ctrl-C"==a||"Ctrl-["==a||"Backspace"==a&&""==r?(Q.searchHistoryController.pushInput(r),Q.searchHistoryController.reset(),ve(t,s),Ee(t),t.scrollTo(c.left,c.top),n.e_stop(e),V(t),i(),t.focus()):"Up"==a||"Down"==a?n.e_stop(e):"Ctrl-U"==a&&(n.e_stop(e),i(""))}},processEx:function(t,e,r){function i(e){Q.exCommandHistoryController.pushInput(e),Q.exCommandHistoryController.reset(),Me.processCommand(t,e)}function a(e,r,i){var a,o,s=n.keyName(e);("Esc"==s||"Ctrl-C"==s||"Ctrl-["==s||"Backspace"==s&&""==r)&&(Q.exCommandHistoryController.pushInput(r),Q.exCommandHistoryController.reset(),n.e_stop(e),V(t),i(),t.focus()),"Up"==s||"Down"==s?(n.e_stop(e),a="Up"==s,o=e.target?e.target.selectionEnd:0,i(r=Q.exCommandHistoryController.nextMatch(r,a)||""),o&&e.target&&(e.target.selectionEnd=e.target.selectionStart=Math.min(o,e.target.value.length))):"Ctrl-U"==s?(n.e_stop(e),i("")):"Left"!=s&&"Right"!=s&&"Ctrl"!=s&&"Alt"!=s&&"Shift"!=s&&Q.exCommandHistoryController.reset()}"keyToEx"==r.type?Me.processCommand(t,r.exArgs.input):e.visualMode?me(t,{onClose:i,prefix:":",value:"'<,'>",onKeyDown:a,selectValueOnOpen:!1}):me(t,{onClose:i,prefix:":",onKeyDown:a})},evalInput:function(t,e){var n,r,i,a=e.inputState,s=a.motion,c=a.motionArgs||{},l=a.operator,u=a.operatorArgs||{},h=a.registerName,f=e.sel,d=At(e.visualMode?st(t,f.head):t.getCursor("head")),A=At(e.visualMode?st(t,f.anchor):t.getCursor("anchor")),g=At(d),p=At(A);if(l&&this.recordLastEdit(e,a),(i=void 0!==a.repeatOverride?a.repeatOverride:a.getRepeat())>0&&c.explicitRepeat?c.repeatIsExplicit=!0:(c.noRepeat||!c.explicitRepeat&&0===i)&&(i=1,c.repeatIsExplicit=!1),a.selectedCharacter&&(c.selectedCharacter=u.selectedCharacter=a.selectedCharacter),c.repeat=i,V(t),s){var m=tt[s](t,d,c,e,a);if(e.lastMotion=tt[s],!m)return;if(c.toJumplist){var b=Q.jumpList,v=b.cachedCursor;v?(Qt(t,v,m),delete b.cachedCursor):Qt(t,d,m)}m instanceof Array?(r=m[0],n=m[1]):n=m,n||(n=At(d)),e.visualMode?(e.visualBlock&&n.ch===1/0||(n=st(t,n)),r&&(r=st(t,r)),r=r||p,f.anchor=r,f.head=n,Lt(t),Wt(t,e,"<",pt(r,n)?r:n),Wt(t,e,">",pt(r,n)?n:r)):l||(n=st(t,n),t.setCursor(n.line,n.ch))}if(l){if(u.lastSel){r=p;var y=u.lastSel,w=Math.abs(y.head.line-y.anchor.line),k=Math.abs(y.head.ch-y.anchor.ch);n=y.visualLine?o(p.line+w,p.ch):y.visualBlock?o(p.line+w,p.ch+k):y.head.line==y.anchor.line?o(p.line,p.ch+k):o(p.line+w,p.ch),e.visualMode=!0,e.visualLine=y.visualLine,e.visualBlock=y.visualBlock,f=e.sel={anchor:r,head:n},Lt(t)}else e.visualMode&&(u.lastSel={anchor:At(f.anchor),head:At(f.head),visualBlock:e.visualBlock,visualLine:e.visualLine});var x,C,E,T,B;if(e.visualMode){if(x=mt(f.head,f.anchor),C=bt(f.head,f.anchor),E=e.visualLine||u.linewise,B=It(t,{anchor:x,head:C},T=e.visualBlock?"block":E?"line":"char"),E){var _=B.ranges;if("block"==T)for(var S=0;S<_.length;S++)_[S].head.ch=yt(t,_[S].head.line);else"line"==T&&(_[0].head=o(_[0].head.line+1,0))}}else{if(x=At(r||p),pt(C=At(n||g),x)){var L=x;x=C,C=L}(E=c.linewise||u.linewise)?Ft(t,x,C):c.forward&&Dt(t,x,C),B=It(t,{anchor:x,head:C},T="char",!c.inclusive||E)}t.setSelections(B.ranges,B.primary),e.lastMotion=null,u.repeat=i,u.registerName=h,u.linewise=E;var I=rt[l](t,u,B.ranges,p,n);e.visualMode&&Ot(t,null!=I),I&&t.setCursor(I)}},recordLastEdit:function(t,e,n){var r=Q.macroModeState;r.isPlaying||(t.lastEditInputState=e,t.lastEditActionCommand=n,r.lastInsertModeChanges.changes=[],r.lastInsertModeChanges.expectCursorActivityForChange=!1,r.lastInsertModeChanges.visualBlock=t.visualBlock?t.sel.head.line-t.sel.anchor.line:0)}},tt={moveToTopLine:function(t,e,n){var r=Be(t).top+n.repeat-1;return o(r,Nt(t.getLine(r)))},moveToMiddleLine:function(t){var e=Be(t),n=Math.floor(.5*(e.top+e.bottom));return o(n,Nt(t.getLine(n)))},moveToBottomLine:function(t,e,n){var r=Be(t).bottom-n.repeat+1;return o(r,Nt(t.getLine(r)))},expandToLine:function(t,e,n){return o(e.line+n.repeat-1,1/0)},findNext:function(t,e,n){var r=ne(t),i=r.getQuery();if(i){var a=!n.forward;return a=r.isReversed()?!a:a,ke(t,i),xe(t,a,i,n.repeat)}},findAndSelectNextInclusive:function(t,e,r,i,a){var s=ne(t),c=s.getQuery();if(c){var l=!r.forward,u=Ce(t,l=s.isReversed()?!l:l,c,r.repeat,i);if(u){if(a.operator)return u;var h=u[0],f=o(u[1].line,u[1].ch-1);if(i.visualMode){(i.visualLine||i.visualBlock)&&(i.visualLine=!1,i.visualBlock=!1,n.signal(t,"vim-mode-change",{mode:"visual",subMode:""}));var d=i.sel.anchor;if(d)return s.isReversed()?r.forward?[d,h]:[d,f]:r.forward?[d,f]:[d,h]}else i.visualMode=!0,i.visualLine=!1,i.visualBlock=!1,n.signal(t,"vim-mode-change",{mode:"visual",subMode:""});return l?[f,h]:[h,f]}}},goToMark:function(t,e,n,r){var i=_e(t,r,n.selectedCharacter);return i?n.linewise?{line:i.line,ch:Nt(t.getLine(i.line))}:i:null},moveToOtherHighlightedEnd:function(t,e,n,r){if(r.visualBlock&&n.sameLine){var i=r.sel;return[st(t,o(i.anchor.line,i.head.ch)),st(t,o(i.head.line,i.anchor.ch))]}return[r.sel.head,r.sel.anchor]},jumpToMark:function(t,e,n,r){for(var i=e,a=0;ac:h.lineu&&i.line==u?Gt(t,e,n,r,!0):(n.toFirstChar&&(a=Nt(t.getLine(c)),r.lastHPos=a),r.lastHSPos=t.charCoords(o(c,a),"div").left,o(c,a))},moveByDisplayLines:function(t,e,n,r){var i=e;switch(r.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:r.lastHSPos=t.charCoords(i,"div").left}var a=n.repeat;if((c=t.findPosV(i,n.forward?a:-a,"line",r.lastHSPos)).hitSide)if(n.forward)var s={top:t.charCoords(c,"div").top+8,left:r.lastHSPos},c=t.coordsChar(s,"div");else{var l=t.charCoords(o(t.firstLine(),0),"div");l.left=r.lastHSPos,c=t.coordsChar(l,"div")}return r.lastHPos=c.ch,c},moveByPage:function(t,e,n){var r=e,i=n.repeat;return t.findPosV(r,n.forward?i:-i,"page")},moveByParagraph:function(t,e,n){var r=n.forward?1:-1;return Yt(t,e,n.repeat,r)},moveBySentence:function(t,e,n){var r=n.forward?1:-1;return Jt(t,e,n.repeat,r)},moveByScroll:function(t,e,n,r){var i=t.getScrollInfo(),a=null,o=n.repeat;o||(o=i.clientHeight/(2*t.defaultTextHeight()));var s=t.charCoords(e,"local");if(n.repeat=o,!(a=tt.moveByDisplayLines(t,e,n,r)))return null;var c=t.charCoords(a,"local");return t.scrollTo(null,i.top+c.top-s.top),a},moveByWords:function(t,e,n){return zt(t,e,n.repeat,!!n.forward,!!n.wordEnd,!!n.bigWord)},moveTillCharacter:function(t,e,n){var r=Xt(t,n.repeat,n.forward,n.selectedCharacter),i=n.forward?-1:1;return Ut(i,n),r?(r.ch+=i,r):null},moveToCharacter:function(t,e,n){var r=n.repeat;return Ut(0,n),Xt(t,r,n.forward,n.selectedCharacter)||e},moveToSymbol:function(t,e,n){return jt(t,n.repeat,n.forward,n.selectedCharacter)||e},moveToColumn:function(t,e,n,r){var i=n.repeat;return r.lastHPos=i-1,r.lastHSPos=t.charCoords(e,"div").left,Vt(t,i)},moveToEol:function(t,e,n,r){return Gt(t,e,n,r,!1)},moveToFirstNonWhiteSpaceCharacter:function(t,e){var n=e;return o(n.line,Nt(t.getLine(n.line)))},moveToMatchedSymbol:function(t,e){for(var n,r=e,i=r.line,a=r.ch,s=t.getLine(i);a"===a?/[(){}[\]<>]/:/[(){}[\]]/;return t.findMatchingBracket(o(i,a),{bracketRegex:l}).to}return r},moveToStartOfLine:function(t,e){return o(e.line,0)},moveToLineOrEdgeOfDocument:function(t,e,n){var r=n.forward?t.lastLine():t.firstLine();return n.repeatIsExplicit&&(r=n.repeat-t.getOption("firstLineNumber")),o(r,Nt(t.getLine(r)))},textObjectManipulation:function(t,e,n,r){var i={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},a={"'":!0,'"':!0,"`":!0},o=n.selectedCharacter;"b"==o?o="(":"B"==o&&(o="{");var s,c=!n.textObjectInner;if(i[o])s=Zt(t,e,o,c);else if(a[o])s=te(t,e,o,c);else if("W"===o)s=Rt(t,c,!0,!0);else if("w"===o)s=Rt(t,c,!0,!1);else if("p"===o)if(s=Yt(t,e,n.repeat,0,c),n.linewise=!0,r.visualMode)r.visualLine||(r.visualLine=!0);else{var l=r.inputState.operatorArgs;l&&(l.linewise=!0),s.end.line--}else{if("t"!==o)return null;s=Pt(t,e,c)}return t.state.vim.visualMode?St(t,s.start,s.end):[s.start,s.end]},repeatLastCharacterSearch:function(t,e,n){var r=Q.lastCharacterSearch,i=n.repeat,a=n.forward===r.forward,o=(r.increment?1:0)*(a?-1:1);t.moveH(-o,"char"),n.inclusive=!!a;var s=Xt(t,i,a,r.selectedCharacter);return s?(s.ch+=o,s):(t.moveH(o,"char"),e)}};function et(t,e){tt[t]=e}function nt(t,e){for(var n=[],r=0;rt.lastLine()&&e.linewise&&!A?t.replaceRange("",d,l):t.replaceRange("",c,l),e.linewise&&(A||(t.setCursor(d),n.commands.newlineAndIndent(t)),c.ch=Number.MAX_VALUE),i=c}Q.registerController.pushText(e.registerName,"change",a,e.linewise,r.length>1),at.enterInsertMode(t,{head:i},t.state.vim)},delete:function(t,e,n){var r,i,a=t.state.vim;if(a.visualBlock){i=t.getSelection();var s=nt("",n.length);t.replaceSelections(s),r=n[0].anchor}else{var c=n[0].anchor,l=n[0].head;e.linewise&&l.line!=t.firstLine()&&c.line==t.lastLine()&&c.line==l.line-1&&(c.line==t.firstLine()?c.ch=0:c=o(c.line-1,yt(t,c.line-1))),i=t.getRange(c,l),t.replaceRange("",c,l),r=c,e.linewise&&(r=tt.moveToFirstNonWhiteSpaceCharacter(t,c))}return Q.registerController.pushText(e.registerName,"delete",i,e.linewise,a.visualBlock),st(t,r)},indent:function(t,e,n){var r=t.state.vim,i=n[0].anchor.line,a=r.visualBlock?n[n.length-1].anchor.line:n[0].head.line,o=r.visualMode?e.repeat:1;e.linewise&&a--;for(var s=i;s<=a;s++)for(var c=0;cl.top?(c.line+=(s-l.top)/i,c.line=Math.ceil(c.line),t.setCursor(c),l=t.charCoords(c,"local"),t.scrollTo(null,l.top)):t.scrollTo(null,s);else{var u=s+t.getScrollInfo().clientHeight;u=a.anchor.line?lt(a.head,0,1):o(a.anchor.line,0)}else if("inplace"==i){if(r.visualMode)return}else"lastEdit"==i&&(s=Se(t)||s);t.setOption("disableInput",!1),e&&e.replace?(t.toggleOverwrite(!0),t.setOption("keyMap","vim-replace"),n.signal(t,"vim-mode-change",{mode:"replace"})):(t.toggleOverwrite(!1),t.setOption("keyMap","vim-insert"),n.signal(t,"vim-mode-change",{mode:"insert"})),Q.macroModeState.isPlaying||(t.on("change",He),n.on(t.getInputField(),"keydown",Xe)),r.visualMode&&Ot(t),Et(t,s,c)}},toggleVisualMode:function(t,e,r){var i,a=e.repeat,s=t.getCursor();r.visualMode?r.visualLine^e.linewise||r.visualBlock^e.blockwise?(r.visualLine=!!e.linewise,r.visualBlock=!!e.blockwise,n.signal(t,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""}),Lt(t)):Ot(t):(r.visualMode=!0,r.visualLine=!!e.linewise,r.visualBlock=!!e.blockwise,i=st(t,o(s.line,s.ch+a-1)),r.sel={anchor:s,head:i},n.signal(t,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""}),Lt(t),Wt(t,r,"<",mt(s,i)),Wt(t,r,">",bt(s,i)))},reselectLastSelection:function(t,e,r){var i=r.lastSelection;if(r.visualMode&&_t(t,r),i){var a=i.anchorMark.find(),o=i.headMark.find();if(!a||!o)return;r.sel={anchor:a,head:o},r.visualMode=!0,r.visualLine=i.visualLine,r.visualBlock=i.visualBlock,Lt(t),Wt(t,r,"<",mt(a,o)),Wt(t,r,">",bt(a,o)),n.signal(t,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""})}},joinLines:function(t,e,n){var r,i;if(n.visualMode){if(r=t.getCursor("anchor"),pt(i=t.getCursor("head"),r)){var a=i;i=r,r=a}i.ch=yt(t,i.line)-1}else{var s=Math.max(e.repeat,2);r=t.getCursor(),i=st(t,o(r.line+s-1,1/0))}for(var c=0,l=r.line;l1&&(d=Array(e.repeat+1).join(d));var A,g,p=i.linewise,m=i.blockwise;if(m){d=d.split("\n"),p&&d.pop();for(var b=0;bt.lastLine()&&t.replaceRange("\n",o(T,0)),yt(t,T)u.length&&(i=u.length),a=o(c.line,i)}if("\n"==s)r.visualMode||t.replaceRange("",c,a),(n.commands.newlineAndIndentContinueComment||n.commands.newlineAndIndent)(t);else{var h=t.getRange(c,a);if(h=h.replace(/[^\n]/g,s),r.visualBlock){var f=new Array(t.getOption("tabSize")+1).join(" ");h=(h=t.getSelection()).replace(/\t/g,f).replace(/[^\n]/g,s).split("\n"),t.replaceSelections(h)}else t.replaceRange(h,c,a);r.visualMode?(c=pt(l[0].anchor,l[0].head)?l[0].anchor:l[0].head,t.setCursor(c),Ot(t,!1)):t.setCursor(lt(a,0,-1))}},incrementNumberToken:function(t,e){for(var n,r,i,a,s=t.getCursor(),c=t.getLine(s.line),l=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;null!==(n=l.exec(c))&&(i=(r=n.index)+n[0].length,!(s.ch"==e.slice(-11)){var n=e.length-11,r=t.slice(0,n),i=e.slice(0,n);return r==i&&t.length>n?"full":0==i.indexOf(r)&&"partial"}return t==e?"full":0==e.indexOf(t)&&"partial"}function ft(t){var e=/^.*(<[^>]+>)$/.exec(t),n=e?e[1]:t.slice(-1);if(n.length>1)switch(n){case"":n="\n";break;case"":n=" ";break;default:n=""}return n}function dt(t,e,n){return function(){for(var r=0;r2&&(e=mt.apply(void 0,Array.prototype.slice.call(arguments,1))),pt(t,e)?t:e}function bt(t,e){return arguments.length>2&&(e=bt.apply(void 0,Array.prototype.slice.call(arguments,1))),pt(t,e)?e:t}function vt(t,e,n){var r=pt(t,e),i=pt(e,n);return r&&i}function yt(t,e){return t.getLine(e).length}function wt(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function kt(t){return t.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function xt(t,e,n){var r=yt(t,e),i=new Array(n-r+1).join(" ");t.setCursor(o(e,r)),t.replaceRange(i,t.getCursor())}function Ct(t,e){var n=[],r=t.listSelections(),i=At(t.clipPos(e)),a=!gt(e,i),s=Tt(r,t.getCursor("head")),c=gt(r[s].head,r[s].anchor),l=r.length-1,u=l-s>s?l:0,h=r[u].anchor,f=Math.min(h.line,i.line),d=Math.max(h.line,i.line),A=h.ch,g=i.ch,p=r[u].head.ch-A,m=g-A;p>0&&m<=0?(A++,a||g--):p<0&&m>=0?(A--,c||g++):p<0&&-1==m&&(A--,g++);for(var b=f;b<=d;b++){var v={anchor:new o(b,A),head:new o(b,g)};n.push(v)}return t.setSelections(n),e.ch=g,h.ch=A,h}function Et(t,e,n){for(var r=[],i=0;il&&(i.line=l),i.ch=yt(t,i.line)}return{ranges:[{anchor:a,head:i}],primary:0}}if("block"==n){for(var u=Math.min(a.line,i.line),h=Math.min(a.ch,i.ch),f=Math.max(a.line,i.line),d=Math.max(a.ch,i.ch)+1,A=f-u+1,g=i.line==u?0:A-1,p=[],m=0;m0&&a&&M(a);a=i.pop())n.line--,n.ch=0;a?(n.line--,n.ch=yt(t,n.line)):n.ch=0}}function Ft(t,e,n){e.ch=0,n.ch=0,n.line++}function Nt(t){if(!t)return 0;var e=t.search(/\S/);return-1==e?t.length:e}function Rt(t,e,n,r,i){for(var a=Mt(t),s=t.getLine(a.line),c=a.ch,l=i?v[0]:y[0];!l(s.charAt(c));)if(++c>=s.length)return null;r?l=y[0]:(l=v[0])(s.charAt(c))||(l=v[1]);for(var u=c,h=c;l(s.charAt(u))&&u=0;)h--;if(h++,e){for(var f=u;/\s/.test(s.charAt(u))&&u0;)h--;h||(h=d)}}return{start:o(a.line,h),end:o(a.line,u)}}function Pt(t,e,r){var i=e;if(!n.findMatchingTag||!n.findEnclosingTag)return{start:i,end:i};var a=n.findMatchingTag(t,e)||n.findEnclosingTag(t,e);return a&&a.open&&a.close?r?{start:a.open.from,end:a.close.to}:{start:a.open.to,end:a.close.from}:{start:i,end:i}}function Qt(t,e,n){gt(e,n)||Q.jumpList.add(t,e,n)}function Ut(t,e){Q.lastCharacterSearch.increment=t,Q.lastCharacterSearch.forward=e.forward,Q.lastCharacterSearch.selectedCharacter=e.selectedCharacter}var Ht={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},$t={bracket:{isComplete:function(t){if(t.nextCh===t.symb){if(t.depth++,t.depth>=1)return!0}else t.nextCh===t.reverseSymb&&t.depth--;return!1}},section:{init:function(t){t.curMoveThrough=!0,t.symb=(t.forward?"]":"[")===t.symb?"{":"}"},isComplete:function(t){return 0===t.index&&t.nextCh===t.symb}},comment:{isComplete:function(t){var e="*"===t.lastCh&&"/"===t.nextCh;return t.lastCh=t.nextCh,e}},method:{init:function(t){t.symb="m"===t.symb?"{":"}",t.reverseSymb="{"===t.symb?"}":"{"},isComplete:function(t){return t.nextCh===t.symb}},preprocess:{init:function(t){t.index=0},isComplete:function(t){if("#"===t.nextCh){var e=t.lineText.match(/#(\w+)/)[1];if("endif"===e){if(t.forward&&0===t.depth)return!0;t.depth++}else if("if"===e){if(!t.forward&&0===t.depth)return!0;t.depth--}if("else"===e&&0===t.depth)return!0}return!1}}};function jt(t,e,n,r){var i=At(t.getCursor()),a=n?1:-1,s=n?t.lineCount():-1,c=i.ch,l=i.line,u=t.getLine(l),h={lineText:u,nextCh:u.charAt(c),lastCh:null,index:c,symb:r,reverseSymb:(n?{")":"(","}":"{"}:{"(":")","{":"}"})[r],forward:n,depth:0,curMoveThrough:!1},f=Ht[r];if(!f)return i;var d=$t[f].init,A=$t[f].isComplete;for(d&&d(h);l!==s&&e;){if(h.index+=a,h.nextCh=h.lineText.charAt(h.index),!h.nextCh){if(l+=a,h.lineText=t.getLine(l)||"",a>0)h.index=0;else{var g=h.lineText.length;h.index=g>0?g-1:0}h.nextCh=h.lineText.charAt(h.index)}A(h)&&(i.line=l,i.ch=h.index,e--)}return h.nextCh||h.curMoveThrough?o(l,h.index):i}function Kt(t,e,n,r,i){var a=e.line,o=e.ch,s=t.getLine(a),c=n?1:-1,l=r?y:v;if(i&&""==s){if(a+=c,s=t.getLine(a),!B(t,a))return null;o=n?0:s.length}for(;;){if(i&&""==s)return{from:0,to:0,line:a};for(var u=c>0?s.length:-1,h=u,f=u;o!=u;){for(var d=!1,A=0;A0?0:s.length}}function zt(t,e,n,r,i,a){var s=At(e),c=[];(r&&!i||!r&&i)&&n++;for(var l=!(r&&i),u=0;u0;)f(u,r)&&n--,u+=r;return new o(u,0)}var d=t.state.vim;if(d.visualLine&&f(s,1,!0)){var A=d.sel.anchor;f(A.line,-1,!0)&&(i&&A.line==s||(s+=1))}var g=h(s);for(u=s;u<=l&&n;u++)f(u,1,!0)&&(i&&h(u)==g||n--);for(a=new o(u,0),u>l&&!g?g=!0:i=!1,u=s;u>c&&(i&&h(u)!=g&&u!=s||!f(u,-1,!0));u--);return{start:new o(u,0),end:a}}function Jt(t,e,n,r){function i(t,e){if(e.pos+e.dir<0||e.pos+e.dir>=e.line.length){if(e.ln+=e.dir,!B(t,e.ln))return e.line=null,e.ln=null,void(e.pos=null);e.line=t.getLine(e.ln),e.pos=e.dir>0?0:e.line.length-1}else e.pos+=e.dir}function a(t,e,n,r){var a=""===(l=t.getLine(e)),o={line:l,ln:e,pos:n,dir:r},s={ln:o.ln,pos:o.pos},c=""===o.line;for(i(t,o);null!==o.line;){if(s.ln=o.ln,s.pos=o.pos,""===o.line&&!c)return{ln:o.ln,pos:o.pos};if(a&&""!==o.line&&!M(o.line[o.pos]))return{ln:o.ln,pos:o.pos};!O(o.line[o.pos])||a||o.pos!==o.line.length-1&&!M(o.line[o.pos+1])||(a=!0),i(t,o)}var l=t.getLine(s.ln);s.pos=0;for(var u=l.length-1;u>=0;--u)if(!M(l[u])){s.pos=u;break}return s}function s(t,e,n,r){var a={line:c=t.getLine(e),ln:e,pos:n,dir:r},o={ln:a.ln,pos:null},s=""===a.line;for(i(t,a);null!==a.line;){if(""===a.line&&!s)return null!==o.pos?o:{ln:a.ln,pos:a.pos};if(O(a.line[a.pos])&&null!==o.pos&&(a.ln!==o.ln||a.pos+1!==o.pos))return o;""===a.line||M(a.line[a.pos])||(s=!1,o={ln:a.ln,pos:a.pos}),i(t,a)}var c=t.getLine(o.ln);o.pos=0;for(var l=0;l0;)c=r<0?s(t,c.ln,c.pos,r):a(t,c.ln,c.pos,r),n--;return o(c.ln,c.pos)}function Zt(t,e,n,r){var i,a,s=e,c={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[n],l={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[n],u=t.getLine(s.line).charAt(s.ch)===l?1:0;if(i=t.scanForBracket(o(s.line,s.ch+u),-1,void 0,{bracketRegex:c}),a=t.scanForBracket(o(s.line,s.ch+u),1,void 0,{bracketRegex:c}),!i||!a)return{start:s,end:s};if(i=i.pos,a=a.pos,i.line==a.line&&i.ch>a.ch||i.line>a.line){var h=i;i=a,a=h}return r?a.ch+=1:i.ch+=1,{start:i,end:a}}function te(t,e,n,r){var i,a,s,c,l=At(e),u=t.getLine(l.line).split(""),h=u.indexOf(n);if(l.ch-1&&!i;s--)u[s]==n&&(i=s+1);else i=l.ch+1;if(i&&!a)for(s=i,c=u.length;s'+e+"",{bottom:!0,duration:5e3}):alert(e)}function ge(t,e){var n=''+(t||"")+'';return e&&(n+=' '+e+""),n}var pe="(Javascript regexp)";function me(t,e){var n=(e.prefix||"")+" "+(e.desc||"");re(t,ge(e.prefix,e.desc),n,e.onClose,e)}function be(t,e){if(t instanceof RegExp&&e instanceof RegExp){for(var n=["global","multiline","ignoreCase","source"],r=0;r=e&&t<=n:t==e}function Be(t){var e=t.getScrollInfo(),n=6,r=10,i=t.coordsChar({left:0,top:n+e.top},"local"),a=e.clientHeight-r+e.top,o=t.coordsChar({left:0,top:a},"local");return{top:i.line,bottom:o.line}}function _e(t,e,n){if("'"==n||"`"==n)return Q.jumpList.find(t,-1)||o(0,0);if("."==n)return Se(t);var r=e.marks[n];return r&&r.find()}function Se(t){for(var e=t.doc.history.done,n=e.length;n--;)if(e[n].changes)return At(e[n].changes[0].to)}var Le=function(){this.buildCommandMap_()};Le.prototype={processCommand:function(t,e,n){var r=this;t.operation((function(){t.curOp.isVimOp=!0,r._processCommand(t,e,n)}))},_processCommand:function(t,e,r){var i=t.state.vim,a=Q.registerController.getRegister(":"),o=a.toString();i.visualMode&&Ot(t);var s=new n.StringStream(e);a.setText(e);var c,l,u=r||{};u.input=e;try{this.parseInput_(t,s,u)}catch(e){throw Ae(t,e),e}if(u.commandName){if(c=this.matchCommand_(u.commandName)){if(l=c.name,c.excludeFromCommandHistory&&a.setText(o),this.parseCommandArgs_(s,u,c),"exToKey"==c.type){for(var h=0;h@~])/);return n.commandName=r?r[1]:e.match(/.*/)[0],n},parseLineSpec_:function(t,e){var n=e.match(/^(\d+)/);if(n)return parseInt(n[1],10)-1;switch(e.next()){case".":return this.parseLineSpecOffset_(e,t.getCursor().line);case"$":return this.parseLineSpecOffset_(e,t.lastLine());case"'":var r=e.next(),i=_e(t,t.state.vim,r);if(!i)throw new Error("Mark not set");return this.parseLineSpecOffset_(e,i.line);case"-":case"+":return e.backUp(1),this.parseLineSpecOffset_(e,t.getCursor().line);default:return void e.backUp(1)}},parseLineSpecOffset_:function(t,e){var n=t.match(/^([+-])?(\d+)/);if(n){var r=parseInt(n[2],10);"-"==n[1]?e-=r:e+=r}return e},parseCommandArgs_:function(t,e,n){if(!t.eol()){e.argString=t.match(/.*/)[0];var r=n.argDelimiter||/\s+/,i=wt(e.argString).split(r);i.length&&i[0]&&(e.args=i)}},matchCommand_:function(t){for(var e=t.length;e>0;e--){var n=t.substring(0,e);if(this.commandMap_[n]){var r=this.commandMap_[n];if(0===r.name.indexOf(t))return r}}return null},buildCommandMap_:function(){this.commandMap_={};for(var t=0;t
";if(n){n=n.join("");for(var a=0;a")}else for(var o in r){var s=r[o].toString();s.length&&(i+='"'+o+" "+s+"
")}Ae(t,i)},sort:function(t,e){var r,i,a,s,c;function l(){if(e.argString){var t=new n.StringStream(e.argString);if(t.eat("!")&&(r=!0),t.eol())return;if(!t.eatSpace())return"Invalid arguments";var o=t.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!o&&!t.eol())return"Invalid arguments";if(o[1]){i=-1!=o[1].indexOf("i"),a=-1!=o[1].indexOf("u");var l=-1!=o[1].indexOf("d")||-1!=o[1].indexOf("n")&&1,u=-1!=o[1].indexOf("x")&&1,h=-1!=o[1].indexOf("o")&&1;if(l+u+h>1)return"Invalid arguments";s=(l?"decimal":u&&"hex")||h&&"octal"}o[2]&&(c=new RegExp(o[2].substr(1,o[2].length-2),i?"i":""))}}var u=l();if(u)Ae(t,u+": "+e.argString);else{var h=e.line||t.firstLine(),f=e.lineEnd||e.line||t.lastLine();if(h!=f){var d=o(h,0),A=o(f,yt(t,f)),g=t.getRange(d,A).split("\n"),p=c||("decimal"==s?/(-?)([\d]+)/:"hex"==s?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==s?/([0-7]+)/:null),m="decimal"==s?10:"hex"==s?16:"octal"==s?8:null,b=[],v=[];if(s||c)for(var y=0;y");if(r){var f=0,d=function(){if(f=u)return void Ae(t,"Invalid argument: "+e.argString.substring(a));for(var h=0;h<=u-l;h++){var f=String.fromCharCode(l+h);delete r.marks[f]}}else delete r.marks[o]}else Ae(t,"Argument required")}},Me=new Le;function Oe(t,e,r,i,a,o,s,c,l){t.state.vim.exMode=!0;var u=!1,h=o.from();function f(){t.operation((function(){for(;!u;)d(),A();g()}))}function d(){var e=t.getRange(o.from(),o.to()).replace(s,c);o.replace(e)}function A(){for(;o.findNext()&&Te(o.from(),i,a);)if(r||!h||o.from().line!=h.line)return t.scrollIntoView(o.from(),30),t.setSelection(o.from(),o.to()),h=o.from(),void(u=!1);u=!0}function g(e){if(e&&e(),t.focus(),h){t.setCursor(h);var n=t.state.vim;n.exMode=!1,n.lastHPos=n.lastHSPos=h.ch}l&&l()}function p(e,r,i){switch(n.e_stop(e),n.keyName(e)){case"Y":d(),A();break;case"N":A();break;case"A":var a=l;l=void 0,t.operation(f),l=a;break;case"L":d();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":g(i)}return u&&g(i),!0}if(A(),!u)return e?void me(t,{prefix:"replace with "+c+" (y/n/a/q/l)",onKeyDown:p}):(f(),void(l&&l()));Ae(t,"No matches for "+s.source)}function De(t){var e=t.state.vim,r=Q.macroModeState,i=Q.registerController.getRegister("."),a=r.isPlaying,o=r.lastInsertModeChanges;a||(t.off("change",He),n.off(t.getInputField(),"keydown",Xe)),!a&&e.insertModeRepeat>1&&(Ve(t,e,e.insertModeRepeat-1,!0),e.lastEditInputState.repeatOverride=e.insertModeRepeat),delete e.insertModeRepeat,e.insertMode=!1,t.setCursor(t.getCursor().line,t.getCursor().ch-1),t.setOption("keyMap","vim"),t.setOption("disableInput",!0),t.toggleOverwrite(!1),i.setText(o.changes.join("")),n.signal(t,"vim-mode-change",{mode:"normal"}),r.isRecording&&Qe(r)}function Fe(t){r.unshift(t)}function Ne(t,e,n,r,i){var a={keys:t,type:e};for(var o in a[e]=n,a[e+"Args"]=r,i)a[o]=i[o];Fe(a)}function Re(t,e,r,i){var a=Q.registerController.getRegister(i);if(":"==i)return a.keyBuffer[0]&&Me.processCommand(t,a.keyBuffer[0]),void(r.isPlaying=!1);var o=a.keyBuffer,s=0;r.isPlaying=!0,r.replaySearchQueries=a.searchQueries.slice(0);for(var c=0;c|<\w+>|./.exec(h))[0],h=h.substring(l.index+u.length),n.Vim.handleKey(t,u,"macro"),e.insertMode){var f=a.insertModeChanges[s++].changes;Q.macroModeState.lastInsertModeChanges.changes=f,We(t,f,1),De(t)}r.isPlaying=!1}function Pe(t,e){if(!t.isPlaying){var n=t.latestRegister,r=Q.registerController.getRegister(n);r&&r.pushText(e)}}function Qe(t){if(!t.isPlaying){var e=t.latestRegister,n=Q.registerController.getRegister(e);n&&n.pushInsertModeChanges&&n.pushInsertModeChanges(t.lastInsertModeChanges)}}function Ue(t,e){if(!t.isPlaying){var n=t.latestRegister,r=Q.registerController.getRegister(n);r&&r.pushSearchQuery&&r.pushSearchQuery(e)}}function He(t,e){var n=Q.macroModeState,r=n.lastInsertModeChanges;if(!n.isPlaying)for(;e;){if(r.expectCursorActivityForChange=!0,r.ignoreCount>1)r.ignoreCount--;else if("+input"==e.origin||"paste"==e.origin||void 0===e.origin){var i=t.listSelections().length;i>1&&(r.ignoreCount=i);var a=e.text.join("\n");r.maybeReset&&(r.changes=[],r.maybeReset=!1),a&&(t.state.overwrite&&!/\n/.test(a)?r.changes.push([a]):r.changes.push(a))}e=e.next}}function $e(t){var e=t.state.vim;if(e.insertMode){var n=Q.macroModeState;if(n.isPlaying)return;var r=n.lastInsertModeChanges;r.expectCursorActivityForChange?r.expectCursorActivityForChange=!1:r.maybeReset=!0}else t.curOp.isVimOp||ze(t,e);e.visualMode&&je(t)}function je(t){var e="cm-animate-fat-cursor",n=t.state.vim,r=st(t,At(n.sel.head)),i=lt(r,0,1);if(Ke(n),r.ch==t.getLine(r.line).length){var a=document.createElement("span");a.textContent=" ",a.className=e,n.fakeCursorBookmark=t.setBookmark(r,{widget:a})}else n.fakeCursor=t.markText(r,i,{className:e})}function Ke(t){t.fakeCursor&&(t.fakeCursor.clear(),t.fakeCursor=null),t.fakeCursorBookmark&&(t.fakeCursorBookmark.clear(),t.fakeCursorBookmark=null)}function ze(t,e){var r=t.getCursor("anchor"),i=t.getCursor("head");if(e.visualMode&&!t.somethingSelected()?Ot(t,!1):e.visualMode||e.insertMode||!t.somethingSelected()||(e.visualMode=!0,e.visualLine=!1,n.signal(t,"vim-mode-change",{mode:"visual"})),e.visualMode){var a=pt(i,r)?0:-1,o=pt(i,r)?-1:0;i=lt(i,0,a),r=lt(r,0,o),e.sel={anchor:r,head:i},Wt(t,e,"<",mt(i,r)),Wt(t,e,">",bt(i,r))}else e.insertMode||(e.lastHPos=t.getCursor().ch)}function Ge(t){this.keyName=t}function Xe(t){var e=Q.macroModeState.lastInsertModeChanges,r=n.keyName(t);function i(){return e.maybeReset&&(e.changes=[],e.maybeReset=!1),e.changes.push(new Ge(r)),!0}r&&(-1==r.indexOf("Delete")&&-1==r.indexOf("Backspace")||n.lookupKey(r,"vim-insert",i))}function Ve(t,e,n,r){var i=Q.macroModeState;i.isPlaying=!0;var a=!!e.lastEditActionCommand,o=e.inputState;function s(){a?Z.processAction(t,e,e.lastEditActionCommand):Z.evalInput(t,e)}function c(n){if(i.lastInsertModeChanges.changes.length>0){n=e.lastEditActionCommand?n:1;var r=i.lastInsertModeChanges;We(t,r.changes,n)}}if(e.inputState=e.lastEditInputState,a&&e.lastEditActionCommand.interlaceInsertRepeat)for(var l=0;lo?e.charCoords(t,"local")[n?"top":"bottom"]:e.heightAtLine(c,"local")+(n?0:c.height)}var u=e.lastLine();if(e.display.barWidth)for(var h,f=0;fu)){for(var A=h||l(d.from,!0)*n,g=l(d.to,!1)*n;fu)&&!((h=l(i[f+1].from,!0)*n)>g+.9);)g=l((d=i[++f]).to,!1)*n;if(g!=A){var p=Math.max(g-A,3),m=r.appendChild(document.createElement("div"));m.style.cssText="position: absolute; right: 0px; width: "+Math.max(e.display.barWidth-1,2)+"px; top: "+(A+this.buttonHeight)+"px; height: "+p+"px",m.className=this.options.className,d.id&&m.setAttribute("annotation-id",d.id)}}}this.div.textContent="",this.div.appendChild(r)},e.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}}(gf)}));r((function(t,e){!function(t){function e(t,e,n,r){this.cm=t,this.options=r;var i={listenForChanges:!1};for(var a in r)i[a]=r[a];i.className||(i.className="CodeMirror-search-match"),this.annotation=t.annotateScrollbar(i),this.query=e,this.caseFold=n,this.gap={from:t.firstLine(),to:t.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var o=this;t.on("change",this.changeHandler=function(t,e){o.onChange(e)})}t.defineExtension("showMatchesOnScrollbar",(function(t,n,r){return"string"==typeof r&&(r={className:r}),r||(r={}),new e(this,t,n,r)}));var n=1e3;function r(t,e,n){return t<=e?t:Math.max(e,t+n)}e.prototype.findMatches=function(){if(this.gap){for(var e=0;e=this.gap.to);e++)a.to.line>=this.gap.from&&this.matches.splice(e--,1);for(var r=this.cm.getSearchCursor(this.query,t.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),i=this.options&&this.options.maxMatches||n;r.findNext();){var a;if((a={from:r.from(),to:r.to()}).from.line>=this.gap.to)break;if(this.matches.splice(e++,0,a),this.matches.length>i)break}this.gap=null}},e.prototype.onChange=function(e){var n=e.from.line,i=t.changeEnd(e).line,a=i-e.to.line;if(this.gap?(this.gap.from=Math.min(r(this.gap.from,n,a),e.from.line),this.gap.to=Math.max(r(this.gap.to,n,a),e.from.line)):this.gap={from:e.from.line,to:i+1},a)for(var o=0;ot.length)&&(e=t.length);for(var n=0,r=Array(e);n>>0||(Jf(Yf,n)?16:10))}:Vf;Dn({global:!0,forced:parseInt!==Zf},{parseInt:Zf});var td=$.parseInt;Dn({target:"String",proto:!0},{repeat:Yu});var ed=Ni("String","repeat"),nd=String.prototype,rd=function(t){var e=t.repeat;return"string"==typeof t||t===nd||rt(nd,t)&&e===nd.repeat?ed:e},id={run:function(t){var e,n="
".concat(t,"
");this.tagParser.formatEngine=this.mdFormatEngine,n=n.replace(//g,"");var r=this.htmlParser.parseHtml(n);return r=this.paragraphStyleClear(r),Ph(e=this.$dealHtml(r).replace(/\n{3,}/g,"\n\n\n").replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&")).call(e,"\n")},$dealHtml:function(t){for(var e="",n=0;n0&&(e+=r.content.replace(/ /g," ").replace(/[\n]+/g,"\n").replace(/^[ \t\n]+\n\s*$/,"\n"))}return e},$handleTagObject:function(t,e){var n,r=e;t.attrs.class&&/(ch-icon-square|ch-icon-check)/.test(t.attrs.class)?Kf(n=t.attrs.class).call(n,"ch-icon-check")>=0?r+="[x]":r+="[ ]":t.attrs.class&&/cherry-code-preview-lang-select/.test(t.attrs.class)?r+="":r+=this.$dealTag(t);return r},$dealTag:function(t){var e=this,n="";return t.children&&(n=e.$dealHtml(t.children)),/(style|meta|link|script)/.test(t.name)?"":"code"===t.name||"pre"===t.name?e.tagParser.codeParser(t,e.$dealCodeTag(t),"pre"===t.name):"function"==typeof e.tagParser["".concat(t.name,"Parser")]?e.tagParser["".concat(t.name,"Parser")](t,n):n},$dealCodeTag:function(t){if(t.children.length<0)return"";for(var e="",n=0;n])+>/g,empty:zf?zf(null):{},parseTags:function(t){var e,n=this,r=0,i={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return t.replace(this.attrRE,(function(a){r%2?e=a:0===r?((n.lookup[a]||"/"===t.charAt(t.length-2))&&(i.voidElement=!0),i.name=a):i.attrs[e]=a.replace(/['"]/g,""),r+=1})),i},parseHtml:function(t,e){var n=this,r=e||{};r.components||(r.components=this.empty);var i,a=[],o=-1,s=[],c={},l=!1;return t.replace(this.tagRE,(function(e,u){if(l){if(e!==""))return;l=!1}var h,f="/"!==e.charAt(1),d=u+e.length,A=t.charAt(d);f&&(o+=1,"tag"===(i=n.parseTags(e)).type&&r.components[i.name]&&(i.type="component",l=!0),i.voidElement||l||!A||"<"===A||i.children.push({type:"text",content:Gf(t).call(t,d,Kf(t).call(t,"<",d))}),c[i.tagName]=i,0===o&&a.push(i),(h=s[o-1])&&h.children.push(i),s[o]=i),f&&!i.voidElement||(o-=1,!l&&"<"!==A&&A&&s[o]&&s[o].children.push({type:"text",content:Gf(t).call(t,d,Kf(t).call(t,"<",d))}))})),a}},tagParser:{formatEngine:{},pParser:function(t,e){var n=e;return/\n$/.test(n)?n:"".concat(n,"\n")},divParser:function(t,e){var n=e;return/\n$/.test(n)?n:"".concat(n,"\n")},spanParser:function(t,e){var n=e.replace(/\t/g,"").replace(/\n/g," ");return t.attrs&&t.attrs.style,n},codeParser:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.formatEngine.convertCode(e,n)},brParser:function(t,e){return this.formatEngine.convertBr(e,"\n")},imgParser:function(t,e){return t.attrs&&"tapd-graph"===t.attrs["data-control"]?this.formatEngine.convertGraph(t.attrs.title,t.attrs.src,t.attrs["data-origin-xml"],t):t.attrs&&t.attrs.src?this.formatEngine.convertImg(t.attrs.alt,t.attrs.src):void 0},videoParser:function(t,e){if(t.attrs&&t.attrs.src)return this.formatEngine.convertVideo(e,t.attrs.src,t.attrs.poster,t.attrs.title)},bParser:function(t,e){for(var n=e.split("\n"),r=[],i=0;i0?r:""}return""},bgColorAttrParser:function(t){var e=t.match(/background-color:\s*([^;]+?);/);if(e&&e[1]){var n="";if(/rgb\([ 0-9]+,[ 0-9]+,[ 0-9]+\)/.test(e[1])){var r,i,a,o,s,c=e[1].match(/rgb\(([ 0-9]+),([ 0-9]+),([ 0-9]+)\)/);if(c[1]&&c[2]&&c[3])c[1]=td(Ph(r=c[1]).call(r),10),c[2]=td(Ph(i=c[2]).call(i),10),c[3]=td(Ph(a=c[3]).call(a),10),n=hs(o=hs(s="#".concat(c[1].toString(16))).call(s,c[2].toString(16))).call(o,c[3].toString(16))}else{n=jf(e,2)[1]}return n}return""}}},mdFormatEngine:{convertColor:function(t,e){var n,r=Ph(t).call(t);return!r||/\n/.test(r)?r:e?hs(n="!!".concat(e," ")).call(n,r,"!!"):r},convertSize:function(t,e){var n,r=Ph(t).call(t);return!r||/\n/.test(r)?r:e?hs(n="!".concat(e," ")).call(n,r,"!"):r},convertBgColor:function(t,e){var n,r=Ph(t).call(t);return!r||/\n/.test(r)?r:e?hs(n="!!!".concat(e," ")).call(n,r,"!!!"):r},convertBr:function(t,e){return t+e},convertCode:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return/\n/.test(t)||e?"```\n".concat(t.replace(/\n+$/,""),"\n```"):"`".concat(t.replace(/`/g,"\\`"),"`")},convertB:function(t){return/^\s*$/.test(t)?"":"**".concat(t,"**")},convertI:function(t){return/^\s*$/.test(t)?"":"*".concat(t,"*")},convertU:function(t){return/^\s*$/.test(t)?"":" /".concat(t,"/ ")},convertImg:function(t,e){var n,r=t&&t.length>0?t:"image";return hs(n="![".concat(r,"](")).call(n,e,")")},convertGraph:function(t,e,n,r){var i,a,o,s=t&&t.length>0?t:"graph",c="";if(r)try{var l,u=r.attrs;Qs(l=Is(u)).call(l,(function(t){var e;Object.prototype.hasOwnProperty.call(u,t)&&(Kf(t).call(t,"data-graph-")>=0&&u[t]&&(c+=hs(e=" ".concat(t,"=")).call(e,u[t])))}))}catch(t){}return hs(i=hs(a=hs(o="![".concat(s,"](")).call(o,e,"){data-control=tapd-graph data-origin-xml=")).call(a,n)).call(i,c,"}")},convertVideo:function(t,e,n,r){var i,a,o=r&&r.length>0?r:"video";return hs(i=hs(a="!video[".concat(o,"](")).call(a,e,"){poster=")).call(i,n,"}")},convertA:function(t,e){var n;if(t===e)return"".concat(t," ");var r=Ph(t).call(t);return r?hs(n="[".concat(r,"](")).call(n,e,")"):r},convertSup:function(t){return"^".concat(Ph(t).call(t).replace(/\^/g,"\\^"),"^")},convertSub:function(t){return"^^".concat(Ph(t).call(t).replace(/\^\^/g,"\\^\\^"),"^^")},convertTd:function(t){return"~|".concat(Ph(t).call(t).replace(/\n{1,}/g,"
").replace(/ /g,"~s~")," ~|")},convertTh:function(t){return/^\s*$/.test(t)?"":"~|".concat(Ph(t).call(t).replace(/\n{1,}/g,"
")," ~|")},convertTr:function(t){return/^\s*$/.test(t)?"":"".concat(Ph(t).call(t).replace(/\n/g,""),"\n")},convertThead:function(t){var e,n="".concat(t.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n"),r=n.match(/\|/g).length-1;return hs(e="".concat(n,"|")).call(e,rd(":-:|").call(":-:|",r),"\n")},convertTable:function(t){var e="\n".concat(t.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n").replace(/\n{2,}/g,"\n").replace(/\n[ \t]+\n/g,"\n").replace(/~s~/g," ");if(!/\|:-:\|/.test(e)){var n,r,i=e.match(/^\n[^\n]+\n/)[0].match(/\|/g).length-1;e=hs(n=hs(r="\n|".concat(rd(" |").call(" |",i),"\n|")).call(r,rd(":-:|").call(":-:|",i))).call(n,e)}return e},convertLi:function(t){return"- ".concat(t.replace(/^\n/,"").replace(/\n+$/,"").replace(/\n+/g,"\n\t"),"\n")},convertUl:function(t){return"".concat(t,"\n")},convertOl:function(t){for(var e=t.split("\n"),n=1,r=0;r".concat(Ph(t).call(t),"\n\n")},convertAddress:function(t){return">".concat(Ph(t).call(t),"\n\n")}},paragraphStyleClear:function(t){for(var e=0;e1)for(var o=0;o=0?n:n>=0?n+r:Math.min(n,r)}function pd(t){var e=t.previousElementSibling,n=t.nextElementSibling;if(!e){var r=getComputedStyle(t),i=t.getBoundingClientRect();if(!n)return{height:Math.max(Ad(r.marginTop)+i.height+Ad(r.marginBottom),0),offsetTop:t.offsetTop-Math.abs(Ad(r.marginTop))};var a=getComputedStyle(n),o=gd(r.marginBottom,a.marginTop);return{height:Math.max(Ad(r.marginTop)+i.height+o,0),offsetTop:t.offsetTop-Math.abs(Ad(r.marginTop))}}var s=getComputedStyle(t),c=t.getBoundingClientRect(),l=function(t,e){var n=Ad(t),r=Ad(e);return r<0?0:n>=0?Math.max(r-n,0):r}(getComputedStyle(e).marginBottom,s.marginTop);if(!n)return{height:Math.max(l+c.height+Ad(s.marginBottom),0),offsetTop:t.offsetTop-Math.abs(Ad(s.marginTop))};var u=getComputedStyle(n),h=gd(s.marginBottom,u.marginTop);return{height:Math.max(l+c.height+h,0),offsetTop:t.offsetTop-Math.abs(l)}}function md(t,e){if(!t||!t.tagName)return"";var n,r,i=document.createElement("div");return i.appendChild(t.cloneNode(!1)),n=i.innerHTML,e&&(r=Kf(n).call(n,">")+1,n=n.substring(0,r)+t.innerHTML+n.substring(r)),i=null,n}function bd(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=document.createElement(t);(i.className=n,void 0!==r)&&Qs(e=Is(r)).call(e,(function(t){var e=r[t];if(Af(t).call(t,"data-")){var n=t.replace(/^data-/,"");i.dataset[n]=e}else i.setAttribute(t,e)}));return i}var vd={showSwitchBtnAfterPasteHtml:function(t,e,n,r,i){Ph(r).call(r)!==Ph(i).call(i)&&(this.init(t,e,n,r,i),this.setSelection(),this.bindListener(),this.initBubble(),this.showBubble(),"text"===this.getTypeFromLocalStorage()&&this.switchTextClick())},init:function(t,e,n,r,i){this.$cherry=t,this.html=r,this.md=i,this.codemirror=n,this.currentCursor=e,this.locale=t.locale},getTypeFromLocalStorage:function(){return"undefined"==typeof localStorage?"md":localStorage.getItem("cherry-paste-type")||"md"},setTypeToLocalStorage:function(t){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-paste-type",t)},setSelection:function(){var t=this.codemirror.getCursor(),e=sd({},(function(t){if(null==t)throw new TypeError("Cannot destructure "+t)}(t),t)),n=this.currentCursor;this.codemirror.setSelection(n,e)},bindListener:function(){var t=this;if(this.hasBindListener)return!0;this.hasBindListener=!0,this.codemirror.on("beforeSelectionChange",(function(e,n){t.hideBubble()})),this.codemirror.on("beforeChange",(function(e,n){t.hideBubble()})),this.codemirror.on("scroll",(function(e){t.updatePositionWhenScroll()}))},isHidden:function(){return"none"===this.bubbleDom.style.display},toggleBubbleDisplay:function(){this.isHidden()?this.bubbleDom.style.display="":this.bubbleDom.style.display="none"},hideBubble:function(){if(this.noHide)return!0;this.isHidden()||this.toggleBubbleDisplay()},updatePositionWhenScroll:function(){if(!this.isHidden()){var t=this.bubbleDom.dataset.scrollTop-this.getScrollTop();this.bubbleDom.style.marginTop="".concat(t,"px")}},getScrollTop:function(){return this.codemirror.getScrollInfo().top},showBubble:function(){var t=this.getLastSelectedPosition().top;this.isHidden()&&(this.toggleBubbleDisplay(),this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=this.getScrollTop()),t>this.codemirror.getWrapperElement().clientHeight-this.bubbleDom.getBoundingClientRect().height-15?(this.bubbleDom.style.top="",this.bubbleDom.style.bottom="".concat(15,"px")):(this.bubbleDom.style.top="".concat(t,"px"),this.bubbleDom.style.bottom="")},initBubble:function(){var t,e;if(this.bubbleDom)return this.bubbleDom.setAttribute("data-type","md"),!0;var n=bd("div","cherry-bubble cherry-bubble--centered cherry-switch-paste");n.style.display="none";var r=bd("span","cherry-toolbar-button cherry-text-btn",{title:this.locale.pastePlain});r.innerText="TEXT";var i=bd("span","cherry-toolbar-button cherry-md-btn",{title:this.locale.pasteMarkdown});i.innerText="Markdown";var a=bd("span","switch-btn--bg");this.bubbleDom=n,this.switchText=r,this.switchMd=i,this.switchBG=a,this.bubbleDom.appendChild(r),this.bubbleDom.appendChild(i),this.bubbleDom.appendChild(a),this.bubbleDom.setAttribute("data-type","md"),this.codemirror.getWrapperElement().appendChild(this.bubbleDom),this.switchMd.addEventListener("click",fs(t=this.switchMDClick).call(t,this)),this.switchText.addEventListener("click",fs(e=this.switchTextClick).call(e,this))},switchMDClick:function(t){this.setTypeToLocalStorage("md"),"md"!==this.bubbleDom.getAttribute("data-type")&&(this.noHide=!0,this.bubbleDom.setAttribute("data-type","md"),this.codemirror.doc.replaceSelection(this.md),this.setSelection(),this.showBubble(),this.noHide=!1)},switchTextClick:function(t){this.setTypeToLocalStorage("text"),"text"!==this.bubbleDom.getAttribute("data-type")&&(this.noHide=!0,this.bubbleDom.setAttribute("data-type","text"),this.codemirror.doc.replaceSelection(this.html),this.setSelection(),this.showBubble(),this.noHide=!1)},getLastSelectedPosition:function(){var t=rf(this.codemirror.getWrapperElement().getElementsByClassName("CodeMirror-selected")),e=0,n=0;if(t.length<=0)return this.hideBubble(),{};for(var r=0;rn&&a>=e&&(n=o),a>e&&(e=a)}return{top:n}}},yd=vd;function wd(t,e,n,r){return t.addEventListener?(t.addEventListener(e,n,r),!0):t.attachEvent?t.attachEvent("on".concat(e),n):void(t["on".concat(e)]=n)}function kd(t,e,n,r){if(t.removeEventListener)t.removeEventListener(e,n,r);else{if(t.detachEvent)return t.detachEvent("on".concat(e),n);t["on".concat(e)]=null}}var xd=new Proxy({},{get:function(t,e,n){return function(){}}}),Cd=so,Ed=vf,Td=pf;function Bd(t,e){var n=void 0!==Cd&&Ed(t)||t["@@iterator"];if(!n){if(Td(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return _d(t,e);var r=Gf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?rf(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_d(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function _d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1&&void 0!==arguments[1]?arguments[1]:"image",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"*",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=document.createElement("input"),a=t.$cherry.options.multipleFileSelection||!1;i.type="file",i.id="fileUpload",i.value="",i.style.display="none",i.accept=n,i.multiple=a,i.addEventListener("change",(function(n){var i=n.target.files;t.$cherry.options.callback.fileUploadMulti(i,(function(n){if(0!==n.length){if(r)return r(n);var a,o="",s=Bd(i);try{for(s.s();!(a=s.n()).done;){var c=a.value,l=c.url;o+="".concat(Id(e,c,l),"/n")}}catch(t){s.e(t)}finally{s.f()}t.editor.doc.replaceSelection(o)}}))})),i.click()}function Ld(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"*",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=document.createElement("input");i.type="file",i.id="fileUpload",i.value="",i.style.display="none",i.accept=n,i.addEventListener("change",(function(n){var i=jf(n.target.files,1)[0];t.$cherry.options.callback.fileUpload(i,(function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof n&&n){if(r)return r(i.name,n,a);var o;o=Id(e,i,n),t.editor.doc.replaceSelection(o)}}))})),i.click()}var Id=function(t,e,n){var r,i,a,o;return"image"===t?hs(i="![".concat(e.name,"](")).call(i,n,")"):"video"===t?hs(a="!video[".concat(e.name,"](")).call(a,n,")"):"audio"===t?hs(o="!audio[".concat(e.name,"](")).call(o,n,")"):hs(r="[".concat(e.name,"](")).call(r,n,")")};function Md(t){var e=[];return null!=t&&t.isBorder&&e.push("#B"),null!=t&&t.isShadow&&e.push("#S"),null!=t&&t.isRadius&&e.push("#R"),null!=t&&t.width&&e.push("#".concat(t.width)),null!=t&&t.height&&(t.width||e.push("#auto"),e.push("#".concat(t.height))),e.join(" ")}function Od(t,e,n){var r,i,a,o,s,c,l,u=null!==(r=null==e?void 0:e.name)&&void 0!==r?r:n.name,h="",f="";/video/i.test(n.type)&&(h="!video",f=null!=e&&e.poster?"{poster=".concat(e.poster,"}"):""),/audio/i.test(n.type)&&(h="!audio"),/image/i.test(n.type)&&(h="!");var d=h?Md(e):"",A=e.before,g=void 0===A?"":A,p=e.after,m=void 0===p?"":p;return hs(i=hs(a=hs(o=hs(s=hs(c=hs(l="".concat(g)).call(l,h,"[")).call(c,u)).call(s,d,"](")).call(o,t,")")).call(a,f)).call(i,m)}function Dd(t,e){var n=Is(t);if(Ii){var r=Ii(t);e&&(r=Qi(r).call(r,(function(e){return Ki(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fd(t){for(var e=1;e\\x00-\\x1f"\\(\\)]*)?'),zd=new RegExp("(?:\\/\\/)".concat(Kd.source)),Gd=new RegExp("^".concat(Kd.source,"$")),Xd=new RegExp("^".concat(zd.source,"$")),Vd=/^([ \t]*)([*+-][ ](\[[ x]\])?|[0-9一二三四五六七八九十零]+\.|[a-z]\.|\b(?:M{0,3}(?:CM|CD|D?C{0,3})(?:XC|XL|L?X{0,3})(?:IX|IV|V?I{0,3}))\b\.)([^\r\n]*)/;function Wd(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n={begin:"(?:^|\\n)(\\n*)",content:["(\\h*\\|[^\\n]+\\|?\\h*)","\\n","(?:(?:\\h*\\|\\h*:?[-]{1,}:?\\h*)+\\|?\\h*)","((\\n\\h*\\|[^\\n]+\\|?\\h*)*)"].join(""),end:"(?=$|\\n)"};n.reg=Nd(n,"g",!0);var r={begin:"(?:^|\\n)(\\n*)",content:["(\\|?[^\\n|]+(\\|[^\\n|]+)+\\|?)","\\n","(?:\\|?\\h*:?[-]{1,}:?[\\h]*(?:\\|[\\h]*:?[-]{1,}:?\\h*)+\\|?)","((\\n\\|?([^\\n|]+(\\|[^\\n|]*)+)\\|?)*)"].join(""),end:"(?=$|\\n)"};return r.reg=Nd(r,"g",!0),!1===e?{strict:n,loose:r}:Nd({begin:"",content:hs(t="(?:".concat(n.begin+n.content+n.end,"|")).call(t,r.begin+r.content+r.end,")"),end:""},"g",!0)}function qd(){var t={begin:/(?:^|\n)(\n*((?:>[\t ]*)*)(?:[^\S\n]*))(`{3,})([^`]*?)\n/,content:/([\w\W]*?)/,end:/[^\S\n]*\3[ \t]*(?=$|\n+)/,reg:new RegExp("")};return t.reg=new RegExp(t.begin.source+t.content.source+t.end.source,"g"),Fd(Fd({},t),{},{begin:t.begin.source,content:t.content.source,end:t.end.source})}function Yd(t,e){var n=t||"Item 1\n Item 1.1\nItem 2";n=n.replace(/^\n+/,"").replace(/\n+$/,"");var r="1.";switch(e){case"ol":r="1.";break;case"ul":r="-";break;case"checklist":r="- [x]"}if(n=n.replace(/^(\s*)([0-9a-zA-Z]+\.|- \[x\]|- \[ \]|-) /gm,"$1"),"1."===r){var i={};n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,(function(t,e,n){var r,a,o,s=(null===(r=e.match(/[ \t]/g))||void 0===r?void 0:r.length)||0;return i[s]=i[s]?i[s]+1:1,hs(a=hs(o="".concat(e)).call(o,i[s],". ")).call(a,n)}))}else n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,"$1".concat(r," $2"));return n}function Jd(){var t={begin:/(?:^|\n)(\n*(?:[^\S\n]*)):::([^:][^\n]+?)\s*\n/,content:/([\w\W]*?)/,end:/\n[ \t]*:::[ \t]*(?=$|\n+)/};return t.reg=new RegExp(t.begin.source+t.content.source+t.end.source,"g"),t}function Zd(){var t={begin:/(?:^|\n)(\n*(?:[^\S\n]*))\+\+\+([-]{0,1})\s+([^\n]+)\n/,content:/([\w\W]+?)/,end:/\n[ \t]*\+\+\+[ \t]*(?=$|\n+)/};return t.reg=new RegExp(t.begin.source+t.content.source+t.end.source,"g"),t}var tA=/(\[[^\n]*?\]\(data:image\/[a-z]{1,10};base64,)([^)]+)\)/g,eA=/(data:image\/[a-z]{1,10};base64,)([0-9a-zA-Z+/]+)/g,nA=/([^\n]{100})([^\n|`\s]{5900,})/g,rA=/(!\[[^\n]*?\]\([^)]+\)\{[^}]* data-xml=)([^}]+)\}/g,iA=/(!\[[^\n]*?\]\(data:image\/[a-z]{1,10};base64,[^)]+\)\{data-type=drawio data-xml=[^}]+\})/g,aA=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(qd().reg,(function(t){return t.replace(/^.*$/gm,"/n")})).replace(/(`+)(.+?(?:\n.+?)*?)\1/g,(function(t){return t.replace(/[![\]()]/g,".")}))};function oA(t){(function(t){var e=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)/,n=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)$/;if(t.getOption("disableInput"))return!1;for(var r=t.listSelections(),i=[],a=0;a0&&void 0!==arguments[0])||arguments[0]?n.editor.setOption("keyMap","default"):n.editor.setOption("keyMap",n.options.keyMap)})),cs(this,"dealSpecialWords",(function(){"hide"!==n.$cherry.status.editor&&(n.formatBigData2Mark(eA,"cm-url base64"),n.formatBigData2Mark(rA,"cm-url drawio"),n.formatBigData2Mark(nA,"cm-url long-text"),n.formatFullWidthMark())})),cs(this,"formatBigData2Mark",(function(t,e){for(var r=n.editor,i=r.getSearchCursor(t),a=i.findNext();!1!==a;a=i.findNext()){var o,s,c=i.from();if(c){var l=null!==(o=a[2])&&void 0!==o?o:"",u=c.ch+(null===(s=a[1])||void 0===s?void 0:s.length),h=u+l.length,f=c.line,d={line:f,ch:u},A={line:f,ch:h};if(!(r.findMarks(d,A).length>0)){var g=bd("span","cm-string ".concat(e),{title:l});g.textContent=l,r.markText(d,A,{replacedWith:g,atomic:!0})}}}})),cs(this,"onKeyup",(function(t,e){var r=e.getCursor().line;n.previewer.highlightLine(r+1)})),cs(this,"onScroll",(function(t){if(n.$cherry.$event.emit("cleanAllSubMenus"),n.disableScrollListener)n.disableScrollListener=!1;else{var e=t.getScrollerElement();if(e.scrollTop<=0)n.previewer.scrollToLineNum(0);else if(e.scrollTop+e.clientHeight>=e.scrollHeight-20)n.previewer.scrollToLineNum(null);else{var r=t.getScrollInfo().top,i=t.lineAtHeight(r,"local"),a=t.charCoords({line:i,ch:0},"local"),o=t.getLineHandle(i).height,s=100*(r-(a.bottom-o))/o/100;n.previewer.scrollToLineNum(i+1,s)}}})),cs(this,"onMouseDown",(function(t,e){n.$cherry.$event.emit("cleanAllSubMenus");var r=t.getCursor().line,i=Math.abs(e.y-t.getWrapperElement().getBoundingClientRect().y);n.previewer.scrollToLineNumWithOffset(r+1,i),n.toHalfWidth(t,e)})),cs(this,"onCursorActivity",(function(){n.refreshWritingStatus()})),this.options={id:"code",name:"code",autoSave2Textarea:!1,editorDom:document.createElement("div"),wrapperDom:null,autoScrollByCursor:!0,convertWhenPaste:!0,keyMap:"sublime",showFullWidthMark:!0,showSuggestList:!0,codemirror:{lineNumbers:!1,cursorHeight:.85,indentUnit:4,tabSize:4,mode:{name:"yaml-frontmatter",base:{name:"gfm",gitHubSpice:!1}},lineWrapping:!0,indentWithTabs:!0,autofocus:!0,theme:"default",autoCloseTags:!0,extraKeys:{Enter:oA},matchTags:{bothTags:!0},placeholder:"",keyMap:"sublime"},toolbars:{},onKeydown:function(){},onChange:function(){},onFocus:function(){},onBlur:function(){},onPaste:this.onPaste,onScroll:this.onScroll},this.animation={},this.selectAll=!1;var r=e.codemirror,i=Wu(e,sA);r&&Ss(this.options.codemirror,r),Ss(this.options,i),this.options.codemirror.keyMap=this.options.keyMap,this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId()}),[{key:"formatFullWidthMark",value:function(){var t;if(this.options.showFullWidthMark){var e=this.editor,n=/[·¥、:“”【】()《》]/,r=e.getSearchCursor(n),i=r.findNext();for(Qs(t=e.getAllMarks()).call(t,(function(t){if("cm-fullWidth"===t.className){var r=JSON.parse(yh(Th(t).call(t))),i=e.getRange(r.from,r.to);n.test(i)||t.clear()}}));!1!==i;i=r.findNext()){var a,o=r.from();if(o){var s={line:o.line,ch:o.ch},c={line:o.line,ch:o.ch+1};0===Qi(a=e.findMarks(s,c)).call(a,(function(t){return"cm-fullWidth"===t.className})).length&&e.markText(s,c,{className:"cm-fullWidth",title:"按住Ctrl/Cmd点击切换成半角(Hold down Ctrl/Cmd and click to switch to half-width)"})}}}}},{key:"toHalfWidth",value:function(t,e){var n=e.target;if(n instanceof HTMLElement&&n.classList.contains("cm-fullWidth")&&(e.ctrlKey||e.metaKey)&&1===e.buttons){var r=n.getBoundingClientRect(),i=t.coordsChar({left:r.left,top:r.top}),a={line:i.line,ch:i.ch+1};t.setSelection(i,a),t.replaceSelection(n.innerText.replace("·","`").replace("¥","$").replace("、","/").replace(":",":").replace("“",'"').replace("”",'"').replace("【","[").replace("】","]").replace("(","(").replace(")",")").replace("《","<").replace("》",">"))}}},{key:"onPaste",value:function(t,e){var n=t.clipboardData;n?this.handlePaste(t,n,e):(n=window.clipboardData,this.handlePaste(t,n,e))}},{key:"handlePaste",value:function(t,e,n){var r,i,a=this,o=this.$cherry.options.callback.onPaste(e,this.$cherry);if(!1!==o&&"string"==typeof o)return t.preventDefault(),void n.replaceSelection(o);var s=e.getData("Text/Html"),c=e.items;s=s.replace(//,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},function(t){var e={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",i=RegExp(r+"-"+r),a={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:i,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":e,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":e,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":a}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,function(t){var e={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},n=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:e,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:e.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:e,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function r(t){for(var e={},r=0,i=(t=t.split(" ")).length;r>/g,(function(t,n){return"(?:"+e[+n]+")"}))}function n(t,n,r){return RegExp(e(t,n),r||"")}function r(t,e){for(var n=0;n>/g,(function(){return"(?:"+t+")"}));return t.replace(/<>/g,"[^\\s\\S]")}var i="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",a="class enum interface record struct",o="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function c(t){return"\\b(?:"+t.trim().replace(/ /g,"|")+")\\b"}var l=c(a),u=RegExp(c(i+" "+a+" "+o+" "+s)),h=c(a+" "+o+" "+s),f=c(i+" "+a+" "+s),d=r(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),A=r(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,p=e(/<<0>>(?:\s*<<1>>)?/.source,[g,d]),m=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[h,p]),b=/\[\s*(?:,\s*)*\]/.source,v=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,b]),y=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,A,b]),w=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[y]),k=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,m,b]),x={keyword:u,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,T=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,k]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,p]),lookbehind:!0,inside:x},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:x},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[v]),lookbehind:!0,inside:x},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[k,f,g]),inside:x}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[A]),lookbehind:!0,alias:"class-name",inside:x},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[k,m]),inside:x,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[k]),lookbehind:!0,inside:x,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,d]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(d),alias:"class-name",inside:x}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,p,g,k,u.source,A,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[p,A]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:u,"class-name":{pattern:RegExp(k),greedy:!0,inside:x},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var B=E+"|"+C,_=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[B]),S=r(e(/[^"'/()]|<<0>>|\(<>*\)/.source,[_]),2),L=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,I=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,S]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[L,I]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[L]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[S]),inside:t.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var M=/:[^}\r\n]+/.source,O=r(e(/[^"'/()]|<<0>>|\(<>*\)/.source,[_]),2),D=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[O,M]),F=r(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[B]),2),N=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,M]);function R(e,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[e]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,M]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[D]),lookbehind:!0,greedy:!0,inside:R(D,O)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[N]),lookbehind:!0,greedy:!0,inside:R(N,F)}],char:{pattern:RegExp(C),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(Prism),Prism.languages.aspnet=Prism.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:Prism.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:Prism.languages.csharp}}}),Prism.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,Prism.languages.insertBefore("inside","punctuation",{directive:Prism.languages.aspnet.directive},Prism.languages.aspnet.tag.inside["attr-value"]),Prism.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),Prism.languages.insertBefore("aspnet",Prism.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:Prism.languages.csharp||{}}}),Prism.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/},Prism.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},Prism.languages.gawk=Prism.languages.awk,function(t){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=t.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=r.variable[1].inside,o=0;o>)?=)/],number:i,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:r,parameter:n,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:e,number:i,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,(function(){return e.source}));t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,(function(){return e.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism),Prism.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/},function(t){var e,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:e={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=e,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},i={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:i})}(Prism),Prism.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/},function(t){var e=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:e,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(Prism),function(t){function e(t,e){return"___"+t.toUpperCase()+e+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,i,a){if(n.language===r){var o=n.tokenStack=[];n.code=n.code.replace(i,(function(t){if("function"==typeof a&&!a(t))return t;for(var i,s=o.length;-1!==n.code.indexOf(i=e(r,s));)++s;return o[s]=t,i})),n.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=t.languages[r];var i=0,a=Object.keys(n.tokenStack);!function o(s){for(var c=0;c=a.length);c++){var l=s[c];if("string"==typeof l||l.content&&"string"==typeof l.content){var u=a[i],h=n.tokenStack[u],f="string"==typeof l?l:l.content,d=e(r,u),A=f.indexOf(d);if(A>-1){++i;var g=f.substring(0,A),p=new t.Token(r,t.tokenize(h,n.grammar),"language-"+r,h),m=f.substring(A+d.length),b=[];g&&b.push.apply(b,o([g])),b.push(p),m&&b.push.apply(b,o([m])),"string"==typeof l?s.splice.apply(s,[c,1].concat(b)):l.content=b}}else l.content&&o(l.content)}return s}(n.tokens)}}}})}(Prism),function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var e=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,n=t.languages["markup-templating"];t.hooks.add("before-tokenize",(function(t){n.buildPlaceholders(t,"django",e)})),t.hooks.add("after-tokenize",(function(t){n.tokenizePlaceholders(t,"django")})),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",(function(t){n.buildPlaceholders(t,"jinja2",e)})),t.hooks.add("after-tokenize",(function(t){n.tokenizePlaceholders(t,"jinja2")}))}(Prism),Prism.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},Prism.languages["dns-zone"]=Prism.languages["dns-zone-file"],function(t){var e=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,(function(){return e})),r=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,(function(){return r})),a={pattern:RegExp(r),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function s(t,e){return t=t.replace(//g,(function(){return i})).replace(//g,(function(){return n})),RegExp(t,e)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:s(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[a,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:s(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:a,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},t.languages.dockerfile=t.languages.docker}(Prism),function(t){for(var e=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,n=0;n<2;n++)e=e.replace(//g,(function(){return e}));e=e.replace(//g,/[^\s\S]/.source);var r={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,(function(){return e}))),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,(function(){return e}))),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};r.string[1].inside.interpolation.inside.rest=r,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:r}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:r}}}},t.hooks.add("before-tokenize",(function(n){var r=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,(function(){return e})),"gi");t.languages["markup-templating"].buildPlaceholders(n,"ftl",r)})),t.hooks.add("after-tokenize",(function(e){t.languages["markup-templating"].tokenizePlaceholders(e,"ftl")}))}(Prism),Prism.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},Prism.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},Prism.languages.ld=Prism.languages["linker-script"],Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"],Prism.languages["go-mod"]=Prism.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/},Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json,Prism.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+"(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")"+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},Prism.languages.url=Prism.languages.uri,function(t){function e(t){return RegExp("(^(?:"+t+"):[ \t]*(?![ \t]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:e(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:e(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:e(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:e(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var n,r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function o(t){var e=t.replace(/^[a-z]+\//,"");return"(?:"+t+"|"+("\\w+/(?:[\\w.-]+\\+)+"+e+"(?![+\\w.-])")+")"}for(var s in i)if(i[s]){n=n||{};var c=a[s]?o(s):s;n[s.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+c+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[s]}}n&&t.languages.insertBefore("http","header",n)}(Prism),Prism.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/},function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,(function(){return e.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:a};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];t.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:e,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",(function(e){if(/<\?/.test(e.code)){t.languages["markup-templating"].buildPlaceholders(e,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),t.hooks.add("after-tokenize",(function(e){t.languages["markup-templating"].tokenizePlaceholders(e,"php")}))}(Prism),function(t){var e=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(e,"addSupport",{value:function(e,n){"string"==typeof e&&(e=[e]),e.forEach((function(e){!function(e,n){var r="doc-comment",i=t.languages[e];if(i){var a=i[r];if(!a){var o={};o[r]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},a=(i=t.languages.insertBefore(e,"comment",o))[r]}if(a instanceof RegExp&&(a=i[r]={pattern:a}),Array.isArray(a))for(var s=0,c=a.length;s|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),Prism.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:Prism.languages.scala}}},string:/[\s\S]+/}}}),delete Prism.languages.scala["class-name"],delete Prism.languages.scala.function,delete Prism.languages.scala.constant,function(t){var e=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,n=/#\s*\w+(?:\s*\([^()]*\))?/.source,r=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,(function(){return n}));t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+r+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:e,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:e,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)}(Prism),Prism.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}},function(t){var e=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+e.source+")?|"+e.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(t,e){e=(e||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return t}));return RegExp(n,e)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return r})).replace(/<>/g,(function(){return"(?:"+i+"|"+a+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(a),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:e,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml}(Prism),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(t){return t=t.replace(//g,(function(){return e})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+t+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+a+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+a+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(e){["url","bold","italic","strike","code-snippet"].forEach((function(n){e!==n&&(t.languages.markdown[e].inside.content.inside[n]=t.languages.markdown[n])}))})),t.hooks.add("after-tokenize",(function(t){"markdown"!==t.language&&"md"!==t.language||function t(e){if(e&&"string"!=typeof e)for(var n=0,r=e.length;n",quot:'"'},c=String.fromCodePoint||String.fromCharCode;t.languages.md=t.languages.markdown}(Prism),Prism.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Prism.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Prism.hooks.add("after-tokenize",(function(t){if("graphql"===t.language)for(var e=t.tokens.filter((function(t){return"string"!=typeof t&&"comment"!==t.type&&"scalar"!==t.type})),n=0;n0)){var s=f(/^\{$/,/^\}$/);if(-1===s)continue;for(var c=n;c=0&&d(l,"variable-input")}}}}function u(t){return e[n+t]}function h(t,e){e=e||0;for(var n=0;n?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(t){var e=t.languages.javascript["template-string"],n=e.pattern.source,r=e.inside.interpolation,i=r.inside["interpolation-punctuation"],a=r.pattern.source;function o(e,r){if(t.languages[e])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:e}}}}function s(t,e){return"___"+e.toUpperCase()+"_"+t+"___"}function c(e,n,r){var i={code:e,grammar:n,language:r};return t.hooks.run("before-tokenize",i),i.tokens=t.tokenize(i.code,i.grammar),t.hooks.run("after-tokenize",i),i.tokens}function l(e){var n={};n["interpolation-punctuation"]=i;var a=t.tokenize(e,n);if(3===a.length){var o=[1,1];o.push.apply(o,c(a[1],t.languages.javascript,"javascript")),a.splice.apply(a,o)}return new t.Token("interpolation",a,r.alias,e)}function u(e,n,r){var i=t.tokenize(e,{interpolation:{pattern:RegExp(a),lookbehind:!0}}),o=0,u={},h=i.map((function(t){if("string"==typeof t)return t;for(var n,i=t.content;-1!==e.indexOf(n=s(o++,r)););return u[n]=i,n})).join(""),f=c(h,n,r),d=Object.keys(u);return o=0,function t(e){for(var n=0;n=d.length)return;var r=e[n];if("string"==typeof r||"string"==typeof r.content){var i=d[o],a="string"==typeof r?r:r.content,s=a.indexOf(i);if(-1!==s){++o;var c=a.substring(0,s),h=l(u[i]),f=a.substring(s+i.length),A=[];if(c&&A.push(c),A.push(h),f){var g=[f];t(g),A.push.apply(A,g)}"string"==typeof r?(e.splice.apply(e,[n,1].concat(A)),n+=A.length-1):r.content=A}}else{var p=r.content;Array.isArray(p)?t(p):t([p])}}}(f),new t.Token(r,f,"language-"+r,e)}t.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),e].filter(Boolean);var h={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function f(t){return"string"==typeof t?t:Array.isArray(t)?t.map(f).join(""):f(t.content)}t.hooks.add("after-tokenize",(function(e){e.language in h&&function e(n){for(var r=0,i=n.length;r]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism),function(t){var e=t.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";t.languages.jsdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),t.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:e,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:e.string,number:e.number,boolean:e.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:e,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(Prism),function(t){function e(t,e){return RegExp(t.replace(//g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),e)}t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),t.languages.insertBefore("javascript","keyword",{imports:{pattern:e(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:e(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:e(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r|.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}},function(t){var e=/\\(?:[^a-z()[\]]|[a-z*]+)/i,n={"equation-command":{pattern:e,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:n,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:n,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:e,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex}(Prism),Prism.languages.less=Prism.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),Prism.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),Prism.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},Prism.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/},Prism.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/},function(t){var e=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],n="(?:"+(e=e.map((function(t){return t.replace("$","\\$")}))).join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp("^(['\"])?"+n+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"].join("|")+")\\b"),alias:"keyword"}})}(Prism),Prism.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/},function(t){var e=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:e}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:e}},punctuation:/[{};]/}}(Prism),Prism.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}},Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec,function(t){var e=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,e].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,e].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,e+/\s*/.source+e].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}}(Prism),function(t){var e=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+e+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+e),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)}(Prism),Prism.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}}),function(t){var e=/\$\w+|%[a-z]+%/,n=/\[[^[\]]*\]/.source,r=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,i="(?:-+"+r+"-+|\\.+"+r+"\\.+|-+(?:"+n+"-*)?|"+n+"-+|\\.+(?:"+n+"\\.*)?|"+n+"\\.+)",a=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,o=/[[?]?[ox]?/.source+"(?:"+i+a+"|"+/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source+i+"(?:"+a+")?)"+/[ox]?[\]?]?/.source;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:e}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+o+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:e,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]}(Prism),Prism.languages.plsql=Prism.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),Prism.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}}),function(t){var e=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};e.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:e},boolean:e.boolean,variable:e.variable}}(Prism),Prism.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/},Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,Prism.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/},function(t){var e=t.util.clone(t.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function a(t,e){return t=t.replace(//g,(function(){return n})).replace(//g,(function(){return r})).replace(//g,(function(){return i})),RegExp(t,e)}i=a(i).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:a(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var o=function(t){return t?"string"==typeof t?t:"string"==typeof t.content?t.content:t.content.map(o).join(""):""},s=function(e){for(var n=[],r=0;r0&&n[n.length-1].tagName===o(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:o(i.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:a=!0),(a||"string"==typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var c=o(i);r0&&("string"==typeof e[r-1]||"plain-text"===e[r-1].type)&&(c=o(e[r-1])+c,e.splice(r-1,1),r--),e[r]=new t.Token("plain-text",c,null,c)}i.content&&"string"!=typeof i.content&&s(i.content)}};t.hooks.add("after-tokenize",(function(t){"jsx"!==t.language&&"tsx"!==t.language||s(t.tokens)}))}(Prism),function(t){var e=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",e),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var n=t.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var e={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:e,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:e,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:e,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:e,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:e,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(Prism),function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,n=0;n<2;n++)e=e.replace(//g,(function(){return e}));e=e.replace(//g,(function(){return/[^\s\S]/.source})),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},function(t){var e=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,n=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,r={pattern:RegExp(e+"[bx]"),alias:"number"},i={pattern:/&[a-z_]\w*/i},a={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},o={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},s=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],c={pattern:RegExp(e),greedy:!0},l=/[$%@.(){}\[\];,\\]/,u={pattern:/%?\b\w+(?=\()/,alias:"keyword"},h={function:u,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":i,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:n,"numeric-constant":r,punctuation:l,string:c},f={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},d={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},A={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},g={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},p=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,m={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,(function(){return p})),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,(function(){return p})),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:s,function:u,"arg-value":h["arg-value"],operator:h.operator,argument:h.arg,number:n,"numeric-constant":r,punctuation:l,string:c}},b={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,(function(){return e})),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":A,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:n,"numeric-constant":r,punctuation:l,string:c}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,(function(){return e})),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:b,"submit-statement":g,"global-statements":A,number:n,"numeric-constant":r,punctuation:l,string:c}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,(function(){return e})),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:b,"submit-statement":g,"global-statements":A,number:n,"numeric-constant":r,punctuation:l,string:c}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:h}},"cas-actions":m,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:h},step:o,keyword:b,function:u,format:f,altformat:d,"global-statements":A,number:n,"numeric-constant":r,punctuation:l,string:c}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,(function(){return e})),"im"),lookbehind:!0,inside:h},"macro-keyword":a,"macro-variable":i,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":a,"macro-variable":i,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:l}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:s,number:n,"numeric-constant":r}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:h},"cas-actions":m,comment:s,function:u,format:f,altformat:d,"numeric-constant":r,datetime:{pattern:RegExp(e+"(?:dt?|t)"),alias:"number"},string:c,step:o,keyword:b,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:n,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:l}}(Prism),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var e=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:e,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:e,operator:n,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(Prism),Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),Prism.languages.scss.atrule.inside.rest=Prism.languages.scss,function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(function(t){for(var e in t)t[e]=t[e].replace(/<[\w\s]+>/g,(function(e){return"(?:"+t[e].trim()+")"}));return t[e]}({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/}}(Prism),function(t){var e=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,(function(){return e})),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]}(Prism),Prism.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/},Prism.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/},Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(t){t.inside.interpolation.inside=Prism.languages.swift})),function(t){var e={pattern:/^[;#].*/m,greedy:!0},n=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:e,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+n+'|(?=[^"\r\n]))(?:'+/[^\s\\]/.source+'|[ \t]+(?:(?![ \t"])|'+n+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:e,quoted:{pattern:RegExp(/(^|\s)/.source+n),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}}(Prism),function(t){var e=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,n=/\)|\((?![^|()\n]+\))/.source;function r(t,r){return RegExp(t.replace(//g,(function(){return"(?:"+e+")"})).replace(//g,(function(){return"(?:"+n+")"})),r||"")}var i={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},a=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:r(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:r(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:i},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:r(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:r(/(^[*#]+)+/.source),lookbehind:!0,inside:i},punctuation:/^[*#]+/}},table:{pattern:r(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:r(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:i},punctuation:/\||^\./}},inline:{pattern:r(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:r(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:r(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:r(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:r(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:r(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:r(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:r(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:r(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:i},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:r(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:r(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:r(/(^")+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:r(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:r(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:r(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),o=a.phrase.inside,s={inline:o.inline,link:o.link,image:o.image,footnote:o.footnote,acronym:o.acronym,mark:o.mark};a.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var c=o.inline.inside;c.bold.inside=s,c.italic.inside=s,c.inserted.inside=s,c.deleted.inside=s,c.span.inside=s;var l=o.table.inside;l.inline=s.inline,l.link=s.link,l.image=s.image,l.footnote=s.footnote,l.acronym=s.acronym,l.mark=s.mark}(Prism),Prism.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/},Prism.languages.vbnet=Prism.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/}),Prism.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/},Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/},Prism.languages.wiki=Prism.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:Prism.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),Prism.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:Prism.languages.markup.tag.inside}}}}),function(t){function e(e,n){t.languages[e]&&t.languages.insertBefore(e,"comment",{"doc-comment":n})}var n=t.languages.markup.tag,r={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:n}},i={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:n}};e("csharp",r),e("fsharp",r),e("vbnet",i)}(Prism),function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var e={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(e).forEach((function(n){var r=e[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),t.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(t.languages.diff,"PREFIXES",{value:e})}(Prism),Prism.languages.glsl=Prism.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/}),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var e=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],n={},r=0,i=e.length;r]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},Prism.languages.pascal.asm.inside=Prism.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),Prism.languages.objectpascal=Prism.languages.pascal,function(t){var e=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:e}},builtin:e,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(Prism),Am.manual=!0;var bm={figure:"figure"},vm=function(t){function e(t){var n;t.externals;var r,i=t.config;(ra(this,e),n=pm(this,e,[{needCache:!0}]),e.inlineCodeCache={},n.codeCache={},n.customLang=[],n.customParser={},n.lineNumber=i.lineNumber,n.copyCode=i.copyCode,n.expandCode=i.expandCode,n.editCode=i.editCode,n.changeLang=i.changeLang,n.selfClosing=i.selfClosing,n.mermaid=i.mermaid,n.indentedCodeBlock=void 0===i.indentedCodeBlock||i.indentedCodeBlock,n.INLINE_CODE_REGEX=/(`+)(.+?(?:\n.+?)*?)\1/g,i&&i.customRenderer)&&(n.customLang=LA(r=Is(i.customRenderer)).call(r,(function(t){return t.toLowerCase()})),n.customParser=function(t){for(var e=1;e40&&(this.codeCache.length=0),!1)}},{key:"parseCustomLanguage",value:function(t,e,n){var r,i,a,o,s,c=this.customParser[t];if(!c||"function"!=typeof c.render)return!1;var l=c.render(e,n.sign,this.$engine,this.mermaid);if(!l)return!1;var u=bm[c.constructor.TYPE]||"div";return hs(r=hs(i=hs(a=hs(o=hs(s="<".concat(u,' data-sign="')).call(s,n.sign,'" data-type="')).call(o,t,'" data-lines="')).call(a,n.lines,'">')).call(i,l,"")}},{key:"fillTag",value:function(t){var e=[];return LA(t).call(t,(function(t){if(!t)return"";for(var n=t;e.length;){var r,i=e.pop();n=hs(r="".concat(i)).call(r,n)}var a=n.match(/|<\/span>/g),o=0;if(!a)return n;for(;a.length;){var s=a.pop();/<\/span>/.test(s)?o+=1:o?o-=1:e.unshift(s.match(//)[0])}for(var c=0;c");return n}))}},{key:"renderLineNumber",value:function(t){if(!this.lineNumber)return t;var e=t.split("\n");return e.pop(),e=this.fillTag(e),''.concat(e.join('\n'),"")}},{key:"isInternalCustomLangCovered",value:function(t){var e;return-1!==Kf(e=this.customLang).call(e,t)}},{key:"computeLines",value:function(t,e,n){var r=e,i=this.getLineCount(t,r);return{sign:this.$engine.hash(t.replace(/^\n+/,"")+i),lines:i}}},{key:"appendMermaid",value:function(t,e){var n=t,r=e;if(/^flow([ ](TD|LR))?$/i.test(r)&&!this.isInternalCustomLangCovered(r)){var i,a=r.match(/^flow(?:[ ](TD|LR))?$/i)||[];n=hs(i="graph ".concat(a[1]||"TD","\n")).call(i,n),r="mermaid"}return/^seq$/i.test(r)&&!this.isInternalCustomLangCovered(r)&&(n="sequenceDiagram\n".concat(n),r="mermaid"),"mermaid"===r&&(n=n.replace(/(^[\s]*)stateDiagram-v2\n/,"$1stateDiagram\n")),[n,r]}},{key:"wrapCode",value:function(t,e){var n;return hs(n='')).call(n,t,"")}},{key:"renderCodeBlock",value:function(t,e,n,r){var i,a,o,s,c,l,u,h,f,d,A=t,g=e;/\s*CHERRY_FLOW_SESSION_CURSOR/.test(g)&&(g=g.replace(/\s*CHERRY_FLOW_SESSION_CURSOR/,"")),g=g.toLowerCase(),this.customHighlighter?A=this.customHighlighter(A,g):(g&&Am.languages[g]||(g="javascript"),A=Am.highlight(A,Am.languages[g],g),A=this.renderLineNumber(A));var p=this.expandCode&&(null===(i=t.match(/\n/g))||void 0===i?void 0:i.length)>10;return A=hs(a=hs(o=hs(s=hs(c=hs(l=hs(u=hs(h=hs(f=hs(d='\n
')).call(a,this.wrapCode(A,g),"
\n "),p&&(A+='
\n
\n \n
\n
'),A+=""}},{key:"$getIndentedCodeReg",value:function(){return new RegExp("(?:^|\\n\\s*\\n)(?: {4}|\\t)"+"([\\s\\S]+?)"+"(?=$|\\n( {0,3}[^ \\t\\n]|\\n[^ \\t\\n]))","g")}},{key:"$getIndentCodeBlock",value:function(t){var e=this;return this.indentedCodeBlock?this.$recoverCodeInIndent(t).replace(this.$getIndentedCodeReg(),(function(t,n){var r,i,a=(t.match(/\n/g)||[]).length,o=e.$engine.hash(t),s=hs(r=hs(i='
')).call(r,sg(n.replace(/\n( {4}|\t)/g,"\n")),"
");return IA(t,e.pushCache(s,o,a))})):t}},{key:"$replaceCodeInIndent",value:function(t){return this.indentedCodeBlock?t.replace(this.$getIndentedCodeReg(),(function(t){return t.replace(/`/g,"~~~IndentCode")})):t}},{key:"$recoverCodeInIndent",value:function(t){return this.indentedCodeBlock?t.replace(this.$getIndentedCodeReg(),(function(t){return t.replace(/~~~IndentCode/g,"`")})):t}},{key:"$dealUnclosingCode",value:function(t){var e=t.match(/(?:^|\n)(\n*((?:>[\t ]*)*)(?:[^\S\n]*))(`{3,})([^`]*?)(?=CHERRY_FLOW_SESSION_CURSOR|$|\n)/g);if(!e||e.length<=0)return t;var n=!1,r=Qi(e).call(e,(function(t){return!1===n?(n=!0,!0):!/```[^`\s]+/.test(t)&&(n=!1,!0)}));if(r.length%2==1){var i,a=r[r.length-1].replace(/(`)[^`]+$/,"$1").replace(/\n+/,""),o=t.replace(/\n+`{1,2}\n*(CHERRY_FLOW_SESSION_CURSOR|$)/,"").replace(/\n+CHERRY_FLOW_SESSION_CURSOR\n+$/,"").replace(/\n+$/,"");return hs(i="".concat(o,"\n")).call(i,a,"\n")}return t.replace(/(`{2,})CHERRY_FLOW_SESSION_CURSOR/,"$1\nCHERRY_FLOW_SESSION_CURSOR")}},{key:"beforeMakeHtml",value:function(t,e,n){var r=this,i=t;return(this.selfClosing||this.$engine.$cherry.options.engine.global.flowSessionContext)&&(i=this.$dealUnclosingCode(i)),i=(i=this.$replaceCodeInIndent(i)).replace(this.RULE.reg,(function(t,e,n,i,a,o){var s,c,l;function u(t){if(n){var e=new RegExp("^\n*",""),r=t.match(e)[0];t=r+n+t.replace(e,(function(t){return""}))}return t}var h=o,f=r.computeLines(t,e,o),d=f.sign,A=f.lines,g=r.$codeCache(d);if(g&&""!==g)return u(r.getCacheWithSpace(r.pushCache(g,d,A),t));h=(h=(h=r.$recoverCodeInIndent(h)).replace(/~D/g,"$")).replace(/~T/g,"~");var p=null!==(s=null==e||null===(c=e.match(/[ ]/g))||void 0===c?void 0:c.length)&&void 0!==s?s:0;if(p>0){var m=new RegExp("(^|\\n)[ ]{1,".concat(p,"}"),"g");h=h.replace(m,"$1")}if(n){var b=new RegExp("(^|\\n)".concat(n),"g");h=h.replace(b,"$1")}var v=Ph(a).call(a);if(/^(math|katex|latex)$/i.test(v)&&!r.isInternalCustomLangCovered(v)){var y,w=t.match(/^\s*/g);return hs(y="".concat(w,"~D~D\n")).call(y,h,"~D~D")}var k=jf(r.appendMermaid(h,v),2);return h=k[0],v=k[1],-1!==Kf(l=r.customLang).call(l,v.toLowerCase())&&(g=r.parseCustomLanguage(v,h,{lines:A,sign:d}))&&""!==g?(r.$codeCache(d,g),r.getCacheWithSpace(r.pushCache(g,d,A),t)):(h=h.replace(/~X/g,"\\`"),g=(g=r.renderCodeBlock(h,v,d,A)).replace(/\\/g,"\\\\"),g=r.$codeCache(d,g),u(r.getCacheWithSpace(r.pushCache(g,d,A),t)))})),i=i.replace(Wd(!0),(function(t){var e;return LA(e=t.split("|")).call(e,(function(t){return r.makeInlineCode(t)})).join("|").replace(/`/g,"\\`")})),i=this.makeInlineCode(i),i=this.$getIndentCodeBlock(i)}},{key:"makeInlineCode",value:function(t){var n=this,r=t;return this.INLINE_CODE_REGEX.test(r)&&(r=(r=r.replace(/\\`/g,"~~not~inlineCode")).replace(this.INLINE_CODE_REGEX,(function(t,r,i){if("`"===Ph(i).call(i))return t;var a=i.replace(/~~not~inlineCode/g,"\\`");a=(a=n.$replaceSpecialChar(a)).replace(/\\/g,"\\\\");var o="".concat(sg(a),""),s=n.$engine.hash(o);return e.inlineCodeCache[s]=o,"~~CODE".concat(s,"$")})),r=r.replace(/~~not~inlineCode/g,"\\`")),r}},{key:"makeHtml",value:function(t){return t}},{key:"$replaceSpecialChar",value:function(t){var e=t.replace(/~Q/g,"\\~");return e=(e=(e=(e=e.replace(/~Y/g,"\\!")).replace(/~Z/g,"\\#")).replace(/~&/g,"\\&")).replace(/~K/g,"\\/")}},{key:"rule",value:function(){return qd()}},{key:"mounted",value:function(t){}}])}(gg);function ym(t,e,n){return e=es(e),Ko(t,wm()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function wm(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(wm=function(){return!!t})()}cs(vm,"HOOK_NAME","codeBlock"),cs(vm,"inlineCodeCache",{});var km=function(t){function e(){return ra(this,e),ym(this,e,arguments)}return ss(e,t),$o(e,[{key:"makeHtml",value:function(t){return t}},{key:"afterMakeHtml",value:function(t){var e=t;return Is(vm.inlineCodeCache).length>0&&(e=e.replace(/~~CODE([0-9a-zA-Z]+)\$/g,(function(t,e){return vm.inlineCodeCache[e]}))),e}},{key:"$cleanCache",value:function(){vm.inlineCodeCache={}}},{key:"rule",value:function(){var t={begin:"(`+)[ ]*",end:"[ ]*\\1",content:"(.+?(?:\\n.+?)*?)"};return t.reg=Nd(t,"g"),t}}])}(gg);cs(km,"HOOK_NAME","inlineCode");var xm,Cm=(xm=Object.freeze({__proto__:null,default:{}}))&&xm.default||xm,Em=r((function(t,n){var r;t.exports=(r=r||function(t,n){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==e&&e.crypto&&(r=e.crypto),!r)try{r=Cm}catch(t){}var i=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),o={},s=o.lib={},c=s.Base={extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},l=s.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=e!=n?e:4*t.length},toString:function(t){return(t||h).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var a=0;a>>2]>>>24-a%4*8&255;e[r+a>>>2]|=o<<24-(r+a)%4*8}else for(var s=0;s>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new l.init(n,e/2)}},f=u.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new l.init(n,e)}},d=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},A=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,i=r.words,a=r.sigBytes,o=this.blockSize,s=a/(4*o),c=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*o,u=t.min(4*c,a);if(c){for(var h=0;h>>2]|=t[i]<<24-i%4*8;e.call(this,r,n)}else e.apply(this,arguments)};r.prototype=t}}(),n.lib.WordArray)})),r((function(t,e){var n;t.exports=(n=Em,function(){var t=n,e=t.lib.WordArray,r=t.enc;function i(t){return t<<8&4278255360|t>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(a))}return r.join("")},parse:function(t){for(var n=t.length,r=[],i=0;i>>1]|=t.charCodeAt(i)<<16-i%2*16;return e.create(r,2*n)}},r.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],a=0;a>>2]>>>16-a%4*8&65535);r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var n=t.length,r=[],a=0;a>>1]|=i(t.charCodeAt(a)<<16-a%2*16);return e.create(r,2*n)}}}(),n.enc.Utf16)})),r((function(t,e){var n;t.exports=(n=Em,function(){var t=n,e=t.lib.WordArray;function r(t,n,r){for(var i=[],a=0,o=0;o>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return e.create(i,a)}t.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var i=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(e[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|e[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s>>6*(3-s)&63));var c=r.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(t){var e=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return e.create(i,a)}t.enc.Base64url={stringify:function(t,e){void 0===e&&(e=!0);var n=t.words,r=t.sigBytes,i=e?this._safe_map:this._map;t.clamp();for(var a=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(n[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|n[o+2>>>2]>>>24-(o+2)%4*8&255,c=0;c<4&&o+.75*c>>6*(3-c)&63));var l=i.charAt(64);if(l)for(;a.length%4;)a.push(l);return a.join("")},parse:function(t,e){void 0===e&&(e=!0);var n=t.length,i=e?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var o=0;o>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,o=t[e+0],c=t[e+1],d=t[e+2],A=t[e+3],g=t[e+4],p=t[e+5],m=t[e+6],b=t[e+7],v=t[e+8],y=t[e+9],w=t[e+10],k=t[e+11],x=t[e+12],C=t[e+13],E=t[e+14],T=t[e+15],B=a[0],_=a[1],S=a[2],L=a[3];B=l(B,_,S,L,o,7,s[0]),L=l(L,B,_,S,c,12,s[1]),S=l(S,L,B,_,d,17,s[2]),_=l(_,S,L,B,A,22,s[3]),B=l(B,_,S,L,g,7,s[4]),L=l(L,B,_,S,p,12,s[5]),S=l(S,L,B,_,m,17,s[6]),_=l(_,S,L,B,b,22,s[7]),B=l(B,_,S,L,v,7,s[8]),L=l(L,B,_,S,y,12,s[9]),S=l(S,L,B,_,w,17,s[10]),_=l(_,S,L,B,k,22,s[11]),B=l(B,_,S,L,x,7,s[12]),L=l(L,B,_,S,C,12,s[13]),S=l(S,L,B,_,E,17,s[14]),B=u(B,_=l(_,S,L,B,T,22,s[15]),S,L,c,5,s[16]),L=u(L,B,_,S,m,9,s[17]),S=u(S,L,B,_,k,14,s[18]),_=u(_,S,L,B,o,20,s[19]),B=u(B,_,S,L,p,5,s[20]),L=u(L,B,_,S,w,9,s[21]),S=u(S,L,B,_,T,14,s[22]),_=u(_,S,L,B,g,20,s[23]),B=u(B,_,S,L,y,5,s[24]),L=u(L,B,_,S,E,9,s[25]),S=u(S,L,B,_,A,14,s[26]),_=u(_,S,L,B,v,20,s[27]),B=u(B,_,S,L,C,5,s[28]),L=u(L,B,_,S,d,9,s[29]),S=u(S,L,B,_,b,14,s[30]),B=h(B,_=u(_,S,L,B,x,20,s[31]),S,L,p,4,s[32]),L=h(L,B,_,S,v,11,s[33]),S=h(S,L,B,_,k,16,s[34]),_=h(_,S,L,B,E,23,s[35]),B=h(B,_,S,L,c,4,s[36]),L=h(L,B,_,S,g,11,s[37]),S=h(S,L,B,_,b,16,s[38]),_=h(_,S,L,B,w,23,s[39]),B=h(B,_,S,L,C,4,s[40]),L=h(L,B,_,S,o,11,s[41]),S=h(S,L,B,_,A,16,s[42]),_=h(_,S,L,B,m,23,s[43]),B=h(B,_,S,L,y,4,s[44]),L=h(L,B,_,S,x,11,s[45]),S=h(S,L,B,_,T,16,s[46]),B=f(B,_=h(_,S,L,B,d,23,s[47]),S,L,o,6,s[48]),L=f(L,B,_,S,b,10,s[49]),S=f(S,L,B,_,E,15,s[50]),_=f(_,S,L,B,p,21,s[51]),B=f(B,_,S,L,x,6,s[52]),L=f(L,B,_,S,A,10,s[53]),S=f(S,L,B,_,w,15,s[54]),_=f(_,S,L,B,c,21,s[55]),B=f(B,_,S,L,v,6,s[56]),L=f(L,B,_,S,T,10,s[57]),S=f(S,L,B,_,m,15,s[58]),_=f(_,S,L,B,C,21,s[59]),B=f(B,_,S,L,g,6,s[60]),L=f(L,B,_,S,k,10,s[61]),S=f(S,L,B,_,d,15,s[62]),_=f(_,S,L,B,y,21,s[63]),a[0]=a[0]+B|0,a[1]=a[1]+_|0,a[2]=a[2]+S|0,a[3]=a[3]+L|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var a=t.floor(r/4294967296),o=r;n[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});function l(t,e,n,r,i,a,o){var s=t+(e&n|~e&r)+i+o;return(s<>>32-a)+e}function u(t,e,n,r,i,a,o){var s=t+(e&r|n&~r)+i+o;return(s<>>32-a)+e}function h(t,e,n,r,i,a,o){var s=t+(e^n^r)+i+o;return(s<>>32-a)+e}function f(t,e,n,r,i,a,o){var s=t+(n^(e|~r))+i+o;return(s<>>32-a)+e}e.MD5=a._createHelper(c),e.HmacMD5=a._createHmacHelper(c)}(Math),n.MD5)})),r((function(t,e){var n,r,i,a,o,s,c,l;t.exports=(r=(n=l=Em).lib,i=r.WordArray,a=r.Hasher,o=n.algo,s=[],c=o.SHA1=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],c=n[4],l=0;l<80;l++){if(l<16)s[l]=0|t[e+l];else{var u=s[l-3]^s[l-8]^s[l-14]^s[l-16];s[l]=u<<1|u>>>31}var h=(r<<5|r>>>27)+c+s[l];h+=l<20?1518500249+(i&a|~i&o):l<40?1859775393+(i^a^o):l<60?(i&a|i&o|a&o)-1894007588:(i^a^o)-899497514,c=o,o=a,a=i<<30|i>>>2,i=r,r=h}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+c|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}}),n.SHA1=a._createHelper(c),n.HmacSHA1=a._createHmacHelper(c),l.SHA1)})),r((function(t,e){var n;t.exports=(n=Em,function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.algo,s=[],c=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(s[i]=n(t.pow(r,.5))),c[i]=n(t.pow(r,1/3)),i++),r++}();var l=[],u=o.SHA256=a.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],u=n[5],h=n[6],f=n[7],d=0;d<64;d++){if(d<16)l[d]=0|t[e+d];else{var A=l[d-15],g=(A<<25|A>>>7)^(A<<14|A>>>18)^A>>>3,p=l[d-2],m=(p<<15|p>>>17)^(p<<13|p>>>19)^p>>>10;l[d]=g+l[d-7]+m+l[d-16]}var b=r&i^r&a^i&a,v=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),y=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&h)+c[d]+l[d];f=h,h=u,u=s,s=o+y|0,o=a,a=i,i=r,r=y+(v+b)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+h|0,n[7]=n[7]+f|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=a._createHelper(u),e.HmacSHA256=a._createHmacHelper(u)}(Math),n.SHA256)})),r((function(t,e){var n,r,i,a,o,s;t.exports=(r=(n=s=Em).lib.WordArray,i=n.algo,a=i.SHA256,o=i.SHA224=a.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=4,t}}),n.SHA224=a._createHelper(o),n.HmacSHA224=a._createHmacHelper(o),s.SHA224)})),r((function(t,e){var n;t.exports=(n=Em,function(){var t=n,e=t.lib.Hasher,r=t.x64,i=r.Word,a=r.WordArray,o=t.algo;function s(){return i.create.apply(i,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];!function(){for(var t=0;t<80;t++)l[t]=s()}();var u=o.SHA512=e.extend({_doReset:function(){this._hash=new a.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],u=n[5],h=n[6],f=n[7],d=r.high,A=r.low,g=i.high,p=i.low,m=a.high,b=a.low,v=o.high,y=o.low,w=s.high,k=s.low,x=u.high,C=u.low,E=h.high,T=h.low,B=f.high,_=f.low,S=d,L=A,I=g,M=p,O=m,D=b,F=v,N=y,R=w,P=k,Q=x,U=C,H=E,$=T,j=B,K=_,z=0;z<80;z++){var G,X,V=l[z];if(z<16)X=V.high=0|t[e+2*z],G=V.low=0|t[e+2*z+1];else{var W=l[z-15],q=W.high,Y=W.low,J=(q>>>1|Y<<31)^(q>>>8|Y<<24)^q>>>7,Z=(Y>>>1|q<<31)^(Y>>>8|q<<24)^(Y>>>7|q<<25),tt=l[z-2],et=tt.high,nt=tt.low,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,it=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),at=l[z-7],ot=at.high,st=at.low,ct=l[z-16],lt=ct.high,ut=ct.low;X=(X=(X=J+ot+((G=Z+st)>>>0>>0?1:0))+rt+((G+=it)>>>0>>0?1:0))+lt+((G+=ut)>>>0>>0?1:0),V.high=X,V.low=G}var ht,ft=R&Q^~R&H,dt=P&U^~P&$,At=S&I^S&O^I&O,gt=L&M^L&D^M&D,pt=(S>>>28|L<<4)^(S<<30|L>>>2)^(S<<25|L>>>7),mt=(L>>>28|S<<4)^(L<<30|S>>>2)^(L<<25|S>>>7),bt=(R>>>14|P<<18)^(R>>>18|P<<14)^(R<<23|P>>>9),vt=(P>>>14|R<<18)^(P>>>18|R<<14)^(P<<23|R>>>9),yt=c[z],wt=yt.high,kt=yt.low,xt=j+bt+((ht=K+vt)>>>0>>0?1:0),Ct=mt+gt;j=H,K=$,H=Q,$=U,Q=R,U=P,R=F+(xt=(xt=(xt=xt+ft+((ht+=dt)>>>0
>>0?1:0))+wt+((ht+=kt)>>>0>>0?1:0))+X+((ht+=G)>>>0>>0?1:0))+((P=N+ht|0)>>>0>>0?1:0)|0,F=O,N=D,O=I,D=M,I=S,M=L,S=xt+(pt+At+(Ct>>>0>>0?1:0))+((L=ht+Ct|0)>>>0>>0?1:0)|0}A=r.low=A+L,r.high=d+S+(A>>>0>>0?1:0),p=i.low=p+M,i.high=g+I+(p>>>0>>0?1:0),b=a.low=b+D,a.high=m+O+(b>>>0>>0?1:0),y=o.low=y+N,o.high=v+F+(y>>>0>>0?1:0),k=s.low=k+P,s.high=w+R+(k>>>0

>>0?1:0),C=u.low=C+U,u.high=x+Q+(C>>>0>>0?1:0),T=h.low=T+$,h.high=E+H+(T>>>0<$>>>0?1:0),_=f.low=_+K,f.high=B+j+(_>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(r+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(u),t.HmacSHA512=e._createHmacHelper(u)}(),n.SHA512)})),r((function(t,e){var n,r,i,a,o,s,c,l;t.exports=(r=(n=l=Em).x64,i=r.Word,a=r.WordArray,o=n.algo,s=o.SHA512,c=o.SHA384=s.extend({_doReset:function(){this._hash=new a.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var t=s._doFinalize.call(this);return t.sigBytes-=16,t}}),n.SHA384=s._createHelper(c),n.HmacSHA384=s._createHmacHelper(c),l.SHA384)})),r((function(t,e){var n;t.exports=(n=Em,function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.x64.Word,s=e.algo,c=[],l=[],u=[];!function(){for(var t=1,e=0,n=0;n<24;n++){c[t+5*e]=(n+1)*(n+2)/2%64;var r=(2*t+3*e)%5;t=e%5,e=r}for(t=0;t<5;t++)for(e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,a=0;a<24;a++){for(var s=0,h=0,f=0;f<7;f++){if(1&i){var d=(1<>>24)|4278255360&(a<<24|a>>>8),o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),(_=n[i]).high^=o,_.low^=a}for(var s=0;s<24;s++){for(var f=0;f<5;f++){for(var d=0,A=0,g=0;g<5;g++)d^=(_=n[f+5*g]).high,A^=_.low;var p=h[f];p.high=d,p.low=A}for(f=0;f<5;f++){var m=h[(f+4)%5],b=h[(f+1)%5],v=b.high,y=b.low;for(d=m.high^(v<<1|y>>>31),A=m.low^(y<<1|v>>>31),g=0;g<5;g++)(_=n[f+5*g]).high^=d,_.low^=A}for(var w=1;w<25;w++){var k=(_=n[w]).high,x=_.low,C=c[w];C<32?(d=k<>>32-C,A=x<>>32-C):(d=x<>>64-C,A=k<>>64-C);var E=h[l[w]];E.high=d,E.low=A}var T=h[0],B=n[0];for(T.high=B.high,T.low=B.low,f=0;f<5;f++)for(g=0;g<5;g++){var _=n[w=f+5*g],S=h[w],L=h[(f+1)%5+5*g],I=h[(f+2)%5+5*g];_.high=S.high^~L.high&I.high,_.low=S.low^~L.low&I.low}_=n[0];var M=u[s];_.high^=M.high,_.low^=M.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,a=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/a)*a>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var o=this._state,s=this.cfg.outputLength/8,c=s/8,l=[],u=0;u>>24)|4278255360&(f<<24|f>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),l.push(d),l.push(f)}return new i.init(l,s)},clone:function(){for(var t=a.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});e.SHA3=a._createHelper(f),e.HmacSHA3=a._createHmacHelper(f)}(Math),n.SHA3)})),r((function(t,e){var n;t.exports=(n=Em,function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=i.create([0,1518500249,1859775393,2400959708,2840853838]),f=i.create([1352829926,1548603684,1836072691,2053994217,0]),d=o.RIPEMD160=a.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a,o,d,y,w,k,x,C,E,T,B,_=this._hash.words,S=h.words,L=f.words,I=s.words,M=c.words,O=l.words,D=u.words;for(k=a=_[0],x=o=_[1],C=d=_[2],E=y=_[3],T=w=_[4],n=0;n<80;n+=1)B=a+t[e+I[n]]|0,B+=n<16?A(o,d,y)+S[0]:n<32?g(o,d,y)+S[1]:n<48?p(o,d,y)+S[2]:n<64?m(o,d,y)+S[3]:b(o,d,y)+S[4],B=(B=v(B|=0,O[n]))+w|0,a=w,w=y,y=v(d,10),d=o,o=B,B=k+t[e+M[n]]|0,B+=n<16?b(x,C,E)+L[0]:n<32?m(x,C,E)+L[1]:n<48?p(x,C,E)+L[2]:n<64?g(x,C,E)+L[3]:A(x,C,E)+L[4],B=(B=v(B|=0,D[n]))+T|0,k=T,T=E,E=v(C,10),C=x,x=B;B=_[1]+d+E|0,_[1]=_[2]+y+T|0,_[2]=_[3]+w+k|0,_[3]=_[4]+a+x|0,_[4]=_[0]+o+C|0,_[0]=B},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,a=i.words,o=0;o<5;o++){var s=a[o];a[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});function A(t,e,n){return t^e^n}function g(t,e,n){return t&e|~t&n}function p(t,e,n){return(t|~e)^n}function m(t,e,n){return t&n|e&~n}function b(t,e,n){return t^(e|~n)}function v(t,e){return t<>>32-e}e.RIPEMD160=a._createHelper(d),e.HmacRIPEMD160=a._createHmacHelper(d)}(),n.RIPEMD160)})),r((function(t,e){var n,r,i;t.exports=(r=(n=Em).lib.Base,i=n.enc.Utf8,void(n.algo.HMAC=r.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=i.parse(e));var n=t.blockSize,r=4*n;e.sigBytes>r&&(e=t.finalize(e)),e.clamp();for(var a=this._oKey=e.clone(),o=this._iKey=e.clone(),s=a.words,c=o.words,l=0;l>>2];t.sigBytes-=e}};r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:d,padding:A}),reset:function(){var t;u.reset.call(this);var e=this.cfg,n=e.iv,r=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=r.createEncryptor:(t=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(r,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4});var g=r.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),p=(e.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;return(n?a.create([1398893684,1701076831]).concat(n).concat(e):e).toString(c)},parse:function(t){var e,n=c.parse(t),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(e=a.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:e})}},m=r.SerializableCipher=i.extend({cfg:i.extend({format:p}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var i=t.createEncryptor(n,r),a=i.finalize(e),o=i.cfg;return g.create({ciphertext:a,key:n,iv:o.iv,algorithm:t,mode:o.mode,padding:o.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),t.createDecryptor(n,r).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),b=(e.kdf={}).OpenSSL={execute:function(t,e,n,r,i){if(r||(r=a.random(8)),i)o=l.create({keySize:e+n,hasher:i}).compute(t,r);else var o=l.create({keySize:e+n}).compute(t,r);var s=a.create(o.words.slice(e),4*n);return o.sigBytes=4*e,g.create({key:o,iv:s,salt:r})}},v=r.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:b}),encrypt:function(t,e,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,t.keySize,t.ivSize,r.salt,r.hasher);r.iv=i.iv;var a=m.encrypt.call(this,t,e,i.key,r);return a.mixIn(i),a},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var i=r.kdf.execute(n,t.keySize,t.ivSize,e.salt,r.hasher);return r.iv=i.iv,m.decrypt.call(this,t,e,i.key,r)}})}())})),r((function(t,e){var n;t.exports=((n=Em).mode.CFB=function(){var t=n.lib.BlockCipherMode.extend();function e(t,e,n,r){var i,a=this._iv;a?(i=a.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var o=0;o>24))t+=1<<24;else{var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}return t}function r(t){return 0===(t[0]=e(t[0]))&&(t[1]=e(t[1])),t}var i=t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,a=this._iv,o=this._counter;a&&(o=this._counter=a.slice(0),this._iv=void 0),r(o);var s=o.slice(0);n.encryptBlock(s,0);for(var c=0;c>>2]|=i<<24-a%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Ansix923)})),r((function(t,e){var n;t.exports=((n=Em).pad.Iso10126={pad:function(t,e){var r=4*e,i=r-t.sigBytes%r;t.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Iso10126)})),r((function(t,e){var n;t.exports=((n=Em).pad.Iso97971={pad:function(t,e){t.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(t,e)},unpad:function(t){n.pad.ZeroPadding.unpad(t),t.sigBytes--}},n.pad.Iso97971)})),r((function(t,e){var n;t.exports=((n=Em).pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},n.pad.ZeroPadding)})),r((function(t,e){var n;t.exports=((n=Em).pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)})),r((function(t,e){var n;t.exports=(n=Em,function(t){var e=n,r=e.lib.CipherParams,i=e.enc.Hex;e.format.Hex={stringify:function(t){return t.ciphertext.toString(i)},parse:function(t){var e=i.parse(t);return r.create({ciphertext:e})}}}(),n.format.Hex)})),r((function(t,e){var n;t.exports=(n=Em,function(){var t=n,e=t.lib.BlockCipher,r=t.algo,i=[],a=[],o=[],s=[],c=[],l=[],u=[],h=[],f=[],d=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,r=0;for(e=0;e<256;e++){var A=r^r<<1^r<<2^r<<3^r<<4;A=A>>>8^255&A^99,i[n]=A,a[A]=n;var g=t[n],p=t[g],m=t[p],b=257*t[A]^16843008*A;o[n]=b<<24|b>>>8,s[n]=b<<16|b>>>16,c[n]=b<<8|b>>>24,l[n]=b,b=16843009*m^65537*p^257*g^16843008*n,u[A]=b<<24|b>>>8,h[A]=b<<16|b>>>16,f[A]=b<<8|b>>>24,d[A]=b,n?(n=g^t[t[t[m^g]]],r^=t[t[r]]):n=r=1}}();var A=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,r=4*((this._nRounds=n+6)+1),a=this._keySchedule=[],o=0;o6&&o%n==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=A[o/n|0]<<24),a[o]=a[o-n]^l);for(var s=this._invKeySchedule=[],c=0;c>>24]]^h[i[l>>>16&255]]^f[i[l>>>8&255]]^d[i[255&l]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,s,c,l,i)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,u,h,f,d,a),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,a,o,s){for(var c=this._nRounds,l=t[e]^n[0],u=t[e+1]^n[1],h=t[e+2]^n[2],f=t[e+3]^n[3],d=4,A=1;A>>24]^i[u>>>16&255]^a[h>>>8&255]^o[255&f]^n[d++],p=r[u>>>24]^i[h>>>16&255]^a[f>>>8&255]^o[255&l]^n[d++],m=r[h>>>24]^i[f>>>16&255]^a[l>>>8&255]^o[255&u]^n[d++],b=r[f>>>24]^i[l>>>16&255]^a[u>>>8&255]^o[255&h]^n[d++];l=g,u=p,h=m,f=b}g=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&f])^n[d++],p=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^n[d++],m=(s[h>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^n[d++],b=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^n[d++],t[e]=g,t[e+1]=p,t[e+2]=m,t[e+3]=b},keySize:8});t.AES=e._createHelper(g)}(),n.AES)})),r((function(t,e){var n;t.exports=(n=Em,function(){var t=n,e=t.lib,r=e.WordArray,i=e.BlockCipher,a=t.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=a.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var r=o[n]-1;e[n]=t[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],a=0;a<16;a++){var l=i[a]=[],u=c[a];for(n=0;n<24;n++)l[n/6|0]|=e[(s[n]-1+u)%28]<<31-n%6,l[4+(n/6|0)]|=e[28+(s[n+24]-1+u)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=i[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],f.call(this,4,252645135),f.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),f.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],a=this._lBlock,o=this._rBlock,s=0,c=0;c<8;c++)s|=l[c][((o^i[c])&u[c])>>>0];this._lBlock=o,this._rBlock=a^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,f.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<192.");var e=t.slice(0,2),n=t.length<4?t.slice(0,2):t.slice(2,4),i=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=h.createEncryptor(r.create(e)),this._des2=h.createEncryptor(r.create(n)),this._des3=h.createEncryptor(r.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(A)}(),n.TripleDES)})),r((function(t,e){var n;t.exports=(n=Em,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=r.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var a=0;i<256;i++){var o=i%n,s=e[o>>>2]>>>24-o%4*8&255;a=(a+r[i]+s)%256;var c=r[i];r[i]=r[a],r[a]=c}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+t[e=(e+1)%256])%256;var a=t[e];t[e]=t[n],t[n]=a,r|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,r}t.RC4=e._createHelper(i);var o=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});t.RC4Drop=e._createHelper(o)}(),n.RC4)})),r((function(t,e){var n;t.exports=(n=Em,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var a=e.words,o=a[0],s=a[1],l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=h,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=h,i[6]^=u,i[7]^=f,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0,this._b=e[7]>>>0>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);o[n]=c^l}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=e._createHelper(s)}(),n.Rabbit)})),r((function(t,e){var n;t.exports=(n=Em,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(e){var a=e.words,o=a[0],s=a[1],l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=l>>>16|4294901760&u,f=u<<16|65535&l;for(r[0]^=l,r[1]^=h,r[2]^=u,r[3]^=f,r[4]^=l,r[5]^=h,r[6]^=u,r[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0,this._b=e[7]>>>0>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);o[n]=c^l}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=e._createHelper(s)}(),n.RabbitLegacy)})),r((function(t,e){var n;t.exports=(n=Em,function(){var t=n,e=t.lib.BlockCipher,r=t.algo;const i=16,a=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],o=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function c(t,e){let n=e>>24&255,r=e>>16&255,i=e>>8&255,a=255&e,o=t.sbox[0][n]+t.sbox[1][r];return o^=t.sbox[2][i],o+=t.sbox[3][a],o}function l(t,e,n){let r,a=e,o=n;for(let e=0;e1;--e)a^=t.pbox[e],o=c(t,a)^o,r=a,a=o,o=r;return r=a,a=o,o=r,o^=t.pbox[1],a^=t.pbox[0],{left:a,right:o}}function h(t,e,n){for(let e=0;e<4;e++){t.sbox[e]=[];for(let n=0;n<256;n++)t.sbox[e][n]=o[e][n]}let r=0;for(let o=0;o=n&&(r=0);let s=0,c=0,u=0;for(let e=0;e")).call(A,v,"")):hs(l="".concat(e+d,"")).call(l,n,"")}return t}},{key:"toStdMarkdown",value:function(t){return t}},{key:"makeHtml",value:function(t){var e,n,r=t.replace(this.RULE.reg,(function(t){return t.replace(/~D/g,"~1D")}));Rd()?r=r.replace(this.RULE.reg,fs(e=this.toHtml).call(e,this)):r=Xp(r,this.RULE.reg,fs(n=this.toHtml).call(n,this),!0,1);return r=r.replace(this.RULE.reg,(function(t){return t.replace(/~1D/g,"~D")})),r}},{key:"rule",value:function(){var t,e={begin:Rd()?"((?0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return ra(this,e),t=Dm(this,e,[{config:n}]),n?(t.allowWhitespace=!!n.allowWhitespace,t):Ko(t)}return ss(e,t),$o(e,[{key:"makeHtml",value:function(t,e){var n=function(t,n,r,i){var a,o,s,c=r.length%2==1?"em":"strong",l=Math.floor(r.length/2),u=rd("").call("",l),h=rd("").call("",l);return"em"===c&&(u+="",h="".concat(h)),hs(a=hs(o=hs(s="".concat(n)).call(s,u)).call(o,e(i).html.replace(/_/g,"~U"))).call(a,h)},r=t;return r=(r=this.allowWhitespace?(r=(r=r.replace(/(^[\s]*|\n[\s]*)(\*)([^\s*](?:.*?)(?:(?:\n.*?)*?))\*/g,n)).replace(/(^[\s]*|\n[\s]*)(\*{2,})((?:.*?)(?:(?:\n.*?)*?))\2/g,n)).replace(/([^\n*\\\s][ ]*)(\*+)((?:.*?)(?:(?:\n.*?)*?))\2/g,n):r.replace(this.RULE.asterisk.reg,n)).replace(this.RULE.underscore.reg,(function(t,n,r,i,a,o){var s,c,l;if(""===Ph(i).call(i))return t;var u=r.length%2==1?"em":"strong",h=Math.floor(r.length/2),f=rd("").call("",h),d=rd("").call("",h),A=e(i).html;return"em"===u&&(f+="",d="".concat(d)),hs(s=hs(c=hs(l="".concat(n)).call(l,f)).call(c,A)).call(s,d)})),r.replace(/~U/g,"_")}},{key:"test",value:function(t,e){return this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config,e=!!t&&!!t.allowWhitespace,n=function(t,e){var n,r,i,a="[^".concat(e,"\\s]");return t?"(?:.*?)(?:(?:\\n.*?)*?)":hs(n=hs(r=hs(i="(".concat(a,"|")).call(i,a,"(.*?(\n")).call(r,a,".*)*)")).call(n,a,")")},r={begin:"(^|[^\\\\])([*]+)",content:"(".concat(n(e,"*"),")"),end:"\\2"},i={begin:"(^|".concat(Hd,")(_+)"),content:"(".concat(n(e,"_"),")"),end:"\\2(?=".concat(Hd,"|$)")};return r.reg=Nd(r,"g"),i.reg=Nd(i,"g"),{asterisk:r,underscore:i}}}])}(EA);function Rm(t,e,n){return e=es(e),Ko(t,Pm()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Pm(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Pm=function(){return!!t})()}cs(Nm,"HOOK_NAME","fontEmphasis");var Qm=function(t){function e(t){var n;return ra(this,e),(n=Rm(this,e)).initBrReg(t.globalConfig.classicBr),n}return ss(e,t),$o(e,[{key:"makeHtml",value:function(t,e){var n=this;return this.test(t)?t.replace(this.RULE.reg,(function(t,r,i){var a;if(n.isContainsCache(t,!0))return t;var o,s=function(t){var r,i,a,o,s,c;if(""===Ph(t).call(t))return"";var l=e(t),u=l.sign,h=l.html,f="p";new RegExp("<(".concat(ig,")[^>]*>"),"i").test(h)&&(f="div");var d=n.getLineCount(t,t);return hs(r=hs(i=hs(a=hs(o=hs(s=hs(c="<".concat(f,' data-sign="')).call(c,u)).call(s,d,'" data-type="')).call(o,f,'" data-lines="')).call(a,d,'">')).call(i,n.$cleanParagraph(h),"")};return n.isContainsCache(i)?n.makeExcludingCached(hs(o="".concat(r)).call(o,i),s):s(hs(a="".concat(r)).call(a,i))})):t}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)",end:"(?=\\s*$|\\n\\n)",content:"([\\s\\S]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}])}(gg);cs(Qm,"HOOK_NAME","normalParagraph");var Um=function(t){return void 0!==t&&(Bt(t,"value")||Bt(t,"writable"))};Dn({target:"Reflect",stat:!0},{get:function t(e,n){var r,i,a=arguments.length<3?e:arguments[2];return ue(e)===a?e[n]:(r=ye.f(e,n))?Um(r)?r.value:void 0===r.get?void 0:ht(r.get,a):ft(i=Ea(e))?t(i,n,a):void 0}});var Hm=$.Reflect.get,$m=ji;function jm(){var t;return jm="undefined"!=typeof Reflect&&Hm?qo(t=Hm).call(t):function(t,e,n){var r=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=es(t)););return t}(t,e);if(r){var i=$m(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},jm.apply(null,arguments)}function Km(t,e,n){return e=es(e),Ko(t,zm()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function zm(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(zm=function(){return!!t})()}var Gm="atx",Xm="setext",Vm=/[\s\-_]/,Wm=/[A-Za-z]/,qm=/[0-9]/,Ym=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0,externals:void 0};n.externals;var r=n.config;return ra(this,e),(t=Km(this,e,[{needCache:!0}])).strict=!r||!!r.strict,t.RULE=t.rule(),t.headerIDCache=[],t.headerIDCounter={},t.config=r||{},t}return ss(e,t),$o(e,[{key:"$parseTitleText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"string"!=typeof t?"":t.replace(/<.*?>/g,"").replace(/</g,"<").replace(/>/g,">")}},{key:"$generateId",value:function(t){for(var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.length,r="",i=0;i255)try{r+=encodeURIComponent(a)}catch(t){}}return r}},{key:"generateIDNoDup",value:function(t){var e,n=t.replace(/</g,"<").replace(/>/g,">"),r=this.$generateId(n,!0),i=Kf(e=this.headerIDCache).call(e,r);if(-1!==i)this.headerIDCounter[i]+=1,r+="-".concat(this.headerIDCounter[i]+1);else{var a=this.headerIDCache.push(r);this.headerIDCounter[a-1]=1}return r}},{key:"$wrapHeader",value:function(t,e,n,r){var i,a,o,s,c,l,u,h=r(Ph(t).call(t)),f=h.html,d=f.match(/\s+\{#([A-Za-z0-9-]+)\}$/);null!==d&&(f=f.substring(0,d.index),u=jf(d,2)[1]);var A=this.$parseTitleText(f);if(!u){u=this.generateIDNoDup(A.replace(/~fn#([0-9]+)#/g,""))}var g="safe_".concat(u),p=this.$engine.hash(hs(i=hs(a=hs(o="".concat(e,"-")).call(o,h.sign,"-")).call(a,u,"-")).call(i,n));return{html:[hs(s=hs(c=hs(l="'),this.$getAnchor(u),"".concat(f),"")].join(""),sign:"".concat(p)}}},{key:"$getAnchor",value:function(t){return"none"===(this.config.anchorStyle||"default")?"":'')}},{key:"beforeMakeHtml",value:function(t){var e=this,n=t;return this.$engine.$cherry.options.engine.global.flowSessionContext&&(n=n.replace(/(\n\s*-{1,})\s*$/,"$1 ")),this.test(n,Gm)&&(n=n.replace(this.RULE[Gm].reg,(function(t,n,r,i){return""===Ph(i).call(i)?t:e.getCacheWithSpace(e.pushCache(t),t,!0)}))),this.test(n,Xm)&&(n=n.replace(this.RULE[Xm].reg,(function(t,n,r){return""===Ph(r).call(r)||e.isContainsCache(r)?t:e.getCacheWithSpace(e.pushCache(t),t,!0)}))),n}},{key:"makeHtml",value:function(t,e){var n=this,r=this.restoreCache(t);return this.test(r,Gm)&&(r=r.replace(this.RULE[Gm].reg,(function(t,r,i,a){var o=MA(r,n.getLineCount(t.replace(/^\n+/,""))),s=a.replace(/\s+#+\s*$/,""),c=n.$wrapHeader(s,i.length,o,e),l=c.html,u=c.sign;return n.getCacheWithSpace(n.pushCache(l,u,o),t,!0)}))),this.test(r,Xm)&&(r=r.replace(this.RULE[Xm].reg,(function(t,r,i,a){if(n.isContainsCache(i))return t;var o=MA(r,n.getLineCount(t.replace(/^\n+/,""))),s="-"===a[0]?2:1,c=n.$wrapHeader(i,s,o,e),l=c.html,u=c.sign;return n.getCacheWithSpace(n.pushCache(l,u,o),t,!0)}))),r}},{key:"afterMakeHtml",value:function(t){var n=jm(es(e.prototype),"afterMakeHtml",this).call(this,t);return this.headerIDCache=[],this.headerIDCounter={},n}},{key:"test",value:function(t,e){return this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)",content:["(?:\\h*","(.+)",")\\n","(?:\\h*","([=]+|[-]+)",")"].join(""),end:"(?=$|\\n)"};t.reg=Nd(t,"g",!0);var e={begin:"(?:^|\\n)(\\n*)(?:\\h*(#{1,6}))",content:"(.+?)",end:"(?=$|\\n)"};return this.strict&&(e.begin+="(?=\\h+)"),e.reg=Nd(e,"g",!0),{setext:t,atx:e}}}])}(gg);function Jm(t,e,n){return e=es(e),Ko(t,Zm()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Zm(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Zm=function(){return!!t})()}cs(Ym,"HOOK_NAME","header");var tb=function(t){function e(){return ra(this,e),Jm(this,e,arguments)}return ss(e,t),$o(e,[{key:"rule",value:function(){return{begin:"",content:"",end:"",reg:new RegExp("")}}},{key:"beforeMakeHtml",value:function(t){return t.replace(/\\\n/g,"\\ \n")}},{key:"afterMakeHtml",value:function(t){var e=t.replace(/~Q/g,"~");return e=(e=(e=(e=(e=e.replace(/~X/g,"`")).replace(/~Y/g,"!")).replace(/~Z/g,"#")).replace(/~&/g,"&")).replace(/~K/g,"/")}}])}(EA);cs(tb,"HOOK_NAME","transfer");var eb=TypeError,nb="Reduce of empty array with no initial value",rb=function(t){return function(e,n,r,i){var a=yt(e),o=Q(a),s=un(a);if(ut(n),0===s&&r<2)throw new eb(nb);var c=t?s-1:0,l=t?-1:1;if(r<2)for(;;){if(c in o){i=o[c],c+=l;break}if(c+=l,t?c<0:s<=c)throw new eb(nb)}for(;t?c>=0:s>c;c+=l)c in o&&(i=n(i,o[c],c,a));return i}},ib={left:rb(!1),right:rb(!0)},ab="process"===C(j.process),ob=ib.left,sb=!ab&&Y>79&&Y<83||!Ms("reduce");Dn({target:"Array",proto:!0,forced:sb},{reduce:function(t){var e=arguments.length;return ob(this,t,e,e>1?arguments[1]:void 0)}});var cb=Ni("Array","reduce"),lb=Array.prototype,ub=function(t){var e=t.reduce;return t===lb||rt(lb,t)&&e===lb.reduce?cb:e};function hb(t,e){var n=Is(t);if(Ii){var r=Ii(t);e&&(r=Qi(r).call(r,(function(e){return Ki(t,e).enumerable}))),n.push.apply(n,r)}return n}function fb(t){for(var e=1;e'.concat(m,""),v=hs(i="".concat(p.sign)).call(i,d);return{html:p.html.replace(/(^

)/,"$1".concat(b)).replace(/(^
0}},{key:"$renderTable",value:function(t,e,n,r){var i,a,o,s,c=this.$testHeadEmpty(e)?hs(i="~CTHD".concat(e,"~CTHD$~CTBD")).call(i,n,"~CTBD$"):"~CTBD".concat(n,"~CTBD$"),l=this.$engine.hash(c),u=c.replace(/~CTHD\$/g,"").replace(/~CTHD/g,"").replace(/~CTBD\$/g,"").replace(/~CTBD/g,"").replace(/~CTR\$/g,"").replace(/~CTR/g,"").replace(/[ ]?~CTH\$/g,"").replace(/[ ]?~CTD\$/g,"").replace(/~CT(D|H)(L|R|C|U)[ ]?/g,(function(e,n,r){var i="":' align="'.concat(t[r],'">')})).replace(/\\\|/g,"|");return{html:hs(a=hs(o=hs(s='
\n ')).call(a,u,"
"),sign:l}}},{key:"makeHtml",value:function(t,e){var n=this,r=t;return(this.$engine.$cherry.options.engine.global.flowSessionContext||this.selfClosing)&&/(^|^[^|][^\n]*\n|\n\n|\n[^|][^\n]*\n)\s*\|[^\n]+\n{0,1}[|:-\s]*\n*$/.test(r)&&(r="".concat(r.replace(/\n[|:-\s]*\n*$/,""),"\n|-|")),this.test(r,pb)&&(r=r.replace(this.RULE[pb].reg,(function(t,r){var i,a=n.getLineCount(t,r),o=LA(i=Ph(t).call(t).split(/\n/)).call(i,(function(t){var e;return Ph(e=String(t)).call(e)})),s=n.$parseTable(o,e,a),c=s.html,l=s.sign;return n.getCacheWithSpace(n.pushCache(c,l,a),t)}))),this.test(r,gb)&&(r=r.replace(this.RULE[gb].reg,(function(t,r){var i,a=n.getLineCount(t,r),o=LA(i=Ph(t).call(t).split(/\n/)).call(i,(function(t){var e;return Ph(e=String(t)).call(e)})),s=n.$parseTable(o,e,a),c=s.html,l=s.sign;return n.getCacheWithSpace(n.pushCache(c,l,a),t)}))),r}},{key:"test",value:function(t,e){return this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){return Wd()}}])}(gg);function bb(){return"object"===("undefined"==typeof window?"undefined":Po(window))}function vb(t,e,n){return e=es(e),Ko(t,yb()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function yb(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(yb=function(){return!!t})()}cs(mb,"HOOK_NAME","table");var wb=function(t){function e(t){var n;return ra(this,e),(n=vb(this,e,[{needCache:!0}])).classicBr=DA("classicBr")?FA():t.globalConfig.classicBr,n}return ss(e,t),$o(e,[{key:"beforeMakeHtml",value:function(t){var e=this;return this.test(t)?t.replace(this.RULE.reg,(function(t,n,r){var i,a;if(0===r)return t;var o,s,c=null!==(i=null===(a=n.match(/\n/g))||void 0===a?void 0:a.length)&&void 0!==i?i:0,l="br".concat(c),u="";bb()?u=e.classicBr?hs(o=''):hs(s='

 

'):u=e.classicBr?"":"
";var h=e.pushCache(u,l,c);return"\n\n".concat(h,"\n")})):t}},{key:"makeHtml",value:function(t,e){return t}},{key:"rule",value:function(){var t={begin:"(?:\\n)",end:"",content:"((?:\\h*\\n){2,})"};return t.reg=Nd(t,"g",!0),t}}])}(gg);function kb(t,e,n){return e=es(e),Ko(t,xb()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function xb(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(xb=function(){return!!t})()}cs(wb,"HOOK_NAME","br");var Cb=function(t){function e(){return ra(this,e),kb(this,e,[{needCache:!0}])}return ss(e,t),$o(e,[{key:"beforeMakeHtml",value:function(t){var e=this;return t.replace(this.RULE.reg,(function(t,n){var r,i=(n.match(/\n/g)||[]).length+1,a="hr".concat(i);return IA(t,e.pushCache(hs(r='
'),a))}))}},{key:"makeHtml",value:function(t,e){return t}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)[ ]*",end:"(?=$|\\n)",content:"((?:-[ \\t]*){3,}|(?:\\*[ \\t]*){3,}|(?:_[ \\t]*){3,})"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}])}(gg);cs(Cb,"HOOK_NAME","hr");var Eb={processExtendAttributesInAlt:function(t){var e=t.match(/#([0-9]+(px|em|pt|pc|in|mm|cm|ex|%)|auto)/g);if(!e)return"";var n="",r=jf(e,2),i=r[0],a=r[1];return i&&(n=' width="'.concat(i.replace(/[ #]*/g,""),'"')),a&&(n+=' height="'.concat(a.replace(/[ #]*/g,""),'"')),n},processExtendStyleInAlt:function(t){var e=Eb.$getAlignment(t),n="",r=t.match(/#(border|shadow|radius|B|S|R)/g);if(r)for(var i=0;i')).call(u,cg(r||""),"");return hs(p="".concat(n)).call(p,this.config.videoWrapper?this.config.videoWrapper(i,t,k):k)}return e}},{key:"toHtml",value:function(t,e,n,r,i,a,o){var s=void 0===r?"ref":"url",c="";if("ref"===s)return t;if("url"===s){var l,u,h,f,d,A,g,p,m=Tb.processExtendAttributesInAlt(n),b=Tb.processExtendStyleInAlt(n),v=b.extendStyles,y=b.extendClasses;v&&(v=' style="'.concat(v,'" ')),y&&(y=' class="'.concat(y,'" ')),c=i&&""!==Ph(i).call(i)?' title="'.concat(cg(i.replace(/["']/g,"")),'"'):"";var w,k="src",x=this.$engine.$cherry.options;if(x.callback&&x.callback.beforeImageMounted){var C=x.callback.beforeImageMounted(k,r);k=C.srcProp||k,w=C.src||r}var E=o?o.replace(/[{}]/g,"").replace(/([^=\s]+)=([^\s]+)/g,'$1="$2"').replace(/&/g,"&"):"";return hs(l=hs(u=hs(h=hs(f=hs(d=hs(A=hs(g=hs(p="".concat(e,"')).call(h,cg(n||")}return t}},{key:"toMediaHtml",value:function(t,e,n,r,i,a,o,s,c){return/(video|audio)/.test(n)?this.replaceToHtml(n,t,e,r,i,a,c):t}},{key:"makeHtml",value:function(t){var e,n,r,i,a=t;this.test(a)&&(a=Rd()?a.replace(this.RULE.reg,fs(e=this.toHtml).call(e,this)):Xp(a,this.RULE.reg,fs(n=this.toHtml).call(n,this),!0,1));this.testMedia(a)&&(a=Rd()?a.replace(this.RULE.regExtend,fs(r=this.toMediaHtml).call(r,this)):Xp(a,this.RULE.regExtend,fs(i=this.toMediaHtml).call(i,this),!0,1));return a}},{key:"testMedia",value:function(t){return this.RULE.regExtend&&this.RULE.regExtend.test(t)}},{key:"rule",value:function(t){var e,n={begin:Rd()?"((?-1?"ul":"ol",e.listStyle=function(t){return/^en-[a-z]/.test(t)?"lower-alpha":/^[a-z]/.test(t)?"lower-greek":/^[一二三四五六七八九十]/.test(t)?"cjk-ideographic":/^I/.test(t)?"upper-roman":/^\+/.test(t)?"circle":/^\*/.test(t)?"square":"default"}(r),e.start=Number(r.replace(".",""))?Number(r.replace(".","")):1,a})):(e.type="blank",t)}var Pb=$o((function t(){ra(this,t),this.index=0,this.space=0,this.type="",this.start=1,this.listStyle="",this.strs=[],this.children=[],this.lines=0})),Qb=function(t){function e(t){var n,r=t.config;return ra(this,e),(n=Ob(this,e,[{needCache:!0}])).config=r||{},n.tree=[],n.emptyLines=0,n.indentSpace=Math.max(n.config.indentSpace,2),n}return ss(e,t),$o(e,[{key:"addNode",value:function(t,e,n,r){"blank"===t.type?this.tree[r].strs.push(t.strs[0]):(this.tree[n].children.push(e),this.tree[e]=Mb(Mb({},t),{},{parent:n}))}},{key:"buildTree",value:function(t,e){var n=t.split("\n");this.tree=[],n.unshift("");for(var r=t.match(/\n*$/g)[0].length,i=0;ia.space;)o-=1;var s=a.space,c=this.tree[o].space;s".concat(c.strs.join("
"),"

");c.lines+=o.getLineCount(c.strs.join("\n"));var h=c.children.length?o.renderTree(n):"";t.lines+=c.lines,s+=c.lines;return/<\/span>/.test(u)&&(l.class+=" check-list-item"),hs(r=hs(i=hs(a="".concat(e,"")).call(i,u)).call(r,h,"")}),"");return void 0===t.parent&&(c["data-lines"]=0===t.index?s+this.emptyLines:s,c["data-sign"]=this.sign),e[0]&&"ol"===n&&(c.start=this.tree[e[0]].start),c.class="cherry-list__".concat(this.tree[e[0]].listStyle),hs(r=hs(i=hs(a="<".concat(n)).call(a,Fb(c),">")).call(i,l,"")}},{key:"renderTree",value:function(t){var e=this,n=0,r=this.tree[t],i=r.children;return ub(i).call(i,(function(t,a,o){if(0===o)return t;if(e.tree[i[o]].type===e.tree[i[o-1]].type)return t;var s=e.renderSubTree(r,Gf(i).call(i,n,o),e.tree[i[o-1]].type);return n=o,t+s}),"")+(i.length?this.renderSubTree(r,Gf(i).call(i,n,i.length),this.tree[i[i.length-1]].type):"")}},{key:"toHtml",value:function(t,e){var n,r;this.emptyLines=null!==(n=null===(r=t.match(/^\n\n/))||void 0===r?void 0:r.length)&&void 0!==n?n:0;var i=t.replace(/~0$/g,"").replace(/^\n+/,"");this.buildTree(function(t){return t.replace(/^((?:|[\t ]+)[*+-]\s+)\[(\s|x)\]/gm,(function(t,e,n){var r,i=/\s/.test(n)?'':'';return hs(r="".concat(e)).call(r,i)}))}(i),e);var a=this.renderTree(0);return this.pushCache(a,this.sign,this.$getLineNum(t))}},{key:"$getLineNum",value:function(t){var e,n,r,i,a=null!==(e=null===(n=t.match(/^\n\n/))||void 0===n?void 0:n.length)&&void 0!==e?e:0;return null!==(r=null===(i=t.replace(/^\n+/,"").replace(/\n+$/,"\n").match(/\n/g))||void 0===i?void 0:i.length)&&void 0!==r?r:0+a}},{key:"makeHtml",value:function(t,e){var n=this,r="".concat(t,"~0");return this.test(r)&&(r=r.replace(this.RULE.reg,(function(t){return n.getCacheWithSpace(n.checkCache(t,e,n.$getLineNum(t)),t)}))),r=r.replace(/~0$/g,"")}},{key:"rule",value:function(){var t={begin:"(?:^|\n)(\n*)(([ ]{0,3}([*+-]|\\d+[.]|en-[a-z]\\.|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)",content:"([^\\r]+?)",end:"(~0|\\n{2,}(?=\\S)(?![ \\t]*(?:[*+-]|\\d+[.]|en-[a-z]\\.|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)))"};return t.reg=new RegExp(t.begin+t.content+t.end,"gm"),t}}])}(gg);function Ub(t,e,n){return e=es(e),Ko(t,Hb()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Hb(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Hb=function(){return!!t})()}cs(Qb,"HOOK_NAME","list");var $b=function(t){function e(){return ra(this,e),Ub(this,e,[{needCache:!0}])}return ss(e,t),$o(e,[{key:"handleMatch",value:function(t,e){var n=this;return t.replace(this.RULE.reg,(function(t,e,r){var i,a,o,s=n.getLineCount(t,e),c=n.$engine.hash(t),l=n.testHasCache(c);if(!1!==l)return n.getCacheWithSpace(l,t);var u=hs(i=hs(a='
'),h=r.split(/\n1&&(f="\n<".concat(Gf(h).call(h,1).join("\n<")));var d=h[0].replace(/^([ \t]*>)/gm,"");return u+=n.$engine.makeHtmlForBlockquote(d),u+="
",hs(o="".concat(n.getCacheWithSpace(n.pushCache(u,c,s),t))).call(o,f)}))}},{key:"makeHtml",value:function(t,e){return this.handleMatch(t,e)}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\s*)",content:["(",">(?:.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))(?:>*.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))*(?:>*.+?)","|",">(?:.+?)",")"].join(""),end:"(?=(\\n)|$)"};return t.reg=Nd(t,"g"),t}}])}(gg);function jb(t,e,n){return e=es(e),Ko(t,Kb()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Kb(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Kb=function(){return!!t})()}cs($b,"HOOK_NAME","blockquote");var zb=function(t){function e(t){var n,r=t.config;return t.globalConfig,ra(this,e),(n=jb(this,e,[{config:r}])).enableShortLink=!!r.enableShortLink,n.shortLinkLength=r.shortLinkLength,n.target=r.target?'target="'.concat(r.target,'"'):r.openNewPage?'target="_blank"':"",n.rel=r.rel?'rel="'.concat(r.rel,'"'):"",n}return ss(e,t),$o(e,[{key:"isLinkInHtmlAttribute",value:function(t,e,n){for(var r,i=new RegExp(["<","([a-zA-Z][a-zA-Z0-9-]*)","(",["\\s+[a-zA-Z_:][a-zA-Z0-9_.:-]*","(",["\\s*=\\s*","(",["([^\\s\"'=<>`]+)","('[^']*')",'("[^"]*")'].join("|"),")"].join(""),")?"].join(""),")*","\\s*[/]?>"].join(""),"g");null!==(r=i.exec(t))&&!(r.index>e+n);)if(r.index=e+n)return!0;return!1}},{key:"isLinkInATag",value:function(t,e,n){for(var r,i=/[^<]*<\/a>/g;null!==(r=i.exec(t))&&!(r.index>e+n);)if(r.index=e+n)return!0;return!1}},{key:"makeHtml",value:function(t,e){var n=this;return this.test(t)&&($d.test(t)||Kd.test(t))?t.replace(this.RULE.reg,(function(t,e,r,i,a,o,s){var c,l,u;if(n.isLinkInHtmlAttribute(s,o,r.length+i.length)||n.isLinkInATag(s,o,r.length+i.length))return t;var h=r.toLowerCase(),f="",d="",A=!0;if(("<"!==e&&"<"!==e||">"!==a&&">"!==a)&&(f=e,d=a,A=!1),""===Ph(i).call(i)||!A&&""===h&&!/www\./.test(i))return t;switch(h){case"javascript:":return t;case"mailto:":var g,p,m,b,v,y;return jd.test(i)?hs(g=hs(p=hs(m=hs(b=hs(v="".concat(f,'")).call(p,cg(i),"")).call(g,d):t;case"":var w,k,x,C,E,T,B,_,S,L;if(f===d||!A)return jd.test(i)?hs(w=hs(k=hs(x=hs(C=hs(E="".concat(f,'")).call(k,cg(i),"")).call(w,d):Gd.test(i)?hs(T=hs(B="".concat(f)).call(B,n.renderLink("//".concat(i),i))).call(T,d):t;if(A)return jd.test(i)?hs(_=hs(S=hs(L='")).call(_,cg(i),""):Xd.test(i)||Gd.test(i)?n.renderLink(i):t;default:return Xd.test(i)?hs(c=hs(l="".concat(f)).call(l,n.renderLink(hs(u="".concat(h)).call(u,i)))).call(c,d):t}return t})):t}},{key:"rule",value:function(){var t,e={begin:"(?)"};return e.reg=Nd(e,"ig"),e}},{key:"renderLink",value:function(t,n){var r,i,a,o,s=n;if("string"!=typeof s)if(this.enableShortLink){var c,l=t.replace(/^https?:\/\//i,"");s=hs(c="".concat(l.substring(0,this.shortLinkLength))).call(c,l.length>this.shortLinkLength?"...":"")}else s=t;var u=hg(this.$engine.urlProcessor(t,"autolink")),h=cg(s),f=Qi(r=[this.target,this.rel]).call(r,Boolean).join(" ");return hs(i=hs(a=hs(o='")).call(i,e.escapePreservedSymbol(h),"")}}])}(EA);function Gb(){var t,e,n,r;bb()&&(this.katex=null!==(t=null===(e=this.externals)||void 0===e?void 0:e.katex)&&void 0!==t?t:window.katex,this.MathJax=null!==(n=null===(r=this.externals)||void 0===r?void 0:r.MathJax)&&void 0!==n?n:window.MathJax)}cs(zb,"HOOK_NAME","autoLink"),cs(zb,"escapePreservedSymbol",(function(t){return t.replace(/_/g,"_").replace(/\*/g,"*")}));var Xb=["&","<",">",'"',"'"],Vb=function(t){var e=t.replace(new RegExp(Ud,"g"),(function(t){return-1!==Kf(Xb).call(Xb,t)?sg(t):"\\".concat(t)}));return e};function Wb(t,e,n){return e=es(e),Ko(t,qb()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function qb(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(qb=function(){return!!t})()}var Yb=function(t){function e(t){var n,r,i=t.config;return ra(this,e),cs(r=Wb(this,e,[{needCache:!0}]),"engine","MathJax"),cs(r,"katex",void 0),cs(r,"MathJax",void 0),r.engine=bb()?null!==(n=i.engine)&&void 0!==n?n:"MathJax":"node",r}return ss(e,t),$o(e,[{key:"toHtml",value:function(t,e,n,r){var i;fs(Gb).call(Gb,this)("engine");var a=t.replace(/^[ \f\r\t\v]*/,"").replace(/\s*$/,""),o=e.replace(/^[ \f\r\t\v]*\n/,""),s=this.$engine.hash(t),c=this.getLineCount(a,o);/\n/.test(e)||(c-=1),/\n\s*$/.test(t)||(c-=1),c=c>0?c:0;var l="";if("katex"===this.engine){var u,h,f=this.katex.renderToString(r,{throwOnError:!1,displayMode:!0});l=hs(u=hs(h='
')).call(u,f,"
")}else if(null!==(i=this.MathJax)&&void 0!==i&&i.tex2svg){var d,A,g=md(this.MathJax.tex2svg(r),!0);l=hs(d=hs(A='
')).call(d,g,"
")}else{var p,m;l=hs(p=hs(m='
$$')).call(p,Vb(r),"$$
")}return n+this.getCacheWithSpace(this.pushCache(l,s,c),t)}},{key:"beforeMakeHtml",value:function(t){var e,n;return Rd()?t.replace(this.RULE.reg,fs(n=this.toHtml).call(n,this)):Xp(t,this.RULE.reg,fs(e=this.toHtml).call(e,this),!0,1)}},{key:"makeHtml",value:function(t){return t}},{key:"rule",value:function(){var t={begin:Rd()?"(\\s*)((?')).call(l,h,"
")}else if(null!==(i=this.MathJax)&&void 0!==i&&i.tex2svg){var f,d,A=md(this.MathJax.tex2svg(n,{em:12,ex:6,display:!1}),!0);c=hs(f=hs(d="".concat(e,'')).call(f,A,"")}else{var g,p;c=hs(g=hs(p="".concat(e,'$')).call(g,Vb(n),"$")}return this.pushCache(c,gg.IN_PARAGRAPH_CACHE_KEY_PREFIX+s)}},{key:"beforeMakeHtml",value:function(t){var e=this,n=t;return n=n.replace(Wd(!0),(function(t){var n;return LA(n=t.split("|")).call(n,(function(t){return e.makeInlineMath(t)})).join("|").replace(/\\~D/g,"~D").replace(/~D/g,"\\~D")})),this.makeInlineMath(n)}},{key:"makeInlineMath",value:function(t){var e,n;return this.test(t)?Rd()?t.replace(this.RULE.reg,fs(n=this.toHtml).call(n,this)):Xp(t,this.RULE.reg,fs(e=this.toHtml).call(e,this),!0,1):t}},{key:"makeHtml",value:function(t){return t}},{key:"rule",value:function(){var t={begin:Rd()?"((?1?arguments[1]:void 0,n),a=r>2?arguments[2]:void 0,o=void 0===a?n:ln(a,n);o>i;)e[i++]=t;return e};Dn({target:"Array",proto:!0},{fill:ev}),Wa();var nv=Ni("Array","fill"),rv=Array.prototype,iv=function(t){var e=t.fill;return t===rv||rt(rv,t)&&e===rv.fill?nv:e};function av(t,e,n){return e=es(e),Ko(t,ov()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function ov(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(ov=function(){return!!t})()}function sv(t){return t}var cv={tocStyle:"plain",tocNodeClass:"toc-li",tocContainerClass:"toc",tocTitleClass:"toc-title",linkProcessor:sv,showAutoNumber:!1},lv='

 

',uv=function(t){function e(t){var n,r;t.externals;var i=t.config;return ra(this,e),cs(r=av(this,e,[{needCache:!0}]),"tocStyle","nested"),cs(r,"tocNodeClass","toc-li"),cs(r,"tocContainerClass","toc"),cs(r,"tocTitleClass","toc-title"),cs(r,"linkProcessor",sv),cs(r,"baseLevel",1),cs(r,"isFirstTocToken",!0),cs(r,"allowMultiToc",!1),cs(r,"showAutoNumber",!1),Qs(n=Is(cv)).call(n,(function(t){r[t]=i[t]||cv[t]})),r}return ss(e,t),$o(e,[{key:"beforeMakeHtml",value:function(t){var e=this,n=t;return this.test(n,"extend")&&(n=n.replace(this.RULE.extend.reg,(function(t,n,r){var i;if(!e.allowMultiToc&&!e.isFirstTocToken)return hs(i="\n".concat(n)).call(i,lv);var a=e.pushCache(t);return e.isFirstTocToken=!1,IA(t,a)}))),this.test(n,"standard")&&(n=n.replace(this.RULE.standard.reg,(function(t,n,r){var i;return e.allowMultiToc||e.isFirstTocToken?(e.isFirstTocToken=!1,IA(t,e.pushCache(t))):hs(i="\n".concat(n)).call(i,lv)}))),n}},{key:"makeHtml",value:function(t){return t}},{key:"$makeLevel",value:function(t){for(var e="",n=this.baseLevel;n2&&void 0!==arguments[2])||arguments[2],l="";e&&(l=this.$makeLevel(t.level));var u=this.linkProcessor("#".concat(t.id).replace(/safe_/g,""));return hs(n=hs(r=hs(i=hs(a=hs(o=hs(s='
  • \n ')).call(o,l,'')).call(r,t.text,"")).call(n,c?"
  • ":"")}},{key:"$makePlainToc",value:function(t){var e=this,n=LA(t).call(t,(function(t){return e.$makeTocItem(t,!0)}));return n.join("")}},{key:"$makeNestedToc",value:function(t){var e,n,r=this,i=0,a=iv(e=new Array(7)).call(e,!1),o=iv(n=new Array(7)).call(n,!1),s="";Qs(t).call(t,(function(t){var e=t.level;if(0===i){for(var n=e;n>=r.baseLevel;n--)s+="
      ",o[n]=!0;return s+=r.$makeTocItem(t,!1,!1),a[e]=!0,void(i=e)}if(e=e;c--)a[c]&&(s+="",a[c]=!1),o[c]&&c>e&&(s+="
    ",o[c]=!1);a[e]=!0,s+=r.$makeTocItem(t,!1,!1),i=e}else if(e===i)a[i]&&(s+=""),s+=r.$makeTocItem(t,!1,!1),a[e]=!0,o[e]=!0;else{for(var l=i+1;l<=e;l++)s+="
      ",o[l]=!0;a[e]=!0,s+=r.$makeTocItem(t,!1,!1),i=e}}));for(var c=i;c>=this.baseLevel;c--)a[c]&&(s+="",a[c]=!1),o[c]&&(s+="
    ",o[c]=!1);return s}},{key:"$makeToc",value:function(t,e,n){var r,i,a,o,s,c,l,u=MA(n,1),h=hs(r=hs(i=hs(a=hs(o='
    ');return h+=hs(s='

    ')).call(s,null!==(c=null===(l=this.$locale)||void 0===l?void 0:l.toc)&&void 0!==c?c:"目录","

    "),t.length<=0?"":(this.baseLevel=Math.min.apply(Math,jp(LA(t).call(t,(function(t){return t.level})))),"nested"===this.tocStyle?h+=this.$makeNestedToc(t):h+=this.$makePlainToc(t),h+="
    ")}},{key:"afterMakeHtml",value:function(t){var n=this,r=jm(es(e.prototype),"afterMakeHtml",this).call(this,t),i=[],a="";return r.replace(/]*? id="([^"]+?)"[^>]*?>(?:|)(.+?)<\/h\1>/g,(function(t,e,n,r){var o,s=r.replace(/~fn#[0-9]+#/g,"");i.push({level:+e,id:n,text:s}),a+=hs(o="".concat(e)).call(o,n)})),a=this.$engine.hash(a),r=r.replace(/(?:^|\n)(\[\[|\[|【【)(toc|TOC)(\]\]|\]|】】)([<~])/,(function(t){return t.replace(/(\]\]|\]|】】)([<~])/,"$1\n$2")})),r=(r=r.replace(this.RULE.extend.reg,(function(t,e){return n.$makeToc(i,a,e)}))).replace(this.RULE.standard.reg,(function(t,e){return n.$makeToc(i,a,e)})),this.isFirstTocToken=!0,r}},{key:"test",value:function(t,e){return!!this.RULE[e].reg&&this.RULE[e].reg.test(t)}},{key:"rule",value:function(){var t={begin:"(?:^|\\n)(\\n*)",end:"(?=$|\\n)",content:"[ ]*((?:【【|\\[\\[)(?:toc|TOC)(?:\\]\\]|】】))[ ]*"};t.reg=new RegExp(t.begin+t.content+t.end,"g");var e={begin:"(?:^|\\n)(\\n*)",end:"(?=$|\\n)",content:"[ ]*(\\[(?:toc|TOC)\\])[ ]*"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),{extend:t,standard:e}}}])}(gg);function hv(t,e,n){return e=es(e),Ko(t,fv()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function fv(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(fv=function(){return!!t})()}cs(uv,"HOOK_NAME","toc");var dv=function(t){function e(t){var n;return t.externals,t.config,ra(this,e),(n=hv(this,e)).footnoteCache={},n.footnoteMap={},n.footnote=[],n}return ss(e,t),$o(e,[{key:"$cleanCache",value:function(){this.footnoteCache={},this.footnoteMap={},this.footnote=[]}},{key:"pushFootnoteCache",value:function(t,e){this.footnoteCache[t]=e}},{key:"getFootnoteCache",value:function(t){return this.footnoteCache[t]||null}},{key:"pushFootNote",value:function(t,e){var n,r,i,a,o,s;if(this.footnoteMap[t])return this.footnoteMap[t];var c=this.footnote.length+1,l={};l.fn=hs(n=hs(r=hs(i='[')).call(n,c,"]"),l.fnref=hs(a=hs(o=hs(s='[')).call(a,c,"]"),l.num=c,l.note=Ph(e).call(e),this.footnote.push(l);var u="\0~fn#".concat(c-1,"#\0");return this.footnoteMap[t]=u,u}},{key:"getFootNote",value:function(){return this.footnote}},{key:"formatFootNote",value:function(){var t,e=this.getFootNote();if(e.length<=0)return"";var n=LA(e).call(e,(function(t){var e;return hs(e='
    \n'.concat(t.fnref)).call(e,t.note,"\n
    ")})).join(""),r=this.$engine.hash(n);return n=hs(t='
    脚注
    ')).call(t,n,"
    ")}},{key:"beforeMakeHtml",value:function(t){var e=this,n=t;return this.test(n)&&(n=n.replace(this.RULE.reg,(function(t,n,r,i){return e.pushFootnoteCache(r,i),(t.match(/\n/g)||[]).join("")})),n=n.replace(/\[\^([^\]]+?)\](?!:)/g,(function(t,n){var r=e.getFootnoteCache(n);return r?e.pushFootNote(n,r):t})),n+=this.formatFootNote()),n}},{key:"makeHtml",value:function(t,e){return t}},{key:"afterMakeHtml",value:function(t){var e=this.getFootNote();return t.replace(/\0~fn#([0-9]+)#\0/g,(function(t,n){return e[n].fn}))}},{key:"rule",value:function(){var t={begin:"(^|\\n)[ \t]*",content:["\\[\\^([^\\]]+?)\\]:\\h*","([\\s\\S]+?)"].join(""),end:"(?=\\s*$|\\n\\n)"};return t.reg=Nd(t,"g",!0),t}}])}(gg);function Av(t,e,n){return e=es(e),Ko(t,gv()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function gv(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(gv=function(){return!!t})()}cs(dv,"HOOK_NAME","footnote");var pv=function(t){function e(t){var n;return t.externals,t.config,ra(this,e),(n=Av(this,e)).commentCache={},n}return ss(e,t),$o(e,[{key:"$cleanCache",value:function(){this.commentCache={}}},{key:"pushCommentReferenceCache",value:function(t,e){var n,r=Kp(e.split(/[ ]+/g)),i=r[0],a=Gf(r).call(r,1),o=Lm.set(i);this.commentCache["".concat(t).toLowerCase()]=hs(n=[o]).call(n,jp(a)).join(" ")}},{key:"getCommentReferenceCache",value:function(t){return this.commentCache["".concat(t).toLowerCase()]||null}},{key:"beforeMakeHtml",value:function(t){var e=this,n=t;if(this.test(n)){n=n.replace(this.RULE.reg,(function(t,n,r,i){var a;return e.pushCommentReferenceCache(r,i),(null!==(a=t.match(/\n/g))&&void 0!==a?a:[]).join("")}));n=n.replace(/(\[[^\]\n]+?\])?(?:\[([^\]\n]+?)\])/g,(function(t,n,r){var i,a,o=e.getCommentReferenceCache(r);return o?n?hs(a="".concat(n,"(")).call(a,o,")"):hs(i="[".concat(r,"](")).call(i,o,")"):t})),this.$cleanCache()}return n}},{key:"makeHtml",value:function(t,e){return t}},{key:"afterMakeHtml",value:function(t){return Lm.restoreAll(t)}},{key:"rule",value:function(){var t={begin:"(^|\\n)[ \t]*",content:["\\[([^^][^\\]]*?)\\]:\\h*","([^\\n]+?)"].join(""),end:"(?=$|\\n)"};return t.reg=Nd(t,"g",!0),t}}])}(gg);cs(pv,"HOOK_NAME","commentReference");var mv=Mr.some,bv=Ms("some");Dn({target:"Array",proto:!0,forced:!bv},{some:function(t){return mv(this,t,arguments.length>1?arguments[1]:void 0)}});var vv=Ni("Array","some"),yv=Array.prototype,wv=function(t){var e=t.some;return t===yv||rt(yv,t)&&e===yv.some?vv:e},kv=r((function(t,e){t.exports=function(){const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:a,seal:o,create:s}=Object,{apply:c,construct:l}="undefined"!=typeof Reflect&&Reflect;a||(a=function(t){return t}),o||(o=function(t){return t}),c||(c=function(t,e,n){return t.apply(e,n)}),l||(l=function(t,e){return new t(...e)});const u=k(Array.prototype.forEach),h=k(Array.prototype.pop),f=k(Array.prototype.push),d=k(String.prototype.toLowerCase),A=k(String.prototype.toString),g=k(String.prototype.match),p=k(String.prototype.replace),m=k(String.prototype.indexOf),b=k(String.prototype.trim),v=k(Object.prototype.hasOwnProperty),y=k(RegExp.prototype.test),w=x(TypeError);function k(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:d;e&&e(t,null);let a=r.length;for(;a--;){let e=r[a];if("string"==typeof e){const t=i(e);t!==e&&(n(r)||(r[a]=t),e=t)}t[e]=!0}return t}function E(t){for(let e=0;e/gm),H=o(/\${[\w\W]*}/gm),$=o(/^data-[\-\w.\u00B7-\uFFFF]/),j=o(/^aria-[\-\w]+$/),K=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z=o(/^(?:\w+script|data):/i),G=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=o(/^html$/i),V=o(/^[a-z][.\w]*(-[.\w]+)+$/i);var W=Object.freeze({__proto__:null,MUSTACHE_EXPR:Q,ERB_EXPR:U,TMPLIT_EXPR:H,DATA_ATTR:$,ARIA_ATTR:j,IS_ALLOWED_URI:K,IS_SCRIPT_OR_DATA:z,ATTR_WHITESPACE:G,DOCTYPE_NAME:X,CUSTOM_ELEMENT:V});const q={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Y=function(){return"undefined"==typeof window?null:window},J=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function Z(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y();const n=t=>Z(t);if(n.version="3.1.5",n.removed=[],!e||!e.document||e.document.nodeType!==q.document)return n.isSupported=!1,n;let{document:r}=e;const i=r,o=i.currentScript,{DocumentFragment:c,HTMLTemplateElement:l,Node:k,Element:x,NodeFilter:E,NamedNodeMap:Q=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:U,DOMParser:H,trustedTypes:$}=e,j=x.prototype,z=B(j,"cloneNode"),G=B(j,"nextSibling"),V=B(j,"childNodes"),tt=B(j,"parentNode");if("function"==typeof l){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let et,nt="";const{implementation:rt,createNodeIterator:it,createDocumentFragment:at,getElementsByTagName:ot}=r,{importNode:st}=i;let ct={};n.isSupported="function"==typeof t&&"function"==typeof tt&&rt&&void 0!==rt.createHTMLDocument;const{MUSTACHE_EXPR:lt,ERB_EXPR:ut,TMPLIT_EXPR:ht,DATA_ATTR:ft,ARIA_ATTR:dt,IS_SCRIPT_OR_DATA:At,ATTR_WHITESPACE:gt,CUSTOM_ELEMENT:pt}=W;let{IS_ALLOWED_URI:mt}=W,bt=null;const vt=C({},[..._,...S,...L,...M,...D]);let yt=null;const wt=C({},[...F,...N,...R,...P]);let kt=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xt=null,Ct=null,Et=!0,Tt=!0,Bt=!1,_t=!0,St=!1,Lt=!0,It=!1,Mt=!1,Ot=!1,Dt=!1,Ft=!1,Nt=!1,Rt=!0,Pt=!1;const Qt="user-content-";let Ut=!0,Ht=!1,$t={},jt=null;const Kt=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let zt=null;const Gt=C({},["audio","video","img","source","image","track"]);let Xt=null;const Vt=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Wt="http://www.w3.org/1998/Math/MathML",qt="http://www.w3.org/2000/svg",Yt="http://www.w3.org/1999/xhtml";let Jt=Yt,Zt=!1,te=null;const ee=C({},[Wt,qt,Yt],A);let ne=null;const re=["application/xhtml+xml","text/html"],ie="text/html";let ae=null,oe=null;const se=r.createElement("form"),ce=function(t){return t instanceof RegExp||t instanceof Function},le=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!oe||oe!==t){if(t&&"object"==typeof t||(t={}),t=T(t),ne=-1===re.indexOf(t.PARSER_MEDIA_TYPE)?ie:t.PARSER_MEDIA_TYPE,ae="application/xhtml+xml"===ne?A:d,bt=v(t,"ALLOWED_TAGS")?C({},t.ALLOWED_TAGS,ae):vt,yt=v(t,"ALLOWED_ATTR")?C({},t.ALLOWED_ATTR,ae):wt,te=v(t,"ALLOWED_NAMESPACES")?C({},t.ALLOWED_NAMESPACES,A):ee,Xt=v(t,"ADD_URI_SAFE_ATTR")?C(T(Vt),t.ADD_URI_SAFE_ATTR,ae):Vt,zt=v(t,"ADD_DATA_URI_TAGS")?C(T(Gt),t.ADD_DATA_URI_TAGS,ae):Gt,jt=v(t,"FORBID_CONTENTS")?C({},t.FORBID_CONTENTS,ae):Kt,xt=v(t,"FORBID_TAGS")?C({},t.FORBID_TAGS,ae):{},Ct=v(t,"FORBID_ATTR")?C({},t.FORBID_ATTR,ae):{},$t=!!v(t,"USE_PROFILES")&&t.USE_PROFILES,Et=!1!==t.ALLOW_ARIA_ATTR,Tt=!1!==t.ALLOW_DATA_ATTR,Bt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,_t=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,St=t.SAFE_FOR_TEMPLATES||!1,Lt=!1!==t.SAFE_FOR_XML,It=t.WHOLE_DOCUMENT||!1,Dt=t.RETURN_DOM||!1,Ft=t.RETURN_DOM_FRAGMENT||!1,Nt=t.RETURN_TRUSTED_TYPE||!1,Ot=t.FORCE_BODY||!1,Rt=!1!==t.SANITIZE_DOM,Pt=t.SANITIZE_NAMED_PROPS||!1,Ut=!1!==t.KEEP_CONTENT,Ht=t.IN_PLACE||!1,mt=t.ALLOWED_URI_REGEXP||K,Jt=t.NAMESPACE||Yt,kt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ce(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(kt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ce(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(kt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(kt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),St&&(Tt=!1),Ft&&(Dt=!0),$t&&(bt=C({},D),yt=[],!0===$t.html&&(C(bt,_),C(yt,F)),!0===$t.svg&&(C(bt,S),C(yt,N),C(yt,P)),!0===$t.svgFilters&&(C(bt,L),C(yt,N),C(yt,P)),!0===$t.mathMl&&(C(bt,M),C(yt,R),C(yt,P))),t.ADD_TAGS&&(bt===vt&&(bt=T(bt)),C(bt,t.ADD_TAGS,ae)),t.ADD_ATTR&&(yt===wt&&(yt=T(yt)),C(yt,t.ADD_ATTR,ae)),t.ADD_URI_SAFE_ATTR&&C(Xt,t.ADD_URI_SAFE_ATTR,ae),t.FORBID_CONTENTS&&(jt===Kt&&(jt=T(jt)),C(jt,t.FORBID_CONTENTS,ae)),Ut&&(bt["#text"]=!0),It&&C(bt,["html","head","body"]),bt.table&&(C(bt,["tbody"]),delete xt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');et=t.TRUSTED_TYPES_POLICY,nt=et.createHTML("")}else void 0===et&&(et=J($,o)),null!==et&&"string"==typeof nt&&(nt=et.createHTML(""));a&&a(t),oe=t}},ue=C({},["mi","mo","mn","ms","mtext"]),he=C({},["foreignobject","annotation-xml"]),fe=C({},["title","style","font","a","script"]),de=C({},[...S,...L,...I]),Ae=C({},[...M,...O]),ge=function(t){let e=tt(t);e&&e.tagName||(e={namespaceURI:Jt,tagName:"template"});const n=d(t.tagName),r=d(e.tagName);return!!te[t.namespaceURI]&&(t.namespaceURI===qt?e.namespaceURI===Yt?"svg"===n:e.namespaceURI===Wt?"svg"===n&&("annotation-xml"===r||ue[r]):Boolean(de[n]):t.namespaceURI===Wt?e.namespaceURI===Yt?"math"===n:e.namespaceURI===qt?"math"===n&&he[r]:Boolean(Ae[n]):t.namespaceURI===Yt?!(e.namespaceURI===qt&&!he[r])&&!(e.namespaceURI===Wt&&!ue[r])&&!Ae[n]&&(fe[n]||!de[n]):!("application/xhtml+xml"!==ne||!te[t.namespaceURI]))},pe=function(t){f(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.remove()}},me=function(t,e){try{f(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){f(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!yt[t])if(Dt||Ft)try{pe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},be=function(t){let e=null,n=null;if(Ot)t=""+t;else{const e=g(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===ne&&Jt===Yt&&(t=''+t+"");const i=et?et.createHTML(t):t;if(Jt===Yt)try{e=(new H).parseFromString(i,ne)}catch(t){}if(!e||!e.documentElement){e=rt.createDocument(Jt,"template",null);try{e.documentElement.innerHTML=Zt?nt:i}catch(t){}}const a=e.body||e.documentElement;return t&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Jt===Yt?ot.call(e,It?"html":"body")[0]:It?e.documentElement:a},ve=function(t){return it.call(t.ownerDocument||t,t,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT|E.SHOW_PROCESSING_INSTRUCTION|E.SHOW_CDATA_SECTION,null)},ye=function(t){return t instanceof U&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof Q)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},we=function(t){return"function"==typeof k&&t instanceof k},ke=function(t,e,r){ct[t]&&u(ct[t],(t=>{t.call(n,e,r,oe)}))},xe=function(t){let e=null;if(ke("beforeSanitizeElements",t,null),ye(t))return pe(t),!0;const r=ae(t.nodeName);if(ke("uponSanitizeElement",t,{tagName:r,allowedTags:bt}),t.hasChildNodes()&&!we(t.firstElementChild)&&y(/<[/\w]/g,t.innerHTML)&&y(/<[/\w]/g,t.textContent))return pe(t),!0;if(t.nodeType===q.progressingInstruction)return pe(t),!0;if(Lt&&t.nodeType===q.comment&&y(/<[/\w]/g,t.data))return pe(t),!0;if(!bt[r]||xt[r]){if(!xt[r]&&Ee(r)){if(kt.tagNameCheck instanceof RegExp&&y(kt.tagNameCheck,r))return!1;if(kt.tagNameCheck instanceof Function&&kt.tagNameCheck(r))return!1}if(Ut&&!jt[r]){const e=tt(t)||t.parentNode,n=V(t)||t.childNodes;if(n&&e)for(let r=n.length-1;r>=0;--r){const i=z(n[r],!0);i.__removalCount=(t.__removalCount||0)+1,e.insertBefore(i,G(t))}}return pe(t),!0}return t instanceof x&&!ge(t)?(pe(t),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!y(/<\/no(script|embed|frames)/i,t.innerHTML)?(St&&t.nodeType===q.text&&(e=t.textContent,u([lt,ut,ht],(t=>{e=p(e,t," ")})),t.textContent!==e&&(f(n.removed,{element:t.cloneNode()}),t.textContent=e)),ke("afterSanitizeElements",t,null),!1):(pe(t),!0)},Ce=function(t,e,n){if(Rt&&("id"===e||"name"===e)&&(n in r||n in se))return!1;if(Tt&&!Ct[e]&&y(ft,e));else if(Et&&y(dt,e));else if(!yt[e]||Ct[e]){if(!(Ee(t)&&(kt.tagNameCheck instanceof RegExp&&y(kt.tagNameCheck,t)||kt.tagNameCheck instanceof Function&&kt.tagNameCheck(t))&&(kt.attributeNameCheck instanceof RegExp&&y(kt.attributeNameCheck,e)||kt.attributeNameCheck instanceof Function&&kt.attributeNameCheck(e))||"is"===e&&kt.allowCustomizedBuiltInElements&&(kt.tagNameCheck instanceof RegExp&&y(kt.tagNameCheck,n)||kt.tagNameCheck instanceof Function&&kt.tagNameCheck(n))))return!1}else if(Xt[e]);else if(y(mt,p(n,gt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==m(n,"data:")||!zt[t])if(Bt&&!y(At,p(n,gt,"")));else if(n)return!1;return!0},Ee=function(t){return"annotation-xml"!==t&&g(t,pt)},Te=function(t){ke("beforeSanitizeAttributes",t,null);const{attributes:e}=t;if(!e)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:yt};let i=e.length;for(;i--;){const a=e[i],{name:o,namespaceURI:s,value:c}=a,l=ae(o);let f="value"===o?c:b(c);if(r.attrName=l,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,ke("uponSanitizeAttribute",t,r),f=r.attrValue,r.forceKeepAttr)continue;if(me(o,t),!r.keepAttr)continue;if(!_t&&y(/\/>/i,f)){me(o,t);continue}if(Lt&&y(/((--!?|])>)|<\/(style|title)/i,f)){me(o,t);continue}St&&u([lt,ut,ht],(t=>{f=p(f,t," ")}));const d=ae(t.nodeName);if(Ce(d,l,f)){if(!Pt||"id"!==l&&"name"!==l||(me(o,t),f=Qt+f),et&&"object"==typeof $&&"function"==typeof $.getAttributeType)if(s);else switch($.getAttributeType(d,l)){case"TrustedHTML":f=et.createHTML(f);break;case"TrustedScriptURL":f=et.createScriptURL(f)}try{s?t.setAttributeNS(s,o,f):t.setAttribute(o,f),ye(t)?pe(t):h(n.removed)}catch(t){}}}ke("afterSanitizeAttributes",t,null)},Be=function t(e){let n=null;const r=ve(e);for(ke("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)ke("uponSanitizeShadowNode",n,null),xe(n)||(n.content instanceof c&&t(n.content),Te(n));ke("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,o=null,s=null;if(Zt=!t,Zt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!we(t)){if("function"!=typeof t.toString)throw w("toString is not a function");if("string"!=typeof(t=t.toString()))throw w("dirty is not a string, aborting")}if(!n.isSupported)return t;if(Mt||le(e),n.removed=[],"string"==typeof t&&(Ht=!1),Ht){if(t.nodeName){const e=ae(t.nodeName);if(!bt[e]||xt[e])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof k)r=be("\x3c!----\x3e"),a=r.ownerDocument.importNode(t,!0),a.nodeType===q.element&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!Dt&&!St&&!It&&-1===t.indexOf("<"))return et&&Nt?et.createHTML(t):t;if(r=be(t),!r)return Dt?null:Nt?nt:""}r&&Ot&&pe(r.firstChild);const l=ve(Ht?t:r);for(;o=l.nextNode();)xe(o)||(o.content instanceof c&&Be(o.content),Te(o));if(Ht)return t;if(Dt){if(Ft)for(s=at.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(yt.shadowroot||yt.shadowrootmode)&&(s=st.call(i,s,!0)),s}let h=It?r.outerHTML:r.innerHTML;return It&&bt["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&y(X,r.ownerDocument.doctype.name)&&(h="\n"+h),St&&u([lt,ut,ht],(t=>{h=p(h,t," ")})),et&&Nt?et.createHTML(h):h},n.setConfig=function(){le(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Mt=!0},n.clearConfig=function(){oe=null,Mt=!1},n.isValidAttribute=function(t,e,n){oe||le({});const r=ae(t),i=ae(e);return Ce(r,i,n)},n.addHook=function(t,e){"function"==typeof e&&(ct[t]=ct[t]||[],f(ct[t],e))},n.removeHook=function(t){if(ct[t])return h(ct[t])},n.removeHooks=function(t){ct[t]&&(ct[t]=[])},n.removeAllHooks=function(){ct={}},n}var tt=Z();return tt}()})),xv=kv(window);function Cv(t,e,n){return e=es(e),Ko(t,Ev()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Ev(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Ev=function(){return!!t})()}var Tv=["href","src"];xv.addHook("afterSanitizeAttributes",(function(t){Qs(Tv).call(Tv,(function(e){if(t.hasAttribute(e)){var n=t.getAttribute(e);t.setAttribute(e,n.replace(/\\/g,"%5c"))}}))}));var Bv=function(t){function e(t){var n,r=t.config;return ra(this,e),(n=Cv(this,e,[{needCache:!0}])).filterStyle=r.filterStyle||!1,n}return ss(e,t),$o(e,[{key:"isAutoLinkTag",value:function(t){var e=[/^<([a-z][a-z0-9+.-]{1,31}:\/\/[^<> `]+)>$/i,/^<(mailto:[^<> `]+)>$/i,/^<([^()<>[\]:'@\\,"\s`]+@[^()<>[\]:'@\\,"\s`.]+\.[^()<>[\]:'@\\,"\s`]+)>$/i];return wv(e).call(e,(function(e){return e.test(t)}))}},{key:"isHtmlComment",value:function(t){return/^$/.test(t)}},{key:"beforeMakeHtml",value:function(t,e){var n=this;this.$engine.htmlWhiteListAppend?(this.htmlWhiteListAppend=new RegExp("^(".concat(this.$engine.htmlWhiteListAppend,")( |$|/)"),"i"),this.htmlWhiteList=this.$engine.htmlWhiteListAppend.split("|")):(this.htmlWhiteListAppend=!1,this.htmlWhiteList=[]);var r=/^[ ]+/i;this.$engine.htmlBlackList&&(r=/\*/.test(this.$engine.htmlBlackList)?/^[^ ]+( |$|\/)/i:new RegExp("^(".concat(this.$engine.htmlBlackList,")( |$|/)"),"i"));var i=t;return i=function(t){if("string"!=typeof t)return"";var e=t.replace(/&(\w+);?/g,(function(t,e){return-1===Kf(t).call(t,";")||-1===Kf(eg).call(eg,e.toLowerCase())?t.replace(/&/g,"&"):t}));return e=e.replace(/&#(?!x)(\d*);?/gi,(function(t,e){return ng(e)||-1===Kf(t).call(t,";")||e.lenth>7||!rg(e)?t.replace(/&/g,"&"):t})),e=e.replace(/&#x([0-9a-f]*);?/gi,(function(t,e){if(ng(e))return t.replace(/&/g,"&");var n="0x".concat(e),r=td(n,16);return isNaN(r)||-1===Kf(t).call(t,";")||e.lenth>6||!rg(n)?t.replace(/&/g,"&"):t})),e}(i=lg(i)),i=(i=(i=(i=i.replace(/<[/]?([^<]*?)>/g,(function(t,e){if(r&&r.test(e)&&!n.isAutoLinkTag(t)&&!n.isHtmlComment(t))return t.replace(//g,">");if(!(og.test(e)||n.isAutoLinkTag(t)||n.isHtmlComment(t)||!1!==n.htmlWhiteListAppend&&n.htmlWhiteListAppend.test(e)))return t.replace(//g,">");var i=t;return e.replace(/^a .*? href="([^"]+)"/,(function(t,e){var r=n.$engine.urlProcessor(e,"link");i=i.replace(/ href="[^"]+"/,' href="'.concat(r,'"'))})),e.replace(/^a href="([^"]+)"/,(function(t,e){var r=n.$engine.urlProcessor(e,"link");i=i.replace(/ href="[^"]+"/,' href="'.concat(r,'"'))})),e.replace(/^img .*? src="([^"]+)"/,(function(t,e){var r=n.$engine.urlProcessor(e,"image");i=i.replace(/ src="[^"]+"/,' src="'.concat(r,'"'))})),e.replace(/^img src="([^"]+)"/,(function(t,e){var r=n.$engine.urlProcessor(e,"image");i=i.replace(/ src="[^"]+"/,' src="'.concat(r,'"'))})),i.replace(//g,"$#62;")}))).replace(/<(?=\/?(\w|\n|$))/g,"<")).replace(/\$#60;/g,"<").replace(/\$#62;/g,">")).replace(/\\</g,"<").replace(/\\>/g,">").replace(/\\/g,">"),this.filterStyle&&(i=(i=i.replace(/<([^/][^>]+?) style="[^>\n]+?"([^>\n]*)>/gi,"<$1$2>")).replace(/<([^/][^>]+?) style='[^>\n]+?'([^>\n]*)>/gi,"<$1$2>")),i}},{key:"makeHtml",value:function(t,e){return t}},{key:"afterMakeHtml",value:function(t){var e=t,n={ALLOW_UNKNOWN_PROTOCOLS:!0,ADD_ATTR:["target"]};if(!1!==this.htmlWhiteListAppend){var r;if(n.ADD_TAGS=this.htmlWhiteList,(this.htmlWhiteListAppend.test("style")||this.htmlWhiteListAppend.test("ALL"))&&(e=e.replace(/| [^>]*>).*?<\/style>/gi,(function(t){return t.replace(/
    /gi,"")}))),this.htmlWhiteListAppend.test("iframe")||this.htmlWhiteListAppend.test("ALL"))n.ADD_ATTR=hs(r=n.ADD_ATTR).call(r,["align","frameborder","height","longdesc","marginheight","marginwidth","name","sandbox","scrolling","seamless","src","srcdoc","width"]),n.SANITIZE_DOM=!1,e=e.replace(/| [^>]*>).*?<\/iframe>/gi,(function(t){return t.replace(/
    /gi,"").replace(/\n/g,"")}));if(this.htmlWhiteListAppend.test("script")||this.htmlWhiteListAppend.test("ALL"))return e=e.replace(/| [^>]*>).*?<\/script>/gi,(function(t){return t.replace(/
    /gi,"")})),e}return bb()||(n.FORBID_ATTR=["data-sign","data-lines"]),xv.sanitize(e,n)}}])}(gg);cs(Bv,"HOOK_NAME","htmlBlock");var _v={"+1":"1f44d","-1":"1f44e",100:"1f4af",1234:"1f522","1st_place_medal":"1f947","2nd_place_medal":"1f948","3rd_place_medal":"1f949","8ball":"1f3b1",a:"1f170",ab:"1f18e",abacus:"1f9ee",abc:"1f524",abcd:"1f521",accept:"1f251",adhesive_bandage:"1fa79",adult:"1f9d1",aerial_tramway:"1f6a1",afghanistan:"1f1e6-1f1eb",airplane:"2708",aland_islands:"1f1e6-1f1fd",alarm_clock:"23f0",albania:"1f1e6-1f1f1",alembic:"2697",algeria:"1f1e9-1f1ff",alien:"1f47d",ambulance:"1f691",american_samoa:"1f1e6-1f1f8",amphora:"1f3fa",anchor:"2693",andorra:"1f1e6-1f1e9",angel:"1f47c",anger:"1f4a2",angola:"1f1e6-1f1f4",angry:"1f620",anguilla:"1f1e6-1f1ee",anguished:"1f627",ant:"1f41c",antarctica:"1f1e6-1f1f6",antigua_barbuda:"1f1e6-1f1ec",apple:"1f34e",aquarius:"2652",argentina:"1f1e6-1f1f7",aries:"2648",armenia:"1f1e6-1f1f2",arrow_backward:"25c0",arrow_double_down:"23ec",arrow_double_up:"23eb",arrow_down:"2b07",arrow_down_small:"1f53d",arrow_forward:"25b6",arrow_heading_down:"2935",arrow_heading_up:"2934",arrow_left:"2b05",arrow_lower_left:"2199",arrow_lower_right:"2198",arrow_right:"27a1",arrow_right_hook:"21aa",arrow_up:"2b06",arrow_up_down:"2195",arrow_up_small:"1f53c",arrow_upper_left:"2196",arrow_upper_right:"2197",arrows_clockwise:"1f503",arrows_counterclockwise:"1f504",art:"1f3a8",articulated_lorry:"1f69b",artificial_satellite:"1f6f0",artist:"1f9d1-1f3a8",aruba:"1f1e6-1f1fc",ascension_island:"1f1e6-1f1e8",asterisk:"002a-20e3",astonished:"1f632",astronaut:"1f9d1-1f680",athletic_shoe:"1f45f",atm:"1f3e7",atom_symbol:"269b",australia:"1f1e6-1f1fa",austria:"1f1e6-1f1f9",auto_rickshaw:"1f6fa",avocado:"1f951",axe:"1fa93",azerbaijan:"1f1e6-1f1ff",b:"1f171",baby:"1f476",baby_bottle:"1f37c",baby_chick:"1f424",baby_symbol:"1f6bc",back:"1f519",bacon:"1f953",badger:"1f9a1",badminton:"1f3f8",bagel:"1f96f",baggage_claim:"1f6c4",baguette_bread:"1f956",bahamas:"1f1e7-1f1f8",bahrain:"1f1e7-1f1ed",balance_scale:"2696",bald_man:"1f468-1f9b2",bald_woman:"1f469-1f9b2",ballet_shoes:"1fa70",balloon:"1f388",ballot_box:"1f5f3",ballot_box_with_check:"2611",bamboo:"1f38d",banana:"1f34c",bangbang:"203c",bangladesh:"1f1e7-1f1e9",banjo:"1fa95",bank:"1f3e6",bar_chart:"1f4ca",barbados:"1f1e7-1f1e7",barber:"1f488",baseball:"26be",basket:"1f9fa",basketball:"1f3c0",basketball_man:"26f9-2642",basketball_woman:"26f9-2640",bat:"1f987",bath:"1f6c0",bathtub:"1f6c1",battery:"1f50b",beach_umbrella:"1f3d6",bear:"1f43b",bearded_person:"1f9d4",bed:"1f6cf",bee:"1f41d",beer:"1f37a",beers:"1f37b",beetle:"1f41e",beginner:"1f530",belarus:"1f1e7-1f1fe",belgium:"1f1e7-1f1ea",belize:"1f1e7-1f1ff",bell:"1f514",bellhop_bell:"1f6ce",benin:"1f1e7-1f1ef",bento:"1f371",bermuda:"1f1e7-1f1f2",beverage_box:"1f9c3",bhutan:"1f1e7-1f1f9",bicyclist:"1f6b4",bike:"1f6b2",biking_man:"1f6b4-2642",biking_woman:"1f6b4-2640",bikini:"1f459",billed_cap:"1f9e2",biohazard:"2623",bird:"1f426",birthday:"1f382",black_circle:"26ab",black_flag:"1f3f4",black_heart:"1f5a4",black_joker:"1f0cf",black_large_square:"2b1b",black_medium_small_square:"25fe",black_medium_square:"25fc",black_nib:"2712",black_small_square:"25aa",black_square_button:"1f532",blond_haired_man:"1f471-2642",blond_haired_person:"1f471",blond_haired_woman:"1f471-2640",blonde_woman:"1f471-2640",blossom:"1f33c",blowfish:"1f421",blue_book:"1f4d8",blue_car:"1f699",blue_heart:"1f499",blue_square:"1f7e6",blush:"1f60a",boar:"1f417",boat:"26f5",bolivia:"1f1e7-1f1f4",bomb:"1f4a3",bone:"1f9b4",book:"1f4d6",bookmark:"1f516",bookmark_tabs:"1f4d1",books:"1f4da",boom:"1f4a5",boot:"1f462",bosnia_herzegovina:"1f1e7-1f1e6",botswana:"1f1e7-1f1fc",bouncing_ball_man:"26f9-2642",bouncing_ball_person:"26f9",bouncing_ball_woman:"26f9-2640",bouquet:"1f490",bouvet_island:"1f1e7-1f1fb",bow:"1f647",bow_and_arrow:"1f3f9",bowing_man:"1f647-2642",bowing_woman:"1f647-2640",bowl_with_spoon:"1f963",bowling:"1f3b3",boxing_glove:"1f94a",boy:"1f466",brain:"1f9e0",brazil:"1f1e7-1f1f7",bread:"1f35e",breast_feeding:"1f931",bricks:"1f9f1",bride_with_veil:"1f470",bridge_at_night:"1f309",briefcase:"1f4bc",british_indian_ocean_territory:"1f1ee-1f1f4",british_virgin_islands:"1f1fb-1f1ec",broccoli:"1f966",broken_heart:"1f494",broom:"1f9f9",brown_circle:"1f7e4",brown_heart:"1f90e",brown_square:"1f7eb",brunei:"1f1e7-1f1f3",bug:"1f41b",building_construction:"1f3d7",bulb:"1f4a1",bulgaria:"1f1e7-1f1ec",bullettrain_front:"1f685",bullettrain_side:"1f684",burkina_faso:"1f1e7-1f1eb",burrito:"1f32f",burundi:"1f1e7-1f1ee",bus:"1f68c",business_suit_levitating:"1f574",busstop:"1f68f",bust_in_silhouette:"1f464",busts_in_silhouette:"1f465",butter:"1f9c8",butterfly:"1f98b",cactus:"1f335",cake:"1f370",calendar:"1f4c6",call_me_hand:"1f919",calling:"1f4f2",cambodia:"1f1f0-1f1ed",camel:"1f42b",camera:"1f4f7",camera_flash:"1f4f8",cameroon:"1f1e8-1f1f2",camping:"1f3d5",canada:"1f1e8-1f1e6",canary_islands:"1f1ee-1f1e8",cancer:"264b",candle:"1f56f",candy:"1f36c",canned_food:"1f96b",canoe:"1f6f6",cape_verde:"1f1e8-1f1fb",capital_abcd:"1f520",capricorn:"2651",car:"1f697",card_file_box:"1f5c3",card_index:"1f4c7",card_index_dividers:"1f5c2",caribbean_netherlands:"1f1e7-1f1f6",carousel_horse:"1f3a0",carrot:"1f955",cartwheeling:"1f938",cat:"1f431",cat2:"1f408",cayman_islands:"1f1f0-1f1fe",cd:"1f4bf",central_african_republic:"1f1e8-1f1eb",ceuta_melilla:"1f1ea-1f1e6",chad:"1f1f9-1f1e9",chains:"26d3",chair:"1fa91",champagne:"1f37e",chart:"1f4b9",chart_with_downwards_trend:"1f4c9",chart_with_upwards_trend:"1f4c8",checkered_flag:"1f3c1",cheese:"1f9c0",cherries:"1f352",cherry_blossom:"1f338",chess_pawn:"265f",chestnut:"1f330",chicken:"1f414",child:"1f9d2",children_crossing:"1f6b8",chile:"1f1e8-1f1f1",chipmunk:"1f43f",chocolate_bar:"1f36b",chopsticks:"1f962",christmas_island:"1f1e8-1f1fd",christmas_tree:"1f384",church:"26ea",cinema:"1f3a6",circus_tent:"1f3aa",city_sunrise:"1f307",city_sunset:"1f306",cityscape:"1f3d9",cl:"1f191",clamp:"1f5dc",clap:"1f44f",clapper:"1f3ac",classical_building:"1f3db",climbing:"1f9d7",climbing_man:"1f9d7-2642",climbing_woman:"1f9d7-2640",clinking_glasses:"1f942",clipboard:"1f4cb",clipperton_island:"1f1e8-1f1f5",clock1:"1f550",clock10:"1f559",clock1030:"1f565",clock11:"1f55a",clock1130:"1f566",clock12:"1f55b",clock1230:"1f567",clock130:"1f55c",clock2:"1f551",clock230:"1f55d",clock3:"1f552",clock330:"1f55e",clock4:"1f553",clock430:"1f55f",clock5:"1f554",clock530:"1f560",clock6:"1f555",clock630:"1f561",clock7:"1f556",clock730:"1f562",clock8:"1f557",clock830:"1f563",clock9:"1f558",clock930:"1f564",closed_book:"1f4d5",closed_lock_with_key:"1f510",closed_umbrella:"1f302",cloud:"2601",cloud_with_lightning:"1f329",cloud_with_lightning_and_rain:"26c8",cloud_with_rain:"1f327",cloud_with_snow:"1f328",clown_face:"1f921",clubs:"2663",cn:"1f1e8-1f1f3",coat:"1f9e5",cocktail:"1f378",coconut:"1f965",cocos_islands:"1f1e8-1f1e8",coffee:"2615",coffin:"26b0",cold_face:"1f976",cold_sweat:"1f630",collision:"1f4a5",colombia:"1f1e8-1f1f4",comet:"2604",comoros:"1f1f0-1f1f2",compass:"1f9ed",computer:"1f4bb",computer_mouse:"1f5b1",confetti_ball:"1f38a",confounded:"1f616",confused:"1f615",congo_brazzaville:"1f1e8-1f1ec",congo_kinshasa:"1f1e8-1f1e9",congratulations:"3297",construction:"1f6a7",construction_worker:"1f477",construction_worker_man:"1f477-2642",construction_worker_woman:"1f477-2640",control_knobs:"1f39b",convenience_store:"1f3ea",cook:"1f9d1-1f373",cook_islands:"1f1e8-1f1f0",cookie:"1f36a",cool:"1f192",cop:"1f46e",copyright:"00a9",corn:"1f33d",costa_rica:"1f1e8-1f1f7",cote_divoire:"1f1e8-1f1ee",couch_and_lamp:"1f6cb",couple:"1f46b",couple_with_heart:"1f491",couple_with_heart_man_man:"1f468-2764-1f468",couple_with_heart_woman_man:"1f469-2764-1f468",couple_with_heart_woman_woman:"1f469-2764-1f469",couplekiss:"1f48f",couplekiss_man_man:"1f468-2764-1f48b-1f468",couplekiss_man_woman:"1f469-2764-1f48b-1f468",couplekiss_woman_woman:"1f469-2764-1f48b-1f469",cow:"1f42e",cow2:"1f404",cowboy_hat_face:"1f920",crab:"1f980",crayon:"1f58d",credit_card:"1f4b3",crescent_moon:"1f319",cricket:"1f997",cricket_game:"1f3cf",croatia:"1f1ed-1f1f7",crocodile:"1f40a",croissant:"1f950",crossed_fingers:"1f91e",crossed_flags:"1f38c",crossed_swords:"2694",crown:"1f451",cry:"1f622",crying_cat_face:"1f63f",crystal_ball:"1f52e",cuba:"1f1e8-1f1fa",cucumber:"1f952",cup_with_straw:"1f964",cupcake:"1f9c1",cupid:"1f498",curacao:"1f1e8-1f1fc",curling_stone:"1f94c",curly_haired_man:"1f468-1f9b1",curly_haired_woman:"1f469-1f9b1",curly_loop:"27b0",currency_exchange:"1f4b1",curry:"1f35b",cursing_face:"1f92c",custard:"1f36e",customs:"1f6c3",cut_of_meat:"1f969",cyclone:"1f300",cyprus:"1f1e8-1f1fe",czech_republic:"1f1e8-1f1ff",dagger:"1f5e1",dancer:"1f483",dancers:"1f46f",dancing_men:"1f46f-2642",dancing_women:"1f46f-2640",dango:"1f361",dark_sunglasses:"1f576",dart:"1f3af",dash:"1f4a8",date:"1f4c5",de:"1f1e9-1f1ea",deaf_man:"1f9cf-2642",deaf_person:"1f9cf",deaf_woman:"1f9cf-2640",deciduous_tree:"1f333",deer:"1f98c",denmark:"1f1e9-1f1f0",department_store:"1f3ec",derelict_house:"1f3da",desert:"1f3dc",desert_island:"1f3dd",desktop_computer:"1f5a5",detective:"1f575",diamond_shape_with_a_dot_inside:"1f4a0",diamonds:"2666",diego_garcia:"1f1e9-1f1ec",disappointed:"1f61e",disappointed_relieved:"1f625",diving_mask:"1f93f",diya_lamp:"1fa94",dizzy:"1f4ab",dizzy_face:"1f635",djibouti:"1f1e9-1f1ef",dna:"1f9ec",do_not_litter:"1f6af",dog:"1f436",dog2:"1f415",dollar:"1f4b5",dolls:"1f38e",dolphin:"1f42c",dominica:"1f1e9-1f1f2",dominican_republic:"1f1e9-1f1f4",door:"1f6aa",doughnut:"1f369",dove:"1f54a",dragon:"1f409",dragon_face:"1f432",dress:"1f457",dromedary_camel:"1f42a",drooling_face:"1f924",drop_of_blood:"1fa78",droplet:"1f4a7",drum:"1f941",duck:"1f986",dumpling:"1f95f",dvd:"1f4c0","e-mail":"1f4e7",eagle:"1f985",ear:"1f442",ear_of_rice:"1f33e",ear_with_hearing_aid:"1f9bb",earth_africa:"1f30d",earth_americas:"1f30e",earth_asia:"1f30f",ecuador:"1f1ea-1f1e8",egg:"1f95a",eggplant:"1f346",egypt:"1f1ea-1f1ec",eight:"0038-20e3",eight_pointed_black_star:"2734",eight_spoked_asterisk:"2733",eject_button:"23cf",el_salvador:"1f1f8-1f1fb",electric_plug:"1f50c",elephant:"1f418",elf:"1f9dd",elf_man:"1f9dd-2642",elf_woman:"1f9dd-2640",email:"2709",end:"1f51a",england:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",envelope:"2709",envelope_with_arrow:"1f4e9",equatorial_guinea:"1f1ec-1f1f6",eritrea:"1f1ea-1f1f7",es:"1f1ea-1f1f8",estonia:"1f1ea-1f1ea",ethiopia:"1f1ea-1f1f9",eu:"1f1ea-1f1fa",euro:"1f4b6",european_castle:"1f3f0",european_post_office:"1f3e4",european_union:"1f1ea-1f1fa",evergreen_tree:"1f332",exclamation:"2757",exploding_head:"1f92f",expressionless:"1f611",eye:"1f441",eye_speech_bubble:"1f441-1f5e8",eyeglasses:"1f453",eyes:"1f440",face_with_head_bandage:"1f915",face_with_thermometer:"1f912",facepalm:"1f926",facepunch:"1f44a",factory:"1f3ed",factory_worker:"1f9d1-1f3ed",fairy:"1f9da",fairy_man:"1f9da-2642",fairy_woman:"1f9da-2640",falafel:"1f9c6",falkland_islands:"1f1eb-1f1f0",fallen_leaf:"1f342",family:"1f46a",family_man_boy:"1f468-1f466",family_man_boy_boy:"1f468-1f466-1f466",family_man_girl:"1f468-1f467",family_man_girl_boy:"1f468-1f467-1f466",family_man_girl_girl:"1f468-1f467-1f467",family_man_man_boy:"1f468-1f468-1f466",family_man_man_boy_boy:"1f468-1f468-1f466-1f466",family_man_man_girl:"1f468-1f468-1f467",family_man_man_girl_boy:"1f468-1f468-1f467-1f466",family_man_man_girl_girl:"1f468-1f468-1f467-1f467",family_man_woman_boy:"1f468-1f469-1f466",family_man_woman_boy_boy:"1f468-1f469-1f466-1f466",family_man_woman_girl:"1f468-1f469-1f467",family_man_woman_girl_boy:"1f468-1f469-1f467-1f466",family_man_woman_girl_girl:"1f468-1f469-1f467-1f467",family_woman_boy:"1f469-1f466",family_woman_boy_boy:"1f469-1f466-1f466",family_woman_girl:"1f469-1f467",family_woman_girl_boy:"1f469-1f467-1f466",family_woman_girl_girl:"1f469-1f467-1f467",family_woman_woman_boy:"1f469-1f469-1f466",family_woman_woman_boy_boy:"1f469-1f469-1f466-1f466",family_woman_woman_girl:"1f469-1f469-1f467",family_woman_woman_girl_boy:"1f469-1f469-1f467-1f466",family_woman_woman_girl_girl:"1f469-1f469-1f467-1f467",farmer:"1f9d1-1f33e",faroe_islands:"1f1eb-1f1f4",fast_forward:"23e9",fax:"1f4e0",fearful:"1f628",feet:"1f43e",female_detective:"1f575-2640",female_sign:"2640",ferris_wheel:"1f3a1",ferry:"26f4",field_hockey:"1f3d1",fiji:"1f1eb-1f1ef",file_cabinet:"1f5c4",file_folder:"1f4c1",film_projector:"1f4fd",film_strip:"1f39e",finland:"1f1eb-1f1ee",fire:"1f525",fire_engine:"1f692",fire_extinguisher:"1f9ef",firecracker:"1f9e8",firefighter:"1f9d1-1f692",fireworks:"1f386",first_quarter_moon:"1f313",first_quarter_moon_with_face:"1f31b",fish:"1f41f",fish_cake:"1f365",fishing_pole_and_fish:"1f3a3",fist:"270a",fist_left:"1f91b",fist_oncoming:"1f44a",fist_raised:"270a",fist_right:"1f91c",five:"0035-20e3",flags:"1f38f",flamingo:"1f9a9",flashlight:"1f526",flat_shoe:"1f97f",fleur_de_lis:"269c",flight_arrival:"1f6ec",flight_departure:"1f6eb",flipper:"1f42c",floppy_disk:"1f4be",flower_playing_cards:"1f3b4",flushed:"1f633",flying_disc:"1f94f",flying_saucer:"1f6f8",fog:"1f32b",foggy:"1f301",foot:"1f9b6",football:"1f3c8",footprints:"1f463",fork_and_knife:"1f374",fortune_cookie:"1f960",fountain:"26f2",fountain_pen:"1f58b",four:"0034-20e3",four_leaf_clover:"1f340",fox_face:"1f98a",fr:"1f1eb-1f1f7",framed_picture:"1f5bc",free:"1f193",french_guiana:"1f1ec-1f1eb",french_polynesia:"1f1f5-1f1eb",french_southern_territories:"1f1f9-1f1eb",fried_egg:"1f373",fried_shrimp:"1f364",fries:"1f35f",frog:"1f438",frowning:"1f626",frowning_face:"2639",frowning_man:"1f64d-2642",frowning_person:"1f64d",frowning_woman:"1f64d-2640",fu:"1f595",fuelpump:"26fd",full_moon:"1f315",full_moon_with_face:"1f31d",funeral_urn:"26b1",gabon:"1f1ec-1f1e6",gambia:"1f1ec-1f1f2",game_die:"1f3b2",garlic:"1f9c4",gb:"1f1ec-1f1e7",gear:"2699",gem:"1f48e",gemini:"264a",genie:"1f9de",genie_man:"1f9de-2642",genie_woman:"1f9de-2640",georgia:"1f1ec-1f1ea",ghana:"1f1ec-1f1ed",ghost:"1f47b",gibraltar:"1f1ec-1f1ee",gift:"1f381",gift_heart:"1f49d",giraffe:"1f992",girl:"1f467",globe_with_meridians:"1f310",gloves:"1f9e4",goal_net:"1f945",goat:"1f410",goggles:"1f97d",golf:"26f3",golfing:"1f3cc",golfing_man:"1f3cc-2642",golfing_woman:"1f3cc-2640",gorilla:"1f98d",grapes:"1f347",greece:"1f1ec-1f1f7",green_apple:"1f34f",green_book:"1f4d7",green_circle:"1f7e2",green_heart:"1f49a",green_salad:"1f957",green_square:"1f7e9",greenland:"1f1ec-1f1f1",grenada:"1f1ec-1f1e9",grey_exclamation:"2755",grey_question:"2754",grimacing:"1f62c",grin:"1f601",grinning:"1f600",guadeloupe:"1f1ec-1f1f5",guam:"1f1ec-1f1fa",guard:"1f482",guardsman:"1f482-2642",guardswoman:"1f482-2640",guatemala:"1f1ec-1f1f9",guernsey:"1f1ec-1f1ec",guide_dog:"1f9ae",guinea:"1f1ec-1f1f3",guinea_bissau:"1f1ec-1f1fc",guitar:"1f3b8",gun:"1f52b",guyana:"1f1ec-1f1fe",haircut:"1f487",haircut_man:"1f487-2642",haircut_woman:"1f487-2640",haiti:"1f1ed-1f1f9",hamburger:"1f354",hammer:"1f528",hammer_and_pick:"2692",hammer_and_wrench:"1f6e0",hamster:"1f439",hand:"270b",hand_over_mouth:"1f92d",handbag:"1f45c",handball_person:"1f93e",handshake:"1f91d",hankey:"1f4a9",hash:"0023-20e3",hatched_chick:"1f425",hatching_chick:"1f423",headphones:"1f3a7",health_worker:"1f9d1-2695",hear_no_evil:"1f649",heard_mcdonald_islands:"1f1ed-1f1f2",heart:"2764",heart_decoration:"1f49f",heart_eyes:"1f60d",heart_eyes_cat:"1f63b",heartbeat:"1f493",heartpulse:"1f497",hearts:"2665",heavy_check_mark:"2714",heavy_division_sign:"2797",heavy_dollar_sign:"1f4b2",heavy_exclamation_mark:"2757",heavy_heart_exclamation:"2763",heavy_minus_sign:"2796",heavy_multiplication_x:"2716",heavy_plus_sign:"2795",hedgehog:"1f994",helicopter:"1f681",herb:"1f33f",hibiscus:"1f33a",high_brightness:"1f506",high_heel:"1f460",hiking_boot:"1f97e",hindu_temple:"1f6d5",hippopotamus:"1f99b",hocho:"1f52a",hole:"1f573",honduras:"1f1ed-1f1f3",honey_pot:"1f36f",honeybee:"1f41d",hong_kong:"1f1ed-1f1f0",horse:"1f434",horse_racing:"1f3c7",hospital:"1f3e5",hot_face:"1f975",hot_pepper:"1f336",hotdog:"1f32d",hotel:"1f3e8",hotsprings:"2668",hourglass:"231b",hourglass_flowing_sand:"23f3",house:"1f3e0",house_with_garden:"1f3e1",houses:"1f3d8",hugs:"1f917",hungary:"1f1ed-1f1fa",hushed:"1f62f",ice_cream:"1f368",ice_cube:"1f9ca",ice_hockey:"1f3d2",ice_skate:"26f8",icecream:"1f366",iceland:"1f1ee-1f1f8",id:"1f194",ideograph_advantage:"1f250",imp:"1f47f",inbox_tray:"1f4e5",incoming_envelope:"1f4e8",india:"1f1ee-1f1f3",indonesia:"1f1ee-1f1e9",infinity:"267e",information_desk_person:"1f481",information_source:"2139",innocent:"1f607",interrobang:"2049",iphone:"1f4f1",iran:"1f1ee-1f1f7",iraq:"1f1ee-1f1f6",ireland:"1f1ee-1f1ea",isle_of_man:"1f1ee-1f1f2",israel:"1f1ee-1f1f1",it:"1f1ee-1f1f9",izakaya_lantern:"1f3ee",jack_o_lantern:"1f383",jamaica:"1f1ef-1f1f2",japan:"1f5fe",japanese_castle:"1f3ef",japanese_goblin:"1f47a",japanese_ogre:"1f479",jeans:"1f456",jersey:"1f1ef-1f1ea",jigsaw:"1f9e9",jordan:"1f1ef-1f1f4",joy:"1f602",joy_cat:"1f639",joystick:"1f579",jp:"1f1ef-1f1f5",judge:"1f9d1-2696",juggling_person:"1f939",kaaba:"1f54b",kangaroo:"1f998",kazakhstan:"1f1f0-1f1ff",kenya:"1f1f0-1f1ea",key:"1f511",keyboard:"2328",keycap_ten:"1f51f",kick_scooter:"1f6f4",kimono:"1f458",kiribati:"1f1f0-1f1ee",kiss:"1f48b",kissing:"1f617",kissing_cat:"1f63d",kissing_closed_eyes:"1f61a",kissing_heart:"1f618",kissing_smiling_eyes:"1f619",kite:"1fa81",kiwi_fruit:"1f95d",kneeling_man:"1f9ce-2642",kneeling_person:"1f9ce",kneeling_woman:"1f9ce-2640",knife:"1f52a",koala:"1f428",koko:"1f201",kosovo:"1f1fd-1f1f0",kr:"1f1f0-1f1f7",kuwait:"1f1f0-1f1fc",kyrgyzstan:"1f1f0-1f1ec",lab_coat:"1f97c",label:"1f3f7",lacrosse:"1f94d",lantern:"1f3ee",laos:"1f1f1-1f1e6",large_blue_circle:"1f535",large_blue_diamond:"1f537",large_orange_diamond:"1f536",last_quarter_moon:"1f317",last_quarter_moon_with_face:"1f31c",latin_cross:"271d",latvia:"1f1f1-1f1fb",laughing:"1f606",leafy_green:"1f96c",leaves:"1f343",lebanon:"1f1f1-1f1e7",ledger:"1f4d2",left_luggage:"1f6c5",left_right_arrow:"2194",left_speech_bubble:"1f5e8",leftwards_arrow_with_hook:"21a9",leg:"1f9b5",lemon:"1f34b",leo:"264c",leopard:"1f406",lesotho:"1f1f1-1f1f8",level_slider:"1f39a",liberia:"1f1f1-1f1f7",libra:"264e",libya:"1f1f1-1f1fe",liechtenstein:"1f1f1-1f1ee",light_rail:"1f688",link:"1f517",lion:"1f981",lips:"1f444",lipstick:"1f484",lithuania:"1f1f1-1f1f9",lizard:"1f98e",llama:"1f999",lobster:"1f99e",lock:"1f512",lock_with_ink_pen:"1f50f",lollipop:"1f36d",loop:"27bf",lotion_bottle:"1f9f4",lotus_position:"1f9d8",lotus_position_man:"1f9d8-2642",lotus_position_woman:"1f9d8-2640",loud_sound:"1f50a",loudspeaker:"1f4e2",love_hotel:"1f3e9",love_letter:"1f48c",love_you_gesture:"1f91f",low_brightness:"1f505",luggage:"1f9f3",luxembourg:"1f1f1-1f1fa",lying_face:"1f925",m:"24c2",macau:"1f1f2-1f1f4",macedonia:"1f1f2-1f1f0",madagascar:"1f1f2-1f1ec",mag:"1f50d",mag_right:"1f50e",mage:"1f9d9",mage_man:"1f9d9-2642",mage_woman:"1f9d9-2640",magnet:"1f9f2",mahjong:"1f004",mailbox:"1f4eb",mailbox_closed:"1f4ea",mailbox_with_mail:"1f4ec",mailbox_with_no_mail:"1f4ed",malawi:"1f1f2-1f1fc",malaysia:"1f1f2-1f1fe",maldives:"1f1f2-1f1fb",male_detective:"1f575-2642",male_sign:"2642",mali:"1f1f2-1f1f1",malta:"1f1f2-1f1f9",man:"1f468",man_artist:"1f468-1f3a8",man_astronaut:"1f468-1f680",man_cartwheeling:"1f938-2642",man_cook:"1f468-1f373",man_dancing:"1f57a",man_facepalming:"1f926-2642",man_factory_worker:"1f468-1f3ed",man_farmer:"1f468-1f33e",man_firefighter:"1f468-1f692",man_health_worker:"1f468-2695",man_in_manual_wheelchair:"1f468-1f9bd",man_in_motorized_wheelchair:"1f468-1f9bc",man_in_tuxedo:"1f935",man_judge:"1f468-2696",man_juggling:"1f939-2642",man_mechanic:"1f468-1f527",man_office_worker:"1f468-1f4bc",man_pilot:"1f468-2708",man_playing_handball:"1f93e-2642",man_playing_water_polo:"1f93d-2642",man_scientist:"1f468-1f52c",man_shrugging:"1f937-2642",man_singer:"1f468-1f3a4",man_student:"1f468-1f393",man_teacher:"1f468-1f3eb",man_technologist:"1f468-1f4bb",man_with_gua_pi_mao:"1f472",man_with_probing_cane:"1f468-1f9af",man_with_turban:"1f473-2642",mandarin:"1f34a",mango:"1f96d",mans_shoe:"1f45e",mantelpiece_clock:"1f570",manual_wheelchair:"1f9bd",maple_leaf:"1f341",marshall_islands:"1f1f2-1f1ed",martial_arts_uniform:"1f94b",martinique:"1f1f2-1f1f6",mask:"1f637",massage:"1f486",massage_man:"1f486-2642",massage_woman:"1f486-2640",mate:"1f9c9",mauritania:"1f1f2-1f1f7",mauritius:"1f1f2-1f1fa",mayotte:"1f1fe-1f1f9",meat_on_bone:"1f356",mechanic:"1f9d1-1f527",mechanical_arm:"1f9be",mechanical_leg:"1f9bf",medal_military:"1f396",medal_sports:"1f3c5",medical_symbol:"2695",mega:"1f4e3",melon:"1f348",memo:"1f4dd",men_wrestling:"1f93c-2642",menorah:"1f54e",mens:"1f6b9",mermaid:"1f9dc-2640",merman:"1f9dc-2642",merperson:"1f9dc",metal:"1f918",metro:"1f687",mexico:"1f1f2-1f1fd",microbe:"1f9a0",micronesia:"1f1eb-1f1f2",microphone:"1f3a4",microscope:"1f52c",middle_finger:"1f595",milk_glass:"1f95b",milky_way:"1f30c",minibus:"1f690",minidisc:"1f4bd",mobile_phone_off:"1f4f4",moldova:"1f1f2-1f1e9",monaco:"1f1f2-1f1e8",money_mouth_face:"1f911",money_with_wings:"1f4b8",moneybag:"1f4b0",mongolia:"1f1f2-1f1f3",monkey:"1f412",monkey_face:"1f435",monocle_face:"1f9d0",monorail:"1f69d",montenegro:"1f1f2-1f1ea",montserrat:"1f1f2-1f1f8",moon:"1f314",moon_cake:"1f96e",morocco:"1f1f2-1f1e6",mortar_board:"1f393",mosque:"1f54c",mosquito:"1f99f",motor_boat:"1f6e5",motor_scooter:"1f6f5",motorcycle:"1f3cd",motorized_wheelchair:"1f9bc",motorway:"1f6e3",mount_fuji:"1f5fb",mountain:"26f0",mountain_bicyclist:"1f6b5",mountain_biking_man:"1f6b5-2642",mountain_biking_woman:"1f6b5-2640",mountain_cableway:"1f6a0",mountain_railway:"1f69e",mountain_snow:"1f3d4",mouse:"1f42d",mouse2:"1f401",movie_camera:"1f3a5",moyai:"1f5ff",mozambique:"1f1f2-1f1ff",mrs_claus:"1f936",muscle:"1f4aa",mushroom:"1f344",musical_keyboard:"1f3b9",musical_note:"1f3b5",musical_score:"1f3bc",mute:"1f507",myanmar:"1f1f2-1f1f2",nail_care:"1f485",name_badge:"1f4db",namibia:"1f1f3-1f1e6",national_park:"1f3de",nauru:"1f1f3-1f1f7",nauseated_face:"1f922",nazar_amulet:"1f9ff",necktie:"1f454",negative_squared_cross_mark:"274e",nepal:"1f1f3-1f1f5",nerd_face:"1f913",netherlands:"1f1f3-1f1f1",neutral_face:"1f610",new:"1f195",new_caledonia:"1f1f3-1f1e8",new_moon:"1f311",new_moon_with_face:"1f31a",new_zealand:"1f1f3-1f1ff",newspaper:"1f4f0",newspaper_roll:"1f5de",next_track_button:"23ed",ng:"1f196",ng_man:"1f645-2642",ng_woman:"1f645-2640",nicaragua:"1f1f3-1f1ee",niger:"1f1f3-1f1ea",nigeria:"1f1f3-1f1ec",night_with_stars:"1f303",nine:"0039-20e3",niue:"1f1f3-1f1fa",no_bell:"1f515",no_bicycles:"1f6b3",no_entry:"26d4",no_entry_sign:"1f6ab",no_good:"1f645",no_good_man:"1f645-2642",no_good_woman:"1f645-2640",no_mobile_phones:"1f4f5",no_mouth:"1f636",no_pedestrians:"1f6b7",no_smoking:"1f6ad","non-potable_water":"1f6b1",norfolk_island:"1f1f3-1f1eb",north_korea:"1f1f0-1f1f5",northern_mariana_islands:"1f1f2-1f1f5",norway:"1f1f3-1f1f4",nose:"1f443",notebook:"1f4d3",notebook_with_decorative_cover:"1f4d4",notes:"1f3b6",nut_and_bolt:"1f529",o:"2b55",o2:"1f17e",ocean:"1f30a",octopus:"1f419",oden:"1f362",office:"1f3e2",office_worker:"1f9d1-1f4bc",oil_drum:"1f6e2",ok:"1f197",ok_hand:"1f44c",ok_man:"1f646-2642",ok_person:"1f646",ok_woman:"1f646-2640",old_key:"1f5dd",older_adult:"1f9d3",older_man:"1f474",older_woman:"1f475",om:"1f549",oman:"1f1f4-1f1f2",on:"1f51b",oncoming_automobile:"1f698",oncoming_bus:"1f68d",oncoming_police_car:"1f694",oncoming_taxi:"1f696",one:"0031-20e3",one_piece_swimsuit:"1fa71",onion:"1f9c5",open_book:"1f4d6",open_file_folder:"1f4c2",open_hands:"1f450",open_mouth:"1f62e",open_umbrella:"2602",ophiuchus:"26ce",orange:"1f34a",orange_book:"1f4d9",orange_circle:"1f7e0",orange_heart:"1f9e1",orange_square:"1f7e7",orangutan:"1f9a7",orthodox_cross:"2626",otter:"1f9a6",outbox_tray:"1f4e4",owl:"1f989",ox:"1f402",oyster:"1f9aa",package:"1f4e6",page_facing_up:"1f4c4",page_with_curl:"1f4c3",pager:"1f4df",paintbrush:"1f58c",pakistan:"1f1f5-1f1f0",palau:"1f1f5-1f1fc",palestinian_territories:"1f1f5-1f1f8",palm_tree:"1f334",palms_up_together:"1f932",panama:"1f1f5-1f1e6",pancakes:"1f95e",panda_face:"1f43c",paperclip:"1f4ce",paperclips:"1f587",papua_new_guinea:"1f1f5-1f1ec",parachute:"1fa82",paraguay:"1f1f5-1f1fe",parasol_on_ground:"26f1",parking:"1f17f",parrot:"1f99c",part_alternation_mark:"303d",partly_sunny:"26c5",partying_face:"1f973",passenger_ship:"1f6f3",passport_control:"1f6c2",pause_button:"23f8",paw_prints:"1f43e",peace_symbol:"262e",peach:"1f351",peacock:"1f99a",peanuts:"1f95c",pear:"1f350",pen:"1f58a",pencil:"1f4dd",pencil2:"270f",penguin:"1f427",pensive:"1f614",people_holding_hands:"1f9d1-1f91d-1f9d1",performing_arts:"1f3ad",persevere:"1f623",person_bald:"1f9d1-1f9b2",person_curly_hair:"1f9d1-1f9b1",person_fencing:"1f93a",person_in_manual_wheelchair:"1f9d1-1f9bd",person_in_motorized_wheelchair:"1f9d1-1f9bc",person_red_hair:"1f9d1-1f9b0",person_white_hair:"1f9d1-1f9b3",person_with_probing_cane:"1f9d1-1f9af",person_with_turban:"1f473",peru:"1f1f5-1f1ea",petri_dish:"1f9eb",philippines:"1f1f5-1f1ed",phone:"260e",pick:"26cf",pie:"1f967",pig:"1f437",pig2:"1f416",pig_nose:"1f43d",pill:"1f48a",pilot:"1f9d1-2708",pinching_hand:"1f90f",pineapple:"1f34d",ping_pong:"1f3d3",pirate_flag:"1f3f4-2620",pisces:"2653",pitcairn_islands:"1f1f5-1f1f3",pizza:"1f355",place_of_worship:"1f6d0",plate_with_cutlery:"1f37d",play_or_pause_button:"23ef",pleading_face:"1f97a",point_down:"1f447",point_left:"1f448",point_right:"1f449",point_up:"261d",point_up_2:"1f446",poland:"1f1f5-1f1f1",police_car:"1f693",police_officer:"1f46e",policeman:"1f46e-2642",policewoman:"1f46e-2640",poodle:"1f429",poop:"1f4a9",popcorn:"1f37f",portugal:"1f1f5-1f1f9",post_office:"1f3e3",postal_horn:"1f4ef",postbox:"1f4ee",potable_water:"1f6b0",potato:"1f954",pouch:"1f45d",poultry_leg:"1f357",pound:"1f4b7",pout:"1f621",pouting_cat:"1f63e",pouting_face:"1f64e",pouting_man:"1f64e-2642",pouting_woman:"1f64e-2640",pray:"1f64f",prayer_beads:"1f4ff",pregnant_woman:"1f930",pretzel:"1f968",previous_track_button:"23ee",prince:"1f934",princess:"1f478",printer:"1f5a8",probing_cane:"1f9af",puerto_rico:"1f1f5-1f1f7",punch:"1f44a",purple_circle:"1f7e3",purple_heart:"1f49c",purple_square:"1f7ea",purse:"1f45b",pushpin:"1f4cc",put_litter_in_its_place:"1f6ae",qatar:"1f1f6-1f1e6",question:"2753",rabbit:"1f430",rabbit2:"1f407",raccoon:"1f99d",racehorse:"1f40e",racing_car:"1f3ce",radio:"1f4fb",radio_button:"1f518",radioactive:"2622",rage:"1f621",railway_car:"1f683",railway_track:"1f6e4",rainbow:"1f308",rainbow_flag:"1f3f3-1f308",raised_back_of_hand:"1f91a",raised_eyebrow:"1f928",raised_hand:"270b",raised_hand_with_fingers_splayed:"1f590",raised_hands:"1f64c",raising_hand:"1f64b",raising_hand_man:"1f64b-2642",raising_hand_woman:"1f64b-2640",ram:"1f40f",ramen:"1f35c",rat:"1f400",razor:"1fa92",receipt:"1f9fe",record_button:"23fa",recycle:"267b",red_car:"1f697",red_circle:"1f534",red_envelope:"1f9e7",red_haired_man:"1f468-1f9b0",red_haired_woman:"1f469-1f9b0",red_square:"1f7e5",registered:"00ae",relaxed:"263a",relieved:"1f60c",reminder_ribbon:"1f397",repeat:"1f501",repeat_one:"1f502",rescue_worker_helmet:"26d1",restroom:"1f6bb",reunion:"1f1f7-1f1ea",revolving_hearts:"1f49e",rewind:"23ea",rhinoceros:"1f98f",ribbon:"1f380",rice:"1f35a",rice_ball:"1f359",rice_cracker:"1f358",rice_scene:"1f391",right_anger_bubble:"1f5ef",ring:"1f48d",ringed_planet:"1fa90",robot:"1f916",rocket:"1f680",rofl:"1f923",roll_eyes:"1f644",roll_of_paper:"1f9fb",roller_coaster:"1f3a2",romania:"1f1f7-1f1f4",rooster:"1f413",rose:"1f339",rosette:"1f3f5",rotating_light:"1f6a8",round_pushpin:"1f4cd",rowboat:"1f6a3",rowing_man:"1f6a3-2642",rowing_woman:"1f6a3-2640",ru:"1f1f7-1f1fa",rugby_football:"1f3c9",runner:"1f3c3",running:"1f3c3",running_man:"1f3c3-2642",running_shirt_with_sash:"1f3bd",running_woman:"1f3c3-2640",rwanda:"1f1f7-1f1fc",sa:"1f202",safety_pin:"1f9f7",safety_vest:"1f9ba",sagittarius:"2650",sailboat:"26f5",sake:"1f376",salt:"1f9c2",samoa:"1f1fc-1f1f8",san_marino:"1f1f8-1f1f2",sandal:"1f461",sandwich:"1f96a",santa:"1f385",sao_tome_principe:"1f1f8-1f1f9",sari:"1f97b",sassy_man:"1f481-2642",sassy_woman:"1f481-2640",satellite:"1f4e1",satisfied:"1f606",saudi_arabia:"1f1f8-1f1e6",sauna_man:"1f9d6-2642",sauna_person:"1f9d6",sauna_woman:"1f9d6-2640",sauropod:"1f995",saxophone:"1f3b7",scarf:"1f9e3",school:"1f3eb",school_satchel:"1f392",scientist:"1f9d1-1f52c",scissors:"2702",scorpion:"1f982",scorpius:"264f",scotland:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",scream:"1f631",scream_cat:"1f640",scroll:"1f4dc",seat:"1f4ba",secret:"3299",see_no_evil:"1f648",seedling:"1f331",selfie:"1f933",senegal:"1f1f8-1f1f3",serbia:"1f1f7-1f1f8",service_dog:"1f415-1f9ba",seven:"0037-20e3",seychelles:"1f1f8-1f1e8",shallow_pan_of_food:"1f958",shamrock:"2618",shark:"1f988",shaved_ice:"1f367",sheep:"1f411",shell:"1f41a",shield:"1f6e1",shinto_shrine:"26e9",ship:"1f6a2",shirt:"1f455",poo:"1f4a9",shoe:"1f45e",shopping:"1f6cd",shopping_cart:"1f6d2",shorts:"1fa73",shower:"1f6bf",shrimp:"1f990",shrug:"1f937",shushing_face:"1f92b",sierra_leone:"1f1f8-1f1f1",signal_strength:"1f4f6",singapore:"1f1f8-1f1ec",singer:"1f9d1-1f3a4",sint_maarten:"1f1f8-1f1fd",six:"0036-20e3",six_pointed_star:"1f52f",skateboard:"1f6f9",ski:"1f3bf",skier:"26f7",skull:"1f480",skull_and_crossbones:"2620",skunk:"1f9a8",sled:"1f6f7",sleeping:"1f634",sleeping_bed:"1f6cc",sleepy:"1f62a",slightly_frowning_face:"1f641",slightly_smiling_face:"1f642",slot_machine:"1f3b0",sloth:"1f9a5",slovakia:"1f1f8-1f1f0",slovenia:"1f1f8-1f1ee",small_airplane:"1f6e9",small_blue_diamond:"1f539",small_orange_diamond:"1f538",small_red_triangle:"1f53a",small_red_triangle_down:"1f53b",smile:"1f604",smile_cat:"1f638",smiley:"1f603",smiley_cat:"1f63a",smiling_face_with_three_hearts:"1f970",smiling_imp:"1f608",smirk:"1f60f",smirk_cat:"1f63c",smoking:"1f6ac",snail:"1f40c",snake:"1f40d",sneezing_face:"1f927",snowboarder:"1f3c2",snowflake:"2744",snowman:"26c4",snowman_with_snow:"2603",soap:"1f9fc",sob:"1f62d",soccer:"26bd",socks:"1f9e6",softball:"1f94e",solomon_islands:"1f1f8-1f1e7",somalia:"1f1f8-1f1f4",soon:"1f51c",sos:"1f198",sound:"1f509",south_africa:"1f1ff-1f1e6",south_georgia_south_sandwich_islands:"1f1ec-1f1f8",south_sudan:"1f1f8-1f1f8",space_invader:"1f47e",spades:"2660",spaghetti:"1f35d",sparkle:"2747",sparkler:"1f387",sparkles:"2728",sparkling_heart:"1f496",speak_no_evil:"1f64a",speaker:"1f508",speaking_head:"1f5e3",speech_balloon:"1f4ac",speedboat:"1f6a4",spider:"1f577",spider_web:"1f578",spiral_calendar:"1f5d3",spiral_notepad:"1f5d2",sponge:"1f9fd",spoon:"1f944",squid:"1f991",sri_lanka:"1f1f1-1f1f0",st_barthelemy:"1f1e7-1f1f1",st_helena:"1f1f8-1f1ed",st_kitts_nevis:"1f1f0-1f1f3",st_lucia:"1f1f1-1f1e8",st_martin:"1f1f2-1f1eb",st_pierre_miquelon:"1f1f5-1f1f2",st_vincent_grenadines:"1f1fb-1f1e8",stadium:"1f3df",standing_man:"1f9cd-2642",standing_person:"1f9cd",standing_woman:"1f9cd-2640",star:"2b50",star2:"1f31f",star_and_crescent:"262a",star_of_david:"2721",star_struck:"1f929",stars:"1f320",station:"1f689",statue_of_liberty:"1f5fd",steam_locomotive:"1f682",stethoscope:"1fa7a",stew:"1f372",stop_button:"23f9",stop_sign:"1f6d1",stopwatch:"23f1",straight_ruler:"1f4cf",strawberry:"1f353",stuck_out_tongue:"1f61b",stuck_out_tongue_closed_eyes:"1f61d",stuck_out_tongue_winking_eye:"1f61c",student:"1f9d1-1f393",studio_microphone:"1f399",stuffed_flatbread:"1f959",sudan:"1f1f8-1f1e9",sun_behind_large_cloud:"1f325",sun_behind_rain_cloud:"1f326",sun_behind_small_cloud:"1f324",sun_with_face:"1f31e",sunflower:"1f33b",sunglasses:"1f60e",sunny:"2600",sunrise:"1f305",sunrise_over_mountains:"1f304",superhero:"1f9b8",superhero_man:"1f9b8-2642",superhero_woman:"1f9b8-2640",supervillain:"1f9b9",supervillain_man:"1f9b9-2642",supervillain_woman:"1f9b9-2640",surfer:"1f3c4",surfing_man:"1f3c4-2642",surfing_woman:"1f3c4-2640",suriname:"1f1f8-1f1f7",sushi:"1f363",suspension_railway:"1f69f",svalbard_jan_mayen:"1f1f8-1f1ef",swan:"1f9a2",swaziland:"1f1f8-1f1ff",sweat:"1f613",sweat_drops:"1f4a6",sweat_smile:"1f605",sweden:"1f1f8-1f1ea",sweet_potato:"1f360",swim_brief:"1fa72",swimmer:"1f3ca",swimming_man:"1f3ca-2642",swimming_woman:"1f3ca-2640",switzerland:"1f1e8-1f1ed",symbols:"1f523",synagogue:"1f54d",syria:"1f1f8-1f1fe",syringe:"1f489","t-rex":"1f996",taco:"1f32e",tada:"1f389",taiwan:"1f1f9-1f1fc",tajikistan:"1f1f9-1f1ef",takeout_box:"1f961",tanabata_tree:"1f38b",tangerine:"1f34a",tanzania:"1f1f9-1f1ff",taurus:"2649",taxi:"1f695",tea:"1f375",teacher:"1f9d1-1f3eb",technologist:"1f9d1-1f4bb",teddy_bear:"1f9f8",telephone:"260e",telephone_receiver:"1f4de",telescope:"1f52d",tennis:"1f3be",tent:"26fa",test_tube:"1f9ea",thailand:"1f1f9-1f1ed",thermometer:"1f321",thinking:"1f914",thought_balloon:"1f4ad",thread:"1f9f5",three:"0033-20e3",thumbsdown:"1f44e",thumbsup:"1f44d",ticket:"1f3ab",tickets:"1f39f",tiger:"1f42f",tiger2:"1f405",timer_clock:"23f2",timor_leste:"1f1f9-1f1f1",tipping_hand_man:"1f481-2642",tipping_hand_person:"1f481",tipping_hand_woman:"1f481-2640",tired_face:"1f62b",tm:"2122",togo:"1f1f9-1f1ec",toilet:"1f6bd",tokelau:"1f1f9-1f1f0",tokyo_tower:"1f5fc",tomato:"1f345",tonga:"1f1f9-1f1f4",tongue:"1f445",toolbox:"1f9f0",tooth:"1f9b7",top:"1f51d",tophat:"1f3a9",tornado:"1f32a",tr:"1f1f9-1f1f7",trackball:"1f5b2",tractor:"1f69c",traffic_light:"1f6a5",train:"1f68b",train2:"1f686",tram:"1f68a",triangular_flag_on_post:"1f6a9",triangular_ruler:"1f4d0",trident:"1f531",trinidad_tobago:"1f1f9-1f1f9",tristan_da_cunha:"1f1f9-1f1e6",triumph:"1f624",trolleybus:"1f68e",trophy:"1f3c6",tropical_drink:"1f379",tropical_fish:"1f420",truck:"1f69a",trumpet:"1f3ba",tshirt:"1f455",tulip:"1f337",tumbler_glass:"1f943",tunisia:"1f1f9-1f1f3",turkey:"1f983",turkmenistan:"1f1f9-1f1f2",turks_caicos_islands:"1f1f9-1f1e8",turtle:"1f422",tuvalu:"1f1f9-1f1fb",tv:"1f4fa",twisted_rightwards_arrows:"1f500",two:"0032-20e3",two_hearts:"1f495",two_men_holding_hands:"1f46c",two_women_holding_hands:"1f46d",u5272:"1f239",u5408:"1f234",u55b6:"1f23a",u6307:"1f22f",u6708:"1f237",u6709:"1f236",u6e80:"1f235",u7121:"1f21a",u7533:"1f238",u7981:"1f232",u7a7a:"1f233",uganda:"1f1fa-1f1ec",uk:"1f1ec-1f1e7",ukraine:"1f1fa-1f1e6",umbrella:"2614",unamused:"1f612",underage:"1f51e",unicorn:"1f984",united_arab_emirates:"1f1e6-1f1ea",united_nations:"1f1fa-1f1f3",unlock:"1f513",up:"1f199",upside_down_face:"1f643",uruguay:"1f1fa-1f1fe",us:"1f1fa-1f1f8",us_outlying_islands:"1f1fa-1f1f2",us_virgin_islands:"1f1fb-1f1ee",uzbekistan:"1f1fa-1f1ff",v:"270c",vampire:"1f9db",vampire_man:"1f9db-2642",vampire_woman:"1f9db-2640",vanuatu:"1f1fb-1f1fa",vatican_city:"1f1fb-1f1e6",venezuela:"1f1fb-1f1ea",vertical_traffic_light:"1f6a6",vhs:"1f4fc",vibration_mode:"1f4f3",video_camera:"1f4f9",video_game:"1f3ae",vietnam:"1f1fb-1f1f3",violin:"1f3bb",virgo:"264d",volcano:"1f30b",volleyball:"1f3d0",vomiting_face:"1f92e",vs:"1f19a",vulcan_salute:"1f596",waffle:"1f9c7",wales:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",walking:"1f6b6",walking_man:"1f6b6-2642",walking_woman:"1f6b6-2640",wallis_futuna:"1f1fc-1f1eb",waning_crescent_moon:"1f318",waning_gibbous_moon:"1f316",warning:"26a0",wastebasket:"1f5d1",watch:"231a",water_buffalo:"1f403",water_polo:"1f93d",watermelon:"1f349",wave:"1f44b",wavy_dash:"3030",waxing_crescent_moon:"1f312",waxing_gibbous_moon:"1f314",wc:"1f6be",weary:"1f629",wedding:"1f492",weight_lifting:"1f3cb",weight_lifting_man:"1f3cb-2642",weight_lifting_woman:"1f3cb-2640",western_sahara:"1f1ea-1f1ed",whale:"1f433",whale2:"1f40b",wheel_of_dharma:"2638",wheelchair:"267f",white_check_mark:"2705",white_circle:"26aa",white_flag:"1f3f3",white_flower:"1f4ae",white_haired_man:"1f468-1f9b3",white_haired_woman:"1f469-1f9b3",white_heart:"1f90d",white_large_square:"2b1c",white_medium_small_square:"25fd",white_medium_square:"25fb",white_small_square:"25ab",white_square_button:"1f533",wilted_flower:"1f940",wind_chime:"1f390",wind_face:"1f32c",wine_glass:"1f377",wink:"1f609",wolf:"1f43a",woman:"1f469",woman_artist:"1f469-1f3a8",woman_astronaut:"1f469-1f680",woman_cartwheeling:"1f938-2640",woman_cook:"1f469-1f373",woman_dancing:"1f483",woman_facepalming:"1f926-2640",woman_factory_worker:"1f469-1f3ed",woman_farmer:"1f469-1f33e",woman_firefighter:"1f469-1f692",woman_health_worker:"1f469-2695",woman_in_manual_wheelchair:"1f469-1f9bd",woman_in_motorized_wheelchair:"1f469-1f9bc",woman_judge:"1f469-2696",woman_juggling:"1f939-2640",woman_mechanic:"1f469-1f527",woman_office_worker:"1f469-1f4bc",woman_pilot:"1f469-2708",woman_playing_handball:"1f93e-2640",woman_playing_water_polo:"1f93d-2640",woman_scientist:"1f469-1f52c",woman_shrugging:"1f937-2640",woman_singer:"1f469-1f3a4",woman_student:"1f469-1f393",woman_teacher:"1f469-1f3eb",woman_technologist:"1f469-1f4bb",woman_with_headscarf:"1f9d5",woman_with_probing_cane:"1f469-1f9af",woman_with_turban:"1f473-2640",womans_clothes:"1f45a",womans_hat:"1f452",women_wrestling:"1f93c-2640",womens:"1f6ba",woozy_face:"1f974",world_map:"1f5fa",worried:"1f61f",wrench:"1f527",wrestling:"1f93c",writing_hand:"270d",x:"274c",yarn:"1f9f6",yawning_face:"1f971",yellow_circle:"1f7e1",yellow_heart:"1f49b",yellow_square:"1f7e8",yemen:"1f1fe-1f1ea",yen:"1f4b4",yin_yang:"262f",yo_yo:"1fa80",yum:"1f60b",zambia:"1f1ff-1f1f2",zany_face:"1f92a",zap:"26a1",zebra:"1f993",zero:"0030-20e3",zimbabwe:"1f1ff-1f1fc",zipper_mouth_face:"1f910",zombie:"1f9df",zombie_man:"1f9df-2642",zombie_woman:"1f9df-2640",zzz:"1f4a4"};function Sv(t,e){var n=Is(t);if(Ii){var r=Ii(t);e&&(r=Qi(r).call(r,(function(e){return Ki(t,e).enumerable}))),n.push.apply(n,r)}return n}function Lv(t){for(var e=1;e>>0===a))throw new RangeError("Invalid code point: ".concat(a));a<=65535?e=t.push(a):(a-=65536,e=t.push(55296+(a>>10),a%1024+56320)),e>=16383&&(n+=String.fromCharCode.apply(null,t),t.length=0)}return n+String.fromCharCode.apply(null,t)}var Dv=function(t){function e(){var t,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;if(ra(this,e),(t=Iv(this,e,[{config:n}])).options={useUnicode:!0,upperCase:!1,customHandled:!1,resourceURL:"https://github.githubassets.com/images/icons/emoji/unicode/${code}.png?v8",emojis:Lv({},_v)},"object"!==Po(n))return Ko(t);var r=n.useUnicode,i=n.customResourceURL,a=n.customRenderer,o=n.upperCase;return t.options.useUnicode="boolean"==typeof r?r:t.options.useUnicode,t.options.upperCase="boolean"==typeof o?o:t.options.upperCase,!1===r&&"string"==typeof i&&(t.options.resourceURL=i),"function"==typeof a&&(t.options.customHandled=!0,t.options.customRenderer=a),t}return ss(e,t),$o(e,[{key:"makeHtml",value:function(t,e){var n=this;return this.test(t)?t.replace(this.RULE.reg,(function(t,e){var r;if(n.options.customHandled&&"function"==typeof n.options.customRenderer)return n.options.customRenderer(e);var i=n.options.emojis[e];if("string"!=typeof i)return t;if(n.options.useUnicode){var a,o=LA(a=i.split("-")).call(a,(function(t){return"0x".concat(t)}));return Ov.apply(void 0,jp(o))}n.options.upperCase&&(i=i.toUpperCase());var s=n.options.resourceURL.replace(/\$\{code\}/g,i);return hs(r='')).call(r,cg(e),'')})):t}},{key:"rule",value:function(){var t={begin:":",content:"([a-zA-Z0-9+_]+?)",end:":"};return t.reg=Nd(t,"g"),t}}])}(EA);function Fv(t,e,n){return e=es(e),Ko(t,Nv()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Nv(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Nv=function(){return!!t})()}cs(Dv,"HOOK_NAME","emoji");var Rv=function(t){function e(){return ra(this,e),Fv(this,e,arguments)}return ss(e,t),$o(e,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,'$1$2$3'):t}},{key:"rule",value:function(){var t={begin:"(^| )\\/",end:"\\/( |$)",content:"([^\\n]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}])}(EA);function Pv(t,e,n){return e=es(e),Ko(t,Qv()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Qv(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Qv=function(){return!!t})()}cs(Rv,"HOOK_NAME","underline");var Uv=function(t){function e(){return ra(this,e),Pv(this,e,arguments)}return ss(e,t),$o(e,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,"$1$2$3"):t}},{key:"rule",value:function(){var t={begin:"(^| )==",end:"==( |$|\\n)",content:"([^\\n]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}])}(EA);cs(Uv,"HOOK_NAME","highLight");var Hv=fn.includes,$v=u((function(){return!Array(1).includes()}));Dn({target:"Array",proto:!0,forced:$v},{includes:function(t){return Hv(this,t,arguments.length>1?arguments[1]:void 0)}}),Wa();var jv=Ni("Array","includes"),Kv=w("".indexOf);Dn({target:"String",proto:!0,forced:!cf("includes")},{includes:function(t){return!!~Kv(Cr(U(this)),Cr(sf(t)),arguments.length>1?arguments[1]:void 0)}});var zv=Ni("String","includes"),Gv=jv,Xv=zv,Vv=Array.prototype,Wv=String.prototype,qv=function(t){var e=t.includes;return t===Vv||rt(Vv,t)&&e===Vv.includes?Gv:"string"==typeof t||t===Wv||rt(Wv,t)&&e===Wv.includes?Xv:e};var Yv=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function uy(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n",keyword:"》",value:">"}],py=[{icon:"FullWidth",label:"[]",keyword:"【】",value:"[]",goLeft:1},{icon:"FullWidth",label:"【】",keyword:"【",value:"【】",goLeft:1},{icon:"link",label:"Link",keyword:"【】",value:"[title](https://url)",selection:{from:19,to:14}},{icon:"FullWidth",label:"()",keyword:"(",value:"()",goLeft:1},{icon:"FullWidth",label:"()",keyword:"(",value:"()",goLeft:1},{icon:"FullWidth",label:"<>",keyword:"《》",value:"<>",goLeft:1},{icon:"FullWidth",label:"《》",keyword:"《》",value:"《》",goLeft:1},{icon:"FullWidth",label:'""',keyword:"“”",value:'""',goLeft:1},{icon:"FullWidth",label:"“”",keyword:"“”",value:"”“",goLeft:1},{icon:"FullWidth",label:"inlineCode",keyword:"`",value:"``",goLeft:1},{icon:"FullWidth",label:"codeBlock",keyword:"`",value:"```\n\n```\n",goTop:2}],my=(hy=LA(cy).call(cy,(function(t){return{icon:"FullWidth",label:t,keyword:"```",value:"```".concat(t,"\n\n```\n"),goTop:2,exactMatch:!0}})),fy=[],Qs(cy).call(cy,(function(t){var e,n="",r=ly(t);try{for(r.s();!(e=r.n()).done;)n+=e.value,fy.push({icon:"FullWidth",label:t,keyword:"```".concat(n),value:"```".concat(t,"\n\n```\n"),goTop:2,exactMatch:!0})}catch(t){r.e(t)}finally{r.f()}})),hs(hy).call(hy,fy)),by=hs(ay=hs(gy).call(gy,py)).call(ay,my);var vy=function(){return"CodeMirror.Pass"};function yy(t,e){var n=void 0!==Cd&&Ed(t)||t["@@iterator"];if(!n){if(Td(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return wy(t,e);var r=Gf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?rf(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wy(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function wy(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n')).call(c,n)).call(s,r,""):!1===(null===(i=this.suggester[n])||void 0===i?void 0:i.echo)?"".concat(e):this.suggester[n]?r?e+r:"".concat(e):e+r}},{key:"rule",value:function(){var t,e,n,r,i,a,o,s=this;if(null===(t=this.config)||void 0===t||!t.suggester||Is(null===(e=this.config)||void 0===e?void 0:e.suggester).length<=0)return{};Td(this.config.suggester)?i=LA(a=this.config.suggester).call(a,(function(t){return t.keyword||""})):i=LA(o=Is(this.config.suggester)).call(o,(function(t){return s.config.suggester[t].keyword||""}));var c=LA(i).call(i,(function(t){return oy(t)})).join("|");return{reg:new RegExp(hs(n=hs(r="".concat(Rd()?"((?
    '),this.searchCache=!1,this.searchKeyCache=[],this.optionList=[],this.cursorMove=!0,this.suggesterConfig={},this.$cherry=e}),[{key:"tryCreatePanel",value:function(){!this.$suggesterPanel&&bb()&&document&&(this.$cherry.wrapperDom.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=this.$cherry.wrapperDom.querySelector(".cherry-suggester-panel"))}},{key:"hasEditor",value:function(){return!!this.editor&&!!this.editor.editor.display&&!!this.editor.editor.display.wrapper}},{key:"setEditor",value:function(t){this.editor=t}},{key:"setSuggester",value:function(t){this.suggesterConfig=t}},{key:"bindEvent",value:function(){var t=this;if(this.editor.options.showSuggestList){var e=!1;this.editor.editor.on("change",(function(n,r){e=!0,t.onCodeMirrorChange(n,r)})),this.editor.editor.on("keydown",(function(n,r){e=!0,t.enableRelate()&&t.onKeyDown(n,r)})),this.editor.editor.on("cursorActivity",(function(){e||t.stopRelate(),e=!1}));var n=this.editor.editor.getOption("extraKeys"),r=["Up","Down","Enter"];Qs(r).call(r,(function(e){if("function"==typeof n[e]){var r=n[e];n[e]=function(e){if(t.cursorMove){var n=r.call(e,e);if(n)return n}}}else if(n[e]){if("string"==typeof n[e]){var i=n[e];n[e]=function(e){t.cursorMove&&t.editor.editor.execCommand(i)}}}else n[e]=function(){if(t.cursorMove)return vy()}})),this.editor.editor.setOption("extraKeys",n),this.editor.editor.on("scroll",(function(e,n){t.searchCache&&t.relocatePanel(t.editor.editor)})),this.onClickPanelItem()}}},{key:"onClickPanelItem",value:function(){var t=this;this.tryCreatePanel(),this.$suggesterPanel.addEventListener("click",(function(e){var n=function(t,e){var n,r=-1;return Qs(n=t.childNodes).call(n,(function(t,n){return t===e?r=n:""})),r}(t.$suggesterPanel,e.target);n>-1&&t.pasteSelectResult(n),t.stopRelate()}),!1)}},{key:"showSuggesterPanel",value:function(t){var e=t.left,n=t.top,r=t.items;this.tryCreatePanel(),!this.$suggesterPanel&&bb()&&(this.$cherry.wrapperDom.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=this.$cherry.wrapperDom.querySelector(".cherry-suggester-panel")),this.updatePanel(r),this.$suggesterPanel.style.left="".concat(e,"px"),this.$suggesterPanel.style.top="".concat(n,"px"),this.$suggesterPanel.style.display="block",this.$suggesterPanel.style.position="absolute",this.$suggesterPanel.style.zIndex="100"}},{key:"hideSuggesterPanel",value:function(){this.tryCreatePanel(),this.$suggesterPanel&&(this.$suggesterPanel.style.display="none")}},{key:"updatePanel",value:function(t){var e=this;this.tryCreatePanel();var n=LA(t).call(t,(function(t,n){if("object"===Po(t)&&null!==t){var r,i=t.label;if(null!=t&&t.icon)i=hs(r='')).call(r,i);return e.renderPanelItem(i,!1)}return e.renderPanelItem(t,!1)})).join(""),r=this.suggesterConfig[this.keyword];r&&"function"==typeof r.suggestListRender&&(n=r.suggestListRender.call(this,t)||n),this.$suggesterPanel.innerHTML="","string"==typeof n?this.$suggesterPanel.innerHTML=n:Td(n)&&n.length>0?Qs(n).call(n,(function(t){e.$suggesterPanel.appendChild(t)})):"object"===Po(n)&&1===n.nodeType&&this.$suggesterPanel.appendChild(n)}},{key:"renderPanelItem",value:function(t,e){return e?'
    '.concat(t,"
    "):'
    '.concat(t,"
    ")}},{key:"createDom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.template||(this.template=document.createElement("div")),this.template.innerHTML=Ph(t).call(t);var e=document.createDocumentFragment();return LA(Array.prototype).call(this.template.childNodes,(function(t,n){e.appendChild(t)})),e}},{key:"relocatePanel",value:function(t){var e=this.$cherry.wrapperDom.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(e||(e=this.$cherry.wrapperDom.querySelector(".CodeMirror-selected")),!e)return!1;var n=this.$cherry.wrapperDom.getBoundingClientRect(),r=e.getBoundingClientRect(),i=r.top+r.height+5-n.top,a=r.left-n.left;this.showSuggesterPanel({left:a,top:i,items:this.optionList})}},{key:"getCursorPos",value:function(t){var e=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(!e)return null;var n=t.getCursor(),r=t.lineInfo(n.line).handle.height,i=e.getBoundingClientRect(),a=i.top+r;return{left:i.left,top:a}}},{key:"startRelate",value:function(t,e,n){this.cursorFrom=n,this.keyword=e,this.searchCache=!0,this.relocatePanel(t)}},{key:"stopRelate",value:function(){this.hideSuggesterPanel(),this.cursorFrom=null,this.cursorTo=null,this.keyword="",this.searchKeyCache=[],this.searchCache=!1,this.cursorMove=!0,this.optionList=[]}},{key:"pasteSelectResult",value:function(t,e){if(this.cursorTo&&this.cursorTo!==this.cursorFrom||(this.cursorTo=JSON.parse(yh(this.cursorFrom))),this.cursorTo){this.cursorTo.ch+=1;var n=this.cursorFrom,r=this.cursorTo;if(this.optionList[t]){var i="";if("object"===Po(this.optionList[t])&&null!==this.optionList[t]&&"string"==typeof this.optionList[t].value)i=this.optionList[t].value;else if("object"===Po(this.optionList[t])&&null!==this.optionList[t]&&"function"==typeof this.optionList[t].value)i=this.optionList[t].value();else{var a;i=hs(a=" ".concat(this.keyword)).call(a,this.optionList[t]," ")}if(i&&this.editor.editor.replaceRange(i,n,r),this.optionList[t].goLeft){var o=this.editor.editor.getCursor();this.editor.editor.setCursor(o.line,o.ch-this.optionList[t].goLeft)}if(this.optionList[t].goTop){var s=this.editor.editor.getCursor();this.editor.editor.setCursor(s.line-this.optionList[t].goTop,s.ch)}if(this.optionList[t].selection){var c=this.editor.editor.getCursor().line,l=this.editor.editor.getCursor().ch;this.editor.editor.setSelection({line:c,ch:l-this.optionList[t].selection.from},{line:c,ch:l-this.optionList[t].selection.to})}}}}},{key:"findSelectedItemIndex",value:function(){return AA(Array.prototype).call(this.$suggesterPanel.childNodes,(function(t){return t.classList.contains("cherry-suggester-panel__item--selected")}))}},{key:"enableRelate",value:function(){return this.searchCache}},{key:"onCodeMirrorChange",value:function(t,e){var n=this,r=e.text,i=e.from,a=e.to,o=e.origin,s=1===r.length?r[0]:"";if(!this.enableRelate()&&this.suggesterConfig[s]&&this.startRelate(t,s,i),this.enableRelate()&&(s||"+delete"===o)){var c;if(this.cursorTo=a,s)this.searchKeyCache.push(s);else if("+delete"===o&&(this.searchKeyCache.pop(),0===this.searchKeyCache.length))return void this.stopRelate();"function"==typeof(null===(c=this.suggesterConfig[this.keyword])||void 0===c?void 0:c.suggestList)&&this.suggesterConfig[this.keyword].suggestList(this.searchKeyCache.join(""),(function(t){!1!==t?(n.optionList=t&&t.length?t:[],n.updatePanel(n.optionList)):n.stopRelate()}))}}},{key:"onKeyDown",value:function(t,e){var n,r=this;if(this.tryCreatePanel(),!this.$suggesterPanel)return!1;var i=e.keyCode;if(qv(n=[38,40]).call(n,i)){if(0===this.optionList.length)return void ks((function(){r.stopRelate()}),0);this.cursorMove=!1;var a=this.$suggesterPanel.querySelector(".cherry-suggester-panel__item--selected")||this.$suggesterPanel.querySelector(".cherry-suggester-panel__item:last-child"),o=null;38!==i||a.previousElementSibling?40!==i||a.nextElementSibling?38===i?o=a.previousElementSibling:40===i&&(o=a.nextElementSibling):o=this.$suggesterPanel.firstElementChild:o=this.$suggesterPanel.lastElementChild,a.classList.remove("cherry-suggester-panel__item--selected"),o.classList.add("cherry-suggester-panel__item--selected");var s=this.$suggesterPanel.offsetHeight,c=this.$suggesterPanel.scrollTop,l=c+s,u=o.offsetTop,h=o.offsetHeight;(ul)&&(this.$suggesterPanel.scrollTop=u-s/2)}else if(13===i){var f=this.findSelectedItemIndex();f>=0&&(e.stopPropagation(),this.cursorMove=!1,this.pasteSelectResult(f,e),t.focus()),ks((function(){r.stopRelate()}),0)}else 27!==i&&37!==i&&39!==i||(e.stopPropagation(),t.focus(),ks((function(){r.stopRelate()}),0))}}])}();function Ty(t,e,n){return e=es(e),Ko(t,By()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function By(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(By=function(){return!!t})()}var _y=function(t){function e(){return ra(this,e),Ty(this,e,arguments)}return ss(e,t),$o(e,[{key:"makeHtml",value:function(t){return this.test(t)?t.replace(this.RULE.reg,"$1$2$3$4"):t}},{key:"rule",value:function(){var t={begin:"(^| )\\{",end:"\\}( |$)",content:"([^\n]+?)\\|([^\n]+?)"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),t}}])}(EA);function Sy(t,e,n){return e=es(e),Ko(t,Ly()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Ly(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Ly=function(){return!!t})()}cs(_y,"HOOK_NAME","ruby");var Iy=function(t){function e(t){var n;return ra(this,e),(n=Sy(this,e,[{needCache:!0}])).initBrReg(t.globalConfig.classicBr),n}return ss(e,t),$o(e,[{key:"makeHtml",value:function(t,e){var n=this;return t.replace(this.RULE.reg,(function(t,r,i,a){var o,s,c,l,u,h=n.getLineCount(t,r),f=n.$engine.hash(t),d=n.testHasCache(f);if(!1!==d)return IA(t,d);var A=n.$getPanelInfo(i,a,e),g=A.title,p=A.body,m=A.appendStyle,b=A.className;return IA(t,n.pushCache(hs(o=hs(s=hs(c=hs(l=hs(u='
    ")).call(s,g)).call(o,p,"
    "),f,h))}))}},{key:"$getClassByType",value:function(t){return/(left|right|center)/i.test(t)?"cherry-text-align cherry-text-align__".concat(t):"cherry-panel cherry-panel__".concat(t)}},{key:"$getPanelInfo",value:function(t,e,n){var r,i=this,a={type:this.$getTargetType(t),title:n(this.$getTitle(t)).html,body:e,appendStyle:"",className:""};a.className=this.$getClassByType(a.type),/(left|right|center)/i.test(a.type)&&(a.appendStyle='style="text-align:'.concat(a.type,';"')),a.title=hs(r='
    ')).call(r,a.title,"
    ");var o=function(t){var e,r;if(""===Ph(t).call(t))return"";var a=n(t).html,o="p";return new RegExp("<(".concat(ig,")[^>]*>"),"i").test(a)&&(o="div"),hs(e=hs(r="<".concat(o,">")).call(r,i.$cleanParagraph(a),"")},s="";return s=this.isContainsCache(a.body)?this.makeExcludingCached(a.body,o):o(a.body),a.body='
    '.concat(s,"
    "),a}},{key:"$getTitle",value:function(t){var e=Ph(t).call(t);return/\s/.test(e)?e.replace(/[^\s]+\s/,""):""}},{key:"$getTargetType",value:function(t){var e=/\s/.test(Ph(t).call(t))?Ph(t).call(t).replace(/\s.*$/,""):t;switch(Ph(e).call(e).toLowerCase()){case"primary":case"p":default:return"primary";case"info":case"i":return"info";case"warning":case"w":return"warning";case"danger":case"d":return"danger";case"success":case"s":return"success";case"right":case"r":return"right";case"center":case"c":return"center";case"left":case"l":return"left"}}},{key:"rule",value:function(){return Jd()}}])}(gg);function My(t,e,n){return e=es(e),Ko(t,Oy()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Oy(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Oy=function(){return!!t})()}cs(Iy,"HOOK_NAME","panel");var Dy=function(t){function e(){return ra(this,e),My(this,e,[{needCache:!0}])}return ss(e,t),$o(e,[{key:"makeHtml",value:function(t,e){var n=this;return t.replace(this.RULE.reg,(function(t,r,i,a,o){var s,c,l,u=n.getLineCount(t,r),h=n.$engine.hash(t),f=n.testHasCache(h);if(!1!==f)return IA(t,f);var d=n.$getDetailInfo(i,a,o,e),A=d.type,g=d.html;return IA(t,n.pushCache(hs(s=hs(c=hs(l='
    ')).call(s,g,"
    "),h,u))}))}},{key:"$getDetailInfo",value:function(t,e,n,r){var i=this,a=/\n\s*(\+\+|\+\+-)\s*[^\n]+\n/.test(n)?"multiple":"single",o=n.split(/\n\s*(\+\+[-]{0,1}\s*[^\n]+)\n/),s="-"===t,c=e,l="";return"multiple"===a?Qs(o).call(o,(function(t){if(/^\s*\+\+/.test(t))return s=/^\s*\+\+-/.test(t),c=t.replace(/\+\+[-]{0,1}\s*([^\n]+)$/,"$1"),!0;l+=i.$getDetailHtml(s,c,t,r)})):l=this.$getDetailHtml(s,c,n,r),{type:a,html:l}}},{key:"$getDetailHtml",value:function(t,e,n,r){var i=this,a="
    "),o=function(t){var e,n;if(""===Ph(t).call(t))return"";var a=r(t).html,o="p";return new RegExp("<(".concat(ig,")[^>]*>"),"i").test(a)&&(o="div"),hs(e=hs(n="<".concat(o,">")).call(n,i.$cleanParagraph(a),"")};a+="".concat(r(e).html,"");var s="";return s=this.isContainsCache(n)?this.makeExcludingCached(n,o):o(n),a+='
    '.concat(s,"
    "),a+="
    "}},{key:"rule",value:function(){return Zd()}}])}(gg);function Fy(t,e,n){return e=es(e),Ko(t,Ny()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function Ny(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(Ny=function(){return!!t})()}cs(Dy,"HOOK_NAME","detail");var Ry=function(t){function e(t){return ra(this,e),Fy(this,e,[{needCache:!0}])}return ss(e,t),$o(e,[{key:"beforeMakeHtml",value:function(t){var e=this;return t.replace(this.RULE.reg,(function(t,n){var r,i,a,o,s=null!==(r=null===(i=t.match(/\n/g))||void 0===i?void 0:i.length)&&void 0!==r?r:0,c="fontMatter".concat(s);n.replace(/(?:^|\n)\s*(font-size|fontSize): ([0-9a-zA-Z]+)(\n|$)/,(function(t,n,r){return e.$engine.$cherry.previewer.getDom().style.fontSize=r,t}));var l=/^\s*{/.test(n)?n.replace(/\n/g,""):n.replace(/\n/g,";"),u=hs(a=hs(o='

    '),h=e.pushCache(u,c,s);return"".concat(h,"\n")}))}},{key:"makeHtml",value:function(t,e){return t}},{key:"rule",value:function(){var t={begin:"^\\s*-{3,}[^\\n]*\\n",end:"\\n-{3,}[^\\n]*\\n",content:"([\\s\\S]+?)"};return t.reg=Nd(t,"g",!0),t}}])}(gg);cs(Ry,"HOOK_NAME","frontMatter");var Py=[Ry,vm,km,tv,Yb,Bv,dv,pv,tb,wb,mb,$b,uv,Ym,Cb,Qb,Dy,Iy,Qm,Dv,Lb,Om,zb,Nm,Zp,qp,nm,dm,um,_y,sm,Rv,Uv,Cy],Qy=function(){return $o((function t(e,n){ra(this,t),this.$cherry=n,na(this,"_cherry",{get:function(){return xd.warn("`_engine._cherry` is deprecated. Use `$engine.$cherry` instead."),this.$cherry}}),this.initMath(e),this.$configInit(e),this.hookCenter=new Hp(Py,e,n),this.hooks=this.hookCenter.getHookList(),this.hashCache={},this.hashStrMap={},this.cachedBigData={},this.markdownParams=e,this.currentStrMd5=[],this.globalConfig=e.engine.global,this.htmlWhiteListAppend=this.globalConfig.htmlWhiteList,this.htmlBlackList=this.globalConfig.htmlBlackList,this.urlProcessorMap={}}),[{key:"reMakeHtml",value:function(){var t=this;this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=ks((function(){t.$cherry.lastMarkdownText="",t.hashCache={};var e=t.$cherry.editor.editor.getValue(),n=t.makeHtml(e);t.$cherry.previewer.refresh(n),t.$cherry.$event.emit("afterChange",{markdownText:e,html:n})}),1e3)}},{key:"urlProcessor",value:function(t,e){var n,r=this,i=hs(n="".concat(e,"_")).call(n,t);if(this.urlProcessorMap[i])return this.urlProcessorMap[i];var a=this.$cherry.options.callback.urlProcessor(t,e,(function(t){t?r.urlProcessorMap[i]||(r.urlProcessorMap[i]=t,r.reMakeHtml()):delete r.urlProcessorMap[i]}));return a||t}},{key:"initMath",value:function(t){var e=t.externals,n=t.engine.syntax,r=n.mathBlock.plugins;if(bb()&&(n.mathBlock.src||n.inlineMath.src||n.mathBlock.engine||n.inlineMath.engine)&&!e.MathJax&&!window.MathJax){!function(t){if(bb()){var e=t?["input/asciimath","[tex]/noerrors","[tex]/cancel","[tex]/color","[tex]/boldsymbol","ui/safe"]:["ui/safe"];window.MathJax={startup:{elements:[".Cherry-Math",".Cherry-InlineMath"],typeset:!0},tex:{inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],tags:"ams",packages:{"[+]":["noerrors","cancel","color"]},macros:{bm:["{\\boldsymbol{#1}}",1]}},options:{skipHtmlTags:["script","noscript","style","textarea","pre","code","a"],ignoreHtmlClass:"tex2jax_ignore",processHtmlClass:"tex2jax_process",enableMenu:!1},loader:{load:e}}}}(r);var i=document.createElement("script");i.src=n.mathBlock.src?n.mathBlock.src:n.inlineMath.src,i.async=!0,i.src&&document.head.appendChild(i)}}},{key:"$configInit",value:function(t){if(t.hooksConfig&&Mp(t.hooksConfig.hooksList,Array))for(var e=0;en.size?sp(n.getIterator(),(function(t){lw(e,t)&&cw(r,t)})):Ky(e,(function(t){n.includes(t)&&cw(r,t)})),r},hw=!ow()||u((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}));Dn({target:"Set",proto:!0,real:!0,forced:hw},{intersection:uw});var fw=jy.has,dw=function(t){var e=Zy(this),n=nw(t);if(ew(e)<=n.size)return!1!==Ky(e,(function(t){if(n.includes(t))return!1}),!0);var r=n.getIterator();return!1!==sp(r,(function(t){if(fw(e,t))return Qh(r,"normal",!1)}))};Dn({target:"Set",proto:!0,real:!0,forced:!ow()},{isDisjointFrom:dw});var Aw=function(t){var e=Zy(this),n=nw(t);return!(ew(e)>n.size)&&!1!==Ky(e,(function(t){if(!n.includes(t))return!1}),!0)};Dn({target:"Set",proto:!0,real:!0,forced:!ow()},{isSubsetOf:Aw});var gw=jy.has,pw=function(t){var e=Zy(this),n=nw(t);if(ew(e)2&&Dw(n,arguments[2]);var i=[];return _g(t,Qw,{that:i}),xe(n,"errors",i),n};Ha?Ha(Uw,Pw):Ow(Uw,Pw,{name:!0});var Hw=Uw.prototype=Rn(Pw.prototype,{constructor:zt(1,Uw),message:zt(1,""),name:zt(1,"AggregateError")});Dn({global:!0,constructor:!0,arity:2},{AggregateError:Uw});var $w,jw,Kw,zw,Gw=Ft("species"),Xw=/(?:ipad|iphone|ipod).*applewebkit/i.test(G),Vw=j.setImmediate,Ww=j.clearImmediate,qw=j.process,Yw=j.Dispatch,Jw=j.Function,Zw=j.MessageChannel,tk=j.String,ek=0,nk={},rk="onreadystatechange";u((function(){$w=j.location}));var ik=function(t){if(Bt(nk,t)){var e=nk[t];delete nk[t],e()}},ak=function(t){return function(){ik(t)}},ok=function(t){ik(t.data)},sk=function(t){j.postMessage(tk(t),$w.protocol+"//"+$w.host)};Vw&&Ww||(Vw=function(t){ps(arguments.length,1);var e=H(t)?t:Jw(t),n=Te(arguments,1);return nk[++ek]=function(){ve(e,void 0,n)},jw(ek),ek},Ww=function(t){delete nk[t]},ab?jw=function(t){qw.nextTick(ak(t))}:Yw&&Yw.now?jw=function(t){Yw.now(ak(t))}:Zw&&!Xw?(zw=(Kw=new Zw).port2,Kw.port1.onmessage=ok,jw=ke(zw.postMessage,zw)):j.addEventListener&&H(j.postMessage)&&!j.importScripts&&$w&&"file:"!==$w.protocol&&!u(sk)?(jw=sk,j.addEventListener("message",ok,!1)):jw=rk in $t("script")?function(t){Cn.appendChild($t("script"))[rk]=function(){Cn.removeChild(this),ik(t)}}:function(t){setTimeout(ak(t),0)});var ck={set:Vw,clear:Ww},lk=Object.getOwnPropertyDescriptor,uk=function(){this.head=null,this.tail=null};uk.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var hk,fk,dk,Ak,gk,pk=uk,mk=/ipad|iphone|ipod/i.test(G)&&"undefined"!=typeof Pebble,bk=/web0s(?!.*chrome)/i.test(G),vk=function(t){if(!Ht)return j[t];var e=lk(j,t);return e&&e.value},yk=ck,wk=pk,kk=mk,xk=bk,Ck=yk.set,Ek=j.MutationObserver||j.WebKitMutationObserver,Tk=j.document,Bk=j.process,_k=j.Promise,Sk=vk("queueMicrotask");if(!Sk){var Lk=new wk,Ik=function(){var t,e;for(ab&&(t=Bk.domain)&&t.exit();e=Lk.get();)try{e()}catch(t){throw Lk.head&&hk(),t}t&&t.enter()};Xw||ab||xk||!Ek||!Tk?!kk&&_k&&_k.resolve?((Ak=_k.resolve(void 0)).constructor=_k,gk=ke(Ak.then,Ak),hk=function(){gk(Ik)}):ab?hk=function(){Bk.nextTick(Ik)}:(Ck=ke(Ck,j),hk=function(){Ck(Ik)}):(fk=!0,dk=Tk.createTextNode(""),new Ek(Ik).observe(dk,{characterData:!0}),hk=function(){dk.data=fk=!fk}),Sk=function(t){Lk.head||hk(),Lk.add(t)}}var Mk,Ok,Dk=Sk,Fk=j.Promise,Nk="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Rk=!Nk&&!ab&&"object"==typeof window&&"object"==typeof document,Pk=Fk,Qk=Rk,Uk=Pk&&Pk.prototype,Hk=Ft("species"),$k=!1,jk=H(j.PromiseRejectionEvent),Kk=we("Promise",(function(){var t=He(Pk),e=t!==String(Pk);if(!e&&66===Y)return!0;if(!Uk.catch||!Uk.finally)return!0;if(!Y||Y<51||!/native code/.test(t)){var n=new Pk((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[Hk]=r,!($k=n.then((function(){}))instanceof r))return!0}return!e&&(Qk||Nk)&&!jk})),zk=TypeError,Gk=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new zk("Bad Promise constructor");e=t,n=r})),this.resolve=ut(e),this.reject=ut(n)},Xk=function(t,e){var n,r=ue(t).constructor;return void 0===r||R(n=ue(r)[Gw])?e:Nn(n)},Vk=Dk,Wk=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}},qk=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Yk={CONSTRUCTOR:Kk,REJECTION_EVENT:jk,SUBCLASSING:$k},Jk={f:function(t){return new Gk(t)}},Zk=yk.set,tx="Promise",ex=Yk.CONSTRUCTOR,nx=Yk.REJECTION_EVENT,rx=Ir.getterFor(tx),ix=Ir.set,ax=Pk&&Pk.prototype,ox=Pk,sx=ax,cx=j.TypeError,lx=j.document,ux=j.process,hx=Jk.f,fx=hx,dx=!!(lx&&lx.createEvent&&j.dispatchEvent),Ax="unhandledrejection",gx=function(t){var e;return!(!ft(t)||!H(e=t.then))&&e},px=function(t,e){var n,r,i,a=e.value,o=1===e.state,s=o?t.ok:t.fail,c=t.resolve,l=t.reject,u=t.domain;try{s?(o||(2===e.rejection&&wx(e),e.rejection=1),!0===s?n=a:(u&&u.enter(),n=s(a),u&&(u.exit(),i=!0)),n===t.promise?l(new cx("Promise-chain cycle")):(r=gx(n))?ht(r,n,c,l):c(n)):l(a)}catch(t){u&&!i&&u.exit(),l(t)}},mx=function(t,e){t.notified||(t.notified=!0,Vk((function(){for(var n,r=t.reactions;n=r.get();)px(n,t);t.notified=!1,e&&!t.rejection&&vx(t)})))},bx=function(t,e,n){var r,i;dx?((r=lx.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),j.dispatchEvent(r)):r={promise:e,reason:n},!nx&&(i=j["on"+t])?i(r):t===Ax&&Wk("Unhandled promise rejection",n)},vx=function(t){ht(Zk,j,(function(){var e,n=t.facade,r=t.value;if(yx(t)&&(e=qk((function(){ab?ux.emit("unhandledRejection",r,n):bx(Ax,n,r)})),t.rejection=ab||yx(t)?2:1,e.error))throw e.value}))},yx=function(t){return 1!==t.rejection&&!t.parent},wx=function(t){ht(Zk,j,(function(){var e=t.facade;ab?ux.emit("rejectionHandled",e):bx("rejectionhandled",e,t.value)}))},kx=function(t,e,n){return function(r){t(e,r,n)}},xx=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,mx(t,!0))},Cx=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new cx("Promise can't be resolved itself");var r=gx(e);r?Vk((function(){var n={done:!1};try{ht(r,e,kx(Cx,n,t),kx(xx,n,t))}catch(e){xx(n,e,t)}})):(t.value=e,t.state=1,mx(t,!1))}catch(e){xx({done:!1},e,t)}}};ex&&(sx=(ox=function(t){Sg(this,sx),ut(t),ht(Mk,this);var e=rx(this);try{t(kx(Cx,e),kx(xx,e))}catch(t){xx(e,t)}}).prototype,(Mk=function(t){ix(this,{type:tx,done:!1,notified:!1,parent:!1,reactions:new wk,rejection:!1,state:0,value:void 0})}).prototype=ir(sx,"then",(function(t,e){var n=rx(this),r=hx(Xk(this,ox));return n.parent=!0,r.ok=!H(t)||t,r.fail=H(e)&&e,r.domain=ab?ux.domain:void 0,0===n.state?n.reactions.add(r):Vk((function(){px(r,n)})),r.promise})),Ok=function(){var t=new Mk,e=rx(t);this.promise=t,this.resolve=kx(Cx,e),this.reject=kx(xx,e)},Jk.f=hx=function(t){return t===ox||undefined===t?new Ok(t):fx(t)}),Dn({global:!0,constructor:!0,wrap:!0,forced:ex},{Promise:ox}),Lr(ox,tx,!1,!0),Ng(tx);var Ex=Yk.CONSTRUCTOR||!tf((function(t){Pk.all(t).then(void 0,(function(){}))}));Dn({target:"Promise",stat:!0,forced:Ex},{all:function(t){var e=this,n=Jk.f(e),r=n.resolve,i=n.reject,a=qk((function(){var n=ut(e.resolve),a=[],o=0,s=1;_g(t,(function(t){var c=o++,l=!1;s++,ht(n,e,t).then((function(t){l||(l=!0,a[c]=t,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise}});var Tx=Yk.CONSTRUCTOR;Pk&&Pk.prototype;Dn({target:"Promise",proto:!0,forced:Tx,real:!0},{catch:function(t){return this.then(void 0,t)}}),Dn({target:"Promise",stat:!0,forced:Ex},{race:function(t){var e=this,n=Jk.f(e),r=n.reject,i=qk((function(){var i=ut(e.resolve);_g(t,(function(t){ht(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}}),Dn({target:"Promise",stat:!0,forced:Yk.CONSTRUCTOR},{reject:function(t){var e=Jk.f(this);return(0,e.reject)(t),e.promise}});var Bx=function(t,e){if(ue(t),ft(e)&&e.constructor===t)return e;var n=Jk.f(t);return(0,n.resolve)(e),n.promise},_x=Yk.CONSTRUCTOR,Sx=nt("Promise"),Lx=!_x;Dn({target:"Promise",stat:!0,forced:gt},{resolve:function(t){return Bx(Lx&&this===Sx?Pk:this,t)}}),Dn({target:"Promise",stat:!0,forced:Ex},{allSettled:function(t){var e=this,n=Jk.f(e),r=n.resolve,i=n.reject,a=qk((function(){var n=ut(e.resolve),i=[],a=0,o=1;_g(t,(function(t){var s=a++,c=!1;o++,ht(n,e,t).then((function(t){c||(c=!0,i[s]={status:"fulfilled",value:t},--o||r(i))}),(function(t){c||(c=!0,i[s]={status:"rejected",reason:t},--o||r(i))}))})),--o||r(i)}));return a.error&&i(a.value),n.promise}});var Ix="No one promise resolved";Dn({target:"Promise",stat:!0,forced:Ex},{any:function(t){var e=this,n=nt("AggregateError"),r=Jk.f(e),i=r.resolve,a=r.reject,o=qk((function(){var r=ut(e.resolve),o=[],s=0,c=1,l=!1;_g(t,(function(t){var u=s++,h=!1;c++,ht(r,e,t).then((function(t){h||l||(l=!0,i(t))}),(function(t){h||l||(h=!0,o[u]=t,--c||a(new n(o,Ix)))}))})),--c||a(new n(o,Ix))}));return o.error&&a(o.value),r.promise}}),Dn({target:"Promise",stat:!0},{withResolvers:function(){var t=Jk.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var Mx=Pk&&Pk.prototype,Ox=!!Pk&&u((function(){Mx.finally.call({then:function(){}},(function(){}))}));Dn({target:"Promise",proto:!0,real:!0,forced:Ox},{finally:function(t){var e=Xk(this,nt("Promise")),n=H(t);return this.then(n?function(n){return Bx(e,t()).then((function(){return n}))}:t,n?function(n){return Bx(e,t()).then((function(){throw n}))}:t)}});var Dx=$.Promise,Fx=Dx,Nx=Array.isArray,Rx=Object.prototype.toString,Px=Nx||function(t){return"[object Array]"===Rx.call(t)};var Qx="2",Ux=function(t){return t&&"VirtualNode"===t.type&&t.version===Qx};var Hx=function(t){return t&&"Widget"===t.type};var $x=function(t){return t&&"Thunk"===t.type};var jx=function(t){return t&&("function"==typeof t.hook&&!t.hasOwnProperty("hook")||"function"==typeof t.unhook&&!t.hasOwnProperty("unhook"))};var Kx=Xx,zx={},Gx=[];function Xx(t,e,n,r,i){this.tagName=t,this.properties=e||zx,this.children=n||Gx,this.key=null!=r?String(r):void 0,this.namespace="string"==typeof i?i:null;var a,o=n&&n.length||0,s=0,c=!1,l=!1,u=!1;for(var h in e)if(e.hasOwnProperty(h)){var f=e[h];jx(f)&&f.unhook&&(a||(a={}),a[h]=f)}for(var d=0;d>>0:a>>>0;(s=i.exec(e))&&!((c=s.index+s[0].length)>f&&(u.push(e.slice(f,s.index)),!r&&s.length>1&&s[0].replace(o,(function(){for(var e=1;e1&&s.index=a));)i.lastIndex===s.index&&i.lastIndex++;return f===e.length?!l&&i.test("")||u.push(""):u.push(e.slice(f)),u.length>a?u.slice(0,a):u},e}(),Jx=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,Zx=/^\.|#/,tC=function(t,e){if(!t)return"DIV";var n,r,i,a,o=!e.hasOwnProperty("id"),s=Yx(t,Jx),c=null;Zx.test(s[1])&&(c="DIV");for(a=0;a=i.length?e.length:i[c],g=0;g=A&&s.push(p)}for(var m,b=s.slice(),v=0,y=[],w=[],k=0;kl?c:l,h=0;h=e&&i<=n;if(in))return!0;o=r-1}}return!1}function KC(t,e){return t>e?1:-1}var zC=function(t,e){if(Hx(t)&&Hx(e))return"name"in t&&"name"in e?t.id===e.id:t.init===e.init;return!1};var GC=function(t,e,n){var r=t.type,i=t.vNode,a=t.patch;switch(r){case gC.REMOVE:return function(t,e){var n=t.parentNode;n&&n.removeChild(t);return XC(t,e),null}(e,i);case gC.INSERT:return function(t,e,n){var r=n.render(e,n);t&&t.appendChild(r);return t}(e,a,n);case gC.VTEXT:return function(t,e,n,r){var i;if(3===t.nodeType)t.replaceData(0,t.length,n.text),i=t;else{var a=t.parentNode;i=r.render(n,r),a&&i!==t&&a.replaceChild(i,t)}return i}(e,0,a,n);case gC.WIDGET:return function(t,e,n,r){var i,a=zC(e,n);i=a?n.update(e,t)||t:r.render(n,r);var o=t.parentNode;o&&i!==t&&o.replaceChild(i,t);a||XC(t,e);return i}(e,i,a,n);case gC.VNODE:return function(t,e,n,r){var i=t.parentNode,a=r.render(n,r);i&&a!==t&&i.replaceChild(a,t);return a}(e,0,a,n);case gC.ORDER:return function(t,e){for(var n,r,i,a=t.childNodes,o={},s=0;s=c++?null:a[i.to])}(e,a),e;case gC.PROPS:return FC(e,a,i.properties),e;case gC.THUNK:return function(t,e){t&&e&&t!==e&&t.parentNode&&t.parentNode.replaceChild(e,t);return e}(e,n.patch(e,a,n));default:return e}};function XC(t,e){"function"==typeof e.destroy&&Hx(e)&&e.destroy(t)}var VC=function t(e,n,r){return(r=r||{}).patch=r.patch&&r.patch!==t?r.patch:WC,r.render=r.render||QC,r.patch(e,n,r)};function WC(t,e,n){var r=function(t){var e=[];for(var n in t)"a"!==n&&e.push(Number(n));return e}(e);if(0===r.length)return t;var i=HC(t,e.a,r),a=t.ownerDocument;n.document||a===DC||(n.document=a);for(var o=0;o=r&&A>=n)return o[s]=c,this.$backtraceSnakes(o,n,r,s)}o[s]=c}return[]}},{key:"$backtraceSnakes",value:function(t,e,n,r){for(var i=[],a={x:n,y:e},o=r;o>0;o--){var s=t[o],c=t[o-1],l=a.x-a.y,u=s[l],h=l===-o||l!==o&&c[l+1]>c[l-1],f=h?l+1:l-1,d=c[f],A=d-f,g=h?d:d+1;i.unshift({xStart:d,xMid:g,xEnd:u}),a.x=d,a.y=A}return i}},{key:"assembleResult",value:function(t,e,n){var r,i=this,a="color: gray",o="",s=[],c=0,l=[],u={},h={},f={};return Qs(t).call(t,(function(t,r){var d=t.xStart;if(0===r&&0!==t.xStart)for(var A=0;A0;)t[i]=t[--i];i!==a++&&(t[i]=r)}else for(var o=eE(n/2),s=nE(Te(t,0,o),e),c=nE(Te(t,o),e),l=s.length,u=c.length,h=0,f=0;h=e.length)return t.target=void 0,Ya(void 0,!0);var r=e[n];switch(t.kind){case"keys":return Ya(r.key,!1);case"values":return Ya(r.value,!1)}return Ya([r.key,r.value],!1)}),!0),PE=function(t){this.entries=[],this.url=null,void 0!==t&&(ft(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===yE(t,0)?BE(t,1):t:Cr(t)))};PE.prototype={type:oE,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,i,a,o,s,c=this.entries,l=jh(t);if(l)for(n=(e=Xh(t,l)).next;!(r=ht(n,e)).done;){if(a=(i=Xh(ue(r.value))).next,(o=ht(a,i)).done||(s=ht(a,i)).done||!ht(a,i).done)throw new mE("Expected sequence with length 2");kE(c,{key:Cr(o.value),value:Cr(s.value)})}else for(var u in t)Bt(t,u)&&kE(c,{key:u,value:Cr(t[u])})},parseQuery:function(t){if(t)for(var e,n,r=this.entries,i=TE(t,"&"),a=0;a0?arguments[0]:void 0));Ht||(this.size=t.entries.length)},UE=QE.prototype;if(Fg(UE,{append:function(t,e){var n=lE(this);ps(arguments.length,2),kE(n.entries,{key:Cr(t),value:Cr(e)}),Ht||this.length++,n.updateURL()},delete:function(t){for(var e=lE(this),n=ps(arguments.length,1),r=e.entries,i=Cr(t),a=n<2?void 0:arguments[1],o=void 0===a?a:Cr(a),s=0;se.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=lE(this).entries,r=ke(t,arguments.length>1?arguments[1]:void 0),i=0;i1?jE(arguments[1]):{})}}),H(fE)){var KE=function(t){return Sg(this,AE),new fE(t,arguments.length>1?jE(arguments[1]):{})};AE.constructor=KE,KE.prototype=AE,Dn({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:KE})}}var zE,GE={URLSearchParams:QE,getState:lE},XE=2147483647,VE=/[^\0-\u007E]/,WE=/[.\u3002\uFF0E\uFF61]/g,qE="Overflow: input needs wider integers to process",YE=RangeError,JE=w(WE.exec),ZE=Math.floor,tT=String.fromCharCode,eT=w("".charCodeAt),nT=w([].join),rT=w([].push),iT=w("".replace),aT=w("".split),oT=w("".toLowerCase),sT=function(t){return t+22+75*(t<26)},cT=function(t,e,n){var r=0;for(t=n?ZE(t/700):t>>1,t+=ZE(t/e);t>455;)t=ZE(t/35),r+=36;return ZE(r+36*t/(t+38))},lT=function(t){var e=[];t=function(t){for(var e=[],n=0,r=t.length;n=55296&&i<=56319&&n=a&&rZE((XE-o)/h))throw new YE(qE);for(o+=(u-a)*h,a=u,n=0;nXE)throw new YE(qE);if(r===a){for(var f=o,d=36;;){var A=d<=s?1:d>=s+26?26:d-s;if(f?@[\\\]^|]/,KT=/[\0\t\n\r #/:<>?@[\\\]^|]/,zT=/^[\u0000-\u0020]+/,GT=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,XT=/[\t\n\r]/g,VT=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)MT(e,t%256),t=vT(t/256);return xT(e,".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,i=0,a=0;a<8;a++)0!==t[a]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(e=r,n=i),e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=CT(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},WT={},qT=Bs({},WT,{" ":1,'"':1,"<":1,">":1,"`":1}),YT=Bs({},qT,{"#":1,"?":1,"{":1,"}":1}),JT=Bs({},YT,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ZT=function(t,e){var n=hT(t,0);return n>32&&n<127&&!Bt(e,t)?t:encodeURIComponent(t)},tB={ftp:21,file:null,http:80,https:443,ws:80,wss:443},eB=function(t,e){var n;return 2===t.length&&kT(NT,wT(t,0))&&(":"===(n=wT(t,1))||!e&&"|"===n)},nB=function(t){var e;return t.length>1&&eB(LT(t,0,2))&&(2===t.length||"/"===(e=wT(t,2))||"\\"===e||"?"===e||"#"===e)},rB=function(t){return"."===t||"%2e"===IT(t)},iB={},aB={},oB={},sB={},cB={},lB={},uB={},hB={},fB={},dB={},AB={},gB={},pB={},mB={},bB={},vB={},yB={},wB={},kB={},xB={},CB={},EB=function(t,e,n){var r,i,a,o=Cr(t);if(e){if(i=this.parse(o))throw new mT(i);this.searchParams=null}else{if(void 0!==n&&(r=new EB(n,!0)),i=this.parse(o,null,r))throw new mT(i);(a=gT(new AT)).bindURL(this),this.searchParams=a}};EB.prototype={type:"URL",parse:function(t,e,n){var r,i,a,o,s,c=this,l=e||iB,u=0,h="",f=!1,d=!1,A=!1;for(t=Cr(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=BT(t,zT,""),t=BT(t,GT,"$1")),t=BT(t,XT,""),r=Zh(t);u<=r.length;){switch(i=r[u],l){case iB:if(!i||!kT(NT,i)){if(e)return OT;l=oB;continue}h+=IT(i),l=aB;break;case aB:if(i&&(kT(RT,i)||"+"===i||"-"===i||"."===i))h+=IT(i);else{if(":"!==i){if(e)return OT;h="",l=oB,u=0;continue}if(e&&(c.isSpecial()!==Bt(tB,h)||"file"===h&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=h,e)return void(c.isSpecial()&&tB[c.scheme]===c.port&&(c.port=null));h="","file"===c.scheme?l=mB:c.isSpecial()&&n&&n.scheme===c.scheme?l=sB:c.isSpecial()?l=hB:"/"===r[u+1]?(l=cB,u++):(c.cannotBeABaseURL=!0,TT(c.path,""),l=kB)}break;case oB:if(!n||n.cannotBeABaseURL&&"#"!==i)return OT;if(n.cannotBeABaseURL&&"#"===i){c.scheme=n.scheme,c.path=Te(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=CB;break}l="file"===n.scheme?mB:lB;continue;case sB:if("/"!==i||"/"!==r[u+1]){l=lB;continue}l=fB,u++;break;case cB:if("/"===i){l=dB;break}l=wB;continue;case lB:if(c.scheme=n.scheme,i===zE)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Te(n.path),c.query=n.query;else if("/"===i||"\\"===i&&c.isSpecial())l=uB;else if("?"===i)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Te(n.path),c.query="",l=xB;else{if("#"!==i){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Te(n.path),c.path.length--,l=wB;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Te(n.path),c.query=n.query,c.fragment="",l=CB}break;case uB:if(!c.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=wB;continue}l=dB}else l=fB;break;case hB:if(l=fB,"/"!==i||"/"!==wT(h,u+1))continue;u++;break;case fB:if("/"!==i&&"\\"!==i){l=dB;continue}break;case dB:if("@"===i){f&&(h="%40"+h),f=!0,a=Zh(h);for(var g=0;g65535)return FT;c.port=c.isSpecial()&&b===tB[c.scheme]?null:b,h=""}if(e)return;l=yB;continue}return FT}h+=i;break;case mB:if(c.scheme="file","/"===i||"\\"===i)l=bB;else{if(!n||"file"!==n.scheme){l=wB;continue}switch(i){case zE:c.host=n.host,c.path=Te(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=Te(n.path),c.query="",l=xB;break;case"#":c.host=n.host,c.path=Te(n.path),c.query=n.query,c.fragment="",l=CB;break;default:nB(xT(Te(r,u),""))||(c.host=n.host,c.path=Te(n.path),c.shortenPath()),l=wB;continue}}break;case bB:if("/"===i||"\\"===i){l=vB;break}n&&"file"===n.scheme&&!nB(xT(Te(r,u),""))&&(eB(n.path[0],!0)?TT(c.path,n.path[0]):c.host=n.host),l=wB;continue;case vB:if(i===zE||"/"===i||"\\"===i||"?"===i||"#"===i){if(!e&&eB(h))l=wB;else if(""===h){if(c.host="",e)return;l=yB}else{if(o=c.parseHost(h))return o;if("localhost"===c.host&&(c.host=""),e)return;h="",l=yB}continue}h+=i;break;case yB:if(c.isSpecial()){if(l=wB,"/"!==i&&"\\"!==i)continue}else if(e||"?"!==i)if(e||"#"!==i){if(i!==zE&&(l=wB,"/"!==i))continue}else c.fragment="",l=CB;else c.query="",l=xB;break;case wB:if(i===zE||"/"===i||"\\"===i&&c.isSpecial()||!e&&("?"===i||"#"===i)){if(".."===(s=IT(s=h))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"===i||"\\"===i&&c.isSpecial()||TT(c.path,"")):rB(h)?"/"===i||"\\"===i&&c.isSpecial()||TT(c.path,""):("file"===c.scheme&&!c.path.length&&eB(h)&&(c.host&&(c.host=""),h=wT(h,0)+":"),TT(c.path,h)),h="","file"===c.scheme&&(i===zE||"?"===i||"#"===i))for(;c.path.length>1&&""===c.path[0];)_T(c.path);"?"===i?(c.query="",l=xB):"#"===i&&(c.fragment="",l=CB)}else h+=ZT(i,YT);break;case kB:"?"===i?(c.query="",l=xB):"#"===i?(c.fragment="",l=CB):i!==zE&&(c.path[0]+=ZT(i,WT));break;case xB:e||"#"!==i?i!==zE&&("'"===i&&c.isSpecial()?c.query+="%27":c.query+="#"===i?"%23":ZT(i,WT)):(c.fragment="",l=CB);break;case CB:i!==zE&&(c.fragment+=ZT(i,qT))}u++}},parseHost:function(t){var e,n,r;if("["===wT(t,0)){if("]"!==wT(t,t.length-1))return DT;if(e=function(t){var e,n,r,i,a,o,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,h=0,f=function(){return wT(t,h)};if(":"===f()){if(":"!==wT(t,1))return;h+=2,u=++l}for(;f();){if(8===l)return;if(":"!==f()){for(e=n=0;n<4&&kT($T,f());)e=16*e+bT(f(),16),h++,n++;if("."===f()){if(0===n)return;if(h-=n,l>6)return;for(r=0;f();){if(i=null,r>0){if(!("."===f()&&r<4))return;h++}if(!kT(PT,f()))return;for(;kT(PT,f());){if(a=bT(f(),10),null===i)i=a;else{if(0===i)return;i=10*i+a}if(i>255)return;h++}c[l]=256*c[l]+i,2!=++r&&4!==r||l++}if(4!==r)return;break}if(":"===f()){if(h++,!f())return}else if(f())return;c[l++]=e}else{if(null!==u)return;h++,u=++l}}if(null!==u)for(o=l-u,l=7;0!==l&&o>0;)s=c[l],c[l--]=c[u+o-1],c[u+--o]=s;else if(8!==l)return;return c}(LT(t,1,-1)),!e)return DT;this.host=e}else if(this.isSpecial()){if(t=uT(t),kT(jT,t))return DT;if(e=function(t){var e,n,r,i,a,o,s,c=ST(t,".");if(c.length&&""===c[c.length-1]&&c.length--,(e=c.length)>4)return t;for(n=[],r=0;r1&&"0"===wT(i,0)&&(a=kT(QT,i)?16:8,i=LT(i,8===a?1:2)),""===i)o=0;else{if(!kT(10===a?HT:8===a?UT:$T,i))return t;o=bT(i,a)}TT(n,o)}for(r=0;r=yT(256,5-e))return null}else if(o>255)return null;for(s=ET(n),r=0;r1?arguments[1]:void 0,r=fT(e,new EB(t,!1,n));Ht||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},BB=TB.prototype,_B=function(t,e){return{get:function(){return dT(this)[t]()},set:e&&function(t){return dT(this)[e](t)},configurable:!0,enumerable:!0}};if(Ht&&(Br(BB,"href",_B("serialize","setHref")),Br(BB,"origin",_B("getOrigin")),Br(BB,"protocol",_B("getProtocol","setProtocol")),Br(BB,"username",_B("getUsername","setUsername")),Br(BB,"password",_B("getPassword","setPassword")),Br(BB,"host",_B("getHost","setHost")),Br(BB,"hostname",_B("getHostname","setHostname")),Br(BB,"port",_B("getPort","setPort")),Br(BB,"pathname",_B("getPathname","setPathname")),Br(BB,"search",_B("getSearch","setSearch")),Br(BB,"searchParams",_B("getSearchParams")),Br(BB,"hash",_B("getHash","setHash"))),ir(BB,"toJSON",(function(){return dT(this).serialize()}),{enumerable:!0}),ir(BB,"toString",(function(){return dT(this).serialize()}),{enumerable:!0}),pT){var SB=pT.createObjectURL,LB=pT.revokeObjectURL;SB&&ir(TB,"createObjectURL",ke(SB,pT)),LB&&ir(TB,"revokeObjectURL",ke(LB,pT))}Lr(TB,"URL"),Dn({global:!0,constructor:!0,forced:!rE,sham:!Ht},{URL:TB});var IB=nt("URL"),MB=rE&&u((function(){IB.canParse()})),OB=u((function(){return 1!==IB.canParse.length}));Dn({target:"URL",stat:!0,forced:!MB||OB},{canParse:function(t){var e=ps(arguments.length,1),n=Cr(t),r=e<2||void 0===arguments[1]?void 0:Cr(arguments[1]);try{return!!new IB(n,r)}catch(t){return!1}}});var DB=nt("URL");Dn({target:"URL",stat:!0,forced:!rE},{parse:function(t){var e=ps(arguments.length,1),n=Cr(t),r=e<2||void 0===arguments[1]?void 0:Cr(arguments[1]);try{return new DB(n,r)}catch(t){return null}}});var FB=$.URL,NB=r((function(t,e){t.exports=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};function e(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=55296&&i<=56319&&n>10),o%1024+56320)),(i+1===n||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f="undefined"==typeof Uint8Array?[]:new Uint8Array(256),d=0;d>4,u[c++]=(15&r)<<4|i>>2,u[c++]=(3&i)<<6|63&a;return l},b=function(t){for(var e=t.length,n=[],r=0;r>y,C=(1<>y)+32,T=65536>>w,B=(1<=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>y])<>y)])<>w),e=this.index[e],e+=t>>y&B,e=((e=this.index[e])<F?(i.push(!0),o-=F):i.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return r.push(a),n.push(q);if(o===Q||o===z){if(0===a)return r.push(a),n.push(ut);var s=n[a-1];return-1===Ot.indexOf(s)?(r.push(r[a-1]),n.push(s)):(r.push(a),n.push(ut))}return r.push(a),o===ht?n.push("strict"===e?et:mt):o===kt||o===lt?n.push(ut):o===xt?t>=131072&&t<=196605||t>=196608&&t<=262141?n.push(mt):n.push(ut):void n.push(o)})),[r,n,i]},Rt=function(t,e,n,r){var i=r[n];if(Array.isArray(t)?-1!==t.indexOf(i):t===i)for(var a=n;a<=r.length;){if((c=r[++a])===e)return!0;if(c!==K)break}if(i===K)for(a=n;a>0;){var o=r[--a];if(Array.isArray(t)?-1!==t.indexOf(o):t===o)for(var s=n;s<=r.length;){var c;if((c=r[++s])===e)return!0;if(c!==K)break}if(o!==K)break}return!1},Pt=function(t,e){for(var n=t;n>=0;){var r=e[n];if(r!==K)return r;n--}return 0},Qt=function(t,e,n,r,i){if(0===n[r])return Tt;var a=r-1;if(Array.isArray(i)&&!0===i[a])return Tt;var o=a-1,s=a+1,c=e[a],l=o>=0?e[o]:0,u=e[s];if(c===R&&u===P)return Tt;if(-1!==Lt.indexOf(c))return Et;if(-1!==Lt.indexOf(u))return Tt;if(-1!==It.indexOf(u))return Tt;if(Pt(a,e)===$)return Bt;if(_t.get(t[a])===z)return Tt;if((c===ft||c===dt)&&_t.get(t[s])===z)return Tt;if(c===H||u===H)return Tt;if(c===j)return Tt;if(-1===[K,X,W].indexOf(c)&&u===j)return Tt;if(-1!==[Y,J,Z,it,ct].indexOf(u))return Tt;if(Pt(a,e)===nt)return Tt;if(Rt(rt,nt,a,e))return Tt;if(Rt([Y,J],et,a,e))return Tt;if(Rt(G,G,a,e))return Tt;if(c===K)return Bt;if(c===rt||u===rt)return Tt;if(u===q||c===q)return Bt;if(-1!==[X,W,et].indexOf(u)||c===V)return Tt;if(l===pt&&-1!==Ft.indexOf(c))return Tt;if(c===ct&&u===pt)return Tt;if(u===tt)return Tt;if(-1!==St.indexOf(u)&&c===at||-1!==St.indexOf(c)&&u===at)return Tt;if(c===st&&-1!==[mt,ft,dt].indexOf(u)||-1!==[mt,ft,dt].indexOf(c)&&u===ot)return Tt;if(-1!==St.indexOf(c)&&-1!==Mt.indexOf(u)||-1!==Mt.indexOf(c)&&-1!==St.indexOf(u))return Tt;if(-1!==[st,ot].indexOf(c)&&(u===at||-1!==[nt,W].indexOf(u)&&e[s+1]===at)||-1!==[nt,W].indexOf(c)&&u===at||c===at&&-1!==[at,ct,it].indexOf(u))return Tt;if(-1!==[at,ct,it,Y,J].indexOf(u))for(var h=a;h>=0;){if((f=e[h])===at)return Tt;if(-1===[ct,it].indexOf(f))break;h--}if(-1!==[st,ot].indexOf(u))for(h=-1!==[Y,J].indexOf(c)?o:a;h>=0;){var f;if((f=e[h])===at)return Tt;if(-1===[ct,it].indexOf(f))break;h--}if(bt===c&&-1!==[bt,vt,At,gt].indexOf(u)||-1!==[vt,At].indexOf(c)&&-1!==[vt,yt].indexOf(u)||-1!==[yt,gt].indexOf(c)&&u===yt)return Tt;if(-1!==Dt.indexOf(c)&&-1!==[tt,ot].indexOf(u)||-1!==Dt.indexOf(u)&&c===st)return Tt;if(-1!==St.indexOf(c)&&-1!==St.indexOf(u))return Tt;if(c===it&&-1!==St.indexOf(u))return Tt;if(-1!==St.concat(at).indexOf(c)&&u===nt&&-1===Ct.indexOf(t[s])||-1!==St.concat(at).indexOf(u)&&c===J)return Tt;if(c===wt&&u===wt){for(var d=n[a],A=1;d>0&&e[--d]===wt;)A++;if(A%2!=0)return Tt}return c===ft&&u===dt?Tt:Bt},Ut=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var n=Nt(t,e.lineBreak),r=n[0],i=n[1],a=n[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(i=i.map((function(t){return-1!==[at,ut,kt].indexOf(t)?mt:t})));var o="keep-all"===e.wordBreak?a.map((function(e,n){return e&&t[n]>=19968&&t[n]<=40959})):void 0;return[r,i,o]},Ht=function(){function t(t,e,n,r){this.codePoints=t,this.required=e===Et,this.start=n,this.end=r}return t.prototype.slice=function(){return u.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),$t=function(t,e){var n=l(t),r=Ut(n,e),i=r[0],a=r[1],o=r[2],s=n.length,c=0,u=0;return{next:function(){if(u>=s)return{done:!0,value:null};for(var t=Tt;u=Fe&&t<=57},Xe=function(t){return t>=55296&&t<=57343},Ve=function(t){return Ge(t)||t>=He&&t<=je||t>=Ne&&t<=Pe},We=function(t){return t>=Ne&&t<=Ue},qe=function(t){return t>=He&&t<=ze},Ye=function(t){return We(t)||qe(t)},Je=function(t){return t>=ye},Ze=function(t){return t===Xt||t===qt||t===Yt},tn=function(t){return Ye(t)||Je(t)||t===oe},en=function(t){return tn(t)||Ge(t)||t===se},nn=function(t){return t>=_e&&t<=Se||t===Le||t>=Ie&&t<=Me||t===Oe},rn=function(t,e){return t===Wt&&e!==Xt},an=function(t,e,n){return t===se?tn(e)||rn(e,n):!!tn(t)||!(t!==Wt||!rn(t,e))},on=function(t,e,n){return t===xe||t===se?!!Ge(e)||e===Be&&Ge(n):Ge(t===Be?e:t)},sn=function(t){var e=0,n=1;t[e]!==xe&&t[e]!==se||(t[e]===se&&(n=-1),e++);for(var r=[];Ge(t[e]);)r.push(t[e++]);var i=r.length?parseInt(u.apply(void 0,r),10):0;t[e]===Be&&e++;for(var a=[];Ge(t[e]);)a.push(t[e++]);var o=a.length,s=o?parseInt(u.apply(void 0,a),10):0;t[e]!==$e&&t[e]!==Re||e++;var c=1;t[e]!==xe&&t[e]!==se||(t[e]===se&&(c=-1),e++);for(var l=[];Ge(t[e]);)l.push(t[e++]);var h=l.length?parseInt(u.apply(void 0,l),10):0;return n*(i+s*Math.pow(10,-o))*Math.pow(10,c*h)},cn={type:2},ln={type:3},un={type:4},hn={type:13},fn={type:8},dn={type:21},An={type:9},gn={type:10},pn={type:11},mn={type:12},bn={type:14},vn={type:23},yn={type:1},wn={type:25},kn={type:24},xn={type:26},Cn={type:27},En={type:28},Tn={type:29},Bn={type:31},_n={type:32},Sn=function(){function t(){this._value=[]}return t.prototype.write=function(t){this._value=this._value.concat(l(t))},t.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==_n;)t.push(e),e=this.consumeToken();return t},t.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case Jt:return this.consumeStringToken(Jt);case te:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(en(e)||rn(n,r)){var i=an(e,n,r)?Kt:jt;return{type:5,value:this.consumeName(),flags:i}}break;case ee:if(this.peekCodePoint(0)===Zt)return this.consumeCodePoint(),hn;break;case re:return this.consumeStringToken(re);case ie:return cn;case ae:return ln;case ke:if(this.peekCodePoint(0)===Zt)return this.consumeCodePoint(),bn;break;case xe:if(on(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Ce:return un;case se:var a=t,o=this.peekCodePoint(0),s=this.peekCodePoint(1);if(on(a,o,s))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(an(a,o,s))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(o===se&&s===ue)return this.consumeCodePoint(),this.consumeCodePoint(),kn;break;case Be:if(on(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Vt:if(this.peekCodePoint(0)===ke)for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(c===ke&&(c=this.consumeCodePoint())===Vt)return this.consumeToken();if(c===De)return this.consumeToken()}break;case Ee:return xn;case Te:return Cn;case le:if(this.peekCodePoint(0)===ce&&this.peekCodePoint(1)===se&&this.peekCodePoint(2)===se)return this.consumeCodePoint(),this.consumeCodePoint(),wn;break;case he:var l=this.peekCodePoint(0),h=this.peekCodePoint(1),f=this.peekCodePoint(2);if(an(l,h,f))return{type:7,value:this.consumeName()};break;case fe:return En;case Wt:if(rn(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case de:return Tn;case Ae:if(this.peekCodePoint(0)===Zt)return this.consumeCodePoint(),fn;break;case ge:return pn;case me:return mn;case Qe:case Ke:var d=this.peekCodePoint(0),A=this.peekCodePoint(1);return d!==xe||!Ve(A)&&A!==pe||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case be:if(this.peekCodePoint(0)===Zt)return this.consumeCodePoint(),An;if(this.peekCodePoint(0)===be)return this.consumeCodePoint(),dn;break;case ve:if(this.peekCodePoint(0)===Zt)return this.consumeCodePoint(),gn;break;case De:return _n}return Ze(t)?(this.consumeWhiteSpace(),Bn):Ge(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):tn(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:u(t)}},t.prototype.consumeCodePoint=function(){var t=this._value.shift();return void 0===t?-1:t},t.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},t.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},t.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();Ve(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var n=!1;e===pe&&t.length<6;)t.push(e),e=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(u.apply(void 0,t.map((function(t){return t===pe?Fe:t}))),16),end:parseInt(u.apply(void 0,t.map((function(t){return t===pe?je:t}))),16)};var r=parseInt(u.apply(void 0,t),16);if(this.peekCodePoint(0)===se&&Ve(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var i=[];Ve(e)&&i.length<6;)i.push(e),e=this.consumeCodePoint();return{type:30,start:r,end:parseInt(u.apply(void 0,i),16)}}return{type:30,start:r,end:r}},t.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return"url"===t.toLowerCase()&&this.peekCodePoint(0)===ie?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ie?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},t.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===De)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===re||e===Jt){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===De||this.peekCodePoint(0)===ae)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),vn)}for(;;){var r=this.consumeCodePoint();if(r===De||r===ae)return{type:22,value:u.apply(void 0,t)};if(Ze(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===De||this.peekCodePoint(0)===ae?(this.consumeCodePoint(),{type:22,value:u.apply(void 0,t)}):(this.consumeBadUrlRemnants(),vn);if(r===Jt||r===re||r===ie||nn(r))return this.consumeBadUrlRemnants(),vn;if(r===Wt){if(!rn(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),vn;t.push(this.consumeEscapedCodePoint())}else t.push(r)}},t.prototype.consumeWhiteSpace=function(){for(;Ze(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===ae||t===De)return;rn(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(t){for(var e=5e4,n="";t>0;){var r=Math.min(e,t);n+=u.apply(void 0,this._value.splice(0,r)),t-=r}return this._value.shift(),n},t.prototype.consumeStringToken=function(t){for(var e="",n=0;;){var r=this._value[n];if(r===De||void 0===r||r===t)return{type:0,value:e+=this.consumeStringSlice(n)};if(r===Xt)return this._value.splice(0,n),yn;if(r===Wt){var i=this._value[n+1];i!==De&&void 0!==i&&(i===Xt?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):rn(r,i)&&(e+=this.consumeStringSlice(n),e+=u(this.consumeEscapedCodePoint()),n=-1))}n++}},t.prototype.consumeNumber=function(){var t=[],e=zt,n=this.peekCodePoint(0);for(n!==xe&&n!==se||t.push(this.consumeCodePoint());Ge(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===Be&&Ge(r))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Gt;Ge(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===$e||n===Re)&&((r===xe||r===se)&&Ge(i)||Ge(r)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Gt;Ge(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[sn(t),e]},t.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],n=t[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),a=this.peekCodePoint(2);return an(r,i,a)?{type:15,number:e,flags:n,unit:this.consumeName()}:r===ne?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(Ve(t)){for(var e=u(t);Ve(this.peekCodePoint(0))&&e.length<6;)e+=u(this.consumeCodePoint());Ze(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return 0===n||Xe(n)||n>1114111?we:n}return t===De?we:t},t.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(en(e))t+=u(e);else{if(!rn(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=u(this.consumeEscapedCodePoint())}}},t}(),Ln=function(){function t(t){this._tokens=t}return t.create=function(e){var n=new Sn;return n.write(e),new t(n.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var t=this.consumeToken();31===t.type;)t=this.consumeToken();if(32===t.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do{t=this.consumeToken()}while(31===t.type);if(32===t.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(32===e.type)return t;t.push(e),t.push()}},t.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},t.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},n=this.consumeToken();;){if(32===n.type||Qn(n,t))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var t=this._tokens.shift();return void 0===t?_n:t},t.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},t}(),In=function(t){return 15===t.type},Mn=function(t){return 17===t.type},On=function(t){return 20===t.type},Dn=function(t){return 0===t.type},Fn=function(t,e){return On(t)&&t.value===e},Nn=function(t){return 31!==t.type},Rn=function(t){return 31!==t.type&&4!==t.type},Pn=function(t){var e=[],n=[];return t.forEach((function(t){if(4===t.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(n),void(n=[])}31!==t.type&&n.push(t)})),n.length&&e.push(n),e},Qn=function(t,e){return 11===e&&12===t.type||28===e&&29===t.type||2===e&&3===t.type},Un=function(t){return 17===t.type||15===t.type},Hn=function(t){return 16===t.type||Un(t)},$n=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},jn={type:17,number:0,flags:zt},Kn={type:16,number:50,flags:zt},zn={type:16,number:100,flags:zt},Gn=function(t,e,n){var r=t[0],i=t[1];return[Xn(r,e),Xn(void 0!==i?i:r,n)]},Xn=function(t,e){if(16===t.type)return t.number/100*e;if(In(t))switch(t.unit){case"rem":case"em":return 16*t.number;default:return t.number}return t.number},Vn="deg",Wn="grad",qn="rad",Yn="turn",Jn={name:"angle",parse:function(t,e){if(15===e.type)switch(e.unit){case Vn:return Math.PI*e.number/180;case Wn:return Math.PI/200*e.number;case qn:return e.number;case Yn:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")}},Zn=function(t){return 15===t.type&&(t.unit===Vn||t.unit===Wn||t.unit===qn||t.unit===Yn)},tr=function(t){switch(t.filter(On).map((function(t){return t.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[jn,jn];case"to top":case"bottom":return er(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[jn,zn];case"to right":case"left":return er(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[zn,zn];case"to bottom":case"top":return er(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[zn,jn];case"to left":case"right":return er(270)}return 0},er=function(t){return Math.PI*t/180},nr={name:"color",parse:function(t,e){if(18===e.type){var n=ur[e.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return n(t,e.values)}if(5===e.type){if(3===e.value.length){var r=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3);return ar(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),1)}if(4===e.value.length){r=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3);var o=e.value.substring(3,4);return ar(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),parseInt(o+o,16)/255)}if(6===e.value.length)return r=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6),ar(parseInt(r,16),parseInt(i,16),parseInt(a,16),1);if(8===e.value.length)return r=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6),o=e.value.substring(6,8),ar(parseInt(r,16),parseInt(i,16),parseInt(a,16),parseInt(o,16)/255)}if(20===e.type){var s=fr[e.value.toUpperCase()];if(void 0!==s)return s}return fr.TRANSPARENT}},rr=function(t){return!(255&t)},ir=function(t){var e=255&t,n=255&t>>8,r=255&t>>16,i=255&t>>24;return e<255?"rgba("+i+","+r+","+n+","+e/255+")":"rgb("+i+","+r+","+n+")"},ar=function(t,e,n,r){return(t<<24|e<<16|n<<8|Math.round(255*r))>>>0},or=function(t,e){if(17===t.type)return t.number;if(16===t.type){var n=3===e?1:255;return 3===e?t.number/100*n:Math.round(t.number/100*n)}return 0},sr=function(t,e){var n=e.filter(Rn);if(3===n.length){var r=n.map(or),i=r[0],a=r[1],o=r[2];return ar(i,a,o,1)}if(4===n.length){var s=n.map(or),c=(i=s[0],a=s[1],o=s[2],s[3]);return ar(i,a,o,c)}return 0};function cr(t,e,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(e-t)*n*6+t:n<.5?e:n<2/3?6*(e-t)*(2/3-n)+t:t}var lr=function(t,e){var n=e.filter(Rn),r=n[0],i=n[1],a=n[2],o=n[3],s=(17===r.type?er(r.number):Jn.parse(t,r))/(2*Math.PI),c=Hn(i)?i.number/100:0,l=Hn(a)?a.number/100:0,u=void 0!==o&&Hn(o)?Xn(o,1):1;if(0===c)return ar(255*l,255*l,255*l,1);var h=l<=.5?l*(c+1):l+c-l*c,f=2*l-h,d=cr(f,h,s+1/3),A=cr(f,h,s),g=cr(f,h,s-1/3);return ar(255*d,255*A,255*g,u)},ur={hsl:lr,hsla:lr,rgb:sr,rgba:sr},hr=function(t,e){return nr.parse(t,Ln.create(e).parseComponentValue())},fr={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},dr={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(On(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ar={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},gr=function(t,e){var n=nr.parse(t,e[0]),r=e[1];return r&&Hn(r)?{color:n,stop:r}:{color:n,stop:null}},pr=function(t,e){var n=t[0],r=t[t.length-1];null===n.stop&&(n.stop=jn),null===r.stop&&(r.stop=zn);for(var i=[],a=0,o=0;oa?i.push(c):i.push(a),a=c}else i.push(null)}var l=null;for(o=0;ot.optimumDistance)?{optimumCorner:e,optimumDistance:s}:t}),{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},wr=function(t,e,n,r,i){var a=0,o=0;switch(t.size){case 0:0===t.shape?a=o=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):1===t.shape&&(a=Math.min(Math.abs(e),Math.abs(e-r)),o=Math.min(Math.abs(n),Math.abs(n-i)));break;case 2:if(0===t.shape)a=o=Math.min(vr(e,n),vr(e,n-i),vr(e-r,n),vr(e-r,n-i));else if(1===t.shape){var s=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(e),Math.abs(e-r)),c=yr(r,i,e,n,!0),l=c[0],u=c[1];o=s*(a=vr(l-e,(u-n)/s))}break;case 1:0===t.shape?a=o=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):1===t.shape&&(a=Math.max(Math.abs(e),Math.abs(e-r)),o=Math.max(Math.abs(n),Math.abs(n-i)));break;case 3:if(0===t.shape)a=o=Math.max(vr(e,n),vr(e,n-i),vr(e-r,n),vr(e-r,n-i));else if(1===t.shape){s=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(e),Math.abs(e-r));var h=yr(r,i,e,n,!1);l=h[0],u=h[1],o=s*(a=vr(l-e,(u-n)/s))}}return Array.isArray(t.size)&&(a=Xn(t.size[0],r),o=2===t.size.length?Xn(t.size[1],i):a),[a,o]},kr=function(t,e){var n=er(180),r=[];return Pn(e).forEach((function(e,i){if(0===i){var a=e[0];if(20===a.type&&"to"===a.value)return void(n=tr(e));if(Zn(a))return void(n=Jn.parse(t,a))}var o=gr(t,e);r.push(o)})),{angle:n,stops:r,type:1}},xr=function(t,e){var n=er(180),r=[];return Pn(e).forEach((function(e,i){if(0===i){var a=e[0];if(20===a.type&&-1!==["top","left","right","bottom"].indexOf(a.value))return void(n=tr(e));if(Zn(a))return void(n=(Jn.parse(t,a)+er(270))%er(360))}var o=gr(t,e);r.push(o)})),{angle:n,stops:r,type:1}},Cr=function(t,e){var n=er(180),r=[],i=1,a=0,o=3,s=[];return Pn(e).forEach((function(e,n){var a=e[0];if(0===n){if(On(a)&&"linear"===a.value)return void(i=1);if(On(a)&&"radial"===a.value)return void(i=2)}if(18===a.type)if("from"===a.name){var o=nr.parse(t,a.values[0]);r.push({stop:jn,color:o})}else if("to"===a.name)o=nr.parse(t,a.values[0]),r.push({stop:zn,color:o});else if("color-stop"===a.name){var s=a.values.filter(Rn);if(2===s.length){o=nr.parse(t,s[1]);var c=s[0];Mn(c)&&r.push({stop:{type:16,number:100*c.number,flags:c.flags},color:o})}}})),1===i?{angle:(n+er(180))%er(360),stops:r,type:i}:{size:o,shape:a,stops:r,position:s,type:i}},Er="closest-side",Tr="farthest-side",Br="closest-corner",_r="farthest-corner",Sr="circle",Lr="ellipse",Ir="cover",Mr="contain",Or=function(t,e){var n=0,r=3,i=[],a=[];return Pn(e).forEach((function(e,o){var s=!0;if(0===o){var c=!1;s=e.reduce((function(t,e){if(c)if(On(e))switch(e.value){case"center":return a.push(Kn),t;case"top":case"left":return a.push(jn),t;case"right":case"bottom":return a.push(zn),t}else(Hn(e)||Un(e))&&a.push(e);else if(On(e))switch(e.value){case Sr:return n=0,!1;case Lr:return n=1,!1;case"at":return c=!0,!1;case Er:return r=0,!1;case Ir:case Tr:return r=1,!1;case Mr:case Br:return r=2,!1;case _r:return r=3,!1}else if(Un(e)||Hn(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return t}),s)}if(s){var l=gr(t,e);i.push(l)}})),{size:r,shape:n,stops:i,position:a,type:2}},Dr=function(t,e){var n=0,r=3,i=[],a=[];return Pn(e).forEach((function(e,o){var s=!0;if(0===o?s=e.reduce((function(t,e){if(On(e))switch(e.value){case"center":return a.push(Kn),!1;case"top":case"left":return a.push(jn),!1;case"right":case"bottom":return a.push(zn),!1}else if(Hn(e)||Un(e))return a.push(e),!1;return t}),s):1===o&&(s=e.reduce((function(t,e){if(On(e))switch(e.value){case Sr:return n=0,!1;case Lr:return n=1,!1;case Mr:case Er:return r=0,!1;case Tr:return r=1,!1;case Br:return r=2,!1;case Ir:case _r:return r=3,!1}else if(Un(e)||Hn(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return t}),s)),s){var c=gr(t,e);i.push(c)}})),{size:r,shape:n,stops:i,position:a,type:2}},Fr=function(t){return 1===t.type},Nr=function(t){return 2===t.type},Rr={name:"image",parse:function(t,e){if(22===e.type){var n={url:e.value,type:0};return t.cache.addImage(e.value),n}if(18===e.type){var r=Ur[e.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function Pr(t){return!(20===t.type&&"none"===t.value||18===t.type&&!Ur[t.name])}var Qr,Ur={"linear-gradient":kr,"-moz-linear-gradient":xr,"-ms-linear-gradient":xr,"-o-linear-gradient":xr,"-webkit-linear-gradient":xr,"radial-gradient":Or,"-moz-radial-gradient":Dr,"-ms-radial-gradient":Dr,"-o-radial-gradient":Dr,"-webkit-radial-gradient":Dr,"-webkit-gradient":Cr},Hr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var n=e[0];return 20===n.type&&"none"===n.value?[]:e.filter((function(t){return Rn(t)&&Pr(t)})).map((function(e){return Rr.parse(t,e)}))}},$r={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(On(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},jr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return Pn(e).map((function(t){return t.filter(Hn)})).map($n)}},Kr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return Pn(e).map((function(t){return t.filter(On).map((function(t){return t.value})).join(" ")})).map(zr)}},zr=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"}(Qr||(Qr={}));var Gr,Xr={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return Pn(e).map((function(t){return t.filter(Vr)}))}},Vr=function(t){return On(t)||Hn(t)},Wr=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},qr=Wr("top"),Yr=Wr("right"),Jr=Wr("bottom"),Zr=Wr("left"),ti=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return $n(e.filter(Hn))}}},ei=ti("top-left"),ni=ti("top-right"),ri=ti("bottom-right"),ii=ti("bottom-left"),ai=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},oi=ai("top"),si=ai("right"),ci=ai("bottom"),li=ai("left"),ui=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return In(e)?e.number:0}}},hi=ui("top"),fi=ui("right"),di=ui("bottom"),Ai=ui("left"),gi={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pi={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){return"rtl"===e?1:0}},mi={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(On).reduce((function(t,e){return t|bi(e.value)}),0)}},bi=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},vi={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},yi={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};!function(t){t.NORMAL="normal",t.STRICT="strict"}(Gr||(Gr={}));var wi,ki={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return"strict"===e?Gr.STRICT:Gr.NORMAL}},xi={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ci=function(t,e){return On(t)&&"normal"===t.value?1.2*e:17===t.type?e*t.number:Hn(t)?Xn(t,e):e},Ei={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return 20===e.type&&"none"===e.value?null:Rr.parse(t,e)}},Ti={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){return"inside"===e?0:1}},Bi={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},_i=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},Si=_i("top"),Li=_i("right"),Ii=_i("bottom"),Mi=_i("left"),Oi={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(On).map((function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}}))}},Di={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return"break-word"===e?"break-word":"normal"}},Fi=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Ni=Fi("top"),Ri=Fi("right"),Pi=Fi("bottom"),Qi=Fi("left"),Ui={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Hi={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},$i={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&Fn(e[0],"none")?[]:Pn(e).map((function(e){for(var n={color:fr.TRANSPARENT,offsetX:jn,offsetY:jn,blur:jn},r=0,i=0;i1?1:0],this.overflowWrap=xa(t,Di,e.overflowWrap),this.paddingTop=xa(t,Ni,e.paddingTop),this.paddingRight=xa(t,Ri,e.paddingRight),this.paddingBottom=xa(t,Pi,e.paddingBottom),this.paddingLeft=xa(t,Qi,e.paddingLeft),this.paintOrder=xa(t,ma,e.paintOrder),this.position=xa(t,Hi,e.position),this.textAlign=xa(t,Ui,e.textAlign),this.textDecorationColor=xa(t,na,null!==(n=e.textDecorationColor)&&void 0!==n?n:e.color),this.textDecorationLine=xa(t,ra,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=xa(t,$i,e.textShadow),this.textTransform=xa(t,ji,e.textTransform),this.transform=xa(t,Ki,e.transform),this.transformOrigin=xa(t,qi,e.transformOrigin),this.visibility=xa(t,Yi,e.visibility),this.webkitTextStrokeColor=xa(t,ba,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=xa(t,va,e.webkitTextStrokeWidth),this.wordBreak=xa(t,Ji,e.wordBreak),this.zIndex=xa(t,Zi,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},t.prototype.isTransparent=function(){return rr(this.backgroundColor)},t.prototype.isTransformed=function(){return null!==this.transform},t.prototype.isPositioned=function(){return 0!==this.position},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return 0!==this.float},t.prototype.isInlineLevel=function(){return la(this.display,4)||la(this.display,33554432)||la(this.display,268435456)||la(this.display,536870912)||la(this.display,67108864)||la(this.display,134217728)},t}(),wa=function(){function t(t,e){this.content=xa(t,ua,e.content),this.quotes=xa(t,Aa,e.quotes)}return t}(),ka=function(){function t(t,e){this.counterIncrement=xa(t,ha,e.counterIncrement),this.counterReset=xa(t,fa,e.counterReset)}return t}(),xa=function(t,e,n){var r=new Sn,i=null!=n?n.toString():e.initialValue;r.write(i);var a=new Ln(r.read());switch(e.type){case 2:var o=a.parseComponentValue();return e.parse(t,On(o)?o.value:e.initialValue);case 0:return e.parse(t,a.parseComponentValue());case 1:return e.parse(t,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(e.format){case"angle":return Jn.parse(t,a.parseComponentValue());case"color":return nr.parse(t,a.parseComponentValue());case"image":return Rr.parse(t,a.parseComponentValue());case"length":var s=a.parseComponentValue();return Un(s)?s:jn;case"length-percentage":var c=a.parseComponentValue();return Hn(c)?c:jn;case"time":return ta.parse(t,a.parseComponentValue())}}},Ca="data-html2canvas-debug",Ea=function(t){switch(t.getAttribute(Ca)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Ta=function(t,e){var n=Ea(t);return 1===n||e===n},Ba=function(){function t(t,e){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,Ta(e,3),this.styles=new ya(t,window.getComputedStyle(e,null)),gs(e)&&(this.styles.animationDuration.some((function(t){return t>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=s(this.context,e),Ta(e,4)&&(this.flags|=16)}return t}(),_a="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Sa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",La="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Ia=0;Ia>4,u[c++]=(15&r)<<4|i>>2,u[c++]=(3&i)<<6|63&a;return l},Oa=function(t){for(var e=t.length,n=[],r=0;r>Fa,Qa=(1<>Fa)+32,Ha=65536>>Na,$a=(1<=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>Fa])<>Fa)])<>Na),e=this.index[e],e+=t>>Fa&$a,e=((e=this.index[e])<=55296&&i<=56319&&n>10),o%1024+56320)),(i+1===n||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},Ao=za(_a),go="×",po="÷",mo=function(t){return Ao.get(t)},bo=function(t,e,n){var r=n-2,i=e[r],a=e[n-1],o=e[n];if(a===Ja&&o===Za)return go;if(a===Ja||a===Za||a===to)return po;if(o===Ja||o===Za||o===to)return po;if(a===ro&&-1!==[ro,io,oo,so].indexOf(o))return go;if(!(a!==oo&&a!==io||o!==io&&o!==ao))return go;if((a===so||a===ao)&&o===ao)return go;if(o===co||o===eo)return go;if(o===no)return go;if(a===Ya)return go;if(a===co&&o===lo){for(;i===eo;)i=e[--r];if(i===lo)return go}if(a===uo&&o===uo){for(var s=0;i===uo;)s++,i=e[--r];if(s%2==0)return go}return po},vo=function(t){var e=ho(t),n=e.length,r=0,i=0,a=e.map(mo);return{next:function(){if(r>=n)return{done:!0,value:null};for(var t=go;ro.x||i.y>o.y;return o=i,0===e||s}));return t.body.removeChild(e),s},xo=function(){return void 0!==(new Image).crossOrigin},Co=function(){return"string"==typeof(new XMLHttpRequest).responseType},Eo=function(t){var e=new Image,n=t.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,";try{r.drawImage(e,0,0),n.toDataURL()}catch(t){return!1}return!0},To=function(t){return 0===t[0]&&255===t[1]&&0===t[2]&&255===t[3]},Bo=function(t){var e=t.createElement("canvas"),n=100;e.width=n,e.height=n;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var i=new Image,a=e.toDataURL();i.src=a;var o=_o(n,n,0,0,i);return r.fillStyle="red",r.fillRect(0,0,n,n),So(o).then((function(e){r.drawImage(e,0,0);var i=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var o=t.createElement("div");return o.style.backgroundImage="url("+a+")",o.style.height=n+"px",To(i)?So(_o(n,n,0,0,o)):Promise.reject(!1)})).then((function(t){return r.drawImage(t,0,0),To(r.getImageData(0,0,n,n).data)})).catch((function(){return!1}))},_o=function(t,e,n,r,i){var a="http://www.w3.org/2000/svg",o=document.createElementNS(a,"svg"),s=document.createElementNS(a,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",n.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(i),o},So=function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){return e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},Lo={get SUPPORT_RANGE_BOUNDS(){var t=wo(document);return Object.defineProperty(Lo,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Lo.SUPPORT_RANGE_BOUNDS&&ko(document);return Object.defineProperty(Lo,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=Eo(document);return Object.defineProperty(Lo,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t="function"==typeof Array.from&&"function"==typeof window.fetch?Bo(document):Promise.resolve(!1);return Object.defineProperty(Lo,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=xo();return Object.defineProperty(Lo,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=Co();return Object.defineProperty(Lo,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Lo,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Lo,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},Io=function(){function t(t,e){this.text=t,this.bounds=e}return t}(),Mo=function(t,e,n,r){var i=Ro(e,n),a=[],s=0;return i.forEach((function(e){if(n.textDecorationLine.length||e.trim().length>0)if(Lo.SUPPORT_RANGE_BOUNDS){var i=Do(r,s,e.length).getClientRects();if(i.length>1){var c=Fo(e),l=0;c.forEach((function(e){a.push(new Io(e,o.fromDOMRectList(t,Do(r,l+s,e.length).getClientRects()))),l+=e.length}))}else a.push(new Io(e,o.fromDOMRectList(t,i)))}else{var u=r.splitText(e.length);a.push(new Io(e,Oo(t,r))),r=u}else Lo.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));s+=e.length})),a},Oo=function(t,e){var n=e.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var i=e.parentNode;if(i){i.replaceChild(r,e);var a=s(t,r);return r.firstChild&&i.replaceChild(r.firstChild,r),a}}return o.EMPTY},Do=function(t,e,n){var r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");var i=r.createRange();return i.setStart(t,e),i.setEnd(t,e+n),i},Fo=function(t){if(Lo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map((function(t){return t.segment}))}return yo(t)},No=function(t,e){if(Lo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(t)).map((function(t){return t.segment}))}return Qo(t,e)},Ro=function(t,e){return 0!==e.letterSpacing?Fo(t):No(t,e)},Po=[32,160,4961,65792,65793,4153,4241],Qo=function(t,e){for(var n,r=$t(t,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),i=[],a=function(){if(n.value){var t=n.value.slice(),e=l(t),r="";e.forEach((function(t){-1===Po.indexOf(t)?r+=u(t):(r.length&&i.push(r),i.push(u(t)),r="")})),r.length&&i.push(r)}};!(n=r.next()).done;)a();return i},Uo=function(){function t(t,e,n){this.text=Ho(e.data,n.textTransform),this.textBounds=Mo(t,this.text,n,e)}return t}(),Ho=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace($o,jo);case 2:return t.toUpperCase();default:return t}},$o=/(^|\s|:|-|\(|\))([a-z])/g,jo=function(t,e,n){return t.length>0?e+n.toUpperCase():t},Ko=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return e(n,t),n}(Ba),zo=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return e(n,t),n}(Ba),Go=function(t){function n(e,n){var r=t.call(this,e,n)||this,i=new XMLSerializer,a=s(e,n);return n.setAttribute("width",a.width+"px"),n.setAttribute("height",a.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e(n,t),n}(Ba),Xo=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return e(n,t),n}(Ba),Vo=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return e(n,t),n}(Ba),Wo=[{type:15,flags:0,unit:"px",number:3}],qo=[{type:16,flags:0,number:50}],Yo=function(t){return t.width>t.height?new o(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width0)n.textNodes.push(new Uo(t,i,n.styles));else if(As(i))if(Is(i)&&i.assignedNodes)i.assignedNodes().forEach((function(e){return cs(t,e,n,r)}));else{var o=ls(t,i);o.styles.isVisible()&&(hs(i,o,r)?o.flags|=4:fs(o.styles)&&(o.flags|=2),-1!==ss.indexOf(i.tagName)&&(o.flags|=8),n.elements.push(o),i.slot,i.shadowRoot?cs(t,i.shadowRoot,o,r):Ss(i)||ws(i)||Ls(i)||cs(t,i,o,r))}},ls=function(t,e){return Es(e)?new Ko(t,e):xs(e)?new zo(t,e):ws(e)?new Go(t,e):ms(e)?new Xo(t,e):bs(e)?new Vo(t,e):vs(e)?new rs(t,e):Ls(e)?new is(t,e):Ss(e)?new as(t,e):Ts(e)?new os(t,e):new Ba(t,e)},us=function(t,e){var n=ls(t,e);return n.flags|=4,cs(t,e,n,n),n},hs=function(t,e,n){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||ks(t)&&n.styles.isTransparent()},fs=function(t){return t.isPositioned()||t.isFloating()},ds=function(t){return t.nodeType===Node.TEXT_NODE},As=function(t){return t.nodeType===Node.ELEMENT_NODE},gs=function(t){return As(t)&&void 0!==t.style&&!ps(t)},ps=function(t){return"object"==typeof t.className},ms=function(t){return"LI"===t.tagName},bs=function(t){return"OL"===t.tagName},vs=function(t){return"INPUT"===t.tagName},ys=function(t){return"HTML"===t.tagName},ws=function(t){return"svg"===t.tagName},ks=function(t){return"BODY"===t.tagName},xs=function(t){return"CANVAS"===t.tagName},Cs=function(t){return"VIDEO"===t.tagName},Es=function(t){return"IMG"===t.tagName},Ts=function(t){return"IFRAME"===t.tagName},Bs=function(t){return"STYLE"===t.tagName},_s=function(t){return"SCRIPT"===t.tagName},Ss=function(t){return"TEXTAREA"===t.tagName},Ls=function(t){return"SELECT"===t.tagName},Is=function(t){return"SLOT"===t.tagName},Ms=function(t){return t.tagName.indexOf("-")>0},Os=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},t.prototype.pop=function(t){var e=this;t.forEach((function(t){return e.counters[t].pop()}))},t.prototype.parse=function(t){var e=this,n=t.counterIncrement,r=t.counterReset,i=!0;null!==n&&n.forEach((function(t){var n=e.counters[t.counter];n&&0!==t.increment&&(i=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=t.increment)}));var a=[];return i&&r.forEach((function(t){var n=e.counters[t.counter];a.push(t.counter),n||(n=e.counters[t.counter]=[]),n.push(t.reset)})),a},t}(),Ds={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Fs={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Ns={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Rs={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ps=function(t,e,n,r,i,a){return tn?Ys(t,i,a.length>0):r.integers.reduce((function(e,n,i){for(;t>=n;)t-=n,e+=r.values[i];return e}),"")+a},Qs=function(t,e,n,r){var i="";do{n||t--,i=r(t)+i,t/=e}while(t*e>=e);return i},Us=function(t,e,n,r,i){var a=n-e+1;return(t<0?"-":"")+(Qs(Math.abs(t),a,r,(function(t){return u(Math.floor(t%a)+e)}))+i)},Hs=function(t,e,n){void 0===n&&(n=". ");var r=e.length;return Qs(Math.abs(t),r,!1,(function(t){return e[Math.floor(t%r)]}))+n},$s=1,js=2,Ks=4,zs=8,Gs=function(t,e,n,r,i,a){if(t<-9999||t>9999)return Ys(t,4,i.length>0);var o=Math.abs(t),s=i;if(0===o)return e[0]+s;for(var c=0;o>0&&c<=4;c++){var l=o%10;0===l&&la(a,$s)&&""!==s?s=e[l]+s:l>1||1===l&&0===c||1===l&&1===c&&la(a,js)||1===l&&1===c&&la(a,Ks)&&t>100||1===l&&c>1&&la(a,zs)?s=e[l]+(c>0?n[c-1]:"")+s:1===l&&c>0&&(s=n[c-1]+s),o=Math.floor(o/10)}return(t<0?r:"")+s},Xs="十百千萬",Vs="拾佰仟萬",Ws="マイナス",qs="마이너스",Ys=function(t,e,n){var r=n?". ":"",i=n?"、":"",a=n?", ":"",o=n?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=Us(t,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return Hs(t,"〇一二三四五六七八九",i);case 6:return Ps(t,1,3999,Ds,3,r).toLowerCase();case 7:return Ps(t,1,3999,Ds,3,r);case 8:return Us(t,945,969,!1,r);case 9:return Us(t,97,122,!1,r);case 10:return Us(t,65,90,!1,r);case 11:return Us(t,1632,1641,!0,r);case 12:case 49:return Ps(t,1,9999,Fs,3,r);case 35:return Ps(t,1,9999,Fs,3,r).toLowerCase();case 13:return Us(t,2534,2543,!0,r);case 14:case 30:return Us(t,6112,6121,!0,r);case 15:return Hs(t,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return Hs(t,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return Gs(t,"零一二三四五六七八九",Xs,"負",i,js|Ks|zs);case 47:return Gs(t,"零壹貳參肆伍陸柒捌玖",Vs,"負",i,$s|js|Ks|zs);case 42:return Gs(t,"零一二三四五六七八九",Xs,"负",i,js|Ks|zs);case 41:return Gs(t,"零壹贰叁肆伍陆柒捌玖",Vs,"负",i,$s|js|Ks|zs);case 26:return Gs(t,"〇一二三四五六七八九","十百千万",Ws,i,0);case 25:return Gs(t,"零壱弐参四伍六七八九","拾百千万",Ws,i,$s|js|Ks);case 31:return Gs(t,"영일이삼사오육칠팔구","십백천만",qs,a,$s|js|Ks);case 33:return Gs(t,"零一二三四五六七八九","十百千萬",qs,a,0);case 32:return Gs(t,"零壹貳參四五六七八九","拾百千",qs,a,$s|js|Ks);case 18:return Us(t,2406,2415,!0,r);case 20:return Ps(t,1,19999,Rs,3,r);case 21:return Us(t,2790,2799,!0,r);case 22:return Us(t,2662,2671,!0,r);case 22:return Ps(t,1,10999,Ns,3,r);case 23:return Hs(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Hs(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Us(t,3302,3311,!0,r);case 28:return Hs(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return Hs(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return Us(t,3792,3801,!0,r);case 37:return Us(t,6160,6169,!0,r);case 38:return Us(t,4160,4169,!0,r);case 39:return Us(t,2918,2927,!0,r);case 40:return Us(t,1776,1785,!0,r);case 43:return Us(t,3046,3055,!0,r);case 44:return Us(t,3174,3183,!0,r);case 45:return Us(t,3664,3673,!0,r);case 46:return Us(t,3872,3881,!0,r);default:return Us(t,48,57,!0,r)}},Js="data-html2canvas-ignore",Zs=function(){function t(t,e,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new Os,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(t,e){var n=this,a=ec(t,e);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var o=t.defaultView.pageXOffset,s=t.defaultView.pageYOffset,c=a.contentWindow,l=c.document,u=ic(a).then((function(){return r(n,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(lc),c&&(c.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||c.scrollY===e.top&&c.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(c.scrollX-e.left,c.scrollY-e.top,0,0))),t=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,rc(l)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof t?[2,Promise.resolve().then((function(){return t(l,n)})).then((function(){return a}))]:[2,a]}}))}))}));return l.open(),l.write(sc(document.doctype)+""),cc(this.referenceElement.ownerDocument,o,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),u},t.prototype.createElementClone=function(t){if(Ta(t,2),xs(t))return this.createCanvasClone(t);if(Cs(t))return this.createVideoClone(t);if(Bs(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return Es(e)&&(Es(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Ms(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return oc(t.style,e),e},t.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce((function(t,e){return e&&"string"==typeof e.cssText?t+e.cssText:t}),""),r=t.cloneNode(!1);return r.textContent=n,r}}catch(t){if(this.context.logger.error("Unable to access cssRules property",t),"SecurityError"!==t.name)throw t}return t.cloneNode(!1)},t.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch(e){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var r=t.cloneNode(!1);try{r.width=t.width,r.height=t.height;var i=t.getContext("2d"),a=r.getContext("2d");if(a)if(!this.options.allowTaint&&i)a.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var o=null!==(e=t.getContext("webgl2"))&&void 0!==e?e:t.getContext("webgl");if(o){var s=o.getContextAttributes();!1===(null==s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}a.drawImage(t,0,0)}return r}catch(e){this.context.logger.info("Unable to clone canvas as it is tainted",t)}return r},t.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var n=e.getContext("2d");try{return n&&(n.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||n.getImageData(0,0,e.width,e.height)),e}catch(e){this.context.logger.info("Unable to clone video as it is tainted",t)}var r=t.ownerDocument.createElement("canvas");return r.width=t.offsetWidth,r.height=t.offsetHeight,r},t.prototype.appendChildNode=function(t,e,n){As(e)&&(_s(e)||e.hasAttribute(Js)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&As(e)&&Bs(e)||t.appendChild(this.cloneNode(e,n))},t.prototype.cloneChildNodes=function(t,e,n){for(var r=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(As(i)&&Is(i)&&"function"==typeof i.assignedNodes){var a=i.assignedNodes();a.length&&a.forEach((function(t){return r.appendChildNode(e,t,n)}))}else this.appendChildNode(e,i,n)},t.prototype.cloneNode=function(t,e){if(ds(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&As(t)&&(gs(t)||ps(t))){var r=this.createElementClone(t);r.style.transitionProperty="none";var i=n.getComputedStyle(t),a=n.getComputedStyle(t,":before"),o=n.getComputedStyle(t,":after");this.referenceElement===t&&gs(r)&&(this.clonedReferenceElement=r),ks(r)&&gc(r);var s=this.counters.parse(new ka(this.context,i)),c=this.resolvePseudoContent(t,r,a,qa.BEFORE);Ms(t)&&(e=!0),Cs(t)||this.cloneChildNodes(t,r,e),c&&r.insertBefore(c,r.firstChild);var l=this.resolvePseudoContent(t,r,o,qa.AFTER);return l&&r.appendChild(l),this.counters.pop(s),(i&&(this.options.copyStyles||ps(t))&&!Ts(t)||e)&&oc(i,r),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([r,t.scrollLeft,t.scrollTop]),(Ss(t)||Ls(t))&&(Ss(r)||Ls(r))&&(r.value=t.value),r}return t.cloneNode(!1)},t.prototype.resolvePseudoContent=function(t,e,n,r){var i=this;if(n){var a=n.content,o=e.ownerDocument;if(o&&a&&"none"!==a&&"-moz-alt-content"!==a&&"none"!==n.display){this.counters.parse(new ka(this.context,n));var s=new wa(this.context,n),c=o.createElement("html2canvaspseudoelement");oc(n,c),s.content.forEach((function(e){if(0===e.type)c.appendChild(o.createTextNode(e.value));else if(22===e.type){var n=o.createElement("img");n.src=e.value,n.style.opacity="1",c.appendChild(n)}else if(18===e.type){if("attr"===e.name){var r=e.values.filter(On);r.length&&c.appendChild(o.createTextNode(t.getAttribute(r[0].value)||""))}else if("counter"===e.name){var a=e.values.filter(Rn),l=a[0],u=a[1];if(l&&On(l)){var h=i.counters.getCounterValue(l.value),f=u&&On(u)?Bi.parse(i.context,u.value):3;c.appendChild(o.createTextNode(Ys(h,f,!1)))}}else if("counters"===e.name){var d=e.values.filter(Rn),A=(l=d[0],d[1]);if(u=d[2],l&&On(l)){var g=i.counters.getCounterValues(l.value),p=u&&On(u)?Bi.parse(i.context,u.value):3,m=A&&0===A.type?A.value:"",b=g.map((function(t){return Ys(t,p,!1)})).join(m);c.appendChild(o.createTextNode(b))}}}else if(20===e.type)switch(e.value){case"open-quote":c.appendChild(o.createTextNode(ga(s.quotes,i.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(ga(s.quotes,--i.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(e.value))}})),c.className=fc+" "+dc;var l=r===qa.BEFORE?" "+fc:" "+dc;return ps(e)?e.className.baseValue+=l:e.className+=l,c}}},t.destroy=function(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)},t}();!function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"}(qa||(qa={}));var tc,ec=function(t,e){var n=t.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute(Js,"true"),t.body.appendChild(n),n},nc=function(t){return new Promise((function(e){t.complete?e():t.src?(t.onload=e,t.onerror=e):e()}))},rc=function(t){return Promise.all([].slice.call(t.images,0).map(nc))},ic=function(t){return new Promise((function(e,n){var r=t.contentWindow;if(!r)return n("No window assigned for iframe");var i=r.document;r.onload=t.onload=function(){r.onload=t.onload=null;var n=setInterval((function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(n),e(t))}),50)}}))},ac=["all","d","content"],oc=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t.item(n);-1===ac.indexOf(r)&&e.style.setProperty(r,t.getPropertyValue(r))}return e},sc=function(t){var e="";return t&&(e+=""),e},cc=function(t,e,n){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n)},lc=function(t){var e=t[0],n=t[1],r=t[2];e.scrollLeft=n,e.scrollTop=r},uc=":before",hc=":after",fc="___html2canvas___pseudoelement_before",dc="___html2canvas___pseudoelement_after",Ac='{\n content: "" !important;\n display: none !important;\n}',gc=function(t){pc(t,"."+fc+uc+Ac+"\n ."+dc+hc+Ac)},pc=function(t,e){var n=t.ownerDocument;if(n){var r=n.createElement("style");r.textContent=e,t.appendChild(r)}},mc=function(){function t(){}return t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),bc=function(){function t(t,e){this.context=t,this._options=e,this._cache={}}return t.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)?e:Ec(t)||kc(t)?((this._cache[t]=this.loadImage(t)).catch((function(){})),e):e},t.prototype.match=function(t){return this._cache[t]},t.prototype.loadImage=function(t){return r(this,void 0,void 0,(function(){var e,n,r,a,o=this;return i(this,(function(i){switch(i.label){case 0:return e=mc.isSameOrigin(t),n=!xc(t)&&!0===this._options.useCORS&&Lo.SUPPORT_CORS_IMAGES&&!e,r=!xc(t)&&!e&&!Ec(t)&&"string"==typeof this._options.proxy&&Lo.SUPPORT_CORS_XHR&&!n,e||!1!==this._options.allowTaint||xc(t)||Ec(t)||r||n?(a=t,r?[4,this.proxy(a)]:[3,2]):[2];case 1:a=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise((function(t,e){var r=new Image;r.onload=function(){return t(r)},r.onerror=e,(Cc(a)||n)&&(r.crossOrigin="anonymous"),r.src=a,!0===r.complete&&setTimeout((function(){return t(r)}),500),o._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,i.sent()]}}))}))},t.prototype.has=function(t){return void 0!==this._cache[t]},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(t){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=t.substring(0,256);return new Promise((function(i,a){var o=Lo.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===o)i(s.response);else{var t=new FileReader;t.addEventListener("load",(function(){return i(t.result)}),!1),t.addEventListener("error",(function(t){return a(t)}),!1),t.readAsDataURL(s.response)}else a("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=a;var c=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+c+"url="+encodeURIComponent(t)+"&responseType="+o),"text"!==o&&s instanceof XMLHttpRequest&&(s.responseType=o),e._options.imageTimeout){var l=e._options.imageTimeout;s.timeout=l,s.ontimeout=function(){return a("Timed out ("+l+"ms) proxying "+r)}}s.send()}))},t}(),vc=/^data:image\/svg\+xml/i,yc=/^data:image\/.*;base64,/i,wc=/^data:image\/.*/i,kc=function(t){return Lo.SUPPORT_SVG_DRAWING||!Tc(t)},xc=function(t){return wc.test(t)},Cc=function(t){return yc.test(t)},Ec=function(t){return"blob"===t.substr(0,4)},Tc=function(t){return"svg"===t.substr(-3).toLowerCase()||vc.test(t)},Bc=function(){function t(t,e){this.type=0,this.x=t,this.y=e}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t}(),_c=function(t,e,n){return new Bc(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},Sc=function(){function t(t,e,n,r){this.type=1,this.start=t,this.startControl=e,this.endControl=n,this.end=r}return t.prototype.subdivide=function(e,n){var r=_c(this.start,this.startControl,e),i=_c(this.startControl,this.endControl,e),a=_c(this.endControl,this.end,e),o=_c(r,i,e),s=_c(i,a,e),c=_c(o,s,e);return n?new t(this.start,r,o,c):new t(c,s,a,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Lc=function(t){return 1===t.type},Ic=function(){function t(t){var e=t.styles,n=t.bounds,r=Gn(e.borderTopLeftRadius,n.width,n.height),i=r[0],a=r[1],o=Gn(e.borderTopRightRadius,n.width,n.height),s=o[0],c=o[1],l=Gn(e.borderBottomRightRadius,n.width,n.height),u=l[0],h=l[1],f=Gn(e.borderBottomLeftRadius,n.width,n.height),d=f[0],A=f[1],g=[];g.push((i+s)/n.width),g.push((d+u)/n.width),g.push((a+A)/n.height),g.push((c+h)/n.height);var p=Math.max.apply(Math,g);p>1&&(i/=p,a/=p,s/=p,c/=p,u/=p,h/=p,d/=p,A/=p);var m=n.width-s,b=n.height-h,v=n.width-u,y=n.height-A,w=e.borderTopWidth,k=e.borderRightWidth,x=e.borderBottomWidth,C=e.borderLeftWidth,E=Xn(e.paddingTop,t.bounds.width),T=Xn(e.paddingRight,t.bounds.width),B=Xn(e.paddingBottom,t.bounds.width),_=Xn(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?Mc(n.left+C/3,n.top+w/3,i-C/3,a-w/3,tc.TOP_LEFT):new Bc(n.left+C/3,n.top+w/3),this.topRightBorderDoubleOuterBox=i>0||a>0?Mc(n.left+m,n.top+w/3,s-k/3,c-w/3,tc.TOP_RIGHT):new Bc(n.left+n.width-k/3,n.top+w/3),this.bottomRightBorderDoubleOuterBox=u>0||h>0?Mc(n.left+v,n.top+b,u-k/3,h-x/3,tc.BOTTOM_RIGHT):new Bc(n.left+n.width-k/3,n.top+n.height-x/3),this.bottomLeftBorderDoubleOuterBox=d>0||A>0?Mc(n.left+C/3,n.top+y,d-C/3,A-x/3,tc.BOTTOM_LEFT):new Bc(n.left+C/3,n.top+n.height-x/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?Mc(n.left+2*C/3,n.top+2*w/3,i-2*C/3,a-2*w/3,tc.TOP_LEFT):new Bc(n.left+2*C/3,n.top+2*w/3),this.topRightBorderDoubleInnerBox=i>0||a>0?Mc(n.left+m,n.top+2*w/3,s-2*k/3,c-2*w/3,tc.TOP_RIGHT):new Bc(n.left+n.width-2*k/3,n.top+2*w/3),this.bottomRightBorderDoubleInnerBox=u>0||h>0?Mc(n.left+v,n.top+b,u-2*k/3,h-2*x/3,tc.BOTTOM_RIGHT):new Bc(n.left+n.width-2*k/3,n.top+n.height-2*x/3),this.bottomLeftBorderDoubleInnerBox=d>0||A>0?Mc(n.left+2*C/3,n.top+y,d-2*C/3,A-2*x/3,tc.BOTTOM_LEFT):new Bc(n.left+2*C/3,n.top+n.height-2*x/3),this.topLeftBorderStroke=i>0||a>0?Mc(n.left+C/2,n.top+w/2,i-C/2,a-w/2,tc.TOP_LEFT):new Bc(n.left+C/2,n.top+w/2),this.topRightBorderStroke=i>0||a>0?Mc(n.left+m,n.top+w/2,s-k/2,c-w/2,tc.TOP_RIGHT):new Bc(n.left+n.width-k/2,n.top+w/2),this.bottomRightBorderStroke=u>0||h>0?Mc(n.left+v,n.top+b,u-k/2,h-x/2,tc.BOTTOM_RIGHT):new Bc(n.left+n.width-k/2,n.top+n.height-x/2),this.bottomLeftBorderStroke=d>0||A>0?Mc(n.left+C/2,n.top+y,d-C/2,A-x/2,tc.BOTTOM_LEFT):new Bc(n.left+C/2,n.top+n.height-x/2),this.topLeftBorderBox=i>0||a>0?Mc(n.left,n.top,i,a,tc.TOP_LEFT):new Bc(n.left,n.top),this.topRightBorderBox=s>0||c>0?Mc(n.left+m,n.top,s,c,tc.TOP_RIGHT):new Bc(n.left+n.width,n.top),this.bottomRightBorderBox=u>0||h>0?Mc(n.left+v,n.top+b,u,h,tc.BOTTOM_RIGHT):new Bc(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=d>0||A>0?Mc(n.left,n.top+y,d,A,tc.BOTTOM_LEFT):new Bc(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||a>0?Mc(n.left+C,n.top+w,Math.max(0,i-C),Math.max(0,a-w),tc.TOP_LEFT):new Bc(n.left+C,n.top+w),this.topRightPaddingBox=s>0||c>0?Mc(n.left+Math.min(m,n.width-k),n.top+w,m>n.width+k?0:Math.max(0,s-k),Math.max(0,c-w),tc.TOP_RIGHT):new Bc(n.left+n.width-k,n.top+w),this.bottomRightPaddingBox=u>0||h>0?Mc(n.left+Math.min(v,n.width-C),n.top+Math.min(b,n.height-x),Math.max(0,u-k),Math.max(0,h-x),tc.BOTTOM_RIGHT):new Bc(n.left+n.width-k,n.top+n.height-x),this.bottomLeftPaddingBox=d>0||A>0?Mc(n.left+C,n.top+Math.min(y,n.height-x),Math.max(0,d-C),Math.max(0,A-x),tc.BOTTOM_LEFT):new Bc(n.left+C,n.top+n.height-x),this.topLeftContentBox=i>0||a>0?Mc(n.left+C+_,n.top+w+E,Math.max(0,i-(C+_)),Math.max(0,a-(w+E)),tc.TOP_LEFT):new Bc(n.left+C+_,n.top+w+E),this.topRightContentBox=s>0||c>0?Mc(n.left+Math.min(m,n.width+C+_),n.top+w+E,m>n.width+C+_?0:s-C+_,c-(w+E),tc.TOP_RIGHT):new Bc(n.left+n.width-(k+T),n.top+w+E),this.bottomRightContentBox=u>0||h>0?Mc(n.left+Math.min(v,n.width-(C+_)),n.top+Math.min(b,n.height+w+E),Math.max(0,u-(k+T)),h-(x+B),tc.BOTTOM_RIGHT):new Bc(n.left+n.width-(k+T),n.top+n.height-(x+B)),this.bottomLeftContentBox=d>0||A>0?Mc(n.left+C+_,n.top+y,Math.max(0,d-(C+_)),A-(x+B),tc.BOTTOM_LEFT):new Bc(n.left+C+_,n.top+n.height-(x+B))}return t}();!function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(tc||(tc={}));var Mc=function(t,e,n,r,i){var a=(Math.sqrt(2)-1)/3*4,o=n*a,s=r*a,c=t+n,l=e+r;switch(i){case tc.TOP_LEFT:return new Sc(new Bc(t,l),new Bc(t,l-s),new Bc(c-o,e),new Bc(c,e));case tc.TOP_RIGHT:return new Sc(new Bc(t,e),new Bc(t+o,e),new Bc(c,l-s),new Bc(c,l));case tc.BOTTOM_RIGHT:return new Sc(new Bc(c,e),new Bc(c,e+s),new Bc(t+o,l),new Bc(t,l));case tc.BOTTOM_LEFT:default:return new Sc(new Bc(c,l),new Bc(c-o,l),new Bc(t,e+s),new Bc(t,e))}},Oc=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},Dc=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},Fc=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},Nc=function(){function t(t,e,n){this.offsetX=t,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return t}(),Rc=function(){function t(t,e){this.path=t,this.target=e,this.type=1}return t}(),Pc=function(){function t(t){this.opacity=t,this.type=2,this.target=6}return t}(),Qc=function(t){return 0===t.type},Uc=function(t){return 1===t.type},Hc=function(t){return 2===t.type},$c=function(t,e){return t.length===e.length&&t.some((function(t,n){return t===e[n]}))},jc=function(t,e,n,r,i){return t.map((function(t,a){switch(a){case 0:return t.add(e,n);case 1:return t.add(e+r,n);case 2:return t.add(e+r,n+i);case 3:return t.add(e,n+i)}return t}))},Kc=function(){function t(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),zc=function(){function t(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new Ic(this.container),this.container.styles.opacity<1&&this.effects.push(new Pc(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new Nc(n,r,i))}if(0!==this.container.styles.overflowX){var a=Oc(this.curves),o=Fc(this.curves);$c(a,o)?this.effects.push(new Rc(a,6)):(this.effects.push(new Rc(a,2)),this.effects.push(new Rc(o,4)))}}return t.prototype.getEffects=function(t){for(var e=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter((function(t){return!Uc(t)}));if(e||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,i),e=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var a=Oc(n.curves),o=Fc(n.curves);$c(a,o)||r.unshift(new Rc(o,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter((function(e){return la(e.target,t)}))},t}(),Gc=function(t,e,n,r){t.container.elements.forEach((function(i){var a=la(i.flags,4),o=la(i.flags,2),s=new zc(i,t);la(i.styles.display,2048)&&r.push(s);var c=la(i.flags,8)?[]:r;if(a||o){var l=a||i.styles.isPositioned()?n:e,u=new Kc(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var h=i.styles.zIndex.order;if(h<0){var f=0;l.negativeZIndex.some((function(t,e){return h>t.element.container.styles.zIndex.order?(f=e,!1):f>0})),l.negativeZIndex.splice(f,0,u)}else if(h>0){var d=0;l.positiveZIndex.some((function(t,e){return h>=t.element.container.styles.zIndex.order?(d=e+1,!1):d>0})),l.positiveZIndex.splice(d,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);Gc(s,u,a?u:n,c)}else i.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),Gc(s,e,n,c);la(i.flags,8)&&Xc(i,c)}))},Xc=function(t,e){for(var n=t instanceof Vo?t.start:1,r=t instanceof Vo&&t.reversed,i=0;i0&&t.intrinsicHeight>0){var r=nl(t),i=Fc(e);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(t){return r(this,void 0,void 0,(function(){var e,r,a,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w;return i(this,(function(i){switch(i.label){case 0:this.applyEffects(t.getEffects(4)),e=t.container,r=t.curves,a=e.styles,s=0,c=e.textNodes,i.label=1;case 1:return s0&&C>0&&(b=r.ctx.createPattern(g,"repeat"),r.renderRepeat(y,b,T,B))):Nr(n)&&(v=al(t,e,[null,null,null]),y=v[0],w=v[1],k=v[2],x=v[3],C=v[4],E=0===n.position.length?[Kn]:n.position,T=Xn(E[0],x),B=Xn(E[E.length-1],C),_=wr(n,T,B,x,C),S=_[0],L=_[1],S>0&&L>0&&(I=r.ctx.createRadialGradient(w+T,k+B,0,w+T,k+B,S),pr(n.stops,2*S).forEach((function(t){return I.addColorStop(t.stop,ir(t.color))})),r.path(y),r.ctx.fillStyle=I,S!==L?(M=t.bounds.left+.5*t.bounds.width,O=t.bounds.top+.5*t.bounds.height,F=1/(D=L/S),r.ctx.save(),r.ctx.translate(M,O),r.ctx.transform(1,0,0,D,0,0),r.ctx.translate(-M,-O),r.ctx.fillRect(w,F*(k-O)+O,x,C*F),r.ctx.restore()):r.ctx.fill())),i.label=6;case 6:return e--,[2]}}))},r=this,a=0,o=t.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return a0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,2)]:[3,11]:[3,13];case 4:return i.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,3)];case 6:return i.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,o,t.curves)];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,t.curves)];case 10:i.sent(),i.label=11;case 11:o++,i.label=12;case 12:return s++,[3,3];case 13:return[2]}}))}))},n.prototype.renderDashedDottedBorder=function(t,e,n,a,o){return r(this,void 0,void 0,(function(){var r,s,c,l,u,h,f,d,A,g,p,m,b,v,y,w;return i(this,(function(i){return this.ctx.save(),r=Jc(a,n),s=Wc(a,n),2===o&&(this.path(s),this.ctx.clip()),Lc(s[0])?(c=s[0].start.x,l=s[0].start.y):(c=s[0].x,l=s[0].y),Lc(s[1])?(u=s[1].end.x,h=s[1].end.y):(u=s[1].x,h=s[1].y),f=0===n||2===n?Math.abs(c-u):Math.abs(l-h),this.ctx.beginPath(),3===o?this.formatPath(r):this.formatPath(s.slice(0,2)),d=e<3?3*e:2*e,A=e<3?2*e:e,3===o&&(d=e,A=e),g=!0,f<=2*d?g=!1:f<=2*d+A?(d*=p=f/(2*d+A),A*=p):(m=Math.floor((f+A)/(d+A)),b=(f-m*d)/(m-1),A=(v=(f-(m+1)*d)/m)<=0||Math.abs(A-b)0&&void 0!==arguments[0]?arguments[0]:[];Qs(t=rf(document.body.children)).call(t,(function(t,n){void 0!==e[n]&&(t.style.display=e[n])}))}(a),document.body.style.overflow=o}))};function PB(t,e){RB(t,(function(t,n){window.scrollTo(0,0),t.innerHTML=t.innerHTML.replace(/
    "].join("");e.innerHTML=n;var r=e.firstChild;return t.appendChild(r),r}},{key:"addStyle",value:function(){var t=document.createElement("style"),e=[".ace_search {","color: black;","background-color: #ddd;","border: 1px solid #cbcbcb;","border-top: 0 none;","max-width: 325px;","overflow: hidden;","margin: 0;","padding: 4px;","padding-right: 6px;","padding-bottom: 0;","position: absolute;","top: 0px;","z-index: 99;","white-space: normal;","font-size: 12px;","}",".ace_search.left {","border-left: 0 none;","border-radius: 0px 0px 5px 0px;","left: 0;","}",".ace_search.right {","border-radius: 0px 0px 0px 5px;","border-right: 0 none;","right: 0;","}",".ace_search_form, .ace_replace_form {","border-radius: 3px;","border: 1px solid #cbcbcb;","float: left;","margin-bottom: 4px;","overflow: hidden;","}",".ace_search_form.ace_nomatch {","outline: 1px solid red;","}",".ace_search_field {","background-color: white;","border-right: 1px solid #cbcbcb;","border: 0 none;","-webkit-box-sizing: border-box;","-moz-box-sizing: border-box;","box-sizing: border-box;","float: left;","height: 22px;","outline: 0;","padding: 0 7px;","width: 238px;","margin: 0;","}",".ace_searchbtn,",".ace_replacebtn {","background: #fff;","border: 0 none;","border-left: 1px solid #dcdcdc;","cursor: pointer;","float: left;","height: 22px;","padding: 0 5px;","margin: 0;","position: relative;","}",".ace_searchbtn:last-child,",".ace_replacebtn:last-child {","border-top-right-radius: 3px;","border-bottom-right-radius: 3px;","}",".ace_searchbtn:disabled {","background: none;","cursor: default;","}",".ace_searchbtn {","background-position: 50% 50%;","background-repeat: no-repeat;","width: 27px;","}",".ace_searchbtn.prev {","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiSU1NZUAC/6E0I0yACYskCpsJiySKIiY0SUZk40FyTEgCjGgKwTRAgAEAQJUIPCE+qfkAAAAASUVORK5CYII=); ","}",".ace_searchbtn.next {","background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNpiTE1NZQCC/0DMyIAKwGJMUAYDEo3M/s+EpvM/mkKwCQxYjIeLMaELoLMBAgwAU7UJObTKsvAAAAAASUVORK5CYII=); ","}",".ace_searchbtn_close {","background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;","border-radius: 50%;","border: 0 none;","color: #656565;","cursor: pointer;","float: right;","font: 16px/16px Arial;","height: 14px;","margin: 5px 1px 9px 5px;","padding: 0;","text-align: center;","width: 14px;","}",".ace_searchbtn_close:hover {","background-color: #656565;","background-position: 50% 100%;","color: white;","}",".ace_replacebtn.prev {","width: 54px","}",".ace_replacebtn.next {","width: 27px","}",".ace_button {","margin-left: 2px;","cursor: pointer;","-webkit-user-select: none;","-moz-user-select: none;","-o-user-select: none;","-ms-user-select: none;","user-select: none;","overflow: hidden;","opacity: 0.7;","border: 1px solid rgba(100,100,100,0.23);","padding: 1px;","-moz-box-sizing: border-box;","box-sizing: border-box;","color: black;","}",".ace_button:hover {","background-color: #eee;","opacity:1;","}",".ace_button:active {","background-color: #ddd;","}",".ace_button.checked {","border-color: #3399ff;","opacity:1;","}",".ace_search_options{","clear: both;","margin: 4px 0;","text-align: right;","-webkit-user-select: none;","-moz-user-select: none;","-o-user-select: none;","-ms-user-select: none;","user-select: none;","}",".replace_toggle{","float: left;","margin-top: -2px;","padding: 0 5px;"," }",".ace_search_counter{","float: left;","font-family: arial;","padding: 0 8px;","}","button svg,path {","pointer-events: none;","}"].join("");t.setAttribute("data-name","js-searchbox"),t.textContent=e,document.head.appendChild(t)}},{key:"initElements",value:function(t){this.searchBox=t.querySelector(".ace_search_form"),this.replaceBox=t.querySelector(".ace_replace_form"),this.searchOptions=t.querySelector(".ace_search_options"),this.regExpOption=t.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=t.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=t.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field")}},{key:"bindKeys",value:function(){var t=this,e={"Ctrl-F|Cmd-F|Ctrl-H|Command-Alt-F":function(){t.isReplace=!t.isReplace;var e=t.isReplace;t.replaceBox.style.display=e?"":"none",t[e?"replaceInput":"searchInput"].focus()},"Ctrl-G|Cmd-G":function(){t.findNext()},"Ctrl-Shift-G|Cmd-Shift-G":function(){t.findPrev()},Esc:function(){ks((function(){t.hide()}))},Enter:function(){t.activeInput===t.replaceInput&&t.replace(),t.findNext()},"Shift-Enter":function(){t.activeInput===t.replaceInput&&t.replace(),t.findPrev()},"Alt-Enter":function(){t.activeInput===t.replaceInput&&oc(t).call(t),t.findAll()},Tab:function(){this.activeInput===this.replaceInput?this.searchInput.focus():this.replaceInput.focus()}};this.element.addEventListener("keydown",(function(t){var n;wv(n=Is(e)).call(n,(function(n){var r=function(t,e){var n,r={BACKSPACE:8,TAB:9,ENTER:13,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,UP:38,DOWN:40,INSERT:45,DELETE:46,INSERT_MAC:96,ASTERISK:106,PLUS:107,MINUS:109,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,SLASH:191,TRA:192,BACKSLASH:220},i=wv(n=t.split("|")).call(n,(function(t){var n,i=wv(n=t.split("-")).call(n,(function(t){var n,i;switch(t){case"Ctrl":i=e.ctrlKey;break;case"Shift":i=e.shiftKey;break;case"Alt":i=e.altKey;break;case"Cmd":i=e.metaKey;break;default:1===t.length?i=e.keyCode===t.charCodeAt(0):wv(n=Is(r)).call(n,(function(n){return t.toUpperCase()===n&&(i=e.keyCode===r[n]),n}))}return!i}));return!i}));return i}(n,t);return r&&(t.stopPropagation(),t.preventDefault(),e[n](t)),r}))}))}},{key:"$syncOptions",value:function(){SO(this.regExpOption,"checked",this.regExpOption.checked),SO(this.wholeWordOption,"checked",this.wholeWordOption.checked),SO(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),Th(this).call(this,!1,!1)}},{key:"find",value:function(t,e){var n=this,r=this.searchInput.value,i={skipCurrent:t,backwards:e,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked};this.$find(r,i,(function(t){var e=t.matches(!1,t.from());n.cm.setSelection(e.from,e.to)}))}},{key:"$find",value:function(t,e,n){var r,i,a,o,s,c,l=this.cm;if(!t)return this.clearSearch(l),void this.updateCount();var u=t,h=e,f=!0,d=h.caseSensitive,A=h.regExp,g=h.wholeWord;A&&(u=u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")),g&&(u=d?RegExp("\\b".concat(u,"\\b")):RegExp("\\b".concat(u,"\\b"),"i")),A&&(u=RegExp(u)),this.clearSearch(l),this.doSearch(l,u,d),this.updateCount(),c=h.backwards?h.skipCurrent?"from":"to":h.skipCurrent?"to":"from";var p=l.getCursor(c),m=l.getSearchCursor(u,p,!d);o=fs(r=m.findNext).call(r,m),s=fs(i=m.findPrevious).call(i,m),h.backwards&&!s()?(f=o())&&(l.setCursor(l.doc.size-1,0),this.$find(t,e,n),a=!0):h.backwards||o()||(f=s())&&(l.setCursor(0,0),this.$find(t,e,n),a=!0);var b=!f&&this.searchInput.value;SO(this.searchBox,"ace_nomatch",b),!a&&f&&n(m)}},{key:"findNext",value:function(){Th(this).call(this,!0,!1)}},{key:"findPrev",value:function(){Th(this).call(this,!0,!0)}},{key:"findAll",value:function(){var t=this.cm,e=this.searchInput.value,n=this.searchInput.value;SO(this.searchBox,"ace_nomatch",n),t.showMatchesOnScrollbar&&t.showMatchesOnScrollbar(e),this.hide()}},{key:"replace",value:function(){var t=this.cm,e=t.getOption("readOnly"),n=!!t.getSelection();!e&&n&&t.replaceSelection(this.replaceInput.value,"start"),this.updateCount()}},{key:"replaceAndFindNext",value:function(){this.cm.getOption("readOnly")||(this.replace(),this.findNext())}},{key:"replaceAll",value:function(){var t,e,n=this.cm,r=this.searchInput.value,i=this.replaceInput.value,a=RegExp(r,this.caseSensitiveOption.checked?"g":"gi");this.wholeWordOption.checked&&!this.regExpOption.checked&&(a=this.caseSensitiveOption.checked?RegExp("\\b".concat(r,"\\b"),"g"):RegExp("\\b".concat(r,"\\b"),"gi")),!n.getOption("readOnly")&&n.getSelection()&&(e=n.getCursor(),t=(t=n.getValue()).replace(a,i),n.setValue(t),n.setCursor(e)),this.updateCount()}},{key:"toggleReplace",value:function(){var t=this.cm.display.wrapper;"+"===t.parentElement.querySelector("[action=toggleReplace]").innerText?(t.parentElement.querySelector("[action=toggleReplace]").innerText="-",this.replaceBox.style.display="",this.isReplace=!0):(t.parentElement.querySelector("[action=toggleReplace]").innerText="+",this.replaceBox.style.display="none",this.isReplace=!1)}},{key:"hide",value:function(){var t=this.cm;this.clearSearch(t),this.element.style.display="none",t.focus()}},{key:"isVisible",value:function(){return"none"!==this.element.style.display}},{key:"show",value:function(t,e){(this.element.style.display="",this.replaceBox.style.display=e?"":"none",this.isReplace=e,t)&&(this.searchInput.value=t,Th(this).call(this,!1,!1));this.searchInput.focus(),this.searchInput.select()}},{key:"isFocused",value:function(){var t=document.activeElement;return t===this.searchInput||t===this.replaceInput}},{key:"doSearch",value:function(t,e,n){var r=this.getSearchState(t),i=e;i&&i!==r.queryText&&(this.startSearch(t,r,i,n),r.posFrom=t.getCursor(),r.posTo=r.posFrom)}},{key:"parseString",value:function(t){return t.replace(/\\([nrt\\])/g,(function(t,e){return"n"===e?"\n":"r"===e?"\r":"t"===e?"\t":"\\"===e?"\\":t}))}},{key:"parseQuery",value:function(t){var e=("object"===Po(t)?t.toString():t).match(/^\/(.*)\/([a-z]*)$/),n=t;if(e)try{var r;n=new RegExp(e[1],-1===Kf(r=e[2]).call(r,"i")?"":"i")}catch(t){}else n=this.parseString(t);return("string"==typeof n?""===n:n.test(""))&&(n=/x^/),n}},{key:"startSearch",value:function(t,e,n,r){e.queryText=n,e.query=this.parseQuery(n),t.removeOverlay(e.overlay,this.queryCaseInsensitive(e.query,r)),e.overlay=this.searchOverlay(e.query,this.queryCaseInsensitive(e.query,r)),t.addOverlay(e.overlay),t.showMatchesOnScrollbar&&(e.annotate&&(e.annotate.clear(),e.annotate=null),e.annotate=t.showMatchesOnScrollbar(e.query,this.queryCaseInsensitive(e.query,r)))}},{key:"queryCaseInsensitive",value:function(t,e){return"string"==typeof t&&!e}},{key:"searchOverlay",value:function(t,e){var n=t;return"string"==typeof t?n=new RegExp(t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),e?"gi":"g"):t.global||(n=new RegExp(t.source,t.ignoreCase?"gi":"g")),{token:function(t){n.lastIndex=t.pos;var e=n.exec(t.string);if(e&&e.index===t.pos)return t.pos+=e[0].length||1,"searching";e?t.pos=e.index:t.skipToEnd()}}}},{key:"getSearchState",value:function(t){return t.state.search||(t.state.search={posFrom:null,posTo:null,lastQuery:null,query:null,overlay:null})}},{key:"clearSearch",value:function(t){var e=this;t.operation((function(){var n=e.getSearchState(t);n.lastQuery=n.query,n.query&&(n.query=null,n.queryText=null,t.removeOverlay(n.overlay),n.annotate&&(n.annotate.clear(),n.annotate=null))}))}},{key:"updateCount",value:function(){var t,e=this.cm,n=this.searchInput.value,r=[];n&&(n=n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t=this.caseSensitiveOption.checked?RegExp(n,"g"):RegExp(n,"gi"),this.wholeWordOption.checked&&(t=this.caseSensitiveOption.checked?RegExp("\\b".concat(n,"\\b"),"g"):RegExp("\\b".concat(n,"\\b"),"gi")),this.regExpOption.checked&&(t=RegExp(n,"gi")),r=e.getValue().match(t));var i=r?r.length:0,a=e.display.wrapper.parentElement.querySelector(".ace_search_counter");a&&(a.innerText="".concat(i," matches found.")),0===i&&e.setSelection({ch:0,line:0},{ch:0,line:0})}}])}();function SO(t,e,n){t.classList[n?"add":"remove"](e)}function LO(t,e,n){return e=es(e),Ko(t,IO()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function IO(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(IO=function(){return!!t})()}var MO=function(t){function e(t){var n,r;return ra(this,e),(r=LO(this,e,[t])).setName("search","search"),r.updateMarkdown=!1,r.shortcutKeyMap=cs({},hs(n="".concat(TS,"-")).call(n,QS("f")),{hookName:r.name,aliasName:t.locale[r.name]}),r.searchBox=new _O,r.searchBoxInit=!1,r}return ss(e,t),$o(e,[{key:"onClick",value:function(t){this.searchBoxInit||(this.searchBoxInit=!0,this.searchBox.init(this.$cherry.editor.editor)),this.searchBox.isVisible()?this.searchBox.hide():this.searchBox.show(t,!0)}}])}(hS),OO={bold:$S,italic:zS,"|":VS,strikethrough:JS,sub:eL,sup:iL,header:hL,insert:pL,list:vL,ol:kL,ul:EL,checklist:_L,graph:NL,size:QL,h1:$L,h2:zL,h3:VL,color:sL,quote:YL,quickTable:tI,togglePreview:rI,code:gI,inlineCode:bI,codeTheme:wI,export:CI,settings:LI,fullScreen:oI,mobilePreview:WM,copy:JM,undo:lI,redo:fI,underline:OI,switchModel:NI,image:HI,audio:GI,video:YI,br:tM,hr:rM,formula:sM,link:uM,table:dM,toc:pM,lineTable:vM,barTable:kM,pdf:BM,word:RM,ruby:UM,theme:jM,file:MM,panel:nO,justify:aO,detail:cO,drawIo:hO,wordCount:GM,publish:wO,changeLocale:CO,shortcutKey:BO,search:MO},DO=function(){return $o((function t(e){ra(this,t),this.toolbar=e,this.hooks={},this.allMenusName=[],this.level1MenusName=[],this.level2MenusName={},this.menuOptionsKey=["name","icon","subMenu"],this.init()}),[{key:"$newMenu",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!this.hooks[t]){var n=e||{name:t,icon:t},r=this.toolbar.options,i=r.$cherry,a=r.customMenu;i.$currentMenuOptions=n,OO[t]?(this.allMenusName.push(t),this.hooks[t]=new OO[t](i)):null!=a&&a[t]&&(this.allMenusName.push(t),this.hooks[t]=new a[t](i))}}},{key:"init",value:function(){var t=this,e=this.toolbar.options.buttonConfig;Qs(e).call(e,(function(e){if("string"==typeof e)t.level1MenusName.push(e),t.$newMenu(e);else if("object"===Po(e)){var n=Is(e);if(1===n.length){var r,i,a,o=jf(n,1)[0];if(qv(r=t.menuOptionsKey).call(r,o))throw Error(hs(a="this menu key is not allowed: ".concat(o,", forbid menu key: ")).call(a,t.menuOptionsKey));t.level1MenusName.push(o),t.$newMenu(o),t.level2MenusName[o]=e[o],Qs(i=e[o]).call(i,(function(e){t.$newMenu(e)}))}else{if(!e.name)return;t.level1MenusName.push(e.name),t.$newMenu(e.name,e)}}}))}}])}(),FO=function(){return $o((function t(e){ra(this,t),cs(this,"toolbarHandlers",{}),this.menus={},this.shortcutKeyMap={},this.subMenus={},this.currentActiveSubMenu=null,this.options={dom:document.createElement("div"),buttonConfig:["bold"],customMenu:[]},Ss(this.options,e),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.instanceId,this.menus=new DO(this),this.drawMenus(),this.collectShortcutKey(),this.collectToolbarHandler(),this.init()}),[{key:"init",value:function(){var t=this;this.$cherry.$event.on("cleanAllSubMenus",(function(){return t.hideAllSubMenu()}))}},{key:"previewOnly",value:function(){this.options.dom.classList.add("preview-only"),this.$cherry.wrapperDom.classList.add("cherry--no-toolbar"),this.$cherry.$event.emit("toolbarHide")}},{key:"showToolbar",value:function(){this.options.dom.classList.remove("preview-only"),this.$cherry.wrapperDom.classList.remove("cherry--no-toolbar"),this.$cherry.$event.emit("toolbarShow")}},{key:"isHasLevel2Menu",value:function(t){return this.menus.level2MenusName[t]}},{key:"isHasConfigMenu",value:function(t){return this.menus.hooks[t].subMenuConfig||[]}},{key:"isHasSubMenu",value:function(t){return Boolean(this.isHasLevel2Menu(t)||this.isHasConfigMenu(t).length>0)}},{key:"drawMenus",value:function(){var t,e=this,n=document.createDocumentFragment();Qs(t=this.menus.level1MenusName).call(t,(function(t){var r=e.menus.hooks[t].createBtn();"object"===("undefined"==typeof window?"undefined":Po(window))&&"onpointerup"in window?(r.addEventListener("pointerdown",(function(){e.isPointerDown=!0}),!1),r.addEventListener("pointerup",(function(n){e.isPointerDown&&e.onClick(n,t),e.isPointerDown=!1}),!1)):r.addEventListener("click",(function(n){e.onClick(n,t)}),!1),e.isHasSubMenu(t)&&r.classList.add("cherry-toolbar-dropdown"),n.appendChild(r)})),this.appendMenusToDom(n)}},{key:"appendMenusToDom",value:function(t){var e=bd("div","toolbar-left");e.appendChild(t),this.options.dom.appendChild(e)}},{key:"setSubMenuPosition",value:function(t,e){var n=t.getMenuPosition();e.style.left="".concat(n.left+n.width/2,"px"),e.style.top="".concat(n.top+n.height,"px"),e.style.position=t.positionModel}},{key:"drawSubMenus",value:function(t){var e=this;this.subMenus[t]=bd("div","cherry-dropdown",{name:t}),this.setSubMenuPosition(this.menus.hooks[t],this.subMenus[t]);var n=this.isHasLevel2Menu(t);n&&Qs(n).call(n,(function(n){var r=e.menus.hooks[n];if(void 0!==r&&"function"==typeof r.createBtn){var i=r.createBtn(!0);r.dom=r.dom?r.dom:e.menus.hooks[t].dom,i.addEventListener("click",(function(t){return e.onClick(t,n,!0)}),!1),e.subMenus[t].appendChild(i)}}));var r=this.isHasConfigMenu(t);r.length>0&&Qs(r).call(r,(function(n){var r=e.menus.hooks[t].createSubBtnByConfig(n);null!=n&&n.disabledHideAllSubMenu||r.addEventListener("click",(function(){return e.hideAllSubMenu()}),!1),e.subMenus[t].appendChild(r)})),this.$cherry.wrapperDom.appendChild(this.subMenus[t])}},{key:"onClick",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.menus.hooks[e];i&&(this.isHasSubMenu(e)&&!r?this.toggleSubMenu(e):("function"==typeof i.hideOtherSubMenu?i.hideOtherSubMenu((function(){return n.hideAllSubMenu()})):this.hideAllSubMenu(),i.fire(t,e)))}},{key:"activeSubMenuItem",value:function(t){var e,n,r,i=this.subMenus[t],a=null===(e=this.menus.hooks)||void 0===e||null===(n=e[t])||void 0===n?void 0:n.getActiveSubMenuIndex(i);null==i||Qs(r=i.querySelectorAll(".cherry-dropdown-item")).call(r,(function(t,e){t.classList.toggle("cherry-dropdown-item__selected",e===a)}))}},{key:"updateSubMenuPosition",value:function(){this.currentActiveSubMenu&&this.subMenus[this.currentActiveSubMenu]&&this.setSubMenuPosition(this.menus.hooks[this.currentActiveSubMenu],this.subMenus[this.currentActiveSubMenu])}},{key:"toggleSubMenu",value:function(t){if(!this.subMenus[t])return this.hideAllSubMenu(),this.drawSubMenus(t),this.subMenus[t].style.display="block",this.activeSubMenuItem(t),void(this.currentActiveSubMenu=t);"none"===this.subMenus[t].style.display?(this.hideAllSubMenu(),this.subMenus[t].style.display="block",this.setSubMenuPosition(this.menus.hooks[t],this.subMenus[t]),this.activeSubMenuItem(t),this.currentActiveSubMenu=t):(this.subMenus[t].style.display="none",this.currentActiveSubMenu=null)}},{key:"hideAllSubMenu",value:function(){var t;this.currentActiveSubMenu=null,Qs(t=this.$cherry.wrapperDom.querySelectorAll(".cherry-dropdown")).call(t,(function(t){t.style.display="none"}))}},{key:"collectMenuInfo",value:function(t){this.toolbarHandlers=Ss({},this.toolbarHandlers,t.toolbarHandlers),this.menus.hooks=Ss({},t.menus.hooks,this.menus.hooks),(!this.options.shortcutKey||Is(this.options.shortcutKey).length<=0)&&(this.shortcutKeyMap=Ss({},this.shortcutKeyMap,t.shortcutKeyMap))}},{key:"collectShortcutKey",value:function(){var t,e=this,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$cherry.options.toolbars.shortcutKey&&Is(this.$cherry.options.toolbars.shortcutKey).length>0&&Qs(t=VB(this.$cherry.options.toolbars.shortcutKey)).call(t,(function(t){var n=jf(t,2),r=n[0],i=n[1],a=r.replace(/Ctrl-/g,"Control-").replace(/-([A-Za-z])$/g,(function(t,e){return"-Key".concat(e.toUpperCase())})).replace(/-([0-9])$/g,"-Digit$1");e.shortcutKeyMap[a]={hookName:i,aliasName:e.$cherry.locale[i]||i}}));if(this.$cherry.options.toolbars.shortcutKeySettings.isReplace)this.shortcutKeyMap=this.$cherry.options.toolbars.shortcutKeySettings.shortcutKeyMap;else{var r,i;if(Qs(r=this.menus.allMenusName).call(r,(function(t){var n,r;(null===(n=e.menus.hooks[t].shortcutKeys)||void 0===n||Qs(n).call(n,(function(n){e.shortcutKeyMap[n]=t})),"object"===Po(e.menus.hooks[t].shortcutKeyMap)&&e.menus.hooks[t].shortcutKeyMap)&&Qs(r=VB(e.menus.hooks[t].shortcutKeyMap)).call(r,(function(t){var n=jf(t,2),r=n[0],i=n[1];r in e.shortcutKeyMap?console.error("The shortcut key ".concat(r," is already registered")):e.shortcutKeyMap[r]=i}))})),Qs(i=VB(this.$cherry.options.toolbars.shortcutKeySettings.shortcutKeyMap)).call(i,(function(t){var n=jf(t,2),r=n[0],i=n[1];e.shortcutKeyMap[r]=i})),!n)return;var a=FS(this.$cherry.nameSpace);if(a){var o,s,c={};Qs(o=VB(this.shortcutKeyMap)).call(o,(function(t){var e,n=jf(t,2),r=n[0],i=n[1];c[hs(e="".concat(i.hookName,"-")).call(e,i.aliasName)]=r})),Qs(s=VB(a)).call(s,(function(t){var n,r=jf(t,2),i=r[0],a=r[1],o=hs(n="".concat(a.hookName,"-")).call(n,a.aliasName);c[o]&&delete e.shortcutKeyMap[c[o]],e.shortcutKeyMap[i]=a}))}}}},{key:"updateShortcutKeyMap",value:function(t,e){if(t===e)return!1;var n=this.shortcutKeyMap[t];if(!n)return!1;delete this.shortcutKeyMap[t],this.shortcutKeyMap[e]=n,DS(this.$cherry.nameSpace,this.shortcutKeyMap)}},{key:"collectToolbarHandler",value:function(){var t,e=this;this.toolbarHandlers=ub(t=this.menus.allMenusName).call(t,(function(t,n){var r=e.menus.hooks[n];return r?(t[n]=function(t,e){"function"==typeof e&&xd.warn("MenuBase#onClick param callback is no longer supported. Please register the callback via MenuBase#registerAfterClickCb instead."),r.fire.call(r,void 0,t)},t):t}),{})}},{key:"matchShortcutKey",value:function(t){var e,n=IS(t),r=NS(n);return!(null===(e=this.shortcutKeyMap)||void 0===e||!e[r])}},{key:"fireShortcutKey",value:function(t){var e;if(!OS(this.$cherry.nameSpace))return!1;var n,r=IS(t),i=NS(r),a=null===(e=this.shortcutKeyMap[i])||void 0===e?void 0:e.hookName;"string"==typeof a&&a&&(null===(n=this.menus.hooks[a])||void 0===n||n.fire(t,i));return!0}}])}();function NO(t,e,n){return e=es(e),Ko(t,RO()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function RO(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(RO=function(){return!!t})()}var PO=function(t){function e(){return ra(this,e),NO(this,e,arguments)}return ss(e,t),$o(e,[{key:"visible",get:function(){var t=window.getComputedStyle(this.bubbleDom);return"none"!==t.display&&"hidden"!==t.visibility},set:function(t){var n=window.getComputedStyle(this.bubbleDom);t?"none"===n.display&&(this.bubbleDom.style.display=e.displayType):"none"!==n.display&&(this.bubbleDom.style.display="none")}},{key:"init",value:function(){var t,e=this;this.options.editor=this.$cherry.editor,this.addSelectionChangeListener(),this.bubbleDom=this.options.dom,this.editorDom=this.options.editor.getEditorDom(),this.initBubbleDom(),this.editorDom.querySelector(".CodeMirror").appendChild(this.bubbleDom),Qs(t=VB(this.shortcutKeyMap)).call(t,(function(t){var n=jf(t,2),r=n[0],i=n[1];e.$cherry.toolbar.shortcutKeyMap[r]=i}))}},{key:"appendMenusToDom",value:function(t){this.options.dom.appendChild(t)}},{key:"getScrollTop",value:function(){return this.options.editor.editor.getScrollInfo().top}},{key:"updatePositionWhenScroll",value:function(){this.bubbleDom.style.display===e.displayType&&(this.bubbleDom.style.marginTop="".concat(Ad(this.bubbleDom.dataset.scrollTop)-this.getScrollTop(),"px"))}},{key:"showBubble",value:function(t,e){this.visible||(this.visible=!0,this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=String(this.getScrollTop()));var n=this.editorDom.querySelector(".CodeMirror-lines").firstChild.getBoundingClientRect(),r=this.editorDom.getBoundingClientRect(),i=n.left-r.left,a=n.width+i,o=t;o<2*this.bubbleDom.offsetHeight?(o+=this.bubbleDom.offsetHeight-this.bubbleTop.getBoundingClientRect().height,this.bubbleTop.style.display="block",this.bubbleBottom.style.display="none"):(o-=this.bubbleDom.offsetHeight+2*this.bubbleBottom.getBoundingClientRect().height,this.bubbleTop.style.display="none",this.bubbleBottom.style.display="block"),this.bubbleDom.style.top="".concat(o,"px");var s=e-this.bubbleDom.offsetWidth/2;sa?(s=a-this.bubbleDom.offsetWidth,this.$setBubbleCursorPosition("".concat(e-s,"px"))):this.$setBubbleCursorPosition("50%"),this.bubbleDom.style.left="".concat(Math.max(20,s),"px")}},{key:"hideBubble",value:function(){this.visible=!1}},{key:"$setBubbleCursorPosition",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"50%";if("50%"===t)this.bubbleTop.style.left="50%",this.bubbleBottom.style.left="50%";else{var e=Ad(t)<10?"10px":t;this.bubbleTop.style.left=e,this.bubbleBottom.style.left=e}}},{key:"initBubbleDom",value:function(){var t=document.createElement("div");t.className="cherry-bubble-top";var e=document.createElement("div");e.className="cherry-bubble-bottom",this.bubbleTop=t,this.bubbleBottom=e,this.bubbleDom.appendChild(t),this.bubbleDom.appendChild(e),this.visible=!1}},{key:"getBubbleDom",value:function(){return this.bubbleDom}},{key:"addSelectionChangeListener",value:function(){var t=this;this.options.editor.addListener("change",(function(e){t.hideBubble()})),this.options.editor.addListener("refresh",(function(e){t.hideBubble()})),this.options.editor.addListener("scroll",(function(e){t.updatePositionWhenScroll()})),this.options.editor.addListener("beforeSelectionChange",(function(e,n){if(ks((function(){var r=e.getSelections(),i=r.join("");i!==t.lastSelectionsStr&&(i||t.lastSelectionsStr)&&(t.lastSelections=t.lastSelections?t.lastSelections:[],t.$cherry.$event.emit("selectionChange",{selections:r,lastSelections:t.lastSelections,info:n}),t.lastSelections=r,t.lastSelectionsStr=i)}),10),"*mouse"!==n.origin&&(null!==n.origin||void 0===n.origin))return!0;if(!n.ranges[0])return!0;var r=1e6*n.ranges[0].anchor.line+n.ranges[0].anchor.ch,i=1e6*n.ranges[0].head.line+n.ranges[0].head.ch,a="asc";r>i&&(a="desc"),ks((function(){if(e.getSelections().join("").length<=0)t.hideBubble();else{var n=e.getWrapperElement().getElementsByClassName("CodeMirror-selected"),r=t.editorDom.getBoundingClientRect(),i=0,o=0;if("object"!==Po(n)||n.length<=0)t.hideBubble();else{for(var s=0;s=o&&(o=l,i=c.left-r.left+c.width/2):(l<=o||o<=0)&&(o=l,i=c.left-r.left+c.width/2)}t.showBubble(o,i)}}}),10)}))}}])}(FO);function QO(t,e,n){return e=es(e),Ko(t,UO()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function UO(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(UO=function(){return!!t})()}cs(PO,"displayType","flex");var HO=function(t){function e(){return ra(this,e),QO(this,e,arguments)}return ss(e,t),$o(e,[{key:"init",value:function(){var t,e=this;this.editor=this.$cherry.editor,this.editorDom=this.editor.getEditorDom(),this.editorDom.querySelector(".CodeMirror-scroll").appendChild(this.options.dom),this.initAction(),Qs(t=VB(this.shortcutKeyMap)).call(t,(function(t){var n=jf(t,2),r=n[0],i=n[1];e.$cherry.toolbar.shortcutKeyMap[r]=i}))}},{key:"appendMenusToDom",value:function(t){this.options.dom.appendChild(t)}},{key:"initAction",value:function(){var t=this;this.editor.addListener("cursorActivity",(function(e,n){t.cursorActivity(n,e)})),this.editor.addListener("update",(function(e,n){t.cursorActivity(n,e)})),this.editor.addListener("refresh",(function(e,n){ks((function(){t.cursorActivity(n,e)}),0)}))}},{key:"update",value:function(t,e){var n=e.getCursor();if(this.isHidden(n.line,e))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block"}},{key:"cursorActivity",value:function(t,e){var n=e.getCursor(),r=document.querySelector(".cherry-editor .CodeMirror-lines");if(!r)return!1;var i=getComputedStyle(r),a=Ad(i.paddingLeft),o=Ad(i.paddingTop);if(this.isHidden(n.line,e))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block",this.options.dom.style.left="".concat(a,"px"),this.options.dom.style.top="".concat(this.getLineHeight(n.line,e)+o,"px")}},{key:"isHidden",value:function(t,e){return e.getSelections().length>1||(e.getSelection().length>0||!!e.getLine(t))}},{key:"getLineHeight",value:function(t,e){var n=0;return e.getDoc().eachLine(0,t,(function(t){n+=t.height})),n}}])}(FO);function $O(t,e,n){return e=es(e),Ko(t,jO()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function jO(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(jO=function(){return!!t})()}var KO=function(t){function e(){return ra(this,e),$O(this,e,arguments)}return ss(e,t),$o(e,[{key:"appendMenusToDom",value:function(t){var e=bd("div","toolbar-right");e.appendChild(t),this.options.dom.appendChild(e)}},{key:"init",value:function(){var t,n=this;jm(es(e.prototype),"init",this).call(this),Qs(t=VB(this.shortcutKeyMap)).call(t,(function(t){var e=jf(t,2),r=e[0],i=e[1];n.$cherry.toolbar.shortcutKeyMap[r]=i}))}}])}(FO),zO=function(){return $o((function t(e){var n,r,i,a,o;ra(this,t),this.$cherry=e.$cherry,this.editor=e.$cherry.editor.editor,this.tocStr="",this.updateLocationHash=null===(n=e.updateLocationHash)||void 0===n||n,this.defaultModel=null!==(r=e.defaultModel)&&void 0!==r?r:"full",this.showAutoNumber=null!==(i=e.showAutoNumber)&&void 0!==i&&i,this.position=null!==(a=e.position)&&void 0!==a?a:"absolute",this.cssText=null!==(o=e.cssText)&&void 0!==o?o:"",this.init()}),[{key:"init",value:function(){var t=this;this.drawDom(),this.timer=ks((function(){t.updateTocList()}),300),this.editor.on("change",(function(e,n){clearTimeout(t.timer),t.timer=ks((function(){t.updateTocList(),t.$switchModel(t.model)}),300)})),this.$switchModel(this.getModelFromLocalStorage())}},{key:"getModelFromLocalStorage",value:function(){return"undefined"==typeof localStorage?this.defaultModel:localStorage.getItem("cherry-toc-model")||this.defaultModel}},{key:"setModelToLocalStorage",value:function(t){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-toc-model",t)}},{key:"drawDom",value:function(){var t=bd("div","cherry-flex-toc cherry-flex-toc__pure".concat(this.showAutoNumber?" auto-num":""));"fixed"===this.position&&t.classList.add("cherry-flex-toc__fixed"),this.cssText.length>0&&(t.style.cssText=this.cssText);var e=bd("div","cherry-toc-head"),n=bd("span","cherry-toc-title");n.append(this.$cherry.locale.toc);var r=bd("i","ch-icon ch-icon-chevronsRight"),i=bd("i","ch-icon ch-icon-chevronsLeft");this.tocClose=r,this.tocOpen=i,e.appendChild(n),e.appendChild(r),e.appendChild(i),t.appendChild(e);var a=bd("div","cherry-toc-list");this.tocListDom=a,t.appendChild(a),this.tocDom=t,this.$cherry.wrapperDom.appendChild(t),this.bindClickEvent()}},{key:"bindClickEvent",value:function(){var t=this;this.tocDom.addEventListener("click",(function(e){var n=t.$getClosestNode(e.target,"A");if(!1!==n&&/cherry-toc-one-a/.test(n.className)){var r=n.dataset,i=r.id,a=r.index;if("hide"===t.$cherry.status.previewer){for(var o=t.$cherry.editor.editor.getSearchCursor(/(?:^|\n)\n*((?:[ \t\u00a0]*#{1,6}).+?|(?:[ \t\u00a0]*.+)\n(?:[ \t\u00a0]*[=]+|[-]+))(?=$|\n)/g),s=0;s<=a;s++)o.findNext();var c=o.from();t.$cherry.editor.scrollToLineNum(c.line,c.line+1,0)}else t.$cherry.previewer.scrollToHeadByIndex(a);t.updateLocationHash&&(location.href=i)}})),this.tocClose.addEventListener("click",(function(e){t.$switchModel("pure"),t.setModelToLocalStorage("pure")})),this.tocOpen.addEventListener("click",(function(e){t.$switchModel("full"),t.setModelToLocalStorage("full")})),window&&window.addEventListener("resize",(function(){t.$switchModel(t.model)})),this.editor.on("scroll",(function(e,n){t.updateTocList(!0)}));var e=this.$cherry.previewer.getDomCanScroll();"HTML"===e.nodeName?window.addEventListener("scroll",(function(){t.updateTocList(!0)})):e.addEventListener("scroll",(function(){t.updateTocList(!0)}))}},{key:"$switchModel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pure";this.model=t;var e="cherry-flex-toc__".concat(t);this.tocDom.classList.contains(e)||(this.tocDom.classList.remove("cherry-flex-toc__pure"),this.tocDom.classList.remove("cherry-flex-toc__full"),this.tocDom.classList.add(e));var n=this.tocListDom.querySelectorAll(".cherry-toc-one-a");if(n.length>0){var r=28;if("pure"===t){var i=this.tocListDom.getBoundingClientRect().height,a=Math.floor((i-3*n.length)/n.length);r=a<3?3:a>10?10:a}for(var o=0;o0&&void 0!==arguments[0]&&arguments[0]));else{var t=this.$cherry.getToc(),e="";if(LA(t).call(t,(function(t){return e+=t.text,t})),e=this.$cherry.engine.hash(e),this.tocStr!==e){this.tocStr=e;var n="",r=0;LA(t).call(t,(function(t){var e,i,a,o,s=t.text.replace(//g,""),c=s.replace(/<[^>]+?>/g,"");return n+=hs(e=hs(i=hs(a=hs(o='')).call(e,s,""),r+=1,t})),this.tocListDom.innerHTML=n}}if("hide"===this.$cherry.status.previewer);else{for(var i,a=this.$cherry.previewer.getDomCanScroll(),o="HTML"===a.nodeName?0:a.getBoundingClientRect().y,s=this.$cherry.previewer.getDomContainer().querySelectorAll("h1,h2,h3,h4,h5,h6,h7,h8"),c=0;co+20)break}c=c>0?c-1:c,Qs(i=this.tocListDom.querySelectorAll(".cherry-toc-one-a")).call(i,(function(t,e){e===c?t.classList.add("current"):t.classList.remove("current")}))}}}])}();function GO(t,e,n){return e=es(e),Ko(t,XO()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function XO(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(XO=function(){return!!t})()}var VO=function(t){function e(){return ra(this,e),GO(this,e,arguments)}return ss(e,t),$o(e,[{key:"appendMenusToDom",value:function(t){this.options.dom.appendChild(t)}},{key:"init",value:function(){var t,n=this;jm(es(e.prototype),"init",this).call(this),Qs(t=VB(this.shortcutKeyMap)).call(t,(function(t){var e=jf(t,2),r=e[0],i=e[1];n.$cherry.toolbar.shortcutKeyMap[r]=i}))}}])}(FO);function WO(t,e,n){return e=es(e),Ko(t,qO()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function qO(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(qO=function(){return!!t})()}var YO=function(t){function e(){return ra(this,e),WO(this,e,arguments)}return ss(e,t),$o(e,[{key:"appendMenusToDom",value:function(t){}},{key:"init",value:function(){var t,n=this;jm(es(e.prototype),"init",this).call(this),Qs(t=VB(this.shortcutKeyMap)).call(t,(function(t){var e=jf(t,2),r=e[0],i=e[1];n.$cherry.toolbar.shortcutKeyMap[r]=i}))}}])}(FO),JO=-1,ZO=1,tD=0;function eD(t,e,n,r,i){if(t===e)return t?[[tD,t]]:[];if(null!=n){var a=function(t,e,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,i="number"==typeof n?null:n.newRange,a=t.length,o=e.length;if(0===r.length&&(null===i||0===i.length)){var s=r.index,c=t.slice(0,s),l=t.slice(s),u=i?i.index:null,h=s+o-a;if((null===u||u===h)&&!(h<0||h>o)){var f=e.slice(0,h);if((g=e.slice(h))===l){var d=Math.min(s,h);if((m=c.slice(0,d))===(v=f.slice(0,d)))return pD(m,c.slice(d),f.slice(d),l)}}if(null===u||u===s){var A=s,g=(f=e.slice(0,A),e.slice(A));if(f===c){var p=Math.min(a-A,o-A);if((b=l.slice(l.length-p))===(y=g.slice(g.length-p)))return pD(c,l.slice(0,l.length-p),g.slice(0,g.length-p),b)}}}if(r.length>0&&i&&0===i.length){var m=t.slice(0,r.index),b=t.slice(r.index+r.length);if(!(o<(d=m.length)+(p=b.length))){var v=e.slice(0,d),y=e.slice(o-p);if(m===v&&b===y)return pD(m,t.slice(d,a-p),e.slice(d,o-p),b)}}return null}(t,e,n);if(a)return a}var o=rD(t,e),s=t.substring(0,o);o=aD(t=t.substring(o),e=e.substring(o));var c=t.substring(t.length-o),l=function(t,e){var n;if(!t)return[[ZO,e]];if(!e)return[[JO,t]];var r=t.length>e.length?t:e,i=t.length>e.length?e:t,a=r.indexOf(i);if(-1!==a)return n=[[ZO,r.substring(0,a)],[tD,i],[ZO,r.substring(a+i.length)]],t.length>e.length&&(n[0][0]=n[2][0]=JO),n;if(1===i.length)return[[JO,t],[ZO,e]];var o=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length=t.length?[r,i,a,o,l]:null}var a,o,s,c,l,u=i(n,r,Math.ceil(n.length/4)),h=i(n,r,Math.ceil(n.length/2));if(!u&&!h)return null;a=h?u&&u[4].length>h[4].length?u:h:u;t.length>e.length?(o=a[0],s=a[1],c=a[2],l=a[3]):(c=a[0],l=a[1],o=a[2],s=a[3]);var f=a[4];return[o,s,c,l,f]}(t,e);if(o){var s=o[0],c=o[1],l=o[2],u=o[3],h=o[4],f=eD(s,l),d=eD(c,u);return f.concat([[tD,h]],d)}return function(t,e){for(var n=t.length,r=e.length,i=Math.ceil((n+r)/2),a=i,o=2*i,s=new Array(o),c=new Array(o),l=0;ln)d+=2;else if(v>r)f+=2;else if(h){if((k=a+u-m)>=0&&k=(w=n-c[k]))return nD(t,e,C,v)}}for(var y=-p+A;y<=p-g;y+=2){for(var w,k=a+y,x=(w=y===-p||y!==p&&c[k-1]n)g+=2;else if(x>r)A+=2;else if(!h){if((b=a+u-y)>=0&&b=(w=n-w))return nD(t,e,C,v)}}}}return[[JO,t],[ZO,e]]}(t,e)}(t=t.substring(0,t.length-o),e=e.substring(0,e.length-o));return s&&l.unshift([tD,s]),c&&l.push([tD,c]),hD(l,i),r&&function(t){var e=!1,n=[],r=0,i=null,a=0,o=0,s=0,c=0,l=0;for(;a0?n[r-1]:-1,o=0,s=0,c=0,l=0,i=null,e=!0)),a++;e&&hD(t);(function(t){function e(t,e){if(!t||!e)return 6;var n=t.charAt(t.length-1),r=e.charAt(0),i=n.match(oD),a=r.match(oD),o=i&&n.match(sD),s=a&&r.match(sD),c=o&&n.match(cD),l=s&&r.match(cD),u=c&&t.match(lD),h=l&&e.match(uD);return u||h?5:c||l?4:i&&!o&&s?3:o||s?2:i||a?1:0}var n=1;for(;n=h&&(h=f,c=r,l=i,u=a)}t[n-1][1]!=c&&(c?t[n-1][1]=c:(t.splice(n-1,1),n--),t[n][1]=l,u?t[n+1][1]=u:(t.splice(n+1,1),n--))}n++}})(t),a=1;for(;a=d?(f>=u.length/2||f>=h.length/2)&&(t.splice(a,0,[tD,h.substring(0,f)]),t[a-1][1]=u.substring(0,u.length-f),t[a+1][1]=h.substring(f),a++):(d>=u.length/2||d>=h.length/2)&&(t.splice(a,0,[tD,u.substring(0,d)]),t[a-1][0]=ZO,t[a-1][1]=h.substring(0,h.length-d),t[a+1][0]=JO,t[a+1][1]=u.substring(d),a++),a++}a++}}(l),l}function nD(t,e,n,r){var i=t.substring(0,n),a=e.substring(0,r),o=t.substring(n),s=e.substring(r),c=eD(i,a),l=eD(o,s);return c.concat(l)}function rD(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,a=0;nr?t=t.substring(n-r):n=0&&gD(t[c][1])){var l=t[c][1].slice(-1);if(t[c][1]=t[c][1].slice(0,-1),o=l+o,s=l+s,!t[c][1]){t.splice(c,1),r--;var u=c-1;t[u]&&t[u][0]===ZO&&(a++,s=t[u][1]+s,u--),t[u]&&t[u][0]===JO&&(i++,o=t[u][1]+o,u--),c=u}}if(AD(t[r][1])){l=t[r][1].charAt(0);t[r][1]=t[r][1].slice(1),o+=l,s+=l}}if(r0||s.length>0){o.length>0&&s.length>0&&(0!==(n=rD(s,o))&&(c>=0?t[c][1]+=s.substring(0,n):(t.splice(0,0,[tD,s.substring(0,n)]),r++),s=s.substring(n),o=o.substring(n)),0!==(n=aD(s,o))&&(t[r][1]=s.substring(s.length-n)+t[r][1],s=s.substring(0,s.length-n),o=o.substring(0,o.length-n)));var h=a+i;0===o.length&&0===s.length?(t.splice(r-h,h),r-=h):0===o.length?(t.splice(r-h,h,[ZO,s]),r=r-h+1):0===s.length?(t.splice(r-h,h,[JO,o]),r=r-h+1):(t.splice(r-h,h,[JO,o],[ZO,s]),r=r-h+2)}0!==r&&t[r-1][0]===tD?(t[r-1][1]+=t[r][1],t.splice(r,1)):r++,a=0,i=0,o="",s=""}""===t[t.length-1][1]&&t.pop();var f=!1;for(r=1;r=55296&&t<=56319}function dD(t){return t>=56320&&t<=57343}function AD(t){return dD(t.charCodeAt(0))}function gD(t){return fD(t.charCodeAt(t.length-1))}function pD(t,e,n,r){return gD(t)||AD(r)?null:function(t){for(var e=[],n=0;n0&&e.push(t[n]);return e}([[tD,t],[JO,e],[ZO,n],[tD,r]])}function mD(t,e,n,r){return eD(t,e,n,r,!0)}mD.INSERT=ZO,mD.DELETE=JO,mD.EQUAL=tD;var bD=mD;var vD=function(t,e){for(var n=-1,r=null==t?0:t.length;++n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function CF(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n>>0,1):t.set(e,[]))},emit:function(e,n){var r=t.get(e);r&&r.slice().map((function(t){t(n)})),(r=t.get("*"))&&r.slice().map((function(t){t(e,n)}))}}}()),this.instanceId=e}),[{key:"setInstanceId",value:function(t){this.instanceId=t}},{key:"getInstanceId",value:function(){return this.instanceId}},{key:"clearAll",value:function(){this.emitter.all.clear()}},{key:"bindCallbacksByOptions",value:function(t){t.callback.afterChange&&this.on(this.Events.afterChange,(function(e){t.callback.afterChange(e.markdownText,e.html)})),t.callback.afterInit&&this.on(this.Events.afterInit,(function(e){t.callback.afterInit(e.markdownText,e.html)})),t.event.afterChange&&this.on(this.Events.afterChange,(function(e){t.event.afterChange(e.markdownText,e.html)})),t.event.afterInit&&this.on(this.Events.afterInit,(function(e){t.event.afterInit(e.markdownText,e.html)})),t.event.focus&&this.on(this.Events.focus,(function(e){t.event.focus(e)})),t.event.blur&&this.on(this.Events.blur,(function(e){t.event.blur(e)})),t.event.selectionChange&&this.on(this.Events.selectionChange,(function(e){t.event.selectionChange(e)})),t.event.afterChangeLocale&&this.on(this.Events.afterChangeLocale,(function(e){t.event.afterChangeLocale(e)})),t.event.changeMainTheme&&this.on(this.Events.changeMainTheme,(function(e){t.event.changeMainTheme(e)})),t.event.changeCodeBlockTheme&&this.on(this.Events.changeCodeBlockTheme,(function(e){t.event.changeCodeBlockTheme(e)}))}},{key:"on",value:function(t,e){var n;this.emitter.on(hs(n="".concat(this.instanceId,":")).call(n,t),e)}},{key:"off",value:function(t,e){var n;this.emitter.off(hs(n="".concat(this.instanceId,":")).call(n,t),e)}},{key:"emit",value:function(t,e){var n;this.emitter.emit(hs(n="".concat(this.instanceId,":")).call(n,t),e)}}])}(),_F={zh_CN:{bold:"加粗",code:"代码",graph:"画图",h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",header:"标题",insert:"插入",italic:"斜体",list:"列表",quickTable:"表格",quote:"引用",size:"大小",color:"文字颜色&背景",strikethrough:"删除线",sub:"下标",sup:"上标",togglePreview:"预览",fullScreen:"全屏",image:"图片",audio:"音频",video:"视频",link:"超链接",hr:"分隔线",br:"换行",toc:"目录",pdf:"pdf",word:"word",table:"表格","line-table":"折线表格","bar-table":"柱状表格",formula:"公式",insertFormula:"公式",insertFlow:"流程图",insertSeq:"时序图",insertState:"状态图",insertClass:"类图",insertPie:"饼图",insertGantt:"甘特图",checklist:"清单",ol:"有序列表",ul:"无序列表",undo:"撤销",redo:"恢复",previewClose:"关闭预览",codeTheme:"代码主题",switchModel:"模式切换",switchPreview:"预览",switchEdit:"返回编辑",classicBr:"经典换行",normalBr:"常规换行",settings:"设置",mobilePreview:"移动端预览",copy:"复制内容",export:"导出",underline:"下划线",pinyin:"拼音",file:"文件",pastePlain:"粘贴为纯文本格式",pasteMarkdown:"粘贴为markdown格式",hide:"隐藏工具栏",exportToPdf:"导出PDF",exportScreenshot:"导出长图",exportMarkdownFile:"导出markdown",exportHTMLFile:"导出html",theme:"主题",panel:"面板",detail:"手风琴","H1 Heading":"H1 一级标题","H2 Heading":"H2 二级标题","H3 Heading":"H3 三级标题",complement:"续写",summary:"总结",justify:"对齐方式",justifyLeft:"左对齐",justifyCenter:"居中",justifyRight:"右对齐",publish:"发布",fontColor:"文本颜色",fontBgColor:"背景颜色",small:"小",medium:"中",large:"大",superLarge:"特大",detailDefaultContent:"点击展开更多\n内容\n++- 默认展开\n内容\n++ 默认收起\n内容",inlineCode:"行内代码",codeBlock:"代码块",shortcutKeySetting:"快捷键设置",editShortcutKeyConfigTip:"双击快捷键区域编辑快捷键",wordCount:"字数统计",wordCountP:"段落",wordCountW:"单词",wordCountC:"字符",deleteColumn:"删除列",deleteRow:"删除行",addRow:"添加行",addCol:"添加列",moveRow:"移动行",moveCol:"移动列",shortcutStaticTitle:"以下快捷键无法修改",shortcutStatic1:"整行向左缩进",shortcutStatic2:"整行向右缩进",shortcutStatic3:"复制并粘贴一行",shortcutStatic4:"在下方插入空行",shortcutStatic5:"在上方插入空行",shortcutStatic6:"与上行互换",shortcutStatic7:"与下行互换",shortcutStatic8:"删除一行",shortcutStatic9:"按词语向左选中",shortcutStatic10:"按词语向右选中",shortcutStatic11:"按词语删除",shortcutStatic12:"选中括号内内容",shortcutStatic13:"插入多个光标",shortcutStatic14:"分别选中文本块的每一行",shortcutStatic15:"查找",shortcutStatic16:"选中所有相同的词",shortcutStatic17:"撤销",shortcutStatic18:"回滚撤销",leftMouseButton:"鼠标左键",disableShortcut:"禁用所有快捷键",recoverShortcut:"恢复默认",search:"搜索",autoWrap:"自动换行"},en_US:{bold:"Bold",code:"Code",graph:"Graph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",header:"Header",insert:"Insert",italic:"Italic",list:"List",quickTable:"Quick Table",quote:"Quote",size:"Size",color:"Text Color & Background",strikethrough:"Strikethrough",sub:"Sub",sup:"Sup",togglePreview:"Toggle Preview",fullScreen:"Full Screen",image:"Image",audio:"Audio",video:"Video",link:"Link",hr:"Horizontal Rule",br:"New Line",toc:"Table Of Content",pdf:"PDF",word:"Word",table:"Table","line-table":"Line Table","bar-table":"Bar Table",formula:"Formula",insertFormula:"Insert Formula",insertFlow:"Insert Flow",insertSeq:"Insert Seq",insertState:"Insert State",insertClass:"Insert Class",insertPie:"Insert Pie",insertGantt:"Insert Gantt",checklist:"Checklist",ol:"Ordered List",ul:"Unordered List",undo:"Undo",redo:"Redo",previewClose:"Preview Close",codeTheme:"Code Theme",switchModel:"Switch Model",switchPreview:"Switch Preview",switchEdit:"Switch Edit",classicBr:"Classic New Line",normalBr:"Normal New Line",settings:"Settings",mobilePreview:"Mobile Preview",copy:"Copy",export:"Export",underline:"Underline",pinyin:"Pinyin",pastePlain:"Paste as Plain Text",pasteMarkdown:"Paste as Markdown",hide:"Hide Toolbar",exportToPdf:"Export to PDF",exportScreenshot:"Screenshot",exportMarkdownFile:"Export Markdown File",exportHTMLFile:"Export preview HTML File","H1 Heading":"H1 Heading","H2 Heading":"H1 Heading","H3 Heading":"H1 Heading",complement:"Complement",summary:"Summary",justify:"justify",justifyLeft:"Left",justifyCenter:"Center",justifyRight:"Right",publish:"Publish",fontColor:"Font Color",fontBgColor:"Font Bg Color",small:"Small",medium:"Medium",large:"Large",superLarge:"Super Large",detailDefaultContent:"Click to expand more\nContent\n++- Expand by default\nContent\n++ Collapse by default\nContent",inlineCode:"Inline Code",codeBlock:"Code Block",shortcutKeySetting:"Keyboard Shortcuts",editShortcutKeyConfigTip:"double click shortcut key area to edit",wordCount:"Word Count",wordCountP:"P",wordCountW:"W",wordCountC:"C",deleteColumn:"delete column",deleteRow:"delete row",addRow:"add row",addCol:"add column",moveRow:"move row",moveCol:"move column",shortcutStaticTitle:"The following shortcuts cannot be modified",shortcutStatic1:"Indent the whole line to the left",shortcutStatic2:"Indent the whole line to the right",shortcutStatic3:"Duplicate and paste a line",shortcutStatic4:"Insert a blank line below",shortcutStatic5:"Insert a blank line above",shortcutStatic6:"Swap with the line above",shortcutStatic7:"Swap with the line below",shortcutStatic8:"Delete a line",shortcutStatic9:"Select to the left by word",shortcutStatic10:"Select to the right by word",shortcutStatic11:"Delete by word",shortcutStatic12:"Select the content inside parentheses",shortcutStatic13:"Insert multiple cursors",shortcutStatic14:"Select each line of the text block separately",shortcutStatic15:"Find",shortcutStatic16:"Select all occurrences of the word",shortcutStatic17:"Undo",shortcutStatic18:"Redo",leftMouseButton:"left mouse button",disableShortcut:"Disable all shortcuts",recoverShortcut:"Restore default",search:"Search",autoWrap:"Auto Wrap"},ru_RU:{bold:"Жирный",code:"Code",graph:"Graph",h1:"Заголовок 1",h2:"Заголовок 2",h3:"Заголовок 3",h4:"Заголовок 4",h5:"Заголовок 5",header:"Заголовок",insert:"Вставить",italic:"Курсив",list:"Лист",quickTable:"Quick Table",quote:"Цитата",size:"Размер",color:"Цвет текста и фон",strikethrough:"Зачеркнуто",sub:"Sub",sup:"Sup",togglePreview:"Переключение предварительного просмотра",fullScreen:"Полноэкранный режим",image:"Изображение",audio:"Аудио",video:"Видео",link:"Ссылка",hr:"Горизонтальная линия",br:"Новая строка",toc:"Таблица содержания",pdf:"PDF",word:"Word",table:"Таблица","line-table":"Строки в таблице","bar-table":"Bar Table",formula:"Формула",insertFormula:"Вставить формулу",insertFlow:"Вставить поток",insertSeq:"Вставить Seq",insertState:"Вставить State",insertClass:"Вставить класс",insertPie:"Вставить Pie",insertGantt:"Вставить Gantt",checklist:"Контрольный список",ol:"Упорядоченный список",ul:"Неупорядоченный список",undo:"Отменить",redo:"Переделывать",previewClose:"Предварительный просмотр закрыт",codeTheme:"Тема для кода",switchModel:"Модель переключателя",switchPreview:"Переключите предварительный просмотр",switchEdit:"Переключить редактирование",classicBr:"Классическая новая линия",normalBr:"Обычная новая строка",settings:"Настройки",mobilePreview:"Предварительный просмотр на мобильном устройстве",copy:"Копировать",export:"Экспорт",underline:"Подчеркивать",pinyin:"Pinyin",pastePlain:"Вставить в виде обычного текста",pasteMarkdown:"Вставить как Markdown",hide:"Скрыть панель инструментов",exportToPdf:"Экспорт в формат PDF",exportScreenshot:"Скриншот",exportMarkdownFile:"Экспорт файла Markdown",exportHTMLFile:"Экспорт предварительного просмотра HTML-файла","H1 Заголовок":"H1 Заголовок","H2 Заголовок":"H1 Заголовок","H3 Заголовок":"H1 Заголовок",complement:"Дополнение",summary:"Резюме",justify:"объяснить",justifyLeft:"Слева",justifyCenter:"Центр",justifyRight:"Справа",publish:"Публиковать",fontColor:"Цвет шрифта",fontBgColor:"Цвет фона",small:"Маленький",medium:"Средний",large:"Большой",superLarge:"Очень большой",detailDefaultContent:"Нажмите, чтобы развернуть подробнее\nСодержание\n++- Развернуть по умолчанию\nСодержание\n++ Свернуть по умолчанию\nСодержание",inlineCode:"Встроенный код",codeBlock:"Кодовый блок",shortcutKeySetting:"Настройки горячих клавиш",editShortcutKeyConfigTip:"дважды щелкните область сочетания клавиш для редактирования",wordCount:"Количество слов",wordCountP:"P",wordCountW:"W",wordCountC:"C",deleteColumn:"Удалить столбец",deleteRow:"Удалить строку",addRow:"Добавить строку",addCol:"Добавить столбец",moveRow:"Переместить строку",moveCol:"Переместить столбец",shortcutStaticTitle:"Следующие сочетания клавиш не могут быть изменены",shortcutStatic1:"Отступить всю строку влево",shortcutStatic2:"Отступить всю строку вправо",shortcutStatic3:"Скопировать и вставить строку",shortcutStatic4:"Вставить пустую строку ниже",shortcutStatic5:"Вставить пустую строку выше",shortcutStatic6:"Поменять с предыдущей строкой",shortcutStatic7:"Поменять с следующей строкой",shortcutStatic8:"Удалить строку",shortcutStatic9:"Выделить влево по слову",shortcutStatic10:"Выделить вправо по слову",shortcutStatic11:"Удалить по слову",shortcutStatic12:"Выделить содержимое внутри скобок",shortcutStatic13:"Вставить несколько курсоров",shortcutStatic14:"Выделить каждую строку текстового блока отдельно",shortcutStatic15:"Найти",shortcutStatic16:"Выделить все вхождения слова",shortcutStatic17:"Отменить",shortcutStatic18:"Вернуть отмену",leftMouseButton:"левая кнопка мыши",disableShortcut:"Отключить все горячие клавиши",recoverShortcut:"Восстановить по умолчанию",search:"Поиск",autoWrap:"Автоперенос строк"}};function SF(t,e,n){return e=es(e),Ko(t,LF()?Vn(e,n||[],es(t).constructor):e.apply(t,n))}function LF(){try{var t=!Boolean.prototype.valueOf.call(Vn(Boolean,[],(function(){})))}catch(t){}return(LF=function(){return!!t})()}function IF(t,e,n){if("object"!==Po(t)||!t)throw TypeError("first argument must be a object, but get ".concat(Po(t)));var r;return Td(n)||"object"!==Po(n)||null===n||"object"!==Po(t[e])||null===t[e]?"string"==typeof n&&Po(t[e])===n||("function"==typeof n&&t[e]instanceof n||!!Td(n)&&wv(n).call(n,(function(n){return IF(t,e,n)}))):e_(r=Is(t[e])).call(r,(function(r){return IF(t[e],r,n[r])}))}function MF(t,e,n){var r,i={};return Qs(r=Is(t)).call(r,(function(r){-1!==Kf(e).call(e,r)&&("object"===Po(n)?IF(t,r,n[r])&&(i[r]=t[r]):"string"==typeof n&&Po(t[r])===n&&(i[r]=t[r]))})),i}var OF={HOOKS_TYPE_LIST:CA},DF=[];bb()||Qs(DF).call(DF,(function(t){}));var FF=function(){function t(){ra(this,t)}return $o(t,null,[{key:"usePlugin",value:function(e){var n;if(this===t)throw new Error("`usePlugin` is not allowed to called through CherryStatic class.");if(this.initialized)throw new Error("The function `usePlugin` should be called before Cherry is instantiated.");if(!0!==e.$cherry$mounted){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{};return ra(this,n),(t=e===CA.PAR?SF(this,n,[{needCache:!!o.needCache,defaultCache:o.defaultCache}]):SF(this,n)).config=r.config,jo(t)}return ss(n,t),$o(n,[{key:"beforeMakeHtml",value:function(){for(var t,e,r=arguments.length,i=new Array(r),o=0;or.pageWidth&&(i=r.pageWidth-r.floatPreviewerWrapDom.offsetWidth),a+r.floatPreviewerWrapDom.offsetHeight>r.pageHeight&&(a=r.pageHeight-r.floatPreviewerWrapDom.offsetHeight),requestAnimationFrame((function(){r.floatPreviewerWrapDom.style.left="".concat(i,"px"),r.floatPreviewerWrapDom.style.top="".concat(a,"px")}))}})),cs(r,"handleFloatPreviewerMouseUp",(function(t){r.floatPreviewerWrapDom.classList.remove("float-previewer-dragging")})),e.initialized=!0;var i=kF(e.config.defaults);return r.defaultToolbar=i.toolbars.toolbar,Mp(t,Object),r.options=Qu({},i,t,OA),r.storageFloatPreviewerWrapData={x:50,y:58,width:800,height:500},r.locales=_F,r.options.locales&&(r.locales=RF(RF({},r.options.locales),r.locales)),r.locale=r.locales[r.options.locale],"function"==typeof r.options.engine.global.urlProcessor?(r.options.engine.global.urlProcessor=Sm(r.options.engine.global.urlProcessor),r.options.callback.urlProcessor=r.options.engine.global.urlProcessor):r.options.callback.urlProcessor=Sm(r.options.callback.urlProcessor),r.status={toolbar:"show",previewer:"show",editor:"show"},(r.options.isPreviewOnly||"previewOnly"===r.options.editor.defaultModel)&&(r.options.toolbars.showToolbar=!1,r.options.editor.defaultModel="previewOnly",r.status.editor="hide",r.status.toolbar="hide"),r.instanceId=hs(n="cherry-".concat((new Date).getTime())).call(n,Math.random()),r.options.instanceId=r.instanceId,r.lastMarkdownText="",r.$event=new BF(r.instanceId),"default"===r.options.engine.global.flowSessionCursor&&(r.options.engine.global.flowSessionCursor=''),r.engine=new Qy(r.options,r),r.init(),r}return ss(e,t),$o(e,[{key:"init",value:function(){var t,e=this;this.storeDocumentScroll();var n=this.options.id?document.getElementById(this.options.id):this.options.el;if(!n){if(!this.options.forceAppend)return!1;this.noMountEl=!0,(n=document.createElement("div")).id=this.options.id||"cherry-markdown",document.body.appendChild(n)}n.style.height||(n.style.height=this.options.editor.height),this.cherryDom=n,"string"==typeof this.options.themeNameSpace?this.nameSpace=this.options.themeNameSpace:this.nameSpace=this.options.nameSpace;var r=this.createWrapper(),i=this.createEditor(),a=this.createPreviewer();!1!==this.options.toolbars.showToolbar&&!1!==this.options.toolbars.toolbar||(r.classList.add("cherry--no-toolbar"),this.options.toolbars.toolbar=this.options.toolbars.toolbar?this.options.toolbars.toolbar:this.defaultToolbar),Mp(this.options.toolbars.toolbar,Array),this.createToolbar(),this.createToolbarRight();var o,s=document.createDocumentFragment();(s.appendChild(this.toolbar.options.dom),s.appendChild(i.options.editorDom),this.options.previewer.dom||s.appendChild(a.options.previewerDom),s.appendChild(a.options.virtualDragLineDom),s.appendChild(a.options.editorMaskDom),s.appendChild(a.options.previewerMaskDom),r.appendChild(s),this.wrapperDom=r,this.createSidebar(),this.createHiddenToolbar(),n.appendChild(r),i.init(a),this.createBubble(),this.createFloatMenu(),a.init(i),a.registerAfterUpdate(fs(t=this.engine.mounted).call(t,this.engine)),this.initText(i.editor),this.$event.on("toolbarHide",(function(){e.status.toolbar="hide"})),this.$event.on("toolbarShow",(function(){e.status.toolbar="show"})),this.$event.on("previewerClose",(function(){e.status.previewer="hide"})),this.$event.on("previewerOpen",(function(){e.status.previewer="show"})),this.$event.on("editorClose",(function(){e.status.editor="hide",e.previewer.highlightLine(0)})),this.$event.on("editorOpen",(function(){e.status.editor="show"})),this.switchModel(this.options.editor.defaultModel,this.options.toolbars.showToolbar),this.options.autoScrollByHashAfterInit)&&ks(fs(o=this.scrollByHash).call(o,this));this.createToc(),this.$event.bindCallbacksByOptions(this.options),this.restoreDocumentScroll()}},{key:"storeDocumentScroll",value:function(){this.options.editor.keepDocumentScrollAfterInit&&(this.needRestoreDocumentScroll=!0,this.documentElementScrollTop=document.documentElement.scrollTop,this.documentElementScrollLeft=document.documentElement.scrollLeft)}},{key:"restoreDocumentScroll",value:function(){this.options.editor.keepDocumentScrollAfterInit&&this.needRestoreDocumentScroll&&(this.needRestoreDocumentScroll=!1,window.scrollTo(this.documentElementScrollLeft,this.documentElementScrollTop))}},{key:"destroy",value:function(){this.noMountEl?this.cherryDom.remove():this.wrapperDom.remove(),this.$event.clearAll()}},{key:"on",value:function(t,e){if(this.$event.Events[t])return/^(afterInit|afterChange)$/.test(t)?this.$event.on(t,(function(t){e(t.markdownText,t.html)})):this.$event.on(t,e);if("urlProcessor"===t)this.options.callback.urlProcessor=Sm(e);else this.options.callback[t]=e}},{key:"off",value:function(t,e){if(this.$event.Events[t])return this.$event.off(t,e);this.options.callback[t]=function(){}}},{key:"createToc",value:function(){var t,e,n,r,i;!1!==this.options.toolbars.toc?this.toc=new zO({$cherry:this,updateLocationHash:null===(t=this.options.toolbars.toc.updateLocationHash)||void 0===t||t,position:null!==(e=this.options.toolbars.toc.position)&&void 0!==e?e:"absolute",cssText:null!==(n=this.options.toolbars.toc.cssText)&&void 0!==n?n:"",defaultModel:null!==(r=this.options.toolbars.toc.defaultModel)&&void 0!==r?r:"pure",showAutoNumber:null!==(i=this.options.toolbars.toc.showAutoNumber)&&void 0!==i&&i}):this.toc=!1}},{key:"scrollByHash",value:function(){if(location.hash)try{var t=location.hash,e=document.getElementById(t.replace("#",""));e&&this.previewer.getDomContainer().contains(e)&&(location.hash="",location.hash=t)}catch(t){}}},{key:"$t",value:function(t){return this.locale[t]?this.locale[t]:t}},{key:"addLocale",value:function(t,e){this.locale[t]=e}},{key:"addLocales",value:function(t){this.locale=Ss(this.locale,t)}},{key:"getLocales",value:function(){return this.locale}},{key:"switchModel",value:function(){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"edit&preview"){case"edit&preview":this.previewer&&(this.previewer.editOnly(!0),this.previewer.recoverPreviewer()),this.toolbar&&t&&this.toolbar.showToolbar(),t?this.wrapperDom.classList.remove("cherry--no-toolbar"):this.wrapperDom.classList.add("cherry--no-toolbar");break;case"editOnly":this.previewer.isPreviewerHidden()||this.previewer.editOnly(!0),this.toolbar&&t&&this.toolbar.showToolbar(),t?this.wrapperDom.classList.remove("cherry--no-toolbar"):this.wrapperDom.classList.add("cherry--no-toolbar");break;case"previewOnly":this.previewer.previewOnly(),this.toolbar&&this.toolbar.previewOnly(),this.wrapperDom.classList.add("cherry--no-toolbar")}}},{key:"getInstanceId",value:function(){return this.instanceId}},{key:"getStatus",value:function(){return this.status}},{key:"getValue",value:function(){return this.editor.editor.getValue()}},{key:"getMarkdown",value:function(){return this.getValue()}},{key:"getCodeMirror",value:function(){return this.editor.editor}},{key:"getHtml",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.previewer.getValue(t)}},{key:"getPreviewer",value:function(){return this.previewer}},{key:"getToc",value:function(){var t=this.getHtml(),e=[];return t.replace(/(.+?)<\/h[0-6]>/g,(function(t,n,r,i){return e.push({level:+n,id:r,text:i.replace(//,"")}),t})),e}},{key:"setValue",value:function(t){if(!1===(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return this.editor.editor.setValue(t);var e=this.editor.editor,n=this.getValue(),r=function(t,e,n){for(var r=bD(e,n),i=t,a=t,o=0;o1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];n&&this.editor.editor.setSelection({line:n[0],ch:n[1]},{line:n[0],ch:n[1]}),this.editor.editor.replaceSelection(t,e?"around":"end"),r&&this.editor.editor.focus()}},{key:"insertValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return this.insert(t,e,n,r)}},{key:"refreshPreviewer",value:function(){try{var t=this.getValue(),e=this.engine.makeHtml(t);this.previewer.refresh(e)}catch(t){throw new Fp(t)}}},{key:"setMarkdown",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.setValue(t,e)}},{key:"createWrapper",value:function(){var t="",e="",n="",r="";NA(this.nameSpace,"theme")?t=RA(!0,this.nameSpace):(t=(t=this.options.themeSettings.mainTheme).replace(/theme__/g,""),t="theme__".concat(t)),e="string"==typeof this.options.toolbars.theme?"dark"===this.options.toolbars.theme?"dark":"light":"dark"===this.options.themeSettings.toolbarTheme?"dark":"light",n="string"==typeof this.options.engine.syntax.inlineCode.theme?"black"===this.options.engine.syntax.inlineCode.theme?"black":"red":"black"===this.options.themeSettings.inlineCodeTheme?"black":"red",r="string"==typeof this.options.engine.syntax.codeBlock.theme?this.options.engine.syntax.codeBlock.theme:this.options.themeSettings.codeBlockTheme,NA(this.nameSpace,"codeTheme")&&(r=QA(this.nameSpace)),"dark"===r?r="tomorrow-night":"light"===r&&(r="solarized-light");var i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cherry",e=arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?"nowrap":"wrap";if("undefined"!=typeof localStorage){var n=localStorage.getItem("".concat(t,"-codeWrap"));n&&(e=n)}return e}(this.nameSpace,this.options.engine.syntax.codeBlock.wrap),a=bd("div",["cherry","clearfix",t].join(" "),{"data-toolbarTheme":e,"data-inlineCodeTheme":n,"data-codeBlockTheme":r,"data-codeWrap":"wrap"===i?"wrap":"nowrap"});return this.wrapperDom=a,a}},{key:"getCodeWrap",value:function(){return this.wrapperDom.dataset.codeWrap||"wrap"}},{key:"setCodeWrap",value:function(t){this.wrapperDom.dataset.codeWrap="wrap"===t?"wrap":"nowrap",function(t,e){"undefined"!=typeof localStorage&&localStorage.setItem("".concat(t,"-codeWrap"),e)}(this.nameSpace,t)}},{key:"createToolbar",value:function(){if(!this.toolbarContainer){var t=bd("div","cherry-toolbar");this.toolbarContainer=t}return this.options.toolbars.shortcutKey&&Is(this.options.toolbars.shortcutKey).length>0&&console.warn("options.shortcutKey is deprecated, please use shortcutKeySettings.shortcutKeyMap instead, get more info at https://github.com/Tencent/cherry-markdown/wiki"),this.toolbar=new FO({dom:this.toolbarContainer,$cherry:this,buttonConfig:this.options.toolbars.toolbar,customMenu:this.options.toolbars.customMenu}),this.toolbar}},{key:"resetToolbar",value:function(t,e){var n;return!1!==(!!/(toolbar|toolbarRight|sidebar|bubble|float|toc)/.test(t)&&t)&&(this.toolbarContainer&&(this.toolbarContainer.innerHTML=""),this.toolbarFloatContainer&&(this.toolbarFloatContainer.innerHTML=""),this.toolbarBubbleContainer&&(this.toolbarBubbleContainer.innerHTML=""),this.sidebarDom&&(this.sidebarDom.innerHTML=""),this.toc&&this.toc.tocDom.remove(),Qs(n=this.cherryDom.querySelectorAll(".cherry-dropdown")).call(n,(function(t){t.remove()})),this.options.toolbars[t]=e,this.createToolbar(),this.createToolbarRight(),this.createBubble(),this.createFloatMenu(),this.createSidebar(),this.createHiddenToolbar(),this.createToc(),!0)}},{key:"createToolbarRight",value:function(){return this.toolbarRight=new KO({dom:this.toolbarContainer,$cherry:this,buttonConfig:this.options.toolbars.toolbarRight,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.toolbarRight),this.toolbarRight}},{key:"createSidebar",value:function(){if(this.options.toolbars.sidebar){Mp(this.options.toolbars.sidebar,Array);var t=!1;if(!this.sidebarDom){t=!0;var e="dark"===this.options.toolbars.theme?"dark":"",n=bd("div","cherry-sidebar ".concat(e));this.sidebarDom=n}this.sidebar=new VO({dom:this.sidebarDom,$cherry:this,buttonConfig:this.options.toolbars.sidebar,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.sidebar),!0===t&&this.wrapperDom.appendChild(this.sidebarDom)}}},{key:"createHiddenToolbar",value:function(){this.options.toolbars.hiddenToolbar&&(Mp(this.options.toolbars.hiddenToolbar,Array),this.hiddenToolbar=new YO({$cherry:this,buttonConfig:this.options.toolbars.hiddenToolbar,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.hiddenToolbar))}},{key:"createFloatMenu",value:function(){if(this.options.toolbars.float){if(!this.toolbarFloatContainer){var t=bd("div","cherry-floatmenu");this.toolbarFloatContainer=t}Mp(this.options.toolbars.float,Array),this.floatMenu=new HO({dom:this.toolbarFloatContainer,$cherry:this,buttonConfig:this.options.toolbars.float,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.floatMenu)}}},{key:"createBubble",value:function(){if(this.options.toolbars.bubble){if(!this.toolbarBubbleContainer){var t=bd("div","cherry-bubble");this.toolbarBubbleContainer=t}Mp(this.options.toolbars.bubble,Array),this.bubble=new PO({dom:this.toolbarBubbleContainer,$cherry:this,buttonConfig:this.options.toolbars.bubble,customMenu:this.options.toolbars.customMenu,engine:this.engine}),this.toolbar.collectMenuInfo(this.bubble)}}},{key:"createEditor",value:function(){var t,e,n,r,i=bd("textarea","",{id:null!==(t=this.options.editor.id)&&void 0!==t?t:"code",name:null!==(e=this.options.editor.name)&&void 0!==e?e:"code"});i.textContent=this.options.value;var a=bd("div","cherry-editor");return a.appendChild(i),"function"==typeof this.options.fileUpload&&(this.options.callback.fileUpload=this.options.fileUpload),this.editor=new cA(RF({$cherry:this,editorDom:a,wrapperDom:this.wrapperDom,value:this.options.value,onKeydown:fs(n=this.fireShortcutKey).call(n,this),onChange:fs(r=this.editText).call(r,this),toolbars:this.options.toolbars,autoScrollByCursor:this.options.autoScrollByCursor},this.options.editor)),this.editor}},{key:"createPreviewer",value:function(){var t,e="autonumber"===(this.options.engine.syntax.header&&this.options.engine.syntax.header.anchorStyle||"default")?" head-num":"",n=this.options.previewer,r=n.className,i=n.dom,a=n.enablePreviewerBubble,o=n.floatWhenClosePreviewer,s=["cherry-previewer cherry-markdown",r||"",e,NA(this.nameSpace,"theme")?RA(!0,this.nameSpace):this.options.themeSettings.mainTheme].join(" ");i?(t=i).className+=" ".concat(s):t=bd("div",s);var c=bd("div","cherry-drag"),l=bd("div","cherry-editor-mask"),u=bd("div","cherry-previewer-mask");return this.previewer=new lS({$cherry:this,virtualDragLineDom:c,editorMaskDom:l,previewerMaskDom:u,previewerDom:t,value:this.options.value,isPreviewOnly:this.options.isPreviewOnly,enablePreviewerBubble:a,floatWhenClosePreviewer:o,lazyLoadImg:this.options.previewer.lazyLoadImg}),this.previewer}},{key:"clearFloatPreviewer",value:function(){this.wrapperDom.appendChild(this.previewer.getDom()),this.storageFloatPreviewerWrapData={x:this.floatPreviewerWrapDom.offsetLeft,y:this.floatPreviewerWrapDom.offsetTop,height:this.floatPreviewerWrapDom.offsetHeight,width:this.floatPreviewerWrapDom.offsetWidth},this.floatPreviewerWrapDom.remove(),this.removeFloatPreviewerListener()}},{key:"createFloatPreviewerListener",value:function(){document.addEventListener("mousedown",this.handleFloatPreviewerMouseDown),document.addEventListener("mousemove",this.handleFloatPreviewerMouseMove),document.addEventListener("mouseup",this.handleFloatPreviewerMouseUp)}},{key:"removeFloatPreviewerListener",value:function(){document.removeEventListener("mousedown",this.handleFloatPreviewerMouseDown),document.removeEventListener("mousemove",this.handleFloatPreviewerMouseMove),document.removeEventListener("mouseup",this.handleFloatPreviewerMouseUp)}},{key:"createFloatPreviewer",value:function(){var t=bd("div","float-previewer-wrap"),e=bd("div","float-previewer-header"),n=bd("div","float-previewer-title");n.innerHTML="预览",t.style.left="".concat(this.storageFloatPreviewerWrapData.x,"px"),t.style.top="".concat(this.storageFloatPreviewerWrapData.y,"px"),t.style.height="".concat(this.storageFloatPreviewerWrapData.height,"px"),t.style.width="".concat(this.storageFloatPreviewerWrapData.width,"px"),e.appendChild(n),t.appendChild(e),t.appendChild(this.previewer.getDom()),this.wrapperDom.appendChild(t),this.floatPreviewerHeaderDom=e,this.floatPreviewerWrapDom=t,this.pageWidth=document.body.clientWidth,this.pageHeight=document.body.clientHeight,this.createFloatPreviewerListener()}},{key:"initText",value:function(t){try{var e=t.getValue();this.lastMarkdownText=e;var n=this.engine.makeHtml(e);this.previewer.update(n),this.$event.emit("afterInit",{markdownText:e,html:n})}catch(t){throw new Fp(t)}}},{key:"editText",value:function(t,e){var n=this;try{this.timer&&(clearTimeout(this.timer),this.timer=null);var r=this.options.engine.global.flowSessionContext?10:50;this.timer=ks((function(){var t=e.getValue();if(t!==n.lastMarkdownText){n.lastMarkdownText=t;var r=n.engine.makeHtml(t);n.previewer.update(r),n.$event.emit("afterChange",{markdownText:t,html:r})}n.options.editor.keepDocumentScrollAfterInit||e.scrollIntoView(null)}),r)}catch(t){throw new Fp(t)}}},{key:"onChange",value:function(t){this.editor.editor.on("change",(function(e){t({markdown:e.getValue()})}))}},{key:"fireShortcutKey",value:function(t){var e=this.editor.editor.getCursor(),n=this.editor.editor.getLine(e.line);if(!t.shiftKey&&"Tab"===t.key&&Vd.test(n)&&(0===e.ch||e.ch===n.length||e.ch===n.length+1)){t.preventDefault(),this.editor.editor.setSelection({line:e.line,ch:0},{line:e.line,ch:n.length}),this.editor.editor.replaceSelection("\t".concat(n),"around");var r=this.editor.editor.getCursor();this.editor.editor.setSelection(r,r)}this.toolbar.matchShortcutKey(t)&&(this.toolbar.fireShortcutKey(t)&&t.preventDefault())}},{key:"export",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pdf",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.previewer.export(t,e)}},{key:"setTheme",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";this.$event.emit("changeMainTheme",t),PA(this,t)}},{key:"setCodeBlockTheme",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";this.$event.emit("changeCodeBlockTheme",t),UA(this,t)}},{key:"setWritingStyle",value:function(t){this.editor.setWritingStyle(t)}},{key:"setLocale",value:function(t){return!!this.locales[t]&&(this.options.locale=t,this.locale=this.locales[t],this.$event.emit("afterChangeLocale",t),this.resetToolbar("toolbar",this.options.toolbars.toolbar||[]),!0)}},{key:"toggleToc",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.toc){var e="full";if(""===t)e="full"===this.toc.model?"pure":"full";else e=t;this.toc.$switchModel(e),this.toc.setModelToLocalStorage(e)}}},{key:"clearFlowSessionCursor",value:function(){var t;this.options.engine.global.flowSessionCursor&&(this.previewer.getDom().innerHTML=oc(t=this.previewer.getDom().innerHTML).call(t,this.options.engine.global.flowSessionCursor,""))}}])}(FF);cs(UF,"initialized",!1),cs(UF,"config",{defaults:TF}),window&&(window.Cherry=UF);var HF=t("default",UF);function $F(t,e){var n=Is(t);if(Ii){var r=Ii(t);e&&(r=Qi(r).call(r,(function(e){return Ki(t,e).enumerable}))),n.push.apply(n,r)}return n}function jF(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};ra(this,t),cs(this,"mermaidAPIRefs",null),cs(this,"options",KF),cs(this,"dom",null),cs(this,"mermaidCanvas",null);var n=e.mermaid,r=e.mermaidAPI;if(!(r||window.mermaidAPI||n&&n.mermaidAPI||window.mermaid&&window.mermaid.mermaidAPI))throw new Error("code-block-mermaid-plugin[init]: Package mermaid or mermaidAPI not found.");this.options=jF(jF({},KF),e||{}),this.mermaidAPIRefs=r||window.mermaidAPI||n.mermaidAPI||window.mermaid.mermaidAPI,delete this.options.mermaid,delete this.options.mermaidAPI,this.mermaidAPIRefs.initialize(this.options)}return $o(t,[{key:"mountMermaidCanvas",value:function(t){this.mermaidCanvas&&document.body.contains(this.mermaidCanvas)||(this.mermaidCanvas=document.createElement("div"),this.mermaidCanvas.style="width:1024px;opacity:0;position:fixed;top:100%;",(t.$cherry.wrapperDom||document.body).appendChild(this.mermaidCanvas))}},{key:"convertMermaidSvgToImg",value:function(t,e){var n,r=new DOMParser,i=function(t){return t.replace("')}}else n=i(t)}catch(e){n=i(t)}return n}},{key:"render",value:function(t,e,n){var r,i,a,o=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=e;c||(c=Math.round(1e8*Math.random())),this.mountMermaidCanvas(n);var l=hs(r="mermaid-".concat(c,"-")).call(r,(new Date).getTime());this.svg2img=null!==(i=null==s?void 0:s.svg2img)&&void 0!==i&&i;try{this.mermaidAPIRefs.render(l,t,(function(t){var e=t.replace(/\s*markerUnits="0"/g,"").replace(/\s*x="NaN"/g,"").replace(/
    /g,"
    ");a=o.convertMermaidSvgToImg(e,l)}),this.mermaidCanvas)}catch(t){return null==t?void 0:t.str}return a}}],[{key:"install",value:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i>>8):(zt(255&t),zt(t>>>8))}function Xt(){A=(A<>7)])}function qt(t,e,n){return t[e].fcmt?y-mt:At,c=y+ct,l=s[i+a-1],h=s[i+a];v>=B&&(r>>=2);do{if(s[(e=t)+a]==h&&s[e+a-1]==l&&s[e]==s[i]&&s[++e]==s[i+1]){i+=2,e++;do{}while(s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&s[++i]==s[++e]&&ia){if(w=t,a=n,n>=ct)break;l=s[i+a-1],h=s[i+a]}}}while((t=u[t&dt])>o&&0!=--r);return a}function Zt(){var t,e,n=ot-x-y;if(-1==n)n--;else if(y>=et+mt){for(t=0;t=et?e-et:At);for(t=0;t=et?e-et:At;n+=et}k||((t=Yt(s,y+x,n))<=0?k=!0:x+=t)}function te(){k||(h=0,f=0,function(){var t,e,n,r,i;if(0!=I[0].dl)return;for(O.dyn_tree=_,O.static_tree=L,O.extra_bits=Rt,O.extra_base=kt+1,O.elems=Ct,O.max_length=vt,O.max_code=0,D.dyn_tree=S,D.static_tree=I,D.extra_bits=Pt,D.extra_base=0,D.elems=Et,D.max_length=vt,D.max_code=0,F.dyn_tree=M,F.static_tree=null,F.extra_bits=Qt,F.extra_base=0,F.elems=Tt,F.max_length=yt,F.max_code=0,n=0,r=0;r>=7;rx&&(b=x),b>=st)if(t=ue(y-w,b-st),x-=b,b<=E){b--;do{y++,Xt()}while(0!=--b);y++}else y+=b,b=0,A=((A=255&s[y])<x&&(b=x),b==st&&y-w>gt&&b--),v>=st&&b<=v){var t;t=ue(y-1-p,v-st),x-=v-1,v-=2;do{y++,Xt()}while(0!=--v);m=0,b=st-1,y++,t&&(le(0),d=y)}else 0!=m?(ue(0,255&s[y-1])&&(le(0),d=y),y++,x--):(m=1,y++,x--);for(;xe.len&&(s=e.len),c=0;ci-a&&(s=i-a),c=0;c>1;e>=1;e--)ie(r,e);do{e=R[bt],R[bt]=R[P--],ie(r,bt),n=R[bt],R[--Q]=e,R[--Q]=n,r[s].fc=r[e].fc+r[n].fc,U[e]>U[n]+1?U[s]=U[e]:U[s]=U[n]+1,r[e].dl=r[n].dl=s,R[bt]=s++,ie(r,bt)}while(P>=2);R[--Q]=R[bt],function(t){var e,n,r,i,a,o,s=t.dyn_tree,c=t.extra_bits,l=t.extra_base,u=t.max_code,h=t.max_length,f=t.static_tree,d=0;for(i=0;i<=vt;i++)N[i]=0;for(s[R[Q]].dl=0,e=Q+1;eh&&(i=h,d++),s[n].dl=i,n>u||(N[i]++,a=0,n>=l&&(a=c[n-l]),o=s[n].fc,Y+=o*(i+a),null!=f&&(J+=o*(f[n].dl+a)));if(0!=d){do{for(i=h-1;0==N[i];)i--;N[i]--,N[i+1]+=2,N[h]--,d-=2}while(d>0);for(i=h;0!=i;i--)for(n=N[i];0!=n;)(r=R[--e])>u||(s[r].dl!=i&&(Y+=(i-s[r].dl)*s[r].fc,s[r].fc=i),n--)}}(t),ae(r,o)}function se(t,e){var n,r,i=-1,a=t[0].dl,o=0,s=7,c=4;for(0==a&&(s=138,c=3),t[e+1].dl=65535,n=0;n<=e;n++)r=a,a=t[n+1].dl,++o=3&&0==M[Ut[t]].dl;t--);return Y+=3*(t+1)+5+5+4,t}(),(n=J+3+7>>3)<=(e=Y+3+7>>3)&&(e=n),i+4<=e&&d>=0)for(de((nt<<1)+t,3),ge(),Gt(i),Gt(~i),a=0;a2&&!(4095&G)){var n,r=8*G,i=y-d;for(n=0;n>=3,X>=1}while(ofe-e?(Gt(h|=t<>fe-f,f+=e-fe):(h|=t<>=1,n<<=1}while(--e>0);return n>>1}function ge(){f>8?Gt(h):f>0&&zt(h),h=0,f=0}return function(i,a){var o,h;Z=i,tt=0,void 0===a&&(a=6),function(i){var a;if(i?i<1?i=1:i>9&&(i=9):i=6,T=i,r=!1,k=!1,null==Mt){for(t=e=n=null,Mt=new Array(at),s=new Array(ot),c=new Array(ut),l=new Array(32832),u=new Array(65536),_=new Array(Lt),a=0;a0;){var A=new Array(o);for(h=0;h>4,i=(15&e)<<2|n>>6,a=63&n,o="";return o+=YF(63&t>>2),o+=YF(63&r),o+=YF(63&i),o+=YF(63&a)}function YF(t){var e=t;return e<10?String.fromCharCode(48+e):(e-=10)<26?String.fromCharCode(65+e):(e-=26)<26?String.fromCharCode(97+e):0===(e-=26)?"-":1===e?"_":"?"}function JF(t,e){var n,r=unescape(encodeURIComponent(t));return hs(n="".concat(e,"/svg/")).call(n,function(t){for(var e="",n=0;n0&&void 0!==arguments[0]?arguments[0]:{};ra(this,t);this.baseUrl=null!==(e=n.baseUrl)&&void 0!==e?e:"http://www.plantuml.com/plantuml"}return $o(t,[{key:"render",value:function(t,e){var n,r,i=e;i||(i=Math.round(1e8*Math.random()));var a=hs(n="plantuml-".concat(i,"-")).call(n,(new Date).getTime());return hs(r='')}}],[{key:"install",value:function(e,n){var r;Qu(e,{engine:{syntax:{codeBlock:{customRenderer:{plantuml:new t(WF(WF({},n),null!==(r=e.engine.syntax.plantuml)&&void 0!==r?r:{}))}}}}})}}])}();Dn({target:"Number",stat:!0,forced:Number.parseFloat!==dd},{parseFloat:dd});var tN=$.Number.parseFloat,eN=["echarts"];function nN(t,e){var n=Is(t);if(Ii){var r=Ii(t);e&&(r=Qi(r).call(r,(function(e){return Ki(t,e).enumerable}))),n.push.apply(n,r)}return n}function rN(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};ra(this,t);var n=e.echarts,r=Wu(e,eN);if(!n&&!window.echarts)throw new Error("table-echarts-plugin[init]: Package echarts not found.");this.options=rN(rN({},iN),r||{}),this.echartsRef=n||window.echarts,this.dom=null}return $o(t,[{key:"getInstance",value:function(){return this.dom||(this.dom=document.createElement("div"),this.echartsRef.init(this.dom,null,this.options)),this.echartsRef.getInstanceByDom(this.dom)}},{key:"render",value:function(t,e,n){var r={};switch(t){case"bar":r=this.renderBarChart(n,e);break;case"line":r=this.renderLineChart(n,e);break;default:return""}var i=this.getInstance();return i.clear(),i.setOption(r),i.getDom().innerHTML}},{key:"renderBarChart",value:function(t,e){return this.$renderChartCommon(t,e,"bar")}},{key:"renderLineChart",value:function(t,e){return this.$renderChartCommon(t,e,"line")}},{key:"$renderChartCommon",value:function(t,e,n){var r,i,a={bar:{type:"bar",barWidth:20,animation:!1,name:"",data:[]},line:{type:"line",animation:!1,name:"",data:[]}};if(a[n]){var o=ub(r=t.rows).call(r,(function(t,e){var r;return t.legend.data.push(e[0]),t.series.push(rN(rN({},a[n]),{},{name:e[0],data:LA(r=Gf(e).call(e,1)).call(r,(function(t){return tN(t.replace(/,/g,""))}))})),t}),{legend:{data:[]},series:[]});return rN(rN({},o),{},{xAxis:{data:Gf(i=t.header).call(i,1),type:"category"},yAxis:{type:"value",axisLabel:{width:"100%"}},grid:{containLabel:!0,left:"1%",right:"1%",bottom:"10%"}})}}},{key:"onDestroy",value:function(){this.dom&&this.echartsRef.dispose(this.dom)}}],[{key:"install",value:function(e){if("undefined"==typeof window)return console.warn("echarts-table-engine only works in browser."),void Qu(e,{engine:{syntax:{table:{enableChart:!1}}}});Qu(e,{engine:{syntax:{table:{enableChart:!0,chartRenderEngine:t,externals:["echarts"]}}}})}}])}();function oN(t){for(var e=[],n=1;n=e?t:""+Array(e+1-r.length).join(n)+t},b={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()1)return t(o[0])}else{var s=e.name;y[s]=e,i=s}return!r&&i&&(v=i),i||!r&&v},C=function(t,e){if(k(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new T(n)},E=b;E.l=x,E.i=k,E.w=function(t,e){return C(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var T=function(){function p(t){this.$L=x(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[w]=!0}var m=p.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(A);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return E},m.isValid=function(){return!(this.$d.toString()===d)},m.isSame=function(t,e){var n=C(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return C(t)-1}(c))return c;var l=c.match(o);if(!l)return c;var u=l[0];return n.test(u)?e.BLANK_URL:c}}));n(cN);var lN=cN.sanitizeUrl;function uN(t,e){return null==t||null==e?NaN:te?1:t>=e?0:NaN}function hN(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function fN(t){var e,n,r;function i(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(i>>1;n(t[o],r)<0?i=o+1:a=o}while(i2&&void 0!==arguments[2]?arguments[2]:0,a=i(t,e,n,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length)-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(i>>1;n(t[o],r)<=0?i=o+1:a=o}while(i3)){if(EN)return!0;if(TN)return TN<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)BN.push({k:e+r,v:n})}for(BN.sort((function(t,e){return e.v-t.v})),r=0;rCr(n)?1:-1}}(t)),n=un(i),r=0;r=HN?10:c>=$N?5:c>=jN?2:1;return s<0?(a=Math.pow(10,-s)/l,(r=Math.round(t*a))/ae&&--i,a=-a):(a=Math.pow(10,s)*l,(r=Math.round(t/a))*ae&&--i),i=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function VN(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=a)&&(n=a)}}catch(t){i.e(t)}finally{i.f()}}else{var o,s=-1,c=XN(t);try{for(c.s();!(o=c.n()).done;){var l=o.value;null!=(l=e(l,++s,t))&&(n=l)&&(n=l)}}catch(t){c.e(t)}finally{c.f()}}return n}function qN(t,e){var n=void 0!==Cd&&Ed(t)||t["@@iterator"];if(!n){if(Td(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return YN(t,e);var r=Gf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?rf(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?YN(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function YN(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);na||void 0===n&&a>=a)&&(n=a)}}catch(t){i.e(t)}finally{i.f()}}else{var o,s=-1,c=qN(t);try{for(c.s();!(o=c.n()).done;){var l=o.value;null!=(l=e(l,++s,t))&&(n>l||void 0===n&&l>=l)&&(n=l)}}catch(t){c.e(t)}finally{c.f()}}return n}var ZN=v_;function tR(t){return t}var eR=1,nR=2,rR=3,iR=4,aR=1e-6;function oR(t){return"translate("+t+",0)"}function sR(t){return"translate(0,"+t+")"}function cR(t){return function(e){return+t(e)}}function lR(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function uR(){return!this.__axis}function hR(t,e){var n=[],r=null,i=null,a=6,o=6,s=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=t===eR||t===iR?-1:1,u=t===iR||t===nR?"x":"y",h=t===eR||t===rR?oR:sR;function f(f){var d=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,A=null==i?e.tickFormat?e.tickFormat.apply(e,n):tR:i,g=Math.max(a,0)+s,p=e.range(),m=+p[0]+c,b=+p[p.length-1]+c,v=(e.bandwidth?lR:cR)(e.copy(),c),y=f.selection?f.selection():f,w=y.selectAll(".domain").data([null]),k=y.selectAll(".tick").data(d,e).order(),x=k.exit(),C=k.enter().append("g").attr("class","tick"),E=k.select("line"),T=k.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge(C),E=E.merge(C.append("line").attr("stroke","currentColor").attr(u+"2",l*a)),T=T.merge(C.append("text").attr("fill","currentColor").attr(u,l*g).attr("dy",t===eR?"0em":t===rR?"0.71em":"0.32em")),f!==y&&(w=w.transition(f),k=k.transition(f),E=E.transition(f),T=T.transition(f),x=x.transition(f).attr("opacity",aR).attr("transform",(function(t){return isFinite(t=v(t))?h(t+c):this.getAttribute("transform")})),C.attr("opacity",aR).attr("transform",(function(t){var e=this.parentNode.__axis;return h((e&&isFinite(e=e(t))?e:v(t))+c)}))),x.remove(),w.attr("d",t===iR||t===nR?o?"M"+l*o+","+m+"H"+c+"V"+b+"H"+l*o:"M"+c+","+m+"V"+b:o?"M"+m+","+l*o+"V"+c+"H"+b+"V"+l*o:"M"+m+","+c+"H"+b),k.attr("opacity",1).attr("transform",(function(t){return h(v(t)+c)})),E.attr(u+"2",l*a),T.attr(u,l*g).text(A),Qi(y).call(y,uR).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===nR?"start":t===iR?"end":"middle"),y.each((function(){this.__axis=v}))}return f.scale=function(t){return arguments.length?(e=t,f):e},f.ticks=function(){return n=rf(arguments),f},f.tickArguments=function(t){return arguments.length?(n=null==t?[]:rf(t),f):Gf(n).call(n)},f.tickValues=function(t){return arguments.length?(r=null==t?null:rf(t),f):r&&Gf(r).call(r)},f.tickFormat=function(t){return arguments.length?(i=t,f):i},f.tickSize=function(t){return arguments.length?(a=o=+t,f):a},f.tickSizeInner=function(t){return arguments.length?(a=+t,f):a},f.tickSizeOuter=function(t){return arguments.length?(o=+t,f):o},f.tickPadding=function(t){return arguments.length?(s=+t,f):s},f.offset=function(t){return arguments.length?(c=+t,f):c},f}var fR={value:function(){}};function dR(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=Gf(t).call(t,r+1),t=Gf(t).call(t,0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}(t+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a0)for(var n,r,i=new Array(n),a=0;a=0&&"xmlns"!==(e=Gf(t).call(t,0,n))&&(t=Gf(t).call(t,n+1)),bR.hasOwnProperty(e)?{space:bR[e],local:t}:t}function yR(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===mR&&e.documentElement.namespaceURI===mR?e.createElement(t):e.createElementNS(n,t)}}function wR(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function kR(t){var e=vR(t);return(e.local?wR:yR)(e)}var xR=Fo;function CR(){}function ER(t){return null==t?CR:function(){return this.querySelector(t)}}function TR(t){return null==t?[]:Td(t)?t:rf(t)}function BR(){return[]}function _R(t){return null==t?BR:function(){return this.querySelectorAll(t)}}function SR(t){return function(){return this.matches(t)}}function LR(t){return function(e){return e.matches(t)}}var IR=Th(Array.prototype);function MR(){return this.firstElementChild}var OR=Qi(Array.prototype);function DR(){return rf(this.children)}var FR=Yg;function NR(t){return new Array(t.length)}function RR(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function PR(t,e,n,r,i,a){for(var o,s=0,c=e.length,l=a.length;se?1:t>=e?0:NaN}function jR(t,e){var n=void 0!==Cd&&Ed(t)||t["@@iterator"];if(!n){if(Td(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return KR(t,e);var r=Gf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?rf(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?KR(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function KR(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0&&(kA(n=this._names).call(n,r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){var e;return Kf(e=this._names).call(e,t)>=0}};var LP=T_.mark(IP);function IP(){var t,e,n,r,i,a,o;return T_.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:t=this._groups,e=0,n=t.length;case 1:if(!(e=y&&(y=v+1);!(b=p[y])&&++y=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=$R);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?JR:"function"==typeof e?tP:ZR)(t,e,null==n?"":n)):eP(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?nP:"function"==typeof e?iP:rP)(t,e)):this.node()[t]},classed:function(t,e){var n=aP(t+"");if(arguments.length<2){for(var r=oP(this.node()),i=-1,a=n.length;++i=0&&(e=Gf(t).call(t,n+1),t=Gf(t).call(t,0,n)),{type:t,name:e}}))}(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?TP:EP,r=0;r>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===r?bQ(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===r?bQ(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=sQ.exec(t))?new wQ(n[1],n[2],n[3],1):(n=cQ.exec(t))?new wQ(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=lQ.exec(t))?bQ(n[1],n[2],n[3],n[4]):(n=uQ.exec(t))?bQ(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=hQ.exec(t))?BQ(n[1],n[2]/100,n[3]/100,1):(n=fQ.exec(t))?BQ(n[1],n[2]/100,n[3]/100,n[4]):dQ.hasOwnProperty(t)?mQ(dQ[t]):"transparent"===t?new wQ(NaN,NaN,NaN,0):null}function mQ(t){return new wQ(t>>16&255,t>>8&255,255&t,1)}function bQ(t,e,n,r){return r<=0&&(t=e=n=NaN),new wQ(t,e,n,r)}function vQ(t){return t instanceof tQ||(t=pQ(t)),t?new wQ((t=t.rgb()).r,t.g,t.b,t.opacity):new wQ}function yQ(t,e,n,r){return 1===arguments.length?vQ(t):new wQ(t,e,n,null==r?1:r)}function wQ(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function kQ(){var t,e;return hs(t=hs(e="#".concat(TQ(this.r))).call(e,TQ(this.g))).call(t,TQ(this.b))}function xQ(){var t,e,n,r,i=CQ(this.opacity);return hs(t=hs(e=hs(n=hs(r="".concat(1===i?"rgb(":"rgba(")).call(r,EQ(this.r),", ")).call(n,EQ(this.g),", ")).call(e,EQ(this.b))).call(t,1===i?")":", ".concat(i,")"))}function CQ(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function EQ(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function TQ(t){return((t=EQ(t))<16?"0":"")+t.toString(16)}function BQ(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new SQ(t,e,n,r)}function _Q(t){if(t instanceof SQ)return new SQ(t.h,t.s,t.l,t.opacity);if(t instanceof tQ||(t=pQ(t)),!t)return new SQ;if(t instanceof SQ)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n0&&c<1?0:o,new SQ(o,s,c,t.opacity)}function SQ(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function LQ(t){return(t=(t||0)%360)<0?t+360:t}function IQ(t){return Math.max(0,Math.min(1,t||0))}function MQ(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}JP(tQ,pQ,{copy:function(t){return Ss(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:AQ,formatHex:AQ,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return _Q(this).formatHsl()},formatRgb:gQ,toString:gQ}),JP(wQ,yQ,ZP(tQ,{brighter:function(t){return t=null==t?nQ:Math.pow(nQ,t),new wQ(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?eQ:Math.pow(eQ,t),new wQ(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},clamp:function(){return new wQ(EQ(this.r),EQ(this.g),EQ(this.b),CQ(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:kQ,formatHex:kQ,formatHex8:function(){var t,e,n;return hs(t=hs(e=hs(n="#".concat(TQ(this.r))).call(n,TQ(this.g))).call(e,TQ(this.b))).call(t,TQ(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:xQ,toString:xQ})),JP(SQ,(function(t,e,n,r){return 1===arguments.length?_Q(t):new SQ(t,e,n,null==r?1:r)}),ZP(tQ,{brighter:function(t){return t=null==t?nQ:Math.pow(nQ,t),new SQ(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?eQ:Math.pow(eQ,t),new SQ(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new wQ(MQ(t>=240?t-240:t+120,i,r),MQ(t,i,r),MQ(t<120?t+240:t-120,i,r),this.opacity)},clamp:function(){return new SQ(LQ(this.h),IQ(this.s),IQ(this.l),CQ(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t,e,n,r,i=CQ(this.opacity);return hs(t=hs(e=hs(n=hs(r="".concat(1===i?"hsl(":"hsla(")).call(r,LQ(this.h),", ")).call(n,100*IQ(this.s),"%, ")).call(e,100*IQ(this.l),"%")).call(t,1===i?")":", ".concat(i,")"))}}));var OQ=Math.PI/180,DQ=180/Math.PI,FQ=.96422,NQ=1,RQ=.82521,PQ=4/29,QQ=6/29,UQ=3*QQ*QQ,HQ=QQ*QQ*QQ;function $Q(t){if(t instanceof jQ)return new jQ(t.l,t.a,t.b,t.opacity);if(t instanceof WQ)return qQ(t);t instanceof wQ||(t=vQ(t));var e,n,r=XQ(t.r),i=XQ(t.g),a=XQ(t.b),o=KQ((.2225045*r+.7168786*i+.0606169*a)/NQ);return r===i&&i===a?e=n=o:(e=KQ((.4360747*r+.3850649*i+.1430804*a)/FQ),n=KQ((.0139322*r+.0971045*i+.7141733*a)/RQ)),new jQ(116*o-16,500*(e-o),200*(o-n),t.opacity)}function jQ(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function KQ(t){return t>HQ?Math.pow(t,1/3):t/UQ+PQ}function zQ(t){return t>QQ?t*t*t:UQ*(t-PQ)}function GQ(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function XQ(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function VQ(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof WQ)return new WQ(t.h,t.c,t.l,t.opacity);if(t instanceof jQ||(t=$Q(t)),0===t.a&&0===t.b)return new WQ(NaN,0a&&(i=Gf(e).call(e,a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:aU(n,r)})),a=cU.lastIndex;return a180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:aU(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:aU(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:aU(t,n)},{i:s-2,x:aU(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n180||n<-180?n-360*Math.round(n/360):n):YQ(isNaN(t)?e:t)})),xU=0,CU=0,EU=0,TU=1e3,BU=0,_U=0,SU=0,LU="object"===("undefined"==typeof performance?"undefined":Po(performance))&&performance.now?performance:Date,IU="object"===("undefined"==typeof window?"undefined":Po(window))&&window.requestAnimationFrame?fs(vU=window.requestAnimationFrame).call(vU,window):function(t){ks(t,17)};function MU(){return _U||(IU(OU),_U=LU.now()+SU)}function OU(){_U=0}function DU(){this._call=this._time=this._next=null}function FU(t,e,n){var r=new DU;return r.restart(t,e,n),r}function NU(){_U=(BU=LU.now())+SU,xU=CU=0;try{!function(){MU(),++xU;for(var t,e=yU;e;)(t=_U-e._time)>=0&&e._call.call(void 0,t),e=e._next;--xU}()}finally{xU=0,function(){var t,e,n=yU,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:yU=e);wU=t,PU(r)}(),_U=0}}function RU(){var t=LU.now(),e=t-BU;e>TU&&(SU-=e,BU=t)}function PU(t){xU||(CU&&(CU=clearTimeout(CU)),t-_U>24?(t<1/0&&(CU=ks(NU,t-LU.now()-SU)),EU&&(EU=clearInterval(EU))):(EU||(BU=LU.now(),EU=oS(RU,TU)),xU=1,IU(NU)))}function QU(t,e,n){var r=new DU;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}DU.prototype=FU.prototype={constructor:DU,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?MU():+n)+(null==e?0:+e),this._next||wU===this||(wU?wU._next=this:yU=this,wU=this),this._call=t,this._time=n,PU()},stop:function(){this._call&&(this._call=null,this._time=1/0,PU())}};var UU=dR("start","end","cancel","interrupt"),HU=[],$U=0,jU=1,KU=2,zU=3,GU=4,XU=5,VU=6;function WU(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(t){n.state=jU,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}function o(a){var l,u,h,f;if(n.state!==jU)return c();for(l in i)if((f=i[l]).name===n.name){if(f.state===zU)return QU(o);f.state===GU?(f.state=VU,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[l]):+l$U)throw new Error("too late; already scheduled");return n}function YU(t,e){var n=JU(t,e);if(n.state>zU)throw new Error("too late; already running");return n}function JU(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function ZU(t,e){var n,r;return function(){var i=YU(this,t),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o=0&&(t=Gf(t).call(t,0,e)),!t||"start"===t}))}(e)?qU:YU;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var pH=WP.prototype.constructor;function mH(t){return function(){this.style.removeProperty(t)}}var bH=0;function vH(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function yH(){return++bH}var wH=WP.prototype;vH.prototype=cs({constructor:vH,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=ER(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;oKU&&n.state=0))throw new Error("invalid digits: ".concat(t));if(e>15)return ZH;var n=Math.pow(10,e);return function(t){this._+=t[0];for(var e=1,r=t.length;eYH)if(Math.abs(u*s-c*l)>YH&&i){var f=n-a,d=r-o,A=s*s+c*c,g=f*f+d*d,p=Math.sqrt(A),m=Math.sqrt(h),b=i*Math.tan((WH-Math.acos((A+h-g)/(2*p*m)))/2),v=b/m,y=b/p;Math.abs(v-1)>YH&&this._append(PH||(PH=VH(["L",",",""])),t+v*l,e+v*u),this._append(QH||(QH=VH(["A",",",",0,0,",",",",",""])),i,i,+(u*f>l*d),this._x1=t+y*s,this._y1=e+y*c)}else this._append(RH||(RH=VH(["L",",",""])),this._x1=t,this._y1=e);else;}},{key:"arc",value:function(t,e,n,r,i,a){if(t=+t,e=+e,a=!!a,(n=+n)<0)throw new Error("negative radius: ".concat(n));var o=n*Math.cos(r),s=n*Math.sin(r),c=t+o,l=e+s,u=1^a,h=a?r-i:i-r;null===this._x1?this._append(UH||(UH=VH(["M",",",""])),c,l):(Math.abs(this._x1-c)>YH||Math.abs(this._y1-l)>YH)&&this._append(HH||(HH=VH(["L",",",""])),c,l),n&&(h<0&&(h=h%qH+qH),h>JH?this._append($H||($H=VH(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""])),n,n,u,t-o,e-s,n,n,u,this._x1=c,this._y1=l):h>YH&&this._append(jH||(jH=VH(["A",",",",0,",",",",",",",""])),n,n,+(h>=WH),u,this._x1=t+n*Math.cos(i),this._y1=e+n*Math.sin(i)))}},{key:"rect",value:function(t,e,n,r){this._append(KH||(KH=VH(["M",",","h","v","h","Z"])),this._x0=this._x1=+t,this._y0=this._y1=+e,n=+n,+r,-n)}},{key:"toString",value:function(){return this._}}])}();function e$(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}t$.prototype;function n$(t,e){var n;if((r=Kf(n=t=e?t.toExponential(e-1):t.toExponential()).call(n,"e"))<0)return null;var r,i=Gf(t).call(t,0,r);return[i.length>1?i[0]+Gf(i).call(i,2):i,+Gf(t).call(t,r+1)]}function r$(t){return(t=n$(Math.abs(t)))?t[1]:NaN}var i$,a$=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o$(t){var e,n;if(!(n=a$.exec(t)))throw new Error("invalid format: "+t);return new s$({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&Gf(e=n[8]).call(e,1),trim:n[9],type:n[10]})}function s$(t){this.fill=void 0===iv(t)?" ":iv(t)+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!Ph(t),this.type=void 0===t.type?"":t.type+""}function c$(t,e){var n=n$(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?Gf(r).call(r,0,i+1)+"."+Gf(r).call(r,i+1):r+new Array(i-r.length+2).join("0")}o$.prototype=s$.prototype,s$.prototype.toString=function(){return iv(this)+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(Ph(this)?"~":"")+this.type};var l$={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return c$(100*t,e)},r:c$,s:function(t,e){var n=n$(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(i$=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?Gf(r).call(r,0,a)+"."+Gf(r).call(r,a):"0."+new Array(1-a).join("0")+n$(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function u$(t){return t}var h$,f$,d$,A$=LA(Array.prototype),g$=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function p$(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?u$:(e=A$.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(t.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return ZN(a).call(a).join(n)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?u$:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(A$.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function h(t){t=o$(t);var e=iv(t),n=t.align,h=t.sign,f=t.symbol,d=t.zero,A=t.width,g=t.comma,p=t.precision,m=Ph(t),b=t.type;"n"===b?(g=!0,b="g"):l$[b]||(void 0===p&&(p=12),m=!0,b="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var v="$"===f?i:"#"===f&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y="$"===f?a:/[%p]/.test(b)?c:"",w=l$[b],k=/[defgprs%]/.test(b);function x(t){var i,a,c,f=v,x=y;if("c"===b)x=w(t)+x,t="";else{var C=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:w(Math.abs(t),p),m&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?Gf(t).call(t,0,i)+Gf(t).call(t,e+1):t}(t)),C&&0==+t&&"+"!==h&&(C=!1),f=(C?"("===h?h:l:"-"===h||"("===h?"":h)+f,x=("s"===b?g$[8+i$/3]:"")+x+(C&&"("===h?")":""),k)for(i=-1,a=t.length;++i(c=t.charCodeAt(i))||c>57){x=(46===c?o+Gf(t).call(t,i+1):Gf(t).call(t,i))+x,t=Gf(t).call(t,0,i);break}}g&&!d&&(t=r(t,1/0));var E=f.length+t.length+x.length,T=E>1)+f+t+x+Gf(T).call(T,E);break;default:t=T+f+t+x}return s(t)}return p=void 0===p?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),x.toString=function(){return t+""},x}return{format:h,formatPrefix:function(t,e){var n=h(((t=o$(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(r$(e)/3))),i=Math.pow(10,-r),a=g$[8+r/3];return function(t){return n(i*t)+a}}}}function m$(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function b$(t,e){var n=void 0!==Cd&&Ed(t)||t["@@iterator"];if(!n){if(Td(t)||(n=function(t,e){if(t){var n;if("string"==typeof t)return v$(t,e);var r=Gf(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?rf(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v$(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function v$(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);ne&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),r=c>2?B$:T$,i=a=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(LA(o).call(o,t),s,c)))(t(l(e)))}return h.invert=function(n){return l(e((a||(a=r(s,LA(o).call(o,t),aU)))(n)))},h.domain=function(t){return arguments.length?(o=rf(t,k$),u()):Gf(o).call(o)},h.range=function(t){return arguments.length?(s=rf(t),u()):Gf(s).call(s)},h.rangeRound=function(t){return s=rf(t),c=hU,u()},h.clamp=function(t){return arguments.length?(l=!!t||C$,u()):l!==C$},h.interpolate=function(t){return arguments.length?(c=t,u()):c},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,u()}}function L$(){return S$()(C$,C$)}function I$(t,e,n,r){var i,a=GN(t,e,n);switch((r=o$(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(r$(e)/3)))-r$(Math.abs(t)))}(a,o))||(r.precision=i),d$(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,r$(e)-r$(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-r$(Math.abs(t)))}(a))||(r.precision=i-2*("%"===r.type))}return f$(r)}function M$(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){if(!((n=+n)>0))return[];if((t=+t)==(e=+e))return[t];var r=e=a))return[];var c=o-a+1,l=new Array(c);if(r)if(s<0)for(var u=0;u0;){if((i=zN(c,l,n))===r)return a[o]=c,a[s]=l,e(a);if(i>0)c=Math.floor(c/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,l=Math.floor(l*i)/i}r=i}return t},t}function O$(){var t=L$();return t.copy=function(){return _$(t,O$())},m$.apply(t,arguments),M$(t)}var D$=new Date,F$=new Date;function N$(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return D$.setTime(+e),F$.setTime(+r),t(D$),t(F$),Math.floor(n(D$,F$))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Qi(i).call(i,r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var R$=N$((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));R$.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?N$((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):R$:null},R$.range;var P$=1e3,Q$=6e4,U$=36e5,H$=864e5,$$=6048e5,j$=2592e6,K$=31536e6,z$=N$((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*P$)}),(function(t,e){return(e-t)/P$}),(function(t){return t.getUTCSeconds()}));z$.range;var G$=N$((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*P$)}),(function(t,e){t.setTime(+t+e*Q$)}),(function(t,e){return(e-t)/Q$}),(function(t){return t.getMinutes()}));G$.range;var X$=N$((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*Q$)}),(function(t,e){return(e-t)/Q$}),(function(t){return t.getUTCMinutes()}));X$.range;var V$=N$((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*P$-t.getMinutes()*Q$)}),(function(t,e){t.setTime(+t+e*U$)}),(function(t,e){return(e-t)/U$}),(function(t){return t.getHours()}));V$.range;var W$=N$((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*U$)}),(function(t,e){return(e-t)/U$}),(function(t){return t.getUTCHours()}));W$.range;var q$=N$((function(t){return t.setHours(0,0,0,0)}),(function(t,e){return t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Q$)/H$}),(function(t){return t.getDate()-1}));q$.range;var Y$=N$((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/H$}),(function(t){return t.getUTCDate()-1}));Y$.range;var J$=N$((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/H$}),(function(t){return Math.floor(t/H$)}));function Z$(t){return N$((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Q$)/$$}))}J$.range;var tj=Z$(0),ej=Z$(1),nj=Z$(2),rj=Z$(3),ij=Z$(4),aj=Z$(5),oj=Z$(6);function sj(t){return N$((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/$$}))}tj.range,ej.range,nj.range,rj.range,ij.range,aj.range,oj.range;var cj=sj(0),lj=sj(1),uj=sj(2),hj=sj(3),fj=sj(4),dj=sj(5),Aj=sj(6);cj.range,lj.range,uj.range,hj.range,fj.range,dj.range,Aj.range;var gj=N$((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));gj.range;var pj=N$((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));pj.range;var mj=N$((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));mj.every=function(t){return isFinite(t=Math.floor(t))&&t>0?N$((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null},mj.range;var bj=N$((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));function vj(t,e,n,r,i,a){var o=[[z$,1,P$],[z$,5,5e3],[z$,15,15e3],[z$,30,3e4],[a,1,Q$],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,U$],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,H$],[r,2,1728e5],[n,1,$$],[e,1,j$],[e,3,7776e6],[t,1,K$]];function s(e,n,r){var i=Math.abs(n-e)/r,a=fN((function(t){return jf(t,3)[2]})).right(o,i);if(a===o.length)return e_(t).call(t,GN(e/K$,n/K$,r));if(0===a)return e_(R$).call(R$,Math.max(GN(e,n,r),1));var s=jf(o[i/o[a-1][2]0?N$((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null},bj.range;var yj=jf(vj(bj,pj,cj,J$,W$,X$),2);yj[0],yj[1];var wj=jf(vj(mj,gj,tj,q$,V$,G$),2),kj=wj[0],xj=wj[1];function Cj(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ej(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Tj(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var Bj,_j,Sj={"-":"",_:" ",0:"0"},Lj=/^\s*\d+/,Ij=/^%/,Mj=/[\\^$*+?|[\]().{}]/g;function Oj(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a68?1900:2e3),n+r[0].length):-1}function Kj(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Gf(e).call(e,n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function zj(t,e,n){var r=Lj.exec(Gf(e).call(e,n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Gj(t,e,n){var r=Lj.exec(Gf(e).call(e,n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Xj(t,e,n){var r=Lj.exec(Gf(e).call(e,n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Vj(t,e,n){var r=Lj.exec(Gf(e).call(e,n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Wj(t,e,n){var r=Lj.exec(Gf(e).call(e,n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function qj(t,e,n){var r=Lj.exec(Gf(e).call(e,n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Yj(t,e,n){var r=Lj.exec(Gf(e).call(e,n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Jj(t,e,n){var r=Lj.exec(Gf(e).call(e,n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Zj(t,e,n){var r=Lj.exec(Gf(e).call(e,n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function tK(t,e,n){var r=Ij.exec(Gf(e).call(e,n,n+1));return r?n+r[0].length:-1}function eK(t,e,n){var r=Lj.exec(Gf(e).call(e,n));return r?(t.Q=+r[0],n+r[0].length):-1}function nK(t,e,n){var r=Lj.exec(Gf(e).call(e,n));return r?(t.s=+r[0],n+r[0].length):-1}function rK(t,e){return Oj(t.getDate(),e,2)}function iK(t,e){return Oj(t.getHours(),e,2)}function aK(t,e){return Oj(t.getHours()%12||12,e,2)}function oK(t,e){return Oj(1+q$.count(mj(t),t),e,3)}function sK(t,e){return Oj(t.getMilliseconds(),e,3)}function cK(t,e){return sK(t,e)+"000"}function lK(t,e){return Oj(t.getMonth()+1,e,2)}function uK(t,e){return Oj(t.getMinutes(),e,2)}function hK(t,e){return Oj(t.getSeconds(),e,2)}function fK(t){var e=t.getDay();return 0===e?7:e}function dK(t,e){return Oj(tj.count(mj(t)-1,t),e,2)}function AK(t){var e=t.getDay();return e>=4||0===e?ij(t):ij.ceil(t)}function gK(t,e){return t=AK(t),Oj(ij.count(mj(t),t)+(4===mj(t).getDay()),e,2)}function pK(t){return t.getDay()}function mK(t,e){return Oj(ej.count(mj(t)-1,t),e,2)}function bK(t,e){return Oj(t.getFullYear()%100,e,2)}function vK(t,e){return Oj((t=AK(t)).getFullYear()%100,e,2)}function yK(t,e){return Oj(t.getFullYear()%1e4,e,4)}function wK(t,e){var n=t.getDay();return Oj((t=n>=4||0===n?ij(t):ij.ceil(t)).getFullYear()%1e4,e,4)}function kK(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Oj(e/60|0,"0",2)+Oj(e%60,"0",2)}function xK(t,e){return Oj(t.getUTCDate(),e,2)}function CK(t,e){return Oj(t.getUTCHours(),e,2)}function EK(t,e){return Oj(t.getUTCHours()%12||12,e,2)}function TK(t,e){return Oj(1+Y$.count(bj(t),t),e,3)}function BK(t,e){return Oj(t.getUTCMilliseconds(),e,3)}function _K(t,e){return BK(t,e)+"000"}function SK(t,e){return Oj(t.getUTCMonth()+1,e,2)}function LK(t,e){return Oj(t.getUTCMinutes(),e,2)}function IK(t,e){return Oj(t.getUTCSeconds(),e,2)}function MK(t){var e=t.getUTCDay();return 0===e?7:e}function OK(t,e){return Oj(cj.count(bj(t)-1,t),e,2)}function DK(t){var e=t.getUTCDay();return e>=4||0===e?fj(t):fj.ceil(t)}function FK(t,e){return t=DK(t),Oj(fj.count(bj(t),t)+(4===bj(t).getUTCDay()),e,2)}function NK(t){return t.getUTCDay()}function RK(t,e){return Oj(lj.count(bj(t)-1,t),e,2)}function PK(t,e){return Oj(t.getUTCFullYear()%100,e,2)}function QK(t,e){return Oj((t=DK(t)).getUTCFullYear()%100,e,2)}function UK(t,e){return Oj(t.getUTCFullYear()%1e4,e,4)}function HK(t,e){var n=t.getUTCDay();return Oj((t=n>=4||0===n?fj(t):fj.ceil(t)).getUTCFullYear()%1e4,e,4)}function $K(){return"+0000"}function jK(){return"%"}function KK(t){return+t}function zK(t){return Math.floor(+t/1e3)}function GK(t){return new Date(t)}function XK(t){return t instanceof Date?+t:+new Date(+t)}function VK(t,e,n,r,i,a,o,s,c,l){var u=L$(),h=u.invert,f=u.domain,d=l(".%L"),A=l(":%S"),g=l("%I:%M"),p=l("%I %p"),m=l("%a %d"),b=l("%b %d"),v=l("%B"),y=l("%Y");function w(t){return(c(t)=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:KK,s:zK,S:hK,u:fK,U:dK,V:gK,w:pK,W:mK,x:null,X:null,y:bK,Y:yK,Z:kK,"%":jK},y={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:xK,e:xK,f:_K,g:QK,G:HK,H:CK,I:EK,j:TK,L:BK,m:SK,M:LK,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:KK,s:zK,S:IK,u:MK,U:OK,V:FK,w:NK,W:RK,x:null,X:null,y:PK,Y:UK,Z:$K,"%":jK},w={a:function(t,e,n){var r=d.exec(Gf(e).call(e,n));return r?(t.w=A.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=h.exec(Gf(e).call(e,n));return r?(t.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=m.exec(Gf(e).call(e,n));return r?(t.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(Gf(e).call(e,n));return r?(t.m=p.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return C(t,e,n,r)},d:Xj,e:Xj,f:Zj,g:jj,G:$j,H:Wj,I:Wj,j:Vj,L:Jj,m:Gj,M:qj,p:function(t,e,n){var r=l.exec(Gf(e).call(e,n));return r?(t.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:zj,Q:eK,s:nK,S:Yj,u:Pj,U:Qj,V:Uj,w:Rj,W:Hj,x:function(t,e,r){return C(t,n,e,r)},X:function(t,e,n){return C(t,r,e,n)},y:jj,Y:$j,Z:Kj,"%":tK};function k(t,e){return function(n){var r,i,a,o=[],s=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=Ej(Tj(a.y,0,1))).getUTCDay(),r=i>4||0===i?lj.ceil(r):lj(r),r=Y$.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=Cj(Tj(a.y,0,1))).getDay(),r=i>4||0===i?ej.ceil(r):ej(r),r=q$.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?Ej(Tj(a.y,0,1)).getUTCDay():Cj(Tj(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Ej(a)):Cj(a)}}function C(t,e,n,r){for(var i,a,o=0,s=e.length,c=n.length;o=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=w[i in Sj?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return v.x=k(n,v),v.X=k(r,v),v.c=k(e,v),y.x=k(n,y),y.X=k(r,y),y.c=k(e,y),{format:function(t){var e=k(t+="",v);return e.toString=function(){return t},e},parse:function(t){var e=x(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=k(t+="",y);return e.toString=function(){return t},e},utcParse:function(t){var e=x(t+="",!0);return e.toString=function(){return t},e}}}(t),_j=Bj.format,Bj.parse,Bj.utcFormat,Bj.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var qK=Math.abs,YK=Math.atan2,JK=Math.cos,ZK=Math.max,tz=Math.min,ez=Math.sin,nz=Math.sqrt,rz=1e-12,iz=Math.PI,az=iz/2,oz=2*iz;function sz(t){return t>=1?az:t<=-1?-az:Math.asin(t)}function cz(t){var e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{var r=Math.floor(n);if(!(r>=0))throw new RangeError("invalid digits: ".concat(n));e=r}return t},function(){return new t$(e)}}function lz(t){return t.innerRadius}function uz(t){return t.outerRadius}function hz(t){return t.startAngle}function fz(t){return t.endAngle}function dz(t){return t&&t.padAngle}function Az(t,e,n,r,i,a,o){var s=t-n,c=e-r,l=(o?a:-a)/nz(s*s+c*c),u=l*c,h=-l*s,f=t+u,d=e+h,A=n+u,g=r+h,p=(f+A)/2,m=(d+g)/2,b=A-f,v=g-d,y=b*b+v*v,w=i-a,k=f*g-A*d,x=(v<0?-1:1)*nz(ZK(0,w*w*y-k*k)),C=(k*v-b*x)/y,E=(-k*b-v*x)/y,T=(k*v+b*x)/y,B=(-k*b+v*x)/y,_=C-p,S=E-m,L=T-p,I=B-m;return _*_+S*S>L*L+I*I&&(C=T,E=B),{cx:C,cy:E,x01:-u,y01:-h,x11:C*(i/w-1),y11:E*(i/w-1)}}function gz(){var t=lz,e=uz,n=WK(0),r=null,i=hz,a=fz,o=dz,s=null,c=cz(l);function l(){var l,u,h=+t.apply(this,arguments),f=+e.apply(this,arguments),d=i.apply(this,arguments)-az,A=a.apply(this,arguments)-az,g=qK(A-d),p=A>d;if(s||(s=l=c()),frz)if(g>oz-rz)s.moveTo(f*JK(d),f*ez(d)),s.arc(0,0,f,d,A,!p),h>rz&&(s.moveTo(h*JK(A),h*ez(A)),s.arc(0,0,h,A,d,p));else{var m,b,v=d,y=A,w=d,k=A,x=g,C=g,E=o.apply(this,arguments)/2,T=E>rz&&(r?+r.apply(this,arguments):nz(h*h+f*f)),B=tz(qK(f-h)/2,+n.apply(this,arguments)),_=B,S=B;if(T>rz){var L=sz(T/h*ez(E)),I=sz(T/f*ez(E));(x-=2*L)>rz?(w+=L*=p?1:-1,k-=L):(x=0,w=k=(d+A)/2),(C-=2*I)>rz?(v+=I*=p?1:-1,y-=I):(C=0,v=y=(d+A)/2)}var M=f*JK(v),O=f*ez(v),D=h*JK(k),F=h*ez(k);if(B>rz){var N,R=f*JK(y),P=f*ez(y),Q=h*JK(w),U=h*ez(w);if(g1?0:t<-1?iz:Math.acos(t)}((H*j+$*K)/(nz(H*H+$*$)*nz(j*j+K*K)))/2),G=nz(N[0]*N[0]+N[1]*N[1]);_=tz(B,(h-G)/(z-1)),S=tz(B,(f-G)/(z+1))}else _=S=0}C>rz?S>rz?(m=Az(Q,U,M,O,f,S,p),b=Az(R,P,D,F,f,S,p),s.moveTo(m.cx+m.x01,m.cy+m.y01),Srz&&x>rz?_>rz?(m=Az(D,F,R,P,h,-_,p),b=Az(M,O,Q,U,h,-_,p),s.lineTo(m.cx+m.x01,m.cy+m.y01),_t?1:e>=t?0:NaN}function xz(t){return t}Gf(Array.prototype),mz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var Cz=function(){return $o((function t(e,n){ra(this,t),this._context=e,this._x=n}),[{key:"areaStart",value:function(){this._line=0}},{key:"areaEnd",value:function(){this._line=NaN}},{key:"lineStart",value:function(){this._point=0}},{key:"lineEnd",value:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}},{key:"point",value:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}])}();function Ez(){}function Tz(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Bz(t){this._context=t}function _z(t){return new Bz(t)}function Sz(t){this._context=t}function Lz(t){this._context=t}function Iz(t,e){this._basis=new Bz(t),this._beta=e}Bz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Tz(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Tz(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Sz.prototype={areaStart:Ez,areaEnd:Ez,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Tz(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Lz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Tz(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Iz.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,s=e[n]-a,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*o),this._beta*e[c]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Mz=function t(e){function n(t){return 1===e?new Bz(t):new Iz(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Oz(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Dz(t,e){this._context=t,this._k=(1-e)/6}Dz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Oz(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Oz(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Fz=function t(e){function n(t){return new Dz(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Nz(t,e){this._context=t,this._k=(1-e)/6}Nz.prototype={areaStart:Ez,areaEnd:Ez,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Oz(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Rz=function t(e){function n(t){return new Nz(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Pz(t,e){this._context=t,this._k=(1-e)/6}Pz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Oz(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Qz=function t(e){function n(t){return new Pz(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Uz(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>rz){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>rz){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function Hz(t,e){this._context=t,this._alpha=e}Hz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Uz(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var $z=function t(e){function n(t){return e?new Hz(t,e):new Dz(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function jz(t,e){this._context=t,this._alpha=e}jz.prototype={areaStart:Ez,areaEnd:Ez,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Uz(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Kz=function t(e){function n(t){return e?new jz(t,e):new Nz(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function zz(t,e){this._context=t,this._alpha=e}zz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Uz(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Gz=function t(e){function n(t){return e?new zz(t,e):new Pz(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Xz(t){this._context=t}function Vz(t){return t<0?-1:1}function Wz(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Vz(a)+Vz(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function qz(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Yz(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function Jz(t){this._context=t}function Zz(t){this._context=new tG(t)}function tG(t){this._context=t}function eG(t){this._context=t}function nG(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},iG.prototype={constructor:iG,scale:function(t){return 1===t?this:new iG(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new iG(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){var e,n;return t.copy().domain(LA(e=LA(n=t.range()).call(n,this.invertX,this)).call(e,t.invert,t))},rescaleY:function(t){var e,n;return t.copy().domain(LA(e=LA(n=t.range()).call(n,this.invertY,this)).call(e,t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new iG(1,0,0),iG.prototype;var aG=r((function(t,e){t.exports=function(){function t(e){return t="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},t(e)}function e(t,n){return e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(t,n)}function n(){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}}function r(t,i,a){return r=n()?Reflect.construct:function(t,n,r){var i=[null];i.push.apply(i,n);var a=new(Function.bind.apply(t,i));return r&&e(a,r.prototype),a},r.apply(null,arguments)}function i(t){return a(t)||o(t)||s(t)||l()}function a(t){if(Array.isArray(t))return c(t)}function o(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function s(t,e){if(t){if("string"==typeof t)return c(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)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?n-1:0),i=1;i/gm),q=p(/\${[\w\W]*}/gm),Y=p(/^data-[\-\w.\u00B7-\uFFFF]/),J=p(/^aria-[\-\w]+$/),Z=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tt=p(/^(?:\w+script|data):/i),et=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),nt=p(/^html$/i),rt=function(){return"undefined"==typeof window?null:window},it=function(e,n){if("object"!==t(e)||"function"!=typeof e.createPolicy)return null;var r=null,i="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(i)&&(r=n.currentScript.getAttribute(i));var a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function at(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rt(),n=function(t){return at(t)};if(n.version="2.4.3",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var r=e.document,a=e.document,o=e.DocumentFragment,s=e.HTMLTemplateElement,c=e.Node,l=e.Element,u=e.NodeFilter,h=e.NamedNodeMap,f=void 0===h?e.NamedNodeMap||e.MozNamedAttrMap:h,d=e.HTMLFormElement,A=e.DOMParser,p=e.trustedTypes,m=l.prototype,b=N(m,"cloneNode"),v=N(m,"nextSibling"),y=N(m,"childNodes"),M=N(m,"parentNode");if("function"==typeof s){var O=a.createElement("template");O.content&&O.content.ownerDocument&&(a=O.content.ownerDocument)}var ot=it(p,r),st=ot?ot.createHTML(""):"",ct=a,lt=ct.implementation,ut=ct.createNodeIterator,ht=ct.createDocumentFragment,ft=ct.getElementsByTagName,dt=r.importNode,At={};try{At=F(a).documentMode?a.documentMode:{}}catch(t){}var gt={};n.isSupported="function"==typeof M&<&&void 0!==lt.createHTMLDocument&&9!==At;var pt,mt,bt=V,vt=W,yt=q,wt=Y,kt=J,xt=tt,Ct=et,Et=Z,Tt=null,Bt=D({},[].concat(i(R),i(P),i(Q),i(H),i(j))),_t=null,St=D({},[].concat(i(K),i(z),i(G),i(X))),Lt=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),It=null,Mt=null,Ot=!0,Dt=!0,Ft=!1,Nt=!1,Rt=!1,Pt=!1,Qt=!1,Ut=!1,Ht=!1,$t=!1,jt=!0,Kt=!1,zt="user-content-",Gt=!0,Xt=!1,Vt={},Wt=null,qt=D({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Yt=null,Jt=D({},["audio","video","img","source","image","track"]),Zt=null,te=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ee="http://www.w3.org/1998/Math/MathML",ne="http://www.w3.org/2000/svg",re="http://www.w3.org/1999/xhtml",ie=re,ae=!1,oe=null,se=D({},[ee,ne,re],E),ce=["application/xhtml+xml","text/html"],le="text/html",ue=null,he=a.createElement("form"),fe=function(t){return t instanceof RegExp||t instanceof Function},de=function(e){ue&&ue===e||(e&&"object"===t(e)||(e={}),e=F(e),pt=pt=-1===ce.indexOf(e.PARSER_MEDIA_TYPE)?le:e.PARSER_MEDIA_TYPE,mt="application/xhtml+xml"===pt?E:C,Tt="ALLOWED_TAGS"in e?D({},e.ALLOWED_TAGS,mt):Bt,_t="ALLOWED_ATTR"in e?D({},e.ALLOWED_ATTR,mt):St,oe="ALLOWED_NAMESPACES"in e?D({},e.ALLOWED_NAMESPACES,E):se,Zt="ADD_URI_SAFE_ATTR"in e?D(F(te),e.ADD_URI_SAFE_ATTR,mt):te,Yt="ADD_DATA_URI_TAGS"in e?D(F(Jt),e.ADD_DATA_URI_TAGS,mt):Jt,Wt="FORBID_CONTENTS"in e?D({},e.FORBID_CONTENTS,mt):qt,It="FORBID_TAGS"in e?D({},e.FORBID_TAGS,mt):{},Mt="FORBID_ATTR"in e?D({},e.FORBID_ATTR,mt):{},Vt="USE_PROFILES"in e&&e.USE_PROFILES,Ot=!1!==e.ALLOW_ARIA_ATTR,Dt=!1!==e.ALLOW_DATA_ATTR,Ft=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Nt=e.SAFE_FOR_TEMPLATES||!1,Rt=e.WHOLE_DOCUMENT||!1,Ut=e.RETURN_DOM||!1,Ht=e.RETURN_DOM_FRAGMENT||!1,$t=e.RETURN_TRUSTED_TYPE||!1,Qt=e.FORCE_BODY||!1,jt=!1!==e.SANITIZE_DOM,Kt=e.SANITIZE_NAMED_PROPS||!1,Gt=!1!==e.KEEP_CONTENT,Xt=e.IN_PLACE||!1,Et=e.ALLOWED_URI_REGEXP||Et,ie=e.NAMESPACE||re,e.CUSTOM_ELEMENT_HANDLING&&fe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Lt.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&fe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Lt.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Lt.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Nt&&(Dt=!1),Ht&&(Ut=!0),Vt&&(Tt=D({},i(j)),_t=[],!0===Vt.html&&(D(Tt,R),D(_t,K)),!0===Vt.svg&&(D(Tt,P),D(_t,z),D(_t,X)),!0===Vt.svgFilters&&(D(Tt,Q),D(_t,z),D(_t,X)),!0===Vt.mathMl&&(D(Tt,H),D(_t,G),D(_t,X))),e.ADD_TAGS&&(Tt===Bt&&(Tt=F(Tt)),D(Tt,e.ADD_TAGS,mt)),e.ADD_ATTR&&(_t===St&&(_t=F(_t)),D(_t,e.ADD_ATTR,mt)),e.ADD_URI_SAFE_ATTR&&D(Zt,e.ADD_URI_SAFE_ATTR,mt),e.FORBID_CONTENTS&&(Wt===qt&&(Wt=F(Wt)),D(Wt,e.FORBID_CONTENTS,mt)),Gt&&(Tt["#text"]=!0),Rt&&D(Tt,["html","head","body"]),Tt.table&&(D(Tt,["tbody"]),delete It.tbody),g&&g(e),ue=e)},Ae=D({},["mi","mo","mn","ms","mtext"]),ge=D({},["foreignobject","desc","title","annotation-xml"]),pe=D({},["title","style","font","a","script"]),me=D({},P);D(me,Q),D(me,U);var be=D({},H);D(be,$);var ve=function(t){var e=M(t);e&&e.tagName||(e={namespaceURI:ie,tagName:"template"});var n=C(t.tagName),r=C(e.tagName);return!!oe[t.namespaceURI]&&(t.namespaceURI===ne?e.namespaceURI===re?"svg"===n:e.namespaceURI===ee?"svg"===n&&("annotation-xml"===r||Ae[r]):Boolean(me[n]):t.namespaceURI===ee?e.namespaceURI===re?"math"===n:e.namespaceURI===ne?"math"===n&&ge[r]:Boolean(be[n]):t.namespaceURI===re?!(e.namespaceURI===ne&&!ge[r])&&!(e.namespaceURI===ee&&!Ae[r])&&!be[n]&&(pe[n]||!me[n]):!("application/xhtml+xml"!==pt||!oe[t.namespaceURI]))},ye=function(t){x(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=st}catch(e){t.remove()}}},we=function(t,e){try{x(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){x(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!_t[t])if(Ut||Ht)try{ye(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ke=function(t){var e,n;if(Qt)t=""+t;else{var r=T(t,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===pt&&ie===re&&(t=''+t+"");var i=ot?ot.createHTML(t):t;if(ie===re)try{e=(new A).parseFromString(i,pt)}catch(t){}if(!e||!e.documentElement){e=lt.createDocument(ie,"template",null);try{e.documentElement.innerHTML=ae?st:i}catch(t){}}var o=e.body||e.documentElement;return t&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),ie===re?ft.call(e,Rt?"html":"body")[0]:Rt?e.documentElement:o},xe=function(t){return ut.call(t.ownerDocument||t,t,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},Ce=function(t){return t instanceof d&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof f)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Ee=function(e){return"object"===t(c)?e instanceof c:e&&"object"===t(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Te=function(t,e,r){gt[t]&&w(gt[t],(function(t){t.call(n,e,r,ue)}))},Be=function(t){var e;if(Te("beforeSanitizeElements",t,null),Ce(t))return ye(t),!0;if(L(/[\u0080-\uFFFF]/,t.nodeName))return ye(t),!0;var r=mt(t.nodeName);if(Te("uponSanitizeElement",t,{tagName:r,allowedTags:Tt}),t.hasChildNodes()&&!Ee(t.firstElementChild)&&(!Ee(t.content)||!Ee(t.content.firstElementChild))&&L(/<[/\w]/g,t.innerHTML)&&L(/<[/\w]/g,t.textContent))return ye(t),!0;if("select"===r&&L(/